@sheetxl/studio-vanilla 0.4.12 → 0.4.14

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 (252) hide show
  1. package/README.md +2 -2
  2. package/browser/cjs/10IK8MFijJb-yvV6.cjs +7 -0
  3. package/browser/cjs/1bCMnueqxHW3rn0c.cjs +6 -0
  4. package/browser/cjs/AnJTeEGq7VP4T1b7.cjs +161 -0
  5. package/browser/cjs/BH3MYcOF7rxLX3Bk.cjs +15 -0
  6. package/browser/cjs/BQ4QeJYaIhLaInyR.cjs +6 -0
  7. package/browser/cjs/BU5k1OZewc-Z-kR9.cjs +6 -0
  8. package/browser/cjs/BlwK-VslgEVH2cgX.cjs +145 -0
  9. package/browser/cjs/Bm9fNNMIOLIwq-94.cjs +6 -0
  10. package/browser/cjs/BtiY-n4sGy6WaqNg.cjs +32 -0
  11. package/browser/cjs/BxgDhdrrKrJMEaXd.cjs +6 -0
  12. package/browser/cjs/BzT1y15V6Zs7c_zX.cjs +6 -0
  13. package/browser/cjs/C0ySf2emOB0Mslc-.cjs +6 -0
  14. package/browser/cjs/CE5U7gB5L-PE17gV.cjs +6 -0
  15. package/browser/cjs/CHd9vauNLHnOLflj.cjs +6 -0
  16. package/browser/cjs/CJZtyunL_qaXFylY.cjs +12 -0
  17. package/browser/cjs/CJoJ19i1z94kndlS.cjs +19 -0
  18. package/browser/cjs/CNcsGELwCAV-A5oH.cjs +16 -0
  19. package/browser/cjs/CTuM_aZX8wZICUe_.cjs +6 -0
  20. package/browser/cjs/CWW_yQpIswo7DEAT.cjs +6 -0
  21. package/browser/cjs/CXIHULOe7x4DYKXw.cjs +12 -0
  22. package/browser/cjs/CYLnJHryQcQO4XoG.cjs +6 -0
  23. package/browser/cjs/C_mbaid3FQ52usBI.cjs +6 -0
  24. package/browser/cjs/Cj_1qUo5cZ3FnOpK.cjs +6 -0
  25. package/browser/cjs/Cl0XSnWVDoaHTIlF.cjs +6 -0
  26. package/browser/cjs/CnLdhURNkVXo_0Eg.cjs +6 -0
  27. package/browser/cjs/CpIIsygD5mnJyl47.cjs +1501 -0
  28. package/browser/cjs/CpRfx14is2_4Wgp3.cjs +6 -0
  29. package/browser/cjs/Cuq8Nim-ol5Gdehe.cjs +6 -0
  30. package/browser/cjs/D4NcrJlqcLExwCNT.cjs +124 -0
  31. package/browser/cjs/D4vbOk4hD8-b-c10.cjs +6 -0
  32. package/browser/cjs/D5YUIQeOcujtq6XS.cjs +7 -0
  33. package/browser/cjs/D6uIvR-6Y690_Em2.cjs +11 -0
  34. package/browser/cjs/DAbScbuk-sjZXMIC.cjs +11 -0
  35. package/browser/cjs/DBNXGIWfZmgb_sHL.cjs +6 -0
  36. package/browser/cjs/DCd5OZXj2IRbxEF2.cjs +6 -0
  37. package/browser/cjs/DFNisISrsMnZrV4B.cjs +6 -0
  38. package/browser/cjs/DIYOARVcGtRjKpjZ.cjs +6 -0
  39. package/browser/cjs/DL4HgriZ3TY2K-QP.cjs +6 -0
  40. package/browser/cjs/DPbzY4ppgKPrdbWc.cjs +6 -0
  41. package/browser/cjs/DQGdVVTxixgptLdj.cjs +366 -0
  42. package/browser/cjs/DWzQm8Q32qNP7qKL.cjs +6 -0
  43. package/browser/cjs/D_7RtbQABH1zdcjr.cjs +7 -0
  44. package/browser/cjs/D_Q0s9KLnWHwKxTK.cjs +6 -0
  45. package/browser/cjs/DdTcwutSPJMeCIv3.cjs +6 -0
  46. package/browser/cjs/DlnKrZRyxBfbqaTi.cjs +13 -0
  47. package/browser/cjs/DtpB0PMEtamaB-Hv.cjs +6 -0
  48. package/browser/cjs/Dv8SE05ABKNLPY6A.cjs +6 -0
  49. package/browser/cjs/DxBLU16_E62Umowp.cjs +6 -0
  50. package/browser/cjs/VU_KaqGTjvnisS9e.cjs +6 -0
  51. package/browser/cjs/bS_BOH9cvVCFy36v.cjs +6 -0
  52. package/browser/cjs/dbUUj8LyIitsdYpk.cjs +6 -0
  53. package/browser/cjs/eZGLUWbfY3JdZRM5.cjs +6 -0
  54. package/browser/cjs/index.cjs +3 -4
  55. package/browser/cjs/mBk4Z4LZ65b3f58_.cjs +6 -0
  56. package/browser/cjs/rIOsSIPwxoXlIawS.cjs +6 -0
  57. package/browser/cjs/sMBG5eQ3-iacLXUm.cjs +6 -0
  58. package/browser/cjs/tShlMZrIxsGZSeHX.cjs +42 -0
  59. package/browser/cjs/xDqIifM_--oXscCV.cjs +6 -0
  60. package/browser/cjs/yBSdtSSuNERefFhR.cjs +15 -0
  61. package/browser/esm/4eRu4yzXkvCBip8J.mjs +10 -0
  62. package/browser/esm/73gcCsbqgbW3KIoA.mjs +1346 -0
  63. package/browser/esm/B383N9irNfyfYC2l.mjs +20 -0
  64. package/browser/esm/B4ji-HZTY0uvH8r7.mjs +10 -0
  65. package/browser/esm/B8TNpfJ8ymQcPriE.mjs +24 -0
  66. package/{cdn/assets/CiY3HumGDc_5bMtR.js → browser/esm/BBDu-GNDE7ZA-1sJ.mjs} +15 -17
  67. package/browser/esm/BF5nlSYZ38RJ0dPX.mjs +10 -0
  68. package/browser/esm/BHy77Km4i4t5U7ka.mjs +10 -0
  69. package/browser/esm/BIUVt79NHXdZx2Dz.mjs +10 -0
  70. package/browser/esm/BP6hA-zc0dMuMOIA.mjs +3755 -0
  71. package/browser/esm/BPen6C7JE2sWVgdi.mjs +10 -0
  72. package/browser/esm/BUqd1uVUNoWmepd2.mjs +148 -0
  73. package/browser/esm/BXABqQEa6kQQcjmt.mjs +820 -0
  74. package/browser/esm/BZxAttR2mi9td3k1.mjs +10 -0
  75. package/browser/esm/B_pEA9HeXKvEOCdS.mjs +10 -0
  76. package/browser/esm/BbW_1O3cEhZ4aSgS.mjs +55785 -0
  77. package/browser/esm/BdFNxdtES-3_yQ9R.mjs +421 -0
  78. package/browser/esm/BfFDvyaRcdKS0wPD.mjs +10 -0
  79. package/browser/esm/Bqqcb80cNalBs-sB.mjs +939 -0
  80. package/browser/esm/BrEcIDq0-c5AiQEf.mjs +21 -0
  81. package/browser/esm/BvYUsRgBXLSuaQ-S.mjs +10 -0
  82. package/browser/esm/BzE-61bmpRQzEVPt.mjs +10 -0
  83. package/browser/esm/C28AZ0Rwo79iGg0v.mjs +13208 -0
  84. package/browser/esm/C5GgK_mW25DZYw-I.mjs +2344 -0
  85. package/{cdn/assets/CfObTzh8pGdd8D23.js → browser/esm/CHjb5a2xwEWs4RgS.mjs} +505 -513
  86. package/browser/esm/CITPwlsNzJvv551I.mjs +10 -0
  87. package/browser/esm/CJiHNujoVUdO_G7X.mjs +46 -0
  88. package/browser/esm/CN73n4VDayKh_l1J.mjs +10 -0
  89. package/browser/esm/CcARDY0PFSWkqsG9.mjs +21 -0
  90. package/browser/esm/CeF0ZRfeSy83i80_.mjs +1575 -0
  91. package/browser/esm/Cmtx4dAVZrwq5cVO.mjs +10 -0
  92. package/browser/esm/Crza3kRJdEVylOfk.mjs +29 -0
  93. package/browser/esm/D3L89e08b7ewR6mt.mjs +21 -0
  94. package/browser/esm/D4G17ip9xxOX5jDd.mjs +3934 -0
  95. package/browser/esm/D9eVsUckA6bWBHni.mjs +10 -0
  96. package/browser/esm/DAscSzG63-mM5p50.mjs +41 -0
  97. package/browser/esm/DCyJNVtrh6kEt73Q.mjs +84 -0
  98. package/{cdn/assets/DWJE3K3jMKMTCi3o.js → browser/esm/DFwxjsVr4xKLPTGf.mjs} +65 -68
  99. package/browser/esm/DHPHhaCxihdR9Hl6.mjs +10 -0
  100. package/browser/esm/DKbJ-iVPuUbr3iZ_.mjs +47 -0
  101. package/browser/esm/DQLk_UmdpJBt-zZi.mjs +5582 -0
  102. package/browser/esm/DR7oVoNSe0FFWHOr.mjs +48 -0
  103. package/browser/esm/DVRMAeHUj0-TY-vK.mjs +10 -0
  104. package/browser/esm/DXIWAG-DUKHzNlRl.mjs +12 -0
  105. package/browser/esm/DbZJQpjZJIcz2ypV.mjs +39 -0
  106. package/browser/esm/Dft4BSeY0bp0A6z0.mjs +10 -0
  107. package/browser/esm/DgO85Q5iHe-ZmvtQ.mjs +633 -0
  108. package/browser/esm/DwRHGEuscm3FvnkM.mjs +1665 -0
  109. package/browser/esm/HyTvrvH0vItPFnFG.mjs +472 -0
  110. package/{cdn/assets/DgLPO_EQ9DYoGgec.js → browser/esm/Pkb6GWdyZdze_XAw.mjs} +174 -172
  111. package/browser/esm/QZikWr_NQfcFWCBV.mjs +44 -0
  112. package/browser/esm/aLv-xujBO4X6ilhV.mjs +10 -0
  113. package/{cdn/assets/DJQOS9qxVAlpgDMt.js → browser/esm/c9fba0RuWGogsH0X.mjs} +21 -23
  114. package/browser/esm/index.mjs +6 -2
  115. package/browser/esm/jkSJc6Omxbf-rPQY.mjs +10 -0
  116. package/browser/esm/uuCmCmYQQXgwyRSd.mjs +10 -0
  117. package/browser/esm/w3TGaFTjdsc4XTcz.mjs +1466 -0
  118. package/browser/esm/wV8riZWKJE7AoKQk.mjs +1365 -0
  119. package/browser/esm/wxvli1IH1NkfqE6-.mjs +10 -0
  120. package/cdn/assets/0fI22OQK5IczUH6s.js +29 -0
  121. package/cdn/assets/4eRu4yzXkvCBip8J.js +10 -0
  122. package/cdn/assets/5HYy7pIZxQRDUQl-.js +50 -0
  123. package/cdn/assets/6oc_f4xkoSmftsRd.js +22 -0
  124. package/cdn/assets/73gcCsbqgbW3KIoA.js +1346 -0
  125. package/cdn/assets/B3TPDOzYf_VRBIr6.js +2177 -0
  126. package/cdn/assets/B4HW_cy7gbE01jar.js +390 -0
  127. package/cdn/assets/B4ji-HZTY0uvH8r7.js +10 -0
  128. package/cdn/assets/B7Ky6m4VWP8vxhPt.js +1702 -0
  129. package/cdn/assets/B8TNpfJ8ymQcPriE.js +24 -0
  130. package/cdn/assets/BEfetwH6zTr6B51I.js +3755 -0
  131. package/cdn/assets/BF5nlSYZ38RJ0dPX.js +10 -0
  132. package/cdn/assets/BHy77Km4i4t5U7ka.js +10 -0
  133. package/cdn/assets/BIUVt79NHXdZx2Dz.js +10 -0
  134. package/cdn/assets/BPen6C7JE2sWVgdi.js +10 -0
  135. package/cdn/assets/BS1p7DgoyO-WkvB8.js +41 -0
  136. package/cdn/assets/BZxAttR2mi9td3k1.js +10 -0
  137. package/cdn/assets/B_pEA9HeXKvEOCdS.js +10 -0
  138. package/cdn/assets/BdFNxdtES-3_yQ9R.js +421 -0
  139. package/cdn/assets/BfFDvyaRcdKS0wPD.js +10 -0
  140. package/cdn/assets/{phYz0vGgqIEQ2hco.js → BiKaXKU3o287mgkN.js} +1 -1
  141. package/cdn/assets/BvYUsRgBXLSuaQ-S.js +10 -0
  142. package/cdn/assets/BzE-61bmpRQzEVPt.js +10 -0
  143. package/cdn/assets/C0yI-QYraFhnJUdD.js +49 -0
  144. package/cdn/assets/C28AZ0Rwo79iGg0v.js +13208 -0
  145. package/cdn/assets/{qA23x9VVBL9R4qxN.js → C3FTuqvfGalOVHql.js} +9 -9
  146. package/cdn/assets/{BSAH88RG1oubICau.js → C3W0xsNrt-Was9g-.js} +26 -26
  147. package/cdn/assets/C8rQWD8C7ccUHNZL.js +3934 -0
  148. package/cdn/assets/CITPwlsNzJvv551I.js +10 -0
  149. package/cdn/assets/CN73n4VDayKh_l1J.js +10 -0
  150. package/cdn/assets/CWkF-50YF43t7qge.js +472 -0
  151. package/cdn/assets/{Bv0Xb6DdcQbPYJKo.js → CaKPs_ILqLIWfUUN.js} +10 -11
  152. package/cdn/assets/CcARDY0PFSWkqsG9.js +21 -0
  153. package/cdn/assets/Cdx6LrqtHZKbwl63.js +425 -0
  154. package/cdn/assets/ChB-XZno7w9v221u.js +1575 -0
  155. package/cdn/assets/CkY7wM_4OGwZvJ4f.js +942 -0
  156. package/cdn/assets/Cmtx4dAVZrwq5cVO.js +10 -0
  157. package/cdn/assets/{dk2teWHDODYNarJY.js → CrBywNOOyPHSBoTT.js} +4 -4
  158. package/cdn/assets/D9eVsUckA6bWBHni.js +10 -0
  159. package/cdn/assets/DBpku3D2DSTmW4II.js +820 -0
  160. package/cdn/assets/DEOxG6u6itV8bGym.js +2346 -0
  161. package/cdn/assets/DHPHhaCxihdR9Hl6.js +10 -0
  162. package/cdn/assets/DMWARnjq06oQnfrL.js +58 -0
  163. package/cdn/assets/{BoOefjrM4kZ-YXxa.js → DRa6yXWuTlAjuaKT.js} +2 -2
  164. package/cdn/assets/DVRMAeHUj0-TY-vK.js +10 -0
  165. package/cdn/assets/DXIWAG-DUKHzNlRl.js +12 -0
  166. package/cdn/assets/{B3kbBB6oxKBErwzn.js → DYowHOSLHcADsXuK.js} +3 -3
  167. package/cdn/assets/{DkS6quwH1okWaho6.js → DZNoPrlxULASVlOi.js} +14 -14
  168. package/cdn/assets/{BB66NDz7S3ocEfRB.js → DaUJajqmQYuM0Gew.js} +51 -51
  169. package/cdn/assets/DcdQwhlGoI1knRUy.js +46 -0
  170. package/cdn/assets/Dft4BSeY0bp0A6z0.js +10 -0
  171. package/cdn/assets/DgO85Q5iHe-ZmvtQ.js +633 -0
  172. package/cdn/assets/{DDW1WJ2IM_9ZUfKm.js → Dm0hrXCbV7DITOhi.js} +2 -2
  173. package/cdn/assets/DnWjhq4ZlgIuFcii.js +21 -0
  174. package/cdn/assets/DwRHGEuscm3FvnkM.js +1665 -0
  175. package/cdn/assets/{BT5EcMEFBsphczwC.js → DzyNujjbHLXo9UmH.js} +565 -568
  176. package/cdn/assets/EYTSqAG9YOdb1vKx.js +48823 -0
  177. package/cdn/assets/{D_5RgqgwXsoqLJDR.js → Ux2jUY_EwSsYBCov.js} +1 -1
  178. package/cdn/assets/{DfmaL8DmDaFAv8M_.js → XoKiuP2ZFq0cNGkH.js} +4 -4
  179. package/cdn/assets/Zi3E5Kzxw2FPtLVL.js +5582 -0
  180. package/cdn/assets/aLv-xujBO4X6ilhV.js +10 -0
  181. package/cdn/assets/jkSJc6Omxbf-rPQY.js +10 -0
  182. package/cdn/assets/uuCmCmYQQXgwyRSd.js +10 -0
  183. package/cdn/assets/wV8riZWKJE7AoKQk.js +1365 -0
  184. package/cdn/assets/wxvli1IH1NkfqE6-.js +10 -0
  185. package/cdn/index.js +2 -2
  186. package/cdn/loader.js +1 -1
  187. package/package.json +3 -5
  188. package/types/index.d.ts +1 -0
  189. package/browser/cjs/B35OZ0mE8aINQPP9.cjs +0 -7
  190. package/browser/cjs/BPzEQNENF-gEBkg9.cjs +0 -7
  191. package/browser/cjs/BUokV6yuzE-_8MyK.cjs +0 -7
  192. package/browser/cjs/BeZHmOKfa37mFNAu.cjs +0 -7
  193. package/browser/cjs/BflJ_0gT9lQtDvY_.cjs +0 -7
  194. package/browser/cjs/BwN8vKi5o3-PbIMo.cjs +0 -7
  195. package/browser/cjs/C3OizZPVuxO2fjSG.cjs +0 -7
  196. package/browser/cjs/CBL6KkiWI2RPflEN.cjs +0 -7
  197. package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +0 -7
  198. package/browser/cjs/CTrEV_UpxC0W6cZZ.cjs +0 -7
  199. package/browser/cjs/CU30GVjjFXl44vEU.cjs +0 -7
  200. package/browser/cjs/CZWBxvUXzfpn_zmc.cjs +0 -7
  201. package/browser/cjs/Ccs2ouvlLekaLGH0.cjs +0 -7
  202. package/browser/cjs/Ce-8L4Viq3I_6j0i.cjs +0 -7
  203. package/browser/cjs/CtNjLzIHB8WX63Bl.cjs +0 -7
  204. package/browser/cjs/DAHpsyykuPBkoh-Z.cjs +0 -7
  205. package/browser/cjs/DJbKKxeeTEHHA1gR.cjs +0 -107
  206. package/browser/cjs/D_VQzwC1zzTJyKtG.cjs +0 -7
  207. package/browser/cjs/GrsZZ_mEdsM5dEMA.cjs +0 -7
  208. package/browser/cjs/JKEGlXjMwGnXk_Gv.cjs +0 -7
  209. package/browser/cjs/L1iE_VcelYZIy0wI.cjs +0 -7
  210. package/browser/cjs/Q_VvA-yUQx3xFKiJ.cjs +0 -7
  211. package/browser/cjs/fTGpiXzFm3K_u2Fm.cjs +0 -7
  212. package/browser/cjs/hwDUzorB6aCvH1eL.cjs +0 -7
  213. package/browser/cjs/no5c2H18QD2qmOH6.cjs +0 -7
  214. package/browser/esm/B4Mm5gczpI_k2zzN.mjs +0 -7
  215. package/browser/esm/B8ISUdOxsJMYWzNN.mjs +0 -7
  216. package/browser/esm/BnJiF38TGudjoHzT.mjs +0 -7
  217. package/browser/esm/Bts4nCgfCAUpTfxz.mjs +0 -7
  218. package/browser/esm/C3cyAbIH8Qc8MIFN.mjs +0 -107
  219. package/browser/esm/C4jlaVv8bELgiHyE.mjs +0 -7
  220. package/browser/esm/CYIhGb86r-kKOrP5.mjs +0 -7
  221. package/browser/esm/CcpskguvlvemArQn.mjs +0 -7
  222. package/browser/esm/CeRfALx1iU5fqOUg.mjs +0 -7
  223. package/browser/esm/CfYWmP_Hots5f0f6.mjs +0 -7
  224. package/browser/esm/CkarbqNx_lhlBnw7.mjs +0 -7
  225. package/browser/esm/D2PlWNQjrTgf6GuR.mjs +0 -7
  226. package/browser/esm/D3KNxvnrwR6_fTJE.mjs +0 -7
  227. package/browser/esm/DIJyH94oCzUnlcNZ.mjs +0 -7
  228. package/browser/esm/DVAG1NxFe3cMjLE1.mjs +0 -7
  229. package/browser/esm/DVqga7g7j0FUiM6p.mjs +0 -7
  230. package/browser/esm/DcX8yGEBX6qi9RCe.mjs +0 -7
  231. package/browser/esm/DeXfOSxGE_Ez7DZq.mjs +0 -7
  232. package/browser/esm/DzgM_rkwyIHsCb6I.mjs +0 -7
  233. package/browser/esm/M4hZ25330e96seUM.mjs +0 -7
  234. package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +0 -7
  235. package/browser/esm/SAyRTPVprOHZ8Up8.mjs +0 -7
  236. package/browser/esm/_ft7JYO6QdDbIu3d.mjs +0 -7
  237. package/browser/esm/dpdy0BU4GGI5lZrX.mjs +0 -7
  238. package/browser/esm/oLCocGFRAwsVsOSE.mjs +0 -7
  239. package/cdn/assets/7_O6nILzn1fSVvkO.js +0 -13449
  240. package/cdn/assets/BCK7yhx9JfzU2rF0.js +0 -22
  241. package/cdn/assets/BcWoqhD_sX85c7Mh.js +0 -1701
  242. package/cdn/assets/BtweFYnoj_aEfydW.js +0 -1371
  243. package/cdn/assets/CC-S4NMYhLg3WgqO.js +0 -3875
  244. package/cdn/assets/CJhyHcQcrhbtC33r.js +0 -50
  245. package/cdn/assets/CUc6gRjjRGTFWSHD.js +0 -50
  246. package/cdn/assets/CpPLN0-hDsTIFHZV.js +0 -46
  247. package/cdn/assets/Cq94woVmlxhjWVRI.js +0 -21
  248. package/cdn/assets/CsjftXmSYQRHNKdq.js +0 -41
  249. package/cdn/assets/DBL4jY0AVc53RGNm.js +0 -637
  250. package/cdn/assets/DxMu6URURFWj9aXM.js +0 -2373
  251. package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +0 -26490
  252. package/cdn/assets/MRBi3juXAW0lA_mj.js +0 -1358
