@jean-is/render 0.8.0-r4f6f65307b98 → 0.8.0-r76d96f3bc93c

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 (987) hide show
  1. package/brand.js +4 -6
  2. package/caps/files/extract.js +19 -12
  3. package/caps/files/midi.js +1 -1
  4. package/caps/files/numbers.js +193 -0
  5. package/caps/files/office.js +3 -3
  6. package/caps/games/file.js +56 -0
  7. package/caps/games/frame.css +22 -0
  8. package/caps/games/guard.js +86 -0
  9. package/caps/games/page.js +52 -0
  10. package/caps/games/shell.js +260 -0
  11. package/caps/interactive/apps.js +14 -9
  12. package/caps/interactive/interactive.css +19 -6
  13. package/caps/interactive/interactive.js +17 -3
  14. package/caps/interactive/parts.js +116 -0
  15. package/caps/interactive/view-parts.js +189 -0
  16. package/caps/layouts/layouts.css +6 -5
  17. package/caps/layouts/layouts.js +1 -1
  18. package/caps/layouts/shapes.js +1 -1
  19. package/caps/made/formats.js +77 -41
  20. package/caps/made/paper.js +173 -0
  21. package/caps/receipt/certificate.js +1 -1
  22. package/caps/scores/scores.css +9 -3
  23. package/caps/scores/scores.js +98 -42
  24. package/caps/skills/directory.js +6 -3
  25. package/caps/skills/sources.js +4 -2
  26. package/caps/slides/edit.js +2 -2
  27. package/caps/slides/kit-page.css +8 -2
  28. package/caps/slides/kit-page.js +26 -17
  29. package/caps/slides/kit-sample.js +36 -0
  30. package/caps/slides/kit-slot.js +10 -0
  31. package/caps/slides/kit.js +3 -0
  32. package/caps/slides/slides.js +11 -14
  33. package/core/conversations.js +153 -0
  34. package/core/deferred.js +4 -4
  35. package/core/events.js +1 -1
  36. package/core/files.js +14 -8
  37. package/core/fs.js +1 -5
  38. package/core/llm.js +11 -25
  39. package/core/loop.js +4 -4
  40. package/core/oauth.js +31 -0
  41. package/core/search.js +1 -1
  42. package/core/settings.js +12 -11
  43. package/core/skills.js +3 -3
  44. package/core/vertex.js +37 -0
  45. package/locales/am.json +7 -8
  46. package/locales/ar.json +7 -8
  47. package/locales/bg.json +7 -8
  48. package/locales/bn.json +7 -8
  49. package/locales/br.json +7 -8
  50. package/locales/brains/am.json +4 -3
  51. package/locales/brains/ar.json +4 -3
  52. package/locales/brains/bg.json +4 -3
  53. package/locales/brains/bn.json +4 -3
  54. package/locales/brains/br.json +4 -3
  55. package/locales/brains/co.json +4 -3
  56. package/locales/brains/cs.json +4 -3
  57. package/locales/brains/da.json +4 -3
  58. package/locales/brains/de.json +4 -3
  59. package/locales/brains/el.json +4 -3
  60. package/locales/brains/en.json +4 -3
  61. package/locales/brains/es.json +4 -3
  62. package/locales/brains/fa.json +4 -3
  63. package/locales/brains/fi.json +4 -3
  64. package/locales/brains/fr-CA.json +4 -3
  65. package/locales/brains/fr.json +4 -3
  66. package/locales/brains/ha.json +4 -3
  67. package/locales/brains/he.json +4 -3
  68. package/locales/brains/hi.json +4 -3
  69. package/locales/brains/hr.json +4 -3
  70. package/locales/brains/hu.json +4 -3
  71. package/locales/brains/id.json +4 -3
  72. package/locales/brains/it.json +4 -3
  73. package/locales/brains/ja.json +4 -3
  74. package/locales/brains/ko.json +4 -3
  75. package/locales/brains/mr.json +4 -3
  76. package/locales/brains/ms.json +4 -3
  77. package/locales/brains/nl.json +4 -3
  78. package/locales/brains/pl.json +4 -3
  79. package/locales/brains/pt.json +4 -3
  80. package/locales/brains/ro.json +4 -3
  81. package/locales/brains/ru.json +4 -3
  82. package/locales/brains/sk.json +4 -3
  83. package/locales/brains/sv.json +4 -3
  84. package/locales/brains/sw.json +4 -3
  85. package/locales/brains/ta.json +4 -3
  86. package/locales/brains/te.json +4 -3
  87. package/locales/brains/th.json +4 -3
  88. package/locales/brains/tl.json +4 -3
  89. package/locales/brains/tr.json +4 -3
  90. package/locales/brains/uk.json +4 -3
  91. package/locales/brains/ur.json +4 -3
  92. package/locales/brains/vi.json +4 -3
  93. package/locales/brains/yo.json +4 -3
  94. package/locales/brains/zh-Hans.json +4 -3
  95. package/locales/brains/zh-Hant.json +4 -3
  96. package/locales/camera/am.json +20 -0
  97. package/locales/camera/ar.json +20 -0
  98. package/locales/camera/bg.json +20 -0
  99. package/locales/camera/bn.json +20 -0
  100. package/locales/camera/br.json +20 -0
  101. package/locales/camera/co.json +20 -0
  102. package/locales/camera/cs.json +20 -0
  103. package/locales/camera/da.json +20 -0
  104. package/locales/camera/de.json +20 -0
  105. package/locales/camera/el.json +20 -0
  106. package/locales/camera/en.json +20 -0
  107. package/locales/camera/es.json +20 -0
  108. package/locales/camera/fa.json +20 -0
  109. package/locales/camera/fi.json +20 -0
  110. package/locales/camera/fr-CA.json +20 -0
  111. package/locales/camera/fr.json +20 -0
  112. package/locales/camera/ha.json +20 -0
  113. package/locales/camera/he.json +20 -0
  114. package/locales/camera/hi.json +20 -0
  115. package/locales/camera/hr.json +20 -0
  116. package/locales/camera/hu.json +20 -0
  117. package/locales/camera/id.json +20 -0
  118. package/locales/camera/it.json +20 -0
  119. package/locales/camera/ja.json +20 -0
  120. package/locales/camera/ko.json +20 -0
  121. package/locales/camera/mr.json +20 -0
  122. package/locales/camera/ms.json +20 -0
  123. package/locales/camera/nl.json +20 -0
  124. package/locales/camera/pl.json +20 -0
  125. package/locales/camera/pt.json +20 -0
  126. package/locales/camera/ro.json +20 -0
  127. package/locales/camera/ru.json +20 -0
  128. package/locales/camera/sk.json +20 -0
  129. package/locales/camera/sv.json +20 -0
  130. package/locales/camera/sw.json +20 -0
  131. package/locales/camera/ta.json +20 -0
  132. package/locales/camera/te.json +20 -0
  133. package/locales/camera/th.json +20 -0
  134. package/locales/camera/tl.json +20 -0
  135. package/locales/camera/tr.json +20 -0
  136. package/locales/camera/uk.json +20 -0
  137. package/locales/camera/ur.json +20 -0
  138. package/locales/camera/vi.json +20 -0
  139. package/locales/camera/yo.json +20 -0
  140. package/locales/camera/zh-Hans.json +20 -0
  141. package/locales/camera/zh-Hant.json +20 -0
  142. package/locales/co.json +7 -8
  143. package/locales/creations/am.json +12 -8
  144. package/locales/creations/ar.json +12 -8
  145. package/locales/creations/bg.json +12 -8
  146. package/locales/creations/bn.json +12 -8
  147. package/locales/creations/br.json +12 -8
  148. package/locales/creations/co.json +12 -8
  149. package/locales/creations/cs.json +12 -8
  150. package/locales/creations/da.json +12 -8
  151. package/locales/creations/de.json +12 -8
  152. package/locales/creations/el.json +12 -8
  153. package/locales/creations/en.json +12 -8
  154. package/locales/creations/es.json +12 -8
  155. package/locales/creations/fa.json +12 -8
  156. package/locales/creations/fi.json +12 -8
  157. package/locales/creations/fr-CA.json +12 -8
  158. package/locales/creations/fr.json +12 -8
  159. package/locales/creations/ha.json +12 -8
  160. package/locales/creations/he.json +12 -8
  161. package/locales/creations/hi.json +12 -8
  162. package/locales/creations/hr.json +12 -8
  163. package/locales/creations/hu.json +12 -8
  164. package/locales/creations/id.json +12 -8
  165. package/locales/creations/it.json +12 -8
  166. package/locales/creations/ja.json +12 -8
  167. package/locales/creations/ko.json +12 -8
  168. package/locales/creations/mr.json +12 -8
  169. package/locales/creations/ms.json +12 -8
  170. package/locales/creations/nl.json +12 -8
  171. package/locales/creations/pl.json +12 -8
  172. package/locales/creations/pt.json +12 -8
  173. package/locales/creations/ro.json +12 -8
  174. package/locales/creations/ru.json +12 -8
  175. package/locales/creations/sk.json +12 -8
  176. package/locales/creations/sv.json +12 -8
  177. package/locales/creations/sw.json +12 -8
  178. package/locales/creations/ta.json +12 -8
  179. package/locales/creations/te.json +12 -8
  180. package/locales/creations/th.json +12 -8
  181. package/locales/creations/tl.json +12 -8
  182. package/locales/creations/tr.json +12 -8
  183. package/locales/creations/uk.json +12 -8
  184. package/locales/creations/ur.json +12 -8
  185. package/locales/creations/vi.json +12 -8
  186. package/locales/creations/yo.json +12 -8
  187. package/locales/creations/zh-Hans.json +12 -8
  188. package/locales/creations/zh-Hant.json +12 -8
  189. package/locales/cs.json +7 -8
  190. package/locales/da.json +7 -8
  191. package/locales/de.json +7 -8
  192. package/locales/designs/am.json +0 -1
  193. package/locales/designs/ar.json +0 -1
  194. package/locales/designs/bg.json +0 -1
  195. package/locales/designs/bn.json +0 -1
  196. package/locales/designs/br.json +0 -1
  197. package/locales/designs/co.json +0 -1
  198. package/locales/designs/cs.json +0 -1
  199. package/locales/designs/da.json +0 -1
  200. package/locales/designs/de.json +0 -1
  201. package/locales/designs/el.json +0 -1
  202. package/locales/designs/en.json +0 -1
  203. package/locales/designs/es.json +0 -1
  204. package/locales/designs/fa.json +0 -1
  205. package/locales/designs/fi.json +0 -1
  206. package/locales/designs/fr-CA.json +0 -1
  207. package/locales/designs/fr.json +0 -1
  208. package/locales/designs/ha.json +0 -1
  209. package/locales/designs/he.json +0 -1
  210. package/locales/designs/hi.json +0 -1
  211. package/locales/designs/hr.json +0 -1
  212. package/locales/designs/hu.json +0 -1
  213. package/locales/designs/id.json +0 -1
  214. package/locales/designs/it.json +0 -1
  215. package/locales/designs/ja.json +0 -1
  216. package/locales/designs/ko.json +0 -1
  217. package/locales/designs/mr.json +0 -1
  218. package/locales/designs/ms.json +0 -1
  219. package/locales/designs/nl.json +0 -1
  220. package/locales/designs/pl.json +0 -1
  221. package/locales/designs/pt.json +0 -1
  222. package/locales/designs/ro.json +0 -1
  223. package/locales/designs/ru.json +0 -1
  224. package/locales/designs/sk.json +0 -1
  225. package/locales/designs/sv.json +0 -1
  226. package/locales/designs/sw.json +0 -1
  227. package/locales/designs/ta.json +0 -1
  228. package/locales/designs/te.json +0 -1
  229. package/locales/designs/th.json +0 -1
  230. package/locales/designs/tl.json +0 -1
  231. package/locales/designs/tr.json +0 -1
  232. package/locales/designs/uk.json +0 -1
  233. package/locales/designs/ur.json +0 -1
  234. package/locales/designs/vi.json +0 -1
  235. package/locales/designs/yo.json +0 -1
  236. package/locales/designs/zh-Hans.json +0 -1
  237. package/locales/designs/zh-Hant.json +0 -1
  238. package/locales/dialogs/am.json +3 -0
  239. package/locales/dialogs/ar.json +3 -0
  240. package/locales/dialogs/bg.json +3 -0
  241. package/locales/dialogs/bn.json +3 -0
  242. package/locales/dialogs/br.json +3 -0
  243. package/locales/dialogs/co.json +3 -0
  244. package/locales/dialogs/cs.json +3 -0
  245. package/locales/dialogs/da.json +3 -0
  246. package/locales/dialogs/de.json +3 -0
  247. package/locales/dialogs/el.json +3 -0
  248. package/locales/dialogs/en.json +3 -0
  249. package/locales/dialogs/es.json +3 -0
  250. package/locales/dialogs/fa.json +3 -0
  251. package/locales/dialogs/fi.json +3 -0
  252. package/locales/dialogs/fr-CA.json +5 -2
  253. package/locales/dialogs/fr.json +5 -2
  254. package/locales/dialogs/ha.json +3 -0
  255. package/locales/dialogs/he.json +3 -0
  256. package/locales/dialogs/hi.json +3 -0
  257. package/locales/dialogs/hr.json +3 -0
  258. package/locales/dialogs/hu.json +3 -0
  259. package/locales/dialogs/id.json +3 -0
  260. package/locales/dialogs/it.json +3 -0
  261. package/locales/dialogs/ja.json +3 -0
  262. package/locales/dialogs/ko.json +3 -0
  263. package/locales/dialogs/mr.json +3 -0
  264. package/locales/dialogs/ms.json +3 -0
  265. package/locales/dialogs/nl.json +3 -0
  266. package/locales/dialogs/pl.json +3 -0
  267. package/locales/dialogs/pt.json +3 -0
  268. package/locales/dialogs/ro.json +3 -0
  269. package/locales/dialogs/ru.json +3 -0
  270. package/locales/dialogs/sk.json +3 -0
  271. package/locales/dialogs/sv.json +3 -0
  272. package/locales/dialogs/sw.json +3 -0
  273. package/locales/dialogs/ta.json +3 -0
  274. package/locales/dialogs/te.json +3 -0
  275. package/locales/dialogs/th.json +3 -0
  276. package/locales/dialogs/tl.json +3 -0
  277. package/locales/dialogs/tr.json +3 -0
  278. package/locales/dialogs/uk.json +3 -0
  279. package/locales/dialogs/ur.json +3 -0
  280. package/locales/dialogs/vi.json +3 -0
  281. package/locales/dialogs/yo.json +3 -0
  282. package/locales/dialogs/zh-Hans.json +3 -0
  283. package/locales/dialogs/zh-Hant.json +3 -0
  284. package/locales/documents/am.json +2 -0
  285. package/locales/documents/ar.json +2 -0
  286. package/locales/documents/bg.json +2 -0
  287. package/locales/documents/bn.json +2 -0
  288. package/locales/documents/br.json +2 -0
  289. package/locales/documents/co.json +2 -0
  290. package/locales/documents/cs.json +2 -0
  291. package/locales/documents/da.json +2 -0
  292. package/locales/documents/de.json +2 -0
  293. package/locales/documents/el.json +2 -0
  294. package/locales/documents/en.json +2 -0
  295. package/locales/documents/es.json +2 -0
  296. package/locales/documents/fa.json +2 -0
  297. package/locales/documents/fi.json +2 -0
  298. package/locales/documents/fr-CA.json +2 -0
  299. package/locales/documents/fr.json +2 -0
  300. package/locales/documents/ha.json +2 -0
  301. package/locales/documents/he.json +2 -0
  302. package/locales/documents/hi.json +2 -0
  303. package/locales/documents/hr.json +2 -0
  304. package/locales/documents/hu.json +2 -0
  305. package/locales/documents/id.json +2 -0
  306. package/locales/documents/it.json +2 -0
  307. package/locales/documents/ja.json +2 -0
  308. package/locales/documents/ko.json +2 -0
  309. package/locales/documents/mr.json +2 -0
  310. package/locales/documents/ms.json +2 -0
  311. package/locales/documents/nl.json +2 -0
  312. package/locales/documents/pl.json +2 -0
  313. package/locales/documents/pt.json +2 -0
  314. package/locales/documents/ro.json +2 -0
  315. package/locales/documents/ru.json +2 -0
  316. package/locales/documents/sk.json +2 -0
  317. package/locales/documents/sv.json +2 -0
  318. package/locales/documents/sw.json +2 -0
  319. package/locales/documents/ta.json +2 -0
  320. package/locales/documents/te.json +2 -0
  321. package/locales/documents/th.json +2 -0
  322. package/locales/documents/tl.json +2 -0
  323. package/locales/documents/tr.json +2 -0
  324. package/locales/documents/uk.json +2 -0
  325. package/locales/documents/ur.json +2 -0
  326. package/locales/documents/vi.json +2 -0
  327. package/locales/documents/yo.json +2 -0
  328. package/locales/documents/zh-Hans.json +2 -0
  329. package/locales/documents/zh-Hant.json +2 -0
  330. package/locales/el.json +7 -8
  331. package/locales/en.json +7 -8
  332. package/locales/es.json +7 -8
  333. package/locales/fa.json +7 -8
  334. package/locales/fi.json +7 -8
  335. package/locales/fr-CA.json +8 -9
  336. package/locales/fr.json +8 -9
  337. package/locales/games/am.json +16 -0
  338. package/locales/games/ar.json +16 -0
  339. package/locales/games/bg.json +16 -0
  340. package/locales/games/bn.json +16 -0
  341. package/locales/games/br.json +16 -0
  342. package/locales/games/co.json +16 -0
  343. package/locales/games/cs.json +16 -0
  344. package/locales/games/da.json +16 -0
  345. package/locales/games/de.json +16 -0
  346. package/locales/games/el.json +16 -0
  347. package/locales/games/en.json +16 -0
  348. package/locales/games/es.json +16 -0
  349. package/locales/games/fa.json +16 -0
  350. package/locales/games/fi.json +16 -0
  351. package/locales/games/fr-CA.json +16 -0
  352. package/locales/games/fr.json +16 -0
  353. package/locales/games/ha.json +16 -0
  354. package/locales/games/he.json +16 -0
  355. package/locales/games/hi.json +16 -0
  356. package/locales/games/hr.json +16 -0
  357. package/locales/games/hu.json +16 -0
  358. package/locales/games/id.json +16 -0
  359. package/locales/games/it.json +16 -0
  360. package/locales/games/ja.json +16 -0
  361. package/locales/games/ko.json +16 -0
  362. package/locales/games/mr.json +16 -0
  363. package/locales/games/ms.json +16 -0
  364. package/locales/games/nl.json +16 -0
  365. package/locales/games/pl.json +16 -0
  366. package/locales/games/pt.json +16 -0
  367. package/locales/games/ro.json +16 -0
  368. package/locales/games/ru.json +16 -0
  369. package/locales/games/sk.json +16 -0
  370. package/locales/games/sv.json +16 -0
  371. package/locales/games/sw.json +16 -0
  372. package/locales/games/ta.json +16 -0
  373. package/locales/games/te.json +16 -0
  374. package/locales/games/th.json +16 -0
  375. package/locales/games/tl.json +16 -0
  376. package/locales/games/tr.json +16 -0
  377. package/locales/games/uk.json +16 -0
  378. package/locales/games/ur.json +16 -0
  379. package/locales/games/vi.json +16 -0
  380. package/locales/games/yo.json +16 -0
  381. package/locales/games/zh-Hans.json +16 -0
  382. package/locales/games/zh-Hant.json +16 -0
  383. package/locales/ha.json +7 -8
  384. package/locales/he.json +7 -8
  385. package/locales/hi.json +7 -8
  386. package/locales/hr.json +7 -8
  387. package/locales/hu.json +7 -8
  388. package/locales/id.json +7 -8
  389. package/locales/interactive/am.json +3 -1
  390. package/locales/interactive/ar.json +3 -1
  391. package/locales/interactive/bg.json +3 -1
  392. package/locales/interactive/bn.json +3 -1
  393. package/locales/interactive/br.json +3 -1
  394. package/locales/interactive/co.json +3 -1
  395. package/locales/interactive/cs.json +3 -1
  396. package/locales/interactive/da.json +3 -1
  397. package/locales/interactive/de.json +3 -1
  398. package/locales/interactive/el.json +3 -1
  399. package/locales/interactive/en.json +3 -1
  400. package/locales/interactive/es.json +3 -1
  401. package/locales/interactive/fa.json +3 -1
  402. package/locales/interactive/fi.json +3 -1
  403. package/locales/interactive/fr-CA.json +3 -1
  404. package/locales/interactive/fr.json +3 -1
  405. package/locales/interactive/ha.json +3 -1
  406. package/locales/interactive/he.json +3 -1
  407. package/locales/interactive/hi.json +3 -1
  408. package/locales/interactive/hr.json +3 -1
  409. package/locales/interactive/hu.json +3 -1
  410. package/locales/interactive/id.json +3 -1
  411. package/locales/interactive/it.json +3 -1
  412. package/locales/interactive/ja.json +3 -1
  413. package/locales/interactive/ko.json +3 -1
  414. package/locales/interactive/mr.json +3 -1
  415. package/locales/interactive/ms.json +3 -1
  416. package/locales/interactive/nl.json +3 -1
  417. package/locales/interactive/pl.json +3 -1
  418. package/locales/interactive/pt.json +3 -1
  419. package/locales/interactive/ro.json +3 -1
  420. package/locales/interactive/ru.json +3 -1
  421. package/locales/interactive/sk.json +3 -1
  422. package/locales/interactive/sv.json +3 -1
  423. package/locales/interactive/sw.json +3 -1
  424. package/locales/interactive/ta.json +3 -1
  425. package/locales/interactive/te.json +3 -1
  426. package/locales/interactive/th.json +3 -1
  427. package/locales/interactive/tl.json +3 -1
  428. package/locales/interactive/tr.json +3 -1
  429. package/locales/interactive/uk.json +3 -1
  430. package/locales/interactive/ur.json +3 -1
  431. package/locales/interactive/vi.json +3 -1
  432. package/locales/interactive/yo.json +3 -1
  433. package/locales/interactive/zh-Hans.json +3 -1
  434. package/locales/interactive/zh-Hant.json +3 -1
  435. package/locales/it.json +7 -8
  436. package/locales/ja.json +7 -8
  437. package/locales/ko.json +7 -8
  438. package/locales/made/am.json +3 -1
  439. package/locales/made/ar.json +3 -1
  440. package/locales/made/bg.json +3 -1
  441. package/locales/made/bn.json +3 -1
  442. package/locales/made/br.json +3 -1
  443. package/locales/made/co.json +3 -1
  444. package/locales/made/cs.json +3 -1
  445. package/locales/made/da.json +3 -1
  446. package/locales/made/de.json +3 -1
  447. package/locales/made/el.json +3 -1
  448. package/locales/made/en.json +3 -1
  449. package/locales/made/es.json +3 -1
  450. package/locales/made/fa.json +3 -1
  451. package/locales/made/fi.json +3 -1
  452. package/locales/made/fr-CA.json +3 -1
  453. package/locales/made/fr.json +3 -1
  454. package/locales/made/ha.json +3 -1
  455. package/locales/made/he.json +3 -1
  456. package/locales/made/hi.json +3 -1
  457. package/locales/made/hr.json +3 -1
  458. package/locales/made/hu.json +3 -1
  459. package/locales/made/id.json +3 -1
  460. package/locales/made/it.json +3 -1
  461. package/locales/made/ja.json +3 -1
  462. package/locales/made/ko.json +3 -1
  463. package/locales/made/mr.json +3 -1
  464. package/locales/made/ms.json +3 -1
  465. package/locales/made/nl.json +3 -1
  466. package/locales/made/pl.json +3 -1
  467. package/locales/made/pt.json +3 -1
  468. package/locales/made/ro.json +3 -1
  469. package/locales/made/ru.json +3 -1
  470. package/locales/made/sk.json +3 -1
  471. package/locales/made/sv.json +3 -1
  472. package/locales/made/sw.json +3 -1
  473. package/locales/made/ta.json +3 -1
  474. package/locales/made/te.json +3 -1
  475. package/locales/made/th.json +3 -1
  476. package/locales/made/tl.json +3 -1
  477. package/locales/made/tr.json +3 -1
  478. package/locales/made/uk.json +3 -1
  479. package/locales/made/ur.json +3 -1
  480. package/locales/made/vi.json +3 -1
  481. package/locales/made/yo.json +3 -1
  482. package/locales/made/zh-Hans.json +3 -1
  483. package/locales/made/zh-Hant.json +3 -1
  484. package/locales/mr.json +7 -8
  485. package/locales/ms.json +7 -8
  486. package/locales/nl.json +7 -8
  487. package/locales/pl.json +7 -8
  488. package/locales/pt.json +7 -8
  489. package/locales/ro.json +7 -8
  490. package/locales/routines/am.json +9 -0
  491. package/locales/routines/ar.json +9 -0
  492. package/locales/routines/bg.json +9 -0
  493. package/locales/routines/bn.json +9 -0
  494. package/locales/routines/br.json +9 -0
  495. package/locales/routines/co.json +9 -0
  496. package/locales/routines/cs.json +9 -0
  497. package/locales/routines/da.json +9 -0
  498. package/locales/routines/de.json +9 -0
  499. package/locales/routines/el.json +9 -0
  500. package/locales/routines/en.json +9 -0
  501. package/locales/routines/es.json +9 -0
  502. package/locales/routines/fa.json +9 -0
  503. package/locales/routines/fi.json +9 -0
  504. package/locales/routines/fr-CA.json +9 -0
  505. package/locales/routines/fr.json +9 -0
  506. package/locales/routines/ha.json +9 -0
  507. package/locales/routines/he.json +9 -0
  508. package/locales/routines/hi.json +9 -0
  509. package/locales/routines/hr.json +9 -0
  510. package/locales/routines/hu.json +9 -0
  511. package/locales/routines/id.json +9 -0
  512. package/locales/routines/it.json +9 -0
  513. package/locales/routines/ja.json +9 -0
  514. package/locales/routines/ko.json +9 -0
  515. package/locales/routines/mr.json +9 -0
  516. package/locales/routines/ms.json +9 -0
  517. package/locales/routines/nl.json +9 -0
  518. package/locales/routines/pl.json +9 -0
  519. package/locales/routines/pt.json +9 -0
  520. package/locales/routines/ro.json +9 -0
  521. package/locales/routines/ru.json +9 -0
  522. package/locales/routines/sk.json +9 -0
  523. package/locales/routines/sv.json +9 -0
  524. package/locales/routines/sw.json +9 -0
  525. package/locales/routines/ta.json +9 -0
  526. package/locales/routines/te.json +9 -0
  527. package/locales/routines/th.json +9 -0
  528. package/locales/routines/tl.json +9 -0
  529. package/locales/routines/tr.json +9 -0
  530. package/locales/routines/uk.json +9 -0
  531. package/locales/routines/ur.json +9 -0
  532. package/locales/routines/vi.json +9 -0
  533. package/locales/routines/yo.json +9 -0
  534. package/locales/routines/zh-Hans.json +9 -0
  535. package/locales/routines/zh-Hant.json +9 -0
  536. package/locales/ru.json +7 -8
  537. package/locales/scores/am.json +11 -1
  538. package/locales/scores/ar.json +11 -1
  539. package/locales/scores/bg.json +11 -1
  540. package/locales/scores/bn.json +11 -1
  541. package/locales/scores/br.json +11 -1
  542. package/locales/scores/co.json +11 -1
  543. package/locales/scores/cs.json +11 -1
  544. package/locales/scores/da.json +11 -1
  545. package/locales/scores/de.json +11 -1
  546. package/locales/scores/el.json +11 -1
  547. package/locales/scores/en.json +11 -1
  548. package/locales/scores/es.json +11 -1
  549. package/locales/scores/fa.json +11 -1
  550. package/locales/scores/fi.json +11 -1
  551. package/locales/scores/fr-CA.json +11 -1
  552. package/locales/scores/fr.json +11 -1
  553. package/locales/scores/ha.json +11 -1
  554. package/locales/scores/he.json +11 -1
  555. package/locales/scores/hi.json +11 -1
  556. package/locales/scores/hr.json +11 -1
  557. package/locales/scores/hu.json +11 -1
  558. package/locales/scores/id.json +11 -1
  559. package/locales/scores/it.json +11 -1
  560. package/locales/scores/ja.json +11 -1
  561. package/locales/scores/ko.json +11 -1
  562. package/locales/scores/mr.json +11 -1
  563. package/locales/scores/ms.json +11 -1
  564. package/locales/scores/nl.json +11 -1
  565. package/locales/scores/pl.json +11 -1
  566. package/locales/scores/pt.json +11 -1
  567. package/locales/scores/ro.json +11 -1
  568. package/locales/scores/ru.json +11 -1
  569. package/locales/scores/sk.json +11 -1
  570. package/locales/scores/sv.json +11 -1
  571. package/locales/scores/sw.json +11 -1
  572. package/locales/scores/ta.json +11 -1
  573. package/locales/scores/te.json +11 -1
  574. package/locales/scores/th.json +11 -1
  575. package/locales/scores/tl.json +11 -1
  576. package/locales/scores/tr.json +11 -1
  577. package/locales/scores/uk.json +11 -1
  578. package/locales/scores/ur.json +11 -1
  579. package/locales/scores/vi.json +11 -1
  580. package/locales/scores/yo.json +11 -1
  581. package/locales/scores/zh-Hans.json +11 -1
  582. package/locales/scores/zh-Hant.json +11 -1
  583. package/locales/sk.json +7 -8
  584. package/locales/slides/am.json +14 -1
  585. package/locales/slides/ar.json +14 -1
  586. package/locales/slides/bg.json +14 -1
  587. package/locales/slides/bn.json +14 -1
  588. package/locales/slides/br.json +14 -1
  589. package/locales/slides/co.json +14 -1
  590. package/locales/slides/cs.json +14 -1
  591. package/locales/slides/da.json +14 -1
  592. package/locales/slides/de.json +14 -1
  593. package/locales/slides/el.json +14 -1
  594. package/locales/slides/en.json +14 -1
  595. package/locales/slides/es.json +14 -1
  596. package/locales/slides/fa.json +14 -1
  597. package/locales/slides/fi.json +14 -1
  598. package/locales/slides/fr-CA.json +14 -1
  599. package/locales/slides/fr.json +14 -1
  600. package/locales/slides/ha.json +14 -1
  601. package/locales/slides/he.json +14 -1
  602. package/locales/slides/hi.json +14 -1
  603. package/locales/slides/hr.json +14 -1
  604. package/locales/slides/hu.json +14 -1
  605. package/locales/slides/id.json +14 -1
  606. package/locales/slides/it.json +14 -1
  607. package/locales/slides/ja.json +14 -1
  608. package/locales/slides/ko.json +14 -1
  609. package/locales/slides/mr.json +14 -1
  610. package/locales/slides/ms.json +14 -1
  611. package/locales/slides/nl.json +14 -1
  612. package/locales/slides/pl.json +14 -1
  613. package/locales/slides/pt.json +14 -1
  614. package/locales/slides/ro.json +14 -1
  615. package/locales/slides/ru.json +14 -1
  616. package/locales/slides/sk.json +14 -1
  617. package/locales/slides/sv.json +14 -1
  618. package/locales/slides/sw.json +14 -1
  619. package/locales/slides/ta.json +14 -1
  620. package/locales/slides/te.json +14 -1
  621. package/locales/slides/th.json +14 -1
  622. package/locales/slides/tl.json +14 -1
  623. package/locales/slides/tr.json +14 -1
  624. package/locales/slides/uk.json +14 -1
  625. package/locales/slides/ur.json +14 -1
  626. package/locales/slides/vi.json +14 -1
  627. package/locales/slides/yo.json +14 -1
  628. package/locales/slides/zh-Hans.json +14 -1
  629. package/locales/slides/zh-Hant.json +14 -1
  630. package/locales/sv.json +7 -8
  631. package/locales/sw.json +7 -8
  632. package/locales/sync/am.json +1 -0
  633. package/locales/sync/ar.json +1 -0
  634. package/locales/sync/bg.json +1 -0
  635. package/locales/sync/bn.json +1 -0
  636. package/locales/sync/br.json +1 -0
  637. package/locales/sync/co.json +1 -0
  638. package/locales/sync/cs.json +1 -0
  639. package/locales/sync/da.json +1 -0
  640. package/locales/sync/de.json +1 -0
  641. package/locales/sync/el.json +1 -0
  642. package/locales/sync/en.json +1 -0
  643. package/locales/sync/es.json +1 -0
  644. package/locales/sync/fa.json +1 -0
  645. package/locales/sync/fi.json +1 -0
  646. package/locales/sync/fr-CA.json +1 -0
  647. package/locales/sync/fr.json +1 -0
  648. package/locales/sync/ha.json +1 -0
  649. package/locales/sync/he.json +1 -0
  650. package/locales/sync/hi.json +1 -0
  651. package/locales/sync/hr.json +1 -0
  652. package/locales/sync/hu.json +1 -0
  653. package/locales/sync/id.json +1 -0
  654. package/locales/sync/it.json +1 -0
  655. package/locales/sync/ja.json +1 -0
  656. package/locales/sync/ko.json +1 -0
  657. package/locales/sync/mr.json +1 -0
  658. package/locales/sync/ms.json +1 -0
  659. package/locales/sync/nl.json +1 -0
  660. package/locales/sync/pl.json +1 -0
  661. package/locales/sync/pt.json +1 -0
  662. package/locales/sync/ro.json +1 -0
  663. package/locales/sync/ru.json +1 -0
  664. package/locales/sync/sk.json +1 -0
  665. package/locales/sync/sv.json +1 -0
  666. package/locales/sync/sw.json +1 -0
  667. package/locales/sync/ta.json +1 -0
  668. package/locales/sync/te.json +1 -0
  669. package/locales/sync/th.json +1 -0
  670. package/locales/sync/tl.json +1 -0
  671. package/locales/sync/tr.json +1 -0
  672. package/locales/sync/uk.json +1 -0
  673. package/locales/sync/ur.json +1 -0
  674. package/locales/sync/vi.json +1 -0
  675. package/locales/sync/yo.json +1 -0
  676. package/locales/sync/zh-Hans.json +1 -0
  677. package/locales/sync/zh-Hant.json +1 -0
  678. package/locales/ta.json +7 -8
  679. package/locales/tables/am.json +11 -4
  680. package/locales/tables/ar.json +11 -4
  681. package/locales/tables/bg.json +11 -4
  682. package/locales/tables/bn.json +11 -4
  683. package/locales/tables/br.json +11 -4
  684. package/locales/tables/co.json +11 -4
  685. package/locales/tables/cs.json +11 -4
  686. package/locales/tables/da.json +11 -4
  687. package/locales/tables/de.json +11 -4
  688. package/locales/tables/el.json +11 -4
  689. package/locales/tables/en.json +11 -4
  690. package/locales/tables/es.json +11 -4
  691. package/locales/tables/fa.json +11 -4
  692. package/locales/tables/fi.json +11 -4
  693. package/locales/tables/fr-CA.json +11 -4
  694. package/locales/tables/fr.json +11 -4
  695. package/locales/tables/ha.json +11 -4
  696. package/locales/tables/he.json +11 -4
  697. package/locales/tables/hi.json +11 -4
  698. package/locales/tables/hr.json +11 -4
  699. package/locales/tables/hu.json +11 -4
  700. package/locales/tables/id.json +11 -4
  701. package/locales/tables/it.json +11 -4
  702. package/locales/tables/ja.json +11 -4
  703. package/locales/tables/ko.json +11 -4
  704. package/locales/tables/mr.json +11 -4
  705. package/locales/tables/ms.json +11 -4
  706. package/locales/tables/nl.json +11 -4
  707. package/locales/tables/pl.json +11 -4
  708. package/locales/tables/pt.json +11 -4
  709. package/locales/tables/ro.json +11 -4
  710. package/locales/tables/ru.json +11 -4
  711. package/locales/tables/sk.json +11 -4
  712. package/locales/tables/sv.json +11 -4
  713. package/locales/tables/sw.json +11 -4
  714. package/locales/tables/ta.json +11 -4
  715. package/locales/tables/te.json +11 -4
  716. package/locales/tables/th.json +11 -4
  717. package/locales/tables/tl.json +11 -4
  718. package/locales/tables/tr.json +11 -4
  719. package/locales/tables/uk.json +11 -4
  720. package/locales/tables/ur.json +11 -4
  721. package/locales/tables/vi.json +11 -4
  722. package/locales/tables/yo.json +11 -4
  723. package/locales/tables/zh-Hans.json +11 -4
  724. package/locales/tables/zh-Hant.json +11 -4
  725. package/locales/te.json +7 -8
  726. package/locales/th.json +7 -8
  727. package/locales/tl.json +7 -8
  728. package/locales/tr.json +7 -8
  729. package/locales/uk.json +7 -8
  730. package/locales/ur.json +7 -8
  731. package/locales/vi.json +7 -8
  732. package/locales/yo.json +7 -8
  733. package/locales/zh-Hans.json +7 -8
  734. package/locales/zh-Hant.json +7 -8
  735. package/package.json +5 -1
  736. package/ui/caps.js +6 -4
  737. package/ui/csp.js +1 -1
  738. package/ui/export.js +10 -4
  739. package/ui/icons.js +1 -0
  740. package/ui/kit.js +44 -10
  741. package/ui/looks/classic.css +2 -1
  742. package/ui/looks/human.css +6 -8
  743. package/ui/looks/mail.css +1 -1
  744. package/ui/looks/minimal.css +1 -1
  745. package/ui/looks.js +1 -1
  746. package/ui/menu-icons.js +1 -1
  747. package/ui/model.js +6 -0
  748. package/ui/reader-state.js +1 -1
  749. package/ui/sheet.js +1 -1
  750. package/ui/style.css +18 -13
  751. package/ui/touches.js +1 -1
  752. package/ui/view.css +1 -1
  753. package/ui/view.js +8 -6
  754. package/vendor/LICENSES/babylonjs-core.txt +2 -0
  755. package/vendor/LICENSES/eventemitter3.txt +21 -0
  756. package/vendor/LICENSES/maplibre-gl.txt +1 -1
  757. package/vendor/LICENSES/phaser.txt +20 -0
  758. package/vendor/LICENSES/zzfx.txt +21 -0
  759. package/vendor/abcjs/abcjs.mjs +2 -2
  760. package/vendor/babylon/babylon.mjs +8122 -0
  761. package/vendor/maplibre/maplibre-gl-worker.js +3 -3
  762. package/vendor/maplibre/maplibre-gl.css +1 -1
  763. package/vendor/maplibre/maplibre-gl.mjs +37 -37
  764. package/vendor/marked.esm.js +40 -38
  765. package/vendor/ooxml/abort-JztSoyw2.js +8 -0
  766. package/vendor/ooxml/{hyperlink-Cxzhet30.js → bounded-raw-part-cache-B8t03tSP.js} +4460 -7080
  767. package/vendor/ooxml/bundled-asset-url-BMJ8vNHP.js +13 -0
  768. package/vendor/ooxml/canvas-viewer-mechanics-DI38gHNV.js +653 -0
  769. package/vendor/ooxml/cfb-guard-BIaHdonq.js +516 -0
  770. package/vendor/ooxml/{chunk-DmhlhrBa.js → chunk-D5OxutzX.js} +0 -2
  771. package/vendor/ooxml/comment-overlay-controller-Crm5Syhx.js +974 -0
  772. package/vendor/ooxml/{comment-ui-runtime-CWGqn5Vr.js → comment-ui-runtime-BfEPgl5r.js} +5 -7
  773. package/vendor/ooxml/comment-ui-runtime-BtP_TpvT.js +2 -0
  774. package/vendor/ooxml/{comment-ui-runtime-DcJOYlw-.js → comment-ui-runtime-hfewTmVJ.js} +5 -7
  775. package/vendor/ooxml/delimited-text-worker-host-RwvuSsP2.js +21 -0
  776. package/vendor/ooxml/document-model-source-BUTSwkyP.js +247 -0
  777. package/vendor/ooxml/document-pull-client-C_D779tO.js +36230 -0
  778. package/vendor/ooxml/docx-BfLZeiwa.js +3509 -0
  779. package/vendor/ooxml/docx.mjs +7 -7
  780. package/vendor/ooxml/docx_parser_bg.wasm +0 -0
  781. package/vendor/ooxml/drawingml-shape-BcXkRayC.js +306 -0
  782. package/vendor/ooxml/duotone-BI7CoghW.js +122 -0
  783. package/vendor/ooxml/emf-DgUBx9BU.js +1788 -0
  784. package/vendor/ooxml/font-preload-demand-B6HPFxDp.js +2052 -0
  785. package/vendor/ooxml/graph.json +1 -1
  786. package/vendor/ooxml/grid-geometry-CqTDvpDr.js +379 -0
  787. package/vendor/ooxml/host-layout-Cz_lCuTZ.js +55 -0
  788. package/vendor/ooxml/line-distribute-DR9Qwd3u.js +2783 -0
  789. package/vendor/ooxml/{mathjax-DoyWZbSp.js → mathjax-DvwccQ8e.js} +0 -2
  790. package/vendor/ooxml/model-source-COXegBNA.js +177 -0
  791. package/vendor/ooxml/{pixel-budget-9P63Bsk5.js → pixel-budget-DI82Hn3R.js} +13 -12
  792. package/vendor/ooxml/plot-area-frame-D3JtHvov.js +41645 -0
  793. package/vendor/ooxml/pptx-CfCiVlNB.js +2888 -0
  794. package/vendor/ooxml/pptx.mjs +8 -7
  795. package/vendor/ooxml/pptx_parser_bg.wasm +0 -0
  796. package/vendor/ooxml/presentation-model-source-DL6duh5l.js +75 -0
  797. package/vendor/ooxml/raster-target-Ca3tyA0L.js +40 -0
  798. package/vendor/ooxml/{read-only-comment-decoration-Dz7eTQ4d.js → read-only-comment-decoration-B06YO2zk.js} +0 -4
  799. package/vendor/ooxml/{read-only-comment-margin-DkgzASAl.js → read-only-comment-margin-Ee9Y6vPg.js} +0 -2
  800. package/vendor/ooxml/renderer-IFuBkPvF.js +5197 -0
  801. package/vendor/ooxml/{renderer-module-contract-D91rkYHH.js → renderer-module-contract-BuTx2FWJ.js} +0 -2
  802. package/vendor/ooxml/renderer-xdugdcMd.js +5769 -0
  803. package/vendor/ooxml/resource-measurement-D2bu0Qfx.js +756 -0
  804. package/vendor/ooxml/slide-pull-client-BUuJQQVE.js +6431 -0
  805. package/vendor/ooxml/three-d-ByHGsYrX.js +868 -0
  806. package/vendor/ooxml/tiff-contract-DEd8CGuz.js +48 -0
  807. package/vendor/ooxml/{visible-index-BgiHEc1z.js → visible-index-vN-4BNn7.js} +0 -2
  808. package/vendor/ooxml/workbook-model-source-DBfVsWj7.js +92 -0
  809. package/vendor/ooxml/worker-source-C29EQNUj.js +18 -0
  810. package/vendor/ooxml/worker-source-D3NwPe6l.js +18 -0
  811. package/vendor/ooxml/worker-source-ZQE9C1j6.js +18 -0
  812. package/vendor/ooxml/worksheet-pull-client-Du0MuIro.js +565 -0
  813. package/vendor/ooxml/xlsx-CCMRAxPB.js +5812 -0
  814. package/vendor/ooxml/xlsx.mjs +8 -7
  815. package/vendor/ooxml/xlsx_parser_bg.wasm +0 -0
  816. package/vendor/pele/chunks/2CHDFZHC.js +1 -0
  817. package/vendor/pele/chunks/{GAP5KXLD.js → 2S3JPEOY.js} +1 -1
  818. package/vendor/pele/chunks/2U463FD2.js +11 -0
  819. package/vendor/pele/chunks/3OKCTCH7.js +1 -0
  820. package/vendor/pele/chunks/42UK3TL6.js +8 -0
  821. package/vendor/pele/chunks/43YPWK3Q.js +1 -0
  822. package/vendor/pele/chunks/45MVAN6X.js +1 -0
  823. package/vendor/pele/chunks/46GJKBLZ.js +1 -0
  824. package/vendor/pele/chunks/4WR52FRP.js +4 -0
  825. package/vendor/pele/chunks/63WH7YNF.js +1 -0
  826. package/vendor/pele/chunks/{2TH3V34D.js → 673H7YBG.js} +1 -1
  827. package/vendor/pele/chunks/6DDU7VKX.js +1 -0
  828. package/vendor/pele/chunks/{3MKGV5HX.js → 6Y6FML25.js} +1 -1
  829. package/vendor/pele/chunks/{4AG6A4TK.js → 7HQPULDG.js} +1 -1
  830. package/vendor/pele/chunks/7N3VAIG2.js +2 -0
  831. package/vendor/pele/chunks/{QFOMM5LR.js → 7NY54ILO.js} +1 -1
  832. package/vendor/pele/chunks/{VHJMZXCQ.js → BJNHMTN6.js} +1 -1
  833. package/vendor/pele/chunks/{6PEWY3TN.js → BK7N5KMP.js} +1 -1
  834. package/vendor/pele/chunks/CLQLV5VT.js +1 -0
  835. package/vendor/pele/chunks/CUSPXG5M.js +1 -0
  836. package/vendor/pele/chunks/D3L7O4X2.js +1 -0
  837. package/vendor/pele/chunks/{D4V2MWCI.js → D5TW5CPZ.js} +1 -1
  838. package/vendor/pele/chunks/DDVFZY3L.js +7 -0
  839. package/vendor/pele/chunks/{3S2YGJBL.js → DO6ND2WD.js} +5 -5
  840. package/vendor/pele/chunks/EGADTWYV.js +1 -0
  841. package/vendor/pele/chunks/EI4VGK5C.js +4 -0
  842. package/vendor/pele/chunks/EOJSJZXM.js +1 -0
  843. package/vendor/pele/chunks/F4O23KYR.js +5 -0
  844. package/vendor/pele/chunks/G2OEIG6X.js +1 -0
  845. package/vendor/pele/chunks/GER2CN75.js +2 -0
  846. package/vendor/pele/chunks/{RGVCULFG.js → GP5YUCAR.js} +1 -1
  847. package/vendor/pele/chunks/GXJ2T77W.js +1 -0
  848. package/vendor/pele/chunks/HX3UMAK7.js +1 -0
  849. package/vendor/pele/chunks/IU7WZTP6.js +4 -0
  850. package/vendor/pele/chunks/J3JF2HV4.js +12 -0
  851. package/vendor/pele/chunks/J5J2NR2G.js +1 -0
  852. package/vendor/pele/chunks/JRCWTJEL.js +1 -0
  853. package/vendor/pele/chunks/{M7II5KMO.js → K2ZHGJKH.js} +1 -1
  854. package/vendor/pele/chunks/{E3FWOBN4.js → KHUP5TOH.js} +3 -3
  855. package/vendor/pele/chunks/L74FQTH5.js +1 -0
  856. package/vendor/pele/chunks/LAV4ZXOS.js +1 -0
  857. package/vendor/pele/chunks/LBIZYCRR.js +1 -0
  858. package/vendor/pele/chunks/LFFXNLRS.js +1 -0
  859. package/vendor/pele/chunks/LJ44NU43.js +3 -0
  860. package/vendor/pele/chunks/LLLWOAQD.js +1 -0
  861. package/vendor/pele/chunks/LTY5LMQH.js +5 -0
  862. package/vendor/pele/chunks/LTYQZ5U5.js +1 -0
  863. package/vendor/pele/chunks/MJBOF5Q6.js +2 -0
  864. package/vendor/pele/chunks/NDSCUZ25.js +1 -0
  865. package/vendor/pele/chunks/NMN3IKWL.js +1 -0
  866. package/vendor/pele/chunks/NMUA3R2D.js +1 -0
  867. package/vendor/pele/chunks/NY5A6PPW.js +1 -0
  868. package/vendor/pele/chunks/O3ACPFEJ.js +8 -0
  869. package/vendor/pele/chunks/{A6VFOGAO.js → O4MQT6AV.js} +1 -1
  870. package/vendor/pele/chunks/{DUZNPW7S.js → OHJ2EJXK.js} +1 -1
  871. package/vendor/pele/chunks/OU2GIT2H.js +1 -0
  872. package/vendor/pele/chunks/{E65FQMJL.js → PDMLSE6I.js} +1 -1
  873. package/vendor/pele/chunks/PJ7X32S5.js +1 -0
  874. package/vendor/pele/chunks/RLLQ44NJ.js +1 -0
  875. package/vendor/pele/chunks/S6DWMCK5.js +1 -0
  876. package/vendor/pele/chunks/STIOTUT7.js +1 -0
  877. package/vendor/pele/chunks/{UO52YEYL.js → SXSLPWUD.js} +1 -1
  878. package/vendor/pele/chunks/TBJXKAT4.js +3 -0
  879. package/vendor/pele/chunks/TIVX74RS.js +2 -0
  880. package/vendor/pele/chunks/{KIF544NL.js → TK23BXEA.js} +1 -1
  881. package/vendor/pele/chunks/{STAXBNH4.js → TR4WJQGX.js} +1 -1
  882. package/vendor/pele/chunks/UWRPUF3N.js +1 -0
  883. package/vendor/pele/chunks/VMTWYMKQ.js +2 -0
  884. package/vendor/pele/chunks/VSWIZJ7B.js +1 -0
  885. package/vendor/pele/chunks/{STMK7JZH.js → W2WY5CQX.js} +2 -2
  886. package/vendor/pele/chunks/W77N5H3K.js +2 -0
  887. package/vendor/pele/chunks/WM7NR6YK.js +1 -0
  888. package/vendor/pele/chunks/WSTWNLCU.js +4 -0
  889. package/vendor/pele/chunks/WXKV2YEK.js +1 -0
  890. package/vendor/pele/chunks/XQ5S3AI3.js +13 -0
  891. package/vendor/pele/chunks/YNX532HU.js +1 -0
  892. package/vendor/pele/chunks/{DHKBVIA3.js → YUPSMAUO.js} +1 -1
  893. package/vendor/pele/chunks/{IHVFDU4A.js → YWXUFHC7.js} +7 -7
  894. package/vendor/pele/chunks/Z3ZRV7NH.js +2 -0
  895. package/vendor/pele/chunks/ZFRCZTLK.js +1 -0
  896. package/vendor/pele/chunks/ZZDR4CN3.js +1 -0
  897. package/vendor/pele/lazy.js +1 -1
  898. package/vendor/phaser/phaser.mjs +1 -0
  899. package/vendor/signals-core.mjs +1 -1
  900. package/vendor/spessasynth/fflate.mjs +1 -0
  901. package/vendor/spessasynth/spessasynth.mjs +37033 -15099
  902. package/vendor/temml/temml.mjs +1 -1
  903. package/vendor/zzfx/zzfx.mjs +1 -0
  904. package/vendor/ooxml/bounded-raw-part-cache-Cg1BsSZQ.js +0 -119
  905. package/vendor/ooxml/canvas-viewer-mechanics-DbLz0rYW.js +0 -1384
  906. package/vendor/ooxml/cjk-fallback-bLI3z70h.js +0 -46
  907. package/vendor/ooxml/comment-occurrence-C8Y2uoVr.js +0 -6
  908. package/vendor/ooxml/comment-ui-runtime-BsK8pmUT.js +0 -2
  909. package/vendor/ooxml/comments-Diid5ujN.js +0 -246
  910. package/vendor/ooxml/delimited-text-worker-host-BVY-Ecni.js +0 -25
  911. package/vendor/ooxml/document-pull-client-B9PTM-pL.js +0 -27280
  912. package/vendor/ooxml/docx-BF9WXrYH.js +0 -3101
  913. package/vendor/ooxml/dom-interaction-boundary-Cnm8DSBN.js +0 -223
  914. package/vendor/ooxml/highlight-rect-C5hkRqUr.js +0 -13
  915. package/vendor/ooxml/line-distribute-D1WNHKz_.js +0 -1023
  916. package/vendor/ooxml/line-metrics-B60C86uh.js +0 -60
  917. package/vendor/ooxml/plot-area-frame-DLTYKHNP.js +0 -4354
  918. package/vendor/ooxml/pptx-DkyYBYoL.js +0 -3063
  919. package/vendor/ooxml/raster-target-ojDdQizC.js +0 -91
  920. package/vendor/ooxml/renderer-B4GZb5We.js +0 -6492
  921. package/vendor/ooxml/resource-measurement-SHQCbkh2.js +0 -150
  922. package/vendor/ooxml/slide-pull-client-DiPnm240.js +0 -6253
  923. package/vendor/ooxml/source-key-DIJG8BA0.js +0 -42
  924. package/vendor/ooxml/three-d-DJBl8g8M.js +0 -1162
  925. package/vendor/ooxml/transfer-p6iCC2R7.js +0 -6
  926. package/vendor/ooxml/units-BzZ0gAxs.js +0 -4
  927. package/vendor/ooxml/worksheet-pull-client-BM8ywvbu.js +0 -458
  928. package/vendor/ooxml/xlsx-C9NVjgaV.js +0 -8482
  929. package/vendor/pele/chunks/23I4SOAX.js +0 -1
  930. package/vendor/pele/chunks/25ITEZ43.js +0 -2
  931. package/vendor/pele/chunks/26H2HVXD.js +0 -1
  932. package/vendor/pele/chunks/2IZ5MNOH.js +0 -1
  933. package/vendor/pele/chunks/2P3CZEXH.js +0 -1
  934. package/vendor/pele/chunks/3E5HRNYT.js +0 -1
  935. package/vendor/pele/chunks/3JIRLDUO.js +0 -1
  936. package/vendor/pele/chunks/5MJ3UKSG.js +0 -1
  937. package/vendor/pele/chunks/63N73SV4.js +0 -1
  938. package/vendor/pele/chunks/A255FCTW.js +0 -1
  939. package/vendor/pele/chunks/AM43MQ64.js +0 -1
  940. package/vendor/pele/chunks/AOZTNTMC.js +0 -1
  941. package/vendor/pele/chunks/AQNLM6KG.js +0 -1
  942. package/vendor/pele/chunks/BNU2RHQB.js +0 -1
  943. package/vendor/pele/chunks/C5HTQT3I.js +0 -4
  944. package/vendor/pele/chunks/CPKRWH5G.js +0 -1
  945. package/vendor/pele/chunks/CPRVZL76.js +0 -11
  946. package/vendor/pele/chunks/CUVCMPQX.js +0 -1
  947. package/vendor/pele/chunks/D6K5RLPD.js +0 -5
  948. package/vendor/pele/chunks/EENBF6R3.js +0 -5
  949. package/vendor/pele/chunks/G3OATVW2.js +0 -1
  950. package/vendor/pele/chunks/GFBBR3DD.js +0 -13
  951. package/vendor/pele/chunks/IV52FOAS.js +0 -1
  952. package/vendor/pele/chunks/JTJEEBDN.js +0 -1
  953. package/vendor/pele/chunks/JX3HYMZ6.js +0 -8
  954. package/vendor/pele/chunks/K3TAFXGN.js +0 -3
  955. package/vendor/pele/chunks/K7FUICZ3.js +0 -1
  956. package/vendor/pele/chunks/LHH2HHRB.js +0 -1
  957. package/vendor/pele/chunks/LT5IS45C.js +0 -2
  958. package/vendor/pele/chunks/MSPQPZZY.js +0 -1
  959. package/vendor/pele/chunks/NY2EJWPH.js +0 -2
  960. package/vendor/pele/chunks/OB6ZFVKF.js +0 -1
  961. package/vendor/pele/chunks/OJBDHQO2.js +0 -4
  962. package/vendor/pele/chunks/PLTZDMI2.js +0 -1
  963. package/vendor/pele/chunks/R7EPXMMD.js +0 -1
  964. package/vendor/pele/chunks/S4GSSVLN.js +0 -3
  965. package/vendor/pele/chunks/SPBWZ4VS.js +0 -1
  966. package/vendor/pele/chunks/SR7OOV3Q.js +0 -1
  967. package/vendor/pele/chunks/STXEMZPJ.js +0 -2
  968. package/vendor/pele/chunks/SXFARSFO.js +0 -1
  969. package/vendor/pele/chunks/TC77ISAL.js +0 -1
  970. package/vendor/pele/chunks/TXE3YXUM.js +0 -2
  971. package/vendor/pele/chunks/TYIQQHVC.js +0 -1
  972. package/vendor/pele/chunks/TZUXETIT.js +0 -1
  973. package/vendor/pele/chunks/U7N72BGE.js +0 -1
  974. package/vendor/pele/chunks/UFPIB6EZ.js +0 -1
  975. package/vendor/pele/chunks/V52Z4AG3.js +0 -4
  976. package/vendor/pele/chunks/VBDLARNP.js +0 -4
  977. package/vendor/pele/chunks/VIK3ONSK.js +0 -1
  978. package/vendor/pele/chunks/VPGC3RUM.js +0 -7
  979. package/vendor/pele/chunks/VVVO4ZVP.js +0 -1
  980. package/vendor/pele/chunks/WRGXZO53.js +0 -1
  981. package/vendor/pele/chunks/X5SG7MGC.js +0 -1
  982. package/vendor/pele/chunks/XXYPNCD5.js +0 -1
  983. package/vendor/pele/chunks/XZO3CX7R.js +0 -12
  984. package/vendor/pele/chunks/YZBJM2QT.js +0 -2
  985. package/vendor/pele/chunks/YZHV477W.js +0 -2
  986. package/vendor/pele/chunks/Z6WRYFJC.js +0 -1
  987. package/vendor/pele/chunks/ZI2QNEGF.js +0 -8
