@panphora/clayjs 1.26.0 → 1.26.2

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.
Files changed (102) hide show
  1. package/dist/all.js +1 -1
  2. package/dist/clay-dom.js +1 -1
  3. package/dist/clay-events.js +1 -1
  4. package/dist/clay-internals.js +1 -1
  5. package/dist/clay-options.js +1 -1
  6. package/dist/clay-router.js +1 -1
  7. package/dist/clay-ui.js +1 -1
  8. package/dist/clay-utils.js +1 -1
  9. package/dist/clay.js +1 -1
  10. package/dist/clay.standalone.js +5 -4
  11. package/dist/m/{c-EQ5NBOGA.js → c-26W3BMWK.js} +1 -1
  12. package/dist/m/{c-AQVQKFKB.js → c-3JQY5MB2.js} +1 -1
  13. package/dist/m/{c-MKAUC6DB.js → c-3KG4SDZ5.js} +1 -1
  14. package/dist/m/{c-HYNM5U6B.js → c-5CJCIAFK.js} +1 -1
  15. package/dist/m/{c-O3DPFZCE.js → c-6266A3CU.js} +1 -1
  16. package/dist/m/{c-WOJ2RTV4.js → c-627JDXWT.js} +1 -1
  17. package/dist/m/{c-MMEVDN6D.js → c-7PZS45FY.js} +1 -1
  18. package/dist/m/{c-NYJ577NL.js → c-7RJCYD4F.js} +1 -1
  19. package/dist/m/{c-EHAR4RJJ.js → c-CKG4NF7J.js} +2 -2
  20. package/dist/m/{c-EXZOA6XY.js → c-E37MV4WS.js} +1 -1
  21. package/dist/m/{c-N4GEJMXW.js → c-EFXPKDJP.js} +1 -1
  22. package/dist/m/{c-ZPI7M5U5.js → c-G426P2SE.js} +1 -1
  23. package/dist/m/{c-BJ2RRQBQ.js → c-GXOUAT7E.js} +1 -1
  24. package/dist/m/{c-VU4WEWPH.js → c-H25R2UF3.js} +1 -1
  25. package/dist/m/{c-VO6RSFCO.js → c-HBSBQBD7.js} +1 -1
  26. package/dist/m/{c-CL5LSATX.js → c-I4ZVJZC7.js} +1 -1
  27. package/dist/m/{c-67TBU56I.js → c-I62KCFMW.js} +1 -1
  28. package/dist/m/{c-Y3MPVURA.js → c-IJ4VUYDN.js} +1 -1
  29. package/dist/m/{c-FC5RUFPR.js → c-IOJOJTPL.js} +1 -1
  30. package/dist/m/{c-HXGNH6GY.js → c-IPCSVZAB.js} +1 -1
  31. package/dist/m/c-JEWSJHMK.js +1 -0
  32. package/dist/m/{c-3F3AADKG.js → c-JOA4OJGK.js} +1 -1
  33. package/dist/m/{c-GFASNR55.js → c-JUSHNY3I.js} +1 -1
  34. package/dist/m/{c-7RHOMAMR.js → c-K5HRHUTK.js} +1 -1
  35. package/dist/m/{c-H3M6UDNV.js → c-KFXW6SZO.js} +1 -1
  36. package/dist/m/{c-EAV7A6BT.js → c-MB5FZ2PD.js} +1 -1
  37. package/dist/m/{c-2EPHRF47.js → c-MIQYK2VM.js} +1 -1
  38. package/dist/m/{c-ARO6CPMA.js → c-O3BSWMVD.js} +1 -1
  39. package/dist/m/{c-U35T5NAY.js → c-O54PVIAQ.js} +1 -1
  40. package/dist/m/{c-H4M2T4A6.js → c-OEEJRV2M.js} +1 -1
  41. package/dist/m/{c-KU3PX7LL.js → c-OSGTRM4C.js} +1 -1
  42. package/dist/m/{c-YZGWSCMT.js → c-QLGTY326.js} +1 -1
  43. package/dist/m/{c-WOWGGNCJ.js → c-RC37IFYT.js} +1 -1
  44. package/dist/m/{c-SMLAJASY.js → c-RHYX6KUH.js} +1 -1
  45. package/dist/m/{c-RGFPLQGV.js → c-SMCZC3V6.js} +1 -1
  46. package/dist/m/{c-P73XPAOA.js → c-T6RRRHX7.js} +1 -1
  47. package/dist/m/{c-3S5TNRZA.js → c-USO6XV23.js} +1 -1
  48. package/dist/m/{c-ZFAPQQIB.js → c-VPUSMVKE.js} +1 -1
  49. package/dist/m/{c-YYIN4NAF.js → c-VXJJ7BJL.js} +1 -1
  50. package/dist/m/{c-EEWPNUM2.js → c-W3DMFFGK.js} +1 -1
  51. package/dist/m/{c-755ZOHOM.js → c-W5HY5JHM.js} +1 -1
  52. package/dist/m/{c-C5UGNOC2.js → c-WJVW76R6.js} +1 -1
  53. package/dist/m/{c-Q2CB57UG.js → c-X3WLDGBX.js} +1 -1
  54. package/dist/m/{c-SRW5OBCF.js → c-XLVZN7DT.js} +1 -1
  55. package/dist/m/{c-3WX5FABT.js → c-YIFBOWQE.js} +1 -1
  56. package/dist/m/{c-34J5HC7N.js → c-YJS2V3MX.js} +1 -1
  57. package/dist/m/core/{admin-attrs-43JBA6JB.js → admin-attrs-H26XE2AE.js} +1 -1
  58. package/dist/m/core/{autosave-HD7Y7UNV.js → autosave-U5UIKPM3.js} +1 -1
  59. package/dist/m/core/{conflict-notice-UNDOD4BL.js → conflict-notice-HTF6CECH.js} +1 -1
  60. package/dist/m/core/{host-permission-5BYP24GC.js → host-permission-JHMPKRPO.js} +1 -1
  61. package/dist/m/core/{is-edit-mode-73OXKK5H.js → is-edit-mode-QBJUFMVF.js} +1 -1
  62. package/dist/m/core/{persist-MX3VYVBN.js → persist-TRXZPS6T.js} +1 -1
  63. package/dist/m/core/{recovery-VZF7RJZF.js → recovery-YJS7CI66.js} +1 -1
  64. package/dist/m/core/{save-JZ7R4ET2.js → save-KY3ZMPU4.js} +1 -1
  65. package/dist/m/core/{save-core-I4N6S4ED.js → save-core-LBW6DNJ6.js} +1 -1
  66. package/dist/m/core/{site-edits-C22O53GS.js → site-edits-M44KWAQN.js} +1 -1
  67. package/dist/m/core/{unsaved-warning-BP6ZY3PG.js → unsaved-warning-2X7NJNHZ.js} +1 -1
  68. package/dist/m/internals/{index-3LAVREAU.js → index-CDXUFQZK.js} +1 -1
  69. package/dist/m/{loader-DCKCZKY6.js → loader-CRCEH7TD.js} +1 -1
  70. package/dist/m/manifest-6D031725.js +1 -0
  71. package/dist/m/{manifest-edit-93AA79D7.js → manifest-edit-A75598BC.js} +1 -1
  72. package/dist/m/manifest.json +593 -593
  73. package/dist/m/plugins/{ai-edit-WDV2GLDU.js → ai-edit-T2SM7TRD.js} +1 -1
  74. package/dist/m/plugins/{demo-LMCMBILC.js → demo-57MJ3GOO.js} +1 -1
  75. package/dist/m/plugins/{derive-R4USHZ7P.js → derive-TRMYDN7J.js} +1 -1
  76. package/dist/m/plugins/{indicator-OLPZ4WFI.js → indicator-D5PZJGVS.js} +1 -1
  77. package/dist/m/plugins/{live-DF5YS5AH.js → live-J52JO243.js} +1 -1
  78. package/dist/m/plugins/{menu-ESEFQARM.js → menu-KCCEDUMJ.js} +1 -1
  79. package/dist/m/plugins/{page-GZSU77JS.js → page-F7JG3JZX.js} +2 -2
  80. package/dist/m/plugins/{page-view-7MM3FEAR.js → page-view-QPRXXAT3.js} +1 -1
  81. package/dist/m/plugins/{people-EBWE337I.js → people-FEMXINJK.js} +1 -1
  82. package/dist/m/plugins/{richclay-MXH2GFAZ.js → richclay-XL64ZGOZ.js} +2 -2
  83. package/dist/m/plugins/{sortable-BAG3MSWS.js → sortable-HE7Q4KKP.js} +1 -1
  84. package/dist/m/plugins/{source-OYHDXKTB.js → source-5RTLTD75.js} +1 -1
  85. package/dist/m/plugins/{undo-KLHAGV75.js → undo-5MFW3OD5.js} +1 -1
  86. package/dist/m/plugins/{upgrade-SZQJYEQQ.js → upgrade-ORK24FK6.js} +1 -1
  87. package/dist/m/plugins/{upload-NZET3DNQ.js → upload-YMBDWTLR.js} +1 -1
  88. package/dist/m/plugins/{visitor-drafts-ZE6PCAFP.js → visitor-drafts-DCVGLCBX.js} +2 -2
  89. package/dist/m/plugins/{visitor-drafts-owner-TLECTYWS.js → visitor-drafts-owner-QLF6IALP.js} +1 -1
  90. package/dist/m/plugins/{visitor-menu-5XY57JQA.js → visitor-menu-VNWJZ6PV.js} +1 -1
  91. package/dist/m/plugins/{wire-S5ATC4QI.js → wire-I3TDGBGZ.js} +1 -1
  92. package/dist/m/{reader-core-AHOAP5DH.js → reader-core-7JOVUCEQ.js} +2 -2
  93. package/dist/m/sync/{live-sync-RZQSDMZW.js → live-sync-2UYQQSD7.js} +1 -1
  94. package/dist/m/vendor/{sap-core.vendor-5TWOJYVM.js → sap-core.vendor-UYOHDPAV.js} +1 -1
  95. package/dist/offline-manifest.json +388 -388
  96. package/entries/sap.js +1 -1
  97. package/package.json +1 -1
  98. package/src/core/mode-receipt.js +7 -5
  99. package/src/vendor/sap-core.vendor.js +1 -1
  100. package/dist/m/c-C7SUMNMI.js +0 -1
  101. package/dist/m/manifest-7954CBE3.js +0 -1
  102. /package/dist/m/plugins/{richclay-MXH2GFAZ.js.LEGAL.txt → richclay-XL64ZGOZ.js.LEGAL.txt} +0 -0