@@ -0,0 +1,633 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
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
+ function v(t) {
8
+ return Array.isArray ? Array.isArray(t) : Fe(t) === "[object Array]";
9
+ }
10
+ function L(t) {
11
+ return typeof t == "string";
12
+ }
13
+ function Ce(t) {
14
+ return typeof t == "number";
15
+ }
16
+ function me(t) {
17
+ return typeof t == "object";
18
+ }
19
+ function F(t) {
20
+ return t != null;
21
+ }
22
+ function te(t) {
23
+ return !t.trim().length;
24
+ }
25
+ function Fe(t) {
26
+ return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(t);
27
+ }
28
+ const le = Object.prototype.hasOwnProperty;
29
+ class Ie {
30
+ constructor(e) {
31
+ this._keys = [], this._keyMap = {};
32
+ let s = 0;
33
+ e.forEach((i) => {
34
+ let n = Me(i);
35
+ this._keys.push(n), this._keyMap[n.id] = n, s += n.weight;
36
+ }), this._keys.forEach((i) => {
37
+ i.weight /= s;
38
+ });
39
+ }
40
+ get(e) {
41
+ return this._keyMap[e];
42
+ }
43
+ keys() {
44
+ return this._keys;
45
+ }
46
+ toJSON() {
47
+ return JSON.stringify(this._keys);
48
+ }
49
+ }
50
+ function Me(t) {
51
+ let e = null, s = null, i = null, n = 1, r = null;
52
+ if (L(t) || v(t)) i = t, e = de(t), s = ie(t);
53
+ else {
54
+ if (!le.call(t, "name")) throw new Error("Missing name property in key");
55
+ const u = t.name;
56
+ 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`);
57
+ e = de(u), s = ie(u), r = t.getFn;
58
+ }
59
+ return { path: e, id: s, weight: n, src: i, getFn: r };
60
+ }
61
+ function de(t) {
62
+ return v(t) ? t : t.split(".");
63
+ }
64
+ function ie(t) {
65
+ return v(t) ? t.join(".") : t;
66
+ }
67
+ 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) {
68
+ let s = [], i = !1;
69
+ const n = (r, u, h) => {
70
+ if (F(r)) if (u[h]) {
71
+ const a = r[u[h]];
72
+ if (!F(a)) return;
73
+ if (h === u.length - 1 && (L(a) || Ce(a) || function(o) {
74
+ return o === !0 || o === !1 || me(d = o) && d !== null && Fe(o) == "[object Boolean]";
75
+ var d;
76
+ }(a))) s.push((c = a) == null ? "" : function(o) {
77
+ if (typeof o == "string") return o;
78
+ let d = o + "";
79
+ return d == "0" && 1 / o == -1 / 0 ? "-0" : d;
80
+ }(c));
81
+ else if (v(a)) {
82
+ i = !0;
83
+ for (let o = 0, d = a.length; o < d; o += 1) n(a[o], u, h + 1);
84
+ } else u.length && n(a, u, h + 1);
85
+ } else s.push(r);
86
+ var c;
87
+ };
88
+ return n(t, L(e) ? e.split(".") : e, 0), i ? s : s[0];
89
+ }, ignoreLocation: !1, ignoreFieldNorm: !1, fieldNormWeight: 1 };
90
+ const we = /[^ ]+/g;
91
+ class ce {
92
+ constructor({ getFn: e = l.getFn, fieldNormWeight: s = l.fieldNormWeight } = {}) {
93
+ this.norm = function(i = 1, n = 3) {
94
+ const r = /* @__PURE__ */ new Map(), u = Math.pow(10, n);
95
+ return { get(h) {
96
+ const c = h.match(we).length;
97
+ if (r.has(c)) return r.get(c);
98
+ const a = 1 / Math.pow(c, 0.5 * i), o = parseFloat(Math.round(a * u) / u);
99
+ return r.set(c, o), o;
100
+ }, clear() {
101
+ r.clear();
102
+ } };
103
+ }(s, 3), this.getFn = e, this.isCreated = !1, this.setIndexRecords();
104
+ }
105
+ setSources(e = []) {
106
+ this.docs = e;
107
+ }
108
+ setIndexRecords(e = []) {
109
+ this.records = e;
110
+ }
111
+ setKeys(e = []) {
112
+ this.keys = e, this._keysMap = {}, e.forEach((s, i) => {
113
+ this._keysMap[s.id] = i;
114
+ });
115
+ }
116
+ create() {
117
+ !this.isCreated && this.docs.length && (this.isCreated = !0, L(this.docs[0]) ? this.docs.forEach((e, s) => {
118
+ this._addString(e, s);
119
+ }) : this.docs.forEach((e, s) => {
120
+ this._addObject(e, s);
121
+ }), this.norm.clear());
122
+ }
123
+ add(e) {
124
+ const s = this.size();
125
+ L(e) ? this._addString(e, s) : this._addObject(e, s);
126
+ }
127
+ removeAt(e) {
128
+ this.records.splice(e, 1);
129
+ for (let s = e, i = this.size(); s < i; s += 1) this.records[s].i -= 1;
130
+ }
131
+ getValueForItemAtKeyId(e, s) {
132
+ return e[this._keysMap[s]];
133
+ }
134
+ size() {
135
+ return this.records.length;
136
+ }
137
+ _addString(e, s) {
138
+ if (!F(e) || te(e)) return;
139
+ let i = { v: e, i: s, n: this.norm.get(e) };
140
+ this.records.push(i);
141
+ }
142
+ _addObject(e, s) {
143
+ let i = { i: s, $: {} };
144
+ this.keys.forEach((n, r) => {
145
+ let u = n.getFn ? n.getFn(e) : this.getFn(e, n.path);
146
+ if (F(u)) {
147
+ if (v(u)) {
148
+ let h = [];
149
+ const c = [{ nestedArrIndex: -1, value: u }];
150
+ for (; c.length; ) {
151
+ const { nestedArrIndex: a, value: o } = c.pop();
152
+ if (F(o)) if (L(o) && !te(o)) {
153
+ let d = { v: o, i: a, n: this.norm.get(o) };
154
+ h.push(d);
155
+ } else v(o) && o.forEach((d, f) => {
156
+ c.push({ nestedArrIndex: f, value: d });
157
+ });
158
+ }
159
+ i.$[r] = h;
160
+ } else if (L(u) && !te(u)) {
161
+ let h = { v: u, n: this.norm.get(u) };
162
+ i.$[r] = h;
163
+ }
164
+ }
165
+ }), this.records.push(i);
166
+ }
167
+ toJSON() {
168
+ return { keys: this.keys, records: this.records };
169
+ }
170
+ }
171
+ function Ee(t, e, { getFn: s = l.getFn, fieldNormWeight: i = l.fieldNormWeight } = {}) {
172
+ const n = new ce({ getFn: s, fieldNormWeight: i });
173
+ return n.setKeys(t.map(Me)), n.setSources(e), n.create(), n;
174
+ }
175
+ function X(t, { errors: e = 0, currentLocation: s = 0, expectedLocation: i = 0, distance: n = l.distance, ignoreLocation: r = l.ignoreLocation } = {}) {
176
+ const u = e / t.length;
177
+ if (r) return u;
178
+ const h = Math.abs(i - s);
179
+ return n ? u + h / n : h ? 1 : u;
180
+ }
181
+ const z = 32;
182
+ function $e(t) {
183
+ let e = {};
184
+ for (let s = 0, i = t.length; s < i; s += 1) {
185
+ const n = t.charAt(s);
186
+ e[n] = (e[n] || 0) | 1 << i - s - 1;
187
+ }
188
+ return e;
189
+ }
190
+ 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;
191
+ class De {
192
+ 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 } = {}) {
193
+ 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;
194
+ const d = (g, p) => {
195
+ this.chunks.push({ pattern: g, alphabet: $e(g), startIndex: p });
196
+ }, f = this.pattern.length;
197
+ if (f > z) {
198
+ let g = 0;
199
+ const p = f % z, A = f - p;
200
+ for (; g < A; ) d(this.pattern.substr(g, z), g), g += z;
201
+ if (p) {
202
+ const m = f - z;
203
+ d(this.pattern.substr(m), m);
204
+ }
205
+ } else d(this.pattern, 0);
206
+ }
207
+ searchIn(e) {
208
+ const { isCaseSensitive: s, ignoreDiacritics: i, includeMatches: n } = this.options;
209
+ if (e = s ? e : e.toLowerCase(), e = i ? Y(e) : e, this.pattern === e) {
210
+ let A = { isMatch: !0, score: 0 };
211
+ return n && (A.indices = [[0, e.length - 1]]), A;
212
+ }
213
+ const { location: r, distance: u, threshold: h, findAllMatches: c, minMatchCharLength: a, ignoreLocation: o } = this.options;
214
+ let d = [], f = 0, g = !1;
215
+ this.chunks.forEach(({ pattern: A, alphabet: m, startIndex: _ }) => {
216
+ 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 } = {}) {
217
+ if ($.length > z) throw new Error("Pattern length exceeds max of 32.");
218
+ const R = $.length, K = k.length, y = Math.max(0, Math.min(ke, K));
219
+ let O = ve, b = y;
220
+ const Q = he > 1 || ae, Z = Q ? Array(K) : [];
221
+ let U;
222
+ for (; (U = k.indexOf($, b)) > -1; ) {
223
+ let M = X($, { currentLocation: U, expectedLocation: y, distance: J, ignoreLocation: V });
224
+ if (O = Math.min(M, O), b = U + R, Q) {
225
+ let E = 0;
226
+ for (; E < R; ) Z[U + E] = 1, E += 1;
227
+ }
228
+ }
229
+ b = -1;
230
+ let G = [], H = 1, T = R + K;
231
+ const Se = 1 << R - 1;
232
+ for (let M = 0; M < R; M += 1) {
233
+ let E = 0, B = T;
234
+ 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);
235
+ T = B;
236
+ let j = Math.max(1, y - B + 1), D = _e ? K : Math.min(y + B, K) + R, x = Array(D + 2);
237
+ x[D + 1] = (1 << M) - 1;
238
+ for (let C = D; C >= j; C -= 1) {
239
+ let W = C - 1, P = Le[k.charAt(W)];
240
+ 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)) {
241
+ if (O = H, b = W, b <= y) break;
242
+ j = Math.max(1, 2 * y - b);
243
+ }
244
+ }
245
+ if (X($, { errors: M + 1, currentLocation: y, expectedLocation: y, distance: J, ignoreLocation: V }) > O) break;
246
+ G = x;
247
+ }
248
+ const ee = { isMatch: b >= 0, score: Math.max(1e-3, H) };
249
+ if (Q) {
250
+ const M = function(E = [], B = l.minMatchCharLength) {
251
+ let j = [], D = -1, x = -1, C = 0;
252
+ for (let W = E.length; C < W; C += 1) {
253
+ let P = E[C];
254
+ P && D === -1 ? D = C : P || D === -1 || (x = C - 1, x - D + 1 >= B && j.push([D, x]), D = -1);
255
+ }
256
+ return E[C - 1] && C - D >= B && j.push([D, C - 1]), j;
257
+ }(Z, he);
258
+ M.length ? ae && (ee.indices = M) : ee.isMatch = !1;
259
+ }
260
+ return ee;
261
+ }(e, A, m, { location: r + _, distance: u, threshold: h, findAllMatches: c, minMatchCharLength: a, includeMatches: n, ignoreLocation: o });
262
+ N && (g = !0), f += w, N && S && (d = [...d, ...S]);
263
+ });
264
+ let p = { isMatch: g, score: g ? f / this.chunks.length : 1 };
265
+ return g && n && (p.indices = d), p;
266
+ }
267
+ }
268
+ class I {
269
+ constructor(e) {
270
+ this.pattern = e;
271
+ }
272
+ static isMultiMatch(e) {
273
+ return ge(e, this.multiRegex);
274
+ }
275
+ static isSingleMatch(e) {
276
+ return ge(e, this.singleRegex);
277
+ }
278
+ search() {
279
+ }
280
+ }
281
+ function ge(t, e) {
282
+ const s = t.match(e);
283
+ return s ? s[1] : null;
284
+ }
285
+ class ye extends I {
286
+ 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 } = {}) {
287
+ 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 });
288
+ }
289
+ static get type() {
290
+ return "fuzzy";
291
+ }
292
+ static get multiRegex() {
293
+ return /^"(.*)"$/;
294
+ }
295
+ static get singleRegex() {
296
+ return /^(.*)$/;
297
+ }
298
+ search(e) {
299
+ return this._bitapSearch.searchIn(e);
300
+ }
301
+ }
302
+ class Be extends I {
303
+ constructor(e) {
304
+ super(e);
305
+ }
306
+ static get type() {
307
+ return "include";
308
+ }
309
+ static get multiRegex() {
310
+ return /^'"(.*)"$/;
311
+ }
312
+ static get singleRegex() {
313
+ return /^'(.*)$/;
314
+ }
315
+ search(e) {
316
+ let s, i = 0;
317
+ const n = [], r = this.pattern.length;
318
+ for (; (s = e.indexOf(this.pattern, i)) > -1; ) i = s + r, n.push([s, i - 1]);
319
+ const u = !!n.length;
320
+ return { isMatch: u, score: u ? 0 : 1, indices: n };
321
+ }
322
+ }
323
+ const ne = [class extends I {
324
+ constructor(t) {
325
+ super(t);
326
+ }
327
+ static get type() {
328
+ return "exact";
329
+ }
330
+ static get multiRegex() {
331
+ return /^="(.*)"$/;
332
+ }
333
+ static get singleRegex() {
334
+ return /^=(.*)$/;
335
+ }
336
+ search(t) {
337
+ const e = t === this.pattern;
338
+ return { isMatch: e, score: e ? 0 : 1, indices: [0, this.pattern.length - 1] };
339
+ }
340
+ }, Be, class extends I {
341
+ constructor(t) {
342
+ super(t);
343
+ }
344
+ static get type() {
345
+ return "prefix-exact";
346
+ }
347
+ static get multiRegex() {
348
+ return /^\^"(.*)"$/;
349
+ }
350
+ static get singleRegex() {
351
+ return /^\^(.*)$/;
352
+ }
353
+ search(t) {
354
+ const e = t.startsWith(this.pattern);
355
+ return { isMatch: e, score: e ? 0 : 1, indices: [0, this.pattern.length - 1] };
356
+ }
357
+ }, class extends I {
358
+ constructor(t) {
359
+ super(t);
360
+ }
361
+ static get type() {
362
+ return "inverse-prefix-exact";
363
+ }
364
+ static get multiRegex() {
365
+ return /^!\^"(.*)"$/;
366
+ }
367
+ static get singleRegex() {
368
+ return /^!\^(.*)$/;
369
+ }
370
+ search(t) {
371
+ const e = !t.startsWith(this.pattern);
372
+ return { isMatch: e, score: e ? 0 : 1, indices: [0, t.length - 1] };
373
+ }
374
+ }, class extends I {
375
+ constructor(t) {
376
+ super(t);
377
+ }
378
+ static get type() {
379
+ return "inverse-suffix-exact";
380
+ }
381
+ static get multiRegex() {
382
+ return /^!"(.*)"\$$/;
383
+ }
384
+ static get singleRegex() {
385
+ return /^!(.*)\$$/;
386
+ }
387
+ search(t) {
388
+ const e = !t.endsWith(this.pattern);
389
+ return { isMatch: e, score: e ? 0 : 1, indices: [0, t.length - 1] };
390
+ }
391
+ }, class extends I {
392
+ constructor(t) {
393
+ super(t);
394
+ }
395
+ static get type() {
396
+ return "suffix-exact";
397
+ }
398
+ static get multiRegex() {
399
+ return /^"(.*)"\$$/;
400
+ }
401
+ static get singleRegex() {
402
+ return /^(.*)\$$/;
403
+ }
404
+ search(t) {
405
+ const e = t.endsWith(this.pattern);
406
+ return { isMatch: e, score: e ? 0 : 1, indices: [t.length - this.pattern.length, t.length - 1] };
407
+ }
408
+ }, class extends I {
409
+ constructor(t) {
410
+ super(t);
411
+ }
412
+ static get type() {
413
+ return "inverse-exact";
414
+ }
415
+ static get multiRegex() {
416
+ return /^!"(.*)"$/;
417
+ }
418
+ static get singleRegex() {
419
+ return /^!(.*)$/;
420
+ }
421
+ search(t) {
422
+ const e = t.indexOf(this.pattern) === -1;
423
+ return { isMatch: e, score: e ? 0 : 1, indices: [0, t.length - 1] };
424
+ }
425
+ }, ye], fe = ne.length, be = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, Ne = /* @__PURE__ */ new Set([ye.type, Be.type]), re = [];
426
+ function ue(t, e) {
427
+ for (let s = 0, i = re.length; s < i; s += 1) {
428
+ let n = re[s];
429
+ if (n.condition(t, e)) return new n(t, e);
430
+ }
431
+ return new De(t, e);
432
+ }
433
+ const oe = "$and", Ae = "$path", se = (t) => !(!t[oe] && !t.$or), pe = (t) => ({ [oe]: Object.keys(t).map((e) => ({ [e]: t[e] })) });
434
+ function xe(t, e, { auto: s = !0 } = {}) {
435
+ const i = (n) => {
436
+ let r = Object.keys(n);
437
+ const u = !!n[Ae];
438
+ if (!u && r.length > 1 && !se(n)) return i(pe(n));
439
+ if (((c) => !v(c) && me(c) && !se(c))(n)) {
440
+ const c = u ? n[Ae] : r[0], a = u ? n.$val : n[c];
441
+ if (!L(a)) throw new Error(`Invalid value for key ${c}`);
442
+ const o = { keyId: ie(c), pattern: a };
443
+ return s && (o.searcher = ue(a, e)), o;
444
+ }
445
+ let h = { children: [], operator: r[0] };
446
+ return r.forEach((c) => {
447
+ const a = n[c];
448
+ v(a) && a.forEach((o) => {
449
+ h.children.push(i(o));
450
+ });
451
+ }), h;
452
+ };
453
+ return se(t) || (t = pe(t)), i(t);
454
+ }
455
+ function Re(t, e) {
456
+ const s = t.matches;
457
+ e.matches = [], F(s) && s.forEach((i) => {
458
+ if (!F(i.indices) || !i.indices.length) return;
459
+ const { indices: n, value: r } = i;
460
+ let u = { indices: n, value: r };
461
+ i.key && (u.key = i.key.src), i.idx > -1 && (u.refIndex = i.idx), e.matches.push(u);
462
+ });
463
+ }
464
+ function Oe(t, e) {
465
+ e.score = t.score;
466
+ }
467
+ class q {
468
+ constructor(e, s = {}, i) {
469
+ this.options = { ...l, ...s }, this.options.useExtendedSearch, this._keyStore = new Ie(this.options.keys), this.setCollection(e, i);
470
+ }
471
+ setCollection(e, s) {
472
+ if (this._docs = e, s && !(s instanceof ce)) throw new Error("Incorrect 'index' type");
473
+ this._myIndex = s || Ee(this.options.keys, this._docs, { getFn: this.options.getFn, fieldNormWeight: this.options.fieldNormWeight });
474
+ }
475
+ add(e) {
476
+ F(e) && (this._docs.push(e), this._myIndex.add(e));
477
+ }
478
+ remove(e = () => !1) {
479
+ const s = [];
480
+ for (let i = 0, n = this._docs.length; i < n; i += 1) {
481
+ const r = this._docs[i];
482
+ e(r, i) && (this.removeAt(i), i -= 1, n -= 1, s.push(r));
483
+ }
484
+ return s;
485
+ }
486
+ removeAt(e) {
487
+ this._docs.splice(e, 1), this._myIndex.removeAt(e);
488
+ }
489
+ getIndex() {
490
+ return this._myIndex;
491
+ }
492
+ search(e, { limit: s = -1 } = {}) {
493
+ const { includeMatches: i, includeScore: n, shouldSort: r, sortFn: u, ignoreFieldNorm: h } = this.options;
494
+ let c = L(e) ? L(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
495
+ return function(a, { ignoreFieldNorm: o = l.ignoreFieldNorm }) {
496
+ a.forEach((d) => {
497
+ let f = 1;
498
+ d.matches.forEach(({ key: g, norm: p, score: A }) => {
499
+ const m = g ? g.weight : null;
500
+ f *= Math.pow(A === 0 && m ? Number.EPSILON : A, (m || 1) * (o ? 1 : p));
501
+ }), d.score = f;
502
+ });
503
+ }(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 } = {}) {
504
+ const g = [];
505
+ return d && g.push(Re), f && g.push(Oe), a.map((p) => {
506
+ const { idx: A } = p, m = { item: o[A], refIndex: A };
507
+ return g.length && g.forEach((_) => {
508
+ _(p, m);
509
+ }), m;
510
+ });
511
+ }(c, this._docs, { includeMatches: i, includeScore: n });
512
+ }
513
+ _searchStringList(e) {
514
+ const s = ue(e, this.options), { records: i } = this._myIndex, n = [];
515
+ return i.forEach(({ v: r, i: u, n: h }) => {
516
+ if (!F(r)) return;
517
+ const { isMatch: c, score: a, indices: o } = s.searchIn(r);
518
+ c && n.push({ item: r, idx: u, matches: [{ score: a, value: r, norm: h, indices: o }] });
519
+ }), n;
520
+ }
521
+ _searchLogical(e) {
522
+ const s = xe(e, this.options), i = (h, c, a) => {
523
+ if (!h.children) {
524
+ const { keyId: d, searcher: f } = h, g = this._findMatches({ key: this._keyStore.get(d), value: this._myIndex.getValueForItemAtKeyId(c, d), searcher: f });
525
+ return g && g.length ? [{ idx: a, item: c, matches: g }] : [];
526
+ }
527
+ const o = [];
528
+ for (let d = 0, f = h.children.length; d < f; d += 1) {
529
+ const g = h.children[d], p = i(g, c, a);
530
+ if (p.length) o.push(...p);
531
+ else if (h.operator === oe) return [];
532
+ }
533
+ return o;
534
+ }, n = this._myIndex.records, r = {}, u = [];
535
+ return n.forEach(({ $: h, i: c }) => {
536
+ if (F(h)) {
537
+ let a = i(s, h, c);
538
+ a.length && (r[c] || (r[c] = { idx: c, item: h, matches: [] }, u.push(r[c])), a.forEach(({ matches: o }) => {
539
+ r[c].matches.push(...o);
540
+ }));
541
+ }
542
+ }), u;
543
+ }
544
+ _searchObjectList(e) {
545
+ const s = ue(e, this.options), { keys: i, records: n } = this._myIndex, r = [];
546
+ return n.forEach(({ $: u, i: h }) => {
547
+ if (!F(u)) return;
548
+ let c = [];
549
+ i.forEach((a, o) => {
550
+ c.push(...this._findMatches({ key: a, value: u[o], searcher: s }));
551
+ }), c.length && r.push({ idx: h, item: u, matches: c });
552
+ }), r;
553
+ }
554
+ _findMatches({ key: e, value: s, searcher: i }) {
555
+ if (!F(s)) return [];
556
+ let n = [];
557
+ if (v(s)) s.forEach(({ v: r, i: u, n: h }) => {
558
+ if (!F(r)) return;
559
+ const { isMatch: c, score: a, indices: o } = i.searchIn(r);
560
+ c && n.push({ score: a, key: e, value: r, idx: u, norm: h, indices: o });
561
+ });
562
+ else {
563
+ const { v: r, n: u } = s, { isMatch: h, score: c, indices: a } = i.searchIn(r);
564
+ h && n.push({ score: c, key: e, value: r, norm: u, indices: a });
565
+ }
566
+ return n;
567
+ }
568
+ }
569
+ q.version = "7.1.0", q.createIndex = Ee, q.parseIndex = function(t, { getFn: e = l.getFn, fieldNormWeight: s = l.fieldNormWeight } = {}) {
570
+ const { keys: i, records: n } = t, r = new ce({ getFn: e, fieldNormWeight: s });
571
+ return r.setKeys(i), r.setIndexRecords(n), r;
572
+ }, q.config = l, q.parseQuery = xe, function(...t) {
573
+ re.push(...t);
574
+ }(class {
575
+ 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 } = {}) {
576
+ 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 = {}) {
577
+ return o.split("|").map((f) => {
578
+ let g = f.trim().split(be).filter((A) => A && !!A.trim()), p = [];
579
+ for (let A = 0, m = g.length; A < m; A += 1) {
580
+ const _ = g[A];
581
+ let N = !1, w = -1;
582
+ for (; !N && ++w < fe; ) {
583
+ const S = ne[w];
584
+ let k = S.isMultiMatch(_);
585
+ k && (p.push(new S(k, d)), N = !0);
586
+ }
587
+ if (!N) for (w = -1; ++w < fe; ) {
588
+ const S = ne[w];
589
+ let k = S.isSingleMatch(_);
590
+ if (k) {
591
+ p.push(new S(k, d));
592
+ break;
593
+ }
594
+ }
595
+ }
596
+ return p;
597
+ });
598
+ }(this.pattern, this.options);
599
+ }
600
+ static condition(t, e) {
601
+ return e.useExtendedSearch;
602
+ }
603
+ searchIn(t) {
604
+ const e = this.query;
605
+ if (!e) return { isMatch: !1, score: 1 };
606
+ const { includeMatches: s, isCaseSensitive: i, ignoreDiacritics: n } = this.options;
607
+ t = i ? t : t.toLowerCase(), t = n ? Y(t) : t;
608
+ let r = 0, u = [], h = 0;
609
+ for (let c = 0, a = e.length; c < a; c += 1) {
610
+ const o = e[c];
611
+ u.length = 0, r = 0;
612
+ for (let d = 0, f = o.length; d < f; d += 1) {
613
+ const g = o[d], { isMatch: p, indices: A, score: m } = g.search(t);
614
+ if (!p) {
615
+ h = 0, r = 0, u.length = 0;
616
+ break;
617
+ }
618
+ if (r += 1, h += m, s) {
619
+ const _ = g.constructor.type;
620
+ Ne.has(_) ? u = [...u, ...A] : u.push(A);
621
+ }
622
+ }
623
+ if (r) {
624
+ let d = { isMatch: !0, score: h / r };
625
+ return s && (d.indices = u), d;
626
+ }
627
+ }
628
+ return { isMatch: !1, score: 1 };
629
+ }
630
+ });
631
+ export {
632
+ q as default
633
+ };
@@ -1,6 +1,6 @@
1
- import { g as c } from "./phYz0vGgqIEQ2hco.js";
1
+ import { g as c } from "./BiKaXKU3o287mgkN.js";
2
2
  /**
3
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
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
+ let a = null;
8
+ const m = { reactUrl: "https://esm.sh/react@19.1.0", reactJsxTransform: "https://esm.sh/react@19.1.0/jsx-runtime", reactDomUrl: "https://esm.sh/react-dom@19.1.0", reactDomUrlClient: "https://esm.sh/react-dom@19.1.0/client" }, i = (e) => (e = { ...e, ...m }, a || (a = (async () => {
9
+ const c = e.reactUrl, s = e.reactDomUrl, n = e.reactDomUrlClient, o = e.reactJsxTransform;
10
+ if (document.querySelector('script[type="importmap"]')) console.warn("SheetXL: Import map already exists. Skipping injection.");
11
+ else {
12
+ const t = document.createElement("script");
13
+ t.type = "importmap", t.textContent = JSON.stringify({ imports: { react: c, "react/jsx-runtime": o, "react-dom": s, "react-dom/client": n } }), document.head.appendChild(t);
14
+ }
15
+ await new Promise((t) => setTimeout(t, 0));
16
+ const r = await Promise.all([import("./CrBywNOOyPHSBoTT.js").then((t) => t.R), import("./Dm0hrXCbV7DITOhi.js").then((t) => t.j), import("./DYowHOSLHcADsXuK.js").then((t) => t.i), import("./XoKiuP2ZFq0cNGkH.js").then((t) => t.c), import("./EYTSqAG9YOdb1vKx.js").then((t) => t.bH)]);
17
+ return { React: r[0], ReactJSXTransform: r[1], ReactDOM: r[2], ReactDOMClient: r[3], StudioMUI: r[4] };
18
+ })(), a));
19
+ export {
20
+ i as resolveDependencies
21
+ };