package/brand.js CHANGED
@@ -5,13 +5,11 @@ export const BRAND = Object.freeze({
5
5
  domain: 'jean.is',
6
6
  })
7
7
 
8
- // The brand's site's pages the app links to, by language (site/, D538), held to site/'s by test/home.test.js.
8
+ // The brand's site's pages the app links to, by language (site/), held to site/'s by test/home.test.js.
9
9
  export const PAGES = Object.freeze({
10
- about: { en: 'jean', ar: 'ar/jean', fr: 'fr/jean', ja: 'ja/jean', ko: 'ko/jean' },
11
- family: { en: 'family', fr: 'fr/famille', ko: 'ko/family' },
12
- work: { en: 'work', fr: 'fr/travail', ko: 'ko/work' },
13
- teachers: { en: 'teachers', fr: 'fr/enseignants', ko: 'ko/teachers' },
14
- enterprise: { en: 'enterprise', fr: 'fr/entreprise', ko: 'ko/enterprise' },
10
+ home: { en: '', ar: 'ar', fr: 'fr', ja: 'ja', ko: 'ko' },
15
11
  help: { en: 'help', fr: 'fr/aide' },
16
12
  'help/key-refused': { en: 'help/key-refused', fr: 'fr/aide/cle-refusee' },
13
+ 'help/couldnt-reach': { en: 'help/couldnt-reach', fr: 'fr/aide/injoignable' },
14
+ 'help/plan-stopped': { en: 'help/plan-stopped', fr: 'fr/aide/forfait-arrete' },
17
15
  })
