@gridsheet/react-core 3.0.0-rc.0 → 3.0.0-rc.10

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 (313) hide show
  1. package/LICENSE +190 -0
  2. package/dist/hooks-Y7BI_RNj.mjs +1103 -0
  3. package/dist/hooks-Y7BI_RNj.mjs.map +1 -0
  4. package/dist/index.d.ts +2 -31
  5. package/dist/index.js +3180 -12636
  6. package/dist/index.js.map +1 -1
  7. package/dist/react-core/src/components/Cell.d.ts.map +1 -0
  8. package/dist/react-core/src/components/CellStateOverlay.d.ts.map +1 -0
  9. package/dist/react-core/src/components/ColumnMenu.d.ts.map +1 -0
  10. package/dist/react-core/src/components/ColumnMenuFilterSection.d.ts +5 -0
  11. package/dist/react-core/src/components/ColumnMenuFilterSection.d.ts.map +1 -0
  12. package/dist/react-core/src/components/ColumnMenuLabelSection.d.ts +5 -0
  13. package/dist/react-core/src/components/ColumnMenuLabelSection.d.ts.map +1 -0
  14. package/dist/react-core/src/components/ColumnMenuSortSection.d.ts +5 -0
  15. package/dist/react-core/src/components/ColumnMenuSortSection.d.ts.map +1 -0
  16. package/dist/react-core/src/components/ContextMenu.d.ts +2 -0
  17. package/dist/react-core/src/components/ContextMenu.d.ts.map +1 -0
  18. package/dist/react-core/src/components/Editor.d.ts.map +1 -0
  19. package/dist/react-core/src/components/EditorOptions.d.ts +11 -0
  20. package/dist/react-core/src/components/EditorOptions.d.ts.map +1 -0
  21. package/dist/react-core/src/components/Emitter.d.ts.map +1 -0
  22. package/dist/react-core/src/components/Fixed.d.ts.map +1 -0
  23. package/dist/react-core/src/components/FormulaBar.d.ts.map +1 -0
  24. package/dist/react-core/src/components/FunctionGuide.d.ts +19 -0
  25. package/dist/react-core/src/components/FunctionGuide.d.ts.map +1 -0
  26. package/dist/react-core/src/components/GridSheet.d.ts +7 -0
  27. package/dist/react-core/src/components/GridSheet.d.ts.map +1 -0
  28. package/dist/react-core/src/components/HeaderCellLeft.d.ts.map +1 -0
  29. package/dist/react-core/src/components/HeaderCellTop.d.ts.map +1 -0
  30. package/dist/react-core/src/components/MenuItem.d.ts +18 -0
  31. package/dist/react-core/src/components/MenuItem.d.ts.map +1 -0
  32. package/dist/{components → react-core/src/components}/PluginBase.d.ts +2 -2
  33. package/dist/react-core/src/components/PluginBase.d.ts.map +1 -0
  34. package/dist/react-core/src/components/Resizer.d.ts.map +1 -0
  35. package/dist/react-core/src/components/RowMenu.d.ts.map +1 -0
  36. package/dist/react-core/src/components/ScrollHandle.d.ts.map +1 -0
  37. package/dist/react-core/src/components/SearchBar.d.ts.map +1 -0
  38. package/dist/react-core/src/components/StoreObserver.d.ts +14 -0
  39. package/dist/react-core/src/components/StoreObserver.d.ts.map +1 -0
  40. package/dist/react-core/src/components/Tabular.d.ts.map +1 -0
  41. package/dist/react-core/src/components/svg/AddIcon.d.ts.map +1 -0
  42. package/dist/react-core/src/components/svg/Base.d.ts.map +1 -0
  43. package/dist/react-core/src/components/svg/CloseIcon.d.ts.map +1 -0
  44. package/dist/react-core/src/components/svg/SearchIcon.d.ts.map +1 -0
  45. package/dist/react-core/src/components/useAutocomplete.d.ts +23 -0
  46. package/dist/react-core/src/components/useAutocomplete.d.ts.map +1 -0
  47. package/dist/react-core/src/index.d.ts +17 -0
  48. package/dist/react-core/src/index.d.ts.map +1 -0
  49. package/dist/react-core/src/lib/clipboard.d.ts +18 -0
  50. package/dist/react-core/src/lib/clipboard.d.ts.map +1 -0
  51. package/dist/react-core/src/lib/events.d.ts.map +1 -0
  52. package/dist/{components → react-core/src/lib}/hooks.d.ts +2 -0
  53. package/dist/react-core/src/lib/hooks.d.ts.map +1 -0
  54. package/dist/react-core/src/lib/menu.d.ts +99 -0
  55. package/dist/react-core/src/lib/menu.d.ts.map +1 -0
  56. package/dist/react-core/src/lib/paste.d.ts.map +1 -0
  57. package/dist/react-core/src/lib/style.d.ts +12 -0
  58. package/dist/react-core/src/lib/style.d.ts.map +1 -0
  59. package/dist/react-core/src/policy/checkbox.d.ts +3 -0
  60. package/dist/react-core/src/policy/checkbox.d.ts.map +1 -0
  61. package/dist/react-core/src/spellbook.d.ts +6 -0
  62. package/dist/react-core/src/spellbook.d.ts.map +1 -0
  63. package/dist/{store → react-core/src/store}/actions.d.ts +15 -3
  64. package/dist/react-core/src/store/actions.d.ts.map +1 -0
  65. package/dist/react-core/src/store/applyers.d.ts +40 -0
  66. package/dist/react-core/src/store/applyers.d.ts.map +1 -0
  67. package/dist/react-core/src/store/helpers.d.ts +33 -0
  68. package/dist/react-core/src/store/helpers.d.ts.map +1 -0
  69. package/dist/react-core/src/store/index.d.ts.map +1 -0
  70. package/dist/react-core/src/types.d.ts +101 -0
  71. package/dist/react-core/src/types.d.ts.map +1 -0
  72. package/dist/spellbook.d.ts +2 -0
  73. package/dist/spellbook.js +9 -0
  74. package/dist/spellbook.js.map +1 -0
  75. package/package.json +28 -10
  76. package/dist/components/Cell.d.ts.map +0 -1
  77. package/dist/components/CellStateOverlay.d.ts.map +0 -1
  78. package/dist/components/ColumnMenu.d.ts.map +0 -1
  79. package/dist/components/ContextMenu.d.ts +0 -20
  80. package/dist/components/ContextMenu.d.ts.map +0 -1
  81. package/dist/components/Editor.d.ts.map +0 -1
  82. package/dist/components/Emitter.d.ts.map +0 -1
  83. package/dist/components/Fixed.d.ts.map +0 -1
  84. package/dist/components/FormulaBar.d.ts.map +0 -1
  85. package/dist/components/GridSheet.d.ts +0 -5
  86. package/dist/components/GridSheet.d.ts.map +0 -1
  87. package/dist/components/HeaderCellLeft.d.ts.map +0 -1
  88. package/dist/components/HeaderCellTop.d.ts.map +0 -1
  89. package/dist/components/PluginBase.d.ts.map +0 -1
  90. package/dist/components/Resizer.d.ts.map +0 -1
  91. package/dist/components/RowMenu.d.ts.map +0 -1
  92. package/dist/components/ScrollHandle.d.ts.map +0 -1
  93. package/dist/components/SearchBar.d.ts.map +0 -1
  94. package/dist/components/StoreObserver.d.ts +0 -11
  95. package/dist/components/StoreObserver.d.ts.map +0 -1
  96. package/dist/components/Tabular.d.ts.map +0 -1
  97. package/dist/components/hooks.d.ts.map +0 -1
  98. package/dist/components/svg/AddIcon.d.ts.map +0 -1
  99. package/dist/components/svg/Base.d.ts.map +0 -1
  100. package/dist/components/svg/CloseIcon.d.ts.map +0 -1
  101. package/dist/components/svg/SearchIcon.d.ts.map +0 -1
  102. package/dist/constants.d.ts +0 -30
  103. package/dist/constants.d.ts.map +0 -1
  104. package/dist/formula/evaluator.d.ts +0 -136
  105. package/dist/formula/evaluator.d.ts.map +0 -1
  106. package/dist/formula/functions/__async.d.ts +0 -59
  107. package/dist/formula/functions/__async.d.ts.map +0 -1
  108. package/dist/formula/functions/__base.d.ts +0 -31
  109. package/dist/formula/functions/__base.d.ts.map +0 -1
  110. package/dist/formula/functions/__utils.d.ts +0 -19
  111. package/dist/formula/functions/__utils.d.ts.map +0 -1
  112. package/dist/formula/functions/abs.d.ts +0 -12
  113. package/dist/formula/functions/abs.d.ts.map +0 -1
  114. package/dist/formula/functions/acos.d.ts +0 -12
  115. package/dist/formula/functions/acos.d.ts.map +0 -1
  116. package/dist/formula/functions/add.d.ts +0 -13
  117. package/dist/formula/functions/add.d.ts.map +0 -1
  118. package/dist/formula/functions/and.d.ts +0 -19
  119. package/dist/formula/functions/and.d.ts.map +0 -1
  120. package/dist/formula/functions/asin.d.ts +0 -12
  121. package/dist/formula/functions/asin.d.ts.map +0 -1
  122. package/dist/formula/functions/atan.d.ts +0 -12
  123. package/dist/formula/functions/atan.d.ts.map +0 -1
  124. package/dist/formula/functions/atan2.d.ts +0 -12
  125. package/dist/formula/functions/atan2.d.ts.map +0 -1
  126. package/dist/formula/functions/average.d.ts +0 -19
  127. package/dist/formula/functions/average.d.ts.map +0 -1
  128. package/dist/formula/functions/col.d.ts +0 -13
  129. package/dist/formula/functions/col.d.ts.map +0 -1
  130. package/dist/formula/functions/concat.d.ts +0 -12
  131. package/dist/formula/functions/concat.d.ts.map +0 -1
  132. package/dist/formula/functions/concatenate.d.ts +0 -19
  133. package/dist/formula/functions/concatenate.d.ts.map +0 -1
  134. package/dist/formula/functions/cos.d.ts +0 -12
  135. package/dist/formula/functions/cos.d.ts.map +0 -1
  136. package/dist/formula/functions/count.d.ts +0 -19
  137. package/dist/formula/functions/count.d.ts.map +0 -1
  138. package/dist/formula/functions/counta.d.ts +0 -19
  139. package/dist/formula/functions/counta.d.ts.map +0 -1
  140. package/dist/formula/functions/countif.d.ts +0 -13
  141. package/dist/formula/functions/countif.d.ts.map +0 -1
  142. package/dist/formula/functions/divide.d.ts +0 -12
  143. package/dist/formula/functions/divide.d.ts.map +0 -1
  144. package/dist/formula/functions/eq.d.ts +0 -12
  145. package/dist/formula/functions/eq.d.ts.map +0 -1
  146. package/dist/formula/functions/exp.d.ts +0 -12
  147. package/dist/formula/functions/exp.d.ts.map +0 -1
  148. package/dist/formula/functions/gt.d.ts +0 -12
  149. package/dist/formula/functions/gt.d.ts.map +0 -1
  150. package/dist/formula/functions/gte.d.ts +0 -12
  151. package/dist/formula/functions/gte.d.ts.map +0 -1
  152. package/dist/formula/functions/hlookup.d.ts +0 -18
  153. package/dist/formula/functions/hlookup.d.ts.map +0 -1
  154. package/dist/formula/functions/if.d.ts +0 -17
  155. package/dist/formula/functions/if.d.ts.map +0 -1
  156. package/dist/formula/functions/iferror.d.ts +0 -20
  157. package/dist/formula/functions/iferror.d.ts.map +0 -1
  158. package/dist/formula/functions/index.d.ts +0 -18
  159. package/dist/formula/functions/index.d.ts.map +0 -1
  160. package/dist/formula/functions/len.d.ts +0 -12
  161. package/dist/formula/functions/len.d.ts.map +0 -1
  162. package/dist/formula/functions/lenb.d.ts +0 -12
  163. package/dist/formula/functions/lenb.d.ts.map +0 -1
  164. package/dist/formula/functions/ln.d.ts +0 -12
  165. package/dist/formula/functions/ln.d.ts.map +0 -1
  166. package/dist/formula/functions/log.d.ts +0 -12
  167. package/dist/formula/functions/log.d.ts.map +0 -1
  168. package/dist/formula/functions/log10.d.ts +0 -12
  169. package/dist/formula/functions/log10.d.ts.map +0 -1
  170. package/dist/formula/functions/lt.d.ts +0 -12
  171. package/dist/formula/functions/lt.d.ts.map +0 -1
  172. package/dist/formula/functions/lte.d.ts +0 -12
  173. package/dist/formula/functions/lte.d.ts.map +0 -1
  174. package/dist/formula/functions/match.d.ts +0 -18
  175. package/dist/formula/functions/match.d.ts.map +0 -1
  176. package/dist/formula/functions/match.test.d.ts +0 -2
  177. package/dist/formula/functions/match.test.d.ts.map +0 -1
  178. package/dist/formula/functions/max.d.ts +0 -19
  179. package/dist/formula/functions/max.d.ts.map +0 -1
  180. package/dist/formula/functions/min.d.ts +0 -19
  181. package/dist/formula/functions/min.d.ts.map +0 -1
  182. package/dist/formula/functions/minus.d.ts +0 -13
  183. package/dist/formula/functions/minus.d.ts.map +0 -1
  184. package/dist/formula/functions/mod.d.ts +0 -12
  185. package/dist/formula/functions/mod.d.ts.map +0 -1
  186. package/dist/formula/functions/multiply.d.ts +0 -12
  187. package/dist/formula/functions/multiply.d.ts.map +0 -1
  188. package/dist/formula/functions/ne.d.ts +0 -12
  189. package/dist/formula/functions/ne.d.ts.map +0 -1
  190. package/dist/formula/functions/not.d.ts +0 -12
  191. package/dist/formula/functions/not.d.ts.map +0 -1
  192. package/dist/formula/functions/now.d.ts +0 -9
  193. package/dist/formula/functions/now.d.ts.map +0 -1
  194. package/dist/formula/functions/or.d.ts +0 -19
  195. package/dist/formula/functions/or.d.ts.map +0 -1
  196. package/dist/formula/functions/pi.d.ts +0 -9
  197. package/dist/formula/functions/pi.d.ts.map +0 -1
  198. package/dist/formula/functions/power.d.ts +0 -12
  199. package/dist/formula/functions/power.d.ts.map +0 -1
  200. package/dist/formula/functions/product.d.ts +0 -19
  201. package/dist/formula/functions/product.d.ts.map +0 -1
  202. package/dist/formula/functions/radians.d.ts +0 -12
  203. package/dist/formula/functions/radians.d.ts.map +0 -1
  204. package/dist/formula/functions/rand.d.ts +0 -9
  205. package/dist/formula/functions/rand.d.ts.map +0 -1
  206. package/dist/formula/functions/round.d.ts +0 -17
  207. package/dist/formula/functions/round.d.ts.map +0 -1
  208. package/dist/formula/functions/rounddown.d.ts +0 -17
  209. package/dist/formula/functions/rounddown.d.ts.map +0 -1
  210. package/dist/formula/functions/roundup.d.ts +0 -17
  211. package/dist/formula/functions/roundup.d.ts.map +0 -1
  212. package/dist/formula/functions/row.d.ts +0 -13
  213. package/dist/formula/functions/row.d.ts.map +0 -1
  214. package/dist/formula/functions/sin.d.ts +0 -12
  215. package/dist/formula/functions/sin.d.ts.map +0 -1
  216. package/dist/formula/functions/sqrt.d.ts +0 -12
  217. package/dist/formula/functions/sqrt.d.ts.map +0 -1
  218. package/dist/formula/functions/sum.d.ts +0 -19
  219. package/dist/formula/functions/sum.d.ts.map +0 -1
  220. package/dist/formula/functions/sumif.d.ts +0 -18
  221. package/dist/formula/functions/sumif.d.ts.map +0 -1
  222. package/dist/formula/functions/tan.d.ts +0 -12
  223. package/dist/formula/functions/tan.d.ts.map +0 -1
  224. package/dist/formula/functions/uminus.d.ts +0 -12
  225. package/dist/formula/functions/uminus.d.ts.map +0 -1
  226. package/dist/formula/functions/vlookup.d.ts +0 -18
  227. package/dist/formula/functions/vlookup.d.ts.map +0 -1
  228. package/dist/formula/mapping.d.ts +0 -3
  229. package/dist/formula/mapping.d.ts.map +0 -1
  230. package/dist/formula/solver.d.ts +0 -26
  231. package/dist/formula/solver.d.ts.map +0 -1
  232. package/dist/index.d.ts.map +0 -1
  233. package/dist/lib/autofill.d.ts +0 -17
  234. package/dist/lib/autofill.d.ts.map +0 -1
  235. package/dist/lib/cell.d.ts +0 -3
  236. package/dist/lib/cell.d.ts.map +0 -1
  237. package/dist/lib/clipboard.d.ts +0 -3
  238. package/dist/lib/clipboard.d.ts.map +0 -1
  239. package/dist/lib/coords.d.ts +0 -10
  240. package/dist/lib/coords.d.ts.map +0 -1
  241. package/dist/lib/date.d.ts +0 -2
  242. package/dist/lib/date.d.ts.map +0 -1
  243. package/dist/lib/events.d.ts.map +0 -1
  244. package/dist/lib/filter.d.ts +0 -7
  245. package/dist/lib/filter.d.ts.map +0 -1
  246. package/dist/lib/hub.d.ts +0 -132
  247. package/dist/lib/hub.d.ts.map +0 -1
  248. package/dist/lib/input.d.ts +0 -15
  249. package/dist/lib/input.d.ts.map +0 -1
  250. package/dist/lib/operation.d.ts +0 -34
  251. package/dist/lib/operation.d.ts.map +0 -1
  252. package/dist/lib/palette.d.ts +0 -2
  253. package/dist/lib/palette.d.ts.map +0 -1
  254. package/dist/lib/paste.d.ts.map +0 -1
  255. package/dist/lib/reference.d.ts +0 -13
  256. package/dist/lib/reference.d.ts.map +0 -1
  257. package/dist/lib/sheet.d.ts +0 -3
  258. package/dist/lib/sheet.d.ts.map +0 -1
  259. package/dist/lib/spatial.d.ts +0 -92
  260. package/dist/lib/spatial.d.ts.map +0 -1
  261. package/dist/lib/table.d.ts +0 -458
  262. package/dist/lib/table.d.ts.map +0 -1
  263. package/dist/lib/time.d.ts +0 -25
  264. package/dist/lib/time.d.ts.map +0 -1
  265. package/dist/lib/virtualization.d.ts +0 -22
  266. package/dist/lib/virtualization.d.ts.map +0 -1
  267. package/dist/parsers/core.d.ts +0 -38
  268. package/dist/parsers/core.d.ts.map +0 -1
  269. package/dist/policy/core.d.ts +0 -47
  270. package/dist/policy/core.d.ts.map +0 -1
  271. package/dist/renderers/checkbox.d.ts +0 -5
  272. package/dist/renderers/checkbox.d.ts.map +0 -1
  273. package/dist/renderers/core.d.ts +0 -66
  274. package/dist/renderers/core.d.ts.map +0 -1
  275. package/dist/renderers/thousand_separator.d.ts +0 -3
  276. package/dist/renderers/thousand_separator.d.ts.map +0 -1
  277. package/dist/store/actions.d.ts.map +0 -1
  278. package/dist/store/dispatchers.d.ts +0 -34
  279. package/dist/store/dispatchers.d.ts.map +0 -1
  280. package/dist/store/helpers.d.ts +0 -31
  281. package/dist/store/helpers.d.ts.map +0 -1
  282. package/dist/store/index.d.ts.map +0 -1
  283. package/dist/styles/embedder.d.ts +0 -2
  284. package/dist/styles/embedder.d.ts.map +0 -1
  285. package/dist/styles/minified.d.ts +0 -3
  286. package/dist/styles/minified.d.ts.map +0 -1
  287. package/dist/styles/utils.d.ts +0 -52
  288. package/dist/styles/utils.d.ts.map +0 -1
  289. package/dist/types.d.ts +0 -355
  290. package/dist/types.d.ts.map +0 -1
  291. package/dist/utils.d.ts +0 -2
  292. package/dist/utils.d.ts.map +0 -1
  293. /package/dist/{components → react-core/src/components}/Cell.d.ts +0 -0
  294. /package/dist/{components → react-core/src/components}/CellStateOverlay.d.ts +0 -0
  295. /package/dist/{components → react-core/src/components}/ColumnMenu.d.ts +0 -0
  296. /package/dist/{components → react-core/src/components}/Editor.d.ts +0 -0
  297. /package/dist/{components → react-core/src/components}/Emitter.d.ts +0 -0
  298. /package/dist/{components → react-core/src/components}/Fixed.d.ts +0 -0
  299. /package/dist/{components → react-core/src/components}/FormulaBar.d.ts +0 -0
  300. /package/dist/{components → react-core/src/components}/HeaderCellLeft.d.ts +0 -0
  301. /package/dist/{components → react-core/src/components}/HeaderCellTop.d.ts +0 -0
  302. /package/dist/{components → react-core/src/components}/Resizer.d.ts +0 -0
  303. /package/dist/{components → react-core/src/components}/RowMenu.d.ts +0 -0
  304. /package/dist/{components → react-core/src/components}/ScrollHandle.d.ts +0 -0
  305. /package/dist/{components → react-core/src/components}/SearchBar.d.ts +0 -0
  306. /package/dist/{components → react-core/src/components}/Tabular.d.ts +0 -0
  307. /package/dist/{components → react-core/src/components}/svg/AddIcon.d.ts +0 -0
  308. /package/dist/{components → react-core/src/components}/svg/Base.d.ts +0 -0
  309. /package/dist/{components → react-core/src/components}/svg/CloseIcon.d.ts +0 -0
  310. /package/dist/{components → react-core/src/components}/svg/SearchIcon.d.ts +0 -0
  311. /package/dist/{lib → react-core/src/lib}/events.d.ts +0 -0
  312. /package/dist/{lib → react-core/src/lib}/paste.d.ts +0 -0
  313. /package/dist/{store → react-core/src/store}/index.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"autofill.d.ts","sourceRoot":"","sources":["../../src/lib/autofill.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAgC,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC7F,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKhC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAgBtC,qBAAa,QAAQ;IACnB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAW;IAC/B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAW;IAC/B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;gBAClB,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS;IAYnD,IAAW,OAAO,IAAI,KAAK,CAyD1B;IAED,IAAW,SAAS,aAEnB;IAEM,YAAY,CAAC,MAAM,EAAE,SAAS;IAmErC,OAAO,CAAC,kBAAkB;IAgB1B,OAAO,CAAC,gBAAgB;IA8BxB,OAAO,CAAC,iBAAiB;CA6F1B"}
