@synnaxlabs/pluto 0.38.2 → 0.39.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 (590) hide show
  1. package/dist/Center-BjxFDxgi.cjs +1 -0
  2. package/dist/Center-DoAxDY5V.js +24 -0
  3. package/dist/ContextMenu-BWGS1vXl.cjs +1 -0
  4. package/dist/ContextMenu-DX6j7Wwi.js +101 -0
  5. package/dist/DateTime-DUuYjZr8.cjs +1 -0
  6. package/dist/DateTime-sO15tvDD.js +17 -0
  7. package/dist/Divider-C5m3c4pv.js +1428 -0
  8. package/dist/Divider-MIbyu5ZH.cjs +31 -0
  9. package/dist/Dropdown-DurKTABg.cjs +1 -0
  10. package/dist/Dropdown-FSmdakic.js +261 -0
  11. package/dist/Haul-CoG7Jmz6.cjs +1 -0
  12. package/dist/Haul-DrdXQaTq.js +125 -0
  13. package/dist/Item-CZAsnOoO.js +108 -0
  14. package/dist/Item-Dj7cQJ8t.cjs +1 -0
  15. package/dist/Keyboard-D4FRdVej.cjs +1 -0
  16. package/dist/Keyboard-lwCx7plR.js +29 -0
  17. package/dist/{Link-DO2YbtQM.cjs → Link-BSZ-HrRf.cjs} +1 -1
  18. package/dist/{Link-BIWA4Kdj.js → Link-lleSh5eG.js} +2 -2
  19. package/dist/Pack-BbwDtaE6.cjs +1 -0
  20. package/dist/Pack-CzZzxA2R.cjs +1 -0
  21. package/dist/Pack-D50qN0Vu.js +13 -0
  22. package/dist/Pack-Dlj4dZzQ.js +46 -0
  23. package/dist/Provider-CCZPt2M5.js +436 -0
  24. package/dist/Provider-YIru1nvE.cjs +1 -0
  25. package/dist/Space-DBmhvGQL.js +76 -0
  26. package/dist/Space-NNqCWFbg.cjs +1 -0
  27. package/dist/Text-B3pNXYhh.js +124 -0
  28. package/dist/Text-D1GKnp9s.cjs +1 -0
  29. package/dist/Text-DT2rIwXL.js +1199 -0
  30. package/dist/Text-DrXyKZwR.cjs +1 -0
  31. package/dist/Text-Hnsb1fus.cjs +4 -0
  32. package/dist/Text-g6btwQ6E.js +32 -0
  33. package/dist/Toggle-BzORI5sE.cjs +1 -0
  34. package/dist/Toggle-DZMcFiiI.js +356 -0
  35. package/dist/{Video-usN9Roxq.cjs → Video-BJudMCoc.cjs} +1 -1
  36. package/dist/{Video-CAbdyjCE.js → Video-DPIAdJ-g.js} +2 -2
  37. package/dist/WithIcon-C6COgbZq.js +92 -0
  38. package/dist/WithIcon-CJvuPkSy.cjs +1 -0
  39. package/dist/aggregator-5XpEdQtr.js +83 -0
  40. package/dist/aggregator-BAdXZfPY.cjs +1 -0
  41. package/dist/align.cjs +1 -1
  42. package/dist/align.js +1 -1
  43. package/dist/button.cjs +1 -1
  44. package/dist/button.js +1 -1
  45. package/dist/color.cjs +1 -1
  46. package/dist/color.js +1 -1
  47. package/dist/css-CU7tous7.cjs +1 -0
  48. package/dist/{css-Bbri4zkj.js → css-rxwBYwM1.js} +136 -136
  49. package/dist/css.cjs +1 -1
  50. package/dist/css.js +2 -2
  51. package/dist/debounce-CW9Q-DsR.js +17 -0
  52. package/dist/debounce-heEWeOqL.cjs +1 -0
  53. package/dist/deep-BjupBYvk.cjs +1 -0
  54. package/dist/deep-ChDJVfub.js +105 -0
  55. package/dist/dimensions-Bt1NqWz6.js +18 -0
  56. package/dist/dimensions-IEzi7AOM.cjs +1 -0
  57. package/dist/dropdown.cjs +1 -1
  58. package/dist/dropdown.js +1 -1
  59. package/dist/eraser-CnbMvm7W.cjs +11 -0
  60. package/dist/eraser-DKQ5u3sz.js +823 -0
  61. package/dist/ether.cjs +1 -1
  62. package/dist/ether.js +89 -85
  63. package/dist/external-AOOzgEKd.cjs +1 -0
  64. package/dist/external-B8Z-4vz2.cjs +46 -0
  65. package/dist/external-BJulb-Hm.cjs +1 -0
  66. package/dist/external-BOOtUi1D.js +20 -0
  67. package/dist/external-BQtPGUNg.cjs +1 -0
  68. package/dist/external-BTGfIw_K.cjs +1 -0
  69. package/dist/external-Bxg2-RDn.js +13 -0
  70. package/dist/{Toggle-DvdBHJvZ.js → external-C710XUvC.js} +17484 -30626
  71. package/dist/external-C8i1PCpN.js +59 -0
  72. package/dist/external-CL_RlqOT.cjs +1 -0
  73. package/dist/external-CNyc2Q9k.cjs +1 -0
  74. package/dist/{external-CWIwuJks.cjs → external-CRbERCqd.cjs} +1 -1
  75. package/dist/external-CjZqwgDh.js +1265 -0
  76. package/dist/external-D18IGHXh.js +77 -0
  77. package/dist/external-DF0wHYUj.js +8990 -0
  78. package/dist/external-DK_wU08V.js +19 -0
  79. package/dist/external-DNC1e6Hi.js +343 -0
  80. package/dist/external-DYn3iC-U.js +418 -0
  81. package/dist/external-DhX0dZoF.cjs +1 -0
  82. package/dist/external-Dmr3e50U.js +15 -0
  83. package/dist/external-DrwngojV.cjs +1 -0
  84. package/dist/external-GUQ0NMxY.js +111 -0
  85. package/dist/external-Vjn4WKwt.cjs +85 -0
  86. package/dist/external-vVwTqni5.cjs +1 -0
  87. package/dist/font-CD9W5Tsh.js +15 -0
  88. package/dist/font-MRTGIokZ.cjs +1 -0
  89. package/dist/fontString-MM82zgKY.cjs +1 -0
  90. package/dist/fontString-p8gMjlA1.js +12 -0
  91. package/dist/header.cjs +1 -1
  92. package/dist/header.js +1 -1
  93. package/dist/hooks-BKLtEDxx.cjs +1 -0
  94. package/dist/hooks-CwSxEEAh.js +293 -0
  95. package/dist/index.cjs +7 -7
  96. package/dist/index.js +7520 -7281
  97. package/dist/input.cjs +1 -1
  98. package/dist/input.js +1 -1
  99. package/dist/{jsx-runtime-Bdg6XQ1m.js → jsx-runtime-CYK1ROHF.js} +98 -98
  100. package/dist/{jsx-runtime-D8EVjfnb.cjs → jsx-runtime-UYeBbnYT.cjs} +8 -8
  101. package/dist/list.cjs +1 -1
  102. package/dist/list.js +1 -1
  103. package/dist/menu.cjs +1 -1
  104. package/dist/menu.js +1 -1
  105. package/dist/pluto.css +1 -1
  106. package/dist/provider-D3MPSb7n.cjs +53 -0
  107. package/dist/provider-DfVWtUxZ.js +10299 -0
  108. package/dist/src/accordion/Accordion.d.ts +1 -1
  109. package/dist/src/accordion/Accordion.d.ts.map +1 -1
  110. package/dist/src/aether/main.d.ts +8 -9
  111. package/dist/src/aether/main.d.ts.map +1 -1
  112. package/dist/src/alamos/Provider.d.ts +1 -1
  113. package/dist/src/alamos/Provider.d.ts.map +1 -1
  114. package/dist/src/alamos/aether/alamos.d.ts.map +1 -1
  115. package/dist/src/align/Center.d.ts +1 -1
  116. package/dist/src/align/Center.d.ts.map +1 -1
  117. package/dist/src/align/Pack.d.ts +1 -1
  118. package/dist/src/align/Pack.d.ts.map +1 -1
  119. package/dist/src/align/Space.d.ts +1 -1
  120. package/dist/src/align/Space.d.ts.map +1 -1
  121. package/dist/src/breadcrumb/Breadcrumb.d.ts +1 -1
  122. package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
  123. package/dist/src/button/Button.d.ts +8 -9
  124. package/dist/src/button/Button.d.ts.map +1 -1
  125. package/dist/src/button/Icon.d.ts.map +1 -1
  126. package/dist/src/button/Link.d.ts +1 -1
  127. package/dist/src/button/Link.d.ts.map +1 -1
  128. package/dist/src/button/Toggle.d.ts +2 -2
  129. package/dist/src/button/Toggle.d.ts.map +1 -1
  130. package/dist/src/button/color.d.ts +1 -1
  131. package/dist/src/button/color.d.ts.map +1 -1
  132. package/dist/src/caret/Animated.d.ts.map +1 -1
  133. package/dist/src/channel/AliasProvider.d.ts +5 -6
  134. package/dist/src/channel/AliasProvider.d.ts.map +1 -1
  135. package/dist/src/channel/LinePlot.d.ts +1 -1
  136. package/dist/src/channel/LinePlot.d.ts.map +1 -1
  137. package/dist/src/channel/Select.d.ts +2 -2
  138. package/dist/src/channel/Select.d.ts.map +1 -1
  139. package/dist/src/color/BaseSwatch.d.ts +10 -0
  140. package/dist/src/color/BaseSwatch.d.ts.map +1 -0
  141. package/dist/src/color/GradientPicker.d.ts.map +1 -1
  142. package/dist/src/color/Picker.d.ts +1 -1
  143. package/dist/src/color/Picker.d.ts.map +1 -1
  144. package/dist/src/color/Provider.d.ts +14 -12
  145. package/dist/src/color/Provider.d.ts.map +1 -1
  146. package/dist/src/color/Swatch.d.ts +3 -7
  147. package/dist/src/color/Swatch.d.ts.map +1 -1
  148. package/dist/src/color/core/color.d.ts.map +1 -1
  149. package/dist/src/color/core/gradient.d.ts.map +1 -1
  150. package/dist/src/color/core/transformColorsToHex.d.ts.map +1 -1
  151. package/dist/src/css/bem.d.ts.map +1 -1
  152. package/dist/src/css/color.d.ts +3 -4
  153. package/dist/src/css/color.d.ts.map +1 -1
  154. package/dist/src/css/units.d.ts.map +1 -1
  155. package/dist/src/css/vars.d.ts.map +1 -1
  156. package/dist/src/cursor/cursor.d.ts.map +1 -1
  157. package/dist/src/dialog/use.d.ts +36 -17
  158. package/dist/src/dialog/use.d.ts.map +1 -1
  159. package/dist/src/divider/Divider.d.ts +1 -1
  160. package/dist/src/divider/Divider.d.ts.map +1 -1
  161. package/dist/src/dropdown/Dropdown.d.ts +3 -3
  162. package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
  163. package/dist/src/form/Field.d.ts +9 -1
  164. package/dist/src/form/Field.d.ts.map +1 -1
  165. package/dist/src/form/Form.d.ts +19 -9
  166. package/dist/src/form/Form.d.ts.map +1 -1
  167. package/dist/src/form/synced.d.ts +1 -1
  168. package/dist/src/form/synced.d.ts.map +1 -1
  169. package/dist/src/generic/Generic.d.ts +1 -1
  170. package/dist/src/generic/Generic.d.ts.map +1 -1
  171. package/dist/src/hardware/device/Select.d.ts +2 -2
  172. package/dist/src/hardware/device/Select.d.ts.map +1 -1
  173. package/dist/src/hardware/rack/Select.d.ts +7 -0
  174. package/dist/src/hardware/rack/Select.d.ts.map +1 -0
  175. package/dist/src/hardware/rack/index.d.ts +2 -0
  176. package/dist/src/hardware/rack/index.d.ts.map +1 -0
  177. package/dist/src/haul/Haul.d.ts +13 -5
  178. package/dist/src/haul/Haul.d.ts.map +1 -1
  179. package/dist/src/header/Actions.d.ts +3 -2
  180. package/dist/src/header/Actions.d.ts.map +1 -1
  181. package/dist/src/header/ButtonTitle.d.ts +1 -1
  182. package/dist/src/header/ButtonTitle.d.ts.map +1 -1
  183. package/dist/src/header/Header.d.ts +1 -1
  184. package/dist/src/header/Header.d.ts.map +1 -1
  185. package/dist/src/header/Title.d.ts +1 -1
  186. package/dist/src/header/Title.d.ts.map +1 -1
  187. package/dist/src/hooks/effect.d.ts.map +1 -1
  188. package/dist/src/hooks/ref.d.ts +3 -2
  189. package/dist/src/hooks/ref.d.ts.map +1 -1
  190. package/dist/src/hooks/useClickOutside.d.ts.map +1 -1
  191. package/dist/src/hooks/useCursorDrag/useCursorDrag.d.ts.map +1 -1
  192. package/dist/src/hooks/useCursorDrag/useVirtualCursorDragWebKit.d.ts.map +1 -1
  193. package/dist/src/hooks/useCursorDrag/useVirtualCursorDragWebView.d.ts.map +1 -1
  194. package/dist/src/hooks/useDebouncedCallback.d.ts.map +1 -1
  195. package/dist/src/hooks/useDelayedState.d.ts.map +1 -1
  196. package/dist/src/hooks/useFilter.d.ts.map +1 -1
  197. package/dist/src/hooks/useRequiredContext.d.ts.map +1 -1
  198. package/dist/src/hooks/useResize.d.ts.map +1 -1
  199. package/dist/src/hooks/useTransforms.d.ts.map +1 -1
  200. package/dist/src/hooks/useUniqueKey.d.ts +2 -2
  201. package/dist/src/hooks/useUniqueKey.d.ts.map +1 -1
  202. package/dist/src/icon/Icon.d.ts +1 -1
  203. package/dist/src/icon/Icon.d.ts.map +1 -1
  204. package/dist/src/index.d.ts +2 -0
  205. package/dist/src/index.d.ts.map +1 -1
  206. package/dist/src/input/Date.d.ts +1 -1
  207. package/dist/src/input/Date.d.ts.map +1 -1
  208. package/dist/src/input/DateTime.d.ts +1 -2
  209. package/dist/src/input/DateTime.d.ts.map +1 -1
  210. package/dist/src/input/DragButton.d.ts +1 -1
  211. package/dist/src/input/DragButton.d.ts.map +1 -1
  212. package/dist/src/input/HelpText.d.ts +1 -1
  213. package/dist/src/input/HelpText.d.ts.map +1 -1
  214. package/dist/src/input/Item.d.ts +1 -1
  215. package/dist/src/input/Item.d.ts.map +1 -1
  216. package/dist/src/input/Label.d.ts +1 -1
  217. package/dist/src/input/Label.d.ts.map +1 -1
  218. package/dist/src/input/Numeric.d.ts +1 -1
  219. package/dist/src/input/Numeric.d.ts.map +1 -1
  220. package/dist/src/input/Switch.d.ts +1 -1
  221. package/dist/src/input/Switch.d.ts.map +1 -1
  222. package/dist/src/input/Text.d.ts +2 -2
  223. package/dist/src/input/Text.d.ts.map +1 -1
  224. package/dist/src/input/TextArea.d.ts +1 -1
  225. package/dist/src/input/TextArea.d.ts.map +1 -1
  226. package/dist/src/input/Time.d.ts +1 -1
  227. package/dist/src/input/Time.d.ts.map +1 -1
  228. package/dist/src/label/Select.d.ts +3 -3
  229. package/dist/src/label/Select.d.ts.map +1 -1
  230. package/dist/src/list/Column.d.ts +4 -7
  231. package/dist/src/list/Column.d.ts.map +1 -1
  232. package/dist/src/list/Core.d.ts +3 -3
  233. package/dist/src/list/Core.d.ts.map +1 -1
  234. package/dist/src/list/Data.d.ts +2 -2
  235. package/dist/src/list/Data.d.ts.map +1 -1
  236. package/dist/src/list/Filter.d.ts +1 -1
  237. package/dist/src/list/Filter.d.ts.map +1 -1
  238. package/dist/src/list/Hover.d.ts.map +1 -1
  239. package/dist/src/list/Infinite.d.ts +2 -2
  240. package/dist/src/list/Infinite.d.ts.map +1 -1
  241. package/dist/src/list/Item.d.ts +1 -1
  242. package/dist/src/list/Item.d.ts.map +1 -1
  243. package/dist/src/list/List.d.ts.map +1 -1
  244. package/dist/src/list/Search.d.ts +1 -1
  245. package/dist/src/list/Search.d.ts.map +1 -1
  246. package/dist/src/list/Selector.d.ts +2 -2
  247. package/dist/src/list/Selector.d.ts.map +1 -1
  248. package/dist/src/list/useSelect.d.ts.map +1 -1
  249. package/dist/src/memo/useMemoCompare.d.ts.map +1 -1
  250. package/dist/src/menu/ContextMenu.d.ts +1 -1
  251. package/dist/src/menu/ContextMenu.d.ts.map +1 -1
  252. package/dist/src/menu/Menu.d.ts +3 -5
  253. package/dist/src/menu/Menu.d.ts.map +1 -1
  254. package/dist/src/modal/Modal.d.ts +2 -2
  255. package/dist/src/modal/Modal.d.ts.map +1 -1
  256. package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
  257. package/dist/src/mosaic/tree.d.ts.map +1 -1
  258. package/dist/src/mosaic/types.d.ts +5 -0
  259. package/dist/src/mosaic/types.d.ts.map +1 -1
  260. package/dist/src/mosaic/use.d.ts.map +1 -1
  261. package/dist/src/nav/Bar.d.ts +1 -1
  262. package/dist/src/nav/Bar.d.ts.map +1 -1
  263. package/dist/src/nav/Drawer.d.ts +1 -1
  264. package/dist/src/nav/Drawer.d.ts.map +1 -1
  265. package/dist/src/notation/Select.d.ts +1 -1
  266. package/dist/src/notation/Select.d.ts.map +1 -1
  267. package/dist/src/notation/notation.d.ts.map +1 -1
  268. package/dist/src/note/Note.d.ts +1 -1
  269. package/dist/src/note/Note.d.ts.map +1 -1
  270. package/dist/src/observe/use.d.ts.map +1 -1
  271. package/dist/src/os/Controls/Controls.d.ts +1 -1
  272. package/dist/src/os/Controls/Controls.d.ts.map +1 -1
  273. package/dist/src/os/Controls/Mac.d.ts +1 -1
  274. package/dist/src/os/Controls/Mac.d.ts.map +1 -1
  275. package/dist/src/os/Controls/Windows.d.ts +1 -1
  276. package/dist/src/os/Controls/Windows.d.ts.map +1 -1
  277. package/dist/src/override/factory.d.ts.map +1 -1
  278. package/dist/src/pluto/Pluto.d.ts.map +1 -1
  279. package/dist/src/portal/Portal.d.ts.map +1 -1
  280. package/dist/src/progress/Progress.d.ts.map +1 -1
  281. package/dist/src/ranger/Select.d.ts +3 -3
  282. package/dist/src/ranger/Select.d.ts.map +1 -1
  283. package/dist/src/ranger/SelectLabel.d.ts.map +1 -1
  284. package/dist/src/ranger/TimeRangeChip.d.ts +1 -1
  285. package/dist/src/ranger/TimeRangeChip.d.ts.map +1 -1
  286. package/dist/src/resize/Core.d.ts +1 -1
  287. package/dist/src/resize/Core.d.ts.map +1 -1
  288. package/dist/src/resize/Multiple.d.ts +1 -1
  289. package/dist/src/resize/Multiple.d.ts.map +1 -1
  290. package/dist/src/resize/Single.d.ts +1 -1
  291. package/dist/src/resize/Single.d.ts.map +1 -1
  292. package/dist/src/select/Alignment.d.ts +1 -1
  293. package/dist/src/select/Alignment.d.ts.map +1 -1
  294. package/dist/src/select/Button.d.ts +3 -3
  295. package/dist/src/select/Button.d.ts.map +1 -1
  296. package/dist/src/select/ClearButton.d.ts.map +1 -1
  297. package/dist/src/select/ComponentSize.d.ts +1 -1
  298. package/dist/src/select/ComponentSize.d.ts.map +1 -1
  299. package/dist/src/select/DataType.d.ts +1 -1
  300. package/dist/src/select/DataType.d.ts.map +1 -1
  301. package/dist/src/select/Direction.d.ts +1 -1
  302. package/dist/src/select/Direction.d.ts.map +1 -1
  303. package/dist/src/select/List.d.ts +1 -1
  304. package/dist/src/select/List.d.ts.map +1 -1
  305. package/dist/src/select/Multiple.d.ts +2 -2
  306. package/dist/src/select/Multiple.d.ts.map +1 -1
  307. package/dist/src/select/Single.d.ts +1 -1
  308. package/dist/src/select/Single.d.ts.map +1 -1
  309. package/dist/src/select/external.d.ts +1 -0
  310. package/dist/src/select/external.d.ts.map +1 -1
  311. package/dist/src/select/text/Level.d.ts +11 -0
  312. package/dist/src/select/text/Level.d.ts.map +1 -0
  313. package/dist/src/select/text/Weight.d.ts +11 -0
  314. package/dist/src/select/text/Weight.d.ts.map +1 -0
  315. package/dist/src/select/text/external.d.ts +3 -0
  316. package/dist/src/select/text/external.d.ts.map +1 -0
  317. package/dist/src/select/text/index.d.ts +2 -0
  318. package/dist/src/select/text/index.d.ts.map +1 -0
  319. package/dist/src/state/state.d.ts.map +1 -1
  320. package/dist/src/status/Aggregator.d.ts +13 -10
  321. package/dist/src/status/Aggregator.d.ts.map +1 -1
  322. package/dist/src/status/Aggregator.spec.d.ts +2 -0
  323. package/dist/src/status/Aggregator.spec.d.ts.map +1 -0
  324. package/dist/src/status/Circle.d.ts +1 -1
  325. package/dist/src/status/Circle.d.ts.map +1 -1
  326. package/dist/src/status/Notification.d.ts +1 -1
  327. package/dist/src/status/Notification.d.ts.map +1 -1
  328. package/dist/src/status/Notification.spec.d.ts +2 -0
  329. package/dist/src/status/Notification.spec.d.ts.map +1 -0
  330. package/dist/src/status/Text.d.ts +6 -8
  331. package/dist/src/status/Text.d.ts.map +1 -1
  332. package/dist/src/status/aether/aggregator.d.ts +18 -8
  333. package/dist/src/status/aether/aggregator.d.ts.map +1 -1
  334. package/dist/src/status/aether/types.d.ts +4 -2
  335. package/dist/src/status/aether/types.d.ts.map +1 -1
  336. package/dist/src/status/external.d.ts +1 -0
  337. package/dist/src/status/external.d.ts.map +1 -1
  338. package/dist/src/steps/Steps.d.ts +1 -1
  339. package/dist/src/steps/Steps.d.ts.map +1 -1
  340. package/dist/src/synnax/Provider.d.ts.map +1 -1
  341. package/dist/src/synnax/aether/provider.d.ts +30 -30
  342. package/dist/src/synnax/aether/provider.d.ts.map +1 -1
  343. package/dist/src/table/Table.d.ts +3 -3
  344. package/dist/src/table/Table.d.ts.map +1 -1
  345. package/dist/src/table/aether/Table.d.ts +1 -1
  346. package/dist/src/table/aether/Table.d.ts.map +1 -1
  347. package/dist/src/table/cells/Cells.d.ts.map +1 -1
  348. package/dist/src/table/cells/Forms.d.ts.map +1 -1
  349. package/dist/src/tabs/Selector.d.ts +1 -1
  350. package/dist/src/tabs/Selector.d.ts.map +1 -1
  351. package/dist/src/tabs/Tabs.d.ts +6 -71
  352. package/dist/src/tabs/Tabs.d.ts.map +1 -1
  353. package/dist/src/tabs/external.d.ts +1 -0
  354. package/dist/src/tabs/external.d.ts.map +1 -1
  355. package/dist/src/tabs/types.d.ts +6 -0
  356. package/dist/src/tabs/types.d.ts.map +1 -1
  357. package/dist/src/tabs/useContext.d.ts +64 -0
  358. package/dist/src/tabs/useContext.d.ts.map +1 -0
  359. package/dist/src/tag/Tag.d.ts +1 -1
  360. package/dist/src/tag/Tag.d.ts.map +1 -1
  361. package/dist/src/telem/Provider.d.ts.map +1 -1
  362. package/dist/src/telem/aether/context.d.ts.map +1 -1
  363. package/dist/src/telem/aether/convertSeries.d.ts.map +1 -1
  364. package/dist/src/telem/aether/factory.d.ts.map +1 -1
  365. package/dist/src/telem/aether/pipeline.d.ts.map +1 -1
  366. package/dist/src/telem/aether/remote.d.ts.map +1 -1
  367. package/dist/src/telem/aether/static.d.ts.map +1 -1
  368. package/dist/src/telem/aether/transformers.d.ts.map +1 -1
  369. package/dist/src/telem/client/client.d.ts.map +1 -1
  370. package/dist/src/telem/client/types.d.ts.map +1 -1
  371. package/dist/src/telem/control/Chip.d.ts +1 -1
  372. package/dist/src/telem/control/Chip.d.ts.map +1 -1
  373. package/dist/src/telem/control/Controller.d.ts.map +1 -1
  374. package/dist/src/telem/control/Indicator.d.ts.map +1 -1
  375. package/dist/src/telem/control/Legend.d.ts +1 -1
  376. package/dist/src/telem/control/Legend.d.ts.map +1 -1
  377. package/dist/src/telem/control/StateProvider.d.ts.map +1 -1
  378. package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
  379. package/dist/src/telem/control/aether/controller.d.ts +4 -4
  380. package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
  381. package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
  382. package/dist/src/telem/control/aether/state.d.ts.map +1 -1
  383. package/dist/src/testutil/dom.d.ts.map +1 -1
  384. package/dist/src/text/DateTime.d.ts +1 -1
  385. package/dist/src/text/DateTime.d.ts.map +1 -1
  386. package/dist/src/text/Editable.d.ts +2 -2
  387. package/dist/src/text/Editable.d.ts.map +1 -1
  388. package/dist/src/text/Keyboard.d.ts +1 -1
  389. package/dist/src/text/Keyboard.d.ts.map +1 -1
  390. package/dist/src/text/Link.d.ts +1 -1
  391. package/dist/src/text/Link.d.ts.map +1 -1
  392. package/dist/src/text/Text.d.ts +2 -2
  393. package/dist/src/text/Text.d.ts.map +1 -1
  394. package/dist/src/text/WithIcon.d.ts +1 -1
  395. package/dist/src/text/WithIcon.d.ts.map +1 -1
  396. package/dist/src/text/core/types.d.ts.map +1 -1
  397. package/dist/src/text/dimensions.d.ts.map +1 -1
  398. package/dist/src/text/external.d.ts +0 -1
  399. package/dist/src/text/external.d.ts.map +1 -1
  400. package/dist/src/theming/Provider.d.ts +3 -4
  401. package/dist/src/theming/Provider.d.ts.map +1 -1
  402. package/dist/src/theming/aether/provider.d.ts.map +1 -1
  403. package/dist/src/theming/core/fontString.d.ts.map +1 -1
  404. package/dist/src/theming/css.d.ts.map +1 -1
  405. package/dist/src/theming/external.d.ts +0 -1
  406. package/dist/src/theming/external.d.ts.map +1 -1
  407. package/dist/src/theming/font.d.ts.map +1 -1
  408. package/dist/src/theming/index.d.ts.map +1 -1
  409. package/dist/src/tooltip/Config.d.ts +0 -1
  410. package/dist/src/tooltip/Config.d.ts.map +1 -1
  411. package/dist/src/tooltip/Dialog.d.ts.map +1 -1
  412. package/dist/src/tooltip/wrap.d.ts.map +1 -1
  413. package/dist/src/tree/Tree.d.ts +4 -3
  414. package/dist/src/tree/Tree.d.ts.map +1 -1
  415. package/dist/src/tree/core.d.ts +3 -1
  416. package/dist/src/tree/core.d.ts.map +1 -1
  417. package/dist/src/triggers/Provider.d.ts +3 -2
  418. package/dist/src/triggers/Provider.d.ts.map +1 -1
  419. package/dist/src/triggers/Status.d.ts.map +1 -1
  420. package/dist/src/triggers/Text.d.ts +1 -1
  421. package/dist/src/triggers/Text.d.ts.map +1 -1
  422. package/dist/src/triggers/hooks.d.ts +1 -1
  423. package/dist/src/triggers/hooks.d.ts.map +1 -1
  424. package/dist/src/triggers/triggers.d.ts.map +1 -1
  425. package/dist/src/triggers/useDrag.d.ts.map +1 -1
  426. package/dist/src/util/canDisable.d.ts.map +1 -1
  427. package/dist/src/util/children.d.ts +2 -2
  428. package/dist/src/util/children.d.ts.map +1 -1
  429. package/dist/src/util/component.d.ts.map +1 -1
  430. package/dist/src/util/event.d.ts.map +1 -1
  431. package/dist/src/util/findParent.d.ts.map +1 -1
  432. package/dist/src/util/reflow.d.ts.map +1 -1
  433. package/dist/src/util/removeProps.d.ts.map +1 -1
  434. package/dist/src/util/renderProp.d.ts +1 -1
  435. package/dist/src/util/renderProp.d.ts.map +1 -1
  436. package/dist/src/util/rootElement.d.ts.map +1 -1
  437. package/dist/src/util/zod.d.ts.map +1 -1
  438. package/dist/src/video/Video.d.ts +1 -1
  439. package/dist/src/video/Video.d.ts.map +1 -1
  440. package/dist/src/viewport/Mask.d.ts +1 -1
  441. package/dist/src/viewport/Mask.d.ts.map +1 -1
  442. package/dist/src/viewport/SelectMode.d.ts +1 -1
  443. package/dist/src/viewport/SelectMode.d.ts.map +1 -1
  444. package/dist/src/viewport/use.d.ts.map +1 -1
  445. package/dist/src/vis/axis/ticks.d.ts +1 -1
  446. package/dist/src/vis/axis/ticks.d.ts.map +1 -1
  447. package/dist/src/vis/button/use.d.ts.map +1 -1
  448. package/dist/src/vis/canvas/Canvas.d.ts +1 -1
  449. package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
  450. package/dist/src/vis/diagram/Diagram.d.ts +7 -5
  451. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  452. package/dist/src/vis/diagram/aether/Diagram.d.ts +1 -1
  453. package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
  454. package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
  455. package/dist/src/vis/diagram/align.d.ts.map +1 -1
  456. package/dist/src/vis/diagram/edge/Edge.d.ts +1 -1
  457. package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
  458. package/dist/src/vis/diagram/edge/connector/connector.d.ts.map +1 -1
  459. package/dist/src/vis/diagram/edge/paths.d.ts +1 -1
  460. package/dist/src/vis/diagram/edge/paths.d.ts.map +1 -1
  461. package/dist/src/vis/diagram/util.d.ts.map +1 -1
  462. package/dist/src/vis/draw2d/index.d.ts +1 -1
  463. package/dist/src/vis/draw2d/index.d.ts.map +1 -1
  464. package/dist/src/vis/eraser/use.d.ts.map +1 -1
  465. package/dist/src/vis/grid/grid.d.ts.map +1 -1
  466. package/dist/src/vis/legend/Container.d.ts +1 -1
  467. package/dist/src/vis/legend/Container.d.ts.map +1 -1
  468. package/dist/src/vis/legend/Simple.d.ts +1 -1
  469. package/dist/src/vis/legend/Simple.d.ts.map +1 -1
  470. package/dist/src/vis/light/aether/light.d.ts +1 -1
  471. package/dist/src/vis/light/aether/light.d.ts.map +1 -1
  472. package/dist/src/vis/light/use.d.ts.map +1 -1
  473. package/dist/src/vis/line/Line.d.ts +1 -1
  474. package/dist/src/vis/line/Line.d.ts.map +1 -1
  475. package/dist/src/vis/line/aether/line.d.ts.map +1 -1
  476. package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
  477. package/dist/src/vis/lineplot/Legend.d.ts +2 -2
  478. package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
  479. package/dist/src/vis/lineplot/Line.d.ts +1 -1
  480. package/dist/src/vis/lineplot/Line.d.ts.map +1 -1
  481. package/dist/src/vis/lineplot/LinePlot.d.ts +3 -3
  482. package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
  483. package/dist/src/vis/lineplot/Title.d.ts +1 -1
  484. package/dist/src/vis/lineplot/Title.d.ts.map +1 -1
  485. package/dist/src/vis/lineplot/Viewport.d.ts +1 -1
  486. package/dist/src/vis/lineplot/Viewport.d.ts.map +1 -1
  487. package/dist/src/vis/lineplot/aether/LinePlot.d.ts +1 -1
  488. package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
  489. package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
  490. package/dist/src/vis/lineplot/range/Annotation.d.ts +1 -1
  491. package/dist/src/vis/lineplot/range/Annotation.d.ts.map +1 -1
  492. package/dist/src/vis/lineplot/range/Provider.d.ts +1 -1
  493. package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
  494. package/dist/src/vis/lineplot/range/aether/provider.d.ts +1 -1
  495. package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
  496. package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts +1 -1
  497. package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts.map +1 -1
  498. package/dist/src/vis/log/Log.d.ts +1 -1
  499. package/dist/src/vis/log/Log.d.ts.map +1 -1
  500. package/dist/src/vis/measure/Measure.d.ts.map +1 -1
  501. package/dist/src/vis/render/util.d.ts.map +1 -1
  502. package/dist/src/vis/rule/Rule.d.ts +1 -1
  503. package/dist/src/vis/rule/Rule.d.ts.map +1 -1
  504. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  505. package/dist/src/vis/schematic/Grid.d.ts +1 -1
  506. package/dist/src/vis/schematic/Grid.d.ts.map +1 -1
  507. package/dist/src/vis/schematic/SelectOrientation.d.ts +1 -1
  508. package/dist/src/vis/schematic/SelectOrientation.d.ts.map +1 -1
  509. package/dist/src/vis/schematic/Symbols.d.ts +3 -3
  510. package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
  511. package/dist/src/vis/schematic/primitives/Primitives.d.ts +80 -80
  512. package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
  513. package/dist/src/vis/setpoint/aether/setpoint.d.ts +1 -2
  514. package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
  515. package/dist/src/vis/setpoint/use.d.ts.map +1 -1
  516. package/dist/src/vis/toggle/aether/toggle.d.ts +1 -1
  517. package/dist/src/vis/toggle/aether/toggle.d.ts.map +1 -1
  518. package/dist/src/vis/toggle/use.d.ts.map +1 -1
  519. package/dist/src/vis/value/Form.d.ts.map +1 -1
  520. package/dist/src/vis/value/use.d.ts.map +1 -1
  521. package/dist/src/worker/Context.d.ts.map +1 -1
  522. package/dist/state-BKyv_jWZ.cjs +15 -0
  523. package/dist/state-w46WTrh-.js +2399 -0
  524. package/dist/tabs.cjs +1 -1
  525. package/dist/tabs.js +1 -1
  526. package/dist/text.cjs +1 -1
  527. package/dist/text.js +2 -2
  528. package/dist/theming.cjs +1 -1
  529. package/dist/theming.js +2 -2
  530. package/dist/toArray-DRKOku1s.cjs +1 -0
  531. package/dist/toArray-Dvn9FA_3.js +5 -0
  532. package/dist/{transformColorsToHex-CDwcIPob.cjs → transformColorsToHex-B2Bui-Wf.cjs} +1 -1
  533. package/dist/{transformColorsToHex-CnZpPlL2.js → transformColorsToHex-B6dG2LA6.js} +1 -1
  534. package/dist/tree.cjs +1 -1
  535. package/dist/tree.js +1 -1
  536. package/dist/triggers.cjs +1 -1
  537. package/dist/triggers.js +1 -1
  538. package/dist/{units-BpKy5yTv.cjs → units-CvIf5nF_.cjs} +1 -1
  539. package/dist/{units-CNGjg1NV.js → units-D7qkgH-s.js} +1 -1
  540. package/dist/useClickOutside-EJHWO4Q9.cjs +1 -0
  541. package/dist/useClickOutside-vpv_GiBw.js +107 -0
  542. package/dist/useDebouncedCallback-CVLx7N1s.cjs +1 -0
  543. package/dist/useDebouncedCallback-DDLuEZa8.js +7 -0
  544. package/dist/useMemoCompare-B-Y9Ft2w.js +19 -0
  545. package/dist/useMemoCompare-ONEAVO05.cjs +1 -0
  546. package/dist/useVirtualCursorDragWebKit-BLtwRQY7.cjs +1 -0
  547. package/dist/useVirtualCursorDragWebKit-DFC-XFfl.js +65 -0
  548. package/dist/value-DQqKhQvt.cjs +57 -0
  549. package/dist/{LinePlot-tqJ3Um1S.js → value-DbcZ1sQB.js} +1998 -1994
  550. package/dist/video.cjs +1 -1
  551. package/dist/video.js +1 -1
  552. package/package.json +27 -25
  553. package/dist/Animated-BWcO40x5.js +0 -19
  554. package/dist/Animated-Cxl7iHik.cjs +0 -1
  555. package/dist/Item-BZvmqn4h.js +0 -109
  556. package/dist/Item-C4SOBynl.cjs +0 -1
  557. package/dist/LinePlot-Cys9-mEC.cjs +0 -56
  558. package/dist/Pack-B7_tAsYd.cjs +0 -1
  559. package/dist/Pack-Di5J8hmU.js +0 -143
  560. package/dist/Toggle-BOWYgKry.cjs +0 -163
  561. package/dist/aggregator-B4RWbN9h.cjs +0 -77
  562. package/dist/aggregator-Bl15iClv.js +0 -13712
  563. package/dist/css-DT9dIVAb.cjs +0 -1
  564. package/dist/external-8OKX45Jc.cjs +0 -1
  565. package/dist/external-9Q86X8hc.cjs +0 -1
  566. package/dist/external-B45MvYg8.js +0 -111
  567. package/dist/external-BP5euc4j.js +0 -34
  568. package/dist/external-Ba8go3wq.cjs +0 -1
  569. package/dist/external-C59dex28.js +0 -13
  570. package/dist/external-CKXRIr4_.cjs +0 -1
  571. package/dist/external-CML3oqyJ.js +0 -22
  572. package/dist/external-CW61uh4b.cjs +0 -1
  573. package/dist/external-CcuRxo0Z.js +0 -323
  574. package/dist/external-CigHe3w_.cjs +0 -1
  575. package/dist/external-Cm1kldLr.js +0 -123
  576. package/dist/external-DNjLBxYA.js +0 -1189
  577. package/dist/external-DTDBfIqD.js +0 -13
  578. package/dist/external-DkXE1VK8.cjs +0 -1
  579. package/dist/external-Dt4ggRt2.cjs +0 -1
  580. package/dist/external-DuGCS_ZD.js +0 -20
  581. package/dist/external-DuK5v_sl.js +0 -375
  582. package/dist/external-SsIgRo40.cjs +0 -1
  583. package/dist/external-U33eEFR3.js +0 -75
  584. package/dist/external-bw66TR6V.js +0 -277
  585. package/dist/external-kZBV4X9L.cjs +0 -1
  586. package/dist/external-ok_ye4LF.cjs +0 -1
  587. package/dist/src/telem/Pipeline.d.ts +0 -3
  588. package/dist/src/telem/Pipeline.d.ts.map +0 -1
  589. package/dist/src/text/Select.d.ts +0 -19
  590. package/dist/src/text/Select.d.ts.map +0 -1
