@jean-is/render 0.8.0-rede3e4e8e9a5 → 0.10.0-rbdd0a4d699e2

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 (1799) hide show
  1. package/brand.js +1 -1
  2. package/caps/charts/charts.js +16 -7
  3. package/caps/charts/option.js +17 -0
  4. package/caps/files/office.js +16 -9
  5. package/caps/files/pdf.js +9 -5
  6. package/caps/games/file.js +2 -0
  7. package/caps/games/page.js +21 -7
  8. package/caps/games/shell.js +8 -6
  9. package/caps/interactive/apps.js +2 -5
  10. package/caps/interactive/diagram.js +1 -1
  11. package/caps/interactive/interactive.css +4 -1
  12. package/caps/interactive/interactive.js +50 -11
  13. package/caps/interactive/live.js +4 -4
  14. package/caps/interactive/map.js +11 -5
  15. package/caps/interactive/starts.js +15 -0
  16. package/caps/interactive/test.js +76 -0
  17. package/caps/interactive/view-parts.js +5 -2
  18. package/caps/layouts/layouts.js +35 -34
  19. package/caps/layouts/shapes.js +49 -33
  20. package/caps/layouts/types.d.ts +8 -0
  21. package/caps/made/paper.js +26 -9
  22. package/caps/receipt/der.js +1 -1
  23. package/caps/scores/scores.js +24 -4
  24. package/caps/scores/sound.js +9 -8
  25. package/caps/share/view.js +2 -1
  26. package/caps/skills/directory.js +10 -3
  27. package/caps/slides/brand.js +249 -0
  28. package/caps/slides/edit.js +13 -5
  29. package/caps/slides/kit-page.css +2 -1
  30. package/caps/slides/kit-page.js +43 -13
  31. package/caps/slides/kit-sample.js +1 -1
  32. package/caps/slides/save.js +3 -3
  33. package/caps/slides/slides.css +3 -0
  34. package/caps/slides/slides.js +6 -5
  35. package/caps/tables/formula.js +1 -1
  36. package/core/anthropic.js +10 -10
  37. package/core/deferred.js +5 -4
  38. package/core/events.js +9 -8
  39. package/core/files.js +27 -3
  40. package/core/fs.js +22 -76
  41. package/core/hooks.js +3 -3
  42. package/core/i18n.js +22 -19
  43. package/core/llm.js +16 -13
  44. package/core/loop.js +17 -5
  45. package/core/rules.js +1 -1
  46. package/core/settings.js +7 -59
  47. package/core/skills.js +1 -1
  48. package/core/vertex.js +1 -1
  49. package/core/zip.js +1 -1
  50. package/locales/am.json +38 -21
  51. package/locales/approvals/am.json +0 -2
  52. package/locales/approvals/ar.json +0 -2
  53. package/locales/approvals/bg.json +0 -2
  54. package/locales/approvals/bn.json +0 -2
  55. package/locales/approvals/br.json +7 -9
  56. package/locales/approvals/co.json +18 -20
  57. package/locales/approvals/cs.json +0 -2
  58. package/locales/approvals/da.json +0 -2
  59. package/locales/approvals/de.json +5 -7
  60. package/locales/approvals/el.json +0 -2
  61. package/locales/approvals/en.json +3 -5
  62. package/locales/approvals/es.json +7 -9
  63. package/locales/approvals/fa.json +0 -2
  64. package/locales/approvals/fi.json +0 -2
  65. package/locales/approvals/fr-CA.json +7 -9
  66. package/locales/approvals/fr.json +7 -9
  67. package/locales/approvals/ha.json +0 -2
  68. package/locales/approvals/he.json +0 -2
  69. package/locales/approvals/hi.json +0 -2
  70. package/locales/approvals/hr.json +0 -2
  71. package/locales/approvals/hu.json +0 -2
  72. package/locales/approvals/id.json +0 -2
  73. package/locales/approvals/it.json +10 -12
  74. package/locales/approvals/ja.json +8 -10
  75. package/locales/approvals/ko.json +21 -23
  76. package/locales/approvals/mr.json +0 -2
  77. package/locales/approvals/ms.json +0 -2
  78. package/locales/approvals/nl.json +0 -2
  79. package/locales/approvals/pl.json +0 -2
  80. package/locales/approvals/pt.json +6 -8
  81. package/locales/approvals/ro.json +0 -2
  82. package/locales/approvals/ru.json +0 -2
  83. package/locales/approvals/sk.json +0 -2
  84. package/locales/approvals/sv.json +0 -2
  85. package/locales/approvals/sw.json +0 -2
  86. package/locales/approvals/ta.json +0 -2
  87. package/locales/approvals/te.json +0 -2
  88. package/locales/approvals/th.json +0 -2
  89. package/locales/approvals/tl.json +0 -2
  90. package/locales/approvals/tr.json +0 -2
  91. package/locales/approvals/uk.json +0 -2
  92. package/locales/approvals/ur.json +0 -2
  93. package/locales/approvals/vi.json +0 -2
  94. package/locales/approvals/yo.json +0 -2
  95. package/locales/approvals/zh-Hans.json +5 -7
  96. package/locales/approvals/zh-Hant.json +4 -6
  97. package/locales/ar.json +38 -21
  98. package/locales/backup/de.json +1 -1
  99. package/locales/backup/ko.json +1 -1
  100. package/locales/backup/pt.json +1 -1
  101. package/locales/backup/zh-Hans.json +1 -1
  102. package/locales/bg.json +38 -21
  103. package/locales/bn.json +37 -20
  104. package/locales/br.json +64 -47
  105. package/locales/brain-local/ja.json +1 -1
  106. package/locales/brain-local/pt.json +3 -3
  107. package/locales/brain-local/zh-Hans.json +1 -1
  108. package/locales/brain-local/zh-Hant.json +3 -3
  109. package/locales/brains/am.json +2 -1
  110. package/locales/brains/ar.json +2 -1
  111. package/locales/brains/bg.json +2 -1
  112. package/locales/brains/bn.json +2 -1
  113. package/locales/brains/br.json +11 -10
  114. package/locales/brains/co.json +13 -12
  115. package/locales/brains/cs.json +2 -1
  116. package/locales/brains/da.json +2 -1
  117. package/locales/brains/de.json +8 -7
  118. package/locales/brains/el.json +2 -1
  119. package/locales/brains/en.json +7 -6
  120. package/locales/brains/es.json +16 -15
  121. package/locales/brains/fa.json +2 -1
  122. package/locales/brains/fi.json +2 -1
  123. package/locales/brains/fr-CA.json +10 -9
  124. package/locales/brains/fr.json +9 -8
  125. package/locales/brains/ha.json +2 -1
  126. package/locales/brains/he.json +2 -1
  127. package/locales/brains/hi.json +2 -1
  128. package/locales/brains/hr.json +2 -1
  129. package/locales/brains/hu.json +2 -1
  130. package/locales/brains/id.json +2 -1
  131. package/locales/brains/it.json +9 -8
  132. package/locales/brains/ja.json +10 -9
  133. package/locales/brains/ko.json +14 -13
  134. package/locales/brains/mr.json +2 -1
  135. package/locales/brains/ms.json +2 -1
  136. package/locales/brains/nl.json +2 -1
  137. package/locales/brains/pl.json +2 -1
  138. package/locales/brains/pt.json +13 -12
  139. package/locales/brains/ro.json +2 -1
  140. package/locales/brains/ru.json +2 -1
  141. package/locales/brains/sk.json +2 -1
  142. package/locales/brains/sv.json +2 -1
  143. package/locales/brains/sw.json +2 -1
  144. package/locales/brains/ta.json +2 -1
  145. package/locales/brains/te.json +2 -1
  146. package/locales/brains/th.json +2 -1
  147. package/locales/brains/tl.json +2 -1
  148. package/locales/brains/tr.json +2 -1
  149. package/locales/brains/uk.json +2 -1
  150. package/locales/brains/ur.json +2 -1
  151. package/locales/brains/vi.json +2 -1
  152. package/locales/brains/yo.json +2 -1
  153. package/locales/brains/zh-Hans.json +8 -7
  154. package/locales/brains/zh-Hant.json +15 -14
  155. package/locales/browser/co.json +2 -2
  156. package/locales/browser/es.json +1 -1
  157. package/locales/browser/it.json +1 -1
  158. package/locales/browser/ja.json +2 -2
  159. package/locales/browser/ko.json +6 -6
  160. package/locales/browser/pt.json +2 -2
  161. package/locales/camera/br.json +1 -1
  162. package/locales/camera/co.json +1 -1
  163. package/locales/camera/de.json +1 -1
  164. package/locales/camera/it.json +1 -1
  165. package/locales/camera/ja.json +2 -2
  166. package/locales/camera/ko.json +2 -2
  167. package/locales/camera/zh-Hant.json +1 -1
  168. package/locales/case/br.json +1 -1
  169. package/locales/case/co.json +10 -10
  170. package/locales/case/de.json +1 -1
  171. package/locales/case/es.json +6 -6
  172. package/locales/case/fr-CA.json +9 -9
  173. package/locales/case/fr.json +9 -9
  174. package/locales/case/it.json +8 -8
  175. package/locales/case/ja.json +6 -6
  176. package/locales/case/ko.json +1 -1
  177. package/locales/case/pt.json +8 -8
  178. package/locales/case/zh-Hant.json +1 -1
  179. package/locales/certificates/co.json +7 -7
  180. package/locales/certificates/es.json +2 -2
  181. package/locales/certificates/fr-CA.json +7 -7
  182. package/locales/certificates/fr.json +7 -7
  183. package/locales/certificates/it.json +3 -3
  184. package/locales/certificates/ja.json +2 -2
  185. package/locales/certificates/ko.json +1 -1
  186. package/locales/certificates/pt.json +2 -2
  187. package/locales/certificates/zh-Hans.json +5 -5
  188. package/locales/certificates/zh-Hant.json +6 -6
  189. package/locales/charts/br.json +1 -1
  190. package/locales/charts/co.json +1 -1
  191. package/locales/charts/de.json +1 -1
  192. package/locales/charts/ko.json +1 -1
  193. package/locales/co.json +53 -36
  194. package/locales/compact/es.json +1 -1
  195. package/locales/compact/fr-CA.json +1 -1
  196. package/locales/compact/fr.json +1 -1
  197. package/locales/compact/it.json +1 -1
  198. package/locales/compact/pt.json +2 -2
  199. package/locales/computer/br.json +8 -8
  200. package/locales/computer/co.json +14 -14
  201. package/locales/computer/de.json +4 -4
  202. package/locales/computer/en.json +6 -6
  203. package/locales/computer/es.json +10 -10
  204. package/locales/computer/fr-CA.json +17 -17
  205. package/locales/computer/fr.json +17 -17
  206. package/locales/computer/it.json +9 -9
  207. package/locales/computer/ja.json +8 -8
  208. package/locales/computer/ko.json +14 -14
  209. package/locales/computer/pt.json +10 -10
  210. package/locales/computer/zh-Hans.json +8 -8
  211. package/locales/computer/zh-Hant.json +9 -9
  212. package/locales/connections/am.json +4 -2
  213. package/locales/connections/ar.json +4 -2
  214. package/locales/connections/bg.json +4 -2
  215. package/locales/connections/bn.json +4 -2
  216. package/locales/connections/br.json +5 -3
  217. package/locales/connections/co.json +17 -15
  218. package/locales/connections/cs.json +4 -2
  219. package/locales/connections/da.json +4 -2
  220. package/locales/connections/de.json +4 -2
  221. package/locales/connections/el.json +4 -2
  222. package/locales/connections/en.json +5 -3
  223. package/locales/connections/es.json +7 -5
  224. package/locales/connections/fa.json +4 -2
  225. package/locales/connections/fi.json +4 -2
  226. package/locales/connections/fr-CA.json +5 -3
  227. package/locales/connections/fr.json +5 -3
  228. package/locales/connections/ha.json +4 -2
  229. package/locales/connections/he.json +4 -2
  230. package/locales/connections/hi.json +4 -2
  231. package/locales/connections/hr.json +4 -2
  232. package/locales/connections/hu.json +4 -2
  233. package/locales/connections/id.json +4 -2
  234. package/locales/connections/it.json +13 -11
  235. package/locales/connections/ja.json +28 -26
  236. package/locales/connections/ko.json +7 -5
  237. package/locales/connections/mr.json +4 -2
  238. package/locales/connections/ms.json +4 -2
  239. package/locales/connections/nl.json +4 -2
  240. package/locales/connections/pl.json +4 -2
  241. package/locales/connections/pt.json +10 -8
  242. package/locales/connections/ro.json +4 -2
  243. package/locales/connections/ru.json +4 -2
  244. package/locales/connections/sk.json +4 -2
  245. package/locales/connections/sv.json +4 -2
  246. package/locales/connections/sw.json +4 -2
  247. package/locales/connections/ta.json +4 -2
  248. package/locales/connections/te.json +4 -2
  249. package/locales/connections/th.json +4 -2
  250. package/locales/connections/tl.json +4 -2
  251. package/locales/connections/tr.json +4 -2
  252. package/locales/connections/uk.json +4 -2
  253. package/locales/connections/ur.json +4 -2
  254. package/locales/connections/vi.json +4 -2
  255. package/locales/connections/yo.json +4 -2
  256. package/locales/connections/zh-Hans.json +10 -8
  257. package/locales/connections/zh-Hant.json +23 -21
  258. package/locales/creations/am.json +8 -0
  259. package/locales/creations/ar.json +8 -0
  260. package/locales/creations/bg.json +8 -0
  261. package/locales/creations/bn.json +8 -0
  262. package/locales/creations/br.json +22 -14
  263. package/locales/creations/co.json +19 -11
  264. package/locales/creations/cs.json +8 -0
  265. package/locales/creations/da.json +8 -0
  266. package/locales/creations/de.json +9 -1
  267. package/locales/creations/el.json +8 -0
  268. package/locales/creations/en.json +9 -1
  269. package/locales/creations/es.json +17 -9
  270. package/locales/creations/fa.json +8 -0
  271. package/locales/creations/fi.json +8 -0
  272. package/locales/creations/fr-CA.json +9 -1
  273. package/locales/creations/fr.json +17 -9
  274. package/locales/creations/ha.json +8 -0
  275. package/locales/creations/he.json +8 -0
  276. package/locales/creations/hi.json +8 -0
  277. package/locales/creations/hr.json +8 -0
  278. package/locales/creations/hu.json +8 -0
  279. package/locales/creations/id.json +8 -0
  280. package/locales/creations/it.json +16 -8
  281. package/locales/creations/ja.json +9 -1
  282. package/locales/creations/ko.json +9 -1
  283. package/locales/creations/mr.json +8 -0
  284. package/locales/creations/ms.json +8 -0
  285. package/locales/creations/nl.json +8 -0
  286. package/locales/creations/pl.json +8 -0
  287. package/locales/creations/pt.json +16 -8
  288. package/locales/creations/ro.json +8 -0
  289. package/locales/creations/ru.json +8 -0
  290. package/locales/creations/sk.json +8 -0
  291. package/locales/creations/sv.json +8 -0
  292. package/locales/creations/sw.json +8 -0
  293. package/locales/creations/ta.json +8 -0
  294. package/locales/creations/te.json +8 -0
  295. package/locales/creations/th.json +8 -0
  296. package/locales/creations/tl.json +8 -0
  297. package/locales/creations/tr.json +8 -0
  298. package/locales/creations/uk.json +8 -0
  299. package/locales/creations/ur.json +8 -0
  300. package/locales/creations/vi.json +8 -0
  301. package/locales/creations/yo.json +8 -0
  302. package/locales/creations/zh-Hans.json +9 -1
  303. package/locales/creations/zh-Hant.json +9 -1
  304. package/locales/cs.json +38 -21
  305. package/locales/da.json +37 -20
  306. package/locales/data/am.json +12 -1
  307. package/locales/data/ar.json +12 -1
  308. package/locales/data/bg.json +12 -1
  309. package/locales/data/bn.json +12 -1
  310. package/locales/data/br.json +14 -3
  311. package/locales/data/co.json +15 -4
  312. package/locales/data/cs.json +12 -1
  313. package/locales/data/da.json +12 -1
  314. package/locales/data/de.json +12 -1
  315. package/locales/data/el.json +12 -1
  316. package/locales/data/en.json +12 -1
  317. package/locales/data/es.json +16 -5
  318. package/locales/data/fa.json +12 -1
  319. package/locales/data/fi.json +12 -1
  320. package/locales/data/fr-CA.json +12 -1
  321. package/locales/data/fr.json +12 -1
  322. package/locales/data/ha.json +12 -1
  323. package/locales/data/he.json +12 -1
  324. package/locales/data/hi.json +12 -1
  325. package/locales/data/hr.json +12 -1
  326. package/locales/data/hu.json +12 -1
  327. package/locales/data/id.json +12 -1
  328. package/locales/data/it.json +13 -2
  329. package/locales/data/ja.json +20 -9
  330. package/locales/data/ko.json +14 -3
  331. package/locales/data/mr.json +12 -1
  332. package/locales/data/ms.json +12 -1
  333. package/locales/data/nl.json +12 -1
  334. package/locales/data/pl.json +12 -1
  335. package/locales/data/pt.json +17 -6
  336. package/locales/data/ro.json +12 -1
  337. package/locales/data/ru.json +12 -1
  338. package/locales/data/sk.json +12 -1
  339. package/locales/data/sv.json +12 -1
  340. package/locales/data/sw.json +12 -1
  341. package/locales/data/ta.json +12 -1
  342. package/locales/data/te.json +12 -1
  343. package/locales/data/th.json +12 -1
  344. package/locales/data/tl.json +12 -1
  345. package/locales/data/tr.json +12 -1
  346. package/locales/data/uk.json +12 -1
  347. package/locales/data/ur.json +12 -1
  348. package/locales/data/vi.json +12 -1
  349. package/locales/data/yo.json +12 -1
  350. package/locales/data/zh-Hans.json +14 -3
  351. package/locales/data/zh-Hant.json +16 -5
  352. package/locales/de.json +52 -35
  353. package/locales/designs/br.json +9 -9
  354. package/locales/designs/co.json +8 -8
  355. package/locales/designs/de.json +1 -1
  356. package/locales/designs/en.json +3 -3
  357. package/locales/designs/fr-CA.json +4 -4
  358. package/locales/designs/fr.json +5 -5
  359. package/locales/designs/it.json +6 -6
  360. package/locales/designs/ja.json +10 -10
  361. package/locales/designs/ko.json +6 -6
  362. package/locales/designs/pt.json +3 -3
  363. package/locales/designs/zh-Hans.json +1 -1
  364. package/locales/designs/zh-Hant.json +1 -1
  365. package/locales/devices/am.json +106 -0
  366. package/locales/devices/ar.json +118 -0
  367. package/locales/devices/bg.json +106 -0
  368. package/locales/devices/bn.json +106 -0
  369. package/locales/devices/br.json +115 -0
  370. package/locales/devices/co.json +109 -0
  371. package/locales/devices/cs.json +112 -0
  372. package/locales/devices/da.json +106 -0
  373. package/locales/devices/de.json +106 -0
  374. package/locales/devices/el.json +106 -0
  375. package/locales/devices/en.json +106 -0
  376. package/locales/devices/es.json +109 -0
  377. package/locales/devices/fa.json +106 -0
  378. package/locales/devices/fi.json +106 -0
  379. package/locales/devices/fr-CA.json +109 -0
  380. package/locales/devices/fr.json +109 -0
  381. package/locales/devices/ha.json +106 -0
  382. package/locales/devices/he.json +109 -0
  383. package/locales/devices/hi.json +106 -0
  384. package/locales/devices/hr.json +109 -0
  385. package/locales/devices/hu.json +106 -0
  386. package/locales/devices/id.json +103 -0
  387. package/locales/devices/it.json +109 -0
  388. package/locales/devices/ja.json +103 -0
  389. package/locales/devices/ko.json +103 -0
  390. package/locales/devices/mr.json +106 -0
  391. package/locales/devices/ms.json +103 -0
  392. package/locales/devices/nl.json +106 -0
  393. package/locales/devices/pl.json +112 -0
  394. package/locales/devices/pt.json +109 -0
  395. package/locales/devices/ro.json +109 -0
  396. package/locales/devices/ru.json +112 -0
  397. package/locales/devices/sk.json +112 -0
  398. package/locales/devices/sv.json +106 -0
  399. package/locales/devices/sw.json +106 -0
  400. package/locales/devices/ta.json +106 -0
  401. package/locales/devices/te.json +106 -0
  402. package/locales/devices/th.json +103 -0
  403. package/locales/devices/tl.json +106 -0
  404. package/locales/devices/tr.json +106 -0
  405. package/locales/devices/uk.json +112 -0
  406. package/locales/devices/ur.json +106 -0
  407. package/locales/devices/vi.json +103 -0
  408. package/locales/devices/yo.json +103 -0
  409. package/locales/devices/zh-Hans.json +103 -0
  410. package/locales/devices/zh-Hant.json +103 -0
  411. package/locales/dialogs/am.json +26 -11
  412. package/locales/dialogs/ar.json +26 -11
  413. package/locales/dialogs/bg.json +26 -11
  414. package/locales/dialogs/bn.json +26 -11
  415. package/locales/dialogs/br.json +45 -30
  416. package/locales/dialogs/co.json +47 -32
  417. package/locales/dialogs/cs.json +26 -11
  418. package/locales/dialogs/da.json +26 -11
  419. package/locales/dialogs/de.json +39 -24
  420. package/locales/dialogs/el.json +26 -11
  421. package/locales/dialogs/en.json +34 -19
  422. package/locales/dialogs/es.json +54 -39
  423. package/locales/dialogs/fa.json +26 -11
  424. package/locales/dialogs/fi.json +26 -11
  425. package/locales/dialogs/fr-CA.json +43 -28
  426. package/locales/dialogs/fr.json +43 -28
  427. package/locales/dialogs/ha.json +26 -11
  428. package/locales/dialogs/he.json +26 -11
  429. package/locales/dialogs/hi.json +26 -11
  430. package/locales/dialogs/hr.json +26 -11
  431. package/locales/dialogs/hu.json +26 -11
  432. package/locales/dialogs/id.json +26 -11
  433. package/locales/dialogs/it.json +48 -33
  434. package/locales/dialogs/ja.json +78 -63
  435. package/locales/dialogs/ko.json +49 -34
  436. package/locales/dialogs/mr.json +26 -11
  437. package/locales/dialogs/ms.json +26 -11
  438. package/locales/dialogs/nl.json +26 -11
  439. package/locales/dialogs/pl.json +26 -11
  440. package/locales/dialogs/pt.json +52 -37
  441. package/locales/dialogs/ro.json +26 -11
  442. package/locales/dialogs/ru.json +26 -11
  443. package/locales/dialogs/sk.json +26 -11
  444. package/locales/dialogs/sv.json +26 -11
  445. package/locales/dialogs/sw.json +26 -11
  446. package/locales/dialogs/ta.json +26 -11
  447. package/locales/dialogs/te.json +26 -11
  448. package/locales/dialogs/th.json +26 -11
  449. package/locales/dialogs/tl.json +26 -11
  450. package/locales/dialogs/tr.json +26 -11
  451. package/locales/dialogs/uk.json +26 -11
  452. package/locales/dialogs/ur.json +26 -11
  453. package/locales/dialogs/vi.json +26 -11
  454. package/locales/dialogs/yo.json +26 -11
  455. package/locales/dialogs/zh-Hans.json +47 -32
  456. package/locales/dialogs/zh-Hant.json +57 -42
  457. package/locales/documents/am.json +12 -2
  458. package/locales/documents/ar.json +12 -2
  459. package/locales/documents/bg.json +12 -2
  460. package/locales/documents/bn.json +12 -2
  461. package/locales/documents/br.json +12 -2
  462. package/locales/documents/co.json +15 -5
  463. package/locales/documents/cs.json +12 -2
  464. package/locales/documents/da.json +12 -2
  465. package/locales/documents/de.json +14 -4
  466. package/locales/documents/el.json +12 -2
  467. package/locales/documents/en.json +13 -3
  468. package/locales/documents/es.json +13 -3
  469. package/locales/documents/fa.json +12 -2
  470. package/locales/documents/fi.json +12 -2
  471. package/locales/documents/fr-CA.json +13 -3
  472. package/locales/documents/fr.json +13 -3
  473. package/locales/documents/ha.json +12 -2
  474. package/locales/documents/he.json +12 -2
  475. package/locales/documents/hi.json +12 -2
  476. package/locales/documents/hr.json +12 -2
  477. package/locales/documents/hu.json +12 -2
  478. package/locales/documents/id.json +12 -2
  479. package/locales/documents/it.json +13 -3
  480. package/locales/documents/ja.json +26 -16
  481. package/locales/documents/ko.json +14 -4
  482. package/locales/documents/mr.json +12 -2
  483. package/locales/documents/ms.json +12 -2
  484. package/locales/documents/nl.json +12 -2
  485. package/locales/documents/pl.json +12 -2
  486. package/locales/documents/pt.json +16 -6
  487. package/locales/documents/ro.json +12 -2
  488. package/locales/documents/ru.json +12 -2
  489. package/locales/documents/sk.json +12 -2
  490. package/locales/documents/sv.json +12 -2
  491. package/locales/documents/sw.json +12 -2
  492. package/locales/documents/ta.json +12 -2
  493. package/locales/documents/te.json +12 -2
  494. package/locales/documents/th.json +12 -2
  495. package/locales/documents/tl.json +12 -2
  496. package/locales/documents/tr.json +12 -2
  497. package/locales/documents/uk.json +12 -2
  498. package/locales/documents/ur.json +12 -2
  499. package/locales/documents/vi.json +12 -2
  500. package/locales/documents/yo.json +12 -2
  501. package/locales/documents/zh-Hans.json +14 -4
  502. package/locales/documents/zh-Hant.json +14 -4
  503. package/locales/el.json +38 -21
  504. package/locales/en.json +44 -27
  505. package/locales/enterprise/br.json +13 -13
  506. package/locales/enterprise/co.json +14 -14
  507. package/locales/enterprise/de.json +12 -12
  508. package/locales/enterprise/en.json +4 -4
  509. package/locales/enterprise/es.json +8 -8
  510. package/locales/enterprise/fr-CA.json +7 -7
  511. package/locales/enterprise/fr.json +11 -11
  512. package/locales/enterprise/it.json +9 -9
  513. package/locales/enterprise/ja.json +17 -17
  514. package/locales/enterprise/ko.json +12 -12
  515. package/locales/enterprise/pt.json +11 -11
  516. package/locales/enterprise/zh-Hans.json +22 -22
  517. package/locales/enterprise/zh-Hant.json +25 -25
  518. package/locales/es.json +52 -35
  519. package/locales/extensions/am.json +2 -1
  520. package/locales/extensions/ar.json +2 -1
  521. package/locales/extensions/bg.json +2 -1
  522. package/locales/extensions/bn.json +2 -1
  523. package/locales/extensions/br.json +12 -11
  524. package/locales/extensions/co.json +8 -7
  525. package/locales/extensions/cs.json +2 -1
  526. package/locales/extensions/da.json +2 -1
  527. package/locales/extensions/de.json +3 -2
  528. package/locales/extensions/el.json +2 -1
  529. package/locales/extensions/en.json +3 -2
  530. package/locales/extensions/es.json +4 -3
  531. package/locales/extensions/fa.json +2 -1
  532. package/locales/extensions/fi.json +2 -1
  533. package/locales/extensions/fr-CA.json +7 -6
  534. package/locales/extensions/fr.json +7 -6
  535. package/locales/extensions/ha.json +2 -1
  536. package/locales/extensions/he.json +2 -1
  537. package/locales/extensions/hi.json +2 -1
  538. package/locales/extensions/hr.json +2 -1
  539. package/locales/extensions/hu.json +2 -1
  540. package/locales/extensions/id.json +2 -1
  541. package/locales/extensions/it.json +5 -4
  542. package/locales/extensions/ja.json +7 -6
  543. package/locales/extensions/ko.json +24 -23
  544. package/locales/extensions/mr.json +2 -1
  545. package/locales/extensions/ms.json +2 -1
  546. package/locales/extensions/nl.json +2 -1
  547. package/locales/extensions/pl.json +2 -1
  548. package/locales/extensions/pt.json +5 -4
  549. package/locales/extensions/ro.json +2 -1
  550. package/locales/extensions/ru.json +2 -1
  551. package/locales/extensions/sk.json +2 -1
  552. package/locales/extensions/sv.json +2 -1
  553. package/locales/extensions/sw.json +2 -1
  554. package/locales/extensions/ta.json +2 -1
  555. package/locales/extensions/te.json +2 -1
  556. package/locales/extensions/th.json +2 -1
  557. package/locales/extensions/tl.json +2 -1
  558. package/locales/extensions/tr.json +2 -1
  559. package/locales/extensions/uk.json +2 -1
  560. package/locales/extensions/ur.json +2 -1
  561. package/locales/extensions/vi.json +2 -1
  562. package/locales/extensions/yo.json +2 -1
  563. package/locales/extensions/zh-Hans.json +5 -4
  564. package/locales/extensions/zh-Hant.json +9 -8
  565. package/locales/fa.json +37 -20
  566. package/locales/feedback/am.json +7 -0
  567. package/locales/feedback/ar.json +7 -0
  568. package/locales/feedback/bg.json +7 -0
  569. package/locales/feedback/bn.json +7 -0
  570. package/locales/feedback/br.json +7 -0
  571. package/locales/feedback/co.json +7 -0
  572. package/locales/feedback/cs.json +7 -0
  573. package/locales/feedback/da.json +7 -0
  574. package/locales/feedback/de.json +7 -0
  575. package/locales/feedback/el.json +7 -0
  576. package/locales/feedback/en.json +7 -0
  577. package/locales/feedback/es.json +7 -0
  578. package/locales/feedback/fa.json +7 -0
  579. package/locales/feedback/fi.json +7 -0
  580. package/locales/feedback/fr-CA.json +7 -0
  581. package/locales/feedback/fr.json +7 -0
  582. package/locales/feedback/ha.json +7 -0
  583. package/locales/feedback/he.json +7 -0
  584. package/locales/feedback/hi.json +7 -0
  585. package/locales/feedback/hr.json +7 -0
  586. package/locales/feedback/hu.json +7 -0
  587. package/locales/feedback/id.json +7 -0
  588. package/locales/feedback/it.json +7 -0
  589. package/locales/feedback/ja.json +7 -0
  590. package/locales/feedback/ko.json +7 -0
  591. package/locales/feedback/mr.json +7 -0
  592. package/locales/feedback/ms.json +7 -0
  593. package/locales/feedback/nl.json +7 -0
  594. package/locales/feedback/pl.json +7 -0
  595. package/locales/feedback/pt.json +7 -0
  596. package/locales/feedback/ro.json +7 -0
  597. package/locales/feedback/ru.json +7 -0
  598. package/locales/feedback/sk.json +7 -0
  599. package/locales/feedback/sv.json +7 -0
  600. package/locales/feedback/sw.json +7 -0
  601. package/locales/feedback/ta.json +7 -0
  602. package/locales/feedback/te.json +7 -0
  603. package/locales/feedback/th.json +7 -0
  604. package/locales/feedback/tl.json +7 -0
  605. package/locales/feedback/tr.json +7 -0
  606. package/locales/feedback/uk.json +7 -0
  607. package/locales/feedback/ur.json +7 -0
  608. package/locales/feedback/vi.json +7 -0
  609. package/locales/feedback/yo.json +7 -0
  610. package/locales/feedback/zh-Hans.json +7 -0
  611. package/locales/feedback/zh-Hant.json +7 -0
  612. package/locales/fi.json +38 -21
  613. package/locales/files/am.json +11 -0
  614. package/locales/files/ar.json +11 -0
  615. package/locales/files/bg.json +11 -0
  616. package/locales/files/bn.json +11 -0
  617. package/locales/files/br.json +11 -0
  618. package/locales/files/co.json +11 -0
  619. package/locales/files/cs.json +11 -0
  620. package/locales/files/da.json +11 -0
  621. package/locales/files/de.json +11 -0
  622. package/locales/files/el.json +11 -0
  623. package/locales/files/en.json +11 -0
  624. package/locales/files/es.json +11 -0
  625. package/locales/files/fa.json +11 -0
  626. package/locales/files/fi.json +11 -0
  627. package/locales/files/fr-CA.json +11 -0
  628. package/locales/files/fr.json +11 -0
  629. package/locales/files/ha.json +11 -0
  630. package/locales/files/he.json +11 -0
  631. package/locales/files/hi.json +11 -0
  632. package/locales/files/hr.json +11 -0
  633. package/locales/files/hu.json +11 -0
  634. package/locales/files/id.json +11 -0
  635. package/locales/files/it.json +11 -0
  636. package/locales/files/ja.json +11 -0
  637. package/locales/files/ko.json +11 -0
  638. package/locales/files/mr.json +11 -0
  639. package/locales/files/ms.json +11 -0
  640. package/locales/files/nl.json +11 -0
  641. package/locales/files/pl.json +11 -0
  642. package/locales/files/pt.json +11 -0
  643. package/locales/files/ro.json +11 -0
  644. package/locales/files/ru.json +11 -0
  645. package/locales/files/sk.json +11 -0
  646. package/locales/files/sv.json +11 -0
  647. package/locales/files/sw.json +11 -0
  648. package/locales/files/ta.json +11 -0
  649. package/locales/files/te.json +11 -0
  650. package/locales/files/th.json +11 -0
  651. package/locales/files/tl.json +11 -0
  652. package/locales/files/tr.json +11 -0
  653. package/locales/files/uk.json +11 -0
  654. package/locales/files/ur.json +11 -0
  655. package/locales/files/vi.json +11 -0
  656. package/locales/files/yo.json +11 -0
  657. package/locales/files/zh-Hans.json +11 -0
  658. package/locales/files/zh-Hant.json +11 -0
  659. package/locales/first/br.json +5 -5
  660. package/locales/first/co.json +1 -1
  661. package/locales/first/es.json +4 -4
  662. package/locales/first/fr-CA.json +1 -1
  663. package/locales/first/fr.json +1 -1
  664. package/locales/first/it.json +1 -1
  665. package/locales/first/ja.json +7 -7
  666. package/locales/first/ko.json +3 -3
  667. package/locales/first/pt.json +3 -3
  668. package/locales/first/zh-Hans.json +2 -2
  669. package/locales/first/zh-Hant.json +3 -3
  670. package/locales/flows/am.json +3 -0
  671. package/locales/flows/ar.json +3 -0
  672. package/locales/flows/bg.json +3 -0
  673. package/locales/flows/bn.json +3 -0
  674. package/locales/flows/br.json +10 -7
  675. package/locales/flows/co.json +7 -4
  676. package/locales/flows/cs.json +3 -0
  677. package/locales/flows/da.json +3 -0
  678. package/locales/flows/de.json +5 -2
  679. package/locales/flows/el.json +3 -0
  680. package/locales/flows/en.json +3 -0
  681. package/locales/flows/es.json +5 -2
  682. package/locales/flows/fa.json +3 -0
  683. package/locales/flows/fi.json +3 -0
  684. package/locales/flows/fr-CA.json +6 -3
  685. package/locales/flows/fr.json +6 -3
  686. package/locales/flows/ha.json +3 -0
  687. package/locales/flows/he.json +3 -0
  688. package/locales/flows/hi.json +3 -0
  689. package/locales/flows/hr.json +3 -0
  690. package/locales/flows/hu.json +3 -0
  691. package/locales/flows/id.json +3 -0
  692. package/locales/flows/it.json +5 -2
  693. package/locales/flows/ja.json +7 -4
  694. package/locales/flows/ko.json +10 -7
  695. package/locales/flows/mr.json +3 -0
  696. package/locales/flows/ms.json +3 -0
  697. package/locales/flows/nl.json +3 -0
  698. package/locales/flows/pl.json +3 -0
  699. package/locales/flows/pt.json +9 -6
  700. package/locales/flows/ro.json +3 -0
  701. package/locales/flows/ru.json +3 -0
  702. package/locales/flows/sk.json +3 -0
  703. package/locales/flows/sv.json +3 -0
  704. package/locales/flows/sw.json +3 -0
  705. package/locales/flows/ta.json +3 -0
  706. package/locales/flows/te.json +3 -0
  707. package/locales/flows/th.json +3 -0
  708. package/locales/flows/tl.json +3 -0
  709. package/locales/flows/tr.json +3 -0
  710. package/locales/flows/uk.json +3 -0
  711. package/locales/flows/ur.json +3 -0
  712. package/locales/flows/vi.json +3 -0
  713. package/locales/flows/yo.json +3 -0
  714. package/locales/flows/zh-Hans.json +8 -5
  715. package/locales/flows/zh-Hant.json +11 -8
  716. package/locales/folders/br.json +4 -4
  717. package/locales/folders/de.json +1 -1
  718. package/locales/folders/es.json +2 -2
  719. package/locales/folders/ja.json +2 -2
  720. package/locales/folders/ko.json +3 -3
  721. package/locales/folders/pt.json +2 -2
  722. package/locales/folders/zh-Hans.json +2 -2
  723. package/locales/folders/zh-Hant.json +7 -7
  724. package/locales/fr-CA.json +71 -54
  725. package/locales/fr.json +68 -51
  726. package/locales/games/br.json +2 -2
  727. package/locales/ha.json +37 -20
  728. package/locales/he.json +37 -20
  729. package/locales/hi.json +37 -20
  730. package/locales/hr.json +38 -21
  731. package/locales/hu.json +37 -20
  732. package/locales/id.json +38 -21
  733. package/locales/interactive/br.json +8 -8
  734. package/locales/interactive/co.json +5 -5
  735. package/locales/interactive/es.json +1 -1
  736. package/locales/interactive/it.json +1 -1
  737. package/locales/interactive/ja.json +3 -3
  738. package/locales/interactive/ko.json +3 -3
  739. package/locales/interactive/pt.json +2 -2
  740. package/locales/interactive/zh-Hans.json +1 -1
  741. package/locales/interactive/zh-Hant.json +6 -6
  742. package/locales/it.json +75 -58
  743. package/locales/ja.json +67 -50
  744. package/locales/ko.json +61 -44
  745. package/locales/layouts/ja.json +1 -1
  746. package/locales/layouts/zh-Hans.json +1 -1
  747. package/locales/layouts/zh-Hant.json +1 -1
  748. package/locales/lock/br.json +3 -3
  749. package/locales/lock/co.json +4 -4
  750. package/locales/lock/de.json +4 -4
  751. package/locales/lock/en.json +1 -1
  752. package/locales/lock/es.json +1 -1
  753. package/locales/lock/fr-CA.json +3 -3
  754. package/locales/lock/fr.json +3 -3
  755. package/locales/lock/it.json +5 -5
  756. package/locales/lock/ja.json +6 -6
  757. package/locales/lock/ko.json +2 -2
  758. package/locales/lock/pt.json +1 -1
  759. package/locales/lock/zh-Hans.json +3 -3
  760. package/locales/lock/zh-Hant.json +3 -3
  761. package/locales/look/am.json +5 -1
  762. package/locales/look/ar.json +5 -1
  763. package/locales/look/bg.json +5 -1
  764. package/locales/look/bn.json +5 -1
  765. package/locales/look/br.json +14 -10
  766. package/locales/look/co.json +5 -1
  767. package/locales/look/cs.json +5 -1
  768. package/locales/look/da.json +5 -1
  769. package/locales/look/de.json +5 -1
  770. package/locales/look/el.json +5 -1
  771. package/locales/look/en.json +5 -1
  772. package/locales/look/es.json +7 -3
  773. package/locales/look/fa.json +5 -1
  774. package/locales/look/fi.json +5 -1
  775. package/locales/look/fr-CA.json +5 -1
  776. package/locales/look/fr.json +5 -1
  777. package/locales/look/ha.json +5 -1
  778. package/locales/look/he.json +5 -1
  779. package/locales/look/hi.json +5 -1
  780. package/locales/look/hr.json +5 -1
  781. package/locales/look/hu.json +5 -1
  782. package/locales/look/id.json +5 -1
  783. package/locales/look/it.json +5 -1
  784. package/locales/look/ja.json +11 -7
  785. package/locales/look/ko.json +6 -2
  786. package/locales/look/mr.json +5 -1
  787. package/locales/look/ms.json +5 -1
  788. package/locales/look/nl.json +5 -1
  789. package/locales/look/pl.json +5 -1
  790. package/locales/look/pt.json +7 -3
  791. package/locales/look/ro.json +5 -1
  792. package/locales/look/ru.json +5 -1
  793. package/locales/look/sk.json +5 -1
  794. package/locales/look/sv.json +5 -1
  795. package/locales/look/sw.json +5 -1
  796. package/locales/look/ta.json +5 -1
  797. package/locales/look/te.json +5 -1
  798. package/locales/look/th.json +5 -1
  799. package/locales/look/tl.json +5 -1
  800. package/locales/look/tr.json +5 -1
  801. package/locales/look/uk.json +5 -1
  802. package/locales/look/ur.json +5 -1
  803. package/locales/look/vi.json +5 -1
  804. package/locales/look/yo.json +5 -1
  805. package/locales/look/zh-Hans.json +10 -6
  806. package/locales/look/zh-Hant.json +15 -11
  807. package/locales/machine/br.json +5 -5
  808. package/locales/machine/co.json +4 -4
  809. package/locales/machine/de.json +2 -2
  810. package/locales/machine/en.json +2 -2
  811. package/locales/machine/es.json +8 -8
  812. package/locales/machine/fr-CA.json +4 -4
  813. package/locales/machine/fr.json +4 -4
  814. package/locales/machine/it.json +9 -9
  815. package/locales/machine/ja.json +4 -4
  816. package/locales/machine/ko.json +10 -10
  817. package/locales/machine/pt.json +4 -4
  818. package/locales/machine/zh-Hans.json +7 -7
  819. package/locales/machine/zh-Hant.json +10 -10
  820. package/locales/made/am.json +2 -4
  821. package/locales/made/ar.json +2 -4
  822. package/locales/made/bg.json +2 -4
  823. package/locales/made/bn.json +2 -4
  824. package/locales/made/br.json +4 -6
  825. package/locales/made/co.json +2 -4
  826. package/locales/made/cs.json +2 -4
  827. package/locales/made/da.json +2 -4
  828. package/locales/made/de.json +2 -4
  829. package/locales/made/el.json +2 -4
  830. package/locales/made/en.json +2 -4
  831. package/locales/made/es.json +2 -4
  832. package/locales/made/fa.json +2 -4
  833. package/locales/made/fi.json +2 -4
  834. package/locales/made/fr-CA.json +3 -5
  835. package/locales/made/fr.json +3 -5
  836. package/locales/made/ha.json +2 -4
  837. package/locales/made/he.json +2 -4
  838. package/locales/made/hi.json +2 -4
  839. package/locales/made/hr.json +2 -4
  840. package/locales/made/hu.json +2 -4
  841. package/locales/made/id.json +2 -4
  842. package/locales/made/it.json +2 -4
  843. package/locales/made/ja.json +2 -4
  844. package/locales/made/ko.json +3 -5
  845. package/locales/made/mr.json +2 -4
  846. package/locales/made/ms.json +2 -4
  847. package/locales/made/nl.json +2 -4
  848. package/locales/made/pl.json +2 -4
  849. package/locales/made/pt.json +4 -6
  850. package/locales/made/ro.json +2 -4
  851. package/locales/made/ru.json +2 -4
  852. package/locales/made/sk.json +2 -4
  853. package/locales/made/sv.json +2 -4
  854. package/locales/made/sw.json +2 -4
  855. package/locales/made/ta.json +2 -4
  856. package/locales/made/te.json +2 -4
  857. package/locales/made/th.json +2 -4
  858. package/locales/made/tl.json +2 -4
  859. package/locales/made/tr.json +2 -4
  860. package/locales/made/uk.json +2 -4
  861. package/locales/made/ur.json +2 -4
  862. package/locales/made/vi.json +2 -4
  863. package/locales/made/yo.json +2 -4
  864. package/locales/made/zh-Hans.json +4 -6
  865. package/locales/made/zh-Hant.json +3 -5
  866. package/locales/mr.json +37 -20
  867. package/locales/ms.json +38 -21
  868. package/locales/{reader → natural-voice}/es.json +1 -1
  869. package/locales/natural-voice/ja.json +9 -0
  870. package/locales/{reader → natural-voice}/zh-Hans.json +1 -1
  871. package/locales/{reader → natural-voice}/zh-Hant.json +2 -2
  872. package/locales/nl.json +38 -21
  873. package/locales/notifications/br.json +2 -2
  874. package/locales/notifications/es.json +4 -4
  875. package/locales/notifications/it.json +2 -2
  876. package/locales/notifications/pt.json +2 -2
  877. package/locales/notifications/zh-Hans.json +1 -1
  878. package/locales/notifications/zh-Hant.json +2 -2
  879. package/locales/out/am.json +2 -1
  880. package/locales/out/ar.json +2 -1
  881. package/locales/out/bg.json +2 -1
  882. package/locales/out/bn.json +2 -1
  883. package/locales/out/br.json +2 -1
  884. package/locales/out/co.json +3 -2
  885. package/locales/out/cs.json +2 -1
  886. package/locales/out/da.json +2 -1
  887. package/locales/out/de.json +3 -2
  888. package/locales/out/el.json +2 -1
  889. package/locales/out/en.json +2 -1
  890. package/locales/out/es.json +3 -2
  891. package/locales/out/fa.json +2 -1
  892. package/locales/out/fi.json +2 -1
  893. package/locales/out/fr-CA.json +3 -2
  894. package/locales/out/fr.json +3 -2
  895. package/locales/out/ha.json +2 -1
  896. package/locales/out/he.json +2 -1
  897. package/locales/out/hi.json +2 -1
  898. package/locales/out/hr.json +2 -1
  899. package/locales/out/hu.json +2 -1
  900. package/locales/out/id.json +2 -1
  901. package/locales/out/it.json +2 -1
  902. package/locales/out/ja.json +3 -2
  903. package/locales/out/ko.json +2 -1
  904. package/locales/out/mr.json +2 -1
  905. package/locales/out/ms.json +2 -1
  906. package/locales/out/nl.json +2 -1
  907. package/locales/out/pl.json +2 -1
  908. package/locales/out/pt.json +3 -2
  909. package/locales/out/ro.json +2 -1
  910. package/locales/out/ru.json +2 -1
  911. package/locales/out/sk.json +2 -1
  912. package/locales/out/sv.json +2 -1
  913. package/locales/out/sw.json +2 -1
  914. package/locales/out/ta.json +2 -1
  915. package/locales/out/te.json +2 -1
  916. package/locales/out/th.json +2 -1
  917. package/locales/out/tl.json +2 -1
  918. package/locales/out/tr.json +2 -1
  919. package/locales/out/uk.json +2 -1
  920. package/locales/out/ur.json +2 -1
  921. package/locales/out/vi.json +2 -1
  922. package/locales/out/yo.json +2 -1
  923. package/locales/out/zh-Hans.json +4 -3
  924. package/locales/out/zh-Hant.json +2 -1
  925. package/locales/people/am.json +94 -0
  926. package/locales/people/ar.json +102 -0
  927. package/locales/people/bg.json +94 -0
  928. package/locales/people/bn.json +94 -0
  929. package/locales/people/br.json +100 -0
  930. package/locales/people/co.json +96 -0
  931. package/locales/people/cs.json +98 -0
  932. package/locales/people/da.json +94 -0
  933. package/locales/people/de.json +94 -0
  934. package/locales/people/el.json +94 -0
  935. package/locales/people/en.json +94 -0
  936. package/locales/people/es.json +96 -0
  937. package/locales/people/fa.json +94 -0
  938. package/locales/people/fi.json +94 -0
  939. package/locales/people/fr-CA.json +96 -0
  940. package/locales/people/fr.json +96 -0
  941. package/locales/people/ha.json +94 -0
  942. package/locales/people/he.json +96 -0
  943. package/locales/people/hi.json +94 -0
  944. package/locales/people/hr.json +96 -0
  945. package/locales/people/hu.json +94 -0
  946. package/locales/people/id.json +92 -0
  947. package/locales/people/it.json +96 -0
  948. package/locales/people/ja.json +92 -0
  949. package/locales/people/ko.json +92 -0
  950. package/locales/people/mr.json +94 -0
  951. package/locales/people/ms.json +92 -0
  952. package/locales/people/nl.json +94 -0
  953. package/locales/people/pl.json +98 -0
  954. package/locales/people/pt.json +96 -0
  955. package/locales/people/ro.json +96 -0
  956. package/locales/people/ru.json +98 -0
  957. package/locales/people/sk.json +98 -0
  958. package/locales/people/sv.json +94 -0
  959. package/locales/people/sw.json +94 -0
  960. package/locales/people/ta.json +94 -0
  961. package/locales/people/te.json +94 -0
  962. package/locales/people/th.json +92 -0
  963. package/locales/people/tl.json +94 -0
  964. package/locales/people/tr.json +94 -0
  965. package/locales/people/uk.json +98 -0
  966. package/locales/people/ur.json +94 -0
  967. package/locales/people/vi.json +92 -0
  968. package/locales/people/yo.json +92 -0
  969. package/locales/people/zh-Hans.json +92 -0
  970. package/locales/people/zh-Hant.json +92 -0
  971. package/locales/pictures/br.json +5 -5
  972. package/locales/pictures/co.json +5 -5
  973. package/locales/pictures/de.json +3 -3
  974. package/locales/pictures/en.json +2 -2
  975. package/locales/pictures/es.json +4 -4
  976. package/locales/pictures/fr-CA.json +6 -6
  977. package/locales/pictures/fr.json +4 -4
  978. package/locales/pictures/it.json +7 -7
  979. package/locales/pictures/ja.json +8 -8
  980. package/locales/pictures/ko.json +8 -8
  981. package/locales/pictures/pt.json +5 -5
  982. package/locales/pictures/zh-Hans.json +5 -5
  983. package/locales/pictures/zh-Hant.json +6 -6
  984. package/locales/pl.json +37 -20
  985. package/locales/plan/fr-CA.json +1 -1
  986. package/locales/plan/fr.json +1 -1
  987. package/locales/plan/it.json +2 -2
  988. package/locales/plan/ja.json +3 -3
  989. package/locales/plan/zh-Hans.json +2 -2
  990. package/locales/plan/zh-Hant.json +1 -1
  991. package/locales/policy/am.json +1 -0
  992. package/locales/policy/ar.json +1 -0
  993. package/locales/policy/bg.json +1 -0
  994. package/locales/policy/bn.json +1 -0
  995. package/locales/policy/br.json +1 -0
  996. package/locales/policy/co.json +3 -2
  997. package/locales/policy/cs.json +1 -0
  998. package/locales/policy/da.json +1 -0
  999. package/locales/policy/de.json +1 -0
  1000. package/locales/policy/el.json +1 -0
  1001. package/locales/policy/en.json +1 -0
  1002. package/locales/policy/es.json +4 -3
  1003. package/locales/policy/fa.json +1 -0
  1004. package/locales/policy/fi.json +1 -0
  1005. package/locales/policy/fr-CA.json +2 -1
  1006. package/locales/policy/fr.json +2 -1
  1007. package/locales/policy/ha.json +1 -0
  1008. package/locales/policy/he.json +1 -0
  1009. package/locales/policy/hi.json +1 -0
  1010. package/locales/policy/hr.json +1 -0
  1011. package/locales/policy/hu.json +1 -0
  1012. package/locales/policy/id.json +1 -0
  1013. package/locales/policy/it.json +4 -3
  1014. package/locales/policy/ja.json +3 -2
  1015. package/locales/policy/ko.json +1 -0
  1016. package/locales/policy/mr.json +1 -0
  1017. package/locales/policy/ms.json +1 -0
  1018. package/locales/policy/nl.json +1 -0
  1019. package/locales/policy/pl.json +1 -0
  1020. package/locales/policy/pt.json +4 -3
  1021. package/locales/policy/ro.json +1 -0
  1022. package/locales/policy/ru.json +1 -0
  1023. package/locales/policy/sk.json +1 -0
  1024. package/locales/policy/sv.json +1 -0
  1025. package/locales/policy/sw.json +1 -0
  1026. package/locales/policy/ta.json +1 -0
  1027. package/locales/policy/te.json +1 -0
  1028. package/locales/policy/th.json +1 -0
  1029. package/locales/policy/tl.json +1 -0
  1030. package/locales/policy/tr.json +1 -0
  1031. package/locales/policy/uk.json +1 -0
  1032. package/locales/policy/ur.json +1 -0
  1033. package/locales/policy/vi.json +1 -0
  1034. package/locales/policy/yo.json +1 -0
  1035. package/locales/policy/zh-Hans.json +9 -8
  1036. package/locales/policy/zh-Hant.json +17 -16
  1037. package/locales/profiles/am.json +4 -0
  1038. package/locales/profiles/ar.json +8 -0
  1039. package/locales/profiles/bg.json +4 -0
  1040. package/locales/profiles/bn.json +4 -0
  1041. package/locales/profiles/br.json +17 -10
  1042. package/locales/profiles/co.json +14 -9
  1043. package/locales/profiles/cs.json +6 -0
  1044. package/locales/profiles/da.json +4 -0
  1045. package/locales/profiles/de.json +5 -1
  1046. package/locales/profiles/el.json +4 -0
  1047. package/locales/profiles/en.json +6 -2
  1048. package/locales/profiles/es.json +7 -2
  1049. package/locales/profiles/fa.json +4 -0
  1050. package/locales/profiles/fi.json +4 -0
  1051. package/locales/profiles/fr-CA.json +13 -8
  1052. package/locales/profiles/fr.json +13 -8
  1053. package/locales/profiles/ha.json +4 -0
  1054. package/locales/profiles/he.json +5 -0
  1055. package/locales/profiles/hi.json +4 -0
  1056. package/locales/profiles/hr.json +5 -0
  1057. package/locales/profiles/hu.json +4 -0
  1058. package/locales/profiles/id.json +3 -0
  1059. package/locales/profiles/it.json +11 -6
  1060. package/locales/profiles/ja.json +12 -9
  1061. package/locales/profiles/ko.json +25 -22
  1062. package/locales/profiles/mr.json +4 -0
  1063. package/locales/profiles/ms.json +3 -0
  1064. package/locales/profiles/nl.json +4 -0
  1065. package/locales/profiles/pl.json +6 -0
  1066. package/locales/profiles/pt.json +10 -5
  1067. package/locales/profiles/ro.json +5 -0
  1068. package/locales/profiles/ru.json +6 -0
  1069. package/locales/profiles/sk.json +6 -0
  1070. package/locales/profiles/sv.json +4 -0
  1071. package/locales/profiles/sw.json +4 -0
  1072. package/locales/profiles/ta.json +4 -0
  1073. package/locales/profiles/te.json +4 -0
  1074. package/locales/profiles/th.json +3 -0
  1075. package/locales/profiles/tl.json +4 -0
  1076. package/locales/profiles/tr.json +4 -0
  1077. package/locales/profiles/uk.json +6 -0
  1078. package/locales/profiles/ur.json +4 -0
  1079. package/locales/profiles/vi.json +3 -0
  1080. package/locales/profiles/yo.json +3 -0
  1081. package/locales/profiles/zh-Hans.json +17 -14
  1082. package/locales/profiles/zh-Hant.json +12 -9
  1083. package/locales/projects/am.json +4 -0
  1084. package/locales/projects/ar.json +4 -0
  1085. package/locales/projects/bg.json +4 -0
  1086. package/locales/projects/bn.json +4 -0
  1087. package/locales/projects/br.json +4 -0
  1088. package/locales/projects/co.json +4 -0
  1089. package/locales/projects/cs.json +4 -0
  1090. package/locales/projects/da.json +4 -0
  1091. package/locales/projects/de.json +4 -0
  1092. package/locales/projects/el.json +4 -0
  1093. package/locales/projects/en.json +4 -0
  1094. package/locales/projects/es.json +4 -0
  1095. package/locales/projects/fa.json +4 -0
  1096. package/locales/projects/fi.json +4 -0
  1097. package/locales/projects/fr-CA.json +4 -0
  1098. package/locales/projects/fr.json +4 -0
  1099. package/locales/projects/ha.json +4 -0
  1100. package/locales/projects/he.json +4 -0
  1101. package/locales/projects/hi.json +4 -0
  1102. package/locales/projects/hr.json +4 -0
  1103. package/locales/projects/hu.json +4 -0
  1104. package/locales/projects/id.json +4 -0
  1105. package/locales/projects/it.json +4 -0
  1106. package/locales/projects/ja.json +4 -0
  1107. package/locales/projects/ko.json +4 -0
  1108. package/locales/projects/mr.json +4 -0
  1109. package/locales/projects/ms.json +4 -0
  1110. package/locales/projects/nl.json +4 -0
  1111. package/locales/projects/pl.json +4 -0
  1112. package/locales/projects/pt.json +4 -0
  1113. package/locales/projects/ro.json +4 -0
  1114. package/locales/projects/ru.json +4 -0
  1115. package/locales/projects/sk.json +4 -0
  1116. package/locales/projects/sv.json +4 -0
  1117. package/locales/projects/sw.json +4 -0
  1118. package/locales/projects/ta.json +4 -0
  1119. package/locales/projects/te.json +4 -0
  1120. package/locales/projects/th.json +4 -0
  1121. package/locales/projects/tl.json +4 -0
  1122. package/locales/projects/tr.json +4 -0
  1123. package/locales/projects/uk.json +4 -0
  1124. package/locales/projects/ur.json +4 -0
  1125. package/locales/projects/vi.json +4 -0
  1126. package/locales/projects/yo.json +4 -0
  1127. package/locales/projects/zh-Hans.json +4 -0
  1128. package/locales/projects/zh-Hant.json +4 -0
  1129. package/locales/prototypes/am.json +24 -0
  1130. package/locales/prototypes/ar.json +24 -0
  1131. package/locales/prototypes/bg.json +24 -0
  1132. package/locales/prototypes/bn.json +24 -0
  1133. package/locales/prototypes/br.json +24 -0
  1134. package/locales/prototypes/co.json +24 -0
  1135. package/locales/prototypes/cs.json +24 -0
  1136. package/locales/prototypes/da.json +24 -0
  1137. package/locales/prototypes/de.json +24 -0
  1138. package/locales/prototypes/el.json +24 -0
  1139. package/locales/prototypes/en.json +24 -0
  1140. package/locales/prototypes/es.json +24 -0
  1141. package/locales/prototypes/fa.json +24 -0
  1142. package/locales/prototypes/fi.json +24 -0
  1143. package/locales/prototypes/fr-CA.json +24 -0
  1144. package/locales/prototypes/fr.json +24 -0
  1145. package/locales/prototypes/ha.json +24 -0
  1146. package/locales/prototypes/he.json +24 -0
  1147. package/locales/prototypes/hi.json +24 -0
  1148. package/locales/prototypes/hr.json +24 -0
  1149. package/locales/prototypes/hu.json +24 -0
  1150. package/locales/prototypes/id.json +24 -0
  1151. package/locales/prototypes/it.json +24 -0
  1152. package/locales/prototypes/ja.json +24 -0
  1153. package/locales/prototypes/ko.json +24 -0
  1154. package/locales/prototypes/mr.json +24 -0
  1155. package/locales/prototypes/ms.json +24 -0
  1156. package/locales/prototypes/nl.json +24 -0
  1157. package/locales/prototypes/pl.json +24 -0
  1158. package/locales/prototypes/pt.json +24 -0
  1159. package/locales/prototypes/ro.json +24 -0
  1160. package/locales/prototypes/ru.json +24 -0
  1161. package/locales/prototypes/sk.json +24 -0
  1162. package/locales/prototypes/sv.json +24 -0
  1163. package/locales/prototypes/sw.json +24 -0
  1164. package/locales/prototypes/ta.json +24 -0
  1165. package/locales/prototypes/te.json +24 -0
  1166. package/locales/prototypes/th.json +24 -0
  1167. package/locales/prototypes/tl.json +24 -0
  1168. package/locales/prototypes/tr.json +24 -0
  1169. package/locales/prototypes/uk.json +24 -0
  1170. package/locales/prototypes/ur.json +24 -0
  1171. package/locales/prototypes/vi.json +24 -0
  1172. package/locales/prototypes/yo.json +24 -0
  1173. package/locales/prototypes/zh-Hans.json +24 -0
  1174. package/locales/prototypes/zh-Hant.json +24 -0
  1175. package/locales/pt.json +64 -47
  1176. package/locales/receipt/am.json +14 -2
  1177. package/locales/receipt/ar.json +14 -2
  1178. package/locales/receipt/bg.json +14 -2
  1179. package/locales/receipt/bn.json +14 -2
  1180. package/locales/receipt/br.json +16 -4
  1181. package/locales/receipt/co.json +16 -4
  1182. package/locales/receipt/cs.json +14 -2
  1183. package/locales/receipt/da.json +14 -2
  1184. package/locales/receipt/de.json +16 -4
  1185. package/locales/receipt/el.json +14 -2
  1186. package/locales/receipt/en.json +16 -4
  1187. package/locales/receipt/es.json +19 -7
  1188. package/locales/receipt/fa.json +14 -2
  1189. package/locales/receipt/fi.json +14 -2
  1190. package/locales/receipt/fr-CA.json +16 -4
  1191. package/locales/receipt/fr.json +16 -4
  1192. package/locales/receipt/ha.json +14 -2
  1193. package/locales/receipt/he.json +14 -2
  1194. package/locales/receipt/hi.json +14 -2
  1195. package/locales/receipt/hr.json +14 -2
  1196. package/locales/receipt/hu.json +14 -2
  1197. package/locales/receipt/id.json +14 -2
  1198. package/locales/receipt/it.json +21 -9
  1199. package/locales/receipt/ja.json +18 -6
  1200. package/locales/receipt/ko.json +15 -3
  1201. package/locales/receipt/mr.json +14 -2
  1202. package/locales/receipt/ms.json +14 -2
  1203. package/locales/receipt/nl.json +14 -2
  1204. package/locales/receipt/pl.json +14 -2
  1205. package/locales/receipt/pt.json +18 -6
  1206. package/locales/receipt/ro.json +14 -2
  1207. package/locales/receipt/ru.json +14 -2
  1208. package/locales/receipt/sk.json +14 -2
  1209. package/locales/receipt/sv.json +14 -2
  1210. package/locales/receipt/sw.json +14 -2
  1211. package/locales/receipt/ta.json +14 -2
  1212. package/locales/receipt/te.json +14 -2
  1213. package/locales/receipt/th.json +14 -2
  1214. package/locales/receipt/tl.json +14 -2
  1215. package/locales/receipt/tr.json +14 -2
  1216. package/locales/receipt/uk.json +14 -2
  1217. package/locales/receipt/ur.json +14 -2
  1218. package/locales/receipt/vi.json +14 -2
  1219. package/locales/receipt/yo.json +14 -2
  1220. package/locales/receipt/zh-Hans.json +17 -5
  1221. package/locales/receipt/zh-Hant.json +25 -13
  1222. package/locales/ro.json +38 -21
  1223. package/locales/routines/am.json +2 -0
  1224. package/locales/routines/ar.json +2 -0
  1225. package/locales/routines/bg.json +2 -0
  1226. package/locales/routines/bn.json +2 -0
  1227. package/locales/routines/br.json +12 -10
  1228. package/locales/routines/co.json +8 -6
  1229. package/locales/routines/cs.json +2 -0
  1230. package/locales/routines/da.json +2 -0
  1231. package/locales/routines/de.json +2 -0
  1232. package/locales/routines/el.json +2 -0
  1233. package/locales/routines/en.json +2 -0
  1234. package/locales/routines/es.json +6 -4
  1235. package/locales/routines/fa.json +2 -0
  1236. package/locales/routines/fi.json +2 -0
  1237. package/locales/routines/fr-CA.json +4 -2
  1238. package/locales/routines/fr.json +4 -2
  1239. package/locales/routines/ha.json +2 -0
  1240. package/locales/routines/he.json +2 -0
  1241. package/locales/routines/hi.json +2 -0
  1242. package/locales/routines/hr.json +2 -0
  1243. package/locales/routines/hu.json +2 -0
  1244. package/locales/routines/id.json +2 -0
  1245. package/locales/routines/it.json +3 -1
  1246. package/locales/routines/ja.json +14 -12
  1247. package/locales/routines/ko.json +3 -1
  1248. package/locales/routines/mr.json +2 -0
  1249. package/locales/routines/ms.json +2 -0
  1250. package/locales/routines/nl.json +2 -0
  1251. package/locales/routines/pl.json +2 -0
  1252. package/locales/routines/pt.json +7 -5
  1253. package/locales/routines/ro.json +2 -0
  1254. package/locales/routines/ru.json +2 -0
  1255. package/locales/routines/sk.json +2 -0
  1256. package/locales/routines/sv.json +2 -0
  1257. package/locales/routines/sw.json +2 -0
  1258. package/locales/routines/ta.json +2 -0
  1259. package/locales/routines/te.json +2 -0
  1260. package/locales/routines/th.json +2 -0
  1261. package/locales/routines/tl.json +2 -0
  1262. package/locales/routines/tr.json +2 -0
  1263. package/locales/routines/uk.json +2 -0
  1264. package/locales/routines/ur.json +2 -0
  1265. package/locales/routines/vi.json +2 -0
  1266. package/locales/routines/yo.json +2 -0
  1267. package/locales/routines/zh-Hans.json +4 -2
  1268. package/locales/routines/zh-Hant.json +5 -3
  1269. package/locales/ru.json +37 -20
  1270. package/locales/scores/de.json +1 -1
  1271. package/locales/scores/it.json +1 -1
  1272. package/locales/scores/ja.json +2 -2
  1273. package/locales/scores/ko.json +1 -1
  1274. package/locales/screen/am.json +11 -0
  1275. package/locales/screen/ar.json +11 -0
  1276. package/locales/screen/bg.json +11 -0
  1277. package/locales/screen/bn.json +11 -0
  1278. package/locales/screen/br.json +11 -0
  1279. package/locales/screen/co.json +11 -0
  1280. package/locales/screen/cs.json +11 -0
  1281. package/locales/screen/da.json +11 -0
  1282. package/locales/screen/de.json +11 -0
  1283. package/locales/screen/el.json +11 -0
  1284. package/locales/screen/en.json +11 -0
  1285. package/locales/screen/es.json +11 -0
  1286. package/locales/screen/fa.json +11 -0
  1287. package/locales/screen/fi.json +11 -0
  1288. package/locales/screen/fr-CA.json +11 -0
  1289. package/locales/screen/fr.json +11 -0
  1290. package/locales/screen/ha.json +11 -0
  1291. package/locales/screen/he.json +11 -0
  1292. package/locales/screen/hi.json +11 -0
  1293. package/locales/screen/hr.json +11 -0
  1294. package/locales/screen/hu.json +11 -0
  1295. package/locales/screen/id.json +11 -0
  1296. package/locales/screen/it.json +11 -0
  1297. package/locales/screen/ja.json +11 -0
  1298. package/locales/screen/ko.json +11 -0
  1299. package/locales/screen/mr.json +11 -0
  1300. package/locales/screen/ms.json +11 -0
  1301. package/locales/screen/nl.json +11 -0
  1302. package/locales/screen/pl.json +11 -0
  1303. package/locales/screen/pt.json +11 -0
  1304. package/locales/screen/ro.json +11 -0
  1305. package/locales/screen/ru.json +11 -0
  1306. package/locales/screen/sk.json +11 -0
  1307. package/locales/screen/sv.json +11 -0
  1308. package/locales/screen/sw.json +11 -0
  1309. package/locales/screen/ta.json +11 -0
  1310. package/locales/screen/te.json +11 -0
  1311. package/locales/screen/th.json +11 -0
  1312. package/locales/screen/tl.json +11 -0
  1313. package/locales/screen/tr.json +11 -0
  1314. package/locales/screen/uk.json +11 -0
  1315. package/locales/screen/ur.json +11 -0
  1316. package/locales/screen/vi.json +11 -0
  1317. package/locales/screen/yo.json +11 -0
  1318. package/locales/screen/zh-Hans.json +11 -0
  1319. package/locales/screen/zh-Hant.json +11 -0
  1320. package/locales/share/am.json +17 -9
  1321. package/locales/share/ar.json +17 -9
  1322. package/locales/share/bg.json +17 -9
  1323. package/locales/share/bn.json +17 -9
  1324. package/locales/share/br.json +22 -14
  1325. package/locales/share/co.json +20 -12
  1326. package/locales/share/cs.json +17 -9
  1327. package/locales/share/da.json +17 -9
  1328. package/locales/share/de.json +19 -11
  1329. package/locales/share/el.json +17 -9
  1330. package/locales/share/en.json +17 -9
  1331. package/locales/share/es.json +18 -10
  1332. package/locales/share/fa.json +17 -9
  1333. package/locales/share/fi.json +17 -9
  1334. package/locales/share/fr-CA.json +21 -13
  1335. package/locales/share/fr.json +19 -11
  1336. package/locales/share/ha.json +17 -9
  1337. package/locales/share/he.json +17 -9
  1338. package/locales/share/hi.json +17 -9
  1339. package/locales/share/hr.json +17 -9
  1340. package/locales/share/hu.json +17 -9
  1341. package/locales/share/id.json +17 -9
  1342. package/locales/share/it.json +21 -13
  1343. package/locales/share/ja.json +31 -23
  1344. package/locales/share/ko.json +21 -13
  1345. package/locales/share/mr.json +17 -9
  1346. package/locales/share/ms.json +17 -9
  1347. package/locales/share/nl.json +17 -9
  1348. package/locales/share/pl.json +17 -9
  1349. package/locales/share/pt.json +19 -11
  1350. package/locales/share/ro.json +17 -9
  1351. package/locales/share/ru.json +17 -9
  1352. package/locales/share/sk.json +17 -9
  1353. package/locales/share/sv.json +17 -9
  1354. package/locales/share/sw.json +17 -9
  1355. package/locales/share/ta.json +17 -9
  1356. package/locales/share/te.json +17 -9
  1357. package/locales/share/th.json +17 -9
  1358. package/locales/share/tl.json +17 -9
  1359. package/locales/share/tr.json +17 -9
  1360. package/locales/share/uk.json +17 -9
  1361. package/locales/share/ur.json +17 -9
  1362. package/locales/share/vi.json +17 -9
  1363. package/locales/share/yo.json +17 -9
  1364. package/locales/share/zh-Hans.json +24 -16
  1365. package/locales/share/zh-Hant.json +30 -22
  1366. package/locales/signin/br.json +1 -1
  1367. package/locales/signin/co.json +1 -1
  1368. package/locales/signin/es.json +1 -1
  1369. package/locales/signin/ja.json +1 -1
  1370. package/locales/signin/ko.json +2 -2
  1371. package/locales/signin/pt.json +1 -1
  1372. package/locales/signin/zh-Hans.json +1 -1
  1373. package/locales/signin/zh-Hant.json +1 -1
  1374. package/locales/sites/am.json +80 -0
  1375. package/locales/sites/ar.json +84 -0
  1376. package/locales/sites/bg.json +80 -0
  1377. package/locales/sites/bn.json +80 -0
  1378. package/locales/sites/br.json +83 -0
  1379. package/locales/sites/co.json +81 -0
  1380. package/locales/sites/cs.json +82 -0
  1381. package/locales/sites/da.json +80 -0
  1382. package/locales/sites/de.json +80 -0
  1383. package/locales/sites/el.json +80 -0
  1384. package/locales/sites/en.json +80 -0
  1385. package/locales/sites/es.json +81 -0
  1386. package/locales/sites/fa.json +80 -0
  1387. package/locales/sites/fi.json +80 -0
  1388. package/locales/sites/fr-CA.json +81 -0
  1389. package/locales/sites/fr.json +81 -0
  1390. package/locales/sites/ha.json +80 -0
  1391. package/locales/sites/he.json +81 -0
  1392. package/locales/sites/hi.json +80 -0
  1393. package/locales/sites/hr.json +81 -0
  1394. package/locales/sites/hu.json +80 -0
  1395. package/locales/sites/id.json +79 -0
  1396. package/locales/sites/it.json +81 -0
  1397. package/locales/sites/ja.json +79 -0
  1398. package/locales/sites/ko.json +79 -0
  1399. package/locales/sites/mr.json +80 -0
  1400. package/locales/sites/ms.json +79 -0
  1401. package/locales/sites/nl.json +80 -0
  1402. package/locales/sites/pl.json +82 -0
  1403. package/locales/sites/pt.json +81 -0
  1404. package/locales/sites/ro.json +81 -0
  1405. package/locales/sites/ru.json +82 -0
  1406. package/locales/sites/sk.json +82 -0
  1407. package/locales/sites/sv.json +80 -0
  1408. package/locales/sites/sw.json +80 -0
  1409. package/locales/sites/ta.json +80 -0
  1410. package/locales/sites/te.json +80 -0
  1411. package/locales/sites/th.json +79 -0
  1412. package/locales/sites/tl.json +80 -0
  1413. package/locales/sites/tr.json +80 -0
  1414. package/locales/sites/uk.json +82 -0
  1415. package/locales/sites/ur.json +80 -0
  1416. package/locales/sites/vi.json +79 -0
  1417. package/locales/sites/yo.json +79 -0
  1418. package/locales/sites/zh-Hans.json +79 -0
  1419. package/locales/sites/zh-Hant.json +79 -0
  1420. package/locales/sk.json +38 -21
  1421. package/locales/skills/am.json +1 -0
  1422. package/locales/skills/ar.json +1 -0
  1423. package/locales/skills/bg.json +1 -0
  1424. package/locales/skills/bn.json +1 -0
  1425. package/locales/skills/br.json +8 -7
  1426. package/locales/skills/co.json +8 -7
  1427. package/locales/skills/cs.json +1 -0
  1428. package/locales/skills/da.json +1 -0
  1429. package/locales/skills/de.json +6 -5
  1430. package/locales/skills/el.json +1 -0
  1431. package/locales/skills/en.json +1 -0
  1432. package/locales/skills/es.json +5 -4
  1433. package/locales/skills/fa.json +1 -0
  1434. package/locales/skills/fi.json +1 -0
  1435. package/locales/skills/fr-CA.json +4 -3
  1436. package/locales/skills/fr.json +4 -3
  1437. package/locales/skills/ha.json +1 -0
  1438. package/locales/skills/he.json +1 -0
  1439. package/locales/skills/hi.json +1 -0
  1440. package/locales/skills/hr.json +1 -0
  1441. package/locales/skills/hu.json +1 -0
  1442. package/locales/skills/id.json +1 -0
  1443. package/locales/skills/it.json +2 -1
  1444. package/locales/skills/ja.json +17 -16
  1445. package/locales/skills/ko.json +2 -1
  1446. package/locales/skills/mr.json +1 -0
  1447. package/locales/skills/ms.json +1 -0
  1448. package/locales/skills/nl.json +1 -0
  1449. package/locales/skills/pl.json +1 -0
  1450. package/locales/skills/pt.json +6 -5
  1451. package/locales/skills/ro.json +1 -0
  1452. package/locales/skills/ru.json +1 -0
  1453. package/locales/skills/sk.json +1 -0
  1454. package/locales/skills/sv.json +1 -0
  1455. package/locales/skills/sw.json +1 -0
  1456. package/locales/skills/ta.json +1 -0
  1457. package/locales/skills/te.json +1 -0
  1458. package/locales/skills/th.json +1 -0
  1459. package/locales/skills/tl.json +1 -0
  1460. package/locales/skills/tr.json +1 -0
  1461. package/locales/skills/uk.json +1 -0
  1462. package/locales/skills/ur.json +1 -0
  1463. package/locales/skills/vi.json +1 -0
  1464. package/locales/skills/yo.json +1 -0
  1465. package/locales/skills/zh-Hans.json +3 -2
  1466. package/locales/skills/zh-Hant.json +5 -4
  1467. package/locales/slides/am.json +7 -0
  1468. package/locales/slides/ar.json +7 -0
  1469. package/locales/slides/bg.json +7 -0
  1470. package/locales/slides/bn.json +7 -0
  1471. package/locales/slides/br.json +18 -11
  1472. package/locales/slides/co.json +35 -28
  1473. package/locales/slides/cs.json +7 -0
  1474. package/locales/slides/da.json +7 -0
  1475. package/locales/slides/de.json +7 -0
  1476. package/locales/slides/el.json +7 -0
  1477. package/locales/slides/en.json +11 -4
  1478. package/locales/slides/es.json +14 -7
  1479. package/locales/slides/fa.json +7 -0
  1480. package/locales/slides/fi.json +7 -0
  1481. package/locales/slides/fr-CA.json +7 -0
  1482. package/locales/slides/fr.json +7 -0
  1483. package/locales/slides/ha.json +7 -0
  1484. package/locales/slides/he.json +7 -0
  1485. package/locales/slides/hi.json +7 -0
  1486. package/locales/slides/hr.json +7 -0
  1487. package/locales/slides/hu.json +7 -0
  1488. package/locales/slides/id.json +7 -0
  1489. package/locales/slides/it.json +13 -6
  1490. package/locales/slides/ja.json +12 -5
  1491. package/locales/slides/ko.json +21 -14
  1492. package/locales/slides/mr.json +7 -0
  1493. package/locales/slides/ms.json +7 -0
  1494. package/locales/slides/nl.json +7 -0
  1495. package/locales/slides/pl.json +7 -0
  1496. package/locales/slides/pt.json +16 -9
  1497. package/locales/slides/ro.json +7 -0
  1498. package/locales/slides/ru.json +7 -0
  1499. package/locales/slides/sk.json +7 -0
  1500. package/locales/slides/sv.json +7 -0
  1501. package/locales/slides/sw.json +7 -0
  1502. package/locales/slides/ta.json +7 -0
  1503. package/locales/slides/te.json +7 -0
  1504. package/locales/slides/th.json +7 -0
  1505. package/locales/slides/tl.json +7 -0
  1506. package/locales/slides/tr.json +7 -0
  1507. package/locales/slides/uk.json +7 -0
  1508. package/locales/slides/ur.json +7 -0
  1509. package/locales/slides/vi.json +7 -0
  1510. package/locales/slides/yo.json +7 -0
  1511. package/locales/slides/zh-Hans.json +11 -4
  1512. package/locales/slides/zh-Hant.json +10 -3
  1513. package/locales/starters/am.json +20 -0
  1514. package/locales/starters/ar.json +20 -0
  1515. package/locales/starters/bg.json +20 -0
  1516. package/locales/starters/bn.json +20 -0
  1517. package/locales/starters/br.json +20 -0
  1518. package/locales/starters/co.json +20 -0
  1519. package/locales/starters/cs.json +20 -0
  1520. package/locales/starters/da.json +20 -0
  1521. package/locales/starters/de.json +20 -0
  1522. package/locales/starters/el.json +20 -0
  1523. package/locales/starters/en.json +20 -0
  1524. package/locales/starters/es.json +20 -0
  1525. package/locales/starters/fa.json +20 -0
  1526. package/locales/starters/fi.json +20 -0
  1527. package/locales/starters/fr-CA.json +20 -0
  1528. package/locales/starters/fr.json +20 -0
  1529. package/locales/starters/ha.json +20 -0
  1530. package/locales/starters/he.json +20 -0
  1531. package/locales/starters/hi.json +20 -0
  1532. package/locales/starters/hr.json +20 -0
  1533. package/locales/starters/hu.json +20 -0
  1534. package/locales/starters/id.json +20 -0
  1535. package/locales/starters/it.json +20 -0
  1536. package/locales/starters/ja.json +20 -0
  1537. package/locales/starters/ko.json +20 -0
  1538. package/locales/starters/mr.json +20 -0
  1539. package/locales/starters/ms.json +20 -0
  1540. package/locales/starters/nl.json +20 -0
  1541. package/locales/starters/pl.json +20 -0
  1542. package/locales/starters/pt.json +20 -0
  1543. package/locales/starters/ro.json +20 -0
  1544. package/locales/starters/ru.json +20 -0
  1545. package/locales/starters/sk.json +20 -0
  1546. package/locales/starters/sv.json +20 -0
  1547. package/locales/starters/sw.json +20 -0
  1548. package/locales/starters/ta.json +20 -0
  1549. package/locales/starters/te.json +20 -0
  1550. package/locales/starters/th.json +20 -0
  1551. package/locales/starters/tl.json +20 -0
  1552. package/locales/starters/tr.json +20 -0
  1553. package/locales/starters/uk.json +20 -0
  1554. package/locales/starters/ur.json +20 -0
  1555. package/locales/starters/vi.json +20 -0
  1556. package/locales/starters/yo.json +20 -0
  1557. package/locales/starters/zh-Hans.json +20 -0
  1558. package/locales/starters/zh-Hant.json +20 -0
  1559. package/locales/sv.json +37 -20
  1560. package/locales/sw.json +37 -20
  1561. package/locales/sync/br.json +2 -2
  1562. package/locales/sync/de.json +2 -2
  1563. package/locales/sync/es.json +6 -6
  1564. package/locales/sync/it.json +1 -1
  1565. package/locales/sync/ja.json +2 -2
  1566. package/locales/sync/pt.json +1 -1
  1567. package/locales/ta.json +37 -20
  1568. package/locales/tables/am.json +3 -0
  1569. package/locales/tables/ar.json +3 -0
  1570. package/locales/tables/bg.json +3 -0
  1571. package/locales/tables/bn.json +3 -0
  1572. package/locales/tables/br.json +11 -8
  1573. package/locales/tables/co.json +18 -15
  1574. package/locales/tables/cs.json +3 -0
  1575. package/locales/tables/da.json +3 -0
  1576. package/locales/tables/de.json +5 -2
  1577. package/locales/tables/el.json +3 -0
  1578. package/locales/tables/en.json +3 -0
  1579. package/locales/tables/es.json +3 -0
  1580. package/locales/tables/fa.json +3 -0
  1581. package/locales/tables/fi.json +3 -0
  1582. package/locales/tables/fr-CA.json +7 -4
  1583. package/locales/tables/fr.json +6 -3
  1584. package/locales/tables/ha.json +3 -0
  1585. package/locales/tables/he.json +3 -0
  1586. package/locales/tables/hi.json +3 -0
  1587. package/locales/tables/hr.json +3 -0
  1588. package/locales/tables/hu.json +3 -0
  1589. package/locales/tables/id.json +3 -0
  1590. package/locales/tables/it.json +3 -0
  1591. package/locales/tables/ja.json +5 -2
  1592. package/locales/tables/ko.json +7 -4
  1593. package/locales/tables/mr.json +3 -0
  1594. package/locales/tables/ms.json +3 -0
  1595. package/locales/tables/nl.json +3 -0
  1596. package/locales/tables/pl.json +3 -0
  1597. package/locales/tables/pt.json +11 -8
  1598. package/locales/tables/ro.json +3 -0
  1599. package/locales/tables/ru.json +3 -0
  1600. package/locales/tables/sk.json +3 -0
  1601. package/locales/tables/sv.json +3 -0
  1602. package/locales/tables/sw.json +3 -0
  1603. package/locales/tables/ta.json +3 -0
  1604. package/locales/tables/te.json +3 -0
  1605. package/locales/tables/th.json +3 -0
  1606. package/locales/tables/tl.json +3 -0
  1607. package/locales/tables/tr.json +3 -0
  1608. package/locales/tables/uk.json +3 -0
  1609. package/locales/tables/ur.json +3 -0
  1610. package/locales/tables/vi.json +3 -0
  1611. package/locales/tables/yo.json +3 -0
  1612. package/locales/tables/zh-Hans.json +4 -1
  1613. package/locales/tables/zh-Hant.json +4 -1
  1614. package/locales/te.json +37 -20
  1615. package/locales/th.json +37 -20
  1616. package/locales/tl.json +37 -20
  1617. package/locales/together/am.json +56 -0
  1618. package/locales/together/ar.json +56 -0
  1619. package/locales/together/bg.json +56 -0
  1620. package/locales/together/bn.json +56 -0
  1621. package/locales/together/br.json +56 -0
  1622. package/locales/together/co.json +56 -0
  1623. package/locales/together/cs.json +56 -0
  1624. package/locales/together/da.json +56 -0
  1625. package/locales/together/de.json +56 -0
  1626. package/locales/together/el.json +56 -0
  1627. package/locales/together/en.json +56 -0
  1628. package/locales/together/es.json +56 -0
  1629. package/locales/together/fa.json +56 -0
  1630. package/locales/together/fi.json +56 -0
  1631. package/locales/together/fr-CA.json +56 -0
  1632. package/locales/together/fr.json +56 -0
  1633. package/locales/together/ha.json +56 -0
  1634. package/locales/together/he.json +56 -0
  1635. package/locales/together/hi.json +56 -0
  1636. package/locales/together/hr.json +56 -0
  1637. package/locales/together/hu.json +56 -0
  1638. package/locales/together/id.json +56 -0
  1639. package/locales/together/it.json +56 -0
  1640. package/locales/together/ja.json +56 -0
  1641. package/locales/together/ko.json +56 -0
  1642. package/locales/together/mr.json +56 -0
  1643. package/locales/together/ms.json +56 -0
  1644. package/locales/together/nl.json +56 -0
  1645. package/locales/together/pl.json +56 -0
  1646. package/locales/together/pt.json +56 -0
  1647. package/locales/together/ro.json +56 -0
  1648. package/locales/together/ru.json +56 -0
  1649. package/locales/together/sk.json +56 -0
  1650. package/locales/together/sv.json +56 -0
  1651. package/locales/together/sw.json +56 -0
  1652. package/locales/together/ta.json +56 -0
  1653. package/locales/together/te.json +56 -0
  1654. package/locales/together/th.json +56 -0
  1655. package/locales/together/tl.json +56 -0
  1656. package/locales/together/tr.json +56 -0
  1657. package/locales/together/uk.json +56 -0
  1658. package/locales/together/ur.json +56 -0
  1659. package/locales/together/vi.json +56 -0
  1660. package/locales/together/yo.json +56 -0
  1661. package/locales/together/zh-Hans.json +56 -0
  1662. package/locales/together/zh-Hant.json +56 -0
  1663. package/locales/tr.json +37 -20
  1664. package/locales/uk.json +37 -20
  1665. package/locales/ur.json +37 -20
  1666. package/locales/vi.json +37 -20
  1667. package/locales/{search → web-search}/am.json +1 -1
  1668. package/locales/{search → web-search}/ar.json +1 -1
  1669. package/locales/{search → web-search}/bg.json +1 -1
  1670. package/locales/{search → web-search}/bn.json +1 -1
  1671. package/locales/{search → web-search}/br.json +9 -9
  1672. package/locales/{search → web-search}/co.json +8 -8
  1673. package/locales/{search → web-search}/cs.json +1 -1
  1674. package/locales/{search → web-search}/da.json +1 -1
  1675. package/locales/{search → web-search}/de.json +2 -2
  1676. package/locales/{search → web-search}/el.json +1 -1
  1677. package/locales/{search → web-search}/en.json +1 -1
  1678. package/locales/{search → web-search}/es.json +5 -5
  1679. package/locales/{search → web-search}/fa.json +1 -1
  1680. package/locales/{search → web-search}/fi.json +1 -1
  1681. package/locales/{search → web-search}/fr-CA.json +2 -2
  1682. package/locales/{search → web-search}/fr.json +2 -2
  1683. package/locales/{search → web-search}/ha.json +1 -1
  1684. package/locales/{search → web-search}/he.json +1 -1
  1685. package/locales/{search → web-search}/hi.json +1 -1
  1686. package/locales/{search → web-search}/hr.json +1 -1
  1687. package/locales/{search → web-search}/hu.json +1 -1
  1688. package/locales/{search → web-search}/id.json +1 -1
  1689. package/locales/{search → web-search}/it.json +2 -2
  1690. package/locales/{search → web-search}/ja.json +8 -8
  1691. package/locales/{search → web-search}/ko.json +2 -2
  1692. package/locales/{search → web-search}/mr.json +1 -1
  1693. package/locales/{search → web-search}/ms.json +1 -1
  1694. package/locales/{search → web-search}/nl.json +1 -1
  1695. package/locales/{search → web-search}/pl.json +1 -1
  1696. package/locales/{search → web-search}/pt.json +3 -3
  1697. package/locales/{search → web-search}/ro.json +1 -1
  1698. package/locales/{search → web-search}/ru.json +1 -1
  1699. package/locales/{search → web-search}/sk.json +1 -1
  1700. package/locales/{search → web-search}/sv.json +1 -1
  1701. package/locales/{search → web-search}/sw.json +1 -1
  1702. package/locales/{search → web-search}/ta.json +1 -1
  1703. package/locales/{search → web-search}/te.json +1 -1
  1704. package/locales/{search → web-search}/th.json +1 -1
  1705. package/locales/{search → web-search}/tl.json +1 -1
  1706. package/locales/{search → web-search}/tr.json +1 -1
  1707. package/locales/{search → web-search}/uk.json +1 -1
  1708. package/locales/{search → web-search}/ur.json +1 -1
  1709. package/locales/{search → web-search}/vi.json +1 -1
  1710. package/locales/{search → web-search}/yo.json +1 -1
  1711. package/locales/{search → web-search}/zh-Hans.json +3 -3
  1712. package/locales/{search → web-search}/zh-Hant.json +19 -19
  1713. package/locales/yo.json +37 -20
  1714. package/locales/you/br.json +13 -13
  1715. package/locales/you/co.json +2 -2
  1716. package/locales/you/de.json +1 -1
  1717. package/locales/you/en.json +1 -1
  1718. package/locales/you/es.json +2 -2
  1719. package/locales/you/fr-CA.json +3 -3
  1720. package/locales/you/fr.json +3 -3
  1721. package/locales/you/it.json +10 -10
  1722. package/locales/you/ja.json +9 -9
  1723. package/locales/you/pt.json +11 -11
  1724. package/locales/you/zh-Hans.json +3 -3
  1725. package/locales/you/zh-Hant.json +3 -3
  1726. package/locales/zh-Hans.json +56 -39
  1727. package/locales/zh-Hant.json +66 -49
  1728. package/package.json +1 -1
  1729. package/preview.html +8 -2
  1730. package/ui/base.js +33 -0
  1731. package/ui/caps.js +18 -15
  1732. package/ui/csp.js +1 -1
  1733. package/ui/export.js +4 -4
  1734. package/ui/icons.js +4 -4
  1735. package/ui/kit.js +12 -7
  1736. package/ui/looks/classic.css +2 -0
  1737. package/ui/looks/human.css +15 -5
  1738. package/ui/looks/neon.css +4 -5
  1739. package/ui/looks/tilde.css +1 -1
  1740. package/ui/looks/velvet.css +1 -1
  1741. package/ui/looks.js +2 -5
  1742. package/ui/markdown.js +23 -19
  1743. package/ui/menu-icons.js +13 -5
  1744. package/ui/model.js +4 -4
  1745. package/ui/pointed.js +22 -0
  1746. package/ui/reader-state.js +4 -3
  1747. package/ui/reader.js +1 -1
  1748. package/ui/seal.js +80 -25
  1749. package/ui/shown.js +53 -0
  1750. package/ui/style.css +19 -21
  1751. package/ui/touches.js +22 -0
  1752. package/ui/view.css +27 -1
  1753. package/ui/view.js +38 -15
  1754. package/vendor/pele/lazy.d.ts +1 -0
  1755. package/locales/reader/ja.json +0 -9
  1756. package/ui/looks/mondrian.css +0 -90
  1757. package/ui/looks/paper.css +0 -51
  1758. /package/locales/{reader → natural-voice}/am.json +0 -0
  1759. /package/locales/{reader → natural-voice}/ar.json +0 -0
  1760. /package/locales/{reader → natural-voice}/bg.json +0 -0
  1761. /package/locales/{reader → natural-voice}/bn.json +0 -0
  1762. /package/locales/{reader → natural-voice}/br.json +0 -0
  1763. /package/locales/{reader → natural-voice}/co.json +0 -0
  1764. /package/locales/{reader → natural-voice}/cs.json +0 -0
  1765. /package/locales/{reader → natural-voice}/da.json +0 -0
  1766. /package/locales/{reader → natural-voice}/de.json +0 -0
  1767. /package/locales/{reader → natural-voice}/el.json +0 -0
  1768. /package/locales/{reader → natural-voice}/en.json +0 -0
  1769. /package/locales/{reader → natural-voice}/fa.json +0 -0
  1770. /package/locales/{reader → natural-voice}/fi.json +0 -0
  1771. /package/locales/{reader → natural-voice}/fr-CA.json +0 -0
  1772. /package/locales/{reader → natural-voice}/fr.json +0 -0
  1773. /package/locales/{reader → natural-voice}/ha.json +0 -0
  1774. /package/locales/{reader → natural-voice}/he.json +0 -0
  1775. /package/locales/{reader → natural-voice}/hi.json +0 -0
  1776. /package/locales/{reader → natural-voice}/hr.json +0 -0
  1777. /package/locales/{reader → natural-voice}/hu.json +0 -0
  1778. /package/locales/{reader → natural-voice}/id.json +0 -0
  1779. /package/locales/{reader → natural-voice}/it.json +0 -0
  1780. /package/locales/{reader → natural-voice}/ko.json +0 -0
  1781. /package/locales/{reader → natural-voice}/mr.json +0 -0
  1782. /package/locales/{reader → natural-voice}/ms.json +0 -0
  1783. /package/locales/{reader → natural-voice}/nl.json +0 -0
  1784. /package/locales/{reader → natural-voice}/pl.json +0 -0
  1785. /package/locales/{reader → natural-voice}/pt.json +0 -0
  1786. /package/locales/{reader → natural-voice}/ro.json +0 -0
  1787. /package/locales/{reader → natural-voice}/ru.json +0 -0
  1788. /package/locales/{reader → natural-voice}/sk.json +0 -0
  1789. /package/locales/{reader → natural-voice}/sv.json +0 -0
  1790. /package/locales/{reader → natural-voice}/sw.json +0 -0
  1791. /package/locales/{reader → natural-voice}/ta.json +0 -0
  1792. /package/locales/{reader → natural-voice}/te.json +0 -0
  1793. /package/locales/{reader → natural-voice}/th.json +0 -0
  1794. /package/locales/{reader → natural-voice}/tl.json +0 -0
  1795. /package/locales/{reader → natural-voice}/tr.json +0 -0
  1796. /package/locales/{reader → natural-voice}/uk.json +0 -0
  1797. /package/locales/{reader → natural-voice}/ur.json +0 -0
  1798. /package/locales/{reader → natural-voice}/vi.json +0 -0
  1799. /package/locales/{reader → natural-voice}/yo.json +0 -0
