ryugi-artifacts 1.68.0 → 1.68.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 (323) hide show
  1. package/dist/cli.cjs +3 -3
  2. package/dist/server.cjs +18 -4
  3. package/dist/viewer/{AgentStatusPill-BnKps9Zr.js → AgentStatusPill-CxFpJS9T.js} +1 -1
  4. package/dist/viewer/ArtboardLayout-9iOfvOR4.js +12 -0
  5. package/dist/viewer/{ArtifactList-CCxCNWid.js → ArtifactList-Binw79VZ.js} +1 -1
  6. package/dist/viewer/{AutoPublishPrompt-BrUfQWmW.js → AutoPublishPrompt-DkGEIW9t.js} +1 -1
  7. package/dist/viewer/{Avatar-ChKkUO4F.js → Avatar-BhOg2BXZ.js} +1 -1
  8. package/dist/viewer/{Avatar-CBcHKq6_.js → Avatar-VUQPY4DD.js} +1 -1
  9. package/dist/viewer/{BottomSheet-ZdnjIGxe.js → BottomSheet-AqG81d_M.js} +1 -1
  10. package/dist/viewer/{Canvas-CqxEk0B7.js → Canvas-4Utk2C18.js} +1 -1
  11. package/dist/viewer/{CompositeItem-Dc1pE-Dd.js → CompositeItem-ClMglprA.js} +1 -1
  12. package/dist/viewer/DocumentLayout-lys_dMmo.js +2 -0
  13. package/dist/viewer/{DocumentPage-DFTrEydU.js → DocumentPage-mDIgKhlQ.js} +2 -2
  14. package/dist/viewer/{DropdownMenu-MN8aSs-T.js → DropdownMenu-CZUIT5ss.js} +1 -1
  15. package/dist/viewer/{HtmlLayout-DhjuMVfU.js → HtmlLayout-89ZuJNxJ.js} +1 -1
  16. package/dist/viewer/{MenuSubmenuTrigger-6b5C_OEY.js → MenuSubmenuTrigger-B9c8QfBG.js} +1 -1
  17. package/dist/viewer/{MenuTrigger-C80SSxV1.js → MenuTrigger-yVEYn1Ao.js} +1 -1
  18. package/dist/viewer/{PhoneArtboardBar-Bzeyu7RL.js → PhoneArtboardBar-Bzffd2nB.js} +1 -1
  19. package/dist/viewer/{PhoneSheet-BqNn1A8k.js → PhoneSheet-CN4Ewszx.js} +1 -1
  20. package/dist/viewer/{Popover-Mq50eaGz.js → Popover-J_7ZaGFR.js} +1 -1
  21. package/dist/viewer/{PreviewLayout-CBXgXFHd.js → PreviewLayout-CA1vbD89.js} +2 -2
  22. package/dist/viewer/{Segmented-Dn3tMkJ1.js → Segmented-DhJdw1_a.js} +1 -1
  23. package/dist/viewer/{Select-B3iVUwhL.js → Select-Cqb37-IZ.js} +1 -1
  24. package/dist/viewer/{SelectScrollUpArrow-PZIGiE5i.js → SelectScrollUpArrow-DYO27Q2D.js} +1 -1
  25. package/dist/viewer/{SettingsDialog-Di1DIjuU.js → SettingsDialog-BpwMMImH.js} +1 -1
  26. package/dist/viewer/{SnapshotDocument-CZ9_zlbN.js → SnapshotDocument-DLK882r5.js} +1 -1
  27. package/dist/viewer/SplitShell-lfa8K-76.js +1 -0
  28. package/dist/viewer/{ThreadView-DhKDuMXE.js → ThreadView-CNiDFkdG.js} +1 -1
  29. package/dist/viewer/{TooltipPopup-DIfQd51a.js → TooltipPopup-DsKnBNAK.js} +1 -1
  30. package/dist/viewer/{VirtualizedEditor-D9Ivycdp-BS6qVQKi.js → VirtualizedEditor-D9Ivycdp-D8XCyuui.js} +1 -1
  31. package/dist/viewer/{VirtualizedRenderer-C_d95FXi-Cgx30lJW.js → VirtualizedRenderer-C_d95FXi-hark7DZu.js} +1 -1
  32. package/dist/viewer/{WarningsBadge-BhvEtIPf.js → WarningsBadge-DT8IiYtX.js} +1 -1
  33. package/dist/viewer/{WhiteboardLayout-BLUnPC_j.js → WhiteboardLayout-fX2Dx4Ro.js} +1 -1
  34. package/dist/viewer/{WritingCursor-D8-ImQmN.js → WritingCursor-DQcBMO0U.js} +1 -1
  35. package/dist/viewer/{abnfDiagram-VCTEODGH-CAaQSsKr.js → abnfDiagram-VCTEODGH-CTyAnl0Z.js} +1 -1
  36. package/dist/viewer/{agentLook-GSv6M_4b.js → agentLook-C2_12glW.js} +1 -1
  37. package/dist/viewer/{anchor-cpflnjH6.js → anchor-B2Eea6vf.js} +1 -1
  38. package/dist/viewer/{ar-SA-G6X2FPQ2-CRJustU_.js → ar-SA-G6X2FPQ2-Co8NUjyx.js} +1 -1
  39. package/dist/viewer/{architecture-7GRP2DOG-Df-BWMMn.js → architecture-7GRP2DOG-B0zVjmxn.js} +1 -1
  40. package/dist/viewer/{architectureDiagram-5GKGNRK7-slFJ5pNz.js → architectureDiagram-5GKGNRK7-CGcFQF9y.js} +1 -1
  41. package/dist/viewer/{az-AZ-76LH7QW2-BZXNMAjr.js → az-AZ-76LH7QW2-De3Qkr8D.js} +1 -1
  42. package/dist/viewer/{bg-BG-XCXSNQG7-D942OHJ1.js → bg-BG-XCXSNQG7-BzK_v3Xv.js} +1 -1
  43. package/dist/viewer/{blockDiagram-I7D4REHJ-D7tnOUmG.js → blockDiagram-I7D4REHJ-mTBluH4Q.js} +1 -1
  44. package/dist/viewer/{bn-BD-2XOGV67Q-CnUziB-N.js → bn-BD-2XOGV67Q-BDqCkFBJ.js} +1 -1
  45. package/dist/viewer/{c4Diagram-7LVT6UL2-A90PS1Zn.js → c4Diagram-7LVT6UL2-D-nVvYcu.js} +1 -1
  46. package/dist/viewer/{ca-ES-6MX7JW3Y-fV3kI3by.js → ca-ES-6MX7JW3Y-Di897XK8.js} +1 -1
  47. package/dist/viewer/{channel-Y8cPWVH2.js → channel-BnquVtpP.js} +5 -5
  48. package/dist/viewer/channel-OqtHMQX0.js +1 -0
  49. package/dist/viewer/{chunk-4HAMMTFA-Dtev5uNX.js → chunk-4HAMMTFA-QTbQqNtn.js} +1 -1
  50. package/dist/viewer/{chunk-75Z2AOVW-Br59Z0N6.js → chunk-75Z2AOVW-BbYnGlO9.js} +1 -1
  51. package/dist/viewer/{chunk-DU6HZSFF-DTVWCdhx.js → chunk-DU6HZSFF-D25kbUvc.js} +1 -1
  52. package/dist/viewer/{chunk-EIO257PC-BJo1mhGf.js → chunk-EIO257PC-BqMFp5wN.js} +1 -1
  53. package/dist/viewer/{chunk-F27PBJKO-CqXtkDh_.js → chunk-F27PBJKO-C7JmXEA_.js} +1 -1
  54. package/dist/viewer/{chunk-GMAD6QVW-C_mtYAsp.js → chunk-GMAD6QVW-C27INOB_.js} +1 -1
  55. package/dist/viewer/{chunk-GVQU2GXP-Dnn5H2Ee.js → chunk-GVQU2GXP-CEY5vytX.js} +1 -1
  56. package/dist/viewer/{chunk-IMKFNOWR-CBTdwY_-.js → chunk-IMKFNOWR-BQSAfnnl.js} +1 -1
  57. package/dist/viewer/{chunk-L3NEJ4N5-RIzLHntK.js → chunk-L3NEJ4N5-DlFoBxMY.js} +1 -1
  58. package/dist/viewer/{chunk-OSK3NFVY-CK41dOkH.js → chunk-OSK3NFVY-F3_Phybw.js} +1 -1
  59. package/dist/viewer/{chunk-P2QGCYS3-BL4CYLWw.js → chunk-P2QGCYS3-09egvNok.js} +1 -1
  60. package/dist/viewer/{chunk-POPQ4Y6H-CJsQjBoH.js → chunk-POPQ4Y6H-CV8YIoqC.js} +1 -1
  61. package/dist/viewer/{chunk-PWAF6VOD-DeuKxCvN.js → chunk-PWAF6VOD-Bz8UB2mc.js} +1 -1
  62. package/dist/viewer/{chunk-SHT3W25Y-1ctnl-w3.js → chunk-SHT3W25Y-DDp6zMvV.js} +1 -1
  63. package/dist/viewer/{chunk-SVP7TREG-0tebC1pj.js → chunk-SVP7TREG-C8P_HXcE.js} +1 -1
  64. package/dist/viewer/{chunk-TICWLB2K-BxhvtMAu.js → chunk-TICWLB2K-CqNIbLdD.js} +1 -1
  65. package/dist/viewer/classDiagram-ZZMXUADV-CVstJoyx.js +1 -0
  66. package/dist/viewer/classDiagram-v2-VYDZK3BY-CVstJoyx.js +1 -0
  67. package/dist/viewer/{cs-CZ-2BRQDIVT-DKXyGqNH.js → cs-CZ-2BRQDIVT-BqCK2YiO.js} +1 -1
  68. package/dist/viewer/{cynefin-OW5HDTMX-BUe484ye.js → cynefin-OW5HDTMX-Cj8F5cxd.js} +1 -1
  69. package/dist/viewer/{cynefinDiagram-5FMLGOSQ-CWdVGsBk.js → cynefinDiagram-5FMLGOSQ-ao8tcFtS.js} +1 -1
  70. package/dist/viewer/{da-DK-5WZEPLOC-b4IEozFV.js → da-DK-5WZEPLOC-D8GWiO3u.js} +1 -1
  71. package/dist/viewer/{dagre-GXQ25YYZ-DCuEklTp.js → dagre-GXQ25YYZ-DsGmxha_.js} +1 -1
  72. package/dist/viewer/{de-DE-XR44H4JA-C7sc34_X.js → de-DE-XR44H4JA-OJKx5xur.js} +1 -1
  73. package/dist/viewer/{diagram-S7CK7UJ4-CsxaHH4I.js → diagram-S7CK7UJ4-BPqNSGqm.js} +1 -1
  74. package/dist/viewer/{diagram-UQ7AKVKN-Ct8242ZE.js → diagram-UQ7AKVKN-Hyylpo16.js} +1 -1
  75. package/dist/viewer/{diagram-VSXAHHWV-C1nroriz.js → diagram-VSXAHHWV-CqqVLGLK.js} +1 -1
  76. package/dist/viewer/{diagram-VX7I27RA-DEWRSmDx.js → diagram-VX7I27RA-QDUSbpnl.js} +1 -1
  77. package/dist/viewer/{diagram-Z3DM3KII-B1SxmMm9.js → diagram-Z3DM3KII-BlSnfIUw.js} +1 -1
  78. package/dist/viewer/{dist-xKtvXW_M.js → dist-B0RTNhv0.js} +1 -1
  79. package/dist/viewer/{dist-Cse2aOfa.js → dist-B1Av84X-.js} +1 -1
  80. package/dist/viewer/{dist-CUWoav31.js → dist-B87a_nX-.js} +1 -1
  81. package/dist/viewer/{dist-kyCI0GjD.js → dist-BJa8XtNT.js} +1 -1
  82. package/dist/viewer/{dist-CXasQug3.js → dist-BX48icz_.js} +1 -1
  83. package/dist/viewer/{dist-lH8EGddX.js → dist-BbWMGndq.js} +1 -1
  84. package/dist/viewer/{dist-B6-aAGQA.js → dist-C6N0HZZ_.js} +1 -1
  85. package/dist/viewer/{dist-1xzhgjrK.js → dist-C81cCD06.js} +1 -1
  86. package/dist/viewer/{dist-DKkW9dU5.js → dist-C9d9kCQe.js} +1 -1
  87. package/dist/viewer/{dist-D2yfyCbT.js → dist-CFCYK1GH.js} +1 -1
  88. package/dist/viewer/{dist-fyPnRLSz.js → dist-CIMZ7MXi.js} +1 -1
  89. package/dist/viewer/{dist-VAycv_3i.js → dist-CIwFN_9o.js} +1 -1
  90. package/dist/viewer/{dist-CA2_d8WP.js → dist-CUOaFOZB.js} +1 -1
  91. package/dist/viewer/{dist-rHgXqZ3U.js → dist-CZqMgpXJ.js} +1 -1
  92. package/dist/viewer/{dist-C4zEBXjK.js → dist-CuFXRlWd.js} +1 -1
  93. package/dist/viewer/{dist-C8JtF2VW.js → dist-D-AftFRp.js} +1 -1
  94. package/dist/viewer/{dist-B4M9sgR9.js → dist-DHCEOOdB.js} +1 -1
  95. package/dist/viewer/{dist-DKLouXV5.js → dist-DNRvf1kb.js} +1 -1
  96. package/dist/viewer/{dist-B0ahrRmN.js → dist-F9yavwpT.js} +1 -1
  97. package/dist/viewer/{dist-B3kJb0_U.js → dist-RJrXrBtP.js} +1 -1
  98. package/dist/viewer/{dist-Cy8NldSx.js → dist-XKj_gvVl.js} +4 -4
  99. package/dist/viewer/{dist-B9Rn0Zrs.js → dist-e4BQGX6z.js} +1 -1
  100. package/dist/viewer/{dist-Ds6VFWTz.js → dist-hmTi_WJo.js} +1 -1
  101. package/dist/viewer/{dist-CBB6_G5_.js → dist-w5u3PgvM.js} +1 -1
  102. package/dist/viewer/{ebnfDiagram-PWID7BFC-BwAXcSMu.js → ebnfDiagram-PWID7BFC-Cv8jFIx3.js} +1 -1
  103. package/dist/viewer/{el-GR-BZB4AONW-DO8FKq0o.js → el-GR-BZB4AONW-Bgcc_mhT.js} +1 -1
  104. package/dist/viewer/{en-B4ZKOASM-BGb9Jd7F.js → en-B4ZKOASM-xfJgNr4J.js} +1 -1
  105. package/dist/viewer/{erDiagram-RLTQ6QDP-BU0oilOu.js → erDiagram-RLTQ6QDP-DlKwxifM.js} +1 -1
  106. package/dist/viewer/{es-ES-U4NZUMDT-C8my4jC1.js → es-ES-U4NZUMDT-DjVCDf-d.js} +1 -1
  107. package/dist/viewer/{eu-ES-A7QVB2H4-7y6iA3PQ.js → eu-ES-A7QVB2H4-B9DLpn4i.js} +1 -1
  108. package/dist/viewer/{eventmodeling-NTZA5JFV-soHgkZ82.js → eventmodeling-NTZA5JFV-DBsen_iq.js} +1 -1
  109. package/dist/viewer/{fa-IR-HGAKTJCU-oCdmxr1e.js → fa-IR-HGAKTJCU-mcJehgzb.js} +1 -1
  110. package/dist/viewer/{fi-FI-Z5N7JZ37-X3VK0x3c.js → fi-FI-Z5N7JZ37-DNSkiCdk.js} +1 -1
  111. package/dist/viewer/flowDiagram-HODETNUW-CzgiVLhq.js +1 -0
  112. package/dist/viewer/{fr-FR-RHASNOE6-zrXrM79-.js → fr-FR-RHASNOE6-Bpxco8-f.js} +1 -1
  113. package/dist/viewer/{ganttDiagram-EL5Y4UJY-bHjB1qlT.js → ganttDiagram-EL5Y4UJY-B9_jTP-f.js} +1 -1
  114. package/dist/viewer/{gitGraph-4MIJSDKK-CjGC-mW6.js → gitGraph-4MIJSDKK-DQ5l_Czp.js} +1 -1
  115. package/dist/viewer/{gitGraphDiagram-WWUBYQGX-DUqXPpCq.js → gitGraphDiagram-WWUBYQGX-CNheUmFp.js} +1 -1
  116. package/dist/viewer/{gl-ES-HMX3MZ6V-BUnj3HlN.js → gl-ES-HMX3MZ6V-BDlXQ8Mo.js} +1 -1
  117. package/dist/viewer/{he-IL-6SHJWFNN-281kRBUf.js → he-IL-6SHJWFNN-D_oWBOT_.js} +1 -1
  118. package/dist/viewer/{hi-IN-IWLTKZ5I-DIuMdRpK.js → hi-IN-IWLTKZ5I-B00j5Akq.js} +1 -1
  119. package/dist/viewer/{hu-HU-A5ZG7DT2-nmQyfjlR.js → hu-HU-A5ZG7DT2-Dir0Uxpm.js} +1 -1
  120. package/dist/viewer/{id-ID-SAP4L64H-BiViI6m_.js → id-ID-SAP4L64H-CIWlaa2K.js} +1 -1
  121. package/dist/viewer/{image-GAAHSSAO-yI0Lg6gi.js → image-GAAHSSAO-eNNIIQuo.js} +1 -1
  122. package/dist/viewer/index.html +5 -5
  123. package/dist/viewer/index.js +2 -2
  124. package/dist/viewer/{info-A6RAGUB7-B0l9mAY4.js → info-A6RAGUB7-Cg2ZMBgH.js} +1 -1
  125. package/dist/viewer/{infoDiagram-27XIBGKW-BTxMqmhS.js → infoDiagram-27XIBGKW-D4PQhgAE.js} +1 -1
  126. package/dist/viewer/{ishikawaDiagram-5VMMS53U-BunWcUgG.js → ishikawaDiagram-5VMMS53U-ST2q8zVR.js} +1 -1
  127. package/dist/viewer/{it-IT-JPQ66NNP-DpwQuK5q.js → it-IT-JPQ66NNP-pmEG31XC.js} +1 -1
  128. package/dist/viewer/{ja-JP-DBVTYXUO-Dg0jZ4Fr.js → ja-JP-DBVTYXUO-B4zqTUsM.js} +1 -1
  129. package/dist/viewer/{journeyDiagram-3NMN7TZE-CH0mNNME.js → journeyDiagram-3NMN7TZE-jw9cozQW.js} +1 -1
  130. package/dist/viewer/{kaa-6HZHGXH3-Byd9GDLK.js → kaa-6HZHGXH3-BbZXuqjx.js} +1 -1
  131. package/dist/viewer/{kab-KAB-ZGHBKWFO-a6r59Esz.js → kab-KAB-ZGHBKWFO-B6Dpy25G.js} +1 -1
  132. package/dist/viewer/{kanban-definition-UXKFOSKX-Dlxx1p8m.js → kanban-definition-UXKFOSKX-kKtBGERG.js} +1 -1
  133. package/dist/viewer/{kk-KZ-P5N5QNE5-zq8glNLW.js → kk-KZ-P5N5QNE5-BlT2i9fi.js} +1 -1
  134. package/dist/viewer/{km-KH-HSX4SM5Z-BTq35Fiu.js → km-KH-HSX4SM5Z-It93cDWb.js} +1 -1
  135. package/dist/viewer/{ko-KR-MTYHY66A-DlgDzRH_.js → ko-KR-MTYHY66A-BE5d6K1R.js} +1 -1
  136. package/dist/viewer/{ku-TR-6OUDTVRD-BVLk13SV.js → ku-TR-6OUDTVRD-CyJeB7Dj.js} +1 -1
  137. package/dist/viewer/{local-split-host-xSgjCeui.js → local-split-host-DwGe1ki5.js} +1 -1
  138. package/dist/viewer/{lt-LT-XHIRWOB4-6q0TFRDx.js → lt-LT-XHIRWOB4-B90xeOxU.js} +1 -1
  139. package/dist/viewer/{lv-LV-5QDEKY6T-DxyqknhI.js → lv-LV-5QDEKY6T-CItjDmqr.js} +1 -1
  140. package/dist/viewer/{mermaid-parser.core-Gvb8dIz1.js → mermaid-parser.core-0b8QyWBB.js} +3 -3
  141. package/dist/viewer/{mindmap-definition-YA3MSWOX-DCPYU-48.js → mindmap-definition-YA3MSWOX-aI29Qvpk.js} +1 -1
  142. package/dist/viewer/{mr-IN-CRQNXWMA-D2tHgrn-.js → mr-IN-CRQNXWMA-Tce1KbsQ.js} +1 -1
  143. package/dist/viewer/{my-MM-5M5IBNSE-BYWw8v9n.js → my-MM-5M5IBNSE-CpUB2CXI.js} +1 -1
  144. package/dist/viewer/{nb-NO-T6EIAALU-K3IdDtSM.js → nb-NO-T6EIAALU-DsRuGO1k.js} +1 -1
  145. package/dist/viewer/{nl-NL-IS3SIHDZ-O5S6GhQJ.js → nl-NL-IS3SIHDZ-BjF2156S.js} +1 -1
  146. package/dist/viewer/{nn-NO-6E72VCQL-CG7rDNE2.js → nn-NO-6E72VCQL-CGeF_3vr.js} +1 -1
  147. package/dist/viewer/{oc-FR-POXYY2M6-DVAwA1YG.js → oc-FR-POXYY2M6-DLnQnEGu.js} +1 -1
  148. package/dist/viewer/{pa-IN-N4M65BXN-BfskjU3c.js → pa-IN-N4M65BXN-BAx2ywdg.js} +1 -1
  149. package/dist/viewer/{packet-AYTQ26CC-V9JOIpxu.js → packet-AYTQ26CC-DK170Gd5.js} +1 -1
  150. package/dist/viewer/{parseTrigger-Bl4n5XXS.js → parseTrigger-YW1R9ofU.js} +1 -1
  151. package/dist/viewer/{pegDiagram-XKGWAZYB-CRwdoRdU.js → pegDiagram-XKGWAZYB-DHp6Wg_9.js} +1 -1
  152. package/dist/viewer/percentages-BXMCSKIN-DvCjqEYt.js +1 -0
  153. package/dist/viewer/{pie-WAS4IAKB-DD4VdSya.js → pie-WAS4IAKB-BSUWPbAv.js} +1 -1
  154. package/dist/viewer/{pieDiagram-E7YTZNPT-DtxXj_uG.js → pieDiagram-E7YTZNPT-wfRRTiyk.js} +1 -1
  155. package/dist/viewer/{pl-PL-T2D74RX3-aSM3OymY.js → pl-PL-T2D74RX3-BiWBdXLi.js} +1 -1
  156. package/dist/viewer/preview.html +4 -4
  157. package/dist/viewer/preview.js +1 -1
  158. package/dist/viewer/{prod-DT6gDrhK.js → prod-CLoF9GCs.js} +8 -8
  159. package/dist/viewer/{pt-BR-5N22H2LF-CoE1Brmo.js → pt-BR-5N22H2LF-CQSzKbCy.js} +1 -1
  160. package/dist/viewer/{pt-PT-UZXXM6DQ-N4cE4HWd.js → pt-PT-UZXXM6DQ-CIlCAlTv.js} +1 -1
  161. package/dist/viewer/{quadrantDiagram-AXDQQJYC-Bp9CaPDI.js → quadrantDiagram-AXDQQJYC-BtPMYaDQ.js} +1 -1
  162. package/dist/viewer/{radar-RG4KPBEZ-DjIgW5TK.js → radar-RG4KPBEZ-BcVxV4zy.js} +1 -1
  163. package/dist/viewer/{railroad-74A4TZTK-DJXF4Ntz.js → railroad-74A4TZTK-CTa8S3gO.js} +1 -1
  164. package/dist/viewer/{railroad-abnf-HS5TGJTU-D2uor4gn.js → railroad-abnf-HS5TGJTU-OAwQkYAd.js} +1 -1
  165. package/dist/viewer/{railroad-ebnf-LZEXJU2U-d-1EQm0I.js → railroad-ebnf-LZEXJU2U-C5cc5X65.js} +1 -1
  166. package/dist/viewer/{railroad-peg-WCYAUIDC-VVFlD8Wt.js → railroad-peg-WCYAUIDC-BDnKRxE1.js} +1 -1
  167. package/dist/viewer/{railroadDiagram-O6MQD6OU-DIYzZs3X.js → railroadDiagram-O6MQD6OU-jnRSJdUv.js} +1 -1
  168. package/dist/viewer/{ref-DeJSmII1.js → ref-cwone_vf.js} +1 -1
  169. package/dist/viewer/{requirementDiagram-BXWQKSXE-BFAS1s1U.js → requirementDiagram-BXWQKSXE-BNTKDL1i.js} +1 -1
  170. package/dist/viewer/{ro-RO-JPDTUUEW-CXL_OLY6.js → ro-RO-JPDTUUEW-QX3jx-nb.js} +1 -1
  171. package/dist/viewer/{route-B-3a8kXR.js → route-BWL5AGYx.js} +2 -2
  172. package/dist/viewer/{route-messages-D6nsn-yO.js → route-messages-DNqJY8RF.js} +1 -1
  173. package/dist/viewer/{ru-RU-B4JR7IUQ-DK0raNaa.js → ru-RU-B4JR7IUQ-C9FGD7Cs.js} +1 -1
  174. package/dist/viewer/{sankeyDiagram-P5KCCOFB-XkkNzFLA.js → sankeyDiagram-P5KCCOFB-Sqlj0O4h.js} +1 -1
  175. package/dist/viewer/{selection-A2L_U7cp.js → selection--wknfKoX.js} +1 -1
  176. package/dist/viewer/{sequenceDiagram-WJ2MYXX4-u1vCwsJu.js → sequenceDiagram-WJ2MYXX4-CPdR8yLJ.js} +1 -1
  177. package/dist/viewer/{si-LK-N5RQ5JYF-C2C_capt.js → si-LK-N5RQ5JYF-f_2YLEad.js} +1 -1
  178. package/dist/viewer/{sk-SK-C5VTKIMK-CAZ_jqda.js → sk-SK-C5VTKIMK-DkKosukU.js} +1 -1
  179. package/dist/viewer/{sl-SI-NN7IZMDC-w4mPw9Qr.js → sl-SI-NN7IZMDC-DMIQDLDl.js} +1 -1
  180. package/dist/viewer/{split-url-Ds_SbiRI.js → split-url-EQlIwqCq.js} +1 -1
  181. package/dist/viewer/{stateDiagram-D77RDMKH-CNdAB9GQ.js → stateDiagram-D77RDMKH-Dk8vgDDZ.js} +1 -1
  182. package/dist/viewer/stateDiagram-v2-MP3YSRHH-Ds741M59.js +1 -0
  183. package/dist/viewer/subset-shared.chunk-BwlAfs_X.js +1 -0
  184. package/dist/viewer/{subset-worker.chunk-DWr778aR.js → subset-worker.chunk-B_8bLook.js} +1 -1
  185. package/dist/viewer/{sv-SE-XGPEYMSR-Cvj4W126.js → sv-SE-XGPEYMSR-B7-5iBmq.js} +1 -1
  186. package/dist/viewer/{swimlanes-42K2YHIH-CRWoFAkx.js → swimlanes-42K2YHIH-C8ikgnYd.js} +1 -1
  187. package/dist/viewer/swimlanesDiagram-VR7AAH4N-CIbxLGch.js +8 -0
  188. package/dist/viewer/{ta-IN-2NMHFXQM-pCSxo0O4.js → ta-IN-2NMHFXQM-CCuxmYHa.js} +1 -1
  189. package/dist/viewer/{th-TH-HPSO5L25-DA2yXkLO.js → th-TH-HPSO5L25-555yyoqZ.js} +1 -1
  190. package/dist/viewer/{timeline-definition-24CTP7MA-C7cLrh2M.js → timeline-definition-24CTP7MA-C2dpylBO.js} +1 -1
  191. package/dist/viewer/{tr-TR-DEFEU3FU-DSUJUHLi.js → tr-TR-DEFEU3FU-BzupxUte.js} +1 -1
  192. package/dist/viewer/{treeView-Q6P3EWNA-CYMsee9z.js → treeView-Q6P3EWNA-Bo2ovp6d.js} +1 -1
  193. package/dist/viewer/{treemap-WGGIJYW6-BeYAJy3I.js → treemap-WGGIJYW6-B_JgUt2a.js} +1 -1
  194. package/dist/viewer/{uk-UA-QMV73CPH-CpavbdpO.js → uk-UA-QMV73CPH-DRep9RrQ.js} +1 -1
  195. package/dist/viewer/{useAriaLabelledBy-Ai3baFaJ.js → useAriaLabelledBy-qrGtdh85.js} +1 -1
  196. package/dist/viewer/{useOpenInteractionType-CFrlkl-M.js → useOpenInteractionType-B0XlD3Xc.js} +1 -1
  197. package/dist/viewer/{useTranslation-BCUMbI5g.js → useTranslation-D3df1rHG.js} +1 -1
  198. package/dist/viewer/{useTypeFavicon-B4j5zCC6.js → useTypeFavicon-COeOH_8h.js} +1 -1
  199. package/dist/viewer/{vennDiagram-4TSXK5OY-D-TvgzEs.js → vennDiagram-4TSXK5OY-BmwVNbSU.js} +1 -1
  200. package/dist/viewer/{vi-VN-M7AON7JQ-149ovaXw.js → vi-VN-M7AON7JQ-HxuRLuM7.js} +1 -1
  201. package/dist/viewer/{view-tN_gu_ot.js → view-Q3sf2djn.js} +1 -1
  202. package/dist/viewer/{viewport-CFJHn_Y6-gOi1FTqq.js → viewport-CFJHn_Y6-CbqGY5Lo.js} +1 -1
  203. package/dist/viewer/{wardley-WFR3VGLG-Bxei-rkR.js → wardley-WFR3VGLG-D6GPmsYf.js} +1 -1
  204. package/dist/viewer/{wardleyDiagram-VM6X3IG4-Behq92Qv.js → wardleyDiagram-VM6X3IG4-BL1YKfSh.js} +1 -1
  205. package/dist/viewer/{xychartDiagram-S5SC5T6Z-WvqgiYkm.js → xychartDiagram-S5SC5T6Z-9WjSzaRU.js} +1 -1
  206. package/dist/viewer/{zh-CN-LNUGB5OW-Bh3vP78p.js → zh-CN-LNUGB5OW-C_gHexkj.js} +1 -1
  207. package/dist/viewer/{zh-HK-E62DVLB3-DyLx4WST.js → zh-HK-E62DVLB3-Dhwq5Laa.js} +1 -1
  208. package/dist/viewer/{zh-TW-RAJ6MFWO-CzGpQq8F.js → zh-TW-RAJ6MFWO-CfId5kew.js} +1 -1
  209. package/dist/viewer-lib/{Canvas-D1GKtdWi.js → Canvas-BIOxiTKF.js} +3 -3
  210. package/dist/viewer-lib/{PhoneArtboardBar-Wif7mAXi.js → PhoneArtboardBar-BHqZKvJt.js} +2 -2
  211. package/dist/viewer-lib/{PreviewView-96hXi1zy.js → PreviewView-CpOviFy0.js} +2 -2
  212. package/dist/viewer-lib/{ReadOnlyWhiteboard-ByJSgs6y.js → ReadOnlyWhiteboard-BmJvK9cn.js} +3 -3
  213. package/dist/viewer-lib/{SnapshotDocument-boYf3Unu.js → SnapshotDocument-CoYU0Lh9.js} +32 -32
  214. package/dist/viewer-lib/{VirtualizedEditor-D9Ivycdp-C1r2x0pX.js → VirtualizedEditor-D9Ivycdp-BIjSlsIz.js} +2 -2
  215. package/dist/viewer-lib/{VirtualizedRenderer-C_d95FXi-lZgY7VI5.js → VirtualizedRenderer-C_d95FXi-Bnj6-pgS.js} +3 -3
  216. package/dist/viewer-lib/{WarningsBadge-B8dxGKka.js → WarningsBadge-1xR7QoZB.js} +1 -1
  217. package/dist/viewer-lib/{agentLook-0GsgKSL-.js → agentLook-xSyYY25N.js} +1 -1
  218. package/dist/viewer-lib/{ar-SA-G6X2FPQ2-D01gdPpr.js → ar-SA-G6X2FPQ2-CEJUrUcf.js} +1 -1
  219. package/dist/viewer-lib/{az-AZ-76LH7QW2-C7w5r7bD.js → az-AZ-76LH7QW2-D3FZr56u.js} +1 -1
  220. package/dist/viewer-lib/{bg-BG-XCXSNQG7-p2Qatdni.js → bg-BG-XCXSNQG7-DV2gd8SJ.js} +1 -1
  221. package/dist/viewer-lib/{bn-BD-2XOGV67Q-DtnIWXwT.js → bn-BD-2XOGV67Q-fNhYcJwe.js} +1 -1
  222. package/dist/viewer-lib/{ca-ES-6MX7JW3Y-BY9zZN7o.js → ca-ES-6MX7JW3Y-p45OBk_B.js} +1 -1
  223. package/dist/viewer-lib/{chunk-EIO257PC-Dn7JUPD8.js → chunk-EIO257PC-CXXH8Md3.js} +1 -1
  224. package/dist/viewer-lib/core.js +2 -2
  225. package/dist/viewer-lib/{cs-CZ-2BRQDIVT-BzjoZdth.js → cs-CZ-2BRQDIVT-CY75gnzI.js} +1 -1
  226. package/dist/viewer-lib/{da-DK-5WZEPLOC-TDV970j5.js → da-DK-5WZEPLOC-DmMaYPrm.js} +1 -1
  227. package/dist/viewer-lib/{de-DE-XR44H4JA-BjyTyKoM.js → de-DE-XR44H4JA-DYfV8p9-.js} +1 -1
  228. package/dist/viewer-lib/{dist-C60FpC9e.js → dist-4trVCfjq.js} +1 -1
  229. package/dist/viewer-lib/{dist-DK1Yi8I4.js → dist-B-j0RxZR.js} +4 -4
  230. package/dist/viewer-lib/{dist-D9IzrveE.js → dist-B6v4d2OE.js} +2 -2
  231. package/dist/viewer-lib/{dist-Cfk5Y4QC.js → dist-BBbxY7eN.js} +2 -2
  232. package/dist/viewer-lib/{dist-CgQmu9ki.js → dist-BLZACBxn.js} +3 -3
  233. package/dist/viewer-lib/{dist-bPGj_tUd.js → dist-BhD6uqFF.js} +4 -4
  234. package/dist/viewer-lib/{dist-D778PgeW.js → dist-Blffswa2.js} +2 -2
  235. package/dist/viewer-lib/{dist-xJDwc_X3.js → dist-C18P64_H.js} +3 -3
  236. package/dist/viewer-lib/{dist-C38vNQIH.js → dist-C3iKnxkm.js} +1 -1
  237. package/dist/viewer-lib/{dist-D36o7D7T.js → dist-C9wjN4qP.js} +2 -2
  238. package/dist/viewer-lib/{dist-CBjyw6zC.js → dist-CAQ5QqVX.js} +2 -2
  239. package/dist/viewer-lib/{dist-BTCqhvAf.js → dist-CGygFbGE.js} +4 -4
  240. package/dist/viewer-lib/{dist-CPnB9yKQ.js → dist-ChCdGydn.js} +3 -3
  241. package/dist/viewer-lib/{dist-DYd0_e2w.js → dist-ChJMfI_4.js} +2 -2
  242. package/dist/viewer-lib/{dist-DHEOl2TN.js → dist-CmgL1T8b.js} +2 -2
  243. package/dist/viewer-lib/{dist-FVtL0y1F.js → dist-CpKXDAbK.js} +3 -3
  244. package/dist/viewer-lib/{dist-vd2-brQn.js → dist-Cqnr_svH.js} +3 -3
  245. package/dist/viewer-lib/{dist-Cr_rgBD9.js → dist-DMtbeBEG.js} +3 -3
  246. package/dist/viewer-lib/{dist-BEz688xk.js → dist-DP5eJBUk.js} +3 -3
  247. package/dist/viewer-lib/{dist-qS7iA2eX.js → dist-DW_uBzP-.js} +3 -3
  248. package/dist/viewer-lib/{dist-CMWQEa97.js → dist-DWjD6K4x.js} +3 -3
  249. package/dist/viewer-lib/{dist-DULdzKdC.js → dist-DwE6N9nw.js} +3 -3
  250. package/dist/viewer-lib/{dist-BSFDUw8i.js → dist-FMKgeQVH.js} +2 -2
  251. package/dist/viewer-lib/document.js +6 -6
  252. package/dist/viewer-lib/{el-GR-BZB4AONW-Be_WFnxM.js → el-GR-BZB4AONW-C0-Rg3rY.js} +1 -1
  253. package/dist/viewer-lib/{en-B4ZKOASM-CqCyVRMQ.js → en-B4ZKOASM-CWwARfdU.js} +1 -1
  254. package/dist/viewer-lib/{es-ES-U4NZUMDT-BbunaFz5.js → es-ES-U4NZUMDT-Di1ZUIVa.js} +1 -1
  255. package/dist/viewer-lib/{eu-ES-A7QVB2H4-CiDfJl0F.js → eu-ES-A7QVB2H4-DfxpIbwQ.js} +1 -1
  256. package/dist/viewer-lib/{fa-IR-HGAKTJCU-CLdHVNrd.js → fa-IR-HGAKTJCU-BzJgn5bY.js} +1 -1
  257. package/dist/viewer-lib/{fi-FI-Z5N7JZ37-AInwUM2B.js → fi-FI-Z5N7JZ37-Dgh9WYA8.js} +1 -1
  258. package/dist/viewer-lib/{fr-FR-RHASNOE6-5qcE-nn9.js → fr-FR-RHASNOE6-FxbVo7Yh.js} +1 -1
  259. package/dist/viewer-lib/{gl-ES-HMX3MZ6V-C_hmLe5L.js → gl-ES-HMX3MZ6V-BwezJSl-.js} +1 -1
  260. package/dist/viewer-lib/{he-IL-6SHJWFNN-Bs4SMN5Y.js → he-IL-6SHJWFNN-CMKZRRs9.js} +1 -1
  261. package/dist/viewer-lib/{hi-IN-IWLTKZ5I-CHsG_prh.js → hi-IN-IWLTKZ5I-4-ZNp-DM.js} +1 -1
  262. package/dist/viewer-lib/{hu-HU-A5ZG7DT2-BpNCnfmz.js → hu-HU-A5ZG7DT2-Cao8cecF.js} +1 -1
  263. package/dist/viewer-lib/{i18n-Bl255uFG.js → i18n-QksLzzWi.js} +2 -0
  264. package/dist/viewer-lib/{id-ID-SAP4L64H-B18MP3TV.js → id-ID-SAP4L64H-CWnVrU2u.js} +1 -1
  265. package/dist/viewer-lib/{image-GAAHSSAO-DVKnh1wc.js → image-GAAHSSAO-5jYfRo5K.js} +1 -1
  266. package/dist/viewer-lib/index.js +462 -436
  267. package/dist/viewer-lib/{it-IT-JPQ66NNP-BH98nLgr.js → it-IT-JPQ66NNP-DiPCKoa_.js} +1 -1
  268. package/dist/viewer-lib/{ja-JP-DBVTYXUO-DA2fExJg.js → ja-JP-DBVTYXUO-CXbGOVTd.js} +1 -1
  269. package/dist/viewer-lib/{kaa-6HZHGXH3-C-82oNQ2.js → kaa-6HZHGXH3-BkMVWloD.js} +1 -1
  270. package/dist/viewer-lib/{kab-KAB-ZGHBKWFO-CsOeYyyg.js → kab-KAB-ZGHBKWFO-FA3Rofsx.js} +1 -1
  271. package/dist/viewer-lib/{kk-KZ-P5N5QNE5-C5vZz2mB.js → kk-KZ-P5N5QNE5-CsDnxzrG.js} +1 -1
  272. package/dist/viewer-lib/{km-KH-HSX4SM5Z-Ds8sNL7U.js → km-KH-HSX4SM5Z-BxCiwgzA.js} +1 -1
  273. package/dist/viewer-lib/{ko-KR-MTYHY66A-BgSaRncC.js → ko-KR-MTYHY66A-C-7uFPlL.js} +1 -1
  274. package/dist/viewer-lib/{ku-TR-6OUDTVRD-DahxJWf5.js → ku-TR-6OUDTVRD-BILRBU5_.js} +1 -1
  275. package/dist/viewer-lib/{lib-HJ5naU7F.js → lib-DwpunbxQ.js} +1 -1
  276. package/dist/viewer-lib/{lt-LT-XHIRWOB4-BvJ2fjcP.js → lt-LT-XHIRWOB4-B6TKZcXY.js} +1 -1
  277. package/dist/viewer-lib/{lv-LV-5QDEKY6T-CfcDbPw2.js → lv-LV-5QDEKY6T-C-K90vIy.js} +1 -1
  278. package/dist/viewer-lib/{mr-IN-CRQNXWMA-C8OfBL2I.js → mr-IN-CRQNXWMA-K0hO9NLW.js} +1 -1
  279. package/dist/viewer-lib/{my-MM-5M5IBNSE-BUCYgqBD.js → my-MM-5M5IBNSE-Da5X6e7B.js} +1 -1
  280. package/dist/viewer-lib/{nb-NO-T6EIAALU-BhVURg4a.js → nb-NO-T6EIAALU-D9WwGGq8.js} +1 -1
  281. package/dist/viewer-lib/{nl-NL-IS3SIHDZ-C5NGTrjU.js → nl-NL-IS3SIHDZ-BOYOn6bl.js} +1 -1
  282. package/dist/viewer-lib/{nn-NO-6E72VCQL-CIOwp8RU.js → nn-NO-6E72VCQL-Bwi6kGD3.js} +1 -1
  283. package/dist/viewer-lib/{oc-FR-POXYY2M6-Da6SyINm.js → oc-FR-POXYY2M6-h8Hb5RCQ.js} +1 -1
  284. package/dist/viewer-lib/{pa-IN-N4M65BXN-tDTX0nfg.js → pa-IN-N4M65BXN-DHJ5ZqCB.js} +1 -1
  285. package/dist/viewer-lib/percentages-BXMCSKIN-CN_vO7hH.js +1 -0
  286. package/dist/viewer-lib/{pl-PL-T2D74RX3-dj1Dwz0C.js → pl-PL-T2D74RX3-DSrRpGY_.js} +1 -1
  287. package/dist/viewer-lib/{plugin-_bGVeqI0-D3iBrFnz.js → plugin-_bGVeqI0-Ce9s-QXj.js} +1 -1
  288. package/dist/viewer-lib/{prod-B7QWq4m3.js → prod-IPTdmVn7.js} +59 -59
  289. package/dist/viewer-lib/{pt-BR-5N22H2LF-BL2Y-MuR.js → pt-BR-5N22H2LF-Cnku-mHw.js} +1 -1
  290. package/dist/viewer-lib/{pt-PT-UZXXM6DQ-BjYJ2Wd6.js → pt-PT-UZXXM6DQ-CI4Lw12R.js} +1 -1
  291. package/dist/viewer-lib/{ro-RO-JPDTUUEW-D-wh7Qsh.js → ro-RO-JPDTUUEW-Z0rMTCBA.js} +1 -1
  292. package/dist/viewer-lib/{route-messages-Cd_S7ERg.js → route-messages-BHovJ4nB.js} +2 -2
  293. package/dist/viewer-lib/{ru-RU-B4JR7IUQ-Vqbdm2HB.js → ru-RU-B4JR7IUQ-DH7fwhiu.js} +1 -1
  294. package/dist/viewer-lib/{si-LK-N5RQ5JYF-FWjQj7wM.js → si-LK-N5RQ5JYF-BFG1Q032.js} +1 -1
  295. package/dist/viewer-lib/{sk-SK-C5VTKIMK-CPdKjgc0.js → sk-SK-C5VTKIMK-nKDfxLLq.js} +1 -1
  296. package/dist/viewer-lib/{sl-SI-NN7IZMDC-Cfsizmp1.js → sl-SI-NN7IZMDC-zdGtFnJ4.js} +1 -1
  297. package/dist/viewer-lib/subset-shared.chunk-BI1a3Hz4.js +2 -0
  298. package/dist/viewer-lib/{subset-worker.chunk-ockc4DfZ.js → subset-worker.chunk-DHe1FqQ-.js} +2 -2
  299. package/dist/viewer-lib/{sv-SE-XGPEYMSR-CkNdCBoc.js → sv-SE-XGPEYMSR-MVhH_h3w.js} +1 -1
  300. package/dist/viewer-lib/{ta-IN-2NMHFXQM-Cqhx65Sb.js → ta-IN-2NMHFXQM-C_I2r20T.js} +1 -1
  301. package/dist/viewer-lib/{th-TH-HPSO5L25-Cz6Qzk1K.js → th-TH-HPSO5L25-DQ6MPZ1r.js} +1 -1
  302. package/dist/viewer-lib/{tr-TR-DEFEU3FU-CCCN9YIS.js → tr-TR-DEFEU3FU-BNz_PazH.js} +1 -1
  303. package/dist/viewer-lib/types/src/shared/backlinks.d.ts +1 -0
  304. package/dist/viewer-lib/{uk-UA-QMV73CPH-CP4wZTK4.js → uk-UA-QMV73CPH-Dn_Qrdeq.js} +1 -1
  305. package/dist/viewer-lib/{vi-VN-M7AON7JQ-DQsgQGd7.js → vi-VN-M7AON7JQ-C777_3GC.js} +1 -1
  306. package/dist/viewer-lib/{viewport-CFJHn_Y6-LGEa8Vm0.js → viewport-CFJHn_Y6-DCoJRNQ_.js} +1 -1
  307. package/dist/viewer-lib/{zh-CN-LNUGB5OW-Cp6CD9iP.js → zh-CN-LNUGB5OW-yPc5aNBV.js} +1 -1
  308. package/dist/viewer-lib/{zh-HK-E62DVLB3-B_z5KWS4.js → zh-HK-E62DVLB3-DL9Y2kPe.js} +1 -1
  309. package/dist/viewer-lib/{zh-TW-RAJ6MFWO-BgUsVK92.js → zh-TW-RAJ6MFWO-3VDE8SB2.js} +1 -1
  310. package/package.json +1 -1
  311. package/dist/viewer/ArtboardLayout-Cz1MWCu8.js +0 -12
  312. package/dist/viewer/DocumentLayout-B1bQT74s.js +0 -2
  313. package/dist/viewer/SplitShell-1kQWIUbB.js +0 -1
  314. package/dist/viewer/channel-DpF2FNj7.js +0 -1
  315. package/dist/viewer/classDiagram-ZZMXUADV-BCUwkMkD.js +0 -1
  316. package/dist/viewer/classDiagram-v2-VYDZK3BY-BCUwkMkD.js +0 -1
  317. package/dist/viewer/flowDiagram-HODETNUW-A3kbYb0D.js +0 -1
  318. package/dist/viewer/percentages-BXMCSKIN-BDV0ZRBe.js +0 -1
  319. package/dist/viewer/stateDiagram-v2-MP3YSRHH-LXrhvJQE.js +0 -1
  320. package/dist/viewer/subset-shared.chunk-DR4HOb1q.js +0 -1
  321. package/dist/viewer/swimlanesDiagram-VR7AAH4N-F15yPPv-.js +0 -8
  322. package/dist/viewer-lib/percentages-BXMCSKIN-Cvdo4-KV.js +0 -1
  323. package/dist/viewer-lib/subset-shared.chunk-C7qUh7WH.js +0 -2
