@allyhub/sdk 0.7.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1086) hide show
  1. package/CHANGELOG.md +149 -0
  2. package/NOTICE +46 -49
  3. package/dist/dom.d.ts +1 -209
  4. package/dist/dom.js +1 -1
  5. package/dist/image.d.ts +2 -0
  6. package/dist/image.js +2 -0
  7. package/dist/index.d.ts +1 -21
  8. package/dist/index.js +1 -1
  9. package/dist/media.d.ts +1 -5
  10. package/dist/media.js +1 -1
  11. package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +96 -0
  12. package/dist/node_modules/@allyhub/audio/dist/levels.js +2 -0
  13. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +26 -0
  14. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +2 -0
  15. package/dist/node_modules/@allyhub/audio/package.json +17 -0
  16. package/dist/node_modules/@allyhub/chart/dist/chart-file.d.ts +11 -0
  17. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -0
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +33 -0
  19. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +3 -0
  20. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +206 -0
  21. package/dist/node_modules/@allyhub/chart/dist/chart.js +2 -0
  22. package/dist/node_modules/@allyhub/chart/dist/embedded.d.ts +15 -0
  23. package/dist/node_modules/@allyhub/chart/dist/embedded.js +3 -0
  24. package/dist/node_modules/@allyhub/chart/dist/index.d.ts +6 -0
  25. package/dist/node_modules/@allyhub/chart/dist/index.js +2 -0
  26. package/dist/node_modules/@allyhub/chart/dist/svg.d.ts +22 -0
  27. package/dist/node_modules/@allyhub/chart/dist/svg.js +2 -0
  28. package/dist/node_modules/@allyhub/chart/package.json +14 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  30. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  31. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  32. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  33. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  34. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  35. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  36. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  37. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  38. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  39. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  40. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +38 -0
  41. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +585 -0
  42. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +2 -0
  43. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +67 -0
  44. package/dist/node_modules/@allyhub/formats/dist/data/script.js +2 -0
  45. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +5076 -0
  46. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +2 -0
  47. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +2608 -0
  48. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +2 -0
  49. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +21 -0
  50. package/dist/node_modules/@allyhub/formats/dist/data/website.js +2 -0
  51. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  52. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  53. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  54. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  55. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  56. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  57. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +27 -0
  58. package/dist/node_modules/@allyhub/formats/dist/index.js +2 -0
  59. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +256 -0
  60. package/dist/node_modules/@allyhub/formats/dist/items.js +2 -0
  61. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +62 -0
  62. package/dist/node_modules/@allyhub/formats/dist/layout.js +5 -0
  63. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +2745 -0
  64. package/dist/node_modules/@allyhub/formats/dist/schemas.js +2 -0
  65. package/dist/node_modules/@allyhub/formats/package.json +15 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  94. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  95. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  96. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  97. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  98. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  99. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  100. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  101. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  102. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  103. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  104. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  105. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  106. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/define.d.ts +119 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  116. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  117. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  118. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  119. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  120. package/dist/node_modules/@allyhub/image-sdk/dist/messages.d.ts +40 -0
  121. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/props.d.ts +124 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  126. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  127. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  128. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  129. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  130. package/dist/node_modules/@allyhub/image-sdk/dist/written.js +2 -0
  131. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  132. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  133. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  134. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  135. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  136. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  137. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  138. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  139. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  140. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  141. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +31 -0
  142. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +2 -0
  143. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +71 -0
  144. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +2 -0
  145. package/dist/node_modules/@allyhub/ooxml/package.json +26 -0
  146. package/dist/node_modules/@allyhub/piece/dist/anchors.d.ts +156 -0
  147. package/dist/node_modules/@allyhub/piece/dist/component.d.ts +70 -0
  148. package/dist/node_modules/@allyhub/piece/dist/component.js +2 -0
  149. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  150. package/dist/node_modules/@allyhub/piece/dist/contrast.d.ts +98 -0
  151. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +114 -0
  152. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  153. package/dist/node_modules/@allyhub/piece/dist/formats.d.ts +149 -0
  154. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  155. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  156. package/dist/node_modules/@allyhub/piece/dist/gen.js +2 -0
  157. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  158. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  162. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  163. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +421 -0
  164. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  165. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +66 -0
  166. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +256 -0
  167. package/dist/node_modules/@allyhub/piece/dist/media.js +2 -0
  168. package/dist/node_modules/@allyhub/piece/dist/messages.d.ts +94 -0
  169. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  170. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  174. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  175. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  176. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  177. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  178. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  179. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  180. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  181. package/dist/node_modules/@allyhub/piece/dist/script.d.ts +81 -0
  182. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  183. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  184. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +285 -0
  185. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  186. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  187. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  188. package/dist/node_modules/@allyhub/piece/dist/voice.d.ts +156 -0
  189. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  190. package/dist/node_modules/@allyhub/protocol/LICENSE +241 -0
  191. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +478 -0
  192. package/dist/node_modules/@allyhub/protocol/dist/account.js +2 -0
  193. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +30 -0
  194. package/dist/node_modules/@allyhub/protocol/dist/app.js +2 -0
  195. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +119 -0
  196. package/dist/node_modules/@allyhub/protocol/dist/auth.js +2 -0
  197. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +66 -0
  198. package/dist/node_modules/@allyhub/protocol/dist/cli.js +2 -0
  199. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +327 -0
  200. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +2 -0
  201. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +651 -0
  202. package/dist/node_modules/@allyhub/protocol/dist/editor.js +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +103 -0
  204. package/dist/node_modules/@allyhub/protocol/dist/files.js +2 -0
  205. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +303 -0
  206. package/dist/node_modules/@allyhub/protocol/dist/frame.js +2 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +28 -0
  210. package/dist/node_modules/@allyhub/protocol/dist/index.js +2 -0
  211. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +91 -0
  212. package/dist/node_modules/@allyhub/protocol/dist/jobs.js +2 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +273 -0
  216. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  217. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +213 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/notes.js +2 -0
  219. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  220. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  223. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  224. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  225. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +191 -0
  226. package/dist/node_modules/@allyhub/protocol/dist/registry.js +2 -0
  227. package/dist/node_modules/@allyhub/protocol/dist/routes.js +2 -0
  228. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  229. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  230. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +109 -0
  231. package/dist/node_modules/@allyhub/protocol/dist/shares.js +2 -0
  232. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +297 -0
  233. package/dist/node_modules/@allyhub/protocol/dist/sites.js +2 -0
  234. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +447 -0
  235. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +2 -0
  236. package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +14 -0
  237. package/dist/node_modules/@allyhub/protocol/dist/sources.js +2 -0
  238. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +195 -0
  239. package/dist/node_modules/@allyhub/protocol/dist/teams.js +2 -0
  240. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +524 -0
  241. package/dist/node_modules/@allyhub/protocol/dist/tools.js +2 -0
  242. package/dist/node_modules/@allyhub/protocol/package.json +14 -0
  243. package/dist/node_modules/@allyhub/runtimes/LICENSE +241 -0
  244. package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +10 -0
  245. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +2 -0
  246. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  247. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  248. package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +38 -0
  249. package/dist/node_modules/@allyhub/runtimes/dist/download.js +2 -0
  250. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  251. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  252. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +12 -0
  253. package/dist/node_modules/@allyhub/runtimes/dist/index.js +2 -0
  254. package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +3 -0
  255. package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +2 -0
  256. package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +12 -0
  257. package/dist/node_modules/@allyhub/runtimes/dist/node-program.js +2 -0
  258. package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +84 -0
  259. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +4 -0
  260. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +73 -0
  261. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +4 -0
  262. package/dist/node_modules/@allyhub/runtimes/manifest.json +387 -0
  263. package/dist/node_modules/@allyhub/runtimes/package.json +18 -0
  264. package/dist/node_modules/@allyhub/runtimes/pins/pdfjs-dist/package-lock.json +275 -0
  265. package/dist/node_modules/@allyhub/runtimes/pins/pdfjs-dist/package.json +11 -0
  266. package/dist/node_modules/@allyhub/scenery/LICENSE +241 -0
  267. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +166 -0
  268. package/dist/node_modules/@allyhub/scenery/dist/define.js +2 -0
  269. package/dist/node_modules/@allyhub/scenery/package.json +13 -0
  270. package/dist/node_modules/@allyhub/sheet/LICENSE +241 -0
  271. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +2 -0
  272. package/dist/node_modules/@allyhub/sheet/dist/api/charts.d.ts +204 -0
  273. package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +2 -0
  274. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +19 -0
  275. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +2 -0
  276. package/dist/node_modules/@allyhub/sheet/dist/api/page.d.ts +83 -0
  277. package/dist/node_modules/@allyhub/sheet/dist/api/page.js +2 -0
  278. package/dist/node_modules/@allyhub/sheet/dist/api/rules.d.ts +170 -0
  279. package/dist/node_modules/@allyhub/sheet/dist/api/rules.js +2 -0
  280. package/dist/node_modules/@allyhub/sheet/dist/api/styles.d.ts +117 -0
  281. package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +2 -0
  282. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +366 -0
  283. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +2 -0
  284. package/dist/node_modules/@allyhub/sheet/dist/arrange.d.ts +68 -0
  285. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +82 -0
  286. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +52 -0
  287. package/dist/node_modules/@allyhub/sheet/dist/chart.js +2 -0
  288. package/dist/node_modules/@allyhub/sheet/dist/diff.js +2 -0
  289. package/dist/node_modules/@allyhub/sheet/dist/edit.d.ts +154 -0
  290. package/dist/node_modules/@allyhub/sheet/dist/export.js +5 -0
  291. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +24 -0
  292. package/dist/node_modules/@allyhub/sheet/dist/file.js +3 -0
  293. package/dist/node_modules/@allyhub/sheet/dist/files.d.ts +24 -0
  294. package/dist/node_modules/@allyhub/sheet/dist/files.js +2 -0
  295. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +32 -0
  296. package/dist/node_modules/@allyhub/sheet/dist/generated.js +2 -0
  297. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +13 -0
  298. package/dist/node_modules/@allyhub/sheet/dist/import.js +2 -0
  299. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +41 -0
  300. package/dist/node_modules/@allyhub/sheet/dist/index.js +2 -0
  301. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +100 -0
  302. package/dist/node_modules/@allyhub/sheet/dist/paginate.d.ts +98 -0
  303. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +4 -0
  304. package/dist/node_modules/@allyhub/sheet/dist/patch.js +2 -0
  305. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  306. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  307. package/dist/node_modules/@allyhub/sheet/dist/structure.d.ts +38 -0
  308. package/dist/node_modules/@allyhub/sheet/dist/table-style.d.ts +32 -0
  309. package/dist/node_modules/@allyhub/sheet/dist/validate.d.ts +26 -0
  310. package/dist/node_modules/@allyhub/sheet/dist/validate.js +2 -0
  311. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +324 -0
  312. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +2 -0
  313. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +53 -0
  314. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +2 -0
  315. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +51 -0
  316. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +2 -0
  317. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +159 -0
  318. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +3 -0
  319. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +2 -0
  320. package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.d.ts +40 -0
  321. package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.js +2 -0
  322. package/dist/node_modules/@allyhub/sheet/package.json +25 -0
  323. package/dist/node_modules/@allyhub/slides-core/LICENSE +241 -0
  324. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +145 -0
  325. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +2 -0
  326. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +770 -0
  327. package/dist/node_modules/@allyhub/slides-core/dist/api.js +4 -0
  328. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +2 -0
  329. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +219 -0
  330. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +2 -0
  331. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +33 -0
  332. package/dist/node_modules/@allyhub/slides-core/dist/code.js +2 -0
  333. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  334. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  335. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +208 -0
  336. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  337. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +131 -0
  338. package/dist/node_modules/@allyhub/slides-core/dist/file.js +4 -0
  339. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +27 -0
  340. package/dist/node_modules/@allyhub/slides-core/dist/index.js +2 -0
  341. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +36 -0
  342. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +2 -0
  343. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +58 -0
  344. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +2 -0
  345. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +310 -0
  346. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +84 -0
  347. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +6 -0
  348. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +209 -0
  349. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +2 -0
  350. package/dist/node_modules/@allyhub/slides-core/dist/script.d.ts +45 -0
  351. package/dist/node_modules/@allyhub/slides-core/dist/script.js +3 -0
  352. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  353. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  354. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +78 -0
  355. package/dist/node_modules/@allyhub/slides-core/dist/strict.d.ts +7 -0
  356. package/dist/node_modules/@allyhub/slides-core/dist/strict.js +2 -0
  357. package/dist/node_modules/@allyhub/slides-core/dist/theme.d.ts +72 -0
  358. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +59 -0
  359. package/dist/node_modules/@allyhub/slides-core/dist/units.js +2 -0
  360. package/dist/node_modules/@allyhub/slides-core/package.json +18 -0
  361. package/dist/node_modules/@allyhub/video-core/LICENSE +241 -0
  362. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +147 -0
  363. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +113 -0
  364. package/dist/node_modules/@allyhub/video-core/dist/captions.js +11 -0
  365. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  366. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  367. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +77 -0
  368. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +2 -0
  369. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +163 -0
  370. package/dist/node_modules/@allyhub/video-core/dist/edits.js +2 -0
  371. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +438 -0
  372. package/dist/node_modules/@allyhub/video-core/dist/fact.js +2 -0
  373. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +169 -0
  374. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +2 -0
  375. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +27 -0
  376. package/dist/node_modules/@allyhub/video-core/dist/index.js +2 -0
  377. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +212 -0
  378. package/dist/node_modules/@allyhub/video-core/dist/measure.js +2 -0
  379. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  380. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  381. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +56 -0
  382. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +746 -0
  383. package/dist/node_modules/@allyhub/video-core/dist/piece.js +2 -0
  384. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +37 -0
  385. package/dist/node_modules/@allyhub/video-core/dist/render-types.js +2 -0
  386. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +344 -0
  387. package/dist/node_modules/@allyhub/video-core/dist/schema.js +2 -0
  388. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +185 -0
  389. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +2 -0
  390. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +213 -0
  391. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +72 -0
  392. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +2 -0
  393. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +81 -0
  394. package/dist/node_modules/@allyhub/video-core/dist/speech.js +5 -0
  395. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  396. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  397. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +513 -0
  398. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +2 -0
  399. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +88 -0
  400. package/dist/node_modules/@allyhub/video-core/dist/timing.js +2 -0
  401. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +288 -0
  402. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +2 -0
  403. package/dist/node_modules/@allyhub/video-core/dist/transition.d.ts +300 -0
  404. package/dist/node_modules/@allyhub/video-core/dist/transition.js +2 -0
  405. package/dist/node_modules/@allyhub/video-core/package.json +14 -0
  406. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  407. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  408. package/dist/node_modules/@allyhub/video-sdk/dist/free.d.ts +22 -0
  409. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  410. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  411. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  412. package/dist/node_modules/@allyhub/video-sdk/dist/input.d.ts +360 -0
  413. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  414. package/dist/node_modules/@allyhub/video-sdk/dist/module.d.ts +25 -0
  415. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  416. package/dist/node_modules/@allyhub/video-sdk/dist/parts.d.ts +225 -0
  417. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  418. package/dist/node_modules/@allyhub/video-sdk/dist/phone.d.ts +26 -0
  419. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  420. package/dist/node_modules/@allyhub/video-sdk/dist/piece.d.ts +120 -0
  421. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  422. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  423. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  424. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  425. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  426. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  427. package/dist/scenery.d.ts +1 -1
  428. package/dist/scenery.js +1 -1
  429. package/dist/sheets.d.ts +1 -1
  430. package/dist/sheets.js +1 -1
  431. package/dist/slides.d.ts +1 -9
  432. package/dist/slides.js +1 -1
  433. package/docs/README.md +9 -7
  434. package/docs/batches.md +5 -5
  435. package/docs/contract.md +2 -2
  436. package/docs/defaults.md +330 -19
  437. package/docs/docs.md +209 -48
  438. package/docs/footage.md +7 -7
  439. package/docs/image.md +165 -0
  440. package/docs/layers.md +48 -13
  441. package/docs/modeling.md +9 -9
  442. package/docs/pictures.md +65 -0
  443. package/docs/project.md +53 -33
  444. package/docs/scenery.md +15 -15
  445. package/docs/sheets.md +27 -26
  446. package/docs/slides.md +74 -66
  447. package/docs/sound.md +3 -3
  448. package/docs/speech.md +8 -8
  449. package/docs/video.md +16 -13
  450. package/docs/websites.md +7 -7
  451. package/package.json +9 -3
  452. package/dist/define.d.ts +0 -85
  453. package/dist/define.js +0 -2
  454. package/dist/free.d.ts +0 -18
  455. package/dist/free.js +0 -2
  456. package/dist/input.d.ts +0 -306
  457. package/dist/input.js +0 -2
  458. package/dist/messages.d.ts +0 -40
  459. package/dist/module.d.ts +0 -23
  460. package/dist/module.js +0 -2
  461. package/dist/node_modules/@allyhub-next/audio/dist/levels.d.ts +0 -97
  462. package/dist/node_modules/@allyhub-next/audio/dist/levels.js +0 -2
  463. package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -31
  464. package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.js +0 -2
  465. package/dist/node_modules/@allyhub-next/audio/package.json +0 -17
  466. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.d.ts +0 -31
  467. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +0 -3
  468. package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +0 -204
  469. package/dist/node_modules/@allyhub-next/chart/dist/chart.js +0 -2
  470. package/dist/node_modules/@allyhub-next/chart/dist/index.d.ts +0 -3
  471. package/dist/node_modules/@allyhub-next/chart/dist/index.js +0 -2
  472. package/dist/node_modules/@allyhub-next/chart/package.json +0 -14
  473. package/dist/node_modules/@allyhub-next/formats/dist/data/comments.d.ts +0 -94
  474. package/dist/node_modules/@allyhub-next/formats/dist/data/comments.js +0 -2
  475. package/dist/node_modules/@allyhub-next/formats/dist/data/faces.d.ts +0 -38
  476. package/dist/node_modules/@allyhub-next/formats/dist/data/reference.d.ts +0 -590
  477. package/dist/node_modules/@allyhub-next/formats/dist/data/reference.js +0 -2
  478. package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +0 -62
  479. package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +0 -2
  480. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +0 -5138
  481. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +0 -2
  482. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +0 -2520
  483. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +0 -2
  484. package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +0 -20
  485. package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +0 -2
  486. package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +0 -23
  487. package/dist/node_modules/@allyhub-next/formats/dist/index.js +0 -2
  488. package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +0 -120
  489. package/dist/node_modules/@allyhub-next/formats/dist/items.js +0 -2
  490. package/dist/node_modules/@allyhub-next/formats/dist/layout.d.ts +0 -56
  491. package/dist/node_modules/@allyhub-next/formats/dist/layout.js +0 -5
  492. package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +0 -2741
  493. package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +0 -2
  494. package/dist/node_modules/@allyhub-next/formats/package.json +0 -15
  495. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +0 -28
  496. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +0 -2
  497. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +0 -57
  498. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +0 -2
  499. package/dist/node_modules/@allyhub-next/ooxml/package.json +0 -26
  500. package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +0 -338
  501. package/dist/node_modules/@allyhub-next/protocol/dist/account.js +0 -2
  502. package/dist/node_modules/@allyhub-next/protocol/dist/app.d.ts +0 -37
  503. package/dist/node_modules/@allyhub-next/protocol/dist/app.js +0 -2
  504. package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +0 -115
  505. package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +0 -2
  506. package/dist/node_modules/@allyhub-next/protocol/dist/cli.d.ts +0 -55
  507. package/dist/node_modules/@allyhub-next/protocol/dist/cli.js +0 -2
  508. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +0 -324
  509. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +0 -2
  510. package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +0 -486
  511. package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +0 -2
  512. package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +0 -101
  513. package/dist/node_modules/@allyhub-next/protocol/dist/files.js +0 -2
  514. package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +0 -20
  515. package/dist/node_modules/@allyhub-next/protocol/dist/index.js +0 -2
  516. package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +0 -188
  517. package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +0 -2
  518. package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +0 -185
  519. package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +0 -2
  520. package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +0 -2
  521. package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +0 -115
  522. package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +0 -2
  523. package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +0 -293
  524. package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +0 -2
  525. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +0 -396
  526. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +0 -2
  527. package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +0 -79
  528. package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +0 -2
  529. package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +0 -428
  530. package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +0 -2
  531. package/dist/node_modules/@allyhub-next/protocol/package.json +0 -14
  532. package/dist/node_modules/@allyhub-next/runtimes/dist/bundled.d.ts +0 -10
  533. package/dist/node_modules/@allyhub-next/runtimes/dist/bundled.js +0 -2
  534. package/dist/node_modules/@allyhub-next/runtimes/dist/download.d.ts +0 -33
  535. package/dist/node_modules/@allyhub-next/runtimes/dist/download.js +0 -2
  536. package/dist/node_modules/@allyhub-next/runtimes/dist/index.d.ts +0 -10
  537. package/dist/node_modules/@allyhub-next/runtimes/dist/index.js +0 -2
  538. package/dist/node_modules/@allyhub-next/runtimes/dist/manifest.d.ts +0 -3
  539. package/dist/node_modules/@allyhub-next/runtimes/dist/manifest.js +0 -2
  540. package/dist/node_modules/@allyhub-next/runtimes/dist/node-program.d.ts +0 -3
  541. package/dist/node_modules/@allyhub-next/runtimes/dist/node-program.js +0 -2
  542. package/dist/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +0 -82
  543. package/dist/node_modules/@allyhub-next/runtimes/dist/packages.js +0 -4
  544. package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +0 -72
  545. package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.js +0 -4
  546. package/dist/node_modules/@allyhub-next/runtimes/manifest.json +0 -469
  547. package/dist/node_modules/@allyhub-next/runtimes/package.json +0 -18
  548. package/dist/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  549. package/dist/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +0 -8
  550. package/dist/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  551. package/dist/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  552. package/dist/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +0 -128
  553. package/dist/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package.json +0 -9
  554. package/dist/node_modules/@allyhub-next/scenery/dist/define.d.ts +0 -164
  555. package/dist/node_modules/@allyhub-next/scenery/dist/define.js +0 -2
  556. package/dist/node_modules/@allyhub-next/scenery/package.json +0 -13
  557. package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +0 -2
  558. package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.d.ts +0 -204
  559. package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.js +0 -2
  560. package/dist/node_modules/@allyhub-next/sheet/dist/api/code.d.ts +0 -19
  561. package/dist/node_modules/@allyhub-next/sheet/dist/api/code.js +0 -2
  562. package/dist/node_modules/@allyhub-next/sheet/dist/api/page.d.ts +0 -83
  563. package/dist/node_modules/@allyhub-next/sheet/dist/api/page.js +0 -2
  564. package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.d.ts +0 -170
  565. package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.js +0 -2
  566. package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.d.ts +0 -117
  567. package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.js +0 -2
  568. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +0 -362
  569. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +0 -2
  570. package/dist/node_modules/@allyhub-next/sheet/dist/arrange.d.ts +0 -68
  571. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +0 -82
  572. package/dist/node_modules/@allyhub-next/sheet/dist/chart.d.ts +0 -58
  573. package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +0 -2
  574. package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +0 -2
  575. package/dist/node_modules/@allyhub-next/sheet/dist/edit.d.ts +0 -154
  576. package/dist/node_modules/@allyhub-next/sheet/dist/export.js +0 -5
  577. package/dist/node_modules/@allyhub-next/sheet/dist/file.d.ts +0 -19
  578. package/dist/node_modules/@allyhub-next/sheet/dist/file.js +0 -3
  579. package/dist/node_modules/@allyhub-next/sheet/dist/files.d.ts +0 -24
  580. package/dist/node_modules/@allyhub-next/sheet/dist/files.js +0 -2
  581. package/dist/node_modules/@allyhub-next/sheet/dist/generated.d.ts +0 -46
  582. package/dist/node_modules/@allyhub-next/sheet/dist/generated.js +0 -2
  583. package/dist/node_modules/@allyhub-next/sheet/dist/import.d.ts +0 -11
  584. package/dist/node_modules/@allyhub-next/sheet/dist/import.js +0 -2
  585. package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +0 -42
  586. package/dist/node_modules/@allyhub-next/sheet/dist/index.js +0 -2
  587. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.d.ts +0 -25
  588. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +0 -98
  589. package/dist/node_modules/@allyhub-next/sheet/dist/patch.d.ts +0 -4
  590. package/dist/node_modules/@allyhub-next/sheet/dist/patch.js +0 -2
  591. package/dist/node_modules/@allyhub-next/sheet/dist/structure.d.ts +0 -38
  592. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +0 -32
  593. package/dist/node_modules/@allyhub-next/sheet/dist/validate.d.ts +0 -26
  594. package/dist/node_modules/@allyhub-next/sheet/dist/validate.js +0 -2
  595. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +0 -324
  596. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +0 -2
  597. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +0 -53
  598. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +0 -2
  599. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +0 -49
  600. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +0 -2
  601. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +0 -159
  602. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +0 -3
  603. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +0 -2
  604. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +0 -40
  605. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +0 -2
  606. package/dist/node_modules/@allyhub-next/sheet/package.json +0 -21
  607. package/dist/node_modules/@allyhub-next/slides-core/dist/animation.d.ts +0 -129
  608. package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +0 -2
  609. package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +0 -726
  610. package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +0 -4
  611. package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +0 -2
  612. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +0 -202
  613. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +0 -2
  614. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.d.ts +0 -11
  615. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +0 -2
  616. package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +0 -33
  617. package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +0 -2
  618. package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +0 -131
  619. package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +0 -4
  620. package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +0 -26
  621. package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +0 -2
  622. package/dist/node_modules/@allyhub-next/slides-core/dist/measure.d.ts +0 -34
  623. package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +0 -2
  624. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +0 -58
  625. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +0 -2
  626. package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +0 -309
  627. package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +0 -84
  628. package/dist/node_modules/@allyhub-next/slides-core/dist/path.d.ts +0 -6
  629. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +0 -202
  630. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +0 -2
  631. package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +0 -45
  632. package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +0 -3
  633. package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +0 -61
  634. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +0 -7
  635. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +0 -2
  636. package/dist/node_modules/@allyhub-next/slides-core/dist/theme.d.ts +0 -72
  637. package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +0 -62
  638. package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +0 -2
  639. package/dist/node_modules/@allyhub-next/slides-core/package.json +0 -14
  640. package/dist/node_modules/@allyhub-next/video-core/dist/anchors.d.ts +0 -164
  641. package/dist/node_modules/@allyhub-next/video-core/dist/audio-types.d.ts +0 -148
  642. package/dist/node_modules/@allyhub-next/video-core/dist/captions.d.ts +0 -122
  643. package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +0 -11
  644. package/dist/node_modules/@allyhub-next/video-core/dist/contrast.d.ts +0 -98
  645. package/dist/node_modules/@allyhub-next/video-core/dist/cut-report.d.ts +0 -77
  646. package/dist/node_modules/@allyhub-next/video-core/dist/cut-report.js +0 -2
  647. package/dist/node_modules/@allyhub-next/video-core/dist/edits.d.ts +0 -163
  648. package/dist/node_modules/@allyhub-next/video-core/dist/edits.js +0 -2
  649. package/dist/node_modules/@allyhub-next/video-core/dist/export.d.ts +0 -97
  650. package/dist/node_modules/@allyhub-next/video-core/dist/export.js +0 -2
  651. package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +0 -1179
  652. package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +0 -2
  653. package/dist/node_modules/@allyhub-next/video-core/dist/footage-motion.d.ts +0 -168
  654. package/dist/node_modules/@allyhub-next/video-core/dist/footage-motion.js +0 -2
  655. package/dist/node_modules/@allyhub-next/video-core/dist/formats.d.ts +0 -205
  656. package/dist/node_modules/@allyhub-next/video-core/dist/formats.js +0 -2
  657. package/dist/node_modules/@allyhub-next/video-core/dist/gen.d.ts +0 -37
  658. package/dist/node_modules/@allyhub-next/video-core/dist/gen.js +0 -2
  659. package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +0 -40
  660. package/dist/node_modules/@allyhub-next/video-core/dist/index.js +0 -2
  661. package/dist/node_modules/@allyhub-next/video-core/dist/look.d.ts +0 -66
  662. package/dist/node_modules/@allyhub-next/video-core/dist/measure.d.ts +0 -558
  663. package/dist/node_modules/@allyhub-next/video-core/dist/measure.js +0 -5
  664. package/dist/node_modules/@allyhub-next/video-core/dist/media.d.ts +0 -226
  665. package/dist/node_modules/@allyhub-next/video-core/dist/media.js +0 -2
  666. package/dist/node_modules/@allyhub-next/video-core/dist/messages.d.ts +0 -88
  667. package/dist/node_modules/@allyhub-next/video-core/dist/motion.d.ts +0 -56
  668. package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +0 -1154
  669. package/dist/node_modules/@allyhub-next/video-core/dist/piece.js +0 -2
  670. package/dist/node_modules/@allyhub-next/video-core/dist/placement.d.ts +0 -37
  671. package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +0 -278
  672. package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +0 -2
  673. package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +0 -350
  674. package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +0 -2
  675. package/dist/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +0 -180
  676. package/dist/node_modules/@allyhub-next/video-core/dist/script-edit.js +0 -2
  677. package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +0 -76
  678. package/dist/node_modules/@allyhub-next/video-core/dist/script.js +0 -2
  679. package/dist/node_modules/@allyhub-next/video-core/dist/seams.d.ts +0 -214
  680. package/dist/node_modules/@allyhub-next/video-core/dist/sound-under.d.ts +0 -72
  681. package/dist/node_modules/@allyhub-next/video-core/dist/sound-under.js +0 -2
  682. package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +0 -7
  683. package/dist/node_modules/@allyhub-next/video-core/dist/speech.d.ts +0 -83
  684. package/dist/node_modules/@allyhub-next/video-core/dist/speech.js +0 -5
  685. package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +0 -626
  686. package/dist/node_modules/@allyhub-next/video-core/dist/timeline.js +0 -2
  687. package/dist/node_modules/@allyhub-next/video-core/dist/timing.d.ts +0 -88
  688. package/dist/node_modules/@allyhub-next/video-core/dist/timing.js +0 -2
  689. package/dist/node_modules/@allyhub-next/video-core/dist/transcript.d.ts +0 -288
  690. package/dist/node_modules/@allyhub-next/video-core/dist/transcript.js +0 -2
  691. package/dist/node_modules/@allyhub-next/video-core/dist/transition.d.ts +0 -289
  692. package/dist/node_modules/@allyhub-next/video-core/dist/transition.js +0 -2
  693. package/dist/node_modules/@allyhub-next/video-core/dist/voice.d.ts +0 -175
  694. package/dist/node_modules/@allyhub-next/video-core/package.json +0 -14
  695. package/dist/parts.d.ts +0 -216
  696. package/dist/parts.js +0 -2
  697. package/dist/phone.d.ts +0 -26
  698. package/dist/phone.js +0 -2
  699. package/dist/piece.d.ts +0 -110
  700. package/dist/piece.js +0 -2
  701. package/dist/props.d.ts +0 -124
  702. package/dist/written.js +0 -2
  703. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/LICENSE +0 -0
  704. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/at-cut.d.ts +0 -0
  705. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/at-cut.js +0 -0
  706. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/decode.d.ts +0 -0
  707. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/decode.js +0 -0
  708. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/envelope.d.ts +0 -0
  709. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/envelope.js +0 -0
  710. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/index.d.ts +0 -0
  711. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/index.js +0 -0
  712. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/master.d.ts +0 -0
  713. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/master.js +0 -0
  714. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/music.d.ts +0 -0
  715. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/music.js +0 -0
  716. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/decode.d.ts +0 -0
  717. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/decode.js +0 -0
  718. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/ebur128.d.ts +0 -0
  719. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/ebur128.js +0 -0
  720. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/index.d.ts +0 -0
  721. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/index.js +0 -0
  722. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/loudness.d.ts +0 -0
  723. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/loudness.js +0 -0
  724. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/master.d.ts +0 -0
  725. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/master.js +0 -0
  726. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/measure.d.ts +0 -0
  727. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/measure.js +0 -0
  728. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/mix.d.ts +0 -0
  729. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/node/mix.js +0 -0
  730. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/plan.d.ts +0 -0
  731. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/plan.js +0 -0
  732. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recorded.d.ts +0 -0
  733. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recorded.js +0 -0
  734. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/bandwidth.d.ts +0 -0
  735. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/bandwidth.js +0 -0
  736. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/chain.d.ts +0 -0
  737. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/chain.js +0 -0
  738. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/dynamics.d.ts +0 -0
  739. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/dynamics.js +0 -0
  740. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/fft.d.ts +0 -0
  741. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/fft.js +0 -0
  742. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/filters.d.ts +0 -0
  743. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/filters.js +0 -0
  744. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/fit.d.ts +0 -0
  745. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/fit.js +0 -0
  746. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/index.d.ts +0 -0
  747. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/index.js +0 -0
  748. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/loudness.d.ts +0 -0
  749. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/loudness.js +0 -0
  750. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/measure.d.ts +0 -0
  751. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/measure.js +0 -0
  752. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/mic.d.ts +0 -0
  753. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/mic.js +0 -0
  754. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/noise.d.ts +0 -0
  755. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/noise.js +0 -0
  756. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/presets.d.ts +0 -0
  757. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/presets.js +0 -0
  758. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/room.d.ts +0 -0
  759. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/room.js +0 -0
  760. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/setup.d.ts +0 -0
  761. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/setup.js +0 -0
  762. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/vec.d.ts +0 -0
  763. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/recording/vec.js +0 -0
  764. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/render.d.ts +0 -0
  765. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/render.js +0 -0
  766. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/sfx.d.ts +0 -0
  767. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/sfx.js +0 -0
  768. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/shape.d.ts +0 -0
  769. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/shape.js +0 -0
  770. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/voice.d.ts +0 -0
  771. /package/dist/node_modules/{@allyhub-next → @allyhub}/audio/dist/voice.js +0 -0
  772. /package/dist/node_modules/{@allyhub-next → @allyhub}/chart/LICENSE +0 -0
  773. /package/dist/node_modules/{@allyhub-next/formats → @allyhub/diagnostics}/LICENSE +0 -0
  774. /package/dist/node_modules/{@allyhub-next/ooxml → @allyhub/formats}/LICENSE +0 -0
  775. /package/dist/node_modules/{@allyhub-next/sheet → @allyhub/formats}/dist/csv.d.ts +0 -0
  776. /package/dist/node_modules/{@allyhub-next/sheet → @allyhub/formats}/dist/csv.js +0 -0
  777. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/config.d.ts +0 -0
  778. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/config.js +0 -0
  779. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/deck-code.d.ts +0 -0
  780. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/deck-code.js +0 -0
  781. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/edits.d.ts +0 -0
  782. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/edits.js +0 -0
  783. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/elements.d.ts +0 -0
  784. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/elements.js +0 -0
  785. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/faces.js +0 -0
  786. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/file.d.ts +0 -0
  787. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/file.js +0 -0
  788. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/gen.d.ts +0 -0
  789. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/gen.js +0 -0
  790. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/messages.d.ts +0 -0
  791. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/messages.js +0 -0
  792. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/words.d.ts +0 -0
  793. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/data/words.js +0 -0
  794. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/media-type.d.ts +0 -0
  795. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/media-type.js +0 -0
  796. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/note-shape.d.ts +0 -0
  797. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/note-shape.js +0 -0
  798. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/strict.d.ts +0 -0
  799. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/strict.js +0 -0
  800. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/zip.d.ts +0 -0
  801. /package/dist/node_modules/{@allyhub-next → @allyhub}/formats/dist/zip.js +0 -0
  802. /package/dist/node_modules/{@allyhub-next/protocol → @allyhub/image-draw}/LICENSE +0 -0
  803. /package/dist/node_modules/{@allyhub-next/runtimes → @allyhub/image-measure}/LICENSE +0 -0
  804. /package/dist/node_modules/{@allyhub-next/scenery → @allyhub/image-sdk}/LICENSE +0 -0
  805. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  806. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  807. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  808. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  809. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  810. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  811. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  812. /package/dist/node_modules/{@allyhub-next/sheet → @allyhub/measure}/LICENSE +0 -0
  813. /package/dist/node_modules/{@allyhub-next/slides-core → @allyhub/ooxml}/LICENSE +0 -0
  814. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/brightness.d.ts +0 -0
  815. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/brightness.js +0 -0
  816. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/color.d.ts +0 -0
  817. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/color.js +0 -0
  818. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/enums.d.ts +0 -0
  819. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/enums.js +0 -0
  820. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/ext.d.ts +0 -0
  821. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/ext.js +0 -0
  822. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/generated/enums.d.ts +0 -0
  823. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/generated/enums.js +0 -0
  824. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/generated/spec.d.ts +0 -0
  825. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/generated/spec.js +0 -0
  826. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/index.d.ts +0 -0
  827. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/index.js +0 -0
  828. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/mce.d.ts +0 -0
  829. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/mce.js +0 -0
  830. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/node.d.ts +0 -0
  831. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/node.js +0 -0
  832. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/ns.d.ts +0 -0
  833. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/ns.js +0 -0
  834. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/opc.d.ts +0 -0
  835. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/opc.js +0 -0
  836. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/report.d.ts +0 -0
  837. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/report.js +0 -0
  838. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/xml.d.ts +0 -0
  839. /package/dist/node_modules/{@allyhub-next → @allyhub}/ooxml/dist/xml.js +0 -0
  840. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/LICENSE +0 -0
  841. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/anchors.js +0 -0
  842. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/console.d.ts +0 -0
  843. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/console.js +0 -0
  844. /package/dist/node_modules/{@allyhub-next/slides-core/dist/model.js → @allyhub/piece/dist/context.js} +0 -0
  845. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/contrast.js +0 -0
  846. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/look.js +0 -0
  847. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/marks.d.ts +0 -0
  848. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/marks.js +0 -0
  849. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/matrix.d.ts +0 -0
  850. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/matrix.js +0 -0
  851. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/messages.js +0 -0
  852. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/source.js +0 -0
  853. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/voice.js +0 -0
  854. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/words.d.ts +0 -0
  855. /package/dist/node_modules/{@allyhub-next/video-core → @allyhub/piece}/dist/words.js +0 -0
  856. /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/blobs.d.ts +0 -0
  857. /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/blobs.js +0 -0
  858. /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/jsonrpc.d.ts +0 -0
  859. /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/jsonrpc.js +0 -0
  860. /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/open.d.ts +0 -0
  861. /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/open.js +0 -0
  862. /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/routes.d.ts +0 -0
  863. /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/runtimes.d.ts +0 -0
  864. /package/dist/node_modules/{@allyhub-next → @allyhub}/protocol/dist/runtimes.js +0 -0
  865. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/errors.d.ts +0 -0
  866. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/errors.js +0 -0
  867. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/home.d.ts +0 -0
  868. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/home.js +0 -0
  869. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/lock.d.ts +0 -0
  870. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/lock.js +0 -0
  871. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/unpack.d.ts +0 -0
  872. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/dist/unpack.js +0 -0
  873. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/docx/package-lock.json +0 -0
  874. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/docx/package.json +0 -0
  875. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/gltf-tools/package-lock.json +0 -0
  876. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/gltf-tools/package.json +0 -0
  877. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/manifold-3d/package-lock.json +0 -0
  878. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/pins/manifold-3d/package.json +0 -0
  879. /package/dist/node_modules/{@allyhub-next → @allyhub}/runtimes/schemas/runtimes.schema.json +0 -0
  880. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/NOTICE +0 -0
  881. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/aim.d.ts +0 -0
  882. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/aim.js +0 -0
  883. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/bake.d.ts +0 -0
  884. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/bake.js +0 -0
  885. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/camera.d.ts +0 -0
  886. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/camera.js +0 -0
  887. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/curve.d.ts +0 -0
  888. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/curve.js +0 -0
  889. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/fit.d.ts +0 -0
  890. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/fit.js +0 -0
  891. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/glass.d.ts +0 -0
  892. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/glass.js +0 -0
  893. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/handheld.d.ts +0 -0
  894. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/handheld.js +0 -0
  895. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/hull.d.ts +0 -0
  896. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/hull.js +0 -0
  897. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/index.d.ts +0 -0
  898. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/index.js +0 -0
  899. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/lens.d.ts +0 -0
  900. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/lens.js +0 -0
  901. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/moire.d.ts +0 -0
  902. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/moire.js +0 -0
  903. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/motion.d.ts +0 -0
  904. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/motion.js +0 -0
  905. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/move.d.ts +0 -0
  906. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/move.js +0 -0
  907. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/noise.d.ts +0 -0
  908. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/noise.js +0 -0
  909. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/phone.d.ts +0 -0
  910. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/phone.js +0 -0
  911. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/report.d.ts +0 -0
  912. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/report.js +0 -0
  913. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/screen-focus.d.ts +0 -0
  914. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/screen-focus.js +0 -0
  915. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/screen.d.ts +0 -0
  916. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/screen.js +0 -0
  917. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/solve.d.ts +0 -0
  918. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/solve.js +0 -0
  919. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/timing.d.ts +0 -0
  920. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/timing.js +0 -0
  921. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/vec.d.ts +0 -0
  922. /package/dist/node_modules/{@allyhub-next → @allyhub}/scenery/dist/vec.js +0 -0
  923. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/address.d.ts +0 -0
  924. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/address.js +0 -0
  925. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/capabilities.d.ts +0 -0
  926. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/hint.d.ts +0 -0
  927. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/hint.js +0 -0
  928. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/index.d.ts +0 -0
  929. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/index.js +0 -0
  930. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/rectangles.d.ts +0 -0
  931. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/api/rectangles.js +0 -0
  932. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/arrange.js +0 -0
  933. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/analyse.d.ts +0 -0
  934. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/analyse.js +0 -0
  935. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/coerce.d.ts +0 -0
  936. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/coerce.js +0 -0
  937. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/engine.d.ts +0 -0
  938. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/engine.js +0 -0
  939. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/aggregate.d.ts +0 -0
  940. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/aggregate.js +0 -0
  941. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/convert.d.ts +0 -0
  942. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/convert.js +0 -0
  943. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/criteria.d.ts +0 -0
  944. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/criteria.js +0 -0
  945. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/database.d.ts +0 -0
  946. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/database.js +0 -0
  947. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/date.d.ts +0 -0
  948. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/date.js +0 -0
  949. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/define.d.ts +0 -0
  950. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/define.js +0 -0
  951. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/delimiters.d.ts +0 -0
  952. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/delimiters.js +0 -0
  953. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/distributions.d.ts +0 -0
  954. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/distributions.js +0 -0
  955. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/dynamic.d.ts +0 -0
  956. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/dynamic.js +0 -0
  957. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/finance.d.ts +0 -0
  958. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/finance.js +0 -0
  959. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/index.d.ts +0 -0
  960. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/index.js +0 -0
  961. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/info.d.ts +0 -0
  962. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/info.js +0 -0
  963. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/kernels.d.ts +0 -0
  964. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/kernels.js +0 -0
  965. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/logical.d.ts +0 -0
  966. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/logical.js +0 -0
  967. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/lookup.d.ts +0 -0
  968. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/lookup.js +0 -0
  969. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/maths.d.ts +0 -0
  970. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/maths.js +0 -0
  971. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/modern.d.ts +0 -0
  972. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/modern.js +0 -0
  973. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/special.d.ts +0 -0
  974. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/special.js +0 -0
  975. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/text.d.ts +0 -0
  976. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/functions/text.js +0 -0
  977. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/graph.d.ts +0 -0
  978. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/graph.js +0 -0
  979. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/indexes.d.ts +0 -0
  980. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/indexes.js +0 -0
  981. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/remote.d.ts +0 -0
  982. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/remote.js +0 -0
  983. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/server.js +0 -0
  984. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/types.d.ts +0 -0
  985. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/calc/types.js +0 -0
  986. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/check.d.ts +0 -0
  987. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/check.js +0 -0
  988. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/diff.d.ts +0 -0
  989. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/edit.js +0 -0
  990. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/export.d.ts +0 -0
  991. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/fill.d.ts +0 -0
  992. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/fill.js +0 -0
  993. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/filter.d.ts +0 -0
  994. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/filter.js +0 -0
  995. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/format.d.ts +0 -0
  996. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/format.js +0 -0
  997. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/ast.d.ts +0 -0
  998. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/ast.js +0 -0
  999. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/move.d.ts +0 -0
  1000. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/move.js +0 -0
  1001. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/parse.d.ts +0 -0
  1002. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/parse.js +0 -0
  1003. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/print.d.ts +0 -0
  1004. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/print.js +0 -0
  1005. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/rewrite.d.ts +0 -0
  1006. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/rewrite.js +0 -0
  1007. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/walk.d.ts +0 -0
  1008. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/formula/walk.js +0 -0
  1009. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/html.d.ts +0 -0
  1010. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/html.js +0 -0
  1011. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/inspect.js +0 -0
  1012. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/paginate.js +0 -0
  1013. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/profile.d.ts +0 -0
  1014. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/profile.js +0 -0
  1015. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/rules.d.ts +0 -0
  1016. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/rules.js +0 -0
  1017. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/scenario.d.ts +0 -0
  1018. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/scenario.js +0 -0
  1019. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/series.d.ts +0 -0
  1020. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/series.js +0 -0
  1021. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/sort.d.ts +0 -0
  1022. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/sort.js +0 -0
  1023. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/structure.js +0 -0
  1024. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/table-style.js +0 -0
  1025. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/table-styles.d.ts +0 -0
  1026. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/table-styles.js +0 -0
  1027. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/values.d.ts +0 -0
  1028. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/values.js +0 -0
  1029. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/write.d.ts +0 -0
  1030. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/write.js +0 -0
  1031. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/colors.d.ts +0 -0
  1032. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/colors.js +0 -0
  1033. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/formula.d.ts +0 -0
  1034. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/formula.js +0 -0
  1035. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/functions.d.ts +0 -0
  1036. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/functions.js +0 -0
  1037. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/index.d.ts +0 -0
  1038. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/index.js +0 -0
  1039. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/numfmt.d.ts +0 -0
  1040. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/numfmt.js +0 -0
  1041. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/sax.d.ts +0 -0
  1042. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/sax.js +0 -0
  1043. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/styles.d.ts +0 -0
  1044. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/styles.js +0 -0
  1045. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/theme.d.ts +0 -0
  1046. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/theme.js +0 -0
  1047. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/write.d.ts +0 -0
  1048. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/xml.d.ts +0 -0
  1049. /package/dist/node_modules/{@allyhub-next → @allyhub}/sheet/dist/xlsx/xml.js +0 -0
  1050. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/capabilities.d.ts +0 -0
  1051. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/check.d.ts +0 -0
  1052. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/check.js +0 -0
  1053. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/components.d.ts +0 -0
  1054. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/components.js +0 -0
  1055. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/enums.d.ts +0 -0
  1056. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/enums.js +0 -0
  1057. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/identity.d.ts +0 -0
  1058. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/identity.js +0 -0
  1059. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/lang.d.ts +0 -0
  1060. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/lang.js +0 -0
  1061. /package/dist/node_modules/{@allyhub-next/slides-core/dist/stage.js → @allyhub/slides-core/dist/model.js} +0 -0
  1062. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/office.js +0 -0
  1063. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/path.js +0 -0
  1064. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/placeholders.d.ts +0 -0
  1065. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/placeholders.js +0 -0
  1066. /package/dist/node_modules/{@allyhub-next/video-core/dist/render-types.js → @allyhub/slides-core/dist/stage.js} +0 -0
  1067. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/theme.js +0 -0
  1068. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/values.d.ts +0 -0
  1069. /package/dist/node_modules/{@allyhub-next → @allyhub}/slides-core/dist/values.js +0 -0
  1070. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/audio-types.js +0 -0
  1071. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/backdrop.d.ts +0 -0
  1072. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/backdrop.js +0 -0
  1073. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/edit.d.ts +0 -0
  1074. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/edit.js +0 -0
  1075. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/motion.js +0 -0
  1076. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/music.d.ts +0 -0
  1077. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/music.js +0 -0
  1078. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/placement.js +0 -0
  1079. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/render-types.d.ts +0 -0
  1080. /package/dist/node_modules/{@allyhub-next → @allyhub}/video-core/dist/seams.js +0 -0
  1081. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  1082. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  1083. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  1084. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  1085. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  1086. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
