allyhub 0.9.0 → 0.10.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 (461) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/commands/auth.js +4 -4
  3. package/dist/commands/cloud-tools.js +11 -11
  4. package/dist/commands/frames/compare.js +2 -2
  5. package/dist/commands/frames/piece.js +1 -1
  6. package/dist/commands/frames.js +8 -8
  7. package/dist/commands/index.js +1 -1
  8. package/dist/commands/inspect/common.js +4 -2
  9. package/dist/commands/inspect/facts.js +3 -3
  10. package/dist/commands/inspect/layout.js +1 -1
  11. package/dist/commands/orgs.js +2 -2
  12. package/dist/help.js +4 -4
  13. package/dist/main.js +8 -7
  14. package/dist/node_modules/@allyhub/3d-extension/package.json +34 -2
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  17. package/dist/node_modules/@allyhub/build/package.json +1 -1
  18. package/dist/node_modules/@allyhub/canvas-extension/package.json +2 -1
  19. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +4 -24
  20. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  21. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  22. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  23. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  24. package/dist/node_modules/@allyhub/check/package.json +1 -1
  25. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +10 -0
  26. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  27. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +9 -0
  28. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  29. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +4 -4
  30. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
  31. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
  32. package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
  33. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  34. package/dist/node_modules/@allyhub/components/package.json +1 -1
  35. package/dist/node_modules/@allyhub/components/r/callout.json +1 -1
  36. package/dist/node_modules/@allyhub/components/src/callout.ts +98 -13
  37. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  38. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  39. package/dist/node_modules/@allyhub/doc/dist/captions.js +1 -1
  40. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  41. package/dist/node_modules/@allyhub/doc/dist/html.js +50 -47
  42. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  43. package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
  44. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  45. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  46. package/dist/node_modules/@allyhub/doc/dist/write.js +22 -22
  47. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  48. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  49. package/dist/node_modules/@allyhub/doc-extension/package.json +17 -2
  50. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  51. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  52. package/dist/node_modules/@allyhub/export/package.json +1 -1
  53. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  54. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  55. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  56. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  57. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +87 -1
  58. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  59. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +89 -0
  60. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  61. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +50 -0
  62. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  63. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  64. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  65. package/dist/node_modules/@allyhub/image-extension/package.json +16 -1
  66. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +7 -39
  67. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  68. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  69. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  70. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  71. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  72. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  73. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  74. package/dist/node_modules/@allyhub/media/package.json +1 -1
  75. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
  76. package/dist/node_modules/@allyhub/media-extension/package.json +7 -4
  77. package/dist/node_modules/@allyhub/model/package.json +1 -1
  78. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  79. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  80. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +16 -0
  81. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
  82. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +6 -0
  83. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  84. package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
  85. package/dist/node_modules/@allyhub/project/package.json +1 -1
  86. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +132 -0
  87. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  88. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  89. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  90. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  91. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  92. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +153 -0
  93. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  94. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +4 -2
  95. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  96. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +43 -188
  97. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  98. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +1 -0
  99. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  100. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +1 -0
  101. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  102. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +51 -91
  103. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  104. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +3 -3
  105. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  106. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  107. package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
  108. package/dist/node_modules/@allyhub/render/package.json +1 -1
  109. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  110. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  111. package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
  112. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  113. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  114. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  115. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  116. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  117. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  118. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  119. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  120. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  121. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  122. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
  123. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
  124. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +4 -3
  125. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  126. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
  127. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
  128. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
  129. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
  130. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
  131. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  132. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  133. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  134. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  135. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  136. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  137. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  138. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  139. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  140. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  141. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  142. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  143. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  144. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  145. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  146. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  147. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  148. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  149. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  150. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  151. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  152. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  153. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  154. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  155. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  156. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  157. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  158. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  159. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  160. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  161. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  162. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  163. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +4 -4
  164. package/dist/node_modules/@allyhub/sheet-extension/package.json +22 -3
  165. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  166. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  167. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  168. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  169. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  170. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +1 -1
  171. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  172. package/dist/node_modules/@allyhub/slides-extension/package.json +20 -1
  173. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +2 -2
  174. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
  175. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  176. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  177. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  178. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  179. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  180. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  181. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
  182. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  183. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  184. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  185. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  186. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  187. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
  188. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
  189. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
  190. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
  191. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
  192. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
  193. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
  194. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
  195. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
  196. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
  197. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
  198. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
  199. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
  200. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
  201. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
  202. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
  203. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
  204. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
  205. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
  206. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
  207. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
  208. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
  209. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
  210. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
  211. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
  212. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
  213. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
  214. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
  215. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
  216. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
  217. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
  218. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
  219. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
  220. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
  221. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
  222. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
  223. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
  224. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
  225. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
  226. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
  227. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
  228. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
  229. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
  230. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
  231. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
  232. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
  233. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
  234. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
  235. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
  236. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
  237. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
  238. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
  239. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
  240. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
  241. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
  242. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
  243. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
  244. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
  245. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
  246. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
  247. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
  248. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
  249. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
  250. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
  251. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
  252. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
  253. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
  254. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
  255. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
  256. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
  257. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
  258. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
  259. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
  260. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
  261. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
  262. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
  263. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
  264. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
  265. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
  266. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
  267. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
  268. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
  269. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
  270. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
  271. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
  272. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
  273. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
  274. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
  275. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
  276. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
  277. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  278. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
  279. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  280. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +19 -19
  281. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  282. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  283. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  284. package/dist/node_modules/@allyhub/video-extension/package.json +16 -1
  285. package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
  286. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  287. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +1 -1
  288. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  289. package/dist/node_modules/@allyhub/website/package.json +1 -1
  290. package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
  291. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +24 -1
  292. package/dist/node_modules/@allyhub/website-extension/dist/tools.js +1 -1
  293. package/dist/node_modules/@allyhub/website-extension/package.json +49 -2
  294. package/dist/node_modules/@allyhub/x-extension/package.json +34 -4
  295. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +7 -62
  296. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  297. package/dist/node_modules/@allyhub/x-view/dist/article.js +1 -1
  298. package/dist/node_modules/@allyhub/x-view/dist/index.js +1 -1
  299. package/dist/node_modules/@allyhub/x-view/dist/post.js +2 -2
  300. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  301. package/dist/package.json +10 -10
  302. package/dist/text/facts-text.js +5 -5
  303. package/dist/text/index.js +1 -1
  304. package/dist/text/long-text.js +4 -0
  305. package/dist/works.js +1 -1
  306. package/editor-web/assets/{abnfDiagram-WEYOIA3C-CN5PiJYY.js → abnfDiagram-WEYOIA3C-CjAmWsNR.js} +1 -1
  307. package/editor-web/assets/alt-DnBZJzEh.js +4 -0
  308. package/editor-web/assets/{architecture-WOLXFQ4H-BnvZtQYk.js → architecture-WOLXFQ4H-DeeKhyhZ.js} +1 -1
  309. package/editor-web/assets/{architectureDiagram-ZHVYKT53-tkcEcFQ8.js → architectureDiagram-ZHVYKT53-b32qTaJg.js} +1 -1
  310. package/editor-web/assets/{arrow-up-DTP2yVSU.js → arrow-up-L4YV_65f.js} +1 -1
  311. package/editor-web/assets/article-DLMjAdbP.js +73 -0
  312. package/editor-web/assets/{audio-lines-Ti8-m7H2.js → audio-lines-BFcM7G2L.js} +1 -1
  313. package/editor-web/assets/{blockDiagram-RJAE7QA3-DhqEIpie.js → blockDiagram-RJAE7QA3-BNbnMNmw.js} +1 -1
  314. package/editor-web/assets/button-Chk675Xu.js +41 -0
  315. package/editor-web/assets/{c4Diagram-XDPPPE54-Bg9G95tl.js → c4Diagram-XDPPPE54-BEuemvMw.js} +1 -1
  316. package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
  317. package/editor-web/assets/channel-EzYq4r0d.js +1 -0
  318. package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
  319. package/editor-web/assets/choice-BgmBh4yu.js +1 -0
  320. package/editor-web/assets/{chunk-2E7WHVMD-C8Ve9lAa.js → chunk-2E7WHVMD-Zb5nPx_e.js} +1 -1
  321. package/editor-web/assets/{chunk-4EMNKR2T-BDWwPUnT.js → chunk-4EMNKR2T-DSEM2reX.js} +1 -1
  322. package/editor-web/assets/{chunk-55XCU76K-BQiNPKgx.js → chunk-55XCU76K-BOZa_65H.js} +1 -1
  323. package/editor-web/assets/{chunk-7S6XSTFO-QoEt-6jf.js → chunk-7S6XSTFO-DeiGeVpB.js} +1 -1
  324. package/editor-web/assets/{chunk-AQDTSKZB-BeuwIv0-.js → chunk-AQDTSKZB-fPuQFBJc.js} +1 -1
  325. package/editor-web/assets/{chunk-DSNLSHJZ-BHW7sLAz.js → chunk-DSNLSHJZ-5vdnoak2.js} +1 -1
  326. package/editor-web/assets/{chunk-HAGFOTED-bbGED0hu.js → chunk-HAGFOTED-DFF2mZJ1.js} +1 -1
  327. package/editor-web/assets/{chunk-HNE4Q36P-FltWp8yo.js → chunk-HNE4Q36P-g6-ZLbTg.js} +1 -1
  328. package/editor-web/assets/{chunk-NQOKRVIF-NeQzr6kH.js → chunk-NQOKRVIF-o3hNcHMJ.js} +1 -1
  329. package/editor-web/assets/{chunk-UHW7PFBP-eA4-WUhn.js → chunk-UHW7PFBP-BQiDI9dK.js} +1 -1
  330. package/editor-web/assets/{chunk-VQ5W62QI-BPPv325z.js → chunk-VQ5W62QI-CJlMXWWz.js} +1 -1
  331. package/editor-web/assets/{chunk-WQQL4CDK-DOCIz7Te.js → chunk-WQQL4CDK-pNBU8dXv.js} +1 -1
  332. package/editor-web/assets/{chunk-YZO67HFG-Dc_ihQJi.js → chunk-YZO67HFG-2x-BiWd-.js} +1 -1
  333. package/editor-web/assets/{chunk-ZAUX2LTX-CoqwCPSm.js → chunk-ZAUX2LTX-etFStEM8.js} +1 -1
  334. package/editor-web/assets/{chunk-ZCHMQSOR-CZUQPkJx.js → chunk-ZCHMQSOR-B3AYRhIY.js} +1 -1
  335. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-DUh9c50k.js → classDiagram-v2-4MYWR3UA-6y2yX0oq.js} +1 -1
  336. package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
  337. package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
  338. package/editor-web/assets/{cynefin-EF2NZ3EQ-DUTZiog0.js → cynefin-EF2NZ3EQ-CX4BTQQe.js} +1 -1
  339. package/editor-web/assets/{cynefinDiagram-WF24UDRP-oAjpfbrU.js → cynefinDiagram-WF24UDRP-LbDkOTy3.js} +1 -1
  340. package/editor-web/assets/{dagre-NK4GIZVX-BrKvKCvb.js → dagre-NK4GIZVX-wCKQk7hi.js} +1 -1
  341. package/editor-web/assets/{diagram-CBK3MWTC-GekVRnmm.js → diagram-CBK3MWTC-a9fofQwk.js} +1 -1
  342. package/editor-web/assets/{diagram-I5XIIV2D-CDd1VFRT.js → diagram-I5XIIV2D-UCLZWch5.js} +1 -1
  343. package/editor-web/assets/{diagram-ODIL2UCW-535RISTn.js → diagram-ODIL2UCW-CAEe88Lp.js} +1 -1
  344. package/editor-web/assets/{diagram-PFBEJUXE-MXzzKCGG.js → diagram-PFBEJUXE-Cp1o45bs.js} +1 -1
  345. package/editor-web/assets/{diagram-RJA3I4VV-vKVwkQxY.js → diagram-RJA3I4VV-c6OVxDyq.js} +1 -1
  346. package/editor-web/assets/{diagram-TYUNFSNR-UwGAiQLx.js → diagram-TYUNFSNR-BVRWslDM.js} +1 -1
  347. package/editor-web/assets/{dist-CKyfo5RM.js → dist--KKyT5zP.js} +1 -1
  348. package/editor-web/assets/dist-1k0MHB3i.js +1 -0
  349. package/editor-web/assets/dist-B9KHJqL5.js +4 -0
  350. package/editor-web/assets/dist-BbJyrhIY.js +1 -0
  351. package/editor-web/assets/dist-CJXCQxQM.js +37 -0
  352. package/editor-web/assets/dist-D9xQGwe9.js +5 -0
  353. package/editor-web/assets/dist-DFiLzbx8.js +219 -0
  354. package/editor-web/assets/{dist-shKo7XVN.js → dist-DIPV6xfF.js} +1 -1
  355. package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
  356. package/editor-web/assets/dist-Duw28VxJ.js +16 -0
  357. package/editor-web/assets/{dist-9ymlIMhr.js → dist-DwGhfliS.js} +1 -1
  358. package/editor-web/assets/dist-OBE2IIYP.js +24 -0
  359. package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
  360. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-73yGokYa.js → ebnfDiagram-V4P3TTPT-KdOTJgFu.js} +1 -1
  361. package/editor-web/assets/{elk-QONTBCTQ-BW6V9y6a.js → elk-QONTBCTQ-Cmlrp7qB.js} +1 -1
  362. package/editor-web/assets/{erDiagram-KYQIGQAA-BPqIJ22h.js → erDiagram-KYQIGQAA-CBM7-aQm.js} +1 -1
  363. package/editor-web/assets/{eventmodeling-K75KTNOO-_VZ8jvuy.js → eventmodeling-K75KTNOO-CEoJkbuW.js} +1 -1
  364. package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
  365. package/editor-web/assets/{ganttDiagram-R7GPNTJY-DZ157JN2.js → ganttDiagram-R7GPNTJY-D4S6ZSYD.js} +1 -1
  366. package/editor-web/assets/{gitGraph-VSP46ZUC-fmcNL9bq.js → gitGraph-VSP46ZUC-BvkL6RSh.js} +1 -1
  367. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DiZDyksR.js → gitGraphDiagram-PDYL7XHY-lTGguloH.js} +1 -1
  368. package/editor-web/assets/hint-BimUgJms.js +1 -0
  369. package/editor-web/assets/index-C-i_iuxN.js +28 -0
  370. package/editor-web/assets/index-Cxh_Shkm.css +2 -0
  371. package/editor-web/assets/{info-OHQRW6UA-V06620kN.js → info-OHQRW6UA-DvKzqNvp.js} +1 -1
  372. package/editor-web/assets/{infoDiagram-MVDRKAX5-CbIgheWX.js → infoDiagram-MVDRKAX5-D7hCpehs.js} +1 -1
  373. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-D5oJQPkG.js → ishikawaDiagram-HPEHV2GE-Bg93sZQe.js} +1 -1
  374. package/editor-web/assets/{italic-CDhZKo_q.js → italic-BQBwRTe8.js} +1 -1
  375. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BZEv6JI4.js → journeyDiagram-BOSHW7O7-CKm_KONJ.js} +1 -1
  376. package/editor-web/assets/{kanban-definition-FNSA4HC5-CLG1R8y_.js → kanban-definition-FNSA4HC5-BKknnpTR.js} +1 -1
  377. package/editor-web/assets/{mermaid-parser.core-DxDwXM7z.js → mermaid-parser.core-BzqkDnqL.js} +3 -3
  378. package/editor-web/assets/{mermaid.core-tU55ZwVG.js → mermaid.core-CEpvTOAe.js} +4 -4
  379. package/editor-web/assets/{mindmap-definition-6OY57UG3-CYf4zzAh.js → mindmap-definition-6OY57UG3-BJ0qG8Wi.js} +1 -1
  380. package/editor-web/assets/minus-oPj1GxwA.js +1 -0
  381. package/editor-web/assets/{packet-JDAUHWVQ-DsHeKYNL.js → packet-JDAUHWVQ-ew3kvyFm.js} +1 -1
  382. package/editor-web/assets/{pegDiagram-ECIUJNBX-CQyh6TTa.js → pegDiagram-ECIUJNBX-DqUS2xit.js} +1 -1
  383. package/editor-web/assets/{pie-XZMESJXO-3vCIvpNB.js → pie-XZMESJXO-DTIAMPGm.js} +1 -1
  384. package/editor-web/assets/{pieDiagram-GNMPY74T-DF5yGBLn.js → pieDiagram-GNMPY74T-DoKOE02-.js} +1 -1
  385. package/editor-web/assets/progress-CPEbDOoN.js +6 -0
  386. package/editor-web/assets/{quadrantDiagram-D57K4MC3-B7pxlDYP.js → quadrantDiagram-D57K4MC3-DauOpYun.js} +1 -1
  387. package/editor-web/assets/{radar-ABXABTNO-cpEA41mL.js → radar-ABXABTNO-BvMJXUU-.js} +1 -1
  388. package/editor-web/assets/{railroad-I3PHUGI6-BLyy5R2c.js → railroad-I3PHUGI6-D3jdJmhM.js} +1 -1
  389. package/editor-web/assets/{railroad-abnf-LNEFI6M7-Y-oyol19.js → railroad-abnf-LNEFI6M7-Dm8ZpmPj.js} +1 -1
  390. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-o58wHZsr.js → railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js} +1 -1
  391. package/editor-web/assets/{railroad-peg-JR7BVNR7-CcD3PXZ8.js → railroad-peg-JR7BVNR7-CMrQL_7U.js} +1 -1
  392. package/editor-web/assets/{railroadDiagram-Y72NRBL7-BuCC4eyy.js → railroadDiagram-Y72NRBL7-y99z0C7i.js} +1 -1
  393. package/editor-web/assets/react-DztDSW4P.js +1 -0
  394. package/editor-web/assets/{repeat-2-C5PCbNsg.js → repeat-2-DJi4LW5C.js} +1 -1
  395. package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dp-JFGn4.js → requirementDiagram-EQYSW5RA-jMr_uoF6.js} +1 -1
  396. package/editor-web/assets/row-ClBisiBs.js +1 -0
  397. package/editor-web/assets/{sankeyDiagram-SY24JHO5-rYuCqEvw.js → sankeyDiagram-SY24JHO5-DcUyx03Q.js} +1 -1
  398. package/editor-web/assets/schemas-68mjUjP5.js +1 -0
  399. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DryW8x6d.js → sequenceDiagram-BLEHNHQU-R4X8wRCd.js} +1 -1
  400. package/editor-web/assets/session-2u9U7koW.js +1 -0
  401. package/editor-web/assets/slides-BByblSSR.js +1 -0
  402. package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
  403. package/editor-web/assets/sound-DExlNJbb.js +1 -0
  404. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js → stateDiagram-v2-A6IESKWZ-BqvXKbCA.js} +1 -1
  405. package/editor-web/assets/{strikethrough-DJckA35o.js → strikethrough-CyUBnGTl.js} +1 -1
  406. package/editor-web/assets/{svg-BjM9RazX.js → svg-lBRT-uhy.js} +1 -1
  407. package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
  408. package/editor-web/assets/{swimlanes-B3ENRKFQ-BiRRhhbd.js → swimlanes-B3ENRKFQ-hjTXIc6M.js} +1 -1
  409. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
  410. package/editor-web/assets/switch-D0K-K8-C.js +1 -0
  411. package/editor-web/assets/{syntax-CC6QYhCz.js → syntax-Bih_jv7W.js} +1 -1
  412. package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
  413. package/editor-web/assets/{textarea-BGtPqZdB.js → textarea-Fu93tFO3.js} +1 -1
  414. package/editor-web/assets/{timeline-definition-JXYKGLGB-D-Q5ZtDF.js → timeline-definition-JXYKGLGB-BcSoN4Dq.js} +1 -1
  415. package/editor-web/assets/{trash-2-Bjj6cWzP.js → trash-2-BAKAeziW.js} +1 -1
  416. package/editor-web/assets/{treeView-D4JQ5SDB-B6DDatXq.js → treeView-D4JQ5SDB-CsFN2jrc.js} +1 -1
  417. package/editor-web/assets/{treemap-SAJKECNS-D7j5ZhiI.js → treemap-SAJKECNS-DP1eqXJ2.js} +1 -1
  418. package/editor-web/assets/{undo-2-yOSG766T.js → undo-2-DQ5CBmki.js} +1 -1
  419. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-tkrdKUJB.js → usecaseDiagram-WPOLBNNX-BGxa0osF.js} +1 -1
  420. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Ch4XbSnD.js → vennDiagram-Q3Y3IDCW-D2XhTF49.js} +1 -1
  421. package/editor-web/assets/video-CDbPX4Cr.js +1 -0
  422. package/editor-web/assets/{wardley-7MLQ67FV-Bynt7qNQ.js → wardley-7MLQ67FV-DM3jMAbZ.js} +1 -1
  423. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DRuSgm_L.js → wardleyDiagram-IVAIDKWA-Bf-DaZEg.js} +1 -1
  424. package/editor-web/assets/{xychartDiagram-4URNHDU4-DctpvfkL.js → xychartDiagram-4URNHDU4-dp-mdcWd.js} +1 -1
  425. package/editor-web/index.html +6 -5
  426. package/package.json +2 -2
  427. package/editor-web/assets/alt-BOVao_9S.js +0 -4
  428. package/editor-web/assets/article-B6YCzhj8.js +0 -73
  429. package/editor-web/assets/calc-worker-B5-fDWnb.js +0 -45
  430. package/editor-web/assets/channel-C26aBI4o.js +0 -1
  431. package/editor-web/assets/chart-BOnxneyw.js +0 -1
  432. package/editor-web/assets/choice-O5nwc2N0.js +0 -1
  433. package/editor-web/assets/collaborator-BJU5qwHd.js +0 -1
  434. package/editor-web/assets/createLucideIcon-B3B95oX5.js +0 -1
  435. package/editor-web/assets/dist-C6NqUEG4.js +0 -16
  436. package/editor-web/assets/dist-C9UGmCG9.js +0 -6
  437. package/editor-web/assets/dist-CAk5bjBm.js +0 -1
  438. package/editor-web/assets/dist-CRaWqNwq.js +0 -37
  439. package/editor-web/assets/dist-CwIBc7HQ.js +0 -1
  440. package/editor-web/assets/dist-DXRmkezB.js +0 -38
  441. package/editor-web/assets/dist-EKK5i0dG.js +0 -219
  442. package/editor-web/assets/dist-hHJlpLWo.js +0 -5
  443. package/editor-web/assets/dist-oYKcwWUj.js +0 -4
  444. package/editor-web/assets/dist-wrKxBrVu.js +0 -24
  445. package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +0 -1
  446. package/editor-web/assets/hint-_AQWCDMj.js +0 -1
  447. package/editor-web/assets/index-BsstP-cI.js +0 -28
  448. package/editor-web/assets/index-DQRcmxBO.css +0 -2
  449. package/editor-web/assets/minus-Cgmm6ncD.js +0 -1
  450. package/editor-web/assets/progress-0B_TVsPi.js +0 -6
  451. package/editor-web/assets/react-BP46yLMB.js +0 -1
  452. package/editor-web/assets/react-pgBZqVxJ.js +0 -96
  453. package/editor-web/assets/schemas-Ewwjtbf4.js +0 -1
  454. package/editor-web/assets/session-DiI9KYRI.js +0 -1
  455. package/editor-web/assets/slides-CCwgBcGH.js +0 -1
  456. package/editor-web/assets/sound-CqryteNl.js +0 -1
  457. package/editor-web/assets/swatch-DL3HqIjW.js +0 -1
  458. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +0 -8
  459. package/editor-web/assets/switch-DltnKqN-.js +0 -1
  460. package/editor-web/assets/tabs-C-re0Kxn.js +0 -1
  461. package/editor-web/assets/video-DXFiCNGc.js +0 -1
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as t,t as n}from"./d3-selection-COWvaQNI.js";import{C as r,G as i,H as a,U as o,_ as s,a as c,at as l,b as u,d,et as f,q as p,s as m,v as h}from"./chunk-DSNLSHJZ-BHW7sLAz.js";import{t as g}from"./channel-C26aBI4o.js";import"./chunk-YZO67HFG-Dc_ihQJi.js";import{_,c as v}from"./chunk-7S6XSTFO-QoEt-6jf.js";import"./chunk-AQDTSKZB-BeuwIv0-.js";import{t as y}from"./chunk-5VM5RSS4-ZNzvKenW.js";import"./chunk-UHW7PFBP-eA4-WUhn.js";import{i as b,n as x,o as S,r as C}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{a as w}from"./chunk-HAGFOTED-bbGED0hu.js";import"./chunk-ZAUX2LTX-CoqwCPSm.js";import"./chunk-WQQL4CDK-DOCIz7Te.js";import{t as T}from"./chunk-55XCU76K-BQiNPKgx.js";import{t as E}from"./chunk-XXDRQBXY-i7MKP1NY.js";import{t as D}from"./chunk-VQ5W62QI-BPPv325z.js";import"./chunk-HNE4Q36P-FltWp8yo.js";import{i as O,n as k,r as A,t as j}from"./mermaid.core-tU55ZwVG.js";var M={SHAPE_UNSUPPORTED:`SHAPE_UNSUPPORTED`,SHAPE_REMOVED:`SHAPE_REMOVED`,EDGE_OPERATOR_UNSUPPORTED:`EDGE_OPERATOR_UNSUPPORTED`,REFERENCE_EDGE_LABEL_REJECTED:`REFERENCE_EDGE_LABEL_REJECTED`,CONNECTOR_REF_UNRESOLVED:`CONNECTOR_REF_UNRESOLVED`,CONNECTOR_REF_NOT_A_CONNECTOR:`CONNECTOR_REF_NOT_A_CONNECTOR`,METADATA_KEY_MISAPPLIED:`METADATA_KEY_MISAPPLIED`,DUPLICATE_ID_NODE:`DUPLICATE_ID_NODE`,RESERVED_SYNTHETIC_ID:`RESERVED_SYNTHETIC_ID`,CONTAINMENT_VIOLATION:`CONTAINMENT_VIOLATION`,EDGE_SEMANTIC_CONTRADICTION:`EDGE_SEMANTIC_CONTRADICTION`,FLOW_NO_INPUT:`FLOW_NO_INPUT`},N=new Set([M.SHAPE_UNSUPPORTED,M.SHAPE_REMOVED,M.CONTAINMENT_VIOLATION]);new Set(Object.values(M).filter(e=>!N.has(e)));var P=new Map([[`task`,`roundedRect`],[`tool`,`subroutine`],[`input`,`lean-right`],[`decision`,`diamond`],[`refdoc`,`lin-doc`],[`action`,`hexagon`],[`round`,`rect`]]),ee=new Set(`doc.stadium.terminal.circle.trapezoid.inv_trapezoid.inv-trapezoid.doublecircle.double-circle.typeDeclaration.procs.lean_left.lean-left.in-out.cylinder.ellipse.odd.tag-rect.tagged-rectangle.delay.half-rounded-rectangle.lin-rect.lined-rectangle.win-pane.window-pane.curv-trap.curved-trapezoid`.split(`.`)),te=new Set([`roundedRect`,`subroutine`,`subprocess`,`subproc`,`framed-rectangle`,`lean-right`,`diamond`,`lin-doc`,`lined-document`,`hexagon`,`hex`,`connector`,`collapsedGroup`]),F=`roundedRect`;function I(e){return e&&(P.get(e)??e)}e(I,`resolveShapeAlias`);function ne(e,n){for(let r of e)if(!r.isGroup){if(r.shape&&r.shape!==`squareRect`&&r.shape!==`rect`||(r.shape=F),ee.has(r.shape)){let e=`shape "${r.shape}" was removed in v0.8.1, using "${F}"`;n?.emitError?n.emitError(`SHAPE_REMOVED`,e,{nodeId:r.id}):t.warn(`agentflow: ${e}`),r.shape=F}else if(!te.has(r.shape)){let e=`shape "${r.shape}" is not supported, using "${F}"`;n?.emitWarning?n.emitWarning(`SHAPE_UNSUPPORTED`,e,{nodeId:r.id}):t.warn(`agentflow: ${e}`),r.shape=F}}}e(ne,`normaliseNodeShapes`);var L=new Map([[`tool`,0],[`task`,1],[`decision`,2],[`input`,3],[`refdoc`,4],[`connector`,5],[`action`,6]]),R=L.size,z=e(e=>`af-kind-${e}`,`kindClass`),B=[...L.keys()],V=e(e=>Math.max(1,e-R),`containerSlotCount`),H=e((e,t)=>{let n=R+e%V(t);return t>0?n%t:n},`containerSlot`);function re(e,t,n){let r=u().themeVariables?.borderColorArray,i=Array.isArray(r)?r.length:0,a=n.size;for(let r of e??[]){if(r.isGroup||r.shape===`collapsedGroup`){r.colorIndex=H(n.get(String(r.id))??a++,i);continue}let e=t(String(r.id));e&&L.has(e)&&(r.cssClasses=`${r.cssClasses??``} ${z(e)}`.replace(/\s+/g,` `).trim())}}e(re,`assignColorSlots`);var ie=`agentflow-`,ae=new Set([`shape`,`view`,`icon`,`img`,`form`,`pos`,`w`,`h`,`class`,`style`,`labelType`]),oe=new Set([`subroutine`,`subprocess`,`subproc`,`framed-rectangle`,`tool`]),se={flow:`flowGroup`};function ce(e){if(Array.isArray(e))return e.map(e=>ce(e));if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=ce(e[n]));return t}e(ce,`stripPrototypeKeys`);function le(e){let t=!1,n=!1,r=0,i,a=[];for(let o of e.split(`
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as t,t as n}from"./d3-selection-COWvaQNI.js";import{C as r,G as i,H as a,U as o,_ as s,a as c,at as l,b as u,d,et as f,q as p,s as m,v as h}from"./chunk-DSNLSHJZ-5vdnoak2.js";import{t as g}from"./channel-EzYq4r0d.js";import"./chunk-YZO67HFG-2x-BiWd-.js";import{_,c as v}from"./chunk-7S6XSTFO-DeiGeVpB.js";import"./chunk-AQDTSKZB-fPuQFBJc.js";import{t as y}from"./chunk-5VM5RSS4-ZNzvKenW.js";import"./chunk-UHW7PFBP-BQiDI9dK.js";import{i as b,n as x,o as S,r as C}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{a as w}from"./chunk-HAGFOTED-DFF2mZJ1.js";import"./chunk-ZAUX2LTX-etFStEM8.js";import"./chunk-WQQL4CDK-pNBU8dXv.js";import{t as T}from"./chunk-55XCU76K-BOZa_65H.js";import{t as E}from"./chunk-XXDRQBXY-i7MKP1NY.js";import{t as D}from"./chunk-VQ5W62QI-CJlMXWWz.js";import"./chunk-HNE4Q36P-g6-ZLbTg.js";import{i as O,n as k,r as A,t as j}from"./mermaid.core-CEpvTOAe.js";var M={SHAPE_UNSUPPORTED:`SHAPE_UNSUPPORTED`,SHAPE_REMOVED:`SHAPE_REMOVED`,EDGE_OPERATOR_UNSUPPORTED:`EDGE_OPERATOR_UNSUPPORTED`,REFERENCE_EDGE_LABEL_REJECTED:`REFERENCE_EDGE_LABEL_REJECTED`,CONNECTOR_REF_UNRESOLVED:`CONNECTOR_REF_UNRESOLVED`,CONNECTOR_REF_NOT_A_CONNECTOR:`CONNECTOR_REF_NOT_A_CONNECTOR`,METADATA_KEY_MISAPPLIED:`METADATA_KEY_MISAPPLIED`,DUPLICATE_ID_NODE:`DUPLICATE_ID_NODE`,RESERVED_SYNTHETIC_ID:`RESERVED_SYNTHETIC_ID`,CONTAINMENT_VIOLATION:`CONTAINMENT_VIOLATION`,EDGE_SEMANTIC_CONTRADICTION:`EDGE_SEMANTIC_CONTRADICTION`,FLOW_NO_INPUT:`FLOW_NO_INPUT`},N=new Set([M.SHAPE_UNSUPPORTED,M.SHAPE_REMOVED,M.CONTAINMENT_VIOLATION]);new Set(Object.values(M).filter(e=>!N.has(e)));var P=new Map([[`task`,`roundedRect`],[`tool`,`subroutine`],[`input`,`lean-right`],[`decision`,`diamond`],[`refdoc`,`lin-doc`],[`action`,`hexagon`],[`round`,`rect`]]),ee=new Set(`doc.stadium.terminal.circle.trapezoid.inv_trapezoid.inv-trapezoid.doublecircle.double-circle.typeDeclaration.procs.lean_left.lean-left.in-out.cylinder.ellipse.odd.tag-rect.tagged-rectangle.delay.half-rounded-rectangle.lin-rect.lined-rectangle.win-pane.window-pane.curv-trap.curved-trapezoid`.split(`.`)),te=new Set([`roundedRect`,`subroutine`,`subprocess`,`subproc`,`framed-rectangle`,`lean-right`,`diamond`,`lin-doc`,`lined-document`,`hexagon`,`hex`,`connector`,`collapsedGroup`]),F=`roundedRect`;function I(e){return e&&(P.get(e)??e)}e(I,`resolveShapeAlias`);function ne(e,n){for(let r of e)if(!r.isGroup){if(r.shape&&r.shape!==`squareRect`&&r.shape!==`rect`||(r.shape=F),ee.has(r.shape)){let e=`shape "${r.shape}" was removed in v0.8.1, using "${F}"`;n?.emitError?n.emitError(`SHAPE_REMOVED`,e,{nodeId:r.id}):t.warn(`agentflow: ${e}`),r.shape=F}else if(!te.has(r.shape)){let e=`shape "${r.shape}" is not supported, using "${F}"`;n?.emitWarning?n.emitWarning(`SHAPE_UNSUPPORTED`,e,{nodeId:r.id}):t.warn(`agentflow: ${e}`),r.shape=F}}}e(ne,`normaliseNodeShapes`);var L=new Map([[`tool`,0],[`task`,1],[`decision`,2],[`input`,3],[`refdoc`,4],[`connector`,5],[`action`,6]]),R=L.size,z=e(e=>`af-kind-${e}`,`kindClass`),B=[...L.keys()],V=e(e=>Math.max(1,e-R),`containerSlotCount`),H=e((e,t)=>{let n=R+e%V(t);return t>0?n%t:n},`containerSlot`);function re(e,t,n){let r=u().themeVariables?.borderColorArray,i=Array.isArray(r)?r.length:0,a=n.size;for(let r of e??[]){if(r.isGroup||r.shape===`collapsedGroup`){r.colorIndex=H(n.get(String(r.id))??a++,i);continue}let e=t(String(r.id));e&&L.has(e)&&(r.cssClasses=`${r.cssClasses??``} ${z(e)}`.replace(/\s+/g,` `).trim())}}e(re,`assignColorSlots`);var ie=`agentflow-`,ae=new Set([`shape`,`view`,`icon`,`img`,`form`,`pos`,`w`,`h`,`class`,`style`,`labelType`]),oe=new Set([`subroutine`,`subprocess`,`subproc`,`framed-rectangle`,`tool`]),se={flow:`flowGroup`};function ce(e){if(Array.isArray(e))return e.map(e=>ce(e));if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=ce(e[n]));return t}e(ce,`stripPrototypeKeys`);function le(e){let t=!1,n=!1,r=0,i,a=[];for(let o of e.split(`
2
2
  `)){if(i!==void 0){let e=o.length-o.trimStart().length;if(o.trim()===``||e>i){a.push(o);continue}i=void 0}let e=-1;for(let i=0;i<o.length;i++){let a=o[i];if(n)a===`\\`?i++:a===`"`&&(n=!1);else if(t)a===`'`&&(t=!1);else if(a===`"`)n=!0;else if(a===`'`)t=!0;else if(a===`#`&&(i===0||o[i-1]===` `||o[i-1]===` `)){e=i;break}else a===`[`||a===`{`?r++:(a===`]`||a===`}`)&&(r=Math.max(0,r-1))}if(t||n||r>0){a.push(o);continue}let s=e>=0?o.slice(0,e):o,c=e>=0?o.slice(e):``;/:\s*[>|][\d+-]*\s*$/.test(s)?(i=o.length-o.trimStart().length,a.push(o)):a.push(s.replace(/,([\t ]*)$/,`$1`)+c)}return a.join(`
3
3
  `)}e(le,`stripLineTrailingCommas`);var ue=class{constructor(){this.vertexCounter=0,this.config=u(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId=``,this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=o,this.setAccDescription=a,this.setDiagramTitle=p,this.getAccTitle=h,this.getAccDescription=s,this.getDiagramTitle=r,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static{e(this,`AgentFlowDB`)}sanitizeText(e){return m.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,n,r,i,a,o={},s,c){if(!e||e.trim().length===0)return;let l;if(s!==void 0){let e;e=s.includes(`
4
4
  `)?s+`
@@ -1,4 +1,4 @@
1
- import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";import{t as n}from"./react-BP46yLMB.js";import{vr as r}from"./react-pgBZqVxJ.js";import{t as i}from"./jsx-runtime-DePvh3-m.js";import{t as a}from"./createLucideIcon-B3B95oX5.js";import{C as o,E as s,S as c,T as l,_ as u,b as d,d as f,f as p,g as m,h,l as g,m as _,o as v,p as y,s as b,t as x,u as S,v as C,w as ee,x as te,y as w}from"./dist-shKo7XVN.js";import{I as ne,P as re,_ as ie}from"./syntax-C0iPON60.js";import{D as ae,E as T,O as oe,S as se,T as ce,_ as le,a as ue,b as de,c as fe,d as pe,g as me,h as he,i as ge,k as _e,l as ve,m as ye,n as be,o as xe,p as Se,r as Ce,s as we,t as Te,v as Ee,w as De,x as Oe}from"./dist-YW8hS4IM.js";var ke=a(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Ae=a(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),je=a(`sigma`,[[`path`,{d:`M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2`,key:`wuwx1p`}]]),E=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},Me=/([A-Z])/g,Ne=e=>e.replace(Me,`-$1`).toLowerCase(),Pe={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},Fe=/[&><"']/g,Ie=e=>String(e).replace(Fe,e=>Pe[e]),Le=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Le(e.body[0]):e:e.type===`font`?Le(e.body):e,Re=new Set([`mathord`,`textord`,`atom`]),ze=e=>Re.has(Le(e).type),Be=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},Ve={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function He(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Ue(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:He(Array.isArray(e.type)?e.type[0]:e.type)}function We(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?Ue(r):a?a(i):i}var Ge=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(Ve)){var n=Ve[t];n&&We(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Be(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Ke=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return tt[nt[this.id]]}sub(){return tt[rt[this.id]]}fracNum(){return tt[it[this.id]]}fracDen(){return tt[at[this.id]]}cramp(){return tt[ot[this.id]]}text(){return tt[st[this.id]]}isTight(){return this.size>=2}},qe=0,Je=1,Ye=2,Xe=3,Ze=4,Qe=5,$e=6,et=7,tt=[new Ke(qe,0,!1),new Ke(Je,0,!0),new Ke(Ye,1,!1),new Ke(Xe,1,!0),new Ke(Ze,2,!1),new Ke(Qe,2,!0),new Ke($e,3,!1),new Ke(et,3,!0)],nt=[Ze,Qe,Ze,Qe,$e,et,$e,et],rt=[Qe,Qe,Qe,Qe,et,et,et,et],it=[Ye,Xe,Ze,Qe,$e,et,$e,et],at=[Xe,Xe,Qe,Qe,et,et,et,et],ot=[Je,Je,Xe,Xe,Qe,Qe,et,et],st=[qe,Je,Ye,Xe,Ye,Xe,Ye,Xe],D={DISPLAY:tt[qe],TEXT:tt[Ye],SCRIPT:tt[Ze],SCRIPTSCRIPT:tt[$e]},ct=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function lt(e){for(var t=0;t<ct.length;t++)for(var n=ct[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var ut=[];ct.forEach(e=>e.blocks.forEach(e=>ut.push(...e)));function dt(e){for(var t=0;t<ut.length;t+=2)if(e>=ut[t]&&e<=ut[t+1])return!0;return!1}var ft=e=>e+` `+e,pt=80,mt=function(e,t){return`M95,`+(622+e+t)+`
1
+ import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";import{v as n}from"./react-DztDSW4P.js";import{Et as r}from"./button-Chk675Xu.js";import{t as i}from"./jsx-runtime-DePvh3-m.js";import{t as a}from"./createLucideIcon-CPS-TrJJ.js";import{C as o,E as s,S as c,T as l,_ as u,b as d,d as f,f as p,g as m,h,l as g,m as _,o as v,p as y,s as b,t as x,u as S,v as C,w as ee,x as te,y as w}from"./dist-DIPV6xfF.js";import{I as ne,P as re,_ as ie}from"./syntax-C0iPON60.js";import{D as ae,E as T,O as oe,S as se,T as ce,_ as le,a as ue,b as de,c as fe,d as pe,g as me,h as he,i as ge,k as _e,l as ve,m as ye,n as be,o as xe,p as Se,r as Ce,s as we,t as Te,v as Ee,w as De,x as Oe}from"./dist-YW8hS4IM.js";var ke=a(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Ae=a(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),je=a(`sigma`,[[`path`,{d:`M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2`,key:`wuwx1p`}]]),E=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},Me=/([A-Z])/g,Ne=e=>e.replace(Me,`-$1`).toLowerCase(),Pe={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},Fe=/[&><"']/g,Ie=e=>String(e).replace(Fe,e=>Pe[e]),Le=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Le(e.body[0]):e:e.type===`font`?Le(e.body):e,Re=new Set([`mathord`,`textord`,`atom`]),ze=e=>Re.has(Le(e).type),Be=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},Ve={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function He(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Ue(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:He(Array.isArray(e.type)?e.type[0]:e.type)}function We(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?Ue(r):a?a(i):i}var Ge=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(Ve)){var n=Ve[t];n&&We(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Be(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Ke=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return tt[nt[this.id]]}sub(){return tt[rt[this.id]]}fracNum(){return tt[it[this.id]]}fracDen(){return tt[at[this.id]]}cramp(){return tt[ot[this.id]]}text(){return tt[st[this.id]]}isTight(){return this.size>=2}},qe=0,Je=1,Ye=2,Xe=3,Ze=4,Qe=5,$e=6,et=7,tt=[new Ke(qe,0,!1),new Ke(Je,0,!0),new Ke(Ye,1,!1),new Ke(Xe,1,!0),new Ke(Ze,2,!1),new Ke(Qe,2,!0),new Ke($e,3,!1),new Ke(et,3,!0)],nt=[Ze,Qe,Ze,Qe,$e,et,$e,et],rt=[Qe,Qe,Qe,Qe,et,et,et,et],it=[Ye,Xe,Ze,Qe,$e,et,$e,et],at=[Xe,Xe,Qe,Qe,et,et,et,et],ot=[Je,Je,Xe,Xe,Qe,Qe,et,et],st=[qe,Je,Ye,Xe,Ye,Xe,Ye,Xe],D={DISPLAY:tt[qe],TEXT:tt[Ye],SCRIPT:tt[Ze],SCRIPTSCRIPT:tt[$e]},ct=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function lt(e){for(var t=0;t<ct.length;t++)for(var n=ct[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var ut=[];ct.forEach(e=>e.blocks.forEach(e=>ut.push(...e)));function dt(e){for(var t=0;t<ut.length;t+=2)if(e>=ut[t]&&e<=ut[t+1])return!0;return!1}var ft=e=>e+` `+e,pt=80,mt=function(e,t){return`M95,`+(622+e+t)+`
2
2
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
3
3
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
4
4
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{l as t,o as n,p as r,s as i,u as a,v as o}from"./react-DztDSW4P.js";import{gt as s,t as c,wt as l,yt as u}from"./button-Chk675Xu.js";import{A as d,P as f,Y as p,et as m,g as h,nt as g,x as _}from"./snapshots-C9KV-Y2_.js";import{t as v}from"./jsx-runtime-DePvh3-m.js";import{t as y}from"./createLucideIcon-CPS-TrJJ.js";import{a as b}from"./dist-Dp-fQMtx.js";var ee=y(`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`}]]),te=y(`zoom-in`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),x=e(o(),1),S=v(),C=g([p(),p(),p()]),w={"scenery/viewer":f(m({item:d,camera:m({position:C,target:C}).optional()}),h,`The address of a scenery's viewer page, for a sandboxed frame: it tells what the person does by postMessage.`)},ne=_(w),T=u({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`}}),E=8;function D(e,t,n,r=8){let i={left:n.left+E,top:n.top+E},a={left:Math.max(i.left,n.right-E-t.width),top:Math.max(i.top,n.bottom-E-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 O=e=>e>=1?e.toFixed(2):e>=.1?e.toFixed(3):e.toFixed(4),re=1500,k={width:300,height:56},A=e=>[e[0],e[1],e[2]],ie=e=>Array.isArray(e)&&e.length===3&&e.every(e=>typeof e==`number`);function ae(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 j({className:e}){return(0,S.jsxs)(`div`,{className:`flex size-full min-h-0 flex-col`,children:[(0,S.jsx)(b,{}),(0,S.jsx)(`div`,{className:`min-h-0 flex-1`,children:(0,S.jsx)(M,{...e===void 0?{}:{className:e}})})]})}function M({className:e}){let o=n(),u=i(),d=T.of(u?.locale),f=u?.item,p=f?.id,m=f?.dir,h=f?.entry,g=(0,x.useRef)(null),_=(0,x.useRef)(null),v=(0,x.useRef)(void 0),[y,b]=(0,x.useState)({n:0}),[C,w]=(0,x.useState)(),[E,j]=(0,x.useState)(),M=r(E),[oe,N]=(0,x.useState)(),[P,F]=(0,x.useState)(),[I,L]=(0,x.useState)([]),[R,z]=(0,x.useState)(null),[B,V]=(0,x.useState)({hover:null,select:null}),[H,se]=(0,x.useState)(!1);(0,x.useEffect)(()=>{if(p===void 0)return;let e=!0,t=y.from;return ne(o,`scenery/viewer`,{item:p,...t?{camera:{position:A(t.position),target:A(t.target)}}:{}}).then(t=>{e&&(w({n:y.n,url:t.url}),j(t.probe))},t=>{e&&F({n:y.n,message:t instanceof Error?t.message:String(t)})}),()=>{e=!1}},[o,p,y]),(0,x.useEffect)(()=>{if(m===void 0)return;let e,t=!0,n=o.on(`files/changed`,t=>{if(t.watch!==e)return;let n=v.current;b(e=>({n:e.n+1,...n?{from:n}:{}}))});return o[`files/watch`]({paths:[m===``?`.`:m,`components`,`assets`]}).then(n=>{t?e=n.watch:o[`files/unwatch`]({watch:n.watch})},()=>void 0),()=>{t=!1,n(),e!==void 0&&o[`files/unwatch`]({watch:e})}},[o,m]);let U=(0,x.useCallback)(e=>{g.current?.contentWindow?.postMessage({allyhub:!0,command:e},`*`)},[]),W=(0,x.useRef)([]),G=(0,x.useRef)(new Map),K=(0,x.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};a({hold:()=>Promise.resolve({key:`${p??``}@${String(y.n)}@${JSON.stringify(v.current??null)}`,what:`The 3D scene ${p??``}`,...h===void 0?{}:{source:{path:h}}}),locate:()=>Promise.resolve({elements:[]})}),t({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(l(e).map(({x:e,y:n})=>new Promise(r=>{let i=crypto.randomUUID(),a=setTimeout(()=>{G.current.delete(i),r(null)},re);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}}}))}}}),(0,x.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,x.useRef)(null);(0,x.useEffect)(()=>{J.current=R},[R]),(0,x.useEffect)(()=>{let e=e=>{if(!C||e.source!==g.current?.contentWindow)return;let t=ae(e.data);if(!t)return;if(t.type===`error`){F({n:C.n,message:t.message});return}let n=t.event;switch(n.type){case`ready`:N(C.n),L(n.cameras),K.current=!0,W.current.forEach(()=>{U({type:`shot`})}),J.current&&U({type:`select`,path:J.current.path});return;case`select`:z(n.object);return;case`camera`:{let e=n.camera;ie(e.target)&&(v.current={position:e.position,target:e.target,...e.lens===void 0?{}:{lens:e.lens}}),se(n.framed);return}case`place`:V({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,o,C]);let ce=(0,x.useCallback)(()=>{R&&U({type:`select`,path:null}),z(null)},[U,R]),[Y,le]=(0,x.useState)({width:0,height:0});(0,x.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=R?B.select:null,Z=R&&X?D({left:X.x,top:X.y,right:X.x+X.width,bottom:X.y+X.height},k,{left:0,top:0,right:Y.width,bottom:Y.height}):void 0,Q=C!==void 0&&oe===C.n,$=P?.n===y.n?P.message:void 0;return(0,S.jsxs)(`div`,{ref:_,"data-testid":`scenery-viewer`,className:s(`bg-paper relative size-full overflow-hidden`,e),onKeyDown:e=>{e.key===`Escape`&&R&&ce()},children:[C&&M!==void 0&&(0,S.jsx)(`iframe`,{ref:g,src:C.url,title:d.title,...M?{sandbox:`allow-scripts`}:{},"data-testid":`scenery-frame`,...Q?{"data-ready":``}:{},className:s(`absolute inset-0 size-full border-0 transition-opacity`,Q?`opacity-100`:`opacity-0`)},C.n),!Q&&$===void 0&&(0,S.jsx)(`p`,{className:`text-lead absolute inset-0 grid place-items-center text-sm`,children:d.loading}),$!==void 0&&(0,S.jsxs)(`div`,{role:`alert`,className:`absolute inset-x-6 top-6 text-sm`,"data-testid":`scenery-error`,children:[(0,S.jsx)(`p`,{className:`text-problem-text`,children:d.loadFailed}),$&&(0,S.jsx)(`p`,{className:`text-lead mt-1 font-mono text-xs`,children:$})]}),Q&&B.hover&&(0,S.jsx)(`div`,{"aria-hidden":!0,className:`border-pencil pointer-events-none absolute rounded-sm border border-dashed`,style:{left:B.hover.x,top:B.hover.y,width:B.hover.width,height:B.hover.height}}),Q&&R&&B.select&&(0,S.jsx)(`div`,{"aria-hidden":!0,className:`border-pencil pointer-events-none absolute rounded-sm border-2`,style:{left:B.select.x,top:B.select.y,width:B.select.width,height:B.select.height}}),Q&&(0,S.jsxs)(`div`,{className:`pointer-events-none absolute inset-x-3 bottom-3 flex flex-wrap items-center gap-1.5`,children:[I.map(e=>(0,S.jsx)(c,{size:`sm`,variant:`outline`,className:`bg-card pointer-events-auto`,"data-testid":`scenery-camera`,onClick:()=>{U({type:`camera`,name:e})},children:e},e)),H&&(0,S.jsxs)(c,{size:`sm`,variant:`outline`,className:`bg-card pointer-events-auto ml-auto`,"data-testid":`scenery-back`,onClick:()=>{U({type:`back`})},children:[(0,S.jsx)(ee,{size:14}),d.back]})]}),Z&&R&&(0,S.jsxs)(`div`,{role:`dialog`,"aria-label":R.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:k.width},children:[(0,S.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,S.jsx)(`p`,{className:`truncate text-sm font-semibold`,children:R.path.join(` › `)}),(0,S.jsx)(`p`,{className:`text-lead text-xs`,children:d.size(O(R.size[0]),O(R.size[1]),O(R.size[2]))})]}),(0,S.jsxs)(c,{size:`sm`,variant:`ghost`,"data-testid":`scenery-zoom`,onClick:()=>{U({type:`frame`,path:R.path})},children:[(0,S.jsx)(te,{size:14}),d.zoomIn]})]})]})}export{j as SceneryViewer,j as default,T as WORDS,D as cardPlace,O as metres};
@@ -0,0 +1,4 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{a as t,l as n,o as r,p as i,s as a,u as o,v as s}from"./react-DztDSW4P.js";import{Tt as c,wt as l,yt as u}from"./button-Chk675Xu.js";import{A as d,B as f,H as p,P as m,Q as ee,R as h,S as g,U as _,V as v,W as y,X as b,Y as x,b as S,et as C,g as w,it as T,nt as E,q as D,rt as O,tt as k,x as A}from"./snapshots-C9KV-Y2_.js";import{t as j}from"./jsx-runtime-DePvh3-m.js";import{S as te,a as ne,c as re,f as ie,g as ae,i as oe,l as se,n as M,o as ce,u as le}from"./dist-Dp-fQMtx.js";import{C as N,D as ue,ct as de,g as fe,m as pe,n as me,p as he,v as P}from"./index-C-i_iuxN.js";import{t as ge}from"./collaborator-LRd0hELn.js";var F=j(),_e=u({en:{loading:`Drawing the boards`,noBoards:`This image has no boards yet`,boards:`Boards`,zoom:`Zoom`,zoomIn:`Zoom In`,zoomOut:`Zoom Out`,zoomFit:`Zoom to Fit`,zoomActual:`Actual Size`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`The boards could not be drawn: ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>e===1?`1 board`:`${String(e)} boards`},"zh-cn":{loading:`正在绘制画板`,noBoards:`这张图片还没有画板`,boards:`画板`,zoom:`缩放`,zoomIn:`放大`,zoomOut:`缩小`,zoomFit:`缩放到适合`,zoomActual:`实际大小`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`无法绘制画板:${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>`${String(e)} 个画板`},"zh-tw":{loading:`正在繪製畫板`,noBoards:`這張圖片還沒有畫板`,boards:`畫板`,zoom:`縮放`,zoomIn:`放大`,zoomOut:`縮小`,zoomFit:`縮放至適合大小`,zoomActual:`實際大小`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`無法繪製畫板:${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>`${String(e)} 個畫板`},ja:{loading:`ボードを描画中`,noBoards:`この画像にはまだボードがありません`,boards:`ボード`,zoom:`ズーム`,zoomIn:`拡大`,zoomOut:`縮小`,zoomFit:`全体を表示`,zoomActual:`実寸`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`ボードを描画できませんでした:${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>`${String(e)} 枚のボード`},ko:{loading:`보드를 그리는 중`,noBoards:`이 이미지에는 아직 보드가 없습니다`,boards:`보드`,zoom:`확대/축소`,zoomIn:`확대`,zoomOut:`축소`,zoomFit:`화면에 맞추기`,zoomActual:`실제 크기`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`보드를 그리지 못했습니다: ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>`보드 ${String(e)}개`},es:{loading:`Dibujando las mesas de trabajo`,noBoards:`Esta imagen aún no tiene mesas de trabajo`,boards:`Mesas de trabajo`,zoom:`Zoom`,zoomIn:`Acercar`,zoomOut:`Alejar`,zoomFit:`Ajustar a la ventana`,zoomActual:`Tamaño real`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`No se pudieron dibujar las mesas de trabajo: ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>e===1?`1 mesa de trabajo`:`${String(e)} mesas de trabajo`},fr:{loading:`Dessin des plans de travail`,noBoards:`Cette image n’a pas encore de plan de travail`,boards:`Plans de travail`,zoom:`Zoom`,zoomIn:`Zoom avant`,zoomOut:`Zoom arrière`,zoomFit:`Ajuster à la fenêtre`,zoomActual:`Taille réelle`,percent:e=>`${String(e)}\u202f%`,couldNotDraw:e=>`Les plans de travail n’ont pas pu être dessinés : ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>e===1?`1 plan de travail`:`${String(e)} plans de travail`},de:{loading:`Zeichenflächen werden gezeichnet`,noBoards:`Dieses Bild hat noch keine Zeichenflächen`,boards:`Zeichenflächen`,zoom:`Zoom`,zoomIn:`Vergrößern`,zoomOut:`Verkleinern`,zoomFit:`An Fenster anpassen`,zoomActual:`Originalgröße`,percent:e=>`${String(e)}\u00a0%`,couldNotDraw:e=>`Die Zeichenflächen konnten nicht gezeichnet werden: ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>e===1?`1 Zeichenfläche`:`${String(e)} Zeichenflächen`},pt:{loading:`Desenhando as pranchetas`,noBoards:`Esta imagem ainda não tem pranchetas`,boards:`Pranchetas`,zoom:`Zoom`,zoomIn:`Ampliar`,zoomOut:`Reduzir`,zoomFit:`Ajustar à janela`,zoomActual:`Tamanho real`,percent:e=>`${String(e)}%`,couldNotDraw:e=>`Não foi possível desenhar as pranchetas: ${e}`,size:(e,t)=>`${String(e)} × ${String(t)}`,boardCount:e=>e===1?`1 prancheta`:`${String(e)} pranchetas`}});function I(){return _e.of(a()?.locale)}var ve=typeof navigator<`u`&&navigator.userAgent.includes(`Mac`)?`⌘`:`Ctrl+`;function ye(e){let t=I();return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(M,{id:`zoom`,priority:3,children:(0,F.jsxs)(pe,{children:[(0,F.jsx)(ue,{asChild:!0,children:(0,F.jsxs)(me,{"aria-label":t.zoom,title:t.zoom,className:`tabular-nums`,"data-testid":`image-zoom`,children:[t.percent(Math.round(e.zoom*100)),(0,F.jsx)(de,{className:`size-3`})]})}),(0,F.jsxs)(fe,{align:`start`,children:[(0,F.jsx)(`div`,{className:`px-1 pb-1`,children:(0,F.jsx)(he,{"aria-label":t.zoom,className:`h-7 tabular-nums`,inputMode:`decimal`,defaultValue:t.percent(Math.round(e.zoom*100)),"data-testid":`image-zoom-typed`,onKeyDown:t=>{if(t.stopPropagation(),t.key!==`Enter`)return;let n=parseFloat(t.currentTarget.value.replace(`,`,`.`));Number.isFinite(n)&&n>0&&e.onZoom(n/100)}},Math.round(e.zoom*100))}),(0,F.jsxs)(P,{onSelect:()=>{e.onZoom(`in`)},children:[t.zoomIn,(0,F.jsx)(N,{children:`${ve}+`})]}),(0,F.jsxs)(P,{onSelect:()=>{e.onZoom(`out`)},children:[t.zoomOut,(0,F.jsx)(N,{children:`${ve}−`})]}),(0,F.jsxs)(P,{"data-testid":`image-zoom-fit`,onSelect:()=>{e.onZoom(`fit`)},children:[t.zoomFit,(0,F.jsx)(N,{children:`⇧1`})]}),(0,F.jsxs)(P,{"data-testid":`image-zoom-actual`,onSelect:()=>{e.onZoom(1)},children:[t.zoomActual,(0,F.jsx)(N,{children:`⇧0`})]})]})]})})})}var be=`normal.dissolve.darken.multiply.colorBurn.linearBurn.darkerColor.lighten.screen.colorDodge.linearDodge.lighterColor.overlay.softLight.hardLight.vividLight.linearLight.pinLight.hardMix.difference.exclusion.subtract.divide.hue.saturation.color.luminosity.passThrough`.split(`.`),xe=e=>typeof e==`object`&&!!e&&(`__allyhubMedia`in e||`sha256`in e),L=x().min(0).max(1),Se=E([L,L,L,L]).refine(([e,t,n,r])=>n>0&&r>0&&e+n<=1+1e-9&&t+r<=1+1e-9,`[x, y, w, h] as shares of the frame, inside it, its sides more than 0`),R=O([k().min(1),p(xe,`an imported picture`)]),z=x().min(0).max(100).refine(Number.isFinite,`a percent from 0 to 100`),B=x().min(0).max(1e3).refine(Number.isFinite),V=x().min(-360).max(360),H=h(be),Ce=/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/iu,we=/^(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color)\([^()]*\)$/iu;function Te(e){if(typeof e!=`string`)return!1;let t=e.trim();if(Ce.test(t)||we.test(t))return!0;if(!/^[a-z]+$/iu.test(t))return!1;let n=globalThis.CSS;return n?n.supports(`color`,t):t.length>2}var U=k().refine(Te,`a CSS colour (#rrggbb, rgb(…), hsl(…) or a colour's name)`),Ee=b({color:U,location:z,midpoint:z.optional()}),De=b({stops:f(Ee).min(2),style:h([`linear`,`radial`,`angle`,`reflected`,`diamond`]).optional(),angle:V.optional(),scale:x().min(10).max(1e3).optional(),reverse:v().optional()});O([b({color:U}),b({gradient:De}),b({pattern:R,scale:x().min(1).max(1e3).optional()})]);var Oe=b({src:R.optional(),path:k().min(1).optional(),box:Se.optional(),mode:h([`alpha`,`luminance`]).optional(),density:z.optional(),feather:B.optional(),invert:v().optional(),enabled:v().optional()}),ke=O([R,Oe]),W={enabled:v().optional(),blendMode:H.optional(),opacity:z.optional()},Ae={...W,color:U.optional(),angle:V.optional(),distance:B.optional(),size:B.optional()},je=b({dropShadow:b({...Ae,spread:z.optional()}).optional(),innerShadow:b({...Ae,choke:z.optional()}).optional(),outerGlow:b({...W,color:U.optional(),spread:z.optional(),size:B.optional()}).optional(),innerGlow:b({...W,color:U.optional(),choke:z.optional(),size:B.optional(),source:h([`edge`,`center`]).optional()}).optional(),stroke:b({...W,color:U.optional(),size:B.optional(),position:h([`outside`,`inside`,`center`]).optional()}).optional(),colorOverlay:b({...W,color:U.optional()}).optional(),gradientOverlay:b({...W,gradient:De.optional()}).optional(),patternOverlay:b({...W,pattern:R,scale:x().min(1).max(1e3).optional()}).optional(),satin:b({...W,color:U.optional(),angle:V.optional(),distance:B.optional(),size:B.optional(),invert:v().optional()}).optional(),bevelEmboss:b({...W,style:h([`innerBevel`,`outerBevel`,`emboss`,`pillowEmboss`,`strokeEmboss`]).optional(),technique:h([`smooth`,`chiselHard`,`chiselSoft`]).optional(),depth:x().min(1).max(1e3).optional(),direction:h([`up`,`down`]).optional(),size:B.optional(),soften:B.optional(),angle:V.optional(),altitude:x().min(0).max(90).optional(),highlightMode:H.optional(),highlightColor:U.optional(),highlightOpacity:z.optional(),shadowMode:H.optional(),shadowColor:U.optional(),shadowOpacity:z.optional()}).optional()}),Me=b({rotation:x().min(-360).max(360).optional(),flipH:v().optional(),flipV:v().optional()});b({blendMode:H.optional(),opacity:z.optional(),fillOpacity:z.optional(),clipping:v().optional(),mask:ke.optional(),effects:je.optional(),transform:Me.optional(),visible:v().optional()});var G=x().min(0).max(255),K=b({inputBlack:G.optional(),inputWhite:G.optional(),gamma:x().min(.1).max(9.99).optional(),outputBlack:G.optional(),outputWhite:G.optional()}),Ne=E([G,G]),q=f(Ne).min(2).max(16);_(`kind`,[b({kind:D(`levels`),rgb:K.optional(),red:K.optional(),green:K.optional(),blue:K.optional()}),b({kind:D(`curves`),rgb:q.optional(),red:q.optional(),green:q.optional(),blue:q.optional()}),b({kind:D(`brightnessContrast`),brightness:x().min(-150).max(150).optional(),contrast:x().min(-50).max(100).optional(),useLegacy:v().optional()}),b({kind:D(`hueSaturation`),hue:x().min(-180).max(180).optional(),saturation:x().min(-100).max(100).optional(),lightness:x().min(-100).max(100).optional(),colorize:v().optional()}),b({kind:D(`vibrance`),vibrance:x().min(-100).max(100).optional(),saturation:x().min(-100).max(100).optional()}),b({kind:D(`colorBalance`),shadows:E([x(),x(),x()]).optional(),midtones:E([x(),x(),x()]).optional(),highlights:E([x(),x(),x()]).optional(),preserveLuminosity:v().optional()}),b({kind:D(`blackAndWhite`),reds:x().min(-200).max(300).optional(),yellows:x().min(-200).max(300).optional(),greens:x().min(-200).max(300).optional(),cyans:x().min(-200).max(300).optional(),blues:x().min(-200).max(300).optional(),magentas:x().min(-200).max(300).optional()}),b({kind:D(`photoFilter`),color:U.optional(),density:z.optional(),preserveLuminosity:v().optional()}),b({kind:D(`invert`)}),b({kind:D(`threshold`),level:x().int().min(1).max(255).optional()}),b({kind:D(`gradientMap`),gradient:De.optional(),reverse:v().optional()}),b({kind:D(`exposure`),exposure:x().min(-20).max(20).optional(),offset:x().min(-.5).max(.5).optional(),gammaCorrection:x().min(.01).max(9.99).optional()})]),b({color:U.optional(),width:B.optional(),alignment:h([`inside`,`center`,`outside`]).optional(),dashes:f(x().min(0).max(1e3)).max(8).optional(),cap:h([`butt`,`round`,`square`]).optional(),join:h([`miter`,`round`,`bevel`]).optional(),opacity:z.optional()}),b({font:k().min(1).optional(),weight:x().int().min(100).max(900).optional(),italic:v().optional(),size:x().min(1).max(4096).optional(),color:U.optional(),tracking:x().min(-1e3).max(1e4).optional(),leading:O([x().min(0).max(5e3),D(`auto`)]).optional(),capitalization:h([`normal`,`allCaps`,`smallCaps`]).optional(),underline:v().optional(),strikeThrough:v().optional()}),b({justification:h([`left`,`center`,`right`,`justifyLeft`,`justifyCenter`,`justifyRight`,`justifyAll`]).optional(),firstLineIndent:x().min(-1296).max(1296).optional(),leftIndent:x().min(0).max(1296).optional(),rightIndent:x().min(0).max(1296).optional(),spaceBefore:x().min(0).max(1296).optional(),spaceAfter:x().min(0).max(1296).optional()});var Pe=[`pixel`,`type`,`shape`,`smartObject`,`adjustment`,`fill`,`group`],J=e(s(),1),Y=E([x(),x(),x(),x()]),Fe=C({text:k(),box:Y,size:x(),capHeight:x().optional(),color:k(),font:k(),weight:k(),lineHeight:x(),align:k(),letterSpacing:x().optional()}),Ie=C({key:k(),component:k(),kind:h(Pe),parent:k().optional(),hidden:v(),style:ee(k(),T()),box:Y.optional(),words:f(C({prop:k(),key:k(),text:k()})),texts:f(Fe),picture:C({file:k(),source:E([x(),x()]),whole:Y,box:Y,fit:k(),position:E([x(),x()]),crop:Y.optional()}).optional()}),Le=C({key:k(),title:k().optional(),width:y().positive(),height:y().positive(),background:k(),picture:g,layers:f(Ie)}),Re=C({from:y().positive(),to:y().positive()}),ze=Re.extend({key:k().min(1)}),Be=Re.extend({key:k().min(1),layers:f(ze)}),Ve={"image/versions":m(C({item:d}),C({piece:k(),title:k().optional(),script:k().min(1).optional(),versions:f(C({key:k(),lang:k().optional(),variant:k().optional(),script:d.optional()}))}),`An image's versions, one per combo, and its script in each version's language.`),"image/boards":m(C({...S,height:y().min(16).max(2048).optional()}),C({image:g,width:y().positive(),height:y().positive(),boards:f(C({key:k(),width:y().positive(),height:y().positive(),x:y().nonnegative()}))}),`An image version's boards drawn side by side, in order, at one height: its card and its preview.`),"image/edit":m(C({...S,scale:x().min(.05).max(2).optional()}),C({piece:k(),boards:f(Le)}),`An image version's boards as its viewer shows them: each drawn, and its named layers with what each draws, the messages it shows and its picture (what Mark up finds under a mark).`),"image/stage":m(C({...S,board:k().min(1).optional()}),w,"The address of an image version's stage page, for its viewer's sandboxed frame: a board drawn live, as large as the frame holds it, which moves to another board (`seek` by `part`)."),"image/sources":m(C({item:d}),C({path:d,boards:f(Be)}),`Where each board and its layers are written in the image's module, by line: what a change to those lines changes.`)},He=A(Ve),Ue=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function We(e,t){for(let n of t){let t=e.find(e=>e.key===n.key);if(!t)return{board:n.key};for(let e of n.layers){let r=t.layers.find(t=>t.key===e.key);if(!r||!Ue(r,e))return{board:n.key,layer:e.key}}if(t.layers.length!==n.layers.length)return{board:n.key}}}var Ge=(e,t)=>e.from<=t.to&&t.from<=e.to,Ke=(e,t)=>e.filter(e=>Ge(e,t)).sort((e,t)=>e.to-e.from-(t.to-t.from))[0];function qe(e,t,n=t){let r={from:t,to:n},i=Ke(e,r);if(!i)return;let a=Ke(i.layers,r);return{board:i.key,...a?{layer:a.key}:{}}}var Je=1,Ye=e=>`data:${e.mime};base64,${e.data}`;function Xe(e){let t=r(),[n,i]=(0,J.useState)(),[a,o]=(0,J.useState)([]),[s,c]=(0,J.useState)(new Map),[l,u]=(0,J.useState)(),[d,f]=(0,J.useState)(0),[p,m]=(0,J.useState)(),[ee,h]=(0,J.useState)(),[g,_]=(0,J.useState)(0),v=(0,J.useRef)(0),y=(0,J.useRef)(new Map);return(0,J.useEffect)(()=>t.on(`project/changed`,e=>{v.current=e.revision,_(e=>e+1)}),[t]),(0,J.useEffect)(()=>{if(e===void 0)return;let n={on:!0},r=v.current;return He(t,`image/sources`,{item:e}).then(e=>{n.on&&m(e)},()=>void 0),(async()=>{let a=(await He(t,`image/versions`,{item:e})).versions.map(e=>({key:e.key,lang:e.lang,variant:e.variant})),s=new Map,l;for(let n of a){let r=await He(t,`image/edit`,{item:e,version:n.key,scale:Je});l=r.piece,s.set(n.key,{version:n,boards:r.boards})}if(n.on){for(let[e,t]of s){let n=y.current.get(e),r=n&&We(n.boards,t.boards);if(r){h({spot:r,version:e,at:Date.now()});break}}y.current=s,i(l),o(a),c(s),u(void 0),f(r)}})().catch(e=>{n.on&&u(e instanceof Error?e.message:String(e))}),()=>{n.on=!1}},[t,e,g]),{item:e,piece:n,versions:a,drawn:s,revision:d,sources:p,landed:ee,error:l}}var Ze=e=>typeof e==`object`&&!!e&&e.allyhub===!0&&typeof e.type==`string`;function Qe(e){let t=r(),[n,a]=(0,J.useState)(),o=i(n),[s,c]=(0,J.useState)(new Map),l=(0,J.useRef)(new Map),u=(0,J.useRef)(1),d=e.wanted.map(e=>e.id).join(`
2
+ `);return(0,J.useEffect)(()=>{if(e.item===void 0)return;let n=!0,r=e.item;return Promise.all(e.wanted.slice(0,8).map(e=>He(t,`image/stage`,{item:r,version:e.version,board:e.board}).then(t=>({w:e,r:t}),()=>void 0))).then(e=>{if(!n)return;let t=e.find(e=>e!==void 0);t&&a(t.r.probe),c(t=>{let n=new Map;for(let r of e){if(!r)continue;let e=t.get(r.w.id),i=()=>({n:u.current++,src:r.r.url,drawn:!1});e?.shown?e.shown.src===r.r.url?n.set(r.w.id,e):n.set(r.w.id,{shown:e.shown,pending:e.pending?.src===r.r.url?e.pending:i()}):n.set(r.w.id,{shown:i(),pending:void 0})}return n})}),()=>{n=!1}},[t,e.item,d,e.revision]),(0,J.useEffect)(()=>{let e=e=>{if(!Ze(e.data)||e.data.type!==`ready`)return;let t;for(let[n,r]of l.current)r.contentWindow===e.source&&(t=n);t!==void 0&&c(e=>{let n=!1,r=new Map(e);for(let[i,a]of e)a.shown?.n===t&&!a.shown.drawn?(r.set(i,{...a,shown:{...a.shown,drawn:!0}}),n=!0):a.pending?.n===t&&(r.set(i,{shown:{...a.pending,drawn:!0},pending:void 0}),n=!0);return n?r:e})};return addEventListener(`message`,e),()=>{removeEventListener(`message`,e)}},[]),{frame:(e,t)=>{let n=s.get(e);return!n||o===void 0?null:(0,F.jsx)(et,{frames:n,sandbox:o,els:l,picture:t})},drawn:e=>s.get(e)?.shown?.drawn===!0}}function $e(e){let t=/^data:([^;,]+);base64,(.*)$/su.exec(e);return t?.[1]!==void 0&&t[2]!==void 0?{mime:t[1],data:t[2]}:void 0}function et({frames:e,sandbox:t,els:r,picture:i}){let a=(0,J.useRef)(null),o=()=>{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};n({element:()=>a.current,pictures:()=>{let e=o(),t=$e(i);return Promise.resolve(e&&t?[{rect:e,...t}]:[])}});let s=(e,n)=>(0,F.jsx)(`iframe`,{ref:t=>{t?r.current.set(e.n,t):r.current.delete(e.n),n||(a.current=t)},src:e.src,title:``,tabIndex:-1,...t?{sandbox:`allow-scripts`}:{},"data-testid":n?`image-live-pending`:`image-live`,"data-drawn":e.drawn?``:void 0,className:`pointer-events-none absolute inset-0 size-full border-0`,style:{opacity:!n&&e.drawn?1:0}},e.n);return(0,F.jsxs)(F.Fragment,{children:[e.shown?s(e.shown,!1):null,e.pending?s(e.pending,!0):null]})}var tt=.25,X=e=>String(Math.round(e*10)/10);function nt(e,t){switch(e.kind){case`box`:{let n=t({x:e.rect.x,y:e.rect.y}),r=t({x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height});return{path:`M ${X(n.x)} ${X(n.y)} H ${X(r.x)} V ${X(r.y)} H ${X(n.x)} Z`,area:!0}}case`round`:{let n=t({x:e.rect.x,y:e.rect.y}),r=t({x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height}),i=Math.abs(r.x-n.x)/2,a=Math.abs(r.y-n.y)/2,o=(n.y+r.y)/2,s=Math.min(n.x,r.x);return{path:`M ${X(s)} ${X(o)} A ${X(i)} ${X(a)} 0 1 0 ${X(s+2*i)} ${X(o)} A ${X(i)} ${X(a)} 0 1 0 ${X(s)} ${X(o)} Z`,area:!0}}case`arrow`:{let n=t(e.from),r=t(e.to);return{path:`M ${X(n.x)} ${X(n.y)} L ${X(r.x)} ${X(r.y)}`,area:!1}}case`line`:{let n=e.points.map(t),r=n.map(e=>e.x),i=n.map(e=>e.y),a=Math.hypot(Math.max(...r)-Math.min(...r),Math.max(...i)-Math.min(...i)),o=n[0],s=n.at(-1),c=o!==void 0&&s!==void 0&&n.length>2&&a>0&&Math.hypot(s.x-o.x,s.y-o.y)<=a*tt;return{path:n.map((e,t)=>`${t===0?`M`:`L`} ${X(e.x)} ${X(e.y)}`).join(` `)+(c?` Z`:``),area:c}}}}function rt(e,t,n,r){let i=e=>({x:(e.x-t.x)/t.zoom,y:(e.y-t.y)/t.zoom}),a=nt(n,i),o=[...e.layers].reverse(),s=e=>!e.hidden&&e.shown!==void 0&&c(n,{x:t.x+e.shown.left*t.zoom,y:t.y+e.shown.top*t.zoom,width:e.shown.width*t.zoom,height:e.shown.height*t.zoom}),l=t=>(t.kind===`adjustment`||t.kind===`fill`)&&t.box!==void 0&&t.box.left<=0&&t.box.top<=0&&t.box.left+t.box.width>=e.width&&t.box.top+t.box.height>=e.height,u=o.filter(e=>e.kind!==`group`&&!l(e)&&s(e)),d=u.length>0?u:o.filter(e=>e.kind!==`group`&&s(e)),f=new Set,p=new Map(e.layers.map(e=>[e.key,e.parent]));for(let e of d)for(let t=e.parent;t!==void 0;t=p.get(t))f.add(t);let m=new Set([...d.map(e=>e.key),...f]);return o.filter(e=>m.has(e.key)).map(o=>{let s=[{in:`board ${e.key}`,width:e.width,height:e.height,...a,scale:1/t.zoom}],c=o.info.picture;if(c&&c.whole[2]>0&&c.whole[3]>0){let[e,r,a,o]=c.whole,[l,u]=c.source;s.push({in:`the picture`,file:c.file,width:l,height:u,...nt(n,t=>{let n=i(t);return{x:(n.x-e)*l/a,y:(n.y-r)*u/o}}),scale:l/a/t.zoom})}let l=o.info.words[0]?.text??o.info.texts[0]?.text,u=r.lineOf(o.key);return{name:`layer ${o.name===o.key?`"${o.key}"`:`"${o.key}" (${o.name})`}, a ${o.kind}${c?` of ${c.file}`:``}, of board ${e.key}`,source:{path:r.file,...u===void 0?{}:{line:u}},...l===void 0?{}:{text:l},regions:s}})}function it(e,t){let n=e.split(`
3
+ `).findIndex(e=>RegExp(`key:\\s*["'\`]${t.replace(/[.*+?^${}()|[\]\\]/gu,`\\$&`)}["'\`]`,`u`).test(e));return n<0?void 0:n+1}var at=e=>e===void 0?void 0:{left:e[0],top:e[1],width:e[2],height:e[3]};function ot(e,t){let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.left+e.width,t.left+t.width),a=Math.min(e.top+e.height,t.top+t.height);return i>n&&a>r?{left:n,top:r,width:i-n,height:a-r}:void 0}function st(e){let t=new Map;for(let n of e){let e=n.info.style.clipping===!0&&n.kind!==`group`,r=e?t.get(n.parent):void 0;n.shown=r===void 0?n.box:r.shown&&n.box?ot(n.box,r.shown):void 0,e||t.set(n.parent,n)}}function ct(e,t,n){let r=t.layers.map(e=>({key:e.key,name:e.key,component:e.component,kind:e.kind,hidden:e.hidden,parent:e.parent,box:at(e.box),shown:void 0,info:e}));return st(r),{version:e,key:t.key,title:t.title??t.key,width:t.width,height:t.height,background:t.background,picture:n,layers:r}}function lt(e,t,n){return e.flatMap(e=>{let r=t.get(e.key);return r?[r.boards.map(t=>ct(e,t,n(t.picture)))]:[]})}var Z=48,ut=80,dt=20,ft=22,pt=26,mt=40,Q=(e,t)=>`${e} ${t}`;function ht(e){let t=[];for(let n of e)n.forEach((e,n)=>{t[n]=Math.max(t[n]??0,e.width)});return t}var gt=e=>Math.max(dt,ut*e);function _t(e,t){let n=ht(e),r=e.length>1;return{width:n.reduce((e,n)=>e+n*t,0)+gt(t)*Math.max(0,n.length-1)+96,height:e.reduce((e,n)=>e+Math.max(0,...n.map(e=>e.height))*t+ft+(r?pt:0),0)+mt*Math.max(0,e.length-1)+96}}function vt(e,t,n,r){let i=ht(e),a=gt(t),o=_t(e,t),s=Math.max(0,((r?.width??0)-o.width)/2),c=Math.max(0,((r?.height??0)-o.height)/2),l=new Map,u=[],d=c+Z,f=0,p=e.length>1;for(let r of e){let e=r[0];p&&e&&(u.push({x:s+Z,y:d,label:n(e)}),d+=pt);let o=d;d+=ft;let c=s+Z,m=0;r.forEach((e,n)=>{l.set(Q(e.version.key,e.key),{x:c,y:d,labelY:o}),c+=(i[n]??e.width)*t+a,m=Math.max(m,e.height*t)}),f=Math.max(f,c-a+Z+s),d+=m+mt}return{width:f,height:d-mt+Z+c,boards:l,rows:u}}function yt(e,t){let n=ht(e);if(n.length===0||t.width<=0||t.height<=0)return 1;let r=n.reduce((e,t)=>e+t,0),i=n.length-1,a=(t.width-96)/(r+ut*i),o=ut*a>=dt?a:(t.width-96-dt*i)/r,s=e.reduce((e,t)=>e+Math.max(...t.map(e=>e.height)),0),c=e.length*(ft+(e.length>1?pt:0))+mt*(e.length-1),l=Math.min(o,(t.height-96-c)/s,1);return Math.max(.02,l)}var $=e=>`${String(e)}px`,bt=e=>`${String(e*100)}%`;function xt(e){let t=(e.agent.layer===void 0?void 0:e.board.layers.find(t=>t.key===e.agent.layer))?.box;return t?(0,F.jsx)(ge,{"data-testid":`image-agent`,label:e.agent.label,style:{left:bt(t.left/e.board.width),top:bt(t.top/e.board.height),width:bt(t.width/e.board.width),height:bt(t.height/e.board.height)}}):(0,F.jsx)(ge,{"data-testid":`image-agent`,label:e.agent.label,flag:`end`,className:`inset-0`})}function St(e){let t=I(),{board:n,zoom:r}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`text-lead text-micro absolute flex h-5 items-end gap-2 truncate`,style:{left:$(e.at.x),top:$(e.at.labelY),width:$(n.width*r)},"data-testid":`image-board-label`,children:[(0,F.jsx)(`span`,{className:`text-ink truncate font-medium`,children:n.title}),n.title.replace(/\s/gu,``).toLowerCase().replace(`×`,`x`).includes(`${String(n.width)}x${String(n.height)}`)?null:(0,F.jsx)(`span`,{className:`tabular-nums`,children:t.size(n.width,n.height)})]}),(0,F.jsxs)(`div`,{className:`bg-sheet absolute overflow-hidden shadow-[0_0_0_1px_var(--color-rule)]`,style:{left:$(e.at.x),top:$(e.at.y),width:$(n.width*r),height:$(n.height*r)},"data-testid":`image-board`,"data-board":n.key,"data-version":n.version.key,children:[(0,F.jsx)(`img`,{src:n.picture,alt:``,draggable:!1,className:`absolute inset-0 size-full max-w-none select-none`}),e.frame]}),e.agent?(0,F.jsx)(`div`,{className:`pointer-events-none absolute`,style:{left:$(e.at.x),top:$(e.at.y),width:$(n.width*r),height:$(n.height*r)},children:(0,F.jsx)(xt,{board:n,agent:e.agent})}):null]})}function Ct({ref:e,...t}){let n=(0,J.useRef)(null),r=(0,J.useCallback)(t=>{n.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),i=(0,J.useRef)(t.onZoomAt);return(0,J.useEffect)(()=>{i.current=t.onZoomAt}),(0,J.useEffect)(()=>{let e=n.current;if(!e)return;let t=t=>{if(!t.ctrlKey&&!t.metaKey)return;t.preventDefault();let n=e.getBoundingClientRect();i.current(Math.exp(-t.deltaY/200),{x:t.clientX-n.left,y:t.clientY-n.top})};return e.addEventListener(`wheel`,t,{passive:!1}),()=>{e.removeEventListener(`wheel`,t)}},[]),(0,F.jsx)(`div`,{ref:r,className:`bg-stone focus-visible:outline-pencil relative min-h-0 min-w-0 flex-1 overflow-auto outline-none focus-visible:-outline-offset-1 focus-visible:outline-1`,tabIndex:0,role:`application`,"aria-label":t.label,"data-testid":`image-surface`,style:{cursor:t.cursor},onPointerDown:t.onPointerDown,onPointerMove:t.onPointerMove,onPointerUp:t.onPointerUp,onPointerCancel:t.onPointerUp,onLostPointerCapture:t.onPointerUp,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,children:(0,F.jsxs)(`div`,{className:`relative`,style:{width:$(t.layout.width),height:$(t.layout.height)},"data-testid":`image-world`,children:[t.layout.rows.map(e=>(0,F.jsx)(`div`,{className:`text-lead absolute text-xs font-medium`,style:{left:$(e.x),top:$(e.y)},"data-testid":`image-row-label`,children:e.label},e.y)),t.rows.flatMap(e=>e.map(e=>{let n=Q(e.version.key,e.key),r=t.layout.boards.get(n);return r?(0,F.jsx)(St,{board:e,zoom:t.zoom,at:r,frame:t.frame?.(n,e.picture),agent:t.agent?.id===n?{label:t.agent.label,layer:t.agent.layer}:void 0},n):null}))]})})}function wt(e,t){if(e!==void 0)try{return new Intl.DisplayNames([t??`en`],{type:`language`}).of(e)}catch{return e}}var Tt=3e4;function Et(e){let t=e?.board??e?.part;if(typeof t!=`string`)return;let n=e?.layer;return typeof n==`string`?{board:t,layer:n}:{board:t}}var Dt=e=>e instanceof Element&&e.closest(`input, textarea, [contenteditable='true'], [role='combobox']`)!==null;function Ot(e){return e.bar(e.tools)}function kt(e){let n=I(),i=r(),s=a(),c=(0,J.useMemo)(()=>lt(e.data.versions,e.data.drawn,Ye),[e.data.versions,e.data.drawn]),u=c.flat(),d=(0,J.useRef)(null),[f,p]=(0,J.useState)(),[m,ee]=(0,J.useState)(!0),[h,g]=(0,J.useState)(`default`),[_,v]=(0,J.useState)(!1),y=(0,J.useRef)(void 0),b=e=>[wt(e.version.lang,s?.locale),e.version.variant].filter(e=>e!==void 0).join(` · `)||e.version.key,[x,S]=(0,J.useState)();(0,J.useLayoutEffect)(()=>{let e=d.current;if(!e)return;let t=()=>{S(t=>t?.width===e.offsetWidth&&t.height===e.offsetHeight?t:{width:e.offsetWidth,height:e.offsetHeight})};t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]);let C=m&&x&&c.length>0?yt(c,x):f??1,w=(0,J.useMemo)(()=>vt(c,C,b,x),[c,C,s?.locale,x]),T=(0,J.useRef)(void 0);(0,J.useLayoutEffect)(()=>{let e=d.current,t=T.current;if(!e||!t)return;T.current=void 0;let n=C/t.from;e.scrollLeft=(e.scrollLeft+t.at.x)*n-t.at.x,e.scrollTop=(e.scrollTop+t.at.y)*n-t.at.y},[C]);let E=(0,J.useRef)(!1);(0,J.useEffect)(()=>{if(E.current||e.board===void 0||c.length===0)return;let t=d.current?.querySelector(`[data-testid="image-board"][data-board="${CSS.escape(e.board)}"]`);t&&(E.current=!0,t.scrollIntoView({block:`nearest`,inline:`nearest`}))},[e.board,c.length,w]);let{agent:D,following:O}=t(),k=te(),A=(()=>{if(D?.doing===void 0)return;let{landed:t,sources:n}=e.data,r=D.source,i=r?.path!==void 0&&r.path===n?.path&&r.from!==void 0?qe(n.boards,r.from,r.to):void 0,a=t&&t.at>=D.at-Tt?t:void 0,o=Et(D.place)??i??a?.spot;if(!o)return;let s=u.filter(e=>e.key===o.board),c=s.find(e=>e.version.key===a?.version)??s[0];if(!c)return;let l=c.layers.some(e=>e.key===o.layer)?o.layer:void 0;return{id:Q(c.version.key,c.key),layer:l,label:k(D)}})(),j=O&&A?`${A.id}\n${A.layer??``}`:void 0;(0,J.useEffect)(()=>{let e=d.current;if(j===void 0||!e)return;let[t=``,n=``]=j.split(`
4
+ `),r=u.find(e=>Q(e.version.key,e.key)===t),i=w.boards.get(t);if(!r||!i)return;let a=r.layers.find(e=>e.key===n)?.box??{left:0,top:0,width:r.width,height:r.height},o=(e,t,n,r)=>t+96>r||e-48<n?e-48:e+t+48>n+r?e+t+48-r:n;e.scrollTo({left:o(i.x+a.left*C,a.width*C,e.scrollLeft,e.clientWidth),top:o(i.y+a.top*C,a.height*C,e.scrollTop,e.clientHeight)})},[j]);let ne=Qe({item:e.data.item,wanted:u.map(e=>({id:Q(e.version.key,e.key),version:e.version.key,board:e.key})),revision:e.data.revision}),oe=(e,t)=>{ee(!1);let n=d.current;T.current={at:t??{x:(n?.clientWidth??0)/2,y:(n?.clientHeight??0)/2},from:C},p(Math.min(8,Math.max(.02,e)))},M=e=>{e===`fit`?ee(!0):oe(typeof e==`number`?e:C*(e===`in`?1.25:.8))},N=e=>{d.current?.focus({preventScroll:!0});let t=d.current;(_||e.button===1)&&t&&(e.currentTarget.setPointerCapture(e.pointerId),y.current={x:e.clientX,y:e.clientY,left:t.scrollLeft,top:t.scrollTop},g(`grabbing`))},ue=()=>{y.current&&(y.current=void 0,g(_?`grab`:`default`))},de=e=>{let t=y.current,n=d.current;t&&e.buttons===0?ue():t&&n&&(n.scrollLeft=t.left-(e.clientX-t.x),n.scrollTop=t.top-(e.clientY-t.y))},fe=e=>{if(Dt(e.target))return;let t=e.metaKey||e.ctrlKey,n=e.key===` `?()=>{e.repeat||v(!0),g(`grab`)}:e.shiftKey&&e.code===`Digit1`?()=>{M(`fit`)}:e.shiftKey&&e.code===`Digit0`?()=>{M(1)}:t&&(e.key===`=`||e.key===`+`)?()=>{M(`in`)}:t&&e.key===`-`?()=>{M(`out`)}:void 0;n&&(e.preventDefault(),n())},pe=e=>{e.key===` `&&(v(!1),g(`default`))},me=(e,t)=>d.current?.querySelector(`[data-testid="image-board"][data-version="${CSS.escape(e)}"][data-board="${CSS.escape(t)}"]`)?.getBoundingClientRect(),he=(0,J.useRef)(``),P=e=>{for(let t of u){let n=me(t.version.key,t.key);if(n&&e.x>=n.left&&e.x<=n.right&&e.y>=n.top&&e.y<=n.bottom)return{b:t,r:n}}};return o({hold:async()=>(he.current=await i[`files/read`]({path:e.entry}).then(e=>e.text,()=>``),{key:`${e.entry}@${String(e.data.revision)}`,what:`The image ${e.entry}, its boards side by side${e.data.versions.length>1?`, a version a row`:``}`,source:{path:e.entry}}),locate:t=>{let n=l(t)[0],r=n?P(n):void 0;if(!n||!r)return Promise.resolve({elements:[]});let i=wt(r.b.version.lang,`en`),a=e=>`${String(Math.round(Math.min(1,Math.max(0,e))*100))}%`,o=a((n.x-r.r.x)/r.r.width),s=a((n.y-r.r.y)/r.r.height);return Promise.resolve({elements:rt(r.b,{x:r.r.x,y:r.r.y,zoom:r.r.width/r.b.width},t,{file:e.entry,lineOf:e=>it(he.current,e)}),where:`on board ${r.b.key}${i===void 0||e.data.versions.length<2?``:` (${i})`}, at ${o} across and ${s} down it`})}}),(0,F.jsxs)(`div`,{className:`relative flex size-full min-h-0 flex-col`,"data-testid":`image-viewer`,children:[(0,F.jsx)(Ot,{bar:e.bar,tools:{zoom:C,onZoom:M}}),(0,F.jsxs)(re,{children:[(0,F.jsx)(ae,{asChild:!0,children:(0,F.jsx)(`div`,{className:`flex min-h-0 flex-1`,children:(0,F.jsx)(Ct,{ref:d,rows:c,layout:w,zoom:C,cursor:_&&h==="default"?`grab`:h,frame:ne.frame,agent:A,onPointerDown:N,onPointerMove:de,onPointerUp:ue,onKeyDown:fe,onKeyUp:pe,onZoomAt:(e,t)=>{oe(C*e,t)},label:n.boards})})}),(0,F.jsxs)(se,{className:`w-60`,"data-testid":`image-menu`,children:[(0,F.jsxs)(le,{onSelect:()=>{M(`fit`)},children:[n.zoomFit,(0,F.jsx)(ie,{children:`⇧1`})]}),(0,F.jsx)(ce,{})]})]})]})}var At=e=>typeof e==`object`&&!!e&&typeof e.board==`string`;function jt(){let e=I(),t=a(),n=Xe(t?.item.id);if(n.piece===void 0||t===void 0)return(0,F.jsx)(`div`,{className:`text-lead flex size-full items-center justify-center text-sm`,"data-testid":`image-editor`,"data-state":n.error===void 0?`loading`:`error`,children:n.error===void 0?e.loading:e.couldNotDraw(n.error)});let r=At(t.place)?t.place:void 0;return(0,F.jsxs)(`div`,{className:`flex size-full min-h-0 flex-col`,"data-testid":`image-editor`,"data-state":`ready`,children:[(0,F.jsx)(kt,{entry:t.item.entry,data:n,board:r?.board,bar:t=>(0,F.jsx)(ne,{start:(0,F.jsx)(oe,{testid:`image-bar`,"aria-label":e.zoom,children:(0,F.jsx)(ye,{...t})}),exports:{versions:n.versions.map(e=>({key:e.key,label:e.lang??e.key})),facts:e.boardCount(n.drawn.values().next().value?.boards.length??0)}})}),n.drawn.size>0&&[...n.drawn.values()].every(e=>e.boards.length===0)?(0,F.jsx)(`p`,{className:`text-lead p-6 text-sm`,children:e.noBoards}):null]})}export{jt as ImageEditor,jt as default,_e as WORDS};
@@ -0,0 +1 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{c as t,l as n,o as r,s as i,u as a,v as o}from"./react-DztDSW4P.js";import{bt as s,gt as c,mt as l,t as u,vt as d,wt as f,yt as p}from"./button-Chk675Xu.js";import{A as m,B as h,I as g,P as _,Q as v,R as y,V as b,X as x,Y as S,at as C,et as w,f as T,h as E,j as D,m as O,o as ee,p as k,q as A,rt as j,tt as M,x as te}from"./snapshots-C9KV-Y2_.js";import{t as ne}from"./jsx-runtime-DePvh3-m.js";import{t as re}from"./createLucideIcon-CPS-TrJJ.js";import{n as ie,t as ae}from"./progress-CPEbDOoN.js";import{t as N}from"./switch-D0K-K8-C.js";import{i as oe,n as se,r as ce,t as le}from"./hint-BimUgJms.js";import{A as P,M as F,O as I,j as L,k as R,p as ue,tt as de}from"./index-C-i_iuxN.js";var z={files:2e4,bytes:5368709120,redirects:2e3,headers:100},B={min:3,max:40},fe=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(fe.has(e))return`reserved`}var pe={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 me(e){let t=V(e);return t===void 0?void 0:pe[t]}var he=M().superRefine((e,t)=>{let n=me(e);n!==void 0&&t.addIssue({code:`custom`,message:n})}),ge=[200,301,302,303,307,308,404,410],H=M().min(1).max(1024).regex(/^\/[^\s]*$/u,`A rule's path starts with /.`),_e=w({from:H,to:M().min(1).max(2048).regex(/^(\/[^\s]*|https?:\/\/[^\s]+)$/u,`A rule goes to a path or an http(s) address.`),status:j(ge.map(e=>A(e))),force:b()}),ve=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`]),ye=M().regex(/^[A-Za-z0-9-]+$/u).max(128).refine(e=>!ve.has(e.toLowerCase()),`That header is the platform's.`),be=w({for:H,set:v(ye,M().max(2048))});w({format:A(1),files:v(O,k),redirects:h(_e).max(z.redirects),headers:h(be).max(z.headers)});var U=[`upload`,`git`],W=w({kind:y(U),commit:M().min(1).max(64).optional(),digest:T.optional()}),xe=x({id:M(),siteId:M(),source:x({...W.shape,kind:E(U)}),note:M().nullable(),files:S(),bytes:S(),createdBy:M(),createdAt:g(),live:b()}),G=x({id:M(),slug:M(),name:M(),url:C(),liveDeployment:M().nullable(),approved:b(),autoPublish:b(),indexing:b(),createdAt:g()});w({slug:he,name:M().min(1).max(255)}),x({sites:h(G),domain:M(),hosting:b()});var Se=x({site:G,deployments:h(xe)});w({manifest:T,source:W,note:M().max(500).optional()}),x({site:G,deployment:xe}),w({deployment:M().min(1)}),x({site:G,live:b(),confirm:C().optional()}),w({autoPublish:b().optional(),indexing:b().optional()}),x({site:M(),organization:M(),deployment:M(),manifest:T,indexing:b()});var Ce=re(`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`}]]),we=e=>e.state===`running`||e.state===`queued`;function Te(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 K=e(o(),1),q=ne(),J=w({item:m}),Ee=w({hosting:b(),detail:Se.optional(),elsewhere:b().optional(),changed:b().optional(),slug:M().optional(),domain:M().optional()}),De={confirm:M().optional()},Oe={"website/preview":_(J,w({url:M()}),`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":_(J.extend({width:S().int().positive().max(4096),height:S().int().positive().max(4096),scale:S().positive().max(4).default(1),hold:M().optional()}),w({image:w({mime:M(),data:M()})}),`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":_(J.extend({width:S().int().positive().max(4096),height:S().int().positive().max(4096),scale:S().positive().max(4).default(1)}),w({hold:M()}),`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":_(w({hold:M()}),w({}),`Lets a page held for notes go.`),"website/at":_(J.extend({width:S().int().positive().max(4096),height:S().int().positive().max(4096),points:h(w({x:S(),y:S()})).min(1).max(24),hold:M().optional()}),w({page:M(),elements:h(w({selector:M(),tag:M(),text:M()}))}),`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":_(J,Ee,`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":_(J.extend({slug:M().optional(),note:M().optional(),anew:b().optional()}),w({live:b(),url:M(),...De}),"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":_(J.extend({version:M().min(1)}),w({live:b(),...De}),`Makes a version what the site serves, as the person asked.`),"website/settings":_(J.extend({autoPublish:b().optional(),indexing:b().optional()}),w({}),`Changes what the person controls of a site.`),"website/unpublish":_(J,w({}),`Takes a site offline; it keeps its address and versions.`),"website/remove":_(J,w({}),`Takes a site offline for good. Its address is never given to anyone else.`)},Y=te(Oe),ke=l(`overflow-hidden rounded-lg border border-rule`,{variants:{tone:{sheet:`bg-sheet`,paper:`bg-paper`,bare:`rounded-none border-0 bg-transparent`}},defaultVariants:{tone:`sheet`}});function Ae({className:e,tone:t,...n}){return(0,q.jsx)(`div`,{"data-slot":`surface`,className:c(ke({tone:t,className:e})),...n})}function X({className:e,...t}){return(0,q.jsx)(Ae,{className:c(`divide-y divide-rule`,e),...t})}function Z({icon:e,label:t,detail:n,children:r,className:i}){return(0,q.jsxs)(`div`,{"data-slot":`setting-row`,className:c(`flex items-center gap-4 px-4.5 py-4`,i),children:[e!==void 0&&(0,q.jsx)(`span`,{className:`-mr-1 flex-none`,children:e}),(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`div`,{className:`text-sm`,children:t}),n!==void 0&&(0,q.jsx)(`div`,{className:`mt-0.5 text-xs text-lead`,children:n})]}),r]})}function je({label:e,detail:t,children:n}){return(0,q.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,q.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`block text-sm`,children:e}),t!==void 0&&(0,q.jsx)(`span`,{className:`mt-0.5 block text-xs text-lead`,children:t})]}),n]})}function Me(e){let[n,r]=(0,K.useState)([]);return t(`jobs/changed`,({job:t,item:n})=>{n===e&&r(e=>[...e.filter(e=>e.id!==t.id),t])}),n}var Ne=(e,t)=>e.findLast(e=>(t===void 0||e.what===t)&&we(e)),Pe=[[`year`,31536e6],[`month`,2592e6],[`week`,6048e5],[`day`,864e5],[`hour`,36e5],[`minute`,6e4]];function Fe(e,t,n=Date.now()){let r=new Intl.RelativeTimeFormat(t,{numeric:`auto`}),i=e-n;for(let[e,t]of Pe)if(Math.abs(i)>=t)return r.format(Math.round(i/t),e);return r.format(0,`minute`)}var Q={content:`max-w-[min(28rem,calc(100%-2rem))]`,header:`text-left`,footer:`flex-row justify-end`},Ie=e=>e instanceof Error?e.message:String(e),Le=(e,t)=>({message:Ie(e),...t!==void 0&&typeof e==`object`&&e&&e.code===D.conflict?{refused:t}:{}});function Re(e,t,n){let i=r(),[a,o]=(0,K.useState)(),[s,c]=(0,K.useState)(!1),[l,u]=(0,K.useState)(),[d,f]=(0,K.useState)(),p=(0,K.useCallback)(()=>Y(i,`website/status`,{item:e}).then(e=>{o(e),e.detail?.site.liveDeployment!=null&&f(void 0)}),[i,e]);(0,K.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)}},[i,p,t]);let m=(0,K.useCallback)((e,t)=>{c(!0),u(void 0),e().then(p).catch(e=>{u(Le(e,t))}).finally(()=>{c(!1)})},[p]),h=(0,K.useCallback)(e=>{i[`items/open`]({target:{type:`browser`,url:e}}).catch(()=>void 0)},[i]),g=(0,K.useCallback)(e=>{e.confirm!==void 0&&(f(e.confirm),h(e.confirm))},[h]),_={item:e};return{status:a,publishing:Ne(n,`publish`),busy:s,failure:l,confirm:d,stopWaiting:()=>{f(void 0)},openAgain:()=>{d!==void 0&&h(d)},publish:(e={})=>{m(()=>Y(i,`website/publish`,{..._,...e}).then(g),e.slug)},goLive:e=>{m(()=>Y(i,`website/live`,{..._,version:e}).then(g))},settings:e=>{m(()=>Y(i,`website/settings`,{..._,...e}))},unpublish:()=>{m(()=>Y(i,`website/unpublish`,_))},remove:()=>{m(()=>Y(i,`website/remove`,_))}}}function ze({words:e,from:t=`center`,children:n}){return(0,q.jsx)(le,{disableHoverableContent:!0,children:(0,q.jsxs)(ce,{children:[(0,q.jsx)(se,{asChild:!0,children:(0,q.jsx)(`span`,{className:`flex min-w-0`,children:n})}),(0,q.jsx)(oe,{side:`top`,align:t,sideOffset:6,collisionPadding:8,children:e})]})})}var Be=e=>new URL(e).host;function Ve({hosting:e,said:t,settings:n,onSettings:r}){let i=t.w.hosting,{status:a,busy:o,failure:s,confirm:c,publishing:l}=e,[d,f]=(0,K.useState)(!1),[p,m]=(0,K.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,q.jsxs)(`div`,{className:`flex h-10 flex-none items-center gap-2 border-b border-rule bg-sheet px-3`,children:[g&&(0,q.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,q.jsx)(de,{"aria-hidden":!0,className:`size-3.5 flex-none`}),Be(h.url)]}),(0,q.jsx)(`span`,{className:`flex-1`}),s!==void 0&&!d&&(0,q.jsx)(`span`,{className:`min-w-0 truncate text-xs text-problem-text`,children:s.message}),a.elsewhere===!0&&(0,q.jsx)(`span`,{className:`text-xs whitespace-nowrap text-lead`,children:i.elsewhere}),g&&(0,q.jsx)(`span`,{className:`text-xs whitespace-nowrap text-lead`,children:a.changed===!0?i.unpublished:i.live}),(0,q.jsx)(ze,{words:n?i.preview:i.settings,from:`end`,children:(0,q.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":n?i.preview:i.settings,"aria-pressed":n,disabled:h===void 0,onClick:r,children:(0,q.jsx)(Ce,{"aria-hidden":!0})})}),(0,q.jsxs)(u,{size:`xs`,disabled:o,onClick:()=>{h===void 0?f(!0):e.publish()},children:[l!==void 0&&(0,q.jsx)(ie,{value:Te(l)}),o?i.publishing:g?i.update:i.publish]}),(0,q.jsx)(I,{open:d&&c===void 0&&h===void 0,onOpenChange:f,children:(0,q.jsxs)(R,{className:Q.content,children:[(0,q.jsx)(L,{className:Q.header,children:(0,q.jsx)(F,{className:`font-serif`,children:i.first})}),(0,q.jsxs)(`form`,{className:`contents`,onSubmit:t=>{t.preventDefault(),y&&e.publish({slug:_,...a.elsewhere===!0?{anew:!0}:{}})},children:[(0,q.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(ue,{"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,q.jsxs)(`span`,{className:`font-mono text-sm text-lead`,children:[`.`,a.domain]})]}),(0,q.jsx)(`p`,{id:`site-address-why`,role:`status`,className:`min-h-5 text-sm text-problem-text`,children:b})]}),(0,q.jsx)(`p`,{className:`text-sm text-lead`,children:a.elsewhere===!0?i.elsewhereNote:i.firstNote}),s!==void 0&&s.refused===void 0&&(0,q.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-problem-text`,children:[i.buildFailed,(0,q.jsx)(u,{type:`button`,size:`xs`,variant:`ghost`,className:`text-lead`,onClick:()=>{navigator.clipboard.writeText(s.message).catch(()=>void 0)},children:t.w.copy})]}),(0,q.jsx)(P,{className:Q.footer,children:(0,q.jsx)(u,{type:`submit`,disabled:!y,children:o?i.publishing:i.publish})})]})]})}),(0,q.jsx)(I,{open:c!==void 0&&!g,onOpenChange:t=>{t||e.stopWaiting()},children:(0,q.jsxs)(R,{className:Q.content,children:[(0,q.jsx)(L,{className:Q.header,children:(0,q.jsx)(F,{className:`font-serif`,children:i.askTitle})}),(0,q.jsx)(`p`,{className:`text-sm text-lead`,children:i.ask}),(0,q.jsxs)(P,{className:Q.footer,children:[(0,q.jsx)(u,{variant:`outline`,onClick:e.stopWaiting,children:t.w.cancel}),(0,q.jsx)(u,{autoFocus:!0,onClick:e.openAgain,children:i.openAgain})]})]})})]}):null}function He({hosting:e,said:t}){let n=t.w.hosting,{tag:r}=t,[i,a]=(0,K.useState)(!1),{status:o,busy:s}=e,c=o?.detail;if(c===void 0)return null;let{site:l,deployments:d}=c,f=Be(l.url),p=d.find(e=>e.live)?.createdAt,m=e=>p!==void 0&&Date.parse(e)<Date.parse(p);return(0,q.jsxs)(`div`,{className:`absolute inset-0 overflow-y-auto bg-sheet`,children:[(0,q.jsxs)(`div`,{className:`mx-auto flex w-full max-w-2xl flex-col gap-6 px-6 py-8`,children:[(0,q.jsxs)(X,{children:[(0,q.jsx)(Z,{label:n.address,children:(0,q.jsx)(`a`,{href:l.url,target:`_blank`,rel:`noreferrer`,className:`font-mono text-sm hover:underline`,children:f})}),(0,q.jsx)(je,{label:n.agent,children:(0,q.jsx)(N,{checked:l.autoPublish,disabled:s,onCheckedChange:t=>{e.settings({autoPublish:t})}})}),(0,q.jsx)(je,{label:n.search,children:(0,q.jsx)(N,{checked:l.indexing,disabled:s,onCheckedChange:t=>{e.settings({indexing:t})}})})]}),(0,q.jsxs)(`section`,{children:[(0,q.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:n.versions}),(0,q.jsx)(X,{children:d.map(t=>(0,q.jsx)(Z,{label:t.note??Fe(Date.parse(t.createdAt),r),detail:t.note===null?void 0:Fe(Date.parse(t.createdAt),r),children:t.live?(0,q.jsx)(`span`,{className:`text-xs text-lead`,children:n.live}):(0,q.jsx)(u,{variant:`outline`,size:`xs`,disabled:s,onClick:()=>{e.goLive(t.id)},children:m(t.createdAt)?n.rollBack:n.makeLive})},t.id))})]}),(0,q.jsxs)(X,{children:[l.liveDeployment!==null&&(0,q.jsx)(Z,{label:n.unpublishNote,children:(0,q.jsx)(u,{variant:`outline`,size:`xs`,disabled:s,onClick:e.unpublish,children:n.unpublish})}),(0,q.jsx)(Z,{label:n.removeNote(f),children:(0,q.jsx)(u,{variant:`outline`,size:`xs`,disabled:s,onClick:()=>{a(!0)},children:n.remove})})]})]}),(0,q.jsx)(I,{open:i,onOpenChange:a,children:(0,q.jsxs)(R,{className:Q.content,children:[(0,q.jsx)(L,{className:Q.header,children:(0,q.jsx)(F,{className:`font-serif`,children:n.remove})}),(0,q.jsx)(`p`,{className:`text-sm text-lead`,children:n.removeNote(f)}),(0,q.jsxs)(P,{className:Q.footer,children:[(0,q.jsx)(u,{variant:`outline`,onClick:()=>{a(!1)},children:t.w.cancel}),(0,q.jsx)(u,{variant:`destructive`,onClick:()=>{a(!1),e.remove()},children:n.remove})]})]})})]})}var $=p({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=i();if(t===void 0)return null;let n=s(t.locale),{id:r,entry:a,dir:o}=t.item;return(0,q.jsx)(Ke,{id:r,entry:a,dir:o,said:{w:$.of(n),tag:d[n]},className:e},r)}function We(e){let n=r(),[i,a]=(0,K.useState)(0),[o,s]=(0,K.useState)();return(0,K.useEffect)(()=>{let t=!0,r;return n[`files/watch`]({paths:[e===``?`.`:e]}).then(({watch:e})=>{r=e,t?s(e):n[`files/unwatch`]({watch:e}).catch(()=>void 0)},()=>void 0),()=>{t=!1,r!==void 0&&n[`files/unwatch`]({watch:r}).catch(()=>void 0)}},[n,e]),t(`files/changed`,e=>{e.watch===o&&a(e=>e+1)}),i}function Ge(e){try{let t=JSON.parse(e).dev;return typeof t!=`string`||t.trim()===``}catch{return!1}}function Ke({id:e,entry:i,dir:o,said:s,className:l}){let d=r(),{w:p}=s,m=e.slice(e.lastIndexOf(`/`)+1),[h,g]=(0,K.useState)({at:`starting`}),[_,v]=(0,K.useState)(0),[y,b]=(0,K.useState)(!1),x=We(o),S=Me(i),C=Re(e,x,S),w=h.at===`failed`?x:void 0;(0,K.useEffect)(()=>{let t=!0;return Y(d,`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}},[d,e,_,w]);let[T,E]=(0,K.useState)(!1);(0,K.useEffect)(()=>{let e=!0;return d[`files/read`]({path:i}).then(({text:t})=>{e&&E(Ge(t))},()=>void 0),()=>{e=!1}},[d,i,x]);let D=h.at===`failed`;t(`jobs/changed`,({job:e,item:t})=>{D&&t===i&&e.what===`start`&&e.state===`running`&&(g({at:`starting`}),v(e=>e+1))});let O=(0,K.useRef)(null);a({hold:()=>Promise.resolve({key:`website@${e}@${crypto.randomUUID()}`,what:m,source:{path:i}}),locate:()=>Promise.resolve({elements:[]})});let k=()=>{let e=O.current?.getBoundingClientRect();return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0},A=(0,K.useRef)(void 0),j=()=>A.current??Promise.resolve(void 0);return n({element:()=>O.current,hold:()=>{let t=k();return A.current=t?Y(d,`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),A.current.then(()=>void 0)},release:()=>{let e=A.current;A.current=void 0,e?.then(e=>e===void 0?void 0:Y(d,`website/release`,{hold:e}).catch(()=>void 0))},pictures:async()=>{let t=k();if(!t)return[];let n=await j(),{image:r}=await Y(d,`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=k(),r=n?f(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 j(),o=n&&r.length>0?await Y(d,`website/at`,{item:e,width:Math.round(n.width),height:Math.round(n.height),points:r,...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:i},...e.text===``?{}:{text:e.text}})):[{name:`the page of the website ${m}`,source:{path:i}}],where:`on the website ${m}${s===``?``:` at ${s}`}, as its dev server serves it`}}}),h.at===`asleep`?(0,q.jsxs)(`div`,{className:c(`absolute inset-0 flex flex-col items-center justify-center gap-3 p-6`,l),children:[(0,q.jsx)(`p`,{className:`text-sm text-lead`,children:p.asleep}),(0,q.jsx)(u,{size:`xs`,onClick:()=>{d[`edit/request`]({}).catch(()=>void 0)},children:p.edit})]}):(0,q.jsxs)(`div`,{className:c(`absolute inset-0 flex flex-col`,l),children:[(0,q.jsx)(Ve,{hosting:C,said:s,settings:y,onSettings:()=>{b(e=>!e)}}),(0,q.jsxs)(`div`,{className:`relative min-h-0 flex-1`,children:[h.at===`ready`&&(0,q.jsx)(`iframe`,{ref:O,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`},T?x:void 0),h.at===`starting`&&(0,q.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center text-sm text-lead`,children:(0,q.jsx)(qe,{job:Ne(S,`start`),name:m,w:p})}),h.at===`failed`&&(0,q.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center gap-3 p-6`,children:[(0,q.jsx)(`p`,{className:`text-sm text-ink`,children:p.failed}),(0,q.jsxs)(`div`,{className:`flex gap-1.5`,children:[(0,q.jsx)(u,{size:`xs`,variant:`ghost`,className:`text-lead`,onClick:()=>{navigator.clipboard.writeText(h.message).catch(()=>void 0)},children:p.copy}),(0,q.jsx)(u,{size:`xs`,onClick:()=>{g({at:`starting`}),v(e=>e+1)},children:p.retry})]})]}),y&&C.status?.detail!==void 0&&(0,q.jsx)(He,{hosting:C,said:s})]})]})}function qe({job:e,name:t,w:n}){if(e===void 0)return(0,q.jsx)(`span`,{className:`animate-pulse`,children:n.starting});let r=Te(e);return(0,q.jsxs)(`span`,{role:`status`,className:`flex flex-col items-center gap-2`,children:[(0,q.jsxs)(`span`,{className:`flex items-center gap-2`,children:[r===void 0&&(0,q.jsx)(ie,{className:`text-ink`}),n.startingJob(e.name??t)]}),r!==void 0&&(0,q.jsx)(ae,{value:r*100,className:`h-1 w-48`})]})}export{$ as WORDS,Ue as default};