@allyhub/sdk 0.4.0 → 0.5.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 (549) hide show
  1. package/{node_modules → dist/node_modules}/@allyhub-next/audio/package.json +1 -1
  2. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.d.ts +31 -0
  3. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +3 -0
  4. package/{node_modules/@allyhub-next/slides-core → dist/node_modules/@allyhub-next/chart}/dist/chart.d.ts +26 -15
  5. package/dist/node_modules/@allyhub-next/chart/dist/chart.js +2 -0
  6. package/dist/node_modules/@allyhub-next/chart/dist/index.d.ts +3 -0
  7. package/dist/node_modules/@allyhub-next/chart/dist/index.js +2 -0
  8. package/dist/node_modules/@allyhub-next/chart/package.json +14 -0
  9. package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/reference.d.ts +0 -86
  10. package/dist/node_modules/@allyhub-next/formats/dist/data/reference.js +2 -0
  11. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +4908 -0
  12. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
  13. package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/slides.d.ts +3 -0
  14. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +2 -0
  15. package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/index.d.ts +1 -0
  16. package/dist/node_modules/@allyhub-next/formats/dist/index.js +2 -0
  17. package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/items.d.ts +1 -1
  18. package/dist/node_modules/@allyhub-next/formats/dist/items.js +2 -0
  19. package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +2146 -0
  20. package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +2 -0
  21. package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +28 -0
  22. package/dist/node_modules/@allyhub-next/formats/dist/strict.js +2 -0
  23. package/{node_modules → dist/node_modules}/@allyhub-next/formats/package.json +1 -1
  24. package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/editor.d.ts +10 -0
  25. package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/editor.js +1 -1
  26. package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/notes.d.ts +2 -0
  27. package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
  28. package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/tools.d.ts +6 -0
  29. package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +2 -0
  30. package/{node_modules → dist/node_modules}/@allyhub-next/protocol/package.json +1 -1
  31. package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/lock.d.ts +2 -0
  32. package/dist/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -0
  33. package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/runtimes.d.ts +6 -0
  34. package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.js +4 -0
  35. package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/package.json +1 -1
  36. package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/moire.d.ts +7 -0
  37. package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/phone.d.ts +3 -1
  38. package/dist/node_modules/@allyhub-next/scenery/dist/phone.js +2 -0
  39. package/{node_modules → dist/node_modules}/@allyhub-next/scenery/package.json +1 -1
  40. package/dist/node_modules/@allyhub-next/sheet/dist/address.d.ts +32 -0
  41. package/dist/node_modules/@allyhub-next/sheet/dist/address.js +2 -0
  42. package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.d.ts +23 -0
  43. package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +2 -0
  44. package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.d.ts +204 -0
  45. package/dist/node_modules/@allyhub-next/sheet/dist/api/charts.js +2 -0
  46. package/dist/node_modules/@allyhub-next/sheet/dist/api/code.d.ts +19 -0
  47. package/dist/node_modules/@allyhub-next/sheet/dist/api/code.js +2 -0
  48. package/dist/node_modules/@allyhub-next/sheet/dist/api/hint.d.ts +3 -0
  49. package/dist/node_modules/@allyhub-next/sheet/dist/api/hint.js +2 -0
  50. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +7 -0
  51. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +2 -0
  52. package/dist/node_modules/@allyhub-next/sheet/dist/api/rectangles.d.ts +4 -0
  53. package/dist/node_modules/@allyhub-next/sheet/dist/api/rectangles.js +2 -0
  54. package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.d.ts +170 -0
  55. package/dist/node_modules/@allyhub-next/sheet/dist/api/rules.js +2 -0
  56. package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.d.ts +117 -0
  57. package/dist/node_modules/@allyhub-next/sheet/dist/api/styles.js +2 -0
  58. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +323 -0
  59. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +2 -0
  60. package/dist/node_modules/@allyhub-next/sheet/dist/arrange.d.ts +68 -0
  61. package/dist/node_modules/@allyhub-next/sheet/dist/arrange.js +2 -0
  62. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +21 -0
  63. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +2 -0
  64. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +19 -0
  65. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +2 -0
  66. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +152 -0
  67. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +2 -0
  68. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.d.ts +2 -0
  69. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +2 -0
  70. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.d.ts +15 -0
  71. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +2 -0
  72. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.d.ts +2 -0
  73. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +2 -0
  74. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.d.ts +2 -0
  75. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +2 -0
  76. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +69 -0
  77. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +2 -0
  78. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/distributions.d.ts +2 -0
  79. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/distributions.js +2 -0
  80. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +2 -0
  81. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +2 -0
  82. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.d.ts +2 -0
  83. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +2 -0
  84. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +15 -0
  85. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +2 -0
  86. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.d.ts +2 -0
  87. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +2 -0
  88. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.d.ts +2 -0
  89. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +2 -0
  90. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.d.ts +2 -0
  91. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +2 -0
  92. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.d.ts +2 -0
  93. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +2 -0
  94. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.d.ts +2 -0
  95. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +2 -0
  96. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/special.d.ts +29 -0
  97. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/special.js +2 -0
  98. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.d.ts +2 -0
  99. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +2 -0
  100. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +50 -0
  101. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +2 -0
  102. package/dist/node_modules/@allyhub-next/sheet/dist/chart.d.ts +58 -0
  103. package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +2 -0
  104. package/dist/node_modules/@allyhub-next/sheet/dist/check.d.ts +15 -0
  105. package/dist/node_modules/@allyhub-next/sheet/dist/check.js +2 -0
  106. package/dist/node_modules/@allyhub-next/sheet/dist/csv.d.ts +62 -0
  107. package/dist/node_modules/@allyhub-next/sheet/dist/csv.js +12 -0
  108. package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +64 -0
  109. package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +2 -0
  110. package/dist/node_modules/@allyhub-next/sheet/dist/edit.d.ts +154 -0
  111. package/dist/node_modules/@allyhub-next/sheet/dist/edit.js +2 -0
  112. package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +11 -0
  113. package/dist/node_modules/@allyhub-next/sheet/dist/export.js +6 -0
  114. package/dist/node_modules/@allyhub-next/sheet/dist/file.d.ts +19 -0
  115. package/dist/node_modules/@allyhub-next/sheet/dist/file.js +3 -0
  116. package/dist/node_modules/@allyhub-next/sheet/dist/files.d.ts +24 -0
  117. package/dist/node_modules/@allyhub-next/sheet/dist/files.js +2 -0
  118. package/dist/node_modules/@allyhub-next/sheet/dist/fill.d.ts +30 -0
  119. package/dist/node_modules/@allyhub-next/sheet/dist/fill.js +2 -0
  120. package/dist/node_modules/@allyhub-next/sheet/dist/filter.d.ts +29 -0
  121. package/dist/node_modules/@allyhub-next/sheet/dist/filter.js +2 -0
  122. package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +9 -0
  123. package/dist/node_modules/@allyhub-next/sheet/dist/format.js +2 -0
  124. package/dist/node_modules/@allyhub-next/sheet/dist/formula/ast.d.ts +113 -0
  125. package/dist/node_modules/@allyhub-next/sheet/dist/formula/ast.js +2 -0
  126. package/dist/node_modules/@allyhub-next/sheet/dist/formula/move.d.ts +6 -0
  127. package/dist/node_modules/@allyhub-next/sheet/dist/formula/move.js +2 -0
  128. package/dist/node_modules/@allyhub-next/sheet/dist/formula/parse.d.ts +4 -0
  129. package/dist/node_modules/@allyhub-next/sheet/dist/formula/parse.js +2 -0
  130. package/dist/node_modules/@allyhub-next/sheet/dist/formula/print.d.ts +6 -0
  131. package/dist/node_modules/@allyhub-next/sheet/dist/formula/print.js +2 -0
  132. package/dist/node_modules/@allyhub-next/sheet/dist/formula/rewrite.d.ts +65 -0
  133. package/dist/node_modules/@allyhub-next/sheet/dist/formula/rewrite.js +2 -0
  134. package/dist/node_modules/@allyhub-next/sheet/dist/formula/walk.d.ts +6 -0
  135. package/dist/node_modules/@allyhub-next/sheet/dist/formula/walk.js +2 -0
  136. package/dist/node_modules/@allyhub-next/sheet/dist/generated.d.ts +46 -0
  137. package/dist/node_modules/@allyhub-next/sheet/dist/generated.js +2 -0
  138. package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +34 -0
  139. package/dist/node_modules/@allyhub-next/sheet/dist/html.js +20 -0
  140. package/dist/node_modules/@allyhub-next/sheet/dist/import.d.ts +11 -0
  141. package/dist/node_modules/@allyhub-next/sheet/dist/import.js +2 -0
  142. package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +38 -0
  143. package/dist/node_modules/@allyhub-next/sheet/dist/index.js +2 -0
  144. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.d.ts +25 -0
  145. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +2 -0
  146. package/dist/node_modules/@allyhub-next/sheet/dist/patch.d.ts +4 -0
  147. package/dist/node_modules/@allyhub-next/sheet/dist/patch.js +2 -0
  148. package/dist/node_modules/@allyhub-next/sheet/dist/profile.d.ts +30 -0
  149. package/dist/node_modules/@allyhub-next/sheet/dist/profile.js +2 -0
  150. package/dist/node_modules/@allyhub-next/sheet/dist/rules.d.ts +56 -0
  151. package/dist/node_modules/@allyhub-next/sheet/dist/rules.js +2 -0
  152. package/dist/node_modules/@allyhub-next/sheet/dist/scenario.d.ts +42 -0
  153. package/dist/node_modules/@allyhub-next/sheet/dist/scenario.js +2 -0
  154. package/dist/node_modules/@allyhub-next/sheet/dist/series.d.ts +10 -0
  155. package/dist/node_modules/@allyhub-next/sheet/dist/series.js +2 -0
  156. package/dist/node_modules/@allyhub-next/sheet/dist/sort.d.ts +24 -0
  157. package/dist/node_modules/@allyhub-next/sheet/dist/sort.js +2 -0
  158. package/dist/node_modules/@allyhub-next/sheet/dist/structure.d.ts +38 -0
  159. package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +2 -0
  160. package/dist/node_modules/@allyhub-next/sheet/dist/validate.d.ts +26 -0
  161. package/dist/node_modules/@allyhub-next/sheet/dist/validate.js +2 -0
  162. package/dist/node_modules/@allyhub-next/sheet/dist/values.d.ts +67 -0
  163. package/dist/node_modules/@allyhub-next/sheet/dist/values.js +2 -0
  164. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +315 -0
  165. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +2 -0
  166. package/dist/node_modules/@allyhub-next/sheet/dist/write.d.ts +5 -0
  167. package/dist/node_modules/@allyhub-next/sheet/dist/write.js +21 -0
  168. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +42 -0
  169. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +2 -0
  170. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/colors.d.ts +19 -0
  171. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/colors.js +2 -0
  172. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +21 -0
  173. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +4 -0
  174. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +5 -0
  175. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +17 -0
  176. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +44 -0
  177. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +2 -0
  178. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/index.d.ts +5 -0
  179. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/index.js +2 -0
  180. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/numfmt.d.ts +8 -0
  181. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/numfmt.js +2 -0
  182. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +117 -0
  183. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -0
  184. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +23 -0
  185. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +2 -0
  186. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/theme.d.ts +3 -0
  187. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/theme.js +2 -0
  188. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +17 -0
  189. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +2 -0
  190. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/xml.d.ts +28 -0
  191. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/xml.js +3 -0
  192. package/dist/node_modules/@allyhub-next/sheet/package.json +21 -0
  193. package/dist/node_modules/@allyhub-next/slides-core/LICENSE +241 -0
  194. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/chart-api.d.ts +1 -1
  195. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
  196. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/chart-file.d.ts +1 -1
  197. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
  198. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/index.d.ts +1 -1
  199. package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
  200. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/model.d.ts +2 -5
  201. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/resolve.d.ts +1 -1
  202. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +7 -0
  203. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +2 -0
  204. package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/package.json +1 -1
  205. package/dist/node_modules/@allyhub-next/video-core/LICENSE +241 -0
  206. package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/fact.d.ts +8 -2
  207. package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +2 -0
  208. package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/formats.d.ts +0 -28
  209. package/dist/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
  210. package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/measure.d.ts +10 -0
  211. package/dist/node_modules/@allyhub-next/video-core/dist/measure.js +5 -0
  212. package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/problem.d.ts +5 -1
  213. package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
  214. package/{node_modules → dist/node_modules}/@allyhub-next/video-core/package.json +1 -1
  215. package/dist/phone.js +1 -1
  216. package/dist/sheets.d.ts +2 -0
  217. package/dist/sheets.js +2 -0
  218. package/docs/README.md +2 -2
  219. package/docs/defaults.md +1 -0
  220. package/docs/project.md +1 -1
  221. package/docs/scenery.md +1 -1
  222. package/docs/sheets.md +377 -84
  223. package/docs/slides.md +1 -1
  224. package/docs/speech.md +1 -1
  225. package/package.json +11 -19
  226. package/node_modules/@allyhub-next/formats/dist/data/reference.js +0 -2
  227. package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +0 -214
  228. package/node_modules/@allyhub-next/formats/dist/data/sheet.js +0 -2
  229. package/node_modules/@allyhub-next/formats/dist/data/slides.js +0 -2
  230. package/node_modules/@allyhub-next/formats/dist/index.js +0 -2
  231. package/node_modules/@allyhub-next/formats/dist/items.js +0 -2
  232. package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +0 -719
  233. package/node_modules/@allyhub-next/formats/dist/schemas.js +0 -2
  234. package/node_modules/@allyhub-next/protocol/dist/notes.js +0 -2
  235. package/node_modules/@allyhub-next/protocol/dist/tools.js +0 -2
  236. package/node_modules/@allyhub-next/runtimes/dist/lock.js +0 -2
  237. package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +0 -3
  238. package/node_modules/@allyhub-next/runtimes/pins/exceljs/package-lock.json +0 -2533
  239. package/node_modules/@allyhub-next/runtimes/pins/exceljs/package.json +0 -8
  240. package/node_modules/@allyhub-next/scenery/dist/phone.js +0 -2
  241. package/node_modules/@allyhub-next/slides-core/dist/chart-api.js +0 -2
  242. package/node_modules/@allyhub-next/slides-core/dist/chart-file.js +0 -2
  243. package/node_modules/@allyhub-next/slides-core/dist/chart.js +0 -2
  244. package/node_modules/@allyhub-next/slides-core/dist/index.js +0 -2
  245. package/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +0 -23
  246. package/node_modules/@allyhub-next/slides-core/dist/strict.js +0 -2
  247. package/node_modules/@allyhub-next/video-core/dist/fact.js +0 -2
  248. package/node_modules/@allyhub-next/video-core/dist/formats.js +0 -2
  249. package/node_modules/@allyhub-next/video-core/dist/measure.js +0 -5
  250. package/node_modules/@allyhub-next/video-core/dist/problem.js +0 -2
  251. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/LICENSE +0 -0
  252. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/at-cut.d.ts +0 -0
  253. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/at-cut.js +0 -0
  254. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/decode.d.ts +0 -0
  255. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/decode.js +0 -0
  256. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/envelope.d.ts +0 -0
  257. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/envelope.js +0 -0
  258. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/index.d.ts +0 -0
  259. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/index.js +0 -0
  260. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/levels.d.ts +0 -0
  261. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/levels.js +0 -0
  262. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/master.d.ts +0 -0
  263. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/master.js +0 -0
  264. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/music.d.ts +0 -0
  265. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/music.js +0 -0
  266. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/decode.d.ts +0 -0
  267. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/decode.js +0 -0
  268. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -0
  269. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ebur128.js +0 -0
  270. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -0
  271. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/ffmpeg.js +0 -0
  272. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/index.d.ts +0 -0
  273. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/index.js +0 -0
  274. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/loudness.d.ts +0 -0
  275. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/loudness.js +0 -0
  276. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/master.d.ts +0 -0
  277. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/master.js +0 -0
  278. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/measure.d.ts +0 -0
  279. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/measure.js +0 -0
  280. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/mix.d.ts +0 -0
  281. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/node/mix.js +0 -0
  282. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/plan.d.ts +0 -0
  283. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/plan.js +0 -0
  284. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recorded.d.ts +0 -0
  285. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recorded.js +0 -0
  286. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -0
  287. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/bandwidth.js +0 -0
  288. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/chain.d.ts +0 -0
  289. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/chain.js +0 -0
  290. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -0
  291. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/dynamics.js +0 -0
  292. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fft.d.ts +0 -0
  293. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fft.js +0 -0
  294. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/filters.d.ts +0 -0
  295. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/filters.js +0 -0
  296. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fit.d.ts +0 -0
  297. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/fit.js +0 -0
  298. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/index.d.ts +0 -0
  299. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/index.js +0 -0
  300. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -0
  301. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/loudness.js +0 -0
  302. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/measure.d.ts +0 -0
  303. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/measure.js +0 -0
  304. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/mic.d.ts +0 -0
  305. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/mic.js +0 -0
  306. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/noise.d.ts +0 -0
  307. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/noise.js +0 -0
  308. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/presets.d.ts +0 -0
  309. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/presets.js +0 -0
  310. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/room.d.ts +0 -0
  311. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/room.js +0 -0
  312. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/setup.d.ts +0 -0
  313. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/setup.js +0 -0
  314. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/vec.d.ts +0 -0
  315. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/recording/vec.js +0 -0
  316. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/render.d.ts +0 -0
  317. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/render.js +0 -0
  318. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/sfx.d.ts +0 -0
  319. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/sfx.js +0 -0
  320. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/shape.d.ts +0 -0
  321. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/shape.js +0 -0
  322. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/voice.d.ts +0 -0
  323. /package/{node_modules → dist/node_modules}/@allyhub-next/audio/dist/voice.js +0 -0
  324. /package/{node_modules/@allyhub-next/formats → dist/node_modules/@allyhub-next/chart}/LICENSE +0 -0
  325. /package/{node_modules/@allyhub-next/protocol → dist/node_modules/@allyhub-next/formats}/LICENSE +0 -0
  326. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/comments.d.ts +0 -0
  327. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/comments.js +0 -0
  328. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/config.d.ts +0 -0
  329. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/config.js +0 -0
  330. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/edits.d.ts +0 -0
  331. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/edits.js +0 -0
  332. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/elements.d.ts +0 -0
  333. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/elements.js +0 -0
  334. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/faces.d.ts +0 -0
  335. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/faces.js +0 -0
  336. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/file.d.ts +0 -0
  337. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/file.js +0 -0
  338. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/gen.d.ts +0 -0
  339. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/gen.js +0 -0
  340. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/messages.d.ts +0 -0
  341. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/messages.js +0 -0
  342. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/script.d.ts +0 -0
  343. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/script.js +0 -0
  344. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/words.d.ts +0 -0
  345. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/data/words.js +0 -0
  346. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/layout.d.ts +0 -0
  347. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/layout.js +0 -0
  348. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/note-shape.d.ts +0 -0
  349. /package/{node_modules → dist/node_modules}/@allyhub-next/formats/dist/note-shape.js +0 -0
  350. /package/{node_modules/@allyhub-next/runtimes → dist/node_modules/@allyhub-next/protocol}/LICENSE +0 -0
  351. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/app.d.ts +0 -0
  352. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/app.js +0 -0
  353. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/auth.d.ts +0 -0
  354. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/auth.js +0 -0
  355. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cli.d.ts +0 -0
  356. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cli.js +0 -0
  357. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cloud.d.ts +0 -0
  358. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/cloud.js +0 -0
  359. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/files.d.ts +0 -0
  360. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/files.js +0 -0
  361. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/index.d.ts +0 -0
  362. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/index.js +0 -0
  363. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/jsonrpc.d.ts +0 -0
  364. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/jsonrpc.js +0 -0
  365. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/registry.d.ts +0 -0
  366. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/registry.js +0 -0
  367. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/routes.d.ts +0 -0
  368. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/routes.js +0 -0
  369. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/runtimes.d.ts +0 -0
  370. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/runtimes.js +0 -0
  371. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/teams.d.ts +0 -0
  372. /package/{node_modules → dist/node_modules}/@allyhub-next/protocol/dist/teams.js +0 -0
  373. /package/{node_modules/@allyhub-next/scenery → dist/node_modules/@allyhub-next/runtimes}/LICENSE +0 -0
  374. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/bundled.d.ts +0 -0
  375. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/bundled.js +0 -0
  376. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/download.d.ts +0 -0
  377. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/download.js +0 -0
  378. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/errors.d.ts +0 -0
  379. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/errors.js +0 -0
  380. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/home.d.ts +0 -0
  381. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/home.js +0 -0
  382. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/index.d.ts +0 -0
  383. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/index.js +0 -0
  384. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/manifest.d.ts +0 -0
  385. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/manifest.js +0 -0
  386. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/node-program.d.ts +0 -0
  387. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/node-program.js +0 -0
  388. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/packages.d.ts +0 -0
  389. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/packages.js +0 -0
  390. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/unpack.d.ts +0 -0
  391. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/dist/unpack.js +0 -0
  392. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/manifest.json +0 -0
  393. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/docx/package-lock.json +0 -0
  394. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/docx/package.json +0 -0
  395. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +0 -0
  396. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/gltf-tools/package.json +0 -0
  397. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +0 -0
  398. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/manifold-3d/package.json +0 -0
  399. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +0 -0
  400. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +0 -0
  401. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -0
  402. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +0 -0
  403. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +0 -0
  404. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/pins/tesseract.js/package.json +0 -0
  405. /package/{node_modules → dist/node_modules}/@allyhub-next/runtimes/schemas/runtimes.schema.json +0 -0
  406. /package/{node_modules/@allyhub-next/slides-core → dist/node_modules/@allyhub-next/scenery}/LICENSE +0 -0
  407. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/NOTICE +0 -0
  408. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/aim.d.ts +0 -0
  409. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/aim.js +0 -0
  410. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/bake.d.ts +0 -0
  411. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/bake.js +0 -0
  412. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/camera.d.ts +0 -0
  413. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/camera.js +0 -0
  414. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/curve.d.ts +0 -0
  415. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/curve.js +0 -0
  416. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/define.d.ts +0 -0
  417. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/define.js +0 -0
  418. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/fit.d.ts +0 -0
  419. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/fit.js +0 -0
  420. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/glass.d.ts +0 -0
  421. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/glass.js +0 -0
  422. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/handheld.d.ts +0 -0
  423. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/handheld.js +0 -0
  424. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/hull.d.ts +0 -0
  425. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/hull.js +0 -0
  426. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/index.d.ts +0 -0
  427. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/index.js +0 -0
  428. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/lens.d.ts +0 -0
  429. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/lens.js +0 -0
  430. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/moire.js +0 -0
  431. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/motion.d.ts +0 -0
  432. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/motion.js +0 -0
  433. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/move.d.ts +0 -0
  434. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/move.js +0 -0
  435. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/noise.d.ts +0 -0
  436. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/noise.js +0 -0
  437. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/report.d.ts +0 -0
  438. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/report.js +0 -0
  439. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen-focus.d.ts +0 -0
  440. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen-focus.js +0 -0
  441. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen.d.ts +0 -0
  442. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/screen.js +0 -0
  443. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/solve.d.ts +0 -0
  444. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/solve.js +0 -0
  445. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/timing.d.ts +0 -0
  446. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/timing.js +0 -0
  447. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/vec.d.ts +0 -0
  448. /package/{node_modules → dist/node_modules}/@allyhub-next/scenery/dist/vec.js +0 -0
  449. /package/{node_modules/@allyhub-next/video-core → dist/node_modules/@allyhub-next/sheet}/LICENSE +0 -0
  450. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/animation.d.ts +0 -0
  451. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/animation.js +0 -0
  452. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/api.d.ts +0 -0
  453. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/api.js +0 -0
  454. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/capabilities.d.ts +0 -0
  455. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/capabilities.js +0 -0
  456. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/check.d.ts +0 -0
  457. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/check.js +0 -0
  458. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/enums.d.ts +0 -0
  459. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/enums.js +0 -0
  460. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/file.d.ts +0 -0
  461. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/file.js +0 -0
  462. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/measure.d.ts +0 -0
  463. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/measure.js +0 -0
  464. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/model.js +0 -0
  465. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/office.d.ts +0 -0
  466. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/office.js +0 -0
  467. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/path.d.ts +0 -0
  468. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/path.js +0 -0
  469. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/placeholders.d.ts +0 -0
  470. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/placeholders.js +0 -0
  471. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/resolve.js +0 -0
  472. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/script.d.ts +0 -0
  473. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/script.js +0 -0
  474. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/stage.d.ts +0 -0
  475. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/stage.js +0 -0
  476. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/theme.d.ts +0 -0
  477. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/theme.js +0 -0
  478. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/units.d.ts +0 -0
  479. /package/{node_modules → dist/node_modules}/@allyhub-next/slides-core/dist/units.js +0 -0
  480. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/anchors.d.ts +0 -0
  481. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/anchors.js +0 -0
  482. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/audio-types.d.ts +0 -0
  483. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/audio-types.js +0 -0
  484. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/backdrop.d.ts +0 -0
  485. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/backdrop.js +0 -0
  486. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/captions.d.ts +0 -0
  487. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/captions.js +0 -0
  488. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/console.d.ts +0 -0
  489. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/console.js +0 -0
  490. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/contrast.d.ts +0 -0
  491. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/contrast.js +0 -0
  492. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/cut-report.d.ts +0 -0
  493. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/cut-report.js +0 -0
  494. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edit.d.ts +0 -0
  495. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edit.js +0 -0
  496. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edits.d.ts +0 -0
  497. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/edits.js +0 -0
  498. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/export.d.ts +0 -0
  499. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/export.js +0 -0
  500. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/footage-motion.d.ts +0 -0
  501. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/footage-motion.js +0 -0
  502. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/gen.d.ts +0 -0
  503. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/gen.js +0 -0
  504. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/index.d.ts +0 -0
  505. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/index.js +0 -0
  506. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/look.d.ts +0 -0
  507. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/look.js +0 -0
  508. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/marks.d.ts +0 -0
  509. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/marks.js +0 -0
  510. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/matrix.d.ts +0 -0
  511. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/matrix.js +0 -0
  512. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/media.d.ts +0 -0
  513. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/media.js +0 -0
  514. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/messages.d.ts +0 -0
  515. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/messages.js +0 -0
  516. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/motion.d.ts +0 -0
  517. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/motion.js +0 -0
  518. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/music.d.ts +0 -0
  519. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/music.js +0 -0
  520. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/piece.d.ts +0 -0
  521. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/piece.js +0 -0
  522. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/placement.d.ts +0 -0
  523. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/placement.js +0 -0
  524. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/render-types.d.ts +0 -0
  525. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/render-types.js +0 -0
  526. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/schema.d.ts +0 -0
  527. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/schema.js +0 -0
  528. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script-edit.d.ts +0 -0
  529. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script-edit.js +0 -0
  530. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script.d.ts +0 -0
  531. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/script.js +0 -0
  532. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/seams.d.ts +0 -0
  533. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/seams.js +0 -0
  534. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/sound-under.d.ts +0 -0
  535. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/sound-under.js +0 -0
  536. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/speech.d.ts +0 -0
  537. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/speech.js +0 -0
  538. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timeline.d.ts +0 -0
  539. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timeline.js +0 -0
  540. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timing.d.ts +0 -0
  541. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/timing.js +0 -0
  542. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transcript.d.ts +0 -0
  543. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transcript.js +0 -0
  544. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transition.d.ts +0 -0
  545. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/transition.js +0 -0
  546. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/voice.d.ts +0 -0
  547. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/voice.js +0 -0
  548. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/words.d.ts +0 -0
  549. /package/{node_modules → dist/node_modules}/@allyhub-next/video-core/dist/words.js +0 -0