@@ -1,5 +1,5 @@
1
- // Text out of the files people share: Word, PowerPoint and Excel (zips of XML), and
2
- // plain text. Returns pages, so the brain can read a long file a part at a time.
1
+ // Text out of the files people share: Word, PowerPoint and Excel (zips of XML), Numbers (numbers.js),
2
+ // and plain text. Returns pages, so the brain can read a long file a part at a time.
3
3
  // A small tag scanner instead of DOMParser keeps this runnable in workers and Node.
4
4
  // PDFs are read by pdf.js, in the Files capability; their pages' text is joined here.
5
5
  import { readZip } from '../../core/zip.js'
@@ -11,7 +11,7 @@ const SHEET_ROWS = 200
11
11
  const TEXT = /\.(txt|md|markdown|csv|tsv|json|xml|html?|log|ya?ml|ini|srt|vtt|sd-jwt)$/i
12
12
 
13
13
  /** @param {string} name */
14
- export const extractable = (name) => /\.(docx|pptx|xlsx)$/i.test(name) || TEXT.test(name)
14
+ export const extractable = (name) => /\.(docx|pptx|xlsx|numbers)$/i.test(name) || TEXT.test(name)
15
15
 
16
16
  /**
17
17
  * @param {string} name file name, used for its extension
@@ -22,7 +22,8 @@ export async function extractPages(name, bytes) {
22
22
  const ext = name.toLowerCase().split('.').pop()
23
23
  // An .xls that is text, as many exports are, reads as its text; one of Excel's own isn't read.
24
24
  if (TEXT.test(name) || (ext === 'xls' && !isBinary(bytes))) return paginate(decodeText(bytes).split('\n'))
25
- if (ext !== 'docx' && ext !== 'pptx' && ext !== 'xlsx') return null
25
+ if (ext !== 'docx' && ext !== 'pptx' && ext !== 'xlsx' && ext !== 'numbers') return null
26
+ if (ext === 'numbers') return tablePages(await (await import('./numbers.js')).numbersTables(readZip(bytes)))
26
27
  const entries = new Map(readZip(bytes).map((entry) => [entry.name, entry]))
27
28
  /** @param {string} path */
