@sheetxl/studio-vanilla 0.1.98

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 (184) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +100 -0
  3. package/build/browser/cjs/1q6_3-jGNZllbF3R.cjs +6 -0
  4. package/build/browser/cjs/5KDindu3wyLVvG7F.cjs +6 -0
  5. package/build/browser/cjs/87m5i_TKPbDn6tke.cjs +30 -0
  6. package/build/browser/cjs/B0L2YQ9agsyHWOu2.cjs +6 -0
  7. package/build/browser/cjs/B3HvYH5kqySWdJ0f.cjs +6 -0
  8. package/build/browser/cjs/B6AOUko0HYRy2MPw.cjs +6 -0
  9. package/build/browser/cjs/BC5MKXBhHGdPeiJ3.cjs +21 -0
  10. package/build/browser/cjs/BG0RxkPyZY6Be7Lk.cjs +6 -0
  11. package/build/browser/cjs/BJsJYwvFiJBFxTov.cjs +6 -0
  12. package/build/browser/cjs/BMVMyi5NiMBuQrl9.cjs +52 -0
  13. package/build/browser/cjs/BS_QXQWoKRl_7MiR.cjs +17 -0
  14. package/build/browser/cjs/BZPhmHWsFBTIA3BQ.cjs +210 -0
  15. package/build/browser/cjs/B_5ro-VEKfZDMSn_.cjs +6 -0
  16. package/build/browser/cjs/B_c3i0fXSlX7dH12.cjs +1521 -0
  17. package/build/browser/cjs/BarieqwSecnaFn0d.cjs +6 -0
  18. package/build/browser/cjs/BfNo_1u55uW2HhAa.cjs +6 -0
  19. package/build/browser/cjs/Bl6FyLoMkFiQqhvc.cjs +7 -0
  20. package/build/browser/cjs/Bsyzteo6tD31A45e.cjs +11 -0
  21. package/build/browser/cjs/Btzizuqo7zQ_grdS.cjs +16 -0
  22. package/build/browser/cjs/BxBOlXY9P3Ymi6oT.cjs +6 -0
  23. package/build/browser/cjs/C0AP85yKTJU5XzPW.cjs +6 -0
  24. package/build/browser/cjs/C0Pjx18ua-OCdtpy.cjs +6 -0
  25. package/build/browser/cjs/CA2wSX6txFrM5nXD.cjs +6 -0
  26. package/build/browser/cjs/CB3jEtNo5ZsjfE5p.cjs +6 -0
  27. package/build/browser/cjs/CDiYZ1cSoLW8U5Mz.cjs +6 -0
  28. package/build/browser/cjs/CHD5c5FdcMm6vLyG.cjs +155 -0
  29. package/build/browser/cjs/COCpf8tSdkj2O19V.cjs +134 -0
  30. package/build/browser/cjs/CTV1KRGhkieiY4Rf.cjs +42 -0
  31. package/build/browser/cjs/CUw8AoM-rVbp1W3s.cjs +6 -0
  32. package/build/browser/cjs/CVTydWBioXRZeoNf.cjs +6 -0
  33. package/build/browser/cjs/C_uXPPlfjY68-QA8.cjs +6 -0
  34. package/build/browser/cjs/CaNR-X0TWW9OF1S0.cjs +33 -0
  35. package/build/browser/cjs/CiySKEsfDr8XnkZh.cjs +6 -0
  36. package/build/browser/cjs/CtBikymnhpcCzP3X.cjs +6 -0
  37. package/build/browser/cjs/CyF7bxA0DO13ETpx.cjs +30 -0
  38. package/build/browser/cjs/D-vkFAlNHXwUvmUT.cjs +16 -0
  39. package/build/browser/cjs/D2OU29-ZPOAWFVJB.cjs +22 -0
  40. package/build/browser/cjs/DFX31uXp449or-Xs.cjs +6 -0
  41. package/build/browser/cjs/DLqNXuHYff_kQuj1.cjs +6 -0
  42. package/build/browser/cjs/DMKZDMHHXLePvLy3.cjs +524 -0
  43. package/build/browser/cjs/DP8biA0GQqyPKLyq.cjs +6 -0
  44. package/build/browser/cjs/DcYrNx0uy99yQNMl.cjs +21 -0
  45. package/build/browser/cjs/Dcyg_YxTfBgi_6cp.cjs +26 -0
  46. package/build/browser/cjs/DeR9YbwO2xDBKVWN.cjs +21 -0
  47. package/build/browser/cjs/DfNbgyjaLMn81dqP.cjs +6 -0
  48. package/build/browser/cjs/DirazCTz5IsFWrUv.cjs +22 -0
  49. package/build/browser/cjs/Dix4vuDuOzj4WGCJ.cjs +19 -0
  50. package/build/browser/cjs/DqbTRjj97q78RuGC.cjs +6 -0
  51. package/build/browser/cjs/Dy28YI90qj65PHFO.cjs +17 -0
  52. package/build/browser/cjs/Nkl33Tt1_oEy9kjk.cjs +6 -0
  53. package/build/browser/cjs/S1S-AvD0w8s-LV8O.cjs +6 -0
  54. package/build/browser/cjs/bnPgbgGBTq7DESzd.cjs +6 -0
  55. package/build/browser/cjs/d9tJGmGw-3KZjpAx.cjs +17 -0
  56. package/build/browser/cjs/dke2gbIUS44QXwEl.cjs +6 -0
  57. package/build/browser/cjs/index.cjs +6 -0
  58. package/build/browser/cjs/mPpQR06-jf99r2jM.cjs +6 -0
  59. package/build/browser/cjs/wq0Sm3fu9rxt43OK.cjs +6 -0
  60. package/build/browser/cjs/xM54FRmGddZFVTTI.cjs +6 -0
  61. package/build/browser/cjs/xgGpGg5b8fu3GAnL.cjs +33 -0
  62. package/build/browser/esm/1Jl9rrRJdbPsUP_1.mjs +13222 -0
  63. package/build/browser/esm/3RX6dP_O-47yXKHQ.mjs +1492 -0
  64. package/build/browser/esm/5F5MTh8R-sIiPq0h.mjs +22 -0
  65. package/build/browser/esm/B3_l6_TLa9ImyRmW.mjs +5572 -0
  66. package/build/browser/esm/B7odLLxNfEmKGWX6.mjs +49 -0
  67. package/build/browser/esm/BAjCWyggrIkCz6wr.mjs +22 -0
  68. package/build/browser/esm/BE4io65W825i_dzC.mjs +58 -0
  69. package/build/browser/esm/BEZ41ST3hkC4W-_9.mjs +22 -0
  70. package/build/browser/esm/BKkD05hqNTBap4Oc.mjs +22 -0
  71. package/build/browser/esm/BOiR2dTlvcgYjz8P.mjs +402 -0
  72. package/build/browser/esm/BOjAZRs_NVerYv4t.mjs +22 -0
  73. package/build/browser/esm/BRkMPyIUXMixnL8d.mjs +22 -0
  74. package/build/browser/esm/BSS_RvWzDRX8_EJd.mjs +1684 -0
  75. package/build/browser/esm/BXC9rQVV2gq5x8br.mjs +22 -0
  76. package/build/browser/esm/BYmMkbrRTsNuR3aY.mjs +1358 -0
  77. package/build/browser/esm/BaSzK17p3_gCvNVV.mjs +24 -0
  78. package/build/browser/esm/BdtlmF31h4Y7RgUj.mjs +22 -0
  79. package/build/browser/esm/Be3zRnYQ13HUcsRW.mjs +150 -0
  80. package/build/browser/esm/BiSk8LRROMF0Bl4-.mjs +92 -0
  81. package/build/browser/esm/BlfHOASL_bJ6Hy0y.mjs +40 -0
  82. package/build/browser/esm/C-jC-wgAoMOxrVvv.mjs +1377 -0
  83. package/build/browser/esm/C0Lw5hMgKbooA6Jl.mjs +22 -0
  84. package/build/browser/esm/C32FpMEFLbDnBtO3.mjs +22 -0
  85. package/build/browser/esm/C9uN8RnLjnGSimTA.mjs +439 -0
  86. package/build/browser/esm/CB0UHheTgg0735hj.mjs +52 -0
  87. package/build/browser/esm/CU55zbw8Xbwap6Tl.mjs +22 -0
  88. package/build/browser/esm/CWRCdxOg103AFis3.mjs +3926 -0
  89. package/build/browser/esm/CpJdzwQYkBw7IPnN.mjs +22 -0
  90. package/build/browser/esm/CprFmxuwGvaUtLG2.mjs +22 -0
  91. package/build/browser/esm/CtZxtE4tRmMGFT5o.mjs +22 -0
  92. package/build/browser/esm/D-Oj36iQScXAKSMA.mjs +53 -0
  93. package/build/browser/esm/D2yyUr4KbJEFsxKC.mjs +21 -0
  94. package/build/browser/esm/D8HF2X8hvAkV29oq.mjs +55 -0
  95. package/build/browser/esm/DCauh523moR7slpq.mjs +22 -0
  96. package/build/browser/esm/DIA-Gy5mdjefjUaA.mjs +22 -0
  97. package/build/browser/esm/DJjdfX9aUyVGMkri.mjs +47 -0
  98. package/build/browser/esm/DMWb8cCaNVRcm-tT.mjs +2352 -0
  99. package/build/browser/esm/DP7HVKT0w_4L2vMQ.mjs +844 -0
  100. package/build/browser/esm/DToiYU1jffn1g7TH.mjs +639 -0
  101. package/build/browser/esm/DgSuz0WKGy36a2cp.mjs +22 -0
  102. package/build/browser/esm/Dgw3FTbNKuo2CIxP.mjs +22 -0
  103. package/build/browser/esm/DnV_Y9xoMPSav0-o.mjs +56 -0
  104. package/build/browser/esm/Do7pHqmnwO45_ymt.mjs +22 -0
  105. package/build/browser/esm/DqvZDTDIyX-qv4r9.mjs +29 -0
  106. package/build/browser/esm/Ds8V__cRAClpmjZn.mjs +1714 -0
  107. package/build/browser/esm/DtQdtXJDZgNEIz9d.mjs +440 -0
  108. package/build/browser/esm/DtpBQqwK7XXBMTB-.mjs +1598 -0
  109. package/build/browser/esm/DuzJ1k0LbZ29l8oN.mjs +945 -0
  110. package/build/browser/esm/Dxl4WJXcEhDAw_yE.mjs +42 -0
  111. package/build/browser/esm/LblYfFi1ns9H1ueN.mjs +28 -0
  112. package/build/browser/esm/NBkvFJzfLU32Pkup.mjs +496 -0
  113. package/build/browser/esm/SrBQAOpMKiDW0mGB.mjs +22 -0
  114. package/build/browser/esm/VLa1cYMb7h6UD253.mjs +64 -0
  115. package/build/browser/esm/YOEDF-U1QTzbXeMV.mjs +3826 -0
  116. package/build/browser/esm/a3tuiJ83MwzLMWaL.mjs +22 -0
  117. package/build/browser/esm/ai2Jw3PRL29E1T8h.mjs +22 -0
  118. package/build/browser/esm/ajBoEmoL9hCBQYYm.mjs +2175 -0
  119. package/build/browser/esm/index.mjs +13 -0
  120. package/build/browser/esm/k9kWmEk0ZT8y9Gii.mjs +48740 -0
  121. package/build/cdn/assets/1Jl9rrRJdbPsUP_1.js +13222 -0
  122. package/build/cdn/assets/4u46flV9M6Bwb7d3.js +29 -0
  123. package/build/cdn/assets/5F5MTh8R-sIiPq0h.js +22 -0
  124. package/build/cdn/assets/B3oMCEEls1lRVrGd.js +5572 -0
  125. package/build/cdn/assets/B4QYfmNd300iFLAx.js +945 -0
  126. package/build/cdn/assets/BAjCWyggrIkCz6wr.js +22 -0
  127. package/build/cdn/assets/BEZ41ST3hkC4W-_9.js +22 -0
  128. package/build/cdn/assets/BJIsFTUdHtUKsFJs.js +28 -0
  129. package/build/cdn/assets/BKkD05hqNTBap4Oc.js +22 -0
  130. package/build/cdn/assets/BOiR2dTlvcgYjz8P.js +402 -0
  131. package/build/cdn/assets/BOjAZRs_NVerYv4t.js +22 -0
  132. package/build/cdn/assets/BPFW3UexkNNh1lLK.js +2352 -0
  133. package/build/cdn/assets/BRkMPyIUXMixnL8d.js +22 -0
  134. package/build/cdn/assets/BSS_RvWzDRX8_EJd.js +1684 -0
  135. package/build/cdn/assets/BXC9rQVV2gq5x8br.js +22 -0
  136. package/build/cdn/assets/BY2sO3ExW1ShzKnX.js +1714 -0
  137. package/build/cdn/assets/BYmMkbrRTsNuR3aY.js +1358 -0
  138. package/build/cdn/assets/BaSzK17p3_gCvNVV.js +24 -0
  139. package/build/cdn/assets/BbpmcI-KEp3PqrdL.js +496 -0
  140. package/build/cdn/assets/BdtlmF31h4Y7RgUj.js +22 -0
  141. package/build/cdn/assets/BjgtkLR9U00HgSRn.js +58 -0
  142. package/build/cdn/assets/BlfHOASL_bJ6Hy0y.js +40 -0
  143. package/build/cdn/assets/C-jC-wgAoMOxrVvv.js +1377 -0
  144. package/build/cdn/assets/C0Lw5hMgKbooA6Jl.js +22 -0
  145. package/build/cdn/assets/C32FpMEFLbDnBtO3.js +22 -0
  146. package/build/cdn/assets/C7CDwp-nhN2WFzUs.js +844 -0
  147. package/build/cdn/assets/C9uN8RnLjnGSimTA.js +439 -0
  148. package/build/cdn/assets/CEq_C1Sim0pQ6fj0.js +56 -0
  149. package/build/cdn/assets/CLdcRW7BQK3JCguC.js +48587 -0
  150. package/build/cdn/assets/CU55zbw8Xbwap6Tl.js +22 -0
  151. package/build/cdn/assets/C_L_pvQemfhI00iS.js +150 -0
  152. package/build/cdn/assets/CkhSGQneqlTRflfQ.js +47 -0
  153. package/build/cdn/assets/CpJdzwQYkBw7IPnN.js +22 -0
  154. package/build/cdn/assets/CprFmxuwGvaUtLG2.js +22 -0
  155. package/build/cdn/assets/CtZxtE4tRmMGFT5o.js +22 -0
  156. package/build/cdn/assets/CvbyGDitUPabmYBl.js +64 -0
  157. package/build/cdn/assets/D06aHumWZLILF489.js +3926 -0
  158. package/build/cdn/assets/D2pceTwrS_dagByu.js +21 -0
  159. package/build/cdn/assets/D4ZBjoUG2QO1RO3t.js +1492 -0
  160. package/build/cdn/assets/DARyg_kqL8Eu81Fa.js +2175 -0
  161. package/build/cdn/assets/DCauh523moR7slpq.js +22 -0
  162. package/build/cdn/assets/DIA-Gy5mdjefjUaA.js +22 -0
  163. package/build/cdn/assets/DLHK1pMyNN3B2g-j.js +52 -0
  164. package/build/cdn/assets/DMoEzt3UKZedfext.js +1598 -0
  165. package/build/cdn/assets/DMwOymY267-LxmJ_.js +49 -0
  166. package/build/cdn/assets/DToiYU1jffn1g7TH.js +639 -0
  167. package/build/cdn/assets/DUUO52IRQCve_iCM.js +440 -0
  168. package/build/cdn/assets/DgSuz0WKGy36a2cp.js +22 -0
  169. package/build/cdn/assets/Dgw3FTbNKuo2CIxP.js +22 -0
  170. package/build/cdn/assets/Do7pHqmnwO45_ymt.js +22 -0
  171. package/build/cdn/assets/Dxl4WJXcEhDAw_yE.js +42 -0
  172. package/build/cdn/assets/QXzPuadwi3BBJC2-.js +53 -0
  173. package/build/cdn/assets/SrBQAOpMKiDW0mGB.js +22 -0
  174. package/build/cdn/assets/W3SqjN4yIzwYTvvj.js +55 -0
  175. package/build/cdn/assets/YOEDF-U1QTzbXeMV.js +3826 -0
  176. package/build/cdn/assets/a3tuiJ83MwzLMWaL.js +22 -0
  177. package/build/cdn/assets/ai2Jw3PRL29E1T8h.js +22 -0
  178. package/build/cdn/assets/fWcbv7BXhriCYeod.js +92 -0
  179. package/build/cdn/index.js +171 -0
  180. package/build/cdn/loader.js +6 -0
  181. package/build/licenses/dependencies.txt +1 -0
  182. package/build/package.json +61 -0
  183. package/build/types/index.d.ts +151 -0
  184. package/package.json +92 -0
