ryugi-artifacts 1.74.0 → 1.74.1

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 (169) hide show
  1. package/dist/cli.cjs +2 -2
  2. package/dist/server.cjs +283 -284
  3. package/dist/viewer/{ArtboardLayout-BXgPLinz.js → ArtboardLayout-DjaRuDsO.js} +1 -1
  4. package/dist/viewer/{WhiteboardLayout-m6CksEEZ.js → WhiteboardLayout-ow2momRu.js} +8 -8
  5. package/dist/viewer/{ar-SA-G6X2FPQ2-sqMD-ybs.js → ar-SA-G6X2FPQ2-Clp1KxrT.js} +1 -1
  6. package/dist/viewer/{az-AZ-76LH7QW2-CTKowRRF.js → az-AZ-76LH7QW2-CTsoMkRz.js} +1 -1
  7. package/dist/viewer/{bg-BG-XCXSNQG7-CT00iV67.js → bg-BG-XCXSNQG7-CURX1V0k.js} +1 -1
  8. package/dist/viewer/{bn-BD-2XOGV67Q-DOrMSsVp.js → bn-BD-2XOGV67Q-m9ZypGLp.js} +1 -1
  9. package/dist/viewer/{ca-ES-6MX7JW3Y-Do04zvJ4.js → ca-ES-6MX7JW3Y-DhaOrTmL.js} +1 -1
  10. package/dist/viewer/{chunk-EIO257PC-B3uprNA6.js → chunk-EIO257PC-BZ_FdVtZ.js} +1 -1
  11. package/dist/viewer/{cs-CZ-2BRQDIVT-Cbl7Flr6.js → cs-CZ-2BRQDIVT-BugBdTvx.js} +1 -1
  12. package/dist/viewer/{da-DK-5WZEPLOC-C77Edpw0.js → da-DK-5WZEPLOC-CFCcWSbt.js} +1 -1
  13. package/dist/viewer/{de-DE-XR44H4JA-CtVVmK8S.js → de-DE-XR44H4JA-BclIJbt1.js} +1 -1
  14. package/dist/viewer/{el-GR-BZB4AONW-CuAv5kQ6.js → el-GR-BZB4AONW-D72Xewmx.js} +1 -1
  15. package/dist/viewer/{en-B4ZKOASM-CkW557fW.js → en-B4ZKOASM-Bsvk85uQ.js} +1 -1
  16. package/dist/viewer/{es-ES-U4NZUMDT-Bl_ZUwXu.js → es-ES-U4NZUMDT-CEIvkwBD.js} +1 -1
  17. package/dist/viewer/{eu-ES-A7QVB2H4-DBm4z9TU.js → eu-ES-A7QVB2H4-VhTdNbJf.js} +1 -1
  18. package/dist/viewer/{fa-IR-HGAKTJCU-DciA2Mup.js → fa-IR-HGAKTJCU-BwiWtp_k.js} +1 -1
  19. package/dist/viewer/{fi-FI-Z5N7JZ37-B45ZG9Cu.js → fi-FI-Z5N7JZ37-Y8KPGqvh.js} +1 -1
  20. package/dist/viewer/{fr-FR-RHASNOE6-DG0tfvLf.js → fr-FR-RHASNOE6-BEtsNP-8.js} +1 -1
  21. package/dist/viewer/{gl-ES-HMX3MZ6V-b6CBnweh.js → gl-ES-HMX3MZ6V-C-XshmST.js} +1 -1
  22. package/dist/viewer/{he-IL-6SHJWFNN-C6Iiq0Af.js → he-IL-6SHJWFNN-b8PhREYx.js} +1 -1
  23. package/dist/viewer/{hi-IN-IWLTKZ5I-CCyX7jrl.js → hi-IN-IWLTKZ5I-CaQJQV5S.js} +1 -1
  24. package/dist/viewer/{hu-HU-A5ZG7DT2-BpAvys09.js → hu-HU-A5ZG7DT2-D9moF-kq.js} +1 -1
  25. package/dist/viewer/{id-ID-SAP4L64H-JDHT3cyz.js → id-ID-SAP4L64H-B0I-ul7F.js} +1 -1
  26. package/dist/viewer/{image-GAAHSSAO-C6AP7pM7.js → image-GAAHSSAO-BBhqaPad.js} +1 -1
  27. package/dist/viewer/index.css +2 -2
  28. package/dist/viewer/index.js +2 -2
  29. package/dist/viewer/index2.css +1 -1
  30. package/dist/viewer/index3.css +2 -2
  31. package/dist/viewer/{it-IT-JPQ66NNP-eRmgO05n.js → it-IT-JPQ66NNP-BrLG1jpn.js} +1 -1
  32. package/dist/viewer/{ja-JP-DBVTYXUO-CjUApFyN.js → ja-JP-DBVTYXUO-CYX17kjG.js} +1 -1
  33. package/dist/viewer/{kaa-6HZHGXH3-CrkBVcM6.js → kaa-6HZHGXH3-CmDUj7Ao.js} +1 -1
  34. package/dist/viewer/{kab-KAB-ZGHBKWFO-BgOyT0FR.js → kab-KAB-ZGHBKWFO-CfyEt75U.js} +1 -1
  35. package/dist/viewer/{kk-KZ-P5N5QNE5-DOUb1Skw.js → kk-KZ-P5N5QNE5-CWa1bSjH.js} +1 -1
  36. package/dist/viewer/{km-KH-HSX4SM5Z-DCkX243Z.js → km-KH-HSX4SM5Z-DAenC5wx.js} +1 -1
  37. package/dist/viewer/{ko-KR-MTYHY66A-C7PRKCWc.js → ko-KR-MTYHY66A-Bm-JdECZ.js} +1 -1
  38. package/dist/viewer/{ku-TR-6OUDTVRD-HzNaS_VF.js → ku-TR-6OUDTVRD-DgA-fn0L.js} +1 -1
  39. package/dist/viewer/{lt-LT-XHIRWOB4-ye48hffq.js → lt-LT-XHIRWOB4-CxdusF7b.js} +1 -1
  40. package/dist/viewer/{lv-LV-5QDEKY6T-DGM0bp7s.js → lv-LV-5QDEKY6T-Ckwyu1ME.js} +1 -1
  41. package/dist/viewer/{mr-IN-CRQNXWMA-DjIZx_ol.js → mr-IN-CRQNXWMA-BByA_VYS.js} +1 -1
  42. package/dist/viewer/{my-MM-5M5IBNSE-CGLO_ej_.js → my-MM-5M5IBNSE-rVXfNRR6.js} +1 -1
  43. package/dist/viewer/{nb-NO-T6EIAALU-DK8_38ic.js → nb-NO-T6EIAALU-B-GNWJkX.js} +1 -1
  44. package/dist/viewer/{nl-NL-IS3SIHDZ-Cv3O-cnK.js → nl-NL-IS3SIHDZ-DHf3OM7S.js} +1 -1
  45. package/dist/viewer/{nn-NO-6E72VCQL-ComCLzRl.js → nn-NO-6E72VCQL-B2UxdiaK.js} +1 -1
  46. package/dist/viewer/{oc-FR-POXYY2M6-qK9_NZQU.js → oc-FR-POXYY2M6-BIdDhP_M.js} +1 -1
  47. package/dist/viewer/{pa-IN-N4M65BXN-mufXhFp0.js → pa-IN-N4M65BXN-CNL7a1Rx.js} +1 -1
  48. package/dist/viewer/percentages-BXMCSKIN-CiH2hQ2I.js +1 -0
  49. package/dist/viewer/{pl-PL-T2D74RX3-C3rUqdPP.js → pl-PL-T2D74RX3-V7xLWlRC.js} +1 -1
  50. package/dist/viewer/{pt-BR-5N22H2LF-HlXY70eO.js → pt-BR-5N22H2LF-DiQob5k9.js} +1 -1
  51. package/dist/viewer/{pt-PT-UZXXM6DQ-qyTZes_o.js → pt-PT-UZXXM6DQ-C67Q4JGq.js} +1 -1
  52. package/dist/viewer/{ro-RO-JPDTUUEW-shqYHaTl.js → ro-RO-JPDTUUEW-SD9AXbNG.js} +1 -1
  53. package/dist/viewer/{ru-RU-B4JR7IUQ-C21tiiq7.js → ru-RU-B4JR7IUQ-CxGZHSKP.js} +1 -1
  54. package/dist/viewer/{si-LK-N5RQ5JYF-C8tMazrc.js → si-LK-N5RQ5JYF-DO2hdzy9.js} +1 -1
  55. package/dist/viewer/{sk-SK-C5VTKIMK-vet27CNE.js → sk-SK-C5VTKIMK-BwBxa_0m.js} +1 -1
  56. package/dist/viewer/{sl-SI-NN7IZMDC-DfsDqoQ5.js → sl-SI-NN7IZMDC-DtcDrsYS.js} +1 -1
  57. package/dist/viewer/subset-shared.chunk-dyRN7pre.js +1 -0
  58. package/dist/viewer/{subset-worker.chunk-BiQt81Di.js → subset-worker.chunk-BFrpWEpP.js} +1 -1
  59. package/dist/viewer/{sv-SE-XGPEYMSR-5EsCW30q.js → sv-SE-XGPEYMSR-Cj18Hq-_.js} +1 -1
  60. package/dist/viewer/{ta-IN-2NMHFXQM-B0rH8H8l.js → ta-IN-2NMHFXQM-nasqpVkk.js} +1 -1
  61. package/dist/viewer/{th-TH-HPSO5L25-BVjRcZ-R.js → th-TH-HPSO5L25-C14q5Vs8.js} +1 -1
  62. package/dist/viewer/{tr-TR-DEFEU3FU-DULWyYU_.js → tr-TR-DEFEU3FU-BYWRjrDS.js} +1 -1
  63. package/dist/viewer/{uk-UA-QMV73CPH-B5oK1-RG.js → uk-UA-QMV73CPH-ySJevlU8.js} +1 -1
  64. package/dist/viewer/{vi-VN-M7AON7JQ-BdaGqfk2.js → vi-VN-M7AON7JQ-DVAuobSL.js} +1 -1
  65. package/dist/viewer/{zh-CN-LNUGB5OW-xFhpneEJ.js → zh-CN-LNUGB5OW-DvRlrnug.js} +1 -1
  66. package/dist/viewer/{zh-HK-E62DVLB3-Cg98R-RB.js → zh-HK-E62DVLB3-CljMSYL2.js} +1 -1
  67. package/dist/viewer/{zh-TW-RAJ6MFWO-B7GD9tLv.js → zh-TW-RAJ6MFWO-Cz22dvyl.js} +1 -1
  68. package/dist/viewer-lib/{Canvas-D0Cvuxtl.js → Canvas-BS-_yDiQ.js} +1 -1
  69. package/dist/viewer-lib/{PhoneArtboardBar-ChbVT67L.js → PhoneArtboardBar-ZFnaDMbm.js} +1 -1
  70. package/dist/viewer-lib/{PreviewView-CAwdMFus.js → PreviewView-CdCG9pzL.js} +1 -1
  71. package/dist/viewer-lib/{ReadOnlyWhiteboard-DphAvLi-.js → ReadOnlyWhiteboard-CdaTkZWK.js} +99 -90
  72. package/dist/viewer-lib/{SnapshotDocument-D5X6u7EH.css → SnapshotDocument-B-BQoiAj.css} +1 -1
  73. package/dist/viewer-lib/{SnapshotDocument-D7kHU9Rp.js → SnapshotDocument-Cq4p4KfQ.js} +72 -72
  74. package/dist/viewer-lib/{VirtualizedEditor-uWe43zaI-BsfEG4fp.js → VirtualizedEditor-uWe43zaI--81NZ1Uh.js} +3 -3
  75. package/dist/viewer-lib/{VirtualizedRenderer-C_d95FXi-DjjteuIR.js → VirtualizedRenderer-C_d95FXi-xLgg7jfd.js} +4 -4
  76. package/dist/viewer-lib/{ar-SA-G6X2FPQ2-B3ExZZ_N.js → ar-SA-G6X2FPQ2-D9vbflA-.js} +1 -1
  77. package/dist/viewer-lib/{az-AZ-76LH7QW2-C3n1_otx.js → az-AZ-76LH7QW2-C6viSIIe.js} +1 -1
  78. package/dist/viewer-lib/{bg-BG-XCXSNQG7-_JgITr7G.js → bg-BG-XCXSNQG7-Daxmfqbv.js} +1 -1
  79. package/dist/viewer-lib/{bn-BD-2XOGV67Q-D4IEjzQ-.js → bn-BD-2XOGV67Q-BaylJY11.js} +1 -1
  80. package/dist/viewer-lib/{ca-ES-6MX7JW3Y-CRmINHw9.js → ca-ES-6MX7JW3Y-DMFt8OAA.js} +1 -1
  81. package/dist/viewer-lib/{chunk-EIO257PC-wENlnmbm.js → chunk-EIO257PC-DPiZy-Hq.js} +1 -1
  82. package/dist/viewer-lib/core.js +1 -1
  83. package/dist/viewer-lib/{cs-CZ-2BRQDIVT-BZNXoKLv.js → cs-CZ-2BRQDIVT-HJURUVM0.js} +1 -1
  84. package/dist/viewer-lib/{da-DK-5WZEPLOC-Dtemdy4G.js → da-DK-5WZEPLOC-DiVeW7Oh.js} +1 -1
  85. package/dist/viewer-lib/{de-DE-XR44H4JA-D0hYcxKF.js → de-DE-XR44H4JA-CwaTGM6a.js} +1 -1
  86. package/dist/viewer-lib/{dist-C4-_w-sN.js → dist-5Alf5ef6.js} +3 -3
  87. package/dist/viewer-lib/{dist-CaSEY2RJ.js → dist-BCs4xHYo.js} +2 -2
  88. package/dist/viewer-lib/{dist-BjVZobM0.js → dist-BgYxkWrF.js} +3 -3
  89. package/dist/viewer-lib/{dist-BPOdRra9.js → dist-Bj5UQAKx.js} +2 -2
  90. package/dist/viewer-lib/{dist-DsXV5z5U.js → dist-BtFp8Fdl.js} +1 -1
  91. package/dist/viewer-lib/{dist-DV_QJfvu.js → dist-BzkaP7Eu.js} +4 -4
  92. package/dist/viewer-lib/{dist-BsJjKiMR.js → dist-CNYGqeWR.js} +3 -3
  93. package/dist/viewer-lib/{dist-BdFC1Hd8.js → dist-CQbHVUT8.js} +3 -3
  94. package/dist/viewer-lib/{dist-D2K8Cqxa.js → dist-CZIlIHZp.js} +3 -3
  95. package/dist/viewer-lib/{dist-BcNZDh7S.js → dist-CqCHfPkK.js} +2 -2
  96. package/dist/viewer-lib/{dist-CzCP_AL3.js → dist-CrWKUkxs.js} +3 -3
  97. package/dist/viewer-lib/{dist-BvMph4r-.js → dist-CxAB5CBm.js} +2 -2
  98. package/dist/viewer-lib/{dist-D6uKhuw5.js → dist-D19tSdni.js} +2 -2
  99. package/dist/viewer-lib/{dist-D3wydb57.js → dist-DAU3JelZ.js} +3 -3
  100. package/dist/viewer-lib/{dist-Bah5EcW3.js → dist-DCJNjbF6.js} +2 -2
  101. package/dist/viewer-lib/{dist-Dt2lXK9p.js → dist-DIyvFZEt.js} +3 -3
  102. package/dist/viewer-lib/{dist-B9I0iaui.js → dist-DOdFtwRN.js} +3 -3
  103. package/dist/viewer-lib/{dist-CBR3n0XE.js → dist-D_KdhUm_.js} +2 -2
  104. package/dist/viewer-lib/{dist-vZ0u9TR0.js → dist-MwjZLyjE.js} +1 -1
  105. package/dist/viewer-lib/{dist-BJ6lp1uk.js → dist-QhSKb6i0.js} +4 -4
  106. package/dist/viewer-lib/{dist-BuO1_pAW.js → dist-XRXfSxIY.js} +4 -4
  107. package/dist/viewer-lib/{dist-CoBNf9MG.js → dist-bFfciYjb.js} +2 -2
  108. package/dist/viewer-lib/{dist-UFfQWbsP.js → dist-nsuz6Enp.js} +3 -3
  109. package/dist/viewer-lib/document.js +3 -3
  110. package/dist/viewer-lib/{el-GR-BZB4AONW-qV029TmN.js → el-GR-BZB4AONW-Cpnz69_d.js} +1 -1
  111. package/dist/viewer-lib/{en-B4ZKOASM-DV-VPvK5.js → en-B4ZKOASM-B5EWcVU_.js} +1 -1
  112. package/dist/viewer-lib/{es-ES-U4NZUMDT-DEe7qQbH.js → es-ES-U4NZUMDT-DTxYNY9z.js} +1 -1
  113. package/dist/viewer-lib/{eu-ES-A7QVB2H4-D3CGb0ag.js → eu-ES-A7QVB2H4-DNQLa-75.js} +1 -1
  114. package/dist/viewer-lib/{fa-IR-HGAKTJCU-DkPs6xAe.js → fa-IR-HGAKTJCU-BmEwT5gJ.js} +1 -1
  115. package/dist/viewer-lib/{fi-FI-Z5N7JZ37-X2jyYgyJ.js → fi-FI-Z5N7JZ37-Bn6mHqQ6.js} +1 -1
  116. package/dist/viewer-lib/{fr-FR-RHASNOE6-CcuRf61t.js → fr-FR-RHASNOE6-CRwCHElD.js} +1 -1
  117. package/dist/viewer-lib/{gl-ES-HMX3MZ6V-i8Khqnw9.js → gl-ES-HMX3MZ6V-CylPO_1D.js} +1 -1
  118. package/dist/viewer-lib/{he-IL-6SHJWFNN-bVwHqCWn.js → he-IL-6SHJWFNN-CDTBSMzd.js} +1 -1
  119. package/dist/viewer-lib/{hi-IN-IWLTKZ5I-BQwT5_a9.js → hi-IN-IWLTKZ5I-CtPpuV1u.js} +1 -1
  120. package/dist/viewer-lib/{hu-HU-A5ZG7DT2-fO31tnuA.js → hu-HU-A5ZG7DT2-CwVGkLn8.js} +1 -1
  121. package/dist/viewer-lib/{id-ID-SAP4L64H-E01brggR.js → id-ID-SAP4L64H-Dnqb3xMl.js} +1 -1
  122. package/dist/viewer-lib/{image-GAAHSSAO-DKUe4Nim.js → image-GAAHSSAO-CSGEcIBN.js} +1 -1
  123. package/dist/viewer-lib/index.js +504 -502
  124. package/dist/viewer-lib/{it-IT-JPQ66NNP-BvAzcqg_.js → it-IT-JPQ66NNP-C9zHSk81.js} +1 -1
  125. package/dist/viewer-lib/{ja-JP-DBVTYXUO-D1SlBpJg.js → ja-JP-DBVTYXUO-DTTPwQmv.js} +1 -1
  126. package/dist/viewer-lib/{kaa-6HZHGXH3-CoiG7yPL.js → kaa-6HZHGXH3-CsTZZa5j.js} +1 -1
  127. package/dist/viewer-lib/{kab-KAB-ZGHBKWFO-DafCIpjz.js → kab-KAB-ZGHBKWFO-B7vrjlvJ.js} +1 -1
  128. package/dist/viewer-lib/{kk-KZ-P5N5QNE5-TPivwtqQ.js → kk-KZ-P5N5QNE5-C5cNEoy6.js} +1 -1
  129. package/dist/viewer-lib/{km-KH-HSX4SM5Z-D4xtkN4n.js → km-KH-HSX4SM5Z-B51VzNEs.js} +1 -1
  130. package/dist/viewer-lib/{ko-KR-MTYHY66A-SgpZdprZ.js → ko-KR-MTYHY66A-BwVxzxVv.js} +1 -1
  131. package/dist/viewer-lib/{ku-TR-6OUDTVRD-LFUgU64U.js → ku-TR-6OUDTVRD-Bwlf9qjI.js} +1 -1
  132. package/dist/viewer-lib/{lt-LT-XHIRWOB4-Cq5h4qGe.js → lt-LT-XHIRWOB4-aijnRkXE.js} +1 -1
  133. package/dist/viewer-lib/{lv-LV-5QDEKY6T-Cdw0TdpG.js → lv-LV-5QDEKY6T-DhpQMs-U.js} +1 -1
  134. package/dist/viewer-lib/{mr-IN-CRQNXWMA-V4Oy9zQ-.js → mr-IN-CRQNXWMA-NV2v3S8G.js} +1 -1
  135. package/dist/viewer-lib/{my-MM-5M5IBNSE-BVCoOVoi.js → my-MM-5M5IBNSE-BKAJHxJu.js} +1 -1
  136. package/dist/viewer-lib/{nb-NO-T6EIAALU-DtQRQBXS.js → nb-NO-T6EIAALU-DwzKRKbz.js} +1 -1
  137. package/dist/viewer-lib/{nl-NL-IS3SIHDZ-jMWRP-1V.js → nl-NL-IS3SIHDZ-CiEgpnnq.js} +1 -1
  138. package/dist/viewer-lib/{nn-NO-6E72VCQL-DkADF86S.js → nn-NO-6E72VCQL-BGeAx6h3.js} +1 -1
  139. package/dist/viewer-lib/{oc-FR-POXYY2M6-qv4b66so.js → oc-FR-POXYY2M6-BAOxnmk2.js} +1 -1
  140. package/dist/viewer-lib/{pa-IN-N4M65BXN-PTo0Z1I1.js → pa-IN-N4M65BXN-D7dfsOLu.js} +1 -1
  141. package/dist/viewer-lib/{percentages-BXMCSKIN-sCxM2XSW.js → percentages-BXMCSKIN-BEBkudra.js} +1 -1
  142. package/dist/viewer-lib/{pl-PL-T2D74RX3-Cl-1g-ED.js → pl-PL-T2D74RX3-DreGIfrh.js} +1 -1
  143. package/dist/viewer-lib/{printDocument-C2NpA8g3.js → printDocument-CjaNQ9SE.js} +2 -2
  144. package/dist/viewer-lib/{pt-BR-5N22H2LF-B8_kgQ81.js → pt-BR-5N22H2LF-C0BZMMWN.js} +1 -1
  145. package/dist/viewer-lib/{pt-PT-UZXXM6DQ-Dv28OlpR.js → pt-PT-UZXXM6DQ-DpMUU3Dr.js} +1 -1
  146. package/dist/viewer-lib/{ro-RO-JPDTUUEW-DrTM_PGr.js → ro-RO-JPDTUUEW-BXfEv5RD.js} +1 -1
  147. package/dist/viewer-lib/{ru-RU-B4JR7IUQ-DlKtPHC9.js → ru-RU-B4JR7IUQ-C9JJo2Vp.js} +1 -1
  148. package/dist/viewer-lib/{si-LK-N5RQ5JYF-D4otDZ4i.js → si-LK-N5RQ5JYF-CrMOni0i.js} +1 -1
  149. package/dist/viewer-lib/{sk-SK-C5VTKIMK-B2lEoT8w.js → sk-SK-C5VTKIMK-C0hpi9M9.js} +1 -1
  150. package/dist/viewer-lib/{sl-SI-NN7IZMDC-bL-WE8UY.js → sl-SI-NN7IZMDC-MqYRpshn.js} +1 -1
  151. package/dist/viewer-lib/{static-BsPZBqGK.js → static-C1Q2cI62.js} +5 -5
  152. package/dist/viewer-lib/subset-shared.chunk-CA09RTjK.js +2 -0
  153. package/dist/viewer-lib/{subset-worker.chunk-DxqsqKA4.js → subset-worker.chunk-BLFn82Cl.js} +2 -2
  154. package/dist/viewer-lib/{sv-SE-XGPEYMSR-B0YDzVpm.js → sv-SE-XGPEYMSR-DTOY7f8n.js} +1 -1
  155. package/dist/viewer-lib/{ta-IN-2NMHFXQM-DZNn08b7.js → ta-IN-2NMHFXQM-hwaDZ_dR.js} +1 -1
  156. package/dist/viewer-lib/{th-TH-HPSO5L25-DXLVvDlG.js → th-TH-HPSO5L25-u8P0crNp.js} +1 -1
  157. package/dist/viewer-lib/{tr-TR-DEFEU3FU-C4Wyagw6.js → tr-TR-DEFEU3FU-CXiJe1LL.js} +1 -1
  158. package/dist/viewer-lib/types/src/viewer/layouts/PhoneArtboard.d.ts +3 -1
  159. package/dist/viewer-lib/types/src/viewer/whiteboard/frameNamePinch.d.ts +1 -0
  160. package/dist/viewer-lib/{uk-UA-QMV73CPH-DKpvv0Wr.js → uk-UA-QMV73CPH-DjvTsLGT.js} +1 -1
  161. package/dist/viewer-lib/{vi-VN-M7AON7JQ-CPhDZbMe.js → vi-VN-M7AON7JQ-D1-kIlO1.js} +1 -1
  162. package/dist/viewer-lib/{viewport-CFJHn_Y6-CxORMN9k.js → viewport-CFJHn_Y6-C6PY7g7D.js} +2 -2
  163. package/dist/viewer-lib/{zh-CN-LNUGB5OW-CVH2xFfU.js → zh-CN-LNUGB5OW-DuedQ4LV.js} +1 -1
  164. package/dist/viewer-lib/{zh-HK-E62DVLB3-B-fWm-Ll.js → zh-HK-E62DVLB3-C36nmDOB.js} +1 -1
  165. package/dist/viewer-lib/{zh-TW-RAJ6MFWO-DvOMhjvB.js → zh-TW-RAJ6MFWO-eMp9b1w2.js} +1 -1
  166. package/package.json +22 -22
  167. package/dist/viewer/percentages-BXMCSKIN-C7R8leyq.js +0 -1
  168. package/dist/viewer/subset-shared.chunk-BG2yYbe-.js +0 -1
  169. package/dist/viewer-lib/subset-shared.chunk-BaHzjX5A.js +0 -2