@@ -1,2 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{CHART_DEFAULTS as Q,chartSpaceXml as ce}from"@allyhub-next/chart";import{columnLetter as Y}from"../address.js";import{Reference as Z,Union as ae}from"../calc/types.js";import{chartDef as fe,chartSize as de}from"../chart.js";import{sheetPrefix as le}from"../formula/print.js";import{HEAD as ue,attr as y,el as s,flag as ee,numberAttr as M,tag as r,tags as R,textOf as O}from"./xml.js";const he="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",me="http://schemas.openxmlformats.org/drawingml/2006/main",te="http://schemas.openxmlformats.org/drawingml/2006/chart",re="http://schemas.openxmlformats.org/officeDocument/2006/relationships",g=9525,xe=(e,t)=>`${le(e.sheet.name)}$${Y(e.left)}$${String(e.top+1)}${e.single?"":`:$${Y(e.right)}$${String(t+1)}`}`;function _(e,t,n){if(!n?.node)return;const o=e.eval(n.node,{sheet:t,row:0,col:0,dr:0,dc:0}),i=a=>xe(a,Math.min(a.bottom,Math.max(a.top,a.sheet.lastRow)));if(o instanceof Z)return i(o);if(o instanceof ae)return`(${o.parts.map(i).join(",")})`}function pe(e,t,n){if(!n?.node)return!1;const o=e.eval(n.node,{sheet:t,row:0,col:0,dr:0,dc:0});return o instanceof Z&&typeof e.value(o.sheet,o.top,o.left)=="number"}export function chartPart(e,t,n){const o=fe(e,t,n),i={name:l=>_(e,t,n.series[l]?.name),categories:_(e,t,n.categories),numeric:pe(e,t,n.categories),values:l=>_(e,t,n.series[l]?.values)??"",x:l=>_(e,t,n.series[l]?.x??n.categories)},a=_(e,t,n.title);return ce(o,{refs:i,...a===void 0?{}:{titleRef:a}})}const ge=(e,t,n)=>s("xdr:oneCellAnchor",{},s("xdr:from",{},`<xdr:col>${String(e.col)}</xdr:col>`,`<xdr:colOff>${String(Math.round(e.x*g))}</xdr:colOff>`,`<xdr:row>${String(e.row)}</xdr:row>`,`<xdr:rowOff>${String(Math.round((e.y??0)*g))}</xdr:rowOff>`),s("xdr:ext",{cx:Math.round(e.width*g),cy:Math.round(e.height*g)}),s("xdr:pic",{},s("xdr:nvPicPr",{},s("xdr:cNvPr",{id:t,name:e.name,descr:e.path}),s("xdr:cNvPicPr",{},s("a:picLocks",{noChangeAspect:!0}))),s("xdr:blipFill",{},s("a:blip",{"xmlns:r":re,"r:embed":`rId${String(n)}`}),s("a:stretch",{},s("a:fillRect"))),s("xdr:spPr",{},s("a:xfrm",{},s("a:off",{x:0,y:0}),s("a:ext",{cx:Math.round(e.width*g),cy:Math.round(e.height*g)})),s("a:prstGeom",{prst:"rect"},s("a:avLst")))),s("xdr:clientData"));export function drawingPart(e,t=[]){const n=(o,i)=>{const{width:a,height:l}=de(o.spec);return s("xdr:oneCellAnchor",{},s("xdr:from",{},`<xdr:col>${String(o.at.col)}</xdr:col>`,`<xdr:colOff>${String(Math.round((o.spec.x??0)*g))}</xdr:colOff>`,`<xdr:row>${String(o.at.row)}</xdr:row>`,`<xdr:rowOff>${String(Math.round((o.spec.y??0)*g))}</xdr:rowOff>`),s("xdr:ext",{cx:Math.round(a*g),cy:Math.round(l*g)}),s("xdr:graphicFrame",{macro:""},s("xdr:nvGraphicFramePr",{},s("xdr:cNvPr",{id:i+2,name:`Chart ${String(i+1)}`}),s("xdr:cNvGraphicFramePr")),s("xdr:xfrm",{},s("a:off",{x:0,y:0}),s("a:ext",{cx:0,cy:0})),s("a:graphic",{},s("a:graphicData",{uri:te},s("c:chart",{"xmlns:c":te,"xmlns:r":re,"r:id":`rId${String(i+1)}`})))),s("xdr:clientData"))};return ue+s("xdr:wsDr",{"xmlns:xdr":he,"xmlns:a":me},...e.map(n),...t.map((o,i)=>ge(o,e.length+i+2,e.length+i+1)))}function I(e){if(Array.isArray(e))return e.map(I).join("");if(typeof e!="object"||e===null)return"";const t=e,n=[];for(const[o,i]of Object.entries(t))o==="t"?n.push(O(i)):typeof i=="object"&&n.push(I(i));return n.join("")}const V=e=>{const t=r(e?.solidFill),n=y(r(t?.srgbClr),"val");return n!==void 0?`#${n.toUpperCase()}`:we[y(r(t?.schemeClr),"val")??""]},we={accent1:"#4472C4",accent2:"#ED7D31",accent3:"#A5A5A5",accent4:"#FFC000",accent5:"#5B9BD5",accent6:"#70AD47"},$=(e,t)=>y(r(e?.[t]),"val"),A=(e,t)=>M(r(e?.[t]),"val"),F=(e,t)=>ee(r(e?.[t]),"val");function ne(e){if(!e)return;const t=r(e.tx),n=r(t?.strRef);if(n)return`=${O(n.f)}`;const o=I(t?.rich);return o===""?void 0:o}function oe(e){if(!e)return;const t=r(e.scaling),n=r(e.numFmt),o=y(n,"formatCode"),i={},a=ne(r(e.title));a!==void 0&&(i.title=a);const l=A(t,"min"),x=A(t,"max"),u=A(e,"majorUnit");return l!==void 0&&(i.min=l),x!==void 0&&(i.max=x),u!==void 0&&u>0&&(i.major=u),F(e,"delete")===!0&&(i.visible=!1),$(t,"orientation")==="maxMin"&&(i.reverse=!0),o!==void 0&&o!=="General"&&ee(n,"sourceLinked")!==!0&&(i.format=o),i}const j=e=>{const t=r(e?.numRef)??r(e?.strRef),n=t?O(t.f):"";return n===""?void 0:n};function be(e,t){const n=j(r(e[t?"yVal":"val"]));if(n===void 0)return"its numbers are written in the chart";const o={values:n},i=r(e.tx),a=j(i);if(a!==void 0)o.name=`=${a}`;else{const d=O(i?.v);d!==""&&(o.name=d)}const l=r(e.spPr),x=r(l?.ln),u=r(e.marker),w=t||u!==void 0,c=V(l)??(w?V(x)??V(r(u?.spPr)):void 0);c!==void 0&&(o.color=c);const f=M(x,"w");if(w&&f!==void 0&&x?.noFill===void 0){const d=Number((f/12700).toFixed(2));d!==Q.lineWidth&&(o.line_width=d)}F(e,"smooth")===!0&&(o.smooth=!0);const m=A(u,"size");m!==void 0&&m!==Q.marker&&(o.marker_size=m);const v=t?j(r(e.xVal)):void 0;v!==void 0&&(o.x=v);const b=t?void 0:j(r(e.cat));return{series:o,...b===void 0?{}:{categories:b}}}function ve(e){const t=$(e,"barDir")==="bar"?"bar":"column",n=$(e,"grouping");return n==="stacked"?`${t}-stacked`:n==="percentStacked"?`${t}-stacked-100`:`${t}-clustered`}function ye(e){const t=$(e,"grouping");return t==="stacked"?"area-stacked":t==="percentStacked"?"area-stacked-100":"area"}export function readChart(e){const t=r(e?.chartSpace),n=r(t?.chart),o=r(n?.plotArea);if(!n||!o)return"it has no plot";const i=Object.entries(o).filter(([h])=>h.endsWith("Chart")),[a]=i;if(!a)return"it has no plot";if(i.length>1||Array.isArray(a[1])&&a[1].length>1)return"it combines several kinds of chart";const[l,x]=a,u=r(x);if(!u)return"it has no plot";const w=R(u.ser),c=l==="scatterChart",f=[];let m;for(const h of w){const P=be(h,c);if(typeof P=="string")return P;f.push(P.series),m??=P.categories}if(f.length===0)return"it has no series";const v=h=>r(r(h.spPr)?.ln)?.noFill!==void 0,b=h=>$(r(h.marker),"symbol")==="none",d=(()=>{switch(l){case"barChart":return ve(u);case"lineChart":return w.every(b)?"line":"line-markers";case"areaChart":return ye(u);case"pieChart":return"pie";case"doughnutChart":return"doughnut";case"scatterChart":return w.every(v)?"scatter":w.some(h=>F(h,"smooth")===!0)?"scatter-smooth":"scatter-lines";default:return}})();if(!d)return`a sheet has no ${l.replace(/Chart$/u,"")} chart`;const S=ne(r(n.title)),k=r(n.legend),C=$(k,"legendPos"),D=r(u.dLbls),p=h=>F(D,h)===!0,se=p("showVal")||p("showPercent")||p("showCatName")||p("showSerName"),H=$(D,"dLblPos"),z=A(u,"gapWidth"),W=A(u,"overlap"),E=A(u,"holeSize"),X=F(u,"varyColors"),B=d==="pie"||d==="doughnut",N={value:R(o.valAx).find((h,P,ie)=>c?P===ie.length-1:!0),category:c?R(o.valAx)[0]:r(o.catAx)??r(o.dateAx)},G=oe(N.value),T=oe(N.category);G&&N.value?.majorGridlines===void 0&&(G.gridlines=!1),T&&N.category?.majorGridlines!==void 0&&(T.gridlines=!0);const U=M(r(r(r(r(t?.txPr)?.p)?.pPr)?.defRPr),"sz"),q=h=>h&&Object.keys(h).length>0?h:void 0,J=q(G),K=q(T);return{type:d,at:"A1",...S===void 0?{}:{title:S},...m===void 0?{}:{categories:m},series:B?f.slice(0,1):f,...k?{legend:C==="b"?"bottom":C==="t"?"top":C==="l"?"left":"right"}:{},...se?{labels:{...p("showVal")?{value:!0}:{},...p("showPercent")?{percentage:!0}:{},...p("showCatName")?{category:!0}:{},...p("showSerName")?{series:!0}:{},...H===void 0?{}:{position:H}}}:{},...z===void 0||z===150?{}:{gap_width:z},...W===void 0||d.includes("stacked")?{}:{overlap:W},...E===void 0||E===50?{}:{hole_size:E},...X===!0&&l==="barChart"?{vary_by_categories:!0}:{},...X===!1&&B?{vary_by_categories:!1}:{},...J?{value_axis:J}:{},...K?{category_axis:K}:{},...U===void 0||U===900?{}:{size:U/100}}}const L=e=>Math.round(e/g);export function chartAnchors(e,t,n){const o=r(e?.wsDr),i=[],a=[];let l=0;const x=c=>({col:Number(O(c?.col)),row:Number(O(c?.row)),colOff:L(Number(O(c?.colOff))),rowOff:L(Number(O(c?.rowOff)))}),u=c=>y(r(r(r(r(c.graphicFrame)?.graphic)?.graphicData)?.chart),"id"),w=(c,f,m,v)=>{const b={at:{row:f.row,col:f.col},...f.colOff>0?{x:f.colOff}:{},...f.rowOff>0?{y:f.rowOff}:{},width:m,height:v},d=r(c.pic),S=y(r(r(d?.blipFill)?.blip),"embed");if(d&&S!==void 0){const C=r(r(d.nvPicPr)?.cNvPr),D=y(C,"name"),p=y(C,"descr");a.push({id:S,...b,...D===void 0?{}:{name:D},...p===void 0?{}:{descr:p}});return}const k=u(c);if(k===void 0){l+=1;return}i.push({id:k,...b})};for(const c of R(o?.oneCellAnchor)){const f=r(c.ext);w(c,x(r(c.from)),L(M(f,"cx")??0),L(M(f,"cy")??0))}for(const c of R(o?.twoCellAnchor)){const f=x(r(c.from)),m=x(r(c.to));let v=m.colOff-f.colOff;for(let d=f.col;d<m.col;d++)v+=t(d);let b=m.rowOff-f.rowOff;for(let d=f.row;d<m.row;d++)b+=n(d);w(c,f,v,b)}return{anchors:i,pictures:a,others:l}}
@@ -1,49 +0,0 @@
1
- import type { ZipLimits } from "@allyhub-next/formats";
2
- import type { SheetProblem } from "../file.js";
3
- import { type Scalar } from "../values.js";
4
- /** How far apart two numbers may be, as a share of the larger, and be the same. */
5
- export declare const COMPARE_TOLERANCE = 1e-9;
6
- export interface Difference {
7
- sheet: string;
8
- cell: string;
9
- formula: string;
10
- /** What the file cached. */
11
- file: string | number | boolean | null;
12
- engine: string | number | boolean | null;
13
- }
14
- export interface Compared {
15
- /** Formulas carried over. */
16
- formulas: number;
17
- same: number;
18
- /** Formulas the file holds no value for. */
19
- uncached: number;
20
- /** Formulas that read the clock or a random number, or what does: not compared. */
21
- moving: number;
22
- differences: Difference[];
23
- }
24
- export interface ImportedXlsx {
25
- /** Paths from the sheet's folder, sheet.yaml first, and their text. */
26
- files: Map<string, string>;
27
- /** Pictures, from the sheet's folder: what `pictures` and `files` columns name. */
28
- assets: Map<string, Uint8Array>;
29
- /** What was not carried over, a line each. */
30
- lost: string[];
31
- /** What is wrong with the workbook as it now is. */
32
- problems: SheetProblem[];
33
- compared: Compared;
34
- sheets: number;
35
- tables: number;
36
- }
37
- export interface ImportOptions {
38
- /** The workbook's title, when the file has none of its own. */
39
- name: string;
40
- /** See COMPARE_TOLERANCE. */
41
- tolerance?: number;
42
- /** What the file may unzip to; ZIP_LIMITS unless it says. */
43
- zip?: Partial<ZipLimits>;
44
- }
45
- /** Whether a value the engine gives is what a file cached. */
46
- export declare function sameValue(a: Scalar, b: Scalar, tolerance: number): boolean;
47
- /** The files of a sheet made of an Excel file's bytes, what could not be carried over and how the engine agrees with it. */
48
- export declare function importXlsx(bytes: Uint8Array, o: ImportOptions): ImportedXlsx;
49
- //# sourceMappingURL=import.d.ts.map
@@ -1,2 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{SHEET_DATA as re,SHEET_FILE as ie,SHEET_FILES as j,SHEET_NOTE_AUTHOR as le,SHEET_PICTURE_HEIGHT as P,SHEET_SEPARATOR as fe}from"@allyhub-next/formats";import{cellName as y,columnLetter as M,contains as T,overlaps as A,rangeName as v,readAddress as ae,readArea as W}from"../address.js";import{rectangles as O}from"../api/rectangles.js";import{chartAfter as ce}from"../chart.js";import{analyse as ue}from"../calc/analyse.js";import{FUNCTIONS as he}from"../calc/functions/index.js";import{checkWorkbook as de}from"../check.js";import{writeCsv as me}from"../csv.js";import{pictureSize as pe}from"../files.js";import{isDateCode as z}from"../format.js";import{moveFormula as we,relativeKey as B}from"../formula/move.js";import{printFormula as E,sheetPrefix as U}from"../formula/print.js";import{mapNode as ge,walk as H}from"../formula/walk.js";import{CellError as N,isoOfSerial as ke,readTyped as F,writeTyped as I}from"../values.js";import{FormulaCell as be,validName as V}from"../workbook.js";import{writeYaml as ye}from"../write.js";import{readFileFormula as $e}from"./formula.js";import{hasDate as q}from"./numfmt.js";import{placesLine as D,readXlsx as xe}from"./read.js";import{LISTS_SHEET as Le}from"./write.js";const J=100,ve=.5,K=1462,Z=64,X=1e4;export const COMPARE_TOLERANCE=1e-9;const Y=a=>a.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/gu,"")||"rows",k=a=>{for(const e in a)if(Object.hasOwn(a,e))return!1;return!0},G=(a,e)=>`${String(a)} ${e}${a===1?"":"s"}`,S=a=>({row:a.row,col:a.col});function Q(a){return a===""||a.length>255||/^[/\\]|^[A-Za-z]:|\\|\0/u.test(a)?!1:a.split("/").every(e=>e!==""&&e!=="."&&e!=="..")}class Ee{cells;starts;first;constructor(e){let o=!0;for(let t=1;t<e.length&&o;t++){const n=e[t-1],r=e[t];n&&r&&(r.row<n.row||r.row===n.row&&r.col<=n.col)&&(o=!1)}if(!o){e.sort((t,n)=>t.row-n.row||t.col-n.col);for(let t=e.length-1;t>0;t--){const n=e[t-1],r=e[t];r&&n?.row===r.row&&n.col===r.col&&e.splice(t-1,1)}}this.cells=e;const s=e[0]?.row??0,l=e[e.length-1]?.row??-1;this.first=s,this.starts=new Int32Array(Math.max(0,l-s+2));let i=0;for(let t=0;t<this.starts.length;t++){for(;i<e.length&&(e[i]?.row??0)<s+t;)i++;this.starts[t]=i}}get(e,o){const s=e-this.first;if(s<0||s>=this.starts.length-1)return;let l=this.starts[s]??0,i=(this.starts[s+1]??0)-1;for(;l<=i;){const t=l+i>>1,n=this.cells[t];if(!n)return;if(n.col===o)return n;n.col<o?l=t+1:i=t-1}}}class ee{list=[];add(e){this.list.push(e)}has(e,o){for(const s of this.list)if(T(s,e,o))return!0;return!1}}function te(a,e){const o=e.toLowerCase();return ge(a,s=>s.kind!=="structured"||s.table?.toLowerCase()!==o?s:Object.fromEntries(Object.entries(s).filter(([l])=>l!=="table")))}function oe(a){return a.headers===0?"has no header row":a.columns.length!==a.ref.right-a.ref.left+1||!V(a.name)?"cannot be held as a table":new Set(a.columns.map(e=>e.name.toLowerCase())).size===a.columns.length?void 0:"has two columns of one name"}function ne(a,e,o){let s;const l=new Set;H(a,t=>{t.kind==="call"&&(t.name==="LET"||t.name==="LAMBDA")&&t.args.forEach(n=>{n.kind==="name"&&l.add(n.name.toLowerCase())})});const i=t=>l.has(t)||o===void 0||o.names.has(t)||o.tables.has(t);return H(a,t=>{s===void 0&&(t.kind==="call"&&!he.has(t.name)&&(i(t.written.toLowerCase())||(s=`no function ${t.name}`)),t.kind==="name"&&!i(t.name.toLowerCase())&&(s=`no name ${t.name}`),t.kind==="structured"&&t.table!==void 0&&!i(t.table.toLowerCase())&&(s=`no table ${t.table}`),(t.kind==="ref"||t.kind==="name"||t.kind==="error")&&t.sheet!==void 0&&(t.sheet.startsWith("[")?s="it reads another workbook":e.has(t.sheet.toLowerCase())||(s=`no sheet ${t.sheet}`)))}),s}function Se(a){const e=new Set(a.book.sheets.map(o=>o.name.toLowerCase()));for(const o of a.book.sheets){const s=new Map,l=(t,n)=>{const r=s.get(n),f=y(t);r?r.push(f):s.set(n,[f])},i=[];for(const t of o.cells){if(t.unread!==void 0){l(t,/^\[|[!']\[|\[\d+\]/u.test(t.unread)?"it reads another workbook":`it could not be read: ${t.unread}`);continue}if(!t.node)continue;const n=ne(t.node,e,a);n!==void 0?(delete t.node,l(t,n)):(a.carried.set(t,o),t.array&&v(t.array)!==y(t)&&i.push(t))}Ce(a,o,i);for(const[t,n]of s)a.lost.push(`${o.name}: ${G(n.length,"formula")} kept as ${n.length===1?"its value":"their values"}, as ${t} (${D(n)})`)}}function Ce(a,e,o){if(o.length===0)return;const s=new Set;for(const l of o){const{array:i}=l;if(i)for(const t of e.cells)t!==l&&!t.node&&T(i,t.row,t.col)&&s.add(t)}e.cells=e.cells.filter(l=>!s.has(l));for(const l of s)a.spilled.set(l,e)}function C(a,e){const{value:o}=e;if(!a.book.date1904||typeof o!="number")return o;const s=a.book.looks[e.style]?.format;return z(s)&&s!==void 0&&q(s)?o+K:o}function R(a,e){if(typeof a!="number"||e===void 0||!z(e)||!q(e)||a<1)return;const o=ke(a);return F(o).value===a?o:void 0}const Me=(a,e)=>R(a,e)??I(a??null);function Oe(a,e){const o=R(a,e);return o!==void 0?o:a==null?null:typeof a=="number"||typeof a=="boolean"?a:I(a)}function _e(a){const e=[];for(let n=0;n<a.length;n++){const r=a[n];if(!r)continue;const f=e[e.length-1];f?.row===r.row&&f.right===r.col-1?(f.right=r.col,f.last=n):e.push({row:r.row,left:r.col,right:r.col,first:n,last:n})}const o=e.map((n,r)=>r),s=n=>{let r=n;for(;o[r]!==r;){const f=o[o[r]??r]??r;o[r]=f,r=f}return r};let l=0,i=0;for(let n=0;n<e.length;n++){const r=e[n];if(r){n>0&&e[n-1]?.row!==r.row&&(l=e[n-1]?.row===r.row-1?i:n,i=n);for(let f=l;f<i;f++){const c=e[f];c?.row===r.row-1&&c.right>=r.left&&c.left<=r.right&&(o[s(n)]=s(f))}}}const t=new Map;return e.forEach((n,r)=>{const f=s(r),c=t.get(f),u=n.right-n.left+1;c?(c.box.top=Math.min(c.box.top,n.row),c.box.bottom=Math.max(c.box.bottom,n.row),c.box.left=Math.min(c.box.left,n.left),c.box.right=Math.max(c.box.right,n.right),c.count+=u,c.runs.push(r)):t.set(f,{box:{top:n.row,bottom:n.row,left:n.left,right:n.right},count:u,runs:[r]})}),[...t.values()].map(n=>({box:n.box,count:n.count,cells:()=>n.runs.flatMap(r=>{const f=e[r];return f?a.slice(f.first,f.last+1):[]})}))}const se=a=>JSON.stringify(a);class Te{ctx;read;cells;inTables=new ee;columnLooks=new Map;rowLooks=new Map;lookDone=new ee;tables=[];areas=[];filtered=[];ownLooks=new Map;fileColumns=new Map;pictured=new Map;over=[];constructor(e,o){this.ctx=e,this.read=o,this.cells=new Ee(o.cells)}at(e,o){return this.cells.get(e,o)}look(e){return this.ctx.book.looks[e.style]??{}}code(e){return this.look(e).format}text(e){return e.node?E(e.node):Me(C(this.ctx,e),this.code(e))}baseLooks(){const{read:e}=this,{looks:o}=this.ctx.book;let s=-1;for(const i of e.cells)i.col>s&&(s=i.col);for(const i of e.columns){if(i.style===void 0)continue;const t=o[i.style];if(!(!t||k(t)))for(let n=i.min;n<=Math.min(i.max,s);n++)this.columnLooks.set(n,t)}for(const i of e.rows){const t=i.style===void 0?void 0:o[i.style];t&&!k(t)&&this.rowLooks.set(i.row,t)}const l=(i,t)=>{for(const n in t)if(!(n in i))return!1;return!0};for(const i of e.cells){const t=this.look(i),n=this.columnLooks.get(i.col);n&&!l(t,n)&&this.columnLooks.delete(i.col);const r=this.rowLooks.get(i.row);r&&!l(t,r)&&this.rowLooks.delete(i.row)}}ownLook(e){const o=this.columnLooks.get(e.col),s=this.rowLooks.get(e.row),l=this.look(e),i=l.format!==void 0&&z(l.format);if(!o&&!s&&!i){let f=this.ownLooks.get(e.style);return f||(f={look:l,key:se(l)},this.ownLooks.set(e.style,f)),f}const t={...o,...s},n={};for(const[f,c]of Object.entries(l))JSON.stringify(c)!==JSON.stringify(t[f])&&(n[f]=c);const r=n.format;if(typeof r=="string"){const f=e.node?void 0:R(C(this.ctx,e),r);f!==void 0&&F(f).format===r&&delete n.format}return{look:n,key:se(n)}}columnFormula(e,o,s){const l=new Map,i=s-o+1;for(let n=o;n<=s;n++){const r=this.at(n,e);if(!r||r.value===void 0&&!r.node||r.value===null&&!r.node)return;if(!r.node)continue;r.key??=B(r.node,r.row,r.col);const f=l.get(r.key);f?f.n+=1:l.set(r.key,{n:1,cell:r})}let t;for(const n of l.values())(!t||n.n>t.n)&&(t=n);return t&&t.n*2>i?t.cell:void 0}csv(e,o){const s=[];for(let l=0;l<e;l+=X){const i=[];for(let t=l;t<Math.min(e,l+X);t++)i.push(o(t));s.push(me(i))}return s.join("")}table(e){const{read:o,ctx:s}=this,l=p=>s.lost.push(`${o.name}: table ${e.name} ${p}`),i=e.ref.right-e.ref.left+1,t=oe(e);if(t!==void 0)return l(`${t}, so its cells are kept and it is no table`),!1;const n=e.ref.top,r=n+1,f=e.ref.bottom-e.totals;e.totals>0&&l("has a totals row, kept as plain cells under it");const c=e.columns.map((p,d)=>f>=r?this.columnFormula(e.ref.left+d,r,f):void 0),u=p=>{const d=c[p];if(!d)return!1;for(let g=r;g<=f;g++)if(this.at(g,e.ref.left+p)?.key!==d.key)return!1;return!0};let h=i;for(;h>1&&u(h-1);)h-=1;const w={},m=this.path(e.name);s.files.set(m,this.csv(f-r+2,p=>{if(p===0)return e.columns.slice(0,h).map(b=>b.name);const d=r+p-1,g=[];for(let b=0;b<h;b++){const x=this.at(d,e.ref.left+b),L=c[b];x?L&&x.key===L.key?g.push(""):x.node?g.push(E(te(x.node,e.name))):g.push(this.text(x)):g.push("")}return g})),this.inTables.add({...e.ref,bottom:f}),e.columns.forEach((p,d)=>{const g=e.ref.left+d,b=this.columnLook(g,r,f),x=c[d];x?.node&&(b.formula=E(te(we(x.node,r-x.row,0),e.name)));const L=this.fileColumns.get(g);L!==void 0&&r<=f&&(b.files=L===P?!0:{height:L}),k(b)||(w[p.name]=b)});const $=new Map;for(const[p,d]of e.filter?.columns??[]){const g=e.columns[p]?.name;g!==void 0&&$.set(g,d)}return(e.filter?.unread??0)>0&&l(`has ${G(e.filter?.unread??0,"filter")} by condition, its rows left as they were hidden`),this.tables.push({name:e.name,at:y({row:n,col:e.ref.left}),rows:m,...e.style!==void 0&&e.style!=="TableStyleMedium2"?{style:e.style}:{},...k(w)?{}:{columns:w},...e.filter===void 0?{filter:!1}:$.size>0?{filter:{columns:Object.fromEntries($)}}:{}}),e.filter?.unread===0&&e.filter.columns.size>0&&this.filtered.push({...e.ref,bottom:f}),this.areas.push({...e.ref,bottom:f}),!0}columnLook(e,o,s){let l,i={};for(let t=o;t<=s;t++){const n=this.at(t,e),r=n?this.ownLook(n):{look:{},key:"{}"};if(l===void 0)l=r.key,i=r.look;else if(l!==r.key)return{}}return k(i)?{}:(this.lookDone.add({top:o,bottom:s,left:e,right:e}),{...i})}path(e){const o=`${re}/${Y(e)}`;let s=`${o}.csv`;for(let l=2;this.ctx.files.has(s);l++)s=`${o}-${String(l)}.csv`;return s}loose(){const e=[],o=[];for(const s of this.read.cells)this.inTables.has(s.row,s.col)||(s.node?e.push(s):s.value!==void 0&&s.value!==null&&o.push(s));return{formulas:e,typed:o}}blockAreas(e,o){const s=[],l=O(o.map(S)),i=n=>!s.some(r=>A(r,n))&&!this.areas.some(r=>A(r,n))&&!l.some(r=>A(r,n)),t=n=>(n.bottom-n.top+1)*(n.right-n.left+1);for(const n of _e(e)){const{box:r}=n;if(!(t(r)<J)){if(n.count/t(r)>=ve&&i(r)){s.push(r);continue}for(const f of O(n.cells().map(S)))t(f)>=J&&i(f)&&s.push(f)}}return s.sort((n,r)=>n.top-r.top||n.left-r.left)}cells_(e){const{formulas:o,typed:s}=this.loose(),l=this.blockAreas(s,o),i=r=>l.some(f=>T(f,r.row,r.col));l.length>0&&(e.blocks=l.map(r=>{const f=this.path(this.read.name);return this.ctx.files.set(f,this.csv(r.bottom-r.top+1,c=>{const u=[];for(let h=r.left;h<=r.right;h++){const w=this.at(r.top+c,h);u.push(w?this.text(w):"")}return u})),{at:y({row:r.top,col:r.left}),rows:f}}));const t=[],n=new Map;for(const r of o){if(!r.node)continue;r.key??=B(r.node,r.row,r.col);const f=n.get(r.key);f?f.push(r):n.set(r.key,[r])}for(const r of n.values())for(const f of O(r.map(S))){const c=this.at(f.top,f.left);c?.node&&t.push([{row:f.top,col:f.left},v(f),E(c.node)])}for(const r of s)l.length>0&&i(r)||t.push([S(r),y(r),Oe(C(this.ctx,r),this.code(r))]);t.sort(([r],[f])=>r.row-f.row||r.col-f.col),t.length>0&&(e.cells=Object.fromEntries(t.map(([,r,f])=>[r,f])))}formats(e){const o=new Map,s=this.lookDone.list.length>0;for(const i of this.read.cells){if(s&&this.lookDone.has(i.row,i.col))continue;const t=this.ownLook(i);if(k(t.look))continue;const n=o.get(t.key);n?n.places.push(S(i)):o.set(t.key,{look:t.look,places:[S(i)]})}const l=[];for(const{look:i,places:t}of o.values())for(const n of O(t))l.push({range:v(n),...i});l.length>0&&(e.format=l)}columns(e){const{read:o}=this,s=new Map;let l=0;for(const t of o.cells)t.col>l&&(l=t.col);const i=[];for(const t of o.columns){if(t.width===void 0&&t.hidden!==!0&&t.level===void 0)continue;const n=t.max-Math.max(t.min,l+1)+1>Z?Math.max(l,t.min+Z-1):t.max;n<t.max&&i.push(`${M(n+1)}:${M(t.max)}`);for(let r=t.min;r<=n;r++)s.set(r,{...t.width===void 0?{}:{width:t.width},...t.hidden===!0?{hidden:!0}:{},...t.level===void 0?{}:{level:t.level}})}for(const[t,n]of this.columnLooks)s.set(t,{...s.get(t),...n});for(const[t,n]of this.fileColumns)this.tableColumn(t)||s.set(t,{...s.get(t),files:n===P?!0:{height:n}});s.size>0&&(e.columns=Object.fromEntries([...s.keys()].sort((t,n)=>t-n).map(t=>[M(t),s.get(t)??{}]))),i.length>0&&this.ctx.lost.push(`${o.name}: the size of columns ${D(i)}, past those that hold anything`)}tableColumn(e){return this.areas.some(o=>e>=o.left&&e<=o.right)}rows(e){const o={};for(const s of this.read.rows){const l=this.rowLooks.get(s.row),i=this.filtered.some(r=>s.row>r.top&&s.row<=r.bottom),t=s.height!==void 0&&this.pictured.get(s.row)!==s.height?s.height:void 0,n={...t===void 0?{}:{height:t},...s.hidden===!0&&!i?{hidden:!0}:{},...s.level===void 0?{}:{level:s.level},...l};k(n)||(o[String(s.row+1)]=n)}k(o)||(e.rows=o)}assetPath(e,o){const s=t=>{const n=this.ctx.assets.get(t);return!n||Ae(n,o.bytes)};if(e!==void 0&&Q(e)&&s(e))return e;const l=Y((o.name??"picture").replace(/\.[A-Za-z0-9]+$/u,""));let i=`${j}/${l}.${o.type}`;for(let t=2;!s(i);t++)i=`${j}/${l}-${String(t)}.${o.type}`;return i}pictures(){const e=this.over;for(const o of this.read.pictures){const s=this.at(o.row,o.col),l=typeof s?.value=="string"?s.value:"";if(o.y===void 0&&o.descr!==void 0&&Q(o.descr)&&l.split(fe).includes(o.descr)&&o.descr!==void 0){this.ctx.assets.set(o.descr,o.bytes),this.fileColumns.set(o.col,Math.max(this.fileColumns.get(o.col)??0,o.height)),this.pictured.set(o.row,Math.max(this.pictured.get(o.row)??0,o.height));continue}const t=this.assetPath(o.descr,o);this.ctx.assets.set(t,o.bytes);const n=pe(o.bytes),r=n?.width===o.width&&n.height===o.height;e.push({file:t,at:y({row:o.row,col:o.col}),...o.x===void 0?{}:{x:o.x},...o.y===void 0?{}:{y:o.y},...r?{}:{width:o.width,height:o.height}})}}build(){const{read:e}=this;this.baseLooks(),this.pictures();for(const s of e.tables)this.table(s);const o={name:e.name};return e.state!=="visible"&&(o.hidden=!0),e.gridlines===!1&&(o.gridlines=!1),e.tab!==void 0&&(o.tab=e.tab),e.state==="veryHidden"&&this.ctx.lost.push(`${e.name}: being very hidden; it is hidden`),e.freeze&&(e.freeze.row>0||e.freeze.col>0)&&(o.freeze=y(e.freeze)),this.tables.length>0&&(o.tables=this.tables),this.filter(o),this.columns(o),this.rows(o),this.cells_(o),e.merges.length>0&&(o.merges=e.merges.map(v)),this.formats(o),e.conditional.length>0&&(o.conditional=e.conditional),e.validations.length>0&&(o.validations=e.validations),e.charts.length>0&&(o.charts=e.charts.map(s=>this.chart(s))),this.over.length>0&&(o.pictures=this.over),k(e.links)||(o.links=e.links),e.notes.length>0&&(o.notes=Object.fromEntries(e.notes.map(s=>[s.ref,s.author===void 0||s.author===le?s.text:{text:s.text,author:s.author}]))),e.print&&(o.print=e.print),e.protect===!0&&(o.protect=!0),o}chart(e){return ce(e,o=>{const s=this.chartReference(o.replace(/^=/u,""));return o.startsWith("=")?`=${s}`:s})}chartReference(e){const o=e.lastIndexOf("!"),l=(o<0?this.read.name:e.slice(0,o)).replace(/^'|'$/gu,"").replaceAll("''","'"),i=W(e.slice(o+1).replaceAll("$",""));if(!i)return e;const t=this.ctx.book.sheets.find(n=>n.name.toLowerCase()===l.toLowerCase());for(const n of t?.tables??[]){const r=n.ref.top+1,c=i.left===i.right&&i.top===r&&i.bottom===n.ref.bottom&&i.left>=n.ref.left&&i.left<=n.ref.right?n.columns[i.left-n.ref.left]:void 0;if(c&&this.ctx.tables.has(n.name.toLowerCase()))return`${n.name}[${c.name}]`}return`${t===this.read||o<0?"":`${e.slice(0,o)}!`}${v(i)}`}filter(e){const{filter:o}=this.read;if(!o)return;const s={};for(const[l,i]of o.columns)s[M(o.ref.left+l)]=i;e.filter={range:v(o.ref),...k(s)?{}:{columns:s}},o.unread===0&&!k(s)&&this.filtered.push(o.ref)}}const Ae=(a,e)=>a.length===e.length&&a.every((o,s)=>o===e[s]),ze=new Set(["_xlnm._FilterDatabase","_xlnm.Print_Area","_xlnm.Print_Titles"]);function He(a){const e={},o=[],s=new Map,{book:l,lost:i}=a,t=new Set(l.sheets.map(f=>f.name.toLowerCase())),n=new Set,r=f=>{const c=Ie(f.text);if(c!==void 0)return typeof c=="string"?I(c):c;const u=$e(f.text,!0),h=u.ok?ne(u.node,t):"it could not be read";if(!u.ok||h!==void 0||Fe(u.node)){i.push(`the name ${f.name} (${f.text})${h===void 0?"":`: ${h}`}`);return}return E(u.node)};for(const f of l.names){if(f.name.startsWith("_xlnm.")){ze.has(f.name)||i.push(`Excel's name ${f.name}`);continue}if(/^_xl(?:fn|pm|ws|udf)/iu.test(f.name))continue;const c=f.name.toLowerCase(),u=f.sheet===void 0?"":String(f.sheet);if(!V(f.name)||a.tables.has(c)){i.push(`the name ${f.name}, which cannot be held here`);continue}if(n.has(`${u}|${c}`)){i.push(`a second name ${f.name}${u===""?"":` of ${l.sheets[f.sheet??0]?.name??""}`}`);continue}const h=r(f);if(h!==void 0)if(n.add(`${u}|${c}`),a.names.add(c),f.sheet===void 0)e[f.name]=h,f.hidden===!0&&o.push(f.name);else{const w=s.get(f.sheet)??{names:{},hidden:[]};w.names[f.name]=h,f.hidden===!0&&w.hidden.push(f.name),s.set(f.sheet,w)}}return{names:e,hidden:o,sheets:s}}function Ne(a,e){const o={},s=new Map;for(const[l,i]of Object.entries(e))typeof i=="string"&&i.startsWith("=")&&s.set(i.slice(1).replaceAll("$","").toLowerCase(),l);for(const l of a.book.sheets)for(const i of l.scenarios){const t={};let n=!0;for(const{at:r,value:f}of i.cells){const c=ae(r),u=c&&l.cells.find(m=>m.row===c.row&&m.col===c.col);String(u?.value??"")!==f&&(n=!1);const h=s.get(`${U(l.name)}${r}`.toLowerCase())??s.get(r.toLowerCase()),w=F(f);h===void 0?a.lost.push(`${l.name}: scenario ${i.name}'s cell ${r}, which has no name`):t[h]=typeof w.value=="number"?w.value:f}!n&&!k(t)&&(o[i.name]={...o[i.name],...t})}return o}function Fe(a){let e=!1;return H(a,o=>{e||=o.kind==="error"&&o.code==="#REF!"}),e}function Ie(a){const e=a.trim();return/^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?$/u.test(e)?Number(e):/^true$/iu.test(e)?!0:/^false$/iu.test(e)?!1:/^"((?:[^"]|"")*)"$/u.exec(e)?.[1]?.replaceAll('""','"')}const De=new RegExp(`^${Le.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&")}(?: \\(\\d+\\))?$`,"u");function Re(a){const e=a.sheets.find(i=>i.state==="veryHidden"&&De.test(i.name));if(!e)return;const o=U(e.name).toLowerCase(),s=i=>{const t=i.replace(/^=/u,"");if(!t.toLowerCase().startsWith(o))return;const n=W(t.slice(o.length).replaceAll("$",""));if(!n||n.left!==n.right)return;const r=[];for(let f=n.top;f<=n.bottom;f++){const c=e.cells.find(u=>u.row===f&&u.col===n.left);r.push(typeof c?.value=="string"?c.value:"")}return r};for(const i of a.sheets)i.validations=i.validations.map(t=>{const[n]=t.formula??[],r=t.type==="list"&&typeof n=="string"?s(n):void 0;if(!r)return t;const f={...t,values:r};return delete f.formula,f});const l=a.sheets.indexOf(e);a.sheets=a.sheets.filter(i=>i!==e),a.names=a.names.flatMap(i=>i.sheet===void 0||i.sheet<l?[i]:i.sheet===l?[]:[{...i,sheet:i.sheet-1}])}const _=a=>a instanceof N?a.code:a??null;export function sameValue(a,e,o){if(typeof a=="number"&&typeof e=="number")return a===e?!0:Math.abs(a-e)<=Math.max(Math.abs(a),Math.abs(e))*o;if(a instanceof N||e instanceof N)return a?.code===e?.code;if(a===null||e===null){const s=a??e;return s===null||s===""||s===0||s===!1}return a===e}function je(a,e){const o=[];for(const i of e.sheets)for(const t of i.formulas)t.shared.node&&ue(e,t.shared,i).volatile&&o.push(t);const s=new Set(o),l=[...o];for(;;){const i=l.pop();if(!i)return s;for(const t of a.readers(i.sheet,i.row,i.col))s.has(t)||(s.add(t),l.push(t))}}function Pe(a,e,o,s){const l={formulas:0,same:0,uncached:0,moving:0,differences:[]},i=je(o,e);for(const[t,n]of a.carried){if(!t.node)continue;const r=e.sheet(n.name);if(!r)continue;l.formulas+=1;const f=r.at(t.row,t.col);if(f instanceof be&&i.has(f)){l.moving+=1;continue}const c=C(a,t);if(c===void 0){l.uncached+=1;continue}const u=o.value(r,t.row,t.col);sameValue(c,u,s)?l.same+=1:l.differences.push({sheet:n.name,cell:y(t),formula:E(t.node),file:_(c),engine:_(u)})}for(const[t,n]of a.spilled){const r=e.sheet(n.name);if(!r)continue;l.formulas+=1;const f=r.spillAt(t.row,t.col);if(f&&i.has(f)){l.moving+=1;continue}const c=C(a,t),u=o.value(r,t.row,t.col);c===void 0?l.uncached+=1:sameValue(c,u,s)?l.same+=1:l.differences.push({sheet:n.name,cell:y(t),formula:f?`${y(f)}#`:"",file:_(c),engine:_(u)})}return l}function We(a,e){const o=new Map,s=[];for(const l of a){const i=e.find(r=>l.startsWith(`${r}: `));if(i===void 0){s.push(l);continue}const t=l.slice(i.length+2),n=o.get(t);n?n.push(i):o.set(t,[i])}for(const[l,i]of o)s.push(i.length===1?`${i[0]??""}: ${l}`:`${l}, on ${String(i.length)} sheets (${D(i)})`);return s}export function importXlsx(a,e){const o=xe(a,e.zip);if(Re(o),o.sheets.length===0)throw new Error("It holds no sheets.");const s={book:o,files:new Map,assets:new Map,lost:[...o.lost],tables:new Set(o.sheets.flatMap(m=>m.tables.filter($=>oe($)===void 0).map($=>$.name.toLowerCase()))),names:new Set,carried:new Map,spilled:new Map};o.date1904&&s.lost.push(`the 1904 date system: dates are moved to the 1900 one, ${String(K)} days on`),(o.font.name!==void 0&&o.font.name!=="Calibri"||o.font.size!==void 0&&o.font.size!==11)&&s.lost.push(`its default font, ${o.font.name??""} ${String(o.font.size??"")}`);const l=He(s);Se(s);const i=o.sheets.map((m,$)=>{const p=new Te(s,m).build(),d=l.sheets.get($);return d&&!k(d.names)&&(p.names=d.names),d&&d.hidden.length>0&&(p.hidden_names=d.hidden),p}),t=Ne(s,l.names),n={title:o.title??e.name,...k(l.names)?{}:{names:l.names},...l.hidden.length>0?{hidden_names:l.hidden}:{},sheets:i,...k(t)?{}:{scenarios:t}},r=ye(n),f=new Map([[ie,r],...s.files]),c=de({text:r,read:m=>f.get(m),exists:m=>f.has(m)||s.assets.has(m)}),{workbook:u,calc:h,problems:w}=c;return{files:f,assets:s.assets,lost:We(s.lost,o.sheets.map(m=>m.name)),problems:w,compared:u&&h?Pe(s,u,h,e.tolerance??COMPARE_TOLERANCE):{formulas:0,same:0,uncached:0,moving:0,differences:[]},sheets:o.sheets.length,tables:s.tables.size}}
@@ -1,159 +0,0 @@
1
- import { type ZipLimits } from "@allyhub-next/formats";
2
- import type { SheetConditional, SheetFilterColumn, SheetHeaderFooter, SheetPrint, SheetValidation } from "@allyhub-next/formats";
3
- import { type Area, type Place } from "../address.js";
4
- import type { Node } from "../formula/ast.js";
5
- import { type Scalar } from "../values.js";
6
- import type { CellLook } from "../workbook.js";
7
- import { type ReadChart } from "./charts.js";
8
- export interface ReadCell {
9
- row: number;
10
- col: number;
11
- /** What it holds, or what its formula last gave; undefined when a file did not say. */
12
- value: Scalar | undefined;
13
- /** Its formula, in a person's spelling. */
14
- node?: Node;
15
- /** The same for every cell of one fill. */
16
- key?: string;
17
- /** A formula as the file has it, which this language cannot read. */
18
- unread?: string;
19
- /** Its array formula's cells, when it is one. */
20
- array?: Area;
21
- /** It spills as a dynamic array, not a formula entered over a range. */
22
- dynamic?: boolean;
23
- /** Into `looks`. */
24
- style: number;
25
- rich?: boolean;
26
- }
27
- export interface ReadColumn {
28
- /** Ends included, from 0. */
29
- min: number;
30
- max: number;
31
- /** In pixels, when the file sets it. */
32
- width?: number;
33
- hidden?: boolean;
34
- style?: number;
35
- /** Its outline level. */
36
- level?: number;
37
- }
38
- export interface ReadRow {
39
- row: number;
40
- /** In pixels, when the file sets it. */
41
- height?: number;
42
- hidden?: boolean;
43
- style?: number;
44
- /** Its outline level. */
45
- level?: number;
46
- }
47
- /** A filter's columns by their place in it, and those that say what this cannot read. */
48
- export interface ReadFilter {
49
- columns: Map<number, SheetFilterColumn>;
50
- unread: number;
51
- }
52
- export interface ReadTable {
53
- name: string;
54
- /** Its header, rows and totals. */
55
- ref: Area;
56
- headers: number;
57
- totals: number;
58
- columns: {
59
- name: string;
60
- calculated: boolean;
61
- }[];
62
- style?: string;
63
- /** Its filter buttons; nothing when it has none. */
64
- filter?: ReadFilter;
65
- }
66
- /** A Note on a cell. */
67
- export interface ReadNote {
68
- ref: string;
69
- text: string;
70
- author?: string;
71
- }
72
- /** A picture of a sheet's drawing, with its image. */
73
- export interface ReadPicture {
74
- row: number;
75
- col: number;
76
- x?: number;
77
- y?: number;
78
- width: number;
79
- height: number;
80
- name?: string;
81
- /** Its description: the file it was, when AllyHub wrote it. */
82
- descr?: string;
83
- /** Its image, and the extension its part has. */
84
- bytes: Uint8Array;
85
- type: string;
86
- }
87
- export interface ReadSheet {
88
- name: string;
89
- state: "visible" | "hidden" | "veryHidden";
90
- cells: ReadCell[];
91
- merges: Area[];
92
- freeze?: Place;
93
- gridlines?: false;
94
- tab?: string;
95
- columns: ReadColumn[];
96
- rows: ReadRow[];
97
- tables: ReadTable[];
98
- /** Conditional formats, the strongest first. */
99
- conditional: SheetConditional[];
100
- validations: SheetValidation[];
101
- /** Its AutoFilter. */
102
- filter?: ReadFilter & {
103
- ref: Area;
104
- };
105
- /** Its charts as sheet.yaml writes them, their references as the file spells them. */
106
- charts: ReadChart[];
107
- /** Excel's scenarios: each sets cells of this sheet. */
108
- scenarios: {
109
- name: string;
110
- cells: {
111
- at: string;
112
- value: string;
113
- }[];
114
- }[];
115
- /** By address (a range for a link over several cells): an address on the web, or `#Sheet!A1`. */
116
- links: Record<string, string>;
117
- notes: ReadNote[];
118
- pictures: ReadPicture[];
119
- /** Protect Sheet is on. */
120
- protect?: boolean;
121
- /** Page Layout. */
122
- print?: SheetPrint;
123
- }
124
- export interface ReadName {
125
- name: string;
126
- /** As the file has it. */
127
- text: string;
128
- /** The sheet it belongs to, by its place; absent: the workbook. */
129
- sheet?: number;
130
- /** Excel's Name Manager does not list it. */
131
- hidden?: boolean;
132
- }
133
- export interface ReadBook {
134
- sheets: ReadSheet[];
135
- names: ReadName[];
136
- /** Each cell format's look; a look says only what differs from the file's default font. */
137
- looks: CellLook[];
138
- /** What each differential format gives a cell. */
139
- dxfs: CellLook[];
140
- date1904: boolean;
141
- /** The file's default font. */
142
- font: {
143
- name?: string;
144
- size?: number;
145
- };
146
- /** Its title, from its document properties. */
147
- title?: string;
148
- /** What this model holds nothing of, a line each. */
149
- lost: string[];
150
- }
151
- /** Places as a line: the first few and how many more. */
152
- export declare function placesLine(places: readonly string[]): string;
153
- /** Where Excel's grid ends, as an error says it. */
154
- export declare const GRID_END: string;
155
- /** Excel's header or footer codes as its three parts: &L, &C, &R; what comes before any is the centre's. */
156
- export declare function readHeaderFooter(text: string): SheetHeaderFooter;
157
- /** What a .xlsx, .xlsm or .xltx file holds. */
158
- export declare function readXlsx(bytes: Uint8Array, zip?: Partial<ZipLimits>): ReadBook;
159
- //# sourceMappingURL=read.d.ts.map
@@ -1,3 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{ZipLimitError as ve}from"@allyhub-next/formats";import{SHEET_ICONS as Se,SHEET_MARGINS as de,SHEET_OPERATORS as Ce,SHEET_PAPERS as Ee,SHEET_VALIDATIONS as Ne}from"@allyhub-next/formats";import{MAX_COLUMNS as q,MAX_ROWS as K,cellName as Y,columnLetter as Ae,readAddress as Oe,readArea as G,readAreas as ee}from"../address.js";import{SHEET_CHART_DEFAULTS as ce}from"../chart.js";import{moveFormula as Te,relativeKey as Ie}from"../formula/move.js";import{printFormula as fe}from"../formula/print.js";import{ERR as Le,errorOf as Re,serialOfDate as Me}from"../values.js";import{OFFICE_THEME as Fe,colorOf as F,paletteOf as le,themeColors as De}from"./colors.js";import{chartAnchors as je,readChart as Pe}from"./charts.js";import{isRangeText as ze,readFileFormula as te}from"./formula.js";import{BUILTIN_FORMATS as _e}from"./numfmt.js";import{XmlStream as ue}from"./sax.js";import{attr as u,flag as v,numberAttr as k,readXml as he,readXstring as A,tag as d,tags as x,textOf as E}from"./xml.js";import{ZipIn as He}from"./zip.js";const pe=7,Ve=r=>Math.floor((256*r+Math.floor(128/pe))/256*pe),Ue=r=>Math.round(r*4/3),ne=5;export function placesLine(r){const e=r.slice(0,ne).join(", ");return r.length>ne?`${e} and ${String(r.length-ne)} more`:e}const H=(r,e,t=`${e}s`)=>`${String(r)} ${r===1?e:t}`;export const GRID_END=`Excel's grid ends at ${Ae(q-1)}${String(K)} (${K.toLocaleString("en-US")} rows, ${q.toLocaleString("en-US")} columns)`;function We(r,e){let t=0,n=0;const o=r.length;for(;t<o;t++){const i=r.charCodeAt(t),c=i>=65&&i<=90,a=i>=97&&i<=122;if(!c&&!a)break;n=n*26+(c?i-64:i-96)}if(t===0||t===o)return;let s=0;for(let i=t;i<o;i++){const c=r.charCodeAt(i);if(c<48||c>57)return;s=s*10+c-48}if(s!==0){if(t>3||n>q||s>K)throw new Error(`${e} has a cell at ${r}, and ${GRID_END}.`);return{row:s-1,col:n-1}}}class Be{zip;constructor(e,t){this.zip=new He(e,t)}get names(){return this.zip.names}has(e){return this.zip.has(e)}text(e){return this.zip.text(e)}bytes(e){return this.zip.bytesOf(e)}xml(e){const t=this.text(e);return t===void 0?void 0:he(t)}stream(e,t){const n=this.zip.streamText(e,o=>{t.push(o)});return n&&t.end(),n}rels(e){const t=e.lastIndexOf("/"),n=`${e.slice(0,t+1)}_rels/${e.slice(t+1)}.rels`,o=this.xml(n);return x(d(o?.Relationships)?.Relationship).map(s=>{const i=u(s,"Type")??"",c=u(s,"Target")??"",a=u(s,"TargetMode")==="External";return{id:u(s,"Id")??"",type:i.slice(i.lastIndexOf("/")+1),target:a?c:Xe(e,c),external:a}})}count(e){return this.names.filter(t=>e.test(t)).length}}function Xe(r,e){if(e.startsWith("/"))return e.slice(1);const t=r.split("/").slice(0,-1);for(const n of e.split("/"))n===".."?t.pop():n!=="."&&t.push(n);return t.join("/")}function qe(r,e){const t=[];if(e===void 0)return t;let n,o=0,s=!1;const i={open(c){if(c==="si"){n={text:"",rich:!1};return}if(n){if(o>0||c==="rPh"||c==="phoneticPr"||c==="extLst"){o+=1;return}c==="r"&&(n.rich=!0),c==="t"&&(s=!0)}},close(c){if(o>0){o-=1;return}if(c==="si"){n&&t.push({...n,text:A(n.text)}),n=void 0;return}c==="t"&&(s=!1)},text(c){n&&s&&o===0&&(n.text+=c)}};return r.stream(e,new ue(i)),t}function W(r,e){const t=r[e];if(t===void 0)return!1;const n=u(d(t),"val");return n===void 0||n!=="0"&&n!=="false"}const Ge=new Set(["double","singleAccounting","doubleAccounting"]);function Ze(r,e,t){const n={},o=(a,l)=>u(d(a?.[l]),"val");if(W(r,"b")&&(n.bold=!0),W(r,"i")&&(n.italic=!0),W(r,"strike")&&(n.strike=!0),W(r,"u")){const a=o(r,"u");n.underline=a!==void 0&&Ge.has(a)?a:!0}const s=o(r,"name");s!==void 0&&s!==o(e,"name")&&(n.font=s);const i=o(r,"sz");i!==void 0&&i!==o(e,"sz")&&(n.size=Number(i));const c=F(d(r.color),t);return c!==void 0&&c!==F(d(e?.color),t)&&(n.color=c),n}function Je(r,e){const t=d(r.patternFill),n=u(t,"patternType");if(n===void 0||n==="none")return;const o=F(d(t?.fgColor),e),s=F(d(t?.bgColor),e);return n==="solid"&&o!==void 0?o:{pattern:n,...o===void 0?{}:{color:o},...s===void 0?{}:{background:s}}}function me(r,e){const t={};for(const n of["left","right","top","bottom"]){const o=d(r[n]),s=u(o,"style");if(s===void 0||s==="none")continue;const i=F(d(o?.color),e);t[n]={style:s,...i===void 0?{}:{color:i}}}return Object.keys(t).length===0?void 0:t}function Ke(r){const e={},t=u(r,"horizontal");t!==void 0&&t!=="general"&&(e.align=t);const n=u(r,"vertical");n!==void 0&&n!=="bottom"&&(e.valign=n),v(r,"wrapText")===!0&&(e.wrap=!0),v(r,"shrinkToFit")===!0&&(e.shrink=!0);const o=k(r,"indent");o!==void 0&&o>0&&(e.indent=o);const s=k(r,"textRotation");return s!==void 0&&s>0&&s<=180&&(e.rotation=s),e}function ge(r,e){const t={},n=d(r.font);if(n){const a=(f,p)=>{n[f]!==void 0&&(t[p]=W(n,f))};a("b","bold"),a("i","italic"),a("strike","strike"),n.u!==void 0&&(t.underline=W(n,"u"));const l=F(d(n.color),e);l!==void 0&&(t.color=l)}const o=d(d(r.fill)?.patternFill),s=F(d(o?.bgColor),e)??F(d(o?.fgColor),e);s!==void 0&&(t.fill=s);const i=d(r.border),c=i&&me(i,e);return c!==void 0&&(t.border=c),t}function Qe(r,e){const t=d(r?.styleSheet),n=le(e,t),o=new Map(x(d(t?.numFmts)?.numFmt).map(w=>[k(w,"numFmtId")??-1,u(w,"formatCode")??"General"])),s=x(d(t?.fonts)?.font),i=x(d(t?.fills)?.fill),c=x(d(t?.borders)?.border),a=x(d(t?.cellXfs)?.xf),l=s[k(a[0],"fontId")??0],f=new Set;i.some(w=>w.gradientFill!==void 0)&&f.add("gradient fills");const p=a.map(w=>{const m={},$=s[k(w,"fontId")??0];$&&(Object.assign(m,Ze($,l,n)),$.vertAlign!==void 0&&f.add("superscript and subscript"));const S=i[k(w,"fillId")??0],O=S&&Je(S,n);O!==void 0&&(m.fill=O);const T=c[k(w,"borderId")??0],z=T&&me(T,n);z!==void 0&&(m.border=z),T&&u(d(T.diagonal),"style")!==void 0&&f.add("diagonal borders");const D=d(w.alignment);D&&(Object.assign(m,Ke(D)),k(D,"textRotation")===255&&f.add("vertical text"));const I=k(w,"numFmtId")??0,M=o.get(I)??_e[I];return M!==void 0&&M!=="General"&&(m.format=M),m}),h=u(d(l?.name),"val"),b=u(d(l?.sz),"val");return{looks:p,dxfs:x(d(t?.dxfs)?.dxf).map(w=>ge(w,n)),font:{...h===void 0?{}:{name:h},...b===void 0?{}:{size:Number(b)}},lost:[...f]}}function be(r){const e=new Map;let t=0;for(const n of x(r.filterColumn)){const o=k(n,"colId")??0,s=d(n.filters);if(!s){Object.keys(n).some(c=>c!=="colId"&&c!=="hiddenButton")&&(t+=1);continue}if(s.dateGroupItem!==void 0){t+=1;continue}const i=x(s.filter).map(c=>A(u(c,"val")??""));e.set(o,{...i.length===0?{}:{values:i},...v(s,"blank")===!0?{blanks:!0}:{}})}return{columns:e,unread:t}}function Ye(r){const e=d(r?.table),t=G(u(e,"ref")??""),n=u(e,"displayName")??u(e,"name");if(!t||n===void 0)return;const o=d(e?.tableStyleInfo),s=d(e?.autoFilter);return{name:n,ref:t,headers:k(e,"headerRowCount")??1,totals:k(e,"totalsRowCount")??0,columns:x(d(e?.tableColumns)?.tableColumn).map(i=>({name:A(u(i,"name")??"").trim(),calculated:i.calculatedColumnFormula!==void 0})),style:u(o,"name")??"none",...s?{filter:be(s)}:{}}}function oe(r){const e=r.trim();if(e==="")return;const t=/^"((?:[^"]|"")*)"$/u.exec(e);if(t)return(t[1]??"").replaceAll('""','"');const n=Number(e);if(!Number.isNaN(n))return n;const o=te(e,!0);return o.ok?fe(o.node):void 0}const xe=r=>r!==void 0&&Ce.includes(r);function re(r){const e=u(r,"type")??"num",t=u(r,"val")??(r.f===void 0?void 0:E(r.f)),n=t===void 0?void 0:oe(t);return{at:e,...n===void 0?{}:{value:n}}}const et=Se,tt=r=>{const e=r.formula??r.f;return(Array.isArray(e)?e:e===void 0?[]:[e]).map(E)};function nt(r,e,t,n){const o=u(r,"type")??"",s={range:e,...v(r,"stopIfTrue")===!0?{stop:!0}:{}},i={...t.bold===void 0?{}:{bold:t.bold},...t.italic===void 0?{}:{italic:t.italic},...t.underline===void 0?{}:{underline:t.underline!==!1},...t.strike===void 0?{}:{strike:t.strike},...t.color===void 0?{}:{color:t.color},...typeof t.fill=="string"?{fill:t.fill}:{},...t.border===void 0?{}:{border:t.border}},c=tt(r);switch(o){case"cellIs":{const a=u(r,"operator"),l=c.flatMap(f=>{const p=oe(f);return p===void 0?[]:[p]});return!xe(a)||l.length===0?`a cellIs rule of ${a??"no operator"}`:{...s,...i,type:"cellIs",operator:a,formula:l}}case"containsText":case"notContainsText":case"beginsWith":case"endsWith":{const a=u(r,"text");return a===void 0?`a ${o} rule with no text`:{...s,...i,type:"containsText",...o==="containsText"?{}:{operator:o==="notContainsText"?"notContains":o},text:A(a)}}case"duplicateValues":case"uniqueValues":return{...s,...i,type:o};case"top10":return{...s,...i,type:"top10",rank:k(r,"rank")??10,...v(r,"percent")===!0?{percent:!0}:{},...v(r,"bottom")===!0?{bottom:!0}:{}};case"aboveAverage":return{...s,...i,type:"aboveAverage",...v(r,"aboveAverage")===!1?{below:!0}:{},...v(r,"equalAverage")===!0?{equal:!0}:{}};case"expression":{const a=c[0]===void 0?void 0:te(c[0],!0);return a?.ok?{...s,...i,type:"expression",formula:fe(a.node)}:"an expression rule that cannot be read"}case"dataBar":{const a=d(r.dataBar),l=F(d(a?.color??a?.fillColor),n),[f,p]=x(a?.cfvo).map(re);return l===void 0?"a data bar with no colour":{...s,type:"dataBar",color:l,...f&&f.at!=="min"?{min:f}:{},...p&&p.at!=="max"?{max:p}:{},...v(a,"showValue")===!1?{show:!1}:{}}}case"colorScale":{const a=d(r.colorScale),l=x(a?.cfvo).map(re),f=x(a?.color).map(h=>F(h,n)),p=l.flatMap((h,b)=>{const w=f[b];return w===void 0?[]:[{...h,color:w}]});return p.length<2?"a colour scale with too few stops":{...s,type:"colorScale",stops:p.slice(0,3)}}case"iconSet":{const a=d(r.iconSet),l=u(a,"iconSet")??"3TrafficLights1";if(!et.includes(l))return`the icon set ${l}`;if(a?.cfIcon!==void 0)return"an icon set of icons chosen one by one";const f=x(a?.cfvo).map(re);return{...s,type:"iconSet",icons:l,...f.length>=3?{stops:f.slice(0,5)}:{},...v(a,"reverse")===!0?{reverse:!0}:{},...v(a,"showValue")===!1?{show:!1}:{}}}default:return`a ${o} rule`}}const we={conditional:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}",validations:"{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}"},ye=(r,e)=>x(d(r.extLst)?.ext).find(t=>u(t,"uri")?.toUpperCase()===e.toUpperCase());function ot(r,e,t){const n=[],o=[],s=new Set,i=(a,l,f)=>{const p=nt(a,l,f,t);typeof p=="string"?o.push(`${p} on ${l}`):n.push({priority:k(a,"priority")??0,rule:p})};for(const a of x(r.conditionalFormatting)){const l=u(a,"sqref")??"";if(!ee(l)){o.push(`a rule on ${l}`);continue}for(const f of x(a.cfRule)){const p=E(d(d(f.extLst)?.ext)?.id);p!==""&&s.add(p.toUpperCase());const h=k(f,"dxfId");i(f,l,h===void 0?{}:e[h]??{})}}const c=d(ye(r,we.conditional)?.conditionalFormattings);for(const a of x(c?.conditionalFormatting)){const l=E(a.sqref).trim();for(const f of x(a.cfRule)){if(s.has((u(f,"id")??"").toUpperCase()))continue;if(!ee(l)){o.push(`a rule on ${l}`);continue}const p=d(f.dxf);i(f,l,p?ge(p,t):{})}}return{rules:n.sort((a,l)=>a.priority-l.priority).map(a=>a.rule),unread:o}}const rt=Ne;function $e(r,e,t,n){const o=u(r,"type")??"none";if(o==="none"&&u(r,"prompt")===void 0)return;if(!rt.includes(o)||!ee(e))return`a ${o} rule on ${e}`;const s=/^"((?:[^"]|"")*)"$/u.exec(t.trim()),i=o==="list"&&s?(s[1]??"").replaceAll('""','"').split(","):void 0,c=[t,n].flatMap(w=>{const m=oe(w);return m===void 0?[]:[m]}),a=u(r,"operator"),l=w=>Object.fromEntries(Object.entries(w).filter(([,m])=>m!==void 0)),f=l({title:u(r,"promptTitle"),message:u(r,"prompt")}),p=l({style:u(r,"errorStyle"),title:u(r,"errorTitle"),message:u(r,"error")}),h=v(r,"showInputMessage")!==!0,b=v(r,"showErrorMessage")!==!0;return{range:e,type:o,...xe(a)&&a!=="between"?{operator:a}:{},...i?{values:i}:{formula:c},...v(r,"allowBlank")===!0?{}:{blank:!1},...v(r,"showDropDown")===!0?{dropdown:!1}:{},...h||Object.keys(f).length>0?{prompt:{...f,...h?{show:!1}:{}}}:{},...b||Object.keys(p).length>0?{error:{...p,...b?{show:!1}:{}}}:{}}}function st(r){const e=[],t=[],n=s=>{typeof s=="string"?t.push(s):s&&e.push(s)};for(const s of x(d(r.dataValidations)?.dataValidation))n($e(s,u(s,"sqref")??"",E(s.formula1),E(s.formula2)));const o=d(ye(r,we.validations)?.dataValidations);for(const s of x(o?.dataValidation))n($e(s,E(s.sqref).trim(),E(d(s.formula1)?.f),E(d(s.formula2)?.f)));return{rules:e,unread:t}}function it(r){const e=/^(-?\d{4,})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?)?(?:Z|[+-]\d{2}:?\d{2})?$/u.exec(r)??/^()()()(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?$/u.exec(r);if(!e)return;const t=e[1]==="",n=t?1899:Number(e[1]),o=t?12:Number(e[2]),s=t?30:Number(e[3]),i=Number(e[4]??0)*3600+Number(e[5]??0)*60+Number(e[6]??0)+Number(e[7]??0),c=new Date(Date.UTC(n,o-1,s)+i*1e3);if(Number.isNaN(c.getTime()))return;const a=Me(c);return t?a-Math.floor(a):a}function se(r,e,t){const n=te(r,e,t);return n.ok?{node:n.node}:{unread:r}}class at{cells=[];rows=[];rich=[];outlined=!1;rest=[];xml;masters=new Map;strings;name;isRangeName;inData=!1;row=-1;nextRow=0;nextCol=0;cell;target;buffer="";skip=0;constructor(e,t,n){this.strings=e,this.name=t,this.isRangeName=n,this.xml=new ue(this),this.xml.capture=this.rest}open(e,t){if(!this.inData){e==="sheetData"&&(this.inData=!0,this.xml.capture=void 0);return}const n=this.cell;if(n){if(this.skip>0){this.skip+=1;return}switch(e){case"v":this.target="v",this.buffer="";return;case"f":n.f={...t,text:""},this.target="f",this.buffer="";return;case"is":n.inline={text:"",rich:!1};return;case"r":n.inline&&(n.inline.rich=!0);return;case"t":n.inline&&(this.target="t",this.buffer="");return;case"rPh":case"phoneticPr":case"extLst":this.skip=1;return;default:return}}e==="row"?this.openRow(t):e==="c"&&(this.cell={r:t.r,s:t.s,t:t.t,cm:t.cm,v:void 0,f:void 0,inline:void 0})}close(e){if(!this.inData)return;const t=this.cell;if(!t){e==="sheetData"&&(this.inData=!1,this.xml.capture=this.rest);return}if(this.skip>0){this.skip-=1;return}if(e===this.target){e==="v"?t.v=this.buffer:e==="f"&&t.f?t.f.text=this.buffer:t.inline&&(t.inline.text+=this.buffer),this.target=void 0;return}e==="c"&&(this.cell=void 0,this.readCell(t))}text(e){this.target!==void 0&&this.skip===0&&(this.buffer+=e)}openRow(e){const t=e.r,n=t===void 0?void 0:Number(t);if(n!==void 0&&Number.isInteger(n)&&n>K)throw new Error(`${this.name} has a row ${t??""}, and ${GRID_END}.`);const o=n!==void 0&&Number.isInteger(n)&&n>0?n-1:this.nextRow;this.row=o,this.nextRow=o+1,this.nextCol=0;const s={row:o},i=e.ht===void 0?void 0:Number(e.ht),c=f=>f==="1"||f==="true";i!==void 0&&Number.isFinite(i)&&c(e.customHeight)&&(s.height=Ue(i)),c(e.hidden)&&(s.hidden=!0);const a=e.s===void 0?void 0:Number(e.s);a!==void 0&&a!==0&&c(e.customFormat)&&(s.style=a);const l=Number(e.outlineLevel??0);l>0&&(s.level=Math.min(7,l),this.outlined=!0),Object.keys(s).length>1&&this.rows.push(s)}value(e,t){const n=e.t??"n";if(n==="inlineStr"){const s=e.inline;return s?{value:A(s.text),...s.rich?{rich:!0}:{}}:{value:e.v===void 0?"":A(e.v)}}const o=e.v;if(o===void 0)return{value:void 0};switch(n){case"s":{const s=this.strings[Number(o)];return s?{value:s.text,...s.rich?{rich:!0}:{}}:{value:""}}case"str":return{value:A(o)};case"b":return{value:o.trim()==="1"||o.trim()==="true"};case"e":return{value:Re(o.trim())??Le.VALUE};case"d":return{value:it(o.trim())??o};default:{if(o.trim()==="")return{value:void 0};const s=Number(o);if(Number.isNaN(s))throw new Error(`${t} says it holds a number and holds ${o}.`);return{value:s}}}}formula(e,t,n,o){const s=e.f;if(s===void 0)return;const i=s.t??"normal",c=s.text;if(i==="dataTable"){o.unread=`a data table's {=TABLE(${s.r1??""})}`;return}if(i==="array"){Object.assign(o,se(c,!0,this.isRangeName));const a=G(s.ref??"");a&&(o.array=a),e.cm!==void 0&&(o.dynamic=!0);return}if(i==="shared"){const a=s.si??"";if(c!==""){const f=se(c,!1,this.isRangeName),p=f.node?Ie(f.node,t,n):"";this.masters.set(a,{node:f.node,unread:f.unread,row:t,col:n,key:p}),Object.assign(o,f),f.node&&(o.key=p);return}const l=this.masters.get(a);if(!l){o.unread=`a shared formula of a group that has no first cell (${a})`;return}l.node?(o.node=Te(l.node,t-l.row,n-l.col),o.key=l.key):l.unread!==void 0&&(o.unread=l.unread);return}c!==""&&Object.assign(o,se(c,!1,this.isRangeName))}readCell(e){const t=e.r===void 0?void 0:We(e.r,this.name),n=t?.row??this.row,o=t?.col??this.nextCol;if(o>=q)throw new Error(`${this.name} has a cell past its last column, and ${GRID_END}.`);this.nextCol=o+1;const s=e.r??Y({row:n,col:o}),{value:i,rich:c}=this.value(e,s),a={row:n,col:o,value:i,style:e.s===void 0?0:Number(e.s)||0};c===!0&&(a.rich=!0,this.rich.push(s)),this.formula(e,n,o,a),this.cells.push(a)}}function dt(r,e,t){const n=[],o=p=>n.push(`${r}: ${p}`);t.length>0&&o(`${H(t.length,"cell")} of rich text, kept as plain text (${placesLine(t)})`);const s=x(d(e.hyperlinks)?.hyperlink).filter(p=>u(p,"tooltip")!==void 0);s.length>0&&o(`the tooltips of ${H(s.length,"link")} (${placesLine(s.map(p=>u(p,"ref")??""))})`),e.sortState!==void 0&&o("a sort");const i=d(e.sheetProtection);v(i,"sheet")===!0&&(u(i,"password")!==void 0||u(i,"hashValue")!==void 0)&&o("its protection's password: it is protected with none"),e.protectedRanges!==void 0&&o("protected ranges");const c=d(e.headerFooter);(c?.evenHeader!==void 0||c?.evenFooter!==void 0||c?.firstHeader!==void 0||c?.firstFooter!==void 0)&&o("its print header and footer of the first or even pages");const a=d(e.printOptions);a&&["gridLines","headings","horizontalCentered","verticalCentered"].some(p=>v(a,p)===!0)&&o("its print options (gridlines, headings, centring)"),(e.rowBreaks!==void 0||e.colBreaks!==void 0)&&o("its page breaks"),e.oleObjects!==void 0&&o("embedded objects"),e.controls!==void 0&&o("form controls"),e.dataConsolidate!==void 0&&o("a consolidation"),e.customSheetViews!==void 0&&o("custom views"),x(d(e.sheetViews)?.sheetView).some(p=>u(d(p.pane),"state")==="split")&&o("a split, not frozen, window");const f=JSON.stringify(e.extLst??"");return f.includes("sparklineGroups")&&o("sparklines"),f.includes("slicerList")&&o("slicers"),n}function ct(r,e){const t=[],n=(s,i,c)=>{const a=r.count(s);a>0&&t.push(H(a,i,c))};r.has("xl/vbaProject.bin")&&t.push("VBA macros"),n(/^xl\/pivotTables\/pivotTable\d*\.xml$/u,"pivot table"),n(/^xl\/chartsheets\/[^/]+\.xml$/u,"chart sheet"),n(/^xl\/dialogsheets\/[^/]+\.xml$/u,"dialog sheet"),n(/^xl\/macrosheets\/[^/]+\.xml$/u,"macro sheet");const o=r.names.filter(s=>s.startsWith("xl/media/")&&!e.has(s)).length;return o>0&&t.push(H(o,"image")),n(/^xl\/embeddings\//u,"embedded object"),n(/^xl\/slicers\/[^/]+\.xml$/u,"slicer part"),n(/^xl\/timelines\/[^/]+\.xml$/u,"timeline part"),n(/^xl\/ctrlProps\/[^/]+\.xml$/u,"form control"),n(/^xl\/activeX\/[^/]+\.xml$/u,"ActiveX control"),n(/^xl\/queryTables\/[^/]+\.xml$/u,"query table"),r.has("xl/connections.xml")&&t.push("data connections"),r.names.some(s=>s.startsWith("xl/richData/"))&&t.push("rich values (data types, pictures in cells)"),r.names.some(s=>/^customXml\/item\d+\.xml$/u.test(s)&&(r.text(s)??"").includes("DataMashup"))&&t.push("Power Query queries"),t}export function readHeaderFooter(r){const e={left:"",center:"",right:""};let t="center",n=new Set;for(let o=0;o<r.length;o++){const s=r[o],i=r[o+1];if(s==="&"&&(i==="L"||i==="C"||i==="R")){t=i==="L"?"left":i==="C"?"center":"right",n=new Set([...n,t]),o+=1;continue}if(s==="&"&&i==="&"){e[t]+="&&",o+=1;continue}e[t]+=s??""}return Object.fromEntries(Object.entries(e).filter(([o,s])=>s!==""||n.has(o)))}const ft=new Map(Object.entries(Ee).map(([r,e])=>[e,r]));function lt(r,e,t){const n={},o=d(r.pageSetup),s=u(o,"orientation");(s==="portrait"||s==="landscape")&&(n.orientation=s);const i=k(o,"paperSize");if(i!==void 0){const h=ft.get(i);h?n.paper=h:t.push(`${e}: its paper size, Excel's number ${String(i)}`)}v(d(d(r.sheetPr)?.pageSetUpPr),"fitToPage")===!0&&(n.fit={width:k(o,"fitToWidth")??1,height:k(o,"fitToHeight")??1});const c=d(r.pageMargins),a={};for(const h of Object.keys(de)){const b=k(c,h);b!==void 0&&b!==de[h]&&(a[h]=b)}Object.keys(a).length>0&&(n.margins=a);const l=d(r.headerFooter),f=E(l?.oddHeader),p=E(l?.oddFooter);return f!==""&&(n.header=readHeaderFooter(A(f))),p!==""&&(n.footer=readHeaderFooter(A(p))),n}function ut(r,e,t,n,o){const s=r.rels(e),i=new Map;for(const a of s.filter(l=>l.type==="comments")){const l=d(r.xml(a.target)?.comments),f=d(l?.authors)?.author,p=(Array.isArray(f)?f:f===void 0?[]:[f]).map(h=>A(E(h)));for(const h of x(d(l?.commentList)?.comment)){const b=u(h,"ref")??"",w=d(h.text),m=x(w?.r),$=A(m.length>0?m.map(O=>E(O.t)).join(""):E(w?.t)),S=p[k(h,"authorId")??-1];b!==""&&$!==""&&i.set(b,{ref:b,text:$,...S===void 0||S===""?{}:{author:S}})}}let c=0;for(const a of s.filter(l=>l.type==="threadedComment")){const l=d(r.xml(a.target)?.ThreadedComments),f=new Map;for(const p of x(l?.threadedComment)){const h=u(p,"ref")??"",b=A(E(p.text)),w=f.get(h)??{texts:[]};if(w.texts.length===0){const m=n.get(u(p,"personId")??"");m!==void 0&&(w.author=m)}w.texts.push(b),f.set(h,w)}for(const[p,h]of f)c+=1,i.set(p,{ref:p,text:h.texts.join(`
3
- `),...h.author===void 0?{}:{author:h.author}})}return c>0&&o.push(`${t}: ${H(c,"threaded comment")}, kept as notes, replies after the first line`),[...i.values()]}function ht(r,e,t,n,o,s,i,c,a,l){const f=new at(o,t,a);if(!r.stream(e,f.xml))throw new Error(`${e} is not in the file.`);const p=he(f.rest.join("")),h=d(p.worksheet);if(!h)throw new Error(`${e} is not a worksheet.`);const b=x(d(h.cols)?.col).map(y=>{const C=k(y,"width"),R=k(y,"style"),P=k(y,"outlineLevel")??0,L=(k(y,"min")??1)-1,ie=(k(y,"max")??1)-1;if(ie>=q)throw new Error(`${t} sets a column past its last, and ${GRID_END}.`);const ae=v(y,"customWidth"),Q=C===void 0?void 0:Ve(C);return{min:L,max:ie,...Q!==void 0&&(ae===!0||ae===void 0&&Q!==ke)?{width:Q}:{},...v(y,"hidden")===!0?{hidden:!0}:{},...R===void 0||R===0?{}:{style:R},...P>0?{level:Math.min(7,P)}:{}}}),w=x(d(h.mergeCells)?.mergeCell).flatMap(y=>{const C=G(u(y,"ref")??"");return C?[C]:[]}),m=x(d(h.sheetViews)?.sheetView)[0],$=d(m?.pane);let S;const O=u($,"state");if(O==="frozen"||O==="frozenSplit"){const y=Oe(u(m,"topLeftCell")??"A1")??{row:0,col:0};S={row:y.row+(k($,"ySplit")??0),col:y.col+(k($,"xSplit")??0)}}const T=r.rels(e),z=T.filter(y=>y.type==="table").flatMap(y=>{const C=Ye(r.xml(y.target));return C?[C]:[]}),D=F(d(d(h.sheetPr)?.tabColor),s),I=dt(t,h,f.rich),M=ot(h,i,s),B=st(h);for(const y of M.unread)I.push(`${t}: a conditional format, ${y}`);for(const y of B.unread)I.push(`${t}: a data validation, ${y}`);const V=d(h.autoFilter),Z=G(u(V,"ref")??""),j=V&&Z?{ref:Z,...be(V)}:void 0;j&&j.unread>0&&I.push(`${t}: ${H(j.unread,"filter")} by condition on ${u(V,"ref")??""}, its rows left as they were hidden`);const{charts:X,pictures:J}=mt(r,e,t,b,f.rows,I,l),U={},g=new Map(T.map(y=>[y.id,y]));for(const y of x(d(h.hyperlinks)?.hyperlink)){const C=u(y,"ref");if(C===void 0)continue;const R=u(y,"location"),P=u(y,"id"),L=P===void 0?void 0:g.get(P)?.target;L!==void 0?U[C]=R===void 0?L:`${L}#${R}`:R!==void 0&&(U[C]=`#${R}`)}const N=d(h.sheetProtection),_=lt(h,t,I);return{sheet:{name:t,state:n,cells:f.cells,merges:w,...S?{freeze:S}:{},...u(m,"showGridLines")==="0"?{gridlines:!1}:{},...D===void 0?{}:{tab:D},columns:b,rows:f.rows,tables:z,conditional:M.rules,validations:B.rules,scenarios:x(d(h.scenarios)?.scenario).map(y=>({name:u(y,"name")??"",cells:x(y.inputCells).map(C=>({at:u(C,"r")??"",value:u(C,"val")??""}))})),...j?{filter:j}:{},charts:X,links:U,notes:ut(r,e,t,c,I),pictures:J,...v(N,"sheet")===!0?{protect:!0}:{},...Object.keys(_).length>0?{print:_}:{}},lost:I}}const ke=64,pt=20;function mt(r,e,t,n,o,s,i){const c=h=>n.find(b=>h>=b.min&&h<=b.max)?.width??ke,a=new Map(o.map(h=>[h.row,h.height])),l=h=>a.get(h)??pt,f=[],p=[];for(const h of r.rels(e).filter(b=>b.type==="drawing")){const b=je(r.xml(h.target),c,l),w=r.rels(h.target);for(const m of b.anchors){const $=w.find(T=>T.id===m.id),S=Pe($?r.xml($.target):void 0),O=Y(m.at);if(typeof S=="string"){s.push(`${t}: the chart at ${O}, as ${S}`);continue}f.push({...S,at:O,...m.x===void 0?{}:{x:m.x},...m.y===void 0?{}:{y:m.y},...m.width===ce.width?{}:{width:m.width},...m.height===ce.height?{}:{height:m.height}})}for(const m of b.pictures){const $=w.find(T=>T.id===m.id),S=$&&!$.external?r.bytes($.target):void 0;if(!$||!S){s.push(`${t}: the picture at ${Y(m.at)}, whose image is not in the file`);continue}i.add($.target);const O=$.target.slice($.target.lastIndexOf(".")+1).toLowerCase();p.push({row:m.at.row,col:m.at.col,...m.x===void 0?{}:{x:m.x},...m.y===void 0?{}:{y:m.y},width:m.width,height:m.height,...m.name===void 0?{}:{name:m.name},...m.descr===void 0?{}:{descr:m.descr},bytes:S,type:O})}b.others>0&&s.push(`${t}: ${H(b.others,"shape")} of its drawing`)}return{charts:f,pictures:p}}function gt(r,e,t){for(const n of r){if(n.sheet===void 0)continue;const o=e[n.sheet];if(!o)continue;const s=n.text.split(",").map(i=>i.slice(i.lastIndexOf("!")+1).replaceAll("$",""));if(n.name==="_xlnm.Print_Area"){const[i]=s;s.length>1&&t.push(`${o.name}: its print area's ranges after the first`),i!==void 0&&G(i)&&(o.print={...o.print,area:i})}else if(n.name==="_xlnm.Print_Titles")for(const i of s)/^\d+:\d+$/u.test(i)?o.print={...o.print,title_rows:i}:/^[A-Za-z]+:[A-Za-z]+$/u.test(i)&&(o.print={...o.print,title_cols:i})}}export function readXlsx(r,e){let t;try{t=new Be(r,e)}catch(g){throw g instanceof ve?g:new Error("It is not a zip file, as an .xlsx file is.")}const n=t.rels(""),o=n.find(g=>g.type==="officeDocument")?.target??"xl/workbook.xml";if(o.endsWith(".bin"))throw new Error("It is a binary workbook (.xlsb): save it as .xlsx.");const s=t.xml(o),i=d(s?.workbook);if(!i)throw new Error("It has no workbook part.");const c=t.rels(o),a=g=>c.find(N=>N.type===g)?.target,l=(()=>{const g=a("theme");return g===void 0?void 0:t.text(g)})(),f=l===void 0?Fe:De(l),p=a("styles"),h=p===void 0?void 0:t.xml(p),b=Qe(h,f),w=le(f,d(h?.styleSheet)),m=qe(t,a("sharedStrings")),$=[];for(const g of b.lost)$.push(g);const S=d(i.workbookPr),O=d(i.calcPr);v(O,"iterate")===!0&&$.push("iterative calculation");const T=d(i.workbookProtection);(v(T,"lockStructure")===!0||v(T,"lockWindows")===!0)&&$.push("the workbook's protection"),i.fileSharing!==void 0&&$.push("its write protection");const z=new Map,D=a("person");if(D!==void 0)for(const g of x(d(t.xml(D)?.personList)?.person))z.set(u(g,"id")??"",A(u(g,"displayName")??""));const I=x(d(i.definedNames)?.definedName).map(g=>{const N=k(g,"localSheetId");return{name:u(g,"name")??"",text:A(E(g)),...N===void 0?{}:{sheet:N},...v(g,"hidden")===!0?{hidden:!0}:{}}}),M=[],B=new Set,V=new Map(c.map(g=>[g.id,g])),Z=x(d(i.sheets)?.sheet);for(const[g,N]of Z.entries()){const _=V.get(u(N,"id")??""),y=A(u(N,"name")??"");if(_?.type!=="worksheet"){_?.type!=="chartsheet"&&_?.type!=="dialogsheet"&&$.push(`${y}: a sheet of a kind this cannot read`);continue}const C=new Map;for(const L of I)(L.sheet===void 0||L.sheet===g)&&(L.sheet!==void 0||!C.has(L.name.toLowerCase()))&&C.set(L.name.toLowerCase(),ze(L.text));const R=u(N,"state"),P=ht(t,_.target,y,R==="hidden"||R==="veryHidden"?R:"visible",m,w,b.dxfs,z,L=>C.get(L.toLowerCase())===!0,B);M[g]=P.sheet,$.push(...P.lost)}gt(I,M,$);const j=n.find(g=>g.type==="core-properties")?.target,X=j===void 0?void 0:E(d(t.xml(j)?.coreProperties)?.title).trim(),J=M.filter(g=>g!==void 0),U=new Map;return M.forEach((g,N)=>{g!==void 0&&U.set(N,J.indexOf(g))}),{sheets:J,names:I.flatMap(g=>{if(g.sheet===void 0)return[g];const N=U.get(g.sheet);return N===void 0?[]:[{...g,sheet:N}]}),looks:b.looks,dxfs:b.dxfs,date1904:v(S,"date1904")===!0,font:b.font,...X===void 0||X===""?{}:{title:X},lost:[...ct(t,B),...$]}}
@@ -1,2 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{SHEET_MARGINS as pe,SHEET_NOTE_AUTHOR as K,SHEET_PAPERS as we}from"@allyhub-next/formats";import{MAX_COLUMNS as Q,MAX_ROWS as ee,cellName as _,columnIndex as xe,columnLetter as D,rangeName as M,readAddress as te,readArea as ge}from"../address.js";import{parseFormula as $e}from"../formula/parse.js";import{sheetPrefix as X}from"../formula/print.js";import{walk as ye}from"../formula/walk.js";import{fileCells as be,isPicture as ve,pictureHeight as Se,pictureSize as se}from"../files.js";import{scenariosByCell as ke}from"../scenario.js";import{CellError as P,readTyped as Ae}from"../values.js";import{FormulaCell as Ce}from"../workbook.js";import{chartPart as Ee,drawingPart as Te}from"./charts.js";import{fileFormula as N,needsArray as B}from"./formula.js";import{GRID_END as W}from"./read.js";import{Styles as Me}from"./styles.js";import{THEME_XML as Re}from"./theme.js";import{HEAD as S,NS as k,el as o,xstring as x}from"./xml.js";import{ZipOut as _e}from"./zip.js";const A={comments:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",sheet:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",worksheet:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",styles:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",strings:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",theme:"application/vnd.openxmlformats-officedocument.theme+xml",table:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",metadata:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",drawing:"application/vnd.openxmlformats-officedocument.drawing+xml",chart:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml",core:"application/vnd.openxmlformats-package.core-properties+xml",app:"application/vnd.openxmlformats-officedocument.extended-properties+xml"},v=`${k.rel}/`,ne="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",oe="http://schemas.microsoft.com/office/excel/2006/main",re={conditional:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}",validations:"{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}"},je=191029;export const DEFAULT_TABLE_STYLE="TableStyleMedium2",LISTS_SHEET="AllyHub lists";const Le=64,Oe=7,Fe=a=>Math.min(255,Math.floor(a/Oe*256)/256),Ie=a=>Math.min(409.5,a*3/4),q=32767,De=255,Pe=2e5,Ne=o("metadata",{xmlns:k.main,"xmlns:xda":"http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"},o("metadataTypes",{count:1},o("metadataType",{name:"XLDAPR",minSupportedVersion:12e4,copy:1,pasteAll:1,pasteValues:1,merge:1,splitFirst:1,rowColShift:1,clearFormats:1,clearComments:1,assign:1,coerce:1,cellMeta:1})),o("futureMetadata",{name:"XLDAPR",count:1},o("bk",{},o("extLst",{},o("ext",{uri:"{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}"},o("xda:dynamicArrayProperties",{fDynamic:1,fCollapsed:0}))))),o("cellMetadata",{count:1},o("bk",{},o("rc",{t:1,v:0}))));class Ve{index=new Map;count=0;of(t){this.count+=1;let s=this.index.get(t);return s===void 0&&(s=this.index.size,this.index.set(t,s)),s}write(t){t.write(`${S}<sst xmlns="${k.main}" count="${String(this.count)}" uniqueCount="${String(this.index.size)}">`);for(const s of this.index.keys()){const e=/^\s|\s$|\n/u.test(s);t.write(`<si><t${e?' xml:space="preserve"':""}>${x(s)}</t></si>`)}t.write("</sst>"),t.end()}}function ze(a){for(const t in a)if(Object.hasOwn(a,t))return!1;return!0}const He=a=>o("x",a).slice(2,-2),Ue="Base case";function Xe(a){const t=new Map;for(const n of a.scenarios)for(const r of n.cells)t.set(_(r),r);const s=(n,r)=>o("inputCells",{r:_(n),val:r===null||r instanceof P?"":typeof r=="boolean"?r?"1":"0":String(r)}),e=(n,r)=>o("scenario",{name:n,locked:!0,count:r.length,user:"AllyHub"},r.join(""));return o("scenarios",{current:0,show:0,sqref:[...t.keys()].join(" ")},e(Ue,[...t.values()].map(n=>s(n,n.base))),...a.scenarios.map(n=>e(n.name,n.cells.map(r=>s(r,r.value)))))}function Be(a,t,s,e){const n=[];let r=0;for(const{row:l,col:h,paths:c,column:i}of be(a,t)){let d=0;const f=Se(i);for(const m of c){const u=ve(m)?s?.(m):void 0,$=u&&se(u);if(!u||!$){r+=1;continue}const T=Math.round($.width/$.height*f);n.push({row:l,col:h,x:d,width:T,height:f,name:m.split("/").pop()??m,path:m,file:`.${$.type==="jpeg"?"jpg":$.type}`,bytes:u}),d+=T+4}}for(const l of a.spec.pictures??[]){const h=te(l.at),c=s?.(l.file),i=c&&se(c);if(!h||!c||!i)continue;const d=i.width/i.height,f=l.width??(l.height===void 0?i.width:l.height*d);n.push({row:h.row,col:h.col,x:l.x??0,y:l.y??0,width:Math.round(f),height:Math.round(l.height??f/d),name:l.file.split("/").pop()??l.file,path:l.file,file:`.${i.type==="jpeg"?"jpg":i.type}`,bytes:c})}return r>0&&e.push(`${a.name}: ${String(r)} file${r===1?"":"s"} in a cell, which stay${r===1?"s":""} a name`),n}class We{name;columns=[];known=new Map;constructor(t){let s=LISTS_SHEET;for(let e=2;t.sheet(s);e++)s=`${LISTS_SHEET} (${String(e)})`;this.name=s}place(t){const s=JSON.stringify(t);let e=this.known.get(s);e===void 0&&(e=this.columns.length,this.columns.push(t),this.known.set(s,e));const n=D(e);return`${X(this.name)}$${n}$1:$${n}$${String(Math.max(1,t.length))}`}xml(t){const s=[],e=Math.max(0,...this.columns.map(n=>n.length));for(let n=0;n<e;n++){let r=`<row r="${String(n+1)}">`;this.columns.forEach((l,h)=>{const c=l[n];c!==void 0&&(r+=`<c r="${_({row:n,col:h})}" t="s"><v>${String(t.of(c))}</v></c>`)}),s.push(`${r}</row>`)}return`${S}<worksheet xmlns="${k.main}" xmlns:r="${k.rel}"><dimension ref="${M({top:0,left:0,bottom:Math.max(0,e-1),right:Math.max(0,this.columns.length-1)})}"/><sheetViews><sheetView workbookViewId="0"/></sheetViews><sheetFormatPr defaultRowHeight="15"/><sheetData>${s.join("")}</sheetData><pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/></worksheet>`}}class qe{rows=new Int32Array(1024);cols=new Int32Array(1024);size=0;add(t,s){if(this.size===this.rows.length){const e=new Int32Array(this.size*2);e.set(this.rows),this.rows=e;const n=new Int32Array(this.size*2);n.set(this.cols),this.cols=n}this.rows[this.size]=t,this.cols[this.size]=s,this.size+=1}byRow(){const{size:t}=this;if(t===0)return{start:new Uint32Array(1),cols:new Int32Array(0),top:0,used:void 0};let s=1/0,e=-1,n=1/0,r=-1;for(let i=0;i<t;i++){const d=this.rows[i]??0,f=this.cols[i]??0;d<s&&(s=d),d>e&&(e=d),f<n&&(n=f),f>r&&(r=f)}const l=new Uint32Array(e-s+2);for(let i=0;i<t;i++){const d=(this.rows[i]??0)-s+1;l[d]=(l[d]??0)+1}for(let i=1;i<l.length;i++)l[i]=(l[i]??0)+(l[i-1]??0);const h=l.slice(0,-1),c=new Int32Array(t);for(let i=0;i<t;i++){const d=(this.rows[i]??0)-s,f=h[d]??0;c[f]=this.cols[i]??0,h[d]=f+1}return{start:l,cols:c,top:s,used:{top:s,bottom:e,left:n,right:r}}}}function Ge(a,t){if(!a)return!1;let s=!1;const e=t.toLowerCase();return ye(a,n=>{(n.kind==="ref"||n.kind==="name")&&n.sheet!==void 0&&n.sheet.toLowerCase()!==e&&(s=!0)}),s}const Ye=(a,t)=>`{00000000-0000-4000-8000-${(a*65536+t).toString(16).toUpperCase().padStart(12,"0")}}`;class Ze{arrays=!1;sheet;calc;styles;strings;wb;cached;left;lists;index;isTable;isRangeName;hiddenRows;tall;scenarios;drawn;newerRules=[];newerValidations=[];shapes=new Map;groups=new Map;constructor(t,s,e,n,r,l,h,c,i=[],d){this.sheet=t,this.calc=s,this.wb=s.wb,this.styles=e,this.strings=n,this.cached=r,this.left=l,this.lists=h,this.index=c,this.isTable=m=>this.wb.table(m)!==void 0,this.isRangeName=m=>{const u=this.wb.name(m,t)?.formula?.node;return this.isTable(m)||u!==void 0&&B({kind:"unary",op:"-",arg:u})},this.hiddenRows=s.filtered(t),this.scenarios=d,this.drawn=t.charts.length>0||i.length>0;const f=new Map;for(const m of i)m.y===void 0&&f.set(m.row,Math.max(f.get(m.row)??0,m.height));this.tall=f}grid(){const{sheet:t}=this;if(t.lastRow>=ee)throw new Error(`${t.name} reaches row ${(t.lastRow+1).toLocaleString("en-US")}, and ${W}: an Excel file cannot hold it.`);if(t.columnsUsed>Q)throw new Error(`${t.name} reaches past column ${D(Q-1)}, and ${W}: an Excel file cannot hold it.`);for(const s of Object.keys(t.spec.rows??{}))if(Number(s)>ee)throw new Error(`${t.name} sets row ${s}, and ${W}: an Excel file cannot hold it.`)}gather(){const{sheet:t}=this,s=new qe;for(let e=0;e<t.columnsUsed;e++){const[n,r]=t.span(e,0,Number.MAX_SAFE_INTEGER);for(let l=n;l<=r;l++)(t.at(l,e)!==void 0||t.spillAt(l,e))&&s.add(l,e)}for(const{area:e}of t.styledAreas()){const n=(e.bottom-e.top+1)*(e.right-e.left+1);if(n>Pe){this.left.push(`${t.name}!${M(e)}: its look on the cells that hold something, ${String(n)} cells being too many to write empty`);continue}for(let r=e.top;r<=e.bottom;r++)for(let l=e.left;l<=e.right;l++)s.add(r,l)}for(const e of t.keys.keys())s.add(Math.floor(e/16384),e%16384);return s.byRow()}styleOf(t,s){const e=this.sheet.lookAt(t,s);return ze(e)?void 0:this.styles.xf(e)}held(t,s){return s.length<=q?s:(this.left.push(`${this.sheet.name}!${t} past Excel's ${String(q)} characters, of its ${String(s.length)}`),s.slice(0,q))}value(t,s,e){return e===null?`<c r="${t}"${C(s)}/>`:typeof e=="number"?`<c r="${t}"${C(s)}><v>${String(e)}</v></c>`:typeof e=="boolean"?`<c r="${t}"${C(s)} t="b"><v>${e?"1":"0"}</v></c>`:e instanceof P?ce(e)?`<c r="${t}"${C(s)} t="e"><v>${e.code}</v></c>`:`<c r="${t}"${C(s)} t="s"><v>${String(this.strings.of(e.code))}</v></c>`:`<c r="${t}"${C(s)} t="s"><v>${String(this.strings.of(this.held(t,e)))}</v></c>`}table(t){return this.sheet.tableAt(t.row,t.col)?.name}formula(t,s,e){const n=this.calc.value(e.sheet,e.row,e.col),{shared:r}=e,{node:l}=r;if(!l)return`<c r="${t}"${C(s)} t="e"><v>#NAME?</v></c>`;let h=this.shapes.get(r);h===void 0&&(h=B(l,this.isRangeName),this.shapes.set(r,h));const c=e.array!==void 0||e.blocked!==void 0||h;let i=c?void 0:this.groups.get(r);i?.written===!1&&(e.row!==i.ref.top||e.col!==i.ref.left)&&(i=void 0);let d,f="";if(i?.written===!0)d=`<f t="shared" si="${String(i.si)}"/>`;else{const m=N(e.moved,{table:this.table(e),isTable:this.isTable,array:c});d=i?`<f t="shared" ref="${M(i.ref)}" si="${String(i.si)}">${x(m)}</f>`:`<f>${x(m)}</f>`,i&&(i.written=!0),c&&(d=this.arrayFormula(e,m))}return c&&(this.arrays=!0,f=' cm="1"'),this.cached?n===null||typeof n=="number"?`<c r="${t}"${C(s)}${f}>${d}<v>${String(n??0)}</v></c>`:typeof n=="boolean"?`<c r="${t}"${C(s)} t="b"${f}>${d}<v>${n?"1":"0"}</v></c>`:n instanceof P?ce(n)?`<c r="${t}"${C(s)} t="e"${f}>${d}<v>${n.code}</v></c>`:`<c r="${t}"${C(s)}${f}>${d}<v>0</v></c>`:`<c r="${t}"${C(s)} t="str"${f}>${d}<v>${x(this.held(t,n))}</v></c>`:`<c r="${t}"${C(s)}${f}>${d}</c>`}arrayFormula(t,s){const e=t.spill??{top:t.row,left:t.col,bottom:t.row,right:t.col};return`<f t="array" ref="${M(e)}">${x(s)}</f>`}shareFormulas(){const t=new Map;for(const e of this.sheet.formulas){const n=t.get(e.shared);if(!n)t.set(e.shared,{area:{top:e.row,bottom:e.row,left:e.col,right:e.col},first:e,n:1});else{const{area:r}=n;e.row<r.top&&(r.top=e.row),e.row>r.bottom&&(r.bottom=e.row),e.col<r.left&&(r.left=e.col),e.col>r.right&&(r.right=e.col),(e.row<n.first.row||e.row===n.first.row&&e.col<n.first.col)&&(n.first=e),n.n+=1}}let s=0;for(const[e,{area:n,first:r,n:l}]of t)l>1&&r.row===n.top&&r.col===n.left&&(this.groups.set(e,{si:s,ref:n,written:!1}),s+=1)}cell(t,s){const e=_({row:t,col:s}),n=this.styleOf(t,s),r=this.sheet.at(t,s);return r instanceof Ce?this.formula(e,n,r):r===void 0&&this.cached&&this.sheet.spillAt(t,s)?this.value(e,n,this.calc.value(this.sheet,t,s)):this.value(e,n,r??null)}columns(){const{sheet:t}=this,{spec:s}=t,e=new Map,n=new Map;for(const c of t.tables)for(const i of c.columns)i.spec?.width!==void 0&&n.set(c.at.col+i.index,i.spec.width);const r=new Set(n.keys()),l=new Map;for(const[c,i]of Object.entries(s.columns??{})){const d=xe(c);d!==void 0&&(l.set(d,i),r.add(d))}for(const c of r){const i=l.get(c),d=i?.width??n.get(c),f=de(i);e.set(c,o("col",{min:c+1,max:c+1,width:Fe(d??Le),style:f===void 0?void 0:this.styles.xf(f),hidden:i?.hidden===!0?!0:void 0,customWidth:d===void 0?void 0:!0,outlineLevel:i?.level}))}const h=[...e.keys()].sort((c,i)=>c-i).map(c=>e.get(c)??"");return h.length===0?"":`<cols>${h.join("")}</cols>`}rowAttrs(t){const s=this.sheet.spec.rows?.[String(t+1)],e=de(s),n=s?.height??this.tall.get(t);return He({r:t+1,s:e===void 0?void 0:this.styles.xf(e),customFormat:e===void 0?void 0:!0,ht:n===void 0?void 0:Ie(n),customHeight:n===void 0?void 0:!0,hidden:s?.hidden===!0||this.hiddenRows.has(t)?!0:void 0,outlineLevel:s?.level})}rows(t,s){const{sheet:e}=this,n=new Set(this.hiddenRows);for(const d of Object.keys(e.spec.rows??{}))n.add(Number(d)-1);const{start:r,cols:l,top:h}=s;let c=s.used?h:1/0,i=s.used?s.used.bottom:-1;for(const d of n)d<c&&(c=d),d>i&&(i=d);for(let d=Math.max(0,c);d<=i;d++){const f=d-h,m=f>=0&&f<r.length-1?r[f]??0:0,u=f>=0&&f<r.length-1?r[f+1]??0:0;if(m===u&&!n.has(d))continue;if(m===u){t.write(`<row${this.rowAttrs(d)}/>`);continue}const $=l.subarray(m,u).sort();let T=`<row${this.rowAttrs(d)}>`,y=-1;for(const b of $)b!==y&&(y=b,T+=this.cell(d,b));t.write(`${T}</row>`)}}view(t){const{freeze:s}=this.sheet;let e="";if(s&&(s.row>0||s.col>0)){const n=s.row>0&&s.col>0?"bottomRight":s.row>0?"bottomLeft":"topRight";e=o("pane",{xSplit:s.col>0?s.col:void 0,ySplit:s.row>0?s.row:void 0,topLeftCell:_(s),activePane:n,state:"frozen"})}return o("sheetViews",{},o("sheetView",{showGridLines:this.sheet.spec.gridlines===!1?!1:void 0,tabSelected:t?!0:void 0,workbookViewId:0},e))}write(t,s,e){const{sheet:n}=this;this.grid();const r=this.gather();this.shareFormulas();const l=n.tables.map((y,b)=>o("tablePart",{"r:id":`rId${String(b+1)}`})),{print:h}=n.spec,c=h?.fit,i=Object.keys(n.spec.notes??{}).length>0;t.write(`${S}<worksheet xmlns="${k.main}" xmlns:r="${k.rel}">`+(n.spec.tab===void 0&&c===void 0?"":o("sheetPr",{},n.spec.tab===void 0?"":o("tabColor",{rgb:`FF${n.spec.tab.slice(1).toUpperCase()}`}),c===void 0?"":o("pageSetUpPr",{fitToPage:!0})))+o("dimension",{ref:r.used?M(r.used):"A1"})+this.view(s)+o("sheetFormatPr",{defaultRowHeight:15,outlineLevelRow:ie(n.spec.rows),outlineLevelCol:ie(n.spec.columns)})+this.columns()+"<sheetData>"),this.rows(t,r);const d=l.length+1+(this.drawn?1:0)+(i?2:0);let f=0;const m=Object.entries(n.spec.links??{}).map(([y,b])=>b.startsWith("#")?o("hyperlink",{ref:y,location:b.slice(1)}):o("hyperlink",{ref:y,"r:id":`rId${String(d+f++)}`})),u=n.merges.map(y=>o("mergeCell",{ref:M(y)})),$=n.conditions.map((y,b)=>this.condition(y,b+1)).join(""),T=this.validations();return t.write("</sheetData>"+(n.spec.protect===!0?o("sheetProtection",{sheet:!0,objects:!0,scenarios:!0}):"")+(this.scenarios?Xe(this.scenarios):"")+this.sheetFilter()+(u.length>0?o("mergeCells",{count:u.length},u.join("")):"")+$+T+(m.length>0?o("hyperlinks",{},m.join("")):"")+o("pageMargins",{...pe,...h?.margins})+(h?.orientation!==void 0||h?.paper!==void 0||c!==void 0?o("pageSetup",{paperSize:h?.paper===void 0?void 0:we[h.paper],fitToWidth:c?.width,fitToHeight:c?.height,orientation:h?.orientation}):"")+(h?.header||h?.footer?o("headerFooter",{},h.header?o("oddHeader",{},x(ae(h.header))):"",h.footer?o("oddFooter",{},x(ae(h.footer))):""):"")+(this.drawn?o("drawing",{"r:id":`rId${String(l.length+1)}`}):"")+(i?o("legacyDrawing",{"r:id":`rId${String(l.length+(this.drawn?2:1))}`}):"")+(l.length>0?o("tableParts",{count:l.length},l.join("")):"")+this.extensions()+"</worksheet>"),t.end(),n.tables.map((y,b)=>this.tableXml(y,e+b))}extensions(){const t=[];return this.newerRules.length>0&&t.push(o("ext",{uri:re.conditional,"xmlns:x14":ne},o("x14:conditionalFormattings",{},this.newerRules.join("")))),this.newerValidations.length>0&&t.push(o("ext",{uri:re.validations,"xmlns:x14":ne},o("x14:dataValidations",{count:this.newerValidations.length,"xmlns:xm":oe},this.newerValidations.join("")))),t.length===0?"":o("extLst",{},t.join(""))}bound(t){if(t===void 0)return"";if(typeof t=="number")return String(t);if(!t.startsWith("=")){const e=Ae(t);return typeof e.value=="number"&&e.formula===void 0?String(e.value):`"${t.replaceAll('"','""')}"`}const s=$e(t);return s.ok?N(s.node,{isTable:this.isTable,array:!0}):t.slice(1)}cfvo(t,s){const e=t.value===void 0?void 0:typeof t.value=="number"?String(t.value):this.bound(t.value);return s?o("x14:cfvo",{type:t.at},e===void 0?"":o("xm:f",{},x(e))):o("cfvo",{type:t.at,val:e})}crosses(t){return t.some(s=>Ge(s?.node,this.sheet.name))}condition(t,s){const{spec:e}=t,n=e.range,r=e.type!=="dataBar"&&this.crosses(t.formulas),l=(f,m,...u)=>{if(!r){const $=Object.keys(m).length===0?void 0:this.styles.dxf(m);return o("conditionalFormatting",{sqref:n},o("cfRule",{...f,dxfId:$,priority:s,stopIfTrue:e.stop===!0?!0:void 0},...u))}return this.newerRules.push(o("x14:conditionalFormatting",{"xmlns:xm":oe},o("x14:cfRule",{...f,priority:s,stopIfTrue:e.stop===!0?!0:void 0,id:Ye(this.index,s)},...u.map($=>$.replace(/^<formula>(.*)<\/formula>$/su,"<xm:f>$1</xm:f>")),Object.keys(m).length===0?"":this.styles.dxfXml(m,"x14:dxf")),o("xm:sqref",{},n))),""},h=et(e),c=t.areas[0],i=c?_({row:c.top,col:c.left}):"A1",d=f=>o("formula",{},x(f));switch(e.type){case"cellIs":return l({type:"cellIs",operator:e.operator},h,...e.formula.map(f=>d(this.bound(f))));case"containsText":{const f=e.operator??"contains",m=`"${e.text.replaceAll('"','""')}"`,u=f==="contains"?`NOT(ISERROR(SEARCH(${m},${i})))`:f==="notContains"?`ISERROR(SEARCH(${m},${i}))`:f==="beginsWith"?`LEFT(${i},LEN(${m}))=${m}`:`RIGHT(${i},LEN(${m}))=${m}`;return l({type:f==="contains"?"containsText":f==="notContains"?"notContainsText":f,operator:f==="contains"?"containsText":f,text:e.text},h,d(u))}case"duplicateValues":case"uniqueValues":return l({type:e.type},h);case"top10":return l({type:"top10",percent:e.percent===!0?!0:void 0,bottom:e.bottom===!0?!0:void 0,rank:e.rank},h);case"aboveAverage":return l({type:"aboveAverage",aboveAverage:e.below===!0?!1:void 0,equalAverage:e.equal===!0?!0:void 0},h);case"expression":return l({type:"expression"},h,d(this.bound(e.formula.startsWith("=")?e.formula:`=${e.formula}`)));case"dataBar":return l({type:"dataBar"},{},o("dataBar",{showValue:e.show===!1?!1:void 0},this.cfvo(e.min??{at:"min"},!1),this.cfvo(e.max??{at:"max"},!1),o("color",{rgb:le(e.color)})));case"colorScale":{const f=r?"x14:":"";return l({type:"colorScale"},{},o(`${f}colorScale`,{},...e.stops.map(m=>this.cfvo(m,r)),...e.stops.map(m=>o(`${f}color`,{rgb:le(m.color)}))))}case"iconSet":{const f=Number.parseInt(e.icons,10),m=e.stops??Array.from({length:f},(u,$)=>({at:"percent",value:Math.round($*100/f)}));return l({type:"iconSet"},{},o(r?"x14:iconSet":"iconSet",{iconSet:e.icons,showValue:e.show===!1?!1:void 0,reverse:e.reverse===!0?!0:void 0},...m.map(u=>this.cfvo(u,r))))}}}validation(t){const{spec:s}=t;let e="",n=this.crosses(t.formulas);if(s.values){const i=s.values.join(",");i.length>De||s.values.some(d=>d.includes(",")||d.includes('"'))?(e=this.lists.place(s.values),n=!0):e=`"${i}"`}else e=this.bound(s.formula?.[0]);const r=this.bound(s.formula?.[1]),{error:l,prompt:h}=s;s.multiple===!0&&this.left.push(`${this.sheet.name}!${s.range}: several choices in a cell: its text stays, and Excel's list offers one at a time`);const c={type:s.type,errorStyle:l?.style===void 0||l.style==="stop"?void 0:l.style,operator:s.operator===void 0||s.operator==="between"?void 0:s.operator,allowBlank:s.blank===!1?void 0:!0,showDropDown:s.dropdown===!1?!0:void 0,showInputMessage:h?.show===!1?void 0:!0,showErrorMessage:l?.show===!1||s.multiple===!0?void 0:!0,errorTitle:l?.title,error:l?.message,promptTitle:h?.title,prompt:h?.message};return n?(this.newerValidations.push(o("x14:dataValidation",c,e===""?"":o("x14:formula1",{},o("xm:f",{},x(e))),r===""?"":o("x14:formula2",{},o("xm:f",{},x(r))),o("xm:sqref",{},s.range))),""):o("dataValidation",{...c,sqref:s.range},e===""?"":o("formula1",{},x(e)),r===""?"":o("formula2",{},x(r)))}validations(){const t=this.sheet.validations.map(s=>this.validation(s)).filter(s=>s!=="");return t.length===0?"":o("dataValidations",{count:t.length},t.join(""))}filterColumns(t){return[...t.columns.entries()].sort(([s],[e])=>s-e).map(([s,e])=>tt(s-t.area.left,e))}sheetFilter(){const t=this.sheet.filters.find(s=>!s.table);return t?o("autoFilter",{ref:M(t.area)},...this.filterColumns(t)):""}columnFormula(t,s){if(!s?.node)return"";const e=B(s.node,this.isRangeName),n=N(s.node,{table:t.name,isTable:this.isTable,array:e});return o("calculatedColumnFormula",{array:e?!0:void 0},x(n))}tableXml(t,s){const e=t.area,n=M({...e,bottom:Math.max(e.bottom,e.top+1)}),r=t.spec.style??DEFAULT_TABLE_STYLE,l=this.sheet.filters.find(h=>h.table===t);return S+o("table",{xmlns:k.main,id:s,name:t.name,displayName:t.name,ref:n,totalsRowShown:0},l?o("autoFilter",{ref:n},...this.filterColumns(l)):"",o("tableColumns",{count:t.columns.length},t.columns.map((h,c)=>o("tableColumn",{id:c+1,name:h.name},this.columnFormula(t,h.formula))).join("")),r==="none"?o("tableStyleInfo",{showFirstColumn:0,showLastColumn:0,showRowStripes:1,showColumnStripes:0}):o("tableStyleInfo",{name:r,showFirstColumn:0,showLastColumn:0,showRowStripes:1,showColumnStripes:0}))}}const ie=a=>{let t;for(const s of Object.values(a??{}))s.level!==void 0&&(t=Math.max(t??0,s.level));return t},ae=a=>[a.left===void 0?"":`&L${a.left}`,a.center===void 0?"":`&C${a.center}`,a.right===void 0?"":`&R${a.right}`].join(""),Je=a=>typeof a=="string"?{text:a,author:K}:{text:a.text,author:a.author??K};function Ke(a){const t=a.map(([e,n])=>({ref:e,...Je(n)})),s=[...new Set(t.map(e=>e.author))];return S+o("comments",{xmlns:k.main},o("authors",{},s.map(e=>o("author",{},x(e))).join("")),o("commentList",{},t.map(e=>o("comment",{ref:e.ref,authorId:s.indexOf(e.author)},o("text",{},o("r",{},o("t",/^\s|\s$|\n/u.test(e.text)?{"xml:space":"preserve"}:{},x(e.text)))))).join("")))}function Qe(a){return`<xml xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel"><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout><v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe"><v:stroke joinstyle="miter"/><v:path gradientshapeok="t" o:connecttype="rect"/></v:shapetype>${a.flatMap(([s],e)=>{const n=te(s);return n?[`<v:shape id="_x0000_s${String(1025+e)}" type="#_x0000_t202" style="position:absolute;margin-left:80pt;margin-top:5pt;width:120pt;height:60pt;z-index:${String(e+1)};visibility:hidden" fillcolor="#ffffe1" o:insetmode="auto"><v:fill color2="#ffffe1"/><v:shadow on="t" color="black" obscured="t"/><v:path o:connecttype="none"/><v:textbox style="mso-direction-alt:auto"><div style="text-align:left"></div></v:textbox><x:ClientData ObjectType="Note"><x:MoveWithCells/><x:SizeWithCells/><x:Anchor>${String(n.col+1)}, 15, ${String(n.row)}, 2, ${String(n.col+3)}, 15, ${String(n.row+4)}, 4</x:Anchor><x:AutoFill>False</x:AutoFill><x:Row>${String(n.row)}</x:Row><x:Column>${String(n.col)}</x:Column></x:ClientData></v:shape>`]:[]}).join("")}</xml>`}const le=a=>`FF${a.slice(1).toUpperCase()}`;function et(a){if(a.type==="dataBar"||a.type==="colorScale"||a.type==="iconSet")return{};const t={};for(const s of["bold","italic","underline","strike","color","fill","border"])a[s]!==void 0&&(t[s]=a[s]);return t}function tt(a,t){return o("filterColumn",{colId:a},o("filters",{blank:t.blanks===!0?!0:void 0},(t.values??[]).map(s=>o("filter",{val:s})).join("")))}const C=a=>a===void 0?"":` s="${String(a)}"`,ce=a=>a.code!=="#CYCLE!",st=new Set(["width","height","hidden"]);function de(a){if(!a)return;const t=Object.fromEntries(Object.entries(a).filter(([s])=>!st.has(s)));return Object.keys(t).length===0?void 0:t}const V=a=>S+o("Relationships",{xmlns:k.pkg},a.map(([t,s,e],n)=>o("Relationship",{Id:`rId${String(n+1)}`,Type:t,Target:s,TargetMode:e})).join(""));function nt(a,t){const s=t.formula?.node;if(s)return N(s,{isTable:n=>a.table(n)!==void 0,array:!0});const{value:e}=t;return e==null?'""':typeof e=="string"?`"${e.replaceAll('"','""')}"`:typeof e=="boolean"?e?"TRUE":"FALSE":e instanceof P?e.code:String(e)}const ot=(a,t)=>a.length===t.length&&a.every((s,e)=>s===t[e]),he=a=>`$${D(a.left)}$${String(a.top+1)}:$${D(a.right)}$${String(a.bottom+1)}`;function rt(a){const t=[],s=(e,n)=>o("definedName",{name:e.name,localSheetId:n,hidden:e.hidden===!0?!0:void 0},x(nt(a,e)));for(const e of a.names.values())t.push(s(e));return a.sheets.forEach((e,n)=>{for(const d of e.names.values())t.push(s(d,n));const r=e.filters.find(d=>!d.table);r&&t.push(o("definedName",{name:"_xlnm._FilterDatabase",localSheetId:n,hidden:!0},x(`${X(e.name)}${he(r.area)}`)));const l=X(e.name),h=e.spec.print,c=h?.area===void 0?void 0:ge(h.area);c&&t.push(o("definedName",{name:"_xlnm.Print_Area",localSheetId:n},x(`${l}${he(c)}`)));const i=[h?.title_cols?.toUpperCase().replace(/([A-Z]+):([A-Z]+)/u,"$$$1:$$$2"),h?.title_rows?.replace(/(\d+):(\d+)/u,"$$$1:$$$2")].flatMap(d=>d===void 0?[]:[`${l}${d}`]);i.length>0&&t.push(o("definedName",{name:"_xlnm.Print_Titles",localSheetId:n},x(i.join(","))))}),t}export function writeXlsx(a,t={}){const s=a.wb,e=[];s.checks.length>0&&e.push(`${String(s.checks.length)} check${s.checks.length===1?"":"s"}: a file has no such thing`);const n=ke(a);e.push(...n.left);const r=new Me,l=new Ve,h=new We(s),c=new _e,i=[["/xl/workbook.xml",A.sheet]],d=Math.max(0,s.sheets.findIndex(p=>p.spec.hidden!==!0));let f=1,m=!1;const u=new Map;let $=0,T=0,y=0;for(const[p,w]of s.sheets.entries()){const H=String(p+1),O=Be(w,a,t.file,e),F=w.charts.filter(({spec:g})=>[g.categories,...g.series.flatMap(E=>[E.values,E.x])].some(E=>E?.endsWith("#"))).length;F>0&&e.push(`${w.name}: ${String(F)} chart${F===1?"":"s"} on a spill: ${F===1?"it reads":"they read"} the cells the spill covers now, and will not grow with it`);const Z=new Ze(w,a,r,l,t.cached!==!1,e,h,p,O,n.sheets.find(g=>g.sheet===w)),me=Z.write(c.part(`xl/worksheets/sheet${H}.xml`),p===d,f);m||=Z.arrays,i.push([`/xl/worksheets/sheet${H}.xml`,A.worksheet]);const R=[];for(const g of me){const E=`table${String(f)}.xml`;f+=1,c.add(`xl/tables/${E}`,g),i.push([`/xl/tables/${E}`,A.table]),R.push([`${v}table`,`../tables/${E}`])}if(w.charts.length>0||O.length>0){$+=1;const g=`drawing${String($)}.xml`;c.add(`xl/drawings/${g}`,Te(w.charts,O)),i.push([`/xl/drawings/${g}`,A.drawing]),R.push([`${v}drawing`,`../drawings/${g}`]);const E=w.charts.map(L=>{T+=1;const I=`chart${String(T)}.xml`;return c.add(`xl/charts/${I}`,Ee(a,w,L)),i.push([`/xl/charts/${I}`,A.chart]),[`${v}chart`,`../charts/${I}`]});for(const L of O){const J=[...u].find(([,ue])=>ot(ue,L.bytes))?.[0]??`image${String(u.size+1)}${L.file}`;u.set(J,L.bytes),E.push([`${v}image`,`../media/${J}`])}c.add(`xl/drawings/_rels/${g}.rels`,V(E))}const U=Object.entries(w.spec.notes??{});if(U.length>0){y+=1;const g=String(y);c.add(`xl/comments${g}.xml`,Ke(U)),i.push([`/xl/comments${g}.xml`,A.comments]),c.add(`xl/drawings/vmlDrawing${g}.vml`,Qe(U)),R.push([`${v}vmlDrawing`,`../drawings/vmlDrawing${g}.vml`]),R.push([`${v}comments`,`../comments${g}.xml`])}for(const g of Object.values(w.spec.links??{}))g.startsWith("#")||R.push([`${v}hyperlink`,g,"External"]);R.length>0&&c.add(`xl/worksheets/_rels/sheet${H}.xml.rels`,V(R))}const b=s.sheets.length,z=h.columns.length>0;if(z){const p=`xl/worksheets/sheet${String(b+1)}.xml`;c.add(p,h.xml(l)),i.push([`/${p}`,A.worksheet])}const j=[...s.sheets,...z?[void 0]:[]].map((p,w)=>[`${v}worksheet`,`worksheets/sheet${String(w+1)}.xml`]);j.push([`${v}theme`,"theme/theme1.xml"]),j.push([`${v}styles`,"styles.xml"]),j.push([`${v}sharedStrings`,"sharedStrings.xml"]),m&&(j.push([`${v}sheetMetadata`,"metadata.xml"]),i.push(["/xl/metadata.xml",A.metadata]));const G=rt(s),Y=s.sheets.map((p,w)=>o("sheet",{name:p.name,sheetId:w+1,state:p.spec.hidden===!0?"hidden":void 0,"r:id":`rId${String(w+1)}`}));z&&Y.push(o("sheet",{name:h.name,sheetId:b+1,state:"veryHidden","r:id":`rId${String(b+1)}`})),c.add("xl/workbook.xml",S+o("workbook",{xmlns:k.main,"xmlns:r":k.rel},o("workbookPr",{}),o("bookViews",{},o("workbookView",{activeTab:d===0?void 0:d})),o("sheets",{},Y.join("")),G.length>0?o("definedNames",{},G.join("")):"",o("calcPr",{calcId:je,fullCalcOnLoad:!0}))),c.add("xl/_rels/workbook.xml.rels",V(j)),c.add("xl/styles.xml",S+r.xml()),l.write(c.part("xl/sharedStrings.xml")),c.add("xl/theme/theme1.xml",S+Re),m&&c.add("xl/metadata.xml",S+Ne),c.add("docProps/core.xml",S+o("cp:coreProperties",{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/"},s.title===void 0?"":o("dc:title",{},x(s.title)))),c.add("docProps/app.xml",S+o("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"},o("Application",{},"AllyHub"))),c.add("_rels/.rels",V([[`${v}officeDocument`,"xl/workbook.xml"],["http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"],[`${v}extended-properties`,"docProps/app.xml"]])),i.push(["/xl/styles.xml",A.styles],["/xl/sharedStrings.xml",A.strings],["/xl/theme/theme1.xml",A.theme],["/docProps/core.xml",A.core],["/docProps/app.xml",A.app]);const fe=[...u].sort(([p],[w])=>p.localeCompare(w));for(const[p,w]of fe)c.add(`xl/media/${p}`,w);return c.add("[Content_Types].xml",S+o("Types",{xmlns:k.types},o("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),o("Default",{Extension:"xml",ContentType:"application/xml"}),y>0?o("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}):"",[...new Set([...u.keys()].map(p=>p.split(".").pop()??""))].sort().map(p=>o("Default",{Extension:p,ContentType:`image/${p==="jpg"?"jpeg":p}`})).join(""),i.map(([p,w])=>o("Override",{PartName:p,ContentType:w})).join(""))),{bytes:c.finish(),left:e}}
@@ -1,40 +0,0 @@
1
- import { type ZipLimits } from "@allyhub-next/formats";
2
- /** A part being written: text in order, then its end. */
3
- export interface PartWriter {
4
- write(text: string): void;
5
- end(): void;
6
- }
7
- /** A zip written a part at a time, one part after another. */
8
- export declare class ZipOut {
9
- private readonly chunks;
10
- private readonly zip;
11
- private readonly encoder;
12
- private open;
13
- constructor();
14
- private entry;
15
- /** A part written in pieces. */
16
- part(path: string): PartWriter;
17
- /** A whole part at once. */
18
- add(path: string, content: string | Uint8Array): void;
19
- /** The zip's bytes; nothing can be added after. */
20
- finish(): Uint8Array;
21
- }
22
- /** A zip read through its central directory: any part, when it is asked for. */
23
- export declare class ZipIn {
24
- private readonly bytes;
25
- private readonly entries;
26
- private readonly lower;
27
- constructor(bytes: Uint8Array, limits?: Partial<ZipLimits>);
28
- get names(): string[];
29
- private find;
30
- has(path: string): boolean;
31
- /** Its parts as the central directory lists them. */
32
- private directory;
33
- /** A part's bytes, a piece at a time; never more than the directory says it holds. */
34
- stream(path: string, onBytes: (chunk: Uint8Array) => void): boolean;
35
- /** A part's text, a piece at a time. */
36
- streamText(path: string, onText: (text: string) => void): boolean;
37
- bytesOf(path: string): Uint8Array | undefined;
38
- text(path: string): string | undefined;
39
- }
40
- //# sourceMappingURL=zip.d.ts.map
@@ -1,2 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{Inflate as C,Zip as D,ZipDeflate as M}from"fflate";import{withinZip as U,ZipLimitError as E}from"@allyhub-next/formats";const O=new Date(1980,0,1),_=1<<20;export class ZipOut{chunks=[];zip;encoder=new TextEncoder;open=!1;constructor(){this.zip=new D((t,e)=>{if(t)throw t;this.chunks.push(e)})}entry(t){if(this.open)throw new Error(`${t} is written while a part is open.`);const e=new M(t,{level:6});return e.mtime=O,this.zip.add(e),e}part(t){const e=this.entry(t);this.open=!0;let n=[],s=0;const i=o=>{const r=n.length===1?n[0]??"":n.join("");n=[],s=0,e.push(this.encoder.encode(r),o)};return{write:o=>{n.push(o),s+=o.length,s>=_&&i(!1)},end:()=>{i(!0),this.open=!1}}}add(t,e){this.entry(t).push(typeof e=="string"?this.encoder.encode(e):e,!0)}finish(){this.zip.end();let t=0;for(const s of this.chunks)t+=s.length;const e=new Uint8Array(t);let n=0;for(const s of this.chunks)e.set(s,n),n+=s.length;return e}}const g=65536,h=(f,t)=>(f[t]??0)|(f[t+1]??0)<<8,a=(f,t)=>(h(f,t)|h(f,t+2)<<16)>>>0,d=(f,t)=>a(f,t)+a(f,t+4)*4294967296,A=f=>{let t="";for(const e of f)t+=String.fromCharCode(e);return t};export class ZipIn{bytes;entries=new Map;lower=new Map;constructor(t,e){this.bytes=t;const n=U(e);for(const s of this.directory())n({name:s.name,originalSize:s.size}),this.entries.set(s.name,s),this.lower.set(s.name.toLowerCase(),s)}get names(){return[...this.entries.keys()]}find(t){return this.entries.get(t)??this.lower.get(t.toLowerCase())}has(t){return this.find(t)!==void 0}*directory(){const t=this.bytes;let e=-1;for(let r=t.length-22;r>=Math.max(0,t.length-22-65535);r--)if(a(t,r)===101010256){e=r;break}if(e<0)throw new Error("It has no zip directory.");let n=h(t,e+10),s=a(t,e+16);if((n===65535||s===4294967295)&&a(t,e-20)===117853008){const r=d(t,e-12);if(a(t,r)!==101075792)throw new Error("Its zip64 end is lost.");n=d(t,r+32),s=d(t,r+48)}const i=new TextDecoder;let o=s;for(let r=0;r<n;r++){if(a(t,o)!==33639248)throw new Error("Its zip directory is damaged.");const I=h(t,o+8),Z=h(t,o+10);let w=a(t,o+20),m=a(t,o+24);const y=h(t,o+28),L=h(t,o+30),T=h(t,o+32);let c=a(t,o+42);const x=t.subarray(o+46,o+46+y),p=I&2048?i.decode(x):A(x);let l=o+46+y;const z=l+L;for(;l+4<=z;){const $=h(t,l),k=h(t,l+2);if($===1){let u=l+4;m===4294967295&&(m=d(t,u),u+=8),w===4294967295&&(w=d(t,u),u+=8),c===4294967295&&(c=d(t,u))}l+=4+k}if(o=z+T,a(t,c)!==67324752)throw new Error(`Its part ${p} is lost.`);const b=c+30+h(t,c+26)+h(t,c+28);if(b+w>t.length)throw new Error(`Its part ${p} is cut short.`);p.endsWith("/")||(yield{name:p,method:Z,start:b,compressed:w,size:m})}}stream(t,e){const n=this.find(t);if(!n)return!1;const s=this.bytes.subarray(n.start,n.start+n.compressed);if(n.method===0){if(s.length>n.size)throw new E(`${n.name} holds more than it says.`);return e(s),!0}if(n.method!==8)throw new Error(`${n.name} is compressed in a way a zip reader here does not know.`);let i=0;const o=new C(r=>{if(i+=r.length,i>n.size)throw new E(`${n.name} unzips to more than it says.`);e(r)});for(let r=0;r<s.length;r+=g)o.push(s.subarray(r,r+g),r+g>=s.length);return s.length===0&&o.push(s,!0),!0}streamText(t,e){const n=new TextDecoder;if(!this.stream(t,o=>{const r=n.decode(o,{stream:!0});r!==""&&e(r)}))return!1;const i=n.decode();return i!==""&&e(i),!0}bytesOf(t){const e=this.find(t);if(!e)return;const n=new Uint8Array(e.size);let s=0;return this.stream(t,i=>{n.set(i,s),s+=i.length}),s===n.length?n:n.subarray(0,s)}text(t){const e=this.bytesOf(t);return e===void 0?void 0:new TextDecoder().decode(e)}}
@@ -1,21 +0,0 @@
1
- {
2
- "name": "@allyhub-next/sheet",
3
- "version": "0.7.1",
4
- "type": "module",
5
- "exports": {
6
- ".": {
7
- "types": "./dist/index.d.ts",
8
- "default": "./dist/index.js"
9
- },
10
- "./api": {
11
- "types": "./dist/api/index.d.ts",
12
- "default": "./dist/api/index.js"
13
- },
14
- "./xlsx": {
15
- "types": "./dist/xlsx/index.d.ts",
16
- "default": "./dist/xlsx/index.js"
17
- }
18
- },
19
- "private": true,
20
- "license": "SEE LICENSE IN LICENSE.md"
21
- }