allyhub 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (580) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/bin/allyhub.js +10 -0
  3. package/dist/args.js +1 -1
  4. package/dist/command.js +1 -1
  5. package/dist/commands/add.js +1 -1
  6. package/dist/commands/auth.js +1 -1
  7. package/dist/commands/cloud-tools.js +1 -1
  8. package/dist/commands/cloud.js +1 -1
  9. package/dist/commands/contributed.js +1 -1
  10. package/dist/commands/found-extensions.js +2 -0
  11. package/dist/commands/frames/common.js +1 -1
  12. package/dist/commands/frames/doc.js +1 -1
  13. package/dist/commands/frames.js +9 -9
  14. package/dist/commands/index.js +1 -1
  15. package/dist/commands/inspect/common.js +3 -3
  16. package/dist/commands/inspect/index.js +1 -1
  17. package/dist/commands/inspect/layout.js +1 -1
  18. package/dist/commands/inspect/views.js +1 -1
  19. package/dist/commands/list.js +2 -0
  20. package/dist/commands/mail.js +1 -1
  21. package/dist/commands/render.js +1 -1
  22. package/dist/commands/run-context.js +2 -0
  23. package/dist/commands.json +1 -0
  24. package/dist/fields.js +1 -1
  25. package/dist/main.js +7 -7
  26. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +1 -1
  27. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +1 -1
  28. package/dist/node_modules/@allyhub/3d-extension/package.json +3 -2
  29. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  30. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  31. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +1 -1
  32. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  33. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +1 -1
  34. package/dist/node_modules/@allyhub/build/dist/plugin.js +9 -9
  35. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  36. package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
  37. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  38. package/dist/node_modules/@allyhub/build/dist/sdk-parts.js +2 -0
  39. package/dist/node_modules/@allyhub/build/dist/vite.js +2 -2
  40. package/dist/node_modules/@allyhub/build/package.json +9 -1
  41. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  42. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  43. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  44. package/dist/node_modules/@allyhub/check/dist/check.js +2 -2
  45. package/dist/node_modules/@allyhub/check/package.json +1 -1
  46. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  47. package/dist/node_modules/@allyhub/cloud/dist/call.js +1 -1
  48. package/dist/node_modules/@allyhub/cloud/dist/catalog.js +1 -1
  49. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  50. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  51. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +1 -1
  52. package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
  53. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  54. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  55. package/dist/node_modules/@allyhub/cloud/dist/loopback.js +2 -2
  56. package/dist/node_modules/@allyhub/cloud/dist/mail.js +1 -1
  57. package/dist/node_modules/@allyhub/cloud/dist/records.js +1 -1
  58. package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
  59. package/dist/node_modules/@allyhub/cloud/dist/sites.js +1 -1
  60. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  61. package/dist/node_modules/@allyhub/cloud/dist/tools.js +2 -0
  62. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +1 -1
  63. package/dist/node_modules/@allyhub/cloud/dist/voice.js +1 -1
  64. package/dist/node_modules/@allyhub/cloud/package.json +5 -1
  65. package/dist/node_modules/@allyhub/components/package.json +1 -1
  66. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  67. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  68. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  69. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
  70. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +1 -1
  71. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  72. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  73. package/dist/node_modules/@allyhub/export/package.json +1 -1
  74. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  75. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  76. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  77. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +24 -7
  78. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  79. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +1 -1
  80. package/dist/node_modules/@allyhub/formats/package.json +25 -1
  81. package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
  82. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  83. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  84. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  85. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  86. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  87. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  88. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  89. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  90. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  91. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  92. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  93. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  94. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -600
  95. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  96. package/dist/node_modules/@allyhub/media/package.json +5 -1
  97. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +1 -1
  98. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +1 -1
  99. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  100. package/dist/node_modules/@allyhub/model/package.json +1 -1
  101. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  102. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  103. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +1 -2
  104. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +1 -1
  105. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +2 -2
  106. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +2 -2
  107. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  108. package/dist/node_modules/@allyhub/project/package.json +1 -1
  109. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  110. package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
  111. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  112. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  113. package/dist/node_modules/@allyhub/protocol/dist/errors.js +1 -1
  114. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  115. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  116. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.js +1 -1
  117. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  118. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  119. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  120. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
  121. package/dist/node_modules/@allyhub/protocol/dist/purposes.js +1 -1
  122. package/dist/node_modules/@allyhub/protocol/dist/registry.js +1 -1
  123. package/dist/node_modules/@allyhub/protocol/dist/sites.js +1 -1
  124. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  125. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  126. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  127. package/dist/node_modules/@allyhub/protocol/package.json +41 -1
  128. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  129. package/dist/node_modules/@allyhub/render/dist/errors.js +1 -1
  130. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  131. package/dist/node_modules/@allyhub/render/package.json +9 -1
  132. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  133. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  134. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +1 -1
  135. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  136. package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +1 -1
  137. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  138. package/dist/node_modules/@allyhub/runtimes/package.json +9 -1
  139. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  140. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  141. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +3 -3
  142. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +1 -1
  143. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +2 -2
  144. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  145. package/dist/node_modules/@allyhub/sheet/dist/annotations.js +1 -1
  146. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  147. package/dist/node_modules/@allyhub/sheet/dist/arrange.js +1 -1
  148. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  149. package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
  150. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  151. package/dist/node_modules/@allyhub/sheet/dist/html.js +6 -6
  152. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  153. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  154. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +1 -1
  155. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
  156. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
  157. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  158. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  159. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  160. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  161. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  162. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  163. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400-italic.css +1 -79
  164. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400.css +1 -79
  165. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700-italic.css +1 -79
  166. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700.css +1 -79
  167. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/arial.css +1 -316
  168. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +1 -19
  169. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +1 -19
  170. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +1 -19
  171. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +1 -19
  172. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +1 -76
  173. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400-italic.css +1 -69
  174. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400.css +1 -69
  175. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700-italic.css +1 -69
  176. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700.css +1 -69
  177. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/calibri.css +1 -276
  178. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +1 -79
  179. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +1 -79
  180. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +1 -79
  181. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +1 -79
  182. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +1 -316
  183. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-color-emoji/emoji.css +1 -8
  184. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/400.css +1 -1009
  185. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/700.css +1 -1009
  186. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +1 -2018
  187. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +1 -79
  188. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +1 -79
  189. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +1 -79
  190. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +1 -79
  191. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +1 -316
  192. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  193. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  194. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +1 -1
  195. package/dist/node_modules/@allyhub/telemetry/dist/errors.js +1 -1
  196. package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
  197. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  198. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  199. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  200. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +1 -1
  201. package/dist/node_modules/@allyhub/video-extension/package.json +6 -2
  202. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +2 -2
  203. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +1 -1
  204. package/dist/node_modules/@allyhub/video-measure/package.json +5 -1
  205. package/dist/node_modules/@allyhub/video-sdk/dist/config.js +2 -0
  206. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +1 -1
  207. package/dist/node_modules/@allyhub/video-sdk/package.json +5 -1
  208. package/dist/node_modules/@allyhub/website/package.json +1 -1
  209. package/dist/node_modules/@allyhub/website-extension/dist/build.js +1 -1
  210. package/dist/node_modules/@allyhub/website-extension/package.json +4 -4
  211. package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
  212. package/dist/node_modules/@allyhub/x-extension/package.json +8 -2
  213. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  214. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  215. package/dist/node_modules/@allyhub/x-view/src/style.css +1 -709
  216. package/dist/package.json +14 -14
  217. package/dist/project.js +1 -1
  218. package/dist/resources.js +1 -1
  219. package/dist/sdk-docs.js +1 -1
  220. package/dist/slot.js +4 -0
  221. package/dist/telemetry.js +1 -1
  222. package/dist/version.js +1 -1
  223. package/editor-web/assets/{abnfDiagram-WEYOIA3C-Hy4-O0wN.js → abnfDiagram-WEYOIA3C-DYaMS_BB.js} +1 -1
  224. package/editor-web/assets/{architecture-WOLXFQ4H-43JEVxqz.js → architecture-WOLXFQ4H-g_Tjfl_y.js} +1 -1
  225. package/editor-web/assets/{architectureDiagram-ZHVYKT53-7bFTl41n.js → architectureDiagram-ZHVYKT53-CqdhofOL.js} +1 -1
  226. package/editor-web/assets/{article-CS48wwvk.js → article-8evPh712.js} +1 -1
  227. package/editor-web/assets/{article-Cyle57uq.js → article-BhRtWYMd.js} +1 -1
  228. package/editor-web/assets/{blockDiagram-RJAE7QA3-DcoNo1WH.js → blockDiagram-RJAE7QA3-Bc-28Bci.js} +1 -1
  229. package/editor-web/assets/{c4Diagram-XDPPPE54-CsMt61gx.js → c4Diagram-XDPPPE54-CTGJb8FB.js} +1 -1
  230. package/editor-web/assets/{calc-worker-BdHh5LXM.js → calc-worker-oEIqrrTM.js} +1 -1
  231. package/editor-web/assets/channel-wIj_OqDm.js +1 -0
  232. package/editor-web/assets/{chart-file-CfbWK9l1.js → chart-file-dGiRgFcH.js} +1 -1
  233. package/editor-web/assets/{chunk-2E7WHVMD-fj-TJIRG.js → chunk-2E7WHVMD-B2MPOVTU.js} +1 -1
  234. package/editor-web/assets/{chunk-4EMNKR2T-Du5cRy-Y.js → chunk-4EMNKR2T-BUV1ZHP0.js} +1 -1
  235. package/editor-web/assets/{chunk-55XCU76K-BHXxBBtm.js → chunk-55XCU76K-BZlpspL5.js} +1 -1
  236. package/editor-web/assets/{chunk-7S6XSTFO-R5HW6X5I.js → chunk-7S6XSTFO-CpKeisWE.js} +1 -1
  237. package/editor-web/assets/{chunk-AQDTSKZB-C98F2BUb.js → chunk-AQDTSKZB-BJqwAPyo.js} +1 -1
  238. package/editor-web/assets/{chunk-DSNLSHJZ-NIGsJ2cK.js → chunk-DSNLSHJZ-D6oPWl_W.js} +1 -1
  239. package/editor-web/assets/{chunk-HAGFOTED-BtHxtfW5.js → chunk-HAGFOTED-B5pk4MZF.js} +1 -1
  240. package/editor-web/assets/{chunk-HNE4Q36P-BI8i7Vkk.js → chunk-HNE4Q36P-DHbSPvxQ.js} +1 -1
  241. package/editor-web/assets/{chunk-NQOKRVIF-DP_Z_zEA.js → chunk-NQOKRVIF-CcL_GcRA.js} +1 -1
  242. package/editor-web/assets/{chunk-UHW7PFBP-C_8bui28.js → chunk-UHW7PFBP-YgiOL6XE.js} +1 -1
  243. package/editor-web/assets/{chunk-VQ5W62QI-CKZgzWB2.js → chunk-VQ5W62QI-p14b4UYc.js} +1 -1
  244. package/editor-web/assets/{chunk-WQQL4CDK-Ff4DgCht.js → chunk-WQQL4CDK-BWW0x-XH.js} +1 -1
  245. package/editor-web/assets/{chunk-YZO67HFG-Csbx1-pi.js → chunk-YZO67HFG-oG3qd68C.js} +1 -1
  246. package/editor-web/assets/{chunk-ZAUX2LTX-BO1kcV3w.js → chunk-ZAUX2LTX-CpcheH0u.js} +1 -1
  247. package/editor-web/assets/{chunk-ZCHMQSOR-CxeNZYZG.js → chunk-ZCHMQSOR-cWQvLl1w.js} +1 -1
  248. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-D8eHQa5i.js → classDiagram-v2-4MYWR3UA-7PG7YcdU.js} +1 -1
  249. package/editor-web/assets/{cynefin-EF2NZ3EQ-lIUY3WQQ.js → cynefin-EF2NZ3EQ-CtcknEQ_.js} +1 -1
  250. package/editor-web/assets/{cynefinDiagram-WF24UDRP-CFOOhEEs.js → cynefinDiagram-WF24UDRP-Ca7VIsjN.js} +1 -1
  251. package/editor-web/assets/{dagre-NK4GIZVX-DdHVup2I.js → dagre-NK4GIZVX-BzcSLtsr.js} +1 -1
  252. package/editor-web/assets/deck-C7fN0Qtn.js +1 -0
  253. package/editor-web/assets/{diagram-CBK3MWTC-CFAD9Y2B.js → diagram-CBK3MWTC-DpRmTGlG.js} +1 -1
  254. package/editor-web/assets/{diagram-I5XIIV2D-DZJAn95A.js → diagram-I5XIIV2D-BTrs_AX8.js} +1 -1
  255. package/editor-web/assets/{diagram-ODIL2UCW-BcIeYTaY.js → diagram-ODIL2UCW-CkIVjPqH.js} +1 -1
  256. package/editor-web/assets/{diagram-PFBEJUXE-CnZmh_fl.js → diagram-PFBEJUXE-BlFMbAG1.js} +1 -1
  257. package/editor-web/assets/{diagram-RJA3I4VV-DpDd9rGx.js → diagram-RJA3I4VV-D3f8VJ-D.js} +1 -1
  258. package/editor-web/assets/{diagram-TYUNFSNR-ouGiUQcR.js → diagram-TYUNFSNR-Bbpngj6F.js} +1 -1
  259. package/editor-web/assets/{dist-DGKjn59H.js → dist-3iovns9K.js} +1 -1
  260. package/editor-web/assets/dist-BkHnbOEj.js +4 -0
  261. package/editor-web/assets/dist-BvOrNcK-.js +19 -0
  262. package/editor-web/assets/dist-CEIszq39.js +1 -0
  263. package/editor-web/assets/{dist-BI8QjOsV.js → dist-CU5RbLNH.js} +1 -1
  264. package/editor-web/assets/dist-CWZj8IAm.js +1 -0
  265. package/editor-web/assets/{dist-NQNQ5HqZ.js → dist-C_Mtrnif.js} +3 -3
  266. package/editor-web/assets/{dist-BajH5QfK.js → dist-CdqpwdCV.js} +4 -4
  267. package/editor-web/assets/{dist-SV0sOVIC.js → dist-CjT76RAw.js} +1 -1
  268. package/editor-web/assets/{dist-elglzHMT.js → dist-CpzEn9T8.js} +1 -1
  269. package/editor-web/assets/dist-CrFYWl5-.js +3 -0
  270. package/editor-web/assets/{dist-hHcrvNn9.js → dist-D4eBFGVL.js} +1 -1
  271. package/editor-web/assets/dist-DTcjb3cP.js +18 -0
  272. package/editor-web/assets/dist-D_WSM29I.js +17 -0
  273. package/editor-web/assets/{dist-Y_XZZa8q.js → dist-Dp_9ISjP.js} +10 -10
  274. package/editor-web/assets/{dist-BBshIz1Q.js → dist-J-tPYKGS.js} +4 -4
  275. package/editor-web/assets/{docx-draw-C4aiB8HI.js → docx-draw-CoK1oqQD.js} +1 -1
  276. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-HRjVlbUf.js → ebnfDiagram-V4P3TTPT-BaKj-yL6.js} +1 -1
  277. package/editor-web/assets/{elk-QONTBCTQ-BFmtKyOf.js → elk-QONTBCTQ-Cn2qv1_U.js} +1 -1
  278. package/editor-web/assets/{erDiagram-KYQIGQAA-C9gcGEgK.js → erDiagram-KYQIGQAA-Bd7AEIDo.js} +1 -1
  279. package/editor-web/assets/{esm-DzxAod8Q.js → esm-Cjv8ogpP.js} +1 -1
  280. package/editor-web/assets/{eventmodeling-K75KTNOO-Bpma5Bdb.js → eventmodeling-K75KTNOO-Sfp7_461.js} +1 -1
  281. package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +1 -0
  282. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CE5ut4C3.js → ganttDiagram-R7GPNTJY-CBqcGdHI.js} +1 -1
  283. package/editor-web/assets/{gitGraph-VSP46ZUC-Dva3iGx2.js → gitGraph-VSP46ZUC-WTokXKTW.js} +1 -1
  284. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-CJXFsAWp.js → gitGraphDiagram-PDYL7XHY-BIWZHD9q.js} +1 -1
  285. package/editor-web/assets/index-BQWZnyAQ.js +28 -0
  286. package/editor-web/assets/{info-OHQRW6UA-BY0AOfex.js → info-OHQRW6UA-COC6G-_J.js} +1 -1
  287. package/editor-web/assets/{infoDiagram-MVDRKAX5-4Up1gMvC.js → infoDiagram-MVDRKAX5-DpaqdKBD.js} +1 -1
  288. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js → ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js} +1 -1
  289. package/editor-web/assets/{iso-ahTwmFwH.js → iso-DoC-ZoBr.js} +1 -1
  290. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BxV09WdR.js → journeyDiagram-BOSHW7O7-DeSVfmm7.js} +1 -1
  291. package/editor-web/assets/{kanban-definition-FNSA4HC5-zTJtIDPG.js → kanban-definition-FNSA4HC5-Bfg0lj7B.js} +1 -1
  292. package/editor-web/assets/{mermaid-parser.core-BWT9UQh_.js → mermaid-parser.core-CyhovuYE.js} +3 -3
  293. package/editor-web/assets/{mermaid.core-DFf_Vg5X.js → mermaid.core-Dx1fBVUG.js} +4 -4
  294. package/editor-web/assets/{mindmap-definition-6OY57UG3-BYexiugS.js → mindmap-definition-6OY57UG3-QEU2HF_m.js} +1 -1
  295. package/editor-web/assets/{packet-JDAUHWVQ-DX_kSrI6.js → packet-JDAUHWVQ-ReJTa_hw.js} +1 -1
  296. package/editor-web/assets/{pegDiagram-ECIUJNBX-I3SrcMLp.js → pegDiagram-ECIUJNBX-Bo1jFrvb.js} +1 -1
  297. package/editor-web/assets/{pie-XZMESJXO-BmAFSw3E.js → pie-XZMESJXO-BrtYafNA.js} +1 -1
  298. package/editor-web/assets/{pieDiagram-GNMPY74T-DIZKcme5.js → pieDiagram-GNMPY74T-Cj0zQqs_.js} +1 -1
  299. package/editor-web/assets/{props-form-DUFxM5eb.js → props-form-BpSXbrSF.js} +1 -1
  300. package/editor-web/assets/{quadrantDiagram-D57K4MC3-CO3oSqpQ.js → quadrantDiagram-D57K4MC3-D5npDAVn.js} +1 -1
  301. package/editor-web/assets/{radar-ABXABTNO-D5CkFrrb.js → radar-ABXABTNO-C8RDrRqi.js} +1 -1
  302. package/editor-web/assets/{railroad-I3PHUGI6-BeKY1p0K.js → railroad-I3PHUGI6-ebDrmYTK.js} +1 -1
  303. package/editor-web/assets/{railroad-abnf-LNEFI6M7-CIYV9_3-.js → railroad-abnf-LNEFI6M7-BxKuqg6V.js} +1 -1
  304. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DN0zDl6d.js → railroad-ebnf-DWYD2UWJ-DOclnfpr.js} +1 -1
  305. package/editor-web/assets/{railroad-peg-JR7BVNR7-Bd_GcO24.js → railroad-peg-JR7BVNR7-DN0A1fpq.js} +1 -1
  306. package/editor-web/assets/{railroadDiagram-Y72NRBL7-DlFoiMhb.js → railroadDiagram-Y72NRBL7-B3PjoVWw.js} +1 -1
  307. package/editor-web/assets/{requirementDiagram-EQYSW5RA-LWAEz8Gy.js → requirementDiagram-EQYSW5RA-DLdzkQk5.js} +1 -1
  308. package/editor-web/assets/{sankeyDiagram-SY24JHO5-B_pZGwUK.js → sankeyDiagram-SY24JHO5-Dip4Piv_.js} +1 -1
  309. package/editor-web/assets/schemas-CQ_UU8-Z.js +1 -0
  310. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-bNhyCq0C.js → sequenceDiagram-BLEHNHQU-QnPcoybL.js} +1 -1
  311. package/editor-web/assets/{session-Beijw9EK.js → session-DMlLCFWg.js} +1 -1
  312. package/editor-web/assets/slides-7xWhREpt.js +1 -0
  313. package/editor-web/assets/snapshots-BLX4NTQC.js +1 -0
  314. package/editor-web/assets/{split-zARio3J8.js → split-tFGKk-x8.js} +1 -1
  315. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DI-oM3qz.js → stateDiagram-v2-A6IESKWZ-D103CiMX.js} +1 -1
  316. package/editor-web/assets/{swimlanes-B3ENRKFQ-awDmoLdW.js → swimlanes-B3ENRKFQ-y4gCqEoa.js} +1 -1
  317. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +8 -0
  318. package/editor-web/assets/{tabs-BHBvbekZ.js → tabs-CuEawka3.js} +1 -1
  319. package/editor-web/assets/{timeline-definition-JXYKGLGB-CayduPvL.js → timeline-definition-JXYKGLGB-BMp76v4V.js} +1 -1
  320. package/editor-web/assets/{treeView-D4JQ5SDB-BVEuNzCO.js → treeView-D4JQ5SDB-Q_GYyk0b.js} +1 -1
  321. package/editor-web/assets/{treemap-SAJKECNS-BOB14HP3.js → treemap-SAJKECNS-B5lRWdQB.js} +1 -1
  322. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DxT99uaq.js → usecaseDiagram-WPOLBNNX--QRllA-U.js} +1 -1
  323. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CWUKom-r.js → vennDiagram-Q3Y3IDCW-CzkATPA3.js} +1 -1
  324. package/editor-web/assets/{video-oJ3qa1Qv.js → video-D0uTbHWx.js} +1 -1
  325. package/editor-web/assets/{wardley-7MLQ67FV-BAQyTneD.js → wardley-7MLQ67FV-BXzwcdJa.js} +1 -1
  326. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CiIYz4lZ.js → wardleyDiagram-IVAIDKWA-BQvC8Agx.js} +1 -1
  327. package/editor-web/assets/{words-0Ww2RyT4.js → words-CaUHhQHf.js} +1 -1
  328. package/editor-web/assets/workbook-CiCXkjmN.js +45 -0
  329. package/editor-web/assets/{xychartDiagram-4URNHDU4-D_D5IGmd.js → xychartDiagram-4URNHDU4-aY-lsD5o.js} +1 -1
  330. package/editor-web/index.html +3 -3
  331. package/package.json +2 -2
  332. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +0 -24
  333. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +0 -61
  334. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +0 -51
  335. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +0 -29
  336. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +0 -13
  337. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +0 -35
  338. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +0 -19
  339. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +0 -10
  340. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +0 -35
  341. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +0 -74
  342. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +0 -18
  343. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +0 -26
  344. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +0 -91
  345. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +0 -84
  346. package/dist/node_modules/@allyhub/build/dist/code.d.ts +0 -26
  347. package/dist/node_modules/@allyhub/build/dist/content.d.ts +0 -64
  348. package/dist/node_modules/@allyhub/build/dist/data.d.ts +0 -11
  349. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +0 -44
  350. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +0 -35
  351. package/dist/node_modules/@allyhub/build/dist/files.d.ts +0 -4
  352. package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +0 -26
  353. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +0 -29
  354. package/dist/node_modules/@allyhub/build/dist/imports.d.ts +0 -17
  355. package/dist/node_modules/@allyhub/build/dist/index.d.ts +0 -37
  356. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +0 -119
  357. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +0 -530
  358. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +0 -9
  359. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +0 -19
  360. package/dist/node_modules/@allyhub/build/dist/media.d.ts +0 -10
  361. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +0 -60
  362. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +0 -59
  363. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +0 -24
  364. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +0 -6
  365. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +0 -16
  366. package/dist/node_modules/@allyhub/build/dist/places.d.ts +0 -23
  367. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +0 -50
  368. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +0 -138
  369. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +0 -19
  370. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +0 -136
  371. package/dist/node_modules/@allyhub/build/dist/references.d.ts +0 -6
  372. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +0 -45
  373. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +0 -80
  374. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +0 -9
  375. package/dist/node_modules/@allyhub/build/dist/types.d.ts +0 -11
  376. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +0 -44
  377. package/dist/node_modules/@allyhub/build/dist/version.d.ts +0 -56
  378. package/dist/node_modules/@allyhub/build/dist/vite.d.ts +0 -115
  379. package/dist/node_modules/@allyhub/build/dist/work.d.ts +0 -38
  380. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +0 -48
  381. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +0 -91
  382. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +0 -12
  383. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +0 -64
  384. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +0 -40
  385. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +0 -76
  386. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +0 -14
  387. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +0 -24
  388. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +0 -43
  389. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +0 -19
  390. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +0 -18
  391. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +0 -22
  392. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +0 -16
  393. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +0 -11
  394. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +0 -42
  395. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +0 -2
  396. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +0 -48
  397. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +0 -20
  398. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +0 -20
  399. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +0 -58
  400. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +0 -22
  401. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +0 -3
  402. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +0 -139
  403. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +0 -41
  404. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +0 -195
  405. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +0 -8
  406. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +0 -16
  407. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +0 -4
  408. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +0 -25
  409. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +0 -16
  410. package/dist/node_modules/@allyhub/media/dist/beats.d.ts +0 -100
  411. package/dist/node_modules/@allyhub/media/dist/cache.d.ts +0 -26
  412. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +0 -34
  413. package/dist/node_modules/@allyhub/media/dist/fetch.d.ts +0 -11
  414. package/dist/node_modules/@allyhub/media/dist/grid.d.ts +0 -101
  415. package/dist/node_modules/@allyhub/media/dist/index.d.ts +0 -21
  416. package/dist/node_modules/@allyhub/media/dist/picture.d.ts +0 -130
  417. package/dist/node_modules/@allyhub/media/dist/probe.d.ts +0 -52
  418. package/dist/node_modules/@allyhub/media/dist/progress.d.ts +0 -16
  419. package/dist/node_modules/@allyhub/media/dist/run.d.ts +0 -25
  420. package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +0 -67
  421. package/dist/node_modules/@allyhub/media/dist/shots.d.ts +0 -110
  422. package/dist/node_modules/@allyhub/media/dist/sync.d.ts +0 -156
  423. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +0 -25
  424. package/dist/node_modules/@allyhub/media/dist/video.d.ts +0 -35
  425. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +0 -42
  426. package/dist/node_modules/@allyhub/media/dist/vision/probe.d.ts +0 -39
  427. package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +0 -2
  428. package/dist/node_modules/@allyhub/media/dist/voice-shape.d.ts +0 -51
  429. package/dist/node_modules/@allyhub/model/dist/authoring.d.ts +0 -48
  430. package/dist/node_modules/@allyhub/model/dist/bevel-attributes.d.ts +0 -19
  431. package/dist/node_modules/@allyhub/model/dist/bevel-collapse.d.ts +0 -12
  432. package/dist/node_modules/@allyhub/model/dist/bevel-corner-plan.d.ts +0 -24
  433. package/dist/node_modules/@allyhub/model/dist/bevel-deform.d.ts +0 -5
  434. package/dist/node_modules/@allyhub/model/dist/bevel-fans.d.ts +0 -12
  435. package/dist/node_modules/@allyhub/model/dist/bevel-junction.d.ts +0 -16
  436. package/dist/node_modules/@allyhub/model/dist/bevel-marks.d.ts +0 -14
  437. package/dist/node_modules/@allyhub/model/dist/bevel-metric.d.ts +0 -4
  438. package/dist/node_modules/@allyhub/model/dist/bevel-mixed.d.ts +0 -12
  439. package/dist/node_modules/@allyhub/model/dist/bevel-offsets.d.ts +0 -22
  440. package/dist/node_modules/@allyhub/model/dist/bevel-patch.d.ts +0 -45
  441. package/dist/node_modules/@allyhub/model/dist/bevel-profile.d.ts +0 -13
  442. package/dist/node_modules/@allyhub/model/dist/bevel-projection.d.ts +0 -10
  443. package/dist/node_modules/@allyhub/model/dist/bevel-reflex.d.ts +0 -10
  444. package/dist/node_modules/@allyhub/model/dist/bevel-square-out.d.ts +0 -18
  445. package/dist/node_modules/@allyhub/model/dist/bevel-strips.d.ts +0 -8
  446. package/dist/node_modules/@allyhub/model/dist/bmesh-cycles.d.ts +0 -52
  447. package/dist/node_modules/@allyhub/model/dist/build-cache.d.ts +0 -42
  448. package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +0 -34
  449. package/dist/node_modules/@allyhub/model/dist/build-worker.d.ts +0 -2
  450. package/dist/node_modules/@allyhub/model/dist/build.d.ts +0 -67
  451. package/dist/node_modules/@allyhub/model/dist/cancel.d.ts +0 -8
  452. package/dist/node_modules/@allyhub/model/dist/curve-math.d.ts +0 -21
  453. package/dist/node_modules/@allyhub/model/dist/curve-mesh.d.ts +0 -30
  454. package/dist/node_modules/@allyhub/model/dist/evaluation-guard.d.ts +0 -11
  455. package/dist/node_modules/@allyhub/model/dist/export.d.ts +0 -12
  456. package/dist/node_modules/@allyhub/model/dist/mesh-queries.d.ts +0 -34
  457. package/dist/node_modules/@allyhub/model/dist/names.d.ts +0 -9
  458. package/dist/node_modules/@allyhub/model/dist/png.d.ts +0 -12
  459. package/dist/node_modules/@allyhub/model/dist/polygon-triangulation.d.ts +0 -4
  460. package/dist/node_modules/@allyhub/model/dist/program-location.d.ts +0 -7
  461. package/dist/node_modules/@allyhub/model/dist/report.d.ts +0 -70
  462. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +0 -21
  463. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +0 -4
  464. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +0 -17
  465. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +0 -9
  466. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -661
  467. package/dist/node_modules/@allyhub/protocol/dist/account.js +0 -2
  468. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +0 -30
  469. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +0 -200
  470. package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +0 -44
  471. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +0 -68
  472. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +0 -77
  473. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +0 -2
  474. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +0 -577
  475. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +0 -674
  476. package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +0 -7
  477. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +0 -803
  478. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +0 -103
  479. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +0 -247
  480. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +0 -8
  481. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -38
  482. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +0 -91
  483. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.d.ts +0 -83
  484. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +0 -144
  485. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +0 -274
  486. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +0 -211
  487. package/dist/node_modules/@allyhub/protocol/dist/open.d.ts +0 -13
  488. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +0 -134
  489. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +0 -59
  490. package/dist/node_modules/@allyhub/protocol/dist/peer.js +0 -2
  491. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +0 -21
  492. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +0 -125
  493. package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +0 -47
  494. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +0 -191
  495. package/dist/node_modules/@allyhub/protocol/dist/routes.d.ts +0 -14
  496. package/dist/node_modules/@allyhub/protocol/dist/routes.js +0 -2
  497. package/dist/node_modules/@allyhub/protocol/dist/runtimes.d.ts +0 -96
  498. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +0 -35
  499. package/dist/node_modules/@allyhub/protocol/dist/shape.js +0 -2
  500. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +0 -156
  501. package/dist/node_modules/@allyhub/protocol/dist/shares.js +0 -2
  502. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +0 -34
  503. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +0 -2
  504. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +0 -298
  505. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +0 -503
  506. package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +0 -14
  507. package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +0 -264
  508. package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +0 -2
  509. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +0 -18
  510. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +0 -2
  511. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +0 -97
  512. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +0 -2
  513. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -196
  514. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +0 -578
  515. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +0 -71
  516. package/dist/node_modules/@allyhub/protocol/dist/turns.js +0 -2
  517. package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +0 -10
  518. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +0 -14
  519. package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +0 -38
  520. package/dist/node_modules/@allyhub/runtimes/dist/errors.d.ts +0 -20
  521. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +0 -15
  522. package/dist/node_modules/@allyhub/runtimes/dist/home.d.ts +0 -2
  523. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +0 -12
  524. package/dist/node_modules/@allyhub/runtimes/dist/lock.d.ts +0 -14
  525. package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +0 -3
  526. package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +0 -12
  527. package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +0 -101
  528. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +0 -73
  529. package/dist/node_modules/@allyhub/runtimes/dist/unpack.d.ts +0 -14
  530. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +0 -20
  531. package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +0 -14
  532. package/dist/node_modules/@allyhub/scenery-host/dist/bake/envmap.d.ts +0 -21
  533. package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +0 -63
  534. package/dist/node_modules/@allyhub/scenery-host/dist/budget.d.ts +0 -40
  535. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +0 -92
  536. package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +0 -54
  537. package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +0 -47
  538. package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +0 -39
  539. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +0 -25
  540. package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +0 -18
  541. package/dist/node_modules/@allyhub/scenery-host/dist/layer/fidelity.d.ts +0 -70
  542. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +0 -7
  543. package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +0 -6
  544. package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +0 -45
  545. package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +0 -10
  546. package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +0 -110
  547. package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +0 -17
  548. package/dist/node_modules/@allyhub/scenery-host/dist/measure/solid.d.ts +0 -32
  549. package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +0 -11
  550. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +0 -32
  551. package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +0 -5
  552. package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +0 -5
  553. package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +0 -10
  554. package/dist/node_modules/@allyhub/scenery-host/dist/scene.d.ts +0 -35
  555. package/dist/node_modules/@allyhub/scenery-host/dist/screen-dom.d.ts +0 -24
  556. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +0 -42
  557. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +0 -6
  558. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +0 -70
  559. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +0 -49
  560. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +0 -73
  561. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +0 -18
  562. package/dist/node_modules/@allyhub/scenery-host/dist/steady.d.ts +0 -4
  563. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +0 -134
  564. package/editor-web/assets/channel-HUlo15J7.js +0 -1
  565. package/editor-web/assets/deck-CtEtDHo2.js +0 -1
  566. package/editor-web/assets/dist-Bl74xqMW.js +0 -19
  567. package/editor-web/assets/dist-BrUtQth3.js +0 -18
  568. package/editor-web/assets/dist-CN5A7Au2.js +0 -1
  569. package/editor-web/assets/dist-CcL6r6l3.js +0 -1
  570. package/editor-web/assets/dist-D2E3cgRP.js +0 -4
  571. package/editor-web/assets/dist-ZrBAbqyJ.js +0 -3
  572. package/editor-web/assets/dist-d4dayaWE.js +0 -17
  573. package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +0 -1
  574. package/editor-web/assets/index-q7X6hdHp.js +0 -28
  575. package/editor-web/assets/schemas-moE_A7Nj.js +0 -1
  576. package/editor-web/assets/slides-oQ_C0SVJ.js +0 -1
  577. package/editor-web/assets/snapshots-Dd0Wd_qM.js +0 -1
  578. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +0 -8
  579. package/editor-web/assets/workbook-DznVDqoE.js +0 -45
  580. /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.js} +0 -0
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{d as t,l as n,m as r,o as i,s as a,u as o,y as s}from"./react-Edyoga_4.js";import{Et as c,ht as l,n as u,yt as d}from"./x-DlhyIKuu.js";import{S as f,b as p,h as m}from"./iso-DoC-ZoBr.js";import{F as h,g,j as _,x as v}from"./snapshots-BLX4NTQC.js";import{t as y}from"./jsx-runtime-DePvh3-m.js";import{i as b}from"./dist-CpzEn9T8.js";import{t as x}from"./createLucideIcon-lm_6n8YT.js";import{t as ee}from"./zoom-in-PgsC94hP.js";var te=x(`corner-up-left`,[[`path`,{d:`M20 20v-7a4 4 0 0 0-4-4H4`,key:`1nkjon`}],[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}]]),S=e(s(),1),C=y(),w=f([m(),m(),m()]),T={"scenery/viewer":h(p({item:_,camera:p({position:w,target:w}).optional()}),g,`The address of a scenery's viewer page, for a sandboxed frame: it tells what the person does by postMessage.`)},ne=v(T),E=d({en:{title:`3D scenery`,loading:`Loading the scenery`,loadFailed:`The scenery did not load`,zoomIn:`Zoom in`,back:`Back`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},"zh-cn":{title:`3D 布景`,loading:`正在加载布景`,loadFailed:`布景没能加载`,zoomIn:`放大`,back:`返回`,size:(e,t,n)=>`${e} × ${t} × ${n} 米`},"zh-tw":{title:`3D 布景`,loading:`正在載入布景`,loadFailed:`布景無法載入`,zoomIn:`放大`,back:`返回`,size:(e,t,n)=>`${e} × ${t} × ${n} 公尺`},ja:{title:`3D セット`,loading:`セットを読み込み中`,loadFailed:`セットを読み込めませんでした`,zoomIn:`ズームイン`,back:`戻る`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},ko:{title:`3D 세트`,loading:`세트를 불러오는 중`,loadFailed:`세트를 불러오지 못했습니다`,zoomIn:`확대`,back:`뒤로`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},es:{title:`Decorado 3D`,loading:`Cargando el decorado`,loadFailed:`El decorado no se cargó`,zoomIn:`Acercar`,back:`Atrás`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},fr:{title:`Décor 3D`,loading:`Chargement du décor`,loadFailed:`Le décor ne s’est pas chargé`,zoomIn:`Zoomer`,back:`Retour`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},de:{title:`3D-Kulisse`,loading:`Kulisse wird geladen`,loadFailed:`Die Kulisse wurde nicht geladen`,zoomIn:`Heranzoomen`,back:`Zurück`,size:(e,t,n)=>`${e} × ${t} × ${n} m`},pt:{title:`Cenário 3D`,loading:`Carregando o cenário`,loadFailed:`O cenário não carregou`,zoomIn:`Aproximar`,back:`Voltar`,size:(e,t,n)=>`${e} × ${t} × ${n} m`}}),D=8;function O(e,t,n,r=8){let i={left:n.left+D,top:n.top+D},a={left:Math.max(i.left,n.right-D-t.width),top:Math.max(i.top,n.bottom-D-t.height)},o=e=>Math.max(i.left,Math.min(e,a.left)),s=e=>Math.max(i.top,Math.min(e,a.top)),c=o(e.left),l=e.bottom+r;if(l<=a.top)return{left:c,top:l};let u=e.top-r-t.height;if(u>=i.top)return{left:c,top:u};let d=e.right+r;return{left:d<=a.left?d:o(e.left-r-t.width),top:s((e.top+e.bottom)/2-t.height/2)}}var k=e=>e>=1?e.toFixed(2):e>=.1?e.toFixed(3):e.toFixed(4),A=1500,j={width:300,height:56},M=e=>[e[0],e[1],e[2]],N=e=>Array.isArray(e)&&e.length===3&&e.every(e=>typeof e==`number`);function P(e){if(typeof e!=`object`||!e)return;let t=e;if(t.allyhub===!0){if(t.type===`error`)return{type:`error`,message:typeof t.message==`string`?t.message:``};if(t.type===`scenery`&&typeof t.event==`object`)return{type:`scenery`,event:t.event}}}function F({className:e}){return(0,C.jsxs)(`div`,{className:`flex size-full min-h-0 flex-col`,children:[(0,C.jsx)(b,{}),(0,C.jsx)(`div`,{className:`min-h-0 flex-1`,children:(0,C.jsx)(I,{...e===void 0?{}:{className:e}})})]})}function I({className:e}){let s=i(),d=a(),f=E.of(d?.locale),p=d?.item,m=p?.id,h=p?.entry,g=(0,S.useRef)(null),_=(0,S.useRef)(null),v=(0,S.useRef)(void 0),[y,b]=(0,S.useState)({n:0}),[x,w]=(0,S.useState)(),[T,D]=(0,S.useState)(),F=r(T),[I,L]=(0,S.useState)(),[R,z]=(0,S.useState)(),[re,ie]=(0,S.useState)([]),[B,V]=(0,S.useState)(null),[H,ae]=(0,S.useState)({hover:null,select:null}),[oe,se]=(0,S.useState)(!1);(0,S.useEffect)(()=>{if(m===void 0)return;let e=!0,t=y.from;return ne(s,`scenery/viewer`,{item:m,...t?{camera:{position:M(t.position),target:M(t.target)}}:{}}).then(t=>{e&&(w({n:y.n,url:t.url}),D(t.probe))},t=>{e&&z({n:y.n,message:t instanceof Error?t.message:String(t)})}),()=>{e=!1}},[s,m,y]),n(m,()=>{let e=v.current;b(t=>({n:t.n+1,...e?{from:e}:{}}))});let U=(0,S.useCallback)(e=>{g.current?.contentWindow?.postMessage({allyhub:!0,command:e},`*`)},[]),W=(0,S.useRef)([]),G=(0,S.useRef)(new Map),K=(0,S.useRef)(!1),q=()=>{let e=g.current?.getBoundingClientRect();return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0};t({hold:()=>Promise.resolve({key:`${m??``}@${String(y.n)}@${JSON.stringify(v.current??null)}`,what:`The 3D scene ${m??``}`,...h===void 0?{}:{source:{path:h}}}),locate:()=>Promise.resolve({elements:[]})}),o({element:()=>g.current,pictures:()=>new Promise(e=>{let t=q();W.current.push(n=>{e(t?[{rect:t,mime:n.slice(5,n.indexOf(`;`)),data:n.slice(n.indexOf(`,`)+1)}]:[])}),K.current&&U({type:`shot`})}),locate:async e=>{let t=q(),n=await Promise.all(c(e).map(({x:e,y:n})=>new Promise(r=>{let i=crypto.randomUUID(),a=setTimeout(()=>{G.current.delete(i),r(null)},A);G.current.set(i,e=>{clearTimeout(a),r(e)}),U({type:`pick`,id:i,x:e-(t?.x??0),y:n-(t?.y??0)})})));return{elements:[...new Set(n.flatMap(e=>e?[e.path.join(` > `)]:[]))].map(e=>({name:`the object ${e}`,...h===void 0?{}:{source:{path:h}}}))}},pick:e=>new Promise(t=>{let n=q(),r=crypto.randomUUID(),i=setTimeout(()=>{G.current.delete(r),t(void 0)},A);G.current.set(r,e=>{clearTimeout(i),t(e?.screen&&n?{element:{name:`the object ${e.path.join(` > `)}`,...h===void 0?{}:{source:{path:h}}},outline:[e.screen.map(([e,t])=>({x:n.x+e,y:n.y+t}))]}:void 0)}),U({type:`pick`,id:r,x:e.x-(n?.x??0),y:e.y-(n?.y??0)})})}),(0,S.useEffect)(()=>{let e=_.current;if(!e)return;let t=e=>{K.current&&(e.preventDefault(),U({type:`wheel`,deltaY:e.deltaY,ctrlKey:e.ctrlKey}))};return e.addEventListener(`wheel`,t,{passive:!1}),()=>{e.removeEventListener(`wheel`,t)}},[U]);let J=(0,S.useRef)(null);(0,S.useEffect)(()=>{J.current=B},[B]),(0,S.useEffect)(()=>{let e=e=>{if(!x||e.source!==g.current?.contentWindow)return;let t=P(e.data);if(!t)return;if(t.type===`error`){z({n:x.n,message:t.message});return}let n=t.event;switch(n.type){case`ready`:L(x.n),ie(n.cameras),K.current=!0,W.current.forEach(()=>{U({type:`shot`})}),J.current&&U({type:`select`,path:J.current.path});return;case`select`:V(n.object);return;case`camera`:{let e=n.camera;N(e.target)&&(v.current={position:e.position,target:e.target,...e.lens===void 0?{}:{lens:e.lens}}),se(n.framed);return}case`place`:ae({hover:n.hover,select:n.select});return;case`shot`:W.current.shift()?.(n.picture);return;case`picked`:G.current.get(n.id)?.(n.object),G.current.delete(n.id);return;default:return}};return window.addEventListener(`message`,e),()=>{window.removeEventListener(`message`,e)}},[U,s,x]);let ce=(0,S.useCallback)(()=>{B&&U({type:`select`,path:null}),V(null)},[U,B]),[Y,le]=(0,S.useState)({width:0,height:0});(0,S.useEffect)(()=>{let e=_.current;if(!e)return;let t=new ResizeObserver(()=>{le({width:e.clientWidth,height:e.clientHeight})});return t.observe(e),()=>{t.disconnect()}},[]);let X=B?H.select:null,Z=B&&X?O({left:X.x,top:X.y,right:X.x+X.width,bottom:X.y+X.height},j,{left:0,top:0,right:Y.width,bottom:Y.height}):void 0,Q=x!==void 0&&I===x.n,$=R?.n===y.n?R.message:void 0;return(0,C.jsxs)(`div`,{ref:_,"data-testid":`scenery-viewer`,className:l(`bg-paper relative size-full overflow-hidden`,e),onKeyDown:e=>{e.key===`Escape`&&B&&ce()},children:[x&&F!==void 0&&(0,C.jsx)(`iframe`,{ref:g,src:x.url,title:f.title,...F?{sandbox:`allow-scripts`}:{},"data-testid":`scenery-frame`,...Q?{"data-ready":``}:{},className:l(`absolute inset-0 size-full border-0 transition-opacity`,Q?`opacity-100`:`opacity-0`)},x.n),!Q&&$===void 0&&(0,C.jsx)(`p`,{className:`text-lead absolute inset-0 grid place-items-center text-sm`,children:f.loading}),$!==void 0&&(0,C.jsxs)(`div`,{role:`alert`,className:`absolute inset-x-6 top-6 text-sm`,"data-testid":`scenery-error`,children:[(0,C.jsx)(`p`,{className:`text-problem-text`,children:f.loadFailed}),$&&(0,C.jsx)(`p`,{className:`text-lead mt-1 font-mono text-xs`,children:$})]}),Q&&H.hover&&(0,C.jsx)(`div`,{"aria-hidden":!0,className:`border-pencil pointer-events-none absolute rounded-sm border border-dashed`,style:{left:H.hover.x,top:H.hover.y,width:H.hover.width,height:H.hover.height}}),Q&&B&&H.select&&(0,C.jsx)(`div`,{"aria-hidden":!0,className:`border-pencil pointer-events-none absolute rounded-sm border-2`,style:{left:H.select.x,top:H.select.y,width:H.select.width,height:H.select.height}}),Q&&(0,C.jsxs)(`div`,{className:`pointer-events-none absolute inset-x-3 bottom-3 flex flex-wrap items-center gap-1.5`,children:[re.map(e=>(0,C.jsx)(u,{size:`sm`,variant:`outline`,className:`bg-card pointer-events-auto`,"data-testid":`scenery-camera`,onClick:()=>{U({type:`camera`,name:e})},children:e},e)),oe&&(0,C.jsxs)(u,{size:`sm`,variant:`outline`,className:`bg-card pointer-events-auto ml-auto`,"data-testid":`scenery-back`,onClick:()=>{U({type:`back`})},children:[(0,C.jsx)(te,{size:14}),f.back]})]}),Z&&B&&(0,C.jsxs)(`div`,{role:`dialog`,"aria-label":B.path.join(` › `),"data-testid":`scenery-card`,className:`bg-card animate-set-in shadow-overlay absolute z-10 flex items-start gap-2 rounded-lg border p-3`,style:{left:Z.left,top:Z.top,width:j.width},children:[(0,C.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,C.jsx)(`p`,{className:`truncate text-sm font-semibold`,children:B.path.join(` › `)}),(0,C.jsx)(`p`,{className:`text-lead text-xs`,children:f.size(k(B.size[0]),k(B.size[1]),k(B.size[2]))})]}),(0,C.jsxs)(u,{size:`sm`,variant:`ghost`,"data-testid":`scenery-zoom`,onClick:()=>{U({type:`frame`,path:B.path})},children:[(0,C.jsx)(ee,{size:14}),f.zoomIn]})]})]})}export{F as SceneryViewer,F as default,E as WORDS,O as cardPlace,k as metres};
@@ -1 +1 @@
1
- import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{d as t,l as n,o as r,p as i,s as a,u as o,y as s}from"./react-Edyoga_4.js";import{Et as c,bt as l,ht as u,n as d,yt as f}from"./x-DlhyIKuu.js";import{S as p,g as m,o as h,x as g}from"./iso-ahTwmFwH.js";import{F as _,j as v,o as y,x as b}from"./snapshots-Dd0Wd_qM.js";import{t as x}from"./jsx-runtime-DePvh3-m.js";import{b as S,i as C,y as w}from"./dist-elglzHMT.js";import{i as T,n as E,r as D,t as O}from"./hint-rlht0uxG.js";import{t as k}from"./createLucideIcon-lm_6n8YT.js";import{A}from"./index-q7X6hdHp.js";var j=k(`move-horizontal`,[[`path`,{d:`m18 8 4 4-4 4`,key:`1ak13k`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}]]),M=k(`smartphone`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),N=k(`tablet`,[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,ry:`2`,key:`76otgf`}],[`line`,{x1:`12`,x2:`12.01`,y1:`18`,y2:`18`,key:`1dp563`}]]),P=e(s(),1),F=x(),I=g({file:v}),L={width:m().int().positive().max(4096),height:m().int().positive().max(4096)},R={"html/still":_(I.extend({...L,scale:m().positive().max(4).default(1),hold:p().optional()}),g({image:g({mime:p(),data:p()})}),`An HTML file's page drawn at a frame's size from its top, as its frame shows it: what Mark up lays over the frame, which the window cannot read.`),"html/hold":_(I.extend({...L,scale:m().positive().max(4).default(1)}),g({hold:p()}),`An HTML file's page opened at a frame's size and kept as it is while a person marks it: html/still and html/at draw and read it as it was, until html/release.`),"html/release":_(g({hold:p()}),g({}),`Lets a page held for notes go.`),"html/at":_(I.extend({...L,points:h(g({x:m(),y:m()})).min(1).max(24),hold:p().optional()}),g({elements:h(g({selector:p(),tag:p(),text:p()}))}),`What is at places of an HTML file's page drawn at a frame's size from its top (as html/still draws it): what a person's mark on its frame is on.`)},z=b(R),B=f({en:{starting:`Opening the page…`,failed:`The page could not be shown`,copy:`Copy details`,retry:`Retry`,asleep:`Showing the page needs the agent awake.`,edit:`Edit`,width:`Width`,fit:`Fit the window`,tablet:`Tablet`,phone:`Phone`,wide:(e,t)=>`${e}, ${String(t)} px`},"zh-cn":{starting:`正在打开网页…`,failed:`网页没能显示出来`,copy:`复制详情`,retry:`重试`,asleep:`显示网页需要 Agent 处于唤醒状态。`,edit:`编辑`,width:`宽度`,fit:`适应窗口`,tablet:`平板`,phone:`手机`,wide:(e,t)=>`${e}, ${String(t)} px`},"zh-tw":{starting:`正在開啟網頁…`,failed:`網頁無法顯示`,copy:`複製詳細資訊`,retry:`重試`,asleep:`顯示網頁需要 Agent 處於喚醒狀態。`,edit:`編輯`,width:`寬度`,fit:`符合視窗`,tablet:`平板`,phone:`手機`,wide:(e,t)=>`${e}, ${String(t)} px`},ja:{starting:`ページを開いています…`,failed:`ページを表示できませんでした`,copy:`詳細をコピー`,retry:`再試行`,asleep:`ページを表示するにはエージェントの起動が必要です。`,edit:`編集`,width:`幅`,fit:`ウィンドウに合わせる`,tablet:`タブレット`,phone:`スマートフォン`,wide:(e,t)=>`${e}, ${String(t)} px`},ko:{starting:`페이지를 여는 중…`,failed:`페이지를 표시하지 못했습니다`,copy:`세부 정보 복사`,retry:`다시 시도`,asleep:`페이지를 표시하려면 에이전트가 깨어 있어야 합니다.`,edit:`편집`,width:`너비`,fit:`창에 맞추기`,tablet:`태블릿`,phone:`휴대폰`,wide:(e,t)=>`${e}, ${String(t)} px`},es:{starting:`Abriendo la página…`,failed:`No se pudo mostrar la página`,copy:`Copiar detalles`,retry:`Reintentar`,asleep:`Para mostrar la página, el agente debe estar activo.`,edit:`Editar`,width:`Ancho`,fit:`Ajustar a la ventana`,tablet:`Tableta`,phone:`Teléfono`,wide:(e,t)=>`${e}, ${String(t)} px`},fr:{starting:`Ouverture de la page…`,failed:`La page n’a pas pu s’afficher`,copy:`Copier les détails`,retry:`Réessayer`,asleep:`Afficher la page nécessite que l’agent soit actif.`,edit:`Modifier`,width:`Largeur`,fit:`Ajuster à la fenêtre`,tablet:`Tablette`,phone:`Téléphone`,wide:(e,t)=>`${e}, ${String(t)} px`},de:{starting:`Seite wird geöffnet…`,failed:`Die Seite konnte nicht angezeigt werden`,copy:`Details kopieren`,retry:`Erneut versuchen`,asleep:`Um die Seite anzuzeigen, muss der Agent wach sein.`,edit:`Bearbeiten`,width:`Breite`,fit:`An Fenster anpassen`,tablet:`Tablet`,phone:`Smartphone`,wide:(e,t)=>`${e}, ${String(t)} px`},pt:{starting:`Abrindo a página…`,failed:`Não foi possível mostrar a página`,copy:`Copiar detalhes`,retry:`Tentar novamente`,asleep:`Para mostrar a página, o agente precisa estar ativo.`,edit:`Editar`,width:`Largura`,fit:`Ajustar à janela`,tablet:`Tablet`,phone:`Celular`,wide:(e,t)=>`${e}, ${String(t)} px`}}),V={tablet:768,phone:375},H={fit:j,tablet:N,phone:M};function U({className:e}){let t=a();if(t===void 0)return null;let{id:n,entry:r}=t.item;return(0,F.jsx)(G,{id:n,file:r,w:B.of(l(t.locale)),className:e},n)}function W(e){let[t,n]=(0,P.useState)({width:0,height:0});return(0,P.useLayoutEffect)(()=>{let t=e.current;if(!t)return;let r=new ResizeObserver(([e])=>{e&&n({width:e.contentRect.width,height:e.contentRect.height})});return r.observe(t),()=>{r.disconnect()}},[e]),t}function G({id:e,file:a,w:s,className:l}){let f=r(),p=a.slice(a.lastIndexOf(`/`)+1),[m,h]=(0,P.useState)({at:`starting`}),[g,_]=(0,P.useState)(0),[v,b]=(0,P.useState)(`fit`),[x,k]=(0,P.useState)(0);n(e,()=>{k(e=>e+1)});let[j,M]=(0,P.useState)(0),N=i(),I=(0,P.useRef)(null),L=W(I),R=(0,P.useRef)(null),B=m.at===`asleep`?N:void 0;(0,P.useEffect)(()=>{let t=!0;return A(f,`items/page`,{item:e}).then(({url:e})=>{t&&h({at:`ready`,url:e})},e=>{t&&h(y(e)?{at:`asleep`}:{at:`failed`,message:e instanceof Error?e.message:String(e)})}),()=>{t=!1}},[f,e,g,B]);let U=v!==`fit`,G=U?16:0,K=v===`fit`?Math.max(1,Math.round(L.width)):V[v],q=Math.max(1,L.width-2*G),J=L.width>0?Math.min(1,q/K):1,Y=Math.max(1,Math.round((L.height-G)/J));t({hold:()=>Promise.resolve({key:`html@${e}@${crypto.randomUUID()}`,what:p,source:{path:a}}),locate:()=>Promise.resolve({elements:[]})});let X=()=>{let e=R.current?.getBoundingClientRect();return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0},Z=(0,P.useRef)(void 0),Q=()=>Z.current??Promise.resolve(void 0),$=()=>Math.min(4,Math.max(1,window.devicePixelRatio*J));return o({element:()=>R.current,hold:()=>(Z.current=z(f,`html/hold`,{file:a,width:K,height:Y,scale:$()}).then(e=>e.hold,()=>void 0),Z.current.then(()=>void 0)),release:()=>{let e=Z.current;Z.current=void 0,e?.then(e=>e===void 0?void 0:z(f,`html/release`,{hold:e}).catch(()=>void 0))},pictures:async()=>{let e=X();if(!e)return[];let t=await Q(),{image:n}=await z(f,`html/still`,{file:a,width:K,height:Y,scale:$(),...t===void 0?{}:{hold:t}});return[{...n,rect:e}]},locate:async e=>{let t=X(),n=t?c(e).map(e=>({x:(e.x-t.x)/J,y:(e.y-t.y)/J})).filter(e=>e.x>=0&&e.y>=0&&e.x<=K&&e.y<=Y):[],r=await Q(),i=n.length>0?await z(f,`html/at`,{file:a,width:K,height:Y,points:n,...r===void 0?{}:{hold:r}}).catch(()=>void 0):void 0;return{elements:i&&i.elements.length>0?i.elements.map(e=>({name:`the element ${e.selector} of the page ${a}`,source:{path:a},...e.text===``?{}:{text:e.text}})):[{name:`the page ${a}`,source:{path:a}}],where:`on the page ${a}, ${String(K)} px wide, from its top`}}}),m.at===`asleep`?(0,F.jsxs)(`div`,{className:u(`absolute inset-0 flex flex-col items-center justify-center gap-3 p-6`,l),children:[(0,F.jsx)(`p`,{className:`text-sm text-lead`,children:s.asleep}),(0,F.jsx)(d,{size:`xs`,onClick:()=>{f[`edit/request`]({}).catch(()=>void 0)},children:s.edit})]}):(0,F.jsxs)(`div`,{className:u(`absolute inset-0 flex flex-col`,l),"data-testid":`html-viewer`,children:[(0,F.jsx)(C,{start:(0,F.jsx)(O,{children:(0,F.jsx)(w,{type:`single`,size:`sm`,"aria-label":s.width,value:v,onValueChange:e=>{(e===`fit`||e in V)&&b(e)},children:[`fit`,`tablet`,`phone`].map(e=>{let t=H[e],n=e===`fit`?s.fit:s.wide(s[e],V[e]);return(0,F.jsxs)(D,{children:[(0,F.jsx)(E,{asChild:!0,children:(0,F.jsx)(S,{value:e,"aria-label":n,children:(0,F.jsx)(t,{className:`size-4`})})}),(0,F.jsx)(T,{children:n})]},e)})})})}),(0,F.jsxs)(`div`,{ref:I,className:`relative min-h-0 flex-1 overflow-hidden bg-stone`,children:[m.at===`ready`&&L.width>0&&(j===x?[x]:[j,x]).map(e=>{let t=e===j;return(0,F.jsx)(`iframe`,{ref:t?R:void 0,title:p,src:m.url,"data-testid":t?`html-page`:void 0,"aria-hidden":!t||void 0,tabIndex:t?void 0:-1,sandbox:`allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox`,className:u(`absolute border-0 bg-page`,U&&`shadow-[0_0_0_1px_rgb(0_0_0/0.06),0_1px_3px_rgb(0_0_0/0.12)]`),onLoad:t?void 0:()=>{setTimeout(()=>{M(t=>e>t?e:t)},250)},style:{width:K,height:Y,top:G,left:Math.max(0,(L.width-K*J)/2),transform:`scale(${String(J)})`,transformOrigin:`top left`,zIndex:+!!t}},e)}),m.at===`starting`&&(0,F.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center text-sm text-lead`,children:(0,F.jsx)(`span`,{className:`motion-safe:animate-pulse`,children:s.starting})}),m.at===`failed`&&(0,F.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-3 p-6`,children:[(0,F.jsx)(`p`,{className:`text-sm text-ink`,children:s.failed}),(0,F.jsxs)(`div`,{className:`flex gap-1.5`,children:[(0,F.jsx)(d,{size:`xs`,variant:`ghost`,className:`text-lead`,onClick:()=>{navigator.clipboard.writeText(m.message).catch(()=>void 0)},children:s.copy}),(0,F.jsx)(d,{size:`xs`,onClick:()=>{h({at:`starting`}),_(e=>e+1)},children:s.retry})]})]})]})]})}export{U as HtmlViewer,U as default,B as WORDS};
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{d as t,l as n,o as r,p as i,s as a,u as o,y as s}from"./react-Edyoga_4.js";import{Et as c,bt as l,ht as u,n as d,yt as f}from"./x-DlhyIKuu.js";import{a as p,b as m,h,x as g}from"./iso-DoC-ZoBr.js";import{F as _,j as v,o as y,x as b}from"./snapshots-BLX4NTQC.js";import{t as x}from"./jsx-runtime-DePvh3-m.js";import{b as S,i as C,y as w}from"./dist-CpzEn9T8.js";import{i as T,n as E,r as D,t as O}from"./hint-rlht0uxG.js";import{t as k}from"./createLucideIcon-lm_6n8YT.js";import{N as A}from"./index-BQWZnyAQ.js";var j=k(`move-horizontal`,[[`path`,{d:`m18 8 4 4-4 4`,key:`1ak13k`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}]]),M=k(`smartphone`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),N=k(`tablet`,[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,ry:`2`,key:`76otgf`}],[`line`,{x1:`12`,x2:`12.01`,y1:`18`,y2:`18`,key:`1dp563`}]]),P=e(s(),1),F=x(),I=m({file:v}),L={width:h().int().positive().max(4096),height:h().int().positive().max(4096)},R={"html/still":_(I.extend({...L,scale:h().positive().max(4).default(1),hold:g().optional()}),m({image:m({mime:g(),data:g()})}),`An HTML file's page drawn at a frame's size from its top, as its frame shows it: what Mark up lays over the frame, which the window cannot read.`),"html/hold":_(I.extend({...L,scale:h().positive().max(4).default(1)}),m({hold:g()}),`An HTML file's page opened at a frame's size and kept as it is while a person marks it: html/still and html/at draw and read it as it was, until html/release.`),"html/release":_(m({hold:g()}),m({}),`Lets a page held for notes go.`),"html/at":_(I.extend({...L,points:p(m({x:h(),y:h()})).min(1).max(24),hold:g().optional()}),m({elements:p(m({selector:g(),tag:g(),text:g()}))}),`What is at places of an HTML file's page drawn at a frame's size from its top (as html/still draws it): what a person's mark on its frame is on.`)},z=b(R),B=f({en:{starting:`Opening the page…`,failed:`The page could not be shown`,copy:`Copy details`,retry:`Retry`,asleep:`Showing the page needs the agent awake.`,edit:`Edit`,width:`Width`,fit:`Fit the window`,tablet:`Tablet`,phone:`Phone`,wide:(e,t)=>`${e}, ${String(t)} px`},"zh-cn":{starting:`正在打开网页…`,failed:`网页没能显示出来`,copy:`复制详情`,retry:`重试`,asleep:`显示网页需要 Agent 处于唤醒状态。`,edit:`编辑`,width:`宽度`,fit:`适应窗口`,tablet:`平板`,phone:`手机`,wide:(e,t)=>`${e}, ${String(t)} px`},"zh-tw":{starting:`正在開啟網頁…`,failed:`網頁無法顯示`,copy:`複製詳細資訊`,retry:`重試`,asleep:`顯示網頁需要 Agent 處於喚醒狀態。`,edit:`編輯`,width:`寬度`,fit:`符合視窗`,tablet:`平板`,phone:`手機`,wide:(e,t)=>`${e}, ${String(t)} px`},ja:{starting:`ページを開いています…`,failed:`ページを表示できませんでした`,copy:`詳細をコピー`,retry:`再試行`,asleep:`ページを表示するにはエージェントの起動が必要です。`,edit:`編集`,width:`幅`,fit:`ウィンドウに合わせる`,tablet:`タブレット`,phone:`スマートフォン`,wide:(e,t)=>`${e}, ${String(t)} px`},ko:{starting:`페이지를 여는 중…`,failed:`페이지를 표시하지 못했습니다`,copy:`세부 정보 복사`,retry:`다시 시도`,asleep:`페이지를 표시하려면 에이전트가 깨어 있어야 합니다.`,edit:`편집`,width:`너비`,fit:`창에 맞추기`,tablet:`태블릿`,phone:`휴대폰`,wide:(e,t)=>`${e}, ${String(t)} px`},es:{starting:`Abriendo la página…`,failed:`No se pudo mostrar la página`,copy:`Copiar detalles`,retry:`Reintentar`,asleep:`Para mostrar la página, el agente debe estar activo.`,edit:`Editar`,width:`Ancho`,fit:`Ajustar a la ventana`,tablet:`Tableta`,phone:`Teléfono`,wide:(e,t)=>`${e}, ${String(t)} px`},fr:{starting:`Ouverture de la page…`,failed:`La page n’a pas pu s’afficher`,copy:`Copier les détails`,retry:`Réessayer`,asleep:`Afficher la page nécessite que l’agent soit actif.`,edit:`Modifier`,width:`Largeur`,fit:`Ajuster à la fenêtre`,tablet:`Tablette`,phone:`Téléphone`,wide:(e,t)=>`${e}, ${String(t)} px`},de:{starting:`Seite wird geöffnet…`,failed:`Die Seite konnte nicht angezeigt werden`,copy:`Details kopieren`,retry:`Erneut versuchen`,asleep:`Um die Seite anzuzeigen, muss der Agent wach sein.`,edit:`Bearbeiten`,width:`Breite`,fit:`An Fenster anpassen`,tablet:`Tablet`,phone:`Smartphone`,wide:(e,t)=>`${e}, ${String(t)} px`},pt:{starting:`Abrindo a página…`,failed:`Não foi possível mostrar a página`,copy:`Copiar detalhes`,retry:`Tentar novamente`,asleep:`Para mostrar a página, o agente precisa estar ativo.`,edit:`Editar`,width:`Largura`,fit:`Ajustar à janela`,tablet:`Tablet`,phone:`Celular`,wide:(e,t)=>`${e}, ${String(t)} px`}}),V={tablet:768,phone:375},H={fit:j,tablet:N,phone:M};function U({className:e}){let t=a();if(t===void 0)return null;let{id:n,entry:r}=t.item;return(0,F.jsx)(G,{id:n,file:r,w:B.of(l(t.locale)),className:e},n)}function W(e){let[t,n]=(0,P.useState)({width:0,height:0});return(0,P.useLayoutEffect)(()=>{let t=e.current;if(!t)return;let r=new ResizeObserver(([e])=>{e&&n({width:e.contentRect.width,height:e.contentRect.height})});return r.observe(t),()=>{r.disconnect()}},[e]),t}function G({id:e,file:a,w:s,className:l}){let f=r(),p=a.slice(a.lastIndexOf(`/`)+1),[m,h]=(0,P.useState)({at:`starting`}),[g,_]=(0,P.useState)(0),[v,b]=(0,P.useState)(`fit`),[x,k]=(0,P.useState)(0);n(e,()=>{k(e=>e+1)});let[j,M]=(0,P.useState)(0),N=i(),I=(0,P.useRef)(null),L=W(I),R=(0,P.useRef)(null),B=m.at===`asleep`?N:void 0;(0,P.useEffect)(()=>{let t=!0;return A(f,`items/page`,{item:e}).then(({url:e})=>{t&&h({at:`ready`,url:e})},e=>{t&&h(y(e)?{at:`asleep`}:{at:`failed`,message:e instanceof Error?e.message:String(e)})}),()=>{t=!1}},[f,e,g,B]);let U=v!==`fit`,G=U?16:0,K=v===`fit`?Math.max(1,Math.round(L.width)):V[v],q=Math.max(1,L.width-2*G),J=L.width>0?Math.min(1,q/K):1,Y=Math.max(1,Math.round((L.height-G)/J));t({hold:()=>Promise.resolve({key:`html@${e}@${crypto.randomUUID()}`,what:p,source:{path:a}}),locate:()=>Promise.resolve({elements:[]})});let X=()=>{let e=R.current?.getBoundingClientRect();return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0},Z=(0,P.useRef)(void 0),Q=()=>Z.current??Promise.resolve(void 0),$=()=>Math.min(4,Math.max(1,window.devicePixelRatio*J));return o({element:()=>R.current,hold:()=>(Z.current=z(f,`html/hold`,{file:a,width:K,height:Y,scale:$()}).then(e=>e.hold,()=>void 0),Z.current.then(()=>void 0)),release:()=>{let e=Z.current;Z.current=void 0,e?.then(e=>e===void 0?void 0:z(f,`html/release`,{hold:e}).catch(()=>void 0))},pictures:async()=>{let e=X();if(!e)return[];let t=await Q(),{image:n}=await z(f,`html/still`,{file:a,width:K,height:Y,scale:$(),...t===void 0?{}:{hold:t}});return[{...n,rect:e}]},locate:async e=>{let t=X(),n=t?c(e).map(e=>({x:(e.x-t.x)/J,y:(e.y-t.y)/J})).filter(e=>e.x>=0&&e.y>=0&&e.x<=K&&e.y<=Y):[],r=await Q(),i=n.length>0?await z(f,`html/at`,{file:a,width:K,height:Y,points:n,...r===void 0?{}:{hold:r}}).catch(()=>void 0):void 0;return{elements:i&&i.elements.length>0?i.elements.map(e=>({name:`the element ${e.selector} of the page ${a}`,source:{path:a},...e.text===``?{}:{text:e.text}})):[{name:`the page ${a}`,source:{path:a}}],where:`on the page ${a}, ${String(K)} px wide, from its top`}}}),m.at===`asleep`?(0,F.jsxs)(`div`,{className:u(`absolute inset-0 flex flex-col items-center justify-center gap-3 p-6`,l),children:[(0,F.jsx)(`p`,{className:`text-sm text-lead`,children:s.asleep}),(0,F.jsx)(d,{size:`xs`,onClick:()=>{f[`edit/request`]({}).catch(()=>void 0)},children:s.edit})]}):(0,F.jsxs)(`div`,{className:u(`absolute inset-0 flex flex-col`,l),"data-testid":`html-viewer`,children:[(0,F.jsx)(C,{start:(0,F.jsx)(O,{children:(0,F.jsx)(w,{type:`single`,size:`sm`,"aria-label":s.width,value:v,onValueChange:e=>{(e===`fit`||e in V)&&b(e)},children:[`fit`,`tablet`,`phone`].map(e=>{let t=H[e],n=e===`fit`?s.fit:s.wide(s[e],V[e]);return(0,F.jsxs)(D,{children:[(0,F.jsx)(E,{asChild:!0,children:(0,F.jsx)(S,{value:e,"aria-label":n,children:(0,F.jsx)(t,{className:`size-4`})})}),(0,F.jsx)(T,{children:n})]},e)})})})}),(0,F.jsxs)(`div`,{ref:I,className:`relative min-h-0 flex-1 overflow-hidden bg-stone`,children:[m.at===`ready`&&L.width>0&&(j===x?[x]:[j,x]).map(e=>{let t=e===j;return(0,F.jsx)(`iframe`,{ref:t?R:void 0,title:p,src:m.url,"data-testid":t?`html-page`:void 0,"aria-hidden":!t||void 0,tabIndex:t?void 0:-1,sandbox:`allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox`,className:u(`absolute border-0 bg-page`,U&&`shadow-[0_0_0_1px_rgb(0_0_0/0.06),0_1px_3px_rgb(0_0_0/0.12)]`),onLoad:t?void 0:()=>{setTimeout(()=>{M(t=>e>t?e:t)},250)},style:{width:K,height:Y,top:G,left:Math.max(0,(L.width-K*J)/2),transform:`scale(${String(J)})`,transformOrigin:`top left`,zIndex:+!!t}},e)}),m.at===`starting`&&(0,F.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center text-sm text-lead`,children:(0,F.jsx)(`span`,{className:`motion-safe:animate-pulse`,children:s.starting})}),m.at===`failed`&&(0,F.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-3 p-6`,children:[(0,F.jsx)(`p`,{className:`text-sm text-ink`,children:s.failed}),(0,F.jsxs)(`div`,{className:`flex gap-1.5`,children:[(0,F.jsx)(d,{size:`xs`,variant:`ghost`,className:`text-lead`,onClick:()=>{navigator.clipboard.writeText(m.message).catch(()=>void 0)},children:s.copy}),(0,F.jsx)(d,{size:`xs`,onClick:()=>{h({at:`starting`}),_(e=>e+1)},children:s.retry})]})]})]})]})}export{U as HtmlViewer,U as default,B as WORDS};
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{c as t,d as n,l as r,o as i,p as a,s as o,u as s,y as c}from"./react-Edyoga_4.js";import{Et as l,bt as u,ht as d,n as f,vt as p,yt as m}from"./x-DlhyIKuu.js";import{C as h,T as g,a as _,b as v,g as y,h as b,p as x,r as S,s as C,t as w,v as T,x as E}from"./iso-DoC-ZoBr.js";import{F as D,M as O,f as k,h as A,j,m as M,o as ee,p as N,x as te}from"./snapshots-BLX4NTQC.js";import{t as ne}from"./jsx-runtime-DePvh3-m.js";import{n as re,t as ie}from"./progress-CwKcXARv.js";import{t as ae}from"./switch-8MU4Nfxe.js";import{i as oe,n as se,r as ce,t as le}from"./hint-rlht0uxG.js";import{t as ue}from"./createLucideIcon-lm_6n8YT.js";import{b as de,c as P,d as F,l as I,o as fe,s as L,u as R}from"./index-BQWZnyAQ.js";import{t as pe}from"./surface-DtCjIlrq.js";var z={files:2e4,bytes:5368709120,redirects:2e3,headers:100},B={min:3,max:40},me=new Set(`abuse.account.accounts.admin.administrator.allyhub.api.app.assets.auth.autoconfig.autodiscover.billing.blog.cdn.dashboard.dev.dns.docs.download.downloads.ftp.help.hostmaster.imap.login.mail.mta-sts.ns1.ns2.ops.pop.postmaster.preview.root.security.signin.smtp.staging.static.status.studio.support.test.webmaster.wpad.www`.split(`.`));function V(e){if(e.length<B.min||e.length>B.max)return`length`;if(!/^[a-z0-9-]+$/u.test(e))return`characters`;if(e.startsWith(`-`)||e.endsWith(`-`))return`hyphenEnds`;if(e.includes(`--`))return`doubleHyphen`;if(me.has(e))return`reserved`}var he={length:`An address is ${String(B.min)} to ${String(B.max)} characters.`,characters:`An address is lowercase letters, digits and hyphens.`,hyphenEnds:`An address neither starts nor ends with a hyphen.`,doubleHyphen:`An address does not have two hyphens in a row.`,reserved:`That address is reserved.`};function ge(e){let t=V(e);return t===void 0?void 0:he[t]}var _e=E().superRefine((e,t)=>{let n=ge(e);n!==void 0&&t.addIssue({code:`custom`,message:n})}),ve=[200,301,302,303,307,308,404,410],H=E().min(1).max(1024).regex(/^\/[^\s]*$/u,`A rule's path starts with /.`),ye=v({from:H,to:E().min(1).max(2048).regex(/^(\/[^\s]*|https?:\/\/[^\s]+)$/u,`A rule goes to a path or an http(s) address.`),status:h(ve.map(e=>x(e))),force:C()}),be=new Set([`accept-ranges`,`connection`,`content-encoding`,`content-length`,`content-range`,`date`,`keep-alive`,`set-cookie`,`strict-transport-security`,`trailer`,`transfer-encoding`,`upgrade`,`x-content-type-options`]),xe=E().regex(/^[A-Za-z0-9-]+$/u).max(128).refine(e=>!be.has(e.toLowerCase()),`That header is the platform's.`),Se=v({for:H,set:T(xe,E().max(2048))});v({format:x(1),files:T(M,N),redirects:_(ye).max(z.redirects),headers:_(Se).max(z.headers)});var U=[`upload`,`git`],W=v({kind:S(U),commit:E().min(1).max(64).optional(),digest:k.optional()}),G=y({id:E(),siteId:E(),source:y({...W.shape,kind:A(U)}),note:E().nullable(),files:b(),bytes:b(),createdBy:E(),createdAt:w(),live:C()}),K=y({id:E(),slug:E(),name:E(),url:g(),liveDeployment:E().nullable(),approved:C(),autoPublish:C(),indexing:C(),createdAt:w()});v({slug:_e,name:E().min(1).max(255)}),y({sites:_(K),domain:E(),hosting:C()});var Ce=y({site:K,deployments:_(G)});v({manifest:k,source:W,note:E().max(500).optional()}),y({site:K,deployment:G}),y({site:K,live:C(),confirm:g().optional()}),v({autoPublish:C().optional(),indexing:C().optional()});var we=ue(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),Te=e=>e.state===`running`||e.state===`queued`;function Ee(e){if(e.state===`done`)return 1;if(!(e.total===void 0||e.total<=0))return Math.min(1,Math.max(0,e.completed/e.total))}var q=e(c(),1),J=ne(),Y=v({item:j}),De=v({hosting:C(),detail:Ce.optional(),elsewhere:C().optional(),changed:C().optional(),slug:E().optional(),domain:E().optional()}),Oe={confirm:E().optional()},ke={"website/preview":D(Y,v({url:E()}),`A website's address as its own dev server serves it, for a frame: its dependencies installed if it has none, then its website.json's dev command on a free port; it answers once the page does.`),"website/still":D(Y.extend({width:b().int().positive().max(4096),height:b().int().positive().max(4096),scale:b().positive().max(4).default(1),hold:E().optional()}),v({image:v({mime:E(),data:E()})}),`A website's page as its own dev server serves it, drawn at a frame's size from its top: what Mark up lays over a website's frame where the window cannot read another origin's pixels.`),"website/hold":D(Y.extend({width:b().int().positive().max(4096),height:b().int().positive().max(4096),scale:b().positive().max(4).default(1)}),v({hold:E()}),`A website's page opened at a frame's size and kept as it is while a person marks it: website/still and website/at draw and read it as it was, until website/release.`),"website/release":D(v({hold:E()}),v({}),`Lets a page held for notes go.`),"website/at":D(Y.extend({width:b().int().positive().max(4096),height:b().int().positive().max(4096),points:_(v({x:b(),y:b()})).min(1).max(24),hold:E().optional()}),v({page:E(),elements:_(v({selector:E(),tag:E(),text:E()}))}),`What is at places of a website's page as its own dev server serves it, drawn at a frame's size from its top (as website/still draws it): what a person's mark on its frame is on.`),"website/status":D(Y,De,`A website's hosted site, its versions, and whether what is here differs from what is live; where the server has no person's sign-in, not hosted.`),"website/publish":D(Y.extend({slug:E().optional(),note:E().optional(),anew:C().optional()}),v({live:C(),url:E(),...Oe}),"Builds a website, uploads it as a version and makes it live, for the person who pressed Publish. The first time, it waits for their yes in a browser (`confirm`, a page to open there)."),"website/live":D(Y.extend({version:E().min(1)}),v({live:C(),...Oe}),`Makes a version what the site serves, as the person asked.`),"website/settings":D(Y.extend({autoPublish:C().optional(),indexing:C().optional()}),v({}),`Changes what the person controls of a site.`),"website/unpublish":D(Y,v({}),`Takes a site offline; it keeps its address and versions.`),"website/remove":D(Y,v({}),`Takes a site offline for good. Its address is never given to anyone else.`)},X=te(ke);function Z({className:e,...t}){return(0,J.jsx)(pe,{className:d(`divide-y divide-rule`,e),...t})}function Q({icon:e,label:t,detail:n,children:r,className:i}){return(0,J.jsxs)(`div`,{"data-slot":`setting-row`,className:d(`flex items-center gap-4 px-4.5 py-4`,i),children:[e!==void 0&&(0,J.jsx)(`span`,{className:`-mr-1 flex-none`,children:e}),(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsx)(`div`,{className:`text-sm`,children:t}),n!==void 0&&(0,J.jsx)(`div`,{className:`mt-0.5 text-xs text-lead`,children:n})]}),r]})}function Ae({label:e,detail:t,children:n}){return(0,J.jsxs)(`label`,{"data-slot":`setting-row`,className:`flex items-center gap-4 px-4.5 py-4 transition-colors has-[[role=checkbox]:not(:disabled),[role=switch]:not(:disabled)]:hover:bg-hover`,children:[(0,J.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,J.jsx)(`span`,{className:`block text-sm`,children:e}),t!==void 0&&(0,J.jsx)(`span`,{className:`mt-0.5 block text-xs text-lead`,children:t})]}),n]})}function je(e){let[n,r]=(0,q.useState)([]);return t(`jobs/changed`,({job:t,item:n})=>{n===e&&r(e=>[...e.filter(e=>e.id!==t.id),t])}),n}var Me=(e,t)=>e.findLast(e=>(t===void 0||e.what===t)&&Te(e)),Ne=[[`year`,31536e6],[`month`,2592e6],[`week`,6048e5],[`day`,864e5],[`hour`,36e5],[`minute`,6e4]];function Pe(e,t,n=Date.now()){let r=new Intl.RelativeTimeFormat(t,{numeric:`auto`}),i=e-n;for(let[e,t]of Ne)if(Math.abs(i)>=t)return r.format(Math.round(i/t),e);return r.format(0,`minute`)}var $={content:`max-w-[min(28rem,calc(100%-2rem))]`,header:`text-left`,footer:`flex-row justify-end`},Fe=e=>e instanceof Error?e.message:String(e),Ie=(e,t)=>({message:Fe(e),...t!==void 0&&typeof e==`object`&&e&&e.code===O.conflict?{refused:t}:{}});function Le(e,t,n){let r=i(),[a,o]=(0,q.useState)(),[s,c]=(0,q.useState)(!1),[l,u]=(0,q.useState)(),[d,f]=(0,q.useState)(),p=(0,q.useCallback)(()=>X(r,`website/status`,{item:e}).then(e=>{o(e),e.detail?.site.liveDeployment!=null&&f(void 0)}),[r,e]);(0,q.useEffect)(()=>{let e=()=>{p().catch(()=>void 0)};e();let t=()=>{document.visibilityState===`visible`&&e()};return window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,t)}},[r,p,t]);let m=(0,q.useCallback)((e,t)=>{c(!0),u(void 0),e().then(p).catch(e=>{u(Ie(e,t))}).finally(()=>{c(!1)})},[p]),h=(0,q.useCallback)(e=>{r[`items/open`]({target:{type:`browser`,url:e}}).catch(()=>void 0)},[r]),g=(0,q.useCallback)(e=>{e.confirm!==void 0&&(f(e.confirm),h(e.confirm))},[h]),_={item:e};return{status:a,publishing:Me(n,`publish`),busy:s,failure:l,confirm:d,stopWaiting:()=>{f(void 0)},openAgain:()=>{d!==void 0&&h(d)},publish:(e={})=>{m(()=>X(r,`website/publish`,{..._,...e}).then(g),e.slug)},goLive:e=>{m(()=>X(r,`website/live`,{..._,version:e}).then(g))},settings:e=>{m(()=>X(r,`website/settings`,{..._,...e}))},unpublish:()=>{m(()=>X(r,`website/unpublish`,_))},remove:()=>{m(()=>X(r,`website/remove`,_))}}}function Re({words:e,from:t=`center`,children:n}){return(0,J.jsx)(le,{disableHoverableContent:!0,children:(0,J.jsxs)(ce,{children:[(0,J.jsx)(se,{asChild:!0,children:(0,J.jsx)(`span`,{className:`flex min-w-0`,children:n})}),(0,J.jsx)(oe,{side:`top`,align:t,sideOffset:6,collisionPadding:8,children:e})]})})}var ze=e=>new URL(e).host;function Be({hosting:e,said:t,settings:n,onSettings:r}){let i=t.w.hosting,{status:a,busy:o,failure:s,confirm:c,publishing:l}=e,[u,d]=(0,q.useState)(!1),[p,m]=(0,q.useState)(),h=a?.detail?.site,g=h?.liveDeployment!=null,_=p??a?.slug??``,v=_===``?void 0:V(_),y=!o&&_!==``&&v===void 0,b=v===`length`?i.slug.length(B.min,B.max):v===void 0?s?.refused===_?i.unavailable(`${_}.${a?.domain??``}`):void 0:i.slug[v];return a?.hosting===!0?(0,J.jsxs)(`div`,{className:`flex h-10 flex-none items-center gap-2 border-b border-rule bg-sheet px-3`,children:[g&&(0,J.jsxs)(`a`,{href:h.url,target:`_blank`,rel:`noreferrer`,className:`flex min-w-0 items-center gap-1.5 truncate font-mono text-xs text-lead hover:text-ink`,children:[(0,J.jsx)(de,{"aria-hidden":!0,className:`size-3.5 flex-none`}),ze(h.url)]}),(0,J.jsx)(`span`,{className:`flex-1`}),s!==void 0&&!u&&(0,J.jsx)(`span`,{className:`min-w-0 truncate text-xs text-problem-text`,children:s.message}),a.elsewhere===!0&&(0,J.jsx)(`span`,{className:`text-xs whitespace-nowrap text-lead`,children:i.elsewhere}),g&&(0,J.jsx)(`span`,{className:`text-xs whitespace-nowrap text-lead`,children:a.changed===!0?i.unpublished:i.live}),(0,J.jsx)(Re,{words:n?i.preview:i.settings,from:`end`,children:(0,J.jsx)(f,{variant:`ghost`,size:`icon-sm`,"aria-label":n?i.preview:i.settings,"aria-pressed":n,disabled:h===void 0,onClick:r,children:(0,J.jsx)(we,{"aria-hidden":!0})})}),(0,J.jsxs)(f,{size:`xs`,disabled:o,onClick:()=>{h===void 0?d(!0):e.publish()},children:[l!==void 0&&(0,J.jsx)(re,{value:Ee(l)}),o?i.publishing:g?i.update:i.publish]}),(0,J.jsx)(L,{open:u&&c===void 0&&h===void 0,onOpenChange:d,children:(0,J.jsxs)(P,{className:$.content,children:[(0,J.jsx)(R,{className:$.header,children:(0,J.jsx)(F,{className:`font-serif`,children:i.first})}),(0,J.jsxs)(`form`,{className:`contents`,onSubmit:t=>{t.preventDefault(),y&&e.publish({slug:_,...a.elsewhere===!0?{anew:!0}:{}})},children:[(0,J.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,J.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(fe,{"aria-label":i.address,"aria-invalid":b!==void 0,"aria-describedby":`site-address-why`,value:_,onChange:e=>{m(e.target.value.toLowerCase())},className:`font-mono`}),(0,J.jsxs)(`span`,{className:`font-mono text-sm text-lead`,children:[`.`,a.domain]})]}),(0,J.jsx)(`p`,{id:`site-address-why`,role:`status`,className:`min-h-5 text-sm text-problem-text`,children:b})]}),(0,J.jsx)(`p`,{className:`text-sm text-lead`,children:a.elsewhere===!0?i.elsewhereNote:i.firstNote}),s!==void 0&&s.refused===void 0&&(0,J.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-problem-text`,children:[i.buildFailed,(0,J.jsx)(f,{type:`button`,size:`xs`,variant:`ghost`,className:`text-lead`,onClick:()=>{navigator.clipboard.writeText(s.message).catch(()=>void 0)},children:t.w.copy})]}),(0,J.jsx)(I,{className:$.footer,children:(0,J.jsx)(f,{type:`submit`,disabled:!y,children:o?i.publishing:i.publish})})]})]})}),(0,J.jsx)(L,{open:c!==void 0&&!g,onOpenChange:t=>{t||e.stopWaiting()},children:(0,J.jsxs)(P,{className:$.content,children:[(0,J.jsx)(R,{className:$.header,children:(0,J.jsx)(F,{className:`font-serif`,children:i.askTitle})}),(0,J.jsx)(`p`,{className:`text-sm text-lead`,children:i.ask}),(0,J.jsxs)(I,{className:$.footer,children:[(0,J.jsx)(f,{variant:`outline`,onClick:e.stopWaiting,children:t.w.cancel}),(0,J.jsx)(f,{autoFocus:!0,onClick:e.openAgain,children:i.openAgain})]})]})})]}):null}function Ve({hosting:e,said:t}){let n=t.w.hosting,{tag:r}=t,[i,a]=(0,q.useState)(!1),{status:o,busy:s}=e,c=o?.detail;if(c===void 0)return null;let{site:l,deployments:u}=c,d=ze(l.url),p=u.find(e=>e.live)?.createdAt,m=e=>p!==void 0&&Date.parse(e)<Date.parse(p);return(0,J.jsxs)(`div`,{className:`absolute inset-0 overflow-y-auto bg-sheet`,children:[(0,J.jsxs)(`div`,{className:`mx-auto flex w-full max-w-2xl flex-col gap-6 px-6 py-8`,children:[(0,J.jsxs)(Z,{children:[(0,J.jsx)(Q,{label:n.address,children:(0,J.jsx)(`a`,{href:l.url,target:`_blank`,rel:`noreferrer`,className:`font-mono text-sm hover:underline`,children:d})}),(0,J.jsx)(Ae,{label:n.agent,children:(0,J.jsx)(ae,{checked:l.autoPublish,disabled:s,onCheckedChange:t=>{e.settings({autoPublish:t})}})}),(0,J.jsx)(Ae,{label:n.search,children:(0,J.jsx)(ae,{checked:l.indexing,disabled:s,onCheckedChange:t=>{e.settings({indexing:t})}})})]}),(0,J.jsxs)(`section`,{children:[(0,J.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:n.versions}),(0,J.jsx)(Z,{children:u.map(t=>(0,J.jsx)(Q,{label:t.note??Pe(Date.parse(t.createdAt),r),detail:t.note===null?void 0:Pe(Date.parse(t.createdAt),r),children:t.live?(0,J.jsx)(`span`,{className:`text-xs text-lead`,children:n.live}):(0,J.jsx)(f,{variant:`outline`,size:`xs`,disabled:s,onClick:()=>{e.goLive(t.id)},children:m(t.createdAt)?n.rollBack:n.makeLive})},t.id))})]}),(0,J.jsxs)(Z,{children:[l.liveDeployment!==null&&(0,J.jsx)(Q,{label:n.unpublishNote,children:(0,J.jsx)(f,{variant:`outline`,size:`xs`,disabled:s,onClick:e.unpublish,children:n.unpublish})}),(0,J.jsx)(Q,{label:n.removeNote(d),children:(0,J.jsx)(f,{variant:`outline`,size:`xs`,disabled:s,onClick:()=>{a(!0)},children:n.remove})})]})]}),(0,J.jsx)(L,{open:i,onOpenChange:a,children:(0,J.jsxs)(P,{className:$.content,children:[(0,J.jsx)(R,{className:$.header,children:(0,J.jsx)(F,{className:`font-serif`,children:n.remove})}),(0,J.jsx)(`p`,{className:`text-sm text-lead`,children:n.removeNote(d)}),(0,J.jsxs)(I,{className:$.footer,children:[(0,J.jsx)(f,{variant:`outline`,onClick:()=>{a(!1)},children:t.w.cancel}),(0,J.jsx)(f,{variant:`destructive`,onClick:()=>{a(!1),e.remove()},children:n.remove})]})]})})]})}var He=m({en:{starting:`Starting the website…`,startingJob:e=>`Starting ${e}`,failed:`The website did not start`,copy:`Copy details`,retry:`Retry`,cancel:`Cancel`,asleep:`A website's preview needs the agent awake.`,edit:`Edit`,hosting:{buildFailed:`The website could not be built.`,publish:`Publish`,update:`Update`,settings:`Website settings`,preview:`Preview`,unpublished:`Unpublished changes`,address:`Address`,first:`Publish this website`,firstNote:`Anyone with the address can see it.`,publishing:`Publishing…`,askTitle:`Confirm in your browser`,ask:`A site's first publish is confirmed in your browser.`,openAgain:`Open again`,versions:`Versions`,live:`Live`,rollBack:`Roll back`,makeLive:`Make live`,elsewhere:`Published by another team`,elsewhereNote:`This folder names another team’s site. Publishing makes a new one of yours; theirs stays as it is. Anyone with the address can see it.`,slug:{length:(e,t)=>`An address is ${String(e)} to ${String(t)} characters.`,characters:`Use lowercase letters, digits and hyphens.`,hyphenEnds:`An address can’t start or end with a hyphen.`,doubleHyphen:`An address can’t have two hyphens in a row.`,reserved:`That address is reserved.`},unavailable:e=>`${e} is not available.`,agent:`Let the agent update the live site`,search:`Show in search engines`,unpublish:`Unpublish`,unpublishNote:`Takes the site offline within a minute. It keeps its address and versions.`,remove:`Delete site`,removeNote:e=>`${e} goes offline for good, and its address can never be used again.`}},"zh-cn":{starting:`正在启动网站…`,startingJob:e=>`正在启动 ${e}`,failed:`网站没有启动`,copy:`复制详情`,retry:`重试`,cancel:`取消`,asleep:`网站预览需要 Agent 处于唤醒状态。`,edit:`编辑`,hosting:{buildFailed:`网站没能构建成功。`,publish:`发布`,update:`更新`,settings:`网站设置`,preview:`预览`,unpublished:`有未发布的更改`,address:`地址`,first:`发布这个网站`,firstNote:`知道地址的人都能看到。`,publishing:`正在发布…`,askTitle:`请在浏览器中确认`,ask:`网站第一次发布需要在浏览器中确认。`,openAgain:`再次打开`,versions:`版本`,live:`线上`,rollBack:`回滚`,makeLive:`设为上线`,elsewhere:`由其他团队发布`,elsewhereNote:`这个文件夹指向另一个团队的网站。发布会为你新建一个网站,他们的保持不变。知道地址的人都能看到。`,slug:{length:(e,t)=>`地址为 ${String(e)} 到 ${String(t)} 个字符。`,characters:`只能用小写字母、数字和连字符。`,hyphenEnds:`地址不能以连字符开头或结尾。`,doubleHyphen:`地址里不能有两个连续的连字符。`,reserved:`这个地址是保留的。`},unavailable:e=>`${e} 不可用。`,agent:`允许 agent 更新线上网站`,search:`在搜索引擎中显示`,unpublish:`取消发布`,unpublishNote:`一分钟内让网站下线,地址和版本都会保留。`,remove:`删除网站`,removeNote:e=>`${e} 将永久下线,这个地址也不能再使用。`}},"zh-tw":{starting:`正在啟動網站…`,startingJob:e=>`正在啟動 ${e}`,failed:`網站沒有啟動`,copy:`複製詳情`,retry:`重試`,cancel:`取消`,asleep:`網站預覽需要 Agent 處於喚醒狀態。`,edit:`編輯`,hosting:{buildFailed:`網站無法建置。`,publish:`發布`,update:`更新`,settings:`網站設定`,preview:`預覽`,unpublished:`有未發布的變更`,address:`網址`,first:`發布這個網站`,firstNote:`知道網址的人都能看到。`,publishing:`正在發布…`,askTitle:`請在瀏覽器中確認`,ask:`網站第一次發布需要在瀏覽器中確認。`,openAgain:`再次開啟`,versions:`版本`,live:`線上`,rollBack:`復原`,makeLive:`設為上線`,elsewhere:`由其他團隊發布`,elsewhereNote:`這個資料夾指向另一個團隊的網站。發布會為你新建一個網站,他們的保持不變。知道網址的人都能看到。`,slug:{length:(e,t)=>`網址為 ${String(e)} 到 ${String(t)} 個字元。`,characters:`只能用小寫字母、數字和連字號。`,hyphenEnds:`網址不能以連字號開頭或結尾。`,doubleHyphen:`網址裡不能有兩個連續的連字號。`,reserved:`這個網址是保留的。`},unavailable:e=>`${e} 無法使用。`,agent:`允許 agent 更新線上網站`,search:`在搜尋引擎中顯示`,unpublish:`取消發布`,unpublishNote:`一分鐘內讓網站下線,網址和版本都會保留。`,remove:`刪除網站`,removeNote:e=>`${e} 將永久下線,這個網址也不能再使用。`}},ja:{starting:`ウェブサイトを起動しています…`,startingJob:e=>`${e} を起動しています`,failed:`ウェブサイトを起動できませんでした`,copy:`詳細をコピー`,retry:`再試行`,cancel:`キャンセル`,asleep:`ウェブサイトのプレビューにはエージェントが起きている必要があります。`,edit:`編集`,hosting:{buildFailed:`Web サイトをビルドできませんでした。`,publish:`公開`,update:`更新`,settings:`ウェブサイトの設定`,preview:`プレビュー`,unpublished:`未公開の変更`,address:`アドレス`,first:`このウェブサイトを公開`,firstNote:`アドレスを知っている人は誰でも見られます。`,publishing:`公開しています…`,askTitle:`ブラウザで確認してください`,ask:`サイトの最初の公開はブラウザで確認します。`,openAgain:`もう一度開く`,versions:`バージョン`,live:`公開中`,rollBack:`戻す`,makeLive:`公開する`,elsewhere:`別のチームが公開`,elsewhereNote:`このフォルダーは別のチームのサイトを指しています。公開するとあなたの新しいサイトができ、相手のサイトはそのままです。アドレスを知っている人は誰でも見られます。`,slug:{length:(e,t)=>`アドレスは ${String(e)}〜${String(t)} 文字です。`,characters:`小文字、数字、ハイフンだけが使えます。`,hyphenEnds:`アドレスの最初と最後にハイフンは使えません。`,doubleHyphen:`ハイフンを2つ続けては使えません。`,reserved:`このアドレスは予約されています。`},unavailable:e=>`${e} は使えません。`,agent:`公開中のサイトをエージェントに更新させる`,search:`検索エンジンに表示`,unpublish:`非公開にする`,unpublishNote:`1 分以内にサイトを非公開にします。アドレスとバージョンは残ります。`,remove:`サイトを削除`,removeNote:e=>`${e} は完全にオフラインになり、このアドレスは二度と使えません。`}},ko:{starting:`웹사이트를 시작하는 중…`,startingJob:e=>`${e} 시작하는 중`,failed:`웹사이트가 시작되지 않았습니다`,copy:`세부 정보 복사`,retry:`다시 시도`,cancel:`취소`,asleep:`웹사이트 미리보기는 에이전트가 깨어 있어야 합니다.`,edit:`편집`,hosting:{buildFailed:`웹사이트를 빌드하지 못했습니다.`,publish:`게시`,update:`업데이트`,settings:`웹사이트 설정`,preview:`미리 보기`,unpublished:`게시되지 않은 변경 사항`,address:`주소`,first:`이 웹사이트 게시`,firstNote:`주소를 아는 사람은 누구나 볼 수 있습니다.`,publishing:`게시 중…`,askTitle:`브라우저에서 확인하세요`,ask:`사이트의 첫 게시는 브라우저에서 확인합니다.`,openAgain:`다시 열기`,versions:`버전`,live:`게시 중`,rollBack:`되돌리기`,makeLive:`게시하기`,elsewhere:`다른 팀이 게시함`,elsewhereNote:`이 폴더는 다른 팀의 사이트를 가리킵니다. 게시하면 내 사이트가 새로 만들어지고, 그 팀의 사이트는 그대로 남습니다. 주소를 아는 사람은 누구나 볼 수 있습니다.`,slug:{length:(e,t)=>`주소는 ${String(e)}~${String(t)}자입니다.`,characters:`소문자, 숫자, 하이픈만 쓸 수 있습니다.`,hyphenEnds:`주소는 하이픈으로 시작하거나 끝날 수 없습니다.`,doubleHyphen:`하이픈을 두 개 연달아 쓸 수 없습니다.`,reserved:`예약된 주소입니다.`},unavailable:e=>`${e}은(는) 사용할 수 없습니다.`,agent:`에이전트가 게시된 사이트를 업데이트하도록 허용`,search:`검색 엔진에 표시`,unpublish:`게시 취소`,unpublishNote:`1분 안에 사이트를 내립니다. 주소와 버전은 그대로 남습니다.`,remove:`사이트 삭제`,removeNote:e=>`${e} 영구히 오프라인이 되며, 이 주소는 다시 사용할 수 없습니다.`}},es:{starting:`Iniciando el sitio web…`,startingJob:e=>`Iniciando ${e}`,failed:`El sitio web no se inició`,copy:`Copiar detalles`,retry:`Reintentar`,cancel:`Cancelar`,asleep:`La vista previa de un sitio web necesita al agente despierto.`,edit:`Editar`,hosting:{buildFailed:`No se pudo crear el sitio web.`,publish:`Publicar`,update:`Actualizar`,settings:`Ajustes del sitio web`,preview:`Vista previa`,unpublished:`Cambios sin publicar`,address:`Dirección`,first:`Publicar este sitio web`,firstNote:`Cualquiera con la dirección puede verlo.`,publishing:`Publicando…`,askTitle:`Confirma en tu navegador`,ask:`La primera publicación de un sitio se confirma en tu navegador.`,openAgain:`Abrir de nuevo`,versions:`Versiones`,live:`En línea`,rollBack:`Restaurar`,makeLive:`Poner en línea`,elsewhere:`Publicado por otro equipo`,elsewhereNote:`Esta carpeta es del sitio de otro equipo. Al publicar se crea uno nuevo tuyo; el suyo queda como está. Cualquiera con la dirección puede verlo.`,slug:{length:(e,t)=>`Una dirección tiene de ${String(e)} a ${String(t)} caracteres.`,characters:`Usa minúsculas, números y guiones.`,hyphenEnds:`Una dirección no empieza ni termina con guion.`,doubleHyphen:`Una dirección no lleva dos guiones seguidos.`,reserved:`Esa dirección está reservada.`},unavailable:e=>`${e} no está disponible.`,agent:`Dejar que el agente actualice el sitio publicado`,search:`Mostrar en buscadores`,unpublish:`Retirar`,unpublishNote:`Desconecta el sitio en menos de un minuto. Conserva su dirección y sus versiones.`,remove:`Eliminar sitio`,removeNote:e=>`${e} deja de estar en línea para siempre, y la dirección no podrá volver a usarse.`}},fr:{starting:`Démarrage du site web…`,startingJob:e=>`Démarrage de ${e}`,failed:`Le site web n’a pas démarré`,copy:`Copier les détails`,retry:`Réessayer`,cancel:`Annuler`,asleep:`L'aperçu d'un site web nécessite que l'agent soit éveillé.`,edit:`Modifier`,hosting:{buildFailed:`Le site n’a pas pu être construit.`,publish:`Publier`,update:`Mettre à jour`,settings:`Réglages du site web`,preview:`Aperçu`,unpublished:`Modifications non publiées`,address:`Adresse`,first:`Publier ce site web`,firstNote:`Toute personne ayant l'adresse peut le voir.`,publishing:`Publication…`,askTitle:`Confirmez dans votre navigateur`,ask:`La première publication d'un site se confirme dans votre navigateur.`,openAgain:`Rouvrir`,versions:`Versions`,live:`En ligne`,rollBack:`Restaurer`,makeLive:`Mettre en ligne`,elsewhere:`Publié par une autre équipe`,elsewhereNote:`Ce dossier désigne le site d’une autre équipe. Publier en crée un nouveau à vous ; le leur reste tel quel. Toute personne ayant l’adresse peut le voir.`,slug:{length:(e,t)=>`Une adresse compte de ${String(e)} à ${String(t)} caractères.`,characters:`Utilisez des minuscules, des chiffres et des tirets.`,hyphenEnds:`Une adresse ne commence ni ne finit par un tiret.`,doubleHyphen:`Une adresse n’a pas deux tirets d’affilée.`,reserved:`Cette adresse est réservée.`},unavailable:e=>`${e} n’est pas disponible.`,agent:`Laisser l'agent mettre à jour le site en ligne`,search:`Afficher dans les moteurs de recherche`,unpublish:`Dépublier`,unpublishNote:`Met le site hors ligne en moins d’une minute. Il garde son adresse et ses versions.`,remove:`Supprimer le site`,removeNote:e=>`${e} est mis hors ligne définitivement, et l'adresse ne pourra plus jamais servir.`}},de:{starting:`Website wird gestartet…`,startingJob:e=>`${e} wird gestartet`,failed:`Die Website wurde nicht gestartet`,copy:`Details kopieren`,retry:`Erneut versuchen`,cancel:`Abbrechen`,asleep:`Die Vorschau einer Website braucht einen wachen Agenten.`,edit:`Bearbeiten`,hosting:{buildFailed:`Die Website konnte nicht erstellt werden.`,publish:`Veröffentlichen`,update:`Aktualisieren`,settings:`Website-Einstellungen`,preview:`Vorschau`,unpublished:`Unveröffentlichte Änderungen`,address:`Adresse`,first:`Diese Website veröffentlichen`,firstNote:`Jeder mit der Adresse kann sie sehen.`,publishing:`Wird veröffentlicht…`,askTitle:`Im Browser bestätigen`,ask:`Die erste Veröffentlichung einer Website wird im Browser bestätigt.`,openAgain:`Erneut öffnen`,versions:`Versionen`,live:`Live`,rollBack:`Zurücksetzen`,makeLive:`Live schalten`,elsewhere:`Von einem anderen Team veröffentlicht`,elsewhereNote:`Dieser Ordner gehört zur Website eines anderen Teams. Beim Veröffentlichen entsteht eine neue von dir; ihre bleibt, wie sie ist. Jeder mit der Adresse kann sie sehen.`,slug:{length:(e,t)=>`Eine Adresse hat ${String(e)} bis ${String(t)} Zeichen.`,characters:`Nur Kleinbuchstaben, Ziffern und Bindestriche.`,hyphenEnds:`Eine Adresse beginnt und endet nicht mit einem Bindestrich.`,doubleHyphen:`Eine Adresse hat keine zwei Bindestriche hintereinander.`,reserved:`Diese Adresse ist reserviert.`},unavailable:e=>`${e} ist nicht verfügbar.`,agent:`Den Agenten die Live-Website aktualisieren lassen`,search:`In Suchmaschinen anzeigen`,unpublish:`Offline nehmen`,unpublishNote:`Nimmt die Website innerhalb einer Minute offline. Adresse und Versionen bleiben.`,remove:`Website löschen`,removeNote:e=>`${e} geht endgültig offline, und die Adresse kann nie wieder verwendet werden.`}},pt:{starting:`Iniciando o site…`,startingJob:e=>`Iniciando ${e}`,failed:`O site não foi iniciado`,copy:`Copiar detalhes`,retry:`Tentar de novo`,cancel:`Cancelar`,asleep:`A prévia de um site precisa do agente acordado.`,edit:`Editar`,hosting:{buildFailed:`Não foi possível montar o site.`,publish:`Publicar`,update:`Atualizar`,settings:`Configurações do site`,preview:`Pré-visualização`,unpublished:`Alterações não publicadas`,address:`Endereço`,first:`Publicar este site`,firstNote:`Qualquer pessoa com o endereço pode vê-lo.`,publishing:`Publicando…`,askTitle:`Confirme no navegador`,ask:`A primeira publicação de um site é confirmada no navegador.`,openAgain:`Abrir de novo`,versions:`Versões`,live:`No ar`,rollBack:`Restaurar`,makeLive:`Pôr no ar`,elsewhere:`Publicado por outra equipe`,elsewhereNote:`Esta pasta aponta para o site de outra equipe. Publicar cria um novo seu; o deles continua como está. Qualquer pessoa com o endereço pode vê-lo.`,slug:{length:(e,t)=>`Um endereço tem de ${String(e)} a ${String(t)} caracteres.`,characters:`Use letras minúsculas, números e hifens.`,hyphenEnds:`Um endereço não começa nem termina com hífen.`,doubleHyphen:`Um endereço não tem dois hifens seguidos.`,reserved:`Esse endereço é reservado.`},unavailable:e=>`${e} não está disponível.`,agent:`Deixar o agente atualizar o site no ar`,search:`Mostrar em buscadores`,unpublish:`Tirar do ar`,unpublishNote:`Deixa o site offline em até um minuto. Ele mantém o endereço e as versões.`,remove:`Excluir site`,removeNote:e=>`${e} sai do ar para sempre, e o endereço nunca mais poderá ser usado.`}}});function Ue({className:e}){let t=o();if(t===void 0)return null;let n=u(t.locale),{id:r,entry:i}=t.item;return(0,J.jsx)(Ke,{id:r,entry:i,said:{w:He.of(n),tag:p[n]},className:e},r)}function We(e){let[t,n]=(0,q.useState)(0);return r(e,()=>{n(e=>e+1)}),t}function Ge(e){try{let t=JSON.parse(e).dev;return typeof t!=`string`||t.trim()===``}catch{return!1}}function Ke({id:e,entry:r,said:o,className:c}){let u=i(),{w:p}=o,m=e.slice(e.lastIndexOf(`/`)+1),[h,g]=(0,q.useState)({at:`starting`}),[_,v]=(0,q.useState)(0),[y,b]=(0,q.useState)(!1),x=We(e),S=je(r),C=Le(e,x,S),w=h.at===`failed`?x:void 0,T=a(),E=h.at===`asleep`?T:void 0;(0,q.useEffect)(()=>{let t=!0;return X(u,`website/preview`,{item:e}).then(({url:e})=>{t&&g({at:`ready`,url:e})},e=>{t&&g(ee(e)?{at:`asleep`}:{at:`failed`,message:e instanceof Error?e.message:String(e)})}),()=>{t=!1}},[u,e,_,w,E]);let[D,O]=(0,q.useState)(!1);(0,q.useEffect)(()=>{let e=!0;return u[`files/read`]({path:r}).then(({text:t})=>{e&&O(Ge(t))},()=>void 0),()=>{e=!1}},[u,r,x]);let k=h.at===`failed`;t(`jobs/changed`,({job:e,item:t})=>{k&&t===r&&e.what===`start`&&e.state===`running`&&(g({at:`starting`}),v(e=>e+1))});let A=(0,q.useRef)(null);n({hold:()=>Promise.resolve({key:`website@${e}@${crypto.randomUUID()}`,what:m,source:{path:r}}),locate:()=>Promise.resolve({elements:[]})});let j=()=>{let e=A.current?.getBoundingClientRect();return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0},M=(0,q.useRef)(void 0),N=()=>M.current??Promise.resolve(void 0);return s({element:()=>A.current,hold:()=>{let t=j();return M.current=t?X(u,`website/hold`,{item:e,width:Math.round(t.width),height:Math.round(t.height),scale:Math.min(4,Math.max(1,window.devicePixelRatio))}).then(e=>e.hold,()=>void 0):Promise.resolve(void 0),M.current.then(()=>void 0)},release:()=>{let e=M.current;M.current=void 0,e?.then(e=>e===void 0?void 0:X(u,`website/release`,{hold:e}).catch(()=>void 0))},pictures:async()=>{let t=j();if(!t)return[];let n=await N(),{image:r}=await X(u,`website/still`,{item:e,width:Math.round(t.width),height:Math.round(t.height),scale:Math.min(4,Math.max(1,window.devicePixelRatio)),...n===void 0?{}:{hold:n}});return[{...r,rect:t}]},locate:async t=>{let n=j(),i=n?l(t).map(e=>({x:e.x-n.x,y:e.y-n.y})).filter(e=>e.x>=0&&e.y>=0&&e.x<=n.width&&e.y<=n.height):[],a=await N(),o=n&&i.length>0?await X(u,`website/at`,{item:e,width:Math.round(n.width),height:Math.round(n.height),points:i,...a===void 0?{}:{hold:a}}).catch(()=>void 0):void 0,s=o?.page??``;return{elements:o&&o.elements.length>0?o.elements.map(e=>({name:`the element ${e.selector} of the page ${s}`,source:{path:r},...e.text===``?{}:{text:e.text}})):[{name:`the page of the website ${m}`,source:{path:r}}],where:`on the website ${m}${s===``?``:` at ${s}`}, as its dev server serves it`}}}),h.at===`asleep`?(0,J.jsxs)(`div`,{className:d(`absolute inset-0 flex flex-col items-center justify-center gap-3 p-6`,c),children:[(0,J.jsx)(`p`,{className:`text-sm text-lead`,children:p.asleep}),(0,J.jsx)(f,{size:`xs`,onClick:()=>{u[`edit/request`]({}).catch(()=>void 0)},children:p.edit})]}):(0,J.jsxs)(`div`,{className:d(`absolute inset-0 flex flex-col`,c),children:[(0,J.jsx)(Be,{hosting:C,said:o,settings:y,onSettings:()=>{b(e=>!e)}}),(0,J.jsxs)(`div`,{className:`relative min-h-0 flex-1`,children:[h.at===`ready`&&(0,J.jsx)(`iframe`,{ref:A,title:m,src:h.url,"data-testid":`site`,sandbox:`allow-scripts allow-same-origin allow-forms allow-popups`,className:`absolute inset-0 size-full border-0 bg-page`},D?x:void 0),h.at===`starting`&&(0,J.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center text-sm text-lead`,children:(0,J.jsx)(qe,{job:Me(S,`start`),name:m,w:p})}),h.at===`failed`&&(0,J.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-3 p-6`,children:[(0,J.jsx)(`p`,{className:`text-sm text-ink`,children:p.failed}),(0,J.jsxs)(`div`,{className:`flex gap-1.5`,children:[(0,J.jsx)(f,{size:`xs`,variant:`ghost`,className:`text-lead`,onClick:()=>{navigator.clipboard.writeText(h.message).catch(()=>void 0)},children:p.copy}),(0,J.jsx)(f,{size:`xs`,onClick:()=>{g({at:`starting`}),v(e=>e+1)},children:p.retry})]})]}),y&&C.status?.detail!==void 0&&(0,J.jsx)(Ve,{hosting:C,said:o})]})]})}function qe({job:e,name:t,w:n}){if(e===void 0)return(0,J.jsx)(`span`,{className:`animate-pulse`,children:n.starting});let r=Ee(e);return(0,J.jsxs)(`span`,{role:`status`,className:`flex flex-col items-center gap-2`,children:[(0,J.jsxs)(`span`,{className:`flex items-center gap-2`,children:[r===void 0&&(0,J.jsx)(re,{className:`text-ink`}),n.startingJob(e.name??t)]}),r!==void 0&&(0,J.jsx)(ie,{value:r*100,className:`h-1 w-48`})]})}export{He as WORDS,Ue as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./workbook-DznVDqoE.js","./schemas-moE_A7Nj.js","./iso-ahTwmFwH.js","./rolldown-runtime-COiEfhsA.js","./slides-oQ_C0SVJ.js","./browser-C1XuTMlp.js","./chart-amT4lgX3.js","./dist-d4dayaWE.js","./csv-Bwre9FdI.js","./svg-CWIBMIQ9.js","./browser-C9NP0ZYz.js","./docx-draw-C4aiB8HI.js","./index-q7X6hdHp.js","./react-Edyoga_4.js","./jsx-runtime-DePvh3-m.js","./x-DlhyIKuu.js","./createLucideIcon-lm_6n8YT.js","./snapshots-Dd0Wd_qM.js","./layout-SWqqA0yV.js","./bar-button-J9vbfzTx.js","./index-Dvh1t1om.css","./purify.es-B9ve_eFf.js"])))=>i.map(i=>d[i]);
2
- import{i as e,n as t,t as n}from"./rolldown-runtime-COiEfhsA.js";import{d as r,o as i,s as a,u as o,v as s,y as c}from"./react-Edyoga_4.js";import{Ct as l,Dt as u,ht as d,kt as f,yt as p}from"./x-DlhyIKuu.js";import{C as m,S as h,a as g,d as _,g as v,h as y,o as b}from"./slides-oQ_C0SVJ.js";import{A as x,B as S,G as C,H as w,I as T,K as E,L as D,M as O,P as k,Q as A,W as j,Z as M,_ as N,a as P,b as F,ct as ee,dt as I,j as L,l as R,lt as te,q as ne,rt as z,st as B,t as re,u as ie,v as ae,x as oe}from"./esm-DzxAod8Q.js";import{a as se,n as ce,r as le}from"./browser-C1XuTMlp.js";import{r as ue}from"./csv-Bwre9FdI.js";import{t as de}from"./jsx-runtime-DePvh3-m.js";import{t as V}from"./bar-button-J9vbfzTx.js";import{i as fe,v as pe}from"./dist-elglzHMT.js";import{t as H}from"./file-exclamation-point-_L3ElCJ5.js";import{t as me}from"./file-question-mark-DlIjUK37.js";import{p as he,x as ge}from"./index-q7X6hdHp.js";import{C as _e,S as ve,T as ye,a as be,b as xe,n as Se,o as U,t as Ce,w as we,x as Te}from"./chart-amT4lgX3.js";var W={a:`http://schemas.openxmlformats.org/drawingml/2006/main`,p:`http://schemas.openxmlformats.org/presentationml/2006/main`,r:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,c:`http://schemas.openxmlformats.org/drawingml/2006/chart`,cdr:`http://schemas.openxmlformats.org/drawingml/2006/chartDrawing`,pic:`http://schemas.openxmlformats.org/drawingml/2006/picture`,dgm:`http://schemas.openxmlformats.org/drawingml/2006/diagram`,lc:`http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas`,s:`http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes`,m:`http://schemas.openxmlformats.org/officeDocument/2006/math`,mc:`http://schemas.openxmlformats.org/markup-compatibility/2006`,rel:`http://schemas.openxmlformats.org/package/2006/relationships`,ct:`http://schemas.openxmlformats.org/package/2006/content-types`,cp:`http://schemas.openxmlformats.org/package/2006/metadata/core-properties`,dc:`http://purl.org/dc/elements/1.1/`,dcterms:`http://purl.org/dc/terms/`,xsi:`http://www.w3.org/2001/XMLSchema-instance`,ep:`http://schemas.openxmlformats.org/officeDocument/2006/extended-properties`,vt:`http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes`,xml:`http://www.w3.org/XML/1998/namespace`,p14:`http://schemas.microsoft.com/office/powerpoint/2010/main`,p15:`http://schemas.microsoft.com/office/powerpoint/2012/main`,p159:`http://schemas.microsoft.com/office/powerpoint/2015/09/main`,a14:`http://schemas.microsoft.com/office/drawing/2010/main`,a16:`http://schemas.microsoft.com/office/drawing/2014/main`,asvg:`http://schemas.microsoft.com/office/drawing/2016/SVG/main`,dsp:`http://schemas.microsoft.com/office/drawing/2008/diagram`,c14:`http://schemas.microsoft.com/office/drawing/2007/8/2/chart`,c16:`http://schemas.microsoft.com/office/drawing/2014/chart`,c16r2:`http://schemas.microsoft.com/office/drawing/2015/06/chart`,v:`urn:schemas-microsoft-com:vml`,o:`urn:schemas-microsoft-com:office:office`},Ee=new Map(Object.entries(W).map(([e,t])=>[t,e])),De={"http://purl.oclc.org/ooxml/officeDocument/extendedProperties":W.ep,"http://purl.oclc.org/ooxml/officeDocument/customProperties":`http://schemas.openxmlformats.org/officeDocument/2006/custom-properties`,"http://purl.oclc.org/ooxml/officeDocument/relationships/extendedProperties":`http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties`,"http://purl.oclc.org/ooxml/officeDocument/relationships/customProperties":`http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties`,"http://purl.oclc.org/ooxml/officeDocument/relationships/metadata/core-properties":`http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties`},Oe=`http://purl.oclc.org/ooxml/`;function ke(e){if(!e.startsWith(Oe))return e;let t=De[e];if(t!==void 0)return t;let[n,...r]=e.slice(27).split(`/`);return`http://schemas.openxmlformats.org/${n??``}/2006/${r.join(`/`)}`}function Ae(e,t){if(e===``)return t;let n=Ee.get(e);return n===void 0?`{${e}}${t}`:`${n}:${t}`}var je=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CHAR=`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./workbook-CiCXkjmN.js","./schemas-CQ_UU8-Z.js","./iso-DoC-ZoBr.js","./rolldown-runtime-COiEfhsA.js","./slides-7xWhREpt.js","./browser-C1XuTMlp.js","./chart-amT4lgX3.js","./dist-D_WSM29I.js","./csv-Bwre9FdI.js","./svg-CWIBMIQ9.js","./browser-C9NP0ZYz.js","./docx-draw-CoK1oqQD.js","./index-BQWZnyAQ.js","./react-Edyoga_4.js","./jsx-runtime-DePvh3-m.js","./x-DlhyIKuu.js","./createLucideIcon-lm_6n8YT.js","./snapshots-BLX4NTQC.js","./layout-SWqqA0yV.js","./bar-button-J9vbfzTx.js","./index-Dvh1t1om.css","./purify.es-B9ve_eFf.js"])))=>i.map(i=>d[i]);
2
+ import{i as e,n as t,t as n}from"./rolldown-runtime-COiEfhsA.js";import{d as r,o as i,s as a,u as o,v as s,y as c}from"./react-Edyoga_4.js";import{Ct as l,Dt as u,ht as d,kt as f,yt as p}from"./x-DlhyIKuu.js";import{C as m,S as h,a as g,d as _,g as v,h as y,o as b}from"./slides-7xWhREpt.js";import{A as x,B as S,G as C,H as w,I as T,K as E,L as D,M as O,P as k,Q as A,W as j,Z as M,_ as N,a as P,b as F,ct as ee,dt as I,j as L,l as R,lt as te,q as ne,rt as z,st as B,t as re,u as ie,v as ae,x as oe}from"./esm-Cjv8ogpP.js";import{a as se,n as ce,r as le}from"./browser-C1XuTMlp.js";import{r as ue}from"./csv-Bwre9FdI.js";import{t as de}from"./jsx-runtime-DePvh3-m.js";import{t as V}from"./bar-button-J9vbfzTx.js";import{i as fe,v as pe}from"./dist-CpzEn9T8.js";import{t as H}from"./file-exclamation-point-_L3ElCJ5.js";import{t as me}from"./file-question-mark-DlIjUK37.js";import{p as he,x as ge}from"./index-BQWZnyAQ.js";import{C as _e,S as ve,T as ye,a as be,b as xe,n as Se,o as U,t as Ce,w as we,x as Te}from"./chart-amT4lgX3.js";var W={a:`http://schemas.openxmlformats.org/drawingml/2006/main`,p:`http://schemas.openxmlformats.org/presentationml/2006/main`,r:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,c:`http://schemas.openxmlformats.org/drawingml/2006/chart`,cdr:`http://schemas.openxmlformats.org/drawingml/2006/chartDrawing`,pic:`http://schemas.openxmlformats.org/drawingml/2006/picture`,dgm:`http://schemas.openxmlformats.org/drawingml/2006/diagram`,lc:`http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas`,s:`http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes`,m:`http://schemas.openxmlformats.org/officeDocument/2006/math`,mc:`http://schemas.openxmlformats.org/markup-compatibility/2006`,rel:`http://schemas.openxmlformats.org/package/2006/relationships`,ct:`http://schemas.openxmlformats.org/package/2006/content-types`,cp:`http://schemas.openxmlformats.org/package/2006/metadata/core-properties`,dc:`http://purl.org/dc/elements/1.1/`,dcterms:`http://purl.org/dc/terms/`,xsi:`http://www.w3.org/2001/XMLSchema-instance`,ep:`http://schemas.openxmlformats.org/officeDocument/2006/extended-properties`,vt:`http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes`,xml:`http://www.w3.org/XML/1998/namespace`,p14:`http://schemas.microsoft.com/office/powerpoint/2010/main`,p15:`http://schemas.microsoft.com/office/powerpoint/2012/main`,p159:`http://schemas.microsoft.com/office/powerpoint/2015/09/main`,a14:`http://schemas.microsoft.com/office/drawing/2010/main`,a16:`http://schemas.microsoft.com/office/drawing/2014/main`,asvg:`http://schemas.microsoft.com/office/drawing/2016/SVG/main`,dsp:`http://schemas.microsoft.com/office/drawing/2008/diagram`,c14:`http://schemas.microsoft.com/office/drawing/2007/8/2/chart`,c16:`http://schemas.microsoft.com/office/drawing/2014/chart`,c16r2:`http://schemas.microsoft.com/office/drawing/2015/06/chart`,v:`urn:schemas-microsoft-com:vml`,o:`urn:schemas-microsoft-com:office:office`},Ee=new Map(Object.entries(W).map(([e,t])=>[t,e])),De={"http://purl.oclc.org/ooxml/officeDocument/extendedProperties":W.ep,"http://purl.oclc.org/ooxml/officeDocument/customProperties":`http://schemas.openxmlformats.org/officeDocument/2006/custom-properties`,"http://purl.oclc.org/ooxml/officeDocument/relationships/extendedProperties":`http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties`,"http://purl.oclc.org/ooxml/officeDocument/relationships/customProperties":`http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties`,"http://purl.oclc.org/ooxml/officeDocument/relationships/metadata/core-properties":`http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties`},Oe=`http://purl.oclc.org/ooxml/`;function ke(e){if(!e.startsWith(Oe))return e;let t=De[e];if(t!==void 0)return t;let[n,...r]=e.slice(27).split(`/`);return`http://schemas.openxmlformats.org/${n??``}/2006/${r.join(`/`)}`}function Ae(e,t){if(e===``)return t;let n=Ee.get(e);return n===void 0?`{${e}}${t}`:`${n}:${t}`}var je=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CHAR=`
3
3
  \r -퟿-�𐀀-􏿿`,e.S=` \r
4
4
  `,e.NAME_START_CHAR=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,e.NAME_CHAR=`-`+e.NAME_START_CHAR+`.0-9·̀-ͯ‿-⁀`,e.CHAR_RE=RegExp(`^[`+e.CHAR+`]$`,`u`),e.S_RE=RegExp(`^[`+e.S+`]+$`,`u`),e.NAME_START_CHAR_RE=RegExp(`^[`+e.NAME_START_CHAR+`]$`,`u`),e.NAME_CHAR_RE=RegExp(`^[`+e.NAME_CHAR+`]$`,`u`),e.NAME_RE=RegExp(`^[`+e.NAME_START_CHAR+`][`+e.NAME_CHAR+`]*$`,`u`),e.NMTOKEN_RE=RegExp(`^[`+e.NAME_CHAR+`]+$`,`u`);var t=9,n=10,r=13,i=32;e.S_LIST=[i,n,r,t];function a(e){return e>=i&&e<=55295||e===n||e===r||e===t||e>=57344&&e<=65533||e>=65536&&e<=1114111}e.isChar=a;function o(e){return e===i||e===n||e===r||e===t}e.isS=o;function s(e){return e>=65&&e<=90||e>=97&&e<=122||e===58||e===95||e===8204||e===8205||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}e.isNameStartChar=s;function c(e){return s(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256}e.isNameChar=c})),Me=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CHAR=`-퟿-�𐀀-􏿿`,e.RESTRICTED_CHAR=`-\b\v\f--„†-Ÿ`,e.S=` \r
5
5
  `,e.NAME_START_CHAR=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,e.NAME_CHAR=`-`+e.NAME_START_CHAR+`.0-9·̀-ͯ‿-⁀`,e.CHAR_RE=RegExp(`^[`+e.CHAR+`]$`,`u`),e.RESTRICTED_CHAR_RE=RegExp(`^[`+e.RESTRICTED_CHAR+`]$`,`u`),e.S_RE=RegExp(`^[`+e.S+`]+$`,`u`),e.NAME_START_CHAR_RE=RegExp(`^[`+e.NAME_START_CHAR+`]$`,`u`),e.NAME_CHAR_RE=RegExp(`^[`+e.NAME_CHAR+`]$`,`u`),e.NAME_RE=RegExp(`^[`+e.NAME_START_CHAR+`][`+e.NAME_CHAR+`]*$`,`u`),e.NMTOKEN_RE=RegExp(`^[`+e.NAME_CHAR+`]+$`,`u`);var t=9,n=10,r=13,i=32;e.S_LIST=[i,n,r,t];function a(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111}e.isChar=a;function o(e){return e>=1&&e<=8||e===11||e===12||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159}e.isRestrictedChar=o;function s(e){return e===9||e===10||e===13||e>31&&e<127||e===133||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111}e.isCharAndNotRestricted=s;function c(e){return e===i||e===n||e===r||e===t}e.isS=c;function l(e){return e>=65&&e<=90||e>=97&&e<=122||e===58||e===95||e===8204||e===8205||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}e.isNameStartChar=l;function u(e){return l(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256}e.isNameChar=u})),Ne=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NC_NAME_START_CHAR=`A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,e.NC_NAME_CHAR=`-`+e.NC_NAME_START_CHAR+`.0-9·̀-ͯ‿-⁀`,e.NC_NAME_START_CHAR_RE=RegExp(`^[`+e.NC_NAME_START_CHAR+`]$`,`u`),e.NC_NAME_CHAR_RE=RegExp(`^[`+e.NC_NAME_CHAR+`]$`,`u`),e.NC_NAME_RE=RegExp(`^[`+e.NC_NAME_START_CHAR+`][`+e.NC_NAME_CHAR+`]*$`,`u`);function t(e){return e>=65&&e<=90||e===95||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}e.isNCNameStartChar=t;function n(e){return t(e)||e===45||e===46||e>=48&&e<=57||e===183||e>=768&&e<=879||e>=8255&&e<=8256}e.isNCNameChar=n})),G=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SaxesParser=e.EVENTS=void 0;var t=je(),n=Me(),r=Ne(),i=t.isS,a=t.isChar,o=t.isNameStartChar,s=t.isNameChar,c=t.S_LIST,l=t.NAME_RE,u=n.isChar,d=r.isNCNameStartChar,f=r.isNCNameChar,p=r.NC_NAME_RE,m=`http://www.w3.org/XML/1998/namespace`,h=`http://www.w3.org/2000/xmlns/`,g={__proto__:null,xml:m,xmlns:h},_={__proto__:null,amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`},v=-1,y=-2,b=0,x=1,S=2,C=3,w=4,T=5,E=6,D=7,O=8,k=9,A=10,j=11,M=12,N=13,P=14,F=15,ee=16,I=17,L=18,R=19,te=20,ne=21,z=22,B=23,re=24,ie=25,ae=26,oe=27,se=28,ce=29,le=30,ue=31,de=32,V=33,fe=34,pe=35,H=36,me=37,he=38,ge=39,_e=40,ve=41,ye=42,be=43,xe=44,Se=9,U=10,Ce=13,we=32,Te=33,W=34,Ee=38,De=39,Oe=45,ke=47,Ae=59,G=60,Pe=61,K=62,q=63,Fe=91,Ie=93,Le=133,Re=8232,J=e=>e===W||e===De,Y=[W,De],ze=[...Y,Fe,K],Be=[...Y,G,Ie],Ve=[Pe,q,...c],He=[...c,K,Ee,G];function Ue(e,t,n){switch(t){case`xml`:n!==m&&e.fail(`xml prefix must be bound to ${m}.`);break;case`xmlns`:n!==h&&e.fail(`xmlns prefix must be bound to ${h}.`)}switch(n){case h:e.fail(t===``?`the default namespace may not be set to ${n}.`:`may not assign a prefix (even "xmlns") to the URI \
@@ -14,4 +14,4 @@ ${h}.`);break;case m:switch(t){case`xml`:break;case``:e.fail(`the default namesp
14
14
  `,ii=e=>{let t=e.getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height}},ai=1e3;function oi({path:e,drawn:t,version:n}){let i=(0,J.useRef)(null);(0,J.useLayoutEffect)(()=>{let e=i.current;if(!e)return;let n=e.shadowRoot??e.attachShadow({mode:`open`}),r=document.createElement(`style`);r.textContent=ri;let a=document.createElement(`style`);a.textContent=t.css,n.replaceChildren(a,r,t.body)},[t]);let a=()=>[...i.current?.shadowRoot?.querySelectorAll(`section.docx`)??[]],o=e=>a().indexOf(e)+1,s=e=>`page ${String(o(e))}`,c=(t,n)=>{let r=[...t.querySelectorAll(`p, td, th`)].filter(e=>e.closest(`td, th`)===e||e.closest(`td, th`)===null).filter(e=>n(ii(e))).map(e=>e.textContent.trim()).filter(e=>e!==``).join(`
15
15
  `).slice(0,ai);return{name:`${s(t)} of the document ${e}`,source:{path:e},...r===``?{}:{text:r}}};return r({hold:()=>Promise.resolve({key:`${e}@${String(n)}`,what:`The Word document ${e}`,source:{path:e}}),locate:e=>{let t=a().filter(t=>f(e,ii(t)));return Promise.resolve({elements:t.map(t=>c(t,t=>f(e,t))),...t.length===0?{}:{where:`on ${t.map(s).join(`, `)}`}})},pick:e=>{let t=a().find(t=>{let n=ii(t);return e.x>=n.x&&e.x<=n.x+n.width&&e.y>=n.y&&e.y<=n.y+n.height});return Promise.resolve(t&&{element:c(t,()=>!0),outline:u(ii(t)),where:`on ${s(t)}`})}}),(0,Y.jsx)(`div`,{className:`size-full overflow-auto`,"data-testid":`office-document`,"data-version":n,children:(0,Y.jsx)(`div`,{ref:i,"data-testid":`office-document-pages`})})}var si={csv:`delimited`,tsv:`delimited`,xlsx:`workbook`,xls:null,docx:`document`,doc:null,pptx:`deck`,ppt:null},ci=Object.keys(si);function li(e){let t=e.slice(e.lastIndexOf(`/`)+1),n=t.lastIndexOf(`.`);return n<=0?void 0:t.slice(n+1).toLowerCase()}function ui(e){let t=li(e);return t===void 0?void 0:si[t]??void 0}var di=e=>e.slice(e.lastIndexOf(`/`)+1),fi={delimited:10485760,workbook:26214400,deck:104857600,document:26214400},pi=e=>li(e)===`tsv`?` `:`,`,mi=p({en:{loading:`Opening the file…`,couldNotOpen:e=>`The file could not be opened: ${e}`,noPreview:`This file cannot be previewed.`,tooLarge:e=>`This file is ${e}, too large to show here.`,sheets:`Sheets`},"zh-cn":{loading:`正在打开文件…`,couldNotOpen:e=>`无法打开文件:${e}`,noPreview:`这个文件无法预览。`,tooLarge:e=>`这个文件有 ${e},太大了,无法在这里显示。`,sheets:`工作表`},"zh-tw":{loading:`正在開啟檔案…`,couldNotOpen:e=>`無法開啟檔案:${e}`,noPreview:`這個檔案無法預覽。`,tooLarge:e=>`這個檔案有 ${e},太大了,無法在這裡顯示。`,sheets:`工作表`},ja:{loading:`ファイルを開いています…`,couldNotOpen:e=>`ファイルを開けませんでした:${e}`,noPreview:`このファイルはプレビューできません。`,tooLarge:e=>`このファイルは ${e} あり、大きすぎるためここには表示できません。`,sheets:`シート`},ko:{loading:`파일을 여는 중…`,couldNotOpen:e=>`파일을 열 수 없습니다: ${e}`,noPreview:`이 파일은 미리 볼 수 없습니다.`,tooLarge:e=>`이 파일은 ${e}로, 너무 커서 여기에 표시할 수 없습니다.`,sheets:`시트`},es:{loading:`Abriendo el archivo…`,couldNotOpen:e=>`No se pudo abrir el archivo: ${e}`,noPreview:`Este archivo no se puede previsualizar.`,tooLarge:e=>`Este archivo ocupa ${e}, demasiado para mostrarlo aquí.`,sheets:`Hojas`},fr:{loading:`Ouverture du fichier…`,couldNotOpen:e=>`Impossible d’ouvrir le fichier : ${e}`,noPreview:`Ce fichier ne peut pas être prévisualisé.`,tooLarge:e=>`Ce fichier fait ${e}, trop pour être affiché ici.`,sheets:`Feuilles`},de:{loading:`Datei wird geöffnet …`,couldNotOpen:e=>`Die Datei konnte nicht geöffnet werden: ${e}`,noPreview:`Für diese Datei gibt es keine Vorschau.`,tooLarge:e=>`Diese Datei ist ${e} groß, zu groß, um sie hier anzuzeigen.`,sheets:`Blätter`},pt:{loading:`Abrindo o arquivo…`,couldNotOpen:e=>`Não foi possível abrir o arquivo: ${e}`,noPreview:`Não é possível pré-visualizar este arquivo.`,tooLarge:e=>`Este arquivo tem ${e}, grande demais para ser mostrado aqui.`,sheets:`Planilhas`}});function hi({icon:e,path:t,message:n,state:i,download:a}){let o=(0,J.useRef)(null),s=()=>{let e=o.current?.getBoundingClientRect();return e&&{x:e.x,y:e.y,width:e.width,height:e.height}},c=()=>({name:`the file ${t}`,source:{path:t}});return r({hold:()=>Promise.resolve({key:`${t}@${i}`,what:`The file ${t}, which is not shown`,source:{path:t}}),locate:e=>{let t=s();return Promise.resolve({elements:t&&f(e,t)?[c()]:[]})},pick:e=>{let t=s();return Promise.resolve(t&&e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height?{element:c(),outline:u(t)}:void 0)}}),(0,Y.jsx)(`div`,{className:`flex size-full items-center justify-center p-6`,"data-testid":`office-viewer-notice`,"data-state":i,children:(0,Y.jsxs)(`div`,{ref:o,className:`flex flex-col items-center gap-2 text-center`,"data-testid":`office-viewer-notice-file`,children:[(0,Y.jsx)(e,{className:`text-lead-soft size-5`,strokeWidth:1.5,"aria-hidden":!0}),(0,Y.jsx)(`p`,{className:`text-ink font-serif text-sm font-semibold`,children:di(t)}),(0,Y.jsx)(`p`,{className:`text-lead max-w-[var(--allyhub-measure)] text-xs`,children:n}),a?(0,Y.jsx)(pe,{path:t,className:`mt-1`}):null]})})}var gi=class extends Error{status;constructor(e,t){super(t===``?String(e):`${String(e)} ${t}`),this.name=`FileNotFetchedError`,this.status=e}};async function _i(e,t){let n=t.includes(`/`)?t.slice(0,t.lastIndexOf(`/`)):``;return(await e[`files/list`]({dir:n})).files.find(e=>e.path===t)?.size}async function vi(e,t,n,r={}){let i=await _i(e,t);if(i!==void 0&&i>n)return{at:`too-large`,bytes:i};let{url:a}=await e[`files/url`]({path:t}),o=new URL(a,r.base??globalThis.location.href);r.again!==void 0&&r.again>0&&o.searchParams.set(`v`,String(r.again));let s=await(r.get??fetch)(o.href);if(!s.ok)throw new gi(s.status,s.statusText);let c=Number(s.headers.get(`content-length`)??``);if(Number.isFinite(c)&&c>n)return await s.body?.cancel(),{at:`too-large`,bytes:c};let l=new Uint8Array(await s.arrayBuffer());return l.byteLength>n?{at:`too-large`,bytes:l.byteLength}:{at:`read`,bytes:l}}function yi(e){let t=e[0]===255&&e[1]===254?`utf-16le`:e[0]===254&&e[1]===255?`utf-16be`:void 0;return new TextDecoder(t??`utf-8`).decode(e)}function bi(e,t){let n=i(),[r,a]=(0,J.useState)(0),[o,s]=(0,J.useState)({at:`loading`});return(0,J.useEffect)(()=>{let t=!0,r,i=t=>{n[`files/unwatch`]({watch:t}).catch(t=>{console.warn(`The watch of ${e} could not be stopped:`,t)})},o=n.on(`files/changed`,t=>{t.watch===r&&t.changes.some(t=>t.path===e)&&a(e=>e+1)});return n[`files/watch`]({paths:[e]}).then(e=>{t?r=e.watch:i(e.watch)},t=>{console.warn(`${e} could not be watched for changes:`,t)}),()=>{t=!1,o(),r!==void 0&&i(r)}},[n,e]),(0,J.useEffect)(()=>{let i=!0;return vi(n,e,t,{again:r}).then(e=>{i&&s({...e,version:r})},e=>{i&&s({at:`failed`,why:e instanceof Error?e.message:String(e)})}),()=>{i=!1}},[n,e,t,r]),o}var xi=16384,Si=(e,t)=>e*xi+t;function Ci(e){let t=``;for(let n=e+1;n>0;n=Math.floor((n-1)/26))t=String.fromCharCode(65+(n-1)%26)+t;return t}var wi=(e,t)=>`${Ci(t)}${String(e+1)}`,Ti=7,Ei=18;function Di(e){let t=0;for(let n of e){let e=n.codePointAt(0)??0;t+=e>=4352&&!(e>=8192&&e<11904)?2:1}return t}function Oi(e){return Math.min(320,Math.max(48,e*Ti+Ei))}var ki=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?%?$/u;function Ai(e,t,n){let{records:r}=ue(e,t),i=new Map,a=[],o=0;r.forEach((e,t)=>{o=Math.max(o,e.fields.length),e.fields.forEach((e,n)=>{e!==``&&(i.set(Si(t,n),{text:e,...ki.test(e)?{align:`right`}:{}}),t<200&&(a[n]=Math.max(a[n]??0,Di(e))))})});let s=i.size===0?0:r.length;return{sheets:[{name:n,rows:s,columns:s===0?0:o,widths:Array.from({length:s===0?0:o},(e,t)=>Oi(a[t]??0)),cells:i,merges:[],lines:s===0?[]:r.map(e=>e.line)}]}}var ji=40;function Mi(e){let t=wi(e.top,e.left),n=wi(e.bottom,e.right);return t===n?t:`${t}:${n}`}var Ni=(e,t)=>({top:Math.min(e.top,t.top),left:Math.min(e.left,t.left),bottom:Math.max(e.bottom,t.bottom),right:Math.max(e.right,t.right)}),Pi=(e,t,n)=>t>=e.top&&t<=e.bottom&&n>=e.left&&n<=e.right,Fi=(e,t,n)=>e.find(e=>Pi(e,t,n));function Ii(e,t){let n=[],r=0;for(let i=t.top;i<=t.bottom&&r<ji;i++){let a=[];for(let n=t.left;n<=t.right&&r<ji;n++)a.push(e.cells.get(Si(i,n))?.text??``),r+=1;n.push(a.join(` `))}return n.join(`
16
16
  `)}function Li(e,t,n,r){let i=t.top===t.bottom&&t.left===t.right,a=r?`the sheet ${e.name} of ${n}`:n,o=Ii(e,t),s=e.lines?.[t.top],c=e.lines?.[t.bottom];return{name:`${i?`cell`:`cells`} ${Mi(t)} of ${a}`,source:{path:n,...s===void 0?{}:{line:s},...s===void 0||c===void 0||c===s?{}:{endLine:c}},...o.trim()===``?{}:{text:o}}}var Ri=24,zi=24,Bi=e=>Math.max(40,String(e).length*8+16);function Vi(e){if(!e)return{};let t=[...e.underline?[`underline`]:[],...e.strike?[`line-through`]:[]];return{...e.align===void 0?{}:{textAlign:e.align},...e.bold?{fontWeight:600}:{},...e.italic?{fontStyle:`italic`}:{},...t.length>0?{textDecorationLine:t.join(` `)}:{},...e.fill===void 0?e.color===void 0?{}:{color:e.color}:{background:e.fill,color:e.color??`#000000`}}}var Hi=`border-rule absolute overflow-hidden border-r border-b px-1.5 text-xs text-ellipsis whitespace-nowrap`,Ui=`bg-stone text-lead border-rule border-r border-b text-center text-xs tabular-nums select-none`,Wi=e=>{let t=e.getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height}};function Gi(e){let t=(e.dataset.area??``).split(`,`).map(Number),[n,r,i,a]=t;return t.length===4&&n!==void 0&&r!==void 0&&i!==void 0&&a!==void 0&&t.every(Number.isInteger)?{top:n,left:r,bottom:i,right:a}:void 0}var Ki=e=>[e.top,e.left,e.bottom,e.right].join(`,`);function qi({sheet:e,path:t,version:n,several:i}){let a=(0,J.useRef)(null),o=Bi(e.rows),s=re({count:e.rows,getScrollElement:()=>a.current,estimateSize:()=>Ri,overscan:12,paddingStart:zi}),c=re({horizontal:!0,count:e.columns,getScrollElement:()=>a.current,estimateSize:t=>e.widths[t]??64,overscan:4,paddingStart:o});(0,J.useLayoutEffect)(()=>{c.measure()},[c,e.widths]);let l=(0,J.useMemo)(()=>{let t=[0];for(let n of e.widths)t.push((t[t.length-1]??0)+n);return t},[e.widths]),p=s.getVirtualItems(),m=c.getVirtualItems(),h=p.length===0||m.length===0?void 0:{top:p[0]?.index??0,bottom:p[p.length-1]?.index??0,left:m[0]?.index??0,right:m[m.length-1]?.index??0},g=h?e.merges.filter(e=>e.top<=h.bottom&&e.bottom>=h.top&&e.left<=h.right&&e.right>=h.left):[],_=c.getTotalSize(),v=s.getTotalSize(),y=()=>[...a.current?.querySelectorAll(`[data-area]`)??[]],b=()=>{let e=a.current?.getBoundingClientRect();return e&&{x:e.x+o,y:e.y+zi,width:Math.max(0,e.width-o),height:Math.max(0,e.height-zi)}},x=e=>{let t=b();if(!t)return;let n=Wi(e),r=Math.max(n.x,t.x),i=Math.max(n.y,t.y),a=Math.min(n.x+n.width,t.x+t.width),o=Math.min(n.y+n.height,t.y+t.height);return a>r&&o>i?{x:r,y:i,width:a-r,height:o-i}:void 0},S=i?{where:`on its sheet ${e.name}`}:{};r({hold:()=>Promise.resolve({key:`${t}@${String(n)}@${e.name}`,what:`The spreadsheet ${t}`,source:{path:t}}),locate:n=>{let r;for(let e of y()){let t=x(e),i=Gi(e);t&&i&&f(n,t)&&(r=r?Ni(r,i):i)}return Promise.resolve({elements:r?[Li(e,r,t,i)]:[],...S})},pick:n=>{let r=y().reverse().flatMap(e=>{let t=x(e),r=Gi(e);return t&&r&&n.x>=t.x&&n.x<=t.x+t.width&&n.y>=t.y&&n.y<=t.y+t.height?[{box:t,area:r}]:[]})[0];return Promise.resolve(r&&{element:Li(e,r.area,t,i),outline:u(r.box),...S})}});let C=(e,t)=>e!==void 0&&(e.text.includes(`
17
- `)||e.text.length*6>t)?{title:e.text}:{};return(0,Y.jsx)(`div`,{ref:a,className:`bg-sheet text-ink size-full overflow-auto`,"data-testid":`office-table`,"data-sheet":e.name,"data-rows":e.rows,"data-columns":e.columns,children:(0,Y.jsxs)(`div`,{className:`relative`,style:{width:_,height:v},children:[(0,Y.jsxs)(`div`,{className:`sticky top-0 z-20`,style:{width:_,height:zi},children:[(0,Y.jsx)(`div`,{className:d(Ui,`sticky left-0 z-10`),style:{width:o,height:zi}}),m.map(e=>(0,Y.jsx)(`div`,{className:d(Ui,`absolute top-0`),style:{left:e.start,width:e.size,height:zi,lineHeight:`23px`},children:Ci(e.index)},e.key))]}),p.map(t=>(0,Y.jsxs)(`div`,{className:`absolute left-0`,style:{top:t.start,width:_,height:t.size},children:[(0,Y.jsx)(`div`,{className:d(Ui,`sticky left-0 z-10`),style:{width:o,height:t.size,lineHeight:`${String(t.size-1)}px`},children:t.index+1}),m.map(n=>{if(Fi(g,t.index,n.index))return null;let r=e.cells.get(Si(t.index,n.index));return(0,Y.jsx)(`div`,{className:d(Hi,`top-0`),"data-cell":wi(t.index,n.index),"data-area":Ki({top:t.index,left:n.index,bottom:t.index,right:n.index}),style:{left:n.start,width:n.size,height:t.size,lineHeight:`${String(t.size-1)}px`,...Vi(r)},...C(r,n.size),children:r?.text},n.key)})]},t.key)),g.map(t=>{let n=e.cells.get(Si(t.top,t.left)),r=o+(l[t.left]??0),i=(l[t.right+1]??0)-(l[t.left]??0);return(0,Y.jsx)(`div`,{className:d(Hi,`bg-sheet flex items-center`),"data-cell":wi(t.top,t.left),"data-area":Ki(t),style:{left:r,top:zi+t.top*Ri,width:i,height:(t.bottom-t.top+1)*Ri,...Vi(n)},...C(n,i),children:(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 overflow-hidden text-ellipsis`,children:n?.text})},Ki(t))})]})})}function Ji({path:e,table:t,version:n}){let r=mi.of(a()?.locale),[i,o]=(0,J.useState)(0),s=Math.min(i,Math.max(0,t.sheets.length-1)),c=t.sheets[s],l=t.sheets.length>1;return(0,Y.jsxs)(`div`,{className:`flex size-full flex-col`,"data-testid":`office-table-view`,children:[(0,Y.jsx)(`div`,{className:`min-h-0 flex-1`,children:c?(0,Y.jsx)(qi,{sheet:c,path:e,version:n,several:l},s):null}),l?(0,Y.jsx)(`div`,{role:`tablist`,"aria-label":r.sheets,className:`border-rule bg-stone flex flex-none items-center gap-1 overflow-x-auto border-t px-2 py-1`,"data-testid":`office-table-sheets`,children:t.sheets.map((e,t)=>(0,Y.jsx)(V,{role:`tab`,"aria-selected":t===s,className:`flex-none`,onClick:()=>{o(t)},children:e.name},`${String(t)}:${e.name}`))}):null]})}var Yi=()=>mi.of(a()?.locale);async function Xi(e,t,n){switch(e){case`delimited`:return{is:`table`,table:Ai(yi(n),pi(t),di(t))};case`workbook`:return{is:`table`,table:(await he(async()=>{let{tableOfWorkbook:e}=await import(`./workbook-DznVDqoE.js`);return{tableOfWorkbook:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)).tableOfWorkbook(n)};case`deck`:return{is:`deck`,deck:(await he(async()=>{let{deckOfPresentation:e}=await import(`./deck-CtEtDHo2.js`);return{deckOfPresentation:e}},[],import.meta.url)).deckOfPresentation(n)};case`document`:return{is:`document`,drawn:await(await he(async()=>{let{drawWordDocumentHeld:e}=await import(`./docx-draw-C4aiB8HI.js`);return{drawWordDocumentHeld:e}},__vite__mapDeps([11,5,12,3,13,14,15,16,2,17,18,19,20,21]),import.meta.url)).drawWordDocumentHeld(n)}}}function Zi({path:e,view:t}){let n=Yi(),r=a()?.locale,i=bi(e,fi[t]),[o,s]=(0,J.useState)();if((0,J.useEffect)(()=>{if(i.at!==`read`)return;let n=!0,{version:r}=i;return Xi(t,e,i.bytes).then(e=>{n&&s({version:r,shown:e})},e=>{n&&s({version:r,failed:e instanceof Error?e.message:String(e)})}),()=>{n=!1}},[i,t,e]),i.at===`failed`)return(0,Y.jsx)(hi,{icon:H,path:e,message:n.couldNotOpen(i.why),state:`error`,download:!1});if(i.at===`too-large`)return(0,Y.jsx)(hi,{icon:ge,path:e,message:n.tooLarge(l(i.bytes,r)),state:`too-large`,download:!0});if(o===void 0)return(0,Y.jsx)(`div`,{className:`size-full`,"data-testid":`office-viewer-opening`,"aria-label":n.loading});if(`failed`in o)return(0,Y.jsx)(hi,{icon:H,path:e,message:n.couldNotOpen(o.failed),state:`error`,download:!0});let{shown:c}=o;switch(c.is){case`table`:return(0,Y.jsx)(Ji,{path:e,table:c.table,version:o.version});case`deck`:return(0,Y.jsx)(ni,{path:e,deck:c.deck,version:o.version});case`document`:return(0,Y.jsx)(oi,{path:e,drawn:c.drawn,version:o.version})}}function Qi(){let e=Yi(),t=a()?.item.entry,n=t===void 0?void 0:ui(t);return(0,Y.jsxs)(`div`,{className:`flex size-full flex-col`,"data-testid":`office-viewer`,children:[(0,Y.jsx)(fe,{}),(0,Y.jsx)(`div`,{className:`bg-stone relative min-h-0 flex-1`,children:t===void 0?null:n===void 0?(0,Y.jsx)(hi,{icon:me,path:t,message:e.noPreview,state:`no-view`,download:!0}):(0,Y.jsx)(Zi,{path:t,view:n},t)})]})}var $i=t({MOST_BYTES:()=>fi,OFFICE_EXTENSIONS:()=>ci,OfficeViewer:()=>Qi,WORDS:()=>mi,default:()=>Qi,extensionOf:()=>li,viewOf:()=>ui});export{fi as MOST_BYTES,ci as OFFICE_EXTENSIONS,Qi as OfficeViewer,Qi as default,mi as WORDS,Kr as a,li as extensionOf,Oi as i,Si as n,Gr as o,Di as r,Jr as s,$i as t,ui as viewOf};
17
+ `)||e.text.length*6>t)?{title:e.text}:{};return(0,Y.jsx)(`div`,{ref:a,className:`bg-sheet text-ink size-full overflow-auto`,"data-testid":`office-table`,"data-sheet":e.name,"data-rows":e.rows,"data-columns":e.columns,children:(0,Y.jsxs)(`div`,{className:`relative`,style:{width:_,height:v},children:[(0,Y.jsxs)(`div`,{className:`sticky top-0 z-20`,style:{width:_,height:zi},children:[(0,Y.jsx)(`div`,{className:d(Ui,`sticky left-0 z-10`),style:{width:o,height:zi}}),m.map(e=>(0,Y.jsx)(`div`,{className:d(Ui,`absolute top-0`),style:{left:e.start,width:e.size,height:zi,lineHeight:`23px`},children:Ci(e.index)},e.key))]}),p.map(t=>(0,Y.jsxs)(`div`,{className:`absolute left-0`,style:{top:t.start,width:_,height:t.size},children:[(0,Y.jsx)(`div`,{className:d(Ui,`sticky left-0 z-10`),style:{width:o,height:t.size,lineHeight:`${String(t.size-1)}px`},children:t.index+1}),m.map(n=>{if(Fi(g,t.index,n.index))return null;let r=e.cells.get(Si(t.index,n.index));return(0,Y.jsx)(`div`,{className:d(Hi,`top-0`),"data-cell":wi(t.index,n.index),"data-area":Ki({top:t.index,left:n.index,bottom:t.index,right:n.index}),style:{left:n.start,width:n.size,height:t.size,lineHeight:`${String(t.size-1)}px`,...Vi(r)},...C(r,n.size),children:r?.text},n.key)})]},t.key)),g.map(t=>{let n=e.cells.get(Si(t.top,t.left)),r=o+(l[t.left]??0),i=(l[t.right+1]??0)-(l[t.left]??0);return(0,Y.jsx)(`div`,{className:d(Hi,`bg-sheet flex items-center`),"data-cell":wi(t.top,t.left),"data-area":Ki(t),style:{left:r,top:zi+t.top*Ri,width:i,height:(t.bottom-t.top+1)*Ri,...Vi(n)},...C(n,i),children:(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 overflow-hidden text-ellipsis`,children:n?.text})},Ki(t))})]})})}function Ji({path:e,table:t,version:n}){let r=mi.of(a()?.locale),[i,o]=(0,J.useState)(0),s=Math.min(i,Math.max(0,t.sheets.length-1)),c=t.sheets[s],l=t.sheets.length>1;return(0,Y.jsxs)(`div`,{className:`flex size-full flex-col`,"data-testid":`office-table-view`,children:[(0,Y.jsx)(`div`,{className:`min-h-0 flex-1`,children:c?(0,Y.jsx)(qi,{sheet:c,path:e,version:n,several:l},s):null}),l?(0,Y.jsx)(`div`,{role:`tablist`,"aria-label":r.sheets,className:`border-rule bg-stone flex flex-none items-center gap-1 overflow-x-auto border-t px-2 py-1`,"data-testid":`office-table-sheets`,children:t.sheets.map((e,t)=>(0,Y.jsx)(V,{role:`tab`,"aria-selected":t===s,className:`flex-none`,onClick:()=>{o(t)},children:e.name},`${String(t)}:${e.name}`))}):null]})}var Yi=()=>mi.of(a()?.locale);async function Xi(e,t,n){switch(e){case`delimited`:return{is:`table`,table:Ai(yi(n),pi(t),di(t))};case`workbook`:return{is:`table`,table:(await he(async()=>{let{tableOfWorkbook:e}=await import(`./workbook-CiCXkjmN.js`);return{tableOfWorkbook:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)).tableOfWorkbook(n)};case`deck`:return{is:`deck`,deck:(await he(async()=>{let{deckOfPresentation:e}=await import(`./deck-C7fN0Qtn.js`);return{deckOfPresentation:e}},[],import.meta.url)).deckOfPresentation(n)};case`document`:return{is:`document`,drawn:await(await he(async()=>{let{drawWordDocumentHeld:e}=await import(`./docx-draw-CoK1oqQD.js`);return{drawWordDocumentHeld:e}},__vite__mapDeps([11,5,12,3,13,14,15,16,2,17,18,19,20,21]),import.meta.url)).drawWordDocumentHeld(n)}}}function Zi({path:e,view:t}){let n=Yi(),r=a()?.locale,i=bi(e,fi[t]),[o,s]=(0,J.useState)();if((0,J.useEffect)(()=>{if(i.at!==`read`)return;let n=!0,{version:r}=i;return Xi(t,e,i.bytes).then(e=>{n&&s({version:r,shown:e})},e=>{n&&s({version:r,failed:e instanceof Error?e.message:String(e)})}),()=>{n=!1}},[i,t,e]),i.at===`failed`)return(0,Y.jsx)(hi,{icon:H,path:e,message:n.couldNotOpen(i.why),state:`error`,download:!1});if(i.at===`too-large`)return(0,Y.jsx)(hi,{icon:ge,path:e,message:n.tooLarge(l(i.bytes,r)),state:`too-large`,download:!0});if(o===void 0)return(0,Y.jsx)(`div`,{className:`size-full`,"data-testid":`office-viewer-opening`,"aria-label":n.loading});if(`failed`in o)return(0,Y.jsx)(hi,{icon:H,path:e,message:n.couldNotOpen(o.failed),state:`error`,download:!0});let{shown:c}=o;switch(c.is){case`table`:return(0,Y.jsx)(Ji,{path:e,table:c.table,version:o.version});case`deck`:return(0,Y.jsx)(ni,{path:e,deck:c.deck,version:o.version});case`document`:return(0,Y.jsx)(oi,{path:e,drawn:c.drawn,version:o.version})}}function Qi(){let e=Yi(),t=a()?.item.entry,n=t===void 0?void 0:ui(t);return(0,Y.jsxs)(`div`,{className:`flex size-full flex-col`,"data-testid":`office-viewer`,children:[(0,Y.jsx)(fe,{}),(0,Y.jsx)(`div`,{className:`bg-stone relative min-h-0 flex-1`,children:t===void 0?null:n===void 0?(0,Y.jsx)(hi,{icon:me,path:t,message:e.noPreview,state:`no-view`,download:!0}):(0,Y.jsx)(Zi,{path:t,view:n},t)})]})}var $i=t({MOST_BYTES:()=>fi,OFFICE_EXTENSIONS:()=>ci,OfficeViewer:()=>Qi,WORDS:()=>mi,default:()=>Qi,extensionOf:()=>li,viewOf:()=>ui});export{fi as MOST_BYTES,ci as OFFICE_EXTENSIONS,Qi as OfficeViewer,Qi as default,mi as WORDS,Kr as a,li as extensionOf,Oi as i,Si as n,Gr as o,Di as r,Jr as s,$i as t,ui as viewOf};