@@ -1 +1 @@
1
- import{a as j}from"./c-MJ7GVE46.js";import{b as S,c as A,f as C,i as l,j as P,l as L,n as B}from"./c-C7SUMNMI.js";import"./c-BPF2NSPV.js";import"./c-P7KNDG34.js";import"./c-CYWLPPUS.js";import"./c-U4TWEIKZ.js";import"./c-HA6INT6J.js";import"./c-WRBKEJD4.js";import"./c-VHNSBD2M.js";var y=0,x=[],b=[],d=null,I=!1,E=!1,v=null,M=null,$=15e3,u=()=>P().mode,p=(e,t)=>Object.assign(new Error(`clay.modeLifecycle: ${e}`),{code:t});function U(){document.dispatchEvent(new Event("clay:modechange"))}function h(e,t="idle",o={}){return l({phase:t,reason:e}),{ok:!1,mode:u(),code:e,...o}}function k(e){for(let t of[...e].reverse())try{t.dispose?.()}catch{}}function D(e){try{e?.reclaimArticle?.()}catch{}try{e?.resume?.()}catch{}}function O(e){document.documentElement.setAttribute("editmode",e?"true":"false")}function G(){try{let e=new URL(window.location.href);if(!e.searchParams.has("editmode"))return;e.searchParams.delete("editmode"),window.history.replaceState(window.history.state,"",`${e.pathname}${e.search}${e.hash}`)}catch(e){console.warn("clayjs: the URL could not be rewritten after the mode switch",e)}}var N=e=>[...e?.edit?.core??[],...e?.edit?.plugins??[],...e?.edit?.late??[]];function X(e){let t=[];for(let o of N(e)){let n=j(o);if(n!=="export"&&typeof n!="function")continue;let r=e.loaded?.[o];r&&t.push(typeof n=="function"?n(r):r.modeParticipant?.())}return t}async function _(e){let t=new Set(b.map(({id:n})=>n)),o=n=>{if(typeof n?.id!="string"||typeof n.prepare!="function")throw p("a participant needs an id and a prepare()","unsupported-plugin");t.has(n.id)||(t.add(n.id),b.push(n))};if(e)for(let n of X(e))o(await n);for(let n of B())o(await n);return[...b].sort((n,r)=>(n.order??0)-(r.order??0))}function z(e){let t=b.findIndex(o=>o.id===e);t!==-1&&b.splice(t,1)}L(z);function H(e,t){if(!e||e.bytes===null)return!1;let o=t??{};return typeof e.seq=="number"&&typeof o.seq=="number"&&e.seq!==o.seq?e.seq>o.seq:(e.etag??null)!==(o.etag??null)}async function V(e=null){let t=u(),o=C,n=new AbortController,r={generation:++y,destination:P().destination,signal:n.signal,represented:null,reader:null,initial:!1,isCurrent:()=>r.generation===y&&!n.signal.aborted};l({phase:"entering",generation:r.generation,reason:null}),e||(I=!0,E=!1,v=null);let s=[],c=[],f=null,i=null,w=!1,m=(async()=>{try{if(e){let a=await import("./c-YZGWSCMT.js");i=await a.prepareReader(e,r),c.push(...await a.importPlan(e,e.edit,{signal:n.signal})),await i?.reconcile(),r.represented=i?i.represented:null,r.reader=i,M=r.represented}f=e?.loaded?.["core/save.js"]??await import("./core/save-JZ7R4ET2.js");for(let a of await _(e)){w=!0;let g=await a.prepare(r);if(g){if(s.push(g),!r.isCurrent())throw p(`"${a.id}" prepared for a stale generation`,"stale-document");if(g.ready&&await g.ready,!r.isCurrent())throw p(`"${a.id}" became ready for a stale generation`,"stale-document")}}if(e||!o){let a=f.adoptEntryBaseline({represented:r.represented});if(a&&a.ok===!1)throw Object.assign(p("the page moved since the last session",a.code||"pending-input"),a);if(H(i?.held??i?.represented,r.represented))throw p("the reader holds a newer file than the session was built from","stale-document")}return!0}catch(a){throw k(s),a}})(),q=null,W=new Promise(a=>{q=setTimeout(()=>{n.abort(),a(!1)},$)}),T;try{T=await Promise.race([m,W])}catch(a){return clearTimeout(q),n.abort(),w?(D(i),h(a?.code||"load-failed","blocked",{message:a?.message})):(D(i),l({phase:"idle",reason:null}),null)}if(clearTimeout(q),!T)return m.catch(()=>{}),k(s.splice(0)),D(i),h("timeout");i?.commit(),l({mode:S?"draft":"edit",isEditMode:!0}),e&&G(),O(!0),f?.setSaveGeneration(r.generation);try{for(let a of s)a.enable()}catch(a){return l({mode:t,isEditMode:o}),O(!1),k(s),n.abort(),e&&(await import("./c-YZGWSCMT.js").catch(()=>null))?.startReader(e,M),h(a?.code||"load-failed","blocked",{message:a?.message})}x=s,l({phase:"idle",reason:null}),U();for(let a of c)e?.announce?.(a);return{ok:!0,mode:u(),changed:t!==u()}}async function J(e){if(!e)return[];let t=[];for(let r of N(e)){let s=j(r);if(s!=="export"&&typeof s!="function")continue;let c=e.loaded?.[r];if(!c)continue;let f=await(typeof s=="function"?s(c):c.modeParticipant?.());if(typeof f?.id!="string"||typeof f.prepare!="function")return null;t.push(f)}t.sort((r,s)=>(r.order??0)-(s.order??0));let o=[],n={generation:y,destination:P().destination,signal:void 0,represented:null,reader:null,initial:!0,isCurrent:()=>!0};for(let r of t){let s=null;try{s=await r.prepare(n)}catch{return null}s&&o.push(s)}return o}async function K(e){return(e?.loaded?.["core/save.js"]??await import("./core/save-JZ7R4ET2.js").catch(()=>null))?.acceptedReceipt?.(y)??null}var R=Symbol("the exit deadline passed");function Q(){let e=null,t=Date.now()+$;return{expired:new Promise(n=>{e=setTimeout(()=>n(R),$)}),remaining:()=>Math.max(0,t-Date.now()),clear:()=>clearTimeout(e)}}async function Y(e,t){if(!e)return;let n=(await import("./c-YZGWSCMT.js")).importPlan(e,e.view);n.catch(()=>{});let r=await Promise.race([n.then(()=>null,s=>s),t]);if(r&&r!==R)throw r}async function Z(e=null){let t=Q();try{return await ee(e,t)}finally{t.clear()}}async function ee(e,t){let o=I;l({phase:"leaving"});let n=await import("./c-H3M6UDNV.js").catch(()=>null);if(!n)return h("load-failed");let r=x;if(o&&!E){v??=J(e);let i=await Promise.race([v,t.expired]);if(i===R)return h("timeout");if(!i)return v=null,l({phase:"idle",reason:null}),null;E=!0,r=[...i,...r],x=r}try{await Y(e,t.expired)}catch(i){return h(i?.code||"load-failed","idle",{message:i?.message})}let s=[],c=null;try{if(c=n.claimOperation("mode"),!c)throw p("another document operation is in progress","busy");for(let w of[...r].reverse()){s.push(w);let m=await Promise.race([Promise.resolve(w.quiesce?.()),t.expired]);if(m===R)throw p("the exit deadline passed while a lease quiesced","timeout");if(m&&m.ok===!1)throw Object.assign(p("a lease refused the exit",m.code||"pending-input"),m)}let i=await n.runSaveBarrier({operation:c,timeoutMs:t.remaining()});if(!i.ok)throw Object.assign(p("the exit barrier refused",i.code||"save-failed"),i)}catch(i){for(let w of[...s].reverse())try{w.resume?.()}catch{}return l({phase:"idle",reason:i?.code||"save-failed"}),{ok:!1,mode:u(),code:i?.code||"save-failed",state:i?.state,pending:i?.pending}}finally{c&&n.releaseOperation(c)}k(r),x=[],I=!1,E=!1,v=null;let f=await K(e)??M;return M=null,e&&(await import("./c-YZGWSCMT.js").catch(()=>null))?.startReader(e,f),y++,O(!1),l({mode:"view",isEditMode:!1,phase:"idle",generation:y,reason:null}),G(),U(),{ok:!0,mode:"view",changed:!0}}function F(e,t=null){if(e!=="edit"&&e!=="view")throw new TypeError(`clay.modeLifecycle: unknown mode "${e}"`);if(d)return d.target===e?d.promise:{ok:!1,mode:u(),code:"busy"};if(e===u())return{ok:!0,mode:u(),changed:!1};if(S||e==="edit"&&!A)return{ok:!1,mode:u(),code:"not-allowed"};let o=(e==="edit"?V(t):Z(t)).finally(()=>{d=null});return d={target:e,promise:o},o}async function re(e,t){let o=await import("./c-YZGWSCMT.js").catch(()=>null);return!o||!o.liveAllowed(t)?null:(d||e===u()||e==="edit"&&o.openResources(),F(e,t))}async function oe(){if(u()==="view")return{ok:!0,mode:"view",changed:!1};if(d)return d.promise;let e=V().finally(()=>{d=null});return d={target:"edit",promise:e},e}export{oe as activateInitial,z as forgetParticipant,F as requestMode,re as switchMode};
1
+ import{a as j}from"./c-MJ7GVE46.js";import{b as S,c as A,f as C,i as l,j as P,l as L,n as B}from"./c-JEWSJHMK.js";import"./c-BPF2NSPV.js";import"./c-P7KNDG34.js";import"./c-CYWLPPUS.js";import"./c-U4TWEIKZ.js";import"./c-HA6INT6J.js";import"./c-WRBKEJD4.js";import"./c-VHNSBD2M.js";var y=0,x=[],b=[],d=null,I=!1,E=!1,v=null,M=null,$=15e3,u=()=>P().mode,p=(e,t)=>Object.assign(new Error(`clay.modeLifecycle: ${e}`),{code:t});function U(){document.dispatchEvent(new Event("clay:modechange"))}function h(e,t="idle",o={}){return l({phase:t,reason:e}),{ok:!1,mode:u(),code:e,...o}}function k(e){for(let t of[...e].reverse())try{t.dispose?.()}catch{}}function D(e){try{e?.reclaimArticle?.()}catch{}try{e?.resume?.()}catch{}}function O(e){document.documentElement.setAttribute("editmode",e?"true":"false")}function G(){try{let e=new URL(window.location.href);if(!e.searchParams.has("editmode"))return;e.searchParams.delete("editmode"),window.history.replaceState(window.history.state,"",`${e.pathname}${e.search}${e.hash}`)}catch(e){console.warn("clayjs: the URL could not be rewritten after the mode switch",e)}}var N=e=>[...e?.edit?.core??[],...e?.edit?.plugins??[],...e?.edit?.late??[]];function X(e){let t=[];for(let o of N(e)){let n=j(o);if(n!=="export"&&typeof n!="function")continue;let r=e.loaded?.[o];r&&t.push(typeof n=="function"?n(r):r.modeParticipant?.())}return t}async function _(e){let t=new Set(b.map(({id:n})=>n)),o=n=>{if(typeof n?.id!="string"||typeof n.prepare!="function")throw p("a participant needs an id and a prepare()","unsupported-plugin");t.has(n.id)||(t.add(n.id),b.push(n))};if(e)for(let n of X(e))o(await n);for(let n of B())o(await n);return[...b].sort((n,r)=>(n.order??0)-(r.order??0))}function z(e){let t=b.findIndex(o=>o.id===e);t!==-1&&b.splice(t,1)}L(z);function H(e,t){if(!e||e.bytes===null)return!1;let o=t??{};return typeof e.seq=="number"&&typeof o.seq=="number"&&e.seq!==o.seq?e.seq>o.seq:(e.etag??null)!==(o.etag??null)}async function V(e=null){let t=u(),o=C,n=new AbortController,r={generation:++y,destination:P().destination,signal:n.signal,represented:null,reader:null,initial:!1,isCurrent:()=>r.generation===y&&!n.signal.aborted};l({phase:"entering",generation:r.generation,reason:null}),e||(I=!0,E=!1,v=null);let s=[],c=[],f=null,i=null,w=!1,m=(async()=>{try{if(e){let a=await import("./c-QLGTY326.js");i=await a.prepareReader(e,r),c.push(...await a.importPlan(e,e.edit,{signal:n.signal})),await i?.reconcile(),r.represented=i?i.represented:null,r.reader=i,M=r.represented}f=e?.loaded?.["core/save.js"]??await import("./core/save-KY3ZMPU4.js");for(let a of await _(e)){w=!0;let g=await a.prepare(r);if(g){if(s.push(g),!r.isCurrent())throw p(`"${a.id}" prepared for a stale generation`,"stale-document");if(g.ready&&await g.ready,!r.isCurrent())throw p(`"${a.id}" became ready for a stale generation`,"stale-document")}}if(e||!o){let a=f.adoptEntryBaseline({represented:r.represented});if(a&&a.ok===!1)throw Object.assign(p("the page moved since the last session",a.code||"pending-input"),a);if(H(i?.held??i?.represented,r.represented))throw p("the reader holds a newer file than the session was built from","stale-document")}return!0}catch(a){throw k(s),a}})(),q=null,W=new Promise(a=>{q=setTimeout(()=>{n.abort(),a(!1)},$)}),T;try{T=await Promise.race([m,W])}catch(a){return clearTimeout(q),n.abort(),w?(D(i),h(a?.code||"load-failed","blocked",{message:a?.message})):(D(i),l({phase:"idle",reason:null}),null)}if(clearTimeout(q),!T)return m.catch(()=>{}),k(s.splice(0)),D(i),h("timeout");i?.commit(),l({mode:S?"draft":"edit",isEditMode:!0}),e&&G(),O(!0),f?.setSaveGeneration(r.generation);try{for(let a of s)a.enable()}catch(a){return l({mode:t,isEditMode:o}),O(!1),k(s),n.abort(),e&&(await import("./c-QLGTY326.js").catch(()=>null))?.startReader(e,M),h(a?.code||"load-failed","blocked",{message:a?.message})}x=s,l({phase:"idle",reason:null}),U();for(let a of c)e?.announce?.(a);return{ok:!0,mode:u(),changed:t!==u()}}async function J(e){if(!e)return[];let t=[];for(let r of N(e)){let s=j(r);if(s!=="export"&&typeof s!="function")continue;let c=e.loaded?.[r];if(!c)continue;let f=await(typeof s=="function"?s(c):c.modeParticipant?.());if(typeof f?.id!="string"||typeof f.prepare!="function")return null;t.push(f)}t.sort((r,s)=>(r.order??0)-(s.order??0));let o=[],n={generation:y,destination:P().destination,signal:void 0,represented:null,reader:null,initial:!0,isCurrent:()=>!0};for(let r of t){let s=null;try{s=await r.prepare(n)}catch{return null}s&&o.push(s)}return o}async function K(e){return(e?.loaded?.["core/save.js"]??await import("./core/save-KY3ZMPU4.js").catch(()=>null))?.acceptedReceipt?.(y)??null}var R=Symbol("the exit deadline passed");function Q(){let e=null,t=Date.now()+$;return{expired:new Promise(n=>{e=setTimeout(()=>n(R),$)}),remaining:()=>Math.max(0,t-Date.now()),clear:()=>clearTimeout(e)}}async function Y(e,t){if(!e)return;let n=(await import("./c-QLGTY326.js")).importPlan(e,e.view);n.catch(()=>{});let r=await Promise.race([n.then(()=>null,s=>s),t]);if(r&&r!==R)throw r}async function Z(e=null){let t=Q();try{return await ee(e,t)}finally{t.clear()}}async function ee(e,t){let o=I;l({phase:"leaving"});let n=await import("./c-KFXW6SZO.js").catch(()=>null);if(!n)return h("load-failed");let r=x;if(o&&!E){v??=J(e);let i=await Promise.race([v,t.expired]);if(i===R)return h("timeout");if(!i)return v=null,l({phase:"idle",reason:null}),null;E=!0,r=[...i,...r],x=r}try{await Y(e,t.expired)}catch(i){return h(i?.code||"load-failed","idle",{message:i?.message})}let s=[],c=null;try{if(c=n.claimOperation("mode"),!c)throw p("another document operation is in progress","busy");for(let w of[...r].reverse()){s.push(w);let m=await Promise.race([Promise.resolve(w.quiesce?.()),t.expired]);if(m===R)throw p("the exit deadline passed while a lease quiesced","timeout");if(m&&m.ok===!1)throw Object.assign(p("a lease refused the exit",m.code||"pending-input"),m)}let i=await n.runSaveBarrier({operation:c,timeoutMs:t.remaining()});if(!i.ok)throw Object.assign(p("the exit barrier refused",i.code||"save-failed"),i)}catch(i){for(let w of[...s].reverse())try{w.resume?.()}catch{}return l({phase:"idle",reason:i?.code||"save-failed"}),{ok:!1,mode:u(),code:i?.code||"save-failed",state:i?.state,pending:i?.pending}}finally{c&&n.releaseOperation(c)}k(r),x=[],I=!1,E=!1,v=null;let f=await K(e)??M;return M=null,e&&(await import("./c-QLGTY326.js").catch(()=>null))?.startReader(e,f),y++,O(!1),l({mode:"view",isEditMode:!1,phase:"idle",generation:y,reason:null}),G(),U(),{ok:!0,mode:"view",changed:!0}}function F(e,t=null){if(e!=="edit"&&e!=="view")throw new TypeError(`clay.modeLifecycle: unknown mode "${e}"`);if(d)return d.target===e?d.promise:{ok:!1,mode:u(),code:"busy"};if(e===u())return{ok:!0,mode:u(),changed:!1};if(S||e==="edit"&&!A)return{ok:!1,mode:u(),code:"not-allowed"};let o=(e==="edit"?V(t):Z(t)).finally(()=>{d=null});return d={target:e,promise:o},o}async function re(e,t){let o=await import("./c-QLGTY326.js").catch(()=>null);return!o||!o.liveAllowed(t)?null:(d||e===u()||e==="edit"&&o.openResources(),F(e,t))}async function oe(){if(u()==="view")return{ok:!0,mode:"view",changed:!1};if(d)return d.promise;let e=V().finally(()=>{d=null});return d={target:"edit",promise:e},e}export{oe as activateInitial,z as forgetParticipant,F as requestMode,re as switchMode};
@@ -1 +1 @@
1
- import"./c-VHNSBD2M.js";var M="data-write",E="Waiting for the page data write to finish";function n(e,t,r){let a=new Error(t);return a.code=e,a.details=r,a}async function U(e){if(typeof e.json=="function")return e.json();let t=await e.text();return t?JSON.parse(t):null}async function R(e){let t={};try{t=await U(e)||{}}catch{}let r=t.message||t.error||e.statusText||`Request failed (${e.status})`,a=new Error(r);return a.status=e.status,a.error=t.error,a.details=t.details,a}function F(e){let t=e.headers?.get?.("ETag");return typeof t=="string"&&t?t:null}function q(e,t){let r=`${t.origin}${t.pathname}`;return e!==void 0?`${r}?data=${encodeURIComponent(JSON.stringify(e))}`:`${t.origin}/_/api${t.pathname}`}function D(e){return!!e&&!e.isDestroyed&&e.sse?.readyState===1}function x(e,t){let r=[],a=null,o=null,c=null,p=i=>i?.source==="disk"&&(a===null||i.etag===a),P=i=>i?.source==="disk"&&(i.etag==null||a===null||i.etag===a),d=()=>{clearTimeout(c),e.removeEventListener("clay:sync-applied",w)},w=i=>{if(r.push(i.detail),!o||!P(i.detail))return;let u=o;o=null,d(),u(!0)};return e.addEventListener("clay:sync-applied",w),{waitFor(i){return a=i,r.some(p)?(d(),Promise.resolve(!0)):new Promise(u=>{o=u,c=setTimeout(()=>{o=null,d(),u(!1)},t)})},cancel:d}}function $(e){let t=new AbortController,r,a=new Promise((c,p)=>{r=p}),o=setTimeout(()=>{let c=new Error("The page data write timed out.");c.name="TimeoutError",t.abort(c),r(c)},e);return{signal:t.signal,waitFor(c){return Promise.race([c,a])},cancel(){clearTimeout(o)}}}async function j(){let[e,t,r,a,o]=await Promise.all([import("./core/save-JZ7R4ET2.js"),import("./core/save-core-I4N6S4ED.js"),import("./c-CL5LSATX.js"),import("./core/unsaved-warning-BP6ZY3PG.js"),import("./core/is-edit-mode-73OXKK5H.js")]);return{...e,...t,...r,...a,...o}}async function H(){let{isDraftMode:e}=await import("./core/is-edit-mode-73OXKK5H.js");return e?n("DataUnavailableInDraft","Page data is kept in this browser for this visitor."):null}function N({supports:e,token:t,fetchImpl:r,getLocation:a,eventTarget:o,getLiveSync:c,loadWriteModules:p=j,syncTimeoutMs:P=12e3,httpTimeoutMs:d=3e4}){let w=!1,i=!1;function u(l,{checkHold:m=!0}={}){if(l.savesAdmitted&&!l.savesAdmitted())throw n("ModeTransition","The page is switching modes. Write page data again when it has settled.");if(i)throw n("DataWriteOutcomeUnknown","A previous page data write has an unknown outcome. Reload before writing again.");if(w)throw n("DataWriteInProgress","Another page data write is already running.");if(l.isSaveInProgress())throw n("SaveInProgress","The page is already being saved.");if(l.saveFateIsUnknown())throw n("SaveOutcomeUnknown","The page's last save has an unknown outcome.");if(m&&(l.savesHeld()||l.isSaveConflicted()))throw n("SavesHeld","The page cannot write data while another save hold is active.");if(l.hasUnsavedChanges())throw n("UnsavedChanges","Save or discard the page's unsaved changes before writing data.");if(!D(c()))throw n("SyncRequired","Page data writes require the sync plugin to be connected.")}async function A(l){l.baselineSettled()||await new Promise(m=>o.addEventListener("clay:baseline-settled",m,{once:!0}))}async function I(l,{rules:m,ifMatch:O}={}){let b=await H();if(b)throw b;if(!await e(M))throw n("DataWriteUnsupported","This host does not support writing page data.");let s=await p();if(!s.isEditMode)throw n("DataWriteUnavailable","Page data writes require an editable page.");await A(s),u(s);let v=O;if(v==null&&(v=s.lastSeenEtag()||await s.seedEtag()),typeof v!="string"||v==="")throw n("DataWriteVersionRequired","Page data writes require a trustworthy document ETag.");u(s),w=!0,s.holdAllSaves(E);let g=null;try{if(s.isSaveInProgress())throw n("SaveInProgress","The page is already being saved.");if(s.saveFateIsUnknown())throw n("SaveOutcomeUnknown","The page's last save has an unknown outcome.");if(s.isSaveConflicted())throw n("SavesHeld","The page cannot write data while another save hold is active.");if(s.hasUnsavedChanges())throw n("UnsavedChanges","Save or discard the page's unsaved changes before writing data.");if(s.savesAdmitted&&!s.savesAdmitted())throw n("ModeTransition","The page is switching modes. Write page data again when it has settled.");if(!D(c()))throw n("SyncRequired","Page data writes require the sync plugin to be connected.");let W={"Content-Type":"application/json","If-Match":v},k=t();k&&(W["Save-Token"]=k);let _=JSON.stringify(l);g=x(o,P);let h=$(d),y;try{y=await h.waitFor(r(q(m,a()),{method:"POST",credentials:"same-origin",redirect:"error",headers:W,body:_,signal:h.signal}))}catch(T){throw h.cancel(),i=!0,Object.assign(n("DataWriteOutcomeUnknown","The page data write has an unknown outcome. Do not retry automatically."),{cause:T,unknownOutcome:!0})}let S;try{if(!y.ok)throw await h.waitFor(R(y));S=await h.waitFor(U(y))}catch(T){throw T?.status?T:(i=!0,Object.assign(n("DataWriteOutcomeUnknown","The page data was written, but its response could not be read."),{cause:T,unknownOutcome:!0}))}finally{h.cancel()}let f=F(y);if(f&&f===s.lastSeenEtag())return g.cancel(),g=null,{data:S,etag:f};let C=await g.waitFor(f);return g=null,C?{data:S,etag:f}:{data:S,etag:f,pageUpdatePending:!0,message:"Written, page update pending."}}finally{g?.cancel(),w=!1,s.releaseAllSaves({reason:E})}}return{writeData:I}}export{N as createPageDataWrite};
1
+ import"./c-VHNSBD2M.js";var M="data-write",E="Waiting for the page data write to finish";function n(e,t,r){let a=new Error(t);return a.code=e,a.details=r,a}async function U(e){if(typeof e.json=="function")return e.json();let t=await e.text();return t?JSON.parse(t):null}async function R(e){let t={};try{t=await U(e)||{}}catch{}let r=t.message||t.error||e.statusText||`Request failed (${e.status})`,a=new Error(r);return a.status=e.status,a.error=t.error,a.details=t.details,a}function F(e){let t=e.headers?.get?.("ETag");return typeof t=="string"&&t?t:null}function q(e,t){let r=`${t.origin}${t.pathname}`;return e!==void 0?`${r}?data=${encodeURIComponent(JSON.stringify(e))}`:`${t.origin}/_/api${t.pathname}`}function D(e){return!!e&&!e.isDestroyed&&e.sse?.readyState===1}function x(e,t){let r=[],a=null,o=null,c=null,p=i=>i?.source==="disk"&&(a===null||i.etag===a),P=i=>i?.source==="disk"&&(i.etag==null||a===null||i.etag===a),d=()=>{clearTimeout(c),e.removeEventListener("clay:sync-applied",w)},w=i=>{if(r.push(i.detail),!o||!P(i.detail))return;let u=o;o=null,d(),u(!0)};return e.addEventListener("clay:sync-applied",w),{waitFor(i){return a=i,r.some(p)?(d(),Promise.resolve(!0)):new Promise(u=>{o=u,c=setTimeout(()=>{o=null,d(),u(!1)},t)})},cancel:d}}function $(e){let t=new AbortController,r,a=new Promise((c,p)=>{r=p}),o=setTimeout(()=>{let c=new Error("The page data write timed out.");c.name="TimeoutError",t.abort(c),r(c)},e);return{signal:t.signal,waitFor(c){return Promise.race([c,a])},cancel(){clearTimeout(o)}}}async function j(){let[e,t,r,a,o]=await Promise.all([import("./core/save-KY3ZMPU4.js"),import("./core/save-core-LBW6DNJ6.js"),import("./c-I4ZVJZC7.js"),import("./core/unsaved-warning-2X7NJNHZ.js"),import("./core/is-edit-mode-QBJUFMVF.js")]);return{...e,...t,...r,...a,...o}}async function H(){let{isDraftMode:e}=await import("./core/is-edit-mode-QBJUFMVF.js");return e?n("DataUnavailableInDraft","Page data is kept in this browser for this visitor."):null}function N({supports:e,token:t,fetchImpl:r,getLocation:a,eventTarget:o,getLiveSync:c,loadWriteModules:p=j,syncTimeoutMs:P=12e3,httpTimeoutMs:d=3e4}){let w=!1,i=!1;function u(l,{checkHold:m=!0}={}){if(l.savesAdmitted&&!l.savesAdmitted())throw n("ModeTransition","The page is switching modes. Write page data again when it has settled.");if(i)throw n("DataWriteOutcomeUnknown","A previous page data write has an unknown outcome. Reload before writing again.");if(w)throw n("DataWriteInProgress","Another page data write is already running.");if(l.isSaveInProgress())throw n("SaveInProgress","The page is already being saved.");if(l.saveFateIsUnknown())throw n("SaveOutcomeUnknown","The page's last save has an unknown outcome.");if(m&&(l.savesHeld()||l.isSaveConflicted()))throw n("SavesHeld","The page cannot write data while another save hold is active.");if(l.hasUnsavedChanges())throw n("UnsavedChanges","Save or discard the page's unsaved changes before writing data.");if(!D(c()))throw n("SyncRequired","Page data writes require the sync plugin to be connected.")}async function A(l){l.baselineSettled()||await new Promise(m=>o.addEventListener("clay:baseline-settled",m,{once:!0}))}async function I(l,{rules:m,ifMatch:O}={}){let b=await H();if(b)throw b;if(!await e(M))throw n("DataWriteUnsupported","This host does not support writing page data.");let s=await p();if(!s.isEditMode)throw n("DataWriteUnavailable","Page data writes require an editable page.");await A(s),u(s);let v=O;if(v==null&&(v=s.lastSeenEtag()||await s.seedEtag()),typeof v!="string"||v==="")throw n("DataWriteVersionRequired","Page data writes require a trustworthy document ETag.");u(s),w=!0,s.holdAllSaves(E);let g=null;try{if(s.isSaveInProgress())throw n("SaveInProgress","The page is already being saved.");if(s.saveFateIsUnknown())throw n("SaveOutcomeUnknown","The page's last save has an unknown outcome.");if(s.isSaveConflicted())throw n("SavesHeld","The page cannot write data while another save hold is active.");if(s.hasUnsavedChanges())throw n("UnsavedChanges","Save or discard the page's unsaved changes before writing data.");if(s.savesAdmitted&&!s.savesAdmitted())throw n("ModeTransition","The page is switching modes. Write page data again when it has settled.");if(!D(c()))throw n("SyncRequired","Page data writes require the sync plugin to be connected.");let W={"Content-Type":"application/json","If-Match":v},k=t();k&&(W["Save-Token"]=k);let _=JSON.stringify(l);g=x(o,P);let h=$(d),y;try{y=await h.waitFor(r(q(m,a()),{method:"POST",credentials:"same-origin",redirect:"error",headers:W,body:_,signal:h.signal}))}catch(T){throw h.cancel(),i=!0,Object.assign(n("DataWriteOutcomeUnknown","The page data write has an unknown outcome. Do not retry automatically."),{cause:T,unknownOutcome:!0})}let S;try{if(!y.ok)throw await h.waitFor(R(y));S=await h.waitFor(U(y))}catch(T){throw T?.status?T:(i=!0,Object.assign(n("DataWriteOutcomeUnknown","The page data was written, but its response could not be read."),{cause:T,unknownOutcome:!0}))}finally{h.cancel()}let f=F(y);if(f&&f===s.lastSeenEtag())return g.cancel(),g=null,{data:S,etag:f};let C=await g.waitFor(f);return g=null,C?{data:S,etag:f}:{data:S,etag:f,pageUpdatePending:!0,message:"Written, page update pending."}}finally{g?.cancel(),w=!1,s.releaseAllSaves({reason:E})}}return{writeData:I}}export{N as createPageDataWrite};
@@ -1 +1 @@
1
- import{a as b,b as C,c as O,d as L,e as R,f as A,g as S,h as T,i as I}from"../c-U35T5NAY.js";import{a as l,b as u,c,d as f}from"../c-WOJ2RTV4.js";import{a as d,b as E,c as m,d as p}from"../c-RGFPLQGV.js";import"../c-QCDVDZIR.js";import"../c-VKEDWYDF.js";import{a}from"../c-MZCOGNZL.js";import"../c-IJUK2GPW.js";import{f as s}from"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";var N=[d,R,A,b,l].join(", "),x=[E,S,C,u],o=null,n=null,i=!1,D=t=>{let e=t.parentNode||t;for(let q of x)q(e)};function r(){i=!0,!n&&(n=a.onAddElement({selectorFilter:N,require:"observed",pausable:!1,debounce:0},t=>{i&&t.forEach(({element:e})=>D(e))}))}function k(){i=!1,n&&(n(),n=null)}function h(){return o||(p(),I(),L(),f(),o={selector:N},s&&r(),o)}h();function w(t=document){return{enable(){for(let e of x)e(t);r()},quiesce(){i=!1},resume(){i=!0},dispose(){k(),m(),T(),O(),c()}}}function y(){return{id:"clay:controls",order:110,prepare(t={}){let e=w();return t.initial!==!0?e:{enable:()=>r(),quiesce:()=>e.quiesce(),resume:()=>e.resume(),dispose:()=>e.dispose()}}}}var F=h;export{w as controlsLease,F as default,h as init,h as install,y as modeParticipant};
1
+ import{a as b,b as C,c as O,d as L,e as R,f as A,g as S,h as T,i as I}from"../c-O54PVIAQ.js";import{a as l,b as u,c,d as f}from"../c-627JDXWT.js";import{a as d,b as E,c as m,d as p}from"../c-SMCZC3V6.js";import"../c-QCDVDZIR.js";import"../c-VKEDWYDF.js";import{a}from"../c-MZCOGNZL.js";import"../c-IJUK2GPW.js";import{f as s}from"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";var N=[d,R,A,b,l].join(", "),x=[E,S,C,u],o=null,n=null,i=!1,D=t=>{let e=t.parentNode||t;for(let q of x)q(e)};function r(){i=!0,!n&&(n=a.onAddElement({selectorFilter:N,require:"observed",pausable:!1,debounce:0},t=>{i&&t.forEach(({element:e})=>D(e))}))}function k(){i=!1,n&&(n(),n=null)}function h(){return o||(p(),I(),L(),f(),o={selector:N},s&&r(),o)}h();function w(t=document){return{enable(){for(let e of x)e(t);r()},quiesce(){i=!1},resume(){i=!0},dispose(){k(),m(),T(),O(),c()}}}function y(){return{id:"clay:controls",order:110,prepare(t={}){let e=w();return t.initial!==!0?e:{enable:()=>r(),quiesce:()=>e.quiesce(),resume:()=>e.resume(),dispose:()=>e.dispose()}}}}var F=h;export{w as controlsLease,F as default,h as init,h as install,y as modeParticipant};
@@ -1 +1 @@
1
- import{R as e,h as i}from"../c-FC5RUFPR.js";import"../c-4ASQPRQL.js";import"../c-GQ6F6IDK.js";import"../c-I2SCCUEW.js";import{a as p}from"../c-5VYOWDTI.js";import"../c-P73XPAOA.js";import"../c-ZPI7M5U5.js";import{a as f,b as m}from"../c-WYFDLITL.js";import"../c-UGHH4MB3.js";import{a as d}from"../c-MZCOGNZL.js";import"../c-EHAR4RJJ.js";import"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-KU3PX7LL.js";import"../c-EQ5NBOGA.js";import{c}from"../c-IJUK2GPW.js";import{f as a}from"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import{s as n,v as o}from"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";function y(){d.onAnyChange({debounce:0,omitChangeDetails:!0,require:"autosave"},()=>{i()&&e.noteActivity()})}function A(){document.addEventListener("input",t=>{t.target.closest(f)&&(t.isTrusted&&!o(n(t.target),"dirty")&&c(),i()&&e.noteActivity())},!0)}function g(){let t=v=>{if(!e.pending())return;let r=v.target;if(!r||typeof r.closest!="function")return;let s=r.closest("input, textarea, select, [contenteditable]");s&&(o(n(s),"dirty")||i()&&e.noteActivity())};document.addEventListener("input",t,!0),document.addEventListener("compositionupdate",t,!0)}var l=!1;function u(){l||document.documentElement.matches(m)&&a&&(l=!0,p(!0),y(),A(),g())}u();var C=u;function L(){return{id:"clay:autosave",order:20,prepare(t={}){return t.initial===!0?{enable(){},quiesce(){},resume(){},dispose(){}}:{enable:u,quiesce(){},resume(){},dispose(){}}}}}export{C as default,u as init,L as modeParticipant};
1
+ import{R as e,h as i}from"../c-IOJOJTPL.js";import"../c-4ASQPRQL.js";import"../c-GQ6F6IDK.js";import"../c-I2SCCUEW.js";import{a as p}from"../c-5VYOWDTI.js";import"../c-T6RRRHX7.js";import"../c-G426P2SE.js";import{a as f,b as m}from"../c-WYFDLITL.js";import"../c-UGHH4MB3.js";import{a as d}from"../c-MZCOGNZL.js";import"../c-CKG4NF7J.js";import"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-OSGTRM4C.js";import"../c-26W3BMWK.js";import{c}from"../c-IJUK2GPW.js";import{f as a}from"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import{s as n,v as o}from"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";function y(){d.onAnyChange({debounce:0,omitChangeDetails:!0,require:"autosave"},()=>{i()&&e.noteActivity()})}function A(){document.addEventListener("input",t=>{t.target.closest(f)&&(t.isTrusted&&!o(n(t.target),"dirty")&&c(),i()&&e.noteActivity())},!0)}function g(){let t=v=>{if(!e.pending())return;let r=v.target;if(!r||typeof r.closest!="function")return;let s=r.closest("input, textarea, select, [contenteditable]");s&&(o(n(s),"dirty")||i()&&e.noteActivity())};document.addEventListener("input",t,!0),document.addEventListener("compositionupdate",t,!0)}var l=!1;function u(){l||document.documentElement.matches(m)&&a&&(l=!0,p(!0),y(),A(),g())}u();var C=u;function L(){return{id:"clay:autosave",order:20,prepare(t={}){return t.initial===!0?{enable(){},quiesce(){},resume(){},dispose(){}}:{enable:u,quiesce(){},resume(){},dispose(){}}}}}export{C as default,u as init,L as modeParticipant};
@@ -1 +1 @@
1
- import{a as m}from"../c-VKEDWYDF.js";import{r as h}from"../c-FC5RUFPR.js";import"../c-4ASQPRQL.js";import"../c-GQ6F6IDK.js";import"../c-I2SCCUEW.js";import"../c-5VYOWDTI.js";import"../c-P73XPAOA.js";import"../c-ZPI7M5U5.js";import"../c-WYFDLITL.js";import"../c-UGHH4MB3.js";import"../c-MZCOGNZL.js";import"../c-EHAR4RJJ.js";import"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-KU3PX7LL.js";import{d as g}from"../c-EQ5NBOGA.js";import"../c-IJUK2GPW.js";import{f as p}from"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import{b as f}from"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";var s=()=>window.clay?.conflicts||null,o=!1,r=null,l=null;function e(t){o||(o=!0,v(),import("../c-EXZOA6XY.js").then(n=>{r=n,n.start(t)},n=>{console.error("clayjs: the conflict notice could not be downloaded; it will try again on the next conflict",n),o=!1,u()}))}function u(){l||=new AbortController;let{signal:t}=l;document.addEventListener("clay:sync-conflicts-changed",w,{signal:t}),document.addEventListener("clay:save-conflict",b,{signal:t}),document.addEventListener("clay:document-upgraded",k,{signal:t}),document.addEventListener("clay:undo-kept",x,{signal:t})}function v(){l?.abort(),l=null}function w(t){s()?.size&&e(t)}function b(t){e(t)}function k(t){e(t)}function x(t){t?.detail?.ok===!0&&e(t)}var C="conflicts",L="undo",y=t=>f.local.get(t)?.count>0;function D(){y(L)&&e(null),y(C)&&import("../c-OIDRZKAF.js").then(t=>{!o&&t.pendingConflicts()>0&&e(null)},()=>{})}function N(){let t=(s()?.list?.()??[]).filter(n=>!n.claimedBy).map(n=>n.id);return t.length?t:h()?["save"]:[]}var a=null,i=0;function E(){let t=++i;g().then(n=>{let c=n.extensions.includes("data-guard-v1")?n.document?.dataGuard?.href:null;return t!==i||typeof c!="string"||!c?null:import("../c-AQVQKFKB.js").then(d=>{t===i&&(a=d,d.start({href:c}))})}).catch(n=>{console.error("clayjs: the data-loss notice could not start; it will try again on the next open",n)})}function j(){i++,a?.stop(),a=null}function A(){return{id:"clay:conflict-notice",order:960,prepare(t={}){return{enable(){t.initial!==!0&&(!r&&!o&&u(),E())},quiesce(){let n=N();if(n.length)throw Object.assign(new Error("clay.conflict-notice: a conflict here is still unresolved"),{code:"conflict",pending:n})},resume(){},dispose(){v(),o=!1,r?.stop?.(),r=null,j()}}}}}m(()=>{p&&(s()?.size?e(null):(u(),D()),E())});export{A as conflictNoticeParticipant,A as modeParticipant};
1
+ import{a as m}from"../c-VKEDWYDF.js";import{r as h}from"../c-IOJOJTPL.js";import"../c-4ASQPRQL.js";import"../c-GQ6F6IDK.js";import"../c-I2SCCUEW.js";import"../c-5VYOWDTI.js";import"../c-T6RRRHX7.js";import"../c-G426P2SE.js";import"../c-WYFDLITL.js";import"../c-UGHH4MB3.js";import"../c-MZCOGNZL.js";import"../c-CKG4NF7J.js";import"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-OSGTRM4C.js";import{d as g}from"../c-26W3BMWK.js";import"../c-IJUK2GPW.js";import{f as p}from"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import{b as f}from"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";var s=()=>window.clay?.conflicts||null,o=!1,r=null,l=null;function e(t){o||(o=!0,v(),import("../c-E37MV4WS.js").then(n=>{r=n,n.start(t)},n=>{console.error("clayjs: the conflict notice could not be downloaded; it will try again on the next conflict",n),o=!1,u()}))}function u(){l||=new AbortController;let{signal:t}=l;document.addEventListener("clay:sync-conflicts-changed",w,{signal:t}),document.addEventListener("clay:save-conflict",b,{signal:t}),document.addEventListener("clay:document-upgraded",k,{signal:t}),document.addEventListener("clay:undo-kept",x,{signal:t})}function v(){l?.abort(),l=null}function w(t){s()?.size&&e(t)}function b(t){e(t)}function k(t){e(t)}function x(t){t?.detail?.ok===!0&&e(t)}var C="conflicts",L="undo",y=t=>f.local.get(t)?.count>0;function D(){y(L)&&e(null),y(C)&&import("../c-OIDRZKAF.js").then(t=>{!o&&t.pendingConflicts()>0&&e(null)},()=>{})}function N(){let t=(s()?.list?.()??[]).filter(n=>!n.claimedBy).map(n=>n.id);return t.length?t:h()?["save"]:[]}var a=null,i=0;function E(){let t=++i;g().then(n=>{let c=n.extensions.includes("data-guard-v1")?n.document?.dataGuard?.href:null;return t!==i||typeof c!="string"||!c?null:import("../c-3JQY5MB2.js").then(d=>{t===i&&(a=d,d.start({href:c}))})}).catch(n=>{console.error("clayjs: the data-loss notice could not start; it will try again on the next open",n)})}function j(){i++,a?.stop(),a=null}function A(){return{id:"clay:conflict-notice",order:960,prepare(t={}){return{enable(){t.initial!==!0&&(!r&&!o&&u(),E())},quiesce(){let n=N();if(n.length)throw Object.assign(new Error("clay.conflict-notice: a conflict here is still unresolved"),{code:"conflict",pending:n})},resume(){},dispose(){v(),o=!1,r?.stop?.(),r=null,j()}}}}}m(()=>{p&&(s()?.size?e(null):(u(),D()),E())});export{A as conflictNoticeParticipant,A as modeParticipant};
@@ -1 +1 @@
1
- import{a as s,b as n,c as m,d as r}from"../c-EQ5NBOGA.js";import{d as l}from"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-HA6INT6J.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";var e=null,u=0;async function p({fresh:f=!1}={}){let o=location.pathname,t=await r({fresh:f});if(location.pathname!==o||n(t)!==o&&(t=await r({fresh:!0}),location.pathname!==o||n(t)!==o))return e;let a=s(t);if(a==="failed"||a==="ok"&&!t.document)return e;let i=a==="ok"?t.document.writable:void 0,c=m(t);return c<u||(u=c,e=typeof i=="boolean"?i:null,l(e)),e}export{p as checkHostPermission};
1
+ import{a as s,b as n,c as m,d as r}from"../c-26W3BMWK.js";import{d as l}from"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-HA6INT6J.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";var e=null,u=0;async function p({fresh:f=!1}={}){let o=location.pathname,t=await r({fresh:f});if(location.pathname!==o||n(t)!==o&&(t=await r({fresh:!0}),location.pathname!==o||n(t)!==o))return e;let a=s(t);if(a==="failed"||a==="ok"&&!t.document)return e;let i=a==="ok"?t.document.writable:void 0,c=m(t);return c<u||(u=c,e=typeof i=="boolean"?i:null,l(e)),e}export{p as checkHostPermission};
@@ -1 +1 @@
1
- import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o}from"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-HA6INT6J.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";export{b as canEdit,h as commitModeFacts,a as isDraftMode,e as isEditMode,g as isOwner,d as learnedHostWritable,f as mode,i as modeState,c as noteHostWritable,k as noteParticipantForget,l as peekModeParticipants,n as registerModeParticipant,o as siteVisibility,j as startsAtImport,m as takeModeParticipants};
1
+ import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o}from"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-HA6INT6J.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";export{b as canEdit,h as commitModeFacts,a as isDraftMode,e as isEditMode,g as isOwner,d as learnedHostWritable,f as mode,i as modeState,c as noteHostWritable,k as noteParticipantForget,l as peekModeParticipants,n as registerModeParticipant,o as siteVisibility,j as startsAtImport,m as takeModeParticipants};
@@ -1,3 +1,3 @@
1
- import{a as h}from"../c-WYFDLITL.js";import{f as m}from"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import{k as b}from"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";function v(t){return(t.getAttribute("type")||"text").toLowerCase()}function d(t){let n=t.tagName;if(n==="INPUT"){let i=v(t);i==="checkbox"||i==="radio"?t.checked?t.setAttribute("checked",""):t.removeAttribute("checked"):t.setAttribute("value",t.value);return}if(n==="TEXTAREA"){t.setAttribute("data-value",t.value);return}if(n==="SELECT"){let i=t.options;for(let o=0;o<i.length;o++)i[o].selected?i[o].setAttribute("selected",""):i[o].removeAttribute("selected")}}function y(t,n=t){let i=t.tagName;if(i==="INPUT"){let o=v(t);o==="checkbox"||o==="radio"?n.checked?t.hasAttribute("checked")||t.setAttribute("checked",""):t.removeAttribute("checked"):n.value!==(t.getAttribute("value")??"")&&t.setAttribute("value",n.value);return}if(i==="TEXTAREA"){let o=n.value.startsWith(`
1
+ import{a as h}from"../c-WYFDLITL.js";import{f as m}from"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import{k as b}from"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";function v(t){return(t.getAttribute("type")||"text").toLowerCase()}function d(t){let n=t.tagName;if(n==="INPUT"){let i=v(t);i==="checkbox"||i==="radio"?t.checked?t.setAttribute("checked",""):t.removeAttribute("checked"):t.setAttribute("value",t.value);return}if(n==="TEXTAREA"){t.setAttribute("data-value",t.value);return}if(n==="SELECT"){let i=t.options;for(let o=0;o<i.length;o++)i[o].selected?i[o].setAttribute("selected",""):i[o].removeAttribute("selected")}}function y(t,n=t){let i=t.tagName;if(i==="INPUT"){let o=v(t);o==="checkbox"||o==="radio"?n.checked?t.hasAttribute("checked")||t.setAttribute("checked",""):t.removeAttribute("checked"):n.value!==(t.getAttribute("value")??"")&&t.setAttribute("value",n.value);return}if(i==="TEXTAREA"){let o=n.value.startsWith(`
2
2
  `)?`