@@ -1,12 +1,12 @@
1
1
  import './stylex-H52XSOyN.css';
2
2
  import './index-DLyi-yDq.css';
3
- import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b } from "./PreviewView-96hXi1zy.js";
4
- import { $t as x, At as S, Bt as C, C as w, Ct as T, Dt as E, E as D, Et as O, F as k, Gt as ee, Ht as A, I as te, It as j, J as ne, Jt as M, Lt as re, Mt as ie, N as ae, Nt as oe, O as se, Ot as N, Pt as P, Q as ce, Qt as le, Rt as ue, St as F, Tt as de, Wt as fe, Xt as I, Yt as pe, Zt as me, _ as L, _n as he, _t as ge, a as _e, an as ve, bn as ye, bt as R, cn as z, dn as be, en as xe, fn as Se, ft as Ce, g as we, gn as Te, h as B, hn as V, ht as Ee, i as De, in as Oe, it as ke, jt as Ae, kt as je, ln as Me, lt as Ne, m as Pe, mn as Fe, n as Ie, nt as Le, on as Re, p as ze, pn as Be, pt as Ve, qt as He, r as Ue, rn as We, rt as Ge, s as Ke, sn as qe, st as Je, t as Ye, tn as Xe, u as Ze, un as Qe, ut as $e, v as et, vn as tt, vt as nt, wt as rt, x as it, xt as at, y as ot, yn as st, yt as ct, zt as lt } from "./route-messages-Cd_S7ERg.js";
5
- import { A as ut, C as dt, D as ft, E as pt, O as mt, S as ht, T as gt, _ as _t, a as vt, b as yt, c as bt, d as xt, f as St, g as Ct, h as wt, i as H, j as Tt, k as Et, l as Dt, m as Ot, n as kt, o as U, p as At, r as jt, s as Mt, t as Nt, u as Pt, v as Ft, w as It, x as Lt, y as Rt } from "./i18n-Bl255uFG.js";
6
- import { a as zt, c as Bt, d as Vt, f as Ht, h as Ut, i as Wt, l as Gt, m as Kt, o as qt, p as Jt, r as Yt, s as Xt, t as Zt, u as Qt } from "./WarningsBadge-B8dxGKka.js";
7
- import { a as $t, c as en, d as tn, f as nn, i as rn, l as an, o as on, r as sn, s as cn, t as ln, u as un } from "./Canvas-D1GKtdWi.js";
8
- import { i as dn, n as fn, r as pn, t as mn } from "./PhoneArtboardBar-Wif7mAXi.js";
9
- import { a as hn, i as gn } from "./agentLook-0GsgKSL-.js";
3
+ import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b } from "./PreviewView-CpOviFy0.js";
4
+ import { $t as x, At as S, Bt as C, C as w, Ct as T, Dt as E, E as D, Et as O, F as k, Gt as ee, Ht as A, I as te, It as j, J as ne, Jt as M, Lt as re, Mt as ie, N as ae, Nt as oe, O as se, Ot as N, Pt as P, Q as ce, Qt as le, Rt as ue, St as F, Tt as de, Wt as fe, Xt as I, Yt as pe, Zt as me, _ as L, _n as he, _t as ge, a as _e, an as ve, bn as ye, bt as R, cn as z, dn as be, en as xe, fn as Se, ft as Ce, g as we, gn as Te, h as B, hn as V, ht as Ee, i as De, in as Oe, it as ke, jt as Ae, kt as je, ln as Me, lt as Ne, m as Pe, mn as Fe, n as Ie, nt as Le, on as Re, p as ze, pn as Be, pt as Ve, qt as He, r as Ue, rn as We, rt as Ge, s as Ke, sn as qe, st as Je, t as Ye, tn as Xe, u as Ze, un as Qe, ut as $e, v as et, vn as tt, vt as nt, wt as rt, x as it, xt as at, y as ot, yn as st, yt as ct, zt as lt } from "./route-messages-BHovJ4nB.js";
5
+ import { A as ut, C as dt, D as ft, E as pt, O as mt, S as ht, T as gt, _ as _t, a as vt, b as yt, c as bt, d as xt, f as St, g as Ct, h as wt, i as H, j as Tt, k as Et, l as Dt, m as Ot, n as kt, o as U, p as At, r as jt, s as Mt, t as Nt, u as Pt, v as Ft, w as It, x as Lt, y as Rt } from "./i18n-QksLzzWi.js";
6
+ import { a as zt, c as Bt, d as Vt, f as Ht, h as Ut, i as Wt, l as Gt, m as Kt, o as qt, p as Jt, r as Yt, s as Xt, t as Zt, u as Qt } from "./WarningsBadge-1xR7QoZB.js";
7
+ import { a as $t, c as en, d as tn, f as nn, i as rn, l as an, o as on, r as sn, s as cn, t as ln, u as un } from "./Canvas-BIOxiTKF.js";
8
+ import { i as dn, n as fn, r as pn, t as mn } from "./PhoneArtboardBar-BHqZKvJt.js";
9
+ import { a as hn, i as gn } from "./agentLook-xSyYY25N.js";
10
10
  import * as W from "react";
11
11
  import { Fragment as _n, lazy as vn, memo as yn, useCallback as G, useEffect as K, useEffectEvent as bn, useId as xn, useLayoutEffect as Sn, useMemo as q, useRef as J, useState as Y } from "react";
12
12
  import { Fragment as Cn, jsx as X, jsxs as Z } from "react/jsx-runtime";