@@ -1,3 +0,0 @@
1
- import { CellType } from '../types';
2
- export declare const filterCellFields: (cell: CellType, ignoreFields: (keyof CellType)[]) => CellType;
3
- //# sourceMappingURL=cell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../src/lib/cell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,eAAO,MAAM,gBAAgB,GAAI,MAAM,QAAQ,EAAE,cAAc,CAAC,MAAM,QAAQ,CAAC,EAAE,KAAG,QAOnF,CAAC"}
@@ -1,3 +0,0 @@
1
- import { StoreType, AreaType } from '../types';
2
- export declare const clip: (store: StoreType) => AreaType;
3
- //# sourceMappingURL=clipboard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../src/lib/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAa,MAAM,UAAU,CAAC;AAK/D,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,aAsCpC,CAAC"}
@@ -1,10 +0,0 @@
1
- import { Address, ExtraPointType } from '../types';
2
- export declare const x2c: (x: number) => string;
3
- export declare const c2x: (col: string, absolute?: boolean) => number;
4
- export declare const y2r: (y: number) => string;
5
- export declare const r2y: (row: number | string, absolute?: boolean) => number;
6
- export declare const p2a: ({ y, x, absX, absY }: ExtraPointType) => string;
7
- export declare const a2p: (address: Address) => ExtraPointType;
8
- export declare const grantAddressAbsolute: (address: Address, absCol: boolean, absRow: boolean) => string | undefined;
9
- export declare const stripAddressAbsolute: (address: Address) => string;
10
- //# sourceMappingURL=coords.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coords.d.ts","sourceRoot":"","sources":["../../src/lib/coords.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAa,cAAc,EAAE,MAAM,UAAU,CAAC;AAwDnE,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,KAAG,MAM/B,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,KAAK,MAAM,EAAE,kBAAgB,KAAG,MAGnD,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,WAK5B,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,KAAK,MAAM,GAAG,MAAM,EAAE,kBAAgB,WAKzD,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,sBAAsB,cAAc,WAQvD,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,SAAS,OAAO,KAAG,cAYtC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,EAAE,QAAQ,OAAO,EAAE,QAAQ,OAAO,uBAOtF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,WAEpD,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function parseDate(value: string): Date | undefined;
2
- //# sourceMappingURL=date.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/lib/date.ts"],"names":[],"mappings":"AA+EA,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAyBzD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/lib/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAG,OAUnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,KAAG,IAI3E,CAAC"}
@@ -1,7 +0,0 @@
1
- import { FilterCondition, FilterConditionMethod, FilterConfig } from '../types';
2
- type FilterFunction = (condition: FilterCondition, cellValue: any) => boolean;
3
- export declare const filterFunctions: Record<FilterConditionMethod, FilterFunction>;
4
- export declare function evaluateFilterCondition(condition: FilterCondition, cellValue: any): boolean;
5
- export declare function evaluateFilterConfig(filter: FilterConfig, cellValue: any): boolean;
6
- export {};
7
- //# sourceMappingURL=filter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/lib/filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIrF,KAAK,cAAc,GAAG,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,KAAK,OAAO,CAAC;AA+J9E,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,qBAAqB,EAAE,cAAc,CAWzE,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,GAAG,OAAO,CAG3F;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,GAAG,OAAO,CAUlF"}
package/dist/lib/hub.d.ts DELETED
@@ -1,132 +0,0 @@
1
- import { Pending } from '../constants';
2
- import { HistoryType, RefPaletteType, SheetIdsByName, ContextsBySheetId, ZoneType, CellsByIdType, Id, System, FeedbackType, EditorEvent, CursorStateType } from '../types';
3
- import { UserTable, Table } from './table';
4
- import { FunctionMapping } from '../formula/functions/__base';
5
- import { PolicyType } from '../policy/core';
6
- import { RendererType } from '../renderers/core';
7
- import { ParserType } from '../parsers/core';
8
- export type WireProps = {
9
- historyLimit?: number;
10
- additionalFunctions?: FunctionMapping;
11
- renderers?: {
12
- [rendererName: string]: RendererType | null;
13
- };
14
- parsers?: {
15
- [parserName: string]: ParserType | null;
16
- };
17
- labelers?: {
18
- [labelerName: string]: ((n: number) => string) | null;
19
- };
20
- policies?: {
21
- [policyName: string]: PolicyType | null;
22
- };
23
- onSave?: FeedbackType;
24
- onChange?: FeedbackType;
25
- onRemoveRows?: (args: {
26
- table: UserTable;
27
- ys: number[];
28
- }) => void;
29
- onRemoveCols?: (args: {
30
- table: UserTable;
31
- xs: number[];
32
- }) => void;
33
- onInsertRows?: (args: {
34
- table: UserTable;
35
- y: number;
36
- numRows: number;
37
- }) => void;
38
- onInsertCols?: (args: {
39
- table: UserTable;
40
- x: number;
41
- numCols: number;
42
- }) => void;
43
- onSelect?: FeedbackType;
44
- onKeyUp?: (args: {
45
- e: EditorEvent;
46
- points: CursorStateType;
47
- }) => void;
48
- onInit?: (args: {
49
- table: UserTable;
50
- }) => void;
51
- };
52
- export type HubProps = WireProps;
53
- export declare class Wire {
54
- sheetHead: number;
55
- cellHead: number;
56
- data: CellsByIdType;
57
- sheetIdsByName: SheetIdsByName;
58
- contextsBySheetId: ContextsBySheetId;
59
- choosingSheetId: number;
60
- choosingAddress: string;
61
- editingSheetId: number;
62
- editingAddress: string;
63
- paletteBySheetName: {
64
- [sheetName: string]: RefPaletteType;
65
- };
66
- lastFocused: HTMLTextAreaElement | null;
67
- solvedCaches: Map<Id, any>;
68
- /** Currently in-flight async formula Pending sentinels (keyed by cell ID). */
69
- asyncPending: Map<string, Pending>;
70
- copyingSheetId: number;
71
- copyingZone: ZoneType;
72
- cutting: boolean;
73
- histories: HistoryType[];
74
- historyIndex: number;
75
- historyLimit: number;
76
- lastHistory?: HistoryType;
77
- currentHistory?: HistoryType;
78
- ready: boolean;
79
- functions: FunctionMapping;
80
- renderers: {
81
- [rendererName: string]: RendererType | null;
82
- };
83
- parsers: {
84
- [parserName: string]: ParserType | null;
85
- };
86
- labelers: {
87
- [labelerName: string]: ((n: number) => string) | null;
88
- };
89
- policies: {
90
- [policyName: string]: PolicyType | null;
91
- };
92
- onSave?: FeedbackType;
93
- onChange?: FeedbackType;
94
- onRemoveRows?: (args: {
95
- table: UserTable;
96
- ys: number[];
97
- }) => void;
98
- onRemoveCols?: (args: {
99
- table: UserTable;
100
- xs: number[];
101
- }) => void;
102
- onInsertRows?: (args: {
103
- table: UserTable;
104
- y: number;
105
- numRows: number;
106
- }) => void;
107
- onInsertCols?: (args: {
108
- table: UserTable;
109
- x: number;
110
- numCols: number;
111
- }) => void;
112
- onSelect?: FeedbackType;
113
- onKeyUp?: (args: {
114
- e: EditorEvent;
115
- points: CursorStateType;
116
- }) => void;
117
- onInit?: (args: {
118
- table: UserTable;
119
- }) => void;
120
- transmit: (newHub?: TransmitProps) => void;
121
- identifyFormula(): void;
122
- getSystem(id: Id, table: Table): System;
123
- constructor({ historyLimit, additionalFunctions, renderers, parsers, labelers, policies, onSave, onChange, onRemoveRows, onRemoveCols, onInsertRows, onInsertCols, onSelect, onKeyUp, onInit, }?: WireProps);
124
- }
125
- export type TransmitProps = Partial<Wire>;
126
- export declare const createWire: (props?: WireProps) => Wire;
127
- export type HubType = {
128
- wire: Wire;
129
- };
130
- export declare const createHub: (props?: WireProps) => HubType;
131
- export declare const useHub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EF,eAAO,MAAM,SAAS,GAAI,QAAO,SAAc,KAAG,OAEjD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,QAAO,SAAc,YAc3C,CAAC"}
@@ -1,15 +0,0 @@
1
- import { PointType } from '../types';
2
- import { Table } from './table';
3
- export declare const insertTextAtCursor: (input: HTMLTextAreaElement, text: string) => void;
4
- type InsertRefProps = {
5
- input: HTMLTextAreaElement | null;
6
- ref: string;
7
- dryRun?: boolean;
8
- };
9
- export declare const insertRef: ({ input, ref, dryRun }: InsertRefProps) => boolean;
10
- export declare const isRefInsertable: (input: HTMLTextAreaElement | null) => boolean;
11
- export declare const expandInput: (input: HTMLTextAreaElement | null) => void;
12
- export declare const resetInput: (input: HTMLTextAreaElement | null, table: Table, point: PointType) => void;
13
- export declare const isFocus: (input: HTMLTextAreaElement | null) => boolean;
14
- export {};
15
- //# sourceMappingURL=input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/lib/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMrC,eAAO,MAAM,kBAAkB,GAAI,OAAO,mBAAmB,EAAE,MAAM,MAAM,SAQ1E,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,wBAAgC,cAAc,KAAG,OAgD1E,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,mBAAmB,GAAG,IAAI,KAAG,OAEnE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,mBAAmB,GAAG,IAAI,SAM5D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,mBAAmB,GAAG,IAAI,EAAE,OAAO,KAAK,EAAE,OAAO,SAAS,SAS3F,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,mBAAmB,GAAG,IAAI,KAAG,OAK3D,CAAC"}
@@ -1,34 +0,0 @@
1
- import { OperationType as operations } from '../types';
2
- export declare const RemoveRows: operations;
3
- export declare const RemoveCols: operations;
4
- export declare const InsertRowsAbove: operations;
5
- export declare const InsertRowsBelow: operations;
6
- export declare const InsertColsLeft: operations;
7
- export declare const InsertColsRight: operations;
8
- export declare const MoveFrom: operations;
9
- export declare const MoveTo: operations;
10
- export declare const Write: operations;
11
- export declare const Style: operations;
12
- export declare const Copy: operations;
13
- export declare const Resize: operations;
14
- export declare const SetRenderer: operations;
15
- export declare const SetParser: operations;
16
- export declare const SetPolicy: operations;
17
- export declare const Sort: operations;
18
- export declare const Filter: operations;
19
- export declare const SetLabel: operations;
20
- export declare const SetLabeler: operations;
21
- export declare const NoOperation: operations;
22
- export declare const Move: operations;
23
- export declare const Update: operations;
24
- export declare const InsertRows: operations;
25
- export declare const InsertCols: operations;
26
- export declare const Add: operations;
27
- export declare const Delete: operations;
28
- export declare const ReadOnly: operations;
29
- export declare const ColumnMenu: operations;
30
- export declare const RowMenu: operations;
31
- export declare const ViewOnly: operations;
32
- export declare const hasOperation: (operation: operations | undefined, flag: operations) => boolean;
33
- export declare const debugOperations: (prevention: operations | undefined) => string[];
34
- //# sourceMappingURL=operation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../src/lib/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAEvD,eAAO,MAAM,UAAU,EAAE,UAAoE,CAAC;AAC9F,eAAO,MAAM,UAAU,EAAE,UAAoE,CAAC;AAC9F,eAAO,MAAM,eAAe,EAAE,UAAoE,CAAC;AACnG,eAAO,MAAM,eAAe,EAAE,UAAoE,CAAC;AACnG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AGF,eAAO,MAAM,eAAe,GAAI,YAAY,UAAU,GAAG,SAAS,aAsDjE,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const COLOR_PALETTE: string[];
2
- //# sourceMappingURL=palette.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/lib/palette.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,UAqBzB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"paste.d.ts","sourceRoot":"","sources":["../../src/lib/paste.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,mBAAiB,KAAG,WAAW,EAAE,EA4FxE,CAAC;AAiEF,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,YAAU,KAAG,WAAW,EAAE,EAkChE,CAAC"}
@@ -1,13 +0,0 @@
1
- import { CellsByIdType, Id } from '../types';
2
- import { Table } from './table';
3
- export declare class ReferencePreserver {
4
- map: {
5
- [id: Id]: Id;
6
- };
7
- private table;
8
- private dependentIds;
9
- constructor(table: Table);
10
- addTheDependents(...ids: Id[]): void;
11
- resolveDependents(operation?: 'move' | 'removeRows' | 'removeCols'): CellsByIdType;
12
- }
13
- //# sourceMappingURL=reference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../src/lib/reference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,kBAAkB;IACtB,GAAG,EAAE;QAAE,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAA;KAAE,CAAM;IAClC,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,YAAY,CAA0B;gBAElC,KAAK,EAAE,KAAK;IAIxB,gBAAgB,CAAC,GAAG,GAAG,EAAE,EAAE,EAAE;IAS7B,iBAAiB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa;CAmBnF"}
@@ -1,3 +0,0 @@
1
- export declare const escapeSheetName: (name: string) => string;
2
- export declare const getSheetPrefix: (name?: string) => string;
3
- //# sourceMappingURL=sheet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/lib/sheet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAG9C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAK9C,CAAC"}
@@ -1,92 +0,0 @@
1
- import { MatrixType, AreaType, ZoneType, RangeType, PointType, Y, X, CellsByAddressType, ShapeType, MatricesByAddress, CellType, Address } from '../types';
2
- export declare const slideArea: (area: AreaType, y: Y, x: X) => AreaType;
3
- export declare const superposeArea: (srcArea: AreaType, dstArea: AreaType) => ShapeType;
4
- export declare const concatAreas: (area1: AreaType, area2: AreaType) => AreaType;
5
- export declare const zoneToArea: (zone: ZoneType) => AreaType;
6
- export declare const areaToZone: (area: AreaType) => ZoneType;
7
- export declare const areaToRange: (area: AreaType) => string;
8
- export declare const between: (range: RangeType, index: number) => boolean;
9
- export declare const among: (area: AreaType, point: PointType) => boolean;
10
- type ShapeExtension = {
11
- base?: number;
12
- };
13
- export declare const zoneShape: ({ base, ...zone }: ZoneType & ShapeExtension) => ShapeType;
14
- export declare const areaShape: ({ base, ...area }: AreaType & ShapeExtension) => ShapeType;
15
- export declare const matrixShape: ({ base, matrix }: {
16
- matrix: MatrixType;
17
- } & ShapeExtension) => ShapeType;
18
- export declare const makeSequence: (start: number, stop: number, step?: number) => number[];
19
- export declare const oa2aa: (oa: {
20
- [s: string]: any;
21
- }[], fields: string[]) => MatrixType;
22
- export declare const aa2oa: (aa: MatrixType, fields: string[]) => {
23
- [s: string]: any;
24
- }[];
25
- type PutMatrixFilterProps<T = any> = {
26
- srcValue: T;
27
- dstValue: T;
28
- srcPoint: PointType;
29
- dstPoint: PointType;
30
- };
31
- export declare const putMatrix: <T = any>(dst: T[][], src: T[][], dstArea: AreaType, filter?: (arg: PutMatrixFilterProps) => boolean) => MatricesByAddress<T>;
32
- export declare const createMatrix: <T = any>(numRows: number, numCols: number, fill?: T) => T[][];
33
- export declare const cropMatrix: <T = any>(matrix: T[][], area: AreaType) => T[][];
34
- export declare const buildInitialCellsFromOrigin: ({ cells, ensured, matrix, flattenAs, origin, }: {
35
- cells?: CellsByAddressType;
36
- ensured?: {
37
- numRows?: number;
38
- numCols?: number;
39
- };
40
- flattenAs?: keyof CellType;
41
- matrix?: MatrixType;
42
- origin?: Address;
43
- }) => CellsByAddressType;
44
- export declare const buildInitialCells: ({ cells, ensured, matrices, flattenAs, }?: {
45
- cells?: CellsByAddressType;
46
- ensured?: {
47
- numRows?: number;
48
- numCols?: number;
49
- };
50
- flattenAs?: keyof CellType;
51
- matrices?: MatricesByAddress<any>;
52
- }) => CellsByAddressType;
53
- export declare const buildCells: <T>({ cells, matrices, flattenAs, }: {
54
- cells?: CellsByAddressType;
55
- flattenAs?: keyof CellType;
56
- matrices?: MatricesByAddress<T>;
57
- }) => CellsByAddressType;
58
- export declare const getMaxSizesFromCells: (cells?: CellsByAddressType) => {
59
- numRows: number;
60
- numCols: number;
61
- };
62
- export declare const range: (start: number, end: number) => number[];
63
- export declare const complementSelectingArea: (selectingArea: AreaType, choosing: PointType) => AreaType;
64
- export declare const isSameArea: (area1: AreaType, area2: AreaType) => boolean;
65
- export declare const expandRange: (range: string) => Address[];
66
- export declare const restrictZone: (zone: ZoneType) => ZoneType;
67
- export type BinarySearchPredicate = (mid: number) => boolean;
68
- export declare const binarySearch: (low: number, high: number, predicate: BinarySearchPredicate, lessThan: boolean) => number;
69
- export declare const moveKey: (obj: any, keyFrom: string, keyTo: string) => void;
70
- export declare const invertObject: (obj: {
71
- [key: string]: string;
72
- }) => {
73
- [value: string]: string;
74
- };
75
- /**
76
- * Convert a list of addresses into an array of bounding areas.
77
- * Adjacent cells (4-connected: up/down/left/right) are grouped into the same area.
78
- * Each resulting AreaType is the bounding rectangle of one connected group.
79
- */
80
- export declare const addressesToAreas: (addresses: Address[]) => AreaType[];
81
- /**
82
- * Extract unique column indices (x) from a list of addresses, ignoring row information.
83
- * @param asc - true: ascending, false: descending, null: insertion order
84
- */
85
- export declare const addressesToCols: (addresses: Address[], asc?: boolean | null) => number[];
86
- /**
87
- * Extract unique row indices (y) from a list of addresses, ignoring column information.
88
- * @param asc - true: ascending, false: descending, null: insertion order
89
- */
90
- export declare const addressesToRows: (addresses: Address[], asc?: boolean | null) => number[];
91
- export {};
92
- //# sourceMappingURL=spatial.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../../src/lib/spatial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,CAAC,EACD,CAAC,EACD,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,OAAO,EACR,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,SAAS,GAAI,MAAM,QAAQ,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,KAAG,QAGtD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,SAAS,QAAQ,EAAE,SAAS,QAAQ,KAAG,SASpE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,QAAQ,EAAE,OAAO,QAAQ,KAAG,QAe9D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,QAAQ,KAAG,QAO3C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,QAAQ,KAAG,QAO3C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,QAAQ,KAAG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