@@ -22,7 +22,13 @@ const routed = (url) => url.replace(/^(https?):\/\//, 'jean://$1/')
22
22
  /** @param {string} url */
23
23
  const direct = (url) => url.replace(/^jean:\/\/(https?)\//, '$1://')
24
24
 
25
- /** MapLibre, made ready once: its worker classic, and every address it reaches fetched by Jean. @type {Promise<any> | undefined} */
25
+ /**
26
+ * What Jean lends a map (interactive.js): MapLibre and its worker as text, its style sheet, the map service's styles for light and dark,
27
+ * whether maps are allowed, and the words it says; with MapLibre made ready.
28
+ * @typedef {{ library: string, worker: string, css: string, styles: Record<'light' | 'dark', string>, allowed: boolean, strings: Record<string, string>, maplibregl: typeof import('maplibre-gl') }} Lent
29
+ */
30
+ /** A place its fold names, and what it says of itself. @typedef {{ name: unknown, about: unknown }} Named */
31
+ /** MapLibre, made ready once: its worker classic, and every address it reaches fetched by Jean. @type {Promise<Lent> | undefined} */
26
32
  let lent
27
33
  const lend = () => (lent ??= ask({ need: 'maplibre' }).then(async (given) => {
28
34
  const maplibregl = await import(URL.createObjectURL(new Blob([given.library], { type: 'text/javascript' })))
@@ -55,7 +61,7 @@ function rgba(colour) {
55
61
  /** Features of a kind, one or many (MultiPoint is points too). @param {string} type */
56
62
  const kind = (type) => ['in', ['geometry-type'], ['literal', [type, `Multi${type}`]]]
57
63
 
58
- /** Every position in some GeoJSON. @param {any} value @returns {number[][]} */
64
+ /** Every position in some GeoJSON. @param {unknown} value @returns {number[][]} */
59
65
  const positions = (value) => (Array.isArray(value) && typeof value[0] === 'number' ? [value] : Array.isArray(value) ? value.flatMap(positions)
60
66
  : value && typeof value === 'object' ? Object.entries(value).flatMap(([key, inner]) => (key === 'properties' ? [] : positions(inner))) : [])
61
67
 
@@ -132,12 +138,12 @@ class AppMap extends HTMLElement {
132
138
  tell() {
133
139
  const data = this.data, strings = this.given?.strings
134
140
  if (!data || !strings) return
135
- const named = (data.features ?? [data]).map((/** @type {any} */ one) => ({ name: one?.properties?.name ?? one?.properties?.title ?? positions(one)[0]?.toReversed().join(', '), about: one?.properties?.description })).filter((/** @type {any} */ { name }) => name)
141
+ const named = (data.features ?? [data]).map((/** @type {{ properties?: Record<string, unknown> | null }} */ one) => ({ name: one?.properties?.name ?? one?.properties?.title ?? positions(one)[0]?.toReversed().join(', '), about: one?.properties?.description })).filter((/** @type {Named} */ { name }) => name)
136
142
  const list = this.words.querySelector('ul') ?? this.words.appendChild(document.createElement('ul'))
137
- list.replaceChildren(...named.map((/** @type {any} */ { name, about }) => Object.assign(document.createElement('li'), { dir: 'auto', textContent: about ? `${name}: ${about}` : name })))
143
+ list.replaceChildren(...named.map((/** @type {Named} */ { name, about }) => Object.assign(document.createElement('li'), { dir: 'auto', textContent: about ? `${name}: ${about}` : name })))
138
144
  this.words.hidden = !named.length
139
145
  if (!this.words.querySelector('summary')) this.words.prepend(Object.assign(document.createElement('summary'), { textContent: strings.words }))
140
- this.map?.getCanvas().setAttribute('aria-label', named.length ? strings.named.replace('{places}', new Intl.ListFormat(document.documentElement.lang || undefined).format(named.map((/** @type {any} */ { name }) => String(name)))) : strings.map)
146
+ this.map?.getCanvas().setAttribute('aria-label', named.length ? strings.named.replace('{places}', new Intl.ListFormat(document.documentElement.lang || undefined).format(named.map((/** @type {Named} */ { name }) => String(name)))) : strings.map)
141
147
  }
142
148
 
143
149
  /** The map service's style for the page's light or dark. */
@@ -0,0 +1,15 @@
1
+ // What visual answers draw (D291, D631), each as a start drawn at once that a document's "/" offers (D485): a page, the charts a page
2
+ // draws, diagrams, a map, a timeline and key figures. Each has its name's key among a document's strings, a glyph, a few English words
3
+ // to find it by as well as its name, and its Markdown, as an answer writes it. Pure, so a document reads it without the rest of this capability.
4
+
5
+ /** @type {{ key: string, glyph: string, words: string, markdown: string }[]} */
6
+ export const STARTS = [
7
+ { key: 'page', glyph: '</>', words: 'page html app web interactive', markdown: '```html\n```' },
8
+ ...Object.entries({ bar: ['▃▇', 'column histogram'], line: ['∿', 'trend curve'], area: ['◢', 'filled'], pie: ['◔', 'donut doughnut share'], hbar: ['☰', 'horizontal across ranking'] }).map(([kind, [glyph, more]]) => ({ key: `${kind}Chart`, glyph, words: `chart graph plot ${kind} ${more}`, markdown: `\`\`\`html\n<app-chart kind="${kind}">\nA | B | C | D\n1: 3, 5, 2, 6\n</app-chart>\n\`\`\`` })),
9
+ { key: 'flowchart', glyph: '◇', words: 'diagram flowchart graph process decision mermaid', markdown: '```mermaid\nflowchart LR\n A --> B\n```' },
10
+ { key: 'mindMap', glyph: '⊛', words: 'diagram mind map ideas brainstorm mermaid', markdown: '```mermaid\nmindmap\n root((A))\n B\n C\n D\n```' },
11
+ { key: 'sequence', glyph: '⇄', words: 'diagram sequence messages exchange mermaid', markdown: '```mermaid\nsequenceDiagram\n A->>B: 1\n B-->>A: 2\n```' },
12
+ { key: 'map', glyph: '⌖', words: 'map places geojson', markdown: '```geojson\n{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[2.35,48.86]},"properties":{}}]}\n```' },
13
+ { key: 'timeline', glyph: '◷', words: 'timeline schedule agenda dates history', markdown: '- **09:00** A\n- **10:30** B\n- **12:00** C' },
14
+ { key: 'figures', glyph: '#', words: 'key figures numbers metrics stats kpi', markdown: '- **3** A\n- **85%** B\n- **12** C' },
15
+ ]
@@ -0,0 +1,76 @@
1
+ // Apps played before the turn ends (D689): each page with a script that a step of an answer wrote is played out of sight, as
2
+ // Games plays a game (D648), in a frame of its kind (preview.html), given what it kept: what goes wrong is caught as it starts,
3
+ // then as each of its controls is used once, its buttons pressed and its fields changed; nothing it sends or saves goes anywhere.
4
+ // What broke, in the browser's words, goes back to the brain, which writes it again (turn.answer, core/loop.js).
5
+ import { app } from '../../ui/state.js'
6
+ import { pagePolicy, pageRights, PAGE_SANDBOX } from '../../ui/csp.js'
7
+ import { lex } from '../../ui/markdown.js'
8
+ import { head, library, part, LENT, named, keptAt } from './interactive.js'
9
+ import { parse } from './parts.js'
10
+
11
+ /** How long a page has to start, before its controls are used, and in all. */
12
+ const [START, ALL] = [800, 6000]
13
+ /** The notes each turn may give, so that a page the brain can't mend doesn't take all its steps. @type {WeakMap<AbortSignal, number>} */
14
+ const told = new WeakMap()
15
+
16
+ /**
17
+ * What catches what goes wrong, ahead of the page, and uses its controls when told (its buttons pressed, its fields but a file's
18
+ * changed): errors and failures left unhandled, each said once, in the browser's words. Its listeners' errors are caught as they
19
+ * run, as WebKit tells the page no more than "Script error." of what a written script throws. What its policy blocks isn't a
20
+ * fault: a fetch the page catches works offline, and WebKit's policy refuses every <select>'s style.
21
+ */
22
+ const PROBE = /* html */ `<script>{const faults=[],fault=(words)=>{words=String(words);if(!faults.includes(words))faults.push(words)},add=EventTarget.prototype.addEventListener,remove=EventTarget.prototype.removeEventListener,own=new WeakMap()
23
+ EventTarget.prototype.addEventListener=function(type,run,...rest){if(typeof run==='function'&&!own.has(run))own.set(run,function(...args){try{return run.apply(this,args)}catch(e){fault(e?.message??e)}});return add.call(this,type,own.get(run)??run,...rest)}
24
+ EventTarget.prototype.removeEventListener=function(type,run,...rest){return remove.call(this,type,own.get(run)??run,...rest)}
25
+ add.call(window,'error',(e)=>fault(e.message))
26
+ add.call(window,'unhandledrejection',(e)=>fault('Unhandled: '+(e.reason?.message??e.reason)))
27
+ for(const name of['alert','confirm','prompt'])globalThis[name]=()=>fault(name+'() is never shown')
28
+ add.call(window,'message',({data,source})=>{if(source!==parent||!data?.play)return
29
+ for(const one of document.querySelectorAll('button,input:not([type=file]),select,textarea'))one.matches('button')?one.click():(one.dispatchEvent(new Event('input',{bubbles:true})),one.dispatchEvent(new Event('change',{bubbles:true})))
30
+ setTimeout(()=>parent.postMessage({faults},'*'),400)})}</script>`
31
+
32
+ /**
33
+ * One page played: what went wrong, each once; nothing when it played clean or didn't answer in time.
34
+ * @param {string} source @param {Record<string, string>} storage what it kept @param {AbortSignal} [signal] @returns {Promise<string[]>}
35
+ */
36
+ function play(source, storage, signal) {
37
+ const { allows, sites } = pageRights(app.settings.peek(), app.policy)
38
+ const box = Object.assign(document.createElement('div'), { className: 'page-test', inert: true }), frame = Object.assign(document.createElement('iframe'), { src: new URL('../../preview.html', import.meta.url).href })
39
+ frame.setAttribute('sandbox', PAGE_SANDBOX)
40
+ box.setAttribute('aria-hidden', 'true')
41
+ return new Promise((resolve) => {
42
+ const done = (/** @type {string[]} */ faults) => { clearTimeout(timer); removeEventListener('message', heard); box.remove(); resolve(faults) }
43
+ const heard = (/** @type {MessageEvent} */ { source: from, data }) => {
44
+ if (from !== frame.contentWindow) return
45
+ const answer = (/** @type {object} */ reply) => frame.contentWindow?.postMessage({ ...reply, id: data.id }, '*')
46
+ if (Array.isArray(data?.faults)) done(data.faults.map(String))
47
+ else if (data?.need === 'echarts') void library().then(({ text }) => frame.contentWindow?.postMessage({ echarts: text }, '*'))
48
+ else if (Object.hasOwn(LENT, data?.need)) void part(LENT[data.need]).then((text) => answer({ text }))
49
+ else if (typeof data?.diagram === 'string') answer({})
50
+ }
51
+ const timer = setTimeout(() => done([]), ALL)
52
+ signal?.addEventListener('abort', () => done([]), { once: true })
53
+ addEventListener('message', heard)
54
+ frame.addEventListener('load', async () => {
55
+ const { url } = await library(), ahead = head(getComputedStyle(document.documentElement), url)
56
+ frame.contentWindow?.postMessage({ page: PROBE + ahead + source, policy: pagePolicy(allows, sites, true), storage }, '*')
57
+ setTimeout(() => frame.contentWindow?.postMessage({ play: true }, '*'), START)
58
+ }, { once: true })
59
+ box.append(frame)
60
+ document.body.append(box)
61
+ })
62
+ }
63
+
64
+ /**
65
+ * What the brain is told of the pages with a script its answer just wrote, played; nothing when they all played clean.
66
+ * @param {{ text: string, task?: string, signal?: AbortSignal }} e @returns {Promise<string>}
67
+ */
68
+ export async function played({ text, task = '', signal }) {
69
+ const pages = lex(text).flatMap((token) => (token.type === 'code' && token.lang === 'html' && /<script\b/i.test(token.text) && !parse(token.text) ? [token.text] : []))
70
+ if (!pages.length || !signal || (told.get(signal) ?? 0) >= 2) return ''
71
+ const at = keptAt(task), kept = at ? JSON.parse((await app.fs.read(at).catch(() => null)) ?? '{}').apps ?? {} : {}
72
+ const broke = (await Promise.all(pages.map(async (source) => ({ name: named(source), faults: await play(source, kept[named(source)] ?? {}, signal) })))).filter(({ faults }) => faults.length)
73
+ if (!broke.length) return ''
74
+ told.set(signal, (told.get(signal) ?? 0) + 1)
75
+ return `Played out of sight, ${broke.length > 1 ? 'pages you wrote' : 'the page you wrote'} broke:\n${broke.map(({ name, faults }) => `${name ? `${name}:\n` : ''}${faults.map((fault) => `- ${fault}`).join('\n')}`).join('\n')}\nWrite it again whole, fixed, after a sentence saying what you fixed.`
76
+ }
@@ -22,7 +22,10 @@ import { parse, all, bound, key, frozen, figures, table, chart, form, number, ch
22
22
  import { shared } from './live.js'
23
23
 
24
24
  /** @import { Part } from './parts.js' */
25
- /** A part as it is drawn: one that shows a collection with its lines filled, the collection followed, and a form's columns; or the name of one not here, or of one its `where` can't filter. @typedef {Part & { live?: any, columns?: any[], missing?: string, unread?: string }} Shown */
25
+ /** @import { Signal } from '@preact/signals-core' */
26
+ /** @import { Loaded } from '../tables/tables.js' */
27
+ /** @import { Property } from '../tables/table.js' */
28
+ /** A part as it is drawn: one that shows a collection with its lines filled, the collection followed, and a form's columns; or the name of one not here, or of one its `where` can't filter. @typedef {Part & { live?: Signal<Loaded | null>, columns?: Property[], missing?: string, unread?: string }} Shown */
26
29
 
27
30
  /** A chart's option for ECharts: bars, lines, areas, bars across or a pie, by its labels and series. @param {ReturnType<typeof chart>} drawing */
28
31
  function option({ kind, labels, series }) {
@@ -65,7 +68,7 @@ customElements.define('app-parts', class extends HTMLElement {
65
68
  given = new Map()
66
69
  /** How each of its tables is sorted, by its place among them: by which column, and whether down. @type {Map<number, { column: number, down: boolean }>} */
67
70
  sorted = new Map()
68
- /** The collections its parts name, by name: followed, a signal; being read, null; out of its reach, false. @type {Map<string, any>} */
71
+ /** The collections its parts name, by name: followed, a signal; being read, null; out of its reach, false. @type {Map<string, Signal<Loaded | null> | null | false>} */
69
72
  followed = new Map()
70
73
  /** What lets them go with it. @type {(() => void)[]} */
71
74
  holds = []
@@ -10,7 +10,9 @@ import { app, keepRecords } from '../../ui/state.js'
10
10
  import { metaRecord } from '../../core/events.js'
11
11
  import { styleSheet } from '../../ui/sheet.js'
12
12
  import { t, dir, locale, useStrings, intlLocales } from '../../core/i18n.js'
13
- import { aligned, compared, marked, roomy, stepped, titled, sequenced, noted, timed, figured, ticked, columns, cjk } from './shapes.js'
13
+ import { aligned, compared, marked, roomy, stepped, titled, sequenced, noted, timed, figured, ticked, columns, cjk, unfinished, settled } from './shapes.js'
14
+ /** @import { Token, Tokens } from 'marked' */
15
+ /** @import { Table, List } from './types.js' */
14
16
 
15
17
  await Promise.all([useStrings('layouts'), styleSheet(new URL('layouts.css', import.meta.url))])
16
18
 
@@ -34,30 +36,33 @@ function fits(box) {
34
36
  requestAnimationFrame(() => [box, box.firstElementChild].forEach((part) => part && fitting.observe(part)))
35
37
  }
36
38
 
37
- /** Options as cards, the best of each row lit, the one recommended framed under its badge; any other table as it is, its amounts at the end. @param {any} token */
39
+ /**
40
+ * Options as cards, the best of each row lit, the one recommended framed under its badge; any other table as it is, its
41
+ * amounts at the end; each told from its whole rows, the one being written shown as it comes. @param {Table} token
42
+ */
38
43
  function table(token) {
39
- const shape = compared(token)
44
+ const done = settled(token), shape = compared(done)
40
45
  if (!shape) {
41
- const align = aligned(token).map((side) => side && `align-${side}`), heads = namesRows(token.header[0]?.text ?? '', token.rows.map((/** @type {any[]} */ row) => row[0]?.text.trim() ?? ''))
46
+ const align = aligned(done).map((side) => side && `align-${side}`), heads = namesRows(token.header[0]?.text ?? '', done.rows.map((row) => row[0]?.text.trim() ?? ''))
42
47
  return html`<div class="table" tabindex="0" ${ref(fits)}><table aria-label=${token.title ?? nothing}>
43
- <thead><tr>${token.header.map((/** @type {any} */ cell, /** @type {number} */ i) => html`<th scope="col" class=${align[i]}>${inline(cell.tokens)}</th>`)}</tr></thead>
44
- <tbody>${token.rows.map((/** @type {any[]} */ row) => html`<tr>${row.map((cell, i) => (i || !heads ? html`<td class=${align[i]}>${inline(cell.tokens)}</td>`
48
+ <thead><tr>${token.header.map((cell, i) => html`<th scope="col" class=${align[i]}>${inline(cell.tokens)}</th>`)}</tr></thead>
49
+ <tbody>${token.rows.map((row) => html`<tr>${row.map((cell, i) => (i || !heads ? html`<td class=${align[i]}>${inline(cell.tokens)}</td>`
45
50
  : html`<th scope="row" class=${align[i]}>${inline(cell.tokens)}</th>`))}</tr>`)}</tbody>
46
51
  </table></div>`
47
52
  }
48
53
  // The criteria, often in bold, are no option's best.
49
- /** @param {any} cell @param {number} i @param {boolean} [head] */
54
+ /** @param {Tokens.TableCell} cell @param {number} i @param {boolean} [head] */
50
55
  const classes = (cell, i, head) => [token.align[i] && `align-${token.align[i]}`, i === shape.pick && 'is-pick', !head && i > 0 && marked(cell)].filter(Boolean).join(' ')
51
- return html`<div class="table is-compare ${roomy(token) ? 'is-roomy' : ''}" tabindex="0" ${ref(fits)}><table aria-label=${token.title ?? nothing}>
52
- <thead><tr>${token.header.map((/** @type {any} */ cell, /** @type {number} */ i) => html`<th scope="col" class=${classes(cell, i, true)}>${i === shape.pick ? html`<span class="pick-tag" lang=${locale.value} dir=${dir()}>${t('layouts.recommended')}</span> ` : nothing}${inline(cell.tokens)}</th>`)}</tr></thead>
53
- <tbody>${token.rows.map((/** @type {any[]} */ row) => html`<tr>${row.map((cell, i) => (i ? html`<td class=${classes(cell, i)}>${inline(cell.tokens)}</td>` : html`<th scope="row" class=${classes(cell, i)}>${inline(cell.tokens)}</th>`))}</tr>`)}</tbody>
56
+ return html`<div class="table is-compare ${roomy(done) ? 'is-roomy' : ''}" tabindex="0" ${ref(fits)}><table aria-label=${token.title ?? nothing}>
57
+ <thead><tr>${token.header.map((cell, i) => html`<th scope="col" class=${classes(cell, i, true)}>${i === shape.pick ? html`<span class="pick-tag" lang=${locale.value} dir=${dir()}>${t('layouts.recommended')}</span> ` : nothing}${inline(cell.tokens)}</th>`)}</tr></thead>
58
+ <tbody>${token.rows.map((row) => html`<tr>${row.map((cell, i) => (i ? html`<td class=${classes(cell, i)}>${inline(cell.tokens)}</td>` : html`<th scope="row" class=${classes(cell, i)}>${inline(cell.tokens)}</th>`))}</tr>`)}</tbody>
54
59
  </table></div>`
55
60
  }
56
61
 
57
- /** Steps, each number in a ring, a title on a line of its own; a timeline, key figures, a checklist. @param {any} token */
62
+ /** Steps, each number in a ring, a title on a line of its own; a timeline, key figures, a checklist. @param {List} token */
58
63
  const list = (token) => stepped(token) ? html`<ol class="steps" start=${token.start || 1}>${token.items.map(step)}</ol>`
59
- : timed(token) ? html`<ol class="timeline">${token.items.map((/** @type {any} */ item) => html`<li>${told(item, (when, rest) => html`<time>${when}</time><div>${rest}</div>`)}</li>`)}</ol>`
60
- : figured(token) ? html`<ul class="figures">${token.items.map((/** @type {any} */ item) => html`<li>${told(item, (number, rest) => html`<strong>${number}</strong><span>${rest}</span>`)}</li>`)}</ul>`
64
+ : timed(token) ? html`<ol class="timeline">${token.items.map((item) => html`<li>${told(item, (when, rest) => html`<time>${when}</time><div>${rest}</div>`)}</li>`)}</ol>`
65
+ : figured(token) ? html`<ul class="figures">${token.items.map((item) => html`<li>${told(item, (number, rest) => html`<strong>${number}</strong><span>${rest}</span>`)}</li>`)}</ul>`
61
66
  : ticked(token) ? checklist(token) : null
62
67
 
63
68
  /**
@@ -67,24 +72,24 @@ const list = (token) => stepped(token) ? html`<ol class="steps" start=${token.st
67
72
  function told(item, draw) {
68
73
  const [first, ...more] = item.tokens
69
74
  const title = titled(first.tokens)
70
- return draw(inline(first.tokens[0].tokens), [inline(title ? title.rest : first.tokens.slice(1)), more.map((/** @type {any} */ token) => blocks([token]))])
75
+ return draw(inline(first.tokens[0].tokens), [inline(title ? title.rest : first.tokens.slice(1)), more.map((/** @type {Token} */ token) => blocks([token]))])
71
76
  }
72
77
 
73
- /** A list's own name, from what it holds, for the ticks kept for it. @param {any} token */
74
- const named = (token) => token.items.map((/** @type {any} */ item) => item.text).join('\n')
78
+ /** A list's own name, from what it holds, for the ticks kept for it. @param {List} token */
79
+ const named = (token) => token.items.map((item) => item.text).join('\n')
75
80
 
76
81
  /** Checklists drawn, which names each one's boxes apart. */
77
82
  let checklists = 0
78
83
  /**
79
84
  * A checklist: each thing to do ticked, struck through, and how many are done, with a bar. What is
80
85
  * ticked is kept in the conversation, a meta record for the list (its items' words), the latest winning.
81
- * @param {any} token
86
+ * @param {List} token
82
87
  */
83
88
  function checklist(token) {
84
89
  const list = named(token)
85
90
  /** @param {import('../../core/types.js').Envelope[]} records */
86
91
  const doneIn = (records) => new Set(/** @type {number[]} */ (records.findLast((record) => record.meta?.ticks?.list === list)?.meta?.ticks.done
87
- ?? token.items.flatMap((/** @type {any} */ item, /** @type {number} */ i) => (item.checked ? [i] : []))))
92
+ ?? token.items.flatMap((item, i) => (item.checked ? [i] : []))))
88
93
  const done = doneIn(app.current.value?.records ?? [])
89
94
  const count = new Intl.NumberFormat(intlLocales()), at = ++checklists
90
95
  // Shown at once, from the ticks of the moment, then kept, in the order they were made.
@@ -98,9 +103,9 @@ function checklist(token) {
98
103
  }
99
104
  return html`<div class="checklist">
100
105
  <p class="checklist-count"><span role="status" lang=${locale.value} dir=${dir()}>${t('layouts.ticked', { done: count.format(done.size), total: count.format(token.items.length) })}</span><progress aria-hidden="true" max=${token.items.length} .value=${done.size}></progress></p>
101
- <ul>${token.items.map((/** @type {any} */ item, /** @type {number} */ i) => html`<li class=${done.has(i) ? 'is-done' : ''}><label for=${`tick-${at}-${i}`}>
106
+ <ul>${token.items.map((item, i) => html`<li class=${done.has(i) ? 'is-done' : ''}><label for=${`tick-${at}-${i}`}>
102
107
  <input id=${`tick-${at}-${i}`} type="checkbox" .checked=${done.has(i)} @change=${(/** @type {Event} */ e) => tick(i, /** @type {HTMLInputElement} */ (e.target).checked)}>
103
- <span>${item.tokens.map((/** @type {any} */ part) => (part.type === 'checkbox' ? nothing : part.type === 'text' ? inline(part.tokens ?? [part]) : blocks([part])))}</span>
108
+ <span>${item.tokens.map((part) => (part.type === 'checkbox' ? nothing : part.type === 'text' ? inline(part.tokens ?? [part]) : blocks([part])))}</span>
104
109
  </label></li>`)}</ul>
105
110
  </div>`
106
111
  }
@@ -110,30 +115,24 @@ function step(item) {
110
115
  const [first, ...rest] = item.tokens
111
116
  const title = titled(first.tokens)
112
117
  const lead = title ? html`${inline(first.tokens.slice(0, 1))}<span class="end">${title.end}</span>${inline(title.rest)}` : inline(first.tokens)
113
- return html`<li>${first.type === 'paragraph' ? html`<p>${lead}</p>` : lead}${rest.map((/** @type {any} */ token) => (token.type === 'text' ? inline(token.tokens ?? [token]) : blocks([token])))}</li>`
118
+ return html`<li>${first.type === 'paragraph' ? html`<p>${lead}</p>` : lead}${rest.map((/** @type {Token} */ token) => (token.type === 'text' ? inline(token.tokens ?? [token]) : blocks([token])))}</li>`
114
119
  }
115
120
 
116
- /** A note, in its kind's colour, titled with the kind's name or its own words. @param {any} token */
121
+ /** A note, in its kind's colour, titled with the kind's name or its own words. @param {Tokens.Blockquote} token */
117
122
  function blockquote(token) {
118
123
  const note = noted(token)
119
124
  if (!note) return null
120
125
  return html`<blockquote class="callout is-${note.kind}" role="note">${note.text === undefined ? blocks(token.tokens)
121
- : html`<p class="callout-title" role="heading" aria-level="4" lang=${note.title ? nothing : locale.value} dir=${note.title ? nothing : dir()}>${note.title ? inline(/** @type {any} */ (lex(note.title)[0])?.tokens) : t(`layouts.${note.kind}`)}</p>${blocks(lex(note.text))}`}</blockquote>`
126
+ : html`<p class="callout-title" role="heading" aria-level="4" lang=${note.title ? nothing : locale.value} dir=${note.title ? nothing : dir()}>${note.title ? inline(/** @type {{ tokens?: Token[] } | undefined} */ (lex(note.title)[0])?.tokens) : t(`layouts.${note.kind}`)}</p>${blocks(lex(note.text))}`}</blockquote>`
122
127
  }
123
128
 
124
129
  /** An address as it reads, escaped or not. @param {string} address */
125
- function unescaped(address) {
126
- try {
127
- return decodeURI(address)
128
- } catch {
129
- return address
130
- }
131
- }
130
+ const unescaped = (address) => { try { return decodeURI(address) } catch { return address } }
132
131
 
133
132
  /**
134
133
  * A picture a source gave, at the address it gave, or one the user shared, by its name (D35): never
135
134
  * an address the brain wrote, which injected words could have filled with what the conversation
136
- * holds. One that doesn't load goes. Any other picture stays its words. @param {any} token
135
+ * holds. One that doesn't load goes. Any other picture stays its words. @param {Tokens.Image} token
137
136
  */
138
137
  function image(token) {
139
138
  const href = unescaped(token.href)
@@ -148,9 +147,11 @@ function image(token) {
148
147
  }
149
148
 
150
149
  parser.use({ extensions: [columns] }, cjk)
151
- /** Tokens with steps gathered, each table told its title: the heading or the line ending in a colon just above it. @param {any[]} tokens */
152
- const gathered = (tokens) => sequenced(tokens).map((/** @type {any} */ token, i, all) => {
150
+ /** Tokens with steps gathered, each table told its title: the heading or the line ending in a colon just above it. @param {Token[]} tokens */
151
+ const gathered = (tokens) => sequenced(tokens).map((token, i, all) => {
153
152
  const above = all[i - (all[i - 1]?.type === 'space' ? 2 : 1)]
154
153
  return token.type === 'table' && (above?.type === 'heading' || (above?.type === 'paragraph' && /[::]\s*$/.test(above.text))) ? { ...token, title: above.text.replace(/[::\s*_`]+$|[*_`]/g, '') } : token
155
154
  })
156
- shapes.value = { table, list, blockquote, image, blocks: gathered, columns: (token) => html`<div class="columns">${token.columns.map((/** @type {any} */ column) => html`<div>${blocks(column.tokens)}</div>`)}</div>` }
155
+ /** An answer still being written (ui/markdown.js), read as it will be, its last block, unless a line ends it, marked as still being written. @param {string} source */
156
+ const still = (source) => { const tokens = lex(unfinished(source)); Object.assign(tokens.at(-1) ?? {}, { still: true }); return tokens }
157
+ shapes.value = { table, list, blockquote, image, blocks: gathered, still, columns: (token) => html`<div class="columns">${token.columns.map((/** @type {{ tokens: Token[] }} */ column) => html`<div>${blocks(column.tokens)}</div>`)}</div>` }
@@ -1,20 +1,38 @@
1
1
  // Which shape a table, a numbered list or a quote has (D215), told from its Markdown alone, never its
2
2
  // words, so that it holds in every language. The tokens are marked's.
3
3
  import { Marked, Tokenizer } from 'marked'
4
+ /** @import { Token, Tokens } from 'marked' */
5
+ /** @import { Table, List } from './types.js' */
4
6
 
5
7
  /** A number and no word: a price, a share, a date. */
6
8
  const AMOUNT = /^\P{L}*\p{N}\P{L}*$/u
7
9
 
8
- /** How each column lines up: as the table says, or at the end for a column of amounts. @param {any} token @returns {string[]} */
9
- export const aligned = (token) => token.align.map((/** @type {string | null} */ side, /** @type {number} */ i) => side ?? (i && token.rows.every((/** @type {any[]} */ row) => AMOUNT.test(row[i].text)) ? 'right' : ''))
10
+ /** How each column lines up: as the table says, or at the end for a column of amounts. @param {{ align: (string | null)[], rows: { text: string }[][] }} token @returns {string[]} */
11
+ export const aligned = (token) => token.align.map((/** @type {string | null} */ side, /** @type {number} */ i) => side ?? (i && token.rows.length && token.rows.every((row) => AMOUNT.test(row[i].text)) ? 'right' : ''))
12
+
13
+ /**
14
+ * An answer still being written, read as it will be once its last line is, so that no table or list changes shape at each
15
+ * word (D215): a table's head waits for its rule, a row or a list's marker for its first word, a run of * or _ for what
16
+ * it opens, a number in bold for what may make it a step, and bold that opened is closed. In an open fence, as written.
17
+ * @param {string} source
18
+ */
19
+ export function unfinished(source) {
20
+ if ((source.match(/^[ \t]*(?:`{3,}|~{3,})/gm)?.length ?? 0) % 2) return source
21
+ const lines = source.replace(/(?<!\\)[*_~]+$/, '').split('\n'), row = /^\s*\|/
22
+ if (/^\s*(?:\|[\s|:-]*|-+|(?:\*\*)?\d{1,9}|(?:[*+-]|\d{1,9}[.)])(?:\s+\[[ xX]?\]?)?)\s*$/.test(lines[lines.length - 1])) lines[lines.length - 1] = ''
23
+ const end = lines.length - (lines.at(-1) ? 0 : 1)
24
+ if (row.test(lines[end - 1]) && !row.test(lines[end - 2])) lines.length = end - 1
25
+ const text = lines.join('\n'), line = (lines.at(-1) ?? '').replace(/`[^`]*`/g, '')
26
+ return line.includes('`') || line.split('**').length % 2 || !/\*\*\S(?!.*\*\*)/.test(line) ? text : text.replace(/\s*$/, '**$&')
27
+ }
28
+
29
+ /** A table's rows that are whole: not the last while it is still being written. @param {Table} token */
30
+ export const settled = (token) => (token.still && !token.raw.endsWith('\n') ? { ...token, rows: token.rows.slice(0, -1) } : token)
10
31
 
11
32
  // What a cell holds: a mark (✓, ✗, a dash, or nothing), an amount, a few words, or more.
12
33
  const MARK = /^(?:[✓✔✅☑✗✘❌✖—–-]\uFE0F?)?$/u
13
- /** @param {any} cell */
14
- function kind(cell) {
15
- const text = cell.text.replace(/[*_~`]/g, '').trim()
16
- return MARK.test(text) ? 0 : AMOUNT.test(text) ? 1 : text.length > 24 ? 3 : 2
17
- }
34
+ /** @param {Tokens.TableCell} cell */
35
+ const kind = (cell) => { const text = cell.text.replace(/[*_~`]/g, '').trim(); return MARK.test(text) ? 0 : AMOUNT.test(text) ? 1 : text.length > 24 ? 3 : 2 }
18
36
 
19
37
  /** The share of lines whose cells are all of one kind. @param {number[][]} lines */
20
38
  const alike = (lines) => lines.filter((line) => line.every((k) => k === line[0])).length / lines.length
@@ -23,13 +41,13 @@ const alike = (lines) => lines.filter((line) => line.every((k) => k === line[0])
23
41
  * A comparison: two to five options side by side, the criteria down the start. It has a ★ on the
24
42
  * option recommended, its corner left empty (a table of numbers alone aside), or rows more alike than
25
43
  * its columns: a price in each, a ✓ in each, where a table of records has a column of prices.
26
- * @param {any} token @returns {{ pick: number } | null} the recommended option's column, or -1
44
+ * @param {Table} token @returns {{ pick: number } | null} the recommended option's column, or -1
27
45
  */
28
46
  export function compared(token) {
29
47
  if (token.header.length < 3 || token.header.length > 6 || token.rows.length < 2) return null
30
- const rows = token.rows.map((/** @type {any[]} */ row) => row.slice(1).map(kind))
48
+ const rows = token.rows.map((row) => row.slice(1).map(kind))
31
49
  const columns = rows[0].map((/** @type {number} */ _, /** @type {number} */ i) => rows.map((/** @type {number[]} */ row) => row[i]))
32
- const pick = token.header.findIndex((/** @type {any} */ cell) => /[★⭐]/u.test(cell.text))
50
+ const pick = token.header.findIndex((cell) => /[★⭐]/u.test(cell.text))
33
51
  const cornered = !token.header[0].text.trim() && !rows.flat().every((/** @type {number} */ k) => k === 1)
34
52
  return pick > 0 || cornered || alike(rows) > alike(columns) ? { pick: pick > 0 ? pick : -1 } : null
35
53
  }
@@ -40,21 +58,19 @@ const DOUBLE = /[\p{sc=Han}\p{sc=Hiragana}\p{sc=Katakana}\p{sc=Hangul}\uFF00-\uF
40
58
  /**
41
59
  * Whether a comparison's options say much: their longest cells, side by side, over 110 characters (a
42
60
  * Chinese, Japanese or Korean one counting two). Their cards then take the room beside the text.
43
- * @param {any} token
61
+ * @param {Table} token
44
62
  */
45
- export function roomy(token) {
46
- /** @param {any} cell */
47
- const size = (cell) => [...cell.text.replace(/[*_~`]/g, '')].reduce((n, char) => n + (DOUBLE.test(char) ? 2 : 1), 0)
48
- return token.header.slice(1).reduce((/** @type {number} */ sum, /** @type {any} */ _, /** @type {number} */ i) => sum + Math.max(...token.rows.map((/** @type {any[]} */ row) => size(row[i + 1]))), 0) > 110
49
- }
63
+ export const roomy = (token) => token.header.slice(1).reduce((/** @type {number} */ sum, /** @type {Tokens.TableCell} */ _, /** @type {number} */ i) => sum + Math.max(...token.rows.map((row) => size(row[i + 1]))), 0) > 110
64
+ /** @param {Tokens.TableCell} cell */
65
+ const size = (cell) => [...cell.text.replace(/[*_~`]/g, '')].reduce((n, char) => n + (DOUBLE.test(char) ? 2 : 1), 0)
50
66
 
51
- /** What sets a comparison's cell apart: the best of its row (in bold, and only that), a yes or a no. @param {any} cell */
67
+ /** What sets a comparison's cell apart: the best of its row (in bold, and only that), a yes or a no. @param {Tokens.TableCell} cell */
52
68
  export function marked(cell) {
53
- const parts = cell.tokens.filter((/** @type {any} */ part) => part.type !== 'text' || part.text.trim())
69
+ const parts = cell.tokens.filter((part) => part.type !== 'text' || part.text.trim())
54
70
  return [parts.length === 1 && parts[0].type === 'strong' && 'is-best', /^[✓✔✅☑]/u.test(cell.text) && 'is-yes', /^[✗✘❌✖]/u.test(cell.text) && 'is-no'].filter(Boolean).join(' ')
55
71
  }
56
72
 
57
- /** Numbered items that each start in bold are steps, as are those `sequenced` gathers. @param {any} token */
73
+ /** Numbered items that each start in bold are steps, as are those `sequenced` gathers. @param {List} token */
58
74
  export const stepped = (token) => token.steps || (token.ordered && token.items.length > 1 && token.items.every(bold))
59
75
  /** @param {any} item */
60
76
  const bold = (item) => item.tokens[0]?.tokens?.[0]?.type === 'strong'
@@ -65,20 +81,20 @@ const lead = (item) => (bold(item) ? item.tokens[0].tokens[0].text.trim() : '')
65
81
  const DAY = String.raw`(?:\d{1,2}[:h.]\d{2}|\d{4}(?:-\d{2}){0,2}|\d{1,2}[/.]\d{1,2}(?:[/.]\d{2,4})?)`
66
82
  const WHEN = new RegExp(`^${DAY}(?:\\s*[–-]\\s*${DAY})?$`)
67
83
 
68
- /** A timeline (D291): a list whose items each start with a time or a date, in bold. @param {any} token */
69
- export const timed = (token) => !token.ordered && token.items.length > 1 && token.items.every((/** @type {any} */ item) => WHEN.test(lead(item)))
84
+ /** A timeline (D291): a list whose items each start with a time or a date, in bold, the last maybe still being written. @param {List} token */
85
+ export const timed = (token) => !token.ordered && token.items.length > 1 && token.items.every((item, i, all) => WHEN.test(lead(item)) || (token.still && bold(item) && !all[i + 1]))
70
86
 
71
- /** Key figures (D291): two to six items, each a number in bold and a few words. @param {any} token */
87
+ /** Key figures (D291): two to six items, each a number in bold and a few words. @param {List} token */
72
88
  export const figured = (token) => !token.ordered && token.items.length > 1 && token.items.length < 7
73
- && token.items.every((/** @type {any} */ item) => AMOUNT.test(lead(item)) && item.tokens.length === 1 && item.text.replace(/[*_]/g, '').length < 60)
89
+ && token.items.every((item) => AMOUNT.test(lead(item)) && item.tokens.length === 1 && item.text.replace(/[*_]/g, '').length < 60)
74
90
 
75
- /** A checklist (D291): a list of things to do, ticked or not. @param {any} token */
76
- export const ticked = (token) => token.items.every((/** @type {any} */ item) => item.task)
91
+ /** A checklist (D291): a list of things to do, ticked or not. @param {List} token */
92
+ export const ticked = (token) => token.items.every((item) => item.task)
77
93
 
78
94
  /**
79
95
  * A step's bold start is its title when the line ends there or a colon or a dash follows it: what
80
96
  * ends it, kept for copying, and what follows. Null when it has no bold start, or its bold words begin a sentence.
81
- * @param {any[]} tokens a step's first line @returns {{ end: string, rest: any[] } | null}
97
+ * @param {any[]} tokens a step's first line @returns {{ end: string, rest: Token[] } | null}
82
98
  */
83
99
  export function titled([title, next, ...after]) {
84
100
  if (title?.type !== 'strong') return null
@@ -93,16 +109,16 @@ const NUMBER = /^(\d{1,3})[.)](?:\s+|$)/
93
109
  * Where a block starts steps, each with its number and first blocks: a paragraph that starts in bold
94
110
  * with its number ("**1. Choose**", "**1.** Choose"), without it, or a numbered list whose items all
95
111
  * start in bold. Null for any other block.
96
- * @param {any} token @returns {{ n: number, tokens: any[] }[] | null}
112
+ * @param {any} token @returns {{ n: number, tokens: Token[] }[] | null}
97
113
  */
98
114
  function starts(token) {
99
- if (token.type === 'list') return token.ordered && token.items.every(bold) ? token.items.map((/** @type {any} */ item, /** @type {number} */ i) => ({ n: (token.start || 1) + i, tokens: item.tokens })) : null
115
+ if (token.type === 'list') return token.ordered && token.items.every(bold) ? token.items.map((/** @type {Tokens.ListItem} */ item, /** @type {number} */ i) => ({ n: (token.start || 1) + i, tokens: item.tokens })) : null
100
116
  const [strong, ...rest] = token.type === 'paragraph' ? token.tokens : []
101
117
  const first = strong?.type === 'strong' ? strong.tokens[0] : null
102
118
  const number = first?.type === 'text' ? NUMBER.exec(first.text) : null
103
119
  if (!number) return null
104
120
  const title = [{ ...first, text: first.text.slice(number[0].length), tokens: undefined }, ...strong.tokens.slice(1)].filter((part) => part.type !== 'text' || part.text)
105
- const line = title.length ? [{ ...strong, tokens: title }, ...rest] : rest.map((/** @type {any} */ part, /** @type {number} */ i) => (i || part.type !== 'text' ? part : { ...part, text: part.text.trimStart(), tokens: undefined }))
121
+ const line = title.length ? [{ ...strong, tokens: title }, ...rest] : rest.map((/** @type {Token} */ part, /** @type {number} */ i) => (i || part.type !== 'text' ? part : { ...part, text: part.text.trimStart(), tokens: undefined }))
106
122
  return [{ n: Number(number[1]), tokens: [{ ...token, tokens: line }] }]
107
123
  }
108
124
 
@@ -111,14 +127,14 @@ function starts(token) {
111
127
  * lists cut apart by what each step holds, each followed by its details, made one numbered list of
112
128
  * steps. A step holds what follows it up to the next, the last as many blocks as the longest before it
113
129
  * (an answer's closing words aren't the last step's); a heading, a rule or a number out of turn ends them.
114
- * @param {any[]} tokens @returns {any[]}
130
+ * @param {Token[]} tokens @returns {Token[]}
115
131
  */
116
132
  export function sequenced(tokens) {
117
133
  const out = []
118
134
  for (let i = 0; i < tokens.length;) {
119
- /** @type {{ n: number, tokens: any[], holds: any[] }[]} */
135
+ /** @type {{ n: number, tokens: Token[], holds: Token[] }[]} */
120
136
  const steps = (starts(tokens[i]) ?? []).map((step) => ({ ...step, holds: [] }))
121
- /** @type {any[]} */
137
+ /** @type {Token[]} */
122
138
  let after = []
123
139
  let j = i + 1
124
140
  for (; steps.length && j < tokens.length && tokens[j].type !== 'heading' && tokens[j].type !== 'hr'; j++) {
@@ -151,7 +167,7 @@ const ALERT = /^\[!(note|tip|important|warning|caution)\][ \t]*([^\n]*)\n?/i
151
167
  /**
152
168
  * A note: a GitHub alert, its kind, its own title if it has one, and its text; or a quote that starts
153
169
  * with an emoji, its kind from that emoji. Null for any other quote.
154
- * @param {any} token @returns {{ kind: string, title?: string, text?: string } | null}
170
+ * @param {Tokens.Blockquote} token @returns {{ kind: string, title?: string, text?: string } | null}
155
171
  */
156
172
  export function noted(token) {
157
173
  const alert = ALERT.exec(token.text)
@@ -0,0 +1,8 @@
1
+ // Layouts' shapes, for the type check only: marked's tokens as answers read them, with what Jean adds to them.
2
+ import type { Tokens } from 'marked'
3
+
4
+ /** A table: marked's, whether it is still being written (layouts.js), and its title, the line above it. */
5
+ export type Table = Tokens.Table & { still?: boolean, title?: string }
6
+
7
+ /** A list: marked's, whether it is still being written, and whether `sequenced` gathered it of steps written apart. */
8
+ export type List = Tokens.List & { still?: boolean, steps?: boolean }
@@ -81,10 +81,10 @@ export async function wordLook() {
81
81
  /** A picture of the project's, as a document names one. */
82
82
  const KEPT = /!\[[^\]]*\]\((\.\.\/files\/sha256-[\da-f]{64}\.(\w+))\)/g
83
83
  /** What a Word file holds as pictures, by what its Markdown says of each: the project's it names, and what's drawn on the page, by its code. @param {string} source @param {Element} [page] */
84
- const picturesIn = async (source, page) => new Map(/** @type {[string, import('./formats.js').Picture][]} */ ((await Promise.all(/** @type {Promise<any[]>[]} */ ([
84
+ export const picturesIn = async (source, page) => new Map(/** @type {[string, import('./formats.js').Picture][]} */ ((await Promise.all(/** @type {Promise<any[]>[]} */ ([
85
85
  ...[...source.matchAll(KEPT)].map(async ([, at, kind]) => [at, await forWord(new Blob([/** @type {BlobPart} */ (await app.fs.readBytes(`${app.projectDir}/${at.slice(3)}`))], { type: `image/${kind.replace('jpg', 'jpeg')}` }))]),
86
86
  // Drawn twice as fine as they show.
87
- ...[...page?.querySelectorAll('.drawn-form :is(app-chart, app-score, app-slides, app-latex, app-diagram)') ?? []].map(async (one) => [one.getAttribute('source'), await forWord(await /** @type {any} */ (one).picture(), (width, height) => [width / 2, height / 2])]),
87
+ ...[...page?.querySelectorAll('.drawn-form :is(app-chart, app-score, app-slides, app-latex, app-diagram)') ?? []].map(async (one) => [one.getAttribute('source'), await forWord(await /** @type {{ picture(): Promise<Blob | string> }} */ (/** @type {unknown} */ (one)).picture(), (width, height) => [width / 2, height / 2])]),
88
88
  ]).map((entry) => entry.catch((error) => console.warn('Word', error) ?? [])))).filter((entry) => entry.length)))
89
89
 
90
90
  /** A collection in a document's Markdown, each as its rows under its name, in Word's Markdown. @param {string} source */
@@ -110,20 +110,29 @@ export async function downloadWord(source, title, { made, page } = {}) {
110
110
 
111
111
  /** A collection as a page says it, under its name, for a print. @param {string} folder */
112
112
  export async function rowsOf(folder) {
113
- const grid = await (await import('../tables/tables.js')).gridIn(folder), box = document.createElement('div')
113
+ const grid = await (await import('../tables/tables.js')).gridIn(folder), box = Object.assign(document.createElement('div'), { className: 'paper-rows' })
114
114
  const cells = (/** @type {string[]} */ row, /** @type {(cell: string, right: boolean) => unknown} */ draw) => row.map((cell, i) => draw(cell, Boolean(grid?.right[i])))
115
115
  if (grid) render(html`<h3 dir="auto">${grid.name}</h3><table><thead><tr>${cells(grid.rows[0], (cell, right) => html`<th dir="auto" class=${right ? 'paper-end' : nothing}>${cell}</th>`)}</tr></thead>
116
116
  <tbody>${grid.rows.slice(1).map((row) => html`<tr>${cells(row, (cell, right) => html`<td dir="auto" class=${right ? 'paper-end' : nothing}>${cell}</td>`)}</tr>`)}</tbody></table>`, box)
117
117
  return box
118
118
  }
119
119
 
120
+ /** Whether a table's columns, each as wide as its words on one line up to sixteen letters', are wider than `room`. @param {HTMLTableElement} table @param {number} room */
121
+ function wide(table, room) {
122
+ table.style.inlineSize = 'max-content'
123
+ const most = 16 * parseFloat(getComputedStyle(table).fontSize), sum = [...table.rows[0]?.cells ?? []].reduce((all, cell) => all + Math.min(cell.offsetWidth, most), 0)
124
+ table.style.removeProperty('inline-size')
125
+ return sum > room
126
+ }
127
+
120
128
  /**
121
129
  * A document printed alone, what it draws drawn again out of sight at a page's width, a few seconds at most, then gone: as it reads, what
122
130
  * Jean suggests left out and a block being written drawn; its logo once, at its start, or at its end for a corner at the foot. Within a Word file's
123
- * margins, on whichever paper the print dialog holds, the words filling its width and a chart scaled to it in proportion.
124
- * @param {HTMLElement} dom its editor's
131
+ * margins, on whichever paper the print dialog holds, the words filling its width and a chart scaled to it in proportion. Turned on its side for a
132
+ * table too wide to read upright, where the browser can (Safari can't, and shrinks the page to fit).
133
+ * @param {HTMLElement} dom its editor's @param {{ turn?: boolean }} [options] whether a wide table turns the page
125
134
  */
126
- export async function printPage(dom) {
135
+ export async function printPage(dom, { turn } = {}) {
127
136
  const look = await dress(), holder = document.body.appendChild(Object.assign(document.createElement('div'), { className: 'document paper-print' })), page = /** @type {HTMLElement} */ (dom.cloneNode(true))
128
137
  for (const one of page.querySelectorAll('.suggest')) one.remove()
129
138
  for (const one of page.querySelectorAll('.suggest-old, .is-editing')) one.classList.remove('suggest-old', 'is-editing')
@@ -134,9 +143,17 @@ export async function printPage(dom) {
134
143
  holder.append(page)
135
144
  if (look?.logo) holder[look.logoAt?.startsWith('bottom') ? 'append' : 'prepend'](logoOf(look))
136
145
  const drawing = () => [...holder.querySelectorAll('app-shared, app-chart, app-score, app-diagram, app-latex')].some((one) => !one.querySelector('img, svg, canvas, table, .latex-page')) || [...holder.querySelectorAll('img')].some((one) => !one.complete)
137
- await printAlone(holder, 'is-printing-paper', { page: '@page { margin: 2.54cm }', drawing,
146
+ const across = Boolean(turn) && [...holder.querySelectorAll('table')].some((table) => wide(table, holder.clientWidth))
147
+ holder.classList.toggle('is-across', across)
148
+ // One wider than the page, its words whole, takes smaller letters to fit it, three fifths of the room's at least, then breaks its words where it must.
149
+ const room = holder.clientWidth, least = 0.6 * parseFloat(getComputedStyle(document.documentElement).fontSize)
150
+ for (const table of holder.querySelectorAll('table')) {
151
+ for (let pass = 0; pass < 3 && table.offsetWidth > room; pass++) table.style.fontSize = `${Math.max(least, parseFloat(getComputedStyle(table).fontSize) * 0.98 * room / table.offsetWidth)}px`
152
+ table.classList.toggle('paper-cut', table.offsetWidth > room)
153
+ }
154
+ await printAlone(holder, 'is-printing-paper', { page: `@page { ${across ? 'size: landscape; ' : ''}margin: 2.54cm }`, drawing,
138
155
  ready: () => { for (const chart of holder.querySelectorAll('.chart')) /** @type {HTMLElement} */ (chart).style.aspectRatio = `${/** @type {HTMLElement} */ (chart).offsetWidth} / ${/** @type {HTMLElement} */ (chart).offsetHeight}` } })
139
156
  }
140
157
 
141
- /** What isn't a document printed as one: `drawn`, in a page of its own. @param {unknown} drawn */
142
- export const printDrawn = (drawn) => { const page = Object.assign(document.createElement('div'), { className: 'doc prose' }); render(drawn, page); return printPage(page) }
158
+ /** What isn't a document printed as one: `drawn`, in a page of its own. @param {unknown} drawn @param {{ turn?: boolean }} [options] */
159
+ export const printDrawn = (drawn, options) => { const page = Object.assign(document.createElement('div'), { className: 'doc prose' }); render(drawn, page); return printPage(page, options) }
@@ -194,7 +194,7 @@ export async function readToken(token) {
194
194
  for (const certificate of children(signed.find((node) => node.tag === 0xa0) ?? read(Uint8Array.of(0x30, 0)))) {
195
195
  const { spki, subject } = readCertificate(raw(certificate))
196
196
  const key = await keyOf(spki, hash).catch(() => null)
197
- const curve = /** @type {any} */ (key?.algorithm)?.namedCurve
197
+ const curve = /** @type {Partial<EcKeyAlgorithm> | undefined} */ (key?.algorithm)?.namedCurve
198
198
  const bytes = curve ? p1363(valueOf(signature), Math.ceil(Number(curve.slice(2)) / 8)) : valueOf(signature)
199
199
  if (key && await crypto.subtle.verify(curve ? { name: 'ECDSA', hash } : 'RSASSA-PKCS1-v1_5', key, /** @type {BufferSource} */ (bytes), /** @type {BufferSource} */ (message))) authority = subject
200
200
  }