ryugi-artifacts 1.74.1 → 1.74.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.
- package/dist/cli.cjs +2 -2
- package/dist/server.cjs +1 -1
- package/dist/viewer/{DocumentLayout-DjlCHyjN.js → DocumentLayout-Dg75Y9z9.js} +2 -2
- package/dist/viewer/{DocumentPage-CabOx31R.js → DocumentPage-By32LKid.js} +1 -1
- package/dist/viewer/{PreviewLayout-Dv9KwPv2.js → PreviewLayout-BZBiRp3W.js} +2 -2
- package/dist/viewer/{SnapshotDocument-B3pqjSEk.js → SnapshotDocument-DT1NRd2r.js} +1 -1
- package/dist/viewer/channel-mrxiiI3i.js +4 -0
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/preview.html +1 -1
- package/dist/viewer/preview.js +1 -1
- package/dist/viewer/{printDocument-DPt4MpvB.js → printDocument-CRbrGChK.js} +1 -1
- package/dist/viewer-lib/{Canvas-BS-_yDiQ.js → Canvas-CH7naLyS.js} +1 -1
- package/dist/viewer-lib/{PhoneArtboardBar-ZFnaDMbm.js → PhoneArtboardBar-CokUTH9B.js} +1 -1
- package/dist/viewer-lib/{PreviewView-CdCG9pzL.js → PreviewView-BNngando.js} +1 -1
- package/dist/viewer-lib/{ReadOnlyWhiteboard-CdaTkZWK.js → ReadOnlyWhiteboard-QiCO5pia.js} +59 -59
- package/dist/viewer-lib/{SnapshotDocument-Cq4p4KfQ.js → SnapshotDocument-B6CDMu92.js} +7272 -7268
- package/dist/viewer-lib/{VirtualizedEditor-uWe43zaI--81NZ1Uh.js → VirtualizedEditor-uWe43zaI-Dr8uLSTV.js} +2 -2
- package/dist/viewer-lib/{VirtualizedRenderer-C_d95FXi-xLgg7jfd.js → VirtualizedRenderer-C_d95FXi-Df6gt867.js} +3 -3
- package/dist/viewer-lib/{ar-SA-G6X2FPQ2-D9vbflA-.js → ar-SA-G6X2FPQ2-BuMc-uTr.js} +1 -1
- package/dist/viewer-lib/{az-AZ-76LH7QW2-C6viSIIe.js → az-AZ-76LH7QW2-BBpELU6r.js} +1 -1
- package/dist/viewer-lib/{bg-BG-XCXSNQG7-Daxmfqbv.js → bg-BG-XCXSNQG7-BbIq4LtR.js} +1 -1
- package/dist/viewer-lib/{bn-BD-2XOGV67Q-BaylJY11.js → bn-BD-2XOGV67Q-y4KBRebk.js} +1 -1
- package/dist/viewer-lib/{ca-ES-6MX7JW3Y-DMFt8OAA.js → ca-ES-6MX7JW3Y-D5NS_KZI.js} +1 -1
- package/dist/viewer-lib/{chunk-EIO257PC-DPiZy-Hq.js → chunk-EIO257PC-CLeYTFFi.js} +1 -1
- package/dist/viewer-lib/core.js +1 -1
- package/dist/viewer-lib/{cs-CZ-2BRQDIVT-HJURUVM0.js → cs-CZ-2BRQDIVT-B1rRsOGM.js} +1 -1
- package/dist/viewer-lib/{da-DK-5WZEPLOC-DiVeW7Oh.js → da-DK-5WZEPLOC-De5jhZX-.js} +1 -1
- package/dist/viewer-lib/{de-DE-XR44H4JA-CwaTGM6a.js → de-DE-XR44H4JA-nXvIcwLu.js} +1 -1
- package/dist/viewer-lib/{dist-D_KdhUm_.js → dist-B-3zCSkV.js} +2 -2
- package/dist/viewer-lib/{dist-XRXfSxIY.js → dist-BAa7kOPi.js} +4 -4
- package/dist/viewer-lib/{dist-Bj5UQAKx.js → dist-BQo6GVMP.js} +2 -2
- package/dist/viewer-lib/{dist-D19tSdni.js → dist-BmDWMFAh.js} +2 -2
- package/dist/viewer-lib/{dist-QhSKb6i0.js → dist-CQoir7UG.js} +4 -4
- package/dist/viewer-lib/{dist-DCJNjbF6.js → dist-CSyZJZuc.js} +2 -2
- package/dist/viewer-lib/{dist-BgYxkWrF.js → dist-Cr9Sl1Hh.js} +3 -3
- package/dist/viewer-lib/{dist-DOdFtwRN.js → dist-Cu7Z-lkb.js} +3 -3
- package/dist/viewer-lib/{dist-MwjZLyjE.js → dist-CxCfGAVZ.js} +1 -1
- package/dist/viewer-lib/{dist-bFfciYjb.js → dist-D3nVyNcZ.js} +2 -2
- package/dist/viewer-lib/{dist-CqCHfPkK.js → dist-DBhDjqVW.js} +2 -2
- package/dist/viewer-lib/{dist-DIyvFZEt.js → dist-DHK4djZK.js} +3 -3
- package/dist/viewer-lib/{dist-CxAB5CBm.js → dist-DMHNaEBH.js} +2 -2
- package/dist/viewer-lib/{dist-5Alf5ef6.js → dist-DQOIcJ5L.js} +3 -3
- package/dist/viewer-lib/{dist-BCs4xHYo.js → dist-DS_zvBM7.js} +2 -2
- package/dist/viewer-lib/{dist-nsuz6Enp.js → dist-DX4mwnpp.js} +3 -3
- package/dist/viewer-lib/{dist-BzkaP7Eu.js → dist-Dpzh4bzA.js} +4 -4
- package/dist/viewer-lib/{dist-CZIlIHZp.js → dist-Dq0NhL4K.js} +3 -3
- package/dist/viewer-lib/{dist-BtFp8Fdl.js → dist-Dw8BcfTC.js} +1 -1
- package/dist/viewer-lib/{dist-CrWKUkxs.js → dist-DxvYKGxH.js} +3 -3
- package/dist/viewer-lib/{dist-DAU3JelZ.js → dist-ixI0xyjk.js} +3 -3
- package/dist/viewer-lib/{dist-CQbHVUT8.js → dist-lty5YKi1.js} +3 -3
- package/dist/viewer-lib/{dist-CNYGqeWR.js → dist-n68hDW7K.js} +3 -3
- package/dist/viewer-lib/document.js +2 -2
- package/dist/viewer-lib/{el-GR-BZB4AONW-Cpnz69_d.js → el-GR-BZB4AONW-2KpqiaBa.js} +1 -1
- package/dist/viewer-lib/{en-B4ZKOASM-B5EWcVU_.js → en-B4ZKOASM-hSA7FtD2.js} +1 -1
- package/dist/viewer-lib/{es-ES-U4NZUMDT-DTxYNY9z.js → es-ES-U4NZUMDT-8_bzmvad.js} +1 -1
- package/dist/viewer-lib/{eu-ES-A7QVB2H4-DNQLa-75.js → eu-ES-A7QVB2H4-BhQt8hw_.js} +1 -1
- package/dist/viewer-lib/{fa-IR-HGAKTJCU-BmEwT5gJ.js → fa-IR-HGAKTJCU-CN48FKyv.js} +1 -1
- package/dist/viewer-lib/{fi-FI-Z5N7JZ37-Bn6mHqQ6.js → fi-FI-Z5N7JZ37-JtwD_USm.js} +1 -1
- package/dist/viewer-lib/{fr-FR-RHASNOE6-CRwCHElD.js → fr-FR-RHASNOE6-CI821WLy.js} +1 -1
- package/dist/viewer-lib/{gl-ES-HMX3MZ6V-CylPO_1D.js → gl-ES-HMX3MZ6V-JBJqjSBf.js} +1 -1
- package/dist/viewer-lib/{he-IL-6SHJWFNN-CDTBSMzd.js → he-IL-6SHJWFNN-Btt-bhrC.js} +1 -1
- package/dist/viewer-lib/{hi-IN-IWLTKZ5I-CtPpuV1u.js → hi-IN-IWLTKZ5I-DzMahlAV.js} +1 -1
- package/dist/viewer-lib/{hu-HU-A5ZG7DT2-CwVGkLn8.js → hu-HU-A5ZG7DT2-bEbPpNCJ.js} +1 -1
- package/dist/viewer-lib/{id-ID-SAP4L64H-Dnqb3xMl.js → id-ID-SAP4L64H-BiKdTEkU.js} +1 -1
- package/dist/viewer-lib/{image-GAAHSSAO-CSGEcIBN.js → image-GAAHSSAO-CcRQ85F1.js} +1 -1
- package/dist/viewer-lib/index.js +5 -5
- package/dist/viewer-lib/{it-IT-JPQ66NNP-C9zHSk81.js → it-IT-JPQ66NNP-DsxVyGSi.js} +1 -1
- package/dist/viewer-lib/{ja-JP-DBVTYXUO-DTTPwQmv.js → ja-JP-DBVTYXUO-CcJz_ST7.js} +1 -1
- package/dist/viewer-lib/{kaa-6HZHGXH3-CsTZZa5j.js → kaa-6HZHGXH3-DAhwLIHJ.js} +1 -1
- package/dist/viewer-lib/{kab-KAB-ZGHBKWFO-B7vrjlvJ.js → kab-KAB-ZGHBKWFO-B9HQVGrf.js} +1 -1
- package/dist/viewer-lib/{kk-KZ-P5N5QNE5-C5cNEoy6.js → kk-KZ-P5N5QNE5-7Ofr2xRM.js} +1 -1
- package/dist/viewer-lib/{km-KH-HSX4SM5Z-B51VzNEs.js → km-KH-HSX4SM5Z-CG0R8WjY.js} +1 -1
- package/dist/viewer-lib/{ko-KR-MTYHY66A-BwVxzxVv.js → ko-KR-MTYHY66A-AGz4Hdaj.js} +1 -1
- package/dist/viewer-lib/{ku-TR-6OUDTVRD-Bwlf9qjI.js → ku-TR-6OUDTVRD-B2-t_8vR.js} +1 -1
- package/dist/viewer-lib/{lt-LT-XHIRWOB4-aijnRkXE.js → lt-LT-XHIRWOB4-I7g1xXi1.js} +1 -1
- package/dist/viewer-lib/{lv-LV-5QDEKY6T-DhpQMs-U.js → lv-LV-5QDEKY6T-Ct3Cc3Ma.js} +1 -1
- package/dist/viewer-lib/{mr-IN-CRQNXWMA-NV2v3S8G.js → mr-IN-CRQNXWMA-B6TUa2sR.js} +1 -1
- package/dist/viewer-lib/{my-MM-5M5IBNSE-BKAJHxJu.js → my-MM-5M5IBNSE-DTEx81sN.js} +1 -1
- package/dist/viewer-lib/{nb-NO-T6EIAALU-DwzKRKbz.js → nb-NO-T6EIAALU-DZpwqCPW.js} +1 -1
- package/dist/viewer-lib/{nl-NL-IS3SIHDZ-CiEgpnnq.js → nl-NL-IS3SIHDZ-Bk4pHeqH.js} +1 -1
- package/dist/viewer-lib/{nn-NO-6E72VCQL-BGeAx6h3.js → nn-NO-6E72VCQL-DKtDQWHu.js} +1 -1
- package/dist/viewer-lib/{oc-FR-POXYY2M6-BAOxnmk2.js → oc-FR-POXYY2M6-BKkwOGcj.js} +1 -1
- package/dist/viewer-lib/{pa-IN-N4M65BXN-D7dfsOLu.js → pa-IN-N4M65BXN-CB1FvTjM.js} +1 -1
- package/dist/viewer-lib/{percentages-BXMCSKIN-BEBkudra.js → percentages-BXMCSKIN-CoDIW1I3.js} +1 -1
- package/dist/viewer-lib/{pl-PL-T2D74RX3-DreGIfrh.js → pl-PL-T2D74RX3-C-10gFgF.js} +1 -1
- package/dist/viewer-lib/{printDocument-CjaNQ9SE.js → printDocument-Dj01sV9J.js} +2 -2
- package/dist/viewer-lib/{pt-BR-5N22H2LF-C0BZMMWN.js → pt-BR-5N22H2LF-BzjDglrW.js} +1 -1
- package/dist/viewer-lib/{pt-PT-UZXXM6DQ-DpMUU3Dr.js → pt-PT-UZXXM6DQ-DzV8FtI3.js} +1 -1
- package/dist/viewer-lib/{ro-RO-JPDTUUEW-BXfEv5RD.js → ro-RO-JPDTUUEW-Ottklz3_.js} +1 -1
- package/dist/viewer-lib/{ru-RU-B4JR7IUQ-C9JJo2Vp.js → ru-RU-B4JR7IUQ-Cmx-KK8d.js} +1 -1
- package/dist/viewer-lib/{si-LK-N5RQ5JYF-CrMOni0i.js → si-LK-N5RQ5JYF-BpKfRidb.js} +1 -1
- package/dist/viewer-lib/{sk-SK-C5VTKIMK-C0hpi9M9.js → sk-SK-C5VTKIMK-CfBZvPWg.js} +1 -1
- package/dist/viewer-lib/{sl-SI-NN7IZMDC-MqYRpshn.js → sl-SI-NN7IZMDC-TtMKUeG7.js} +1 -1
- package/dist/viewer-lib/{static-C1Q2cI62.js → static-CIXBby28.js} +2 -2
- package/dist/viewer-lib/subset-shared.chunk-NCbWdv_r.js +2 -0
- package/dist/viewer-lib/{subset-worker.chunk-BLFn82Cl.js → subset-worker.chunk-Dm0pksc6.js} +2 -2
- package/dist/viewer-lib/{sv-SE-XGPEYMSR-DTOY7f8n.js → sv-SE-XGPEYMSR-BxBpmVWr.js} +1 -1
- package/dist/viewer-lib/{ta-IN-2NMHFXQM-hwaDZ_dR.js → ta-IN-2NMHFXQM-CDrgqB_h.js} +1 -1
- package/dist/viewer-lib/{th-TH-HPSO5L25-u8P0crNp.js → th-TH-HPSO5L25-BhiDll_c.js} +1 -1
- package/dist/viewer-lib/{tr-TR-DEFEU3FU-CXiJe1LL.js → tr-TR-DEFEU3FU-DPMxxC0S.js} +1 -1
- package/dist/viewer-lib/types/src/viewer/document/layoutCards.d.ts +1 -0
- package/dist/viewer-lib/{uk-UA-QMV73CPH-DjvTsLGT.js → uk-UA-QMV73CPH-DR9nXnJ9.js} +1 -1
- package/dist/viewer-lib/{vi-VN-M7AON7JQ-D1-kIlO1.js → vi-VN-M7AON7JQ-CQnrduv0.js} +1 -1
- package/dist/viewer-lib/{viewport-CFJHn_Y6-C6PY7g7D.js → viewport-CFJHn_Y6-DRJxKRsc.js} +1 -1
- package/dist/viewer-lib/{zh-CN-LNUGB5OW-DuedQ4LV.js → zh-CN-LNUGB5OW-BGGXwznZ.js} +1 -1
- package/dist/viewer-lib/{zh-HK-E62DVLB3-C36nmDOB.js → zh-HK-E62DVLB3--znI3-Br.js} +1 -1
- package/dist/viewer-lib/{zh-TW-RAJ6MFWO-eMp9b1w2.js → zh-TW-RAJ6MFWO-D536Rc9r.js} +1 -1
- package/package.json +1 -1
- package/dist/viewer/channel-C7OiO1UE.js +0 -4
- package/dist/viewer-lib/subset-shared.chunk-CA09RTjK.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{h as t,l as n,x as r}from"./route-33mCuMZa.js";import{t as i}from"./react-B8SKf8RM.js";import{t as a}from"./jsx-runtime-DePvh3-m.js";import{C as o,at as s,b as c,d as l,f as u,i as d,k as f,l as p,o as m,p as h,st as g,v as _,w as v,x as y}from"./DocumentEditor-CvsHqTIi.js";import{t as b}from"./katex-CoSiSFrM.js";import{n as x,t as S}from"./static-Cz1A8szL.js";import{a as C,t as w}from"./channel-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{h as t,l as n,x as r}from"./route-33mCuMZa.js";import{t as i}from"./react-B8SKf8RM.js";import{t as a}from"./jsx-runtime-DePvh3-m.js";import{C as o,at as s,b as c,d as l,f as u,i as d,k as f,l as p,o as m,p as h,st as g,v as _,w as v,x as y}from"./DocumentEditor-CvsHqTIi.js";import{t as b}from"./katex-CoSiSFrM.js";import{n as x,t as S}from"./static-Cz1A8szL.js";import{a as C,t as w}from"./channel-mrxiiI3i.js";import{r as T}from"./ref-CBCETzr1.js";import"./shims-CqTWewbM.js";var E=e(i(),1),D=e(r(),1),O=t(),k=`@page{size:A4;margin:16mm}[data-document-print-root]{color:#242424;width:178mm;font-family:var(--lobe-font-family,system-ui, sans-serif);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;pointer-events:none;background:#fff;font-size:14px;line-height:1.75;position:absolute;top:0;left:-100000px}[data-document-print-root] .rich-content{max-width:none;padding:0}.document-print-image{margin:16px 0}.document-print-image img,.document-print-diagram{max-width:100%;height:auto;margin-inline:auto;display:block}.document-print-image figcaption{color:#666;text-align:center;margin-top:8px;font-size:12px}.document-print-state{color:#555;font-size:12px}.document-print-pending{color:#666;border-inline-start:2px solid #aaa;padding-inline-start:12px}.document-print-reference{color:#245d88;text-decoration:underline}@media print{html[data-document-printing],html[data-document-printing] body{background:#fff!important;height:auto!important;margin:0!important;overflow:visible!important}html[data-document-printing] body>:not([data-document-print-root]){display:none!important}html[data-document-printing] [data-document-print-root]{pointer-events:auto;width:auto;position:static}[data-document-print-root] h1,[data-document-print-root] h2,[data-document-print-root] h3{break-after:avoid}[data-document-print-root] img,[data-document-print-root] svg{object-fit:contain;max-width:100%;max-height:250mm}[data-document-print-root] pre,[data-document-print-root] pre code{white-space:pre-wrap!important;overflow-wrap:anywhere!important}[data-document-print-root] [data-chrome]{overflow:visible!important}[data-document-print-root] .rich-table-scrollable-wrapper{width:100%!important;max-width:100%!important;overflow:visible!important}[data-document-print-root] table{table-layout:fixed!important;width:100%!important;min-width:0!important}[data-document-print-root] th,[data-document-print-root] td{overflow-wrap:anywhere;white-space:normal!important;min-width:0!important}[data-document-print-root] tr{break-inside:avoid}[data-document-print-root] thead{display:table-header-group}[data-document-print-root] .rich-spoiler{color:inherit!important;filter:none!important;background:0 0!important}[data-document-print-root] .rich-heading-anchor,[data-document-print-root] figure>div>button[aria-pressed]{display:none!important}}`,A=a(),j=(0,E.createContext)(null),M=[o,y,...S,l,m,v,d],N=e=>(0,A.jsx)(f,{...e,collapsible:!1,showCopyButton:!1});function P({equation:e,displayMode:t}){let n=(0,E.useMemo)(()=>b.renderToString(e,{displayMode:t,throwOnError:!1}),[e,t]);return(0,A.jsx)(`span`,{dangerouslySetInnerHTML:{__html:n}})}function F({src:e,altText:t,caption:n,width:r,height:i,fixedWidth:a,displayWidth:o}){return(0,A.jsxs)(`figure`,{className:`document-print-image`,children:[(0,A.jsx)(`img`,{alt:t,height:i,loading:`eager`,src:e,width:a??o??r}),n?(0,A.jsx)(`figcaption`,{children:n}):null]})}function I({content:e}){let t=p(e,`light`);return t?(0,A.jsx)(`img`,{alt:n(`mermaid.diagram`),className:`document-print-diagram`,height:t.height,loading:`eager`,src:t.src,width:t.width}):(0,A.jsx)(`p`,{"data-print-error":n(`documentExport.diagramFailed`),children:n(`documentExport.diagramFailed`)})}function L({node:e}){let t=(0,E.useContext)(j),r=s([g(e,``)],t.comments.threads)[0],i=r.text??r.options.find(e=>e.value===r.choice)?.label,a=r.state===`settled`?`askSettled`:r.state===`submitted`?`askSubmitted`:r.byRecommendation?`askRecommended`:i?`askDraft`:`askUnanswered`;return(0,A.jsxs)(`span`,{className:`document-print-state`,children:[n(`documentExport.${a}`),i?`: ${i}`:``,r.note?` · ${r.note}`:``]})}function R({node:e}){let t=(0,E.useContext)(j),n=C(e,t),r=e.label??[T(e),e.group??e.board??e.frame??e.page].filter(Boolean).join(` · `);return n?(0,A.jsx)(`a`,{className:`document-print-reference`,href:n,children:r}):(0,A.jsx)(`span`,{className:`document-print-reference`,children:r})}function z({node:e}){let t=(0,E.useContext)(j),[r,i]=(0,E.useState)(!1),[a,o]=(0,E.useState)(null),s=(0,E.useMemo)(()=>({artifact:`document-print`,contentBase:t.contentBase,channel:w(),send:e=>{let t=e;t.type===`loaded`&&i(!0),t.type===`runtime-error`&&o(t.message??n(`documentExport.blockFailed`))}}),[t.contentBase]);return(0,A.jsx)(`div`,{"data-print-error":a??void 0,"data-print-loading":r?void 0:``,children:(0,A.jsx)(h,{value:s,children:(0,A.jsx)(u,{componentProps:e.props,initialHeight:e.initialHeight,url:e.url})})})}var B={ask:e=>(0,A.jsx)(L,{node:e}),ref:e=>(0,A.jsx)(R,{node:e}),pending:e=>(0,A.jsxs)(`p`,{className:`document-print-pending`,children:[n(`documentExport.inProgress`),`:`,` `,e.intent||n(`document.pending`)]}),dynamic:e=>(0,A.jsx)(z,{node:e})},V={Alert:_,CodeBlock:N,Image:F,KaTeX:P,Mermaid:I,Whiteboard:c};function H({snapshot:e}){return(0,A.jsx)(j,{value:e,children:(0,A.jsx)(x,{builtinNodeOverrides:B,extraNodes:M,rendererConfig:V,theme:`light`,value:e.state,variant:`article`})})}async function U(e,{signal:t,timeoutMs:n=2e4}={}){e.querySelectorAll(`details`).forEach(e=>{e.open=!0}),e.querySelectorAll(`img[src]`).forEach(e=>{e.loading=`eager`}),e.querySelectorAll(`table`).forEach(e=>{let t=e.querySelector(`tr`);!e.tHead&&t?.cells.length&&[...t.cells].every(e=>e.tagName===`TH`)&&e.createTHead().append(t)}),await new Promise((r,i)=>{let a=Date.now()+n,o=Date.now(),s=!document.fonts,c=null,l=0,u,d=new WeakSet,f=new MutationObserver(()=>{o=Date.now()});f.observe(e,{childList:!0,subtree:!0,attributes:!0,characterData:!0});let p=e=>{clearTimeout(u),f.disconnect(),t?.removeEventListener(`abort`,m),e?i(e):r()},m=()=>p(new DOMException(`Print cancelled`,`AbortError`));if(t?.addEventListener(`abort`,m,{once:!0}),t?.aborted){m();return}document.fonts&&document.fonts.ready.then(()=>{s=!0},()=>{c=Error(`A document font failed to load`)});let h=()=>{if(t?.aborted){m();return}let n=e.querySelector(`[data-print-error], [role="alert"]`);if(n){p(Error(n.dataset.printError||n.textContent||`A document block failed to render`));return}let r=!s||document.fonts?.status===`loading`||e.querySelector(`[data-print-loading], [aria-busy="true"]`)!==null;e.querySelectorAll(`details:not([open])`).forEach(e=>{e.open=!0});for(let t of e.querySelectorAll(`img[src]`))if(t.getAttribute(`src`)){if(t.loading!==`eager`&&(t.loading=`eager`),t.complete&&t.naturalWidth===0){p(Error(`Document image failed to load: ${t.alt||`image`}`));return}t.complete?!d.has(t)&&typeof t.decode==`function`&&(d.add(t),l++,t.decode().then(()=>{l--},()=>{l--,c=Error(`A document image failed to decode`)})):r=!0}c?p(c):!r&&l===0&&Date.now()-o>=100?p():Date.now()>=a?p(Error(`Document resources timed out`)):u=setTimeout(h,25)};h()})}var W=class extends E.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,A.jsx)(`p`,{"data-print-error":this.state.error.message,children:this.state.error.message}):this.props.children}};async function G(e,{signal:t,timeoutMs:n}={}){if(document.querySelector(`[data-document-print-root]`))throw Error(`A document export is already open`);if(t?.aborted)throw new DOMException(`Print cancelled`,`AbortError`);let r=document.createElement(`div`);r.dataset.documentPrintRoot=``,r.dataset.theme=`light`,r.setAttribute(`aria-hidden`,`true`);let i=document.createElement(`style`);i.nonce=document.querySelector(`style[nonce]`)?.nonce??``,i.textContent=k,document.head.append(i),document.body.append(r);let a=(0,O.createRoot)(r),o=document.title;try{(0,D.flushSync)(()=>a.render((0,A.jsx)(W,{children:(0,A.jsx)(H,{snapshot:e})}))),await U(r,{signal:t,timeoutMs:n}),r.removeAttribute(`aria-hidden`),document.documentElement.dataset.documentPrinting=``,document.title=e.title,await new Promise((e,n)=>{let r=()=>{window.removeEventListener(`afterprint`,i),t?.removeEventListener(`abort`,a)},i=()=>{r(),e()},a=()=>{r(),n(new DOMException(`Print cancelled`,`AbortError`))};if(window.addEventListener(`afterprint`,i,{once:!0}),t?.addEventListener(`abort`,a,{once:!0}),t?.aborted)a();else try{window.print()}catch(e){r(),n(e)}})}finally{a.unmount(),r.remove(),i.remove(),delete document.documentElement.dataset.documentPrinting,document.title===e.title&&(document.title=o)}}export{G as printDocument};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CwxnZyOB.js";
|
|
2
|
-
import { f as t } from "./PreviewView-
|
|
2
|
+
import { f as t } from "./PreviewView-BNngando.js";
|
|
3
3
|
import { D as n, c as r, l as i, n as a, t as o } from "./RyugiLoader-CDpaKUDV.js";
|
|
4
4
|
import { a as s, n as c, t as l } from "./agentLook-B6XZiaf6.js";
|
|
5
5
|
import { memo as u, useEffect as d, useImperativeHandle as f, useLayoutEffect as p, useRef as m, useState as h } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as e } from "./PreviewView-
|
|
1
|
+
import { y as e } from "./PreviewView-BNngando.js";
|
|
2
2
|
import { s as t } from "./RyugiLoader-CDpaKUDV.js";
|
|
3
3
|
import { useCallback as n, useSyncExternalStore as r } from "react";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -308,7 +308,7 @@ var Z = {
|
|
|
308
308
|
kgSjnq: "xcdf9qb",
|
|
309
309
|
$$css: !0
|
|
310
310
|
}
|
|
311
|
-
}, Q = s(() => import("./shims.js").then(() => import("./SnapshotDocument-
|
|
311
|
+
}, Q = s(() => import("./shims.js").then(() => import("./SnapshotDocument-B6CDMu92.js").then((e) => e.n))), $ = s(() => import("./Canvas-CH7naLyS.js").then((e) => e.n).then(({ Canvas: e }) => ({ default: e }))), ee = () => () => {}, te = () => {}, ne = /* @__PURE__ */ new Set();
|
|
312
312
|
function re({ type: n, id: i, data: o, failed: s }) {
|
|
313
313
|
let { t: c } = e(), [f, p] = u(() => ({
|
|
314
314
|
width: innerWidth,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, r as t, t as n } from "./rolldown-runtime-CwxnZyOB.js";
|
|
2
2
|
import { l as r, s as i } from "./RyugiLoader-CDpaKUDV.js";
|
|
3
|
-
import { i as a, t as o } from "./PhoneArtboardBar-
|
|
3
|
+
import { i as a, t as o } from "./PhoneArtboardBar-CokUTH9B.js";
|
|
4
4
|
import { _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T } from "./lib-DPraIWI8.js";
|
|
5
5
|
import { t as E } from "./PageLoader-BLUvRw5V.js";
|
|
6
6
|
import { n as ee } from "./font-preference-DgTaYdIb.js";
|
|
@@ -7032,7 +7032,7 @@ var dh = G(P("g", { children: [
|
|
|
7032
7032
|
return Ph = !1, Ku() && (n instanceof kh || n instanceof Ah) || console.error("Failed to use workers for subsetting, falling back to the main thread.", n), r(e, t);
|
|
7033
7033
|
}
|
|
7034
7034
|
}) : r(e, t);
|
|
7035
|
-
}, Ih = null, Lh = null, Rh = async () => (Ih ||= import("./subset-worker.chunk-
|
|
7035
|
+
}, Ih = null, Lh = null, Rh = async () => (Ih ||= import("./subset-worker.chunk-Dm0pksc6.js"), Ih), zh = async () => (Lh ||= import("./subset-shared.chunk-NCbWdv_r.js"), Lh), Bh = null, Vh = () => (Bh ||= dd(async () => {
|
|
7036
7036
|
let { WorkerUrl: e } = await Rh();
|
|
7037
7037
|
return Nh.create(e);
|
|
7038
7038
|
}), Bh), Hh = class e {
|
|
@@ -15523,7 +15523,7 @@ var lE = cE, Z = (e, t, n = !0, r) => {
|
|
|
15523
15523
|
} : e), cD = (e) => sD(e), lD = (e) => sD(e), uD = async (e) => {
|
|
15524
15524
|
let t;
|
|
15525
15525
|
if (e.type === L.png) try {
|
|
15526
|
-
return await (await import("./image-GAAHSSAO-
|
|
15526
|
+
return await (await import("./image-GAAHSSAO-CcRQ85F1.js")).decodePngMetadata(e);
|
|
15527
15527
|
} catch (e) {
|
|
15528
15528
|
throw e.message === "INVALID" ? new Dh("Image doesn't contain scene", "IMAGE_NOT_CONTAINS_SCENE_DATA") : new Dh("Error: cannot restore image");
|
|
15529
15529
|
}
|
|
@@ -19142,61 +19142,61 @@ var zP = class e {
|
|
|
19142
19142
|
return y.length > 0 && S.push(y[0]), this.options.simplify > 0 && this.options.simplifyPhase === "output" ? RP(S, this.options.simplify) : S;
|
|
19143
19143
|
}
|
|
19144
19144
|
}, BP = Sk(), { useAtom: VP, useSetAtom: HP, useAtomValue: UP, useStore: WP } = BP, GP = BP.Provider, KP = ak(), qP = Oe({
|
|
19145
|
-
"./locales/ar-SA.json": () => import("./ar-SA-G6X2FPQ2-
|
|
19146
|
-
"./locales/az-AZ.json": () => import("./az-AZ-76LH7QW2-
|
|
19147
|
-
"./locales/bg-BG.json": () => import("./bg-BG-XCXSNQG7-
|
|
19148
|
-
"./locales/bn-BD.json": () => import("./bn-BD-2XOGV67Q-
|
|
19149
|
-
"./locales/ca-ES.json": () => import("./ca-ES-6MX7JW3Y-
|
|
19150
|
-
"./locales/cs-CZ.json": () => import("./cs-CZ-2BRQDIVT-
|
|
19151
|
-
"./locales/da-DK.json": () => import("./da-DK-5WZEPLOC-
|
|
19152
|
-
"./locales/de-DE.json": () => import("./de-DE-XR44H4JA-
|
|
19153
|
-
"./locales/el-GR.json": () => import("./el-GR-BZB4AONW-
|
|
19154
|
-
"./locales/en.json": () => import("./en-B4ZKOASM-
|
|
19155
|
-
"./locales/es-ES.json": () => import("./es-ES-U4NZUMDT-
|
|
19156
|
-
"./locales/eu-ES.json": () => import("./eu-ES-A7QVB2H4-
|
|
19157
|
-
"./locales/fa-IR.json": () => import("./fa-IR-HGAKTJCU-
|
|
19158
|
-
"./locales/fi-FI.json": () => import("./fi-FI-Z5N7JZ37-
|
|
19159
|
-
"./locales/fr-FR.json": () => import("./fr-FR-RHASNOE6-
|
|
19160
|
-
"./locales/gl-ES.json": () => import("./gl-ES-HMX3MZ6V-
|
|
19161
|
-
"./locales/he-IL.json": () => import("./he-IL-6SHJWFNN-
|
|
19162
|
-
"./locales/hi-IN.json": () => import("./hi-IN-IWLTKZ5I-
|
|
19163
|
-
"./locales/hu-HU.json": () => import("./hu-HU-A5ZG7DT2-
|
|
19164
|
-
"./locales/id-ID.json": () => import("./id-ID-SAP4L64H-
|
|
19165
|
-
"./locales/it-IT.json": () => import("./it-IT-JPQ66NNP-
|
|
19166
|
-
"./locales/ja-JP.json": () => import("./ja-JP-DBVTYXUO-
|
|
19167
|
-
"./locales/kaa.json": () => import("./kaa-6HZHGXH3-
|
|
19168
|
-
"./locales/kab-KAB.json": () => import("./kab-KAB-ZGHBKWFO-
|
|
19169
|
-
"./locales/kk-KZ.json": () => import("./kk-KZ-P5N5QNE5-
|
|
19170
|
-
"./locales/km-KH.json": () => import("./km-KH-HSX4SM5Z-
|
|
19171
|
-
"./locales/ko-KR.json": () => import("./ko-KR-MTYHY66A-
|
|
19172
|
-
"./locales/ku-TR.json": () => import("./ku-TR-6OUDTVRD-
|
|
19173
|
-
"./locales/lt-LT.json": () => import("./lt-LT-XHIRWOB4-
|
|
19174
|
-
"./locales/lv-LV.json": () => import("./lv-LV-5QDEKY6T-
|
|
19175
|
-
"./locales/mr-IN.json": () => import("./mr-IN-CRQNXWMA-
|
|
19176
|
-
"./locales/my-MM.json": () => import("./my-MM-5M5IBNSE-
|
|
19177
|
-
"./locales/nb-NO.json": () => import("./nb-NO-T6EIAALU-
|
|
19178
|
-
"./locales/nl-NL.json": () => import("./nl-NL-IS3SIHDZ-
|
|
19179
|
-
"./locales/nn-NO.json": () => import("./nn-NO-6E72VCQL-
|
|
19180
|
-
"./locales/oc-FR.json": () => import("./oc-FR-POXYY2M6-
|
|
19181
|
-
"./locales/pa-IN.json": () => import("./pa-IN-N4M65BXN-
|
|
19182
|
-
"./locales/percentages.json": () => import("./percentages-BXMCSKIN-
|
|
19183
|
-
"./locales/pl-PL.json": () => import("./pl-PL-T2D74RX3-
|
|
19184
|
-
"./locales/pt-BR.json": () => import("./pt-BR-5N22H2LF-
|
|
19185
|
-
"./locales/pt-PT.json": () => import("./pt-PT-UZXXM6DQ-
|
|
19186
|
-
"./locales/ro-RO.json": () => import("./ro-RO-JPDTUUEW-
|
|
19187
|
-
"./locales/ru-RU.json": () => import("./ru-RU-B4JR7IUQ-
|
|
19188
|
-
"./locales/si-LK.json": () => import("./si-LK-N5RQ5JYF-
|
|
19189
|
-
"./locales/sk-SK.json": () => import("./sk-SK-C5VTKIMK-
|
|
19190
|
-
"./locales/sl-SI.json": () => import("./sl-SI-NN7IZMDC-
|
|
19191
|
-
"./locales/sv-SE.json": () => import("./sv-SE-XGPEYMSR-
|
|
19192
|
-
"./locales/ta-IN.json": () => import("./ta-IN-2NMHFXQM-
|
|
19193
|
-
"./locales/th-TH.json": () => import("./th-TH-HPSO5L25-
|
|
19194
|
-
"./locales/tr-TR.json": () => import("./tr-TR-DEFEU3FU-
|
|
19195
|
-
"./locales/uk-UA.json": () => import("./uk-UA-QMV73CPH-
|
|
19196
|
-
"./locales/vi-VN.json": () => import("./vi-VN-M7AON7JQ-
|
|
19197
|
-
"./locales/zh-CN.json": () => import("./zh-CN-LNUGB5OW-
|
|
19198
|
-
"./locales/zh-HK.json": () => import("./zh-HK-E62DVLB3-
|
|
19199
|
-
"./locales/zh-TW.json": () => import("./zh-TW-RAJ6MFWO-
|
|
19145
|
+
"./locales/ar-SA.json": () => import("./ar-SA-G6X2FPQ2-BuMc-uTr.js"),
|
|
19146
|
+
"./locales/az-AZ.json": () => import("./az-AZ-76LH7QW2-BBpELU6r.js"),
|
|
19147
|
+
"./locales/bg-BG.json": () => import("./bg-BG-XCXSNQG7-BbIq4LtR.js"),
|
|
19148
|
+
"./locales/bn-BD.json": () => import("./bn-BD-2XOGV67Q-y4KBRebk.js"),
|
|
19149
|
+
"./locales/ca-ES.json": () => import("./ca-ES-6MX7JW3Y-D5NS_KZI.js"),
|
|
19150
|
+
"./locales/cs-CZ.json": () => import("./cs-CZ-2BRQDIVT-B1rRsOGM.js"),
|
|
19151
|
+
"./locales/da-DK.json": () => import("./da-DK-5WZEPLOC-De5jhZX-.js"),
|
|
19152
|
+
"./locales/de-DE.json": () => import("./de-DE-XR44H4JA-nXvIcwLu.js"),
|
|
19153
|
+
"./locales/el-GR.json": () => import("./el-GR-BZB4AONW-2KpqiaBa.js"),
|
|
19154
|
+
"./locales/en.json": () => import("./en-B4ZKOASM-hSA7FtD2.js"),
|
|
19155
|
+
"./locales/es-ES.json": () => import("./es-ES-U4NZUMDT-8_bzmvad.js"),
|
|
19156
|
+
"./locales/eu-ES.json": () => import("./eu-ES-A7QVB2H4-BhQt8hw_.js"),
|
|
19157
|
+
"./locales/fa-IR.json": () => import("./fa-IR-HGAKTJCU-CN48FKyv.js"),
|
|
19158
|
+
"./locales/fi-FI.json": () => import("./fi-FI-Z5N7JZ37-JtwD_USm.js"),
|
|
19159
|
+
"./locales/fr-FR.json": () => import("./fr-FR-RHASNOE6-CI821WLy.js"),
|
|
19160
|
+
"./locales/gl-ES.json": () => import("./gl-ES-HMX3MZ6V-JBJqjSBf.js"),
|
|
19161
|
+
"./locales/he-IL.json": () => import("./he-IL-6SHJWFNN-Btt-bhrC.js"),
|
|
19162
|
+
"./locales/hi-IN.json": () => import("./hi-IN-IWLTKZ5I-DzMahlAV.js"),
|
|
19163
|
+
"./locales/hu-HU.json": () => import("./hu-HU-A5ZG7DT2-bEbPpNCJ.js"),
|
|
19164
|
+
"./locales/id-ID.json": () => import("./id-ID-SAP4L64H-BiKdTEkU.js"),
|
|
19165
|
+
"./locales/it-IT.json": () => import("./it-IT-JPQ66NNP-DsxVyGSi.js"),
|
|
19166
|
+
"./locales/ja-JP.json": () => import("./ja-JP-DBVTYXUO-CcJz_ST7.js"),
|
|
19167
|
+
"./locales/kaa.json": () => import("./kaa-6HZHGXH3-DAhwLIHJ.js"),
|
|
19168
|
+
"./locales/kab-KAB.json": () => import("./kab-KAB-ZGHBKWFO-B9HQVGrf.js"),
|
|
19169
|
+
"./locales/kk-KZ.json": () => import("./kk-KZ-P5N5QNE5-7Ofr2xRM.js"),
|
|
19170
|
+
"./locales/km-KH.json": () => import("./km-KH-HSX4SM5Z-CG0R8WjY.js"),
|
|
19171
|
+
"./locales/ko-KR.json": () => import("./ko-KR-MTYHY66A-AGz4Hdaj.js"),
|
|
19172
|
+
"./locales/ku-TR.json": () => import("./ku-TR-6OUDTVRD-B2-t_8vR.js"),
|
|
19173
|
+
"./locales/lt-LT.json": () => import("./lt-LT-XHIRWOB4-I7g1xXi1.js"),
|
|
19174
|
+
"./locales/lv-LV.json": () => import("./lv-LV-5QDEKY6T-Ct3Cc3Ma.js"),
|
|
19175
|
+
"./locales/mr-IN.json": () => import("./mr-IN-CRQNXWMA-B6TUa2sR.js"),
|
|
19176
|
+
"./locales/my-MM.json": () => import("./my-MM-5M5IBNSE-DTEx81sN.js"),
|
|
19177
|
+
"./locales/nb-NO.json": () => import("./nb-NO-T6EIAALU-DZpwqCPW.js"),
|
|
19178
|
+
"./locales/nl-NL.json": () => import("./nl-NL-IS3SIHDZ-Bk4pHeqH.js"),
|
|
19179
|
+
"./locales/nn-NO.json": () => import("./nn-NO-6E72VCQL-DKtDQWHu.js"),
|
|
19180
|
+
"./locales/oc-FR.json": () => import("./oc-FR-POXYY2M6-BKkwOGcj.js"),
|
|
19181
|
+
"./locales/pa-IN.json": () => import("./pa-IN-N4M65BXN-CB1FvTjM.js"),
|
|
19182
|
+
"./locales/percentages.json": () => import("./percentages-BXMCSKIN-CoDIW1I3.js"),
|
|
19183
|
+
"./locales/pl-PL.json": () => import("./pl-PL-T2D74RX3-C-10gFgF.js"),
|
|
19184
|
+
"./locales/pt-BR.json": () => import("./pt-BR-5N22H2LF-BzjDglrW.js"),
|
|
19185
|
+
"./locales/pt-PT.json": () => import("./pt-PT-UZXXM6DQ-DzV8FtI3.js"),
|
|
19186
|
+
"./locales/ro-RO.json": () => import("./ro-RO-JPDTUUEW-Ottklz3_.js"),
|
|
19187
|
+
"./locales/ru-RU.json": () => import("./ru-RU-B4JR7IUQ-Cmx-KK8d.js"),
|
|
19188
|
+
"./locales/si-LK.json": () => import("./si-LK-N5RQ5JYF-BpKfRidb.js"),
|
|
19189
|
+
"./locales/sk-SK.json": () => import("./sk-SK-C5VTKIMK-CfBZvPWg.js"),
|
|
19190
|
+
"./locales/sl-SI.json": () => import("./sl-SI-NN7IZMDC-TtMKUeG7.js"),
|
|
19191
|
+
"./locales/sv-SE.json": () => import("./sv-SE-XGPEYMSR-BxBpmVWr.js"),
|
|
19192
|
+
"./locales/ta-IN.json": () => import("./ta-IN-2NMHFXQM-CDrgqB_h.js"),
|
|
19193
|
+
"./locales/th-TH.json": () => import("./th-TH-HPSO5L25-BhiDll_c.js"),
|
|
19194
|
+
"./locales/tr-TR.json": () => import("./tr-TR-DEFEU3FU-DPMxxC0S.js"),
|
|
19195
|
+
"./locales/uk-UA.json": () => import("./uk-UA-QMV73CPH-DR9nXnJ9.js"),
|
|
19196
|
+
"./locales/vi-VN.json": () => import("./vi-VN-M7AON7JQ-CQnrduv0.js"),
|
|
19197
|
+
"./locales/zh-CN.json": () => import("./zh-CN-LNUGB5OW-BGGXwznZ.js"),
|
|
19198
|
+
"./locales/zh-HK.json": () => import("./zh-HK-E62DVLB3--znI3-Br.js"),
|
|
19199
|
+
"./locales/zh-TW.json": () => import("./zh-TW-RAJ6MFWO-D536Rc9r.js")
|
|
19200
19200
|
}), JP = 85, YP = {
|
|
19201
19201
|
code: "en",
|
|
19202
19202
|
label: "English"
|
|
@@ -22477,7 +22477,7 @@ var dL = Y({
|
|
|
22477
22477
|
});
|
|
22478
22478
|
if (e === "png") {
|
|
22479
22479
|
let e = bD(u);
|
|
22480
|
-
return n.exportEmbedScene && (e = e.then((e) => import("./image-GAAHSSAO-
|
|
22480
|
+
return n.exportEmbedScene && (e = e.then((e) => import("./image-GAAHSSAO-CcRQ85F1.js").then(({ encodePngMetadata: i }) => i({
|
|
22481
22481
|
blob: e,
|
|
22482
22482
|
metadata: BS(t, n, r, "local")
|
|
22483
22483
|
})))), RS(e, {
|