@@ -1,11 +1,11 @@
1
1
  import './stylex-DB7l4FHf.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-CAwdMFus.js";
4
- import { $ as x, $t as S, At as C, Bt as w, Cn as T, Ct as E, D, Dt as O, Et as k, Ft as A, Ht as j, I as ee, Kt as M, L as te, Mt as N, Nt as ne, Ot as re, P as ie, Pt as ae, Qt as oe, Rt as P, S as F, Sn as se, St as ce, Tn as le, Tt as I, Vt as ue, Wt as de, Xt as fe, Y as pe, Yt as L, Zt as me, _ as he, _n as ge, a as _e, at as ve, b as ye, bn as R, bt as be, c as xe, cn as Se, ct as Ce, d as we, dn as Te, dt as z, en as B, fn as V, g as Ee, gn as De, gt as Oe, h as ke, hn as Ae, i as je, it as Me, jt as Ne, k as Pe, kt as Fe, ln as Ie, m as Le, mn as Re, mt as ze, n as Be, nn as Ve, o as He, on as Ue, pn as We, pt as Ge, qt as Ke, r as qe, rn as Je, rt as Ye, sn as Xe, t as Ze, tn as Qe, un as $e, ut as et, v as tt, vn as nt, vt as rt, w as it, wn as at, wt as ot, xn as st, xt as ct, y as lt, yn as ut, yt as dt, zt as ft } from "./route-messages-CX-1hVkS.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-CdCG9pzL.js";
4
+ import { $ as x, $t as S, At as C, Bt as w, Cn as T, Ct as E, D, Dt as O, Et as k, Ft as ee, Ht as A, I as j, Kt as te, L as ne, Mt as M, Nt as re, Ot as ie, P as ae, Pt as oe, Qt as se, Rt as N, S as P, Sn as ce, St as le, Tn as ue, Tt as de, Vt as F, Wt as fe, Xt as I, Y as pe, Yt as L, Zt as me, _ as he, _n as ge, a as _e, at as ve, b as ye, bn as R, bt as be, c as xe, cn as Se, ct as Ce, d as we, dn as Te, dt as z, en as B, fn as V, g as Ee, gn as De, gt as Oe, h as ke, hn as Ae, i as je, it as Me, jt as Ne, k as Pe, kt as Fe, ln as Ie, m as Le, mn as Re, mt as ze, n as Be, nn as Ve, o as He, on as Ue, pn as We, pt as Ge, qt as Ke, r as qe, rn as Je, rt as Ye, sn as Xe, t as Ze, tn as Qe, un as $e, ut as et, v as tt, vn as nt, vt as rt, w as it, wn as at, wt as ot, xn as st, xt as ct, y as lt, yn as ut, yt as dt, zt as ft } from "./route-messages-CX-1hVkS.js";
5
5
  import { A as pt, C as mt, D as ht, E as gt, F as _t, I as vt, L as yt, M as bt, N as xt, O as St, P as Ct, R as wt, S as Tt, T as Et, _ as Dt, a as Ot, b as kt, c as At, d as jt, f as Mt, g as Nt, h as Pt, i as Ft, j as It, k as Lt, l as H, m as Rt, n as zt, o as Bt, p as Vt, r as Ht, s as U, t as Ut, u as Wt, v as Gt, w as Kt, x as qt, y as Jt } from "./RyugiLoader-CDpaKUDV.js";
6
6
  import { _ as Yt, a as Xt, c as Zt, d as Qt, f as $t, g as en, h as tn, i as nn, l as rn, m as an, o as on, p as sn, r as cn, s as ln, t as un, u as dn, v as fn } from "./WarningsBadge-D0f9zp4j.js";
7
- import { a as pn, c as mn, d as hn, f as gn, i as _n, l as vn, o as yn, r as bn, s as xn, t as Sn, u as Cn } from "./Canvas-D0Cvuxtl.js";
8
- import { i as wn, n as Tn, r as En, t as Dn } from "./PhoneArtboardBar-ChbVT67L.js";
7
+ import { a as pn, c as mn, d as hn, f as gn, i as _n, l as vn, o as yn, r as bn, s as xn, t as Sn, u as Cn } from "./Canvas-BS-_yDiQ.js";
8
+ import { i as wn, n as Tn, r as En, t as Dn } from "./PhoneArtboardBar-ZFnaDMbm.js";
9
9
  import { a as On, i as kn } from "./agentLook-B6XZiaf6.js";
10
10
  import * as W from "react";
11
11
  import { Fragment as An, lazy as jn, memo as Mn, useCallback as G, useEffect as K, useEffectEvent as Nn, useId as Pn, useLayoutEffect as Fn, useMemo as q, useRef as J, useState as Y } from "react";