@@ -6182,32 +6182,58 @@ function Nd(e, t, n) {
6182
6182
  var Pd = (e, t, n, r, i) => `/artboard/${e}${P(i, {
6183
6183
  with: t[0].from,
6184
6184
  ...n ? { group: r } : { board: r }
6185
- })}`;
6186
- function Fd({ artboard: e, entries: t, group: n, id: r }) {
6187
- let { t: i } = vt();
6188
- return /* @__PURE__ */ Z("button", {
6185
+ })}`, Fd = (e) => {
6186
+ let t = /* @__PURE__ */ new Map();
6187
+ for (let n of e) {
6188
+ let e = t.get(n.from);
6189
+ e ? e.count += 1 : t.set(n.from, {
6190
+ title: n.title || n.from,
6191
+ count: 1
6192
+ });
6193
+ }
6194
+ return [...t].map(([e, t]) => ({
6195
+ from: e,
6196
+ ...t
6197
+ }));
6198
+ };
6199
+ function Id({ artboard: e, entries: t, group: n, id: r }) {
6200
+ let { t: i } = vt(), a = Fd(t), o = (i) => {
6201
+ re() ? C({
6202
+ kind: "open-doc",
6203
+ document: i,
6204
+ key: r
6205
+ }) : location.assign(Pd(e, t.filter((e) => e.from === i), n, r, location.search));
6206
+ }, s = /* @__PURE__ */ Z("button", {
6189
6207
  "data-backlink-badge": r,
6190
6208
  title: i("split.openDocument"),
6191
6209
  type: "button",
6192
6210
  onPointerDown: (e) => e.stopPropagation(),
6193
- onClick: (i) => {
6194
- i.stopPropagation(), re() ? C({
6195
- kind: "open-doc",
6196
- document: t[0].from,
6197
- key: r
6198
- }) : location.assign(Pd(e, t, n, r, location.search));
6211
+ onClick: (e) => {
6212
+ e.stopPropagation(), a.length === 1 && o(a[0].from);
6199
6213
  },
6200
6214
  className: "x3nfvp2 x6s0dn4 x1ed6fcf xmix8c7 xdzw4kq x1xijbu4 xmkeg23 x1y0btm7 x12xov25 xhpnuu7 x1rozbrz x1bo0w0s xqfszdh x1s31vzs xo5v014 xuxw1ft x67bb7w x1ypdohk x1uyjgin xytdrwj",
6201
6215
  children: [/* @__PURE__ */ X(Sr, { size: 10 }), i("split.references", { count: t.length })]
6202
6216
  });
6217
+ return a.length < 2 ? s : /* @__PURE__ */ X(An, {
6218
+ items: a.map(({ from: e, title: t, count: n }) => ({
6219
+ key: e,
6220
+ icon: Sr,
6221
+ label: i("split.backlinkDocument", {
6222
+ title: t,
6223
+ count: n
6224
+ }),
6225
+ onClick: () => o(e)
6226
+ })),
6227
+ children: s
6228
+ });
6203
6229
  }
6204
6230
  hn.success, hn.danger;
6205
- var Id = (e, t) => new Date(e).toLocaleTimeString(t, {
6231
+ var Ld = (e, t) => new Date(e).toLocaleTimeString(t, {
6206
6232
  hour: "2-digit",
6207
6233
  minute: "2-digit",
6208
6234
  hour12: !1
6209
6235
  });
6210
- function Ld({ verdict: e, evidenceAt: t, hideEvidenceNote: n, canJudge: r, onPass: i, onReject: a, onUndo: o }) {
6236
+ function Rd({ verdict: e, evidenceAt: t, hideEvidenceNote: n, canJudge: r, onPass: i, onReject: a, onUndo: o }) {
6211
6237
  let { t: s, i18n: c } = vt();
6212
6238
  return e.state === "pass" ? /* @__PURE__ */ Z(Cn, { children: [
6213
6239
  /* @__PURE__ */ Z("span", {
@@ -6216,7 +6242,7 @@ function Ld({ verdict: e, evidenceAt: t, hideEvidenceNote: n, canJudge: r, onPas
6216
6242
  }),
6217
6243
  e.at && /* @__PURE__ */ X("span", {
6218
6244
  className: "xo1l8bm xfifm61 xddlp02",
6219
- children: Id(e.at, c.language)
6245
+ children: Ld(e.at, c.language)
6220
6246
  }),
6221
6247
  e.by === "agent" && /* @__PURE__ */ X("span", {
6222
6248
  className: "xo1l8bm xfifm61 xddlp02",
@@ -6248,7 +6274,7 @@ function Ld({ verdict: e, evidenceAt: t, hideEvidenceNote: n, canJudge: r, onPas
6248
6274
  }),
6249
6275
  e.evidenceUpdated && t > 0 && !n && /* @__PURE__ */ X("span", {
6250
6276
  className: "xo1l8bm xfifm61 xddlp02",
6251
- children: s("verdict.evidenceUpdatedAt", { time: Id(t, c.language) })
6277
+ children: s("verdict.evidenceUpdatedAt", { time: Ld(t, c.language) })
6252
6278
  }),
6253
6279
  r && /* @__PURE__ */ Z(Cn, { children: [
6254
6280
  /* @__PURE__ */ X("span", { className: "x1i1rx1s x1kpxq89 xjgtzcg xcn5yip" }),
@@ -6268,7 +6294,7 @@ function Ld({ verdict: e, evidenceAt: t, hideEvidenceNote: n, canJudge: r, onPas
6268
6294
  ] });
6269
6295
  }
6270
6296
  // src/viewer/choices/ChoiceRadio.tsx
6271
- function Rd({ board: e, checked: t, disabled: n, onChoose: r, radioRef: i }) {
6297
+ function zd({ board: e, checked: t, disabled: n, onChoose: r, radioRef: i }) {
6272
6298
  let { t: a } = vt();
6273
6299
  return /* @__PURE__ */ X("button", {
6274
6300
  "aria-checked": t,
@@ -6288,16 +6314,16 @@ function Rd({ board: e, checked: t, disabled: n, onChoose: r, radioRef: i }) {
6288
6314
  });
6289
6315
  }
6290
6316
  // src/viewer/components/BoardLabel.tsx
6291
- var zd = 20, Bd = 16;
6292
- function Vd(e, t) {
6317
+ var Bd = 20, Vd = 16;
6318
+ function Hd(e, t) {
6293
6319
  let n = document.createElement("a");
6294
6320
  n.href = e, n.download = t, n.click();
6295
6321
  }
6296
- function Hd(e, t) {
6322
+ function Ud(e, t) {
6297
6323
  let n = getComputedStyle(e);
6298
6324
  return Od(Td(t, `${n.fontWeight} ${n.fontSize} ${n.fontFamily}`, { letterSpacing: Number.parseFloat(n.letterSpacing) || 0 }));
6299
6325
  }
6300
- function Ud({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fontsVersion: a, id: o, interactive: s, modified: c, playing: l, ready: u, rect: d, scale: f, onExpand: p, onReplay: m, onTogglePlay: h, onToggleParameters: g, onLines: _ }) {
6326
+ function Wd({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fontsVersion: a, id: o, interactive: s, modified: c, playing: l, ready: u, rect: d, scale: f, onExpand: p, onReplay: m, onTogglePlay: h, onToggleParameters: g, onLines: _ }) {
6301
6327
  let v = J(null), y = J(null), b = J(null), x = J(null), S = J(null), [C, w] = Y({
6302
6328
  title: 0,
6303
6329
  id: 0,
@@ -6308,7 +6334,7 @@ function Ud({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6308
6334
  Sn(() => {
6309
6335
  let e = v.current, n = y.current, r = x.current;
6310
6336
  if (!e || !n || !r) return;
6311
- let i = Hd(e, ee) + (k ? 18 : 0), a = Hd(n, A), o = b.current, s = o ? Hd(o, o.textContent ?? "") + Bd : 0, c = t ? zd : 0, l = () => {
6337
+ let i = Ud(e, ee) + (k ? 18 : 0), a = Ud(n, A), o = b.current, s = o ? Ud(o, o.textContent ?? "") + Vd : 0, c = t ? Bd : 0, l = () => {
6312
6338
  let e = {
6313
6339
  title: i,
6314
6340
  id: a,
@@ -6341,7 +6367,7 @@ function Ud({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6341
6367
  te,
6342
6368
  _
6343
6369
  ]);
6344
- let ne = () => Vd(`${i}${r.file}`, r.file.split("/").pop() ?? `${o}.html`);
6370
+ let ne = () => Hd(`${i}${r.file}`, r.file.split("/").pop() ?? `${o}.html`);
6345
6371
  return /* @__PURE__ */ Z("div", {
6346
6372
  "data-board-label": o,
6347
6373
  "data-chrome": "board-label",
@@ -6354,7 +6380,7 @@ function Ud({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6354
6380
  transform: `scale(${f}) translateY(-100%)`
6355
6381
  },
6356
6382
  children: [
6357
- t && n && /* @__PURE__ */ X(Rd, {
6383
+ t && n && /* @__PURE__ */ X(zd, {
6358
6384
  board: o,
6359
6385
  checked: t.chosen,
6360
6386
  disabled: t.disabled,
@@ -6510,8 +6536,8 @@ function Ud({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6510
6536
  });
6511
6537
  }
6512
6538
  // src/viewer/components/Labels.tsx
6513
- var Wd = (e, t) => e === null ? null : e / t;
6514
- function Gd() {
6539
+ var Gd = (e, t) => e === null ? null : e / t;
6540
+ function Kd() {
6515
6541
  let [e, t] = Y(0);
6516
6542
  return K(() => {
6517
6543
  if (!document.fonts) return;
@@ -6523,15 +6549,15 @@ function Gd() {
6523
6549
  };
6524
6550
  }, []), e;
6525
6551
  }
6526
- function Kd({ view: e, artboard: t, backlinks: n, boards: r, groups: i, allBoards: o, contentBase: s, versions: c, pending: l, playing: u, onExpand: d, onTogglePlay: f, onReplay: m, parameters: _, activeParameters: v, onToggleParameters: y, updates: b, verdicts: x, choices: S, overlayRef: C }) {
6527
- let w = Gd(), [T, E] = Y(() => /* @__PURE__ */ new Set()), D = G((e, t) => {
6552
+ function qd({ view: e, artboard: t, backlinks: n, boards: r, groups: i, allBoards: o, contentBase: s, versions: c, pending: l, playing: u, onExpand: d, onTogglePlay: f, onReplay: m, parameters: _, activeParameters: v, onToggleParameters: y, updates: b, verdicts: x, choices: S, overlayRef: C }) {
6553
+ let w = Kd(), [T, E] = Y(() => /* @__PURE__ */ new Set()), D = G((e, t) => {
6528
6554
  E((n) => {
6529
6555
  let r = t === 2;
6530
6556
  if (n.has(e) === r) return n;
6531
6557
  let i = new Set(n);
6532
6558
  return r ? i.add(e) : i.delete(e), i;
6533
6559
  });
6534
- }, []), O = Wd(a(h, e.k), 12);
6560
+ }, []), O = Gd(a(h, e.k), 12);
6535
6561
  return /* @__PURE__ */ X("div", {
6536
6562
  className: "x10l6tqk x10a8y8t x47corl xb3r6kr",
6537
6563
  children: /* @__PURE__ */ Z("div", {
@@ -6570,7 +6596,7 @@ function Kd({ view: e, artboard: t, backlinks: n, boards: r, groups: i, allBoard
6570
6596
  className: "xeuugli xb3r6kr xlyipyv",
6571
6597
  children: i.title
6572
6598
  }),
6573
- d && x && /* @__PURE__ */ X(Ld, {
6599
+ d && x && /* @__PURE__ */ X(Rd, {
6574
6600
  canJudge: x.canJudge,
6575
6601
  evidenceAt: x.evidenceAt(r),
6576
6602
  hideEvidenceNote: !!b?.[r],
@@ -6580,7 +6606,7 @@ function Kd({ view: e, artboard: t, backlinks: n, boards: r, groups: i, allBoard
6580
6606
  onUndo: () => x.undoPass(r)
6581
6607
  }),
6582
6608
  b?.[r] && /* @__PURE__ */ X(on, { update: b[r] }),
6583
- t && n?.[r] && /* @__PURE__ */ X(Fd, {
6609
+ t && n?.[r] && /* @__PURE__ */ X(Id, {
6584
6610
  group: !0,
6585
6611
  artboard: t,
6586
6612
  entries: n[r],
@@ -6605,7 +6631,7 @@ function Kd({ view: e, artboard: t, backlinks: n, boards: r, groups: i, allBoard
6605
6631
  left: e.x + (i.x + i.w) * e.k,
6606
6632
  top: e.y + (i.y + i.h) * e.k
6607
6633
  },
6608
- children: /* @__PURE__ */ X(Fd, {
6634
+ children: /* @__PURE__ */ X(Id, {
6609
6635
  artboard: t,
6610
6636
  entries: n[r],
6611
6637
  group: !1,
@@ -6616,7 +6642,7 @@ function Kd({ view: e, artboard: t, backlinks: n, boards: r, groups: i, allBoard
6616
6642
  let r = g(n, e);
6617
6643
  if (!r) return null;
6618
6644
  let i = un(c, n.file) && !l.has(t);
6619
- return /* @__PURE__ */ X(Ud, {
6645
+ return /* @__PURE__ */ X(Wd, {
6620
6646
  active: v === t,
6621
6647
  board: n,
6622
6648
  choice: S?.boardChoice(t),
@@ -6642,8 +6668,8 @@ function Kd({ view: e, artboard: t, backlinks: n, boards: r, groups: i, allBoard
6642
6668
  });
6643
6669
  }
6644
6670
  // src/viewer/hooks/useSidePanel.ts
6645
- var qd = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches;
6646
- function Jd({ commentTool: e, hasVerify: t, inspectorOpen: n, setMode: r }) {
6671
+ var Jd = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches;
6672
+ function Yd({ commentTool: e, hasVerify: t, inspectorOpen: n, setMode: r }) {
6647
6673
  let [i, a] = Y(!1), [o, s] = Y(!1), c = e ? "comments" : n ? "inspector" : (i || o) && t ? "verify" : null, l = (e) => {
6648
6674
  a(e === "verify"), r(e);
6649
6675
  }, u = () => {
@@ -6660,9 +6686,9 @@ function Jd({ commentTool: e, hasVerify: t, inspectorOpen: n, setMode: r }) {
6660
6686
  }
6661
6687
  };
6662
6688
  }
6663
- function Yd(e) {
6689
+ function Xd(e) {
6664
6690
  let [t, n] = Y(e), [r, i] = Y(!1);
6665
- return e && (e !== t || r) && (n(e), i(!1)), !e && t && !r && (qd() ? n(null) : i(!0)), K(() => {
6691
+ return e && (e !== t || r) && (n(e), i(!1)), !e && t && !r && (Jd() ? n(null) : i(!0)), K(() => {
6666
6692
  if (!r) return;
6667
6693
  let e = setTimeout(() => {
6668
6694
  i(!1), n(null);
@@ -6674,15 +6700,15 @@ function Yd(e) {
6674
6700
  };
6675
6701
  }
6676
6702
  // src/viewer/lib/side-panel.ts
6677
- var Xd = {
6703
+ var Zd = {
6678
6704
  top: 64,
6679
6705
  right: 414,
6680
6706
  bottom: 24,
6681
6707
  left: 24
6682
6708
  };
6683
6709
  // src/viewer/components/SidePanel.tsx
6684
- function Zd({ available: e, counts: t, panes: n, pinned: r, tab: i, onPin: a, onTab: o }) {
6685
- let { t: s } = vt(), { shown: c, closing: l } = Yd(i), u = J(null), d = J(null), [f, p] = Y(null), m = Math.max(120, e - 62 - 14);
6710
+ function Qd({ available: e, counts: t, panes: n, pinned: r, tab: i, onPin: a, onTab: o }) {
6711
+ let { t: s } = vt(), { shown: c, closing: l } = Xd(i), u = J(null), d = J(null), [f, p] = Y(null), m = Math.max(120, e - 62 - 14);
6686
6712
  if (Sn(() => {
6687
6713
  let e = d.current;
6688
6714
  if (!e) {
@@ -6773,13 +6799,13 @@ function Zd({ available: e, counts: t, panes: n, pinned: r, tab: i, onPin: a, on
6773
6799
  });
6774
6800
  }
6775
6801
  // src/viewer/components/Toolbar.tsx
6776
- var Qd = {
6802
+ var $d = {
6777
6803
  blockSize: 34,
6778
6804
  borderRadius: 8,
6779
6805
  size: 18,
6780
6806
  strokeWidth: 1.75
6781
6807
  };
6782
- function $d({ pages: e, page: t, onPageChange: n, tool: r, onToolChange: i, commenting: a = !1 }) {
6808
+ function ef({ pages: e, page: t, onPageChange: n, tool: r, onToolChange: i, commenting: a = !1 }) {
6783
6809
  let { t: o } = vt(), s = e.find((e) => e.id === t);
6784
6810
  return /* @__PURE__ */ Z("div", {
6785
6811
  "data-chrome": !0,
@@ -6818,7 +6844,7 @@ function $d({ pages: e, page: t, onPageChange: n, tool: r, onToolChange: i, comm
6818
6844
  active: r === "select",
6819
6845
  "aria-label": o("chrome.select"),
6820
6846
  icon: zr,
6821
- size: Qd,
6847
+ size: $d,
6822
6848
  title: o("chrome.selectTitle"),
6823
6849
  onClick: () => i("select")
6824
6850
  }),
@@ -6826,7 +6852,7 @@ function $d({ pages: e, page: t, onPageChange: n, tool: r, onToolChange: i, comm
6826
6852
  active: r === "hand",
6827
6853
  "aria-label": o("chrome.hand"),
6828
6854
  icon: Dr,
6829
- size: Qd,
6855
+ size: $d,
6830
6856
  title: o("chrome.handTitle"),
6831
6857
  onClick: () => i("hand")
6832
6858
  }),
@@ -6834,14 +6860,14 @@ function $d({ pages: e, page: t, onPageChange: n, tool: r, onToolChange: i, comm
6834
6860
  active: r === "comment",
6835
6861
  "aria-label": o("chrome.comment"),
6836
6862
  icon: Lr,
6837
- size: Qd,
6863
+ size: $d,
6838
6864
  title: o("chrome.commentTitle"),
6839
6865
  onClick: () => i("comment")
6840
6866
  }) : null
6841
6867
  ]
6842
6868
  });
6843
6869
  }
6844
- function ef({ actions: e, live: t, warnings: n, zoom: r, onZoomIn: i, onZoomOut: a, onFit: o, onActualSize: s, inspectorOpen: c, onToggleInspector: l, verify: u, verifyOpen: d, onToggleVerify: f }) {
6870
+ function tf({ actions: e, live: t, warnings: n, zoom: r, onZoomIn: i, onZoomOut: a, onFit: o, onActualSize: s, inspectorOpen: c, onToggleInspector: l, verify: u, verifyOpen: d, onToggleVerify: f }) {
6845
6871
  let { t: p } = vt(), m = (e) => /* @__PURE__ */ X("span", {
6846
6872
  className: "xddlp02 x1fao0z8 xfifm61",
6847
6873
  children: e
@@ -6943,7 +6969,7 @@ function ef({ actions: e, live: t, warnings: n, zoom: r, onZoomIn: i, onZoomOut:
6943
6969
  });
6944
6970
  }
6945
6971
  // src/viewer/hooks/useArtboardAnchor.ts
6946
- function tf({ canvas: e, page: t, changePage: n, viewNow: r, place: i }) {
6972
+ function nf({ canvas: e, page: t, changePage: n, viewNow: r, place: i }) {
6947
6973
  let a = bn(() => t ? {
6948
6974
  kind: "artboard",
6949
6975
  page: t,
@@ -6959,7 +6985,7 @@ function tf({ canvas: e, page: t, changePage: n, viewNow: r, place: i }) {
6959
6985
  }), []);
6960
6986
  }
6961
6987
  // src/viewer/hooks/useArtboardPage.ts
6962
- function nf({ canvas: e, layout: t, fitPage: n, startAtFocus: r = !1 }) {
6988
+ function rf({ canvas: e, layout: t, fitPage: n, startAtFocus: r = !1 }) {
6963
6989
  let [i, a] = Y(null), o = J(null), s = J(!1), [c, l] = dn(), u = J(c), d = G((e, t = !0, n = !0) => {
6964
6990
  a(e), o.current = n ? e : null, u.current = e, l(e, t);
6965
6991
  }, [l]);
@@ -6989,7 +7015,7 @@ function nf({ canvas: e, layout: t, fitPage: n, startAtFocus: r = !1 }) {
6989
7015
  };
6990
7016
  }
6991
7017
  // src/viewer/hooks/useBoardComments.ts
6992
- function rf({ comments: e, comment: t, page: n, boards: r, inspector: i }) {
7018
+ function af({ comments: e, comment: t, page: n, boards: r, inspector: i }) {
6993
7019
  let [a, o] = Y(null), [s, c] = Y(null), l = J(null), u = q(() => e?.comments.threads ?? [], [e]), d = q(() => new Set(e?.stale ?? []), [e]), f = q(() => ga(u), [u]);
6994
7020
  K(() => {
6995
7021
  o(null), c(null);
@@ -7104,12 +7130,12 @@ function rf({ comments: e, comment: t, page: n, boards: r, inspector: i }) {
7104
7130
  };
7105
7131
  }
7106
7132
  // src/viewer/lib/board-lifecycle.ts
7107
- var af = 3e5, of = 8e3, sf = 1e4;
7108
- function cf(e, t, n, r) {
7133
+ var of = 3e5, sf = 8e3, cf = 1e4;
7134
+ function lf(e, t, n, r) {
7109
7135
  let i = t.x + e.x * t.k, a = t.y + e.y * t.k, o = i + e.w * t.k, s = a + e.h * t.k;
7110
7136
  return o > -n.width * r && i < n.width * (1 + r) && s > -n.height * r && a < n.height * (1 + r);
7111
7137
  }
7112
- function lf({ now: e = () => performance.now(), idleMs: t = af, readyTimeoutMs: n = of, captureTimeoutMs: r = sf } = {}) {
7138
+ function uf({ now: e = () => performance.now(), idleMs: t = of, readyTimeoutMs: n = sf, captureTimeoutMs: r = cf } = {}) {
7113
7139
  let i = /* @__PURE__ */ new Map(), a = (e, i, a, o, s, c) => {
7114
7140
  switch (e.phase) {
7115
7141
  case "mounted":
@@ -7143,8 +7169,8 @@ function lf({ now: e = () => performance.now(), idleMs: t = af, readyTimeoutMs:
7143
7169
  }, i.set(e.id, t));
7144
7170
  let u = t.version !== e.version;
7145
7171
  t.version = e.version;
7146
- let h = s.has(e.id) || cf(e, n, r, 0);
7147
- (h || t.active || u && t.phase !== "unloaded") && (t.lastActive = l), t.active = h, c || a(t, e, h, cf(e, n, r, 1), l, d), f.set(e.id, t.phase), t.uncapturableVersion === e.version && p.add(e.id);
7172
+ let h = s.has(e.id) || lf(e, n, r, 0);
7173
+ (h || t.active || u && t.phase !== "unloaded") && (t.lastActive = l), t.active = h, c || a(t, e, h, lf(e, n, r, 1), l, d), f.set(e.id, t.phase), t.uncapturableVersion === e.version && p.add(e.id);
7148
7174
  let g = c ? null : o(t, h);
7149
7175
  g !== null && (m === null || g < m) && (m = g);
7150
7176
  }
@@ -7170,22 +7196,22 @@ function lf({ now: e = () => performance.now(), idleMs: t = af, readyTimeoutMs:
7170
7196
  };
7171
7197
  }
7172
7198
  // src/viewer/hooks/useBoardLifecycle.ts
7173
- var uf = 2, df = {
7199
+ var df = 2, ff = {
7174
7200
  phases: /* @__PURE__ */ new Map(),
7175
7201
  capture: [],
7176
7202
  uncapturable: /* @__PURE__ */ new Set(),
7177
7203
  wakeAt: null
7178
7204
  };
7179
- function ff(e, t) {
7205
+ function pf(e, t) {
7180
7206
  if (e.phases.size !== t.phases.size || e.uncapturable.size !== t.uncapturable.size) return !1;
7181
7207
  for (let [n, r] of e.phases) if (t.phases.get(n) !== r) return !1;
7182
7208
  for (let n of e.uncapturable) if (!t.uncapturable.has(n)) return !1;
7183
7209
  return !0;
7184
7210
  }
7185
- function pf({ boards: e, versions: t, pending: n, view: r, viewport: i, active: a, gesturing: o }) {
7186
- let s = q(() => lf(), []), c = J(/* @__PURE__ */ new Map()), l = J(/* @__PURE__ */ new Map()), u = J(/* @__PURE__ */ new Map()), d = J(0), [f, p] = Y(() => /* @__PURE__ */ new Map()), m = J(f);
7211
+ function mf({ boards: e, versions: t, pending: n, view: r, viewport: i, active: a, gesturing: o }) {
7212
+ let s = q(() => uf(), []), c = J(/* @__PURE__ */ new Map()), l = J(/* @__PURE__ */ new Map()), u = J(/* @__PURE__ */ new Map()), d = J(0), [f, p] = Y(() => /* @__PURE__ */ new Map()), m = J(f);
7187
7213
  m.current = f;
7188
- let [h, g] = Y(df), [_, v] = Y(0), y = G(() => v((e) => e + 1), []), b = q(() => e.filter(([e, r]) => !dt(r) && un(t, r.file) && !n.has(e)).map(([e, n]) => ({
7214
+ let [h, g] = Y(ff), [_, v] = Y(0), y = G(() => v((e) => e + 1), []), b = q(() => e.filter(([e, r]) => !dt(r) && un(t, r.file) && !n.has(e)).map(([e, n]) => ({
7189
7215
  id: e,
7190
7216
  x: n.x,
7191
7217
  y: n.y,
@@ -7205,8 +7231,8 @@ function pf({ boards: e, versions: t, pending: n, view: r, viewport: i, active:
7205
7231
  active: a,
7206
7232
  gesturing: o
7207
7233
  });
7208
- g((t) => ff(t, e) ? t : e);
7209
- let t = Math.min(uf, window.devicePixelRatio || 1);
7234
+ g((t) => pf(t, e) ? t : e);
7235
+ let t = Math.min(df, window.devicePixelRatio || 1);
7210
7236
  for (let n of e.capture) {
7211
7237
  let e = b.find((e) => e.id === n)?.version ?? 0, r = ++d.current;
7212
7238
  u.current.set(n, {
@@ -7296,34 +7322,34 @@ function pf({ boards: e, versions: t, pending: n, view: r, viewport: i, active:
7296
7322
  };
7297
7323
  }
7298
7324
  // src/viewer/lib/board-origin.ts
7299
- var mf = "allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-downloads", hf = "allow-scripts", gf = (e) => e.includes(":") ? `[${e}]` : e;
7300
- function _f({ location: e, contentBase: t, boardPort: n, boardPath: r, reachable: i }) {
7325
+ var hf = "allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-downloads", gf = "allow-scripts", _f = (e) => e.includes(":") ? `[${e}]` : e;
7326
+ function vf({ location: e, contentBase: t, boardPort: n, boardPath: r, reachable: i }) {
7301
7327
  if (/^https?:\/\//.test(t)) {
7302
7328
  let n = new URL(t).origin === e.origin;
7303
7329
  return {
7304
7330
  base: t,
7305
- sandbox: n ? hf : mf,
7331
+ sandbox: n ? gf : hf,
7306
7332
  mode: n ? "opaque" : "same-site"
7307
7333
  };
7308
7334
  }
7309
7335
  return n && r && i ? {
7310
- base: `${e.protocol}//${gf(e.hostname)}:${n}${r}`,
7311
- sandbox: mf,
7336
+ base: `${e.protocol}//${_f(e.hostname)}:${n}${r}`,
7337
+ sandbox: hf,
7312
7338
  mode: "same-site"
7313
7339
  } : {
7314
7340
  base: t,
7315
- sandbox: hf,
7341
+ sandbox: gf,
7316
7342
  mode: "opaque"
7317
7343
  };
7318
7344
  }
7319
- var vf = (e, t) => `${e.protocol}//${gf(e.hostname)}:${t}/robots.txt`;
7345
+ var yf = (e, t) => `${e.protocol}//${_f(e.hostname)}:${t}/robots.txt`;
7320
7346
  // src/viewer/hooks/useBoardOrigin.ts