@@ -1,1189 +0,0 @@
1
- import { a7 as fe, aH as ke, aA as Le, aj as Te, aI as Ce, ac as $e, aJ as ve, ai as Fe, aK as Ne, ad as je, aL as Ke, ae as De, aM as We, aN as Ye, aO as ze, aP as He, aQ as Ve, al as Ue, aR as Be, aS as Ge, a6 as Je, aT as Qe, aU as Xe, aV as Ze } from "./Toggle-DvdBHJvZ.js";
2
- import { j as qe } from "./jsx-runtime-Bdg6XQ1m.js";
3
- import { useCallback as et } from "react";
4
- import { x as tt, v as st } from "./aggregator-Bl15iClv.js";
5
- import "./css-Bbri4zkj.js";
6
- import "./Pack-Di5J8hmU.js";
7
- const de = Symbol(), q = Symbol(), T = "a", F = "w";
8
- let rt = (t, e) => new Proxy(t, e);
9
- const H = Object.getPrototypeOf, ne = /* @__PURE__ */ new WeakMap(), ee = (t) => t && (ne.has(t) ? ne.get(t) : H(t) === Object.prototype || H(t) === Array.prototype), ie = (t) => typeof t == "object" && t !== null, ce = /* @__PURE__ */ new WeakMap(), ge = (t) => t[q] || t, pe = (t, e, s) => {
10
- if (!ee(t)) return t;
11
- const r = ge(t), i = ((c) => Object.isFrozen(c) || Object.values(Object.getOwnPropertyDescriptors(c)).some((o) => !o.writable))(r);
12
- let n = s && s.get(r);
13
- return n && n[1].f === i || (n = ((c, o) => {
14
- const a = { f: o };
15
- let h = !1;
16
- const l = (f, g) => {
17
- if (!h) {
18
- let p = a[T].get(c);
19
- if (p || (p = {}, a[T].set(c, p)), f === F) p[F] = !0;
20
- else {
21
- let m = p[f];
22
- m || (m = /* @__PURE__ */ new Set(), p[f] = m), m.add(g);
23
- }
24
- }
25
- }, u = { get: (f, g) => g === q ? c : (l("k", g), pe(Reflect.get(f, g), a[T], a.c)), has: (f, g) => g === de ? (h = !0, a[T].delete(c), !0) : (l("h", g), Reflect.has(f, g)), getOwnPropertyDescriptor: (f, g) => (l("o", g), Reflect.getOwnPropertyDescriptor(f, g)), ownKeys: (f) => (l(F), Reflect.ownKeys(f)) };
26
- return o && (u.set = u.deleteProperty = () => !1), [u, a];
27
- })(r, i), n[1].p = rt(i ? ((c) => {
28
- let o = ce.get(c);
29
- if (!o) {
30
- if (Array.isArray(c)) o = Array.from(c);
31
- else {
32
- const a = Object.getOwnPropertyDescriptors(c);
33
- Object.values(a).forEach((h) => {
34
- h.configurable = !0;
35
- }), o = Object.create(H(c), a);
36
- }
37
- ce.set(c, o);
38
- }
39
- return o;
40
- })(r) : r, n[0]), s && s.set(r, n)), n[1][T] = e, n[1].c = s, n[1].p;
41
- }, me = (t, e, s, r) => {
42
- if (Object.is(t, e)) return !1;
43
- if (!ie(t) || !ie(e)) return !0;
44
- const i = s.get(ge(t));
45
- if (!i) return !0;
46
- if (r) {
47
- const c = r.get(t);
48
- if (c && c.n === e) return c.g;
49
- r.set(t, { n: e, g: !1 });
50
- }
51
- let n = null;
52
- try {
53
- for (const c of i.h || []) if (n = Reflect.has(t, c) !== Reflect.has(e, c), n) return n;
54
- if (i[F] === !0) {
55
- if (n = ((c, o) => {
56
- const a = Reflect.ownKeys(c), h = Reflect.ownKeys(o);
57
- return a.length !== h.length || a.some((l, u) => l !== h[u]);
58
- })(t, e), n) return n;
59
- } else for (const c of i.o || []) if (n = !!Reflect.getOwnPropertyDescriptor(t, c) != !!Reflect.getOwnPropertyDescriptor(e, c), n) return n;
60
- for (const c of i.k || []) if (n = me(t[c], e[c], s, r), n) return n;
61
- return n === null && (n = !0), n;
62
- } finally {
63
- r && r.set(t, { n: e, g: n });
64
- }
65
- }, nt = (t) => !!ee(t) && de in t, ye = (t) => ee(t) && t[q] || null, it = "h", ct = "w", ot = "o", at = "k", V = (t) => typeof t == "object" && t !== null, Me = (t, e) => {
66
- if (!V(t)) return t;
67
- const s = ye(t);
68
- return s !== null ? (nt(t), s) : (e.has(t) || (e.add(t), Object.entries(t).forEach(([r, i]) => {
69
- const n = Me(i, e);
70
- Object.is(n, i) || (t[r] = n);
71
- })), t);
72
- }, U = (t, e, s) => {
73
- var r, i, n;
74
- if (!V(t) || !V(e)) return;
75
- const c = s.get(ye(e) || e);
76
- c && ((r = c[it]) == null || r.forEach((o) => {
77
- Reflect.has(t, o);
78
- }), c[ct] === !0 && Reflect.ownKeys(t), (i = c[ot]) == null || i.forEach((o) => {
79
- Reflect.getOwnPropertyDescriptor(t, o);
80
- }), (n = c[at]) == null || n.forEach((o) => {
81
- U(t[o], e[o], s);
82
- }));
83
- }, D = "o", W = "r", Y = "a";
84
- function lt(t, e) {
85
- var s;
86
- let r = 0;
87
- const i = (s = e == null ? void 0 : e.size) != null ? s : 1, n = [], c = e != null && e.noWeakMap ? null : /* @__PURE__ */ new WeakMap();
88
- return (a) => {
89
- const h = c == null ? void 0 : c.get(a);
90
- if (h)
91
- return h[W];
92
- for (let p = 0; p < i; p += 1) {
93
- const m = n[(r + p) % i];
94
- if (!m) break;
95
- if (!me(m[D], a, m[Y], /* @__PURE__ */ new WeakMap()))
96
- return U(a, m[D], m[Y]), c == null || c.set(a, m), m[W];
97
- }
98
- const l = /* @__PURE__ */ new WeakMap(), u = pe(a, l), f = Me(t(u), /* @__PURE__ */ new Set());
99
- U(a, a, l);
100
- const g = {
101
- [D]: a,
102
- [W]: f,
103
- [Y]: l
104
- };
105
- return r = (r - 1 + i) % i, n[r] = g, c == null || c.set(a, g), f;
106
- };
107
- }
108
- const ht = (t, e) => tt.RUNTIME === "browser" ? lt(t, e) : t;
109
- function x(t) {
110
- return Array.isArray ? Array.isArray(t) : Se(t) === "[object Array]";
111
- }
112
- function ut(t) {
113
- if (typeof t == "string")
114
- return t;
115
- let e = t + "";
116
- return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
117
- }
118
- function ft(t) {
119
- return t == null ? "" : ut(t);
120
- }
121
- function E(t) {
122
- return typeof t == "string";
123
- }
124
- function _e(t) {
125
- return typeof t == "number";
126
- }
127
- function dt(t) {
128
- return t === !0 || t === !1 || gt(t) && Se(t) == "[object Boolean]";
129
- }
130
- function Ee(t) {
131
- return typeof t == "object";
132
- }
133
- function gt(t) {
134
- return Ee(t) && t !== null;
135
- }
136
- function y(t) {
137
- return t != null;
138
- }
139
- function z(t) {
140
- return !t.trim().length;
141
- }
142
- function Se(t) {
143
- return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
144
- }
145
- const pt = "Incorrect 'index' type", mt = (t) => `Invalid value for key ${t}`, yt = (t) => `Pattern length exceeds max of ${t}.`, Mt = (t) => `Missing ${t} property in key`, _t = (t) => `Property 'weight' in key '${t}' must be a positive integer`, oe = Object.prototype.hasOwnProperty;
146
- class Et {
147
- constructor(e) {
148
- this._keys = [], this._keyMap = {};
149
- let s = 0;
150
- e.forEach((r) => {
151
- let i = xe(r);
152
- this._keys.push(i), this._keyMap[i.id] = i, s += i.weight;
153
- }), this._keys.forEach((r) => {
154
- r.weight /= s;
155
- });
156
- }
157
- get(e) {
158
- return this._keyMap[e];
159
- }
160
- keys() {
161
- return this._keys;
162
- }
163
- toJSON() {
164
- return JSON.stringify(this._keys);
165
- }
166
- }
167
- function xe(t) {
168
- let e = null, s = null, r = null, i = 1, n = null;
169
- if (E(t) || x(t))
170
- r = t, e = ae(t), s = B(t);
171
- else {
172
- if (!oe.call(t, "name"))
173
- throw new Error(Mt("name"));
174
- const c = t.name;
175
- if (r = c, oe.call(t, "weight") && (i = t.weight, i <= 0))
176
- throw new Error(_t(c));
177
- e = ae(c), s = B(c), n = t.getFn;
178
- }
179
- return { path: e, id: s, weight: i, src: r, getFn: n };
180
- }
181
- function ae(t) {
182
- return x(t) ? t : t.split(".");
183
- }
184
- function B(t) {
185
- return x(t) ? t.join(".") : t;
186
- }
187
- function St(t, e) {
188
- let s = [], r = !1;
189
- const i = (n, c, o) => {
190
- if (y(n))
191
- if (!c[o])
192
- s.push(n);
193
- else {
194
- let a = c[o];
195
- const h = n[a];
196
- if (!y(h))
197
- return;
198
- if (o === c.length - 1 && (E(h) || _e(h) || dt(h)))
199
- s.push(ft(h));
200
- else if (x(h)) {
201
- r = !0;
202
- for (let l = 0, u = h.length; l < u; l += 1)
203
- i(h[l], c, o + 1);
204
- } else c.length && i(h, c, o + 1);
205
- }
206
- };
207
- return i(t, E(e) ? e.split(".") : e, 0), r ? s : s[0];
208
- }
209
- const xt = {
210
- // Whether the matches should be included in the result set. When `true`, each record in the result
211
- // set will include the indices of the matched characters.
212
- // These can consequently be used for highlighting purposes.
213
- includeMatches: !1,
214
- // When `true`, the matching function will continue to the end of a search pattern even if
215
- // a perfect match has already been located in the string.
216
- findAllMatches: !1,
217
- // Minimum number of characters that must be matched before a result is considered a match
218
- minMatchCharLength: 1
219
- }, Rt = {
220
- // When `true`, the algorithm continues searching to the end of the input even if a perfect
221
- // match is found before the end of the same input.
222
- isCaseSensitive: !1,
223
- // When true, the matching function will continue to the end of a search pattern even if
224
- includeScore: !1,
225
- // List of properties that will be searched. This also supports nested properties.
226
- keys: [],
227
- // Whether to sort the result list, by score
228
- shouldSort: !0,
229
- // Default sort function: sort by ascending score, ascending index
230
- sortFn: (t, e) => t.score === e.score ? t.idx < e.idx ? -1 : 1 : t.score < e.score ? -1 : 1
231
- }, Ot = {
232
- // Approximately where in the text is the pattern expected to be found?
233
- location: 0,
234
- // At what point does the match algorithm give up. A threshold of '0.0' requires a perfect match
235
- // (of both letters and location), a threshold of '1.0' would match anything.
236
- threshold: 0.6,
237
- // Determines how close the match must be to the fuzzy location (specified above).
238
- // An exact letter match which is 'distance' characters away from the fuzzy location
239
- // would score as a complete mismatch. A distance of '0' requires the match be at
240
- // the exact location specified, a threshold of '1000' would require a perfect match
241
- // to be within 800 characters of the fuzzy location to be found using a 0.8 threshold.
242
- distance: 100
243
- }, wt = {
244
- // When `true`, it enables the use of unix-like search commands
245
- useExtendedSearch: !1,
246
- // The get function to use when fetching an object's properties.
247
- // The default will search nested paths *ie foo.bar.baz*
248
- getFn: St,
249
- // When `true`, search will ignore `location` and `distance`, so it won't matter
250
- // where in the string the pattern appears.
251
- // More info: https://fusejs.io/concepts/scoring-theory.html#fuzziness-score
252
- ignoreLocation: !1,
253
- // When `true`, the calculation for the relevance score (used for sorting) will
254
- // ignore the field-length norm.
255
- // More info: https://fusejs.io/concepts/scoring-theory.html#field-length-norm
256
- ignoreFieldNorm: !1,
257
- // The weight to determine how much field length norm effects scoring.
258
- fieldNormWeight: 1
259
- };
260
- var d = {
261
- ...Rt,
262
- ...xt,
263
- ...Ot,
264
- ...wt
265
- };
266
- const It = /[^ ]+/g;
267
- function bt(t = 1, e = 3) {
268
- const s = /* @__PURE__ */ new Map(), r = Math.pow(10, e);
269
- return {
270
- get(i) {
271
- const n = i.match(It).length;
272
- if (s.has(n))
273
- return s.get(n);
274
- const c = 1 / Math.pow(n, 0.5 * t), o = parseFloat(Math.round(c * r) / r);
275
- return s.set(n, o), o;
276
- },
277
- clear() {
278
- s.clear();
279
- }
280
- };
281
- }
282
- class te {
283
- constructor({
284
- getFn: e = d.getFn,
285
- fieldNormWeight: s = d.fieldNormWeight
286
- } = {}) {
287
- this.norm = bt(s, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
288
- }
289
- setSources(e = []) {
290
- this.docs = e;
291
- }
292
- setIndexRecords(e = []) {
293
- this.records = e;
294
- }
295
- setKeys(e = []) {
296
- this.keys = e, this._keysMap = {}, e.forEach((s, r) => {
297
- this._keysMap[s.id] = r;
298
- });
299
- }
300
- create() {
301
- this.isCreated || !this.docs.length || (this.isCreated = !0, E(this.docs[0]) ? this.docs.forEach((e, s) => {
302
- this._addString(e, s);
303
- }) : this.docs.forEach((e, s) => {
304
- this._addObject(e, s);
305
- }), this.norm.clear());
306
- }
307
- // Adds a doc to the end of the index
308
- add(e) {
309
- const s = this.size();
310
- E(e) ? this._addString(e, s) : this._addObject(e, s);
311
- }
312
- // Removes the doc at the specified index of the index
313
- removeAt(e) {
314
- this.records.splice(e, 1);
315
- for (let s = e, r = this.size(); s < r; s += 1)
316
- this.records[s].i -= 1;
317
- }
318
- getValueForItemAtKeyId(e, s) {
319
- return e[this._keysMap[s]];
320
- }
321
- size() {
322
- return this.records.length;
323
- }
324
- _addString(e, s) {
325
- if (!y(e) || z(e))
326
- return;
327
- let r = {
328
- v: e,
329
- i: s,
330
- n: this.norm.get(e)
331
- };
332
- this.records.push(r);
333
- }
334
- _addObject(e, s) {
335
- let r = { i: s, $: {} };
336
- this.keys.forEach((i, n) => {
337
- let c = i.getFn ? i.getFn(e) : this.getFn(e, i.path);
338
- if (y(c)) {
339
- if (x(c)) {
340
- let o = [];
341
- const a = [{ nestedArrIndex: -1, value: c }];
342
- for (; a.length; ) {
343
- const { nestedArrIndex: h, value: l } = a.pop();
344
- if (y(l))
345
- if (E(l) && !z(l)) {
346
- let u = {
347
- v: l,
348
- i: h,
349
- n: this.norm.get(l)
350
- };
351
- o.push(u);
352
- } else x(l) && l.forEach((u, f) => {
353
- a.push({
354
- nestedArrIndex: f,
355
- value: u
356
- });
357
- });
358
- }
359
- r.$[n] = o;
360
- } else if (E(c) && !z(c)) {
361
- let o = {
362
- v: c,
363
- n: this.norm.get(c)
364
- };
365
- r.$[n] = o;
366
- }
367
- }
368
- }), this.records.push(r);
369
- }
370
- toJSON() {
371
- return {
372
- keys: this.keys,
373
- records: this.records
374
- };
375
- }
376
- }
377
- function Re(t, e, { getFn: s = d.getFn, fieldNormWeight: r = d.fieldNormWeight } = {}) {
378
- const i = new te({ getFn: s, fieldNormWeight: r });
379
- return i.setKeys(t.map(xe)), i.setSources(e), i.create(), i;
380
- }
381
- function At(t, { getFn: e = d.getFn, fieldNormWeight: s = d.fieldNormWeight } = {}) {
382
- const { keys: r, records: i } = t, n = new te({ getFn: e, fieldNormWeight: s });
383
- return n.setKeys(r), n.setIndexRecords(i), n;
384
- }
385
- function v(t, {
386
- errors: e = 0,
387
- currentLocation: s = 0,
388
- expectedLocation: r = 0,
389
- distance: i = d.distance,
390
- ignoreLocation: n = d.ignoreLocation
391
- } = {}) {
392
- const c = e / t.length;
393
- if (n)
394
- return c;
395
- const o = Math.abs(r - s);
396
- return i ? c + o / i : o ? 1 : c;
397
- }
398
- function Pt(t = [], e = d.minMatchCharLength) {
399
- let s = [], r = -1, i = -1, n = 0;
400
- for (let c = t.length; n < c; n += 1) {
401
- let o = t[n];
402
- o && r === -1 ? r = n : !o && r !== -1 && (i = n - 1, i - r + 1 >= e && s.push([r, i]), r = -1);
403
- }
404
- return t[n - 1] && n - r >= e && s.push([r, n - 1]), s;
405
- }
406
- const A = 32;
407
- function kt(t, e, s, {
408
- location: r = d.location,
409
- distance: i = d.distance,
410
- threshold: n = d.threshold,
411
- findAllMatches: c = d.findAllMatches,
412
- minMatchCharLength: o = d.minMatchCharLength,
413
- includeMatches: a = d.includeMatches,
414
- ignoreLocation: h = d.ignoreLocation
415
- } = {}) {
416
- if (e.length > A)
417
- throw new Error(yt(A));
418
- const l = e.length, u = t.length, f = Math.max(0, Math.min(r, u));
419
- let g = n, p = f;
420
- const m = o > 1 || a, I = m ? Array(u) : [];
421
- let S;
422
- for (; (S = t.indexOf(e, p)) > -1; ) {
423
- let M = v(e, {
424
- currentLocation: S,
425
- expectedLocation: f,
426
- distance: i,
427
- ignoreLocation: h
428
- });
429
- if (g = Math.min(M, g), p = S + l, m) {
430
- let R = 0;
431
- for (; R < l; )
432
- I[S + R] = 1, R += 1;
433
- }
434
- }
435
- p = -1;
436
- let P = [], b = 1, C = l + u;
437
- const Pe = 1 << l - 1;
438
- for (let M = 0; M < l; M += 1) {
439
- let R = 0, O = C;
440
- for (; R < O; )
441
- v(e, {
442
- errors: M,
443
- currentLocation: f + O,
444
- expectedLocation: f,
445
- distance: i,
446
- ignoreLocation: h
447
- }) <= g ? R = O : C = O, O = Math.floor((C - R) / 2 + R);
448
- C = O;
449
- let se = Math.max(1, f - O + 1), K = c ? u : Math.min(f + O, u) + l, k = Array(K + 2);
450
- k[K + 1] = (1 << M) - 1;
451
- for (let _ = K; _ >= se; _ -= 1) {
452
- let $ = _ - 1, re = s[t.charAt($)];
453
- if (m && (I[$] = +!!re), k[_] = (k[_ + 1] << 1 | 1) & re, M && (k[_] |= (P[_ + 1] | P[_]) << 1 | 1 | P[_ + 1]), k[_] & Pe && (b = v(e, {
454
- errors: M,
455
- currentLocation: $,
456
- expectedLocation: f,
457
- distance: i,
458
- ignoreLocation: h
459
- }), b <= g)) {
460
- if (g = b, p = $, p <= f)
461
- break;
462
- se = Math.max(1, 2 * f - p);
463
- }
464
- }
465
- if (v(e, {
466
- errors: M + 1,
467
- currentLocation: f,
468
- expectedLocation: f,
469
- distance: i,
470
- ignoreLocation: h
471
- }) > g)
472
- break;
473
- P = k;
474
- }
475
- const j = {
476
- isMatch: p >= 0,
477
- // Count exact matches (those with a score of 0) to be "almost" exact
478
- score: Math.max(1e-3, b)
479
- };
480
- if (m) {
481
- const M = Pt(I, o);
482
- M.length ? a && (j.indices = M) : j.isMatch = !1;
483
- }
484
- return j;
485
- }
486
- function Lt(t) {
487
- let e = {};
488
- for (let s = 0, r = t.length; s < r; s += 1) {
489
- const i = t.charAt(s);
490
- e[i] = (e[i] || 0) | 1 << r - s - 1;
491
- }
492
- return e;
493
- }
494
- class Oe {
495
- constructor(e, {
496
- location: s = d.location,
497
- threshold: r = d.threshold,
498
- distance: i = d.distance,
499
- includeMatches: n = d.includeMatches,
500
- findAllMatches: c = d.findAllMatches,
501
- minMatchCharLength: o = d.minMatchCharLength,
502
- isCaseSensitive: a = d.isCaseSensitive,
503
- ignoreLocation: h = d.ignoreLocation
504
- } = {}) {
505
- if (this.options = {
506
- location: s,
507
- threshold: r,
508
- distance: i,
509
- includeMatches: n,
510
- findAllMatches: c,
511
- minMatchCharLength: o,
512
- isCaseSensitive: a,
513
- ignoreLocation: h
514
- }, this.pattern = a ? e : e.toLowerCase(), this.chunks = [], !this.pattern.length)
515
- return;
516
- const l = (f, g) => {
517
- this.chunks.push({
518
- pattern: f,
519
- alphabet: Lt(f),
520
- startIndex: g
521
- });
522
- }, u = this.pattern.length;
523
- if (u > A) {
524
- let f = 0;
525
- const g = u % A, p = u - g;
526
- for (; f < p; )
527
- l(this.pattern.substr(f, A), f), f += A;
528
- if (g) {
529
- const m = u - A;
530
- l(this.pattern.substr(m), m);
531
- }
532
- } else
533
- l(this.pattern, 0);
534
- }
535
- searchIn(e) {
536
- const { isCaseSensitive: s, includeMatches: r } = this.options;
537
- if (s || (e = e.toLowerCase()), this.pattern === e) {
538
- let p = {
539
- isMatch: !0,
540
- score: 0
541
- };
542
- return r && (p.indices = [[0, e.length - 1]]), p;
543
- }
544
- const {
545
- location: i,
546
- distance: n,
547
- threshold: c,
548
- findAllMatches: o,
549
- minMatchCharLength: a,
550
- ignoreLocation: h
551
- } = this.options;
552
- let l = [], u = 0, f = !1;
553
- this.chunks.forEach(({ pattern: p, alphabet: m, startIndex: I }) => {
554
- const { isMatch: S, score: P, indices: b } = kt(e, p, m, {
555
- location: i + I,
556
- distance: n,
557
- threshold: c,
558
- findAllMatches: o,
559
- minMatchCharLength: a,
560
- includeMatches: r,
561
- ignoreLocation: h
562
- });
563
- S && (f = !0), u += P, S && b && (l = [...l, ...b]);
564
- });
565
- let g = {
566
- isMatch: f,
567
- score: f ? u / this.chunks.length : 1
568
- };
569
- return f && r && (g.indices = l), g;
570
- }
571
- }
572
- class w {
573
- constructor(e) {
574
- this.pattern = e;
575
- }
576
- static isMultiMatch(e) {
577
- return le(e, this.multiRegex);
578
- }
579
- static isSingleMatch(e) {
580
- return le(e, this.singleRegex);
581
- }
582
- search() {
583
- }
584
- }
585
- function le(t, e) {
586
- const s = t.match(e);
587
- return s ? s[1] : null;
588
- }
589
- class Tt extends w {
590
- constructor(e) {
591
- super(e);
592
- }
593
- static get type() {
594
- return "exact";
595
- }
596
- static get multiRegex() {
597
- return /^="(.*)"$/;
598
- }
599
- static get singleRegex() {
600
- return /^=(.*)$/;
601
- }
602
- search(e) {
603
- const s = e === this.pattern;
604
- return {
605
- isMatch: s,
606
- score: s ? 0 : 1,
607
- indices: [0, this.pattern.length - 1]
608
- };
609
- }
610
- }
611
- class Ct extends w {
612
- constructor(e) {
613
- super(e);
614
- }
615
- static get type() {
616
- return "inverse-exact";
617
- }
618
- static get multiRegex() {
619
- return /^!"(.*)"$/;
620
- }
621
- static get singleRegex() {
622
- return /^!(.*)$/;
623
- }
624
- search(e) {
625
- const r = e.indexOf(this.pattern) === -1;
626
- return {
627
- isMatch: r,
628
- score: r ? 0 : 1,
629
- indices: [0, e.length - 1]
630
- };
631
- }
632
- }
633
- class $t extends w {
634
- constructor(e) {
635
- super(e);
636
- }
637
- static get type() {
638
- return "prefix-exact";
639
- }
640
- static get multiRegex() {
641
- return /^\^"(.*)"$/;
642
- }
643
- static get singleRegex() {
644
- return /^\^(.*)$/;
645
- }
646
- search(e) {
647
- const s = e.startsWith(this.pattern);
648
- return {
649
- isMatch: s,
650
- score: s ? 0 : 1,
651
- indices: [0, this.pattern.length - 1]
652
- };
653
- }
654
- }
655
- class vt extends w {
656
- constructor(e) {
657
- super(e);
658
- }
659
- static get type() {
660
- return "inverse-prefix-exact";
661
- }
662
- static get multiRegex() {
663
- return /^!\^"(.*)"$/;
664
- }
665
- static get singleRegex() {
666
- return /^!\^(.*)$/;
667
- }
668
- search(e) {
669
- const s = !e.startsWith(this.pattern);
670
- return {
671
- isMatch: s,
672
- score: s ? 0 : 1,
673
- indices: [0, e.length - 1]
674
- };
675
- }
676
- }
677
- class Ft extends w {
678
- constructor(e) {
679
- super(e);
680
- }
681
- static get type() {
682
- return "suffix-exact";
683
- }
684
- static get multiRegex() {
685
- return /^"(.*)"\$$/;
686
- }
687
- static get singleRegex() {
688
- return /^(.*)\$$/;
689
- }
690
- search(e) {
691
- const s = e.endsWith(this.pattern);
692
- return {
693
- isMatch: s,
694
- score: s ? 0 : 1,
695
- indices: [e.length - this.pattern.length, e.length - 1]
696
- };
697
- }
698
- }
699
- class Nt extends w {
700
- constructor(e) {
701
- super(e);
702
- }
703
- static get type() {
704
- return "inverse-suffix-exact";
705
- }
706
- static get multiRegex() {
707
- return /^!"(.*)"\$$/;
708
- }
709
- static get singleRegex() {
710
- return /^!(.*)\$$/;
711
- }
712
- search(e) {
713
- const s = !e.endsWith(this.pattern);
714
- return {
715
- isMatch: s,
716
- score: s ? 0 : 1,
717
- indices: [0, e.length - 1]
718
- };
719
- }
720
- }
721
- class we extends w {
722
- constructor(e, {
723
- location: s = d.location,
724
- threshold: r = d.threshold,
725
- distance: i = d.distance,
726
- includeMatches: n = d.includeMatches,
727
- findAllMatches: c = d.findAllMatches,
728
- minMatchCharLength: o = d.minMatchCharLength,
729
- isCaseSensitive: a = d.isCaseSensitive,
730
- ignoreLocation: h = d.ignoreLocation
731
- } = {}) {
732
- super(e), this._bitapSearch = new Oe(e, {
733
- location: s,
734
- threshold: r,
735
- distance: i,
736
- includeMatches: n,
737
- findAllMatches: c,
738
- minMatchCharLength: o,
739
- isCaseSensitive: a,
740
- ignoreLocation: h
741
- });
742
- }
743
- static get type() {
744
- return "fuzzy";
745
- }
746
- static get multiRegex() {
747
- return /^"(.*)"$/;
748
- }
749
- static get singleRegex() {
750
- return /^(.*)$/;
751
- }
752
- search(e) {
753
- return this._bitapSearch.searchIn(e);
754
- }
755
- }
756
- class Ie extends w {
757
- constructor(e) {
758
- super(e);
759
- }
760
- static get type() {
761
- return "include";
762
- }
763
- static get multiRegex() {
764
- return /^'"(.*)"$/;
765
- }
766
- static get singleRegex() {
767
- return /^'(.*)$/;
768
- }
769
- search(e) {
770
- let s = 0, r;
771
- const i = [], n = this.pattern.length;
772
- for (; (r = e.indexOf(this.pattern, s)) > -1; )
773
- s = r + n, i.push([r, s - 1]);
774
- const c = !!i.length;
775
- return {
776
- isMatch: c,
777
- score: c ? 0 : 1,
778
- indices: i
779
- };
780
- }
781
- }
782
- const G = [
783
- Tt,
784
- Ie,
785
- $t,
786
- vt,
787
- Nt,
788
- Ft,
789
- Ct,
790
- we
791
- ], he = G.length, jt = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, Kt = "|";
792
- function Dt(t, e = {}) {
793
- return t.split(Kt).map((s) => {
794
- let r = s.trim().split(jt).filter((n) => n && !!n.trim()), i = [];
795
- for (let n = 0, c = r.length; n < c; n += 1) {
796
- const o = r[n];
797
- let a = !1, h = -1;
798
- for (; !a && ++h < he; ) {
799
- const l = G[h];
800
- let u = l.isMultiMatch(o);
801
- u && (i.push(new l(u, e)), a = !0);
802
- }
803
- if (!a)
804
- for (h = -1; ++h < he; ) {
805
- const l = G[h];
806
- let u = l.isSingleMatch(o);
807
- if (u) {
808
- i.push(new l(u, e));
809
- break;
810
- }
811
- }
812
- }
813
- return i;
814
- });
815
- }
816
- const Wt = /* @__PURE__ */ new Set([we.type, Ie.type]);
817
- class Yt {
818
- constructor(e, {
819
- isCaseSensitive: s = d.isCaseSensitive,
820
- includeMatches: r = d.includeMatches,
821
- minMatchCharLength: i = d.minMatchCharLength,
822
- ignoreLocation: n = d.ignoreLocation,
823
- findAllMatches: c = d.findAllMatches,
824
- location: o = d.location,
825
- threshold: a = d.threshold,
826
- distance: h = d.distance
827
- } = {}) {
828
- this.query = null, this.options = {
829
- isCaseSensitive: s,
830
- includeMatches: r,
831
- minMatchCharLength: i,
832
- findAllMatches: c,
833
- ignoreLocation: n,
834
- location: o,
835
- threshold: a,
836
- distance: h
837
- }, this.pattern = s ? e : e.toLowerCase(), this.query = Dt(this.pattern, this.options);
838
- }
839
- static condition(e, s) {
840
- return s.useExtendedSearch;
841
- }
842
- searchIn(e) {
843
- const s = this.query;
844
- if (!s)
845
- return {
846
- isMatch: !1,
847
- score: 1
848
- };
849
- const { includeMatches: r, isCaseSensitive: i } = this.options;
850
- e = i ? e : e.toLowerCase();
851
- let n = 0, c = [], o = 0;
852
- for (let a = 0, h = s.length; a < h; a += 1) {
853
- const l = s[a];
854
- c.length = 0, n = 0;
855
- for (let u = 0, f = l.length; u < f; u += 1) {
856
- const g = l[u], { isMatch: p, indices: m, score: I } = g.search(e);
857
- if (p) {
858
- if (n += 1, o += I, r) {
859
- const S = g.constructor.type;
860
- Wt.has(S) ? c = [...c, ...m] : c.push(m);
861
- }
862
- } else {
863
- o = 0, n = 0, c.length = 0;
864
- break;
865
- }
866
- }
867
- if (n) {
868
- let u = {
869
- isMatch: !0,
870
- score: o / n
871
- };
872
- return r && (u.indices = c), u;
873
- }
874
- }
875
- return {
876
- isMatch: !1,
877
- score: 1
878
- };
879
- }
880
- }
881
- const J = [];
882
- function zt(...t) {
883
- J.push(...t);
884
- }
885
- function Q(t, e) {
886
- for (let s = 0, r = J.length; s < r; s += 1) {
887
- let i = J[s];
888
- if (i.condition(t, e))
889
- return new i(t, e);
890
- }
891
- return new Oe(t, e);
892
- }
893
- const N = {
894
- AND: "$and",
895
- OR: "$or"
896
- }, X = {
897
- PATH: "$path",
898
- PATTERN: "$val"
899
- }, Z = (t) => !!(t[N.AND] || t[N.OR]), Ht = (t) => !!t[X.PATH], Vt = (t) => !x(t) && Ee(t) && !Z(t), ue = (t) => ({
900
- [N.AND]: Object.keys(t).map((e) => ({
901
- [e]: t[e]
902
- }))
903
- });
904
- function be(t, e, { auto: s = !0 } = {}) {
905
- const r = (i) => {
906
- let n = Object.keys(i);
907
- const c = Ht(i);
908
- if (!c && n.length > 1 && !Z(i))
909
- return r(ue(i));
910
- if (Vt(i)) {
911
- const a = c ? i[X.PATH] : n[0], h = c ? i[X.PATTERN] : i[a];
912
- if (!E(h))
913
- throw new Error(mt(a));
914
- const l = {
915
- keyId: B(a),
916
- pattern: h
917
- };
918
- return s && (l.searcher = Q(h, e)), l;
919
- }
920
- let o = {
921
- children: [],
922
- operator: n[0]
923
- };
924
- return n.forEach((a) => {
925
- const h = i[a];
926
- x(h) && h.forEach((l) => {
927
- o.children.push(r(l));
928
- });
929
- }), o;
930
- };
931
- return Z(t) || (t = ue(t)), r(t);
932
- }
933
- function Ut(t, { ignoreFieldNorm: e = d.ignoreFieldNorm }) {
934
- t.forEach((s) => {
935
- let r = 1;
936
- s.matches.forEach(({ key: i, norm: n, score: c }) => {
937
- const o = i ? i.weight : null;
938
- r *= Math.pow(
939
- c === 0 && o ? Number.EPSILON : c,
940
- (o || 1) * (e ? 1 : n)
941
- );
942
- }), s.score = r;
943
- });
944
- }
945
- function Bt(t, e) {
946
- const s = t.matches;
947
- e.matches = [], y(s) && s.forEach((r) => {
948
- if (!y(r.indices) || !r.indices.length)
949
- return;
950
- const { indices: i, value: n } = r;
951
- let c = {
952
- indices: i,
953
- value: n
954
- };
955
- r.key && (c.key = r.key.src), r.idx > -1 && (c.refIndex = r.idx), e.matches.push(c);
956
- });
957
- }
958
- function Gt(t, e) {
959
- e.score = t.score;
960
- }
961
- function Jt(t, e, {
962
- includeMatches: s = d.includeMatches,
963
- includeScore: r = d.includeScore
964
- } = {}) {
965
- const i = [];
966
- return s && i.push(Bt), r && i.push(Gt), t.map((n) => {
967
- const { idx: c } = n, o = {
968
- item: e[c],
969
- refIndex: c
970
- };
971
- return i.length && i.forEach((a) => {
972
- a(n, o);
973
- }), o;
974
- });
975
- }
976
- class L {
977
- constructor(e, s = {}, r) {
978
- this.options = { ...d, ...s }, this.options.useExtendedSearch, this._keyStore = new Et(this.options.keys), this.setCollection(e, r);
979
- }
980
- setCollection(e, s) {
981
- if (this._docs = e, s && !(s instanceof te))
982
- throw new Error(pt);
983
- this._myIndex = s || Re(this.options.keys, this._docs, {
984
- getFn: this.options.getFn,
985
- fieldNormWeight: this.options.fieldNormWeight
986
- });
987
- }
988
- add(e) {
989
- y(e) && (this._docs.push(e), this._myIndex.add(e));
990
- }
991
- remove(e = () => !1) {
992
- const s = [];
993
- for (let r = 0, i = this._docs.length; r < i; r += 1) {
994
- const n = this._docs[r];
995
- e(n, r) && (this.removeAt(r), r -= 1, i -= 1, s.push(n));
996
- }
997
- return s;
998
- }
999
- removeAt(e) {
1000
- this._docs.splice(e, 1), this._myIndex.removeAt(e);
1001
- }
1002
- getIndex() {
1003
- return this._myIndex;
1004
- }
1005
- search(e, { limit: s = -1 } = {}) {
1006
- const {
1007
- includeMatches: r,
1008
- includeScore: i,
1009
- shouldSort: n,
1010
- sortFn: c,
1011
- ignoreFieldNorm: o
1012
- } = this.options;
1013
- let a = E(e) ? E(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
1014
- return Ut(a, { ignoreFieldNorm: o }), n && a.sort(c), _e(s) && s > -1 && (a = a.slice(0, s)), Jt(a, this._docs, {
1015
- includeMatches: r,
1016
- includeScore: i
1017
- });
1018
- }
1019
- _searchStringList(e) {
1020
- const s = Q(e, this.options), { records: r } = this._myIndex, i = [];
1021
- return r.forEach(({ v: n, i: c, n: o }) => {
1022
- if (!y(n))
1023
- return;
1024
- const { isMatch: a, score: h, indices: l } = s.searchIn(n);
1025
- a && i.push({
1026
- item: n,
1027
- idx: c,
1028
- matches: [{ score: h, value: n, norm: o, indices: l }]
1029
- });
1030
- }), i;
1031
- }
1032
- _searchLogical(e) {
1033
- const s = be(e, this.options), r = (o, a, h) => {
1034
- if (!o.children) {
1035
- const { keyId: u, searcher: f } = o, g = this._findMatches({
1036
- key: this._keyStore.get(u),
1037
- value: this._myIndex.getValueForItemAtKeyId(a, u),
1038
- searcher: f
1039
- });
1040
- return g && g.length ? [
1041
- {
1042
- idx: h,
1043
- item: a,
1044
- matches: g
1045
- }
1046
- ] : [];
1047
- }
1048
- const l = [];
1049
- for (let u = 0, f = o.children.length; u < f; u += 1) {
1050
- const g = o.children[u], p = r(g, a, h);
1051
- if (p.length)
1052
- l.push(...p);
1053
- else if (o.operator === N.AND)
1054
- return [];
1055
- }
1056
- return l;
1057
- }, i = this._myIndex.records, n = {}, c = [];
1058
- return i.forEach(({ $: o, i: a }) => {
1059
- if (y(o)) {
1060
- let h = r(s, o, a);
1061
- h.length && (n[a] || (n[a] = { idx: a, item: o, matches: [] }, c.push(n[a])), h.forEach(({ matches: l }) => {
1062
- n[a].matches.push(...l);
1063
- }));
1064
- }
1065
- }), c;
1066
- }
1067
- _searchObjectList(e) {
1068
- const s = Q(e, this.options), { keys: r, records: i } = this._myIndex, n = [];
1069
- return i.forEach(({ $: c, i: o }) => {
1070
- if (!y(c))
1071
- return;
1072
- let a = [];
1073
- r.forEach((h, l) => {
1074
- a.push(
1075
- ...this._findMatches({
1076
- key: h,
1077
- value: c[l],
1078
- searcher: s
1079
- })
1080
- );
1081
- }), a.length && n.push({
1082
- idx: o,
1083
- item: c,
1084
- matches: a
1085
- });
1086
- }), n;
1087
- }
1088
- _findMatches({ key: e, value: s, searcher: r }) {
1089
- if (!y(s))
1090
- return [];
1091
- let i = [];
1092
- if (x(s))
1093
- s.forEach(({ v: n, i: c, n: o }) => {
1094
- if (!y(n))
1095
- return;
1096
- const { isMatch: a, score: h, indices: l } = r.searchIn(n);
1097
- a && i.push({
1098
- score: h,
1099
- key: e,
1100
- value: n,
1101
- idx: c,
1102
- norm: o,
1103
- indices: l
1104
- });
1105
- });
1106
- else {
1107
- const { v: n, n: c } = s, { isMatch: o, score: a, indices: h } = r.searchIn(n);
1108
- o && i.push({ score: a, key: e, value: n, norm: c, indices: h });
1109
- }
1110
- return i;
1111
- }
1112
- }
1113
- L.version = "7.0.0";
1114
- L.createIndex = Re;
1115
- L.parseIndex = At;
1116
- L.config = d;
1117
- L.parseQuery = be;
1118
- zt(Yt);
1119
- const Qt = {
1120
- threshold: 0.3
1121
- }, Xt = (t) => (e) => {
1122
- const s = new L(e, {
1123
- keys: Object.keys(e[0]),
1124
- ...Qt,
1125
- ...t
1126
- });
1127
- return {
1128
- type: "fuse",
1129
- page: (r, i) => e.slice(r * i, (r + 1) * i),
1130
- search: (r) => s.search(r).map(({ item: i }) => i),
1131
- retrieve: (r) => e.filter((i) => r.includes(i.key))
1132
- };
1133
- }, Zt = Xt(), qt = ({
1134
- term: t,
1135
- searcher: e = Zt
1136
- }) => ht(({ data: s }) => typeof e == "function" ? t.length === 0 || (s == null ? void 0 : s.length) === 0 ? { data: s, transformed: !1 } : { data: e(s).search(t), transformed: !0 } : { data: e.search(t), transformed: !0 }), Ae = ({
1137
- debounce: t = 250,
1138
- value: e,
1139
- onChange: s,
1140
- transformBefore: r
1141
- }) => {
1142
- const [i, n] = st({
1143
- onChange: s,
1144
- value: e,
1145
- initial: ""
1146
- }), { setTransform: c, deleteTransform: o } = fe(), a = ke(c, t, []), h = et(
1147
- (l) => {
1148
- n(l), l.length === 0 ? o("filter") : (r != null && (l = r(l)), a("filter", qt({ term: l })));
1149
- },
1150
- [n, r]
1151
- );
1152
- return { value: i, onChange: h };
1153
- }, es = ({
1154
- children: t = (s) => /* @__PURE__ */ qe.jsx(Le, { placeholder: "Filter", ...s }),
1155
- ...e
1156
- }) => t(Ae(e)), as = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1157
- __proto__: null,
1158
- Column: Te,
1159
- ColumnContext: Ce,
1160
- Core: $e,
1161
- DataProvider: ve,
1162
- Filter: es,
1163
- Hover: Fe,
1164
- ItemFrame: Ne,
1165
- List: je,
1166
- Search: Ke,
1167
- Selector: De,
1168
- selectValueIsZero: We,
1169
- useDataContext: Ye,
1170
- useDataUtilContext: fe,
1171
- useFilter: Ae,
1172
- useGetTransformedData: ze,
1173
- useHoverContext: He,
1174
- useSearch: Ve,
1175
- useSelect: Ue,
1176
- useSelection: Be,
1177
- useSelectionContext: Ge,
1178
- useSelectionUtils: Je,
1179
- useSetSourceData: Qe,
1180
- useSourceData: Xe,
1181
- useTransformedData: Ze
1182
- }, Symbol.toStringTag, { value: "Module" }));
1183
- export {
1184
- es as F,
1185
- qt as c,
1186
- as as e,
1187
- Xt as f,
1188
- ht as p
1189
- };