@@ -2244,7 +2244,7 @@ function qa({ view: e, overlayRef: t, page: n, boards: r, width: i, height: a, t
2244
2244
  height: a,
2245
2245
  point: b ? Wa(e, b) : null,
2246
2246
  width: i,
2247
- children: /* @__PURE__ */ X(de, {
2247
+ children: /* @__PURE__ */ X(fe, {
2248
2248
  actions: f,
2249
2249
  agent: p,
2250
2250
  label: `#${c.get(y.id)} ${Aa(y.anchor)}${s.has(y.id) ? ` · ${ja(y.anchor)}` : ""}`,
@@ -2267,7 +2267,7 @@ function qa({ view: e, overlayRef: t, page: n, boards: r, width: i, height: a, t
2267
2267
  className: "x78zum5 x6s0dn4 x17d4w8g x889kno xqin4a2 x1j6dyjg xddlp02 xb3r6kr xuxw1ft xlyipyv",
2268
2268
  children: _("comments.anchoredTo", { label: Aa(u) })
2269
2269
  }),
2270
- /* @__PURE__ */ X(M, {
2270
+ /* @__PURE__ */ X(te, {
2271
2271
  autoFocus: !0,
2272
2272
  placeholder: _("comments.addPlaceholder"),
2273
2273
  onCancel: g,
@@ -5907,11 +5907,11 @@ function wd(e, t, n, r, i, a) {
5907
5907
  function Td(e, t, n, r, i, a, o, s, c, l) {
5908
5908
  let { normalized: u, texts: d, starts: f, flags: p } = e, m = t === 0 ? 0 : f[t], h = t === 0 && n === p.length ? u : n === t + 1 ? d[t] : u.slice(m, n < p.length ? f[n] : u.length), g = l === null ? [] : l.widths, _ = l === null ? new Uint8Array(n - t) : l.segmentFlags, v = l === null ? [] : l.breakableFitAdvances, y = i ? [] : null, b = g.length, x = a !== 0, S = Ou(r, s, x), C = pu(h) ? mu(r, S) : 0, w = h.includes(" "), T = w || h.includes(" ") ? tu(S) : 0, E = o.letterSpaceTabStops ? a : 0, D = o.tabsInAppUnits ? (Math.round(T * 60) + Math.round(E * 60)) * 8 / 60 : (T + E) * 8, O = 0, k = o.kernsAcrossCanvasWords && h.includes(" ") ? Ql(S) : null;
5909
5909
  k !== null && fd.test(h) && (k = null);
5910
- let A = {
5910
+ let ee = {
5911
5911
  read: 0,
5912
5912
  scripts: 31,
5913
5913
  openBrackets: []
5914
- }, j = 0, ee = x && o.unspacedCursive !== "none" && _d(h), M = !x, te = null, N = null, ne = null, re = null, ie = o.unfitHyphenRetreat === "full-width-or-first";
5914
+ }, A = 0, j = x && o.unspacedCursive !== "none" && _d(h), te = !x, ne = null, M = null, re = null, ie = null, ae = o.unfitHyphenRetreat === "full-width-or-first";
5915
5915
  for (let r = t, i = b; r < n; r++, i++) {
5916
5916
  let s = d[r], l = p[r], u = l & 15, b = 0, E = 0, D = null;
5917
5917
  switch (u) {
@@ -5921,27 +5921,27 @@ function Td(e, t, n, r, i, a, o, s, c, l) {
5921
5921
  break;
5922
5922
  }
5923
5923
  let d = o.measureTextWithFollowingSpace && w ? xd(e, r, n) : null, _ = d === "", v = _ ? Wl(s, S) : Ul(s, S);
5924
- ne = s, re = v;
5924
+ re = s, ie = v;
5925
5925
  let y = d === null || _ ? 0 : Sd(s + d, S, T);
5926
5926
  if (k !== null && v.spaceKerning !== Yl) {
5927
5927
  let e = r > t && pd(p[r - 1] & 15), a = r + 1 < n && pd(p[r + 1] & 15);
5928
5928
  if (e || a) {
5929
5929
  let n = v.spaceKerning ?? eu(s, v, S, k);
5930
- a && (y = Math.max(n.after, 0), j = Math.min(n.after, 0)), e && n.before !== 0 && ((p[r - 1] & 15) != 4 || r !== t + 1 && (p[r - 2] & 15) != 8) && yd(A, h, f[r] - m, f[r] - m + s.length) && (g[i - 1] = g[i - 1] + n.before);
5930
+ a && (y = Math.max(n.after, 0), A = Math.min(n.after, 0)), e && n.before !== 0 && ((p[r - 1] & 15) != 4 || r !== t + 1 && (p[r - 2] & 15) != 8) && yd(ee, h, f[r] - m, f[r] - m + s.length) && (g[i - 1] = g[i - 1] + n.before);
5931
5931
  }
5932
5932
  }
5933
5933
  b = wd(s, v, S, C, _ ? T : 0, y);
5934
- let O = null, M = Vl;
5935
- if (x && (E = id(s, u, o.graphemeTable), ee && (O = bd(h, f[r] - m, f[r] - m + s.length, o.graphemeTable, o.unspacedCursive === "run" ? A : null), O !== null && (b -= O.length * a)), o.letterSpacesGlyphs)) {
5936
- M = v.extraSpacings ??= dd(s) ? Hl(s, S) : Vl;
5937
- for (let e = 0; e < M.length; e++) b += M[e] * a;
5934
+ let O = null, te = Vl;
5935
+ if (x && (E = id(s, u, o.graphemeTable), j && (O = bd(h, f[r] - m, f[r] - m + s.length, o.graphemeTable, o.unspacedCursive === "run" ? ee : null), O !== null && (b -= O.length * a)), o.letterSpacesGlyphs)) {
5936
+ te = v.extraSpacings ??= dd(s) ? Hl(s, S) : Vl;
5937
+ for (let e = 0; e < te.length; e++) b += te[e] * a;
5938
5938
  }
5939
5939
  if (!c || l & 128 || s.length === 1) break;
5940
- let N = Cu(s, v, S, C, a === 0 ? ld.test(s) ? "pair-context" : v.width < o.prefixFitMinWidth ? "sum-graphemes" : o.cutWordFit : "segment-prefixes", _ ? T : null);
5941
- if (D = N.advances, D === null) break;
5942
- if (N.lineStartExtras !== null && ((te ??= Array(n - t).fill(null))[r - t] = N.lineStartExtras), y !== 0 && (D = D.slice(), D[D.length - 1] = D[D.length - 1] + y), M.length !== 0) {
5940
+ let M = Cu(s, v, S, C, a === 0 ? ld.test(s) ? "pair-context" : v.width < o.prefixFitMinWidth ? "sum-graphemes" : o.cutWordFit : "segment-prefixes", _ ? T : null);
5941
+ if (D = M.advances, D === null) break;
5942
+ if (M.lineStartExtras !== null && ((ne ??= Array(n - t).fill(null))[r - t] = M.lineStartExtras), y !== 0 && (D = D.slice(), D[D.length - 1] = D[D.length - 1] + y), te.length !== 0) {
5943
5943
  D = D.slice();
5944
- for (let e = 0; e < M.length; e++) D[e] = D[e] + M[e] * a;
5944
+ for (let e = 0; e < te.length; e++) D[e] = D[e] + te[e] * a;
5945
5945
  }
5946
5946
  if (O !== null) {
5947
5947
  D = D.slice();
@@ -5952,7 +5952,7 @@ function Td(e, t, n, r, i, a, o, s, c, l) {
5952
5952
  case 1:
5953
5953
  case 4:
5954
5954
  case 2:
5955
- b = cu(s, S, C) + j, j = 0, x && (E = id(s, u, o.graphemeTable));
5955
+ b = cu(s, S, C) + A, A = 0, x && (E = id(s, u, o.graphemeTable));
5956
5956
  break;
5957
5957
  case 5:
5958
5958
  o.letterSpaceTabs && (E = 1), O === 0 && (O = cu(o.tabMinimumCharacter, S, C) / 2);
@@ -5964,43 +5964,43 @@ function Td(e, t, n, r, i, a, o, s, c, l) {
5964
5964
  break;
5965
5965
  }
5966
5966
  }
5967
- u !== 0 && u !== 1 && u !== 2 && (M = !1), u !== 0 && u !== 3 && (ne = null), _[i] = l & -129 | (x && E > 0 ? 16 : 0), g[i] = ad(b, E, a), v[i] = D, y !== null && (y[r - t] = s), u !== 0 && s.charCodeAt(0) === 173 ? (N ??= zl(r - t), N[r - t] = ie ? 0 : Cd(e, r, n, ne, re, S, C, o.lineFitEpsilon)) : N !== null && (N[r - t] = 0);
5967
+ u !== 0 && u !== 1 && u !== 2 && (te = !1), u !== 0 && u !== 3 && (re = null), _[i] = l & -129 | (x && E > 0 ? 16 : 0), g[i] = ad(b, E, a), v[i] = D, y !== null && (y[r - t] = s), u !== 0 && s.charCodeAt(0) === 173 ? (M ??= zl(r - t), M[r - t] = ae ? 0 : Cd(e, r, n, re, ie, S, C, o.lineFitEpsilon)) : M !== null && (M[r - t] = 0);
5968
5968
  }
5969
- let ae = cu(N === null ? "-" : o.hyphenFromPrimaryFont ? Pl(S) : "‐", S, C) + (a === 0 ? 0 : a * (o.letterSpaceDiscretionaryHyphen ? 2 : 1)), oe = {
5969
+ let oe = cu(M === null ? "-" : o.hyphenFromPrimaryFont ? Pl(S) : "‐", S, C) + (a === 0 ? 0 : a * (o.letterSpaceDiscretionaryHyphen ? 2 : 1)), se = {
5970
5970
  widthTrims: null,
5971
5971
  lineStartExtras: null,
5972
5972
  lineEndTrims: null,
5973
5973
  overflowLineEndTrims: null
5974
5974
  };
5975
5975
  if (o.hanKerning && Yu(h)) {
5976
- oe = rd(S, e, t, n);
5977
- let r = oe.widthTrims;
5976
+ se = rd(S, e, t, n);
5977
+ let r = se.widthTrims;
5978
5978
  if (r !== null) for (let e = 0; e < r.length; e++) g[b + e] = g[b + e] - r[e];
5979
5979
  }
5980
- let P = oe.lineStartExtras;
5980
+ let N = se.lineStartExtras;
5981
5981
  if (o.kernsAcrossCanvasWords && S.measuredKana && S.kanaKerning !== null && ql.test(h)) {
5982
5982
  let r = au(S);
5983
- r !== null && (P = Ed(P, g, b, e, t, n, S, r));
5983
+ r !== null && (N = Ed(N, g, b, e, t, n, S, r));
5984
5984
  }
5985
- let F = oe.lineEndTrims;
5986
- o.hangsIdeographicSpace && h.includes(" ") && (F = Dd(F, e, S, a, ae, t, n));
5987
- let se = {
5985
+ let P = se.lineEndTrims;
5986
+ o.hangsIdeographicSpace && h.includes(" ") && (P = Dd(P, e, S, a, oe, t, n));
5987
+ let ce = {
5988
5988
  widths: g,
5989
5989
  segmentFlags: _,
5990
- simpleLineWalkFastPath: M && !e.hasUnbroken,
5991
- simpleLineCountFastPath: M,
5990
+ simpleLineWalkFastPath: te && !e.hasUnbroken,
5991
+ simpleLineCountFastPath: te,
5992
5992
  breakableFitAdvances: v,
5993
5993
  letterSpacing: a,
5994
- discretionaryHyphenWidth: ae,
5995
- discretionaryHyphenContexts: N,
5996
- breakableLineStartExtras: te,
5997
- lineStartExtras: P,
5998
- lineEndTrims: F,
5999
- overflowLineEndTrims: oe.overflowLineEndTrims,
5994
+ discretionaryHyphenWidth: oe,
5995
+ discretionaryHyphenContexts: M,
5996
+ breakableLineStartExtras: ne,
5997
+ lineStartExtras: N,
5998
+ lineEndTrims: P,
5999
+ overflowLineEndTrims: se.overflowLineEndTrims,
6000
6000
  tabStopAdvance: D,
6001
6001
  minimumTabAdvance: O
6002
6002
  };
6003
- return y !== null && (se.segments = y), se;
6003
+ return y !== null && (ce.segments = y), ce;
6004
6004
  }
6005
6005
  function Ed(e, t, n, r, i, a, o, s) {
6006
6006
  let { normalized: c, starts: l, flags: u } = r;
@@ -6120,9 +6120,9 @@ function zd(e, t, n, r, i, a) {
6120
6120
  return u < l;
6121
6121
  }
6122
6122
  function Bd(e, t, n, r, i, a = !1) {
6123
- let { widths: o, segmentFlags: s, breakableFitAdvances: c, discretionaryHyphenWidth: l, letterSpacing: u, lineStartExtras: d, lineEndTrims: f, overflowLineEndTrims: p, tabStopAdvance: m, minimumTabAdvance: h } = e, g = o.length, _ = e.items, v = _ === void 0 ? null : _.hyphenWidths, y = _ === void 0 ? null : _.hyphenRooms, b = _ === void 0 ? null : _.itemEndHalts, x = _ === void 0 ? null : _.insideExtras, S = _ === void 0 ? null : _.fillExtras, C = _ === void 0 ? null : _.openingEdges, w = _ === void 0 ? null : _.emptyObjectSpaces, T = _ === void 0 ? null : _.emptyObjectReturns, E = uu(), D = 16 | (E.hangTabs ? 32 : 0), O = _ !== void 0 && E.hangsSpacesPerTextFrame, k = E.testsHyphenBeforeAtomic, A = E.zeroWidthGlueTakesLine, j = E.tabsInAppUnits, ee = E.paddedOpeningFit, M = E.hardBreakItemRetreat, te = Math.max(0, n), N = te + E.lineFitEpsilon, ne = e.discretionaryHyphenContexts !== null, re = E.unfitHyphenRetreat === "reduced-width", ie = re ? l : 0, ae = ne && E.unfitHyphenRetreat === "full-width-or-first", oe = E.unfitHyphenRetreat === "full-width", P = null;
6123
+ let { widths: o, segmentFlags: s, breakableFitAdvances: c, discretionaryHyphenWidth: l, letterSpacing: u, lineStartExtras: d, lineEndTrims: f, overflowLineEndTrims: p, tabStopAdvance: m, minimumTabAdvance: h } = e, g = o.length, _ = e.items, v = _ === void 0 ? null : _.hyphenWidths, y = _ === void 0 ? null : _.hyphenRooms, b = _ === void 0 ? null : _.itemEndHalts, x = _ === void 0 ? null : _.insideExtras, S = _ === void 0 ? null : _.fillExtras, C = _ === void 0 ? null : _.openingEdges, w = _ === void 0 ? null : _.emptyObjectSpaces, T = _ === void 0 ? null : _.emptyObjectReturns, E = uu(), D = 16 | (E.hangTabs ? 32 : 0), O = _ !== void 0 && E.hangsSpacesPerTextFrame, k = E.testsHyphenBeforeAtomic, ee = E.zeroWidthGlueTakesLine, A = E.tabsInAppUnits, j = E.paddedOpeningFit, te = E.hardBreakItemRetreat, ne = Math.max(0, n), M = ne + E.lineFitEpsilon, re = e.discretionaryHyphenContexts !== null, ie = E.unfitHyphenRetreat === "reduced-width", ae = ie ? l : 0, oe = re && E.unfitHyphenRetreat === "full-width-or-first", se = E.unfitHyphenRetreat === "full-width", N = null;
6124
6124
  for (;;) {
6125
- let n = t.segmentIndex, E = t.graphemeIndex, F = 0, se = !1, ce = n, le = E, I = -1, ue = 0, de = -1, fe = 0, pe = -1, L = 0, me = !1, he = 0, ge = 0, _e = !0, ve = !1, ye = -1, R = 0, be = 0, xe = !1, Se = null;
6125
+ let n = t.segmentIndex, E = t.graphemeIndex, P = 0, ce = !1, le = n, ue = E, de = -1, F = 0, fe = -1, I = 0, pe = -1, L = 0, me = !1, he = 0, ge = 0, _e = !0, ve = !1, ye = -1, R = 0, be = 0, xe = !1, Se = null;
6126
6126
  if ((s[n] & 15) == 8) t.segmentIndex = n + 1, t.graphemeIndex = 0, Se = d === null ? 0 : d[n];
6127
6127
  else {
6128
6128
  decided: {
@@ -6132,70 +6132,70 @@ function Bd(e, t, n, r, i, a = !1) {
6132
6132
  t = g;
6133
6133
  break;
6134
6134
  }
6135
- let i, a = 0, oe = s[r], P = oe & 15;
6136
- if (P === 8) {
6135
+ let i, a = 0, se = s[r], N = se & 15;
6136
+ if (N === 8) {
6137
6137
  t = r + 1;
6138
6138
  break;
6139
6139
  }
6140
- let Se = !!(oe & 16), Ce = !!(1 << P & Od), we = r === n ? E : 0, Te = u !== 0 && se && !_e && !ve ? u : 0, z = 0;
6141
- u !== 0 && (Se || P === 7 || P === 5 || P === 9 || C !== null && C[r] !== 0) && (z = Te, ve = !Se), P !== 2 && P !== 6 && (_e = !1);
6142
- let B = P === 5 ? _ === void 0 ? Md(F + z, m, h, j) : Nd(e, _, r, se ? F + z : d === null ? 0 : d[r], j) : o[r], V = z + B, Ee = f === null ? 0 : f[r];
6143
- if (P === 3 && we === 0) {
6144
- if (se) {
6140
+ let Se = !!(se & 16), Ce = !!(1 << N & Od), we = r === n ? E : 0, Te = u !== 0 && ce && !_e && !ve ? u : 0, z = 0;
6141
+ u !== 0 && (Se || N === 7 || N === 5 || N === 9 || C !== null && C[r] !== 0) && (z = Te, ve = !Se), N !== 2 && N !== 6 && (_e = !1);
6142
+ let B = N === 5 ? _ === void 0 ? Md(P + z, m, h, A) : Nd(e, _, r, ce ? P + z : d === null ? 0 : d[r], A) : o[r], V = z + B, Ee = f === null ? 0 : f[r];
6143
+ if (N === 3 && we === 0) {
6144
+ if (ce) {
6145
6145
  let e = l, t = !0;
6146
- _ !== void 0 && (ne && r > n && (s[r - 1] & 15) == 9 && (de = r, fe = F), O && pe === r && (pe = r + 1, L = Math.max(L, Math.min(F, te))), v !== null && (e = v[r]), t = k || r + 1 === g || (s[r + 1] & 15) != 9 || C !== null && C[r + 1] !== 0), ce = r + 1, le = 0, r + 1 < g && (s[r + 1] & 15) != 8 && (I = r + 1, ue = F + e, ne && ((t ? ue : F) <= N || ae && de < 0) && (de = I, fe = ue));
6146
+ _ !== void 0 && (re && r > n && (s[r - 1] & 15) == 9 && (fe = r, I = P), O && pe === r && (pe = r + 1, L = Math.max(L, Math.min(P, ne))), v !== null && (e = v[r]), t = k || r + 1 === g || (s[r + 1] & 15) != 9 || C !== null && C[r + 1] !== 0), le = r + 1, ue = 0, r + 1 < g && (s[r + 1] & 15) != 8 && (de = r + 1, F = P + e, re && ((t ? F : P) <= M || oe && fe < 0) && (fe = de, I = F));
6147
6147
  }
6148
6148
  continue;
6149
6149
  }
6150
6150
  let De = 0;
6151
- if (u !== 0 && !Se && !Ce && P !== 7) De = Te + B;
6152
- else if (Ce ? P === 5 : B !== 0 || P === 7) {
6151
+ if (u !== 0 && !Se && !Ce && N !== 7) De = Te + B;
6152
+ else if (Ce ? N === 5 : B !== 0 || N === 7) {
6153
6153
  let e = B + (Se ? u : 0);
6154
6154
  e !== 0 && (De = z + e);
6155
6155
  }
6156
- let Oe = !!(1 << P & D);
6157
- if (O && P === 2 && pe === r && (Oe = !0), Oe && (pe !== r && (L = F - ge + z, me = !1, _ !== void 0 && r > n && (s[r - 1] & 15) == 9 && (me = Rd(s, g, r, D), me || (I = r, ue = F - ge)), he = 0), pe = r + 1, C !== null && (L += C[r], he += C[r])), !se && P === 6 && !A) {
6158
- ce = r + 1, le = 0;
6156
+ let Oe = !!(1 << N & D);
6157
+ if (O && N === 2 && pe === r && (Oe = !0), Oe && (pe !== r && (L = P - ge + z, me = !1, _ !== void 0 && r > n && (s[r - 1] & 15) == 9 && (me = Rd(s, g, r, D), me || (de = r, F = P - ge)), he = 0), pe = r + 1, C !== null && (L += C[r], he += C[r])), !ce && N === 6 && !ee) {
6158
+ le = r + 1, ue = 0;
6159
6159
  continue;
6160
6160
  }
6161
- if (se) {
6162
- let e = Oe ? L - he : F + De, t = e - Ee > N;
6161
+ if (ce) {
6162
+ let e = Oe ? L - he : P + De, t = e - Ee > M;
6163
6163
  if (_ !== void 0) {
6164
6164
  let n = !1;
6165
- if (w !== null && P === 9 && B === 0 && e > N) {
6166
- let e = pe === r ? L : F, t = w[r];
6167
- n = e <= N || !(t >= 0 && e - t > N || T[r] === 1);
6165
+ if (w !== null && N === 9 && B === 0 && e > M) {
6166
+ let e = pe === r ? L : P, t = w[r];
6167
+ n = e <= M || !(t >= 0 && e - t > M || T[r] === 1);
6168
6168
  }
6169
- let i = De < 0 && F - ge > N;
6170
- t = (t || i) && !(Oe && me) && !n, O && !t && pe === r && P === 9 && B === 0 && (pe = r + 1, L = Math.max(L, Math.min(F + V, te)));
6169
+ let i = De < 0 && P - ge > M;
6170
+ t = (t || i) && !(Oe && me) && !n, O && !t && pe === r && N === 9 && B === 0 && (pe = r + 1, L = Math.max(L, Math.min(P + V, ne)));
6171
6171
  }
6172
6172
  if (t) {
6173
- let t = F - ge;
6174
- if (Ce && (Oe || P !== 5) && (t <= N || I < 0 && (P === 1 || P === 2) || P === 2 && (s[r - 1] & 15) == 9)) {
6175
- be = Oe ? L : t, F += V, ye = r + 1, R = 0;
6173
+ let t = P - ge;
6174
+ if (Ce && (Oe || N !== 5) && (t <= M || de < 0 && (N === 1 || N === 2) || N === 2 && (s[r - 1] & 15) == 9)) {
6175
+ be = Oe ? L : t, P += V, ye = r + 1, R = 0;
6176
6176
  break decided;
6177
6177
  }
6178
- if (P === 5 && !Oe && I < 0) {
6178
+ if (N === 5 && !Oe && de < 0) {
6179
6179
  ye = r, R = 0, be = pe === r && r > n ? L : t;
6180
6180
  break decided;
6181
6181
  }
6182
- let l = !!(oe & 32);
6183
- if (P === 9 && l && pe === r && (ee === "start" ? L - he / 2 <= N && F - he / 2 > N : ee === "placed" && L - he + B - Ee <= N)) {
6184
- pe = r + 1, L += B, he += B, F += V, ce = r + 1, le = 0;
6182
+ let l = !!(se & 32);
6183
+ if (N === 9 && l && pe === r && (j === "start" ? L - he / 2 <= M && P - he / 2 > M : j === "placed" && L - he + B - Ee <= M)) {
6184
+ pe = r + 1, L += B, he += B, P += V, le = r + 1, ue = 0;
6185
6185
  continue;
6186
6186
  }
6187
- if (l && I >= 0 && (ce = I, le = 0), !l || I >= 0) {
6187
+ if (l && de >= 0 && (le = de, ue = 0), !l || de >= 0) {
6188
6188
  xe = !0;
6189
6189
  break decided;
6190
6190
  }
6191
- if (p !== null && e - p[r] <= N) {
6192
- F += V, ce = r + 1, le = 0, ge = p[r], b !== null && b[r] !== 0 && (F -= ge, ge = 0);
6191
+ if (p !== null && e - p[r] <= M) {
6192
+ P += V, le = r + 1, ue = 0, ge = p[r], b !== null && b[r] !== 0 && (P -= ge, ge = 0);
6193
6193
  continue;
6194
6194
  }
6195
- if (P === 9 && M !== "item" && r + 1 < g && (s[r + 1] & 15) == 8) {
6195
+ if (N === 9 && te !== "item" && r + 1 < g && (s[r + 1] & 15) == 8) {
6196
6196
  let e = s[r - 1], t = e & 15, i = t === 4 ? c[r - 1] : null;
6197
6197
  if (i !== null) {
6198
- let e = i.length, t = i[0], a = M !== "fit" || F <= N ? 1 : t > 0 ? Math.min(e, Math.ceil((F - N) / t)) : e, o = C !== null && C[n] !== 0 ? n + 1 : n;
6198
+ let e = i.length, t = i[0], a = te !== "fit" || P <= M ? 1 : t > 0 ? Math.min(e, Math.ceil((P - M) / t)) : e, o = C !== null && C[n] !== 0 ? n + 1 : n;
6199
6199
  if (r - 1 > o || e - a > E) {
6200
6200
  ye = r - 1, R = e - a, be = L;
6201
6201
  break decided;
@@ -6203,15 +6203,15 @@ function Bd(e, t, n, r, i, a = !1) {
6203
6203
  }
6204
6204
  let a = t === 0 || t === 7 ? c[r - 1] : null, l = e & 16 ? u : 0;
6205
6205
  if (a !== null && (r - 1 > n || a.length - 1 > E)) {
6206
- ye = r - 1, R = a.length - 1, be = F - a[R] - l;
6206
+ ye = r - 1, R = a.length - 1, be = P - a[R] - l;
6207
6207
  break decided;
6208
6208
  }
6209
6209
  if (a === null && (t === 0 || t === 7) && r - 1 > n) {
6210
- ye = r - 1, R = 0, be = F - o[r - 1] - l;
6210
+ ye = r - 1, R = 0, be = P - o[r - 1] - l;
6211
6211
  break decided;
6212
6212
  }
6213
6213
  if (i !== null || t !== 4 && t !== 5) {
6214
- F += V, ce = r + 1, le = 0, ge = 0;
6214
+ P += V, le = r + 1, ue = 0, ge = 0;
6215
6215
  continue;
6216
6216
  }
6217
6217
  }
@@ -6221,44 +6221,44 @@ function Bd(e, t, n, r, i, a = !1) {
6221
6221
  }
6222
6222
  i = 0, a = z;
6223
6223
  } else {
6224
- oe & 64 && !Ce && I !== r && (I = r, ue = F), ne && !Ce && !(oe & 32) && r > n && !kd(s[r - 1] & 15) && (!re || F + (y === null ? l : y[r]) <= N) && (de = r, fe = F), ce = r + 1, le = 0, b !== null && e > N && b[r] !== 0 ? (F += V - Ee, ge = 0) : (F += V, De !== 0 && !Oe && (ge = e > N && P !== 9 ? Ee : 0)), Ce && (r + 1 === g || !(s[r + 1] & 32)) && (I = r + 1, ue = Oe ? L : P === 5 ? F : F - V - ge), ne && Ce && ue + (y === null || I < 0 ? ie : y[I]) <= N && (de = I, fe = ue);
6224
+ se & 64 && !Ce && de !== r && (de = r, F = P), re && !Ce && !(se & 32) && r > n && !kd(s[r - 1] & 15) && (!ie || P + (y === null ? l : y[r]) <= M) && (fe = r, I = P), le = r + 1, ue = 0, b !== null && e > M && b[r] !== 0 ? (P += V - Ee, ge = 0) : (P += V, De !== 0 && !Oe && (ge = e > M && N !== 9 ? Ee : 0)), Ce && (r + 1 === g || !(s[r + 1] & 32)) && (de = r + 1, F = Oe ? L : N === 5 ? P : P - V - ge), re && Ce && F + (y === null || de < 0 ? ae : y[de]) <= M && (fe = de, I = F);
6225
6225
  continue;
6226
6226
  }
6227
6227
  } else if (we > 0) i = we;
6228
6228
  else {
6229
- let e = d === null ? 0 : d[r], t = p !== null && De + e - p[r] <= N ? p[r] : Ee;
6230
- if (De + e - t > N && c[r] !== null && !Oe) i = 0;
6229
+ let e = d === null ? 0 : d[r], t = p !== null && De + e - p[r] <= M ? p[r] : Ee;
6230
+ if (De + e - t > M && c[r] !== null && !Oe) i = 0;
6231
6231
  else {
6232
- se = !0, ce = r + 1, le = 0, F = B + e, Oe && (L += e), ge = De + e > N && P !== 9 ? t : 0, b !== null && ge !== 0 && b[r] !== 0 && (F -= ge, ge = 0), Ce && (r + 1 === g || !(s[r + 1] & 32)) && (I = r + 1, ue = Oe ? L : P === 5 ? F : F - V), ne && Ce && ue + (y === null || I < 0 ? ie : y[I]) <= N && (de = I, fe = ue);
6232
+ ce = !0, le = r + 1, ue = 0, P = B + e, Oe && (L += e), ge = De + e > M && N !== 9 ? t : 0, b !== null && ge !== 0 && b[r] !== 0 && (P -= ge, ge = 0), Ce && (r + 1 === g || !(s[r + 1] & 32)) && (de = r + 1, F = Oe ? L : N === 5 ? P : P - V), re && Ce && F + (y === null || de < 0 ? ae : y[de]) <= M && (fe = de, I = F);
6233
6233
  continue;
6234
6234
  }
6235
6235
  }
6236
6236
  let ke = c[r], Ae = ke.length;
6237
6237
  for (let t = i; t < Ae; t++) {
6238
6238
  let n = ke[t];
6239
- if (se) {
6240
- let e = F + (n + (t > i ? u : a));
6241
- if (e + u > N) break decided;
6242
- F = e, ce = r, le = t + 1;
6239
+ if (ce) {
6240
+ let e = P + (n + (t > i ? u : a));
6241
+ if (e + u > M) break decided;
6242
+ P = e, le = r, ue = t + 1;
6243
6243
  } else {
6244
- se = !0, ce = r, le = t + 1;
6244
+ ce = !0, le = r, ue = t + 1;
6245
6245
  let i = e.breakableLineStartExtras?.[r] ?? null;
6246
- F = i === null ? n : n + i[t], (t > 0 ? x !== null : S !== null) && (F += t > 0 ? x[r] : S[r]);
6246
+ P = i === null ? n : n + i[t], (t > 0 ? x !== null : S !== null) && (P += t > 0 ? x[r] : S[r]);
6247
6247
  }
6248
6248
  }
6249
- se && ce === r && le === Ae && (ce = r + 1, le = 0);
6249
+ ce && le === r && ue === Ae && (le = r + 1, ue = 0);
6250
6250
  }
6251
- ye = t, R = 0, I === t && le === 0 ? (be = ue, xe = !0) : be = F - ge;
6251
+ ye = t, R = 0, de === t && ue === 0 ? (be = F, xe = !0) : be = P - ge;
6252
6252
  }
6253
- if (se) {
6254
- xe && de >= 0 && I === ce && le === 0 && zd(e, n, ce, ue, N, oe) ? (ye = de, R = 0, be = fe) : ye < 0 && (ye = ce, R = le, be = I === ce && le === 0 ? ue : _ !== void 0 && pe === ce && le === 0 ? L : F - ge), t.segmentIndex = ye, t.graphemeIndex = R;
6255
- let r = R === 0 && pe >= 0 && (ye === pe || ye === pe + 1) && (pe === g || (s[pe] & 15) == 8), i = (r ? F - ge : be) + Pd(e, C, D, n, E, ye, R);
6256
- Se = r ? Math.max(L, Math.min(i, te)) : i;
6253
+ if (ce) {
6254
+ xe && fe >= 0 && de === le && ue === 0 && zd(e, n, le, F, M, se) ? (ye = fe, R = 0, be = I) : ye < 0 && (ye = le, R = ue, be = de === le && ue === 0 ? F : _ !== void 0 && pe === le && ue === 0 ? L : P - ge), t.segmentIndex = ye, t.graphemeIndex = R;
6255
+ let r = R === 0 && pe >= 0 && (ye === pe || ye === pe + 1) && (pe === g || (s[pe] & 15) == 8), i = (r ? P - ge : be) + Pd(e, C, D, n, E, ye, R);
6256
+ Se = r ? Math.max(L, Math.min(i, ne)) : i;
6257
6257
  }
6258
6258
  }
6259
- if (Se === null || (P = Se, i !== null && (i.lineCount++, Se > i.maxLineWidth && (i.maxLineWidth = Se)), r?.(Se, n, E, t.segmentIndex, t.graphemeIndex), a || !Id(e, t))) break;
6259
+ if (Se === null || (N = Se, i !== null && (i.lineCount++, Se > i.maxLineWidth && (i.maxLineWidth = Se)), r?.(Se, n, E, t.segmentIndex, t.graphemeIndex), a || !Id(e, t))) break;
6260
6260
  }
6261
- return P;
6261
+ return N;
6262
6262
  }
6263
6263
  function Vd(e, t, n) {
6264
6264
  let { widths: r, segmentFlags: i, breakableFitAdvances: a, lineStartExtras: o, lineEndTrims: s, overflowLineEndTrims: c } = e, l = Math.max(0, n) + uu().lineFitEpsilon, u = t.segmentIndex, d = a[u], f = o === null ? r[u] : r[u] + o[u], p = s === null ? 0 : s[u], m = c !== null && f - c[u] <= l ? c[u] : p, h, g = 0;
@@ -6318,7 +6318,7 @@ function Zd(e, t, n) {
6318
6318
  };
6319
6319
  }
6320
6320
  // src/viewer/split/BacklinkBadge.tsx
6321
- var Qd = (e, t, n, r, i) => `/artboard/${e}${A(i, {
6321
+ var Qd = (e, t, n, r, i) => `/artboard/${e}${ee(i, {
6322
6322
  with: t[0].from,
6323
6323
  ...n ? { group: r } : { board: r }
6324
6324
  })}`, $d = (e) => {
@@ -6337,7 +6337,7 @@ var Qd = (e, t, n, r, i) => `/artboard/${e}${A(i, {
6337
6337
  };
6338
6338
  function ef({ artboard: e, entries: t, group: n, id: r }) {
6339
6339
  let { t: i } = At(), a = $d(t), o = (i) => {
6340
- ft() ? j({
6340
+ ft() ? A({
6341
6341
  kind: "open-doc",
6342
6342
  document: i,
6343
6343
  key: r
@@ -6403,11 +6403,11 @@ function sf({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6403
6403
  actions: 0,
6404
6404
  lead: 0,
6405
6405
  tail: 0
6406
- }), T = d.width / f, E = T < 160, D = T < 90, O = c !== void 0 && T >= 60, k = ht(r), A = r.title ?? o, j = k ? `${o} · ${r.file.split("/").pop()}` : o;
6406
+ }), T = d.width / f, E = T < 160, D = T < 90, O = c !== void 0 && T >= 60, k = ht(r), ee = r.title ?? o, A = k ? `${o} · ${r.file.split("/").pop()}` : o;
6407
6407
  Fn(() => {
6408
6408
  let e = v.current, n = y.current, r = x.current;
6409
6409
  if (!e || !n || !r) return;
6410
- let i = of(e, A) + (k ? 18 : 0), a = of(n, j), o = b.current, s = o ? of(o, o.textContent ?? "") + rf : 0, c = t ? nf : 0, l = () => {
6410
+ let i = of(e, ee) + (k ? 18 : 0), a = of(n, A), o = b.current, s = o ? of(o, o.textContent ?? "") + rf : 0, c = t ? nf : 0, l = () => {
6411
6411
  let e = {
6412
6412
  title: i,
6413
6413
  id: a,
@@ -6421,8 +6421,8 @@ function sf({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6421
6421
  let u = new ResizeObserver(l);
6422
6422
  return u.observe(r), () => u.disconnect();
6423
6423
  }, [
6424
+ ee,
6424
6425
  A,
6425
- j,
6426
6426
  k,
6427
6427
  a,
6428
6428
  E,
@@ -6434,13 +6434,13 @@ function sf({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6434
6434
  t?.recommended,
6435
6435
  !!t
6436
6436
  ]);
6437
- let { lines: ee, showId: M } = Zd(C, d.width, f);
6438
- Fn(() => (_(o, ee), () => _(o, 1)), [
6437
+ let { lines: j, showId: te } = Zd(C, d.width, f);
6438
+ Fn(() => (_(o, j), () => _(o, 1)), [
6439
6439
  o,
6440
- ee,
6440
+ j,
6441
6441
  _
6442
6442
  ]);
6443
- let te = () => af(`${i}${r.file}`, r.file.split("/").pop() ?? `${o}.html`);
6443
+ let ne = () => af(`${i}${r.file}`, r.file.split("/").pop() ?? `${o}.html`);
6444
6444
  return /* @__PURE__ */ Z("div", {
6445
6445
  "data-board-label": o,
6446
6446
  "data-chrome": "board-label",
@@ -6449,7 +6449,7 @@ function sf({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6449
6449
  left: d.left,
6450
6450
  top: d.top,
6451
6451
  width: T,
6452
- height: Jd[ee],
6452
+ height: Jd[j],
6453
6453
  transform: `scale(${f}) translateY(-100%)`
6454
6454
  },
6455
6455
  children: [
@@ -6461,8 +6461,8 @@ function sf({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6461
6461
  }),
6462
6462
  /* @__PURE__ */ Z("span", {
6463
6463
  className: "x98rzlu x104kibb x1ua5tub xeuugli xb3r6kr xyqdw3p xfifm61 x1d3mw78 xqfszdh xj0a0fe",
6464
- style: { WebkitLineClamp: ee },
6465
- title: A,
6464
+ style: { WebkitLineClamp: j },
6465
+ title: ee,
6466
6466
  children: [
6467
6467
  k && /* @__PURE__ */ X("span", {
6468
6468
  "data-board-type": r.type,
@@ -6477,7 +6477,7 @@ function sf({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6477
6477
  }),
6478
6478
  /* @__PURE__ */ X("span", {
6479
6479
  ref: v,
6480
- children: A
6480
+ children: ee
6481
6481
  }),
6482
6482
  t?.recommended && /* @__PURE__ */ X("span", {
6483
6483
  ref: b,
@@ -6485,10 +6485,10 @@ function sf({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6485
6485
  children: U("choices.recommended")
6486
6486
  }),
6487
6487
  /* @__PURE__ */ X("span", {
6488
- hidden: !M,
6488
+ hidden: !te,
6489
6489
  ref: y,
6490
6490
  className: "xdzw4kq x1fao0z8 x1j6dyjg x1bo0w0s",
6491
- children: j
6491
+ children: A
6492
6492
  })
6493
6493
  ]
6494
6494
  }),
@@ -6513,7 +6513,7 @@ function sf({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6513
6513
  size: 13
6514
6514
  },
6515
6515
  title: U("chrome.download"),
6516
- onClick: te
6516
+ onClick: ne
6517
6517
  })] }),
6518
6518
  u && O && /* @__PURE__ */ X("button", {
6519
6519
  "aria-expanded": e,
@@ -6569,7 +6569,7 @@ function sf({ active: e, choice: t, onChoose: n, board: r, contentBase: i, fonts
6569
6569
  key: "download",
6570
6570
  icon: Nr,
6571
6571
  label: U("chrome.download"),
6572
- onClick: te
6572
+ onClick: ne
6573
6573
  },
6574
6574
  c !== void 0 && !O ? {
6575
6575
  key: "parameters",
@@ -7075,7 +7075,7 @@ function bf({ canvas: e, page: t, changePage: n, viewNow: r, place: i }) {
7075
7075
  page: t,
7076
7076
  ...r()
7077
7077
  } : null), o = Nn((r, a) => e?.pages.some((e) => e.id === r) ? (r !== t && n(r, !1), i(a), !0) : !1);
7078
- K(() => re({
7078
+ K(() => ie({
7079
7079
  read: a,
7080
7080
  apply: (e) => e.kind === "artboard" && o(e.page, {
7081
7081
  x: e.x,
@@ -7674,7 +7674,7 @@ function Uf({ canvas: e, frame: t, order: n, states: r, updates: i }) {
7674
7674
  };
7675
7675
  }
7676
7676
  // src/viewer/hooks/useChoices.ts
7677
- var Wf = (e, t) => e.closed ? "closed" : fe(t, e.id).submitted ? "submitted" : "open";
7677
+ var Wf = (e, t) => e.closed ? "closed" : I(t, e.id).submitted ? "submitted" : "open";
7678
7678
  function Gf({ canvas: e, layout: t, page: n, threads: r, listening: i, comment: a }) {
7679
7679
  let o = q(() => e && t ? E(e, t) : [], [e, t]), s = q(() => {
7680
7680
  let t = /* @__PURE__ */ new Map();
@@ -7704,7 +7704,7 @@ function Gf({ canvas: e, layout: t, page: n, threads: r, listening: i, comment:
7704
7704
  if (!t) return null;
7705
7705
  let i = l.get(t.id);
7706
7706
  if (i !== "open" && i !== "submitted") return null;
7707
- let a = new Set(t.groups.flatMap((t) => e?.groups?.[t]?.boards ?? [])), s = new Set(t.groups), u = r.filter((e) => !mi(e) && e.messages.some((e) => !e.deleted) && (e.anchor.board && a.has(e.anchor.board) || e.anchor.group && s.has(e.anchor.group))).length, d = t.groups.map((e) => [e, c.get(e)]), f = fe(r, t.id);
7707
+ let a = new Set(t.groups.flatMap((t) => e?.groups?.[t]?.boards ?? [])), s = new Set(t.groups), u = r.filter((e) => !mi(e) && e.messages.some((e) => !e.deleted) && (e.anchor.board && a.has(e.anchor.board) || e.anchor.group && s.has(e.anchor.group))).length, d = t.groups.map((e) => [e, c.get(e)]), f = I(r, t.id);
7708
7708
  return {
7709
7709
  round: t,
7710
7710
  state: i,
@@ -7727,7 +7727,7 @@ function Gf({ canvas: e, layout: t, page: n, threads: r, listening: i, comment:
7727
7727
  }, p = (t) => {
7728
7728
  let n = s.get(t);
7729
7729
  if (!n) return null;
7730
- let r = I(o, n), i = c.get(n);
7730
+ let r = de(o, n), i = c.get(n);
7731
7731
  return {
7732
7732
  group: n,
7733
7733
  chosen: !!i?.choice && i.choice === t && !i.byRecommendation,
@@ -8417,56 +8417,56 @@ function Sp(e) {
8417
8417
  x.current === void 0 && (b(!0), O("transform")), clearTimeout(x.current), x.current = setTimeout(() => {
8418
8418
  x.current = void 0, O(""), b(!1), a(g.current);
8419
8419
  }, 150);
8420
- }, [O]), A = G((e) => {
8420
+ }, [O]), ee = G((e) => {
8421
8421
  g.current = e, T(), bp(S.current, e, w.current) && a(e);
8422
- }, [T]), j = G((e) => {
8422
+ }, [T]), A = G((e) => {
8423
8423
  g.current = typeof e == "function" ? e(g.current) : e, k(), !v.current && (v.current = !0, _.current = requestAnimationFrame(() => {
8424
- v.current = !1, _.current = null, A(g.current);
8424
+ v.current = !1, _.current = null, ee(g.current);
8425
8425
  }));
8426
- }, [k, A]), ee = G((e, t = !1) => {
8426
+ }, [k, ee]), j = G((e, t = !1) => {
8427
8427
  _.current !== null && cancelAnimationFrame(_.current), _.current = null, v.current = !1, g.current = e, t && k(), T(), a(e);
8428
8428
  }, [k, T]);
8429
8429
  K(() => () => {
8430
8430
  _.current !== null && cancelAnimationFrame(_.current), clearTimeout(x.current);
8431
8431
  }, []);
8432
- let M = G((e) => ee(e), [ee]), te = J(null), N = G(() => {
8433
- te.current !== null && cancelAnimationFrame(te.current), te.current = null;
8432
+ let te = G((e) => j(e), [j]), ne = J(null), M = G(() => {
8433
+ ne.current !== null && cancelAnimationFrame(ne.current), ne.current = null;
8434
8434
  }, []);
8435
- K(() => N, [N]);
8436
- let [ne, re] = Y(() => ({
8435
+ K(() => M, [M]);
8436
+ let [re, ie] = Y(() => ({
8437
8437
  width: typeof innerWidth == "number" ? innerWidth : 0,
8438
8438
  height: typeof innerHeight == "number" ? innerHeight : 0
8439
8439
  }));
8440
8440
  K(() => {
8441
8441
  let e = t.current;
8442
8442
  if (!e || typeof ResizeObserver != "function") return;
8443
- let n = new ResizeObserver(() => re((t) => t.width === e.clientWidth && t.height === e.clientHeight ? t : {
8443
+ let n = new ResizeObserver(() => ie((t) => t.width === e.clientWidth && t.height === e.clientHeight ? t : {
8444
8444
  width: e.clientWidth,
8445
8445
  height: e.clientHeight
8446
8446
  }));
8447
8447
  return n.observe(e), () => n.disconnect();
8448
8448
  }, []), Fn(() => {
8449
- w.current = ne;
8450
- }, [ne]);
8451
- let ie = G((e, t) => j((n) => ({
8449
+ w.current = re;
8450
+ }, [re]);
8451
+ let ae = G((e, t) => A((n) => ({
8452
8452
  ...n,
8453
8453
  x: n.x + e,
8454
8454
  y: n.y + t
8455
- })), [j]), ae = G((e) => {
8455
+ })), [A]), oe = G((e) => {
8456
8456
  if (e.zoom) {
8457
8457
  let t = Math.max(-20, Math.min(pp, e.deltaY));
8458
- j((n) => d(n, Math.exp(-t * fp), e.x, e.y));
8459
- } else ie(-e.deltaX, -e.deltaY);
8460
- }, [ie, j]);
8458
+ A((n) => d(n, Math.exp(-t * fp), e.x, e.y));
8459
+ } else ae(-e.deltaX, -e.deltaY);
8460
+ }, [ae, A]);
8461
8461
  K(() => {
8462
8462
  let e = t.current;
8463
8463
  if (!e) return;
8464
8464
  let n = (t) => {
8465
8465
  let n = t.target, r = t.ctrlKey || t.metaKey;
8466
8466
  if (n?.closest?.(vp) || !r && xp(n, e, t.deltaX, t.deltaY)) return;
8467
- t.preventDefault(), N();
8467
+ t.preventDefault(), M();
8468
8468
  let i = e.getBoundingClientRect(), a = t.deltaMode === 1 ? 16 : t.deltaMode === 2 ? e.clientHeight : 1;
8469
- ae({
8469
+ oe({
8470
8470
  deltaX: t.deltaX * a,
8471
8471
  deltaY: t.deltaY * a,
8472
8472
  x: t.clientX - i.left,
@@ -8479,7 +8479,7 @@ function Sp(e) {
8479
8479
  return e.addEventListener("wheel", n, { passive: !1 }), window.addEventListener("wheel", r, { passive: !1 }), () => {
8480
8480
  e.removeEventListener("wheel", n), window.removeEventListener("wheel", r);
8481
8481
  };
8482
- }, [ae, N]), K(() => {
8482
+ }, [oe, M]), K(() => {
8483
8483
  let e = (e) => e.target?.closest?.("input, textarea, select, [contenteditable], [data-chrome]"), t = (t) => {
8484
8484
  t.code === "Space" && !e(t) && (t.preventDefault(), s(!0));
8485
8485
  }, n = (e) => {
@@ -8489,16 +8489,16 @@ function Sp(e) {
8489
8489
  window.removeEventListener("keydown", t), window.removeEventListener("keyup", n), window.removeEventListener("blur", r);
8490
8490
  };
8491
8491
  }, []);
8492
- let oe = e === "hand" || o, P = G((e) => {
8492
+ let se = e === "hand" || o, N = G((e) => {
8493
8493
  let t = e.pointerType === "touch", n = e.button === 1;
8494
- (t || (oe || n) && (e.button === 0 || n)) && e.currentTarget.contains(e.target) && (e.target.closest("[data-chrome]") || (N(), e.currentTarget.setPointerCapture(e.pointerId), p.current = {
8494
+ (t || (se || n) && (e.button === 0 || n)) && e.currentTarget.contains(e.target) && (e.target.closest("[data-chrome]") || (M(), e.currentTarget.setPointerCapture(e.pointerId), p.current = {
8495
8495
  x: e.clientX,
8496
8496
  y: e.clientY
8497
8497
  }, t && h.current.set(e.pointerId, {
8498
8498
  x: e.clientX,
8499
8499
  y: e.clientY
8500
8500
  }), f(!0)));
8501
- }, [oe, N]), F = G((e) => {
8501
+ }, [se, M]), P = G((e) => {
8502
8502
  if (e.pointerType === "touch" && !h.current.has(e.pointerId)) return;
8503
8503
  if (h.current.has(e.pointerId)) {
8504
8504
  let t = [...h.current.values()];
@@ -8508,7 +8508,7 @@ function Sp(e) {
8508
8508
  });
8509
8509
  let n = [...h.current.values()];
8510
8510
  if (t.length >= 2) {
8511
- j((e) => u(e, [t[0], t[1]], [n[0], n[1]]));
8511
+ A((e) => u(e, [t[0], t[1]], [n[0], n[1]]));
8512
8512
  return;
8513
8513
  }
8514
8514
  }
@@ -8516,49 +8516,49 @@ function Sp(e) {
8516
8516
  t && (p.current = {
8517
8517
  x: e.clientX,
8518
8518
  y: e.clientY
8519
- }, j((n) => ({
8519
+ }, A((n) => ({
8520
8520
  ...n,
8521
8521
  x: n.x + e.clientX - t.x,
8522
8522
  y: n.y + e.clientY - t.y
8523
8523
  })));
8524
- }, [j]), se = G((e) => {
8524
+ }, [A]), ce = G((e) => {
8525
8525
  e ? h.current.delete(e.pointerId) : h.current.clear();
8526
8526
  let t = [...h.current.values()][0];
8527
8527
  p.current = t ? { ...t } : null, t || f(!1);
8528
- }, []), ce = () => {
8528
+ }, []), le = () => {
8529
8529
  let e = t.current;
8530
8530
  return {
8531
8531
  cx: (e?.clientWidth ?? 0) / 2,
8532
8532
  cy: (e?.clientHeight ?? 0) / 2
8533
8533
  };
8534
- }, le = G((e, n = dp, i = {}) => {
8534
+ }, ue = G((e, n = dp, i = {}) => {
8535
8535
  let a = t.current;
8536
8536
  if (!a || !e) return;
8537
8537
  let o = r(e, {
8538
8538
  width: a.clientWidth,
8539
8539
  height: a.clientHeight
8540
8540
  }, n);
8541
- if (N(), !i.animate || _p()) {
8542
- ee(o);
8541
+ if (M(), !i.animate || _p()) {
8542
+ j(o);
8543
8543
  return;
8544
8544
  }
8545
8545
  let s = g.current, c = performance.now(), l = () => {
8546
8546
  let e = Math.min(1, (performance.now() - c) / mp);
8547
- e === 1 ? ee(o, !0) : (k(), A(m(s, o, gp(e)))), te.current = e === 1 ? null : requestAnimationFrame(l);
8547
+ e === 1 ? j(o, !0) : (k(), ee(m(s, o, gp(e)))), ne.current = e === 1 ? null : requestAnimationFrame(l);
8548
8548
  };
8549
- te.current = requestAnimationFrame(l);
8549
+ ne.current = requestAnimationFrame(l);
8550
8550
  }, [
8551
- N,
8552
- ee,
8551
+ M,
8552
+ j,
8553
8553
  k,
8554
- A
8555
- ]), I = G((e) => {
8556
- let { cx: t, cy: n } = ce();
8557
- j((r) => d(r, e, t, n));
8558
- }, [j]), ue = G((e) => {
8559
- let { cx: t, cy: n } = ce();
8560
- j((r) => c(r, e, t, n));
8561
- }, [j]);
8554
+ ee
8555
+ ]), de = G((e) => {
8556
+ let { cx: t, cy: n } = le();
8557
+ A((r) => d(r, e, t, n));
8558
+ }, [A]), F = G((e) => {
8559
+ let { cx: t, cy: n } = le();
8560
+ A((r) => c(r, e, t, n));
8561
+ }, [A]);
8562
8562
  return {
8563
8563
  viewportRef: t,
8564
8564
  worldRef: E,
@@ -8567,22 +8567,22 @@ function Sp(e) {
8567
8567
  viewNow: G(() => g.current, []),
8568
8568
  gesturing: y,
8569
8569
  scaling: y,
8570
- size: ne,
8571
- place: M,
8572
- fit: le,
8573
- zoomBy: I,
8574
- zoomTo: ue,
8575
- panBy: ie,
8576
- wheelAt: ae,
8577
- panning: oe,
8570
+ size: re,
8571
+ place: te,
8572
+ fit: ue,
8573
+ zoomBy: de,
8574
+ zoomTo: F,
8575
+ panBy: ae,
8576
+ wheelAt: oe,
8577
+ panning: se,
8578
8578
  setSpaceHeld: s,
8579
- cursor: l ? "grabbing" : oe ? "grab" : e === "comment" ? bn : pn,
8580
- hand: l ? "pinch" : oe ? "open" : null,
8579
+ cursor: l ? "grabbing" : se ? "grab" : e === "comment" ? bn : pn,
8580
+ hand: l ? "pinch" : se ? "open" : null,
8581
8581
  handlers: {
8582
- onPointerDown: P,
8583
- onPointerMove: F,
8584
- onPointerUp: se,
8585
- onPointerCancel: se
8582
+ onPointerDown: N,
8583
+ onPointerMove: P,
8584
+ onPointerUp: ce,
8585
+ onPointerCancel: ce
8586
8586
  }
8587
8587
  };
8588
8588
  }
@@ -8689,7 +8689,7 @@ function kp({ canvas: e, page: t, threads: n, stale: r, versions: i, comment: a
8689
8689
  t,
8690
8690
  n,
8691
8691
  r
8692
- ]), d = q(() => oe(c, l, t, n, r), [
8692
+ ]), d = q(() => se(c, l, t, n, r), [
8693
8693
  c,
8694
8694
  l,
8695
8695
  t,
@@ -9573,7 +9573,7 @@ function Wp({ canvas: e, layout: t, fit: n, threads: r, stale: i }) {
9573
9573
  cancelAnimationFrame(n), cancelAnimationFrame(t);
9574
9574
  };
9575
9575
  }, [l, s]), K(() => {
9576
- e && ft() && j({
9576
+ e && ft() && A({
9577
9577
  kind: "board-state",
9578
9578
  board: {
9579
9579
  canvas: e,
@@ -9595,12 +9595,12 @@ function Wp({ canvas: e, layout: t, fit: n, threads: r, stale: i }) {
9595
9595
  let t = e.target;
9596
9596
  if (t?.closest("[data-backlink-badge]")) return;
9597
9597
  let n = t?.closest("[data-group-label], [data-board-label]"), r = n?.dataset.groupLabel ?? n?.dataset.boardLabel;
9598
- r && j({
9598
+ r && A({
9599
9599
  kind: "select",
9600
9600
  key: r
9601
9601
  });
9602
9602
  };
9603
- return document.addEventListener("click", t, !0), j({ kind: "ready" }), () => {
9603
+ return document.addEventListener("click", t, !0), A({ kind: "ready" }), () => {
9604
9604
  e(), document.removeEventListener("click", t, !0);
9605
9605
  };
9606
9606
  }, []);
@@ -9662,7 +9662,7 @@ process.env.NODE_ENV !== "production" && (qp.displayName = "LabelableProvider");
9662
9662
  // ../../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
9663
9663
  function Jp(e, t) {
9664
9664
  let n = ve(e);
9665
- return ce(() => (t(n), () => {
9665
+ return le(() => (t(n), () => {
9666
9666
  t((e) => e === n ? void 0 : e);
9667
9667
  }), [n, t]), n;
9668
9668
  }
@@ -9681,8 +9681,8 @@ function Yp(e = {}) {
9681
9681
  pe(t) && Zp(t);
9682
9682
  }
9683
9683
  function d(e) {
9684
- let t = ee(e.nativeEvent);
9685
- ie(t, "button,input,select,textarea") || (!e.defaultPrevented && e.detail > 1 && e.preventDefault(), !r && u(e));
9684
+ let t = j(e.nativeEvent);
9685
+ ae(t, "button,input,select,textarea") || (!e.defaultPrevented && e.detail > 1 && e.preventDefault(), !r && u(e));
9686
9686
  }
9687
9687
  return r ? {
9688
9688
  id: c,
@@ -9703,7 +9703,7 @@ function Xp(e, t) {
9703
9703
  if (e) return e;
9704
9704
  n = n.host.getRootNode();
9705
9705
  }
9706
- return te(e).getElementById(t);
9706
+ return ne(e).getElementById(t);
9707
9707
  }
9708
9708
  function Zp(e) {
9709
9709
  e.focus({ focusVisible: !0 });
@@ -9813,16 +9813,16 @@ function im(e) {
9813
9813
  for (let e of $p) if (e !== "valid" && e !== "valueMissing" && e !== "customError" && D.validity[e]) return;
9814
9814
  }
9815
9815
  h.clear(), C();
9816
- let k = O(), A = rm(D), j = u();
9817
- if (A.length === 0 || j) {
9816
+ let k = O(), ee = rm(D), A = u();
9817
+ if (ee.length === 0 || A) {
9818
9818
  let t = Array.from(n.current.fields.values()).reduce((e, t) => (t.name && (e[t.name] = t.getValue()), e), {}), r = i(e, t), o;
9819
9819
  if (typeof r == "object" && r && "then" in r) {
9820
- if (k.valid === !1 ? w(k, A) : d !== "onSubmit" && a.state.customError || (k.valid = null, w(k, A)), o = await r, m !== v.current) return;
9820
+ 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;
9821
9821
  k = O();
9822
9822
  } else o = r;
9823
- A = o ? [].concat(o).filter(Boolean) : [], A.length > 0 ? (k.valid = !1, k.customError = !0, D?.willValidate && S(D, A.join("\n"))) : A = rm(D);
9823
+ ee = o ? [].concat(o).filter(Boolean) : [], ee.length > 0 ? (k.valid = !1, k.customError = !0, D?.willValidate && S(D, ee.join("\n"))) : ee = rm(D);
9824
9824
  }
9825
- w(k, A);
9825
+ w(k, ee);
9826
9826
  }), C = dt((e, t = !1) => {
9827
9827
  if (h.clear(), v.current += 1, t) return;
9828
9828
  let n = u();
@@ -9886,7 +9886,7 @@ function am(e) {
9886
9886
  initialValue: t
9887
9887
  });
9888
9888
  }
9889
- return ce(() => {
9889
+ return le(() => {
9890
9890
  let e = f.current;
9891
9891
  e && e.id && (o(a ? void 0 : e.name), u.current.fields.set(e.id, {
9892
9892
  getValue: m,
@@ -9903,7 +9903,7 @@ function am(e) {
9903
9903
  o,
9904
9904
  g,
9905
9905
  l
9906
- ]), ce(() => {
9906
+ ]), le(() => {
9907
9907
  let e = u.current.fields;
9908
9908
  return () => {
9909
9909
  let t = f.current?.id;
@@ -9920,90 +9920,90 @@ function am(e) {
9920
9920
  }
9921
9921
  // ../../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
9922
9922
  var om = /*#__PURE__*/ W.forwardRef(function(e, t) {
9923
- let { errors: n, validationMode: r, submitCountRef: i } = Ce(), { 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 = dt(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), A = W.useRef(void 0), j = p ?? C, ee = m ?? x, M = W.useRef(j), te = W.useRef(void 0), [N, ne] = W.useState(), re = u ?? N;
9924
- ce(() => {
9925
- p !== void 0 && (M.current = p);
9923
+ let { errors: n, validationMode: r, submitCountRef: i } = Ce(), { 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 = dt(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, j = m ?? x, te = W.useRef(A), ne = W.useRef(void 0), [M, re] = W.useState(), ie = u ?? M;
9924
+ le(() => {
9925
+ p !== void 0 && (te.current = p);
9926
9926
  }, [p]);
9927
- let ie = dt((e) => {
9928
- p === void 0 && (e && (M.current = !0), w(e));
9929
- }), ae = dt((e) => {
9927
+ let ae = dt((e) => {
9928
+ p === void 0 && (e && (te.current = !0), w(e));
9929
+ }), oe = dt((e) => {
9930
9930
  m === void 0 && S(e);
9931
- }), oe = dt(() => l === "onChange" || l === "onSubmit" && i.current > 0), P = re && Object.hasOwn(n, re) ? n[re] : null, F = !!(Array.isArray(P) ? P.length : P), se = f === !0 || F, [le, I] = W.useState({
9931
+ }), se = dt(() => l === "onChange" || l === "onSubmit" && i.current > 0), N = ie && Object.hasOwn(n, ie) ? n[ie] : null, P = !!(Array.isArray(N) ? N.length : N), ce = f === !0 || P, [ue, de] = W.useState({
9932
9932
  state: Ge,
9933
9933
  error: "",
9934
9934
  errors: [],
9935
9935
  value: null,
9936
9936
  initialValue: null
9937
- }), ue = !se && (b ? null : le.state.valid), de = W.useMemo(() => ({
9937
+ }), F = !ce && (b ? null : ue.state.valid), fe = W.useMemo(() => ({
9938
9938
  disabled: b,
9939
- touched: ee,
9940
- dirty: j,
9941
- valid: ue,
9939
+ touched: j,
9940
+ dirty: A,
9941
+ valid: F,
9942
9942
  filled: T,
9943
9943
  focused: O
9944
9944
  }), [
9945
9945
  b,
9946
- ee,
9947
9946
  j,
9948
- ue,
9947
+ A,
9948
+ F,
9949
9949
  T,
9950
9950
  O
9951
- ]), fe = im({
9952
- setValidityData: I,
9951
+ ]), I = im({
9952
+ setValidityData: de,
9953
9953
  validate: y,
9954
- validityData: le,
9954
+ validityData: ue,
9955
9955
  validationDebounceTime: c,
9956
- invalid: se,
9957
- markedDirtyRef: M,
9958
- state: de,
9959
- shouldValidateOnChange: oe,
9956
+ invalid: ce,
9957
+ markedDirtyRef: te,
9958
+ state: fe,
9959
+ shouldValidateOnChange: se,
9960
9960
  validationMode: l,
9961
- registeredFieldIdRef: te
9961
+ registeredFieldIdRef: ne
9962
9962
  }), [pe, L] = am({
9963
- change: fe.change,
9964
- commit: fe.commit,
9965
- invalid: se,
9966
- markedDirtyRef: M,
9963
+ change: I.change,
9964
+ commit: I.commit,
9965
+ invalid: ce,
9966
+ markedDirtyRef: te,
9967
9967
  name: u,
9968
- setRegisteredFieldName: ne,
9969
- registeredFieldIdRef: te,
9970
- setValidityData: I,
9971
- validityData: le
9968
+ setRegisteredFieldName: re,
9969
+ registeredFieldIdRef: ne,
9970
+ setValidityData: de,
9971
+ validityData: ue
9972
9972
  });
9973
9973
  W.useImperativeHandle(h, () => ({ validate: pe }), [pe]);
9974
9974
  let me = W.useMemo(() => ({
9975
- invalid: se,
9976
- name: re,
9977
- validityData: le,
9978
- setValidityData: I,
9975
+ invalid: ce,
9976
+ name: ie,
9977
+ validityData: ue,
9978
+ setValidityData: de,
9979
9979
  disabled: b,
9980
- setTouched: ae,
9981
- setDirty: ie,
9980
+ setTouched: oe,
9981
+ setDirty: ae,
9982
9982
  setFilled: E,
9983
9983
  setFocused: k,
9984
- focusOwnerRef: A,
9984
+ focusOwnerRef: ee,
9985
9985
  validationMode: l,
9986
- shouldValidateOnChange: oe,
9987
- state: de,
9986
+ shouldValidateOnChange: se,
9987
+ state: fe,
9988
9988
  registerFieldControl: L,
9989
- validation: fe
9989
+ validation: I
9990
9990
  }), [
9991
- se,
9992
- re,
9993
- le,
9991
+ ce,
9992
+ ie,
9993
+ ue,
9994
9994
  b,
9995
+ oe,
9995
9996
  ae,
9996
- ie,
9997
9997
  E,
9998
9998
  k,
9999
9999
  l,
10000
- oe,
10001
- de,
10000
+ se,
10001
+ fe,
10002
10002
  L,
10003
- fe
10003
+ I
10004
10004
  ]), he = D("div", e, {
10005
10005
  ref: t,
10006
- state: de,
10006
+ state: fe,
10007
10007
  props: _,
10008
10008
  stateAttributesMapping: ze
10009
10009
  });
@@ -10041,11 +10041,11 @@ var um = /*#__PURE__*/ W.forwardRef(function(e, t) {
10041
10041
  if (o) {
10042
10042
  if (!e) {
10043
10043
  let e = ct.captureOwnerStack?.() || "";
10044
- F(`<Field.Label> expected a <label> element because the \`nativeLabel\` prop is true. Rendering a non-<label> disables native label association, so \`htmlFor\` will not work. Use a real <label> in the \`render\` prop, or set \`nativeLabel\` to \`false\`.${e}`);
10044
+ P(`<Field.Label> expected a <label> element because the \`nativeLabel\` prop is true. Rendering a non-<label> disables native label association, so \`htmlFor\` will not work. Use a real <label> in the \`render\` prop, or set \`nativeLabel\` to \`false\`.${e}`);
10045
10045
  }
10046
10046
  } else if (e) {
10047
10047
  let e = ct.captureOwnerStack?.() || "";
10048
- F(`<Field.Label> expected a non-<label> element because the \`nativeLabel\` prop is false. Rendering a <label> assumes native label behavior while Base UI treats it as non-native, which can cause unexpected pointer behavior. Use a non-<label> in the \`render\` prop, or set \`nativeLabel\` to \`true\`.${e}`);
10048
+ P(`<Field.Label> expected a non-<label> element because the \`nativeLabel\` prop is false. Rendering a <label> assumes native label behavior while Base UI treats it as non-native, which can cause unexpected pointer behavior. Use a non-<label> in the \`render\` prop, or set \`nativeLabel\` to \`true\`.${e}`);
10049
10049
  }
10050
10050
  }, [o]), D("label", e, {
10051
10051
  ref: [t, f],
@@ -10488,7 +10488,7 @@ function gm({ group: e, left: t, top: n, onSubmit: r, onCancel: i }) {
10488
10488
  })
10489
10489
  ]
10490
10490
  }),
10491
- /* @__PURE__ */ X(M, {
10491
+ /* @__PURE__ */ X(te, {
10492
10492
  autoFocus: !0,
10493
10493
  placeholder: a("verdict.reasonPlaceholder"),
10494
10494
  onCancel: i,
@@ -10544,7 +10544,7 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10544
10544
  if (!e || !r) return null;
10545
10545
  let i = e.w / (t.w * n.k);
10546
10546
  return `translate(${e.x - r.left - i * n.x}px, ${e.y - r.top - i * n.y}px) scale(${i})`;
10547
- }, A = () => [g.current, _.current];
10547
+ }, ee = () => [g.current, _.current];
10548
10548
  Fn(() => {
10549
10549
  let { width: e, height: n } = O(), r = t.interactive ? Math.min(1, e / t.w, n / t.h) : Math.min(1, e / t.w), i = {
10550
10550
  k: r,
@@ -10560,7 +10560,7 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10560
10560
  }), lt(h.current, [{ opacity: 0 }, { opacity: 1 }], {
10561
10561
  duration: 200,
10562
10562
  easing: Ee
10563
- }), A().forEach((e, t) => void lt(e, [{
10563
+ }), ee().forEach((e, t) => void lt(e, [{
10564
10564
  opacity: 0,
10565
10565
  transform: `translateY(${t ? 12 : -8}px)`
10566
10566
  }, {
@@ -10592,16 +10592,16 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10592
10592
  f,
10593
10593
  u
10594
10594
  ]);
10595
- let j = () => {
10595
+ let A = () => {
10596
10596
  let e = m.current?.style.transform || "none";
10597
10597
  y(null), lt(m.current, [{ transform: e }, { transform: "none" }], {
10598
10598
  duration: tt.duration,
10599
10599
  easing: tt.easing
10600
- }), [h.current, ...A()].forEach((e) => void lt(e, [{ opacity: Number(e?.style.opacity || 1) }, { opacity: 1 }], {
10600
+ }), [h.current, ...ee()].forEach((e) => void lt(e, [{ opacity: Number(e?.style.opacity || 1) }, { opacity: 1 }], {
10601
10601
  duration: 200,
10602
10602
  easing: Ee
10603
10603
  }));
10604
- }, ee = async () => {
10604
+ }, j = async () => {
10605
10605
  if (w.current) return;
10606
10606
  w.current = !0;
10607
10607
  let e = m.current?.style.transform || "none", t = k(a), n = {
@@ -10617,9 +10617,9 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10617
10617
  duration: 240,
10618
10618
  easing: he
10619
10619
  }).done,
10620
- ...A().map((e) => Cm(e, [{ opacity: Number(e?.style.opacity || 1) }, { opacity: 0 }], n).done)
10620
+ ...ee().map((e) => Cm(e, [{ opacity: Number(e?.style.opacity || 1) }, { opacity: 0 }], n).done)
10621
10621
  ]), l();
10622
- }, M = async (e, t) => {
10622
+ }, te = async (e, t) => {
10623
10623
  if (!t || w.current) return;
10624
10624
  w.current = !0;
10625
10625
  let n = m.current?.style.transform || "none", r = Cm(m.current, [{
@@ -10636,13 +10636,13 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10636
10636
  dir: e,
10637
10637
  leaving: r.cancel
10638
10638
  }, w.current = !1, y(null), c(t);
10639
- }, te = (e) => {
10639
+ }, ne = (e) => {
10640
10640
  let t = b.current;
10641
10641
  if (w.current || t?.mode === "dismiss" || t?.mode === "swipe" || (t && (t.mode = "pan"), p.onPointerDown(e), t)) return;
10642
10642
  [
10643
10643
  m.current,
10644
10644
  h.current,
10645
- ...A()
10645
+ ...ee()
10646
10646
  ].forEach((e) => e?.getAnimations().forEach((e) => e.cancel()));
10647
10647
  let n = ke();
10648
10648
  n.add(e.clientX, e.clientY, performance.now()), b.current = {
@@ -10652,7 +10652,7 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10652
10652
  mode: "pending",
10653
10653
  track: n
10654
10654
  };
10655
- }, N = (e) => {
10655
+ }, M = (e) => {
10656
10656
  let n = b.current;
10657
10657
  if (!n || n.id !== e.pointerId) return p.onPointerMove(e);
10658
10658
  n.track.add(e.clientX, e.clientY, performance.now());
@@ -10668,18 +10668,18 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10668
10668
  dx: r,
10669
10669
  dy: a
10670
10670
  });
10671
- }, ne = (e) => {
10671
+ }, re = (e) => {
10672
10672
  let t = b.current;
10673
10673
  if (!t || t.id !== e.pointerId || (b.current = null, t.mode === "pan" || t.mode === "pending")) return p.onPointerUp(e);
10674
10674
  let n = t.track.velocity(performance.now()), r = e.clientX - t.x, i = e.clientY - t.y;
10675
- if (t.mode === "dismiss") return i > vm && n.y > -.4 || n.y > ym ? void ee() : j();
10675
+ if (t.mode === "dismiss") return i > vm && n.y > -.4 || n.y > ym ? void j() : A();
10676
10676
  let a = n.x < -.4 ? 1 : n.x > xm ? -1 : 0, o = r < -110 ? 1 : r > bm ? -1 : 0, s = a === 0 ? o : o === 0 || o === a ? a : 0, c = s === 1 ? D : s === -1 ? E : void 0;
10677
- c && s ? M(s, c) : j();
10678
- }, { width: re, height: ie } = O(), ae, oe = 1, P = 1;
10677
+ c && s ? te(s, c) : A();
10678
+ }, { width: ie, height: ae } = O(), oe, se = 1, N = 1;
10679
10679
  if (v?.axis === "y") {
10680
10680
  let e = Math.max(0, v.dy), t = 1 - Math.min(e / 900, .3);
10681
- ae = `translate(${v.dx * .6 + (1 - t) * re / 2}px, ${e + (1 - t) * ie / 2}px) scale(${t})`, oe = 1 - Math.min(e / 420, .85), P = Math.max(0, 1 - e / vm);
10682
- } else v?.axis === "x" && (ae = `translateX(${v.dx > 0 && !E || v.dx < 0 && !D ? v.dx * Sm : v.dx}px)`);
10681
+ 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 / vm);
10682
+ } else v?.axis === "x" && (oe = `translateX(${v.dx > 0 && !E || v.dx < 0 && !D ? v.dx * Sm : v.dx}px)`);
10683
10683
  return /* @__PURE__ */ Z("div", {
10684
10684
  "data-phone-board": !0,
10685
10685
  className: "xixxii4 x10a8y8t x68pp3s x78zum5 xdt5ytf xo2rkog xqfszdh",
@@ -10687,17 +10687,17 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10687
10687
  /* @__PURE__ */ X("div", {
10688
10688
  ref: h,
10689
10689
  className: "x10l6tqk x10a8y8t x184qs1t",
10690
- style: v ? { opacity: oe } : void 0
10690
+ style: v ? { opacity: se } : void 0
10691
10691
  }),
10692
10692
  /* @__PURE__ */ Z("header", {
10693
10693
  ref: g,
10694
10694
  className: "x1n2onr6 x2lah0s xdd8jsf x78zum5 x6s0dn4 x195vfkc x135b78x xv54qhq xso031l x1q0q8m5 xtrfj0v x1rozbrz",
10695
- style: v ? { opacity: P } : void 0,
10695
+ style: v ? { opacity: N } : void 0,
10696
10696
  children: [
10697
10697
  /* @__PURE__ */ X("button", {
10698
10698
  "aria-label": U("phone.backToCanvas"),
10699
10699
  type: "button",
10700
- onClick: () => void ee(),
10700
+ onClick: () => void j(),
10701
10701
  ...H(_m.ghost),
10702
10702
  children: /* @__PURE__ */ X(vr, { size: 22 })
10703
10703
  }),
@@ -10728,19 +10728,19 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10728
10728
  /* @__PURE__ */ X("div", {
10729
10729
  "data-board-body": !0,
10730
10730
  ref: u,
10731
- onPointerDown: te,
10732
- onPointerMove: N,
10733
- onPointerUp: ne,
10731
+ onPointerDown: ne,
10732
+ onPointerMove: M,
10733
+ onPointerUp: re,
10734
10734
  onPointerCancel: (e) => {
10735
10735
  let t = b.current;
10736
- t?.id === e.pointerId && ((t.mode === "dismiss" || t.mode === "swipe") && j(), b.current = null), p.onPointerCancel(e);
10736
+ t?.id === e.pointerId && ((t.mode === "dismiss" || t.mode === "swipe") && A(), b.current = null), p.onPointerCancel(e);
10737
10737
  },
10738
10738
  className: "x1n2onr6 x98rzlu x2lwn1j xb3r6kr x5ve5x3",
10739
10739
  children: /* @__PURE__ */ X("div", {
10740
10740
  "data-board-stage": !0,
10741
10741
  ref: m,
10742
10742
  className: "x10l6tqk x10a8y8t x1hj3fc7",
10743
- style: ae ? { transform: ae } : void 0,
10743
+ style: oe ? { transform: oe } : void 0,
10744
10744
  children: /* @__PURE__ */ X("div", {
10745
10745
  className: "x10l6tqk xu96u03 x13vifvy x1hj3fc7",
10746
10746
  style: {
@@ -10769,7 +10769,7 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10769
10769
  }),
10770
10770
  o && s ? /* @__PURE__ */ X("div", {
10771
10771
  className: "x1n2onr6 x2lah0s x1hr3lfm x889kno x10b6aqq x1rozbrz",
10772
- style: v ? { opacity: P } : void 0,
10772
+ style: v ? { opacity: N } : void 0,
10773
10773
  children: /* @__PURE__ */ X("button", {
10774
10774
  "aria-pressed": o.chosen,
10775
10775
  "data-choose-board": e,
@@ -10788,13 +10788,13 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10788
10788
  i.length > 1 ? /* @__PURE__ */ Z("div", {
10789
10789
  ref: _,
10790
10790
  className: "x1n2onr6 x2lah0s x78zum5 x6s0dn4 xdqyycr x1iorvi4 xe1blv6 x178xt8z x13fuv20 xxu5053 x1rozbrz",
10791
- style: v ? { opacity: P } : void 0,
10791
+ style: v ? { opacity: N } : void 0,
10792
10792
  children: [
10793
10793
  /* @__PURE__ */ X("button", {
10794
10794
  "aria-label": U("phone.previousBoard"),
10795
10795
  disabled: !E,
10796
10796
  type: "button",
10797
- onClick: () => void M(-1, E),
10797
+ onClick: () => void te(-1, E),
10798
10798
  ...H(_m.ghost),
10799
10799
  children: /* @__PURE__ */ X(vr, { size: 20 })
10800
10800
  }),
@@ -10812,7 +10812,7 @@ function wm({ id: e, board: t, sandbox: n = "allow-scripts", src: r, siblings: i
10812
10812
  "aria-label": U("phone.nextBoard"),
10813
10813
  disabled: !D,
10814
10814
  type: "button",
10815
- onClick: () => void M(1, D),
10815
+ onClick: () => void te(1, D),
10816
10816
  ...H(_m.ghost),
10817
10817
  children: /* @__PURE__ */ X(yr, { size: 20 })
10818
10818
  })
@@ -11010,214 +11010,216 @@ var Nm = {
11010
11010
  bottom: 94,
11011
11011
  left: 16
11012
11012
  }, Pm = 8, Fm = /* @__PURE__ */ new Set(), Im = () => {}, Lm = [];
11013
- function Rm({ 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: _ }) {
11014
- let { viewportRef: v, worldRef: y, overlayRef: b, view: x, viewNow: S, size: C, gesturing: w, fit: T, handlers: E } = Sp("hand"), [D, O] = Y(null), [k, A] = Y(78), [j, ee] = Y(null), M = J(null), te = G((e, t = !1) => e ? (O(e.id), T(e.bounds, Nm, { animate: t }), !0) : !1, [T]), { page: N, changePage: ne } = xf({
11013
+ function Rm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: o, contentBase: s, backlinks: c, boardPort: l, boardPath: u, versions: d, live: f, loaded: p, agent: m, agentSessions: h, comment: g, comments: _, actions: v }) {
11014
+ let { viewportRef: y, worldRef: b, overlayRef: x, view: S, viewNow: C, size: w, gesturing: T, fit: E, handlers: D } = Sp("hand"), [O, k] = Y(null), [ee, A] = Y(78), [j, te] = Y(null), ne = J(null), M = G((e, t = !1) => e ? (k(e.id), E(e.bounds, Nm, { animate: t }), !0) : !1, [E]), { page: re, changePage: ie } = xf({
11015
11015
  canvas: n,
11016
11016
  layout: r,
11017
11017
  fitPage: G((e) => {
11018
11018
  let t = r?.pages[e];
11019
- return !n || !t ? !1 : (te(Om(Em(n, r, e), n.focus?.target)) || (O(null), t.bounds && T(t.bounds, Nm)), !0);
11019
+ return !n || !t ? !1 : (M(Om(Em(n, r, e), n.focus?.target)) || (k(null), t.bounds && E(t.bounds, Nm)), !0);
11020
11020
  }, [
11021
11021
  n,
11022
11022
  r,
11023
- T,
11024
- te
11023
+ E,
11024
+ M
11025
11025
  ]),
11026
11026
  startAtFocus: !0
11027
- }), re = q(() => n && r && N ? Em(n, r, N) : [], [
11027
+ }), ae = q(() => n && r && re ? Em(n, r, re) : [], [
11028
11028
  n,
11029
11029
  r,
11030
- N
11031
- ]), ie = q(() => Dm(re), [re]), ae = ie.find((e) => e.id === D) ?? null, oe = (e) => {
11032
- te(e, !0), A(78);
11033
- }, P = n?.boards ?? {}, F = q(() => Object.entries(n?.boards ?? {}).filter(([, e]) => e.page === N), [n, N]), se = Object.entries(n?.groups ?? {}).filter(([, e]) => e.boards.some((e) => P[e]?.page === N)), ce = Object.entries(n?.notes ?? {}).filter(([, e]) => e.page === N), le = q(() => new Set(o), [o]), I = Lf({
11030
+ re
11031
+ ]), oe = q(() => Dm(ae), [ae]), se = oe.find((e) => e.id === O) ?? null, N = (e) => {
11032
+ M(e, !0), A(78);
11033
+ }, P = n?.boards ?? {}, ce = q(() => Object.entries(n?.boards ?? {}).filter(([, e]) => e.page === re), [n, re]), le = Object.entries(n?.groups ?? {}).filter(([, e]) => e.boards.some((e) => P[e]?.page === re)), ue = Object.entries(n?.notes ?? {}).filter(([, e]) => e.page === re), de = q(() => new Set(o), [o]), F = Lf({
11034
11034
  contentBase: s,
11035
- boardPort: c,
11036
- boardPath: l
11037
- }), ue = q(() => I ? le : new Set(F.map(([e]) => e)), [
11038
- I,
11039
- le,
11040
- F
11041
- ]), de = jf({
11042
- boards: F,
11043
- versions: u,
11044
- pending: ue,
11045
- view: x,
11046
- viewport: C,
11035
+ boardPort: l,
11036
+ boardPath: u
11037
+ }), fe = q(() => F ? de : new Set(ce.map(([e]) => e)), [
11038
+ F,
11039
+ de,
11040
+ ce
11041
+ ]), I = jf({
11042
+ boards: ce,
11043
+ versions: d,
11044
+ pending: fe,
11045
+ view: S,
11046
+ viewport: w,
11047
11047
  active: Fm,
11048
- gesturing: w
11049
- }), fe = Kf(F, x, C), pe = q(() => new Set(g?.stale ?? []), [g]), L = kp({
11048
+ gesturing: T
11049
+ }), pe = Kf(ce, S, w), L = q(() => new Set(_?.stale ?? []), [_]), me = kp({
11050
11050
  canvas: n,
11051
- page: N,
11052
- threads: g?.comments.threads ?? Lm,
11053
- stale: pe,
11054
- versions: u
11055
- }), me = Gf({
11051
+ page: re,
11052
+ threads: _?.comments.threads ?? Lm,
11053
+ stale: L,
11054
+ versions: d
11055
+ }), he = Gf({
11056
11056
  canvas: n,
11057
11057
  layout: r,
11058
- page: N,
11059
- threads: g?.comments.threads ?? Lm,
11060
- listening: g?.listening === !0,
11061
- comment: d === !1 ? void 0 : h
11062
- }), he = Object.fromEntries(ie.flatMap((e) => {
11063
- let t = me.choiceOf(e.id);
11058
+ page: re,
11059
+ threads: _?.comments.threads ?? Lm,
11060
+ listening: _?.listening === !0,
11061
+ comment: f === !1 ? void 0 : g
11062
+ }), ge = Object.fromEntries(oe.flatMap((e) => {
11063
+ let t = he.choiceOf(e.id);
11064
11064
  return t?.choice && !t.byRecommendation ? [[e.id, t.choice]] : [];
11065
- })), ge = (e) => {
11066
- let t = v.current.getBoundingClientRect(), n = S(), r = (e.clientX - t.left - n.x) / n.k, i = (e.clientY - t.top - n.y) / n.k;
11067
- return F.find(([, e]) => r >= e.x && r <= e.x + e.w && i >= e.y && i <= e.y + e.h)?.[0] ?? null;
11068
- }, _e = (e) => {
11069
- E.onPointerDown(e);
11065
+ })), _e = (e) => {
11066
+ let t = y.current.getBoundingClientRect(), n = C(), r = (e.clientX - t.left - n.x) / n.k, i = (e.clientY - t.top - n.y) / n.k;
11067
+ return ce.find(([, e]) => r >= e.x && r <= e.x + e.w && i >= e.y && i <= e.y + e.h)?.[0] ?? null;
11068
+ }, ve = (e) => {
11069
+ D.onPointerDown(e);
11070
11070
  let t = !e.currentTarget.contains(e.target) || e.target.closest("[data-chrome]");
11071
- M.current = M.current || t ? null : {
11071
+ ne.current = ne.current || t ? null : {
11072
11072
  pointer: e.pointerId,
11073
11073
  x: e.clientX,
11074
11074
  y: e.clientY
11075
11075
  };
11076
- }, ve = (e) => {
11077
- E.onPointerMove(e);
11078
- let t = M.current;
11079
- t && (t.pointer !== e.pointerId || Math.hypot(e.clientX - t.x, e.clientY - t.y) > Pm) && (M.current = null);
11080
11076
  }, ye = (e) => {
11081
- E.onPointerUp(e);
11082
- let t = M.current;
11083
- if (M.current = null, t?.pointer !== e.pointerId) return;
11084
- let n = ge(e);
11085
- n && ee(n);
11086
- }, R = j ? P[j] : void 0, be = v.current?.getBoundingClientRect(), xe = R && be ? {
11087
- x: be.left + x.x + R.x * x.k,
11088
- y: be.top + x.y + R.y * x.k,
11089
- w: R.w * x.k,
11090
- h: R.h * x.k
11091
- } : void 0, Se = (e) => !n?.groups?.[e.id], Ce = j ? re.find((e) => e.questions.some((e) => e.boards.includes(j))) : void 0, we = Ce?.questions.find((e) => e.boards.includes(j)), Te = j ? we ? Se(we) ? Ce.questions.filter(Se).map((e) => e.id) : we.boards : [j] : [];
11077
+ D.onPointerMove(e);
11078
+ let t = ne.current;
11079
+ t && (t.pointer !== e.pointerId || Math.hypot(e.clientX - t.x, e.clientY - t.y) > Pm) && (ne.current = null);
11080
+ }, R = (e) => {
11081
+ D.onPointerUp(e);
11082
+ let t = ne.current;
11083
+ if (ne.current = null, t?.pointer !== e.pointerId) return;
11084
+ let n = _e(e);
11085
+ n && te(n);
11086
+ }, be = j ? P[j] : void 0, xe = y.current?.getBoundingClientRect(), Se = be && xe ? {
11087
+ x: xe.left + S.x + be.x * S.k,
11088
+ y: xe.top + S.y + be.y * S.k,
11089
+ w: be.w * S.k,
11090
+ h: be.h * S.k
11091
+ } : void 0, Ce = (e) => !n?.groups?.[e.id], we = j ? ae.find((e) => e.questions.some((e) => e.boards.includes(j))) : void 0, Te = we?.questions.find((e) => e.boards.includes(j)), z = j ? Te ? Ce(Te) ? we.questions.filter(Ce).map((e) => e.id) : Te.boards : [j] : [];
11092
11092
  return /* @__PURE__ */ Z("div", {
11093
11093
  className: "xixxii4 x10a8y8t x78zum5 xdt5ytf x184qs1t",
11094
11094
  children: [
11095
11095
  /* @__PURE__ */ X(Tn, {
11096
- actions: _,
11097
- live: d,
11098
- page: N,
11096
+ actions: v,
11097
+ live: f,
11098
+ page: re,
11099
11099
  pages: n?.pages ?? [],
11100
11100
  title: n?.title || e,
11101
- onPageChange: ne
11101
+ onPageChange: ie
11102
11102
  }),
11103
11103
  /* @__PURE__ */ Z("div", {
11104
- ref: v,
11104
+ ref: y,
11105
11105
  className: "x1n2onr6 x98rzlu x2lwn1j xb3r6kr x5ve5x3 x87ps6o xqfszdh xo2rkog",
11106
- onPointerDown: _e,
11107
- onPointerMove: ve,
11108
- onPointerUp: ye,
11106
+ onPointerDown: ve,
11107
+ onPointerMove: ye,
11108
+ onPointerUp: R,
11109
11109
  onPointerCancel: (e) => {
11110
- E.onPointerCancel(e), M.current = null;
11110
+ D.onPointerCancel(e), ne.current = null;
11111
11111
  },
11112
11112
  children: [n && r ? /* @__PURE__ */ Z(i, {
11113
11113
  resetKey: n,
11114
11114
  children: [/* @__PURE__ */ X(Sn, {
11115
- agent: p,
11116
- agentSessions: m,
11115
+ agent: m,
11116
+ agentSessions: h,
11117
11117
  artifact: t,
11118
- boardBase: I?.base,
11119
- boardSandbox: I?.sandbox,
11120
- boards: F,
11118
+ boardBase: F?.base,
11119
+ boardSandbox: F?.sandbox,
11120
+ boards: ce,
11121
11121
  contentBase: s,
11122
- culled: fe,
11122
+ culled: pe,
11123
11123
  frameLoaded: Im,
11124
- frameRef: de.frameRef,
11125
- gesturing: w,
11126
- images: de.images,
11124
+ frameRef: I.frameRef,
11125
+ gesturing: T,
11126
+ images: I.images,
11127
11127
  inspecting: !1,
11128
- live: d,
11129
- notes: ce,
11130
- pending: ue,
11131
- phases: de.phases,
11128
+ live: f,
11129
+ notes: ue,
11130
+ pending: fe,
11131
+ phases: I.phases,
11132
11132
  playing: Fm,
11133
11133
  replays: {},
11134
- versions: u,
11135
- view: x,
11136
- worldRef: y,
11137
- writing: d ? n.writing : void 0
11134
+ versions: d,
11135
+ view: S,
11136
+ worldRef: b,
11137
+ writing: f ? n.writing : void 0
11138
11138
  }), /* @__PURE__ */ X(df, {
11139
11139
  allBoards: P,
11140
- boards: F,
11141
- choices: me.active ? me : void 0,
11140
+ artboard: e,
11141
+ backlinks: c,
11142
+ boards: ce,
11143
+ choices: he.active ? he : void 0,
11142
11144
  contentBase: s,
11143
- groups: se,
11144
- overlayRef: b,
11145
- pending: le,
11145
+ groups: le,
11146
+ overlayRef: x,
11147
+ pending: de,
11146
11148
  playing: Fm,
11147
- verdicts: L,
11148
- versions: u,
11149
- view: x,
11150
- onExpand: ee,
11149
+ verdicts: me,
11150
+ versions: d,
11151
+ view: S,
11152
+ onExpand: te,
11151
11153
  onReplay: () => {},
11152
- onTogglePlay: ee
11154
+ onTogglePlay: te
11153
11155
  })]
11154
11156
  }) : /* @__PURE__ */ X("div", {
11155
11157
  className: "x10l6tqk x10a8y8t xrvj5dj x1ku5rj1 xggk2y7 x1bo0w0s xif65rj x2b8uid",
11156
- children: f ? a[0] ?? "Waiting for the agent to write canvas.json…" : "Connecting…"
11157
- }), ie.length > 0 ? /* @__PURE__ */ Z("div", {
11158
+ children: p ? a[0] ?? "Waiting for the agent to write canvas.json…" : "Connecting…"
11159
+ }), oe.length > 0 ? /* @__PURE__ */ Z("div", {
11158
11160
  "data-chrome": !0,
11159
11161
  className: "x10l6tqk x10a8y8t x1n327nk x47corl",
11160
- children: [me.current && /* @__PURE__ */ X(Ca, {
11161
- agent: p,
11162
+ children: [he.current && /* @__PURE__ */ X(Ca, {
11163
+ agent: m,
11162
11164
  bottom: 90,
11163
- canAct: me.canAct,
11164
- listening: me.listening,
11165
- summary: me.current,
11166
- onSubmit: me.submit,
11167
- onWithdraw: me.withdraw
11165
+ canAct: he.canAct,
11166
+ listening: he.listening,
11167
+ summary: he.current,
11168
+ onSubmit: he.submit,
11169
+ onWithdraw: he.withdraw
11168
11170
  }), /* @__PURE__ */ X(Mm, {
11169
- chose: he,
11170
- current: ae,
11171
- next: D ? km(ie, D, 1) : null,
11172
- page: N,
11171
+ chose: ge,
11172
+ current: se,
11173
+ next: O ? km(oe, O, 1) : null,
11174
+ page: re,
11173
11175
  pages: n?.pages ?? [],
11174
- previous: D ? km(ie, D, -1) : null,
11175
- rounds: re,
11176
- snap: k,
11177
- verdicts: L.states,
11178
- onPageChange: ne,
11179
- onPick: oe,
11176
+ previous: O ? km(oe, O, -1) : null,
11177
+ rounds: ae,
11178
+ snap: ee,
11179
+ verdicts: me.states,
11180
+ onPageChange: ie,
11181
+ onPick: N,
11180
11182
  onSnap: A
11181
11183
  })]
11182
11184
  }) : null]
11183
11185
  }),
11184
- j && R ? /* @__PURE__ */ X(wm, {
11185
- board: R,
11186
- choice: me.boardChoice(j),
11186
+ j && be ? /* @__PURE__ */ X(wm, {
11187
+ board: be,
11188
+ choice: he.boardChoice(j),
11187
11189
  id: j,
11188
- origin: xe,
11189
- sandbox: ht(R) ? void 0 : I?.sandbox,
11190
- siblings: Te,
11191
- src: `${ht(R) ? s : I?.base ?? s}${R.file}?v=${u[R.file] ?? 0}`,
11192
- onChoose: () => me.choose(j),
11193
- onClose: () => ee(null),
11194
- onOpen: ee
11190
+ origin: Se,
11191
+ sandbox: ht(be) ? void 0 : F?.sandbox,
11192
+ siblings: z,
11193
+ src: `${ht(be) ? s : F?.base ?? s}${be.file}?v=${d[be.file] ?? 0}`,
11194
+ onChoose: () => he.choose(j),
11195
+ onClose: () => te(null),
11196
+ onOpen: te
11195
11197
  }) : null
11196
11198
  ]
11197
11199
  });
11198
11200
  }
11199
11201
  // src/viewer/layouts/ArtboardView.tsx
11200
11202
  function zm(e) {
11201
- return P(Je("(max-width: 640px)")) ? /* @__PURE__ */ X(Rm, { ...e }) : /* @__PURE__ */ X(Bm, { ...e });
11203
+ return N(Je("(max-width: 640px)")) ? /* @__PURE__ */ X(Rm, { ...e }) : /* @__PURE__ */ X(Bm, { ...e });
11202
11204
  }
11203
11205
  function Bm({ 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 }) {
11204
- let [x, C] = Y("select"), { viewportRef: w, worldRef: T, overlayRef: E, view: D, viewNow: O, gesturing: k, size: A, fit: ee, zoomBy: M, zoomTo: te, cursor: N, hand: ne, handlers: re, panBy: ie, wheelAt: ae, panning: oe, setSpaceHeld: P, place: F } = Sp(x), [se, ce] = Y(!1), [le] = Y(() => new URLSearchParams(location.search).has("debug")), [I, ue] = Y("open"), de = (e) => e && r?.pages[e]?.bounds || null, { page: fe, changePage: pe } = xf({
11206
+ let [x, C] = Y("select"), { viewportRef: w, worldRef: T, overlayRef: E, view: D, viewNow: O, gesturing: k, size: ee, fit: j, zoomBy: te, zoomTo: ne, cursor: M, hand: re, handlers: ie, panBy: ae, wheelAt: oe, panning: se, setSpaceHeld: N, place: P } = Sp(x), [ce, le] = Y(!1), [ue] = Y(() => new URLSearchParams(location.search).has("debug")), [de, F] = Y("open"), fe = (e) => e && r?.pages[e]?.bounds || null, { page: I, changePage: pe } = xf({
11205
11207
  canvas: n,
11206
11208
  layout: r,
11207
11209
  fitPage: G((e) => {
11208
11210
  let t = r?.pages[e]?.bounds;
11209
- return t ? (ee(t), !0) : !1;
11210
- }, [r, ee])
11211
+ return t ? (j(t), !0) : !1;
11212
+ }, [r, j])
11211
11213
  });
11212
11214
  bf({
11213
11215
  canvas: n,
11214
- page: fe,
11216
+ page: I,
11215
11217
  changePage: pe,
11216
11218
  viewNow: O,
11217
- place: F
11219
+ place: P
11218
11220
  });
11219
11221
  let [L, me] = Y(null), [he, ge] = Y(() => /* @__PURE__ */ new Set()), [_e, ve] = Y({}), ye = Hf(e), [R, be] = Y(null), xe = J(null);
11220
- K(() => be(null), [fe, e]);
11222
+ K(() => be(null), [I, e]);
11221
11223
  let Se = () => {
11222
11224
  be(null), xe.current?.focus();
11223
11225
  }, Ce = (e, t) => {
@@ -11228,11 +11230,11 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11228
11230
  width: i.clientWidth,
11229
11231
  height: i.clientHeight
11230
11232
  });
11231
- (e.x || e.y) && ie(e.x, e.y);
11233
+ (e.x || e.y) && ae(e.x, e.y);
11232
11234
  }
11233
11235
  be((t) => t === e ? null : e);
11234
- }, we = x === "select" && !L && !oe, Te = x === "comment", z = lp({
11235
- enabled: !L && (x === "select" || Te || se),
11236
+ }, we = x === "select" && !L && !se, Te = x === "comment", z = lp({
11237
+ enabled: !L && (x === "select" || Te || ce),
11236
11238
  mode: Te ? "comment" : "select",
11237
11239
  playing: he,
11238
11240
  onInput: (e, t) => {
@@ -11240,15 +11242,15 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11240
11242
  if (r) {
11241
11243
  if (t.type === "ryugi:inspect:wheel") {
11242
11244
  let e = O();
11243
- ae({
11245
+ oe({
11244
11246
  ...t,
11245
11247
  x: e.x + (r.x + t.x) * e.k,
11246
11248
  y: e.y + (r.y + t.y) * e.k
11247
11249
  });
11248
- } else t.type === "ryugi:inspect:pan" ? ie(t.deltaX, t.deltaY) : t.type === "ryugi:inspect:drag" ? Te ? B.onFrameDrag(e, t) : we && Qe.drag(t.phase, r.x + t.x, r.y + t.y, t.append, t.id ? {
11250
+ } else t.type === "ryugi:inspect:pan" ? ae(t.deltaX, t.deltaY) : t.type === "ryugi:inspect:drag" ? Te ? B.onFrameDrag(e, t) : we && Qe.drag(t.phase, r.x + t.x, r.y + t.y, t.append, t.id ? {
11249
11251
  boardId: e,
11250
11252
  id: t.id
11251
- } : void 0) : t.code === "Space" ? P(t.down) : t.down && ze(t);
11253
+ } : void 0) : t.code === "Space" ? N(t.down) : t.down && ze(t);
11252
11254
  }
11253
11255
  }
11254
11256
  });
@@ -11262,12 +11264,12 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11262
11264
  let B = Sf({
11263
11265
  comments: v,
11264
11266
  comment: y,
11265
- page: fe,
11267
+ page: I,
11266
11268
  boards: n?.boards ?? {},
11267
11269
  inspector: z
11268
11270
  }), V = kp({
11269
11271
  canvas: n,
11270
- page: fe,
11272
+ page: I,
11271
11273
  threads: B.threads,
11272
11274
  stale: B.stale,
11273
11275
  versions: f,
@@ -11280,25 +11282,25 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11280
11282
  }), De = Gf({
11281
11283
  canvas: n,
11282
11284
  layout: r,
11283
- page: fe,
11285
+ page: I,
11284
11286
  threads: B.threads,
11285
11287
  listening: v?.listening === !0,
11286
11288
  comment: p === !1 ? void 0 : y
11287
11289
  }), Oe = V.rejecting ? V.origin(V.rejecting) : null, ke = (e) => {
11288
- (e !== "comment" || y) && (e === "comment" && x === "select" && B.commentSelection(), e === "comment" && ce(!1), e !== "comment" && B.close(), C(e));
11290
+ (e !== "comment" || y) && (e === "comment" && x === "select" && B.commentSelection(), e === "comment" && le(!1), e !== "comment" && B.close(), C(e));
11289
11291
  }, Ae = pf({
11290
11292
  commentTool: x === "comment",
11291
- inspectorOpen: se,
11293
+ inspectorOpen: ce,
11292
11294
  hasVerify: V.progress.total > 0,
11293
11295
  setMode: (e) => {
11294
11296
  if (e === "comments") return ke("comment");
11295
- x === "comment" && ke("select"), ce(e === "inspector");
11297
+ x === "comment" && ke("select"), le(e === "inspector");
11296
11298
  }
11297
- }), je = S(n?.groups ?? {}, n?.boards ?? {}, fe).map(([e]) => e), Me = q(() => [...B.stale], [B.stale]);
11299
+ }), je = S(n?.groups ?? {}, n?.boards ?? {}, I).map(([e]) => e), Me = q(() => [...B.stale], [B.stale]);
11298
11300
  Wp({
11299
11301
  canvas: n,
11300
11302
  layout: r,
11301
- fit: (e) => ee(e),
11303
+ fit: (e) => j(e),
11302
11304
  threads: B.threads,
11303
11305
  stale: Me
11304
11306
  });
@@ -11307,18 +11309,18 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11307
11309
  order: je,
11308
11310
  states: V.states,
11309
11311
  updates: Ee.groups,
11310
- frame: (e) => ee(e, Ae.tab ? hf : void 0)
11312
+ frame: (e) => j(e, Ae.tab ? hf : void 0)
11311
11313
  }), Pe = (e) => {
11312
11314
  let t = B.threads.find((t) => t.id === e), r = t && Oa(t.anchor, n?.boards ?? {}), i = w.current, a = O();
11313
- r && i && ie((i.clientWidth - (Ae.tab ? 390 : 0)) / 2 - (a.x + r.x * a.k), i.clientHeight / 2 - (a.y + r.y * a.k)), B.setOpenId(e);
11314
- }, Fe = G(() => ce(!1), []);
11315
+ r && i && ae((i.clientWidth - (Ae.tab ? 390 : 0)) / 2 - (a.x + r.x * a.k), i.clientHeight / 2 - (a.y + r.y * a.k)), B.setOpenId(e);
11316
+ }, Fe = G(() => le(!1), []);
11315
11317
  K(() => {
11316
- L && P(!1);
11317
- }, [L, P]);
11318
- let Ie = q(() => new Set(s), [s]), Le = B.threads.filter((e) => e.anchor.page === fe && Na(e) && e.status === "open").length, Re = n?.pages ?? [];
11318
+ L && N(!1);
11319
+ }, [L, N]);
11320
+ let Ie = q(() => new Set(s), [s]), Le = B.threads.filter((e) => e.anchor.page === I && Na(e) && e.status === "open").length, Re = n?.pages ?? [];
11319
11321
  K(() => {
11320
11322
  let t = n?.title || e;
11321
- document.title = t, j({
11323
+ document.title = t, A({
11322
11324
  kind: "title",
11323
11325
  title: t
11324
11326
  });
@@ -11328,10 +11330,10 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11328
11330
  let t = () => {
11329
11331
  "preventDefault" in e && e.preventDefault();
11330
11332
  }, n = e.metaKey || e.ctrlKey;
11331
- e.key === "Escape" && Te ? B.close() || ke("select") : e.key === "Escape" ? R ? Se() : L || z.selectedTargets.length > 0 ? (me(null), z.clearSelection(), Qe.reset()) : Ae.tab && !Ae.pinned && Ae.close() : n && (e.key === "=" || e.key === "+") ? (t(), M(1.25)) : n && e.key === "-" ? (t(), M(.8)) : e.shiftKey && e.code === "Digit1" ? ee(de(fe)) : e.shiftKey && e.code === "Digit0" ? te(1) : !n && !e.shiftKey && e.key.toLowerCase() === "v" ? (t(), ke("select")) : !n && !e.shiftKey && e.key.toLowerCase() === "h" ? (t(), ke("hand")) : !n && !e.shiftKey && !V.rejecting && (e.key.toLowerCase() === "j" || e.key.toLowerCase() === "k") ? (t(), Ne.step(e.key.toLowerCase() === "j" ? 1 : -1)) : !n && !e.shiftKey && e.key.toLowerCase() === "c" && (t(), ke("comment"));
11333
+ e.key === "Escape" && Te ? B.close() || ke("select") : e.key === "Escape" ? R ? Se() : L || z.selectedTargets.length > 0 ? (me(null), z.clearSelection(), Qe.reset()) : Ae.tab && !Ae.pinned && Ae.close() : n && (e.key === "=" || e.key === "+") ? (t(), te(1.25)) : n && e.key === "-" ? (t(), te(.8)) : e.shiftKey && e.code === "Digit1" ? j(fe(I)) : e.shiftKey && e.code === "Digit0" ? ne(1) : !n && !e.shiftKey && e.key.toLowerCase() === "v" ? (t(), ke("select")) : !n && !e.shiftKey && e.key.toLowerCase() === "h" ? (t(), ke("hand")) : !n && !e.shiftKey && !V.rejecting && (e.key.toLowerCase() === "j" || e.key.toLowerCase() === "k") ? (t(), Ne.step(e.key.toLowerCase() === "j" ? 1 : -1)) : !n && !e.shiftKey && e.key.toLowerCase() === "c" && (t(), ke("comment"));
11332
11334
  }
11333
11335
  K(() => (window.addEventListener("keydown", ze), () => window.removeEventListener("keydown", ze)));
11334
- let Be = n?.boards ?? {}, Ve = q(() => Object.entries(n?.boards ?? {}).filter(([, e]) => e.page === fe), [n, fe]), He = Object.entries(n?.groups ?? {}).filter(([, e]) => e.boards.some((e) => Be[e]?.page === fe)), Ue = Object.entries(n?.notes ?? {}).filter(([, e]) => e.page === fe), We = q(() => Object.fromEntries(Object.entries(n?.notes ?? {}).flatMap(([e, t]) => n && t.kind === "title" ? [[e, o(n, e)]] : [])), [n]), Ge = L ? Be[L] : void 0, qe = Object.fromEntries(Object.entries(ye.states).flatMap(([e, t]) => {
11336
+ let Be = n?.boards ?? {}, Ve = q(() => Object.entries(n?.boards ?? {}).filter(([, e]) => e.page === I), [n, I]), He = Object.entries(n?.groups ?? {}).filter(([, e]) => e.boards.some((e) => Be[e]?.page === I)), Ue = Object.entries(n?.notes ?? {}).filter(([, e]) => e.page === I), We = q(() => Object.fromEntries(Object.entries(n?.notes ?? {}).flatMap(([e, t]) => n && t.kind === "title" ? [[e, o(n, e)]] : [])), [n]), Ge = L ? Be[L] : void 0, qe = Object.fromEntries(Object.entries(ye.states).flatMap(([e, t]) => {
11335
11337
  let n = Object.keys(t.schema?.controls ?? {}).length, r = Object.entries(t.schema?.controls ?? {}).some(([e, n]) => t.values[e] !== n.default);
11336
11338
  return n || t.error ? [[e, r]] : [];
11337
11339
  })), Je = R ? ye.states[R] : void 0, Ye = R ? Be[R] : void 0, Xe = (e) => R && Je && Ye && (Je.schema || Je.error) ? /* @__PURE__ */ X(hm, {
@@ -11345,8 +11347,8 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11345
11347
  }) : null, Ze = Ge ? (f[Ge.file] ?? 0) > 0 && !Ie.has(L) : !1, Qe = up(Ve, z, D.k, [
11346
11348
  x,
11347
11349
  L,
11348
- fe,
11349
- oe
11350
+ I,
11351
+ se
11350
11352
  ]), $e = (e) => {
11351
11353
  let t = w.current.getBoundingClientRect(), n = O();
11352
11354
  return {
@@ -11380,10 +11382,10 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11380
11382
  versions: f,
11381
11383
  pending: rt,
11382
11384
  view: D,
11383
- viewport: A,
11385
+ viewport: ee,
11384
11386
  active: tt,
11385
11387
  gesturing: k
11386
- }), at = Kf(Ve, D, A), ot = q(() => {
11388
+ }), at = Kf(Ve, D, ee), ot = q(() => {
11387
11389
  let e = /* @__PURE__ */ new Map();
11388
11390
  return (t) => (e.has(t) || e.set(t, (e) => {
11389
11391
  ye.refFor(t)(e), z.refFor(t)(e), it.frameRef(t)(e);
@@ -11400,37 +11402,37 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11400
11402
  children: /* @__PURE__ */ Z("div", {
11401
11403
  ref: w,
11402
11404
  className: "x98rzlu xeuugli x1n2onr6 xh8yej3 x5yr21d xb3r6kr x5ve5x3 x87ps6o x184qs1t xqfszdh xo2rkog",
11403
- style: { cursor: N },
11405
+ style: { cursor: M },
11404
11406
  onClickCapture: (e) => {
11405
- !L && (Te || oe) && e.target.closest("[data-video-surface]") && e.stopPropagation();
11407
+ !L && (Te || se) && e.target.closest("[data-video-surface]") && e.stopPropagation();
11406
11408
  },
11407
11409
  onPointerCancel: (e) => {
11408
- re.onPointerCancel(e), Qe.reset();
11410
+ ie.onPointerCancel(e), Qe.reset();
11409
11411
  },
11410
11412
  onPointerDown: (e) => {
11411
- if (re.onPointerDown(e), Te && !oe && !L && e.button === 0 && e.pointerType !== "touch" && e.currentTarget.contains(e.target) && !e.target.closest("[data-chrome]") && (e.preventDefault(), B.onCanvasClick($e(e))), !we || e.pointerType === "touch" || e.button !== 0 || !e.currentTarget.contains(e.target) || e.target.closest("[data-chrome], [data-video-surface]")) return;
11413
+ if (ie.onPointerDown(e), Te && !se && !L && e.button === 0 && e.pointerType !== "touch" && e.currentTarget.contains(e.target) && !e.target.closest("[data-chrome]") && (e.preventDefault(), B.onCanvasClick($e(e))), !we || e.pointerType === "touch" || e.button !== 0 || !e.currentTarget.contains(e.target) || e.target.closest("[data-chrome], [data-video-surface]")) return;
11412
11414
  let t = $e(e);
11413
11415
  e.currentTarget.setPointerCapture(e.pointerId), Qe.drag("start", t.x, t.y, e.shiftKey || e.metaKey || e.ctrlKey);
11414
11416
  },
11415
11417
  onPointerMove: (e) => {
11416
- if (re.onPointerMove(e), Qe.dragging()) {
11418
+ if (ie.onPointerMove(e), Qe.dragging()) {
11417
11419
  e.buttons === 1 && e.currentTarget.setPointerCapture(e.pointerId);
11418
11420
  let t = $e(e);
11419
11421
  Qe.drag("move", t.x, t.y);
11420
11422
  }
11421
11423
  },
11422
11424
  onPointerUp: (e) => {
11423
- if (re.onPointerUp(e), Qe.dragging()) {
11425
+ if (ie.onPointerUp(e), Qe.dragging()) {
11424
11426
  let t = $e(e);
11425
11427
  Qe.drag("end", t.x, t.y);
11426
11428
  }
11427
11429
  },
11428
11430
  children: [
11429
11431
  /* @__PURE__ */ X(ho, {
11430
- hand: ne,
11432
+ hand: re,
11431
11433
  viewport: w
11432
11434
  }),
11433
- le && /* @__PURE__ */ X(Za, {
11435
+ ue && /* @__PURE__ */ X(Za, {
11434
11436
  counts: it.counts,
11435
11437
  culled: at.size,
11436
11438
  gesturing: k
@@ -11451,7 +11453,7 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11451
11453
  frameRef: ot,
11452
11454
  gesturing: k,
11453
11455
  images: it.images,
11454
- inspecting: we || Te && !L && !oe,
11456
+ inspecting: we || Te && !L && !se,
11455
11457
  live: p,
11456
11458
  notes: Ue,
11457
11459
  pending: rt,
@@ -11507,12 +11509,12 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11507
11509
  agent: g,
11508
11510
  boards: Be,
11509
11511
  draft: B.draft,
11510
- height: A.height,
11512
+ height: ee.height,
11511
11513
  numbers: B.numbers,
11512
11514
  openId: B.openId,
11513
11515
  overlayRef: E,
11514
- page: fe,
11515
- showResolved: I === "all",
11516
+ page: I,
11517
+ showResolved: de === "all",
11516
11518
  stale: B.stale,
11517
11519
  threads: B.threads,
11518
11520
  view: D,
@@ -11569,7 +11571,7 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11569
11571
  }),
11570
11572
  /* @__PURE__ */ X(vf, {
11571
11573
  commenting: !!y,
11572
- page: fe,
11574
+ page: I,
11573
11575
  pages: Re,
11574
11576
  tool: x,
11575
11577
  onPageChange: pe,
@@ -11577,21 +11579,21 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11577
11579
  }),
11578
11580
  /* @__PURE__ */ X(yf, {
11579
11581
  actions: b,
11580
- inspectorOpen: se,
11582
+ inspectorOpen: ce,
11581
11583
  live: p,
11582
11584
  verify: V.progress,
11583
11585
  verifyOpen: Ae.tab === "verify",
11584
11586
  warnings: a,
11585
11587
  zoom: D.k,
11586
- onActualSize: () => te(1),
11587
- onFit: () => ee(de(fe)),
11588
+ onActualSize: () => ne(1),
11589
+ onFit: () => j(fe(I)),
11588
11590
  onToggleInspector: () => Ae.toggle("inspector"),
11589
11591
  onToggleVerify: () => Ae.toggle("verify"),
11590
- onZoomIn: () => M(1.25),
11591
- onZoomOut: () => M(.8)
11592
+ onZoomIn: () => te(1.25),
11593
+ onZoomOut: () => te(.8)
11592
11594
  }),
11593
11595
  /* @__PURE__ */ X(gf, {
11594
- available: A.height,
11596
+ available: ee.height,
11595
11597
  pinned: Ae.pinned,
11596
11598
  tab: Ae.tab,
11597
11599
  counts: {
@@ -11610,13 +11612,13 @@ function Bm({ id: e, artifact: t, canvas: n, layout: r, warnings: a, pending: s,
11610
11612
  embedded: !0,
11611
11613
  numbers: B.numbers,
11612
11614
  openId: B.openId,
11613
- page: fe,
11615
+ page: I,
11614
11616
  stale: B.stale,
11615
- tab: I,
11617
+ tab: de,
11616
11618
  threads: B.threads,
11617
11619
  onClose: Ae.close,
11618
11620
  onOpen: Pe,
11619
- onTab: ue
11621
+ onTab: F
11620
11622
  }),
11621
11623
  inspector: /* @__PURE__ */ X(Hp, {
11622
11624
  embedded: !0,
@@ -11748,7 +11750,7 @@ function Km(e, t) {
11748
11750
  return e.code === "plan_limit" && Wm(e.limit) ? Gm(e.limit) : Um(e.code, typeof e.error == "string" ? e.error : t);
11749
11751
  }
11750
11752
  // src/viewer/lib/version.ts
11751
- var qm = "1.74.0", Jm = {
11753
+ var qm = "1.74.1", Jm = {
11752
11754
  path: (e, t) => `/a/${t}`,
11753
11755
  refId: (e) => e.to,
11754
11756
  frameSrc: (e, t) => `/a/${t}/view`,
@@ -11812,22 +11814,22 @@ function Xm(e) {
11812
11814
  history: c,
11813
11815
  historyOpen: l,
11814
11816
  documentExport: Ie(e.documentExport)
11815
- }), ue(a, {
11817
+ }), F(a, {
11816
11818
  kind: "chrome",
11817
11819
  hosted: !!r.current
11818
11820
  });
11819
11821
  }), []), {
11820
11822
  header: t,
11821
- history: (e) => ue(i.current(), {
11823
+ history: (e) => F(i.current(), {
11822
11824
  kind: "history",
11823
11825
  action: e
11824
11826
  }),
11825
- exportPdf: () => ue(i.current(), {
11827
+ exportPdf: () => F(i.current(), {
11826
11828
  kind: "document-export",
11827
11829
  format: "pdf"
11828
11830
  }),
11829
11831
  host: (e) => {
11830
- r.current !== e && (r.current = e, ue(i.current(), {
11832
+ r.current !== e && (r.current = e, F(i.current(), {
11831
11833
  kind: "chrome",
11832
11834
  hosted: e
11833
11835
  }));
@@ -11928,7 +11930,7 @@ function oh(e, t) {
11928
11930
  let t = n.current, i = o.current(e);
11929
11931
  if (!t || !i || !r.current.has(i)) return;
11930
11932
  let a = t.panes[ih(e)];
11931
- ue(i, {
11933
+ F(i, {
11932
11934
  kind: "split-role",
11933
11935
  role: e === t.primary ? "primary" : "beside",
11934
11936
  other: t.open && a.id ? ah(a) : null
@@ -12017,7 +12019,7 @@ function lh({ artboard: e, side: t, document: n, panes: r, slotOfType: i, focus:
12017
12019
  page: void 0
12018
12020
  }, Ze(p.current, e));
12019
12021
  }
12020
- (r.kind === "focus" || i) && g.current(t), ue(u.current[t]?.contentWindow, e.message);
12022
+ (r.kind === "focus" || i) && g.current(t), F(u.current[t]?.contentWindow, e.message);
12021
12023
  } else if ("navigate" in e) h(null), _.current(e.navigate);
12022
12024
  else if ("notice" in e) h({
12023
12025
  kind: "notice",
@@ -12056,7 +12058,7 @@ function lh({ artboard: e, side: t, document: n, panes: r, slotOfType: i, focus:
12056
12058
  let l = r[n];
12057
12059
  if (l.id === a && l.type === c) return;
12058
12060
  let u = t.id === a && t.type === c;
12059
- if (!(s && i === "document" && N(c) && (n === "main" || u))) {
12061
+ if (!(s && i === "document" && M(c) && (n === "main" || u))) {
12060
12062
  if (u) return;
12061
12063
  h(null), v.current(ch(n), {
12062
12064
  type: c,
@@ -12069,8 +12071,8 @@ function lh({ artboard: e, side: t, document: n, panes: r, slotOfType: i, focus:
12069
12071
  if (e.kind === "ready") {
12070
12072
  if (!p.current.artboard || !p.current.document) return;
12071
12073
  let e = u.current[n]?.contentWindow;
12072
- for (let t of Be(i, p.current.artboard, a)) ue(e, t);
12073
- i === "document" && x.current && ue(e, {
12074
+ for (let t of Be(i, p.current.artboard, a)) F(e, t);
12075
+ i === "document" && x.current && F(e, {
12074
12076
  kind: "board",
12075
12077
  artboard: p.current.artboard,
12076
12078
  board: x.current
@@ -12088,7 +12090,7 @@ function lh({ artboard: e, side: t, document: n, panes: r, slotOfType: i, focus:
12088
12090
  }
12089
12091
  // src/viewer/split/SplitShell.tsx
12090
12092
  var uh = ["main", "side"], dh = "ryugiSplitPanes", fh = (e, t) => e.type === t.type && e.id === t.id, ph = (e) => {
12091
- let t = uh.find((t) => N(e[t].type) && e[mh(t)].type === "document");
12093
+ let t = uh.find((t) => M(e[t].type) && e[mh(t)].type === "document");
12092
12094
  return {
12093
12095
  boardSlot: t,
12094
12096
  docSlot: t ? mh(t) : uh.find((t) => e[t].type === "document") ?? null,
@@ -12157,7 +12159,7 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12157
12159
  ve({
12158
12160
  ...g.current,
12159
12161
  [e.slot]: e.pane
12160
- }), te(e.slot);
12162
+ }), ne(e.slot);
12161
12163
  }
12162
12164
  }), x = b.incoming ? {
12163
12165
  ...h,
@@ -12169,7 +12171,7 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12169
12171
  board: n?.board,
12170
12172
  frame: n?.frame,
12171
12173
  page: n?.page
12172
- }).current, D = J("main"), [O, k] = Y("main"), [j, ee] = Y(!!n), [M, te] = Y("side"), [N, ne] = Y(.58), [re, ie] = Y(!1), oe = J(null), P = J(0), F = J(0), se = J(null), ce = J(j), le = J([]), I = J({}), de = J(null), fe = J(!1), pe = J(null), L = lh({
12174
+ }).current, D = J("main"), [O, k] = Y("main"), [A, j] = Y(!!n), [te, ne] = Y("side"), [M, re] = Y(.58), [ie, ae] = Y(!1), se = J(null), N = J(0), P = J(0), ce = J(null), le = J(A), ue = J([]), de = J({}), fe = J(null), I = J(!1), pe = J(null), L = lh({
12173
12175
  artboard: S ? x[S].id : "",
12174
12176
  side: S ? x[S].type : "artboard",
12175
12177
  document: S ? x[mh(S)].id : "",
@@ -12178,10 +12180,10 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12178
12180
  focus: E,
12179
12181
  host: r,
12180
12182
  show: (e) => {
12181
- te(e), !j && (ee(!0), Ae(D.current, !0));
12183
+ ne(e), !A && (j(!0), Ae(D.current, !0));
12182
12184
  },
12183
12185
  navigate: (e) => {
12184
- let t = new URL(e, location.href), n = ae(t.search), i = h[D.current], a = r.path(i.type, i.id);
12186
+ let t = new URL(e, location.href), n = oe(t.search), i = h[D.current], a = r.path(i.type, i.id);
12185
12187
  t.pathname !== a || !n || D.current !== "main" ? location.assign(r.carry?.(e) ?? e) : (be(), Se(n), xe({
12186
12188
  ...h,
12187
12189
  side: {
@@ -12204,18 +12206,18 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12204
12206
  }, me(e)), ge(e, t, me(e));
12205
12207
  }
12206
12208
  }), me = (e) => e === D.current ? 1 : -1, ge = (e, t, n) => {
12207
- j && h[e].id && !fh(h[e], t) ? b.stage({
12209
+ A && h[e].id && !fh(h[e], t) ? b.stage({
12208
12210
  slot: e,
12209
12211
  pane: t,
12210
12212
  enter: n
12211
12213
  }) : (ve({
12212
12214
  ...h,
12213
12215
  [e]: t
12214
- }), te(e));
12216
+ }), ne(e));
12215
12217
  }, _e = J(ge);
12216
12218
  _e.current = ge;
12217
12219
  let ve = (e) => {
12218
- f(e.main), m(e.side.type), l(e.side.id), ee(!0);
12220
+ f(e.main), m(e.side.type), l(e.side.id), j(!0);
12219
12221
  }, R = (e, t, n, r) => ({
12220
12222
  ...e,
12221
12223
  focus: { ...E },
@@ -12224,37 +12226,37 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12224
12226
  enter: r
12225
12227
  }), be = () => {
12226
12228
  let e = history.state;
12227
- e?.[dh] || (P.current = 0, F.current = 0, history.replaceState({
12229
+ e?.[dh] || (N.current = 0, P.current = 0, history.replaceState({
12228
12230
  ...e,
12229
- [dh]: R(h, j, 0, 0)
12231
+ [dh]: R(h, A, 0, 0)
12230
12232
  }, ""));
12231
12233
  }, xe = (e, t) => {
12232
- P.current += 1, F.current = t;
12234
+ N.current += 1, P.current = t;
12233
12235
  let n = e[D.current], i = e[mh(D.current)], a = h[D.current], o = n.type === a.type && n.id === a.id ? location.pathname : r.path(n.type, n.id);
12234
12236
  history.pushState({
12235
12237
  ...history.state,
12236
- [dh]: R(e, !0, P.current, t)
12237
- }, "", `${o}${A(location.search, je(i.id, i.type, E, n.type))}`);
12238
+ [dh]: R(e, !0, N.current, t)
12239
+ }, "", `${o}${ee(location.search, je(i.id, i.type, E, n.type))}`);
12238
12240
  }, Se = (e) => {
12239
12241
  Object.assign(E, {
12240
12242
  group: e.group,
12241
12243
  board: e.board,
12242
12244
  frame: e.frame,
12243
12245
  page: e.page
12244
- }), m(gh(d.type, e)), l(e.with), ee(!0), te("side");
12246
+ }), m(gh(d.type, e)), l(e.with), j(!0), ne("side");
12245
12247
  }, Ce = J(Se);
12246
12248
  Ce.current = Se;
12247
12249
  let we = J(() => {});
12248
12250
  we.current = () => {
12249
- D.current = "main", k("main"), ee(!1);
12251
+ D.current = "main", k("main"), j(!1);
12250
12252
  };
12251
12253
  let z = J(ve);
12252
12254
  z.current = ve, K(() => {
12253
12255
  let e = () => {
12254
12256
  let e = history.state?.[dh];
12255
12257
  if (e) {
12256
- let t = e.seq < P.current ? -F.current : e.enter;
12257
- P.current = e.seq, F.current = e.enter, Object.assign(E, e.focus);
12258
+ let t = e.seq < N.current ? -P.current : e.enter;
12259
+ N.current = e.seq, P.current = e.enter, Object.assign(E, e.focus);
12258
12260
  let n = uh.filter((t) => !fh(e[t], g.current[t]));
12259
12261
  if (e.open && n.length === 1) {
12260
12262
  _e.current(n[0], e[n[0]], t || 1);
@@ -12265,7 +12267,7 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12265
12267
  }
12266
12268
  if (location.pathname !== r.path(u.type, u.id)) return;
12267
12269
  f(u);
12268
- let t = ae(location.search);
12270
+ let t = oe(location.search);
12269
12271
  t ? Ce.current(t) : we.current();
12270
12272
  };
12271
12273
  return window.addEventListener("popstate", e), () => window.removeEventListener("popstate", e);
@@ -12275,47 +12277,47 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12275
12277
  E
12276
12278
  ]);
12277
12279
  let B = Dh(r, c), V = Xm(() => _ ? L.window(_) : null), De = oh((e) => L.window(e), a), Oe = () => {
12278
- let e = D.current, t = j ? s ? M : null : e;
12280
+ let e = D.current, t = A ? s ? te : null : e;
12279
12281
  for (let n of uh) {
12280
12282
  let r = y.current[n];
12281
12283
  if (!r) continue;
12282
12284
  let i = n === e ? "primary" : "secondary";
12283
12285
  r.dataset.role = i, r.style.order = i === "primary" ? "0" : "2";
12284
12286
  let a = pe.current, o = a?.slot === n;
12285
- r.style.flex = !j || s || a ? "1 1 auto" : i === "primary" ? `0 0 ${N * 100}%` : "1 1 0";
12287
+ r.style.flex = !A || s || a ? "1 1 auto" : i === "primary" ? `0 0 ${M * 100}%` : "1 1 0";
12286
12288
  let c = t !== null && t !== n;
12287
12289
  r.style.position = c || o ? yh.position : "", r.style.inset = c ? "0" : o ? "0 0 0 auto" : "", r.style.width = o ? `${a.width}px` : "", r.style.zIndex = o ? "1" : "", r.style.visibility = c ? yh.visibility : "";
12288
12290
  let l = r.querySelector(":scope > header");
12289
12291
  l && (l.style.display = i === "primary" ? "none" : "");
12290
12292
  }
12291
- let n = I.current[e];
12293
+ let n = de.current[e];
12292
12294
  n && (document.title = n);
12293
12295
  let r = document.querySelector("link[rel=\"icon\"]");
12294
12296
  r && (r.href = fn(h[e].type));
12295
- let i = j && !s && h[e].type !== "document";
12296
- fe.current = j && !s && h[e].type === "document";
12297
+ let i = A && !s && h[e].type !== "document";
12298
+ I.current = A && !s && h[e].type === "document";
12297
12299
  let a = C("whiteboard");
12298
- return a && ue(L.window(a), {
12300
+ return a && F(L.window(a), {
12299
12301
  kind: "chrome",
12300
- hosted: fe.current
12301
- }), _ && y.current[_]?.style.setProperty("--split-notice-top", i ? "49px" : ""), V.host(i), De(h, e, j), t;
12302
+ hosted: I.current
12303
+ }), _ && y.current[_]?.style.setProperty("--split-notice-top", i ? "49px" : ""), V.host(i), De(h, e, A), t;
12302
12304
  };
12303
12305
  K(() => w((e, t) => {
12304
12306
  let n = T.current("whiteboard");
12305
- if (e.kind === "ready" && t && n && t === L.window(n) && ue(L.window(n), {
12307
+ if (e.kind === "ready" && t && n && t === L.window(n) && F(L.window(n), {
12306
12308
  kind: "chrome",
12307
- hosted: fe.current
12309
+ hosted: I.current
12308
12310
  }), e.kind !== "title") return;
12309
12311
  let r = uh.find((e) => L.window(e) === t);
12310
- r && (I.current[r] = e.title, r === D.current && (document.title = e.title));
12312
+ r && (de.current[r] = e.title, r === D.current && (document.title = e.title));
12311
12313
  }), []);
12312
- let ke = () => void oe.current?.offsetWidth;
12314
+ let ke = () => void se.current?.offsetWidth;
12313
12315
  Fn(() => {
12314
- for (let e of le.current.splice(0)) e.cancel();
12315
- let e = Oe(), t = ce.current, n = se.current;
12316
- if (ce.current = j, se.current = e, ye()) return;
12316
+ for (let e of ue.current.splice(0)) e.cancel();
12317
+ let e = Oe(), t = le.current, n = ce.current;
12318
+ if (le.current = A, ce.current = e, ye()) return;
12317
12319
  let r = y.current[mh(D.current)];
12318
- if (j && !t && !s) ke(), lt(r, Ch, {
12320
+ if (A && !t && !s) ke(), lt(r, Ch, {
12319
12321
  duration: bh,
12320
12322
  easing: Ee
12321
12323
  });
@@ -12325,12 +12327,12 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12325
12327
  duration: bh,
12326
12328
  easing: Ee
12327
12329
  }).then(() => {
12328
- t && se.current !== n && (t.style.visibility = "hidden");
12330
+ t && ce.current !== n && (t.style.visibility = "hidden");
12329
12331
  });
12330
12332
  }
12331
12333
  });
12332
12334
  let Ae = (e, t) => {
12333
- let n = h[mh(e)], i = A(location.search, t ? je(n.id, n.type, E, h[e].type) : null);
12335
+ let n = h[mh(e)], i = ee(location.search, t ? je(n.id, n.type, E, h[e].type) : null);
12334
12336
  history.replaceState(history.state, "", `${r.path(h[e].type, h[e].id)}${i}`);
12335
12337
  }, Me = async (e, t, n) => {
12336
12338
  if (!e || ye()) return n();
@@ -12339,7 +12341,7 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12339
12341
  easing: he,
12340
12342
  fill: "forwards"
12341
12343
  });
12342
- await r.finished.catch(() => void 0), le.current.push(r), n();
12344
+ await r.finished.catch(() => void 0), ue.current.push(r), n();
12343
12345
  }, Ne = () => {
12344
12346
  let e = uh.map((e) => y.current[e]?.getBoundingClientRect().left ?? 0);
12345
12347
  D.current = mh(D.current), Oe(), Ae(D.current, !0), !ye() && uh.forEach((t, n) => {
@@ -12353,37 +12355,37 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12353
12355
  let e = D.current;
12354
12356
  Ae(e, !1);
12355
12357
  let t = y.current[e], n = y.current[mh(e)], r = () => {
12356
- pe.current = null, k(e), ee(!1);
12358
+ pe.current = null, k(e), j(!1);
12357
12359
  };
12358
12360
  if (!t || !n || s || ye()) return r();
12359
12361
  pe.current = {
12360
12362
  slot: mh(e),
12361
12363
  width: n.getBoundingClientRect().width
12362
- }, de.current && (de.current.style.display = "none"), Oe(), ke(), n.animate(wh, {
12364
+ }, fe.current && (fe.current.style.display = "none"), Oe(), ke(), n.animate(wh, {
12363
12365
  duration: xh,
12364
12366
  easing: he,
12365
12367
  fill: "forwards"
12366
12368
  }).finished.catch(() => void 0).then(r);
12367
12369
  }, Fe = () => {
12368
- let e = y.current[M], t = y.current[D.current];
12370
+ let e = y.current[te], t = y.current[D.current];
12369
12371
  t && e && !ye() && (t.style.visibility = "", e.style.zIndex = "1"), Me(e, Eh, () => {
12370
- e && (e.style.zIndex = ""), te(D.current);
12372
+ e && (e.style.zIndex = ""), ne(D.current);
12371
12373
  });
12372
12374
  }, Ie = (e) => {
12373
- let t = oe.current?.getBoundingClientRect();
12375
+ let t = se.current?.getBoundingClientRect();
12374
12376
  if (!t?.width) return;
12375
12377
  let n = (e.clientX - t.left) / t.width;
12376
- ne(Math.min(vh, Math.max(_h, n)));
12378
+ re(Math.min(vh, Math.max(_h, n)));
12377
12379
  };
12378
12380
  return /* @__PURE__ */ Z("div", {
12379
- ref: oe,
12381
+ ref: se,
12380
12382
  ...{
12381
12383
  0: { className: "x1n2onr6 x78zum5 xn9wirt xtdtrs8 xb3r6kr" },
12382
12384
  1: { className: "x1n2onr6 x78zum5 xb3r6kr xh8yej3 x5yr21d" }
12383
12385
  }[!!i | 0],
12384
12386
  children: [uh.map((e) => {
12385
12387
  let { type: t, id: n } = h[e];
12386
- if (!n || !j && e !== O) return null;
12388
+ if (!n || !A && e !== O) return null;
12387
12389
  let i = hh[t];
12388
12390
  return /* @__PURE__ */ Z("section", {
12389
12391
  "data-split-pane": t,
@@ -12392,7 +12394,7 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12392
12394
  y.current[e] = t;
12393
12395
  },
12394
12396
  className: "x1n2onr6 x78zum5 xdt5ytf xeuugli x5yr21d",
12395
- children: [j && /* @__PURE__ */ Z("header", {
12397
+ children: [A && /* @__PURE__ */ Z("header", {
12396
12398
  className: "x78zum5 x6s0dn4 x167g77z xn3w4p2 x2lah0s x1c5z90z xso031l x1q0q8m5 xtrfj0v xqfszdh x4z9k3i xo2rkog",
12397
12399
  children: [
12398
12400
  s && /* @__PURE__ */ X("button", {
@@ -12485,19 +12487,19 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12485
12487
  2: { className: "xh8yej3 x5yr21d xc342km x1lliihq x47corl" },
12486
12488
  1: { className: "xh8yej3 x5yr21d xc342km x1lliihq x10l6tqk x10a8y8t xg01cxk x47corl" },
12487
12489
  3: { className: "xh8yej3 x5yr21d xc342km x1lliihq x10l6tqk x10a8y8t xg01cxk x47corl" }
12488
- }[!!re << 1 | !!a]
12490
+ }[!!ie << 1 | !!a]
12489
12491
  }, `${t.type}/${t.id}`);
12490
12492
  })]
12491
12493
  })]
12492
12494
  }, e);
12493
- }), j && c && !s && /* @__PURE__ */ X("div", {
12495
+ }), A && c && !s && /* @__PURE__ */ X("div", {
12494
12496
  "aria-orientation": "vertical",
12495
- ref: de,
12497
+ ref: fe,
12496
12498
  role: "separator",
12497
- onPointerMove: (e) => re && Ie(e),
12498
- onPointerUp: () => ie(!1),
12499
+ onPointerMove: (e) => ie && Ie(e),
12500
+ onPointerUp: () => ae(!1),
12499
12501
  onPointerDown: (e) => {
12500
- e.currentTarget.setPointerCapture(e.pointerId), ie(!0);
12502
+ e.currentTarget.setPointerCapture(e.pointerId), ae(!0);
12501
12503
  },
12502
12504
  className: "x9ek82g xrsdxou x1n2onr6 xh6qj2i xicojor x5ve5x3",
12503
12505
  children: /* @__PURE__ */ X("span", { className: "x10l6tqk x10no89f x1jsbkzl" })
@@ -12505,5 +12507,5 @@ function Oh({ type: e, id: t, split: n, host: r, fill: i = !1, onPanes: a }) {
12505
12507
  });
12506
12508
  }
12507
12509
  // src/viewer/whiteboard/LazyReadOnlyWhiteboard.ts
12508
- var kh = jn(() => import("./ReadOnlyWhiteboard-DphAvLi-.js").then(({ ReadOnlyWhiteboard: e }) => ({ default: e })));
12509
- export { Nt as ARTIFACT_LOCATOR_SOURCE, Kt as ARTIFACT_TYPES, zm as ArtboardView, Ri as ArtifactThumbnail, Et as BOARD_TYPES, i as CanvasErrorBoundary, Te as DocumentExportMenu, gt as ENTRY_FILE, Ji as EmbeddedCanvas, Vt as HTML_LANG, B as HTML_SANDBOX, Hm as HtmlView, kh as LazyReadOnlyWhiteboard, b as MAIN_PORTS, St as MAX_ARTIFACT_BYTES, Ve as PHONE_QUERY, Lt as PLAN_LIMIT_KINDS, _ as PreviewView, Xi as PublicationStatus, Wt as RELAY_DAILY_LIMIT, jt as RELAY_REJECTED_CODE, $e as RailSwitch, Zi as RyugiMark, pt as SHARE_EXPIRIES, $i as ShareConfirm, ea as ShareKeyRow, ma as SharePanel, Oh as SplitShell, en as TYPE_GLYPHS, Yt as TYPE_ICON_VIEWBOX, Ft as Trans, Li as TypeIcon, qm as VIEWER_VERSION, y as ViewerProvider, V as anchorBlockIds, We as applyAgentOp, Re as applyAgentThreadOp, ji as applyBoardAgentOp, Ai as applyBoardHumanOp, Ae as applyHumanOp, De as applyThreadOp, zi as besideHidden, wi as boardAnchors, va as boardCommentsFromMessage, _a as boardCommentsFromPayload, t as cloudErrorDetails, Jm as cloudSplitFrames, an as createRelayConnection, Ot as createViewerI18n, ge as documentAnchors, O as dropPendingAnchor, Ti as emptyBoardComments, nt as emptyComments, Um as errorText, e as formatBytes, re as holdEmbedAnchor, Bt as i18n, ft as inSplit, Dt as isArtifactAddress, Gt as isArtifactId, Jt as isArtifactLocator, kt as isArtifactType, mi as isChoiceRecord, ht as isMediaBoard, qt as isMintedArtifactId, ut as isObject, Wm as isPlanLimit, It as isShareExpiry, ne as isSplitType, bt as isVisibility, Di as mergeBoardComments, R as mergeComments, Fi as mergeReferrers, Tt as mintArtifactId, mt as mintToken, w as onSplitMessage, st as openThread, xt as ownLink, En as pageLink, Rt as parseAcceptLanguage, se as parseComments, ae as parseSplit, Fe as pendingAnchor, Gm as planLimitMessage, Ct as publishState, _t as publishing, Ci as readBoardAnchor, Ue as readCloudHeader, C as readEmbedAnchor, vt as readPublication, Ii as referrerSummary, Zt as relativeUpdatedAt, Mt as relayRejection, Xe as reportCloudHeader, Pt as resolveLocale, Km as responseErrorText, Ne as restoreAnchorSoon, Ei as savedBoardComments, T as savedComments, yt as shareKeyExpired, wt as syncNote, U as t, fn as typeFaviconHref, at as unreadThreads, xa as useCanvasData, Se as useCloudHeader, Je as useMedia, wn as usePageQuery, Qe as useSandboxFrame, n as useSystemTheme, At as useTranslation, sn as useTypeFavicon, le as waitingOn };
12510
+ var kh = jn(() => import("./ReadOnlyWhiteboard-CdaTkZWK.js").then(({ ReadOnlyWhiteboard: e }) => ({ default: e })));
12511
+ export { Nt as ARTIFACT_LOCATOR_SOURCE, Kt as ARTIFACT_TYPES, zm as ArtboardView, Ri as ArtifactThumbnail, Et as BOARD_TYPES, i as CanvasErrorBoundary, Te as DocumentExportMenu, gt as ENTRY_FILE, Ji as EmbeddedCanvas, Vt as HTML_LANG, B as HTML_SANDBOX, Hm as HtmlView, kh as LazyReadOnlyWhiteboard, b as MAIN_PORTS, St as MAX_ARTIFACT_BYTES, Ve as PHONE_QUERY, Lt as PLAN_LIMIT_KINDS, _ as PreviewView, Xi as PublicationStatus, Wt as RELAY_DAILY_LIMIT, jt as RELAY_REJECTED_CODE, $e as RailSwitch, Zi as RyugiMark, pt as SHARE_EXPIRIES, $i as ShareConfirm, ea as ShareKeyRow, ma as SharePanel, Oh as SplitShell, en as TYPE_GLYPHS, Yt as TYPE_ICON_VIEWBOX, Ft as Trans, Li as TypeIcon, qm as VIEWER_VERSION, y as ViewerProvider, V as anchorBlockIds, We as applyAgentOp, Re as applyAgentThreadOp, ji as applyBoardAgentOp, Ai as applyBoardHumanOp, Ae as applyHumanOp, De as applyThreadOp, zi as besideHidden, wi as boardAnchors, va as boardCommentsFromMessage, _a as boardCommentsFromPayload, t as cloudErrorDetails, Jm as cloudSplitFrames, an as createRelayConnection, Ot as createViewerI18n, ge as documentAnchors, O as dropPendingAnchor, Ti as emptyBoardComments, nt as emptyComments, Um as errorText, e as formatBytes, ie as holdEmbedAnchor, Bt as i18n, ft as inSplit, Dt as isArtifactAddress, Gt as isArtifactId, Jt as isArtifactLocator, kt as isArtifactType, mi as isChoiceRecord, ht as isMediaBoard, qt as isMintedArtifactId, ut as isObject, Wm as isPlanLimit, It as isShareExpiry, re as isSplitType, bt as isVisibility, Di as mergeBoardComments, R as mergeComments, Fi as mergeReferrers, Tt as mintArtifactId, mt as mintToken, w as onSplitMessage, st as openThread, xt as ownLink, En as pageLink, Rt as parseAcceptLanguage, ce as parseComments, oe as parseSplit, Fe as pendingAnchor, Gm as planLimitMessage, Ct as publishState, _t as publishing, Ci as readBoardAnchor, Ue as readCloudHeader, C as readEmbedAnchor, vt as readPublication, Ii as referrerSummary, Zt as relativeUpdatedAt, Mt as relayRejection, Xe as reportCloudHeader, Pt as resolveLocale, Km as responseErrorText, Ne as restoreAnchorSoon, Ei as savedBoardComments, T as savedComments, yt as shareKeyExpired, wt as syncNote, U as t, fn as typeFaviconHref, at as unreadThreads, xa as useCanvasData, Se as useCloudHeader, Je as useMedia, wn as usePageQuery, Qe as useSandboxFrame, n as useSystemTheme, At as useTranslation, sn as useTypeFavicon, ue as waitingOn };