28
29
  const xml = async (path) => {
@@ -284,8 +285,7 @@ export function pageText(items, body = bodySize(items)) {
284
285
  // ─── Excel ───────────────────────────────────────────────────────────────────
285
286
 
286
287
  /**
287
- * Each sheet as tab-separated rows, SHEET_ROWS rows per page, each headed by the sheet name and its
288
- * column names. Values are as stored, but for dates, written as dates.
288
+ * Each sheet as tab-separated rows (tablePages). Values are as stored, but for dates, written as dates.
289
289
  * @param {(path: string) => Promise<string | null>} xml
290
290
  */
291
291
  async function xlsx(xml) {
@@ -293,20 +293,27 @@ async function xlsx(xml) {
293
293
  const targets = relationships((await xml('xl/_rels/workbook.xml.rels')) ?? '')
294
294
  const shared = sharedStrings((await xml('xl/sharedStrings.xml')) ?? '')
295
295
  const dates = dateStyles((await xml('xl/styles.xml')) ?? '')
296
- /** @type {string[]} */
297
- const pages = []
296
+ /** @type {{ title: string, rows: string[] }[]} */
297
+ const sheets = []
298
298
  for (const match of workbook.matchAll(/<sheet\b([^>]*)>/g)) {
299
- const name = attr(match[1], 'name') ?? ''
300
299
  const target = targets.get(attr(match[1], 'r:id') ?? '')
301
300
  const source = target ? await xml(resolveTarget('xl', target)) : null
302
- if (source === null) continue
303
- const rows = sheetRows(source, shared, dates)
301
+ if (source !== null) sheets.push({ title: `Sheet: ${attr(match[1], 'name') ?? ''}`, rows: sheetRows(source, shared, dates) })
302
+ }
303
+ return tablePages(sheets)
304
+ }
305
+
306
+ /** Tables' rows, SHEET_ROWS per page, each page headed by its table's title and its column names. @param {{ title: string, rows: string[] }[]} tables */
307
+ function tablePages(tables) {
308
+ /** @type {string[]} */
309
+ const pages = []
310
+ for (const { title, rows } of tables) {
304
311
  for (let start = 0; start < Math.max(rows.length, 1); start += SHEET_ROWS) {
305
312
  const chunk = rows.slice(start, start + SHEET_ROWS)
306
313
  const range = rows.length > SHEET_ROWS ? ` (rows ${start + 1}–${start + chunk.length})` : ''
307
314
  // Each page names its columns, as the first row does.
308
315
  if (start) chunk.unshift(rows[0])
309
- pages.push(`Sheet: ${name}${range}\n${chunk.join('\n')}`.trimEnd())
316
+ pages.push(`${title}${range}\n${chunk.join('\n')}`.trimEnd())
310
317
  }
311
318
  }
312
319
  return pages.length ? pages : ['']
@@ -1,4 +1,4 @@
1
- // MIDI files (D197): no browser plays one, so Jean does. Its notes are read here, then played by a
1
+ // MIDI files: no browser plays one, so Jean does. Its notes are read here, then played by a
2
2
  // small synthesizer of Jean's own through the Web Audio API, faster than they last, into a WAV that
3
3
  // the page's own player plays, with its seeking and its volume. No instruments fetched from another
4
4
  // site: each of General MIDI's sixteen families of instruments has a wave and an envelope of its
@@ -0,0 +1,193 @@
1
+ // Apple Numbers' spreadsheets, as Numbers has saved them since 2013: a zip of .iwa parts, each a run of
2
+ // Snappy-compressed chunks holding protobuf messages that point at each other by id. No schema ships:
3
+ // the few fields read here are named where they are read, after Apple's own messages (TN, TST, TSWP).
4
+ // Loaded by extract.js only when a .numbers file comes.
5
+
6
+ /** @typedef {import('../../core/zip.js').ZipEntry} ZipEntry */
7
+ /** @typedef {Map<number, (number | Uint8Array)[]>} Message */
8
+
9
+ /** A varint: its value and where it ends. @param {Uint8Array} bytes @param {number} pos @returns {[number, number]} */
10
+ function varint(bytes, pos) {
11
+ let value = 0
12
+ for (let shift = 1; ; shift *= 128) {
13
+ const byte = bytes[pos++] ?? 0
14
+ value += (byte & 127) * shift
15
+ if (byte < 128) return [value, pos]
16
+ }
17
+ }
18
+
19
+ /** Snappy's raw format, which an .iwa chunk holds without the framing format's checksums. @param {Uint8Array} src */
20
+ export function unsnappy(src) {
21
+ let [size, pos] = varint(src, 0)
22
+ const out = new Uint8Array(size)
23
+ let at = 0
24
+ /** @param {number} n little-endian bytes */
25
+ const le = (n) => {
26
+ let value = 0
27
+ for (let i = 0; i < n; i++) value += src[pos++] * 256 ** i
28
+ return value
29
+ }
30
+ while (pos < src.length && at < out.length) {
31
+ const tag = src[pos++]
32
+ if ((tag & 3) === 0) {
33
+ const length = (tag >> 2 < 60 ? tag >> 2 : le((tag >> 2) - 59)) + 1
34
+ out.set(src.subarray(pos, pos + length), at)
35
+ pos += length
36
+ at += length
37
+ continue
38
+ }
39
+ const length = (tag & 3) === 1 ? ((tag >> 2) & 7) + 4 : (tag >> 2) + 1
40
+ const offset = (tag & 3) === 1 ? ((tag >> 5) << 8) | src[pos++] : le((tag & 3) === 2 ? 2 : 4)
41
+ for (let i = 0; i < length; i++, at++) out[at] = out[at - offset]
42
+ }
43
+ return out
44
+ }
45
+
46
+ /** A protobuf message's fields by number: varints as numbers, everything else as its bytes. @param {Uint8Array} bytes @returns {Message} */
47
+ export function message(bytes) {
48
+ /** @type {Message} */
49
+ const fields = new Map()
50
+ for (let pos = 0, key = 0, n = 0; pos < bytes.length;) {
51
+ ;[key, pos] = varint(bytes, pos)
52
+ const wire = key % 8
53
+ if (wire === 0 || wire === 2) [n, pos] = varint(bytes, pos)
54
+ else if (wire !== 1 && wire !== 5) break
55
+ const value = wire === 0 ? n : bytes.subarray(pos, (pos += wire === 2 ? n : wire === 1 ? 8 : 4))
56
+ fields.set(Math.floor(key / 8), [...(fields.get(Math.floor(key / 8)) ?? []), value])
57
+ }
58
+ return fields
59
+ }
60
+
61
+ /** @param {Message | undefined} m @param {number} field */
62
+ const one = (m, field) => m?.get(field)?.[0]
63
+ /** @param {Message | undefined} m @param {number} field */
64
+ const sub = (m, field) => message(/** @type {Uint8Array} */ (one(m, field) ?? new Uint8Array()))
65
+ /** @param {Message | undefined} m @param {number} field */
66
+ const subs = (m, field) => (m?.get(field) ?? []).map((bytes) => message(/** @type {Uint8Array} */ (bytes)))
67
+ /** The id a TSP.Reference in this field points at. @param {Message | undefined} m @param {number} field */
68
+ const ref = (m, field) => /** @type {number | undefined} */ (one(sub(m, field), 1))
69
+ /** @param {Message | undefined} m @param {number} field */
70
+ const text = (m, field) => new TextDecoder().decode(/** @type {Uint8Array} */ (one(m, field) ?? new Uint8Array()))
71
+
72
+ /**
73
+ * Every object of every part, by id, as its first message's type and fields. A part is chunks of a
74
+ * zero, a 24-bit length and Snappy's bytes; unpacked, each object is an ArchiveInfo (its id, and
75
+ * each message's type and length) and then those messages.
76
+ * @param {ZipEntry[]} entries
77
+ */
78
+ async function objects(entries) {
79
+ /** @type {Map<number, { type: number, data: Message }>} */
80
+ const found = new Map()
81
+ for (const entry of entries.filter((e) => /\.iwa$/i.test(e.name))) {
82
+ const bytes = await entry.read()
83
+ /** @type {Uint8Array[]} */
84
+ const chunks = []
85
+ for (let pos = 0; pos + 4 <= bytes.length; pos += 4 + (bytes[pos + 1] | (bytes[pos + 2] << 8) | (bytes[pos + 3] << 16))) {
86
+ chunks.push(unsnappy(bytes.subarray(pos + 4, pos + 4 + (bytes[pos + 1] | (bytes[pos + 2] << 8) | (bytes[pos + 3] << 16)))))
87
+ }
88
+ const all = new Uint8Array(chunks.reduce((n, chunk) => n + chunk.length, 0))
89
+ chunks.reduce((at, chunk) => (all.set(chunk, at), at + chunk.length), 0)
90
+ for (let pos = 0, length = 0; pos < all.length;) {
91
+ ;[length, pos] = varint(all, pos)
92
+ const info = message(all.subarray(pos, (pos += length)))
93
+ const [first, ...rest] = subs(info, 2)
94
+ const size = (/** @type {Message} */ m) => Number(one(m, 3) ?? 0)
95
+ found.set(Number(one(info, 1)), { type: Number(one(first, 1)), data: message(all.subarray(pos, pos + size(first))) })
96
+ pos += size(first) + rest.reduce((n, m) => n + size(m), 0)
97
+ }
98
+ }
99
+ return found
100
+ }
101
+
102
+ /** A Decimal128 as written, exactly: 113 bits of digits and a power of ten. @param {DataView} view @param {number} at */
103
+ function decimal(view, at) {
104
+ const high = view.getBigUint64(at + 8, true)
105
+ const digits = ((high & 0x1ffffffffffffn) << 64n | view.getBigUint64(at, true)).toString()
106
+ const power = Number((high >> 49n) & 0x3fffn) - 6176
107
+ const whole = power >= 0 ? digits + '0'.repeat(power) : digits.padStart(1 - power, '0')
108
+ const point = power >= 0 ? whole : `${whole.slice(0, power)}.${whole.slice(power)}`.replace(/\.?0+$/, '')
109
+ return (high >> 63n ? '-' : '') + point
110
+ }
111
+
112
+ /** A date: seconds since 2001 began, as Numbers counts them. @param {number} seconds */
113
+ const date = (seconds) => new Date(Date.UTC(2001, 0, 1) + seconds * 1000).toISOString().slice(0, seconds % 86400 ? 16 : 10).replace('T', ' ')
114
+
115
+ /** A duration's seconds as hours, minutes and seconds. @param {number} seconds */
116
+ const duration = (seconds) => [Math.floor(seconds / 3600), Math.floor(seconds / 60) % 60, seconds % 60].map((n, i) => (i ? String(Math.round(n)).padStart(2, '0') : n)).join(':')
117
+
118
+ /**
119
+ * A cell, in storage version 5: its version and type, then from byte 8 the flags saying which
120
+ * values follow, in this order: a decimal, a double, a date, a string's key, a rich text's key.
121
+ * @param {Uint8Array} cell @param {(key: number) => string} string @param {(key: number) => string} rich
122
+ */
123
+ export function cellText(cell, string, rich) {
124
+ const view = new DataView(cell.buffer, cell.byteOffset, cell.byteLength)
125
+ const flags = view.getUint32(8, true)
126
+ let at = 12
127
+ const take = (/** @type {number} */ flag, /** @type {number} */ size) => (flags & flag ? (at += size) - size : -1)
128
+ const [d128, double, seconds, key, richKey] = [take(1, 16), take(2, 8), take(4, 8), take(8, 4), take(16, 4)]
129
+ const number = d128 >= 0 ? decimal(view, d128) : double >= 0 ? String(view.getFloat64(double, true)) : ''
130
+ switch (cell[1]) {
131
+ case 2: case 10: return number
132
+ case 3: return key >= 0 ? string(view.getUint32(key, true)) : ''
133
+ case 5: return seconds >= 0 ? date(view.getFloat64(seconds, true)) : ''
134
+ case 6: return double >= 0 ? (view.getFloat64(double, true) ? 'TRUE' : 'FALSE') : ''
135
+ case 7: return double >= 0 ? duration(view.getFloat64(double, true)) : ''
136
+ case 8: return '#ERROR'
137
+ case 9: return richKey >= 0 ? rich(view.getUint32(richKey, true)) : ''
138
+ default: return ''
139
+ }
140
+ }
141
+
142
+ /**
143
+ * Each sheet's tables (TN.SheetArchive's drawables that are a TST.TableInfoArchive) as named rows
144
+ * of tab-separated cells, and the words of its text boxes as one more, without rows' tabs.
145
+ * @param {ZipEntry[]} entries @returns {Promise<{ title: string, rows: string[] }[]>}
146
+ */
147
+ export async function numbersTables(entries) {
148
+ const all = await objects(entries)
149
+ const get = (/** @type {number | undefined} */ id) => all.get(id ?? -1)
150
+ // A TSWP.StorageArchive's words.
151
+ const words = (/** @type {number | undefined} */ id) => (get(id)?.data.get(3) ?? []).map((bytes) => new TextDecoder().decode(/** @type {Uint8Array} */ (bytes))).join('')
152
+ /** @type {{ title: string, rows: string[] }[]} */
153
+ const tables = []
154
+ for (const sheet of (get(1)?.data.get(1) ?? []).map((bytes) => get(Number(one(message(/** @type {Uint8Array} */ (bytes)), 1))))) {
155
+ const name = text(sheet?.data, 1)
156
+ /** @type {string[]} */
157
+ const boxes = []
158
+ for (const drawable of (sheet?.data.get(2) ?? []).map((bytes) => get(Number(one(message(/** @type {Uint8Array} */ (bytes)), 1))))) {
159
+ if (drawable?.type === 2011) boxes.push(words(ref(drawable.data, 2)).trim())
160
+ const model = drawable?.type === 6000 ? get(ref(drawable.data, 2))?.data : undefined
161
+ if (!model) continue
162
+ // TST.TableDataStore: its tiles (3), its strings (4) and its rich texts (17), lists of entries by key.
163
+ const store = sub(model, 4)
164
+ const list = (/** @type {number} */ field) => new Map(subs(get(ref(store, field))?.data, 3).map((entry) => [one(entry, 1), entry]))
165
+ const strings = list(4)
166
+ const richTexts = list(17)
167
+ const string = (/** @type {number} */ key) => text(strings.get(key), 3)
168
+ const rich = (/** @type {number} */ key) => words(ref(get(ref(richTexts.get(key), 9))?.data, 1))
169
+ const tileSize = Number(one(sub(store, 3), 2) ?? 256)
170
+ /** @type {string[][]} */
171
+ const grid = []
172
+ for (const tile of subs(sub(store, 3), 1)) {
173
+ for (const row of subs(get(ref(tile, 2))?.data, 5)) {
174
+ // A row's cells (6) and where each starts (7), in 16-bit words of 4 bytes when wide (8), 0xffff for none.
175
+ const cells = /** @type {Uint8Array | undefined} */ (one(row, 6))
176
+ const offsets = /** @type {Uint8Array | undefined} */ (one(row, 7))
177
+ if (!cells || !offsets) continue
178
+ const index = Number(one(tile, 1) ?? 0) * tileSize + Number(one(row, 1) ?? 0)
179
+ const line = /** @type {string[]} */ (grid[index] = [])
180
+ for (let column = 0; column * 2 + 1 < offsets.length; column++) {
181
+ const offset = offsets[column * 2] | (offsets[column * 2 + 1] << 8)
182
+ if (offset !== 0xffff) line[column] = cellText(cells.subarray(offset * (one(row, 8) ? 4 : 1)), string, rich).replace(/[\t\n]+/g, ' ')
183
+ }
184
+ }
185
+ }
186
+ const rows = Array.from(grid, (line = []) => Array.from(line, (cell = '') => cell).join('\t').trimEnd())
187
+ while (rows.length && !rows.at(-1)) rows.pop()
188
+ tables.push({ title: `Sheet: ${name}, table: ${text(model, 8)}`, rows })
189
+ }
190
+ if (boxes.some(Boolean)) tables.push({ title: `Sheet: ${name}`, rows: boxes.filter(Boolean).join('\n\n').split('\n') })
191
+ }
192
+ return tables
193
+ }
@@ -1,6 +1,6 @@
1
- // Word, Excel and PowerPoint files as Office draws them (D183), in the preview and the browser: by
1
+ // Word, Excel and PowerPoint files as Office draws them (D183), in a file's pane and the browser: by
2
2
  // @silurus/ooxml, its parsers WebAssembly, its viewers drawing on a canvas, so nothing of the file
3
- // becomes markup, in a frame of the preview's kind (an opaque origin with no network), in a page made
3
+ // becomes markup, in a frame of a file pane's kind (an opaque origin with no network), in a page made
4
4
  // here: modules as data: addresses under an import map, the parser and the file as data too.
5
5
  import { encode } from '../../ui/seal.js'
6
6
  import { t } from '../../core/i18n.js'
@@ -67,7 +67,7 @@ addEventListener('message', ({ source, data }) => { if (source === parent && dat
67
67
  `
68
68
 
69
69
  /**
70
- * A page that draws a Word document, a workbook or a deck; a workbook in the preview has cells to change,
70
+ * A page that draws a Word document, a workbook or a deck; a workbook in its pane has cells to change,
71
71
  * shown where it was looked at. @param {string} ext docx, xlsx or pptx @param {Uint8Array} bytes @param {string} name
72
72
  * @param {{ at?: Place }} [cells] @param {string} [words] what a citation points at, found and shown by the viewer's own find (D481): its longest line
73
73
  */
@@ -0,0 +1,56 @@
1
+ // A game's file (D648): `games/<ulid>-<slug>.game.html`, named once and never renamed, a page whose head holds Jean's facts (its
2
+ // format, engine, the actions it uses, author, when it was made and changed, whether it is pinned, the task it came from), its
3
+ // title its name, its body a picture of it being played and the design card, and the game itself as one module in an inert script,
4
+ // which only a game's frame runs. Changed by exact passages, each found once (replaceOnce, as `edit` changes a file). Pure.
5
+
6
+ export const PLACE = /^games\/[^/]+\.game\.html$/
7
+ export const ENGINES = ['phaser', 'babylon', 'none']
8
+ export const ACTIONS = ['left', 'right', 'up', 'down', 'a', 'b']
9
+ /** A picture of the game for its card, as its play-test or its first seconds played took it (./shell.js): WebP or JPEG, 200 KB at most. */
10
+ export const PICTURE = /^data:image\/(?:webp|jpeg);base64,[A-Za-z0-9+/]{100,266000}={0,2}$/
11
+ const KEYS = ['format', 'engine', 'actions', 'author', 'created', 'changed', 'pinned', 'source']
12
+
13
+ /** @typedef {{ format?: string, engine: string, actions: string, author: string, created: string, changed: string, pinned?: string, source?: string }} Meta */
14
+ /** @typedef {{ name: string, card: string, code: string, meta: Meta, picture?: string }} Game */
15
+
16
+ /** @param {string} text */
17
+ const escaped = (text) => text.replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/</g, '&lt;')
18
+ /** @param {string} text */
19
+ const unescaped = (text) => text.replace(/&quot;/g, '"').replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&amp;/g, '&')
20
+
21
+ /** The page a game is kept as. @param {Game} game @param {string} lang */
22
+ export function fileOf({ name, card, code, meta, picture = '' }, lang) {
23
+ const facts = KEYS.flatMap((key) => (key === 'format' ? ['<meta name="format" content="1">'] : meta[/** @type {keyof Meta} */ (key)] ? [`<meta name="${key}" content="${escaped(String(meta[/** @type {keyof Meta} */ (key)]))}">`] : []))
24
+ return [`<!doctype html>\n<html lang="${escaped(lang)}">\n<meta charset="utf-8">`, ...facts, `<title>${escaped(name)}</title>`, ...(PICTURE.test(picture) ? [`<img id="picture" src="${picture}" alt="">`] : []),
25
+ `<article id="card" dir="auto">${escaped(card)}</article>`, `<script type="text/x-game" id="game">\n${code.replace(/<\/(script)/gi, '<\\/$1')}\n</script>\n`].join('\n')
26
+ }
27
+
28
+ /** A game as its page holds it; null when it isn't one. @param {string} page @returns {Game | null} */
29
+ export function gameOf(page) {
30
+ const code = /<script type="text\/x-game" id="game">\n([\s\S]*)\n<\/script>/.exec(page)?.[1]
31
+ if (code === undefined) return null
32
+ const meta = /** @type {Meta} */ (Object.fromEntries([...page.matchAll(/<meta name="(\w+)" content="([^"]*)">/g)].filter(([, key]) => KEYS.includes(key)).map(([, key, value]) => [key, unescaped(value)])))
33
+ const picture = /<img id="picture" src="([^"]*)" alt="">\n<article id="card"/.exec(page)?.[1] ?? ''
34
+ return { name: unescaped(/<title>([^<]*)<\/title>/.exec(page)?.[1] ?? ''), card: unescaped(/<article id="card" dir="auto">([^<]*)<\/article>/.exec(page)?.[1] ?? ''),
35
+ code: code.replace(/<\\\/(script)/gi, '</$1'), meta: { ...meta, engine: ENGINES.includes(meta.engine) ? meta.engine : 'none' }, ...(PICTURE.test(picture) ? { picture } : {}) }
36
+ }
37
+
38
+ /** A game's page with its picture, the one before gone; as it was when either isn't one. @param {string} page @param {string} picture */
39
+ export const pictured = (page, picture) => ((game) => (game && PICTURE.test(picture) ? fileOf({ ...game, picture }, /<html lang="([^"]*)">/.exec(page)?.[1] ?? 'en') : page))(gameOf(page))
40
+
41
+ /** The actions a game says it uses, those Jean knows, all of them when it says none. @param {unknown} list */
42
+ export const actionsOf = (list) => ((known) => (known.length ? known : ACTIONS))((Array.isArray(list) ? list : String(list ?? '').split(/[\s,]+/)).map(String).filter((one, i, all) => ACTIONS.includes(one) && all.indexOf(one) === i))
43
+
44
+ /**
45
+ * The code with each passage replaced, each found once, or why one can't be.
46
+ * @param {string} code @param {{ old: string, new: string }[]} changes @returns {{ code: string } | { error: string }}
47
+ */
48
+ export function replaceOnce(code, changes) {
49
+ for (const [i, change] of changes.entries()) {
50
+ const at = code.indexOf(change.old)
51
+ if (!change.old || at < 0) return { error: `Change ${i + 1}: its old passage isn't in the game, word for word.` }
52
+ if (code.indexOf(change.old, at + 1) >= 0) return { error: `Change ${i + 1}: its old passage is in the game more than once; give more of it.` }
53
+ code = code.slice(0, at) + change.new + code.slice(at + change.old.length)
54
+ }
55
+ return { code }
56
+ }
@@ -0,0 +1,22 @@
1
+ /* A game's frame (D648): written into its page with ./shell.js, never into Jean's. The game fills it; the cover, the bar and the
2
+ touch buttons sit over it, light on dark whatever the game draws. */
3
+ html, body { margin: 0; block-size: 100%; overflow: hidden; background: #0e0e14; color: #fff; font: 1rem/1.4 system-ui, sans-serif; }
4
+ #stage { position: fixed; inset: 0; display: grid; place-items: center; outline: none; }
5
+ #stage > canvas { max-inline-size: 100%; max-block-size: 100%; }
6
+ article { max-inline-size: 40rem; margin: auto; padding: 1rem; } article img { display: block; inline-size: 100%; border-radius: 0.75rem; }
7
+ button { font: inherit; color: inherit; border: 2px solid currentColor; border-radius: 0.75rem; background: rgb(255 255 255 / 0.14); padding: 0.6em 1.6em; cursor: pointer; touch-action: none; }
8
+ button:focus-visible { outline: 3px solid #f7c531; outline-offset: 2px; }
9
+ .cover { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.25rem; padding: 1rem; text-align: center; background: rgb(8 8 12 / 0.8); }
10
+ .cover h1 { margin: 0; font-size: clamp(1.5rem, 6vw, 2.75rem); }
11
+ .bar { position: fixed; inset-block-start: 0.5rem; inset-inline-end: 0.5rem; display: flex; gap: 0.4rem; }
12
+ .bar button { inline-size: 2.5rem; block-size: 2.5rem; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(8 8 12 / 0.55); }
13
+ .bar svg { inline-size: 1.25rem; block-size: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
14
+ .bar [aria-pressed=true] { background: rgb(255 255 255 / 0.3); }
15
+ .pad { position: fixed; inset-inline: 0.75rem; inset-block-end: 0.75rem; display: none; justify-content: space-between; align-items: end; pointer-events: none; user-select: none; -webkit-user-select: none; }
16
+ .pad > div { display: grid; gap: 0.4rem; pointer-events: auto; }
17
+ .pad button { inline-size: 3.5rem; block-size: 3.5rem; padding: 0; border-radius: 50%; background: rgb(8 8 12 / 0.45); }
18
+ .arrows { grid-template-areas: ". up ." "left . right" ". down ."; }
19
+ .buttons { grid-auto-flow: column; }
20
+ [data-action=up] { grid-area: up; } [data-action=left] { grid-area: left; } [data-action=right] { grid-area: right; } [data-action=down] { grid-area: down; }
21
+ @media (pointer: coarse) { .pad { display: flex; } }
22
+ @media (forced-colors: active) { button { border-color: ButtonText; } }
@@ -0,0 +1,86 @@
1
+ // A check in the condition of every `while`, `do … while` and classic `for` loop of a game's code (D648), so that a loop that never
2
+ // ends throws at its own line instead of freezing Jean, whose page shares its thread with a game's frame in WebKit. Strings,
3
+ // templates, comments and regular expressions are read past, `for … of` and `for … in` left alone, and nothing goes on a line of its
4
+ // own, so lines keep their numbers. Pure.
5
+ const WORD = /[\w$\u0080-￿]/
6
+ const START = /[A-Za-z_$\u0080-￿]/
7
+ const BEFORE_REGEX = new Set(['return', 'typeof', 'instanceof', 'in', 'of', 'new', 'delete', 'void', 'throw', 'case', 'do', 'else', 'yield', 'await'])
8
+
9
+ /** @typedef {{ type: 'word' | 'punct', value: string, start: number, end: number, dotted?: boolean }} Token */
10
+
11
+ /** The code's words and punctuation, what isn't code read past. @param {string} code */
12
+ export function tokens(code) {
13
+ const out = /** @type {Token[]} */ ([]), templates = /** @type {number[]} */ ([])
14
+ let i = 0, depth = 0, last = /** @type {{ type: string, value?: string } | null} */ (null)
15
+ const regexOk = () => !last || (last.type === 'punct' && !')]'.includes(last.value ?? '')) || (last.type === 'word' && BEFORE_REGEX.has(last.value ?? ''))
16
+ // A template's text, to its end or to an expression in it.
17
+ const chunk = () => {
18
+ for (; i < code.length; i++) {
19
+ if (code[i] === '\\') i++
20
+ else if (code[i] === '`') return void (i++, last = { type: 'string' })
21
+ else if (code[i] === '$' && code[i + 1] === '{') return void (i += 2, templates.push(depth++), last = { type: 'punct', value: '{' })
22
+ }
23
+ }
24
+ while (i < code.length) {
25
+ const c = code[i]
26
+ if (/\s/.test(c)) i++
27
+ else if (c === '/' && code[i + 1] === '/') i = code.includes('\n', i) ? code.indexOf('\n', i) : code.length
28
+ else if (c === '/' && code[i + 1] === '*') i = code.includes('*/', i + 2) ? code.indexOf('*/', i + 2) + 2 : code.length
29
+ else if (c === '"' || c === "'") {
30
+ for (i++; i < code.length && code[i] !== c && code[i] !== '\n'; i++) if (code[i] === '\\') i++
31
+ i++, last = { type: 'string' }
32
+ } else if (c === '`') i++, chunk()
33
+ else if (c === '/' && regexOk()) {
34
+ // To its closing slash, one in a set of characters ([/]) or escaped not closing it; then its flags.
35
+ for (let set = false; ++i < code.length && code[i] !== '\n' && (code[i] !== '/' || set);) {
36
+ if (code[i] === '\\') i++
37
+ else if (code[i] === '[') set = true
38
+ else if (code[i] === ']') set = false
39
+ }
40
+ for (i++; i < code.length && /[a-z]/i.test(code[i]); i++);
41
+ last = { type: 'regex' }
42
+ } else if (START.test(c)) {
43
+ const start = i
44
+ while (i < code.length && WORD.test(code[i])) i++
45
+ const value = code.slice(start, i)
46
+ out.push({ type: 'word', value, start, end: i, dotted: last?.type === 'punct' && last.value === '.' })
47
+ last = { type: 'word', value }
48
+ } else if (/[0-9]/.test(c) || (c === '.' && /[0-9]/.test(code[i + 1] ?? ''))) {
49
+ while (i < code.length && (WORD.test(code[i]) || code[i] === '.' || (/[eE]/.test(code[i - 1]) && /[+-]/.test(code[i])))) i++
50
+ last = { type: 'number' }
51
+ } else if (c === '}' && templates.length && templates.at(-1) === depth - 1) templates.pop(), depth--, i++, chunk()
52
+ else {
53
+ if (c === '{') depth++
54
+ if (c === '}') depth--
55
+ out.push({ type: 'punct', value: c, start: i, end: i + 1 })
56
+ last = { type: 'punct', value: c }
57
+ i++
58
+ }
59
+ }
60
+ return out
61
+ }
62
+
63
+ /** The code with `check` in every loop's condition. @param {string} code @param {string} check a call that returns true, or throws */
64
+ export function guard(code, check) {
65
+ const list = tokens(code), edits = /** @type {[number, string][]} */ ([])
66
+ for (const [k, word] of list.entries()) {
67
+ if (word.type !== 'word' || word.dotted || (word.value !== 'while' && word.value !== 'for')) continue
68
+ const open = k + (word.value === 'for' && list[k + 1]?.value === 'await' ? 2 : 1)
69
+ if (list[open]?.value !== '(') continue
70
+ let level = 0, close = -1
71
+ const semicolons = /** @type {number[]} */ ([])
72
+ for (let m = open; m < list.length && close < 0; m++) {
73
+ const { value } = list[m]
74
+ if ('([{'.includes(value)) level++
75
+ else if (')]}'.includes(value) && --level === 0) close = m
76
+ else if (value === ';' && level === 1) semicolons.push(m)
77
+ }
78
+ if (close < 0 || close === open + 1) continue
79
+ if (word.value === 'while') edits.push([list[open].end, `${check} && (`], [list[close].start, ')'])
80
+ else if (semicolons.length === 2) {
81
+ const [a, b] = semicolons
82
+ edits.push(...(b === a + 1 ? [/** @type {[number, string]} */ ([list[a].end, ` ${check}`])] : [/** @type {[number, string]} */ ([list[a].end, ` ${check} && (`]), /** @type {[number, string]} */ ([list[b].start, ')'])]))
83
+ }
84
+ }
85
+ return edits.sort((x, y) => y[0] - x[0]).reduce((out, [at, text]) => out.slice(0, at) + text + out.slice(at), code)
86
+ }
@@ -0,0 +1,52 @@
1
+ // A game's page (D648): its facts, the shell (./shell.js) and its styles, and the game, guarded (./guard.js). In a frame of Jean's
2
+ // (./frame.js) its engine is lent; as a page of its own, which Save gives and a task saved as a page or shared by link shows
3
+ // (ui/view.js), its engine is inside it: offline, its card where scripts don't run, and what it saves kept in the browser's storage
4
+ // where the page has one (a file opened), else for the visit.
5
+ import { pagePolicy } from '../../ui/csp.js'
6
+ import { still } from '../../ui/sheet.js'
7
+ import { t, locale, dir, useStrings } from '../../core/i18n.js'
8
+ import { guard } from './guard.js'
9
+ import { actionsOf, gameOf, PICTURE } from './file.js'
10
+
11
+ /** What a game imports by name: its engine's, and ZzFX. */
12
+ export const LENT = /** @type {Record<string, string>} */ ({ phaser: '../../vendor/phaser/phaser.mjs', babylon: '../../vendor/babylon/babylon.mjs', zzfx: '../../vendor/zzfx/zzfx.mjs' })
13
+ /** The names a game imports. @param {{ meta: { engine: string } }} game */
14
+ export const lent = (game) => [game.meta.engine, 'zzfx'].filter((name) => Object.hasOwn(LENT, name))
15
+ const read = /** @type {Map<string, Promise<string>>} */ (new Map())
16
+ /** A file beside this module, read once. @param {string} path */
17
+ export const text = (path) => read.get(path) ?? /** @type {Promise<string>} */ (read.set(path, fetch(new URL(path, import.meta.url)).then((response) => response.text())).get(path))
18
+ const escaped = (/** @type {string} */ words) => words.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;')
19
+
20
+ /**
21
+ * A game's page. `imports`: its import map, none for a page whose `boot` makes its own; `head`, what its head starts with.
22
+ * @param {import('./file.js').Game} game
23
+ * @param {{ test?: { frames: number, seed: number, press: { action: string, from: number, to: number }[] } | null, saved?: { save: string | null, storage: Record<string, string> },
24
+ * imports?: Record<string, string> | null, head?: string, boot?: string }} [options]
25
+ */
26
+ export async function pageOf(game, { test = null, saved = { save: null, storage: {} }, imports = null, head = '', boot = '' } = {}) {
27
+ const lang = locale.peek(), [shell, css] = await Promise.all([text('./shell.js'), text('./frame.css')])
28
+ const words = Object.fromEntries(['play', 'resume', 'paused', 'pause', 'mute', 'full', 'left', 'right', 'up', 'down'].map((key) => [key, t(`games.${key}`)]))
29
+ const given = JSON.stringify({ test, saved, words, actions: actionsOf(game.meta.actions), reduced: still(), title: game.name, pictured: Boolean(game.picture) }).replace(/</g, '\\u003c')
30
+ return /* html */ `<html lang="${lang}" dir="${dir(lang)}"><meta charset="utf-8">${head}${imports ? `<script type="importmap">${JSON.stringify({ imports })}</script>` : ''}<script>window.__game=${given}</script>${boot}<script>${shell}</script><style>${css}</style>
31
+ <body><noscript><article dir="auto">${game.picture && PICTURE.test(game.picture) ? `<img src="${game.picture}" alt="">` : ''}<h1>${escaped(game.name)}</h1><p>${escaped(game.card)}</p></article></noscript><div id="stage" tabindex="-1"></div><script type="text/x-game" id="game">${guard(game.code, '__loop()').replace(/<\/(script)/gi, '<\\/$1')}</script>`
32
+ }
33
+
34
+ /**
35
+ * A game's file as a page of its own: each engine as an inert script, made a module and mapped to its name before the shell runs,
36
+ * what it saves read from the browser's storage where it has one and written there as the shell sends it, motion as the user's
37
+ * Motion was when it was saved. @param {string} file
38
+ */
39
+ export async function alone(file) {
40
+ const game = gameOf(file)
41
+ if (!game) return file
42
+ await useStrings('games')
43
+ // An engine stays inert whatever it holds: "</script" and "<!--" written as JavaScript reads them the same.
44
+ const engines = await Promise.all(lent(game).map(async (name) => `<script type="text/x-engine" data-name="${name}">${(await text(LENT[name])).replace(/<(\/script|!--)/gi, '\\x3C$1')}</script>`))
45
+ const boot = `(()=>{const g=window.__game,key=${JSON.stringify(`game ${game.meta.created} ${game.name}`)},imports={};let store=null
46
+ try{store=localStorage;Object.assign(g.saved,JSON.parse(store.getItem(key)||'{}'))}catch{store=null}
47
+ for(const e of document.querySelectorAll('script[type="text/x-engine"]'))imports[e.dataset.name]=URL.createObjectURL(new Blob([e.textContent],{type:'text/javascript'}))
48
+ document.head.append(Object.assign(document.createElement('script'),{type:'importmap',textContent:JSON.stringify({imports})}))
49
+ if(parent===window&&store){const send=postMessage.bind(window);window.postMessage=(m,o)=>{if(m&&m.keep)try{store.setItem(key,JSON.stringify(m.keep))}catch{}send(m,o)}}})()`
50
+ const head = `<meta name="viewport" content="width=device-width, initial-scale=1"><meta http-equiv="Content-Security-Policy" content="${pagePolicy({ scripts: true, web: false, network: false, downloads: false, fullscreen: true, maps: false }, [], true)}"><title>${escaped(game.name)}</title>`
51
+ return `<!doctype html>${await pageOf(game, { head, boot: `${engines.join('')}<script>${boot}</script>` })}`
52
+ }