@jean-is/render 0.8.0-reb51fb1030bc → 0.8.0-rede3e4e8e9a5

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 (949) hide show
  1. package/brand.js +2 -1
  2. package/caps/charts/charts.css +5 -2
  3. package/caps/charts/charts.js +45 -24
  4. package/caps/charts/option.js +11 -1
  5. package/caps/files/midi.js +1 -1
  6. package/caps/files/office.js +1 -1
  7. package/caps/games/page.js +1 -1
  8. package/caps/interactive/apps.js +13 -3
  9. package/caps/interactive/diagram.js +96 -22
  10. package/caps/interactive/interactive.css +3 -0
  11. package/caps/interactive/interactive.js +8 -7
  12. package/caps/interactive/live.js +96 -0
  13. package/caps/interactive/map.js +22 -2
  14. package/caps/interactive/mode.js +9 -6
  15. package/caps/interactive/page-diagram.js +6 -2
  16. package/caps/interactive/parts.js +20 -12
  17. package/caps/interactive/view-parts.js +50 -30
  18. package/caps/layouts/layouts.css +8 -9
  19. package/caps/layouts/layouts.js +25 -17
  20. package/caps/layouts/shapes.js +1 -1
  21. package/caps/made/formats.js +84 -46
  22. package/caps/made/paper.js +142 -0
  23. package/caps/math/math.js +2 -2
  24. package/caps/scores/scores.css +7 -7
  25. package/caps/scores/scores.js +42 -50
  26. package/caps/share/view.js +1 -1
  27. package/caps/skills/directory.js +1 -1
  28. package/caps/slides/edit.js +2 -2
  29. package/caps/slides/kit-page.css +8 -2
  30. package/caps/slides/kit-page.js +47 -38
  31. package/caps/slides/kit-sample.js +36 -0
  32. package/caps/slides/kit-slot.js +10 -0
  33. package/caps/slides/kit.js +3 -0
  34. package/caps/slides/save.js +24 -58
  35. package/caps/slides/slides.css +9 -9
  36. package/caps/slides/slides.js +23 -23
  37. package/caps/tables/formula.js +133 -0
  38. package/core/conversations.js +2 -4
  39. package/core/deferred.js +36 -16
  40. package/core/files.js +1 -1
  41. package/core/fs.js +3 -11
  42. package/core/hooks.js +2 -2
  43. package/core/i18n.js +1 -1
  44. package/core/llm.js +34 -45
  45. package/core/loop.js +15 -17
  46. package/core/oauth.js +31 -0
  47. package/core/search.js +1 -1
  48. package/core/settings.js +9 -9
  49. package/core/skills.js +1 -1
  50. package/core/vertex.js +37 -0
  51. package/locales/am.json +14 -2
  52. package/locales/approvals/am.json +2 -1
  53. package/locales/approvals/ar.json +2 -1
  54. package/locales/approvals/bg.json +2 -1
  55. package/locales/approvals/bn.json +2 -1
  56. package/locales/approvals/br.json +2 -1
  57. package/locales/approvals/co.json +2 -1
  58. package/locales/approvals/cs.json +2 -1
  59. package/locales/approvals/da.json +2 -1
  60. package/locales/approvals/de.json +2 -1
  61. package/locales/approvals/el.json +2 -1
  62. package/locales/approvals/en.json +2 -1
  63. package/locales/approvals/es.json +2 -1
  64. package/locales/approvals/fa.json +2 -1
  65. package/locales/approvals/fi.json +2 -1
  66. package/locales/approvals/fr-CA.json +2 -1
  67. package/locales/approvals/fr.json +2 -1
  68. package/locales/approvals/ha.json +2 -1
  69. package/locales/approvals/he.json +2 -1
  70. package/locales/approvals/hi.json +2 -1
  71. package/locales/approvals/hr.json +2 -1
  72. package/locales/approvals/hu.json +2 -1
  73. package/locales/approvals/id.json +2 -1
  74. package/locales/approvals/it.json +2 -1
  75. package/locales/approvals/ja.json +2 -1
  76. package/locales/approvals/ko.json +2 -1
  77. package/locales/approvals/mr.json +2 -1
  78. package/locales/approvals/ms.json +2 -1
  79. package/locales/approvals/nl.json +2 -1
  80. package/locales/approvals/pl.json +2 -1
  81. package/locales/approvals/pt.json +2 -1
  82. package/locales/approvals/ro.json +2 -1
  83. package/locales/approvals/ru.json +2 -1
  84. package/locales/approvals/sk.json +2 -1
  85. package/locales/approvals/sv.json +2 -1
  86. package/locales/approvals/sw.json +2 -1
  87. package/locales/approvals/ta.json +2 -1
  88. package/locales/approvals/te.json +2 -1
  89. package/locales/approvals/th.json +2 -1
  90. package/locales/approvals/tl.json +2 -1
  91. package/locales/approvals/tr.json +2 -1
  92. package/locales/approvals/uk.json +2 -1
  93. package/locales/approvals/ur.json +2 -1
  94. package/locales/approvals/vi.json +2 -1
  95. package/locales/approvals/yo.json +2 -1
  96. package/locales/approvals/zh-Hans.json +2 -1
  97. package/locales/approvals/zh-Hant.json +2 -1
  98. package/locales/ar.json +18 -2
  99. package/locales/bg.json +14 -2
  100. package/locales/bn.json +14 -2
  101. package/locales/br.json +17 -2
  102. package/locales/brains/am.json +6 -3
  103. package/locales/brains/ar.json +6 -3
  104. package/locales/brains/bg.json +6 -3
  105. package/locales/brains/bn.json +6 -3
  106. package/locales/brains/br.json +6 -3
  107. package/locales/brains/co.json +6 -3
  108. package/locales/brains/cs.json +6 -3
  109. package/locales/brains/da.json +6 -3
  110. package/locales/brains/de.json +6 -3
  111. package/locales/brains/el.json +6 -3
  112. package/locales/brains/en.json +6 -3
  113. package/locales/brains/es.json +6 -3
  114. package/locales/brains/fa.json +6 -3
  115. package/locales/brains/fi.json +6 -3
  116. package/locales/brains/fr-CA.json +6 -3
  117. package/locales/brains/fr.json +6 -3
  118. package/locales/brains/ha.json +6 -3
  119. package/locales/brains/he.json +6 -3
  120. package/locales/brains/hi.json +6 -3
  121. package/locales/brains/hr.json +6 -3
  122. package/locales/brains/hu.json +6 -3
  123. package/locales/brains/id.json +6 -3
  124. package/locales/brains/it.json +6 -3
  125. package/locales/brains/ja.json +6 -3
  126. package/locales/brains/ko.json +6 -3
  127. package/locales/brains/mr.json +6 -3
  128. package/locales/brains/ms.json +6 -3
  129. package/locales/brains/nl.json +6 -3
  130. package/locales/brains/pl.json +6 -3
  131. package/locales/brains/pt.json +6 -3
  132. package/locales/brains/ro.json +6 -3
  133. package/locales/brains/ru.json +6 -3
  134. package/locales/brains/sk.json +6 -3
  135. package/locales/brains/sv.json +6 -3
  136. package/locales/brains/sw.json +6 -3
  137. package/locales/brains/ta.json +6 -3
  138. package/locales/brains/te.json +6 -3
  139. package/locales/brains/th.json +6 -3
  140. package/locales/brains/tl.json +6 -3
  141. package/locales/brains/tr.json +6 -3
  142. package/locales/brains/uk.json +6 -3
  143. package/locales/brains/ur.json +6 -3
  144. package/locales/brains/vi.json +6 -3
  145. package/locales/brains/yo.json +6 -3
  146. package/locales/brains/zh-Hans.json +6 -3
  147. package/locales/brains/zh-Hant.json +6 -3
  148. package/locales/charts/am.json +2 -0
  149. package/locales/charts/ar.json +2 -0
  150. package/locales/charts/bg.json +2 -0
  151. package/locales/charts/bn.json +2 -0
  152. package/locales/charts/br.json +2 -0
  153. package/locales/charts/co.json +2 -0
  154. package/locales/charts/cs.json +2 -0
  155. package/locales/charts/da.json +2 -0
  156. package/locales/charts/de.json +2 -0
  157. package/locales/charts/el.json +2 -0
  158. package/locales/charts/en.json +2 -0
  159. package/locales/charts/es.json +2 -0
  160. package/locales/charts/fa.json +2 -0
  161. package/locales/charts/fi.json +2 -0
  162. package/locales/charts/fr-CA.json +2 -0
  163. package/locales/charts/fr.json +2 -0
  164. package/locales/charts/ha.json +2 -0
  165. package/locales/charts/he.json +2 -0
  166. package/locales/charts/hi.json +2 -0
  167. package/locales/charts/hr.json +2 -0
  168. package/locales/charts/hu.json +2 -0
  169. package/locales/charts/id.json +2 -0
  170. package/locales/charts/it.json +2 -0
  171. package/locales/charts/ja.json +2 -0
  172. package/locales/charts/ko.json +2 -0
  173. package/locales/charts/mr.json +2 -0
  174. package/locales/charts/ms.json +2 -0
  175. package/locales/charts/nl.json +2 -0
  176. package/locales/charts/pl.json +2 -0
  177. package/locales/charts/pt.json +2 -0
  178. package/locales/charts/ro.json +2 -0
  179. package/locales/charts/ru.json +2 -0
  180. package/locales/charts/sk.json +2 -0
  181. package/locales/charts/sv.json +2 -0
  182. package/locales/charts/sw.json +2 -0
  183. package/locales/charts/ta.json +2 -0
  184. package/locales/charts/te.json +2 -0
  185. package/locales/charts/th.json +2 -0
  186. package/locales/charts/tl.json +2 -0
  187. package/locales/charts/tr.json +2 -0
  188. package/locales/charts/uk.json +2 -0
  189. package/locales/charts/ur.json +2 -0
  190. package/locales/charts/vi.json +2 -0
  191. package/locales/charts/yo.json +2 -0
  192. package/locales/charts/zh-Hans.json +2 -0
  193. package/locales/charts/zh-Hant.json +2 -0
  194. package/locales/co.json +15 -2
  195. package/locales/cs.json +16 -2
  196. package/locales/da.json +14 -2
  197. package/locales/de.json +14 -2
  198. package/locales/designs/am.json +0 -13
  199. package/locales/designs/ar.json +0 -13
  200. package/locales/designs/bg.json +0 -13
  201. package/locales/designs/bn.json +0 -13
  202. package/locales/designs/br.json +0 -13
  203. package/locales/designs/co.json +0 -13
  204. package/locales/designs/cs.json +0 -13
  205. package/locales/designs/da.json +0 -13
  206. package/locales/designs/de.json +0 -13
  207. package/locales/designs/el.json +0 -13
  208. package/locales/designs/en.json +0 -13
  209. package/locales/designs/es.json +0 -13
  210. package/locales/designs/fa.json +0 -13
  211. package/locales/designs/fi.json +0 -13
  212. package/locales/designs/fr-CA.json +0 -13
  213. package/locales/designs/fr.json +0 -13
  214. package/locales/designs/ha.json +0 -13
  215. package/locales/designs/he.json +0 -13
  216. package/locales/designs/hi.json +0 -13
  217. package/locales/designs/hr.json +0 -13
  218. package/locales/designs/hu.json +0 -13
  219. package/locales/designs/id.json +0 -13
  220. package/locales/designs/it.json +0 -13
  221. package/locales/designs/ja.json +0 -13
  222. package/locales/designs/ko.json +0 -13
  223. package/locales/designs/mr.json +0 -13
  224. package/locales/designs/ms.json +0 -13
  225. package/locales/designs/nl.json +0 -13
  226. package/locales/designs/pl.json +0 -13
  227. package/locales/designs/pt.json +0 -13
  228. package/locales/designs/ro.json +0 -13
  229. package/locales/designs/ru.json +0 -13
  230. package/locales/designs/sk.json +0 -13
  231. package/locales/designs/sv.json +0 -13
  232. package/locales/designs/sw.json +0 -13
  233. package/locales/designs/ta.json +0 -13
  234. package/locales/designs/te.json +0 -13
  235. package/locales/designs/th.json +0 -13
  236. package/locales/designs/tl.json +0 -13
  237. package/locales/designs/tr.json +0 -13
  238. package/locales/designs/uk.json +0 -13
  239. package/locales/designs/ur.json +0 -13
  240. package/locales/designs/vi.json +0 -13
  241. package/locales/designs/yo.json +0 -13
  242. package/locales/designs/zh-Hans.json +0 -13
  243. package/locales/designs/zh-Hant.json +0 -13
  244. package/locales/dialogs/am.json +4 -0
  245. package/locales/dialogs/ar.json +4 -0
  246. package/locales/dialogs/bg.json +4 -0
  247. package/locales/dialogs/bn.json +4 -0
  248. package/locales/dialogs/br.json +4 -0
  249. package/locales/dialogs/co.json +4 -0
  250. package/locales/dialogs/cs.json +4 -0
  251. package/locales/dialogs/da.json +4 -0
  252. package/locales/dialogs/de.json +4 -0
  253. package/locales/dialogs/el.json +4 -0
  254. package/locales/dialogs/en.json +4 -0
  255. package/locales/dialogs/es.json +4 -0
  256. package/locales/dialogs/fa.json +4 -0
  257. package/locales/dialogs/fi.json +4 -0
  258. package/locales/dialogs/fr-CA.json +4 -0
  259. package/locales/dialogs/fr.json +4 -0
  260. package/locales/dialogs/ha.json +4 -0
  261. package/locales/dialogs/he.json +4 -0
  262. package/locales/dialogs/hi.json +4 -0
  263. package/locales/dialogs/hr.json +4 -0
  264. package/locales/dialogs/hu.json +4 -0
  265. package/locales/dialogs/id.json +4 -0
  266. package/locales/dialogs/it.json +4 -0
  267. package/locales/dialogs/ja.json +4 -0
  268. package/locales/dialogs/ko.json +4 -0
  269. package/locales/dialogs/mr.json +4 -0
  270. package/locales/dialogs/ms.json +4 -0
  271. package/locales/dialogs/nl.json +4 -0
  272. package/locales/dialogs/pl.json +4 -0
  273. package/locales/dialogs/pt.json +4 -0
  274. package/locales/dialogs/ro.json +4 -0
  275. package/locales/dialogs/ru.json +4 -0
  276. package/locales/dialogs/sk.json +4 -0
  277. package/locales/dialogs/sv.json +4 -0
  278. package/locales/dialogs/sw.json +4 -0
  279. package/locales/dialogs/ta.json +4 -0
  280. package/locales/dialogs/te.json +4 -0
  281. package/locales/dialogs/th.json +4 -0
  282. package/locales/dialogs/tl.json +4 -0
  283. package/locales/dialogs/tr.json +4 -0
  284. package/locales/dialogs/uk.json +4 -0
  285. package/locales/dialogs/ur.json +4 -0
  286. package/locales/dialogs/vi.json +4 -0
  287. package/locales/dialogs/yo.json +4 -0
  288. package/locales/dialogs/zh-Hans.json +4 -0
  289. package/locales/dialogs/zh-Hant.json +4 -0
  290. package/locales/documents/am.json +4 -0
  291. package/locales/documents/ar.json +4 -0
  292. package/locales/documents/bg.json +4 -0
  293. package/locales/documents/bn.json +4 -0
  294. package/locales/documents/br.json +4 -0
  295. package/locales/documents/co.json +4 -0
  296. package/locales/documents/cs.json +4 -0
  297. package/locales/documents/da.json +4 -0
  298. package/locales/documents/de.json +4 -0
  299. package/locales/documents/el.json +4 -0
  300. package/locales/documents/en.json +4 -0
  301. package/locales/documents/es.json +4 -0
  302. package/locales/documents/fa.json +4 -0
  303. package/locales/documents/fi.json +4 -0
  304. package/locales/documents/fr-CA.json +4 -0
  305. package/locales/documents/fr.json +4 -0
  306. package/locales/documents/ha.json +4 -0
  307. package/locales/documents/he.json +4 -0
  308. package/locales/documents/hi.json +4 -0
  309. package/locales/documents/hr.json +4 -0
  310. package/locales/documents/hu.json +4 -0
  311. package/locales/documents/id.json +4 -0
  312. package/locales/documents/it.json +4 -0
  313. package/locales/documents/ja.json +4 -0
  314. package/locales/documents/ko.json +4 -0
  315. package/locales/documents/mr.json +4 -0
  316. package/locales/documents/ms.json +4 -0
  317. package/locales/documents/nl.json +4 -0
  318. package/locales/documents/pl.json +4 -0
  319. package/locales/documents/pt.json +4 -0
  320. package/locales/documents/ro.json +4 -0
  321. package/locales/documents/ru.json +4 -0
  322. package/locales/documents/sk.json +4 -0
  323. package/locales/documents/sv.json +4 -0
  324. package/locales/documents/sw.json +4 -0
  325. package/locales/documents/ta.json +4 -0
  326. package/locales/documents/te.json +4 -0
  327. package/locales/documents/th.json +4 -0
  328. package/locales/documents/tl.json +4 -0
  329. package/locales/documents/tr.json +4 -0
  330. package/locales/documents/uk.json +4 -0
  331. package/locales/documents/ur.json +4 -0
  332. package/locales/documents/vi.json +4 -0
  333. package/locales/documents/yo.json +4 -0
  334. package/locales/documents/zh-Hans.json +4 -0
  335. package/locales/documents/zh-Hant.json +4 -0
  336. package/locales/el.json +14 -2
  337. package/locales/en.json +14 -2
  338. package/locales/enterprise/am.json +29 -1
  339. package/locales/enterprise/ar.json +29 -1
  340. package/locales/enterprise/bg.json +29 -1
  341. package/locales/enterprise/bn.json +29 -1
  342. package/locales/enterprise/br.json +29 -1
  343. package/locales/enterprise/co.json +29 -1
  344. package/locales/enterprise/cs.json +29 -1
  345. package/locales/enterprise/da.json +29 -1
  346. package/locales/enterprise/de.json +29 -1
  347. package/locales/enterprise/el.json +29 -1
  348. package/locales/enterprise/en.json +29 -1
  349. package/locales/enterprise/es.json +29 -1
  350. package/locales/enterprise/fa.json +29 -1
  351. package/locales/enterprise/fi.json +29 -1
  352. package/locales/enterprise/fr-CA.json +29 -1
  353. package/locales/enterprise/fr.json +29 -1
  354. package/locales/enterprise/ha.json +29 -1
  355. package/locales/enterprise/he.json +29 -1
  356. package/locales/enterprise/hi.json +29 -1
  357. package/locales/enterprise/hr.json +29 -1
  358. package/locales/enterprise/hu.json +29 -1
  359. package/locales/enterprise/id.json +29 -1
  360. package/locales/enterprise/it.json +29 -1
  361. package/locales/enterprise/ja.json +29 -1
  362. package/locales/enterprise/ko.json +29 -1
  363. package/locales/enterprise/mr.json +29 -1
  364. package/locales/enterprise/ms.json +29 -1
  365. package/locales/enterprise/nl.json +29 -1
  366. package/locales/enterprise/pl.json +29 -1
  367. package/locales/enterprise/pt.json +29 -1
  368. package/locales/enterprise/ro.json +29 -1
  369. package/locales/enterprise/ru.json +29 -1
  370. package/locales/enterprise/sk.json +29 -1
  371. package/locales/enterprise/sv.json +29 -1
  372. package/locales/enterprise/sw.json +29 -1
  373. package/locales/enterprise/ta.json +29 -1
  374. package/locales/enterprise/te.json +29 -1
  375. package/locales/enterprise/th.json +29 -1
  376. package/locales/enterprise/tl.json +29 -1
  377. package/locales/enterprise/tr.json +29 -1
  378. package/locales/enterprise/uk.json +29 -1
  379. package/locales/enterprise/ur.json +29 -1
  380. package/locales/enterprise/vi.json +29 -1
  381. package/locales/enterprise/yo.json +29 -1
  382. package/locales/enterprise/zh-Hans.json +29 -1
  383. package/locales/enterprise/zh-Hant.json +29 -1
  384. package/locales/es.json +15 -2
  385. package/locales/fa.json +14 -2
  386. package/locales/fi.json +14 -2
  387. package/locales/fr-CA.json +15 -2
  388. package/locales/fr.json +15 -2
  389. package/locales/ha.json +14 -2
  390. package/locales/he.json +15 -2
  391. package/locales/hi.json +14 -2
  392. package/locales/hr.json +15 -2
  393. package/locales/hu.json +14 -2
  394. package/locales/id.json +13 -2
  395. package/locales/interactive/am.json +8 -1
  396. package/locales/interactive/ar.json +8 -1
  397. package/locales/interactive/bg.json +8 -1
  398. package/locales/interactive/bn.json +8 -1
  399. package/locales/interactive/br.json +8 -1
  400. package/locales/interactive/co.json +8 -1
  401. package/locales/interactive/cs.json +8 -1
  402. package/locales/interactive/da.json +8 -1
  403. package/locales/interactive/de.json +8 -1
  404. package/locales/interactive/el.json +8 -1
  405. package/locales/interactive/en.json +8 -1
  406. package/locales/interactive/es.json +8 -1
  407. package/locales/interactive/fa.json +8 -1
  408. package/locales/interactive/fi.json +8 -1
  409. package/locales/interactive/fr-CA.json +8 -1
  410. package/locales/interactive/fr.json +8 -1
  411. package/locales/interactive/ha.json +8 -1
  412. package/locales/interactive/he.json +8 -1
  413. package/locales/interactive/hi.json +8 -1
  414. package/locales/interactive/hr.json +8 -1
  415. package/locales/interactive/hu.json +8 -1
  416. package/locales/interactive/id.json +8 -1
  417. package/locales/interactive/it.json +8 -1
  418. package/locales/interactive/ja.json +8 -1
  419. package/locales/interactive/ko.json +8 -1
  420. package/locales/interactive/mr.json +8 -1
  421. package/locales/interactive/ms.json +8 -1
  422. package/locales/interactive/nl.json +8 -1
  423. package/locales/interactive/pl.json +8 -1
  424. package/locales/interactive/pt.json +8 -1
  425. package/locales/interactive/ro.json +8 -1
  426. package/locales/interactive/ru.json +8 -1
  427. package/locales/interactive/sk.json +8 -1
  428. package/locales/interactive/sv.json +8 -1
  429. package/locales/interactive/sw.json +8 -1
  430. package/locales/interactive/ta.json +8 -1
  431. package/locales/interactive/te.json +8 -1
  432. package/locales/interactive/th.json +8 -1
  433. package/locales/interactive/tl.json +8 -1
  434. package/locales/interactive/tr.json +8 -1
  435. package/locales/interactive/uk.json +8 -1
  436. package/locales/interactive/ur.json +8 -1
  437. package/locales/interactive/vi.json +8 -1
  438. package/locales/interactive/yo.json +8 -1
  439. package/locales/interactive/zh-Hans.json +8 -1
  440. package/locales/interactive/zh-Hant.json +8 -1
  441. package/locales/it.json +15 -2
  442. package/locales/ja.json +13 -2
  443. package/locales/ko.json +13 -2
  444. package/locales/lock/am.json +6 -3
  445. package/locales/lock/ar.json +6 -3
  446. package/locales/lock/bg.json +6 -3
  447. package/locales/lock/bn.json +6 -3
  448. package/locales/lock/br.json +6 -3
  449. package/locales/lock/co.json +6 -3
  450. package/locales/lock/cs.json +6 -3
  451. package/locales/lock/da.json +6 -3
  452. package/locales/lock/de.json +6 -3
  453. package/locales/lock/el.json +6 -3
  454. package/locales/lock/en.json +6 -3
  455. package/locales/lock/es.json +6 -3
  456. package/locales/lock/fa.json +6 -3
  457. package/locales/lock/fi.json +6 -3
  458. package/locales/lock/fr-CA.json +6 -3
  459. package/locales/lock/fr.json +6 -3
  460. package/locales/lock/ha.json +6 -3
  461. package/locales/lock/he.json +6 -3
  462. package/locales/lock/hi.json +6 -3
  463. package/locales/lock/hr.json +6 -3
  464. package/locales/lock/hu.json +6 -3
  465. package/locales/lock/id.json +6 -3
  466. package/locales/lock/it.json +6 -3
  467. package/locales/lock/ja.json +6 -3
  468. package/locales/lock/ko.json +6 -3
  469. package/locales/lock/mr.json +6 -3
  470. package/locales/lock/ms.json +6 -3
  471. package/locales/lock/nl.json +6 -3
  472. package/locales/lock/pl.json +6 -3
  473. package/locales/lock/pt.json +6 -3
  474. package/locales/lock/ro.json +6 -3
  475. package/locales/lock/ru.json +6 -3
  476. package/locales/lock/sk.json +6 -3
  477. package/locales/lock/sv.json +6 -3
  478. package/locales/lock/sw.json +6 -3
  479. package/locales/lock/ta.json +6 -3
  480. package/locales/lock/te.json +6 -3
  481. package/locales/lock/th.json +6 -3
  482. package/locales/lock/tl.json +6 -3
  483. package/locales/lock/tr.json +6 -3
  484. package/locales/lock/uk.json +6 -3
  485. package/locales/lock/ur.json +6 -3
  486. package/locales/lock/vi.json +6 -3
  487. package/locales/lock/yo.json +6 -3
  488. package/locales/lock/zh-Hans.json +6 -3
  489. package/locales/lock/zh-Hant.json +6 -3
  490. package/locales/look/am.json +5 -0
  491. package/locales/look/ar.json +5 -0
  492. package/locales/look/bg.json +5 -0
  493. package/locales/look/bn.json +5 -0
  494. package/locales/look/br.json +5 -0
  495. package/locales/look/co.json +5 -0
  496. package/locales/look/cs.json +5 -0
  497. package/locales/look/da.json +5 -0
  498. package/locales/look/de.json +5 -0
  499. package/locales/look/el.json +5 -0
  500. package/locales/look/en.json +5 -0
  501. package/locales/look/es.json +5 -0
  502. package/locales/look/fa.json +5 -0
  503. package/locales/look/fi.json +5 -0
  504. package/locales/look/fr-CA.json +5 -0
  505. package/locales/look/fr.json +5 -0
  506. package/locales/look/ha.json +5 -0
  507. package/locales/look/he.json +5 -0
  508. package/locales/look/hi.json +5 -0
  509. package/locales/look/hr.json +5 -0
  510. package/locales/look/hu.json +5 -0
  511. package/locales/look/id.json +5 -0
  512. package/locales/look/it.json +5 -0
  513. package/locales/look/ja.json +5 -0
  514. package/locales/look/ko.json +5 -0
  515. package/locales/look/mr.json +5 -0
  516. package/locales/look/ms.json +5 -0
  517. package/locales/look/nl.json +5 -0
  518. package/locales/look/pl.json +5 -0
  519. package/locales/look/pt.json +5 -0
  520. package/locales/look/ro.json +5 -0
  521. package/locales/look/ru.json +5 -0
  522. package/locales/look/sk.json +5 -0
  523. package/locales/look/sv.json +5 -0
  524. package/locales/look/sw.json +5 -0
  525. package/locales/look/ta.json +5 -0
  526. package/locales/look/te.json +5 -0
  527. package/locales/look/th.json +5 -0
  528. package/locales/look/tl.json +5 -0
  529. package/locales/look/tr.json +5 -0
  530. package/locales/look/uk.json +5 -0
  531. package/locales/look/ur.json +5 -0
  532. package/locales/look/vi.json +5 -0
  533. package/locales/look/yo.json +5 -0
  534. package/locales/look/zh-Hans.json +5 -0
  535. package/locales/look/zh-Hant.json +5 -0
  536. package/locales/made/am.json +5 -1
  537. package/locales/made/ar.json +5 -1
  538. package/locales/made/bg.json +5 -1
  539. package/locales/made/bn.json +5 -1
  540. package/locales/made/br.json +5 -1
  541. package/locales/made/co.json +5 -1
  542. package/locales/made/cs.json +5 -1
  543. package/locales/made/da.json +5 -1
  544. package/locales/made/de.json +5 -1
  545. package/locales/made/el.json +5 -1
  546. package/locales/made/en.json +5 -1
  547. package/locales/made/es.json +5 -1
  548. package/locales/made/fa.json +5 -1
  549. package/locales/made/fi.json +5 -1
  550. package/locales/made/fr-CA.json +5 -1
  551. package/locales/made/fr.json +5 -1
  552. package/locales/made/ha.json +5 -1
  553. package/locales/made/he.json +5 -1
  554. package/locales/made/hi.json +5 -1
  555. package/locales/made/hr.json +5 -1
  556. package/locales/made/hu.json +5 -1
  557. package/locales/made/id.json +5 -1
  558. package/locales/made/it.json +5 -1
  559. package/locales/made/ja.json +5 -1
  560. package/locales/made/ko.json +5 -1
  561. package/locales/made/mr.json +5 -1
  562. package/locales/made/ms.json +5 -1
  563. package/locales/made/nl.json +5 -1
  564. package/locales/made/pl.json +5 -1
  565. package/locales/made/pt.json +5 -1
  566. package/locales/made/ro.json +5 -1
  567. package/locales/made/ru.json +5 -1
  568. package/locales/made/sk.json +5 -1
  569. package/locales/made/sv.json +5 -1
  570. package/locales/made/sw.json +5 -1
  571. package/locales/made/ta.json +5 -1
  572. package/locales/made/te.json +5 -1
  573. package/locales/made/th.json +5 -1
  574. package/locales/made/tl.json +5 -1
  575. package/locales/made/tr.json +5 -1
  576. package/locales/made/uk.json +5 -1
  577. package/locales/made/ur.json +5 -1
  578. package/locales/made/vi.json +5 -1
  579. package/locales/made/yo.json +5 -1
  580. package/locales/made/zh-Hans.json +5 -1
  581. package/locales/made/zh-Hant.json +5 -1
  582. package/locales/mr.json +14 -2
  583. package/locales/ms.json +13 -2
  584. package/locales/nl.json +14 -2
  585. package/locales/out/am.json +13 -0
  586. package/locales/out/ar.json +13 -0
  587. package/locales/out/bg.json +13 -0
  588. package/locales/out/bn.json +13 -0
  589. package/locales/out/br.json +13 -0
  590. package/locales/out/co.json +13 -0
  591. package/locales/out/cs.json +13 -0
  592. package/locales/out/da.json +13 -0
  593. package/locales/out/de.json +13 -0
  594. package/locales/out/el.json +13 -0
  595. package/locales/out/en.json +13 -0
  596. package/locales/out/es.json +13 -0
  597. package/locales/out/fa.json +13 -0
  598. package/locales/out/fi.json +13 -0
  599. package/locales/out/fr-CA.json +13 -0
  600. package/locales/out/fr.json +13 -0
  601. package/locales/out/ha.json +13 -0
  602. package/locales/out/he.json +13 -0
  603. package/locales/out/hi.json +13 -0
  604. package/locales/out/hr.json +13 -0
  605. package/locales/out/hu.json +13 -0
  606. package/locales/out/id.json +13 -0
  607. package/locales/out/it.json +13 -0
  608. package/locales/out/ja.json +13 -0
  609. package/locales/out/ko.json +13 -0
  610. package/locales/out/mr.json +13 -0
  611. package/locales/out/ms.json +13 -0
  612. package/locales/out/nl.json +13 -0
  613. package/locales/out/pl.json +13 -0
  614. package/locales/out/pt.json +13 -0
  615. package/locales/out/ro.json +13 -0
  616. package/locales/out/ru.json +13 -0
  617. package/locales/out/sk.json +13 -0
  618. package/locales/out/sv.json +13 -0
  619. package/locales/out/sw.json +13 -0
  620. package/locales/out/ta.json +13 -0
  621. package/locales/out/te.json +13 -0
  622. package/locales/out/th.json +13 -0
  623. package/locales/out/tl.json +13 -0
  624. package/locales/out/tr.json +13 -0
  625. package/locales/out/uk.json +13 -0
  626. package/locales/out/ur.json +13 -0
  627. package/locales/out/vi.json +13 -0
  628. package/locales/out/yo.json +13 -0
  629. package/locales/out/zh-Hans.json +13 -0
  630. package/locales/out/zh-Hant.json +13 -0
  631. package/locales/pl.json +16 -2
  632. package/locales/profiles/am.json +5 -0
  633. package/locales/profiles/ar.json +5 -0
  634. package/locales/profiles/bg.json +5 -0
  635. package/locales/profiles/bn.json +5 -0
  636. package/locales/profiles/br.json +5 -0
  637. package/locales/profiles/co.json +5 -0
  638. package/locales/profiles/cs.json +5 -0
  639. package/locales/profiles/da.json +5 -0
  640. package/locales/profiles/de.json +5 -0
  641. package/locales/profiles/el.json +5 -0
  642. package/locales/profiles/en.json +5 -0
  643. package/locales/profiles/es.json +5 -0
  644. package/locales/profiles/fa.json +5 -0
  645. package/locales/profiles/fi.json +5 -0
  646. package/locales/profiles/fr-CA.json +5 -0
  647. package/locales/profiles/fr.json +5 -0
  648. package/locales/profiles/ha.json +5 -0
  649. package/locales/profiles/he.json +5 -0
  650. package/locales/profiles/hi.json +5 -0
  651. package/locales/profiles/hr.json +5 -0
  652. package/locales/profiles/hu.json +5 -0
  653. package/locales/profiles/id.json +5 -0
  654. package/locales/profiles/it.json +5 -0
  655. package/locales/profiles/ja.json +5 -0
  656. package/locales/profiles/ko.json +5 -0
  657. package/locales/profiles/mr.json +5 -0
  658. package/locales/profiles/ms.json +5 -0
  659. package/locales/profiles/nl.json +5 -0
  660. package/locales/profiles/pl.json +5 -0
  661. package/locales/profiles/pt.json +5 -0
  662. package/locales/profiles/ro.json +5 -0
  663. package/locales/profiles/ru.json +5 -0
  664. package/locales/profiles/sk.json +5 -0
  665. package/locales/profiles/sv.json +5 -0
  666. package/locales/profiles/sw.json +5 -0
  667. package/locales/profiles/ta.json +5 -0
  668. package/locales/profiles/te.json +5 -0
  669. package/locales/profiles/th.json +5 -0
  670. package/locales/profiles/tl.json +5 -0
  671. package/locales/profiles/tr.json +5 -0
  672. package/locales/profiles/uk.json +5 -0
  673. package/locales/profiles/ur.json +5 -0
  674. package/locales/profiles/vi.json +5 -0
  675. package/locales/profiles/yo.json +5 -0
  676. package/locales/profiles/zh-Hans.json +5 -0
  677. package/locales/profiles/zh-Hant.json +5 -0
  678. package/locales/pt.json +15 -2
  679. package/locales/ro.json +15 -2
  680. package/locales/ru.json +16 -2
  681. package/locales/scores/am.json +3 -9
  682. package/locales/scores/ar.json +3 -9
  683. package/locales/scores/bg.json +3 -9
  684. package/locales/scores/bn.json +3 -9
  685. package/locales/scores/br.json +3 -9
  686. package/locales/scores/co.json +3 -9
  687. package/locales/scores/cs.json +3 -9
  688. package/locales/scores/da.json +3 -9
  689. package/locales/scores/de.json +3 -9
  690. package/locales/scores/el.json +3 -9
  691. package/locales/scores/en.json +3 -9
  692. package/locales/scores/es.json +3 -9
  693. package/locales/scores/fa.json +3 -9
  694. package/locales/scores/fi.json +3 -9
  695. package/locales/scores/fr-CA.json +3 -9
  696. package/locales/scores/fr.json +3 -9
  697. package/locales/scores/ha.json +3 -9
  698. package/locales/scores/he.json +3 -9
  699. package/locales/scores/hi.json +3 -9
  700. package/locales/scores/hr.json +3 -9
  701. package/locales/scores/hu.json +3 -9
  702. package/locales/scores/id.json +3 -9
  703. package/locales/scores/it.json +3 -9
  704. package/locales/scores/ja.json +3 -9
  705. package/locales/scores/ko.json +3 -9
  706. package/locales/scores/mr.json +3 -9
  707. package/locales/scores/ms.json +3 -9
  708. package/locales/scores/nl.json +3 -9
  709. package/locales/scores/pl.json +3 -9
  710. package/locales/scores/pt.json +3 -9
  711. package/locales/scores/ro.json +3 -9
  712. package/locales/scores/ru.json +3 -9
  713. package/locales/scores/sk.json +3 -9
  714. package/locales/scores/sv.json +3 -9
  715. package/locales/scores/sw.json +3 -9
  716. package/locales/scores/ta.json +3 -9
  717. package/locales/scores/te.json +3 -9
  718. package/locales/scores/th.json +3 -9
  719. package/locales/scores/tl.json +3 -9
  720. package/locales/scores/tr.json +3 -9
  721. package/locales/scores/uk.json +3 -9
  722. package/locales/scores/ur.json +3 -9
  723. package/locales/scores/vi.json +3 -9
  724. package/locales/scores/yo.json +3 -9
  725. package/locales/scores/zh-Hans.json +3 -9
  726. package/locales/scores/zh-Hant.json +3 -9
  727. package/locales/search/am.json +10 -1
  728. package/locales/search/ar.json +10 -1
  729. package/locales/search/bg.json +10 -1
  730. package/locales/search/bn.json +10 -1
  731. package/locales/search/br.json +10 -1
  732. package/locales/search/co.json +10 -1
  733. package/locales/search/cs.json +10 -1
  734. package/locales/search/da.json +10 -1
  735. package/locales/search/de.json +10 -1
  736. package/locales/search/el.json +10 -1
  737. package/locales/search/en.json +10 -1
  738. package/locales/search/es.json +10 -1
  739. package/locales/search/fa.json +10 -1
  740. package/locales/search/fi.json +10 -1
  741. package/locales/search/fr-CA.json +10 -1
  742. package/locales/search/fr.json +10 -1
  743. package/locales/search/ha.json +10 -1
  744. package/locales/search/he.json +10 -1
  745. package/locales/search/hi.json +10 -1
  746. package/locales/search/hr.json +10 -1
  747. package/locales/search/hu.json +10 -1
  748. package/locales/search/id.json +10 -1
  749. package/locales/search/it.json +10 -1
  750. package/locales/search/ja.json +10 -1
  751. package/locales/search/ko.json +10 -1
  752. package/locales/search/mr.json +10 -1
  753. package/locales/search/ms.json +10 -1
  754. package/locales/search/nl.json +10 -1
  755. package/locales/search/pl.json +10 -1
  756. package/locales/search/pt.json +10 -1
  757. package/locales/search/ro.json +10 -1
  758. package/locales/search/ru.json +10 -1
  759. package/locales/search/sk.json +10 -1
  760. package/locales/search/sv.json +10 -1
  761. package/locales/search/sw.json +10 -1
  762. package/locales/search/ta.json +10 -1
  763. package/locales/search/te.json +10 -1
  764. package/locales/search/th.json +10 -1
  765. package/locales/search/tl.json +10 -1
  766. package/locales/search/tr.json +10 -1
  767. package/locales/search/uk.json +10 -1
  768. package/locales/search/ur.json +10 -1
  769. package/locales/search/vi.json +10 -1
  770. package/locales/search/yo.json +10 -1
  771. package/locales/search/zh-Hans.json +10 -1
  772. package/locales/search/zh-Hant.json +10 -1
  773. package/locales/signin/am.json +3 -1
  774. package/locales/signin/ar.json +3 -1
  775. package/locales/signin/bg.json +3 -1
  776. package/locales/signin/bn.json +3 -1
  777. package/locales/signin/br.json +3 -1
  778. package/locales/signin/co.json +3 -1
  779. package/locales/signin/cs.json +3 -1
  780. package/locales/signin/da.json +3 -1
  781. package/locales/signin/de.json +3 -1
  782. package/locales/signin/el.json +3 -1
  783. package/locales/signin/en.json +3 -1
  784. package/locales/signin/es.json +3 -1
  785. package/locales/signin/fa.json +3 -1
  786. package/locales/signin/fi.json +3 -1
  787. package/locales/signin/fr-CA.json +3 -1
  788. package/locales/signin/fr.json +3 -1
  789. package/locales/signin/ha.json +3 -1
  790. package/locales/signin/he.json +3 -1
  791. package/locales/signin/hi.json +3 -1
  792. package/locales/signin/hr.json +3 -1
  793. package/locales/signin/hu.json +3 -1
  794. package/locales/signin/id.json +3 -1
  795. package/locales/signin/it.json +3 -1
  796. package/locales/signin/ja.json +3 -1
  797. package/locales/signin/ko.json +3 -1
  798. package/locales/signin/mr.json +3 -1
  799. package/locales/signin/ms.json +3 -1
  800. package/locales/signin/nl.json +3 -1
  801. package/locales/signin/pl.json +3 -1
  802. package/locales/signin/pt.json +3 -1
  803. package/locales/signin/ro.json +3 -1
  804. package/locales/signin/ru.json +3 -1
  805. package/locales/signin/sk.json +3 -1
  806. package/locales/signin/sv.json +3 -1
  807. package/locales/signin/sw.json +3 -1
  808. package/locales/signin/ta.json +3 -1
  809. package/locales/signin/te.json +3 -1
  810. package/locales/signin/th.json +3 -1
  811. package/locales/signin/tl.json +3 -1
  812. package/locales/signin/tr.json +3 -1
  813. package/locales/signin/uk.json +3 -1
  814. package/locales/signin/ur.json +3 -1
  815. package/locales/signin/vi.json +3 -1
  816. package/locales/signin/yo.json +3 -1
  817. package/locales/signin/zh-Hans.json +3 -1
  818. package/locales/signin/zh-Hant.json +3 -1
  819. package/locales/sk.json +16 -2
  820. package/locales/slides/am.json +16 -11
  821. package/locales/slides/ar.json +16 -11
  822. package/locales/slides/bg.json +16 -11
  823. package/locales/slides/bn.json +16 -11
  824. package/locales/slides/br.json +16 -11
  825. package/locales/slides/co.json +16 -11
  826. package/locales/slides/cs.json +16 -11
  827. package/locales/slides/da.json +16 -11
  828. package/locales/slides/de.json +16 -11
  829. package/locales/slides/el.json +16 -11
  830. package/locales/slides/en.json +16 -11
  831. package/locales/slides/es.json +16 -11
  832. package/locales/slides/fa.json +16 -11
  833. package/locales/slides/fi.json +16 -11
  834. package/locales/slides/fr-CA.json +16 -11
  835. package/locales/slides/fr.json +16 -11
  836. package/locales/slides/ha.json +16 -11
  837. package/locales/slides/he.json +16 -11
  838. package/locales/slides/hi.json +16 -11
  839. package/locales/slides/hr.json +16 -11
  840. package/locales/slides/hu.json +16 -11
  841. package/locales/slides/id.json +16 -11
  842. package/locales/slides/it.json +16 -11
  843. package/locales/slides/ja.json +16 -11
  844. package/locales/slides/ko.json +16 -11
  845. package/locales/slides/mr.json +16 -11
  846. package/locales/slides/ms.json +16 -11
  847. package/locales/slides/nl.json +16 -11
  848. package/locales/slides/pl.json +16 -11
  849. package/locales/slides/pt.json +16 -11
  850. package/locales/slides/ro.json +16 -11
  851. package/locales/slides/ru.json +16 -11
  852. package/locales/slides/sk.json +16 -11
  853. package/locales/slides/sv.json +16 -11
  854. package/locales/slides/sw.json +16 -11
  855. package/locales/slides/ta.json +16 -11
  856. package/locales/slides/te.json +16 -11
  857. package/locales/slides/th.json +16 -11
  858. package/locales/slides/tl.json +16 -11
  859. package/locales/slides/tr.json +16 -11
  860. package/locales/slides/uk.json +16 -11
  861. package/locales/slides/ur.json +16 -11
  862. package/locales/slides/vi.json +16 -11
  863. package/locales/slides/yo.json +16 -11
  864. package/locales/slides/zh-Hans.json +16 -11
  865. package/locales/slides/zh-Hant.json +16 -11
  866. package/locales/sv.json +14 -2
  867. package/locales/sw.json +14 -2
  868. package/locales/ta.json +14 -2
  869. package/locales/tables/am.json +20 -0
  870. package/locales/tables/ar.json +28 -0
  871. package/locales/tables/bg.json +20 -0
  872. package/locales/tables/bn.json +20 -0
  873. package/locales/tables/br.json +26 -0
  874. package/locales/tables/co.json +22 -0
  875. package/locales/tables/cs.json +24 -0
  876. package/locales/tables/da.json +20 -0
  877. package/locales/tables/de.json +20 -0
  878. package/locales/tables/el.json +20 -0
  879. package/locales/tables/en.json +20 -0
  880. package/locales/tables/es.json +22 -0
  881. package/locales/tables/fa.json +20 -0
  882. package/locales/tables/fi.json +20 -0
  883. package/locales/tables/fr-CA.json +22 -0
  884. package/locales/tables/fr.json +22 -0
  885. package/locales/tables/ha.json +20 -0
  886. package/locales/tables/he.json +22 -0
  887. package/locales/tables/hi.json +20 -0
  888. package/locales/tables/hr.json +22 -0
  889. package/locales/tables/hu.json +20 -0
  890. package/locales/tables/id.json +18 -0
  891. package/locales/tables/it.json +22 -0
  892. package/locales/tables/ja.json +18 -0
  893. package/locales/tables/ko.json +18 -0
  894. package/locales/tables/mr.json +20 -0
  895. package/locales/tables/ms.json +18 -0
  896. package/locales/tables/nl.json +20 -0
  897. package/locales/tables/pl.json +24 -0
  898. package/locales/tables/pt.json +22 -0
  899. package/locales/tables/ro.json +22 -0
  900. package/locales/tables/ru.json +24 -0
  901. package/locales/tables/sk.json +24 -0
  902. package/locales/tables/sv.json +20 -0
  903. package/locales/tables/sw.json +20 -0
  904. package/locales/tables/ta.json +20 -0
  905. package/locales/tables/te.json +20 -0
  906. package/locales/tables/th.json +18 -0
  907. package/locales/tables/tl.json +20 -0
  908. package/locales/tables/tr.json +20 -0
  909. package/locales/tables/uk.json +24 -0
  910. package/locales/tables/ur.json +20 -0
  911. package/locales/tables/vi.json +18 -0
  912. package/locales/tables/yo.json +18 -0
  913. package/locales/tables/zh-Hans.json +18 -0
  914. package/locales/tables/zh-Hant.json +18 -0
  915. package/locales/te.json +14 -2
  916. package/locales/th.json +13 -2
  917. package/locales/tl.json +14 -2
  918. package/locales/tr.json +14 -2
  919. package/locales/uk.json +16 -2
  920. package/locales/ur.json +14 -2
  921. package/locales/vi.json +13 -2
  922. package/locales/yo.json +13 -2
  923. package/locales/zh-Hans.json +13 -2
  924. package/locales/zh-Hant.json +13 -2
  925. package/package.json +5 -1
  926. package/ui/caps.js +3 -0
  927. package/ui/export.js +1 -1
  928. package/ui/icons.js +1 -1
  929. package/ui/kit.js +44 -10
  930. package/ui/language.js +172 -0
  931. package/ui/looks/classic.css +1 -1
  932. package/ui/looks/human.css +1 -1
  933. package/ui/looks/mail.css +1 -1
  934. package/ui/looks.js +1 -1
  935. package/ui/markdown.js +17 -6
  936. package/ui/model.js +6 -0
  937. package/ui/reader-state.js +1 -1
  938. package/ui/review.js +1 -1
  939. package/ui/save.js +16 -0
  940. package/ui/seal.js +5 -4
  941. package/ui/sheet.js +21 -2
  942. package/ui/style.css +41 -24
  943. package/ui/touches.js +4 -1
  944. package/ui/view.js +6 -6
  945. package/vendor/LICENSES/babylonjs-core.txt +2 -71
  946. package/vendor/deck/deck.css +2 -2
  947. package/vendor/deck/deck.mjs +37 -37
  948. package/vendor/deck/pptx.mjs +1 -1
  949. package/ui/acts.js +0 -12