3
3
  `+n.value:n.value;t.textContent!==o&&(t.textContent=o),t.removeAttribute("data-value");return}if(i==="SELECT"){let o=t.options,u=n.options;for(let s=0;s<o.length;s++)u[s]&&u[s].selected?o[s].hasAttribute("selected")||o[s].setAttribute("selected",""):o[s].removeAttribute("selected")}}function E(t=h){let n=`input${t}:not([type="password"]):not([type="hidden"]):not([type="file"])`,i=`textarea${t}`,o=`select${t}`,u=a=>{if(!m)return;let e=a.target;(e.matches(n)&&e.type!=="checkbox"&&e.type!=="radio"||e.matches(i))&&d(e)};document.addEventListener("input",u,!0);let s=a=>{if(!m)return;let e=a.target;if((e.matches(n)&&(e.type==="checkbox"||e.type==="radio")||e.matches(o))&&(d(e),e.type==="radio"&&e.name)){let c=e.form?[...e.form.elements]:[...document.getElementsByName(e.name)];for(let r of c)r!==e&&r.type==="radio"&&r.name===e.name&&r.form===e.form&&r.matches(n)&&d(r)}};document.addEventListener("change",s,!0);let x=[{target:document,type:"input",handler:u,options:!0},{target:document,type:"change",handler:s,options:!0}];return b((a,e)=>{let c=r=>{a.querySelectorAll(r).forEach(f=>{let A=e.original(f);A&&y(f,A)})};c(n),c(i);for(let r of a.querySelectorAll(o))if(e.original(r))for(let l of r.options){let f=e.original(l);f&&f.selected?l.hasAttribute("selected")||l.setAttribute("selected",""):l.removeAttribute("selected")}}),{stop(){for(let{target:a,type:e,handler:c,options:r}of x.splice(0))a.removeEventListener(e,c,r)}}}var p=null;function T(){return p||(p=E(h),p)}T();export{E as default,T as init,T as install};
@@ -1 +1 @@
1
- import{a,b,c,d,e,f}from"../c-ZPI7M5U5.js";import"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-HA6INT6J.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";export{b as beginRecoveryCapture,e as createRecovery,c as finishRecoveryCapture,a as noteRecoveryCapture,d as noteRecoverySettled,f as recovery};
1
+ import{a,b,c,d,e,f}from"../c-G426P2SE.js";import"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-HA6INT6J.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";export{b as beginRecoveryCapture,e as createRecovery,c as finishRecoveryCapture,a as noteRecoveryCapture,d as noteRecoverySettled,f as recovery};
@@ -1 +1 @@
1
- import{A as C,B as D,C as E,D as F,E as G,F as H,G as I,H as J,I as K,J as L,K as M,L as N,M as O,N as P,O as Q,P as R,Q as S,R as T,S as U,T as V,U as W,V as X,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p,o as q,p as r,q as s,r as t,s as u,t as v,u as w,v as x,w as y,x as z,y as A,z as B}from"../c-FC5RUFPR.js";import{a as e}from"../c-4ASQPRQL.js";import"../c-GQ6F6IDK.js";import"../c-I2SCCUEW.js";import"../c-5VYOWDTI.js";import"../c-P73XPAOA.js";import"../c-ZPI7M5U5.js";import"../c-WYFDLITL.js";import"../c-UGHH4MB3.js";import"../c-MZCOGNZL.js";import{b as c,c as d}from"../c-EHAR4RJJ.js";import"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-KU3PX7LL.js";import"../c-EQ5NBOGA.js";import"../c-IJUK2GPW.js";import"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import{K as b,r as a}from"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";export{e as SLICED_SAVE_MIN_BYTES,m as acceptedReceipt,a as addDocumentTransform,n as adoptEntryBaseline,i as autosaveIsSuspended,T as autosaveScheduler,M as baselineSettled,f as claimFailure,y as closeSavePermit,u as conflictResolvedBySync,N as currentPaintSignature,X as default,I as flushSave,D as getLastSavedBytes,B as getLastSavedContents,C as getLastSavedDirty,b as getPageContents,z as getUnsavedChanges,p as holdAllSaves,W as init,V as initHyperclaySaveButton,U as initSaveKeyboardShortcut,d as inspectSaveSize,t as isSaveConflicted,o as modeParticipant,x as openSavePermit,q as releaseAllSaves,R as releaseBootSettle,K as replacePageWith,h as resumeAutosave,v as saveGeneration,s as saveHoldReason,c as saveLimits,J as saveOverwritingConflict,G as savePage,H as savePageForce,L as savePageSoon,S as savePageThrottled,l as saveSession,j as savesAdmitted,r as savesHeld,O as schedulePaintHeal,k as sessionParked,E as setLastSavedBaselines,F as setLastSavedContents,w as setSaveGeneration,A as setUnsavedChanges,Q as styleAdoptionPending,P as styleAdoptionsSettled,g as suspendAutosave};
1
+ import{A as C,B as D,C as E,D as F,E as G,F as H,G as I,H as J,I as K,J as L,K as M,L as N,M as O,N as P,O as Q,P as R,Q as S,R as T,S as U,T as V,U as W,V as X,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p,o as q,p as r,q as s,r as t,s as u,t as v,u as w,v as x,w as y,x as z,y as A,z as B}from"../c-IOJOJTPL.js";import{a as e}from"../c-4ASQPRQL.js";import"../c-GQ6F6IDK.js";import"../c-I2SCCUEW.js";import"../c-5VYOWDTI.js";import"../c-T6RRRHX7.js";import"../c-G426P2SE.js";import"../c-WYFDLITL.js";import"../c-UGHH4MB3.js";import"../c-MZCOGNZL.js";import{b as c,c as d}from"../c-CKG4NF7J.js";import"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-OSGTRM4C.js";import"../c-26W3BMWK.js";import"../c-IJUK2GPW.js";import"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import{K as b,r as a}from"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";export{e as SLICED_SAVE_MIN_BYTES,m as acceptedReceipt,a as addDocumentTransform,n as adoptEntryBaseline,i as autosaveIsSuspended,T as autosaveScheduler,M as baselineSettled,f as claimFailure,y as closeSavePermit,u as conflictResolvedBySync,N as currentPaintSignature,X as default,I as flushSave,D as getLastSavedBytes,B as getLastSavedContents,C as getLastSavedDirty,b as getPageContents,z as getUnsavedChanges,p as holdAllSaves,W as init,V as initHyperclaySaveButton,U as initSaveKeyboardShortcut,d as inspectSaveSize,t as isSaveConflicted,o as modeParticipant,x as openSavePermit,q as releaseAllSaves,R as releaseBootSettle,K as replacePageWith,h as resumeAutosave,v as saveGeneration,s as saveHoldReason,c as saveLimits,J as saveOverwritingConflict,G as savePage,H as savePageForce,L as savePageSoon,S as savePageThrottled,l as saveSession,j as savesAdmitted,r as savesHeld,O as schedulePaintHeal,k as sessionParked,E as setLastSavedBaselines,F as setLastSavedContents,w as setSaveGeneration,A as setUnsavedChanges,Q as styleAdoptionPending,P as styleAdoptionsSettled,g as suspendAutosave};
@@ -1 +1 @@
1
- import{d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as v,t as w,u as x,v as y,w as z,x as A,y as B}from"../c-EHAR4RJJ.js";import{a as d}from"../c-LD6UVV5R.js";import{b as e,h as f}from"../c-PGSBXHUE.js";import"../c-KU3PX7LL.js";import"../c-EQ5NBOGA.js";import"../c-IJUK2GPW.js";import"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import{K as c,k as a,r as b}from"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";export{e as PAGE_FORMAT_META,b as addDocumentTransform,h as addSaveHeaderSource,v as buildSaveRequest,s as claimDocumentOperation,B as exitSave,c as getPageContents,j as isSaveInProgress,m as keepaliveHeld,f as knownPageFormatFloor,q as mintSaveId,d as onSaveAccepted,n as onSaveAttempt,o as onSaveOutcome,a as onSnapshot,u as operationKind,t as releaseDocumentOperation,l as releaseSaveLane,z as replacePageWith,k as reserveSaveLane,r as resetSaveAttempts,x as saveCapturedHtml,y as saveConversion,p as saveFateIsUnknown,w as saveHtml,A as setExitSave,g as setSaveHeader,i as withKeepalive};
1
+ import{d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as v,t as w,u as x,v as y,w as z,x as A,y as B}from"../c-CKG4NF7J.js";import{a as d}from"../c-LD6UVV5R.js";import{b as e,h as f}from"../c-PGSBXHUE.js";import"../c-OSGTRM4C.js";import"../c-26W3BMWK.js";import"../c-IJUK2GPW.js";import"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import{K as c,k as a,r as b}from"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";export{e as PAGE_FORMAT_META,b as addDocumentTransform,h as addSaveHeaderSource,v as buildSaveRequest,s as claimDocumentOperation,B as exitSave,c as getPageContents,j as isSaveInProgress,m as keepaliveHeld,f as knownPageFormatFloor,q as mintSaveId,d as onSaveAccepted,n as onSaveAttempt,o as onSaveOutcome,a as onSnapshot,u as operationKind,t as releaseDocumentOperation,l as releaseSaveLane,z as replacePageWith,k as reserveSaveLane,r as resetSaveAttempts,x as saveCapturedHtml,y as saveConversion,p as saveFateIsUnknown,w as saveHtml,A as setExitSave,g as setSaveHeader,i as withKeepalive};
@@ -1 +1 @@
1
- import{Q as b,z as E}from"../c-FC5RUFPR.js";import"../c-4ASQPRQL.js";import"../c-GQ6F6IDK.js";import"../c-I2SCCUEW.js";import"../c-5VYOWDTI.js";import"../c-P73XPAOA.js";import"../c-ZPI7M5U5.js";import"../c-WYFDLITL.js";import"../c-UGHH4MB3.js";import{a as y}from"../c-MZCOGNZL.js";import{e as S}from"../c-EHAR4RJJ.js";import{a as v}from"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-KU3PX7LL.js";import"../c-EQ5NBOGA.js";import"../c-IJUK2GPW.js";import"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";var T="Site-Data",M='script[data-rules-name~="api"]',R=/(?:^|[{,])\s*["']?site["']?\s*:/,h={html:null,now:null,keys:[]},l=null,i=null,u=h,g=null,m=new Set,f=new Map;function k(){let t=E();if(typeof t!="string"||!t)return!1;if(t===g)return!0;let e=d(w(t));if(!i)i=e;else for(let[n,o]of Object.entries(e)){if(m.has(n))continue;let s=f.get(n);i[n]=s&&s.sent===o?s.value:o}return f.clear(),g=t,u=h,!0}function j(t){let e=l.engine.findRulesIn(t,"api")?.rules?.site;return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function d(t){let e=j(t);if(!e)return{};let n=l.extractData(t,{site:e}).site??{};return Object.fromEntries(Object.entries(n).map(([o,s])=>[o,JSON.stringify(s)]))}var w=t=>new DOMParser().parseFromString(t,"text/html").documentElement;function O(t){if(u.html!==t){let e=d(w(t));u={html:t,now:e,keys:Object.keys(e).filter(n=>e[n]!==i[n])}}return u}function x(t){return!l||typeof t!="string"||!k()?null:{[T]:`keys=${O(t).keys.map(encodeURIComponent).join(",")}`}}function H(t,e,n){let o=document.documentElement,s=j(o),c=d(o),p=[];for(let[r,A]of Object.entries(t)){if(n.has(r)||!s||!Object.hasOwn(s,r)||c[r]!==e[r])continue;let C=new Map([...o.querySelectorAll("[data-richclay], [richclay], [editable], [clay-editable]")].map(a=>[a,a.innerHTML]));y.pause();try{l.applyData(o,{site:{[r]:A}},{site:{[r]:s[r]}}),i[r]=d(o)[r],f.set(r,{sent:e[r],value:i[r]}),p.push(r)}catch(a){console.error(`clayjs: the shared value "${r}" could not be refreshed on this page`,a)}finally{y.resume()}for(let[a,D]of C)a.isConnected&&a.innerHTML!==D&&a.dispatchEvent(new CustomEvent("clay:external-write"))}return p.length&&b(),p}function L(t,e){if(!l||!k())return;f.clear();let n=O(t).now,o=new Set((e?.refused??[]).filter(c=>c.code!=="stale").map(c=>c.key));for(let c of Object.keys(n))o.has(c)?m.add(c):(i[c]=n[c],m.delete(c));if(u=h,!e)return;let s=e.current?H(e.current,n,o):[];document.dispatchEvent(new CustomEvent("clay:site-data",{detail:{written:e.written??[],refused:e.refused??[],applied:s}}))}var U=R.test(document.querySelector(M)?.textContent??"")?(()=>{let t=import("../c-VGG3UR7I.js");return S(x),v((e,n)=>L(e,n.siteData??null)),t.then(e=>{l=e}).catch(e=>console.error("clayjs: shared site edits are not tracked on this page",e))})():Promise.resolve();export{T as SITE_DATA_HEADER,U as ready};
1
+ import{Q as b,z as E}from"../c-IOJOJTPL.js";import"../c-4ASQPRQL.js";import"../c-GQ6F6IDK.js";import"../c-I2SCCUEW.js";import"../c-5VYOWDTI.js";import"../c-T6RRRHX7.js";import"../c-G426P2SE.js";import"../c-WYFDLITL.js";import"../c-UGHH4MB3.js";import{a as y}from"../c-MZCOGNZL.js";import{e as S}from"../c-CKG4NF7J.js";import{a as v}from"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-OSGTRM4C.js";import"../c-26W3BMWK.js";import"../c-IJUK2GPW.js";import"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";var T="Site-Data",M='script[data-rules-name~="api"]',R=/(?:^|[{,])\s*["']?site["']?\s*:/,h={html:null,now:null,keys:[]},l=null,i=null,u=h,g=null,m=new Set,f=new Map;function k(){let t=E();if(typeof t!="string"||!t)return!1;if(t===g)return!0;let e=d(w(t));if(!i)i=e;else for(let[n,o]of Object.entries(e)){if(m.has(n))continue;let s=f.get(n);i[n]=s&&s.sent===o?s.value:o}return f.clear(),g=t,u=h,!0}function j(t){let e=l.engine.findRulesIn(t,"api")?.rules?.site;return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function d(t){let e=j(t);if(!e)return{};let n=l.extractData(t,{site:e}).site??{};return Object.fromEntries(Object.entries(n).map(([o,s])=>[o,JSON.stringify(s)]))}var w=t=>new DOMParser().parseFromString(t,"text/html").documentElement;function O(t){if(u.html!==t){let e=d(w(t));u={html:t,now:e,keys:Object.keys(e).filter(n=>e[n]!==i[n])}}return u}function x(t){return!l||typeof t!="string"||!k()?null:{[T]:`keys=${O(t).keys.map(encodeURIComponent).join(",")}`}}function H(t,e,n){let o=document.documentElement,s=j(o),c=d(o),p=[];for(let[r,A]of Object.entries(t)){if(n.has(r)||!s||!Object.hasOwn(s,r)||c[r]!==e[r])continue;let C=new Map([...o.querySelectorAll("[data-richclay], [richclay], [editable], [clay-editable]")].map(a=>[a,a.innerHTML]));y.pause();try{l.applyData(o,{site:{[r]:A}},{site:{[r]:s[r]}}),i[r]=d(o)[r],f.set(r,{sent:e[r],value:i[r]}),p.push(r)}catch(a){console.error(`clayjs: the shared value "${r}" could not be refreshed on this page`,a)}finally{y.resume()}for(let[a,D]of C)a.isConnected&&a.innerHTML!==D&&a.dispatchEvent(new CustomEvent("clay:external-write"))}return p.length&&b(),p}function L(t,e){if(!l||!k())return;f.clear();let n=O(t).now,o=new Set((e?.refused??[]).filter(c=>c.code!=="stale").map(c=>c.key));for(let c of Object.keys(n))o.has(c)?m.add(c):(i[c]=n[c],m.delete(c));if(u=h,!e)return;let s=e.current?H(e.current,n,o):[];document.dispatchEvent(new CustomEvent("clay:site-data",{detail:{written:e.written??[],refused:e.refused??[],applied:s}}))}var U=R.test(document.querySelector(M)?.textContent??"")?(()=>{let t=import("../c-VGG3UR7I.js");return S(x),v((e,n)=>L(e,n.siteData??null)),t.then(e=>{l=e}).catch(e=>console.error("clayjs: shared site edits are not tracked on this page",e))})():Promise.resolve();export{T as SITE_DATA_HEADER,U as ready};
@@ -1 +1 @@
1
- import{a,b,c}from"../c-FC5RUFPR.js";import"../c-4ASQPRQL.js";import"../c-GQ6F6IDK.js";import"../c-I2SCCUEW.js";import"../c-5VYOWDTI.js";import"../c-P73XPAOA.js";import"../c-ZPI7M5U5.js";import"../c-WYFDLITL.js";import"../c-UGHH4MB3.js";import"../c-MZCOGNZL.js";import"../c-EHAR4RJJ.js";import"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-KU3PX7LL.js";import"../c-EQ5NBOGA.js";import"../c-IJUK2GPW.js";import"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";export{c as bytesUnsaved,b as hasUnsavedChanges,a as reloadAfterDiscard};
1
+ import{a,b,c}from"../c-IOJOJTPL.js";import"../c-4ASQPRQL.js";import"../c-GQ6F6IDK.js";import"../c-I2SCCUEW.js";import"../c-5VYOWDTI.js";import"../c-T6RRRHX7.js";import"../c-G426P2SE.js";import"../c-WYFDLITL.js";import"../c-UGHH4MB3.js";import"../c-MZCOGNZL.js";import"../c-CKG4NF7J.js";import"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-OSGTRM4C.js";import"../c-26W3BMWK.js";import"../c-IJUK2GPW.js";import"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";export{c as bytesUnsaved,b as hasUnsavedChanges,a as reloadAfterDiscard};
@@ -1 +1 @@
1
- import{g as t,t as n,w as i}from"../c-EHAR4RJJ.js";import"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-KU3PX7LL.js";import"../c-EQ5NBOGA.js";import"../c-IJUK2GPW.js";import"../c-C7SUMNMI.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import{G as o,r as a,t as e}from"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import{w as r}from"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";var s=window.clay=window.clay||{};s.internals={captureSnapshot:e,captureForSave:o,addDocumentTransform:a,region:r,save:{saveHtml:n,replacePageWith:i,isSaveInProgress:t}};var l=s.internals;export{l as default};
1
+ import{g as t,t as n,w as i}from"../c-CKG4NF7J.js";import"../c-LD6UVV5R.js";import"../c-PGSBXHUE.js";import"../c-OSGTRM4C.js";import"../c-26W3BMWK.js";import"../c-IJUK2GPW.js";import"../c-JEWSJHMK.js";import"../c-BPF2NSPV.js";import"../c-P7KNDG34.js";import"../c-CYWLPPUS.js";import"../c-U4TWEIKZ.js";import{G as o,r as a,t as e}from"../c-UW6MMZ4V.js";import"../c-XQXZAO7N.js";import"../c-S7LK4KUE.js";import"../c-MOP5KBWZ.js";import"../c-2YYDMLNZ.js";import"../c-HA6INT6J.js";import{w as r}from"../c-ICMAOOGK.js";import"../c-WRBKEJD4.js";import"../c-VHNSBD2M.js";var s=window.clay=window.clay||{};s.internals={captureSnapshot:e,captureForSave:o,addDocumentTransform:a,region:r,save:{saveHtml:n,replacePageWith:i,isSaveInProgress:t}};var l=s.internals;export{l as default};
@@ -1 +1 @@
1
- import{a as X}from"./c-NL4I4KNG.js";import"./c-7SWMYKAI.js";import{f as V}from"./c-46XYM55L.js";import{b as J}from"./c-FILLTJA7.js";import{a as $}from"./c-VKEDWYDF.js";import"./c-UGHH4MB3.js";import"./c-MZCOGNZL.js";import"./c-IJUK2GPW.js";import{b as z}from"./c-CYWLPPUS.js";import{i as W}from"./c-MOP5KBWZ.js";import{a as F}from"./c-2YYDMLNZ.js";import{c as H,l as G}from"./c-HA6INT6J.js";import"./c-ICMAOOGK.js";import"./c-WRBKEJD4.js";import"./c-VHNSBD2M.js";var K={always:["lib/mutation.js","core/preserve-authored.js","core/edit-mode.js","core/mode-key.js","core/stale-host-notice.js","core/page-data.js"],editOnly:["core/snapshot.js","core/persist.js","core/admin-attrs.js","core/save-core.js","core/save.js","core/conflict-notice.js","core/recovery.js","core/unsaved-warning.js","core/autosave.js","attrs/save-freeze.js","attrs/onaftersave.js","attrs/refetch-on-save.js","attrs/add-from.js","lib/cache-bust.js"]},O={richclay:{path:"plugins/richclay.js",editOnly:!0,default:!0},indicator:{path:"plugins/indicator.js",editOnly:!0,default:!1},sync:{path:"sync/live-sync.js",editOnly:!1,default:!1},live:{path:"plugins/live.js",editOnly:!1,default:!1},blockeditor:{path:"plugins/page.js",editOnly:!0,default:!1},"blockeditor-view":{path:"plugins/page-view.js",editOnly:!1,default:!1,internal:!0},sortable:{path:"plugins/sortable.js",editOnly:!0,default:!1},undo:{path:"plugins/undo.js",editOnly:!0,default:!1},unsent:{path:"plugins/unsent.js",editOnly:!0,default:!1},cms:{path:"plugins/cms.js",editOnly:!1,default:!1},quickcrop:{path:"plugins/quickcrop.js",editOnly:!1,default:!1},upload:{path:"plugins/upload.js",editOnly:!0,default:!1},people:{path:"plugins/people.js",editOnly:!1,default:!1},menu:{path:"plugins/menu.js",editOnly:!1,default:!1},wire:{path:"plugins/wire.js",editOnly:!1,default:!1},message:{path:"plugins/message.js",editOnly:!1,default:!1},like:{path:"plugins/like.js",editOnly:!1,default:!1},"ai-edit":{path:"plugins/ai-edit.js",editOnly:!0,default:!1},demo:{path:"plugins/demo.js",editOnly:!1,default:!1},source:{path:"plugins/source.js",editOnly:!0,default:!0},"visitor-drafts":{path:"plugins/visitor-drafts.js",ownerPath:"plugins/visitor-drafts-owner.js",editOnly:!1,default:!1},"visitor-menu":{path:"plugins/visitor-menu.js",editOnly:!0,draft:!0},"bind-text":{path:"plugins/bind-text.js",editOnly:!0,default:!1},derive:{path:"plugins/derive.js",editOnly:!1,default:!1},upgrade:{path:"plugins/upgrade.js",editOnly:!1,default:!1}},S={"core/is-edit-mode.js":()=>import("./core/is-edit-mode-73OXKK5H.js"),"core/draft-mode.js":()=>import("./core/draft-mode-M5XNYBMY.js"),"lib/region-policy.js":()=>import("./lib/region-policy-KWBPROWF.js"),"lib/mutation.js":()=>import("./reader-core-AHOAP5DH.js").then(t=>t.core["lib/mutation.js"]),"core/edit-mode.js":()=>import("./reader-core-AHOAP5DH.js").then(t=>t.core["core/edit-mode.js"]),"core/mode-key.js":()=>import("./reader-core-AHOAP5DH.js").then(t=>t.core["core/mode-key.js"]),"core/stale-host-notice.js":()=>import("./reader-core-AHOAP5DH.js").then(t=>t.core["core/stale-host-notice.js"]),"core/page-data.js":()=>import("./reader-core-AHOAP5DH.js").then(t=>t.core["core/page-data.js"]),"core/preserve-authored.js":()=>import("./reader-core-AHOAP5DH.js").then(t=>t.core["core/preserve-authored.js"]),"core/snapshot.js":()=>import("./core/snapshot-N5MKDGNI.js"),"core/save-core.js":()=>import("./core/save-core-I4N6S4ED.js"),"core/save.js":()=>import("./core/save-JZ7R4ET2.js"),"core/site-edits.js":()=>import("./core/site-edits-C22O53GS.js"),"core/conflict-notice.js":()=>import("./core/conflict-notice-UNDOD4BL.js"),"core/recovery.js":()=>import("./core/recovery-VZF7RJZF.js"),"core/unsaved-warning.js":()=>import("./core/unsaved-warning-BP6ZY3PG.js"),"core/persist.js":()=>import("./core/persist-MX3VYVBN.js"),"core/admin-attrs.js":()=>import("./core/admin-attrs-43JBA6JB.js"),"core/autosave.js":()=>import("./core/autosave-HD7Y7UNV.js"),"attrs/save-freeze.js":()=>import("./attrs/save-freeze-PUYX32AK.js"),"attrs/onaftersave.js":()=>import("./attrs/onaftersave-OKSWEJQF.js"),"attrs/refetch-on-save.js":()=>import("./attrs/refetch-on-save-5CBFUJUF.js"),"attrs/add-from.js":()=>import("./attrs/add-from-T5LJXFFI.js"),"lib/cache-bust.js":()=>import("./lib/cache-bust-BL4KUQAJ.js"),"plugins/richclay.js":()=>import("./plugins/richclay-MXH2GFAZ.js"),"plugins/indicator.js":()=>import("./plugins/indicator-OLPZ4WFI.js"),"sync/live-sync.js":()=>import("./sync/live-sync-RZQSDMZW.js"),"plugins/live.js":()=>import("./plugins/live-DF5YS5AH.js"),"plugins/page.js":()=>import("./plugins/page-GZSU77JS.js"),"plugins/page-view.js":()=>import("./plugins/page-view-7MM3FEAR.js"),"plugins/sortable.js":()=>import("./plugins/sortable-BAG3MSWS.js"),"plugins/undo.js":()=>import("./plugins/undo-KLHAGV75.js"),"plugins/unsent.js":()=>import("./plugins/unsent-OA4RGBUT.js"),"plugins/cms.js":()=>import("./plugins/cms-KG6TCTR3.js"),"plugins/quickcrop.js":()=>import("./plugins/quickcrop-UHURKA2F.js"),"plugins/upload.js":()=>import("./plugins/upload-NZET3DNQ.js"),"plugins/people.js":()=>import("./plugins/people-EBWE337I.js"),"plugins/menu.js":()=>import("./plugins/menu-ESEFQARM.js"),"plugins/wire.js":()=>import("./plugins/wire-S5ATC4QI.js"),"plugins/message.js":()=>import("./plugins/message-LQ6EDH4V.js"),"plugins/like.js":()=>import("./plugins/like-EV7MTZ56.js"),"plugins/ai-edit.js":()=>import("./plugins/ai-edit-WDV2GLDU.js"),"plugins/demo.js":()=>import("./plugins/demo-LMCMBILC.js"),"plugins/visitor-drafts.js":()=>import("./plugins/visitor-drafts-ZE6PCAFP.js"),"plugins/visitor-drafts-owner.js":()=>import("./plugins/visitor-drafts-owner-TLECTYWS.js"),"plugins/visitor-menu.js":()=>import("./plugins/visitor-menu-5XY57JQA.js"),"plugins/bind-text.js":()=>import("./plugins/bind-text-NX46N5UV.js"),"plugins/source.js":()=>import("./plugins/source-OYHDXKTB.js"),"plugins/derive.js":()=>import("./plugins/derive-R4USHZ7P.js"),"plugins/upgrade.js":()=>import("./plugins/upgrade-SZQJYEQQ.js")},re=["visitor-drafts","visitor-menu","richclay","indicator","sortable","undo","unsent","quickcrop","upload","people","menu","upgrade","cms","blockeditor-view","sync","live","blockeditor","message","like","wire","ai-edit","demo","derive","bind-text","source"],ae={cms:["quickcrop","upload","menu"],"ai-edit":["wire"],blockeditor:["live","sync","upload","wire","ai-edit"]},ce={blockeditor:["richclay"]},le=new Set(["source","sortable","menu","upgrade"]),ue=new Set(["wire","ai-edit"]);function Q(t,e,o,s){let u=t.get(e);if(u)for(let i of u.split(",")){let r=i.trim();if(r){if(!O[r]||O[r].internal){console.warn(`clayjs: unknown plugin "${r}"`);continue}s(o,r)}}}var de=["sync","live","blockeditor","upload","quickcrop","cms","people","menu","upgrade","wire","ai-edit","demo","source"],pe="core/site-edits.js",fe=["attrs/refetch-on-save.js","core/conflict-notice.js"],me="https://hyperclay.com/templates/";function P(t,e,{isDraftMode:o=!1,hasSap:s=!1,hasVariants:u=!1,hasSite:i=!1,canEdit:r=!1,templateSource:h=null}={}){let d=[...K.always];e&&d.push(...K.editOnly),e&&!o&&i&&d.splice(d.indexOf("core/save.js")+1,0,pe);let p=new Set;Q(t,"plugins",p,(a,c)=>a.add(c));let y=new Set;Q(t,"exclude",y,(a,c)=>a.add(c));let n=new Set(p);for(let[a,c]of Object.entries(O))c.default&&n.add(a);s&&n.add("derive"),u&&(e||r)&&n.add("menu"),!e&&!o&&n.has("blockeditor")&&n.add("blockeditor-view");for(let a of[...n])if(!y.has(a)&&!(O[a].editOnly&&!e))for(let c of ae[a]||[])n.add(c);y.has("wire")&&n.delete("ai-edit");for(let a of y)n.delete(a);if(o){let a=n.has("blockeditor");for(let c of de)a&&(c==="blockeditor"||c==="live")||n.delete(c);for(let c of fe){let j=d.indexOf(c);j>-1&&d.splice(j,1)}n.add("visitor-drafts")}!o&&r&&!y.has("upgrade")&&h&&h.startsWith(me)&&n.add("upgrade");for(let[a,c]of Object.entries(ce))if(n.has(a))for(let j of c)p.has(j)||n.delete(j);let g=[],w=[];for(let a of re){if(!n.has(a))continue;let c=O[a];if(c.editOnly&&!e||c.draft&&!o)continue;(le.has(a)||ue.has(a)&&n.has("blockeditor")?w:g).push(c.ownerPath&&!o?c.ownerPath:c.path)}return{core:d,plugins:g,late:w}}var I="data-deleted-at",R=(t,e)=>window.clay?.undo?.commit?window.clay.undo.commit(t,e):e(),Y=(t,e)=>t.dispatchEvent(new CustomEvent(e,{bubbles:!0})),_=Object.assign((t,{at:e=new Date().toISOString()}={})=>(R("Move to Trash",()=>t.setAttribute(I,e)),Y(t,"clay:trashed"),{undo:()=>_.restore(t)}),{is:t=>!!t.getAttribute(I),restore(t){R("Restore",()=>t.removeAttribute(I)),Y(t,"clay:restored")},purge(t){R("Delete forever",()=>t.remove())}});var Z=50,ge=1e3,he='[clay~="no-snapshot"], [no-snapshot], [snapshot-remove]',L=0,ye=t=>{let e=t.nodeType===1?t:t.parentElement;if(!e)return"a detached node";let o=e.localName;return e.id?o+="#"+e.id:e.classList.length&&(o+="."+[...e.classList].slice(0,2).join(".")),"<"+o+">"};function je(t){let e=window.clay?.region?.resolveRegionPolicy;if(!e)return null;let o=s=>!!s&&!s.closest(he)&&e(s).dirtyTracked;for(let s of t){if(s.type==="attributes"&&G(s.attributeName,s.target))continue;let u=s.target.nodeType===1?s.target:s.target.parentElement;if(o(u)&&!(s.type==="childList"&&![...s.addedNodes,...s.removedNodes].some(i=>i.nodeType!==1||o(i))))return s.target}return null}function q(t){let e=window.clay,o=e.Mutation,s=new Set,u=(m,f)=>{s.has(m)||(s.add(m),console.warn("clay.effect: "+f))},i=!1,r=!1,h=0,d=0;L&&e.isEditMode&&console.warn("clay.effect: an effect was created inside another effect, so a new one starts on every run. Create effects once, in clay.start.");let p=()=>{let m=Date.now();m-h>ge&&(h=m,d=0),++d>Z&&u("loop",`this effect ran more than ${Z} times in a second. Something keeps changing the document, often a timer or async callback the effect started.`)},y=()=>{if(i=!1,r)return;let m=null;o.pause(),L++;try{e.isEditMode===!0&&(p(),s.has("saved")||(m=new MutationObserver(()=>{}),m.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,characterData:!0})));let f=t();f&&typeof f.then=="function"&&(j(),console.error("clay.effect: fn returned a promise. It must be synchronous, so this effect was stopped."))}catch(f){console.error("clay.effect:",f)}finally{L--,o.resume();let f=m?m.takeRecords():[];if(m?.disconnect(),f.length){let E=je(f);E&&u("saved",`this effect changed ${ye(E)}, which is saved with the file. Effect writes never mark the page unsaved, so a merge can leave it dirty with no save scheduled. Draw derived values inside clay="no-dirty" or clay="editor-ui".`)}}},n=()=>{i||r||(i=!0,queueMicrotask(y))},g=["undo","redo"],w=()=>{for(let m of g)e.undo?.on?.(m,n)},a=m=>{m.detail?.applied?.length&&n()},c=o.onAnyChange({debounce:0,require:"observed"},n);document.addEventListener("clay:sync-applied",n),document.addEventListener("clay:site-data",a),document.addEventListener("clay:modechange",w),w();let j=()=>{r=!0,c(),document.removeEventListener("clay:sync-applied",n),document.removeEventListener("clay:site-data",a),document.removeEventListener("clay:modechange",w);for(let m of g)e.undo?.off?.(m,n)};return n(),j}Object.defineProperty(q,"running",{get:()=>L>0});var ve={overtype:()=>import("./c-PQ5LK6QE.js"),marked:()=>import("./c-XN6MBKI6.js"),highlight:()=>import("./c-33JJ6CBX.js"),"highlight/bash":()=>import("./c-KI7M4AY3.js"),"highlight/css":()=>import("./c-H4LG442Q.js"),"highlight/javascript":()=>import("./c-VDSS4K3Z.js"),"highlight/json":()=>import("./c-NRPJEVJS.js"),"highlight/python":()=>import("./c-5YIHJ3TJ.js"),"highlight/xml":()=>import("./c-WN5AY3OZ.js"),uimotion:()=>import("./c-B5CS55WR.js")};function we(t){let e=new Map;function o(s){return Object.hasOwn(t,s)?(e.has(s)||e.set(s,t[s]().catch(u=>{throw e.delete(s),u})),e.get(s)):Promise.reject(new Error(`clay.assets: no asset named "${s}"`))}return{load:o,names:()=>Object.keys(t)}}var ee=we(ve);function M(t,e){if(!t||!e)return t;let o={...e,...t};for(let s of["entries","imports","bootImports"])o[s]={...e[s],...t[s]};return o}var be="plugins/page.js";function T(t,e,{isEditMode:o=!1,isDraftMode:s=!1,hasSapJs:u=!1}={},i=document){if(!t?.entries)return 0;let r=[...e];for(let n of e)for(let g of t.bootImports?.[n]??[])u&&g==="vendor/sap-core.vendor.js"||r.push(g);o&&!s&&r.push(...t.editBootImports??[]),o&&!s&&e.includes(be)&&r.push(...t.editorBootImports??[]);let h=new Set,d=n=>{if(!(!n||h.has(n))){h.add(n);for(let g of t.imports?.[n]??[])d(g)}};for(let n of r)d(t.entries[n]);let p=new Set([...i.querySelectorAll('link[rel="modulepreload"]')].map(n=>n.href)),y=0;for(let n of h){let g=new URL(n,t.base).href;if(p.has(g))continue;let w=i.createElement("link");w.rel="modulepreload",w.href=g,w.setAttribute("clay","no-save"),i.head.append(w),y++}return y}var k=Object.fromEntries(Object.entries(O).flatMap(([t,e])=>e.ownerPath?[[e.path,t],[e.ownerPath,t]]:[[e.path,t]])),v={},te=new Set;function oe(t){te.has(t)||(te.add(t),document.dispatchEvent(new CustomEvent("clay:plugin-ready",{detail:{plugin:k[t]}})))}var Oe=(t,e,o,s)=>()=>t().then(u=>(T(M(e,u),[...o.core,...o.plugins,...o.late],{isEditMode:!0,hasSapJs:s}),u));function Se(){return new Promise(t=>$(t))}function A(){let t=document.querySelector('meta[name="hyper-source"]');return t?t.getAttribute("content"):null}async function Ve(t,e,o,s=null,u=null,i=null){V(),(await S["core/draft-mode.js"]()).noteBootParams(e),await Se();let h=await S["core/is-edit-mode.js"](),{isEditMode:d,isDraftMode:p,isOwner:y,siteVisibility:n,canEdit:g}=h;d&&!p&&import("./core/host-permission-5BYP24GC.js").then(l=>l.checkHostPermission()).catch(()=>{}),window.__hyperclayEditMode=d;let w=await S["lib/region-policy.js"](),a=!!document.querySelector("[sap]"),c=document.querySelectorAll("head style[clay-variant]").length>=2,j=/(?:^|[{,])\s*["']?site["']?\s*:/.test(document.querySelector('script[data-rules-name~="api"]')?.textContent??""),m=!!document.querySelector('script[src*="sap.js"]');F.holdSettle=a&&d;let f=P(e,d,{isDraftMode:p,hasSap:a,hasVariants:c,hasSite:j,canEdit:g,templateSource:A()});f.plugins.includes("plugins/demo.js")&&h.commitModeFacts({destination:"demo"}),T(M(s,u),[...f.core,...f.plugins],{isEditMode:d,isDraftMode:p,hasSapJs:m}),(d||p)&&!u&&i&&i().then(l=>T(M(s,l),[...f.core,...f.plugins],{isEditMode:d,isDraftMode:p,hasSapJs:m})).catch(()=>{});let E,ne=new Promise(l=>{E=l}),ie={sync:f.plugins.includes("sync/live-sync.js")};for(let l of f.core)v[l]=await S[l](),v[l].install?.();if(Pe(v,{isDraftMode:p,isOwner:y,siteVisibility:n},w),se(v),document.documentElement.getAttribute("clay-mode-switch")==="live"){let l=P(e,!0,{isDraftMode:p,hasSap:a,hasVariants:c,hasSite:j,canEdit:g,templateSource:A()});v["core/edit-mode.js"].noteLiveSwitch({edit:l,view:P(e,!1,{isDraftMode:p,hasSap:a,hasVariants:c,hasSite:j,canEdit:g,templateSource:A()}),loaded:v,modules:S,attach:(b,x)=>{U(b,x);let D=k[b],C=window.clay.plugins;D&&Array.isArray(C)&&!C.includes(D)&&(window.clay.plugins=Object.freeze([...C,D]))},attachEditCore:se,announce:oe,loadEditHints:i?Oe(i,s,l,m):null,late:ne})}await v["core/edit-mode.js"].activateInitialMode(),window.clay.plugins=Object.freeze([...f.plugins,...f.late].map(l=>k[l]));let B=d?f:P(e,!0,{isDraftMode:p,hasSap:a,hasVariants:c,hasSite:j,canEdit:g,templateSource:A()});window.clay.editPlugins=Object.freeze([...B.plugins,...B.late].map(l=>k[l]));for(let l of f.plugins){let b;try{b=await S[l]()}catch(x){console.error(`clayjs: plugin "${l}" failed to load, continuing without it:`,x);continue}v[l]=b,l==="plugins/visitor-drafts.js"&&await b.restoring,l==="plugins/page-view.js"&&b.start(ie),U(l,b,v)}await Promise.allSettled(f.plugins.map(l=>v[l]?.ready).filter(Boolean)),a&&ke(v),Le(h),o(window.clay),document.dispatchEvent(new CustomEvent("clay:ready",{detail:{clay:window.clay}})),f.late.length?Ee(f.late,h).then(E,E):E()}var N=(t,e)=>O[k[t]]?.editOnly&&!e.startsAtImport();async function Ee(t,e){try{await window.clay.blockeditor?.ready}catch{}for(let o of t)if(!N(o,e))try{let s=await S[o]();if(N(o,e)||(v[o]=s,U(o,s,v),await s.ready,N(o,e)))continue;oe(o)}catch(s){console.error(`clayjs: plugin "${o}" failed to load, continuing without it:`,s),document.dispatchEvent(new CustomEvent("clay:plugin-failed",{detail:{plugin:k[o]}}))}}function ke(t){let e=t["core/save.js"],o=null;try{o=e?e.currentPaintSignature():null}catch(s){console.error("clayjs: could not read the page's painted values:",s)}try{window.Sap&&typeof window.Sap.mount=="function"&&window.Sap.mount()}catch(s){console.error("clayjs: the derive engine failed to mount:",s)}finally{e?.releaseBootSettle()}e&&o!=null&&e.schedulePaintHeal(o)}function Pe(t,{isDraftMode:e,isOwner:o,siteVisibility:s},u){let i=window.clay,r=t["lib/mutation.js"],h=t["core/edit-mode.js"];Object.assign(i,{toggleEditMode:h.toggleEditMode,setMode:h.setMode,modeLifecycle:h.modeLifecycle,isDraftMode:e,isOwner:o,siteVisibility:s,Mutation:r.default,region:u.windowRegionShape});for(let p of["mode","isEditMode","canEdit"])Object.defineProperty(i,p,{get:()=>h[p],enumerable:!0,configurable:!0});i.assets=ee;let d=t["core/page-data.js"];i.readData=d.readData,i.writeData=d.writeData,i.ephemeral=H,i.storage=z,i.host={get versions(){return import("./c-Q2CB57UG.js").then(p=>p.hostVersions())}},i.trash=_,i.derived=W,i.effect=q,i.style=X,i.morph=(p,y,n)=>J().then(({morph:g})=>g(p,y,n))}function se(t){let e=window.clay,o=t["core/save.js"];if(o){let r=o.savePage||o.default;r.force=o.savePageForce,r.overwrite=o.saveOverwritingConflict,r.flush=o.flushSave,r.soon=o.savePageSoon,r.limits=o.saveLimits,r.inspect=o.inspectSaveSize,e.save!==r&&typeof e.save?.replace=="function"&&(r.replace=e.save.replace),e.save!==r&&(e.save=r)}e.hasUnsavedChanges=t["core/unsaved-warning.js"]?.hasUnsavedChanges??e.hasUnsavedChanges??(()=>!1);let s=t["core/snapshot.js"];s&&(e.getHTML||(e.getHTML=s.getPageContents),e.addDocumentTransform||(e.addDocumentTransform=s.addDocumentTransform),e.onSnapshot||(e.onSnapshot=s.onSnapshot));let u=t["lib/cache-bust.js"];u&&!e.cacheBust&&(e.cacheBust=u.default);let i=t["core/recovery.js"];i&&!e.recovery&&(e.recovery=i.recovery)}function U(t,e,o=v){let s=window.clay;t==="plugins/undo.js"?s.undo=e.undo||e.default:t==="plugins/unsent.js"?s.unsent=e.unsent:t==="sync/live-sync.js"?(s.morph=e.morph,s.conflicts=e.conflicts,o["core/page-data.js"].setPageDataLiveSync(e.liveSync)):t==="plugins/live.js"?s.live=e.live:t==="plugins/page.js"?s.blockeditor=e.page:t==="plugins/upgrade.js"?(s.save=s.save||{},s.save.replace=e.replace):t==="plugins/cms.js"?s.cms=e.cms||e.default:t==="plugins/upload.js"?s.upload=e.upload||e.default:t==="plugins/people.js"?(s.people=e.people,s.author=e.author,Object.defineProperty(s,"me",{get:e.currentMe,configurable:!0,enumerable:!0})):t==="plugins/message.js"?s.message=e.message:t==="plugins/like.js"?s.like=e.like:t==="plugins/wire.js"?s.wire=e.wire||e.default:t==="plugins/ai-edit.js"?s.aiEdit=e.aiEdit||e.default:t==="plugins/demo.js"?s.demo=e.demo:t==="plugins/richclay.js"?s.RichClay=e.RichClay||e.default:t==="plugins/quickcrop.js"?s.quickcrop=e.quickcrop||e.default:t==="plugins/sortable.js"?s.sortable=e.sortable:t==="plugins/source.js"?s.source=e.source||e.default:t==="plugins/visitor-drafts.js"||t==="plugins/visitor-drafts-owner.js"?s.visitorDrafts=e.visitorDrafts:t==="plugins/bind-text.js"&&(s.bindText=e.bindText)}function Le(t){t.isEditMode||document.addEventListener("click",e=>{e.target.closest?.("[trigger-save]")&&(t.isEditMode||(console.info("clayjs: you're not the owner of this page; changes stay local"),document.dispatchEvent(new CustomEvent("clay:view-save-attempt"))))})}export{Ve as boot,ke as mountDerivedEngine};
1
+ import{a as X}from"./c-NL4I4KNG.js";import"./c-7SWMYKAI.js";import{f as V}from"./c-46XYM55L.js";import{b as J}from"./c-FILLTJA7.js";import{a as $}from"./c-VKEDWYDF.js";import"./c-UGHH4MB3.js";import"./c-MZCOGNZL.js";import"./c-IJUK2GPW.js";import{b as z}from"./c-CYWLPPUS.js";import{i as W}from"./c-MOP5KBWZ.js";import{a as F}from"./c-2YYDMLNZ.js";import{c as H,l as G}from"./c-HA6INT6J.js";import"./c-ICMAOOGK.js";import"./c-WRBKEJD4.js";import"./c-VHNSBD2M.js";var K={always:["lib/mutation.js","core/preserve-authored.js","core/edit-mode.js","core/mode-key.js","core/stale-host-notice.js","core/page-data.js"],editOnly:["core/snapshot.js","core/persist.js","core/admin-attrs.js","core/save-core.js","core/save.js","core/conflict-notice.js","core/recovery.js","core/unsaved-warning.js","core/autosave.js","attrs/save-freeze.js","attrs/onaftersave.js","attrs/refetch-on-save.js","attrs/add-from.js","lib/cache-bust.js"]},O={richclay:{path:"plugins/richclay.js",editOnly:!0,default:!0},indicator:{path:"plugins/indicator.js",editOnly:!0,default:!1},sync:{path:"sync/live-sync.js",editOnly:!1,default:!1},live:{path:"plugins/live.js",editOnly:!1,default:!1},blockeditor:{path:"plugins/page.js",editOnly:!0,default:!1},"blockeditor-view":{path:"plugins/page-view.js",editOnly:!1,default:!1,internal:!0},sortable:{path:"plugins/sortable.js",editOnly:!0,default:!1},undo:{path:"plugins/undo.js",editOnly:!0,default:!1},unsent:{path:"plugins/unsent.js",editOnly:!0,default:!1},cms:{path:"plugins/cms.js",editOnly:!1,default:!1},quickcrop:{path:"plugins/quickcrop.js",editOnly:!1,default:!1},upload:{path:"plugins/upload.js",editOnly:!0,default:!1},people:{path:"plugins/people.js",editOnly:!1,default:!1},menu:{path:"plugins/menu.js",editOnly:!1,default:!1},wire:{path:"plugins/wire.js",editOnly:!1,default:!1},message:{path:"plugins/message.js",editOnly:!1,default:!1},like:{path:"plugins/like.js",editOnly:!1,default:!1},"ai-edit":{path:"plugins/ai-edit.js",editOnly:!0,default:!1},demo:{path:"plugins/demo.js",editOnly:!1,default:!1},source:{path:"plugins/source.js",editOnly:!0,default:!0},"visitor-drafts":{path:"plugins/visitor-drafts.js",ownerPath:"plugins/visitor-drafts-owner.js",editOnly:!1,default:!1},"visitor-menu":{path:"plugins/visitor-menu.js",editOnly:!0,draft:!0},"bind-text":{path:"plugins/bind-text.js",editOnly:!0,default:!1},derive:{path:"plugins/derive.js",editOnly:!1,default:!1},upgrade:{path:"plugins/upgrade.js",editOnly:!1,default:!1}},S={"core/is-edit-mode.js":()=>import("./core/is-edit-mode-QBJUFMVF.js"),"core/draft-mode.js":()=>import("./core/draft-mode-M5XNYBMY.js"),"lib/region-policy.js":()=>import("./lib/region-policy-KWBPROWF.js"),"lib/mutation.js":()=>import("./reader-core-7JOVUCEQ.js").then(t=>t.core["lib/mutation.js"]),"core/edit-mode.js":()=>import("./reader-core-7JOVUCEQ.js").then(t=>t.core["core/edit-mode.js"]),"core/mode-key.js":()=>import("./reader-core-7JOVUCEQ.js").then(t=>t.core["core/mode-key.js"]),"core/stale-host-notice.js":()=>import("./reader-core-7JOVUCEQ.js").then(t=>t.core["core/stale-host-notice.js"]),"core/page-data.js":()=>import("./reader-core-7JOVUCEQ.js").then(t=>t.core["core/page-data.js"]),"core/preserve-authored.js":()=>import("./reader-core-7JOVUCEQ.js").then(t=>t.core["core/preserve-authored.js"]),"core/snapshot.js":()=>import("./core/snapshot-N5MKDGNI.js"),"core/save-core.js":()=>import("./core/save-core-LBW6DNJ6.js"),"core/save.js":()=>import("./core/save-KY3ZMPU4.js"),"core/site-edits.js":()=>import("./core/site-edits-M44KWAQN.js"),"core/conflict-notice.js":()=>import("./core/conflict-notice-HTF6CECH.js"),"core/recovery.js":()=>import("./core/recovery-YJS7CI66.js"),"core/unsaved-warning.js":()=>import("./core/unsaved-warning-2X7NJNHZ.js"),"core/persist.js":()=>import("./core/persist-TRXZPS6T.js"),"core/admin-attrs.js":()=>import("./core/admin-attrs-H26XE2AE.js"),"core/autosave.js":()=>import("./core/autosave-U5UIKPM3.js"),"attrs/save-freeze.js":()=>import("./attrs/save-freeze-PUYX32AK.js"),"attrs/onaftersave.js":()=>import("./attrs/onaftersave-OKSWEJQF.js"),"attrs/refetch-on-save.js":()=>import("./attrs/refetch-on-save-5CBFUJUF.js"),"attrs/add-from.js":()=>import("./attrs/add-from-T5LJXFFI.js"),"lib/cache-bust.js":()=>import("./lib/cache-bust-BL4KUQAJ.js"),"plugins/richclay.js":()=>import("./plugins/richclay-XL64ZGOZ.js"),"plugins/indicator.js":()=>import("./plugins/indicator-D5PZJGVS.js"),"sync/live-sync.js":()=>import("./sync/live-sync-2UYQQSD7.js"),"plugins/live.js":()=>import("./plugins/live-J52JO243.js"),"plugins/page.js":()=>import("./plugins/page-F7JG3JZX.js"),"plugins/page-view.js":()=>import("./plugins/page-view-QPRXXAT3.js"),"plugins/sortable.js":()=>import("./plugins/sortable-HE7Q4KKP.js"),"plugins/undo.js":()=>import("./plugins/undo-5MFW3OD5.js"),"plugins/unsent.js":()=>import("./plugins/unsent-OA4RGBUT.js"),"plugins/cms.js":()=>import("./plugins/cms-KG6TCTR3.js"),"plugins/quickcrop.js":()=>import("./plugins/quickcrop-UHURKA2F.js"),"plugins/upload.js":()=>import("./plugins/upload-YMBDWTLR.js"),"plugins/people.js":()=>import("./plugins/people-FEMXINJK.js"),"plugins/menu.js":()=>import("./plugins/menu-KCCEDUMJ.js"),"plugins/wire.js":()=>import("./plugins/wire-I3TDGBGZ.js"),"plugins/message.js":()=>import("./plugins/message-LQ6EDH4V.js"),"plugins/like.js":()=>import("./plugins/like-EV7MTZ56.js"),"plugins/ai-edit.js":()=>import("./plugins/ai-edit-T2SM7TRD.js"),"plugins/demo.js":()=>import("./plugins/demo-57MJ3GOO.js"),"plugins/visitor-drafts.js":()=>import("./plugins/visitor-drafts-DCVGLCBX.js"),"plugins/visitor-drafts-owner.js":()=>import("./plugins/visitor-drafts-owner-QLF6IALP.js"),"plugins/visitor-menu.js":()=>import("./plugins/visitor-menu-VNWJZ6PV.js"),"plugins/bind-text.js":()=>import("./plugins/bind-text-NX46N5UV.js"),"plugins/source.js":()=>import("./plugins/source-5RTLTD75.js"),"plugins/derive.js":()=>import("./plugins/derive-TRMYDN7J.js"),"plugins/upgrade.js":()=>import("./plugins/upgrade-ORK24FK6.js")},re=["visitor-drafts","visitor-menu","richclay","indicator","sortable","undo","unsent","quickcrop","upload","people","menu","upgrade","cms","blockeditor-view","sync","live","blockeditor","message","like","wire","ai-edit","demo","derive","bind-text","source"],ae={cms:["quickcrop","upload","menu"],"ai-edit":["wire"],blockeditor:["live","sync","upload","wire","ai-edit"]},ce={blockeditor:["richclay"]},le=new Set(["source","sortable","menu","upgrade"]),ue=new Set(["wire","ai-edit"]);function Q(t,e,o,s){let u=t.get(e);if(u)for(let i of u.split(",")){let r=i.trim();if(r){if(!O[r]||O[r].internal){console.warn(`clayjs: unknown plugin "${r}"`);continue}s(o,r)}}}var de=["sync","live","blockeditor","upload","quickcrop","cms","people","menu","upgrade","wire","ai-edit","demo","source"],pe="core/site-edits.js",fe=["attrs/refetch-on-save.js","core/conflict-notice.js"],me="https://hyperclay.com/templates/";function P(t,e,{isDraftMode:o=!1,hasSap:s=!1,hasVariants:u=!1,hasSite:i=!1,canEdit:r=!1,templateSource:h=null}={}){let d=[...K.always];e&&d.push(...K.editOnly),e&&!o&&i&&d.splice(d.indexOf("core/save.js")+1,0,pe);let p=new Set;Q(t,"plugins",p,(a,c)=>a.add(c));let y=new Set;Q(t,"exclude",y,(a,c)=>a.add(c));let n=new Set(p);for(let[a,c]of Object.entries(O))c.default&&n.add(a);s&&n.add("derive"),u&&(e||r)&&n.add("menu"),!e&&!o&&n.has("blockeditor")&&n.add("blockeditor-view");for(let a of[...n])if(!y.has(a)&&!(O[a].editOnly&&!e))for(let c of ae[a]||[])n.add(c);y.has("wire")&&n.delete("ai-edit");for(let a of y)n.delete(a);if(o){let a=n.has("blockeditor");for(let c of de)a&&(c==="blockeditor"||c==="live")||n.delete(c);for(let c of fe){let j=d.indexOf(c);j>-1&&d.splice(j,1)}n.add("visitor-drafts")}!o&&r&&!y.has("upgrade")&&h&&h.startsWith(me)&&n.add("upgrade");for(let[a,c]of Object.entries(ce))if(n.has(a))for(let j of c)p.has(j)||n.delete(j);let g=[],w=[];for(let a of re){if(!n.has(a))continue;let c=O[a];if(c.editOnly&&!e||c.draft&&!o)continue;(le.has(a)||ue.has(a)&&n.has("blockeditor")?w:g).push(c.ownerPath&&!o?c.ownerPath:c.path)}return{core:d,plugins:g,late:w}}var I="data-deleted-at",R=(t,e)=>window.clay?.undo?.commit?window.clay.undo.commit(t,e):e(),Y=(t,e)=>t.dispatchEvent(new CustomEvent(e,{bubbles:!0})),_=Object.assign((t,{at:e=new Date().toISOString()}={})=>(R("Move to Trash",()=>t.setAttribute(I,e)),Y(t,"clay:trashed"),{undo:()=>_.restore(t)}),{is:t=>!!t.getAttribute(I),restore(t){R("Restore",()=>t.removeAttribute(I)),Y(t,"clay:restored")},purge(t){R("Delete forever",()=>t.remove())}});var Z=50,ge=1e3,he='[clay~="no-snapshot"], [no-snapshot], [snapshot-remove]',L=0,ye=t=>{let e=t.nodeType===1?t:t.parentElement;if(!e)return"a detached node";let o=e.localName;return e.id?o+="#"+e.id:e.classList.length&&(o+="."+[...e.classList].slice(0,2).join(".")),"<"+o+">"};function je(t){let e=window.clay?.region?.resolveRegionPolicy;if(!e)return null;let o=s=>!!s&&!s.closest(he)&&e(s).dirtyTracked;for(let s of t){if(s.type==="attributes"&&G(s.attributeName,s.target))continue;let u=s.target.nodeType===1?s.target:s.target.parentElement;if(o(u)&&!(s.type==="childList"&&![...s.addedNodes,...s.removedNodes].some(i=>i.nodeType!==1||o(i))))return s.target}return null}function q(t){let e=window.clay,o=e.Mutation,s=new Set,u=(m,f)=>{s.has(m)||(s.add(m),console.warn("clay.effect: "+f))},i=!1,r=!1,h=0,d=0;L&&e.isEditMode&&console.warn("clay.effect: an effect was created inside another effect, so a new one starts on every run. Create effects once, in clay.start.");let p=()=>{let m=Date.now();m-h>ge&&(h=m,d=0),++d>Z&&u("loop",`this effect ran more than ${Z} times in a second. Something keeps changing the document, often a timer or async callback the effect started.`)},y=()=>{if(i=!1,r)return;let m=null;o.pause(),L++;try{e.isEditMode===!0&&(p(),s.has("saved")||(m=new MutationObserver(()=>{}),m.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,characterData:!0})));let f=t();f&&typeof f.then=="function"&&(j(),console.error("clay.effect: fn returned a promise. It must be synchronous, so this effect was stopped."))}catch(f){console.error("clay.effect:",f)}finally{L--,o.resume();let f=m?m.takeRecords():[];if(m?.disconnect(),f.length){let E=je(f);E&&u("saved",`this effect changed ${ye(E)}, which is saved with the file. Effect writes never mark the page unsaved, so a merge can leave it dirty with no save scheduled. Draw derived values inside clay="no-dirty" or clay="editor-ui".`)}}},n=()=>{i||r||(i=!0,queueMicrotask(y))},g=["undo","redo"],w=()=>{for(let m of g)e.undo?.on?.(m,n)},a=m=>{m.detail?.applied?.length&&n()},c=o.onAnyChange({debounce:0,require:"observed"},n);document.addEventListener("clay:sync-applied",n),document.addEventListener("clay:site-data",a),document.addEventListener("clay:modechange",w),w();let j=()=>{r=!0,c(),document.removeEventListener("clay:sync-applied",n),document.removeEventListener("clay:site-data",a),document.removeEventListener("clay:modechange",w);for(let m of g)e.undo?.off?.(m,n)};return n(),j}Object.defineProperty(q,"running",{get:()=>L>0});var ve={overtype:()=>import("./c-PQ5LK6QE.js"),marked:()=>import("./c-XN6MBKI6.js"),highlight:()=>import("./c-33JJ6CBX.js"),"highlight/bash":()=>import("./c-KI7M4AY3.js"),"highlight/css":()=>import("./c-H4LG442Q.js"),"highlight/javascript":()=>import("./c-VDSS4K3Z.js"),"highlight/json":()=>import("./c-NRPJEVJS.js"),"highlight/python":()=>import("./c-5YIHJ3TJ.js"),"highlight/xml":()=>import("./c-WN5AY3OZ.js"),uimotion:()=>import("./c-B5CS55WR.js")};function we(t){let e=new Map;function o(s){return Object.hasOwn(t,s)?(e.has(s)||e.set(s,t[s]().catch(u=>{throw e.delete(s),u})),e.get(s)):Promise.reject(new Error(`clay.assets: no asset named "${s}"`))}return{load:o,names:()=>Object.keys(t)}}var ee=we(ve);function M(t,e){if(!t||!e)return t;let o={...e,...t};for(let s of["entries","imports","bootImports"])o[s]={...e[s],...t[s]};return o}var be="plugins/page.js";function T(t,e,{isEditMode:o=!1,isDraftMode:s=!1,hasSapJs:u=!1}={},i=document){if(!t?.entries)return 0;let r=[...e];for(let n of e)for(let g of t.bootImports?.[n]??[])u&&g==="vendor/sap-core.vendor.js"||r.push(g);o&&!s&&r.push(...t.editBootImports??[]),o&&!s&&e.includes(be)&&r.push(...t.editorBootImports??[]);let h=new Set,d=n=>{if(!(!n||h.has(n))){h.add(n);for(let g of t.imports?.[n]??[])d(g)}};for(let n of r)d(t.entries[n]);let p=new Set([...i.querySelectorAll('link[rel="modulepreload"]')].map(n=>n.href)),y=0;for(let n of h){let g=new URL(n,t.base).href;if(p.has(g))continue;let w=i.createElement("link");w.rel="modulepreload",w.href=g,w.setAttribute("clay","no-save"),i.head.append(w),y++}return y}var k=Object.fromEntries(Object.entries(O).flatMap(([t,e])=>e.ownerPath?[[e.path,t],[e.ownerPath,t]]:[[e.path,t]])),v={},te=new Set;function oe(t){te.has(t)||(te.add(t),document.dispatchEvent(new CustomEvent("clay:plugin-ready",{detail:{plugin:k[t]}})))}var Oe=(t,e,o,s)=>()=>t().then(u=>(T(M(e,u),[...o.core,...o.plugins,...o.late],{isEditMode:!0,hasSapJs:s}),u));function Se(){return new Promise(t=>$(t))}function A(){let t=document.querySelector('meta[name="hyper-source"]');return t?t.getAttribute("content"):null}async function Ve(t,e,o,s=null,u=null,i=null){V(),(await S["core/draft-mode.js"]()).noteBootParams(e),await Se();let h=await S["core/is-edit-mode.js"](),{isEditMode:d,isDraftMode:p,isOwner:y,siteVisibility:n,canEdit:g}=h;d&&!p&&import("./core/host-permission-JHMPKRPO.js").then(l=>l.checkHostPermission()).catch(()=>{}),window.__hyperclayEditMode=d;let w=await S["lib/region-policy.js"](),a=!!document.querySelector("[sap]"),c=document.querySelectorAll("head style[clay-variant]").length>=2,j=/(?:^|[{,])\s*["']?site["']?\s*:/.test(document.querySelector('script[data-rules-name~="api"]')?.textContent??""),m=!!document.querySelector('script[src*="sap.js"]');F.holdSettle=a&&d;let f=P(e,d,{isDraftMode:p,hasSap:a,hasVariants:c,hasSite:j,canEdit:g,templateSource:A()});f.plugins.includes("plugins/demo.js")&&h.commitModeFacts({destination:"demo"}),T(M(s,u),[...f.core,...f.plugins],{isEditMode:d,isDraftMode:p,hasSapJs:m}),(d||p)&&!u&&i&&i().then(l=>T(M(s,l),[...f.core,...f.plugins],{isEditMode:d,isDraftMode:p,hasSapJs:m})).catch(()=>{});let E,ne=new Promise(l=>{E=l}),ie={sync:f.plugins.includes("sync/live-sync.js")};for(let l of f.core)v[l]=await S[l](),v[l].install?.();if(Pe(v,{isDraftMode:p,isOwner:y,siteVisibility:n},w),se(v),document.documentElement.getAttribute("clay-mode-switch")==="live"){let l=P(e,!0,{isDraftMode:p,hasSap:a,hasVariants:c,hasSite:j,canEdit:g,templateSource:A()});v["core/edit-mode.js"].noteLiveSwitch({edit:l,view:P(e,!1,{isDraftMode:p,hasSap:a,hasVariants:c,hasSite:j,canEdit:g,templateSource:A()}),loaded:v,modules:S,attach:(b,x)=>{U(b,x);let D=k[b],C=window.clay.plugins;D&&Array.isArray(C)&&!C.includes(D)&&(window.clay.plugins=Object.freeze([...C,D]))},attachEditCore:se,announce:oe,loadEditHints:i?Oe(i,s,l,m):null,late:ne})}await v["core/edit-mode.js"].activateInitialMode(),window.clay.plugins=Object.freeze([...f.plugins,...f.late].map(l=>k[l]));let B=d?f:P(e,!0,{isDraftMode:p,hasSap:a,hasVariants:c,hasSite:j,canEdit:g,templateSource:A()});window.clay.editPlugins=Object.freeze([...B.plugins,...B.late].map(l=>k[l]));for(let l of f.plugins){let b;try{b=await S[l]()}catch(x){console.error(`clayjs: plugin "${l}" failed to load, continuing without it:`,x);continue}v[l]=b,l==="plugins/visitor-drafts.js"&&await b.restoring,l==="plugins/page-view.js"&&b.start(ie),U(l,b,v)}await Promise.allSettled(f.plugins.map(l=>v[l]?.ready).filter(Boolean)),a&&ke(v),Le(h),o(window.clay),document.dispatchEvent(new CustomEvent("clay:ready",{detail:{clay:window.clay}})),f.late.length?Ee(f.late,h).then(E,E):E()}var N=(t,e)=>O[k[t]]?.editOnly&&!e.startsAtImport();async function Ee(t,e){try{await window.clay.blockeditor?.ready}catch{}for(let o of t)if(!N(o,e))try{let s=await S[o]();if(N(o,e)||(v[o]=s,U(o,s,v),await s.ready,N(o,e)))continue;oe(o)}catch(s){console.error(`clayjs: plugin "${o}" failed to load, continuing without it:`,s),document.dispatchEvent(new CustomEvent("clay:plugin-failed",{detail:{plugin:k[o]}}))}}function ke(t){let e=t["core/save.js"],o=null;try{o=e?e.currentPaintSignature():null}catch(s){console.error("clayjs: could not read the page's painted values:",s)}try{window.Sap&&typeof window.Sap.mount=="function"&&window.Sap.mount()}catch(s){console.error("clayjs: the derive engine failed to mount:",s)}finally{e?.releaseBootSettle()}e&&o!=null&&e.schedulePaintHeal(o)}function Pe(t,{isDraftMode:e,isOwner:o,siteVisibility:s},u){let i=window.clay,r=t["lib/mutation.js"],h=t["core/edit-mode.js"];Object.assign(i,{toggleEditMode:h.toggleEditMode,setMode:h.setMode,modeLifecycle:h.modeLifecycle,isDraftMode:e,isOwner:o,siteVisibility:s,Mutation:r.default,region:u.windowRegionShape});for(let p of["mode","isEditMode","canEdit"])Object.defineProperty(i,p,{get:()=>h[p],enumerable:!0,configurable:!0});i.assets=ee;let d=t["core/page-data.js"];i.readData=d.readData,i.writeData=d.writeData,i.ephemeral=H,i.storage=z,i.host={get versions(){return import("./c-X3WLDGBX.js").then(p=>p.hostVersions())}},i.trash=_,i.derived=W,i.effect=q,i.style=X,i.morph=(p,y,n)=>J().then(({morph:g})=>g(p,y,n))}function se(t){let e=window.clay,o=t["core/save.js"];if(o){let r=o.savePage||o.default;r.force=o.savePageForce,r.overwrite=o.saveOverwritingConflict,r.flush=o.flushSave,r.soon=o.savePageSoon,r.limits=o.saveLimits,r.inspect=o.inspectSaveSize,e.save!==r&&typeof e.save?.replace=="function"&&(r.replace=e.save.replace),e.save!==r&&(e.save=r)}e.hasUnsavedChanges=t["core/unsaved-warning.js"]?.hasUnsavedChanges??e.hasUnsavedChanges??(()=>!1);let s=t["core/snapshot.js"];s&&(e.getHTML||(e.getHTML=s.getPageContents),e.addDocumentTransform||(e.addDocumentTransform=s.addDocumentTransform),e.onSnapshot||(e.onSnapshot=s.onSnapshot));let u=t["lib/cache-bust.js"];u&&!e.cacheBust&&(e.cacheBust=u.default);let i=t["core/recovery.js"];i&&!e.recovery&&(e.recovery=i.recovery)}function U(t,e,o=v){let s=window.clay;t==="plugins/undo.js"?s.undo=e.undo||e.default:t==="plugins/unsent.js"?s.unsent=e.unsent:t==="sync/live-sync.js"?(s.morph=e.morph,s.conflicts=e.conflicts,o["core/page-data.js"].setPageDataLiveSync(e.liveSync)):t==="plugins/live.js"?s.live=e.live:t==="plugins/page.js"?s.blockeditor=e.page:t==="plugins/upgrade.js"?(s.save=s.save||{},s.save.replace=e.replace):t==="plugins/cms.js"?s.cms=e.cms||e.default:t==="plugins/upload.js"?s.upload=e.upload||e.default:t==="plugins/people.js"?(s.people=e.people,s.author=e.author,Object.defineProperty(s,"me",{get:e.currentMe,configurable:!0,enumerable:!0})):t==="plugins/message.js"?s.message=e.message:t==="plugins/like.js"?s.like=e.like:t==="plugins/wire.js"?s.wire=e.wire||e.default:t==="plugins/ai-edit.js"?s.aiEdit=e.aiEdit||e.default:t==="plugins/demo.js"?s.demo=e.demo:t==="plugins/richclay.js"?s.RichClay=e.RichClay||e.default:t==="plugins/quickcrop.js"?s.quickcrop=e.quickcrop||e.default:t==="plugins/sortable.js"?s.sortable=e.sortable:t==="plugins/source.js"?s.source=e.source||e.default:t==="plugins/visitor-drafts.js"||t==="plugins/visitor-drafts-owner.js"?s.visitorDrafts=e.visitorDrafts:t==="plugins/bind-text.js"&&(s.bindText=e.bindText)}function Le(t){t.isEditMode||document.addEventListener("click",e=>{e.target.closest?.("[trigger-save]")&&(t.isEditMode||(console.info("clayjs: you're not the owner of this page; changes stay local"),document.dispatchEvent(new CustomEvent("clay:view-save-attempt"))))})}export{Ve as boot,ke as mountDerivedEngine};
@@ -0,0 +1 @@
1
+ export default {"version":"1.26.2","entries":{"events/index.js":"events/index-YKQIBZE5.js","internals/index.js":"internals/index-CDXUFQZK.js","options/options.js":"options/options-LKIZ7YTG.js","route/route.js":"route/route-62CHXL5B.js","ui/index.js":"ui/index-G7ZJXNMG.js","utils/index.js":"utils/index-4TJCVLT7.js","vendor/sap-core.vendor.js":"vendor/sap-core.vendor-UYOHDPAV.js","plugins/visitor-drafts-owner.js":"plugins/visitor-drafts-owner-QLF6IALP.js","plugins/derive.js":"plugins/derive-TRMYDN7J.js","plugins/upgrade.js":"plugins/upgrade-ORK24FK6.js","dom/all.js":"dom/all-APS5ZSKP.js","dom/dom-helpers.js":"dom/dom-helpers-L7OSR6S4.js","plugins/people.js":"plugins/people-FEMXINJK.js","plugins/menu.js":"plugins/menu-KCCEDUMJ.js","plugins/wire.js":"plugins/wire-I3TDGBGZ.js","plugins/message.js":"plugins/message-LQ6EDH4V.js","plugins/like.js":"plugins/like-EV7MTZ56.js","plugins/demo.js":"plugins/demo-57MJ3GOO.js","plugins/visitor-drafts.js":"plugins/visitor-drafts-DCVGLCBX.js","plugins/page-view.js":"plugins/page-view-QPRXXAT3.js","plugins/cms.js":"plugins/cms-KG6TCTR3.js","plugins/quickcrop.js":"plugins/quickcrop-UHURKA2F.js","sync/live-sync.js":"sync/live-sync-2UYQQSD7.js","plugins/live.js":"plugins/live-J52JO243.js","loader.js":"loader-CRCEH7TD.js","reader-core.js":"reader-core-7JOVUCEQ.js","lib/mutation.js":"reader-core-7JOVUCEQ.js","core/preserve-authored.js":"reader-core-7JOVUCEQ.js","core/edit-mode.js":"reader-core-7JOVUCEQ.js","core/mode-key.js":"reader-core-7JOVUCEQ.js","core/stale-host-notice.js":"reader-core-7JOVUCEQ.js","core/page-data.js":"reader-core-7JOVUCEQ.js"},"imports":{"events/index-YKQIBZE5.js":["c-MZCOGNZL.js","c-IJUK2GPW.js","c-MOP5KBWZ.js","c-2YYDMLNZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-MZCOGNZL.js":["c-IJUK2GPW.js","c-MOP5KBWZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-MOP5KBWZ.js":["c-2YYDMLNZ.js"],"c-HA6INT6J.js":["c-WRBKEJD4.js"],"c-ICMAOOGK.js":["c-WRBKEJD4.js"],"internals/index-CDXUFQZK.js":["c-CKG4NF7J.js","c-LD6UVV5R.js","c-PGSBXHUE.js","c-OSGTRM4C.js","c-26W3BMWK.js","c-IJUK2GPW.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-UW6MMZ4V.js","c-XQXZAO7N.js","c-S7LK4KUE.js","c-MOP5KBWZ.js","c-2YYDMLNZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-CKG4NF7J.js":["c-LD6UVV5R.js","c-PGSBXHUE.js","c-OSGTRM4C.js","c-26W3BMWK.js","c-IJUK2GPW.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-U4TWEIKZ.js","c-UW6MMZ4V.js"],"c-OSGTRM4C.js":["c-26W3BMWK.js","c-JEWSJHMK.js","c-BPF2NSPV.js"],"c-26W3BMWK.js":["c-JEWSJHMK.js","c-BPF2NSPV.js"],"c-JEWSJHMK.js":["c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js"],"c-BPF2NSPV.js":["c-HA6INT6J.js"],"c-UW6MMZ4V.js":["c-XQXZAO7N.js","c-S7LK4KUE.js","c-MOP5KBWZ.js","c-HA6INT6J.js","c-ICMAOOGK.js"],"c-XQXZAO7N.js":["c-WRBKEJD4.js"],"options/options-LKIZ7YTG.js":["c-7SWMYKAI.js","c-MZCOGNZL.js","c-IJUK2GPW.js","c-MOP5KBWZ.js","c-2YYDMLNZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"route/route-62CHXL5B.js":["c-VHNSBD2M.js"],"ui/index-G7ZJXNMG.js":["c-K2ZHQMPF.js","c-4M2T676V.js","c-EIDZHQHZ.js","c-UL2YUY52.js","c-QY7F6EN6.js","c-OZOACVUD.js","c-QHWJ5ZIJ.js","c-J2ZW4HMR.js","c-A5LASUEZ.js","c-4JZDZFF6.js","c-5RZNFTWD.js","c-PKCCHJ5X.js","c-5KXDKC5G.js","c-46XYM55L.js","c-NUHP2XDB.js","c-VKEDWYDF.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-K2ZHQMPF.js":["c-4M2T676V.js","c-EIDZHQHZ.js","c-UL2YUY52.js","c-QHWJ5ZIJ.js","c-J2ZW4HMR.js","c-5RZNFTWD.js","c-VKEDWYDF.js"],"c-4M2T676V.js":["c-OZOACVUD.js","c-QHWJ5ZIJ.js","c-J2ZW4HMR.js","c-NUHP2XDB.js"],"c-OZOACVUD.js":["c-J2ZW4HMR.js","c-A5LASUEZ.js","c-5RZNFTWD.js","c-PKCCHJ5X.js","c-NUHP2XDB.js"],"c-J2ZW4HMR.js":["c-A5LASUEZ.js","c-5RZNFTWD.js","c-NUHP2XDB.js"],"c-QHWJ5ZIJ.js":["c-4JZDZFF6.js","c-46XYM55L.js"],"c-EIDZHQHZ.js":["c-QY7F6EN6.js","c-QHWJ5ZIJ.js","c-J2ZW4HMR.js","c-A5LASUEZ.js","c-5RZNFTWD.js","c-PKCCHJ5X.js","c-NUHP2XDB.js"],"c-QY7F6EN6.js":["c-ICMAOOGK.js"],"utils/index-4TJCVLT7.js":["c-UL2YUY52.js","c-GQ6F6IDK.js","c-P7KNDG34.js","c-VHNSBD2M.js"],"vendor/sap-core.vendor-UYOHDPAV.js":["c-VHNSBD2M.js"],"plugins/visitor-drafts-owner-QLF6IALP.js":["c-OKEGUICD.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-HA6INT6J.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"plugins/derive-TRMYDN7J.js":["c-VHNSBD2M.js"],"plugins/upgrade-ORK24FK6.js":["c-3G2DGZUP.js","c-VHNSBD2M.js"],"dom/all-APS5ZSKP.js":["c-VHNSBD2M.js"],"dom/dom-helpers-L7OSR6S4.js":["c-XQXZAO7N.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"plugins/people-FEMXINJK.js":["c-RVMWGXEJ.js","c-26W3BMWK.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-HA6INT6J.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"plugins/menu-KCCEDUMJ.js":["c-QTEUO2K6.js","c-X6MOYATI.js","c-DIKR7H57.js","c-AQLFEATB.js","c-CUMXGHVD.js","c-RVMWGXEJ.js","c-QY7F6EN6.js","c-RHMPKZZ7.js","c-PKCCHJ5X.js","c-VKEDWYDF.js","c-26W3BMWK.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-X6MOYATI.js":["c-DIKR7H57.js"],"c-DIKR7H57.js":["c-QY7F6EN6.js"],"plugins/wire-I3TDGBGZ.js":["c-WJVW76R6.js","c-26W3BMWK.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-HA6INT6J.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-WJVW76R6.js":["c-26W3BMWK.js","c-JEWSJHMK.js","c-BPF2NSPV.js"],"plugins/message-LQ6EDH4V.js":["c-VHNSBD2M.js"],"plugins/like-EV7MTZ56.js":["c-VHNSBD2M.js"],"plugins/demo-57MJ3GOO.js":["c-JAX2667S.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"plugins/visitor-drafts-DCVGLCBX.js":["c-Y6F2FORL.js","c-Y6HH7LTM.js","c-OKEGUICD.js","c-QY7F6EN6.js","c-IOJOJTPL.js","c-4ASQPRQL.js","c-GQ6F6IDK.js","c-I2SCCUEW.js","c-5VYOWDTI.js","c-T6RRRHX7.js","c-G426P2SE.js","c-WYFDLITL.js","c-UGHH4MB3.js","c-MZCOGNZL.js","c-CKG4NF7J.js","c-LD6UVV5R.js","c-PGSBXHUE.js","c-OSGTRM4C.js","c-26W3BMWK.js","c-IJUK2GPW.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-UW6MMZ4V.js","c-XQXZAO7N.js","c-S7LK4KUE.js","c-MOP5KBWZ.js","c-2YYDMLNZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-IOJOJTPL.js":["c-4ASQPRQL.js","c-GQ6F6IDK.js","c-I2SCCUEW.js","c-5VYOWDTI.js","c-T6RRRHX7.js","c-G426P2SE.js","c-UGHH4MB3.js","c-MZCOGNZL.js","c-CKG4NF7J.js","c-PGSBXHUE.js","c-OSGTRM4C.js","c-IJUK2GPW.js","c-JEWSJHMK.js","c-U4TWEIKZ.js","c-UW6MMZ4V.js","c-MOP5KBWZ.js","c-2YYDMLNZ.js","c-HA6INT6J.js","c-ICMAOOGK.js"],"c-T6RRRHX7.js":["c-WYFDLITL.js","c-MZCOGNZL.js","c-JEWSJHMK.js","c-U4TWEIKZ.js","c-ICMAOOGK.js"],"c-G426P2SE.js":["c-JEWSJHMK.js"],"plugins/page-view-QPRXXAT3.js":["c-L4WQSC27.js","c-O3BSWMVD.js","c-26W3BMWK.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-HA6INT6J.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-O3BSWMVD.js":["c-26W3BMWK.js","c-JEWSJHMK.js"],"plugins/cms-KG6TCTR3.js":["c-JAX2667S.js","c-KD2ME5UN.js","c-J2ZW4HMR.js","c-A5LASUEZ.js","c-4JZDZFF6.js","c-5RZNFTWD.js","c-PKCCHJ5X.js","c-NUHP2XDB.js","c-VHNSBD2M.js"],"c-KD2ME5UN.js":["c-J2ZW4HMR.js","c-4JZDZFF6.js"],"plugins/quickcrop-UHURKA2F.js":["c-OZOACVUD.js","c-QHWJ5ZIJ.js","c-KD2ME5UN.js","c-J2ZW4HMR.js","c-A5LASUEZ.js","c-4JZDZFF6.js","c-5RZNFTWD.js","c-PKCCHJ5X.js","c-46XYM55L.js","c-NUHP2XDB.js","c-VHNSBD2M.js"],"sync/live-sync-2UYQQSD7.js":["c-VPUSMVKE.js","c-O3BSWMVD.js","c-LZJPNR2W.js","c-FILLTJA7.js","c-5VYOWDTI.js","c-T6RRRHX7.js","c-WYFDLITL.js","c-MZCOGNZL.js","c-LD6UVV5R.js","c-PGSBXHUE.js","c-OSGTRM4C.js","c-26W3BMWK.js","c-IJUK2GPW.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-UW6MMZ4V.js","c-XQXZAO7N.js","c-S7LK4KUE.js","c-MOP5KBWZ.js","c-2YYDMLNZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-VPUSMVKE.js":["c-O3BSWMVD.js","c-LZJPNR2W.js","c-FILLTJA7.js","c-5VYOWDTI.js","c-T6RRRHX7.js","c-MZCOGNZL.js","c-LD6UVV5R.js","c-PGSBXHUE.js","c-OSGTRM4C.js","c-26W3BMWK.js","c-IJUK2GPW.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-UW6MMZ4V.js","c-MOP5KBWZ.js","c-HA6INT6J.js","c-ICMAOOGK.js"],"plugins/live-J52JO243.js":["c-XLVZN7DT.js","c-JKZJIUIP.js","c-TCCA5BZN.js","c-3LDGIBMN.js","c-57XDY6HC.js","c-LZJPNR2W.js","c-IOJOJTPL.js","c-4ASQPRQL.js","c-GQ6F6IDK.js","c-I2SCCUEW.js","c-5VYOWDTI.js","c-T6RRRHX7.js","c-G426P2SE.js","c-WYFDLITL.js","c-UGHH4MB3.js","c-MZCOGNZL.js","c-CKG4NF7J.js","c-LD6UVV5R.js","c-PGSBXHUE.js","c-OSGTRM4C.js","c-26W3BMWK.js","c-IJUK2GPW.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-UW6MMZ4V.js","c-XQXZAO7N.js","c-S7LK4KUE.js","c-MOP5KBWZ.js","c-2YYDMLNZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-XLVZN7DT.js":["c-JKZJIUIP.js","c-TCCA5BZN.js","c-3LDGIBMN.js","c-57XDY6HC.js","c-LZJPNR2W.js","c-IOJOJTPL.js","c-I2SCCUEW.js","c-CKG4NF7J.js","c-LD6UVV5R.js","c-PGSBXHUE.js","c-OSGTRM4C.js","c-26W3BMWK.js","c-JEWSJHMK.js","c-UW6MMZ4V.js"],"loader-CRCEH7TD.js":["c-NL4I4KNG.js","c-7SWMYKAI.js","c-46XYM55L.js","c-FILLTJA7.js","c-VKEDWYDF.js","c-UGHH4MB3.js","c-MZCOGNZL.js","c-IJUK2GPW.js","c-CYWLPPUS.js","c-MOP5KBWZ.js","c-2YYDMLNZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-NL4I4KNG.js":["c-7SWMYKAI.js","c-UGHH4MB3.js","c-MZCOGNZL.js"],"reader-core-7JOVUCEQ.js":["c-NUHP2XDB.js","c-QCDVDZIR.js","c-VKEDWYDF.js","c-MZCOGNZL.js","c-26W3BMWK.js","c-IJUK2GPW.js","c-JEWSJHMK.js","c-BPF2NSPV.js","c-P7KNDG34.js","c-CYWLPPUS.js","c-U4TWEIKZ.js","c-MOP5KBWZ.js","c-2YYDMLNZ.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-WRBKEJD4.js","c-VHNSBD2M.js"],"c-QCDVDZIR.js":["c-MZCOGNZL.js","c-HA6INT6J.js","c-ICMAOOGK.js","c-VHNSBD2M.js"]},"bootImports":{"plugins/derive.js":["vendor/sap-core.vendor.js"]}};