@@ -0,0 +1,19 @@
1
+ import { type Tag } from "./xml.js";
2
+ /** The Office theme's colours, for a file with no theme part. */
3
+ export declare const OFFICE_THEME: readonly string[];
4
+ /** A theme part's colours in the order a colour's `theme` counts them: light before dark. */
5
+ export declare function themeColors(text: string): string[];
6
+ /** A colour tinted as ECMA-376 says: towards black below 0, towards white above. */
7
+ export declare function tinted(hex: string, tint: number): string;
8
+ export interface Palette {
9
+ theme: readonly string[];
10
+ /** A file's own palette, when styles.xml has one. */
11
+ indexed: readonly string[];
12
+ }
13
+ export declare const paletteOf: (theme: readonly string[], styles: Tag | undefined) => {
14
+ theme: readonly string[];
15
+ indexed: readonly string[];
16
+ };
17
+ /** A `<color>`-shaped element as #RRGGBB; undefined when it says automatic or nothing. */
18
+ export declare function colorOf(t: Tag | undefined, p: Palette): string | undefined;
19
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{readXml as d,tag as c,tags as l,attr as i}from"./xml.js";const f="000000 FFFFFF FF0000 00FF00 0000FF FFFF00 FF00FF 00FFFF 000000 FFFFFF FF0000 00FF00 0000FF FFFF00 FF00FF 00FFFF 800000 008000 000080 808000 800080 008080 C0C0C0 808080 9999FF 993366 FFFFCC CCFFFF 660066 FF8080 0066CC CCCCFF 000080 FF00FF FFFF00 00FFFF 800080 800000 008080 0000FF 00CCFF CCFFFF CCFFCC FFFF99 99CCFF FF99CC CC99FF FFCC99 3366FF 33CCCC 99CC00 FFCC00 FF9900 FF6600 666699 969696 003366 339966 003300 333300 993300 993366 333399 333333".split(" ");export const OFFICE_THEME=["FFFFFF","000000","E7E6E6","44546A","4472C4","ED7D31","A5A5A5","FFC000","5B9BD5","70AD47","0563C1","954F72"];export function themeColors(r){const t=d(r),e=c(c(c(t.theme)?.themeElements)?.clrScheme);if(!e)return[...OFFICE_THEME];const n=(F,s)=>{const C=c(e[F]),o=c(C?.srgbClr),u=c(C?.sysClr);return(i(o,"val")??i(u,"lastClr")??OFFICE_THEME[s]??"000000").toUpperCase()};return[n("lt1",0),n("dk1",1),n("lt2",2),n("dk2",3),...[1,2,3,4,5,6].map(F=>n(`accent${String(F)}`,F+3)),n("hlink",10),n("folHlink",11)]}function m(r){const t=Number.parseInt(r.slice(0,2),16)/255,e=Number.parseInt(r.slice(2,4),16)/255,n=Number.parseInt(r.slice(4,6),16)/255,F=Math.max(t,e,n),s=Math.min(t,e,n),C=(F+s)/2;if(F===s)return[0,0,C];const o=F-s,u=C>.5?o/(2-F-s):o/(F+s);return[(F===t?(e-n)/o+(e<n?6:0):F===e?(n-t)/o+2:(t-e)/o+4)/6,u,C]}function a(r,t,e){const n=e<.5?e*(1+t):e+t-e*t,F=2*e-n,s=C=>{const o=C<0?C+1:C>1?C-1:C,u=t===0?e:o<1/6?F+(n-F)*6*o:o<1/2?n:o<2/3?F+(n-F)*(2/3-o)*6:F;return Math.round(u*255).toString(16).toUpperCase().padStart(2,"0")};return`${s(r+1/3)}${s(r)}${s(r-1/3)}`}export function tinted(r,t){if(t===0)return r;const[e,n,F]=m(r),s=t<0?F*(1+t):F*(1-t)+t;return a(e,n,Math.min(1,Math.max(0,s)))}export const paletteOf=(r,t)=>{const e=l(c(c(t?.colors)?.indexedColors)?.rgbColor);return{theme:r,indexed:e.length>0?e.map(n=>(i(n,"rgb")??"00000000").slice(-6).toUpperCase()):f}};export function colorOf(r,t){if(!r||i(r,"auto")==="1")return;const e=i(r,"rgb"),n=Number(i(r,"tint")??0);let F;e!==void 0&&(F=e.slice(-6).toUpperCase());const s=i(r,"theme");F===void 0&&s!==void 0&&(F=t.theme[Number(s)]);const C=i(r,"indexed");if(F===void 0&&C!==void 0){const o=Number(C);o===64?F="000000":o===65?F="FFFFFF":F=t.indexed[o]}return F===void 0?void 0:`#${tinted(F,n)}`}
@@ -0,0 +1,21 @@
1
+ import type { Node, Parsed } from "../formula/ast.js";
2
+ /**
3
+ * Whether a formula needs array evaluation: ranges or arrays where one value
4
+ * is expected. `isRangeName` says whether a name stands for several cells.
5
+ */
6
+ export declare function needsArray(node: Node, isRangeName?: (name: string) => boolean): boolean;
7
+ /** A formula with the narrowing an ordinary <f> does written out with @. */
8
+ export declare function narrowed(n: Node): Node;
9
+ export interface FileFormulaContext {
10
+ /** The table the formula is in: the name a bare [@x] leaves out. */
11
+ table?: string | undefined;
12
+ /** Whether a name is a table's. */
13
+ isTable: (name: string) => boolean;
14
+ /** It is written as an array formula: nothing narrows, so @ is spelled. */
15
+ array: boolean;
16
+ }
17
+ /** A formula's text as a file stores it: no =. */
18
+ export declare const fileFormula: (node: Node, c: FileFormulaContext) => string;
19
+ /** A formula as a file stores it, parsed. `array`: it is an array formula, so nothing narrows. */
20
+ export declare function readFileFormula(text: string, array: boolean): Parsed;
21
+ //# sourceMappingURL=formula.d.ts.map
@@ -0,0 +1,4 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{parseFormula as h}from"../formula/parse.js";import{printFormula as w}from"../formula/print.js";import{FUNCTIONS as S}from"../calc/functions/index.js";import{fileName as O,plainName as k}from"./functions.js";function g(r){switch(r.kind){case"ref":return r.col2!==void 0||r.row2!==void 0;case"structured":return!r.thisRow||r.columns.length>1;case"paren":return g(r.arg);case"binary":return r.op===":"||r.op===",";default:return!1}}const n=new Set(["+","-","*","/","^","&","=","<>","<","<=",">",">="]),E=new Set(`BYCOL BYROW CHOOSECOLS CHOOSEROWS DROP EXPAND FILTER HSTACK MAKEARRAY MAP
3
+ RANDARRAY SCAN SEQUENCE SORT SORTBY TAKE TEXTSPLIT TOCOL TOROW UNIQUE VSTACK
4
+ WRAPCOLS WRAPROWS`.split(/\s+/u)),p=new Set(["IF","IFERROR","IFNA"]),d=r=>S.get(r)?.kind==="scalar";export function needsArray(r,t=()=>!1){const a=e=>g(e)||e.kind==="array"||e.kind==="name"&&t(e.name)||e.kind==="paren"&&a(e.arg),s=e=>{switch(e.kind){case"unary":return e.op==="@"?!1:a(e.arg)||s(e.arg);case"postfix":return e.op==="%"?a(e.arg)||s(e.arg):!1;case"paren":return s(e.arg);case"binary":return n.has(e.op)&&(a(e.left)||a(e.right))?!0:s(e.left)||s(e.right);case"call":return e.name==="LET"||e.name==="LAMBDA"||E.has(e.name)||d(e.name)&&e.args.some(a)||p.has(e.name)&&e.args[0]&&a(e.args[0])?!0:e.args.some(s);case"invoke":return s(e.callee)||e.args.some(s);default:return!1}};return s(r)}export function narrowed(r){const t=a=>a.kind!=="array"&&g(a)?{kind:"unary",op:"@",arg:a}:narrowed(a);switch(r.kind){case"unary":return r.op==="@"?r:{...r,arg:t(r.arg)};case"postfix":return r.op==="%"?{...r,arg:t(r.arg)}:r;case"paren":return{...r,arg:narrowed(r.arg)};case"binary":return n.has(r.op)?{...r,left:t(r.left),right:t(r.right)}:r;case"call":{if(d(r.name))return{...r,args:r.args.map(t)};const[a,...s]=r.args;return p.has(r.name)&&a?{...r,args:[t(a),...s]}:r}default:return r}}const R=(r,t)=>({kind:"call",name:r,written:r,args:t});function y(r,t){return{...r,...r.table===void 0&&t!==void 0?{table:t}:{},sections:r.thisRow?["#This Row"]:r.sections,thisRow:!1}}function f(r,t,a,s){const e=(u,o=!1)=>f(u,t,a,o&&s);switch(r.kind){case"name":{const u=r.name.toLowerCase();return a.has(u)?{...r,name:`_xlpm.${r.name}`}:t.isTable(r.name)?{...r,name:`${r.name}[]`}:r}case"structured":return y(r,t.table);case"unary":return r.op==="@"?s?e(r.arg,!0):R("_xlfn.SINGLE",[e(r.arg)]):{...r,arg:e(r.arg,!0)};case"postfix":return r.op==="#"?R("_xlfn.ANCHORARRAY",[e(r.arg)]):{...r,arg:e(r.arg,!0)};case"paren":return{...r,arg:e(r.arg,!0)};case"binary":return{...r,left:e(r.left,n.has(r.op)),right:e(r.right,n.has(r.op))};case"call":{const u=O(r.name);if(r.name==="LET"||r.name==="LAMBDA"){const o=new Set(a),m=r.args.length-1,A=r.args.map((c,l)=>(r.name==="LAMBDA"||l%2===0)&&l<m&&c.kind==="name"?(o.add(c.name.toLowerCase()),{...c,name:`_xlpm.${c.name}`}):f(c,t,o,!1));return{...r,written:u,args:A}}return{...r,written:u,args:r.args.map(o=>e(o))}}case"invoke":return{...r,callee:e(r.callee),args:r.args.map(u=>e(u))};case"array":return{...r,rows:r.rows.map(u=>u.map(o=>e(o)))};default:return r}}export const fileFormula=(r,t)=>w(f(r,t,new Set,!t.array)).slice(1);function i(r){switch(r.kind){case"name":return r.name.toLowerCase().startsWith("_xlpm.")?{...r,name:r.name.slice(6)}:r;case"structured":return r;case"unary":case"postfix":case"paren":return{...r,arg:i(r.arg)};case"binary":return{...r,left:i(r.left),right:i(r.right)};case"call":{const a=k(r.written).toUpperCase(),s=r.args.map(i),[e]=s;return a==="ANCHORARRAY"&&e&&s.length===1?{kind:"postfix",op:"#",arg:e}:a==="SINGLE"&&e&&s.length===1?{kind:"unary",op:"@",arg:e}:{...r,name:a,written:a,args:s}}case"invoke":return{...r,callee:i(r.callee),args:r.args.map(i)};case"array":return{...r,rows:r.rows.map(t=>t.map(i))};default:return r}}export function readFileFormula(r,t){const a=h(`=${r}`);if(!a.ok)return a;const s=i(a.node);return{ok:!0,node:t?s:narrowed(s)}}
@@ -0,0 +1,5 @@
1
+ /** A function's name as a file stores it. */
2
+ export declare function fileName(name: string): string;
3
+ /** A name as a formula writes it, whatever prefix a file stored it under. */
4
+ export declare const plainName: (name: string) => string;
5
+ //# sourceMappingURL=functions.d.ts.map
@@ -0,0 +1,17 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ const E=`ACOT ACOTH AGGREGATE ARABIC ARRAYTOTEXT BASE BETA.DIST BETA.INV BINOM.DIST
3
+ BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR BYCOL BYROW CEILING.MATH
4
+ CEILING.PRECISE CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSECOLS
5
+ CHOOSEROWS COMBINA CONCAT CONFIDENCE.NORM CONFIDENCE.T COT COTH COVARIANCE.P COVARIANCE.S
6
+ CSC CSCH DAYS DECIMAL DROP ERF.PRECISE ERFC.PRECISE EXPAND EXPON.DIST F.DIST F.DIST.RT F.INV
7
+ F.INV.RT F.TEST FILTERXML FLOOR.MATH FLOOR.PRECISE FORECAST.ETS FORECAST.ETS.CONFINT
8
+ FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT GAMMA GAMMA.DIST
9
+ GAMMA.INV GAMMALN.PRECISE GAUSS HSTACK HYPGEOM.DIST IFNA IFS IMAGE IMCOSH IMCOT IMCSC IMCSCH
10
+ IMSEC IMSECH IMSINH IMTAN ISFORMULA ISOMITTED ISOWEEKNUM LAMBDA LET LOGNORM.DIST LOGNORM.INV
11
+ MAKEARRAY MAP MAXIFS MINIFS MODE.MULT MODE.SNGL MUNIT NEGBINOM.DIST NORM.DIST NORM.INV
12
+ NORM.S.DIST NORM.S.INV NUMBERVALUE PDURATION PERCENTILE.EXC PERCENTILE.INC PERCENTRANK.EXC
13
+ PERCENTRANK.INC PERMUTATIONA PHI POISSON.DIST QUARTILE.EXC QUARTILE.INC QUERYSTRING RANDARRAY
14
+ RANK.AVG RANK.EQ REDUCE REGEXEXTRACT REGEXREPLACE REGEXTEST RRI SCAN SEC SECH SEQUENCE SHEET
15
+ SHEETS SKEW.P SORTBY STDEV.P STDEV.S SWITCH T.DIST T.DIST.2T T.DIST.RT T.INV T.INV.2T T.TEST
16
+ TAKE TEXTAFTER TEXTBEFORE TEXTJOIN TEXTSPLIT TOCOL TOROW UNICHAR UNICODE UNIQUE VALUETOTEXT
17
+ VAR.P VAR.S VSTACK WEBSERVICE WEIBULL.DIST WRAPCOLS WRAPROWS XLOOKUP XMATCH XOR Z.TEST`,I=new Set(E.split(/\s+/u)),S=new Set(["FILTER","SORT"]);export function fileName(T){return S.has(T)?`_xlfn._xlws.${T}`:I.has(T)?`_xlfn.${T}`:T}export const plainName=T=>T.replace(/^(?:_xlfn\.|_xlws\.|_xludf\.)+/iu,"");
@@ -0,0 +1,44 @@
1
+ import type { SheetProblem } from "../file.js";
2
+ import { type Scalar } from "../values.js";
3
+ /** How far apart two numbers may be, as a share of the larger, and be the same. */
4
+ export declare const COMPARE_TOLERANCE = 1e-9;
5
+ export interface Difference {
6
+ sheet: string;
7
+ cell: string;
8
+ formula: string;
9
+ /** What the file cached. */
10
+ file: string | number | boolean | null;
11
+ engine: string | number | boolean | null;
12
+ }
13
+ export interface Compared {
14
+ /** Formulas carried over. */
15
+ formulas: number;
16
+ same: number;
17
+ /** Formulas the file holds no value for. */
18
+ uncached: number;
19
+ /** Formulas that read the clock or a random number, or what does: not compared. */
20
+ moving: number;
21
+ differences: Difference[];
22
+ }
23
+ export interface ImportedXlsx {
24
+ /** Paths from the sheet's folder, sheet.yaml first, and their text. */
25
+ files: Map<string, string>;
26
+ /** What was not carried over, a line each. */
27
+ lost: string[];
28
+ /** What is wrong with the workbook as it now is. */
29
+ problems: SheetProblem[];
30
+ compared: Compared;
31
+ sheets: number;
32
+ tables: number;
33
+ }
34
+ export interface ImportOptions {
35
+ /** The workbook's title. */
36
+ name: string;
37
+ /** See COMPARE_TOLERANCE. */
38
+ tolerance?: number;
39
+ }
40
+ /** Whether a value the engine gives is what a file cached. */
41
+ export declare function sameValue(a: Scalar, b: Scalar, tolerance: number): boolean;
42
+ /** 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. */
43
+ export declare function importXlsx(bytes: Uint8Array, o: ImportOptions): ImportedXlsx;
44
+ //# sourceMappingURL=import.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{SHEET_DATA as G,SHEET_FILE as Q}from"@allyhub-next/formats";import{cellName as $,columnLetter as A,contains as z,overlaps as D,rangeName as x,readAddress as Z,readArea as ee}from"../address.js";import{rectangles as _}from"../api/rectangles.js";import{chartAfter as te}from"../chart.js";import{analyse as oe}from"../calc/analyse.js";import{FUNCTIONS as ne}from"../calc/functions/index.js";import{checkWorkbook as se}from"../check.js";import{writeCsv as I}from"../csv.js";import{isDateCode as W}from"../format.js";import{moveFormula as re,relativeKey as B}from"../formula/move.js";import{printFormula as M,sheetPrefix as ie}from"../formula/print.js";import{mapNode as le,walk as N}from"../formula/walk.js";import{CellError as T,isoOfSerial as fe,readTyped as F,writeTyped as P}from"../values.js";import{FormulaCell as ae,placeKey as g,validName as R}from"../workbook.js";import{writeYaml as ce}from"../write.js";import{readFileFormula as ue}from"./formula.js";import{hasDate as H}from"./numfmt.js";import{placesLine as J,readXlsx as de}from"./read.js";const K=100,he=.5,q=1462;export const COMPARE_TOLERANCE=1e-9;const me=f=>f.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/gu,"")||"rows",b=f=>Object.keys(f).length===0,V=(f,e)=>`${String(f)} ${e}${f===1?"":"s"}`,C=f=>({row:f.row,col:f.col});function X(f,e){const o=e.toLowerCase();return le(f,n=>n.kind!=="structured"||n.table?.toLowerCase()!==o?n:Object.fromEntries(Object.entries(n).filter(([i])=>i!=="table")))}function Y(f){return f.headers===0?"has no header row":f.columns.length!==f.ref.right-f.ref.left+1||!R(f.name)?"cannot be held as a table":new Set(f.columns.map(e=>e.name.toLowerCase())).size===f.columns.length?void 0:"has two columns of one name"}function U(f,e,o){let n;const i=new Set;N(f,t=>{t.kind==="call"&&(t.name==="LET"||t.name==="LAMBDA")&&t.args.forEach(r=>{r.kind==="name"&&i.add(r.name.toLowerCase())})});const s=t=>i.has(t)||o===void 0||o.names.has(t)||o.tables.has(t);return N(f,t=>{n===void 0&&(t.kind==="call"&&!ne.has(t.name)&&(s(t.written.toLowerCase())||(n=`no function ${t.name}`)),t.kind==="name"&&!s(t.name.toLowerCase())&&(n=`no name ${t.name}`),t.kind==="structured"&&t.table!==void 0&&!s(t.table.toLowerCase())&&(n=`no table ${t.table}`),(t.kind==="ref"||t.kind==="name"||t.kind==="error")&&t.sheet!==void 0&&(t.sheet.startsWith("[")?n="it reads another workbook":e.has(t.sheet.toLowerCase())||(n=`no sheet ${t.sheet}`)))}),n}function pe(f){const e=new Set(f.book.sheets.map(o=>o.name.toLowerCase()));for(const o of f.book.sheets){const n=new Map,i=(t,r)=>{const l=n.get(r),c=$(t);l?l.push(c):n.set(r,[c])},s=[];for(const t of o.cells){if(t.unread!==void 0){i(t,/^\[|[!']\[|\[\d+\]/u.test(t.unread)?"it reads another workbook":`it could not be read: ${t.unread}`);continue}if(!t.node)continue;const r=U(t.node,e,f);r!==void 0?(delete t.node,i(t,r)):(f.carried.set(t,o),t.array&&x(t.array)!==$(t)&&s.push(t))}we(f,o,s);for(const[t,r]of n)f.lost.push(`${o.name}: ${V(r.length,"formula")} kept as ${r.length===1?"its value":"their values"}, as ${t} (${J(r)})`)}}function we(f,e,o){if(o.length===0)return;const n=new Set;for(const i of o){const{array:s}=i;if(s)for(const t of e.cells)t!==i&&!t.node&&z(s,t.row,t.col)&&n.add(t)}e.cells=e.cells.filter(i=>!n.has(i));for(const i of n)f.spilled.set(i,e)}function O(f,e){const{value:o}=e;if(!f.book.date1904||typeof o!="number")return o;const n=f.book.looks[e.style]?.format;return W(n)&&n!==void 0&&H(n)?o+q:o}function j(f,e){if(typeof f!="number"||e===void 0||!W(e)||!H(e)||f<1)return;const o=fe(f);return F(o).value===f?o:void 0}const ge=(f,e)=>j(f,e)??P(f??null);function ke(f,e){const o=j(f,e);return o!==void 0?o:f==null?null:typeof f=="number"||typeof f=="boolean"?f:P(f)}function be(f){const e={top:1/0,left:1/0,bottom:-1,right:-1};for(const{row:o,col:n}of f)e.top=Math.min(e.top,o),e.left=Math.min(e.left,n),e.bottom=Math.max(e.bottom,o),e.right=Math.max(e.right,n);return e}class ye{ctx;read;byPlace=new Map;inTables=new Set;columnLooks=new Map;rowLooks=new Map;lookDone=new Set;tables=[];areas=[];filtered=[];constructor(e,o){this.ctx=e,this.read=o;for(const n of o.cells)this.byPlace.set(g(n.row,n.col),n)}look(e){return this.ctx.book.looks[e.style]??{}}code(e){return this.look(e).format}text(e){return e.node?M(e.node):ge(O(this.ctx,e),this.code(e))}baseLooks(){const{read:e}=this,{looks:o}=this.ctx.book,n=e.cells.reduce((s,t)=>Math.max(s,t.col),-1);for(const s of e.columns){if(s.style===void 0)continue;const t=o[s.style];if(!(!t||b(t)))for(let r=s.min;r<=Math.min(s.max,n);r++)this.columnLooks.set(r,t)}for(const s of e.rows){const t=s.style===void 0?void 0:o[s.style];t&&!b(t)&&this.rowLooks.set(s.row,t)}const i=(s,t)=>Object.keys(t).every(r=>r in s);for(const s of e.cells){const t=this.look(s),r=this.columnLooks.get(s.col);r&&!i(t,r)&&this.columnLooks.delete(s.col);const l=this.rowLooks.get(s.row);l&&!i(t,l)&&this.rowLooks.delete(s.row)}}ownLook(e){const o={...this.columnLooks.get(e.col),...this.rowLooks.get(e.row)},n={};for(const[s,t]of Object.entries(this.look(e)))JSON.stringify(t)!==JSON.stringify(o[s])&&(n[s]=t);const i=n.format;if(typeof i=="string"){const s=e.node?void 0:j(O(this.ctx,e),i);s!==void 0&&F(s).format===i&&delete n.format}return n}columnFormula(e,o,n){const i=new Map,s=n-o+1;for(let r=o;r<=n;r++){const l=this.byPlace.get(g(r,e));if(!l||l.value===void 0&&!l.node||l.value===null&&!l.node)return;if(!l.node)continue;l.key??=B(l.node,l.row,l.col);const c=i.get(l.key);c?c.n+=1:i.set(l.key,{n:1,cell:l})}let t;for(const r of i.values())(!t||r.n>t.n)&&(t=r);return t&&t.n*2>s?t.cell:void 0}table(e){const{read:o,ctx:n}=this,i=h=>n.lost.push(`${o.name}: table ${e.name} ${h}`),s=e.ref.right-e.ref.left+1,t=Y(e);if(t!==void 0)return i(`${t}, so its cells are kept and it is no table`),!1;const r=e.ref.top,l=r+1,c=e.ref.bottom-e.totals;e.totals>0&&i("has a totals row, kept as plain cells under it");const a=e.columns.map((h,m)=>c>=l?this.columnFormula(e.ref.left+m,l,c):void 0),u=h=>{const m=a[h];if(!m)return!1;for(let k=l;k<=c;k++)if(this.byPlace.get(g(k,e.ref.left+h))?.key!==m.key)return!1;return!0};let d=s;for(;d>1&&u(d-1);)d-=1;const w=[e.columns.slice(0,d).map(h=>h.name)],p={};for(let h=l;h<=c;h++){const m=[];for(let k=0;k<d;k++){const y=this.byPlace.get(g(h,e.ref.left+k)),v=a[k];y?v&&y.key===v.key?m.push(""):y.node?m.push(M(X(y.node,e.name))):m.push(this.text(y)):m.push("")}w.push(m)}for(let h=e.ref.top;h<=c;h++)for(let m=e.ref.left;m<=e.ref.right;m++)this.inTables.add(g(h,m));e.columns.forEach((h,m)=>{const k=e.ref.left+m,y=this.columnLook(k,l,c),v=a[m];v?.node&&(y.formula=M(X(re(v.node,l-v.row,0),e.name))),b(y)||(p[h.name]=y)});const L=this.path(e.name);n.files.set(L,I(w));const E=new Map;for(const[h,m]of e.filter?.columns??[]){const k=e.columns[h]?.name;k!==void 0&&E.set(k,m)}return(e.filter?.unread??0)>0&&i(`has ${V(e.filter?.unread??0,"filter")} by condition, its rows left as they were hidden`),this.tables.push({name:e.name,at:$({row:r,col:e.ref.left}),rows:L,...e.style!==void 0&&e.style!=="TableStyleMedium2"?{style:e.style}:{},...b(p)?{}:{columns:p},...e.filter===void 0?{filter:!1}:E.size>0?{filter:{columns:Object.fromEntries(E)}}:{}}),e.filter?.unread===0&&e.filter.columns.size>0&&this.filtered.push({...e.ref,bottom:c}),this.areas.push({...e.ref,bottom:c}),!0}columnLook(e,o,n){let i,s={};for(let t=o;t<=n;t++){const r=this.byPlace.get(g(t,e)),l=r?this.ownLook(r):{},c=JSON.stringify(l);if(i===void 0)i=c,s=l;else if(i!==c)return{}}if(b(s))return{};for(let t=o;t<=n;t++)this.lookDone.add(g(t,e));return{...s}}path(e){const o=`${G}/${me(e)}`;let n=`${o}.csv`;for(let i=2;this.ctx.files.has(n);i++)n=`${o}-${String(i)}.csv`;return n}loose(){const e=[],o=[];for(const n of this.read.cells)this.inTables.has(g(n.row,n.col))||(n.node?e.push(n):n.value!==void 0&&n.value!==null&&o.push(n));return{formulas:e,typed:o}}blockAreas(e,o){const n=new Map;e.forEach((a,u)=>n.set(g(a.row,a.col),u));const i=e.map((a,u)=>u),s=a=>{let u=a;for(;i[u]!==u;){const d=i[i[u]??u]??u;i[u]=d,u=d}return u};e.forEach((a,u)=>{for(const d of[n.get(g(a.row,a.col-1)),n.get(g(a.row-1,a.col))])d!==void 0&&(i[s(u)]=s(d))});const t=new Map;e.forEach((a,u)=>{const d=s(u),w=t.get(d);w?w.push(a):t.set(d,[a])});const r=[],l=a=>!r.some(u=>D(u,a))&&!this.areas.some(u=>D(u,a))&&!o.some(u=>z(a,u.row,u.col)),c=a=>(a.bottom-a.top+1)*(a.right-a.left+1);for(const a of t.values()){const u=be(a);if(!(c(u)<K)){if(a.length/c(u)>=he&&l(u)){r.push(u);continue}for(const d of _(a.map(C)))c(d)>=K&&l(d)&&r.push(d)}}return r.sort((a,u)=>a.top-u.top||a.left-u.left)}cells(e){const{formulas:o,typed:n}=this.loose(),i=this.blockAreas(n,o),s=l=>i.some(c=>z(c,l.row,l.col));i.length>0&&(e.blocks=i.map(l=>{const c=[];for(let u=l.top;u<=l.bottom;u++){const d=[];for(let w=l.left;w<=l.right;w++){const p=this.byPlace.get(g(u,w));d.push(p?this.text(p):"")}c.push(d)}const a=this.path(this.read.name);return this.ctx.files.set(a,I(c)),{at:$({row:l.top,col:l.left}),rows:a}}));const t=[],r=new Map;for(const l of o){if(!l.node)continue;l.key??=B(l.node,l.row,l.col);const c=r.get(l.key);c?c.push(l):r.set(l.key,[l])}for(const l of r.values())for(const c of _(l.map(C))){const a=this.byPlace.get(g(c.top,c.left));a?.node&&t.push([{row:c.top,col:c.left},x(c),M(a.node)])}for(const l of n)i.length>0&&s(l)||t.push([C(l),$(l),ke(O(this.ctx,l),this.code(l))]);t.sort(([l],[c])=>l.row-c.row||l.col-c.col),t.length>0&&(e.cells=Object.fromEntries(t.map(([,l,c])=>[l,c])))}formats(e){const o=new Map;for(const i of this.read.cells){if(this.lookDone.has(g(i.row,i.col)))continue;const s=this.ownLook(i);if(b(s))continue;const t=JSON.stringify(s),r=o.get(t);r?r.places.push(C(i)):o.set(t,{look:s,places:[C(i)]})}const n=[];for(const{look:i,places:s}of o.values())for(const t of _(s))n.push({range:x(t),...i});n.length>0&&(e.format=n)}columns(e){const{read:o}=this,n=new Map,i=o.cells.reduce((t,r)=>Math.max(t,r.col),0),s=[];for(const t of o.columns)if(!(t.width===void 0&&t.hidden!==!0)){t.max>i&&s.push(A(Math.max(t.min,i+1)));for(let r=t.min;r<=Math.min(t.max,i);r++)n.set(r,{...t.width===void 0?{}:{width:t.width},...t.hidden===!0?{hidden:!0}:{}})}for(const[t,r]of this.columnLooks)n.set(t,{...n.get(t),...r});n.size>0&&(e.columns=Object.fromEntries([...n.keys()].sort((t,r)=>t-r).map(t=>[A(t),n.get(t)??{}]))),s.some(Boolean)&&o.columns.some(t=>t.max>i&&t.hidden===!0)&&this.ctx.lost.push(`${o.name}: the size of the columns past its last used one`)}rows(e){const o={};for(const n of this.read.rows){const i=this.rowLooks.get(n.row),s=this.filtered.some(r=>n.row>r.top&&n.row<=r.bottom),t={...n.height===void 0?{}:{height:n.height},...n.hidden===!0&&!s?{hidden:!0}:{},...i};b(t)||(o[String(n.row+1)]=t)}b(o)||(e.rows=o)}build(){const{read:e}=this;this.baseLooks();for(const n of e.tables)this.table(n);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=$(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(x)),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(n=>this.chart(n))),o}chart(e){return te(e,o=>{const n=this.chartReference(o.replace(/^=/u,""));return o.startsWith("=")?`=${n}`:n})}chartReference(e){const o=e.lastIndexOf("!"),i=(o<0?this.read.name:e.slice(0,o)).replace(/^'|'$/gu,"").replaceAll("''","'"),s=ee(e.slice(o+1).replaceAll("$",""));if(!s)return e;const t=this.ctx.book.sheets.find(r=>r.name.toLowerCase()===i.toLowerCase());for(const r of t?.tables??[]){const l=r.ref.top+1,a=s.left===s.right&&s.top===l&&s.bottom===r.ref.bottom&&s.left>=r.ref.left&&s.left<=r.ref.right?r.columns[s.left-r.ref.left]:void 0;if(a&&this.ctx.tables.has(r.name.toLowerCase()))return`${r.name}[${a.name}]`}return`${t===this.read||o<0?"":`${e.slice(0,o)}!`}${x(s)}`}filter(e){const{filter:o}=this.read;if(!o)return;const n={};for(const[i,s]of o.columns)n[A(o.ref.left+i)]=s;e.filter={range:x(o.ref),...b(n)?{}:{columns:n}},o.unread===0&&!b(n)&&this.filtered.push(o.ref)}}function $e(f){const e={},{book:o,lost:n}=f,i=new Set(o.sheets.map(r=>r.name.toLowerCase())),s=new Set,t=new Set;for(const r of o.names){if(r.name.startsWith("_xlnm.")){r.name==="_xlnm.Print_Area"?t.add("print areas"):r.name==="_xlnm.Print_Titles"?t.add("print titles"):r.name!=="_xlnm._FilterDatabase"&&n.push(`Excel's name ${r.name}`);continue}if(/^_xl(?:fn|pm|ws|udf)/iu.test(r.name))continue;const l=r.name.toLowerCase();if(!R(r.name)||f.tables.has(l)){n.push(`the name ${r.name}, which cannot be held here`);continue}if(s.has(l)){n.push(`a second name ${r.name}, for one sheet: names here are the workbook's`);continue}const c=xe(r.text);if(c!==void 0)e[r.name]=typeof c=="string"?P(c):c,s.add(l),f.names.add(l);else{const a=ue(r.text,!0),u=a.ok?U(a.node,i):"it could not be read";if(!a.ok||u!==void 0||ve(a.node)){n.push(`the name ${r.name} (${r.text})${u===void 0?"":`: ${u}`}`);continue}e[r.name]=M(a.node),s.add(l),f.names.add(l)}r.sheet!==void 0&&n.push(`the name ${r.name} belonging to one sheet: here it is the workbook's`)}return t.size>0&&n.push([...t].join(" and ")),e}function Le(f,e){const o={},n=new Map;for(const[i,s]of Object.entries(e))typeof s=="string"&&s.startsWith("=")&&n.set(s.slice(1).replaceAll("$","").toLowerCase(),i);for(const i of f.book.sheets)for(const s of i.scenarios){const t={};let r=!0;for(const{at:l,value:c}of s.cells){const a=Z(l),u=a&&i.cells.find(p=>p.row===a.row&&p.col===a.col);String(u?.value??"")!==c&&(r=!1);const d=n.get(`${ie(i.name)}${l}`.toLowerCase())??n.get(l.toLowerCase()),w=F(c);d===void 0?f.lost.push(`${i.name}: scenario ${s.name}'s cell ${l}, which has no name`):t[d]=typeof w.value=="number"?w.value:c}!r&&!b(t)&&(o[s.name]={...o[s.name],...t})}return o}function ve(f){let e=!1;return N(f,o=>{e||=o.kind==="error"&&o.code==="#REF!"}),e}function xe(f){const e=f.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 S=f=>f instanceof T?f.code:f??null;export function sameValue(f,e,o){if(typeof f=="number"&&typeof e=="number")return f===e?!0:Math.abs(f-e)<=Math.max(Math.abs(f),Math.abs(e))*o;if(f instanceof T||e instanceof T)return f?.code===e?.code;if(f===null||e===null){const n=f??e;return n===null||n===""||n===0||n===!1}return f===e}function Me(f,e){const o=[];for(const s of e.sheets)for(const t of s.formulas)t.shared.node&&oe(e,t.shared).volatile&&o.push(t);const n=new Set(o),i=[...o];for(;;){const s=i.pop();if(!s)return n;for(const t of f.readers(s.sheet,s.row,s.col))n.has(t)||(n.add(t),i.push(t))}}function Ce(f,e,o,n){const i={formulas:0,same:0,uncached:0,moving:0,differences:[]},s=Me(o,e);for(const[t,r]of f.carried){if(!t.node)continue;const l=e.sheet(r.name);if(!l)continue;i.formulas+=1;const c=l.at(t.row,t.col);if(c instanceof ae&&s.has(c)){i.moving+=1;continue}const a=O(f,t);if(a===void 0){i.uncached+=1;continue}const u=o.value(l,t.row,t.col);sameValue(a,u,n)?i.same+=1:i.differences.push({sheet:r.name,cell:$(t),formula:M(t.node),file:S(a),engine:S(u)})}for(const[t,r]of f.spilled){const l=e.sheet(r.name);if(!l)continue;i.formulas+=1;const c=l.spillAt(t.row,t.col);if(c&&s.has(c)){i.moving+=1;continue}const a=O(f,t),u=o.value(l,t.row,t.col);a===void 0?i.uncached+=1:sameValue(a,u,n)?i.same+=1:i.differences.push({sheet:r.name,cell:$(t),formula:c?`${$(c)}#`:"",file:S(a),engine:S(u)})}return i}function Oe(f,e){const o=new Map,n=[];for(const i of f){const s=e.find(l=>i.startsWith(`${l}: `));if(s===void 0){n.push(i);continue}const t=i.slice(s.length+2),r=o.get(t);r?r.push(s):o.set(t,[s])}for(const[i,s]of o)n.push(s.length===1?`${s[0]??""}: ${i}`:`${i}, on ${String(s.length)} sheets (${J(s)})`);return n}export function importXlsx(f,e){const o=de(f);if(o.sheets.length===0)throw new Error("It holds no sheets.");const n={book:o,files:new Map,lost:[...o.lost],tables:new Set(o.sheets.flatMap(p=>p.tables.filter(L=>Y(L)===void 0).map(L=>L.name.toLowerCase()))),names:new Set,carried:new Map,spilled:new Map};o.date1904&&n.lost.push(`the 1904 date system: dates are moved to the 1900 one, ${String(q)} days on`),(o.font.name!==void 0&&o.font.name!=="Calibri"||o.font.size!==void 0&&o.font.size!==11)&&n.lost.push(`its default font, ${o.font.name??""} ${String(o.font.size??"")}`);const i=$e(n);pe(n);const s=o.sheets.map(p=>new ye(n,p).build()),t=Le(n,i),r={title:e.name,...b(i)?{}:{names:i},sheets:s,...b(t)?{}:{scenarios:t}},l=ce(r),c=new Map([[Q,l],...n.files]),a=se({text:l,read:p=>c.get(p)}),{workbook:u,calc:d,problems:w}=a;return{files:c,lost:Oe(n.lost,o.sheets.map(p=>p.name)),problems:w,compared:u&&d?Ce(n,u,d,e.tolerance??COMPARE_TOLERANCE):{formulas:0,same:0,uncached:0,moving:0,differences:[]},sheets:o.sheets.length,tables:n.tables.size}}
@@ -0,0 +1,5 @@
1
+ export { writeXlsx, type WriteOptions, type WrittenXlsx } from "./write.js";
2
+ export { readXlsx, type ReadBook, type ReadCell, type ReadColumn, type ReadName, type ReadRow, type ReadSheet, type ReadTable, } from "./read.js";
3
+ export { COMPARE_TOLERANCE, importXlsx, sameValue, type Compared, type Difference, type ImportOptions, type ImportedXlsx, } from "./import.js";
4
+ export { fileFormula, needsArray, readFileFormula } from "./formula.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export{writeXlsx}from"./write.js";export{readXlsx}from"./read.js";export{COMPARE_TOLERANCE,importXlsx,sameValue}from"./import.js";export{fileFormula,needsArray,readFileFormula}from"./formula.js";
@@ -0,0 +1,8 @@
1
+ export declare const BUILTIN_FORMATS: Readonly<Record<number, string>>;
2
+ /** The number a built-in format code goes by. */
3
+ export declare const builtinId: (code: string) => number | undefined;
4
+ /** The first number free for a file's own codes. */
5
+ export declare const FIRST_CUSTOM = 164;
6
+ /** Whether a date format names a day, a month or a year, not a time alone. */
7
+ export declare function hasDate(code: string): boolean;
8
+ //# sourceMappingURL=numfmt.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export const BUILTIN_FORMATS={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yyyy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yyyy h:mm",37:"#,##0_);(#,##0)",38:"#,##0_);[Red](#,##0)",39:"#,##0.00_);(#,##0.00)",40:"#,##0.00_);[Red](#,##0.00)",41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)',45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"};const e=new Map(Object.entries(BUILTIN_FORMATS).map(([_,m])=>[m,Number(_)]));export const builtinId=_=>e.get(_),FIRST_CUSTOM=164;export function hasDate(_){const m=_.replace(/"[^"]*"/gu,"").replace(/\\./gu,"").replace(/\[[^\]]*\]/gu,"");return/[yd]/iu.test(m)||/mmm/iu.test(m)}
@@ -0,0 +1,117 @@
1
+ import type { SheetConditional, SheetFilterColumn, SheetValidation } from "@allyhub-next/formats";
2
+ import { type Area, type Place } from "../address.js";
3
+ import type { Node } from "../formula/ast.js";
4
+ import { type Scalar } from "../values.js";
5
+ import type { CellLook } from "../workbook.js";
6
+ import { type ReadChart } from "./charts.js";
7
+ export interface ReadCell {
8
+ row: number;
9
+ col: number;
10
+ /** What it holds, or what its formula last gave; undefined when a file did not say. */
11
+ value: Scalar | undefined;
12
+ /** Its formula, in a person's spelling. */
13
+ node?: Node;
14
+ /** The same for every cell of one fill. */
15
+ key?: string;
16
+ /** A formula as the file has it, which this language cannot read. */
17
+ unread?: string;
18
+ /** Its array formula's cells, when it is one. */
19
+ array?: Area;
20
+ /** It spills as a dynamic array, not a formula entered over a range. */
21
+ dynamic?: boolean;
22
+ /** Into `looks`. */
23
+ style: number;
24
+ rich?: boolean;
25
+ }
26
+ export interface ReadColumn {
27
+ /** Ends included, from 0. */
28
+ min: number;
29
+ max: number;
30
+ /** In pixels, when the file sets it. */
31
+ width?: number;
32
+ hidden?: boolean;
33
+ style?: number;
34
+ }
35
+ export interface ReadRow {
36
+ row: number;
37
+ /** In pixels, when the file sets it. */
38
+ height?: number;
39
+ hidden?: boolean;
40
+ style?: number;
41
+ }
42
+ /** A filter's columns by their place in it, and those that say what this cannot read. */
43
+ export interface ReadFilter {
44
+ columns: Map<number, SheetFilterColumn>;
45
+ unread: number;
46
+ }
47
+ export interface ReadTable {
48
+ name: string;
49
+ /** Its header, rows and totals. */
50
+ ref: Area;
51
+ headers: number;
52
+ totals: number;
53
+ columns: {
54
+ name: string;
55
+ calculated: boolean;
56
+ }[];
57
+ style?: string;
58
+ /** Its filter buttons; nothing when it has none. */
59
+ filter?: ReadFilter;
60
+ }
61
+ export interface ReadSheet {
62
+ name: string;
63
+ state: "visible" | "hidden" | "veryHidden";
64
+ cells: ReadCell[];
65
+ merges: Area[];
66
+ freeze?: Place;
67
+ gridlines?: false;
68
+ tab?: string;
69
+ columns: ReadColumn[];
70
+ rows: ReadRow[];
71
+ tables: ReadTable[];
72
+ /** Conditional formats, the strongest first. */
73
+ conditional: SheetConditional[];
74
+ validations: SheetValidation[];
75
+ /** Its AutoFilter. */
76
+ filter?: ReadFilter & {
77
+ ref: Area;
78
+ };
79
+ /** Its charts as sheet.yaml writes them, their references as the file spells them. */
80
+ charts: ReadChart[];
81
+ /** Excel's scenarios: each sets cells of this sheet. */
82
+ scenarios: {
83
+ name: string;
84
+ cells: {
85
+ at: string;
86
+ value: string;
87
+ }[];
88
+ }[];
89
+ }
90
+ export interface ReadName {
91
+ name: string;
92
+ /** As the file has it. */
93
+ text: string;
94
+ /** The sheet it belongs to, by its place; absent: the workbook. */
95
+ sheet?: number;
96
+ }
97
+ export interface ReadBook {
98
+ sheets: ReadSheet[];
99
+ names: ReadName[];
100
+ /** Each cell format's look; a look says only what differs from the file's default font. */
101
+ looks: CellLook[];
102
+ /** What each differential format gives a cell. */
103
+ dxfs: CellLook[];
104
+ date1904: boolean;
105
+ /** The file's default font. */
106
+ font: {
107
+ name?: string;
108
+ size?: number;
109
+ };
110
+ /** What this model holds nothing of, a line each. */
111
+ lost: string[];
112
+ }
113
+ /** Places as a line: the first few and how many more. */
114
+ export declare function placesLine(places: readonly string[]): string;
115
+ /** What a .xlsx, .xlsm or .xltx file holds. */
116
+ export declare function readXlsx(bytes: Uint8Array): ReadBook;
117
+ //# sourceMappingURL=read.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{strFromU8 as ie,unzipSync as ae}from"fflate";import{SHEET_ICONS as le,SHEET_OPERATORS as ce,SHEET_VALIDATIONS as de}from"@allyhub-next/formats";import{cellName as J,readAddress as K,readArea as z,readAreas as Q}from"../address.js";import{SHEET_CHART_DEFAULTS as Y}from"../chart.js";import{moveFormula as ue,relativeKey as fe}from"../formula/move.js";import{printFormula as Z}from"../formula/print.js";import{ERR as me,errorOf as he,serialOfDate as pe}from"../values.js";import{OFFICE_THEME as be,colorOf as C,paletteOf as ee,themeColors as ge}from"./colors.js";import{chartAnchors as xe,readChart as ye}from"./charts.js";import{readFileFormula as P}from"./formula.js";import{BUILTIN_FORMATS as we}from"./numfmt.js";import{attr as d,flag as k,numberAttr as x,readXml as ve,readXstring as L,tag as l,tags as b,textOf as F}from"./xml.js";const te=7,ke=o=>Math.floor((256*o+Math.floor(128/te))/256*te),$e=o=>Math.round(o*4/3),B=5;export function placesLine(o){const e=o.slice(0,B).join(", ");return o.length>B?`${e} and ${String(o.length-B)} more`:e}const H=(o,e,t=`${e}s`)=>`${String(o)} ${o===1?e:t}`;class Se{parts;names;constructor(e){this.parts=ae(e),this.names=Object.keys(this.parts)}has(e){return this.parts[e]!==void 0}text(e){const t=this.parts[e];return t?ie(t):void 0}xml(e){const t=this.text(e);return t===void 0?void 0:ve(t)}rels(e){const t=e.lastIndexOf("/"),n=`${e.slice(0,t+1)}_rels/${e.slice(t+1)}.rels`,s=this.xml(n);return b(l(s?.Relationships)?.Relationship).map(r=>{const a=d(r,"Type")??"",c=d(r,"Target")??"",i=d(r,"TargetMode")==="External";return{id:d(r,"Id")??"",type:a.slice(a.lastIndexOf("/")+1),target:i?c:Te(e,c),external:i}})}count(e){return this.names.filter(t=>e.test(t)).length}}function Te(o,e){if(e.startsWith("/"))return e.slice(1);const t=o.split("/").slice(0,-1);for(const n of e.split("/"))n===".."?t.pop():n!=="."&&t.push(n);return t.join("/")}function Ee(o,e){const t=e===void 0?void 0:o.xml(e);return b(l(t?.sst)?.si).map(n=>{const s=b(n.r);return s.length>0?{text:L(s.map(r=>F(r.t)).join("")),rich:!0}:{text:L(F(n.t)),rich:!1}})}function M(o,e){const t=o[e];if(t===void 0)return!1;const n=d(l(t),"val");return n===void 0||n!=="0"&&n!=="false"}const Oe=new Set(["double","singleAccounting","doubleAccounting"]);function Ie(o,e,t){const n={},s=(i,m)=>d(l(i?.[m]),"val");if(M(o,"b")&&(n.bold=!0),M(o,"i")&&(n.italic=!0),M(o,"strike")&&(n.strike=!0),M(o,"u")){const i=s(o,"u");n.underline=i!==void 0&&Oe.has(i)?i:!0}const r=s(o,"name");r!==void 0&&r!==s(e,"name")&&(n.font=r);const a=s(o,"sz");a!==void 0&&a!==s(e,"sz")&&(n.size=Number(a));const c=C(l(o.color),t);return c!==void 0&&c!==C(l(e?.color),t)&&(n.color=c),n}function Ae(o,e){const t=l(o.patternFill),n=d(t,"patternType");if(n===void 0||n==="none")return;const s=C(l(t?.fgColor),e),r=C(l(t?.bgColor),e);return n==="solid"&&s!==void 0?s:{pattern:n,...s===void 0?{}:{color:s},...r===void 0?{}:{background:r}}}function ne(o,e){const t={};for(const n of["left","right","top","bottom"]){const s=l(o[n]),r=d(s,"style");if(r===void 0||r==="none")continue;const a=C(l(s?.color),e);t[n]={style:r,...a===void 0?{}:{color:a}}}return Object.keys(t).length===0?void 0:t}function Ce(o){const e={},t=d(o,"horizontal");t!==void 0&&t!=="general"&&(e.align=t);const n=d(o,"vertical");n!==void 0&&n!=="bottom"&&(e.valign=n),k(o,"wrapText")===!0&&(e.wrap=!0),k(o,"shrinkToFit")===!0&&(e.shrink=!0);const s=x(o,"indent");s!==void 0&&s>0&&(e.indent=s);const r=x(o,"textRotation");return r!==void 0&&r>0&&r<=180&&(e.rotation=r),e}function Fe(o,e){const t={},n=l(o.font);if(n){const i=(f,u)=>{n[f]!==void 0&&(t[u]=M(n,f))};i("b","bold"),i("i","italic"),i("strike","strike"),n.u!==void 0&&(t.underline=M(n,"u"));const m=C(l(n.color),e);m!==void 0&&(t.color=m)}const s=l(l(o.fill)?.patternFill),r=C(l(s?.bgColor),e)??C(l(s?.fgColor),e);r!==void 0&&(t.fill=r);const a=l(o.border),c=a&&ne(a,e);return c!==void 0&&(t.border=c),t}function Re(o,e){const t=l(o?.styleSheet),n=ee(e,t),s=new Map(b(l(t?.numFmts)?.numFmt).map(p=>[x(p,"numFmtId")??-1,d(p,"formatCode")??"General"])),r=b(l(t?.fonts)?.font),a=b(l(t?.fills)?.fill),c=b(l(t?.borders)?.border),i=b(l(t?.cellXfs)?.xf),m=r[x(i[0],"fontId")??0],f=new Set;a.some(p=>p.gradientFill!==void 0)&&f.add("gradient fills");const u=i.map(p=>{const y={},$=r[x(p,"fontId")??0];$&&(Object.assign(y,Ie($,m,n)),$.vertAlign!==void 0&&f.add("superscript and subscript"));const T=a[x(p,"fillId")??0],O=T&&Ae(T,n);O!==void 0&&(y.fill=O);const R=c[x(p,"borderId")??0],I=R&&ne(R,n);I!==void 0&&(y.border=I),R&&d(l(R.diagonal),"style")!==void 0&&f.add("diagonal borders");const w=l(p.alignment);w&&(Object.assign(y,Ce(w)),x(w,"textRotation")===255&&f.add("vertical text"));const S=x(p,"numFmtId")??0,A=s.get(S)??we[S];return A!==void 0&&A!=="General"&&(y.format=A),y}),h=d(l(m?.name),"val"),v=d(l(m?.sz),"val");return{looks:u,dxfs:b(l(t?.dxfs)?.dxf).map(p=>Fe(p,n)),font:{...h===void 0?{}:{name:h},...v===void 0?{}:{size:Number(v)}},lost:[...f]}}function oe(o){const e=new Map;let t=0;for(const n of b(o.filterColumn)){const s=x(n,"colId")??0,r=l(n.filters);if(!r){Object.keys(n).some(c=>c!=="colId"&&c!=="hiddenButton")&&(t+=1);continue}if(r.dateGroupItem!==void 0){t+=1;continue}const a=b(r.filter).map(c=>L(d(c,"val")??""));e.set(s,{...a.length===0?{}:{values:a},...k(r,"blank")===!0?{blanks:!0}:{}})}return{columns:e,unread:t}}function Le(o){const e=l(o?.table),t=z(d(e,"ref")??""),n=d(e,"displayName")??d(e,"name");if(!t||n===void 0)return;const s=l(e?.tableStyleInfo),r=l(e?.autoFilter);return{name:n,ref:t,headers:x(e,"headerRowCount")??1,totals:x(e,"totalsRowCount")??0,columns:b(l(e?.tableColumns)?.tableColumn).map(a=>({name:L(d(a,"name")??"").trim(),calculated:a.calculatedColumnFormula!==void 0})),style:d(s,"name")??"none",...r?{filter:oe(r)}:{}}}function W(o){const e=o.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 s=P(e,!0);return s.ok?Z(s.node):void 0}const re=o=>o!==void 0&&ce.includes(o);function q(o){const e=d(o,"type")??"num",t=d(o,"val"),n=t===void 0?void 0:W(t);return{at:e,...n===void 0?{}:{value:n}}}const Ne=le;function je(o,e,t,n){const s=d(o,"type")??"",r={range:e,...k(o,"stopIfTrue")===!0?{stop:!0}:{}},a=x(o,"dxfId"),c=a===void 0?{}:t[a]??{},i={...c.bold===void 0?{}:{bold:c.bold},...c.italic===void 0?{}:{italic:c.italic},...c.underline===void 0?{}:{underline:c.underline!==!1},...c.strike===void 0?{}:{strike:c.strike},...c.color===void 0?{}:{color:c.color},...typeof c.fill=="string"?{fill:c.fill}:{},...c.border===void 0?{}:{border:c.border}},m=o.formula,f=(Array.isArray(m)?m:m===void 0?[]:[m]).map(F);switch(s){case"cellIs":{const u=d(o,"operator"),h=f.flatMap(v=>{const p=W(v);return p===void 0?[]:[p]});return!re(u)||h.length===0?`a cellIs rule of ${u??"no operator"}`:{...r,...i,type:"cellIs",operator:u,formula:h}}case"containsText":case"notContainsText":case"beginsWith":case"endsWith":{const u=d(o,"text");return u===void 0?`a ${s} rule with no text`:{...r,...i,type:"containsText",...s==="containsText"?{}:{operator:s==="notContainsText"?"notContains":s},text:L(u)}}case"duplicateValues":case"uniqueValues":return{...r,...i,type:s};case"top10":return{...r,...i,type:"top10",rank:x(o,"rank")??10,...k(o,"percent")===!0?{percent:!0}:{},...k(o,"bottom")===!0?{bottom:!0}:{}};case"aboveAverage":return{...r,...i,type:"aboveAverage",...k(o,"aboveAverage")===!1?{below:!0}:{},...k(o,"equalAverage")===!0?{equal:!0}:{}};case"expression":{const u=f[0]===void 0?void 0:P(f[0],!0);return u?.ok?{...r,...i,type:"expression",formula:Z(u.node)}:"an expression rule that cannot be read"}case"dataBar":{const u=l(o.dataBar),h=C(l(u?.color),n),[v,p]=b(u?.cfvo).map(q);return h===void 0?"a data bar with no colour":{...r,type:"dataBar",color:h,...v&&v.at!=="min"?{min:v}:{},...p&&p.at!=="max"?{max:p}:{},...k(u,"showValue")===!1?{show:!1}:{}}}case"colorScale":{const u=l(o.colorScale),h=b(u?.cfvo).map(q),v=b(u?.color).map(y=>C(y,n)),p=h.flatMap((y,$)=>{const T=v[$];return T===void 0?[]:[{...y,color:T}]});return p.length<2?"a colour scale with too few stops":{...r,type:"colorScale",stops:p.slice(0,3)}}case"iconSet":{const u=l(o.iconSet),h=d(u,"iconSet")??"3TrafficLights1";if(!Ne.includes(h))return`the icon set ${h}`;const v=b(u?.cfvo).map(q);return{...r,type:"iconSet",icons:h,...v.length>=3?{stops:v.slice(0,5)}:{},...k(u,"reverse")===!0?{reverse:!0}:{},...k(u,"showValue")===!1?{show:!1}:{}}}default:return`a ${s} rule`}}function Me(o,e,t){const n=[],s=[];for(const r of b(o.conditionalFormatting)){const a=d(r,"sqref")??"";if(!Q(a)){s.push(`a rule on ${a}`);continue}for(const c of b(r.cfRule)){const i=je(c,a,e,t);typeof i=="string"?s.push(`${i} on ${a}`):n.push({priority:x(c,"priority")??0,rule:i})}}return{rules:n.sort((r,a)=>r.priority-a.priority).map(r=>r.rule),unread:s}}const De=de;function Ve(o){const e=[],t=[];for(const n of b(l(o.dataValidations)?.dataValidation)){const s=d(n,"sqref")??"",r=d(n,"type")??"none";if(r==="none"&&d(n,"prompt")===void 0)continue;if(!De.includes(r)||!Q(s)){t.push(`a ${r} rule on ${s}`);continue}const a=F(n.formula1),c=F(n.formula2),i=/^"((?:[^"]|"")*)"$/u.exec(a.trim()),m=r==="list"&&i?(i[1]??"").replaceAll('""','"').split(","):void 0,f=[a,c].flatMap(T=>{const O=W(T);return O===void 0?[]:[O]}),u=d(n,"operator"),h=T=>Object.fromEntries(Object.entries(T).filter(([,O])=>O!==void 0)),v=h({title:d(n,"promptTitle"),message:d(n,"prompt")}),p=h({style:d(n,"errorStyle"),title:d(n,"errorTitle"),message:d(n,"error")}),y=k(n,"showInputMessage")!==!0,$=k(n,"showErrorMessage")!==!0;e.push({range:s,type:r,...re(u)&&u!=="between"?{operator:u}:{},...m?{values:m}:{formula:f},...k(n,"allowBlank")===!0?{}:{blank:!1},...k(n,"showDropDown")===!0?{dropdown:!1}:{},...y||Object.keys(v).length>0?{prompt:{...v,...y?{show:!1}:{}}}:{},...$||Object.keys(p).length>0?{error:{...p,...$?{show:!1}:{}}}:{}})}return{rules:e,unread:t}}function U(o,e){const t=P(o,e);return t.ok?{node:t.node}:{unread:o}}class ze{cells=[];rich=[];masters=new Map;strings;constructor(e){this.strings=e}value(e,t){const n=d(e,"t")??"n",s=e.v;if(n==="inlineStr"){const a=l(e.is),c=b(a?.r);return c.length>0?{value:L(c.map(i=>F(i.t)).join("")),rich:!0}:{value:L(F(a?.t))}}if(s===void 0)return{value:void 0};const r=F(s);switch(n){case"s":{const a=this.strings[Number(r)];return a?{value:a.text,...a.rich?{rich:!0}:{}}:{value:""}}case"str":return{value:L(r)};case"b":return{value:r.trim()==="1"||r.trim()==="true"};case"e":return{value:he(r.trim())??me.VALUE};case"d":{const a=new Date(r.trim());return{value:Number.isNaN(a.getTime())?r:pe(a)}}default:{if(r.trim()==="")return{value:void 0};const a=Number(r);if(Number.isNaN(a))throw new Error(`${t} says it holds a number and holds ${r}.`);return{value:a}}}}formula(e,t,n,s){const r=e.f;if(r===void 0)return;const a=l(r),c=d(a,"t")??"normal",i=F(r);if(c==="dataTable"){s.unread=`a data table's {=TABLE(${d(a,"r1")??""})}`;return}if(c==="array"){const m=e.cm!==void 0;Object.assign(s,U(i,!0));const f=z(d(a,"ref")??"");f&&(s.array=f),m&&(s.dynamic=!0);return}if(c==="shared"){const m=d(a,"si")??"";if(i!==""){const u=U(i,!1);this.masters.set(m,{node:u.node,unread:u.unread,row:t,col:n,key:u.node?fe(u.node,t,n):"",dynamicArray:!1}),Object.assign(s,u),u.node&&(s.key=this.masters.get(m)?.key??"");return}const f=this.masters.get(m);if(!f){s.unread=`a shared formula of a group that has no first cell (${m})`;return}f.node?(s.node=ue(f.node,t-f.row,n-f.col),s.key=f.key):f.unread!==void 0&&(s.unread=f.unread);return}i!==""&&Object.assign(s,U(i,!1))}readRows(e){let t=0;for(const n of e){const s=x(n,"r"),r=s===void 0?t:s-1;t=r+1;let a=0;for(const c of b(n.c)){const i=d(c,"r"),f=(i===void 0?void 0:K(i))?.col??a;a=f+1;const u=i??J({row:r,col:f}),{value:h,rich:v}=this.value(c,u),p={row:r,col:f,value:h,style:x(c,"s")??0};v===!0&&(p.rich=!0,this.rich.push(u)),this.formula(c,r,f,p),this.cells.push(p)}}}}function He(o,e,t){const n=[],s=i=>n.push(`${o}: ${i}`);t.length>0&&s(`${H(t.length,"cell")} of rich text, kept as plain text (${placesLine(t)})`);const r=b(l(e.hyperlinks)?.hyperlink);r.length>0&&s(`${H(r.length,"hyperlink")} (${placesLine(r.map(i=>d(i,"ref")??""))})`),e.sortState!==void 0&&s("a sort"),k(l(e.sheetProtection),"sheet")===!0&&s("protection"),e.protectedRanges!==void 0&&s("protected ranges"),e.headerFooter!==void 0&&F(e.headerFooter).trim()!==""&&s("its print header and footer"),l(e.headerFooter)?.oddHeader!==void 0&&s("its print header"),l(e.headerFooter)?.oddFooter!==void 0&&s("its print footer"),(e.rowBreaks!==void 0||e.colBreaks!==void 0)&&s("its page breaks"),e.oleObjects!==void 0&&s("embedded objects"),e.controls!==void 0&&s("form controls"),e.dataConsolidate!==void 0&&s("a consolidation"),e.customSheetViews!==void 0&&s("custom views"),b(l(e.sheetViews)?.sheetView).some(i=>d(l(i.pane),"state")==="split")&&s("a split, not frozen, window");const c=JSON.stringify(e.extLst??"");return c.includes("sparklineGroups")&&s("sparklines"),X(e.extLst)&&s("conditional formats of Excel 2010 and later"),c.includes("dataValidations")&&s("data validations of Excel 2010 and later"),c.includes("slicerList")&&s("slicers"),n}function X(o){if(typeof o!="object"||o===null)return!1;if(Array.isArray(o))return o.some(X);const e=o;return b(e.cfRule).some(t=>d(t,"type")!=="dataBar")&&e.cfRule!==void 0?!0:Object.values(e).some(X)}function _e(o){const e=[],t=(n,s,r)=>{const a=o.count(n);a>0&&e.push(H(a,s,r))};return o.has("xl/vbaProject.bin")&&e.push("VBA macros"),t(/^xl\/pivotTables\/pivotTable\d*\.xml$/u,"pivot table"),t(/^xl\/chartsheets\/[^/]+\.xml$/u,"chart sheet"),t(/^xl\/dialogsheets\/[^/]+\.xml$/u,"dialog sheet"),t(/^xl\/macrosheets\/[^/]+\.xml$/u,"macro sheet"),t(/^xl\/media\//u,"image"),t(/^xl\/embeddings\//u,"embedded object"),t(/^xl\/comments\d*\.xml$/u,"sheet's comments","sheets' comments"),t(/^xl\/threadedComments\//u,"sheet's threaded comments","sheets' threaded comments"),t(/^xl\/slicers\/[^/]+\.xml$/u,"slicer part"),t(/^xl\/timelines\/[^/]+\.xml$/u,"timeline part"),t(/^xl\/ctrlProps\/[^/]+\.xml$/u,"form control"),t(/^xl\/activeX\/[^/]+\.xml$/u,"ActiveX control"),t(/^xl\/queryTables\/[^/]+\.xml$/u,"query table"),o.has("xl/connections.xml")&&e.push("data connections"),o.names.some(n=>n.startsWith("xl/richData/"))&&e.push("rich values (data types, pictures in cells)"),o.names.some(n=>/^customXml\/item\d+\.xml$/u.test(n)&&(o.text(n)??"").includes("DataMashup"))&&e.push("Power Query queries"),e}function Pe(o,e,t,n,s,r,a){const c=o.xml(e),i=l(c?.worksheet);if(!i)throw new Error(`${e} is not a worksheet.`);const m=new ze(s);m.readRows(b(l(i.sheetData)?.row));const f=b(l(i.cols)?.col).map(g=>{const E=x(g,"width"),D=x(g,"style");return{min:(x(g,"min")??1)-1,max:(x(g,"max")??1)-1,...E===void 0||k(g,"customWidth")===!1?{}:{width:ke(E)},...k(g,"hidden")===!0?{hidden:!0}:{},...D===void 0||D===0?{}:{style:D}}}),u=[];let h=b(l(i.cols)?.col).some(g=>(x(g,"outlineLevel")??0)>0);b(l(i.sheetData)?.row).forEach((g,E)=>{const D=(x(g,"r")??E+1)-1;(x(g,"outlineLevel")??0)>0&&(h=!0);const G=x(g,"ht"),_=x(g,"s"),V={row:D};G!==void 0&&k(g,"customHeight")===!0&&(V.height=$e(G)),k(g,"hidden")===!0&&(V.hidden=!0),_!==void 0&&_!==0&&k(g,"customFormat")===!0&&(V.style=_),Object.keys(V).length>1&&u.push(V)});const v=b(l(i.mergeCells)?.mergeCell).flatMap(g=>{const E=z(d(g,"ref")??"");return E?[E]:[]}),p=b(l(i.sheetViews)?.sheetView)[0],y=l(p?.pane);let $;const T=d(y,"state");if(T==="frozen"||T==="frozenSplit"){const g=K(d(p,"topLeftCell")??"A1")??{row:0,col:0};$={row:g.row+(x(y,"ySplit")??0),col:g.col+(x(y,"xSplit")??0)}}const O=o.rels(e).filter(g=>g.type==="table").flatMap(g=>{const E=Le(o.xml(g.target));return E?[E]:[]}),R=C(l(l(i.sheetPr)?.tabColor),r),I=He(t,i,m.rich);h&&I.push(`${t}: its grouped rows or columns, left ungrouped`);const w=Me(i,a,r),S=Ve(i);for(const g of w.unread)I.push(`${t}: a conditional format, ${g}`);for(const g of S.unread)I.push(`${t}: a data validation, ${g}`);const A=l(i.autoFilter),j=z(d(A,"ref")??""),N=A&&j?{ref:j,...oe(A)}:void 0;N&&N.unread>0&&I.push(`${t}: ${H(N.unread,"filter")} by condition on ${d(A,"ref")??""}, its rows left as they were hidden`);const se=qe(o,e,t,f,u,I);return{sheet:{name:t,state:n,cells:m.cells,merges:v,...$?{freeze:$}:{},...d(p,"showGridLines")==="0"?{gridlines:!1}:{},...R===void 0?{}:{tab:R},columns:f,rows:u,tables:O,conditional:w.rules,validations:S.rules,scenarios:b(l(i.scenarios)?.scenario).map(g=>({name:d(g,"name")??"",cells:b(g.inputCells).map(E=>({at:d(E,"r")??"",value:d(E,"val")??""}))})),...N?{filter:N}:{},charts:se},lost:I}}const Be=64,We=20;function qe(o,e,t,n,s,r){const a=m=>n.find(f=>m>=f.min&&m<=f.max)?.width??Be,c=m=>s.find(f=>f.row===m)?.height??We,i=[];for(const m of o.rels(e).filter(f=>f.type==="drawing")){const{anchors:f}=xe(o.xml(m.target),a,c),u=o.rels(m.target);for(const h of f){const v=u.find($=>$.id===h.id),p=ye(v?o.xml(v.target):void 0),y=J(h.at);if(typeof p=="string"){r.push(`${t}: the chart at ${y}, as ${p}`);continue}i.push({...p,at:y,...h.x===void 0?{}:{x:h.x},...h.y===void 0?{}:{y:h.y},...h.width===Y.width?{}:{width:h.width},...h.height===Y.height?{}:{height:h.height}})}}return i}export function readXlsx(o){let e;try{e=new Se(o)}catch{throw new Error("It is not a zip file, as an .xlsx file is.")}const n=e.rels("").find(w=>w.type==="officeDocument")?.target??"xl/workbook.xml";if(n.endsWith(".bin"))throw new Error("It is a binary workbook (.xlsb): save it as .xlsx.");const s=e.xml(n),r=l(s?.workbook);if(!r)throw new Error("It has no workbook part.");const a=e.rels(n),c=w=>a.find(S=>S.type===w)?.target,i=(()=>{const w=c("theme");return w===void 0?void 0:e.text(w)})(),m=i===void 0?be:ge(i),f=c("styles"),u=f===void 0?void 0:e.xml(f),h=Re(u,m),v=ee(m,l(u?.styleSheet)),p=Ee(e,c("sharedStrings")),y=[..._e(e)];for(const w of h.lost)y.push(w);const $=l(r.workbookPr),T=l(r.calcPr);k(T,"iterate")===!0&&y.push("iterative calculation");const O=l(r.workbookProtection);(k(O,"lockStructure")===!0||k(O,"lockWindows")===!0)&&y.push("the workbook's protection"),r.fileSharing!==void 0&&y.push("its write protection");const R=[],I=new Map(a.map(w=>[w.id,w]));for(const w of b(l(r.sheets)?.sheet)){const S=I.get(d(w,"id")??""),A=L(d(w,"name")??"");if(S?.type!=="worksheet"){S?.type!=="chartsheet"&&S?.type!=="dialogsheet"&&y.push(`${A}: a sheet of a kind this cannot read`);continue}const j=d(w,"state"),N=Pe(e,S.target,A,j==="hidden"||j==="veryHidden"?j:"visible",p,v,h.dxfs);R.push(N.sheet),y.push(...N.lost)}return{sheets:R,names:b(l(r.definedNames)?.definedName).map(w=>{const S=x(w,"localSheetId");return{name:d(w,"name")??"",text:L(F(w)),...S===void 0?{}:{sheet:S}}}),looks:h.looks,dxfs:h.dxfs,date1904:k($,"date1904")===!0,font:h.font,lost:y}}
@@ -0,0 +1,23 @@
1
+ import type { CellLook } from "../workbook.js";
2
+ /** The body font of a workbook, whatever its cells say. */
3
+ export declare const DEFAULT_FONT: {
4
+ readonly name: "Calibri";
5
+ readonly size: 11;
6
+ };
7
+ export declare class Styles {
8
+ private readonly fonts;
9
+ private readonly fills;
10
+ private readonly borders;
11
+ private readonly formats;
12
+ private readonly xfs;
13
+ private readonly byLook;
14
+ private readonly dxfs;
15
+ constructor();
16
+ private format;
17
+ /** The cell format of a look. */
18
+ xf(look: CellLook): number;
19
+ /** The differential format of what a rule gives a cell. */
20
+ dxf(look: CellLook): number;
21
+ xml(): string;
22
+ }
23
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{FIRST_CUSTOM as p,builtinId as g}from"./numfmt.js";import{NS as y,el as e}from"./xml.js";export const DEFAULT_FONT={name:"Calibri",size:11};const s=t=>`FF${t.slice(1).toUpperCase()}`;class l{items=[];index=new Map;add(n){const r=this.index.get(n);if(r!==void 0)return r;const i=this.items.length;return this.items.push(n),this.index.set(n,i),i}}function b(t){const{underline:n}=t;return e("font",{},t.bold===!0?"<b/>":"",t.italic===!0?"<i/>":"",t.strike===!0?"<strike/>":"",n===!0||n==="single"?"<u/>":n?e("u",{val:n}):"",e("sz",{val:t.size??DEFAULT_FONT.size}),t.color===void 0?e("color",{theme:1}):e("color",{rgb:s(t.color)}),e("name",{val:t.font??DEFAULT_FONT.name}),e("family",{val:2}),t.font===void 0?e("scheme",{val:"minor"}):"")}function x(t){const{pattern:n,color:r,background:i}=typeof t=="string"?{pattern:"solid",color:t,background:void 0}:t;return e("fill",{},e("patternFill",{patternType:n},r===void 0?"":e("fgColor",{rgb:s(r)}),i===void 0?n==="solid"?e("bgColor",{indexed:64}):"":e("bgColor",{rgb:s(i)})))}function f(t,n){return n?e(t,{style:n.style},n.color===void 0?e("color",{auto:1}):e("color",{rgb:s(n.color)})):e(t)}function h(t){return e("border",{},f("left",t.left),f("right",t.right),f("top",t.top),f("bottom",t.bottom),e("diagonal"))}function F(t){const{underline:n}=t,r=[t.bold===void 0?"":e("b",{val:t.bold}),t.italic===void 0?"":e("i",{val:t.italic}),t.strike===void 0?"":e("strike",{val:t.strike}),n===!0?"<u/>":"",t.color===void 0?"":e("color",{rgb:s(t.color)})].join(""),{fill:i,border:d}=t;return e("dxf",{},r===""?"":e("font",{},r),typeof i=="string"?e("fill",{},e("patternFill",{},e("bgColor",{rgb:s(i)}))):"",d?h(d):"")}const I=t=>t<0?90-t:t;function v(t){const n={horizontal:t.align,vertical:t.valign,textRotation:t.rotation===void 0?void 0:I(t.rotation),wrapText:t.wrap===!0?!0:void 0,indent:t.indent,shrinkToFit:t.shrink===!0?!0:void 0};return Object.values(n).every(r=>r===void 0)?"":e("alignment",n)}export class Styles{fonts=new l;fills=new l;borders=new l;formats=new Map;xfs=new l;byLook=new Map;dxfs=new l;constructor(){this.fonts.add(b({})),this.fills.add(e("fill",{},e("patternFill",{patternType:"none"}))),this.fills.add(e("fill",{},e("patternFill",{patternType:"gray125"}))),this.borders.add(e("border",{},e("left"),e("right"),e("top"),e("bottom"),e("diagonal"))),this.xfs.add(e("xf",{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}))}format(n){if(n===void 0)return 0;const r=g(n);if(r!==void 0)return r;let i=this.formats.get(n);return i===void 0&&(i=p+this.formats.size,this.formats.set(n,i)),i}xf(n){const r=JSON.stringify(n),i=this.byLook.get(r);if(i!==void 0)return i;const d=this.format(n.format),o=this.fonts.add(b(n)),a=n.fill===void 0?0:this.fills.add(x(n.fill)),u=n.border===void 0?0:this.borders.add(h(n.border)),c=v(n),m=this.xfs.add(e("xf",{numFmtId:d,fontId:o,fillId:a,borderId:u,xfId:0,applyNumberFormat:d===0?void 0:!0,applyFont:o===0?void 0:!0,applyFill:a===0?void 0:!0,applyBorder:u===0?void 0:!0,applyAlignment:c===""?void 0:!0},c));return this.byLook.set(r,m),m}dxf(n){return this.dxfs.add(F(n))}xml(){const n=(i,d)=>e(i,{count:d.length},...d),r=[...this.formats].map(([i,d])=>e("numFmt",{numFmtId:d,formatCode:i}));return e("styleSheet",{xmlns:y.main},r.length>0?n("numFmts",r):"",n("fonts",this.fonts.items),n("fills",this.fills.items),n("borders",this.borders.items),n("cellStyleXfs",[e("xf",{numFmtId:0,fontId:0,fillId:0,borderId:0})]),n("cellXfs",this.xfs.items),n("cellStyles",[e("cellStyle",{name:"Normal",xfId:0,builtinId:0})]),this.dxfs.items.length===0?e("dxfs",{count:0}):n("dxfs",this.dxfs.items),e("tableStyles",{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}))}}
@@ -0,0 +1,3 @@
1
+ /** xl/theme/theme1.xml. */
2
+ export declare const THEME_XML: string;
3
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{NS as i,el as a}from"./xml.js";const e=(c,n)=>`<a:${c}>${n}</a:${c}>`,t=c=>a("a:srgbClr",{val:c}),r=[e("dk1",a("a:sysClr",{val:"windowText",lastClr:"000000"})),e("lt1",a("a:sysClr",{val:"window",lastClr:"FFFFFF"})),e("dk2",t("44546A")),e("lt2",t("E7E6E6")),e("accent1",t("4472C4")),e("accent2",t("ED7D31")),e("accent3",t("A5A5A5")),e("accent4",t("FFC000")),e("accent5",t("5B9BD5")),e("accent6",t("70AD47")),e("hlink",t("0563C1")),e("folHlink",t("954F72"))].join(""),o=(c,n)=>`<a:${c}>${a("a:latin",{typeface:n})}${a("a:ea",{typeface:""})}${a("a:cs",{typeface:""})}</a:${c}>`,l=a("a:solidFill",{},a("a:schemeClr",{val:"phClr"})),s=a("a:ln",{w:6350,cap:"flat",cmpd:"sng",algn:"ctr"},l,a("a:prstDash",{val:"solid"})),f=a("a:effectStyle",{},a("a:effectLst"));export const THEME_XML=a("a:theme",{"xmlns:a":i.drawing,name:"Office Theme"},a("a:themeElements",{},`<a:clrScheme name="Office">${r}</a:clrScheme>`,`<a:fontScheme name="Office">${o("majorFont","Calibri Light")}${o("minorFont","Calibri")}</a:fontScheme>`,a("a:fmtScheme",{name:"Office"},a("a:fillStyleLst",{},l,l,l),a("a:lnStyleLst",{},s,s,s),a("a:effectStyleLst",{},f,f,f),a("a:bgFillStyleLst",{},l,l,l))));
@@ -0,0 +1,17 @@
1
+ import type { Calc } from "../calc/engine.js";
2
+ /** A table's style when sheet.yaml names none. */
3
+ export declare const DEFAULT_TABLE_STYLE = "TableStyleMedium2";
4
+ export interface WriteOptions {
5
+ /** false leaves out what formulas compute: the file has to be computed by what opens it. */
6
+ cached?: boolean;
7
+ /** A file a `files` column names, from the sheet's folder: a picture goes in its cell. */
8
+ file?: (path: string) => Uint8Array | undefined;
9
+ }
10
+ export interface WrittenXlsx {
11
+ bytes: Uint8Array;
12
+ /** What of the workbook a file does not hold. */
13
+ left: string[];
14
+ }
15
+ /** A computed workbook as the bytes of an .xlsx file. */
16
+ export declare function writeXlsx(calc: Calc, o?: WriteOptions): WrittenXlsx;
17
+ //# sourceMappingURL=write.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{zipSync as se}from"fflate";import{cellName as R,columnIndex as ne,columnLetter as Y,rangeName as E}from"../address.js";import{parseFormula as oe}from"../formula/parse.js";import{sheetPrefix as re}from"../formula/print.js";import{fileCells as ie,isPicture as ae,pictureHeight as le,pictureSize as ce}from"../files.js";import{scenariosByCell as de}from"../scenario.js";import{CellError as P,readTyped as he}from"../values.js";import{FormulaCell as me}from"../workbook.js";import{chartPart as fe,drawingPart as ue}from"./charts.js";import{fileFormula as O,needsArray as V}from"./formula.js";import{Styles as pe}from"./styles.js";import{THEME_XML as ge}from"./theme.js";import{HEAD as g,NS as y,el as o,xstring as x}from"./xml.js";const $={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"},w=`${y.rel}/`,G=new Date(1980,0,1),xe=191029;export const DEFAULT_TABLE_STYLE="TableStyleMedium2";const $e=64,we=7,be=l=>Math.min(255,Math.floor(l/we*256)/256),ye=l=>Math.min(409.5,l*3/4),z=32767,B=255,Se=2e5,ke=o("metadata",{xmlns:y.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 e=this.index.get(t);return e===void 0&&(e=this.index.size,this.index.set(t,e)),e}xml(){const t=[...this.index.keys()].map(e=>`<si><t${/^\s|\s$|\n/u.test(e)?' xml:space="preserve"':""}>${x(e)}</t></si>`);return o("sst",{xmlns:y.main,count:this.count,uniqueCount:this.index.size},...t)}}const H=l=>x(l),Te="Base case";function Ce(l){const t=new Map;for(const n of l.scenarios)for(const r of n.cells)t.set(R(r),r);const e=(n,r)=>o("inputCells",{r:R(n),val:r===null||r instanceof P?"":typeof r=="boolean"?r?"1":"0":String(r)}),s=(n,r)=>o("scenario",{name:n,locked:!0,count:r.length,user:"AllyHub"},...r);return o("scenarios",{current:0,show:0,sqref:[...t.keys()].join(" ")},s(Te,[...t.values()].map(n=>e(n,n.base))),...l.scenarios.map(n=>s(n.name,n.cells.map(r=>e(r,r.value)))))}function Ae(l,t,e,s){const n=[];let r=0;for(const{row:d,col:h,paths:a,column:i}of ie(l,t)){let c=0;const u=le(i);for(const S of a){const b=ae(S)?e?.(S):void 0,k=b&&ce(b);if(!b||!k){r+=1;continue}const M=Math.round(k.width/k.height*u);n.push({row:d,col:h,x:c,width:M,height:u,name:S.split("/").pop()??S,file:`.${k.type==="jpeg"?"jpg":k.type}`,bytes:b}),c+=M+4}}return r>0&&s.push(`${l.name}: ${String(r)} file${r===1?"":"s"} in a cell, which stay${r===1?"s":""} a name`),n}class Ee{arrays=!1;places=new Map;sheet;calc;styles;strings;wb;cached;left;isTable;isRangeName;hiddenRows;tall;scenarios;drawn;constructor(t,e,s,n,r,d,h=[],a){this.sheet=t,this.calc=e,this.wb=e.wb,this.styles=s,this.strings=n,this.cached=r,this.left=d,this.isTable=c=>this.wb.table(c)!==void 0,this.isRangeName=c=>{const u=this.wb.name(c)?.formula?.node;return this.isTable(c)||u!==void 0&&V({kind:"unary",op:"-",arg:u})},this.hiddenRows=e.filtered(t),this.scenarios=a,this.drawn=t.charts.length>0||h.length>0;const i=new Map;for(const c of h)i.set(c.row,Math.max(i.get(c.row)??0,c.height));this.tall=i}add(t,e){let s=this.places.get(t);s||(s=new Set,this.places.set(t,s)),s.add(e)}gather(){const{sheet:t}=this;for(let e=0;e<t.columnsUsed;e++){const[s,n]=t.span(e,0,Number.MAX_SAFE_INTEGER);for(let r=s;r<=n;r++)(t.at(r,e)!==void 0||t.spillAt(r,e))&&this.add(r,e)}for(const{area:e}of t.styledAreas()){const s=(e.bottom-e.top+1)*(e.right-e.left+1);if(s>Se){this.left.push(`${t.name}!${E(e)}: its look on the cells that hold something, ${String(s)} cells being too many to write empty`);continue}for(let n=e.top;n<=e.bottom;n++)for(let r=e.left;r<=e.right;r++)this.add(n,r)}for(const e of t.keys.keys())this.add(Math.floor(e/16384),e%16384)}styleOf(t,e){const s=this.sheet.lookAt(t,e);return Object.keys(s).length===0?void 0:this.styles.xf(s)}held(t,e){return e.length<=z?e:(this.left.push(`${this.sheet.name}!${t} past Excel's ${String(z)} characters, of its ${String(e.length)}`),e.slice(0,z))}value(t,e,s){return s===null?o("c",{r:t,s:e}):typeof s=="number"?`<c r="${t}"${p(e)}><v>${String(s)}</v></c>`:typeof s=="boolean"?`<c r="${t}"${p(e)} t="b"><v>${s?"1":"0"}</v></c>`:s instanceof P?Z(s)?`<c r="${t}"${p(e)} t="e"><v>${s.code}</v></c>`:`<c r="${t}"${p(e)} t="s"><v>${String(this.strings.of(s.code))}</v></c>`:`<c r="${t}"${p(e)} t="s"><v>${String(this.strings.of(this.held(t,s)))}</v></c>`}table(t){return this.sheet.tableAt(t.row,t.col)?.name}formula(t,e,s){const n=this.calc.value(s.sheet,s.row,s.col),{node:r}=s.shared;if(!r)return`<c r="${t}"${p(e)} t="e"><v>#NAME?</v></c>`;const d=s.moved,h=s.array!==void 0||s.blocked!==void 0||V(d,this.isRangeName),a=O(d,{table:this.table(s),isTable:this.isTable,array:h});let i=`<f>${H(a)}</f>`,c="";if(h){this.arrays=!0;const u=s.spill??{top:s.row,left:s.col,bottom:s.row,right:s.col};i=`<f t="array" ref="${E(u)}">${H(a)}</f>`,c=' cm="1"'}return this.cached?n===null||typeof n=="number"?`<c r="${t}"${p(e)}${c}>${i}<v>${String(n??0)}</v></c>`:typeof n=="boolean"?`<c r="${t}"${p(e)} t="b"${c}>${i}<v>${n?"1":"0"}</v></c>`:n instanceof P?Z(n)?`<c r="${t}"${p(e)} t="e"${c}>${i}<v>${n.code}</v></c>`:`<c r="${t}"${p(e)}${c}>${i}<v>0</v></c>`:`<c r="${t}"${p(e)} t="str"${c}>${i}<v>${x(this.held(t,n))}</v></c>`:`<c r="${t}"${p(e)}${c}>${i}</c>`}cell(t,e){const s=R({row:t,col:e}),n=this.styleOf(t,e),r=this.sheet.at(t,e);return r instanceof me?this.formula(s,n,r):r===void 0&&this.sheet.spillAt(t,e)&&this.cached?this.value(s,n,this.calc.value(this.sheet,t,e)):this.value(s,n,r??null)}columns(){const{sheet:t}=this,{spec:e}=t,s=new Map,n=new Map;for(const a of t.tables)for(const i of a.columns)i.spec?.width!==void 0&&n.set(a.at.col+i.index,i.spec.width);const r=new Set(n.keys()),d=new Map;for(const[a,i]of Object.entries(e.columns??{})){const c=ne(a);c!==void 0&&(d.set(c,i),r.add(c))}for(const a of r){const i=d.get(a),c=i?.width??n.get(a),u=J(i);s.set(a,o("col",{min:a+1,max:a+1,width:be(c??$e),style:u===void 0?void 0:this.styles.xf(u),hidden:i?.hidden===!0?!0:void 0,customWidth:c===void 0?void 0:!0}))}const h=[...s.keys()].sort((a,i)=>a-i).map(a=>s.get(a)??"");return h.length===0?"":o("cols",{},...h)}rowAttrs(t){const e=this.sheet.spec.rows?.[String(t+1)],s=J(e),n=e?.height??this.tall.get(t);return{r:t+1,s:s===void 0?void 0:this.styles.xf(s),customFormat:s===void 0?void 0:!0,ht:n===void 0?void 0:ye(n),customHeight:n===void 0?void 0:!0,hidden:e?.hidden===!0||this.hiddenRows.has(t)?!0:void 0}}rows(){const{sheet:t}=this,e=new Set(this.places.keys());for(const n of Object.keys(t.spec.rows??{}))e.add(Number(n)-1);for(const n of this.hiddenRows)e.add(n);const s=[];for(const n of[...e].sort((r,d)=>r-d)){const r=[...this.places.get(n)??[]].sort((a,i)=>a-i),d=o("row",this.rowAttrs(n)).slice(4,-2);if(r.length===0){s.push(`<row${d}/>`);continue}let h=`<row${d}>`;for(const a of r)h+=this.cell(n,a);s.push(`${h}</row>`)}return s.join("")}view(t){const{freeze:e}=this.sheet;let s="";if(e&&(e.row>0||e.col>0)){const n=e.row>0&&e.col>0?"bottomRight":e.row>0?"bottomLeft":"topRight";s=o("pane",{xSplit:e.col>0?e.col:void 0,ySplit:e.row>0?e.row:void 0,topLeftCell:R(e),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},s))}write(t,e){const{sheet:s}=this;this.gather();const n=_e(this.places),r=this.rows(),d=s.merges.map(i=>o("mergeCell",{ref:E(i)})),h=s.tables.map((i,c)=>o("tablePart",{"r:id":`rId${String(c+1)}`}));return{xml:g+o("worksheet",{xmlns:y.main,"xmlns:r":y.rel},s.spec.tab===void 0?"":o("sheetPr",{},o("tabColor",{rgb:`FF${s.spec.tab.slice(1).toUpperCase()}`})),o("dimension",{ref:n?E(n):"A1"}),this.view(t),o("sheetFormatPr",{defaultRowHeight:15}),this.columns(),r===""?o("sheetData"):`<sheetData>${r}</sheetData>`,this.scenarios?Ce(this.scenarios):"",this.sheetFilter(),d.length>0?o("mergeCells",{count:d.length},...d):"",...s.conditions.map((i,c)=>this.condition(i,c+1)),this.validations(),o("pageMargins",{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3}),this.drawn?o("drawing",{"r:id":`rId${String(h.length+1)}`}):"",h.length>0?o("tableParts",{count:h.length},...h):""),tables:s.tables.map((i,c)=>this.tableXml(i,e+c))}}bound(t){if(t===void 0)return"";if(typeof t=="number")return String(t);if(!t.startsWith("=")){const s=he(t);return typeof s.value=="number"&&s.formula===void 0?String(s.value):`"${t.replaceAll('"','""')}"`}const e=oe(t);return e.ok?O(e.node,{isTable:this.isTable,array:!0}):t.slice(1)}cfvo(t){return o("cfvo",{type:t.at,val:t.value===void 0?void 0:typeof t.value=="number"?t.value:this.bound(t.value)})}condition(t,e){const{spec:s}=t,n=s.range,r=(i,...c)=>o("conditionalFormatting",{sqref:n},o("cfRule",{...i,priority:e,stopIfTrue:s.stop===!0?!0:void 0},...c)),d=()=>{const i=Me(s);return Object.keys(i).length===0?void 0:this.styles.dxf(i)},h=t.areas[0],a=h?R({row:h.top,col:h.left}):"A1";switch(s.type){case"cellIs":return r({type:"cellIs",dxfId:d(),operator:s.operator},...s.formula.map(i=>o("formula",{},x(this.bound(i)))));case"containsText":{const i=s.operator??"contains",c=`"${s.text.replaceAll('"','""')}"`,u=i==="contains"?`NOT(ISERROR(SEARCH(${c},${a})))`:i==="notContains"?`ISERROR(SEARCH(${c},${a}))`:i==="beginsWith"?`LEFT(${a},LEN(${c}))=${c}`:`RIGHT(${a},LEN(${c}))=${c}`;return r({type:i==="contains"?"containsText":i==="notContains"?"notContainsText":i,dxfId:d(),operator:i==="contains"?"containsText":i,text:s.text},o("formula",{},x(u)))}case"duplicateValues":case"uniqueValues":return r({type:s.type,dxfId:d()});case"top10":return r({type:"top10",dxfId:d(),percent:s.percent===!0?!0:void 0,bottom:s.bottom===!0?!0:void 0,rank:s.rank});case"aboveAverage":return r({type:"aboveAverage",dxfId:d(),aboveAverage:s.below===!0?!1:void 0,equalAverage:s.equal===!0?!0:void 0});case"expression":return r({type:"expression",dxfId:d()},o("formula",{},x(this.bound(s.formula.startsWith("=")?s.formula:`=${s.formula}`))));case"dataBar":return r({type:"dataBar"},o("dataBar",{showValue:s.show===!1?!1:void 0},this.cfvo(s.min??{at:"min"}),this.cfvo(s.max??{at:"max"}),o("color",{rgb:K(s.color)})));case"colorScale":return r({type:"colorScale"},o("colorScale",{},...s.stops.map(i=>this.cfvo(i)),...s.stops.map(i=>o("color",{rgb:K(i.color)}))));case"iconSet":{const i=Number.parseInt(s.icons,10),c=s.stops??Array.from({length:i},(u,S)=>({at:"percent",value:Math.round(S*100/i)}));return r({type:"iconSet"},o("iconSet",{iconSet:s.icons,showValue:s.show===!1?!1:void 0,reverse:s.reverse===!0?!0:void 0},...c.map(u=>this.cfvo(u))))}}}validation(t){const{spec:e}=t;let s="";if(e.values){const h=e.values.join(",");(h.length>B||e.values.some(a=>a.includes(",")))&&this.left.push(`${this.sheet.name}!${e.range}: a list a file's cell cannot spell out, its values longer than ${String(B)} characters or holding a comma`),s=`"${h.slice(0,B)}"`}else s=this.bound(e.formula?.[0]);const n=this.bound(e.formula?.[1]),{error:r,prompt:d}=e;return e.multiple===!0&&this.left.push(`${this.sheet.name}!${e.range}: several choices in a cell: its text stays, and Excel's list offers one at a time`),o("dataValidation",{type:e.type,errorStyle:r?.style===void 0||r.style==="stop"?void 0:r.style,operator:e.operator===void 0||e.operator==="between"?void 0:e.operator,allowBlank:e.blank===!1?void 0:!0,showDropDown:e.dropdown===!1?!0:void 0,showInputMessage:d?.show===!1?void 0:!0,showErrorMessage:r?.show===!1||e.multiple===!0?void 0:!0,errorTitle:r?.title,error:r?.message,promptTitle:d?.title,prompt:d?.message,sqref:e.range},s===""?"":o("formula1",{},x(s)),n===""?"":o("formula2",{},x(n)))}validations(){const t=this.sheet.validations;return t.length===0?"":o("dataValidations",{count:t.length},...t.map(e=>this.validation(e)))}filterColumns(t){return[...t.columns.entries()].sort(([e],[s])=>e-s).map(([e,s])=>Ie(e-t.area.left,s))}sheetFilter(){const t=this.sheet.filters.find(e=>!e.table);return t?o("autoFilter",{ref:E(t.area)},...this.filterColumns(t)):""}columnFormula(t,e){if(!e?.node)return"";const s=V(e.node,this.isRangeName),n=O(e.node,{table:t.name,isTable:this.isTable,array:s});return o("calculatedColumnFormula",{array:s?!0:void 0},H(n))}tableXml(t,e){const s=t.area,n=E({...s,bottom:Math.max(s.bottom,s.top+1)}),r=t.spec.style??DEFAULT_TABLE_STYLE,d=this.sheet.filters.find(h=>h.table===t);return g+o("table",{xmlns:y.main,id:e,name:t.name,displayName:t.name,ref:n,totalsRowShown:0},d?o("autoFilter",{ref:n},...this.filterColumns(d)):"",o("tableColumns",{count:t.columns.length},...t.columns.map((h,a)=>o("tableColumn",{id:a+1,name:h.name},this.columnFormula(t,h.formula)))),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 K=l=>`FF${l.slice(1).toUpperCase()}`;function Me(l){if(l.type==="dataBar"||l.type==="colorScale"||l.type==="iconSet")return{};const t={};for(const e of["bold","italic","underline","strike","color","fill","border"])l[e]!==void 0&&(t[e]=l[e]);return t}function Ie(l,t){return o("filterColumn",{colId:l},o("filters",{blank:t.blanks===!0?!0:void 0},...(t.values??[]).map(e=>o("filter",{val:e}))))}const p=l=>l===void 0?"":` s="${String(l)}"`,Z=l=>l.code!=="#CYCLE!";function _e(l){let t;for(const[e,s]of l)for(const n of s)t?(t.top=Math.min(t.top,e),t.bottom=Math.max(t.bottom,e),t.left=Math.min(t.left,n),t.right=Math.max(t.right,n)):t={top:e,bottom:e,left:n,right:n};return t}const Re=new Set(["width","height","hidden"]);function J(l){if(!l)return;const t=Object.fromEntries(Object.entries(l).filter(([e])=>!Re.has(e)));return Object.keys(t).length===0?void 0:t}const D=l=>g+o("Relationships",{xmlns:y.pkg},...l.map(([t,e],s)=>o("Relationship",{Id:`rId${String(s+1)}`,Type:t,Target:e})));function Le(l,t){const e=l.name(t);if(!e)return;const s=e.formula?.node;if(s)return O(s,{isTable:r=>l.table(r)!==void 0,array:!0});const{value:n}=e;return n==null?'""':typeof n=="string"?`"${n.replaceAll('"','""')}"`:typeof n=="boolean"?n?"TRUE":"FALSE":n instanceof P?n.code:String(n)}const Fe=(l,t)=>l.length===t.length&&l.every((e,s)=>e===t[s]),Pe=l=>`$${Y(l.left)}$${String(l.top+1)}:$${Y(l.right)}$${String(l.bottom+1)}`;export function writeXlsx(l,t={}){const e=l.wb,s=[];e.checks.length>0&&s.push(`${String(e.checks.length)} check${e.checks.length===1?"":"s"}: a file has no such thing`);const n=de(l);s.push(...n.left);const r=new pe,d=new ve,h=new TextEncoder,a={},i=[["/xl/workbook.xml",$.sheet]],c=Math.max(0,e.sheets.findIndex(m=>m.spec.hidden!==!0));let u=1,S=!1;const b=new Map;let k=0,M=0;for(const[m,f]of e.sheets.entries()){const v=String(m+1),T=Ae(f,l,t.file,s),q=new Ee(f,l,r,d,t.cached!==!1,s,T,n.sheets.find(C=>C.sheet===f)),U=q.write(m===c,u);S||=q.arrays,a[`xl/worksheets/sheet${v}.xml`]=U.xml,i.push([`/xl/worksheets/sheet${v}.xml`,$.worksheet]);const L=[];for(const C of U.tables){const A=`table${String(u)}.xml`;u+=1,a[`xl/tables/${A}`]=C,i.push([`/xl/tables/${A}`,$.table]),L.push([`${w}table`,`../tables/${A}`])}if(f.charts.length>0||T.length>0){k+=1;const C=`drawing${String(k)}.xml`;a[`xl/drawings/${C}`]=ue(f.charts,T),i.push([`/xl/drawings/${C}`,$.drawing]),L.push([`${w}drawing`,`../drawings/${C}`]);const A=f.charts.map(_=>{M+=1;const F=`chart${String(M)}.xml`;return a[`xl/charts/${F}`]=fe(l,f,_),i.push([`/xl/charts/${F}`,$.chart]),[`${w}chart`,`../charts/${F}`]});for(const _ of T){const W=[...b].find(([,te])=>Fe(te,_.bytes))?.[0]??`image${String(b.size+1)}${_.file}`;b.set(W,_.bytes),A.push([`${w}image`,`../media/${W}`])}a[`xl/drawings/_rels/${C}.rels`]=D(A)}L.length>0&&(a[`xl/worksheets/_rels/sheet${v}.xml.rels`]=D(L))}const Q=e.sheets.length,I=e.sheets.map((m,f)=>[`${w}worksheet`,`worksheets/sheet${String(f+1)}.xml`]);I.push([`${w}theme`,"theme/theme1.xml"]),I.push([`${w}styles`,"styles.xml"]),I.push([`${w}sharedStrings`,"sharedStrings.xml"]),S&&(I.push([`${w}sheetMetadata`,"metadata.xml"]),a["xl/metadata.xml"]=g+ke,i.push(["/xl/metadata.xml",$.metadata]));const N=[...e.names.values()].flatMap(m=>{const f=Le(e,m.name);return f===void 0?[]:[o("definedName",{name:m.name},x(f))]});e.sheets.forEach((m,f)=>{const v=m.filters.find(T=>!T.table);v&&N.push(o("definedName",{name:"_xlnm._FilterDatabase",localSheetId:f,hidden:!0},x(`${re(m.name)}${Pe(v.area)}`)))}),a["xl/workbook.xml"]=g+o("workbook",{xmlns:y.main,"xmlns:r":y.rel},o("workbookPr",{}),o("bookViews",{},o("workbookView",{activeTab:c===0?void 0:c})),o("sheets",{},...e.sheets.map((m,f)=>o("sheet",{name:m.name,sheetId:f+1,state:m.spec.hidden===!0?"hidden":void 0,"r:id":`rId${String(f+1)}`}))),N.length>0?o("definedNames",{},...N):"",o("calcPr",{calcId:xe,fullCalcOnLoad:!0})),a["xl/_rels/workbook.xml.rels"]=D(I),a["xl/styles.xml"]=g+r.xml(),a["xl/sharedStrings.xml"]=g+d.xml(),a["xl/theme/theme1.xml"]=g+ge,a["docProps/core.xml"]=g+o("cp:coreProperties",{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/"},e.title===void 0?"":o("dc:title",{},x(e.title))),a["docProps/app.xml"]=g+o("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"},o("Application",{},"AllyHub")),a["_rels/.rels"]=D([[`${w}officeDocument`,"xl/workbook.xml"],["http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"],[`${w}extended-properties`,"docProps/app.xml"]]),i.push(["/xl/styles.xml",$.styles],["/xl/sharedStrings.xml",$.strings],["/xl/theme/theme1.xml",$.theme],["/docProps/core.xml",$.core],["/docProps/app.xml",$.app]),a["[Content_Types].xml"]=g+o("Types",{xmlns:y.types},o("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),o("Default",{Extension:"xml",ContentType:"application/xml"}),...[...new Set([...b.keys()].map(m=>m.split(".").pop()??""))].sort().map(m=>o("Default",{Extension:m,ContentType:`image/${m==="jpg"?"jpeg":m}`})),...i.map(([m,f])=>o("Override",{PartName:m,ContentType:f})));const X=["[Content_Types].xml","_rels/.rels","docProps/app.xml","docProps/core.xml","xl/workbook.xml","xl/_rels/workbook.xml.rels",...Array.from({length:Q},(m,f)=>`xl/worksheets/sheet${String(f+1)}.xml`)],ee=[...X,...Object.keys(a).filter(m=>!X.includes(m)).sort()],j={};for(const m of ee)j[m]=[h.encode(a[m]??""),{mtime:G}];for(const[m,f]of[...b].sort(([v],[T])=>v.localeCompare(T)))j[`xl/media/${m}`]=[f,{mtime:G}];return{bytes:se(j),left:s}}
@@ -0,0 +1,28 @@
1
+ /** Text as an ST_Xstring, then escaped for XML. */
2
+ export declare function xstring(text: string): string;
3
+ /** What an ST_Xstring says. */
4
+ export declare const readXstring: (text: string) => string;
5
+ export type Attrs = Record<string, string | number | boolean | undefined>;
6
+ /** An element: its attributes in the order given (undefined ones left out, booleans as 1 and 0) and its children. */
7
+ export declare function el(name: string, attrs?: Attrs, ...children: string[]): string;
8
+ export declare const HEAD = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
9
+ export declare const NS: {
10
+ readonly main: "http://schemas.openxmlformats.org/spreadsheetml/2006/main";
11
+ readonly rel: "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
12
+ readonly pkg: "http://schemas.openxmlformats.org/package/2006/relationships";
13
+ readonly types: "http://schemas.openxmlformats.org/package/2006/content-types";
14
+ readonly drawing: "http://schemas.openxmlformats.org/drawingml/2006/main";
15
+ };
16
+ /** An element or an attribute as the parser gives it. */
17
+ export type Tag = Record<string, unknown>;
18
+ /** A part's root element. */
19
+ export declare function readXml(text: string): Tag;
20
+ export declare const tags: (v: unknown) => Tag[];
21
+ export declare const tag: (v: unknown) => Tag | undefined;
22
+ /** An element's text; "" for an empty one. */
23
+ export declare function textOf(v: unknown): string;
24
+ export declare const attr: (t: Tag | undefined, name: string) => string | undefined;
25
+ export declare const numberAttr: (t: Tag | undefined, name: string) => number | undefined;
26
+ /** An xsd:boolean. */
27
+ export declare const flag: (t: Tag | undefined, name: string) => boolean | undefined;
28
+ //# sourceMappingURL=xml.d.ts.map
@@ -0,0 +1,3 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{XMLParser as f}from"fast-xml-parser";const l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},c=e=>e<32&&e!==9&&e!==10||e===65534||e===65535||e>=55296&&e<=57343,p=e=>e.toString(16).toUpperCase().padStart(4,"0");export function xstring(e){const r=e.replace(/_(?=x[0-9A-Fa-f]{4}_)/gu,"_x005F_");let t="";for(const n of r){const o=n.codePointAt(0)??0;t+=n.length===1&&c(o)?`_x${p(o)}_`:n}return t.replace(/[&<>"]/gu,n=>l[n]??n)}export const readXstring=e=>e.includes("_x")?e.replace(/_x([0-9A-Fa-f]{4})_/gu,(r,t)=>String.fromCharCode(Number.parseInt(t,16))):e;export function el(e,r={},...t){let n="";for(const[i,s]of Object.entries(r))s!==void 0&&(n+=` ${i}="${xstring(typeof s=="boolean"?s?"1":"0":String(s))}"`);const o=t.join("");return o===""?`<${e}${n}/>`:`<${e}${n}>${o}</${e}>`}export const HEAD=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3
+ `,NS={main:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",rel:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",pkg:"http://schemas.openxmlformats.org/package/2006/relationships",types:"http://schemas.openxmlformats.org/package/2006/content-types",drawing:"http://schemas.openxmlformats.org/drawingml/2006/main"};const u=new Set(["c","row","col","cols","si","r","rPh","sheet","definedName","font","fill","border","numFmt","xf","Relationship","Override","Default","mergeCell","tablePart","tableColumn","sheetView","pane","selection","conditionalFormatting","dataValidation","hyperlink","rgbColor","brk","filterColumn","externalReference","gsd"]),d=new f({ignoreAttributes:!1,attributeNamePrefix:"",removeNSPrefix:!0,trimValues:!1,parseTagValue:!1,parseAttributeValue:!1,processEntities:!0,htmlEntities:!0,textNodeName:"#text",isArray:(e,r,t,n)=>!n&&u.has(e)});export function readXml(e){return d.parse(e)}const a=e=>typeof e=="object"?e:{};export const tags=e=>Array.isArray(e)?e.map(a):e===void 0?[]:[a(e)],tag=e=>{const r=Array.isArray(e)?e[0]:e;return r===void 0?void 0:a(r)};export function textOf(e){if(typeof e=="string")return e;if(e==null)return"";if(Array.isArray(e))return e.map(textOf).join("");const r=e["#text"];return typeof r=="string"?r:""}export const attr=(e,r)=>{const t=e?.[r];return typeof t=="string"?t:void 0},numberAttr=(e,r)=>{const t=attr(e,r);if(t===void 0||t==="")return;const n=Number(t);return Number.isFinite(n)?n:void 0},flag=(e,r)=>{const t=attr(e,r);return t===void 0?void 0:t==="1"||t==="true"};
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@allyhub-next/sheet",
3
+ "version": "0.5.0",
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
+ }