package/brand.js CHANGED
@@ -5,10 +5,11 @@ export const BRAND = Object.freeze({
5
5
  domain: 'jean.is',
6
6
  })
7
7
 
8
- // The brand's site's pages the app links to, by language (site/, D538), held to site/'s by test/home.test.js.
8
+ // The brand's site's pages the app links to, by language (site/), held to site/'s by test/home.test.js.
9
9
  export const PAGES = Object.freeze({
10
10
  home: { en: '', ar: 'ar', fr: 'fr', ja: 'ja', ko: 'ko' },
11
11
  help: { en: 'help', fr: 'fr/aide' },
12
+ 'site-map': { en: 'site-map', fr: 'fr/plan-du-site' },
12
13
  'help/key-refused': { en: 'help/key-refused', fr: 'fr/aide/cle-refusee' },
13
14
  'help/couldnt-reach': { en: 'help/couldnt-reach', fr: 'fr/aide/injoignable' },
14
15
  'help/plan-stopped': { en: 'help/plan-stopped', fr: 'fr/aide/forfait-arrete' },
@@ -1,10 +1,13 @@
1
1
  /* Charts (D196): the chart in its frame, Copy at its top corner, shown on hover. */
2
2
  app-chart { position: relative; }
3
- app-chart .chart { block-size: clamp(15rem, 55vw, 22rem); }
3
+ /* `dir="ltr"` on the box keeps ECharts' anchors in place. In SVG (on a slide), each word then reads from its first letter, or a mixed one would flip; on a canvas, by `sideOf()`. */
4
+ app-chart .chart { block-size: clamp(15rem, 55vw, 22rem); } app-chart .chart > div { transform-origin: 0 0; } app-chart .chart text { unicode-bidi: plaintext; }
4
5
  app-chart .drawn-foot { position: absolute; z-index: 1; inset-block-start: 0.4rem; inset-inline-end: 0.4rem; transition: opacity 0.2s; }
5
6
  app-chart .drawn-foot .icon-button { background: var(--glass); }
6
7
  @media (hover: hover) { app-chart:not(:hover, :focus-within) .drawn-foot { opacity: 0; } }
7
- @media print { app-chart .drawn-foot { display: none; } }
8
+ @media print { app-chart :is(.drawn-foot, .chart-data) { display: none; } }
9
+ .chart-data { margin-block-start: 0.35rem; font-size: 0.875rem; } .chart-data summary { color: var(--ink-soft); cursor: pointer; }
10
+ .deck-slide .chart-data { position: absolute; z-index: 2; inset-block-end: 0; inset-inline-start: 0; font-size: 0.75rem; } .deck-slide .chart-data[open] { inset: 0; overflow: auto; padding: 0.5rem; background: var(--room); }
8
11
  /* While the answer is written, the chart's place; once it's written, why there is none. */
9
12
  app-chart .drawn-status { margin: 0 0 0.6rem; }
10
13
  .is-streaming app-chart .drawn-status { display: grid; place-items: center; min-block-size: clamp(15rem, 55vw, 22rem); margin: 0; }
@@ -4,7 +4,7 @@
4
4
  // at once. The block is data (./option.js). While it is written, what is whole of it so far is
5
5
  // drawn, and the chart grows as more comes. Loaded by the first chart an answer holds; until then,
6
6
  // or when it isn't a chart, it shows as code.
7
- import { html, render } from 'lit-html'
7
+ import { html, nothing, render } from 'lit-html'
8
8
  import { effect } from '@preact/signals-core'
9
9
  import { app, theme, notify } from '../../ui/state.js'
10
10
  import { copyDrawing } from '../../ui/save.js'
@@ -12,18 +12,17 @@ import { drawn } from '../../ui/markdown.js'
12
12
  import { drawnActions } from '../../ui/caps.js'
13
13
  import { icons } from '../../ui/icons.js'
14
14
  import { styleSheet, still } from '../../ui/sheet.js'
15
- import { t, locale, intlLocales, useStrings } from '../../core/i18n.js'
16
- import { readOption, localize, titleOf } from './option.js'
15
+ import { t, dir, locale, intlLocales, useStrings } from '../../core/i18n.js'
16
+ import { readOption, localize, titleOf, namesIn, sideOf } from './option.js'
17
17
 
18
18
  /** @typedef {import('./option.js').Option} Option */
19
19
 
20
- const [echarts] = await Promise.all([
21
- import(new URL('../../vendor/echarts/echarts.mjs', import.meta.url).href),
22
- useStrings('charts'),
23
- styleSheet(new URL('charts.css', import.meta.url)),
24
- ])
20
+ const [echarts] = await Promise.all([import(new URL('../../vendor/echarts/echarts.mjs', import.meta.url).href), useStrings('charts'), styleSheet(new URL('charts.css', import.meta.url))])
25
21
 
26
- const contrast = matchMedia('(prefers-contrast: more), (forced-colors: active)')
22
+ const [contrast, forced] = [matchMedia('(prefers-contrast: more)'), matchMedia('(forced-colors: active)')]
23
+ let charts = 0
24
+ // Escape hides a tip.
25
+ addEventListener('keydown', (event) => { if (event.key === 'Escape') for (const one of document.querySelectorAll('app-chart')) /** @type {any} */ (one).chart?.dispatchAction({ type: 'hideTip' }) })
27
26
 
28
27
  /**
29
28
  * The option as drawn here: numbers in the user's language, the room's type, no animation for
@@ -35,13 +34,23 @@ function dressed(option, font) {
35
34
  ...localize(option, new Intl.NumberFormat(intlLocales(locale.peek())).format),
36
35
  textStyle: { fontFamily: font, ...option.textStyle },
37
36
  ...(still() && { animation: false }),
38
- ...(contrast.matches && { aria: { enabled: true, decal: { show: true } } }),
37
+ ...((forced.matches || ({ more: true, usual: false }[document.documentElement.dataset.contrast ?? ''] ?? contrast.matches)) && { aria: { enabled: true, decal: { show: true } } }),
39
38
  }
40
39
  }
41
40
 
41
+ /** A chart's numbers as a table, its categories down the side and a column for each series; its source where it has neither. @param {any} option @param {string} source */
42
+ function figures(option, source) {
43
+ const series = [option.series].flat().filter((one) => Array.isArray(one?.data)), axis = [option.xAxis, option.yAxis].flat().find((one) => Array.isArray(one?.data))?.data, value = (/** @type {any} */ one) => [one?.value ?? one].flat().join(', '), rows = Math.max(0, ...series.map((one) => one.data.length))
44
+ const links = [option.series].flat().flatMap((one) => one?.links ?? one?.edges ?? []), set = [option.dataset].flat()[0]?.source; if (links.length) return html`<ul>${links.map((/** @type {any} */ one) => html`<li dir="auto">${one.source} → ${one.target}${one.value == null ? '' : ` (${one.value})`}</li>`)}</ul>`
45
+ if (Array.isArray(set?.[0])) return html`<div class="table" tabindex="0"><table><thead><tr>${set[0].map((/** @type {any} */ head) => html`<th scope="col" dir="auto">${head}</th>`)}</tr></thead><tbody>${set.slice(1).map((/** @type {any[]} */ row) => html`<tr>${row.map((one, i) => (i ? html`<td>${one}</td>` : html`<th scope="row" dir="auto">${one}</th>`))}</tr>`)}</tbody></table></div>`
46
+ return rows ? html`<div class="table" tabindex="0"><table><thead><tr><td></td>${series.map((one) => html`<th scope="col" dir="auto">${one.name ?? titleOf(option)}</th>`)}</tr></thead><tbody>${Array.from({ length: rows }, (_, i) => html`<tr><th scope="row" dir="auto">${value(axis?.[i] ?? series[0].data[i]?.name ?? i + 1)}</th>${series.map((one) => html`<td>${value(one.data[i])}</td>`)}</tr>`)}</tbody></table></div>` : html`<pre dir="ltr" tabindex="0">${source}</pre>`
47
+ }
48
+
42
49
  class AppChart extends HTMLElement {
43
50
  /** `open` while its block's closing fence isn't written yet: the answer is still writing it. */
44
51
  static observedAttributes = ['source', 'open']
52
+ /** Its figures' id, which its picture is described by. */
53
+ wordsId = `chart-words-${++charts}`
45
54
  /** @type {any} ECharts' instance, while a chart is drawn */
46
55
  chart = null
47
56
  /** @type {Option | null} what it draws */
@@ -53,7 +62,7 @@ class AppChart extends HTMLElement {
53
62
  /** @type {string | null} what the block held when last drawn while open, which more of it grows from */
54
63
  growing = null
55
64
  frame = 0
56
- sized = new ResizeObserver(() => this.chart?.resize())
65
+ sized = new ResizeObserver(() => this.chart && this.fit())
57
66
  /** @type {(() => void) | undefined} */
58
67
  unwatch
59
68
 
@@ -76,9 +85,7 @@ class AppChart extends HTMLElement {
76
85
  this.growing = null
77
86
  }
78
87
 
79
- attributeChangedCallback() {
80
- if (this.isConnected) this.draw()
81
- }
88
+ attributeChangedCallback() { if (this.isConnected) this.draw() }
82
89
 
83
90
  draw() {
84
91
  const source = this.getAttribute('source') ?? ''
@@ -87,8 +94,8 @@ class AppChart extends HTMLElement {
87
94
  const key = [look, open, source].join('\n')
88
95
  if (key === this.drawn) return
89
96
  this.drawn = key
90
- // More of a block being written goes on the chart already drawn.
91
- const more = Boolean(this.chart) && this.made === look && this.growing !== null && source.startsWith(this.growing)
97
+ // More of a block being written, or a page's chart that follows its form (`live`, D670), goes on the chart already drawn.
98
+ const more = Boolean(this.chart) && this.made === look && (this.hasAttribute('live') || (this.growing !== null && source.startsWith(this.growing)))
92
99
  this.growing = open ? source : null
93
100
  const option = readOption(source, open)
94
101
  // Nothing whole has come since: what is drawn stays.
@@ -104,6 +111,7 @@ class AppChart extends HTMLElement {
104
111
  try {
105
112
  // In SVG on a slide (`svg`), which a deck saved as PowerPoint reads as it is drawn (D593).
106
113
  this.chart ??= echarts.init(box, theme.peek() === 'dark' ? 'dark' : undefined, { renderer: this.hasAttribute('svg') ? 'svg' : 'canvas' })
114
+ if (!more) this.fit()
107
115
  this.made = look
108
116
  // Without animation while it grows: each would start again with the next few values.
109
117
  this.chart.setOption({ ...dressed(option, getComputedStyle(this).fontFamily), ...(open && { animation: false }) })
@@ -117,16 +125,27 @@ class AppChart extends HTMLElement {
117
125
  }
118
126
  }
119
127
 
128
+ /**
129
+ * The chart to its box. On a slide (`svg`), drawn at a size of its own and scaled up to it, so that its words, lines and margins
130
+ * grow with the slide's as they all do, at any size of slide: ECharts' 12px as six tenths of the slide's type, or less in a short
131
+ * box (a tile, a node), for it never to be drawn under the 240px high that ECharts' margins, fixed in height, leave its marks room in.
132
+ */
133
+ fit() {
134
+ const box = /** @type {HTMLElement} */ (this.querySelector('.chart')), scale = this.hasAttribute('svg') ? Math.min(parseFloat(getComputedStyle(box).fontSize) / 20, box.clientHeight / 240) : 1
135
+ this.chart.resize({ width: box.clientWidth / scale, height: box.clientHeight / scale })
136
+ box.querySelector('div')?.style.setProperty('scale', String(scale))
137
+ }
138
+
120
139
  /** @param {string} source @param {Option | null} option */
121
140
  paint(source, option) {
122
- const title = option ? titleOf(option) : ''
123
- render(option ? html`<div class="chart" dir="ltr" role="img" aria-label=${title || t('charts.chart')}></div>
124
- <div class="drawn-foot">
141
+ const title = option ? titleOf(option) : '', names = option ? namesIn(option) : []
142
+ render(option ? html`<div class="chart" dir="ltr" role="img" aria-describedby=${this.wordsId} lang=${title ? nothing : locale.value} aria-label=${title || (names.length ? t('charts.of', { names: new Intl.ListFormat(intlLocales(), { type: 'unit' }).format(names) }) : t('charts.chart'))}></div>
143
+ <div class="drawn-foot" lang=${locale.value}>
125
144
  <button class="icon-button subtle" aria-label=${t('action.copy')}
126
- @click=${() => copyDrawing(source, this.picture()).then(() => notify(t('toast.copied')), () => notify(t('made.copyFailed')))}>${icons.copy}</button>
145
+ @click=${() => copyDrawing(source, this.picture()).then(() => notify(t('toast.copied')), () => notify(t('made.copyFailed'), { alert: true }))}>${icons.copy}</button>
127
146
  ${drawnActions('echarts', source)}
128
- </div>`
129
- : html`<p class="drawn-status muted small" role="status"><span class="while">${t('charts.drawing')}</span><span class="failed">${t('charts.failed')}</span></p>
147
+ </div><details class="chart-data" id=${this.wordsId}><summary lang=${locale.value} dir=${dir()}>${t('charts.data')}</summary>${figures(option, source)}</details>`
148
+ : html`<p class="drawn-status muted small" role="status"><span class="while">${t('charts.drawing')}</span><span class="failed" role="alert">${t('charts.failed')}</span></p>
130
149
  <pre dir="ltr" tabindex="0"><code>${source}</code></pre>`, this)
131
150
  }
132
151
 
@@ -136,8 +155,7 @@ class AppChart extends HTMLElement {
136
155
  * @returns {Promise<Blob>}
137
156
  */
138
157
  async picture() {
139
- const { option } = this
140
- const box = this.querySelector('.chart')
158
+ const { option } = this, box = this.querySelector('.chart')
141
159
  if (!option || !box) throw new Error('No chart')
142
160
  const paper = echarts.init(document.createElement('div'), undefined, { renderer: 'canvas', width: box.clientWidth, height: box.clientHeight })
143
161
  try {
@@ -150,5 +168,8 @@ class AppChart extends HTMLElement {
150
168
  }
151
169
  }
152
170
 
171
+ // A canvas draws its words in the one direction it is given: each is given its own, for the box's `dir="ltr"` not to flip a mixed one (in SVG: charts.css).
172
+ echarts.setPlatformAPI({ createCanvas() { const canvas = document.createElement('canvas'), context = /** @type {any} */ (canvas.getContext('2d')); for (const draw of /** @type {const} */ (['fillText', 'strokeText'])) context[draw] = (/** @type {string} */ word, /** @type {[number, number]} */ ...at) => { context.direction = sideOf(word); CanvasRenderingContext2D.prototype[draw].call(context, word, ...at) }; return canvas } })
173
+
153
174
  customElements.define('app-chart', AppChart)
154
175
  drawn.value = { ...drawn.peek(), echarts: (source, open) => html`<app-chart source=${source} ?open=${open}></app-chart>` }
@@ -31,12 +31,13 @@ export function readOption(source, open = false) {
31
31
  const one = (/** @type {any} */ item) => (Array.isArray(item) && item.length === 1 ? item[0] : Array.isArray(item?.value) && item.value.length === 1 ? { ...item, value: item.value[0] } : item)
32
32
  for (const series of all(option.series)) if (/^(bar|line)$/.test(series?.type) && Array.isArray(series.data)) series.data = series.data.map(one)
33
33
  delete option.toolbox
34
+ for (const legend of all(option.legend)) legend.selectedMode = false
34
35
  option.backgroundColor = 'transparent'
35
36
  for (const title of all(option.title)) {
36
37
  delete title.link
37
38
  delete title.sublink
38
39
  }
39
- const tooltip = (/** @type {Option} */ given) => ({ ...given, renderMode: 'richText' })
40
+ const tooltip = (/** @type {Option} */ given) => ({ ...given, renderMode: 'richText', triggerOn: 'click' })
40
41
  option.tooltip = Array.isArray(option.tooltip) ? option.tooltip.map(tooltip) : tooltip(option.tooltip)
41
42
  return option
42
43
  }
@@ -121,6 +122,9 @@ export function soFar(source) {
121
122
  return end ? source.slice(0, end) + closing : ''
122
123
  }
123
124
 
125
+ /** A word's direction by its first letter, in the scripts written right to left (Hebrew, Arabic, Syriac, Thaana, N'Ko, their forms), as `unicode-bidi: plaintext` finds it; left to right without one. @param {string} word @returns {'rtl' | 'ltr'} */
126
+ export const sideOf = (word) => (/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/.test(/\p{L}/u.exec(word)?.[0] ?? '') ? 'rtl' : 'ltr')
127
+
124
128
  /**
125
129
  * Numbers as the user's language writes them, on value axes and in tooltips, unless the chart
126
130
  * gives its own formatter. A y axis is a value axis, and an x axis a category one, unless they say.
@@ -139,3 +143,9 @@ export function localize(option, format) {
139
143
 
140
144
  /** What a chart is called: its first title. @param {Option} option */
141
145
  export const titleOf = (option) => String(all(option.title).find((title) => title.text)?.text ?? '')
146
+
147
+ /** What a chart with no title shows, to name it by: its series, else what its series or axes list. @param {Option} option @returns {string[]} */
148
+ export function namesIn(option) {
149
+ const series = all(option.series), named = series.map((one) => one?.name).filter(Boolean), listed = [...series.flatMap((one) => (Array.isArray(one?.data) ? one.data.map((/** @type {any} */ item) => item?.name) : [])), ...[option.xAxis, option.yAxis].flat().flatMap((axis) => axis?.data ?? [])]
150
+ return [...new Set((named.length ? named : listed).filter((name) => name && typeof name === 'string'))].slice(0, 5)
151
+ }
@@ -1,4 +1,4 @@
1
- // MIDI files (D197): no browser plays one, so Jean does. Its notes are read here, then played by a
1
+ // MIDI files: no browser plays one, so Jean does. Its notes are read here, then played by a
2
2
  // small synthesizer of Jean's own through the Web Audio API, faster than they last, into a WAV that
3
3
  // the page's own player plays, with its seeking and its volume. No instruments fetched from another
4
4
  // site: each of General MIDI's sixteen families of instruments has a wave and an envelope of its
@@ -36,7 +36,7 @@ const open = (typed) => {
36
36
  back = document.activeElement
37
37
  was = known?.formula ? '=' + known.formula.replace(/^=/, '') : String(known?.value ?? '')
38
38
  box.value = typed ?? was
39
- box.setAttribute('aria-label', ref(active))
39
+ box.title = ref(active)
40
40
  Object.assign(box.style, { display: 'block', left: grid.left + rect.x + 'px', top: grid.top + rect.y + 'px', width: rect.width + 'px', height: rect.height + 'px' })
41
41
  box.focus()
42
42
  }
@@ -34,7 +34,7 @@ export async function pageOf(game, { test = null, saved = { save: null, storage:
34
34
  /**
35
35
  * A game's file as a page of its own: each engine as an inert script, made a module and mapped to its name before the shell runs,
36
36
  * what it saves read from the browser's storage where it has one and written there as the shell sends it, motion as the user's
37
- * Motion was when it was saved (D523). @param {string} file
37
+ * Motion was when it was saved. @param {string} file
38
38
  */
39
39
  export async function alone(file) {
40
40
  const game = gameOf(file)
@@ -8,7 +8,8 @@ import { html, svg } from 'lit-html'
8
8
  import { signal, effect } from '@preact/signals-core'
9
9
  import { app } from '../../ui/state.js'
10
10
  import { register } from '../../ui/caps.js'
11
- import { icon } from '../../ui/menu-icons.js'
11
+ import { icon, icons } from '../../ui/menu-icons.js'
12
+ import { t } from '../../core/i18n.js'
12
13
  import { ask, page } from '../../ui/creations.js'
13
14
  import { held } from '../../ui/held.js'
14
15
  import { capability, page as drawn } from './interactive.js'
@@ -31,11 +32,20 @@ export const editor = async ({ uri }) => ((one) => (one ? shown(one, 'beside') :
31
32
  const shown = ({ source, link }, kind) => html`<div class="prose">${drawn(source, false, kind, link.uri)}</div>`
32
33
 
33
34
  export const apps = { id: 'apps', at: 6, draw: () => GLYPH, kept,
34
- open: (/** @type {{ path: string, name: string, link: { name: string } }} */ { path, name, link }) => import('../../ui/preview.js').then(({ preview }) => preview({ uri: path, name: link.name, title: name, mimeType: 'text/html' })),
35
+ open: (/** @type {{ path: string, name: string, link: { name: string } }} */ { path, name, link }) => import('../../ui/preview.js').then(({ preview }) => preview({ uri: path, name: link.name, title: name, mimeType: 'text/html' }, true)),
35
36
  pin, rename, hide, like: async () => {},
36
37
  preview: (/** @type {{ source: string, link: { uri: string } }} */ one) => shown(one),
37
38
  make: () => ask('interactive.askApp', 'interactive.appExample') }
38
39
 
40
+ /**
41
+ * What an app can do (ui/out.js): a link holds its page as an answer's does, the system's sheet and Download its page on its own, and paper what it shows now.
42
+ * @param {{ uri: string, name: string, title: string }} file @param {Element} pane @returns {import('../../ui/out.js').Ways}
43
+ */
44
+ const ways = (file, pane) => ({ share: async () => ({ text: `\`\`\`html\n${(await find(file.uri))?.source ?? ''}\n\`\`\`` }),
45
+ send: { file: file.name, type: 'text/html', make: async () => ({ title: file.title, files: [new File([await bytesOf(file.uri)], file.name, { type: 'text/html' })] }) },
46
+ files: [{ id: '', glyph: icons.download, label: t('out.webPage'), run: async () => (await import('../../ui/preview.js')).download(file) }],
47
+ print: { id: 'print', run: async () => (await import('../made/paper.js')).printPage(/** @type {HTMLElement} */ (pane.querySelector('.view .prose'))) } })
48
+
39
49
  /** Its slots, Creations' page among them, once the project holds an app; until then only its card to start one, on the page another kind opens (D553). */
40
50
  const joined = signal(/** @type {Record<string, unknown>} */ ({ starts: apps }))
41
51
  let here = ''
@@ -44,4 +54,4 @@ effect(() => {
44
54
  if (dir !== here) (here = dir, (joined.value = { starts: apps }))
45
55
  if (!joined.peek().creations) kept().then((list) => { if (here === dir && list.length) joined.value = { creations: apps, main: page } }, console.warn)
46
56
  })
47
- effect(() => register({ ...capability, slots: { ...capability.slots, ...joined.value } }))
57
+ effect(() => register({ ...capability, slots: { ...capability.slots, ...joined.value, out: { at: 2, draw: () => null, of: (/** @type {{ uri: string }} */ { uri }) => /#app-\d+$/.test(uri), load: async () => ({ ways }) } } }))
@@ -5,6 +5,7 @@
5
5
  // in the room's colours (or a deck's) as Pele's own properties inside it, its words the picture's text. <app-diagram> draws
6
6
  // one in an answer or a file, one Pele can't read once whole saying so (`unread`); a page holds its own (./page-diagram.js),
7
7
  // which asks Jean for the picture. Mermaid itself is a 1.6 MB library that needs a DOM.
8
+ import { t } from '../../core/i18n.js'
8
9
  import { pictureOf } from '../../ui/save.js'
9
10
  import { scriptURL } from '../../ui/trusted.js'
10
11
 
@@ -38,7 +39,7 @@ function box(rest) {
38
39
  return [id, after]
39
40
  }
40
41
 
41
- /** Boxes joined by &, at the start of `rest`. @param {string} rest @returns {[string, string] | null} */
42
+ /** Boxes joined by &, at the start of `rest`, and what follows them. @param {string} rest @returns {[string[], string] | null} */
42
43
  function group(rest) {
43
44
  const found = []
44
45
  for (let left = rest.trimStart(); ;) {
@@ -46,11 +47,28 @@ function group(rest) {
46
47
  if (!next) return null
47
48
  const named = /^:::\w+/.exec(next[1])?.[0] ?? '', rest = next[1].slice(named.length), more = /^\s*&\s*/.exec(rest)
48
49
  found.push(next[0] + named)
49
- if (!more) return [found.join(' & '), rest]
50
+ if (!more) return [found, rest]
50
51
  left = rest.slice(more[0].length)
51
52
  }
52
53
  }
53
54
 
55
+ /** A flowchart's statement as boxes and the arrows between them; null for what this can't read, and what holds no box. @param {string} text */
56
+ function chain(text) {
57
+ if (!text.trim() || /^\s*(%%|(classDef|class|style|linkStyle|click|subgraph|end|direction)\b)/.test(text)) return null
58
+ let read = group(text)
59
+ if (!read) return null
60
+ const groups = [read[0]], arrows = []
61
+ for (let rest = read[1]; rest.trim();) {
62
+ const arrow = ARROW.exec(rest)
63
+ read = arrow && /[-=.]/.test(arrow[3]) ? group(rest.slice(arrow[0].length)) : null
64
+ if (!arrow || !read) return null
65
+ groups.push(read[0])
66
+ arrows.push(arrow)
67
+ rest = read[1]
68
+ }
69
+ return { groups, arrows, indent: /^\s*/.exec(text)?.[0] ?? '' }
70
+ }
71
+
54
72
  /**
55
73
  * A flowchart with its boxes and the words on its arrows written as Mermaid reads them; a statement this can't read, and any
56
74
  * other kind of diagram, as it was.
@@ -63,29 +81,84 @@ export function mended(source) {
63
81
  const statement = (/** @type {string} */ text) => {
64
82
  const titled = /^(\s*subgraph\s+[\p{L}\p{N}_]+\s*)\[(.*)\]\s*$/u.exec(text)
65
83
  if (titled) return `${titled[1]}[${quoted(titled[2])}]`
66
- if (!text.trim() || /^\s*(%%|(classDef|class|style|linkStyle|click|subgraph|end|direction)\b)/.test(text)) return text
67
- let read = group(text)
84
+ const read = chain(text)
68
85
  if (!read) return text
69
- let out = `${/^\s*/.exec(text)?.[0]}${read[0]}`
70
- for (let rest = read[1]; rest.trim();) {
71
- const arrow = ARROW.exec(rest)
72
- const to = arrow && /[-=.]/.test(arrow[3]) ? group(rest.slice(arrow[0].length)) : null
73
- if (!arrow || !to) return text
74
- const words = arrow[4] ?? arrow[2]
75
- out += ` ${arrow[1] === '-.' ? `-${arrow[3]}` : arrow[3]}${words ? `|${quoted(words)}|` : ''} ${to[0]}`
76
- read = to
77
- rest = to[1]
78
- }
79
- return out
86
+ return read.indent + read.groups.map((boxes, i) => {
87
+ const arrow = read.arrows[i - 1], words = arrow && (arrow[4] ?? arrow[2])
88
+ return `${arrow ? ` ${arrow[1] === '-.' ? `-${arrow[3]}` : arrow[3]}${words ? `|${quoted(words)}|` : ''} ` : ''}${boxes.join(' & ')}`
89
+ }).join('')
80
90
  }
81
91
  // What follows its first word and direction, on its first line too (graph LR; A --> B).
82
92
  const mend = (/** @type {string} */ line) => line.split(';').map(statement).join(';')
83
93
  return [head + mend(first.slice(head.length)), ...lines.map(mend)].join('\n')
84
94
  }
85
95
 
86
- /** The words a diagram shows, for those who can't see it. @param {string} svg */
87
- export const wordsOf = (svg) => [...svg.matchAll(/<text\b[^>]*>([\s\S]*?)<\/text>/g)].map(([, inner]) => inner.replace(/<[^>]+>/g, ' ')
88
- .replace(/&(amp|lt|gt|quot|apos|#39);/g, (_, name) => ({ amp: '&', lt: '<', gt: '>', quot: '"' })[/** @type {'amp'} */ (name)] ?? "'").replace(/\s+/g, ' ').trim()).filter(Boolean).join(', ')
96
+ /** The words a diagram shows, each on its own, in the order drawn. @param {string} svg */
97
+ const textsOf = (svg) => [...svg.matchAll(/<text\b[^>]*>([\s\S]*?)<\/text>/g)].map(([, inner]) => inner.replace(/<[^>]+>/g, ' ')
98
+ .replace(/&(amp|lt|gt|quot|apos|#39);/g, (_, name) => ({ amp: '&', lt: '<', gt: '>', quot: '"' })[/** @type {'amp'} */ (name)] ?? "'").replace(/\s+/g, ' ').trim()).filter(Boolean)
99
+ /** @param {string} svg */
100
+ export const wordsOf = (svg) => textsOf(svg).join(', ')
101
+
102
+ // An arrow of a sequence or a state diagram (Alice->>Bob: Hello, Idle --> Busy: start); a sequence's note; a name it gives one of them.
103
+ const ACROSS = /^\s*([^\s:<>-][^:<>]*?)\s*<*-{1,2}(?:>>?|\)|x)\s*[+-]?\s*([^:]+?)\s*(?::\s*(.*))?$/
104
+ const NOTE = /^\s*note\b[^:]*:\s*(.+)$/i
105
+ const ALIAS = /^\s*(?:participant|actor)\s+(\S+)\s+as\s+(.+)$/
106
+
107
+ /**
108
+ * What a diagram's arrows say, for those who can't see them: its boxes in the order written, each with what it leads to, an arrow's
109
+ * words first ("Yes: Take an umbrella"); a sequence's in turn, as a box may speak more than once. None for another kind of diagram.
110
+ * @param {string} source @returns {{ box: string, next: string[] }[]}
111
+ */
112
+ export function stepsOf(source) {
113
+ const [first = '', ...lines] = source.split('\n'), steps = /** @type {{ box: string, next: string[] }[]} */ ([])
114
+ /** The step of a box: in a flowchart its one, in a sequence the last said if it is its. @param {string} box @param {boolean} [any] */
115
+ const step = (box, any) => (any ? steps.find((one) => one.box === box) : steps.at(-1)?.box === box && steps.at(-1)) || steps[steps.push({ box, next: [] }) - 1]
116
+ const head = /^\s*(flowchart|graph)\b[^;]*/i.exec(first)?.[0]
117
+ if (head) {
118
+ const chains = [first.slice(head.length), ...lines].flatMap((line) => line.split(';')).map(chain).filter((one) => one !== null), names = new Map()
119
+ for (const entry of chains.flatMap(({ groups }) => groups.flat())) {
120
+ const id = ID.exec(entry)?.[0], words = /"(.*)"/s.exec(entry)?.[1]
121
+ if (words || !names.has(id)) names.set(id, words?.replace(/#quot;/g, '"').replace(/<br\s*\/?>|\\n/gi, ' ') ?? id)
122
+ }
123
+ const name = (/** @type {string} */ entry) => names.get(ID.exec(entry)?.[0])
124
+ for (const { groups, arrows } of chains) {
125
+ for (const entry of groups.flat()) step(name(entry), true)
126
+ arrows.forEach((arrow, i) => { for (const from of groups[i]) for (const to of groups[i + 1]) step(name(from), true).next.push(`${(arrow[4] ?? arrow[2]) ? `${(arrow[4] ?? arrow[2]).trim().replace(/^"(.*)"$/, '$1')}: ` : ''}${name(to)}`) })
127
+ }
128
+ } else if (/^\s*(sequenceDiagram|stateDiagram)/.test(first)) {
129
+ const names = new Map(lines.map((line) => ALIAS.exec(line)).filter((one) => one !== null).map(([, id, name]) => [id, name.trim()]))
130
+ for (const line of lines) {
131
+ const note = NOTE.exec(line)?.[1], [, from, to, words] = ACROSS.exec(line) ?? []
132
+ if (note) steps.push({ box: note, next: [] })
133
+ else if (from && !`${from}${to}`.includes('[*]')) step(names.get(from) ?? from).next.push(`${words ? `${words}: ` : ''}${names.get(to) ?? to}`)
134
+ }
135
+ }
136
+ return steps
137
+ }
138
+
139
+ /**
140
+ * A diagram told in words: its picture's short text, which says that the words follow; what opens them; and them, its steps or, for a
141
+ * kind whose arrows this can't read, what it shows. @param {string} source @param {string} svg
142
+ */
143
+ export function told(source, svg) {
144
+ const steps = stepsOf(source), first = steps[0]?.box
145
+ return steps.length ? { alt: t('interactive.diagramFrom', { first: first.length > 40 ? `${first.slice(0, 39)}…` : first }), summary: t('interactive.diagramSteps'), steps }
146
+ : { alt: t('interactive.diagramWords'), summary: t('interactive.inWords'), steps: textsOf(svg).map((box) => ({ box, next: [] })) }
147
+ }
148
+
149
+ /**
150
+ * Those words under the picture, folded, the opening in the person's language though the diagram's are its own.
151
+ * @param {ReturnType<typeof told>} words @param {boolean} [open]
152
+ */
153
+ export function wordsBelow({ summary, steps }, open = false) {
154
+ const made = (/** @type {string} */ tag, /** @type {string} */ text = '') => Object.assign(document.createElement(tag), { textContent: text })
155
+ const list = (/** @type {{ box: string, next?: string[] }[]} */ items) => { const all = made('ul'); all.append(...items.map(({ box, next = [] }) => { const item = made('li', box); if (next.length) item.append(list(next.map((one) => ({ box: one })))); return item })); return all }
156
+ const held = /** @type {HTMLDetailsElement} */ (made('details')), head = made('summary', summary)
157
+ Object.assign(head, { lang: document.documentElement.lang, dir: document.documentElement.dir || 'ltr' })
158
+ Object.assign(held, { className: 'drawn-words', open })
159
+ held.append(head, list(steps))
160
+ return held
161
+ }
89
162
 
90
163
  /** Pele's SVG in the colours given as its own properties (`fg`, `accent`, `series-1`…). @param {string} svg @param {Record<string, string>} props */
91
164
  export const coloured = (svg, props) => svg.replace(/^(<svg\b[^>]*>)/, `$1<style>svg{${Object.entries(props).map(([name, value]) => `--pele-${name}:${value.replace(/[<>;{}"]/g, '')}`).join(';')}}</style>`)
@@ -93,7 +166,7 @@ export const coloured = (svg, props) => svg.replace(/^(<svg\b[^>]*>)/, `$1<style
93
166
  /** The room's colours, as Pele names them: its ink and lines, and each of a chart's or a mind map's series a hue of its accent. @param {CSSStyleDeclaration} style */
94
167
  function tones(style) {
95
168
  const own = (/** @type {string} */ name) => style.getPropertyValue(`--${name}`).trim()
96
- return { bg: 'transparent', fg: own('ink'), muted: own('ink-soft'), line: own('ink-soft'), surface: own('glass'), 'surface-alt': own('line'), border: own('line-strong'), accent: own('flame'),
169
+ return { bg: 'transparent', fg: own('ink'), muted: own('ink-soft'), line: own('ink-soft'), surface: own('glass'), 'surface-alt': own('line'), border: own('ink-soft'), accent: own('flame'),
97
170
  font: style.fontFamily, ...Object.fromEntries([0, 1, 2, 3, 4, 5, 6, 7].map((n) => [`series-${n + 1}`, `oklch(from ${own('flame')} l max(c, 0.12) calc(h + ${n * 57}))`])) }
98
171
  }
99
172
 
@@ -135,14 +208,14 @@ export const drawing = (source, options, rtl = false) => {
135
208
  }
136
209
 
137
210
  /**
138
- * A diagram as a picture in an element's colours, at most as wide as given: its SVG and size, its address and its words.
211
+ * A diagram as a picture in an element's colours, at most as wide as given: its SVG and size, its address, and it told in words.
139
212
  * @param {string} source @param {Element} element @param {number} width
140
213
  */
141
214
  export async function picture(source, element, width) {
142
215
  const style = getComputedStyle(element)
143
216
  const drawn = await drawing(source, { fontFamily: style.fontFamily, links: false, images: false, autoDirection: true, maxWidth: Math.max(320, width) }, style.direction === 'rtl')
144
217
  const svg = coloured(drawn.svg, tones(style))
145
- return { ...drawn, svg, url: `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`, words: wordsOf(drawn.svg) }
218
+ return { ...drawn, svg, url: `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`, words: told(source, drawn.svg) }
146
219
  }
147
220
 
148
221
  const AppDiagram = typeof HTMLElement === 'undefined' ? null : class extends HTMLElement {
@@ -177,7 +250,8 @@ const AppDiagram = typeof HTMLElement === 'undefined' ? null : class extends HTM
177
250
  this.drawn = key
178
251
  try {
179
252
  const drawn = (this.shown = await picture(source, this, this.clientWidth))
180
- this.replaceChildren(Object.assign(document.createElement('img'), { src: drawn.url, alt: drawn.words }))
253
+ // Its words once it is whole, folded as they were if the room drew it again.
254
+ this.replaceChildren(Object.assign(document.createElement('img'), { src: drawn.url, alt: drawn.words.alt, lang: document.documentElement.lang }), ...(open ? [] : [wordsBelow(drawn.words, this.querySelector('details')?.open)]))
181
255
  } catch {
182
256
  // While it is written, a last line not whole yet can't be read: what was drawn stays.
183
257
  if (!open) this.dispatchEvent(new Event('unread'))
@@ -16,12 +16,15 @@ app-parts .part-card { min-inline-size: 0; padding: 0.75rem 0.85rem; border: 1px
16
16
  app-parts th .sorts { padding: 0; border: 0; background: none; font-weight: inherit; text-align: inherit; }
17
17
  app-parts .part-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.6rem 0.75rem; margin-block-end: 0.85rem; } app-parts .part-form :is(.button, label:has(textarea)) { grid-column: 1 / -1; } app-parts .part-form .button { justify-self: start; }
18
18
  app-parts .part-form label { display: grid; gap: 0.25rem; } app-parts .part-form label.tick { display: flex; align-items: center; gap: 0.5rem; }
19
+ app-parts .part-form label.slides { grid-template-columns: minmax(0, 1fr) 6.5rem; align-items: center; column-gap: 0.5rem; } app-parts .part-form label.slides > span { grid-column: 1 / -1; } app-parts .part-form input[type=range] { padding: 0; border: 0; background: none; accent-color: var(--flame); }
19
20
  app-parts .part-form textarea { box-sizing: border-box; inline-size: 100%; padding: 0.4em 0.8em; border: 1px solid var(--line-strong); border-radius: calc(var(--radius) * 0.4); background: var(--glass); }
20
21
  @media (forced-colors: active) { app-parts .part-card { border-color: CanvasText; } }
21
22
  /* A diagram (D291, D592): framed as the other widgets are, Pele's picture as wide as it needs up to the text's width, then scaled down. */
22
23
  .prose .diagram { position: relative; margin: 0 0 0.85rem; padding: 1rem; border: 1px solid var(--line); border-radius: 0.9rem; }
23
24
  .diagram app-diagram { display: block; }
24
25
  .diagram app-diagram img { display: block; max-inline-size: 100%; block-size: auto; margin-inline: auto; }
26
+ .drawn-words { margin-block-start: 0.35rem; font-size: 0.875rem; } .drawn-words summary { color: var(--ink-soft); cursor: pointer; } .drawn-words ul { margin-block: 0.25rem 0; padding-inline-start: 1.25rem; }
27
+ @media print { .drawn-words { display: none; } }
25
28
  /* An app on its Creations card, at half size and still, its Copy away; beside the task, the pane its frame (D553). */
26
29
  .creation-preview :is(app-page, app-parts) { zoom: 0.5; padding: 0; border: 0; } .creation-preview :is(app-page, app-parts) .drawn-foot { display: none; }
27
30
  :is(app-page, app-parts).beside { margin: 0; border: 0; border-radius: 0; }
@@ -253,10 +253,10 @@ class AppPage extends HTMLElement {
253
253
  * @param {Record<import('../../ui/csp.js').PageRight, boolean>} allows
254
254
  */
255
255
  shell(allows) {
256
- render(html`<iframe sandbox=${PAGE_SANDBOX} allow=${pageAllow(allows)} loading="lazy" src=${RELAY === null ? FRAME : nothing} srcdoc=${RELAY ?? nothing} title=${t(this.hasAttribute('map') ? 'interactive.map' : 'interactive.page')} @load=${this.begin}></iframe>
257
- <div class="drawn-foot">
256
+ render(html`<iframe sandbox=${PAGE_SANDBOX} allow=${pageAllow(allows)} loading="lazy" src=${RELAY === null ? FRAME : nothing} srcdoc=${RELAY ?? nothing} lang=${locale.value} title=${t(this.hasAttribute('map') ? 'interactive.map' : 'interactive.page')} @load=${this.begin}></iframe>
257
+ <div class="drawn-foot" lang=${locale.value}>
258
258
  <button class="icon-button subtle" aria-label=${t('action.copy')}
259
- @click=${() => navigator.clipboard.writeText(this.getAttribute('source') ?? '').then(() => notify(t('toast.copied')), () => notify(t('made.copyFailed')))}>${icons.copy}</button>
259
+ @click=${() => navigator.clipboard.writeText(this.getAttribute('source') ?? '').then(() => notify(t('toast.copied')), () => notify(t('made.copyFailed'), { alert: true }))}>${icons.copy}</button>
260
260
  ${this.hasAttribute('map') ? nothing : drawnActions('html', this.getAttribute('source') ?? '')}
261
261
  </div>`, this)
262
262
  }
@@ -300,7 +300,8 @@ class AppPage extends HTMLElement {
300
300
  async maps() {
301
301
  const [library, worker, css] = await Promise.all(['maplibre-gl.mjs', 'maplibre-gl-worker.js', 'maplibre-gl.css'].map((file) => part(`../../vendor/maplibre/${file}`)))
302
302
  const site = new URL(styles()[theme.peek() === 'dark' ? 'dark' : 'light']).hostname
303
- return { library, worker, css, styles: styles(), allowed: rights.peek().allows.maps, strings: { show: t('interactive.mapShow'), from: t('interactive.mapFrom', { site }) } }
303
+ return { library, worker, css, styles: styles(), allowed: rights.peek().allows.maps, strings: { show: t('interactive.mapShow'), from: t('interactive.mapFrom', { site }), map: t('interactive.map'), named: t('interactive.mapNamed', { places: '{places}' }),
304
+ zoomIn: t('interactive.zoomIn'), zoomOut: t('interactive.zoomOut'), credits: t('interactive.mapCredits'), words: t('interactive.inWords') } }
304
305
  }
305
306
 
306
307
  /** Maps allowed, from now on, unless the organisation says otherwise. */
@@ -336,10 +337,10 @@ function diagram(source, open) {
336
337
  /** @param {Event} event */
337
338
  const copy = (event) => {
338
339
  const shown = /** @type {HTMLElement & { picture: () => Promise<Blob> }} */ (/** @type {HTMLElement} */ (event.currentTarget).closest('figure')?.querySelector('app-diagram'))
339
- copyDrawing(source, shown.picture()).then(() => notify(t('toast.copied')), () => notify(t('made.copyFailed')))
340
+ copyDrawing(source, shown.picture()).then(() => notify(t('toast.copied')), () => notify(t('made.copyFailed'), { alert: true }))
340
341
  }
341
- return html`<figure class="diagram" aria-label=${t('interactive.diagram')}><app-diagram source=${source} ?open=${open} @unread=${() => { unread.value = new Set(unread.peek()).add(source) }}></app-diagram>
342
- <div class="drawn-foot"><button class="icon-button subtle" aria-label=${t('action.copy')} @click=${copy}>${icons.copy}</button>${drawnActions('mermaid', source)}</div></figure>`
342
+ return html`<figure class="diagram"><app-diagram source=${source} ?open=${open} @unread=${() => { unread.value = new Set(unread.peek()).add(source) }}></app-diagram>
343
+ <div class="drawn-foot" lang=${locale.value}><button class="icon-button subtle" aria-label=${t('action.copy')} @click=${copy}>${icons.copy}</button>${drawnActions('mermaid', source)}</div></figure>`
343
344
  }
344
345
 
345
346
  /** Whether a whole block is GeoJSON. @param {string} source */