@@ -0,0 +1,639 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ /**
8
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
9
+ *
10
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
+ * License: The license can be found at https://www.sheetxl.com/license.
12
+ */
13
+ function v(t) {
14
+ return Array.isArray ? Array.isArray(t) : Fe(t) === "[object Array]";
15
+ }
16
+ function L(t) {
17
+ return typeof t == "string";
18
+ }
19
+ function Ce(t) {
20
+ return typeof t == "number";
21
+ }
22
+ function me(t) {
23
+ return typeof t == "object";
24
+ }
25
+ function F(t) {
26
+ return t != null;
27
+ }
28
+ function te(t) {
29
+ return !t.trim().length;
30
+ }
31
+ function Fe(t) {
32
+ return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
33
+ }
34
+ const le = Object.prototype.hasOwnProperty;
35
+ class Ie {
36
+ constructor(e) {
37
+ this._keys = [], this._keyMap = {};
38
+ let s = 0;
39
+ e.forEach((i) => {
40
+ let n = Me(i);
41
+ this._keys.push(n), this._keyMap[n.id] = n, s += n.weight;
42
+ }), this._keys.forEach((i) => {
43
+ i.weight /= s;
44
+ });
45
+ }
46
+ get(e) {
47
+ return this._keyMap[e];
48
+ }
49
+ keys() {
50
+ return this._keys;
51
+ }
52
+ toJSON() {
53
+ return JSON.stringify(this._keys);
54
+ }
55
+ }
56
+ function Me(t) {
57
+ let e = null, s = null, i = null, n = 1, r = null;
58
+ if (L(t) || v(t)) i = t, e = de(t), s = ie(t);
59
+ else {
60
+ if (!le.call(t, "name")) throw new Error("Missing name property in key");
61
+ const u = t.name;
62
+ if (i = u, le.call(t, "weight") && (n = t.weight, n <= 0)) throw new Error(`Property 'weight' in key '${u}' must be a positive integer`);
63
+ e = de(u), s = ie(u), r = t.getFn;
64
+ }
65
+ return { path: e, id: s, weight: n, src: i, getFn: r };
66
+ }
67
+ function de(t) {
68
+ return v(t) ? t : t.split(".");
69
+ }
70
+ function ie(t) {
71
+ return v(t) ? t.join(".") : t;
72
+ }
73
+ var l = { isCaseSensitive: !1, ignoreDiacritics: !1, includeScore: !1, keys: [], shouldSort: !0, sortFn: (t, e) => t.score === e.score ? t.idx < e.idx ? -1 : 1 : t.score < e.score ? -1 : 1, includeMatches: !1, findAllMatches: !1, minMatchCharLength: 1, location: 0, threshold: 0.6, distance: 100, useExtendedSearch: !1, getFn: function(t, e) {
74
+ let s = [], i = !1;
75
+ const n = (r, u, h) => {
76
+ if (F(r)) if (u[h]) {
77
+ const a = r[u[h]];
78
+ if (!F(a)) return;
79
+ if (h === u.length - 1 && (L(a) || Ce(a) || function(o) {
80
+ return o === !0 || o === !1 || me(d = o) && d !== null && Fe(o) == "[object Boolean]";
81
+ var d;
82
+ }(a))) s.push((c = a) == null ? "" : function(o) {
83
+ if (typeof o == "string") return o;
84
+ let d = o + "";
85
+ return d == "0" && 1 / o == -1 / 0 ? "-0" : d;
86
+ }(c));
87
+ else if (v(a)) {
88
+ i = !0;
89
+ for (let o = 0, d = a.length; o < d; o += 1) n(a[o], u, h + 1);
90
+ } else u.length && n(a, u, h + 1);
91
+ } else s.push(r);
92
+ var c;
93
+ };
94
+ return n(t, L(e) ? e.split(".") : e, 0), i ? s : s[0];
95
+ }, ignoreLocation: !1, ignoreFieldNorm: !1, fieldNormWeight: 1 };
96
+ const we = /[^ ]+/g;
97
+ class ce {
98
+ constructor({ getFn: e = l.getFn, fieldNormWeight: s = l.fieldNormWeight } = {}) {
99
+ this.norm = function(i = 1, n = 3) {
100
+ const r = /* @__PURE__ */ new Map(), u = Math.pow(10, n);
101
+ return { get(h) {
102
+ const c = h.match(we).length;
103
+ if (r.has(c)) return r.get(c);
104
+ const a = 1 / Math.pow(c, 0.5 * i), o = parseFloat(Math.round(a * u) / u);
105
+ return r.set(c, o), o;
106
+ }, clear() {
107
+ r.clear();
108
+ } };
109
+ }(s, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
110
+ }
111
+ setSources(e = []) {
112
+ this.docs = e;
113
+ }
114
+ setIndexRecords(e = []) {
115
+ this.records = e;
116
+ }
117
+ setKeys(e = []) {
118
+ this.keys = e, this._keysMap = {}, e.forEach((s, i) => {
119
+ this._keysMap[s.id] = i;
120
+ });
121
+ }
122
+ create() {
123
+ !this.isCreated && this.docs.length && (this.isCreated = !0, L(this.docs[0]) ? this.docs.forEach((e, s) => {
124
+ this._addString(e, s);
125
+ }) : this.docs.forEach((e, s) => {
126
+ this._addObject(e, s);
127
+ }), this.norm.clear());
128
+ }
129
+ add(e) {
130
+ const s = this.size();
131
+ L(e) ? this._addString(e, s) : this._addObject(e, s);
132
+ }
133
+ removeAt(e) {
134
+ this.records.splice(e, 1);
135
+ for (let s = e, i = this.size(); s < i; s += 1) this.records[s].i -= 1;
136
+ }
137
+ getValueForItemAtKeyId(e, s) {
138
+ return e[this._keysMap[s]];
139
+ }
140
+ size() {
141
+ return this.records.length;
142
+ }
143
+ _addString(e, s) {
144
+ if (!F(e) || te(e)) return;
145
+ let i = { v: e, i: s, n: this.norm.get(e) };
146
+ this.records.push(i);
147
+ }
148
+ _addObject(e, s) {
149
+ let i = { i: s, $: {} };
150
+ this.keys.forEach((n, r) => {
151
+ let u = n.getFn ? n.getFn(e) : this.getFn(e, n.path);
152
+ if (F(u)) {
153
+ if (v(u)) {
154
+ let h = [];
155
+ const c = [{ nestedArrIndex: -1, value: u }];
156
+ for (; c.length; ) {
157
+ const { nestedArrIndex: a, value: o } = c.pop();
158
+ if (F(o)) if (L(o) && !te(o)) {
159
+ let d = { v: o, i: a, n: this.norm.get(o) };
160
+ h.push(d);
161
+ } else v(o) && o.forEach((d, f) => {
162
+ c.push({ nestedArrIndex: f, value: d });
163
+ });
164
+ }
165
+ i.$[r] = h;
166
+ } else if (L(u) && !te(u)) {
167
+ let h = { v: u, n: this.norm.get(u) };
168
+ i.$[r] = h;
169
+ }
170
+ }
171
+ }), this.records.push(i);
172
+ }
173
+ toJSON() {
174
+ return { keys: this.keys, records: this.records };
175
+ }
176
+ }
177
+ function Ee(t, e, { getFn: s = l.getFn, fieldNormWeight: i = l.fieldNormWeight } = {}) {
178
+ const n = new ce({ getFn: s, fieldNormWeight: i });
179
+ return n.setKeys(t.map(Me)), n.setSources(e), n.create(), n;
180
+ }
181
+ function X(t, { errors: e = 0, currentLocation: s = 0, expectedLocation: i = 0, distance: n = l.distance, ignoreLocation: r = l.ignoreLocation } = {}) {
182
+ const u = e / t.length;
183
+ if (r) return u;
184
+ const h = Math.abs(i - s);
185
+ return n ? u + h / n : h ? 1 : u;
186
+ }
187
+ const z = 32;
188
+ function $e(t) {
189
+ let e = {};
190
+ for (let s = 0, i = t.length; s < i; s += 1) {
191
+ const n = t.charAt(s);
192
+ e[n] = (e[n] || 0) | 1 << i - s - 1;
193
+ }
194
+ return e;
195
+ }
196
+ const Y = String.prototype.normalize ? (t) => t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "") : (t) => t;
197
+ class De {
198
+ constructor(e, { location: s = l.location, threshold: i = l.threshold, distance: n = l.distance, includeMatches: r = l.includeMatches, findAllMatches: u = l.findAllMatches, minMatchCharLength: h = l.minMatchCharLength, isCaseSensitive: c = l.isCaseSensitive, ignoreDiacritics: a = l.ignoreDiacritics, ignoreLocation: o = l.ignoreLocation } = {}) {
199
+ if (this.options = { location: s, threshold: i, distance: n, includeMatches: r, findAllMatches: u, minMatchCharLength: h, isCaseSensitive: c, ignoreDiacritics: a, ignoreLocation: o }, e = c ? e : e.toLowerCase(), e = a ? Y(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
200
+ const d = (g, p) => {
201
+ this.chunks.push({ pattern: g, alphabet: $e(g), startIndex: p });
202
+ }, f = this.pattern.length;
203
+ if (f > z) {
204
+ let g = 0;
205
+ const p = f % z, A = f - p;
206
+ for (; g < A; ) d(this.pattern.substr(g, z), g), g += z;
207
+ if (p) {
208
+ const m = f - z;
209
+ d(this.pattern.substr(m), m);
210
+ }
211
+ } else d(this.pattern, 0);
212
+ }
213
+ searchIn(e) {
214
+ const { isCaseSensitive: s, ignoreDiacritics: i, includeMatches: n } = this.options;
215
+ if (e = s ? e : e.toLowerCase(), e = i ? Y(e) : e, this.pattern === e) {
216
+ let A = { isMatch: !0, score: 0 };
217
+ return n && (A.indices = [[0, e.length - 1]]), A;
218
+ }
219
+ const { location: r, distance: u, threshold: h, findAllMatches: c, minMatchCharLength: a, ignoreLocation: o } = this.options;
220
+ let d = [], f = 0, g = !1;
221
+ this.chunks.forEach(({ pattern: A, alphabet: m, startIndex: _ }) => {
222
+ const { isMatch: N, score: w, indices: S } = function(k, $, Le, { location: ke = l.location, distance: J = l.distance, threshold: ve = l.threshold, findAllMatches: _e = l.findAllMatches, minMatchCharLength: he = l.minMatchCharLength, includeMatches: ae = l.includeMatches, ignoreLocation: V = l.ignoreLocation } = {}) {
223
+ if ($.length > z) throw new Error("Pattern length exceeds max of 32.");
224
+ const R = $.length, K = k.length, y = Math.max(0, Math.min(ke, K));
225
+ let O = ve, b = y;
226
+ const Q = he > 1 || ae, Z = Q ? Array(K) : [];
227
+ let U;
228
+ for (; (U = k.indexOf($, b)) > -1; ) {
229
+ let M = X($, { currentLocation: U, expectedLocation: y, distance: J, ignoreLocation: V });
230
+ if (O = Math.min(M, O), b = U + R, Q) {
231
+ let E = 0;
232
+ for (; E < R; ) Z[U + E] = 1, E += 1;
233
+ }
234
+ }
235
+ b = -1;
236
+ let G = [], H = 1, T = R + K;
237
+ const Se = 1 << R - 1;
238
+ for (let M = 0; M < R; M += 1) {
239
+ let E = 0, B = T;
240
+ for (; E < B; ) X($, { errors: M, currentLocation: y + B, expectedLocation: y, distance: J, ignoreLocation: V }) <= O ? E = B : T = B, B = Math.floor((T - E) / 2 + E);
241
+ T = B;
242
+ let j = Math.max(1, y - B + 1), D = _e ? K : Math.min(y + B, K) + R, x = Array(D + 2);
243
+ x[D + 1] = (1 << M) - 1;
244
+ for (let C = D; C >= j; C -= 1) {
245
+ let W = C - 1, P = Le[k.charAt(W)];
246
+ if (Q && (Z[W] = +!!P), x[C] = (x[C + 1] << 1 | 1) & P, M && (x[C] |= (G[C + 1] | G[C]) << 1 | 1 | G[C + 1]), x[C] & Se && (H = X($, { errors: M, currentLocation: W, expectedLocation: y, distance: J, ignoreLocation: V }), H <= O)) {
247
+ if (O = H, b = W, b <= y) break;
248
+ j = Math.max(1, 2 * y - b);
249
+ }
250
+ }
251
+ if (X($, { errors: M + 1, currentLocation: y, expectedLocation: y, distance: J, ignoreLocation: V }) > O) break;
252
+ G = x;
253
+ }
254
+ const ee = { isMatch: b >= 0, score: Math.max(1e-3, H) };
255
+ if (Q) {
256
+ const M = function(E = [], B = l.minMatchCharLength) {
257
+ let j = [], D = -1, x = -1, C = 0;
258
+ for (let W = E.length; C < W; C += 1) {
259
+ let P = E[C];
260
+ P && D === -1 ? D = C : P || D === -1 || (x = C - 1, x - D + 1 >= B && j.push([D, x]), D = -1);
261
+ }
262
+ return E[C - 1] && C - D >= B && j.push([D, C - 1]), j;
263
+ }(Z, he);
264
+ M.length ? ae && (ee.indices = M) : ee.isMatch = !1;
265
+ }
266
+ return ee;
267
+ }(e, A, m, { location: r + _, distance: u, threshold: h, findAllMatches: c, minMatchCharLength: a, includeMatches: n, ignoreLocation: o });
268
+ N && (g = !0), f += w, N && S && (d = [...d, ...S]);
269
+ });
270
+ let p = { isMatch: g, score: g ? f / this.chunks.length : 1 };
271
+ return g && n && (p.indices = d), p;
272
+ }
273
+ }
274
+ class I {
275
+ constructor(e) {
276
+ this.pattern = e;
277
+ }
278
+ static isMultiMatch(e) {
279
+ return ge(e, this.multiRegex);
280
+ }
281
+ static isSingleMatch(e) {
282
+ return ge(e, this.singleRegex);
283
+ }
284
+ search() {
285
+ }
286
+ }
287
+ function ge(t, e) {
288
+ const s = t.match(e);
289
+ return s ? s[1] : null;
290
+ }
291
+ class ye extends I {
292
+ constructor(e, { location: s = l.location, threshold: i = l.threshold, distance: n = l.distance, includeMatches: r = l.includeMatches, findAllMatches: u = l.findAllMatches, minMatchCharLength: h = l.minMatchCharLength, isCaseSensitive: c = l.isCaseSensitive, ignoreDiacritics: a = l.ignoreDiacritics, ignoreLocation: o = l.ignoreLocation } = {}) {
293
+ super(e), this._bitapSearch = new De(e, { location: s, threshold: i, distance: n, includeMatches: r, findAllMatches: u, minMatchCharLength: h, isCaseSensitive: c, ignoreDiacritics: a, ignoreLocation: o });
294
+ }
295
+ static get type() {
296
+ return "fuzzy";
297
+ }
298
+ static get multiRegex() {
299
+ return /^"(.*)"$/;
300
+ }
301
+ static get singleRegex() {
302
+ return /^(.*)$/;
303
+ }
304
+ search(e) {
305
+ return this._bitapSearch.searchIn(e);
306
+ }
307
+ }
308
+ class Be extends I {
309
+ constructor(e) {
310
+ super(e);
311
+ }
312
+ static get type() {
313
+ return "include";
314
+ }
315
+ static get multiRegex() {
316
+ return /^'"(.*)"$/;
317
+ }
318
+ static get singleRegex() {
319
+ return /^'(.*)$/;
320
+ }
321
+ search(e) {
322
+ let s, i = 0;
323
+ const n = [], r = this.pattern.length;
324
+ for (; (s = e.indexOf(this.pattern, i)) > -1; ) i = s + r, n.push([s, i - 1]);
325
+ const u = !!n.length;
326
+ return { isMatch: u, score: u ? 0 : 1, indices: n };
327
+ }
328
+ }
329
+ const ne = [class extends I {
330
+ constructor(t) {
331
+ super(t);
332
+ }
333
+ static get type() {
334
+ return "exact";
335
+ }
336
+ static get multiRegex() {
337
+ return /^="(.*)"$/;
338
+ }
339
+ static get singleRegex() {
340
+ return /^=(.*)$/;
341
+ }
342
+ search(t) {
343
+ const e = t === this.pattern;
344
+ return { isMatch: e, score: e ? 0 : 1, indices: [0, this.pattern.length - 1] };
345
+ }
346
+ }, Be, class extends I {
347
+ constructor(t) {
348
+ super(t);
349
+ }
350
+ static get type() {
351
+ return "prefix-exact";
352
+ }
353
+ static get multiRegex() {
354
+ return /^\^"(.*)"$/;
355
+ }
356
+ static get singleRegex() {
357
+ return /^\^(.*)$/;
358
+ }
359
+ search(t) {
360
+ const e = t.startsWith(this.pattern);
361
+ return { isMatch: e, score: e ? 0 : 1, indices: [0, this.pattern.length - 1] };
362
+ }
363
+ }, class extends I {
364
+ constructor(t) {
365
+ super(t);
366
+ }
367
+ static get type() {
368
+ return "inverse-prefix-exact";
369
+ }
370
+ static get multiRegex() {
371
+ return /^!\^"(.*)"$/;
372
+ }
373
+ static get singleRegex() {
374
+ return /^!\^(.*)$/;
375
+ }
376
+ search(t) {
377
+ const e = !t.startsWith(this.pattern);
378
+ return { isMatch: e, score: e ? 0 : 1, indices: [0, t.length - 1] };
379
+ }
380
+ }, class extends I {
381
+ constructor(t) {
382
+ super(t);
383
+ }
384
+ static get type() {
385
+ return "inverse-suffix-exact";
386
+ }
387
+ static get multiRegex() {
388
+ return /^!"(.*)"\$$/;
389
+ }
390
+ static get singleRegex() {
391
+ return /^!(.*)\$$/;
392
+ }
393
+ search(t) {
394
+ const e = !t.endsWith(this.pattern);
395
+ return { isMatch: e, score: e ? 0 : 1, indices: [0, t.length - 1] };
396
+ }
397
+ }, class extends I {
398
+ constructor(t) {
399
+ super(t);
400
+ }
401
+ static get type() {
402
+ return "suffix-exact";
403
+ }
404
+ static get multiRegex() {
405
+ return /^"(.*)"\$$/;
406
+ }
407
+ static get singleRegex() {
408
+ return /^(.*)\$$/;
409
+ }
410
+ search(t) {
411
+ const e = t.endsWith(this.pattern);
412
+ return { isMatch: e, score: e ? 0 : 1, indices: [t.length - this.pattern.length, t.length - 1] };
413
+ }
414
+ }, class extends I {
415
+ constructor(t) {
416
+ super(t);
417
+ }
418
+ static get type() {
419
+ return "inverse-exact";
420
+ }
421
+ static get multiRegex() {
422
+ return /^!"(.*)"$/;
423
+ }
424
+ static get singleRegex() {
425
+ return /^!(.*)$/;
426
+ }
427
+ search(t) {
428
+ const e = t.indexOf(this.pattern) === -1;
429
+ return { isMatch: e, score: e ? 0 : 1, indices: [0, t.length - 1] };
430
+ }
431
+ }, ye], fe = ne.length, be = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, Ne = /* @__PURE__ */ new Set([ye.type, Be.type]), re = [];
432
+ function ue(t, e) {
433
+ for (let s = 0, i = re.length; s < i; s += 1) {
434
+ let n = re[s];
435
+ if (n.condition(t, e)) return new n(t, e);
436
+ }
437
+ return new De(t, e);
438
+ }
439
+ const oe = "$and", Ae = "$path", se = (t) => !(!t[oe] && !t.$or), pe = (t) => ({ [oe]: Object.keys(t).map((e) => ({ [e]: t[e] })) });
440
+ function xe(t, e, { auto: s = !0 } = {}) {
441
+ const i = (n) => {
442
+ let r = Object.keys(n);
443
+ const u = !!n[Ae];
444
+ if (!u && r.length > 1 && !se(n)) return i(pe(n));
445
+ if (((c) => !v(c) && me(c) && !se(c))(n)) {
446
+ const c = u ? n[Ae] : r[0], a = u ? n.$val : n[c];
447
+ if (!L(a)) throw new Error(`Invalid value for key ${c}`);
448
+ const o = { keyId: ie(c), pattern: a };
449
+ return s && (o.searcher = ue(a, e)), o;
450
+ }
451
+ let h = { children: [], operator: r[0] };
452
+ return r.forEach((c) => {
453
+ const a = n[c];
454
+ v(a) && a.forEach((o) => {
455
+ h.children.push(i(o));
456
+ });
457
+ }), h;
458
+ };
459
+ return se(t) || (t = pe(t)), i(t);
460
+ }
461
+ function Re(t, e) {
462
+ const s = t.matches;
463
+ e.matches = [], F(s) && s.forEach((i) => {
464
+ if (!F(i.indices) || !i.indices.length) return;
465
+ const { indices: n, value: r } = i;
466
+ let u = { indices: n, value: r };
467
+ i.key && (u.key = i.key.src), i.idx > -1 && (u.refIndex = i.idx), e.matches.push(u);
468
+ });
469
+ }
470
+ function Oe(t, e) {
471
+ e.score = t.score;
472
+ }
473
+ class q {
474
+ constructor(e, s = {}, i) {
475
+ this.options = { ...l, ...s }, this.options.useExtendedSearch, this._keyStore = new Ie(this.options.keys), this.setCollection(e, i);
476
+ }
477
+ setCollection(e, s) {
478
+ if (this._docs = e, s && !(s instanceof ce)) throw new Error("Incorrect 'index' type");
479
+ this._myIndex = s || Ee(this.options.keys, this._docs, { getFn: this.options.getFn, fieldNormWeight: this.options.fieldNormWeight });
480
+ }
481
+ add(e) {
482
+ F(e) && (this._docs.push(e), this._myIndex.add(e));
483
+ }
484
+ remove(e = () => !1) {
485
+ const s = [];
486
+ for (let i = 0, n = this._docs.length; i < n; i += 1) {
487
+ const r = this._docs[i];
488
+ e(r, i) && (this.removeAt(i), i -= 1, n -= 1, s.push(r));
489
+ }
490
+ return s;
491
+ }
492
+ removeAt(e) {
493
+ this._docs.splice(e, 1), this._myIndex.removeAt(e);
494
+ }
495
+ getIndex() {
496
+ return this._myIndex;
497
+ }
498
+ search(e, { limit: s = -1 } = {}) {
499
+ const { includeMatches: i, includeScore: n, shouldSort: r, sortFn: u, ignoreFieldNorm: h } = this.options;
500
+ let c = L(e) ? L(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
501
+ return function(a, { ignoreFieldNorm: o = l.ignoreFieldNorm }) {
502
+ a.forEach((d) => {
503
+ let f = 1;
504
+ d.matches.forEach(({ key: g, norm: p, score: A }) => {
505
+ const m = g ? g.weight : null;
506
+ f *= Math.pow(A === 0 && m ? Number.EPSILON : A, (m || 1) * (o ? 1 : p));
507
+ }), d.score = f;
508
+ });
509
+ }(c, { ignoreFieldNorm: h }), r && c.sort(u), Ce(s) && s > -1 && (c = c.slice(0, s)), function(a, o, { includeMatches: d = l.includeMatches, includeScore: f = l.includeScore } = {}) {
510
+ const g = [];
511
+ return d && g.push(Re), f && g.push(Oe), a.map((p) => {
512
+ const { idx: A } = p, m = { item: o[A], refIndex: A };
513
+ return g.length && g.forEach((_) => {
514
+ _(p, m);
515
+ }), m;
516
+ });
517
+ }(c, this._docs, { includeMatches: i, includeScore: n });
518
+ }
519
+ _searchStringList(e) {
520
+ const s = ue(e, this.options), { records: i } = this._myIndex, n = [];
521
+ return i.forEach(({ v: r, i: u, n: h }) => {
522
+ if (!F(r)) return;
523
+ const { isMatch: c, score: a, indices: o } = s.searchIn(r);
524
+ c && n.push({ item: r, idx: u, matches: [{ score: a, value: r, norm: h, indices: o }] });
525
+ }), n;
526
+ }
527
+ _searchLogical(e) {
528
+ const s = xe(e, this.options), i = (h, c, a) => {
529
+ if (!h.children) {
530
+ const { keyId: d, searcher: f } = h, g = this._findMatches({ key: this._keyStore.get(d), value: this._myIndex.getValueForItemAtKeyId(c, d), searcher: f });
531
+ return g && g.length ? [{ idx: a, item: c, matches: g }] : [];
532
+ }
533
+ const o = [];
534
+ for (let d = 0, f = h.children.length; d < f; d += 1) {
535
+ const g = h.children[d], p = i(g, c, a);
536
+ if (p.length) o.push(...p);
537
+ else if (h.operator === oe) return [];
538
+ }
539
+ return o;
540
+ }, n = this._myIndex.records, r = {}, u = [];
541
+ return n.forEach(({ $: h, i: c }) => {
542
+ if (F(h)) {
543
+ let a = i(s, h, c);
544
+ a.length && (r[c] || (r[c] = { idx: c, item: h, matches: [] }, u.push(r[c])), a.forEach(({ matches: o }) => {
545
+ r[c].matches.push(...o);
546
+ }));
547
+ }
548
+ }), u;
549
+ }
550
+ _searchObjectList(e) {
551
+ const s = ue(e, this.options), { keys: i, records: n } = this._myIndex, r = [];
552
+ return n.forEach(({ $: u, i: h }) => {
553
+ if (!F(u)) return;
554
+ let c = [];
555
+ i.forEach((a, o) => {
556
+ c.push(...this._findMatches({ key: a, value: u[o], searcher: s }));
557
+ }), c.length && r.push({ idx: h, item: u, matches: c });
558
+ }), r;
559
+ }
560
+ _findMatches({ key: e, value: s, searcher: i }) {
561
+ if (!F(s)) return [];
562
+ let n = [];
563
+ if (v(s)) s.forEach(({ v: r, i: u, n: h }) => {
564
+ if (!F(r)) return;
565
+ const { isMatch: c, score: a, indices: o } = i.searchIn(r);
566
+ c && n.push({ score: a, key: e, value: r, idx: u, norm: h, indices: o });
567
+ });
568
+ else {
569
+ const { v: r, n: u } = s, { isMatch: h, score: c, indices: a } = i.searchIn(r);
570
+ h && n.push({ score: c, key: e, value: r, norm: u, indices: a });
571
+ }
572
+ return n;
573
+ }
574
+ }
575
+ q.version = "7.1.0", q.createIndex = Ee, q.parseIndex = function(t, { getFn: e = l.getFn, fieldNormWeight: s = l.fieldNormWeight } = {}) {
576
+ const { keys: i, records: n } = t, r = new ce({ getFn: e, fieldNormWeight: s });
577
+ return r.setKeys(i), r.setIndexRecords(n), r;
578
+ }, q.config = l, q.parseQuery = xe, function(...t) {
579
+ re.push(...t);
580
+ }(class {
581
+ constructor(t, { isCaseSensitive: e = l.isCaseSensitive, ignoreDiacritics: s = l.ignoreDiacritics, includeMatches: i = l.includeMatches, minMatchCharLength: n = l.minMatchCharLength, ignoreLocation: r = l.ignoreLocation, findAllMatches: u = l.findAllMatches, location: h = l.location, threshold: c = l.threshold, distance: a = l.distance } = {}) {
582
+ this.query = null, this.options = { isCaseSensitive: e, ignoreDiacritics: s, includeMatches: i, minMatchCharLength: n, findAllMatches: u, ignoreLocation: r, location: h, threshold: c, distance: a }, t = e ? t : t.toLowerCase(), t = s ? Y(t) : t, this.pattern = t, this.query = function(o, d = {}) {
583
+ return o.split("|").map((f) => {
584
+ let g = f.trim().split(be).filter((A) => A && !!A.trim()), p = [];
585
+ for (let A = 0, m = g.length; A < m; A += 1) {
586
+ const _ = g[A];
587
+ let N = !1, w = -1;
588
+ for (; !N && ++w < fe; ) {
589
+ const S = ne[w];
590
+ let k = S.isMultiMatch(_);
591
+ k && (p.push(new S(k, d)), N = !0);
592
+ }
593
+ if (!N) for (w = -1; ++w < fe; ) {
594
+ const S = ne[w];
595
+ let k = S.isSingleMatch(_);
596
+ if (k) {
597
+ p.push(new S(k, d));
598
+ break;
599
+ }
600
+ }
601
+ }
602
+ return p;
603
+ });
604
+ }(this.pattern, this.options);
605
+ }
606
+ static condition(t, e) {
607
+ return e.useExtendedSearch;
608
+ }
609
+ searchIn(t) {
610
+ const e = this.query;
611
+ if (!e) return { isMatch: !1, score: 1 };
612
+ const { includeMatches: s, isCaseSensitive: i, ignoreDiacritics: n } = this.options;
613
+ t = i ? t : t.toLowerCase(), t = n ? Y(t) : t;
614
+ let r = 0, u = [], h = 0;
615
+ for (let c = 0, a = e.length; c < a; c += 1) {
616
+ const o = e[c];
617
+ u.length = 0, r = 0;
618
+ for (let d = 0, f = o.length; d < f; d += 1) {
619
+ const g = o[d], { isMatch: p, indices: A, score: m } = g.search(t);
620
+ if (!p) {
621
+ h = 0, r = 0, u.length = 0;
622
+ break;
623
+ }
624
+ if (r += 1, h += m, s) {
625
+ const _ = g.constructor.type;
626
+ Ne.has(_) ? u = [...u, ...A] : u.push(A);
627
+ }
628
+ }
629
+ if (r) {
630
+ let d = { isMatch: !0, score: h / r };
631
+ return s && (d.indices = u), d;
632
+ }
633
+ }
634
+ return { isMatch: !1, score: 1 };
635
+ }
636
+ });
637
+ export {
638
+ q as default
639
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ /**
8
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
9
+ *
10
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
+ * License: The license can be found at https://www.sheetxl.com/license.
12
+ */
13
+ /**
14
+ * @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
15
+ *
16
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
17
+ * License: The license can be found at https://www.sheetxl.com/license.
18
+ */
19
+ const t = { BAHTTEXT: { s: "Converts a number to baht (Thai) text", p: { number: { d: "is the number to convert" } } } };
20
+ export {
21
+ t as default
22
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ /**
8
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
9
+ *
10
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
+ * License: The license can be found at https://www.sheetxl.com/license.
12
+ */
13
+ /**
14
+ * @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
15
+ *
16
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
17
+ * License: The license can be found at https://www.sheetxl.com/license.
18
+ */
19
+ const e = { DELAY: { s: "Returns the input value after a delay.", p: { time: { d: "the delay time in milliseconds. Default is 1000ms (1 second)." }, input: { d: "returns the input." }, label: { d: "optional label for the delay function.", v: "No label" } }, h: "Testing" }, WAIT: { s: "Starts waiting for event", p: { type: { d: "the type of message." }, input: { d: "an optional dependency." } }, h: "Testing" } };
20
+ export {
21
+ e as default
22
+ };