7321
- function yf({ contentBase: e, boardPort: t, boardPath: n }) {
7347
+ function bf({ contentBase: e, boardPort: t, boardPath: n }) {
7322
7348
  let r = !/^https?:\/\//.test(e) && !!t && !!n, [i, a] = Y(null);
7323
7349
  return K(() => {
7324
7350
  if (!r || !t) return;
7325
7351
  let e = !1;
7326
- return fetch(vf(location, t), {
7352
+ return fetch(yf(location, t), {
7327
7353
  mode: "no-cors",
7328
7354
  cache: "no-store"
7329
7355
  }).then(() => !e && a({
@@ -7335,7 +7361,7 @@ function yf({ contentBase: e, boardPort: t, boardPath: n }) {
7335
7361
  })), () => {
7336
7362
  e = !0;
7337
7363
  };
7338
- }, [r, t]), r && i?.port !== t ? null : _f({
7364
+ }, [r, t]), r && i?.port !== t ? null : vf({
7339
7365
  location,
7340
7366
  contentBase: e,
7341
7367
  boardPort: t,
@@ -7344,7 +7370,7 @@ function yf({ contentBase: e, boardPort: t, boardPath: n }) {
7344
7370
  });
7345
7371
  }
7346
7372
  // src/shared/tweaks.ts
7347
- function bf() {
7373
+ function xf() {
7348
7374
  let e = (e) => !!e && typeof e == "object" && !Array.isArray(e), t = (e, t = 512) => typeof e == "string" && e.length <= t, n = (e) => typeof e == "number" && Number.isFinite(e) && Math.abs(e) <= 1e9, r = (e) => typeof e == "string" && /^#[\da-f]{6}$/i.test(e);
7349
7375
  function i(e, i) {
7350
7376
  if (e.type === "text") return t(i);
@@ -7447,9 +7473,9 @@ function bf() {
7447
7473
  reconcileTweakValues: s
7448
7474
  };
7449
7475
  }
7450
- var { readTweakSchema: xf, readTweakValues: Sf, reconcileTweakValues: Cf } = bf();
7476
+ var { readTweakSchema: Sf, readTweakValues: Cf, reconcileTweakValues: wf } = xf();
7451
7477
  // src/viewer/hooks/useBoardTweaks.ts
7452
- function wf(e) {
7478
+ function Tf(e) {
7453
7479
  let t = J({}), [n, r] = Y(t.current), i = J(/* @__PURE__ */ new Map()), a = J(/* @__PURE__ */ new Map()), o = G((e, n) => {
7454
7480
  t.current = {
7455
7481
  ...t.current,
@@ -7474,9 +7500,9 @@ function wf(e) {
7474
7500
  let r = [...i.current.values()].find((t) => t.element.contentWindow === e.source && t.connection === n.connection);
7475
7501
  if (!r || r.session && r.session !== n.session || n.error !== null && (typeof n.error != "string" || n.error.length > 512)) return;
7476
7502
  r.session = n.session;
7477
- let a = xf(n.schema);
7503
+ let a = Sf(n.schema);
7478
7504
  n.error && (a.schema = null, a.error = n.error);
7479
- let c = t.current[r.boardId], l = a.schema ? Cf(a.schema, c?.values, c?.schema ?? void 0) : {};
7505
+ let c = t.current[r.boardId], l = a.schema ? wf(a.schema, c?.values, c?.schema ?? void 0) : {};
7480
7506
  o(r.boardId, {
7481
7507
  ...a,
7482
7508
  values: l
@@ -7502,7 +7528,7 @@ function wf(e) {
7502
7528
  connection: n.connection
7503
7529
  }, "*"));
7504
7530
  }, []), u = G((e, n) => {
7505
- let r = t.current[e], i = r?.schema && Sf(r.schema, n);
7531
+ let r = t.current[e], i = r?.schema && Cf(r.schema, n);
7506
7532
  r && i && (o(e, {
7507
7533
  ...r,
7508
7534
  values: i
@@ -7520,12 +7546,12 @@ function wf(e) {
7520
7546
  }, [u]),
7521
7547
  reset: G((e) => {
7522
7548
  let n = t.current[e]?.schema;
7523
- n && u(e, Cf(n));
7549
+ n && u(e, wf(n));
7524
7550
  }, [u])
7525
7551
  };
7526
7552
  }
7527
7553
  // src/viewer/hooks/useCaseNav.ts
7528
- function Tf({ canvas: e, frame: t, order: n, states: r, updates: i }) {
7554
+ function Ef({ canvas: e, frame: t, order: n, states: r, updates: i }) {
7529
7555
  let [a, o] = Y("all"), [c, l] = Y(null), u = ba(n, a, r, i), d = (n) => {
7530
7556
  let r = e?.groups?.[n], i = r && e ? s(r, e.boards) : null;
7531
7557
  l(n), i && t({
@@ -7548,8 +7574,8 @@ function Tf({ canvas: e, frame: t, order: n, states: r, updates: i }) {
7548
7574
  };
7549
7575
  }
7550
7576
  // src/viewer/hooks/useChoices.ts
7551
- var Ef = (e, t) => e.closed ? "closed" : M(t, e.id).submitted ? "submitted" : "open";
7552
- function Df({ canvas: e, layout: t, page: n, threads: r, listening: i, comment: a }) {
7577
+ var Df = (e, t) => e.closed ? "closed" : M(t, e.id).submitted ? "submitted" : "open";
7578
+ function Of({ canvas: e, layout: t, page: n, threads: r, listening: i, comment: a }) {
7553
7579
  let o = q(() => e && t ? F(e, t) : [], [e, t]), s = q(() => {
7554
7580
  let t = /* @__PURE__ */ new Map();
7555
7581
  for (let n of o) for (let r of n.groups) for (let n of e?.groups?.[r]?.boards ?? []) t.set(n, r);
@@ -7562,7 +7588,7 @@ function Df({ canvas: e, layout: t, page: n, threads: r, listening: i, comment:
7562
7588
  o,
7563
7589
  r,
7564
7590
  e
7565
- ]), l = q(() => new Map(o.map((e) => [e.id, Ef(e, r)])), [o, r]), u = q(() => {
7591
+ ]), l = q(() => new Map(o.map((e) => [e.id, Df(e, r)])), [o, r]), u = q(() => {
7566
7592
  let e = /* @__PURE__ */ new Set();
7567
7593
  for (let t of o) for (let n of t.groups) {
7568
7594
  let r = c.get(n);
@@ -7650,7 +7676,7 @@ function Df({ canvas: e, layout: t, page: n, threads: r, listening: i, comment:
7650
7676
  };
7651
7677
  }
7652
7678
  // src/viewer/hooks/useCulledBoards.ts
7653
- function Of(e, t, n) {
7679
+ function kf(e, t, n) {
7654
7680
  let r = [...f(e.map(([e, t]) => ({
7655
7681
  id: e,
7656
7682
  ...t
@@ -7658,23 +7684,23 @@ function Of(e, t, n) {
7658
7684
  return q(() => new Set(r ? r.split(" ") : []), [r]);
7659
7685
  }
7660
7686
  // src/viewer/lib/evidence-updates.ts
7661
- var kf = () => ({
7687
+ var Af = () => ({
7662
7688
  joined: {},
7663
7689
  marks: {},
7664
7690
  members: null,
7665
7691
  shown: {},
7666
7692
  verdicts: {}
7667
7693
  });
7668
- function Af(e, t) {
7694
+ function jf(e, t) {
7669
7695
  let n = { ...e };
7670
7696
  for (let [e, r] of Object.entries(t)) r > 0 && (n[e] = r);
7671
7697
  return n;
7672
7698
  }
7673
- function jf(e, t) {
7699
+ function Mf(e, t) {
7674
7700
  if (!e.members) return {
7675
7701
  ...e,
7676
7702
  members: t.groups,
7677
- shown: Af({}, t.versions),
7703
+ shown: jf({}, t.versions),
7678
7704
  verdicts: t.verdicts
7679
7705
  };
7680
7706
  let n = {}, r = {};
@@ -7697,11 +7723,11 @@ function jf(e, t) {
7697
7723
  joined: r,
7698
7724
  marks: n,
7699
7725
  members: t.groups,
7700
- shown: Af(e.shown, t.versions),
7726
+ shown: jf(e.shown, t.versions),
7701
7727
  verdicts: t.verdicts
7702
7728
  };
7703
7729
  }
7704
- function Mf(e) {
7730
+ function Nf(e) {
7705
7731
  return Object.fromEntries(Object.entries(e.marks).map(([t, n]) => {
7706
7732
  let r = e.members?.[t] ?? [], i = Object.keys(n).sort((e, t) => r.indexOf(e) - r.indexOf(t));
7707
7733
  return [t, {
@@ -7714,37 +7740,37 @@ function Mf(e) {
7714
7740
  }));
7715
7741
  }
7716
7742
  // src/viewer/hooks/useEvidenceUpdates.ts
7717
- var Nf = (e, t) => e.filter((e) => e.anchor.group === t && e.anchor.verdict && e.messages.some((e) => !e.deleted)).map((e) => ({
7743
+ var Pf = (e, t) => e.filter((e) => e.anchor.group === t && e.anchor.verdict && e.messages.some((e) => !e.deleted)).map((e) => ({
7718
7744
  id: e.id,
7719
7745
  at: e.messages[0]?.at ?? e.statusAt
7720
7746
  })).sort((e, t) => e.at < t.at ? -1 : +(e.at > t.at)).at(-1)?.id;
7721
- function Pf({ canvas: e, pending: t, threads: n, versions: r }) {
7747
+ function Ff({ canvas: e, pending: t, threads: n, versions: r }) {
7722
7748
  if (!e) return null;
7723
7749
  let i = Object.fromEntries(Object.entries(e.groups ?? {}).flatMap(([t, n]) => n.verify ? [[t, n.boards.filter((t) => e.boards[t])]] : [])), a = new Set(Object.values(i).flat());
7724
7750
  return {
7725
7751
  groups: i,
7726
7752
  versions: Object.fromEntries([...a].map((n) => [n, t.has(n) ? 0 : r[e.boards[n].file] ?? 0])),
7727
- verdicts: Object.fromEntries(Object.keys(i).map((e) => [e, Nf(n, e)]))
7753
+ verdicts: Object.fromEntries(Object.keys(i).map((e) => [e, Pf(n, e)]))
7728
7754
  };
7729
7755
  }
7730
- function Ff(e) {
7731
- let t = Pf(e), n = t ? JSON.stringify(t) : null, [r, i] = Y(() => ({
7756
+ function If(e) {
7757
+ let t = Ff(e), n = t ? JSON.stringify(t) : null, [r, i] = Y(() => ({
7732
7758
  key: n,
7733
- state: t ? jf(kf(), {
7759
+ state: t ? Mf(Af(), {
7734
7760
  ...t,
7735
7761
  now: Date.now()
7736
- }) : kf()
7762
+ }) : Af()
7737
7763
  })), a = r;
7738
7764
  t && n !== r.key && (a = {
7739
7765
  key: n,
7740
- state: jf(r.state, {
7766
+ state: Mf(r.state, {
7741
7767
  ...t,
7742
7768
  now: Date.now()
7743
7769
  })
7744
7770
  }, i(a));
7745
7771
  let o = a.state;
7746
7772
  return q(() => {
7747
- let e = Mf(o);
7773
+ let e = Nf(o);
7748
7774
  return {
7749
7775
  groups: e,
7750
7776
  boards: new Map(Object.entries(e).flatMap(([e, t]) => t.boards.map((t) => [t.id, {
@@ -7755,7 +7781,7 @@ function Ff(e) {
7755
7781
  }, [o]);
7756
7782
  }
7757
7783
  // src/viewer/lib/inspector.ts
7758
- var If = (e) => !!e && typeof e == "object" && !Array.isArray(e), Lf = (e, t) => typeof e == "string" && e.length <= t, Rf = (e) => typeof e == "number" && Number.isFinite(e) && Math.abs(e) <= 1e8, zf = (e) => Number.isSafeInteger(e) && e > 0, Bf = (e) => e === null || If(e) && Rf(e.x) && Rf(e.y) && Rf(e.width) && Rf(e.height) && e.width >= 0 && e.height >= 0, Vf = (e) => rn.includes(e), Hf = /* @__PURE__ */ new Set([
7784
+ var Lf = (e) => !!e && typeof e == "object" && !Array.isArray(e), Rf = (e, t) => typeof e == "string" && e.length <= t, zf = (e) => typeof e == "number" && Number.isFinite(e) && Math.abs(e) <= 1e8, Bf = (e) => Number.isSafeInteger(e) && e > 0, Vf = (e) => e === null || Lf(e) && zf(e.x) && zf(e.y) && zf(e.width) && zf(e.height) && e.width >= 0 && e.height >= 0, Hf = (e) => rn.includes(e), Uf = /* @__PURE__ */ new Set([
7759
7785
  "Frame",
7760
7786
  "Column",
7761
7787
  "Row",
@@ -7765,28 +7791,28 @@ var If = (e) => !!e && typeof e == "object" && !Array.isArray(e), Lf = (e, t) =>
7765
7791
  "Image",
7766
7792
  "Button"
7767
7793
  ]);
7768
- function Uf(e) {
7794
+ function Wf(e) {
7769
7795
  if (!Array.isArray(e) || e.length > 2500) return !1;
7770
7796
  let t = /* @__PURE__ */ new Map();
7771
7797
  for (let n of e) {
7772
- if (!If(n) || !zf(n.id) || t.has(n.id) || !Lf(n.name, 100) || !Lf(n.tag, 80) || !Lf(n.selector, 200) || !Lf(n.path, 4e3) || !Hf.has(n.kind) || !Array.isArray(n.children) || n.children.length > e.length || n.children.some((e) => !zf(e)) || new Set(n.children).size !== n.children.length || (t.size === 0 ? n.parentId !== null : !zf(n.parentId) || !t.has(n.parentId))) return !1;
7798
+ if (!Lf(n) || !Bf(n.id) || t.has(n.id) || !Rf(n.name, 100) || !Rf(n.tag, 80) || !Rf(n.selector, 200) || !Rf(n.path, 4e3) || !Uf.has(n.kind) || !Array.isArray(n.children) || n.children.length > e.length || n.children.some((e) => !Bf(e)) || new Set(n.children).size !== n.children.length || (t.size === 0 ? n.parentId !== null : !Bf(n.parentId) || !t.has(n.parentId))) return !1;
7773
7799
  t.set(n.id, n);
7774
7800
  }
7775
7801
  for (let e of t.values()) if (e.children.some((n) => t.get(n)?.parentId !== e.id) || e.parentId !== null && !t.get(e.parentId)?.children.includes(e.id)) return !1;
7776
7802
  return !0;
7777
7803
  }
7778
- function Wf(e) {
7779
- if (!If(e) || !Lf(e.session, 128) || !e.session || !Lf(e.connection, 128)) return null;
7804
+ function Gf(e) {
7805
+ if (!Lf(e) || !Rf(e.session, 128) || !e.session || !Rf(e.connection, 128)) return null;
7780
7806
  let t = !1;
7781
7807
  switch (e.type) {
7782
7808
  case "ryugi:inspect:tree":
7783
- t = typeof e.truncated == "boolean" && Uf(e.nodes);
7809
+ t = typeof e.truncated == "boolean" && Wf(e.nodes);
7784
7810
  break;
7785
7811
  case "ryugi:inspect:hover":
7786
- t = Bf(e.rect) && (e.id === void 0 || e.id === null || zf(e.id));
7812
+ t = Vf(e.rect) && (e.id === void 0 || e.id === null || Bf(e.id));
7787
7813
  break;
7788
7814
  case "ryugi:inspect:rect":
7789
- t = zf(e.id) && e.rect !== null && Bf(e.rect);
7815
+ t = Bf(e.id) && e.rect !== null && Vf(e.rect);
7790
7816
  break;
7791
7817
  case "ryugi:inspect:selection": {
7792
7818
  if (![
@@ -7796,18 +7822,18 @@ function Wf(e) {
7796
7822
  "primary"
7797
7823
  ].includes(e.reason) || e.toggle !== void 0 && typeof e.toggle != "boolean") break;
7798
7824
  let n = e.selection;
7799
- t = n === null || If(n) && zf(n.id) && Lf(n.name, 100) && Lf(n.tag, 80) && Lf(n.selector, 200) && n.rect !== null && Bf(n.rect) && Lf(n.html, 2e4) && [
7825
+ t = n === null || Lf(n) && Bf(n.id) && Rf(n.name, 100) && Rf(n.tag, 80) && Rf(n.selector, 200) && n.rect !== null && Vf(n.rect) && Rf(n.html, 2e4) && [
7800
7826
  "fixed",
7801
7827
  "fill",
7802
7828
  "hug"
7803
- ].includes(n.widthMode) && ["fixed", "hug"].includes(n.heightMode) && If(n.css) && rn.every((e) => Lf(n.css[e], 2e3));
7829
+ ].includes(n.widthMode) && ["fixed", "hug"].includes(n.heightMode) && Lf(n.css) && rn.every((e) => Rf(n.css[e], 2e3));
7804
7830
  break;
7805
7831
  }
7806
7832
  case "ryugi:inspect:targets":
7807
- t = zf(e.request) && Array.isArray(e.targets) && e.targets.length <= 2500 && new Set(e.targets.map((e) => If(e) ? e.id : null)).size === e.targets.length && e.targets.every((e) => If(e) && zf(e.id) && Lf(e.name, 100) && e.rect !== null && Bf(e.rect));
7833
+ t = Bf(e.request) && Array.isArray(e.targets) && e.targets.length <= 2500 && new Set(e.targets.map((e) => Lf(e) ? e.id : null)).size === e.targets.length && e.targets.every((e) => Lf(e) && Bf(e.id) && Rf(e.name, 100) && e.rect !== null && Vf(e.rect));
7808
7834
  break;
7809
7835
  case "ryugi:inspect:details":
7810
- t = zf(e.request) && Array.isArray(e.nodes) && e.nodes.length <= 2500 && e.nodes.every((e) => If(e) && zf(e.id) && Lf(e.text, 200) && Lf(e.html, 2e3));
7836
+ t = Bf(e.request) && Array.isArray(e.nodes) && e.nodes.length <= 2500 && e.nodes.every((e) => Lf(e) && Bf(e.id) && Rf(e.text, 200) && Rf(e.html, 2e3));
7811
7837
  break;
7812
7838
  case "ryugi:inspect:drag":
7813
7839
  t = [
@@ -7815,18 +7841,18 @@ function Wf(e) {
7815
7841
  "move",
7816
7842
  "end",
7817
7843
  "cancel"
7818
- ].includes(e.phase) && Rf(e.x) && Rf(e.y) && typeof e.append == "boolean" && (e.id === void 0 || zf(e.id));
7844
+ ].includes(e.phase) && zf(e.x) && zf(e.y) && typeof e.append == "boolean" && (e.id === void 0 || Bf(e.id));
7819
7845
  break;
7820
7846
  case "ryugi:inspect:tweaks":
7821
- t = Array.isArray(e.tweaks) && e.tweaks.length <= 2500 && e.tweaks.every((e) => If(e) && zf(e.id) && Lf(e.name, 200) && Vf(e.property) && Lf(e.from, 2e3) && Lf(e.value, 300));
7847
+ t = Array.isArray(e.tweaks) && e.tweaks.length <= 2500 && e.tweaks.every((e) => Lf(e) && Bf(e.id) && Rf(e.name, 200) && Hf(e.property) && Rf(e.from, 2e3) && Rf(e.value, 300));
7822
7848
  break;
7823
7849
  case "ryugi:inspect:wheel":
7824
- t = Rf(e.deltaX) && Rf(e.deltaY) && Rf(e.x) && Rf(e.y) && typeof e.zoom == "boolean";
7850
+ t = zf(e.deltaX) && zf(e.deltaY) && zf(e.x) && zf(e.y) && typeof e.zoom == "boolean";
7825
7851
  break;
7826
7852
  case "ryugi:inspect:pan":
7827
- t = Rf(e.deltaX) && Rf(e.deltaY);
7853
+ t = zf(e.deltaX) && zf(e.deltaY);
7828
7854
  break;
7829
- case "ryugi:inspect:key": t = Lf(e.code, 32) && Lf(e.key, 32) && [
7855
+ case "ryugi:inspect:key": t = Rf(e.code, 32) && Rf(e.key, 32) && [
7830
7856
  "down",
7831
7857
  "ctrlKey",
7832
7858
  "metaKey",
@@ -7837,7 +7863,7 @@ function Wf(e) {
7837
7863
  return t ? e : null;
7838
7864
  }
7839
7865
  // src/viewer/hooks/useInspector.ts
7840
- function Gf(e) {
7866
+ function Kf(e) {
7841
7867
  let [t, n] = Y({
7842
7868
  frames: {},
7843
7869
  selection: null,
@@ -7914,7 +7940,7 @@ function Gf(e) {
7914
7940
  let e = (e) => {
7915
7941
  let t = Array.from(i.current).find(([, t]) => t.element.contentWindow === e.source);
7916
7942
  if (!t) return;
7917
- let [a, o] = t, l = Wf(e.data);
7943
+ let [a, o] = t, l = Gf(e.data);
7918
7944
  if (l?.type === "ryugi:inspect:wheel" && l.zoom) r.current.options.onInput(a, l);
7919
7945
  else if (!(!l || l.connection !== o.connection || o.session !== null && o.session !== l.session) && (r.current.options.enabled || l.type === "ryugi:inspect:tweaks") && !(r.current.options.playing.has(a) && l.type !== "ryugi:inspect:tweaks")) {
7920
7946
  if (l.type === "ryugi:inspect:tree") {
@@ -8182,7 +8208,7 @@ function Gf(e) {
8182
8208
  };
8183
8209
  }
8184
8210
  // src/viewer/hooks/useMarqueeSelection.ts
8185
- function Kf(e, t, n, r) {
8211
+ function qf(e, t, n, r) {
8186
8212
  let i = J(null), [a, o] = Y(!1), [s, c] = Y(null), { cancelDrag: l } = t, u = G(() => {
8187
8213
  i.current = null, c(null), o(!1), l();
8188
8214
  }, [l]);
@@ -8229,12 +8255,12 @@ function Kf(e, t, n, r) {
8229
8255
  };
8230
8256
  }
8231
8257
  // src/viewer/hooks/usePanZoom.ts
8232
- var qf = {
8258
+ var Jf = {
8233
8259
  top: 64,
8234
8260
  right: 24,
8235
8261
  bottom: 24,
8236
8262
  left: 24
8237
- }, Jf = .01, Yf = 20, Xf = 420, Zf = 1.1, Qf = l(.2, 0, 0, 1), $f = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, ep = `[data-chrome]${[
8263
+ }, Yf = .01, Xf = 20, Zf = 420, Qf = 1.1, $f = l(.2, 0, 0, 1), ep = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, tp = `[data-chrome]${[
8238
8264
  "board-label",
8239
8265
  "group-label",
8240
8266
  "video-controls",
@@ -8242,7 +8268,7 @@ var qf = {
8242
8268
  "reject",
8243
8269
  "parameters"
8244
8270
  ].map((e) => `:not([data-chrome="${e}"])`).join("")}`;
8245
- function tp(e, t) {
8271
+ function np(e, t) {
8246
8272
  let n = t.k / e.k;
8247
8273
  return {
8248
8274
  x: t.x - e.x * n,
@@ -8250,18 +8276,18 @@ function tp(e, t) {
8250
8276
  scale: n
8251
8277
  };
8252
8278
  }
8253
- function np(e, t, n) {
8254
- let { x: r, y: i, scale: a } = tp(e, t);
8255
- return Math.max(Math.abs(r), Math.abs(i), Math.abs(n.width * (a - 1) + r), Math.abs(n.height * (a - 1) + i)) > 160 || a > Zf || a < 1 / Zf;
8279
+ function rp(e, t, n) {
8280
+ let { x: r, y: i, scale: a } = np(e, t);
8281
+ return Math.max(Math.abs(r), Math.abs(i), Math.abs(n.width * (a - 1) + r), Math.abs(n.height * (a - 1) + i)) > 160 || a > Qf || a < 1 / Qf;
8256
8282
  }
8257
- function rp(e, t, n, r) {
8283
+ function ip(e, t, n, r) {
8258
8284
  for (let i = e; i && i !== t; i = i.parentElement) {
8259
8285
  let { overflowX: e, overflowY: t } = getComputedStyle(i);
8260
8286
  if (r && /auto|scroll/.test(t) && i.scrollHeight > i.clientHeight || n && /auto|scroll/.test(e) && i.scrollWidth > i.clientWidth) return !0;
8261
8287
  }
8262
8288
  return !1;
8263
8289
  }
8264
- function ip(e) {
8290
+ function ap(e) {
8265
8291
  let t = J(null), n = J(null), [i, a] = Y({
8266
8292
  x: 0,
8267
8293
  y: 0,
@@ -8272,7 +8298,7 @@ function ip(e) {
8272
8298
  }), T = G(() => {
8273
8299
  let { x: e, y: t, k: r } = g.current, i = n.current;
8274
8300
  i && (i.style.transform = `translate(${e}px, ${t}px) scale(${r})`, i.style.setProperty("--zoom", String(r)));
8275
- let a = tp(S.current, g.current), o = a.x === 0 && a.y === 0 && a.scale === 1 ? "" : `translate(${a.x}px, ${a.y}px) scale(${a.scale})`;
8301
+ let a = np(S.current, g.current), o = a.x === 0 && a.y === 0 && a.scale === 1 ? "" : `translate(${a.x}px, ${a.y}px) scale(${a.scale})`;
8276
8302
  for (let e of C.current) e.style.transform = o;
8277
8303
  }, []), E = G((e) => {
8278
8304
  n.current = e, T();
@@ -8292,7 +8318,7 @@ function ip(e) {
8292
8318
  x.current = void 0, O(""), b(!1), a(g.current);
8293
8319
  }, 150);
8294
8320
  }, [O]), ee = G((e) => {
8295
- g.current = e, T(), np(S.current, e, w.current) && a(e);
8321
+ g.current = e, T(), rp(S.current, e, w.current) && a(e);
8296
8322
  }, [T]), A = G((e) => {
8297
8323
  g.current = typeof e == "function" ? e(g.current) : e, k(), !v.current && (v.current = !0, _.current = requestAnimationFrame(() => {
8298
8324
  v.current = !1, _.current = null, ee(g.current);
@@ -8328,8 +8354,8 @@ function ip(e) {
8328
8354
  y: n.y + t
8329
8355
  })), [A]), oe = G((e) => {
8330
8356
  if (e.zoom) {
8331
- let t = Math.max(-20, Math.min(Yf, e.deltaY));
8332
- A((n) => d(n, Math.exp(-t * Jf), e.x, e.y));
8357
+ let t = Math.max(-20, Math.min(Xf, e.deltaY));
8358
+ A((n) => d(n, Math.exp(-t * Yf), e.x, e.y));
8333
8359
  } else ae(-e.deltaX, -e.deltaY);
8334
8360
  }, [ae, A]);
8335
8361
  K(() => {
@@ -8337,7 +8363,7 @@ function ip(e) {
8337
8363
  if (!e) return;
8338
8364
  let n = (t) => {
8339
8365
  let n = t.target, r = t.ctrlKey || t.metaKey;
8340
- if (n?.closest?.(ep) || !r && rp(n, e, t.deltaX, t.deltaY)) return;
8366
+ if (n?.closest?.(tp) || !r && ip(n, e, t.deltaX, t.deltaY)) return;
8341
8367
  t.preventDefault(), M();
8342
8368
  let i = e.getBoundingClientRect(), a = t.deltaMode === 1 ? 16 : t.deltaMode === 2 ? e.clientHeight : 1;
8343
8369
  oe({
@@ -8405,20 +8431,20 @@ function ip(e) {
8405
8431
  cx: (e?.clientWidth ?? 0) / 2,
8406
8432
  cy: (e?.clientHeight ?? 0) / 2
8407
8433
  };
8408
- }, ue = G((e, n = qf, i = {}) => {
8434
+ }, ue = G((e, n = Jf, i = {}) => {
8409
8435
  let a = t.current;
8410
8436
  if (!a || !e) return;
8411
8437
  let o = r(e, {
8412
8438
  width: a.clientWidth,
8413
8439
  height: a.clientHeight
8414
8440
  }, n);
8415
- if (M(), !i.animate || $f()) {
8441
+ if (M(), !i.animate || ep()) {
8416
8442
  te(o);
8417
8443
  return;
8418
8444
  }
8419
8445
  let s = g.current, c = performance.now(), l = () => {
8420
- let e = Math.min(1, (performance.now() - c) / Xf);
8421
- e === 1 ? te(o, !0) : (k(), ee(m(s, o, Qf(e)))), ne.current = e === 1 ? null : requestAnimationFrame(l);
8446
+ let e = Math.min(1, (performance.now() - c) / Zf);
8447
+ e === 1 ? te(o, !0) : (k(), ee(m(s, o, $f(e)))), ne.current = e === 1 ? null : requestAnimationFrame(l);
8422
8448
  };
8423
8449
  ne.current = requestAnimationFrame(l);
8424
8450
  }, [
@@ -8461,7 +8487,7 @@ function ip(e) {
8461
8487
  };
8462
8488
  }
8463
8489
  // src/viewer/lib/selection.ts
8464
- function ap({ boards: e, frames: t, targets: n, details: r }) {
8490
+ function op({ boards: e, frames: t, targets: n, details: r }) {
8465
8491
  let i = /* @__PURE__ */ new Map();
8466
8492
  for (let [n, r] of Object.entries(t)) {
8467
8493
  let t = e[n];
@@ -8503,24 +8529,24 @@ function ap({ boards: e, frames: t, targets: n, details: r }) {
8503
8529
  nodes: [...i.values()]
8504
8530
  };
8505
8531
  }
8506
- var op = (e) => e.id.length <= Yt.id && e.board.length <= Yt.board && e.file.length <= Yt.file && e.tag.length <= Yt.tag && e.path.length <= Yt.path && e.name.length <= Yt.name, sp = (e) => new TextEncoder().encode(JSON.stringify(e)).length;
8507
- function cp(e, t = Wt) {
8508
- let n = e.selected.filter((e) => op(e) && e.text.length <= Yt.text && e.html.length <= Yt.html), r = e.tweaks.filter((e) => op(e) && e.from.length <= Yt.from && e.value.length <= Yt.value), i = {
8532
+ var sp = (e) => e.id.length <= Yt.id && e.board.length <= Yt.board && e.file.length <= Yt.file && e.tag.length <= Yt.tag && e.path.length <= Yt.path && e.name.length <= Yt.name, cp = (e) => new TextEncoder().encode(JSON.stringify(e)).length;
8533
+ function lp(e, t = Wt) {
8534
+ let n = e.selected.filter((e) => sp(e) && e.text.length <= Yt.text && e.html.length <= Yt.html), r = e.tweaks.filter((e) => sp(e) && e.from.length <= Yt.from && e.value.length <= Yt.value), i = {
8509
8535
  ...e,
8510
8536
  selected: n,
8511
8537
  tweaks: r,
8512
- nodes: e.nodes.filter(op).slice(0, zt)
8538
+ nodes: e.nodes.filter(sp).slice(0, zt)
8513
8539
  };
8514
- for (let e = sp(i); e > t && i.nodes.length; e = sp(i)) i = {
8540
+ for (let e = cp(i); e > t && i.nodes.length; e = cp(i)) i = {
8515
8541
  ...i,
8516
8542
  nodes: i.nodes.slice(0, Math.floor(i.nodes.length * Math.min(.95, t / e)))
8517
8543
  };
8518
8544
  return i;
8519
8545
  }
8520
8546
  // src/viewer/hooks/useSelectionSync.ts
8521
- var lp = crypto.randomUUID();
8522
- function up({ artifact: e, boards: t, live: n, inspector: r, send: i }) {
8523
- let a = J(0), { frames: o, selectedTargets: s, details: c, revision: l } = r, u = JSON.stringify(s.map(({ boardId: e, id: t }) => [e, t])), d = q(() => JSON.parse(u), [u]), f = q(() => ap({
8547
+ var up = crypto.randomUUID();
8548
+ function dp({ artifact: e, boards: t, live: n, inspector: r, send: i }) {
8549
+ let a = J(0), { frames: o, selectedTargets: s, details: c, revision: l } = r, u = JSON.stringify(s.map(({ boardId: e, id: t }) => [e, t])), d = q(() => JSON.parse(u), [u]), f = q(() => op({
8524
8550
  boards: t ?? {},
8525
8551
  frames: o,
8526
8552
  targets: d.map(([e, t]) => ({
@@ -8538,10 +8564,10 @@ function up({ artifact: e, boards: t, live: n, inspector: r, send: i }) {
8538
8564
  if (!e || !i || !n) return;
8539
8565
  let t = setTimeout(() => {
8540
8566
  let t = l !== a.current;
8541
- a.current = l, i(cp({
8567
+ a.current = l, i(lp({
8542
8568
  type: "selection",
8543
8569
  artifact: e,
8544
- tab: lp,
8570
+ tab: up,
8545
8571
  human: t,
8546
8572
  ...f
8547
8573
  }));
@@ -8556,7 +8582,7 @@ function up({ artifact: e, boards: t, live: n, inspector: r, send: i }) {
8556
8582
  ]);
8557
8583
  }
8558
8584
  // src/viewer/hooks/useVerdicts.ts
8559
- function dp({ canvas: e, page: t, threads: n, stale: r, versions: i, comment: a }) {
8585
+ function fp({ canvas: e, page: t, threads: n, stale: r, versions: i, comment: a }) {
8560
8586
  let [o, s] = Y(null), c = q(() => e?.groups ?? {}, [e]), l = q(() => e?.boards ?? {}, [e]), u = q(() => Object.fromEntries(me(c, l, t).map(([e]) => [e, pe(n, e, r)])), [
8561
8587
  c,
8562
8588
  l,
@@ -8618,7 +8644,7 @@ function dp({ canvas: e, page: t, threads: n, stale: r, versions: i, comment: a
8618
8644
  };
8619
8645
  }
8620
8646
  // src/viewer/inspector/InspectionOutline.tsx
8621
- function fp({ board: e, rect: t, view: n, name: r, nodeId: i, selected: a }) {
8647
+ function pp({ board: e, rect: t, view: n, name: r, nodeId: i, selected: a }) {
8622
8648
  return t.width <= 0 || t.height <= 0 ? null : /* @__PURE__ */ Z("div", {
8623
8649
  "aria-hidden": "true",
8624
8650
  "data-outline": "",
@@ -8656,7 +8682,7 @@ function fp({ board: e, rect: t, view: n, name: r, nodeId: i, selected: a }) {
8656
8682
  });
8657
8683
  }
8658
8684
  // src/viewer/inspector/Layers.tsx
8659
- var pp = {
8685
+ var mp = {
8660
8686
  Frame: wr,
8661
8687
  Column: gr,
8662
8688
  Row: Gr,
@@ -8665,21 +8691,21 @@ var pp = {
8665
8691
  Text: Jr,
8666
8692
  Image: Or,
8667
8693
  Button: zr
8668
- }, mp = (e, t, n) => `${encodeURIComponent(e)}:${encodeURIComponent(t)}:${n}`;
8669
- function hp({ boards: e, frames: t, selection: n, targets: r, playing: i, select: a, hoverNode: o }) {
8670
- let [s, c] = Y([]), l = J(null), u = J(null), d = J(!1), f = n && t[n.boardId] ? mp(n.boardId, t[n.boardId].session, n.node.id) : null, p = r ? r.flatMap((e) => t[e.boardId] ? [mp(e.boardId, t[e.boardId].session, e.id)] : []) : f ? [f] : [], m = p.join("|"), { treeData: h, byKey: g } = q(() => {
8694
+ }, hp = (e, t, n) => `${encodeURIComponent(e)}:${encodeURIComponent(t)}:${n}`;
8695
+ function gp({ boards: e, frames: t, selection: n, targets: r, playing: i, select: a, hoverNode: o }) {
8696
+ let [s, c] = Y([]), l = J(null), u = J(null), d = J(!1), f = n && t[n.boardId] ? hp(n.boardId, t[n.boardId].session, n.node.id) : null, p = r ? r.flatMap((e) => t[e.boardId] ? [hp(e.boardId, t[e.boardId].session, e.id)] : []) : f ? [f] : [], m = p.join("|"), { treeData: h, byKey: g } = q(() => {
8671
8697
  let n = new Set(m ? m.split("|") : []), r = /* @__PURE__ */ new Map(), a = [];
8672
8698
  for (let [o, s] of e) {
8673
8699
  let e = t[o];
8674
8700
  if (!e?.nodes[0]) continue;
8675
8701
  let c = new Map(e.nodes.map((e) => [e.id, e])), l = i.has(o), u = (t, i) => {
8676
- let a = mp(o, e.session, t.id);
8702
+ let a = hp(o, e.session, t.id);
8677
8703
  r.set(a, {
8678
8704
  boardId: o,
8679
8705
  node: t,
8680
8706
  parentKey: i
8681
8707
  });
8682
- let d = i === null ? "Frame" : t.kind, f = i === null ? s.title || o : t.name, p = pp[d];
8708
+ let d = i === null ? "Frame" : t.kind, f = i === null ? s.title || o : t.name, p = mp[d];
8683
8709
  return {
8684
8710
  key: a,
8685
8711
  disabled: l,
@@ -8807,14 +8833,14 @@ function hp({ boards: e, frames: t, selection: n, targets: r, playing: i, select
8807
8833
  ] });
8808
8834
  }
8809
8835
  // src/viewer/inspector/Properties.tsx
8810
- var gp = (e) => Number.isFinite(parseFloat(e)) ? Math.round(parseFloat(e) * 100) / 100 : 0, _p = (e) => e.map(([e, t]) => ({
8836
+ var _p = (e) => Number.isFinite(parseFloat(e)) ? Math.round(parseFloat(e) * 100) / 100 : 0, vp = (e) => e.map(([e, t]) => ({
8811
8837
  value: e,
8812
8838
  label: t
8813
- })), vp = (e) => {
8839
+ })), yp = (e) => {
8814
8840
  let t = e.match(/^rgba?\(([\d.]+),\s*([\d.]+),\s*([\d.]+)(?:,\s*([\d.]+))?\)$/);
8815
8841
  return t ? "#" + t.slice(1).filter((e) => e !== void 0).map((e, t) => Math.round(Number(e) * (t === 3 ? 255 : 1)).toString(16).padStart(2, "0")).join("") : e;
8816
8842
  };
8817
- function yp({ label: e, children: t, controlId: n }) {
8843
+ function bp({ label: e, children: t, controlId: n }) {
8818
8844
  return /* @__PURE__ */ Z("div", {
8819
8845
  ...U($.field),
8820
8846
  children: [n ? /* @__PURE__ */ X("label", {
@@ -8830,7 +8856,7 @@ function yp({ label: e, children: t, controlId: n }) {
8830
8856
  })]
8831
8857
  });
8832
8858
  }
8833
- function bp({ label: e, property: t, node: n, change: r, unit: i = "px", max: a, min: o = 0, step: s = 1, sizing: c }) {
8859
+ function xp({ label: e, property: t, node: n, change: r, unit: i = "px", max: a, min: o = 0, step: s = 1, sizing: c }) {
8834
8860
  let l = xn(), u = /* @__PURE__ */ X(Pn, {
8835
8861
  controls: !1,
8836
8862
  id: l,
@@ -8840,12 +8866,12 @@ function bp({ label: e, property: t, node: n, change: r, unit: i = "px", max: a,
8840
8866
  step: s,
8841
8867
  style: { width: "100%" },
8842
8868
  suffix: i || void 0,
8843
- value: gp(n.css[t]),
8869
+ value: _p(n.css[t]),
8844
8870
  onChange: (e) => {
8845
8871
  e !== null && r(t, String(e) + i);
8846
8872
  }
8847
8873
  });
8848
- return /* @__PURE__ */ X(yp, {
8874
+ return /* @__PURE__ */ X(bp, {
8849
8875
  controlId: l,
8850
8876
  label: e,
8851
8877
  children: c ? /* @__PURE__ */ Z("div", {
@@ -8860,14 +8886,14 @@ function bp({ label: e, property: t, node: n, change: r, unit: i = "px", max: a,
8860
8886
  }) : u
8861
8887
  });
8862
8888
  }
8863
- function xp({ label: e, property: t, values: n, node: r, change: i }) {
8889
+ function Sp({ label: e, property: t, values: n, node: r, change: i }) {
8864
8890
  let a = xn(), o = r.css[t], s = n.some(([e]) => e === o) ? n : [...n, [o, o]];
8865
- return /* @__PURE__ */ X(yp, {
8891
+ return /* @__PURE__ */ X(bp, {
8866
8892
  controlId: a,
8867
8893
  label: e,
8868
8894
  children: /* @__PURE__ */ X(Un, {
8869
8895
  id: a,
8870
- options: _p(s),
8896
+ options: vp(s),
8871
8897
  size: "small",
8872
8898
  style: { width: "100%" },
8873
8899
  value: o,
@@ -8877,7 +8903,7 @@ function xp({ label: e, property: t, values: n, node: r, change: i }) {
8877
8903
  })
8878
8904
  });
8879
8905
  }
8880
- function Sp({ node: e, change: t }) {
8906
+ function Cp({ node: e, change: t }) {
8881
8907
  let n = {
8882
8908
  node: e,
8883
8909
  change: t
@@ -8890,7 +8916,7 @@ function Sp({ node: e, change: t }) {
8890
8916
  ...U($.sectionTitle),
8891
8917
  children: H("inspector.size")
8892
8918
  }),
8893
- /* @__PURE__ */ X(bp, {
8919
+ /* @__PURE__ */ X(xp, {
8894
8920
  ...n,
8895
8921
  label: H("inspector.width"),
8896
8922
  property: "width",
@@ -8903,15 +8929,15 @@ function Sp({ node: e, change: t }) {
8903
8929
  id: r,
8904
8930
  size: "small",
8905
8931
  value: e.widthMode,
8906
- options: _p([
8932
+ options: vp([
8907
8933
  ["fixed", H("inspector.fixed")],
8908
8934
  ["fill", H("inspector.fill")],
8909
8935
  ["hug", H("inspector.hug")]
8910
8936
  ]),
8911
- onChange: (n) => t("width", n === "fill" ? "100%" : n === "hug" ? "max-content" : `${gp(e.css.width) || e.rect.width}px`)
8937
+ onChange: (n) => t("width", n === "fill" ? "100%" : n === "hug" ? "max-content" : `${_p(e.css.width) || e.rect.width}px`)
8912
8938
  })] })
8913
8939
  }),
8914
- /* @__PURE__ */ X(bp, {
8940
+ /* @__PURE__ */ X(xp, {
8915
8941
  ...n,
8916
8942
  label: H("inspector.height"),
8917
8943
  property: "height",
@@ -8924,11 +8950,11 @@ function Sp({ node: e, change: t }) {
8924
8950
  id: i,
8925
8951
  size: "small",
8926
8952
  value: e.heightMode,
8927
- options: _p([["hug", H("inspector.hug")], ["fixed", H("inspector.fixed")]]),
8928
- onChange: (n) => t("height", n === "hug" ? "auto" : `${gp(e.css.height) || e.rect.height}px`)
8953
+ options: vp([["hug", H("inspector.hug")], ["fixed", H("inspector.fixed")]]),
8954
+ onChange: (n) => t("height", n === "hug" ? "auto" : `${_p(e.css.height) || e.rect.height}px`)
8929
8955
  })] })
8930
8956
  }),
8931
- /* @__PURE__ */ X(xp, {
8957
+ /* @__PURE__ */ X(Sp, {
8932
8958
  ...n,
8933
8959
  label: H("inspector.position"),
8934
8960
  property: "position",
@@ -8940,7 +8966,7 @@ function Sp({ node: e, change: t }) {
8940
8966
  ["sticky", H("inspector.sticky")]
8941
8967
  ]
8942
8968
  }),
8943
- /* @__PURE__ */ X(bp, {
8969
+ /* @__PURE__ */ X(xp, {
8944
8970
  ...n,
8945
8971
  label: H("inspector.grow"),
8946
8972
  max: 100,
@@ -8956,7 +8982,7 @@ function Sp({ node: e, change: t }) {
8956
8982
  ...U($.sectionTitle),
8957
8983
  children: H("inspector.layout")
8958
8984
  }),
8959
- /* @__PURE__ */ X(xp, {
8985
+ /* @__PURE__ */ X(Sp, {
8960
8986
  ...n,
8961
8987
  label: H("inspector.layout"),
8962
8988
  property: "display",
@@ -8969,7 +8995,7 @@ function Sp({ node: e, change: t }) {
8969
8995
  ["none", H("inspector.hidden")]
8970
8996
  ]
8971
8997
  }),
8972
- (e.css.display === "flex" || e.css.display === "inline-flex") && /* @__PURE__ */ Z(Cn, { children: [/* @__PURE__ */ X(yp, {
8998
+ (e.css.display === "flex" || e.css.display === "inline-flex") && /* @__PURE__ */ Z(Cn, { children: [/* @__PURE__ */ X(bp, {
8973
8999
  label: H("inspector.direction"),
8974
9000
  children: /* @__PURE__ */ X(Hn, {
8975
9001
  block: !0,
@@ -9000,14 +9026,14 @@ function Sp({ node: e, change: t }) {
9000
9026
  }],
9001
9027
  onChange: (e) => t("flex-direction", e)
9002
9028
  })
9003
- }), /* @__PURE__ */ X(yp, {
9029
+ }), /* @__PURE__ */ X(bp, {
9004
9030
  label: H("inspector.align"),
9005
9031
  children: /* @__PURE__ */ X(Hn, {
9006
9032
  block: !0,
9007
9033
  "aria-label": H("inspector.align"),
9008
9034
  size: "small",
9009
9035
  value: e.css["align-items"],
9010
- options: _p([
9036
+ options: vp([
9011
9037
  ["flex-start", H("inspector.start")],
9012
9038
  ["center", H("inspector.center")],
9013
9039
  ["stretch", H("inspector.fill")]
@@ -9015,12 +9041,12 @@ function Sp({ node: e, change: t }) {
9015
9041
  onChange: (e) => t("align-items", e)
9016
9042
  })
9017
9043
  })] }),
9018
- /* @__PURE__ */ X(bp, {
9044
+ /* @__PURE__ */ X(xp, {
9019
9045
  ...n,
9020
9046
  label: H("inspector.gap"),
9021
9047
  property: "gap"
9022
9048
  }),
9023
- /* @__PURE__ */ X(bp, {
9049
+ /* @__PURE__ */ X(xp, {
9024
9050
  ...n,
9025
9051
  label: H("inspector.padding"),
9026
9052
  property: "padding"
@@ -9034,18 +9060,18 @@ function Sp({ node: e, change: t }) {
9034
9060
  ...U($.sectionTitle),
9035
9061
  children: H("inspector.appearance")
9036
9062
  }),
9037
- /* @__PURE__ */ X(yp, {
9063
+ /* @__PURE__ */ X(bp, {
9038
9064
  label: H("inspector.fill"),
9039
9065
  children: /* @__PURE__ */ X(On, {
9040
9066
  alpha: !0,
9041
9067
  recent: !1,
9042
9068
  size: "small",
9043
9069
  trigger: "field",
9044
- value: vp(e.css["background-color"]),
9070
+ value: yp(e.css["background-color"]),
9045
9071
  onChange: (e) => t("background-color", e)
9046
9072
  })
9047
9073
  }),
9048
- /* @__PURE__ */ X(bp, {
9074
+ /* @__PURE__ */ X(xp, {
9049
9075
  ...n,
9050
9076
  label: H("inspector.opacity"),
9051
9077
  max: 1,
@@ -9053,12 +9079,12 @@ function Sp({ node: e, change: t }) {
9053
9079
  step: .1,
9054
9080
  unit: ""
9055
9081
  }),
9056
- /* @__PURE__ */ X(bp, {
9082
+ /* @__PURE__ */ X(xp, {
9057
9083
  ...n,
9058
9084
  label: H("inspector.radius"),
9059
9085
  property: "border-radius"
9060
9086
  }),
9061
- /* @__PURE__ */ X(xp, {
9087
+ /* @__PURE__ */ X(Sp, {
9062
9088
  ...n,
9063
9089
  label: H("inspector.border"),
9064
9090
  property: "border-style",
@@ -9103,26 +9129,26 @@ function Sp({ node: e, change: t }) {
9103
9129
  items: [{
9104
9130
  key: "typography",
9105
9131
  title: H("inspector.typography"),
9106
- children: /* @__PURE__ */ Z(Cn, { children: [/* @__PURE__ */ X(bp, {
9132
+ children: /* @__PURE__ */ Z(Cn, { children: [/* @__PURE__ */ X(xp, {
9107
9133
  ...n,
9108
9134
  label: H("inspector.fontSize"),
9109
9135
  min: 1,
9110
9136
  property: "font-size"
9111
- }), /* @__PURE__ */ X(yp, {
9137
+ }), /* @__PURE__ */ X(bp, {
9112
9138
  label: H("inspector.color"),
9113
9139
  children: /* @__PURE__ */ X(On, {
9114
9140
  alpha: !0,
9115
9141
  recent: !1,
9116
9142
  size: "small",
9117
9143
  trigger: "field",
9118
- value: vp(e.css.color),
9144
+ value: yp(e.css.color),
9119
9145
  onChange: (e) => t("color", e)
9120
9146
  })
9121
9147
  })] })
9122
9148
  }, {
9123
9149
  key: "effects",
9124
9150
  title: H("inspector.effects"),
9125
- children: /* @__PURE__ */ X(yp, {
9151
+ children: /* @__PURE__ */ X(bp, {
9126
9152
  label: H("inspector.shadow"),
9127
9153
  children: /* @__PURE__ */ X(Nn, {
9128
9154
  "aria-label": H("inspector.shadow"),
@@ -9147,11 +9173,11 @@ function Sp({ node: e, change: t }) {
9147
9173
  ] });
9148
9174
  }
9149
9175
  // src/viewer/inspector/InspectorPanel.tsx
9150
- var Cp = [
9176
+ var wp = [
9151
9177
  "Properties",
9152
9178
  "Code",
9153
9179
  "Tweaks"
9154
- ], wp = yn(function({ boards: e, frames: t, selection: n, targets: r, playing: i, select: a, hoverNode: o, change: s, reset: c, enabled: l, onClose: u, embedded: d }) {
9180
+ ], Tp = yn(function({ boards: e, frames: t, selection: n, targets: r, playing: i, select: a, hoverNode: o, change: s, reset: c, enabled: l, onClose: u, embedded: d }) {
9155
9181
  let [f, p] = Y("Properties"), [m, h] = Y(""), g = n?.node, _ = Object.entries(t).flatMap(([e, t]) => t.tweaks.map((t) => ({
9156
9182
  ...t,
9157
9183
  boardId: e
@@ -9174,7 +9200,7 @@ var Cp = [
9174
9200
  value: f,
9175
9201
  variant: "rounded",
9176
9202
  onValueChange: (e) => {
9177
- Cp.includes(e) && p(e);
9203
+ wp.includes(e) && p(e);
9178
9204
  },
9179
9205
  children: [
9180
9206
  /* @__PURE__ */ Z("header", {
@@ -9184,7 +9210,7 @@ var Cp = [
9184
9210
  "aria-label": H("inspector.views"),
9185
9211
  className: U($.tabs).className,
9186
9212
  style: { alignSelf: "center" },
9187
- children: [/* @__PURE__ */ X(Kn, {}), Cp.map((e) => /* @__PURE__ */ Z(Xn, {
9213
+ children: [/* @__PURE__ */ X(Kn, {}), wp.map((e) => /* @__PURE__ */ Z(Xn, {
9188
9214
  style: { position: "relative" },
9189
9215
  value: e,
9190
9216
  children: [H(`inspector.tab.${e}`), e === "Tweaks" && _.length > 0 && /* @__PURE__ */ X(lr, {
@@ -9202,7 +9228,7 @@ var Cp = [
9202
9228
  onClick: u
9203
9229
  })]
9204
9230
  }),
9205
- /* @__PURE__ */ X(hp, {
9231
+ /* @__PURE__ */ X(gp, {
9206
9232
  boards: e,
9207
9233
  frames: t,
9208
9234
  hoverNode: o,
@@ -9256,7 +9282,7 @@ var Cp = [
9256
9282
  /* @__PURE__ */ X(Jn, {
9257
9283
  value: "Properties",
9258
9284
  ...U($.panelBodyPanel),
9259
- children: g && l ? /* @__PURE__ */ X(Sp, {
9285
+ children: g && l ? /* @__PURE__ */ X(Cp, {
9260
9286
  change: s,
9261
9287
  node: g
9262
9288
  }, `${n.boardId}:${t[n.boardId]?.session}:${g.id}`) : /* @__PURE__ */ X("p", {
@@ -9399,7 +9425,7 @@ var Cp = [
9399
9425
  });
9400
9426
  });
9401
9427
  // src/viewer/split/useSplitBoard.ts
9402
- function Tp(e, t, n) {
9428
+ function Ep(e, t, n) {
9403
9429
  if (n.board) {
9404
9430
  let t = e.boards[n.board];
9405
9431
  return t ? {
@@ -9421,7 +9447,7 @@ function Tp(e, t, n) {
9421
9447
  let r = e.pages[0]?.id;
9422
9448
  return r && t?.pages[r]?.bounds || null;
9423
9449
  }
9424
- function Ep({ canvas: e, layout: t, fit: n, threads: r, stale: i }) {
9450
+ function Dp({ canvas: e, layout: t, fit: n, threads: r, stale: i }) {
9425
9451
  let a = J({
9426
9452
  canvas: e,
9427
9453
  layout: t,
@@ -9439,7 +9465,7 @@ function Ep({ canvas: e, layout: t, fit: n, threads: r, stale: i }) {
9439
9465
  o.current = null;
9440
9466
  let t = 0, n = requestAnimationFrame(() => {
9441
9467
  t = requestAnimationFrame(() => {
9442
- let { canvas: t, layout: n, fit: r } = a.current, i = t && Tp(t, n, e);
9468
+ let { canvas: t, layout: n, fit: r } = a.current, i = t && Ep(t, n, e);
9443
9469
  i && r(i);
9444
9470
  });
9445
9471
  });
@@ -9480,15 +9506,15 @@ function Ep({ canvas: e, layout: t, fit: n, threads: r, stale: i }) {
9480
9506
  }, []);
9481
9507
  }
9482
9508
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@base-ui/react/fieldset/root/FieldsetRootContext.mjs
9483
- var Dp = /*#__PURE__*/ W.createContext(void 0);
9484
- process.env.NODE_ENV !== "production" && (Dp.displayName = "FieldsetRootContext");
9485
- function Op(e = !1) {
9486
- let t = W.useContext(Dp);
9509
+ var Op = /*#__PURE__*/ W.createContext(void 0);
9510
+ process.env.NODE_ENV !== "production" && (Op.displayName = "FieldsetRootContext");
9511
+ function kp(e = !1) {
9512
+ let t = W.useContext(Op);
9487
9513
  if (!t && !e) throw Error(process.env.NODE_ENV === "production" ? ge(86) : "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>.");
9488
9514
  return t;
9489
9515
  }
9490
9516
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@base-ui/react/internals/labelable-provider/LabelableProvider.mjs
9491
- var kp = function(e) {
9517
+ var Ap = function(e) {
9492
9518
  let t = ke(), [n, r] = W.useState(t), [i, a] = W.useState(), [o, s] = W.useState([]), c = n === void 0 ? t : n, l = ct(() => /* @__PURE__ */ new Map()), { messageIds: u } = Ge(), d = nt((e, t) => {
9493
9519
  let n = l.current;
9494
9520
  t === void 0 ? n.delete(e) : n.set(e, t), r((e) => {
@@ -9532,17 +9558,17 @@ var kp = function(e) {
9532
9558
  children: e.children
9533
9559
  });
9534
9560
  };
9535
- process.env.NODE_ENV !== "production" && (kp.displayName = "LabelableProvider");
9561
+ process.env.NODE_ENV !== "production" && (Ap.displayName = "LabelableProvider");
9536
9562
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@base-ui/react/utils/useRegisteredLabelId.mjs
9537
- function Ap(e, t) {
9563
+ function jp(e, t) {
9538
9564
  let n = ke(e);
9539
9565
  return at(() => (t(n), () => {
9540
9566
  t((e) => e === n ? void 0 : e);
9541
9567
  }), [n, t]), n;
9542
9568
  }
9543
9569
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@base-ui/react/internals/labelable-provider/useLabel.mjs
9544
- function jp(e = {}) {
9545
- let { id: t, fallbackControlId: n, native: r = !1, setLabelId: i, focusControl: a } = e, { controlId: o, setLabelId: s } = Ge(), c = Ap(t, nt((e) => {
9570
+ function Mp(e = {}) {
9571
+ let { id: t, fallbackControlId: n, native: r = !1, setLabelId: i, focusControl: a } = e, { controlId: o, setLabelId: s } = Ge(), c = jp(t, nt((e) => {
9546
9572
  s(e), i?.(e);
9547
9573
  })), l = o ?? n;
9548
9574
  function u(e) {
@@ -9551,8 +9577,8 @@ function jp(e = {}) {
9551
9577
  return;
9552
9578
  }
9553
9579
  if (!l) return;
9554
- let t = Mp(e.currentTarget, l);
9555
- ne(t) && Np(t);
9580
+ let t = Np(e.currentTarget, l);
9581
+ ne(t) && Pp(t);
9556
9582
  }
9557
9583
  function d(e) {
9558
9584
  let t = k(e.nativeEvent);
@@ -9570,7 +9596,7 @@ function jp(e = {}) {
9570
9596
  }
9571
9597
  };
9572
9598
  }
9573
- function Mp(e, t) {
9599
+ function Np(e, t) {
9574
9600
  let n = e.getRootNode();
9575
9601
  for (; ce(n);) {
9576
9602
  let e = n.getElementById(t);
@@ -9579,11 +9605,11 @@ function Mp(e, t) {
9579
9605
  }
9580
9606
  return te(e).getElementById(t);
9581
9607
  }
9582
- function Np(e) {
9608
+ function Pp(e) {
9583
9609
  e.focus({ focusVisible: !0 });
9584
9610
  }
9585
9611
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@base-ui/react/field/utils/getCombinedFieldValidityData.mjs
9586
- function Pp(e, t) {
9612
+ function Fp(e, t) {
9587
9613
  return {
9588
9614
  ...e,
9589
9615
  state: {
@@ -9593,33 +9619,33 @@ function Pp(e, t) {
9593
9619
  };
9594
9620
  }
9595
9621
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@base-ui/react/field/root/useFieldValidation.mjs
9596
- var Fp = Object.keys(Ce);
9597
- function Ip(e, t) {
9622
+ var Ip = Object.keys(Ce);
9623
+ function Lp(e, t) {
9598
9624
  return e.matches(":disabled") ? !1 : !t || e.form === t || e.form === null && !e.hasAttribute("form");
9599
9625
  }
9600
- function Lp(e, t) {
9626
+ function Rp(e, t) {
9601
9627
  let n = null;
9602
- for (let r of e.keys()) if (Ip(r, t)) {
9628
+ for (let r of e.keys()) if (Lp(r, t)) {
9603
9629
  if (!r.validity.valid) return r;
9604
9630
  n ??= r;
9605
9631
  }
9606
9632
  return n;
9607
9633
  }
9608
- function Rp(e) {
9634
+ function zp(e) {
9609
9635
  return {
9610
9636
  ...Ce,
9611
9637
  valid: !e,
9612
9638
  customError: e
9613
9639
  };
9614
9640
  }
9615
- function zp(e) {
9641
+ function Bp(e) {
9616
9642
  return e && e.validationMessage ? [e.validationMessage] : [];
9617
9643
  }
9618
- function Bp(e) {
9644
+ function Vp(e) {
9619
9645
  let { elementRef: t, formRef: n } = Je(), { setValidityData: r, validate: i, validityData: a, validationDebounceTime: o, invalid: s, markedDirtyRef: c, state: l, shouldValidateOnChange: u, validationMode: d, registeredFieldIdRef: f } = e, { controlId: p, getDescriptionProps: m } = Ge(), h = w(), g = W.useRef(null), _ = ct(() => /* @__PURE__ */ new Map()).current, v = W.useRef(0), y = W.useRef(null), b = W.useCallback((e, t) => (_.set(e, t), () => {
9620
9646
  _.delete(e);
9621
9647
  }), [_]), x = nt(() => {
9622
- let e = Lp(_, t.current);
9648
+ let e = Rp(_, t.current);
9623
9649
  return e && _.get(e)?.controlRef.current || null;
9624
9650
  }), S = nt(async (e, o = !1) => {
9625
9651
  v.current += 1;
@@ -9629,7 +9655,7 @@ function Bp(e) {
9629
9655
  if (r == null) return;
9630
9656
  let i = n.current.fields.get(r);
9631
9657
  if (!i) return;
9632
- let a = Pp(e, t);
9658
+ let a = Fp(e, t);
9633
9659
  n.current.fields.set(r, {
9634
9660
  ...i,
9635
9661
  validityData: a
@@ -9662,39 +9688,39 @@ function Bp(e) {
9662
9688
  b(i, n), r(i);
9663
9689
  }
9664
9690
  function T(e) {
9665
- let t = Fp.reduce((t, n) => (t[n] = e.validity[n], t), {}), n = !1;
9666
- for (let e of Fp) if (e !== "valid") {
9691
+ let t = Ip.reduce((t, n) => (t[n] = e.validity[n], t), {}), n = !1;
9692
+ for (let e of Ip) if (e !== "valid") {
9667
9693
  if (e === "valueMissing" && t[e]) n = !0;
9668
9694
  else if (t[e]) return t;
9669
9695
  }
9670
9696
  return n && !c.current && (t.valid = !0, t.valueMissing = !1), t;
9671
9697
  }
9672
9698
  function E() {
9673
- return _.size > 0 ? Lp(_, t.current) : g.current;
9699
+ return _.size > 0 ? Rp(_, t.current) : g.current;
9674
9700
  }
9675
9701
  let D = E();
9676
9702
  function O() {
9677
- return D = E(), D?.willValidate ? T(D) : Rp(!1);
9703
+ return D = E(), D?.willValidate ? T(D) : zp(!1);
9678
9704
  }
9679
9705
  if (o) {
9680
9706
  if (l.valid !== !1 || !D) return;
9681
9707
  if (!D.validity.valueMissing) {
9682
9708
  C();
9683
- let e = E(), t = e?.validity.customError ? zp(e) : [];
9684
- w(Rp(t.length > 0), t, !1);
9709
+ let e = E(), t = e?.validity.customError ? Bp(e) : [];
9710
+ w(zp(t.length > 0), t, !1);
9685
9711
  return;
9686
9712
  }
9687
- for (let e of Fp) if (e !== "valid" && e !== "valueMissing" && e !== "customError" && D.validity[e]) return;
9713
+ for (let e of Ip) if (e !== "valid" && e !== "valueMissing" && e !== "customError" && D.validity[e]) return;
9688
9714
  }
9689
9715
  h.clear(), C();
9690
- let k = O(), ee = zp(D), A = u();
9716
+ let k = O(), ee = Bp(D), A = u();
9691
9717
  if (ee.length === 0 || A) {
9692
9718
  let t = Array.from(n.current.fields.values()).reduce((e, t) => (t.name && (e[t.name] = t.getValue()), e), {}), r = i(e, t), o;
9693
9719
  if (typeof r == "object" && r && "then" in r) {
9694
9720
  if (k.valid === !1 ? w(k, ee) : d !== "onSubmit" && a.state.customError || (k.valid = null, w(k, ee)), o = await r, m !== v.current) return;
9695
9721
  k = O();
9696
9722
  } else o = r;
9697
- ee = o ? [].concat(o).filter(Boolean) : [], ee.length > 0 ? (k.valid = !1, k.customError = !0, D?.willValidate && S(D, ee.join("\n"))) : ee = zp(D);
9723
+ ee = o ? [].concat(o).filter(Boolean) : [], ee.length > 0 ? (k.valid = !1, k.customError = !0, D?.willValidate && S(D, ee.join("\n"))) : ee = Bp(D);
9698
9724
  }
9699
9725
  w(k, ee);
9700
9726
  }), C = nt((e, t = !1) => {
@@ -9726,7 +9752,7 @@ function Bp(e) {
9726
9752
  ]);
9727
9753
  }
9728
9754
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@base-ui/react/internals/field-register-control/useFieldControlRegistration.mjs
9729
- function Vp(e) {
9755
+ function Hp(e) {
9730
9756
  let { change: t, commit: n, invalid: r, markedDirtyRef: i, name: a, setRegisteredFieldName: o, registeredFieldIdRef: s, setValidityData: c, validityData: l } = e, { formRef: u } = Je(), d = W.useRef(null), f = W.useRef(null), p = W.useRef(!1), m = nt(() => {
9731
9757
  let e = f.current;
9732
9758
  if (e) return e.getValue ? e.getValue() : e.value;
@@ -9744,7 +9770,7 @@ function Vp(e) {
9744
9770
  getValue: m,
9745
9771
  name: a ?? e.name,
9746
9772
  controlRef: e.controlRef,
9747
- validityData: Pp(l, r),
9773
+ validityData: Fp(l, r),
9748
9774
  validate: g
9749
9775
  });
9750
9776
  }
@@ -9766,7 +9792,7 @@ function Vp(e) {
9766
9792
  getValue: m,
9767
9793
  name: a ?? e.name,
9768
9794
  controlRef: e.controlRef,
9769
- validityData: Pp(l, r),
9795
+ validityData: Fp(l, r),
9770
9796
  validate: g
9771
9797
  }));
9772
9798
  }, [
@@ -9793,8 +9819,8 @@ function Vp(e) {
9793
9819
  })];
9794
9820
  }
9795
9821
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@base-ui/react/field/root/FieldRoot.mjs
9796
- var Hp = /*#__PURE__*/ W.forwardRef(function(e, t) {
9797
- let { errors: n, validationMode: r, submitCountRef: i } = Je(), { render: a, className: o, validate: s, validationDebounceTime: c = 0, validationMode: l = r, name: u, disabled: d = !1, invalid: f, dirty: p, touched: m, actionsRef: h, style: g, ..._ } = e, v = Op(!0)?.disabled, y = nt(s || (() => null)), b = v || d, [x, S] = W.useState(!1), [C, w] = W.useState(!1), [T, E] = W.useState(!1), [O, k] = W.useState(!1), ee = W.useRef(void 0), A = p ?? C, te = m ?? x, j = W.useRef(A), ne = W.useRef(void 0), [M, re] = W.useState(), ie = u ?? M;
9822
+ var Up = /*#__PURE__*/ W.forwardRef(function(e, t) {
9823
+ let { errors: n, validationMode: r, submitCountRef: i } = Je(), { render: a, className: o, validate: s, validationDebounceTime: c = 0, validationMode: l = r, name: u, disabled: d = !1, invalid: f, dirty: p, touched: m, actionsRef: h, style: g, ..._ } = e, v = kp(!0)?.disabled, y = nt(s || (() => null)), b = v || d, [x, S] = W.useState(!1), [C, w] = W.useState(!1), [T, E] = W.useState(!1), [O, k] = W.useState(!1), ee = W.useRef(void 0), A = p ?? C, te = m ?? x, j = W.useRef(A), ne = W.useRef(void 0), [M, re] = W.useState(), ie = u ?? M;
9798
9824
  at(() => {
9799
9825
  p !== void 0 && (j.current = p);
9800
9826
  }, [p]);
@@ -9822,7 +9848,7 @@ var Hp = /*#__PURE__*/ W.forwardRef(function(e, t) {
9822
9848
  F,
9823
9849
  T,
9824
9850
  O
9825
- ]), fe = Bp({
9851
+ ]), fe = Vp({
9826
9852
  setValidityData: ue,
9827
9853
  validate: y,
9828
9854
  validityData: le,
@@ -9833,7 +9859,7 @@ var Hp = /*#__PURE__*/ W.forwardRef(function(e, t) {
9833
9859
  shouldValidateOnChange: se,
9834
9860
  validationMode: l,
9835
9861
  registeredFieldIdRef: ne
9836
- }), [I, pe] = Vp({
9862
+ }), [I, pe] = Hp({
9837
9863
  change: fe.change,
9838
9864
  commit: fe.commit,
9839
9865
  invalid: ce,
@@ -9886,26 +9912,26 @@ var Hp = /*#__PURE__*/ W.forwardRef(function(e, t) {
9886
9912
  children: L
9887
9913
  });
9888
9914
  });
9889
- process.env.NODE_ENV !== "production" && (Hp.displayName = "FieldRootInner");
9890
- var Up = /*#__PURE__*/ W.forwardRef(function(e, t) {
9891
- return /*#__PURE__*/ X(kp, { children: /*#__PURE__*/ X(Hp, {
9915
+ process.env.NODE_ENV !== "production" && (Up.displayName = "FieldRootInner");
9916
+ var Wp = /*#__PURE__*/ W.forwardRef(function(e, t) {
9917
+ return /*#__PURE__*/ X(Ap, { children: /*#__PURE__*/ X(Up, {
9892
9918
  ...e,
9893
9919
  ref: t
9894
9920
  }) });
9895
9921
  });
9896
- process.env.NODE_ENV !== "production" && (Up.displayName = "FieldRoot");
9922
+ process.env.NODE_ENV !== "production" && (Wp.displayName = "FieldRoot");
9897
9923
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@base-ui/react/field/item/FieldItemContext.mjs
9898
- var Wp = /*#__PURE__*/ W.createContext({ disabled: !1 });
9899
- process.env.NODE_ENV !== "production" && (Wp.displayName = "FieldItemContext");
9900
- function Gp() {
9901
- return W.useContext(Wp);
9924
+ var Gp = /*#__PURE__*/ W.createContext({ disabled: !1 });
9925
+ process.env.NODE_ENV !== "production" && (Gp.displayName = "FieldItemContext");
9926
+ function Kp() {
9927
+ return W.useContext(Gp);
9902
9928
  }
9903
9929
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@base-ui/react/field/label/FieldLabel.mjs
9904
- var Kp = /*#__PURE__*/ W.forwardRef(function(e, t) {
9905
- let { render: n, className: r, style: i, id: a, nativeLabel: o = !0, ...s } = e, c = $e(!1), l = Gp(), { labelId: u } = Ge(), d = {
9930
+ var qp = /*#__PURE__*/ W.forwardRef(function(e, t) {
9931
+ let { render: n, className: r, style: i, id: a, nativeLabel: o = !0, ...s } = e, c = $e(!1), l = Kp(), { labelId: u } = Ge(), d = {
9906
9932
  ...c.state,
9907
9933
  disabled: c.disabled || l.disabled
9908
- }, f = W.useRef(null), p = jp({
9934
+ }, f = W.useRef(null), p = Mp({
9909
9935
  id: u ?? a,
9910
9936
  native: o
9911
9937
  });
@@ -9928,25 +9954,25 @@ var Kp = /*#__PURE__*/ W.forwardRef(function(e, t) {
9928
9954
  stateAttributesMapping: Ve
9929
9955
  });
9930
9956
  });
9931
- process.env.NODE_ENV !== "production" && (Kp.displayName = "FieldLabel");
9932
- var qp = (e, t) => ({
9957
+ process.env.NODE_ENV !== "production" && (qp.displayName = "FieldLabel");
9958
+ var Jp = (e, t) => ({
9933
9959
  left: t.x + (e.x + e.w) * t.k + 12,
9934
9960
  top: t.y + e.y * t.k
9935
9961
  });
9936
- function Jp(e, t, n) {
9937
- let r = qp(e, t);
9962
+ function Yp(e, t, n) {
9963
+ let r = Jp(e, t);
9938
9964
  return {
9939
9965
  x: Math.min(Math.max(12, r.left), Math.max(12, n.width - 352 - 12)) - r.left,
9940
9966
  y: Math.min(Math.max(60, r.top), Math.max(60, n.height - 604 - 12)) - r.top
9941
9967
  };
9942
9968
  }
9943
- function Yp({ control: e, value: t, change: n, id: r, width: i }) {
9944
- return /* @__PURE__ */ Z(Up, {
9969
+ function Xp({ control: e, value: t, change: n, id: r, width: i }) {
9970
+ return /* @__PURE__ */ Z(Wp, {
9945
9971
  style: {
9946
9972
  width: i ?? "100%",
9947
9973
  flexShrink: 0
9948
9974
  },
9949
- children: [/* @__PURE__ */ X(Kp, {
9975
+ children: [/* @__PURE__ */ X(qp, {
9950
9976
  className: "x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km",
9951
9977
  children: e.label
9952
9978
  }), /* @__PURE__ */ X(Pn, {
@@ -9964,7 +9990,7 @@ function Yp({ control: e, value: t, change: n, id: r, width: i }) {
9964
9990
  })]
9965
9991
  });
9966
9992
  }
9967
- function Xp({ control: e, value: t, change: n }) {
9993
+ function Zp({ control: e, value: t, change: n }) {
9968
9994
  let r = xn(), i = e.type === "enum" && e.options.length <= 3, a = i ? "fieldset" : "div", o;
9969
9995
  o = e.type === "color" ? /* @__PURE__ */ Z("div", {
9970
9996
  className: "x78zum5 x6s0dn4 x167g77z xeuugli",
@@ -10019,14 +10045,14 @@ function Xp({ control: e, value: t, change: n }) {
10019
10045
  step: e.step,
10020
10046
  value: t,
10021
10047
  onChange: n
10022
- }), /* @__PURE__ */ X(Yp, {
10048
+ }), /* @__PURE__ */ X(Xp, {
10023
10049
  change: n,
10024
10050
  control: e,
10025
10051
  id: `${r}-number`,
10026
10052
  value: t,
10027
10053
  width: 48
10028
10054
  })]
10029
- }) : e.type === "number" ? /* @__PURE__ */ X(Yp, {
10055
+ }) : e.type === "number" ? /* @__PURE__ */ X(Xp, {
10030
10056
  change: n,
10031
10057
  control: e,
10032
10058
  id: r,
@@ -10104,7 +10130,7 @@ function Xp({ control: e, value: t, change: n }) {
10104
10130
  })]
10105
10131
  });
10106
10132
  }
10107
- function Zp({ boardId: e, title: t, state: n, anchor: r, onChange: i, onReset: a, onClose: o }) {
10133
+ function Qp({ boardId: e, title: t, state: n, anchor: r, onChange: i, onReset: a, onClose: o }) {
10108
10134
  let s = J(null), c = xn(), [l, u] = Y(!1), [d, f] = Y("schema"), p = H(d === "schema" ? "parameters.schema" : "parameters.currentValues"), m = JSON.stringify(d === "schema" ? n.schema : n.values, null, 2), h = /* @__PURE__ */ new Map();
10109
10135
  for (let e of Object.entries(n.schema?.controls ?? {})) {
10110
10136
  let t = e[1].section || H("parameters.controls");
@@ -10186,7 +10212,7 @@ function Zp({ boardId: e, title: t, state: n, anchor: r, onChange: i, onReset: a
10186
10212
  children: [/* @__PURE__ */ X("h3", {
10187
10213
  className: "x1k6wstc xh88oxj x1bo0w0s xdj266r xwoyzhm",
10188
10214
  children: e
10189
- }), t.map(([e, t]) => /* @__PURE__ */ X(Xp, {
10215
+ }), t.map(([e, t]) => /* @__PURE__ */ X(Zp, {
10190
10216
  change: (t) => i(e, t),
10191
10217
  control: t,
10192
10218
  value: n.values[e]
@@ -10335,7 +10361,7 @@ function Zp({ boardId: e, title: t, state: n, anchor: r, onChange: i, onReset: a
10335
10361
  });
10336
10362
  }
10337
10363
  // src/viewer/verdicts/RejectComposer.tsx
10338
- function Qp({ group: e, left: t, top: n, onSubmit: r, onCancel: i }) {
10364
+ function $p({ group: e, left: t, top: n, onSubmit: r, onCancel: i }) {
10339
10365
  let { t: a } = vt();
10340
10366
  return /* @__PURE__ */ Z("div", {
10341
10367
  "data-chrome": "reject",
@@ -10376,7 +10402,7 @@ function Qp({ group: e, left: t, top: n, onSubmit: r, onCancel: i }) {
10376
10402
  });
10377
10403
  }
10378
10404
  // src/viewer/components/ghost.ts
10379
- var $p = { ghost: {
10405
+ var em = { ghost: {
10380
10406
  k1xSpc: "xrvj5dj",
10381
10407
  kgQiWS: "x1ku5rj1",
10382
10408
  kmuXW: "x2lah0s",
@@ -10392,8 +10418,8 @@ var $p = { ghost: {
10392
10418
  kIyJzY: "xgdialr",
10393
10419
  k3aq6I: "x19kf12q",
10394
10420
  $$css: !0
10395
- } }, em = 120, tm = .5, nm = 110, rm = .4, im = .25;
10396
- function am(e, t, n) {
10421
+ } }, tm = 120, nm = .5, rm = 110, im = .4, am = .25;
10422
+ function om(e, t, n) {
10397
10423
  if (!e || ot()) return {
10398
10424
  done: Promise.resolve(),
10399
10425
  cancel: () => {}
@@ -10407,8 +10433,8 @@ function am(e, t, n) {
10407
10433
  cancel: () => r.cancel()
10408
10434
  };
10409
10435
  }
10410
- function om({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i, origin: a, choice: o, onChoose: s, onOpen: c, onClose: l }) {
10411
- let { viewportRef: u, view: d, place: f, handlers: p } = ip("hand"), m = J(null), h = J(null), g = J(null), _ = J(null), [v, y] = Y(null), b = J(null), x = J(d);
10436
+ function sm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i, origin: a, choice: o, onChoose: s, onOpen: c, onClose: l }) {
10437
+ let { viewportRef: u, view: d, place: f, handlers: p } = ap("hand"), m = J(null), h = J(null), g = J(null), _ = J(null), [v, y] = Y(null), b = J(null), x = J(d);
10412
10438
  x.current = d;
10413
10439
  let S = J(!1), C = J(null), w = J(!1), T = i.indexOf(e), E = T > 0 ? i[T - 1] : void 0, D = T >= 0 ? i[T + 1] : void 0, O = () => ({
10414
10440
  width: u.current?.clientWidth ?? t.w,
@@ -10483,20 +10509,20 @@ function om({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10483
10509
  easing: we
10484
10510
  };
10485
10511
  await Promise.all([
10486
- t ? am(m.current, [{ transform: e }, { transform: t }], {
10512
+ t ? om(m.current, [{ transform: e }, { transform: t }], {
10487
10513
  duration: 240,
10488
10514
  easing: we
10489
- }).done : am(m.current, [{ opacity: 1 }, { opacity: 0 }], n).done,
10490
- am(h.current, [{ opacity: Number(h.current?.style.opacity || 1) }, { opacity: 0 }], {
10515
+ }).done : om(m.current, [{ opacity: 1 }, { opacity: 0 }], n).done,
10516
+ om(h.current, [{ opacity: Number(h.current?.style.opacity || 1) }, { opacity: 0 }], {
10491
10517
  duration: 240,
10492
10518
  easing: we
10493
10519
  }).done,
10494
- ...ee().map((e) => am(e, [{ opacity: Number(e?.style.opacity || 1) }, { opacity: 0 }], n).done)
10520
+ ...ee().map((e) => om(e, [{ opacity: Number(e?.style.opacity || 1) }, { opacity: 0 }], n).done)
10495
10521
  ]), l();
10496
10522
  }, j = async (e, t) => {
10497
10523
  if (!t || w.current) return;
10498
10524
  w.current = !0;
10499
- let n = m.current?.style.transform || "none", r = am(m.current, [{
10525
+ let n = m.current?.style.transform || "none", r = om(m.current, [{
10500
10526
  transform: n,
10501
10527
  opacity: 1
10502
10528
  }, {
@@ -10546,14 +10572,14 @@ function om({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10546
10572
  let t = b.current;
10547
10573
  if (!t || t.id !== e.pointerId || (b.current = null, t.mode === "pan" || t.mode === "pending")) return p.onPointerUp(e);
10548
10574
  let n = t.track.velocity(performance.now()), r = e.clientX - t.x, i = e.clientY - t.y;
10549
- if (t.mode === "dismiss") return i > em && n.y > -.4 || n.y > tm ? void te() : A();
10550
- let a = n.x < -.4 ? 1 : n.x > rm ? -1 : 0, o = r < -110 ? 1 : r > nm ? -1 : 0, s = a === 0 ? o : o === 0 || o === a ? a : 0, c = s === 1 ? D : s === -1 ? E : void 0;
10575
+ if (t.mode === "dismiss") return i > tm && n.y > -.4 || n.y > nm ? void te() : A();
10576
+ let a = n.x < -.4 ? 1 : n.x > im ? -1 : 0, o = r < -110 ? 1 : r > rm ? -1 : 0, s = a === 0 ? o : o === 0 || o === a ? a : 0, c = s === 1 ? D : s === -1 ? E : void 0;
10551
10577
  c && s ? j(s, c) : A();
10552
10578
  }, { width: ie, height: ae } = O(), oe, se = 1, N = 1;
10553
10579
  if (v?.axis === "y") {
10554
10580
  let e = Math.max(0, v.dy), t = 1 - Math.min(e / 900, .3);
10555
- oe = `translate(${v.dx * .6 + (1 - t) * ie / 2}px, ${e + (1 - t) * ae / 2}px) scale(${t})`, se = 1 - Math.min(e / 420, .85), N = Math.max(0, 1 - e / em);
10556
- } else v?.axis === "x" && (oe = `translateX(${v.dx > 0 && !E || v.dx < 0 && !D ? v.dx * im : v.dx}px)`);
10581
+ oe = `translate(${v.dx * .6 + (1 - t) * ie / 2}px, ${e + (1 - t) * ae / 2}px) scale(${t})`, se = 1 - Math.min(e / 420, .85), N = Math.max(0, 1 - e / tm);
10582
+ } else v?.axis === "x" && (oe = `translateX(${v.dx > 0 && !E || v.dx < 0 && !D ? v.dx * am : v.dx}px)`);
10557
10583
  return /* @__PURE__ */ Z("div", {
10558
10584
  "data-phone-board": !0,
10559
10585
  className: "xixxii4 x10a8y8t x68pp3s x78zum5 xdt5ytf xo2rkog xqfszdh",
@@ -10572,7 +10598,7 @@ function om({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10572
10598
  "aria-label": H("phone.backToCanvas"),
10573
10599
  type: "button",
10574
10600
  onClick: () => void te(),
10575
- ...U($p.ghost),
10601
+ ...U(em.ghost),
10576
10602
  children: /* @__PURE__ */ X(ar, { size: 22 })
10577
10603
  }),
10578
10604
  /* @__PURE__ */ Z("span", {
@@ -10669,7 +10695,7 @@ function om({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10669
10695
  disabled: !E,
10670
10696
  type: "button",
10671
10697
  onClick: () => void j(-1, E),
10672
- ...U($p.ghost),
10698
+ ...U(em.ghost),
10673
10699
  children: /* @__PURE__ */ X(ar, { size: 20 })
10674
10700
  }),
10675
10701
  /* @__PURE__ */ X("span", {
@@ -10687,7 +10713,7 @@ function om({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10687
10713
  disabled: !D,
10688
10714
  type: "button",
10689
10715
  onClick: () => void j(1, D),
10690
- ...U($p.ghost),
10716
+ ...U(em.ghost),
10691
10717
  children: /* @__PURE__ */ X(or, { size: 20 })
10692
10718
  })
10693
10719
  ]
@@ -10696,13 +10722,13 @@ function om({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10696
10722
  });
10697
10723
  }
10698
10724
  // src/viewer/lib/questions.ts
10699
- var sm = (e) => ({
10725
+ var cm = (e) => ({
10700
10726
  minX: e.x,
10701
10727
  minY: e.y,
10702
10728
  maxX: e.x + e.w,
10703
10729
  maxY: e.y + e.h
10704
10730
  });
10705
- function cm(e, t, n) {
10731
+ function lm(e, t, n) {
10706
10732
  let r = t.pages[n];
10707
10733
  if (!r) return [];
10708
10734
  let i = /* @__PURE__ */ new Set(), a = [];
@@ -10714,7 +10740,7 @@ function cm(e, t, n) {
10714
10740
  id: t,
10715
10741
  title: o.title ?? t,
10716
10742
  boards: c,
10717
- bounds: sm(s)
10743
+ bounds: cm(s)
10718
10744
  });
10719
10745
  }
10720
10746
  }
@@ -10722,7 +10748,7 @@ function cm(e, t, n) {
10722
10748
  id: t,
10723
10749
  title: r.title ?? t,
10724
10750
  boards: [t],
10725
- bounds: sm(r)
10751
+ bounds: cm(r)
10726
10752
  });
10727
10753
  a.sort((e, t) => e.bounds.minY - t.bounds.minY || e.bounds.minX - t.bounds.minX);
10728
10754
  let o = T(e, t, n), s = /* @__PURE__ */ new Map();
@@ -10737,25 +10763,25 @@ function cm(e, t, n) {
10737
10763
  let c = (e) => o.find((t) => t.id === e)?.rect.y ?? -Infinity;
10738
10764
  return [...s.values()].sort((e, t) => c(t.id) - c(e.id));
10739
10765
  }
10740
- var lm = (e) => e.flatMap((e) => e.questions);
10741
- function um(e, t) {
10742
- let n = lm(e);
10766
+ var um = (e) => e.flatMap((e) => e.questions);
10767
+ function dm(e, t) {
10768
+ let n = um(e);
10743
10769
  if (t) {
10744
10770
  let r = e.find((e) => e.id === t)?.questions[0] ?? n.find((e) => e.id === t) ?? n.find((e) => e.boards.includes(t));
10745
10771
  if (r) return r;
10746
10772
  }
10747
10773
  return n[0] ?? null;
10748
10774
  }
10749
- function dm(e, t, n) {
10775
+ function fm(e, t, n) {
10750
10776
  let r = e.findIndex((e) => e.id === t);
10751
10777
  return r === -1 ? null : e[r + n] ?? null;
10752
10778
  }
10753
- var fm = .66, pm = (e, t, n) => e.id === t?.id ? "current" : n[e.id]?.state === "pass" ? "pass" : n[e.id]?.state === "reject" ? "reject" : "open";
10754
- function mm({ rounds: e, current: t, previous: n, next: r, pages: i, page: a, onPageChange: o, onPick: s, snap: c, onSnap: l, verdicts: u = {}, chose: d = {} }) {
10755
- let { t: f } = vt(), p = lm(e), m = t ? p.findIndex((e) => e.id === t.id) : -1;
10779
+ var pm = .66, mm = (e, t, n) => e.id === t?.id ? "current" : n[e.id]?.state === "pass" ? "pass" : n[e.id]?.state === "reject" ? "reject" : "open";
10780
+ function hm({ rounds: e, current: t, previous: n, next: r, pages: i, page: a, onPageChange: o, onPick: s, snap: c, onSnap: l, verdicts: u = {}, chose: d = {} }) {
10781
+ let { t: f } = vt(), p = um(e), m = t ? p.findIndex((e) => e.id === t.id) : -1;
10756
10782
  return /* @__PURE__ */ X(Ze, {
10757
10783
  snap: c,
10758
- snaps: [78, fm],
10784
+ snaps: [78, pm],
10759
10785
  header: /* @__PURE__ */ Z("div", {
10760
10786
  className: "x78zum5 x6s0dn4 x17d4w8g x1xijbu4 xsag5q8",
10761
10787
  children: [
@@ -10764,7 +10790,7 @@ function mm({ rounds: e, current: t, previous: n, next: r, pages: i, page: a, on
10764
10790
  disabled: !n,
10765
10791
  type: "button",
10766
10792
  onClick: () => n && s(n),
10767
- ...U($p.ghost),
10793
+ ...U(em.ghost),
10768
10794
  children: /* @__PURE__ */ X(ar, { size: 20 })
10769
10795
  }),
10770
10796
  /* @__PURE__ */ Z("span", {
@@ -10801,7 +10827,7 @@ function mm({ rounds: e, current: t, previous: n, next: r, pages: i, page: a, on
10801
10827
  "data-progress": !0,
10802
10828
  className: "x78zum5 x1ed6fcf",
10803
10829
  children: p.map((e) => {
10804
- let n = pm(e, t, u);
10830
+ let n = mm(e, t, u);
10805
10831
  return /* @__PURE__ */ X("span", {
10806
10832
  "data-mark": n,
10807
10833
  ...{
@@ -10831,7 +10857,7 @@ function mm({ rounds: e, current: t, previous: n, next: r, pages: i, page: a, on
10831
10857
  disabled: !r,
10832
10858
  type: "button",
10833
10859
  onClick: () => r && s(r),
10834
- ...U($p.ghost),
10860
+ ...U(em.ghost),
10835
10861
  children: /* @__PURE__ */ X(or, { size: 20 })
10836
10862
  })
10837
10863
  ]
@@ -10878,19 +10904,19 @@ function mm({ rounds: e, current: t, previous: n, next: r, pages: i, page: a, on
10878
10904
  });
10879
10905
  }
10880
10906
  // src/viewer/layouts/PhoneArtboard.tsx
10881
- var hm = {
10907
+ var gm = {
10882
10908
  top: 16,
10883
10909
  right: 16,
10884
10910
  bottom: 94,
10885
10911
  left: 16
10886
- }, gm = 8, _m = /* @__PURE__ */ new Set(), vm = () => {}, ym = [];
10887
- function bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o, contentBase: s, boardPort: c, boardPath: l, versions: u, live: d, loaded: f, agent: p, agentSessions: m, comment: h, comments: g, actions: _ }) {
10888
- let { viewportRef: v, worldRef: y, overlayRef: b, view: x, viewNow: S, size: C, gesturing: w, fit: T, handlers: E } = ip("hand"), [D, O] = Y(null), [k, ee] = Y(78), [A, te] = Y(null), j = J(null), ne = G((e, t = !1) => e ? (O(e.id), T(e.bounds, hm, { animate: t }), !0) : !1, [T]), { page: M, changePage: re } = nf({
10912
+ }, _m = 8, vm = /* @__PURE__ */ new Set(), ym = () => {}, bm = [];
10913
+ function xm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o, contentBase: s, boardPort: c, boardPath: l, versions: u, live: d, loaded: f, agent: p, agentSessions: m, comment: h, comments: g, actions: _ }) {
10914
+ let { viewportRef: v, worldRef: y, overlayRef: b, view: x, viewNow: S, size: C, gesturing: w, fit: T, handlers: E } = ap("hand"), [D, O] = Y(null), [k, ee] = Y(78), [A, te] = Y(null), j = J(null), ne = G((e, t = !1) => e ? (O(e.id), T(e.bounds, gm, { animate: t }), !0) : !1, [T]), { page: M, changePage: re } = rf({
10889
10915
  canvas: n,
10890
10916
  layout: r,
10891
10917
  fitPage: G((e) => {
10892
10918
  let t = r?.pages[e];
10893
- return !n || !t ? !1 : (ne(um(cm(n, r, e), n.focus?.target)) || (O(null), t.bounds && T(t.bounds, hm)), !0);
10919
+ return !n || !t ? !1 : (ne(dm(lm(n, r, e), n.focus?.target)) || (O(null), t.bounds && T(t.bounds, gm)), !0);
10894
10920
  }, [
10895
10921
  n,
10896
10922
  r,
@@ -10898,13 +10924,13 @@ function bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o,
10898
10924
  ne
10899
10925
  ]),
10900
10926
  startAtFocus: !0
10901
- }), ie = q(() => n && r && M ? cm(n, r, M) : [], [
10927
+ }), ie = q(() => n && r && M ? lm(n, r, M) : [], [
10902
10928
  n,
10903
10929
  r,
10904
10930
  M
10905
- ]), ae = q(() => lm(ie), [ie]), oe = ae.find((e) => e.id === D) ?? null, se = (e) => {
10931
+ ]), ae = q(() => um(ie), [ie]), oe = ae.find((e) => e.id === D) ?? null, se = (e) => {
10906
10932
  ne(e, !0), ee(78);
10907
- }, N = n?.boards ?? {}, P = q(() => Object.entries(n?.boards ?? {}).filter(([, e]) => e.page === M), [n, M]), ce = Object.entries(n?.groups ?? {}).filter(([, e]) => e.boards.some((e) => N[e]?.page === M)), le = Object.entries(n?.notes ?? {}).filter(([, e]) => e.page === M), ue = q(() => new Set(o), [o]), F = yf({
10933
+ }, N = n?.boards ?? {}, P = q(() => Object.entries(n?.boards ?? {}).filter(([, e]) => e.page === M), [n, M]), ce = Object.entries(n?.groups ?? {}).filter(([, e]) => e.boards.some((e) => N[e]?.page === M)), le = Object.entries(n?.notes ?? {}).filter(([, e]) => e.page === M), ue = q(() => new Set(o), [o]), F = bf({
10908
10934
  contentBase: s,
10909
10935
  boardPort: c,
10910
10936
  boardPath: l
@@ -10912,25 +10938,25 @@ function bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o,
10912
10938
  F,
10913
10939
  ue,
10914
10940
  P
10915
- ]), fe = pf({
10941
+ ]), fe = mf({
10916
10942
  boards: P,
10917
10943
  versions: u,
10918
10944
  pending: de,
10919
10945
  view: x,
10920
10946
  viewport: C,
10921
- active: _m,
10947
+ active: vm,
10922
10948
  gesturing: w
10923
- }), I = Of(P, x, C), pe = q(() => new Set(g?.stale ?? []), [g]), me = dp({
10949
+ }), I = kf(P, x, C), pe = q(() => new Set(g?.stale ?? []), [g]), me = fp({
10924
10950
  canvas: n,
10925
10951
  page: M,
10926
- threads: g?.comments.threads ?? ym,
10952
+ threads: g?.comments.threads ?? bm,
10927
10953
  stale: pe,
10928
10954
  versions: u
10929
- }), L = Df({
10955
+ }), L = Of({
10930
10956
  canvas: n,
10931
10957
  layout: r,
10932
10958
  page: M,
10933
- threads: g?.comments.threads ?? ym,
10959
+ threads: g?.comments.threads ?? bm,
10934
10960
  listening: g?.listening === !0,
10935
10961
  comment: d === !1 ? void 0 : h
10936
10962
  }), he = Object.fromEntries(ae.flatMap((e) => {
@@ -10950,7 +10976,7 @@ function bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o,
10950
10976
  }, ve = (e) => {
10951
10977
  E.onPointerMove(e);
10952
10978
  let t = j.current;
10953
- t && (t.pointer !== e.pointerId || Math.hypot(e.clientX - t.x, e.clientY - t.y) > gm) && (j.current = null);
10979
+ t && (t.pointer !== e.pointerId || Math.hypot(e.clientX - t.x, e.clientY - t.y) > _m) && (j.current = null);
10954
10980
  }, ye = (e) => {
10955
10981
  E.onPointerUp(e);
10956
10982
  let t = j.current;
@@ -10994,7 +11020,7 @@ function bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o,
10994
11020
  boards: P,
10995
11021
  contentBase: s,
10996
11022
  culled: I,
10997
- frameLoaded: vm,
11023
+ frameLoaded: ym,
10998
11024
  frameRef: fe.frameRef,
10999
11025
  gesturing: w,
11000
11026
  images: fe.images,
@@ -11003,13 +11029,13 @@ function bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o,
11003
11029
  notes: le,
11004
11030
  pending: de,
11005
11031
  phases: fe.phases,
11006
- playing: _m,
11032
+ playing: vm,
11007
11033
  replays: {},
11008
11034
  versions: u,
11009
11035
  view: x,
11010
11036
  worldRef: y,
11011
11037
  writing: d ? n.writing : void 0
11012
- }), /* @__PURE__ */ X(Kd, {
11038
+ }), /* @__PURE__ */ X(qd, {
11013
11039
  allBoards: N,
11014
11040
  boards: P,
11015
11041
  choices: L.active ? L : void 0,
@@ -11017,7 +11043,7 @@ function bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o,
11017
11043
  groups: ce,
11018
11044
  overlayRef: b,
11019
11045
  pending: ue,
11020
- playing: _m,
11046
+ playing: vm,
11021
11047
  verdicts: me,
11022
11048
  versions: u,
11023
11049
  view: x,
@@ -11039,13 +11065,13 @@ function bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o,
11039
11065
  summary: L.current,
11040
11066
  onSubmit: L.submit,
11041
11067
  onWithdraw: L.withdraw
11042
- }), /* @__PURE__ */ X(mm, {
11068
+ }), /* @__PURE__ */ X(hm, {
11043
11069
  chose: he,
11044
11070
  current: oe,
11045
- next: D ? dm(ae, D, 1) : null,
11071
+ next: D ? fm(ae, D, 1) : null,
11046
11072
  page: M,
11047
11073
  pages: n?.pages ?? [],
11048
- previous: D ? dm(ae, D, -1) : null,
11074
+ previous: D ? fm(ae, D, -1) : null,
11049
11075
  rounds: ie,
11050
11076
  snap: k,
11051
11077
  verdicts: me.states,
@@ -11055,7 +11081,7 @@ function bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o,
11055
11081
  })]
11056
11082
  }) : null]
11057
11083
  }),
11058
- A && R ? /* @__PURE__ */ X(om, {
11084
+ A && R ? /* @__PURE__ */ X(sm, {
11059
11085
  board: R,
11060
11086
  choice: L.boardChoice(A),
11061
11087
  id: A,
@@ -11071,11 +11097,11 @@ function bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o,
11071
11097
  });
11072
11098
  }
11073
11099
  // src/viewer/layouts/ArtboardView.tsx
11074
- function xm(e) {
11075
- return j(Xe("(max-width: 640px)")) ? /* @__PURE__ */ X(bm, { ...e }) : /* @__PURE__ */ X(Sm, { ...e });
11100
+ function Sm(e) {
11101
+ return j(Xe("(max-width: 640px)")) ? /* @__PURE__ */ X(xm, { ...e }) : /* @__PURE__ */ X(Cm, { ...e });
11076
11102
  }
11077
- function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s, contentBase: c, backlinks: l, boardPort: u, boardPath: d, versions: f, live: p, loaded: m, send: h, agent: g, agentSessions: _, comments: v, comment: y, actions: b }) {
11078
- let [x, S] = Y("select"), { viewportRef: w, worldRef: T, overlayRef: E, view: D, viewNow: O, gesturing: k, size: A, fit: te, zoomBy: j, zoomTo: ne, cursor: M, hand: re, handlers: ie, panBy: ae, wheelAt: oe, panning: se, setSpaceHeld: N, place: P } = ip(x), [ce, le] = Y(!1), [ue] = Y(() => new URLSearchParams(location.search).has("debug")), [F, de] = Y("open"), fe = (e) => e && r?.pages[e]?.bounds || null, { page: I, changePage: pe } = nf({
11103
+ function Cm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s, contentBase: c, backlinks: l, boardPort: u, boardPath: d, versions: f, live: p, loaded: m, send: h, agent: g, agentSessions: _, comments: v, comment: y, actions: b }) {
11104
+ let [x, S] = Y("select"), { viewportRef: w, worldRef: T, overlayRef: E, view: D, viewNow: O, gesturing: k, size: A, fit: te, zoomBy: j, zoomTo: ne, cursor: M, hand: re, handlers: ie, panBy: ae, wheelAt: oe, panning: se, setSpaceHeld: N, place: P } = ap(x), [ce, le] = Y(!1), [ue] = Y(() => new URLSearchParams(location.search).has("debug")), [F, de] = Y("open"), fe = (e) => e && r?.pages[e]?.bounds || null, { page: I, changePage: pe } = rf({
11079
11105
  canvas: n,
11080
11106
  layout: r,
11081
11107
  fitPage: G((e) => {
@@ -11083,14 +11109,14 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11083
11109
  return t ? (te(t), !0) : !1;
11084
11110
  }, [r, te])
11085
11111
  });
11086
- tf({
11112
+ nf({
11087
11113
  canvas: n,
11088
11114
  page: I,
11089
11115
  changePage: pe,
11090
11116
  viewNow: O,
11091
11117
  place: P
11092
11118
  });
11093
- let [L, he] = Y(null), [ge, _e] = Y(() => /* @__PURE__ */ new Set()), [ve, ye] = Y({}), R = wf(e), [z, be] = Y(null), xe = J(null);
11119
+ let [L, he] = Y(null), [ge, _e] = Y(() => /* @__PURE__ */ new Set()), [ve, ye] = Y({}), R = Tf(e), [z, be] = Y(null), xe = J(null);
11094
11120
  K(() => be(null), [I, e]);
11095
11121
  let Se = () => {
11096
11122
  be(null), xe.current?.focus();
@@ -11098,14 +11124,14 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11098
11124
  xe.current = t;
11099
11125
  let r = n?.boards[e], i = w.current;
11100
11126
  if (z !== e && !L && r && i) {
11101
- let e = Jp(r, O(), {
11127
+ let e = Yp(r, O(), {
11102
11128
  width: i.clientWidth,
11103
11129
  height: i.clientHeight
11104
11130
  });
11105
11131
  (e.x || e.y) && ae(e.x, e.y);
11106
11132
  }
11107
11133
  be((t) => t === e ? null : e);
11108
- }, we = x === "select" && !L && !se, Te = x === "comment", B = Gf({
11134
+ }, we = x === "select" && !L && !se, Te = x === "comment", B = Kf({
11109
11135
  enabled: !L && (x === "select" || Te || ce),
11110
11136
  mode: Te ? "comment" : "select",
11111
11137
  playing: ge,
@@ -11126,32 +11152,32 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11126
11152
  }
11127
11153
  }
11128
11154
  });
11129
- up({
11155
+ dp({
11130
11156
  artifact: t,
11131
11157
  boards: n?.boards,
11132
11158
  live: p,
11133
11159
  inspector: B,
11134
11160
  send: h
11135
11161
  });
11136
- let V = rf({
11162
+ let V = af({
11137
11163
  comments: v,
11138
11164
  comment: y,
11139
11165
  page: I,
11140
11166
  boards: n?.boards ?? {},
11141
11167
  inspector: B
11142
- }), Ee = dp({
11168
+ }), Ee = fp({
11143
11169
  canvas: n,
11144
11170
  page: I,
11145
11171
  threads: V.threads,
11146
11172
  stale: V.stale,
11147
11173
  versions: f,
11148
11174
  comment: y
11149
- }), De = Ff({
11175
+ }), De = If({
11150
11176
  canvas: n,
11151
11177
  pending: new Set(s),
11152
11178
  threads: V.threads,
11153
11179
  versions: f
11154
- }), Oe = Df({
11180
+ }), Oe = Of({
11155
11181
  canvas: n,
11156
11182
  layout: r,
11157
11183
  page: I,
@@ -11160,7 +11186,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11160
11186
  comment: p === !1 ? void 0 : y
11161
11187
  }), ke = Ee.rejecting ? Ee.origin(Ee.rejecting) : null, Ae = (e) => {
11162
11188
  (e !== "comment" || y) && (e === "comment" && x === "select" && V.commentSelection(), e === "comment" && le(!1), e !== "comment" && V.close(), S(e));
11163
- }, je = Jd({
11189
+ }, je = Yd({
11164
11190
  commentTool: x === "comment",
11165
11191
  inspectorOpen: ce,
11166
11192
  hasVerify: Ee.progress.total > 0,
@@ -11169,19 +11195,19 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11169
11195
  x === "comment" && Ae("select"), le(e === "inspector");
11170
11196
  }
11171
11197
  }), Me = me(n?.groups ?? {}, n?.boards ?? {}, I).map(([e]) => e), Ne = q(() => [...V.stale], [V.stale]);
11172
- Ep({
11198
+ Dp({
11173
11199
  canvas: n,
11174
11200
  layout: r,
11175
11201
  fit: (e) => te(e),
11176
11202
  threads: V.threads,
11177
11203
  stale: Ne
11178
11204
  });
11179
- let Pe = Tf({
11205
+ let Pe = Ef({
11180
11206
  canvas: n,
11181
11207
  order: Me,
11182
11208
  states: Ee.states,
11183
11209
  updates: De.groups,
11184
- frame: (e) => te(e, je.tab ? Xd : void 0)
11210
+ frame: (e) => te(e, je.tab ? Zd : void 0)
11185
11211
  }), Fe = (e) => {
11186
11212
  let t = V.threads.find((t) => t.id === e), r = t && ua(t.anchor, n?.boards ?? {}), i = w.current, a = O();
11187
11213
  r && i && ae((i.clientWidth - (je.tab ? 390 : 0)) / 2 - (a.x + r.x * a.k), i.clientHeight / 2 - (a.y + r.y * a.k)), V.setOpenId(e);
@@ -11208,15 +11234,15 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11208
11234
  let Ve = n?.boards ?? {}, He = q(() => Object.entries(n?.boards ?? {}).filter(([, e]) => e.page === I), [n, I]), Ue = Object.entries(n?.groups ?? {}).filter(([, e]) => e.boards.some((e) => Ve[e]?.page === I)), We = Object.entries(n?.notes ?? {}).filter(([, e]) => e.page === I), Ge = q(() => Object.fromEntries(Object.entries(n?.notes ?? {}).flatMap(([e, t]) => n && t.kind === "title" ? [[e, o(n, e)]] : [])), [n]), Ke = L ? Ve[L] : void 0, qe = Object.fromEntries(Object.entries(R.states).flatMap(([e, t]) => {
11209
11235
  let n = Object.keys(t.schema?.controls ?? {}).length, r = Object.entries(t.schema?.controls ?? {}).some(([e, n]) => t.values[e] !== n.default);
11210
11236
  return n || t.error ? [[e, r]] : [];
11211
- })), Je = z ? R.states[z] : void 0, Ye = z ? Ve[z] : void 0, Xe = (e) => z && Je && Ye && (Je.schema || Je.error) ? /* @__PURE__ */ X(Zp, {
11212
- anchor: e ? qp(Ye, D) : void 0,
11237
+ })), Je = z ? R.states[z] : void 0, Ye = z ? Ve[z] : void 0, Xe = (e) => z && Je && Ye && (Je.schema || Je.error) ? /* @__PURE__ */ X(Qp, {
11238
+ anchor: e ? Jp(Ye, D) : void 0,
11213
11239
  boardId: z,
11214
11240
  state: Je,
11215
11241
  title: Ye.title ?? z,
11216
11242
  onChange: (e, t) => R.change(z, e, t),
11217
11243
  onClose: Se,
11218
11244
  onReset: () => R.reset(z)
11219
- }) : null, Ze = Ke ? (f[Ke.file] ?? 0) > 0 && !Le.has(L) : !1, Qe = Kf(He, B, D.k, [
11245
+ }) : null, Ze = Ke ? (f[Ke.file] ?? 0) > 0 && !Le.has(L) : !1, Qe = qf(He, B, D.k, [
11220
11246
  x,
11221
11247
  L,
11222
11248
  I,
@@ -11241,7 +11267,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11241
11267
  B.frames,
11242
11268
  et,
11243
11269
  He
11244
- ]), nt = yf({
11270
+ ]), nt = bf({
11245
11271
  contentBase: c,
11246
11272
  boardPort: u,
11247
11273
  boardPath: d
@@ -11249,7 +11275,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11249
11275
  nt,
11250
11276
  Le,
11251
11277
  He
11252
- ]), it = pf({
11278
+ ]), it = mf({
11253
11279
  boards: He,
11254
11280
  versions: f,
11255
11281
  pending: rt,
@@ -11257,7 +11283,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11257
11283
  viewport: A,
11258
11284
  active: tt,
11259
11285
  gesturing: k
11260
- }), at = Of(He, D, A), ot = q(() => {
11286
+ }), at = kf(He, D, A), ot = q(() => {
11261
11287
  let e = /* @__PURE__ */ new Map();
11262
11288
  return (t) => (e.has(t) || e.set(t, (e) => {
11263
11289
  R.refFor(t)(e), B.refFor(t)(e), it.frameRef(t)(e);
@@ -11340,7 +11366,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11340
11366
  writing: p ? n.writing : void 0,
11341
11367
  onExpand: he
11342
11368
  }),
11343
- /* @__PURE__ */ X(Kd, {
11369
+ /* @__PURE__ */ X(qd, {
11344
11370
  activeParameters: z,
11345
11371
  allBoards: Ve,
11346
11372
  artboard: e,
@@ -11368,7 +11394,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11368
11394
  Ee.rejecting && ke && /* @__PURE__ */ X("div", {
11369
11395
  ref: E,
11370
11396
  className: "x10l6tqk xu96u03 x13vifvy xnalus7 xqtp20y xk3oba8",
11371
- children: /* @__PURE__ */ X(Qp, {
11397
+ children: /* @__PURE__ */ X($p, {
11372
11398
  group: Ee.rejecting,
11373
11399
  left: D.x + ke.x * D.k,
11374
11400
  top: D.y + ke.y * D.k + 8,
@@ -11400,12 +11426,12 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11400
11426
  /* @__PURE__ */ Z("div", {
11401
11427
  ref: E,
11402
11428
  className: "x10l6tqk xu96u03 x13vifvy xnalus7 xqtp20y",
11403
- children: [(we || Te) && !Qe.marquee && B.hover && Ve[B.hover.boardId] && /* @__PURE__ */ X(fp, {
11429
+ children: [(we || Te) && !Qe.marquee && B.hover && Ve[B.hover.boardId] && /* @__PURE__ */ X(pp, {
11404
11430
  board: Ve[B.hover.boardId],
11405
11431
  rect: B.hover.rect,
11406
11432
  view: D,
11407
11433
  nodeId: B.hover.id ? `${B.hover.boardId}#${B.hover.id}` : void 0
11408
- }), !L && B.targets.map((e) => Ve[e.boardId] && /* @__PURE__ */ X(fp, {
11434
+ }), !L && B.targets.map((e) => Ve[e.boardId] && /* @__PURE__ */ X(pp, {
11409
11435
  selected: !0,
11410
11436
  board: Ve[e.boardId],
11411
11437
  name: e.name,
@@ -11441,7 +11467,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11441
11467
  onSubmit: Oe.submit,
11442
11468
  onWithdraw: Oe.withdraw
11443
11469
  }),
11444
- /* @__PURE__ */ X($d, {
11470
+ /* @__PURE__ */ X(ef, {
11445
11471
  commenting: !!y,
11446
11472
  page: I,
11447
11473
  pages: ze,
@@ -11449,7 +11475,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11449
11475
  onPageChange: pe,
11450
11476
  onToolChange: Ae
11451
11477
  }),
11452
- /* @__PURE__ */ X(ef, {
11478
+ /* @__PURE__ */ X(tf, {
11453
11479
  actions: b,
11454
11480
  inspectorOpen: ce,
11455
11481
  live: p,
@@ -11464,7 +11490,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11464
11490
  onZoomIn: () => j(1.25),
11465
11491
  onZoomOut: () => j(.8)
11466
11492
  }),
11467
- /* @__PURE__ */ X(Zd, {
11493
+ /* @__PURE__ */ X(Qd, {
11468
11494
  available: A.height,
11469
11495
  pinned: je.pinned,
11470
11496
  tab: je.tab,
@@ -11492,7 +11518,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11492
11518
  onOpen: Fe,
11493
11519
  onTab: de
11494
11520
  }),
11495
- inspector: /* @__PURE__ */ X(wp, {
11521
+ inspector: /* @__PURE__ */ X(Tp, {
11496
11522
  embedded: !0,
11497
11523
  boards: He,
11498
11524
  change: B.change,
@@ -11542,7 +11568,7 @@ function Sm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11542
11568
  });
11543
11569
  }
11544
11570
  // src/viewer/hooks/useHtmlData.ts
11545
- function Cm(e, { live: t, revision: n, load: r, send: i }) {
11571
+ function wm(e, { live: t, revision: n, load: r, send: i }) {
11546
11572
  let [a, o] = Y(null);
11547
11573
  return K(() => {
11548
11574
  let t = !1;
@@ -11570,8 +11596,8 @@ function Cm(e, { live: t, revision: n, load: r, send: i }) {
11570
11596
  };
11571
11597
  }
11572
11598
  // src/viewer/layouts/HtmlView.tsx
11573
- function wm({ id: e, feed: t, actions: n }) {
11574
- let { data: r, send: i } = Cm(e, t);
11599
+ function Tm({ id: e, feed: t, actions: n }) {
11600
+ let { data: r, send: i } = wm(e, t);
11575
11601
  K(() => {
11576
11602
  document.title = r?.title || e;
11577
11603
  }, [r?.title, e]), Qt("html");
@@ -11611,23 +11637,23 @@ function wm({ id: e, feed: t, actions: n }) {
11611
11637
  });
11612
11638
  }
11613
11639
  // src/viewer/lib/artifact-list.ts
11614
- function Tm(e, t = Date.now()) {
11640
+ function Em(e, t = Date.now()) {
11615
11641
  let n = new Intl.RelativeTimeFormat(jt.language, { numeric: "always" }), r = Math.floor(Math.max(0, t - e) / 6e4);
11616
11642
  return r === 0 ? jt.t("time.justNow") : r < 60 ? n.format(-r, "minute") : r < 1440 ? n.format(-Math.floor(r / 60), "hour") : n.format(-Math.floor(r / 1440), "day");
11617
11643
  }
11618
11644
  // src/viewer/lib/error-text.ts
11619
- function Em(e, t) {
11645
+ function Dm(e, t) {
11620
11646
  return typeof e == "string" && jt.exists(`errors.${e}`) ? jt.t(`errors.${e}`) : t;
11621
11647
  }
11622
- var Dm = (e) => typeof e == "object" && !!e && gt.includes(e.kind) && typeof e.max == "number";
11623
- function Om({ kind: t, max: n }) {
11648
+ var Om = (e) => typeof e == "object" && !!e && gt.includes(e.kind) && typeof e.max == "number";
11649
+ function km({ kind: t, max: n }) {
11624
11650
  return jt.t(`planLimit.${t}`, { max: t === "storage" ? e(n) : n });
11625
11651
  }
11626
- function km(e, t) {
11627
- return e.code === "plan_limit" && Dm(e.limit) ? Om(e.limit) : Em(e.code, typeof e.error == "string" ? e.error : t);
11652
+ function Am(e, t) {
11653
+ return e.code === "plan_limit" && Om(e.limit) ? km(e.limit) : Dm(e.code, typeof e.error == "string" ? e.error : t);
11628
11654
  }
11629
11655
  // src/viewer/lib/version.ts
11630
- var Am = "1.68.0", jm = {
11656
+ var jm = "1.68.2", Mm = {
11631
11657
  path: (e, t) => `/a/${t}`,
11632
11658
  refId: (e) => e.to,
11633
11659
  frameSrc: (e, t) => `/a/${t}/view`,
@@ -11635,7 +11661,7 @@ var Am = "1.68.0", jm = {
11635
11661
  aloneHref: (e, t) => `/a/${t}`
11636
11662
  };
11637
11663
  // src/viewer/split/SplitNotice.tsx
11638
- function Mm({ bar: e, onStep: t }) {
11664
+ function Nm({ bar: e, onStep: t }) {
11639
11665
  let { t: n } = vt();
11640
11666
  return e ? e.kind === "notice" ? /* @__PURE__ */ Z("div", {
11641
11667
  "data-split-notice": !0,
@@ -11679,7 +11705,7 @@ function Mm({ bar: e, onStep: t }) {
11679
11705
  }) : null;
11680
11706
  }
11681
11707
  // src/viewer/split/useDocumentHeader.ts
11682
- function Nm(e) {
11708
+ function Pm(e) {
11683
11709
  let [t, n] = Y(null), r = J(null), i = J(e);
11684
11710
  return i.current = e, K(() => ue((e, t) => {
11685
11711
  let a = i.current();
@@ -11709,10 +11735,10 @@ function Nm(e) {
11709
11735
  };
11710
11736
  }
11711
11737
  // src/viewer/split/usePaneStage.ts
11712
- var Pm = 280, Fm = 2500, Im = 5e3, Lm = (e) => requestAnimationFrame(() => requestAnimationFrame(e));
11713
- function Rm(e, t) {
11738
+ var Fm = 280, Im = 2500, Lm = 5e3, Rm = (e) => requestAnimationFrame(() => requestAnimationFrame(e));
11739
+ function zm(e, t) {
11714
11740
  let n = document.documentElement, r = {
11715
- duration: Pm,
11741
+ duration: Fm,
11716
11742
  fill: "both"
11717
11743
  };
11718
11744
  n.animate([{
@@ -11740,7 +11766,7 @@ function Rm(e, t) {
11740
11766
  pseudoElement: `::view-transition-group(${e})`
11741
11767
  });
11742
11768
  }
11743
- function zm({ apply: e, section: t, animate: n }) {
11769
+ function Bm({ apply: e, section: t, animate: n }) {
11744
11770
  let [r, i] = Y(null), a = J(r), o = J(null), s = J(void 0), c = J({
11745
11771
  apply: e,
11746
11772
  section: t,
@@ -11763,11 +11789,11 @@ function zm({ apply: e, section: t, animate: n }) {
11763
11789
  let o = document.startViewTransition(t), l = () => {
11764
11790
  n && (n.style.viewTransitionName = "");
11765
11791
  };
11766
- o.ready.then(() => Rm(r, e.enter), l), o.finished.then(l, l);
11792
+ o.ready.then(() => zm(r, e.enter), l), o.finished.then(l, l);
11767
11793
  }, u = J(l);
11768
11794
  return u.current = l, K(() => {
11769
11795
  if (!r) return;
11770
- let e = setTimeout(() => u.current(r), Im), t = ue((e, t) => {
11796
+ let e = setTimeout(() => u.current(r), Lm), t = ue((e, t) => {
11771
11797
  e.kind === "painted" && t && t === o.current?.contentWindow && u.current(r);
11772
11798
  });
11773
11799
  return () => {
@@ -11784,16 +11810,16 @@ function zm({ apply: e, section: t, animate: n }) {
11784
11810
  },
11785
11811
  loaded: () => {
11786
11812
  let e = a.current;
11787
- e && (e.pane.type === "html" ? Lm(() => u.current(e)) : s.current = setTimeout(() => u.current(e), Fm));
11813
+ e && (e.pane.type === "html" ? Rm(() => u.current(e)) : s.current = setTimeout(() => u.current(e), Im));
11788
11814
  }
11789
11815
  };
11790
11816
  }
11791
11817
  // src/viewer/split/useSplitRoles.ts
11792
- var Bm = ["main", "side"], Vm = (e) => e === "main" ? "side" : "main", Hm = ({ type: e, id: t }) => ({
11818
+ var Vm = ["main", "side"], Hm = (e) => e === "main" ? "side" : "main", Um = ({ type: e, id: t }) => ({
11793
11819
  type: e,
11794
11820
  id: t
11795
11821
  });
11796
- function Um(e, t) {
11822
+ function Wm(e, t) {
11797
11823
  let n = J(null), r = J(/* @__PURE__ */ new WeakSet()), i = J(""), a = J(t);
11798
11824
  a.current = t;
11799
11825
  let o = J(e);
@@ -11801,16 +11827,16 @@ function Um(e, t) {
11801
11827
  let s = (e) => {
11802
11828
  let t = n.current, i = o.current(e);
11803
11829
  if (!t || !i || !r.current.has(i)) return;
11804
- let a = t.panes[Vm(e)];
11830
+ let a = t.panes[Hm(e)];
11805
11831
  lt(i, {
11806
11832
  kind: "split-role",
11807
11833
  role: e === t.primary ? "primary" : "beside",
11808
- other: t.open && a.id ? Hm(a) : null
11834
+ other: t.open && a.id ? Um(a) : null
11809
11835
  });
11810
11836
  };
11811
11837
  return K(() => ue((e, t) => {
11812
11838
  if (e.kind !== "want-role") return;
11813
- let n = Bm.find((e) => o.current(e) === t);
11839
+ let n = Vm.find((e) => o.current(e) === t);
11814
11840
  n && t && (r.current.add(t), s(n));
11815
11841
  }), []), (e, t, r) => {
11816
11842
  n.current = {
@@ -11818,17 +11844,17 @@ function Um(e, t) {
11818
11844
  primary: t,
11819
11845
  open: r
11820
11846
  };
11821
- for (let e of Bm) (r || e === t) && s(e);
11822
- let o = e[Vm(t)], c = {
11823
- primary: Hm(e[t]),
11824
- beside: r && o.id ? Hm(o) : null
11847
+ for (let e of Vm) (r || e === t) && s(e);
11848
+ let o = e[Hm(t)], c = {
11849
+ primary: Um(e[t]),
11850
+ beside: r && o.id ? Um(o) : null
11825
11851
  }, l = JSON.stringify(c);
11826
11852
  l !== i.current && (i.current = l, a.current?.(c));
11827
11853
  };
11828
11854
  }
11829
11855
  // src/viewer/split/useSplitRouting.ts
11830
- var Wm = ["main", "side"], Gm = (e) => e === "main" ? "side" : "main";
11831
- function Km({ artboard: e, side: t, document: n, panes: r, slotOfType: i, focus: a, host: o, show: s, navigate: c, replace: l }) {
11856
+ var Gm = ["main", "side"], Km = (e) => e === "main" ? "side" : "main";
11857
+ function qm({ artboard: e, side: t, document: n, panes: r, slotOfType: i, focus: a, host: o, show: s, navigate: c, replace: l }) {
11832
11858
  let u = J({
11833
11859
  main: null,
11834
11860
  side: null
@@ -11911,25 +11937,25 @@ function Km({ artboard: e, side: t, document: n, panes: r, slotOfType: i, focus:
11911
11937
  }
11912
11938
  };
11913
11939
  return K(() => ue((e, t) => {
11914
- let n = Wm.find((e) => u.current[e]?.contentWindow === t);
11940
+ let n = Gm.find((e) => u.current[e]?.contentWindow === t);
11915
11941
  if (!n) return;
11916
11942
  let r = d.current, i = r[n].type, s = !!p.current.artboard && !!p.current.document;
11917
11943
  if (e.kind === "ref-open") {
11918
- let t = r[Gm(n)], a = o.refId(e.target), c = Ke(e.target);
11944
+ let t = r[Km(n)], a = o.refId(e.target), c = Ke(e.target);
11919
11945
  if (!a) return;
11920
11946
  let l = r[n];
11921
11947
  if (l.id === a && l.type === c) return;
11922
11948
  let u = t.id === a && t.type === c;
11923
11949
  if (!(s && i === "document" && Ae(c) && (n === "main" || u))) {
11924
11950
  if (u) return;
11925
- h(null), v.current(Gm(n), {
11951
+ h(null), v.current(Km(n), {
11926
11952
  type: c,
11927
11953
  id: a
11928
11954
  }, _e(e.target));
11929
11955
  return;
11930
11956
  }
11931
11957
  }
11932
- if (s) {
11958
+ if (s || e.kind === "open-doc") {
11933
11959
  if (e.kind === "ready") {
11934
11960
  if (!p.current.artboard || !p.current.document) return;
11935
11961
  let e = u.current[n]?.contentWindow;
@@ -11951,38 +11977,38 @@ function Km({ artboard: e, side: t, document: n, panes: r, slotOfType: i, focus:
11951
11977
  };
11952
11978
  }
11953
11979
  // src/viewer/split/SplitShell.tsx
11954
- var qm = ["main", "side"], Jm = "ryugiSplitPanes", Ym = (e, t) => e.type === t.type && e.id === t.id, Xm = (e) => {
11955
- let t = qm.find((t) => Ae(e[t].type) && e[Zm(t)].type === "document");
11980
+ var Jm = ["main", "side"], Ym = "ryugiSplitPanes", Xm = (e, t) => e.type === t.type && e.id === t.id, Zm = (e) => {
11981
+ let t = Jm.find((t) => Ae(e[t].type) && e[Qm(t)].type === "document");
11956
11982
  return {
11957
11983
  boardSlot: t,
11958
- docSlot: t ? Zm(t) : qm.find((t) => e[t].type === "document") ?? null,
11959
- slotOfType: (t) => qm.find((n) => e[n].type === t)
11984
+ docSlot: t ? Qm(t) : Jm.find((t) => e[t].type === "document") ?? null,
11985
+ slotOfType: (t) => Jm.find((n) => e[n].type === t)
11960
11986
  };
11961
- }, Zm = (e) => e === "main" ? "side" : "main", Qm = {
11987
+ }, Qm = (e) => e === "main" ? "side" : "main", $m = {
11962
11988
  document: Sr,
11963
11989
  artboard: jr,
11964
11990
  whiteboard: Vr,
11965
11991
  html: pr
11966
- }, $m = (e, t) => {
11992
+ }, eh = (e, t) => {
11967
11993
  let n = t?.kind;
11968
11994
  return e === "document" ? n ?? "artboard" : n === "document" || n === "html" ? n : "document";
11969
- }, eh = .25, th = .75, nh = {
11995
+ }, th = .25, nh = .75, rh = {
11970
11996
  position: "absolute",
11971
11997
  visibility: "hidden"
11972
- }, rh = 240, ih = 180, ah = 320, oh = [{
11998
+ }, ih = 240, ah = 180, oh = 320, sh = [{
11973
11999
  opacity: 0,
11974
12000
  transform: "translateX(48px)"
11975
12001
  }, {
11976
12002
  opacity: 1,
11977
12003
  transform: "none"
11978
- }], sh = [{
12004
+ }], ch = [{
11979
12005
  opacity: 1,
11980
12006
  transform: "none"
11981
12007
  }, {
11982
12008
  opacity: 0,
11983
12009
  transform: "translateX(48px)"
11984
- }], ch = [{ transform: "translateX(100%)" }, { transform: "none" }], lh = [{ transform: "none" }, { transform: "translateX(100%)" }];
11985
- function uh(e, t) {
12010
+ }], lh = [{ transform: "translateX(100%)" }, { transform: "none" }], uh = [{ transform: "none" }, { transform: "translateX(100%)" }];
12011
+ function dh(e, t) {
11986
12012
  let [n, r] = Y(null);
11987
12013
  return K(() => {
11988
12014
  if (!t || !e.title) return;
@@ -11997,11 +12023,11 @@ function uh(e, t) {
11997
12023
  };
11998
12024
  }, [e, t]), n?.id === t ? n.text : t;
11999
12025
  }
12000
- function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12026
+ function fh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12001
12027
  let { t: o } = vt(), s = Xe(xe), [c, l] = Y(n?.with ?? ""), [u] = Y(() => ({
12002
12028
  type: e,
12003
12029
  id: t
12004
- })), [d, f] = Y(u), [p, m] = Y(() => $m(d.type, n)), h = {
12030
+ })), [d, f] = Y(u), [p, m] = Y(() => eh(d.type, n)), h = {
12005
12031
  main: d,
12006
12032
  side: {
12007
12033
  type: p,
@@ -12009,12 +12035,12 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12009
12035
  }
12010
12036
  }, g = J(h);
12011
12037
  g.current = h;
12012
- let { docSlot: _ } = Xm(h), v = J(s);
12038
+ let { docSlot: _ } = Zm(h), v = J(s);
12013
12039
  v.current = s;
12014
12040
  let y = J({
12015
12041
  main: null,
12016
12042
  side: null
12017
- }), b = zm({
12043
+ }), b = Bm({
12018
12044
  animate: () => !v.current,
12019
12045
  section: (e) => y.current[e],
12020
12046
  apply: (e) => {
@@ -12026,17 +12052,17 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12026
12052
  }), x = b.incoming ? {
12027
12053
  ...h,
12028
12054
  [b.incoming.slot]: b.incoming.pane
12029
- } : h, { boardSlot: S, slotOfType: C } = Xm(x), w = J(C);
12055
+ } : h, { boardSlot: S, slotOfType: C } = Zm(x), w = J(C);
12030
12056
  w.current = C;
12031
12057
  let T = J({
12032
12058
  group: n?.group,
12033
12059
  board: n?.board,
12034
12060
  frame: n?.frame,
12035
12061
  page: n?.page
12036
- }).current, E = J("main"), [D, O] = Y("main"), [k, ee] = Y(!!n), [A, te] = Y("side"), [j, ne] = Y(.58), [M, re] = Y(!1), ie = J(null), ae = J(0), se = J(0), N = J(null), ce = J(k), le = J([]), F = J({}), de = J(null), fe = J(!1), I = Km({
12062
+ }).current, E = J("main"), [D, O] = Y("main"), [k, ee] = Y(!!n), [A, te] = Y("side"), [j, ne] = Y(.58), [M, re] = Y(!1), ie = J(null), ae = J(0), se = J(0), N = J(null), ce = J(k), le = J([]), F = J({}), de = J(null), fe = J(!1), I = qm({
12037
12063
  artboard: S ? x[S].id : "",
12038
12064
  side: S ? x[S].type : "artboard",
12039
- document: S ? x[Zm(S)].id : "",
12065
+ document: S ? x[Qm(S)].id : "",
12040
12066
  panes: x,
12041
12067
  slotOfType: C,
12042
12068
  focus: T,
@@ -12049,7 +12075,7 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12049
12075
  t.pathname !== a || !n || E.current !== "main" ? location.assign(e) : (_e(), ye(n), ve({
12050
12076
  ...h,
12051
12077
  side: {
12052
- type: $m(d.type, n),
12078
+ type: eh(d.type, n),
12053
12079
  id: n.with
12054
12080
  }
12055
12081
  }, pe("side")));
@@ -12068,7 +12094,7 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12068
12094
  }, pe(e)), me(e, t, pe(e));
12069
12095
  }
12070
12096
  }), pe = (e) => e === E.current ? 1 : -1, me = (e, t, n) => {
12071
- k && h[e].id && !Ym(h[e], t) ? b.stage({
12097
+ k && h[e].id && !Xm(h[e], t) ? b.stage({
12072
12098
  slot: e,
12073
12099
  pane: t,
12074
12100
  enter: n
@@ -12088,16 +12114,16 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12088
12114
  enter: r
12089
12115
  }), _e = () => {
12090
12116
  let e = history.state;
12091
- e?.[Jm] || (ae.current = 0, se.current = 0, history.replaceState({
12117
+ e?.[Ym] || (ae.current = 0, se.current = 0, history.replaceState({
12092
12118
  ...e,
12093
- [Jm]: ge(h, k, 0, 0)
12119
+ [Ym]: ge(h, k, 0, 0)
12094
12120
  }, ""));
12095
12121
  }, ve = (e, t) => {
12096
12122
  ae.current += 1, se.current = t;
12097
- let n = e[E.current], i = e[Zm(E.current)], a = h[E.current], o = n.type === a.type && n.id === a.id ? location.pathname : r.path(n.type, n.id);
12123
+ let n = e[E.current], i = e[Qm(E.current)], a = h[E.current], o = n.type === a.type && n.id === a.id ? location.pathname : r.path(n.type, n.id);
12098
12124
  history.pushState({
12099
12125
  ...history.state,
12100
- [Jm]: ge(e, !0, ae.current, t)
12126
+ [Ym]: ge(e, !0, ae.current, t)
12101
12127
  }, "", `${o}${P(location.search, Ue(i.id, i.type, T, n.type))}`);
12102
12128
  }, ye = (e) => {
12103
12129
  Object.assign(T, {
@@ -12105,7 +12131,7 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12105
12131
  board: e.board,
12106
12132
  frame: e.frame,
12107
12133
  page: e.page
12108
- }), m($m(d.type, e)), l(e.with), ee(!0), te("side");
12134
+ }), m(eh(d.type, e)), l(e.with), ee(!0), te("side");
12109
12135
  }, R = J(ye);
12110
12136
  R.current = ye;
12111
12137
  let z = J(() => {});
@@ -12115,11 +12141,11 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12115
12141
  let be = J(he);
12116
12142
  be.current = he, K(() => {
12117
12143
  let e = () => {
12118
- let e = history.state?.[Jm];
12144
+ let e = history.state?.[Ym];
12119
12145
  if (e) {
12120
12146
  let t = e.seq < ae.current ? -se.current : e.enter;
12121
12147
  ae.current = e.seq, se.current = e.enter, Object.assign(T, e.focus);
12122
- let n = qm.filter((t) => !Ym(e[t], g.current[t]));
12148
+ let n = Jm.filter((t) => !Xm(e[t], g.current[t]));
12123
12149
  if (e.open && n.length === 1) {
12124
12150
  L.current(n[0], e[n[0]], t || 1);
12125
12151
  return;
@@ -12138,15 +12164,15 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12138
12164
  u,
12139
12165
  T
12140
12166
  ]);
12141
- let Se = uh(r, c), Ce = Nm(() => _ ? I.window(_) : null), Te = Um((e) => I.window(e), a), V = () => {
12167
+ let Se = dh(r, c), Ce = Pm(() => _ ? I.window(_) : null), Te = Wm((e) => I.window(e), a), V = () => {
12142
12168
  let e = E.current, t = k ? s ? A : null : e;
12143
- for (let n of qm) {
12169
+ for (let n of Jm) {
12144
12170
  let r = y.current[n];
12145
12171
  if (!r) continue;
12146
12172
  let i = n === e ? "primary" : "secondary";
12147
12173
  r.dataset.role = i, r.style.order = i === "primary" ? "0" : "2", r.style.flex = !k || s ? "1 1 auto" : i === "primary" ? `0 0 ${j * 100}%` : "1 1 0";
12148
12174
  let a = t !== null && t !== n;
12149
- r.style.position = a ? nh.position : "", r.style.inset = a ? "0" : "", r.style.visibility = a ? nh.visibility : "";
12175
+ r.style.position = a ? rh.position : "", r.style.inset = a ? "0" : "", r.style.visibility = a ? rh.visibility : "";
12150
12176
  let o = r.querySelector(":scope > header");
12151
12177
  o && (o.style.display = i === "primary" ? "none" : "");
12152
12178
  }
@@ -12168,24 +12194,24 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12168
12194
  kind: "chrome",
12169
12195
  hosted: fe.current
12170
12196
  }), e.kind !== "title") return;
12171
- let r = qm.find((e) => I.window(e) === t);
12197
+ let r = Jm.find((e) => I.window(e) === t);
12172
12198
  r && (F.current[r] = e.title, r === E.current && (document.title = e.title));
12173
12199
  }), []), Sn(() => {
12174
12200
  for (let e of le.current.splice(0)) e.cancel();
12175
12201
  let e = V(), t = ce.current, n = N.current;
12176
12202
  if (ce.current = k, N.current = e, ot()) return;
12177
- let r = y.current[Zm(E.current)];
12178
- if (k && !t && !s) et(r, oh, {
12179
- duration: rh,
12203
+ let r = y.current[Qm(E.current)];
12204
+ if (k && !t && !s) et(r, sh, {
12205
+ duration: ih,
12180
12206
  easing: B
12181
12207
  }), et(y.current[E.current], [{ flexBasis: "100%" }, { flexBasis: `${j * 100}%` }], {
12182
- duration: rh,
12208
+ duration: ih,
12183
12209
  easing: B
12184
12210
  });
12185
12211
  else if (s && e && n && e !== n && e !== E.current) {
12186
12212
  let t = y.current[n];
12187
- t && (t.style.visibility = ""), et(y.current[e], ch, {
12188
- duration: rh,
12213
+ t && (t.style.visibility = ""), et(y.current[e], lh, {
12214
+ duration: ih,
12189
12215
  easing: B
12190
12216
  }).then(() => {
12191
12217
  t && N.current !== n && (t.style.visibility = "hidden");
@@ -12193,37 +12219,37 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12193
12219
  }
12194
12220
  });
12195
12221
  let Ee = (e, t) => {
12196
- let n = h[Zm(e)], i = P(location.search, t ? Ue(n.id, n.type, T, h[e].type) : null);
12222
+ let n = h[Qm(e)], i = P(location.search, t ? Ue(n.id, n.type, T, h[e].type) : null);
12197
12223
  history.replaceState(history.state, "", `${r.path(h[e].type, h[e].id)}${i}`);
12198
12224
  }, De = async (e, t, n) => {
12199
12225
  if (!e || ot()) return n();
12200
12226
  let r = e.animate(t, {
12201
- duration: ih,
12227
+ duration: ah,
12202
12228
  easing: we,
12203
12229
  fill: "forwards"
12204
12230
  });
12205
12231
  await r.finished.catch(() => void 0), le.current.push(r), n();
12206
12232
  }, Oe = () => {
12207
- let e = qm.map((e) => y.current[e]?.getBoundingClientRect().left ?? 0);
12208
- E.current = Zm(E.current), V(), Ee(E.current, !0), !ot() && qm.forEach((t, n) => {
12233
+ let e = Jm.map((e) => y.current[e]?.getBoundingClientRect().left ?? 0);
12234
+ E.current = Qm(E.current), V(), Ee(E.current, !0), !ot() && Jm.forEach((t, n) => {
12209
12235
  let r = y.current[t], i = e[n] - (r?.getBoundingClientRect().left ?? 0);
12210
12236
  r && i && et(r, [{ transform: `translateX(${i}px)` }, { transform: "none" }], {
12211
- duration: ah,
12237
+ duration: oh,
12212
12238
  easing: B
12213
12239
  });
12214
12240
  });
12215
12241
  }, ke = () => {
12216
12242
  let e = E.current;
12217
12243
  Ee(e, !1);
12218
- let t = y.current[e], n = y.current[Zm(e)], r = () => {
12244
+ let t = y.current[e], n = y.current[Qm(e)], r = () => {
12219
12245
  O(e), ee(!1);
12220
12246
  };
12221
12247
  if (!t || !n || ot()) return r();
12222
12248
  let i = {
12223
- duration: ih,
12249
+ duration: ah,
12224
12250
  easing: we,
12225
12251
  fill: "forwards"
12226
- }, a = [t.animate([{ flexBasis: `${j * 100}%` }, { flexBasis: "100%" }], i), n.animate(sh, i)];
12252
+ }, a = [t.animate([{ flexBasis: `${j * 100}%` }, { flexBasis: "100%" }], i), n.animate(ch, i)];
12227
12253
  Promise.all(a.map((e) => e.finished.catch(() => void 0))).then(() => {
12228
12254
  t.style.flex = "1 1 auto", n.style.display = "none", de.current && (de.current.style.display = "none");
12229
12255
  for (let e of a) e.cancel();
@@ -12231,14 +12257,14 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12231
12257
  });
12232
12258
  }, Ae = () => {
12233
12259
  let e = y.current[A], t = y.current[E.current];
12234
- t && e && !ot() && (t.style.visibility = "", e.style.zIndex = "1"), De(e, lh, () => {
12260
+ t && e && !ot() && (t.style.visibility = "", e.style.zIndex = "1"), De(e, uh, () => {
12235
12261
  e && (e.style.zIndex = ""), te(E.current);
12236
12262
  });
12237
12263
  }, je = (e) => {
12238
12264
  let t = ie.current?.getBoundingClientRect();
12239
12265
  if (!t?.width) return;
12240
12266
  let n = (e.clientX - t.left) / t.width;
12241
- ne(Math.min(th, Math.max(eh, n)));
12267
+ ne(Math.min(nh, Math.max(th, n)));
12242
12268
  };
12243
12269
  return /* @__PURE__ */ Z("div", {
12244
12270
  ref: ie,
@@ -12246,10 +12272,10 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12246
12272
  0: { className: "x78zum5 xn9wirt xtdtrs8 xb3r6kr" },
12247
12273
  1: { className: "x78zum5 xb3r6kr xh8yej3 x5yr21d" }
12248
12274
  }[!!i | 0],
12249
- children: [qm.map((e) => {
12275
+ children: [Jm.map((e) => {
12250
12276
  let { type: t, id: n } = h[e];
12251
12277
  if (!n || !k && e !== D) return null;
12252
- let i = Qm[t];
12278
+ let i = $m[t];
12253
12279
  return /* @__PURE__ */ Z("section", {
12254
12280
  "data-split-pane": t,
12255
12281
  "data-split-slot": e,
@@ -12321,7 +12347,7 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12321
12347
  ]
12322
12348
  }), /* @__PURE__ */ Z("div", {
12323
12349
  className: "x1n2onr6 x98rzlu x2lwn1j",
12324
- children: [e === _ && /* @__PURE__ */ X(Mm, {
12350
+ children: [e === _ && /* @__PURE__ */ X(Nm, {
12325
12351
  bar: I.bar,
12326
12352
  onStep: I.step
12327
12353
  }), (b.incoming?.slot === e ? [h[e], b.incoming.pane] : [h[e]]).map((t, n, i) => {
@@ -12362,5 +12388,5 @@ function dh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12362
12388
  });
12363
12389
  }
12364
12390
  // src/viewer/whiteboard/LazyReadOnlyWhiteboard.ts
12365
- var fh = vn(() => import("./ReadOnlyWhiteboard-ByJSgs6y.js").then(({ ReadOnlyWhiteboard: e }) => ({ default: e })));
12366
- export { At as ARTIFACT_LOCATOR_SOURCE, yt as ARTIFACT_TYPES, xm as ArtboardView, Si as ArtifactThumbnail, Lt as BOARD_TYPES, i as CanvasErrorBoundary, ht as ENTRY_FILE, Mi as EmbeddedCanvas, Pt as HTML_LANG, le as HTML_SANDBOX, wm as HtmlView, fh as LazyReadOnlyWhiteboard, b as MAIN_PORTS, It as MAX_ARTIFACT_BYTES, xe as PHONE_QUERY, gt as PLAN_LIMIT_KINDS, _ as PreviewView, Pi as PublicationStatus, Mt as RELAY_DAILY_LIMIT, bt as RELAY_REJECTED_CODE, Re as RailSwitch, Li as RyugiMark, Xi as SharePanel, dh as SplitShell, Jt as TYPE_GLYPHS, Kt as TYPE_ICON_VIEWBOX, Nt as Trans, xi as TypeIcon, Am as VIEWER_VERSION, y as ViewerProvider, qe as anchorBlockIds, z as applyAgentOp, Me as applyAgentThreadOp, hi as applyBoardAgentOp, mi as applyBoardHumanOp, Qe as applyHumanOp, be as applyThreadOp, Ci as besideHidden, ci as boardAnchors, ea as boardCommentsFromMessage, $i as boardCommentsFromPayload, t as cloudErrorDetails, jm as cloudSplitFrames, Vt as createRelayConnection, kt as createViewerI18n, Se as documentAnchors, O as dropPendingAnchor, li as emptyBoardComments, Be as emptyComments, Em as errorText, e as formatBytes, E as holdEmbedAnchor, jt as i18n, re as inSplit, Ot as isArtifactAddress, wt as isArtifactId, Ct as isArtifactLocator, _t as isArtifactType, Qr as isChoiceRecord, dt as isMediaBoard, Ft as isMintedArtifactId, Fe as isObject, Dm as isPlanLimit, ie as isSplitType, pt as isVisibility, di as mergeBoardComments, V as mergeComments, yi as mergeReferrers, Rt as mintArtifactId, ue as onSplitMessage, Te as openThread, ft as ownLink, pn as pageLink, xt as parseAcceptLanguage, he as parseComments, oe as parseSplit, N as pendingAnchor, Om as planLimitMessage, mt as publishState, Et as publishing, si as readBoardAnchor, We as readCloudHeader, je as readEmbedAnchor, ut as readPublication, bi as referrerSummary, Tm as relativeUpdatedAt, Dt as relayRejection, Oe as reportCloudHeader, St as resolveLocale, km as responseErrorText, S as restoreAnchorSoon, ui as savedBoardComments, tt as savedComments, Tt as syncNote, H as t, Ut as typeFaviconHref, st as unreadThreads, ra as useCanvasData, ve as useCloudHeader, Xe as useMedia, dn as usePageQuery, x as useSandboxFrame, n as useSystemTheme, vt as useTranslation, Qt as useTypeFavicon, ye as waitingOn };
12391
+ var ph = vn(() => import("./ReadOnlyWhiteboard-BmJvK9cn.js").then(({ ReadOnlyWhiteboard: e }) => ({ default: e })));
12392
+ export { At as ARTIFACT_LOCATOR_SOURCE, yt as ARTIFACT_TYPES, Sm as ArtboardView, Si as ArtifactThumbnail, Lt as BOARD_TYPES, i as CanvasErrorBoundary, ht as ENTRY_FILE, Mi as EmbeddedCanvas, Pt as HTML_LANG, le as HTML_SANDBOX, Tm as HtmlView, ph as LazyReadOnlyWhiteboard, b as MAIN_PORTS, It as MAX_ARTIFACT_BYTES, xe as PHONE_QUERY, gt as PLAN_LIMIT_KINDS, _ as PreviewView, Pi as PublicationStatus, Mt as RELAY_DAILY_LIMIT, bt as RELAY_REJECTED_CODE, Re as RailSwitch, Li as RyugiMark, Xi as SharePanel, fh as SplitShell, Jt as TYPE_GLYPHS, Kt as TYPE_ICON_VIEWBOX, Nt as Trans, xi as TypeIcon, jm as VIEWER_VERSION, y as ViewerProvider, qe as anchorBlockIds, z as applyAgentOp, Me as applyAgentThreadOp, hi as applyBoardAgentOp, mi as applyBoardHumanOp, Qe as applyHumanOp, be as applyThreadOp, Ci as besideHidden, ci as boardAnchors, ea as boardCommentsFromMessage, $i as boardCommentsFromPayload, t as cloudErrorDetails, Mm as cloudSplitFrames, Vt as createRelayConnection, kt as createViewerI18n, Se as documentAnchors, O as dropPendingAnchor, li as emptyBoardComments, Be as emptyComments, Dm as errorText, e as formatBytes, E as holdEmbedAnchor, jt as i18n, re as inSplit, Ot as isArtifactAddress, wt as isArtifactId, Ct as isArtifactLocator, _t as isArtifactType, Qr as isChoiceRecord, dt as isMediaBoard, Ft as isMintedArtifactId, Fe as isObject, Om as isPlanLimit, ie as isSplitType, pt as isVisibility, di as mergeBoardComments, V as mergeComments, yi as mergeReferrers, Rt as mintArtifactId, ue as onSplitMessage, Te as openThread, ft as ownLink, pn as pageLink, xt as parseAcceptLanguage, he as parseComments, oe as parseSplit, N as pendingAnchor, km as planLimitMessage, mt as publishState, Et as publishing, si as readBoardAnchor, We as readCloudHeader, je as readEmbedAnchor, ut as readPublication, bi as referrerSummary, Em as relativeUpdatedAt, Dt as relayRejection, Oe as reportCloudHeader, St as resolveLocale, Am as responseErrorText, S as restoreAnchorSoon, ui as savedBoardComments, tt as savedComments, Tt as syncNote, H as t, Ut as typeFaviconHref, st as unreadThreads, ra as useCanvasData, ve as useCloudHeader, Xe as useMedia, dn as usePageQuery, x as useSandboxFrame, n as useSystemTheme, vt as useTranslation, Qt as useTypeFavicon, ye as waitingOn };