@kdcloudjs/shoelace 1.0.3 → 1.0.5

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 (1379) hide show
  1. package/cdn/chunks/chunk.226T3KTA.js +11 -0
  2. package/cdn/chunks/chunk.2DGU6Y27.js +21 -0
  3. package/cdn/chunks/chunk.2GVHUW5C.js +11 -0
  4. package/cdn/chunks/chunk.2IVRNFRU.js +73 -0
  5. package/cdn/chunks/chunk.2NICGF3O.js +95 -0
  6. package/cdn/chunks/chunk.2PQBFMVP.js +28 -0
  7. package/cdn/chunks/chunk.2WNUV5PI.js +93 -0
  8. package/cdn/chunks/chunk.33CUA3Z2.js +120 -0
  9. package/cdn/chunks/chunk.3FDM5EJN.js +11 -0
  10. package/cdn/chunks/chunk.3FTYT6PZ.js +123 -0
  11. package/cdn/chunks/chunk.3NKDIRL6.js +21 -0
  12. package/cdn/chunks/chunk.3QFHTQZY.js +67 -0
  13. package/cdn/chunks/chunk.43VCZTB6.js +11 -0
  14. package/cdn/chunks/chunk.46H5FPXZ.js +75 -0
  15. package/cdn/chunks/chunk.475SOJAO.js +28 -0
  16. package/cdn/chunks/chunk.4IV4JJVG.js +26 -0
  17. package/cdn/chunks/chunk.4RQ3KDVR.js +28 -0
  18. package/cdn/chunks/chunk.4RX7LNWR.js +109 -0
  19. package/cdn/chunks/chunk.553HB2GN.js +29 -0
  20. package/cdn/chunks/chunk.5H2ATT4X.js +21 -0
  21. package/cdn/chunks/chunk.5I6XJ74U.js +21 -0
  22. package/cdn/chunks/chunk.5MR54PKJ.js +24 -0
  23. package/cdn/chunks/chunk.64CWFKX3.js +11 -0
  24. package/cdn/chunks/chunk.6JBPST77.js +336 -0
  25. package/cdn/chunks/chunk.6KS5NQNM.js +29 -0
  26. package/cdn/chunks/chunk.6KYZXY5D.js +11 -0
  27. package/cdn/chunks/chunk.6L47H33F.js +11 -0
  28. package/cdn/chunks/chunk.6NUFJ66T.js +11 -0
  29. package/cdn/chunks/chunk.6O3UE2MV.js +11 -0
  30. package/cdn/chunks/chunk.6ULP6XQ6.js +24 -0
  31. package/cdn/chunks/chunk.6WZ27344.js +142 -0
  32. package/cdn/chunks/chunk.6X6VGRFE.js +24 -0
  33. package/cdn/chunks/chunk.6Y76RBIV.js +11 -0
  34. package/cdn/chunks/chunk.72345564.js +25 -0
  35. package/cdn/chunks/chunk.7BFOUTZ5.js +25 -0
  36. package/cdn/chunks/chunk.7BNY7LJ7.js +90 -0
  37. package/cdn/chunks/chunk.7CQPG7JP.js +220 -0
  38. package/cdn/chunks/chunk.A575VBPW.js +11 -0
  39. package/cdn/chunks/chunk.ABKNVEIF.js +11 -0
  40. package/cdn/chunks/chunk.AFUGLO2J.js +82 -0
  41. package/cdn/chunks/chunk.AQLXVLLC.js +11 -0
  42. package/cdn/chunks/chunk.ARSOELAS.js +11 -0
  43. package/cdn/chunks/chunk.ASARZEQG.js +21 -0
  44. package/cdn/chunks/chunk.ASV42T2E.js +21 -0
  45. package/cdn/chunks/chunk.BAZGISYP.js +299 -0
  46. package/cdn/chunks/chunk.BM5X26KE.js +24 -0
  47. package/cdn/chunks/chunk.BOPYDZIV.js +817 -0
  48. package/cdn/chunks/chunk.BUGT6WF5.js +11 -0
  49. package/cdn/chunks/chunk.C56DLDQB.js +21 -0
  50. package/cdn/chunks/chunk.CEVCAMWX.js +11 -0
  51. package/cdn/chunks/chunk.CIJTQGA5.js +11 -0
  52. package/cdn/chunks/chunk.CNR4MZDJ.js +586 -0
  53. package/cdn/chunks/chunk.COGWDYK3.js +11 -0
  54. package/cdn/chunks/chunk.D63BQQF6.js +24 -0
  55. package/cdn/chunks/chunk.DDHL2VIZ.js +25 -0
  56. package/cdn/chunks/chunk.DERRIHEG.js +5845 -0
  57. package/cdn/chunks/chunk.DJQWYL6A.js +11 -0
  58. package/cdn/chunks/chunk.DOGMVRYQ.js +229 -0
  59. package/cdn/chunks/chunk.E3A2ZV4G.js +21 -0
  60. package/cdn/chunks/chunk.EFC4MFY2.js +24 -0
  61. package/cdn/chunks/chunk.EGE4VSGA.js +27 -0
  62. package/cdn/chunks/chunk.ERTNALQU.js +24 -0
  63. package/cdn/chunks/chunk.EYS73RDP.js +11 -0
  64. package/cdn/chunks/chunk.F26NBLPK.js +11 -0
  65. package/cdn/chunks/chunk.F5POJMOI.js +219 -0
  66. package/cdn/chunks/chunk.F6LKCVG2.js +137 -0
  67. package/cdn/chunks/chunk.FPVK7RSX.js +339 -0
  68. package/cdn/chunks/chunk.FSV4LJQO.js +24 -0
  69. package/cdn/chunks/chunk.FTBOPGL6.js +21 -0
  70. package/cdn/chunks/chunk.FW34JSGH.js +455 -0
  71. package/cdn/chunks/chunk.FWKBZNS6.js +97 -0
  72. package/cdn/chunks/chunk.G4N7MPWJ.js +25 -0
  73. package/cdn/chunks/chunk.G5DMMRUQ.js +119 -0
  74. package/cdn/chunks/chunk.GDIVSQS2.js +28 -0
  75. package/cdn/chunks/chunk.GIZEACAX.js +24 -0
  76. package/cdn/chunks/chunk.GKHDQHEH.js +267 -0
  77. package/cdn/chunks/chunk.GLIQM2OA.js +724 -0
  78. package/cdn/chunks/chunk.GQ5VEYP3.js +11 -0
  79. package/cdn/chunks/chunk.GTZHZDWI.js +11 -0
  80. package/cdn/chunks/chunk.GWE4YVV4.js +27 -0
  81. package/cdn/chunks/chunk.GX3PJHPQ.js +27 -0
  82. package/cdn/chunks/chunk.GXM67UX2.js +25 -0
  83. package/cdn/chunks/chunk.GY4NOO2A.js +153 -0
  84. package/cdn/chunks/chunk.H6GAZZO4.js +21 -0
  85. package/cdn/chunks/chunk.HCUTIIMI.js +113 -0
  86. package/cdn/chunks/chunk.HD65V4AX.js +47 -0
  87. package/cdn/chunks/chunk.HFHP3OIG.js +122 -0
  88. package/cdn/chunks/chunk.HNGGWFL2.js +49 -0
  89. package/cdn/chunks/chunk.HTQR4NGP.js +292 -0
  90. package/cdn/chunks/chunk.HUD34TPG.js +11 -0
  91. package/cdn/chunks/chunk.IFJ5H35Z.js +11 -0
  92. package/cdn/chunks/chunk.IOAAX734.js +25 -0
  93. package/cdn/chunks/chunk.ITDOZG3Q.js +361 -0
  94. package/cdn/chunks/chunk.IUAQGFOT.js +21 -0
  95. package/cdn/chunks/chunk.J5AFRKIT.js +367 -0
  96. package/cdn/chunks/chunk.JBNPTXYA.js +25 -0
  97. package/cdn/chunks/chunk.JGLKPOL4.js +114 -0
  98. package/cdn/chunks/chunk.JKGKU3IG.js +1990 -0
  99. package/cdn/chunks/chunk.JLXJFBOW.js +63 -0
  100. package/cdn/chunks/chunk.JPQ7TJYO.js +11 -0
  101. package/cdn/chunks/chunk.JTVBQZV5.js +11 -0
  102. package/cdn/chunks/chunk.JWBQN7MN.js +27 -0
  103. package/cdn/chunks/chunk.JXV7EZNU.js +178 -0
  104. package/cdn/chunks/chunk.JYWV2VVH.js +11 -0
  105. package/cdn/chunks/chunk.KBZBPAOP.js +26 -0
  106. package/cdn/chunks/chunk.KJXKQ54G.js +21 -0
  107. package/cdn/chunks/chunk.KLX4IP5J.js +11 -0
  108. package/cdn/chunks/chunk.KN75WBDH.js +402 -0
  109. package/cdn/chunks/chunk.KQQL7WQY.js +11 -0
  110. package/cdn/chunks/chunk.KTXLNPQ6.js +24 -0
  111. package/cdn/chunks/chunk.KUKUZPGL.js +21 -0
  112. package/cdn/chunks/chunk.KY7LF3V3.js +502 -0
  113. package/cdn/chunks/chunk.L4BE2QNU.js +29 -0
  114. package/cdn/chunks/chunk.LOQ5FMU6.js +36 -0
  115. package/cdn/chunks/chunk.LPQUE2WM.js +25 -0
  116. package/cdn/chunks/chunk.LQZ32GYA.js +266 -0
  117. package/cdn/chunks/chunk.LWJ3GKZI.js +379 -0
  118. package/cdn/chunks/chunk.LZDMFQGK.js +54 -0
  119. package/cdn/chunks/chunk.M5INIPKU.js +291 -0
  120. package/cdn/chunks/chunk.MFK75WAB.js +54 -0
  121. package/cdn/chunks/chunk.MGP3LEMO.js +25 -0
  122. package/cdn/chunks/chunk.MJUBQQBQ.js +26 -0
  123. package/cdn/chunks/chunk.MPLIQ3WA.js +11 -0
  124. package/cdn/chunks/chunk.MREPXRCZ.js +11 -0
  125. package/cdn/chunks/chunk.MT7WQZWH.js +11 -0
  126. package/cdn/chunks/chunk.MWYQUTWB.js +11 -0
  127. package/cdn/chunks/chunk.N6RSK3EY.js +11 -0
  128. package/cdn/chunks/chunk.NEL7CTKW.js +21 -0
  129. package/cdn/chunks/chunk.NGCZYV5C.js +11 -0
  130. package/cdn/chunks/chunk.NQ56SMBO.js +279 -0
  131. package/cdn/chunks/chunk.O33LJU47.js +177 -0
  132. package/cdn/chunks/chunk.OEOW5UZD.js +21 -0
  133. package/cdn/chunks/chunk.OJPX6I37.js +207 -0
  134. package/cdn/chunks/chunk.OK3SB6ZB.js +314 -0
  135. package/cdn/chunks/chunk.OPV4LWDL.js +302 -0
  136. package/cdn/chunks/chunk.OTLZF5DH.js +11 -0
  137. package/cdn/chunks/chunk.OTSYJSEU.js +233 -0
  138. package/cdn/chunks/chunk.PL7KMLQ5.js +29 -0
  139. package/cdn/chunks/chunk.PN4AG6RW.js +11 -0
  140. package/cdn/chunks/chunk.POBIFRTY.js +21 -0
  141. package/cdn/chunks/chunk.PQSBGFTM.js +79 -0
  142. package/cdn/chunks/chunk.PR7QMODJ.js +127 -0
  143. package/cdn/chunks/chunk.PY47Y45M.js +113 -0
  144. package/cdn/chunks/chunk.Q2WKF37T.js +186 -0
  145. package/cdn/chunks/chunk.Q5EBCTBC.js +27 -0
  146. package/cdn/chunks/chunk.Q6AXCRB3.js +24 -0
  147. package/cdn/chunks/chunk.QG3X6VAB.js +822 -0
  148. package/cdn/chunks/chunk.QGNFY5NC.js +27 -0
  149. package/cdn/chunks/chunk.QNRJMDRA.js +11 -0
  150. package/cdn/chunks/chunk.R56TYG7R.js +11 -0
  151. package/cdn/chunks/chunk.RBCHRWN2.js +103 -0
  152. package/cdn/chunks/chunk.RKWWWPJC.js +11 -0
  153. package/cdn/chunks/chunk.ROISDRBM.js +11 -0
  154. package/cdn/chunks/chunk.RRXHKTD4.js +21 -0
  155. package/cdn/chunks/chunk.RS262J54.js +24 -0
  156. package/cdn/chunks/chunk.SB5BNQR5.js +11 -0
  157. package/cdn/chunks/chunk.SI4YNAF2.js +49 -0
  158. package/cdn/chunks/chunk.SLYUWDE3.js +11 -0
  159. package/cdn/chunks/chunk.SMQ67RFH.js +42 -0
  160. package/cdn/chunks/chunk.SZ5QS6YA.js +11 -0
  161. package/cdn/chunks/chunk.T6RRSS3U.js +11 -0
  162. package/cdn/chunks/chunk.TKIO6ZIC.js +158 -0
  163. package/cdn/chunks/chunk.TL4WWCFB.js +493 -0
  164. package/cdn/chunks/chunk.TW4PTR4O.js +21 -0
  165. package/cdn/chunks/chunk.UA52MTA3.js +28 -0
  166. package/cdn/chunks/chunk.UCZMPMGN.js +77 -0
  167. package/cdn/chunks/chunk.UE43G6PJ.js +11 -0
  168. package/cdn/chunks/chunk.UFCDAF3K.js +11 -0
  169. package/cdn/chunks/chunk.UHRXTAZG.js +11 -0
  170. package/cdn/chunks/chunk.UJMSXTUB.js +298 -0
  171. package/cdn/chunks/chunk.ULGJX5ZV.js +346 -0
  172. package/cdn/chunks/chunk.UQK47RV6.js +11 -0
  173. package/cdn/chunks/chunk.UU26NWDB.js +11 -0
  174. package/cdn/chunks/chunk.UW2DE4F7.js +391 -0
  175. package/cdn/chunks/chunk.UYIZRRAW.js +11 -0
  176. package/cdn/chunks/chunk.UYKFHTN3.js +24 -0
  177. package/cdn/chunks/chunk.VHT6PNRV.js +25 -0
  178. package/cdn/chunks/chunk.VK7KEYIH.js +2982 -0
  179. package/cdn/chunks/chunk.VS3FP5QV.js +197 -0
  180. package/cdn/chunks/chunk.VS72WUWL.js +11 -0
  181. package/cdn/chunks/chunk.VTEA642B.js +11 -0
  182. package/cdn/chunks/chunk.W2ZFZ3PK.js +6096 -0
  183. package/cdn/chunks/chunk.WG5WKVPM.js +1879 -0
  184. package/cdn/chunks/chunk.WGYBEN3X.js +21 -0
  185. package/cdn/chunks/chunk.WIAYOMS5.js +11 -0
  186. package/cdn/chunks/chunk.WIJ23EA7.js +33 -0
  187. package/cdn/chunks/chunk.WL7GHA3M.js +114 -0
  188. package/cdn/chunks/chunk.WNSXI66D.js +29 -0
  189. package/cdn/chunks/chunk.WOQ7VOEH.js +28 -0
  190. package/cdn/chunks/chunk.WXCYAWJR.js +11 -0
  191. package/cdn/chunks/chunk.WXY6OB2C.js +87 -0
  192. package/cdn/chunks/chunk.X474KPYJ.js +21 -0
  193. package/cdn/chunks/chunk.X6WBXER6.js +11 -0
  194. package/cdn/chunks/chunk.XEJS7JGV.js +21 -0
  195. package/cdn/chunks/chunk.XENA47OC.js +118 -0
  196. package/cdn/chunks/chunk.XKEKLRMP.js +21 -0
  197. package/cdn/chunks/chunk.XNXLF5U6.js +11 -0
  198. package/cdn/chunks/chunk.XOJPAR6O.js +153 -0
  199. package/cdn/chunks/chunk.XPNYVKK5.js +11 -0
  200. package/cdn/chunks/chunk.XRHJO57O.js +216 -0
  201. package/cdn/chunks/chunk.YATLV4PE.js +135 -0
  202. package/cdn/chunks/chunk.YVUNU7A4.js +24 -0
  203. package/cdn/chunks/chunk.YXHVEJHY.js +255 -0
  204. package/cdn/chunks/chunk.ZEWT5A7Z.js +11 -0
  205. package/cdn/chunks/chunk.ZIZOKZBM.js +375 -0
  206. package/cdn/chunks/chunk.ZKTKNHGV.js +236 -0
  207. package/cdn/chunks/chunk.ZUZCTPFU.js +21 -0
  208. package/cdn/chunks/chunk.ZVF3XIXB.js +50 -0
  209. package/cdn/chunks/chunk.ZYKYPBZK.js +21 -0
  210. package/cdn/components/alert/alert.component.js +6 -7
  211. package/cdn/components/alert/alert.js +7 -8
  212. package/cdn/components/animated-image/animated-image.component.js +3 -4
  213. package/cdn/components/animated-image/animated-image.js +4 -5
  214. package/cdn/components/animation/animation.component.js +2 -3
  215. package/cdn/components/animation/animation.js +3 -4
  216. package/cdn/components/avatar/avatar.component.js +3 -4
  217. package/cdn/components/avatar/avatar.js +4 -5
  218. package/cdn/components/badge/badge.component.js +2 -3
  219. package/cdn/components/badge/badge.js +3 -4
  220. package/cdn/components/breadcrumb/breadcrumb.component.js +3 -4
  221. package/cdn/components/breadcrumb/breadcrumb.js +4 -5
  222. package/cdn/components/breadcrumb-item/breadcrumb-item.component.js +2 -3
  223. package/cdn/components/breadcrumb-item/breadcrumb-item.js +3 -4
  224. package/cdn/components/button/button.component.js +6 -7
  225. package/cdn/components/button/button.js +7 -8
  226. package/cdn/components/button-group/button-group.component.js +2 -3
  227. package/cdn/components/button-group/button-group.js +3 -4
  228. package/cdn/components/calendar/calendar.component.js +9 -10
  229. package/cdn/components/calendar/calendar.js +9 -10
  230. package/cdn/components/card/card.component.js +2 -3
  231. package/cdn/components/card/card.js +3 -4
  232. package/cdn/components/carousel/carousel.component.js +3 -4
  233. package/cdn/components/carousel/carousel.js +4 -5
  234. package/cdn/components/carousel-item/carousel-item.component.js +2 -3
  235. package/cdn/components/carousel-item/carousel-item.js +3 -4
  236. package/cdn/components/checkbox/checkbox.component.js +3 -4
  237. package/cdn/components/checkbox/checkbox.js +4 -5
  238. package/cdn/components/color-picker/color-picker.component.js +13 -14
  239. package/cdn/components/color-picker/color-picker.js +14 -15
  240. package/cdn/components/copy-button/copy-button.component.js +5 -6
  241. package/cdn/components/copy-button/copy-button.js +6 -7
  242. package/cdn/components/date-panel/date-panel.component.js +47 -0
  243. package/cdn/components/date-panel/date-panel.js +51 -0
  244. package/cdn/components/date-panel/date-panel.styles.js +8 -0
  245. package/cdn/components/datepicker/datepicker.component.js +26 -13
  246. package/cdn/components/datepicker/datepicker.js +26 -13
  247. package/cdn/components/details/details.component.js +3 -4
  248. package/cdn/components/details/details.js +4 -5
  249. package/cdn/components/dialog/dialog.component.js +6 -7
  250. package/cdn/components/dialog/dialog.js +7 -8
  251. package/cdn/components/divider/divider.component.js +2 -3
  252. package/cdn/components/divider/divider.js +3 -4
  253. package/cdn/components/drawer/drawer.component.js +7 -8
  254. package/cdn/components/drawer/drawer.js +8 -9
  255. package/cdn/components/dropdown/dropdown.component.js +5 -6
  256. package/cdn/components/dropdown/dropdown.js +6 -7
  257. package/cdn/components/format-bytes/format-bytes.component.js +2 -3
  258. package/cdn/components/format-bytes/format-bytes.js +3 -4
  259. package/cdn/components/format-date/format-date.component.js +2 -3
  260. package/cdn/components/format-date/format-date.js +3 -4
  261. package/cdn/components/format-number/format-number.component.js +2 -3
  262. package/cdn/components/format-number/format-number.js +3 -4
  263. package/cdn/components/icon/icon.component.js +2 -3
  264. package/cdn/components/icon/icon.js +3 -4
  265. package/cdn/components/icon-button/icon-button.component.js +3 -4
  266. package/cdn/components/icon-button/icon-button.js +4 -5
  267. package/cdn/components/image-comparer/image-comparer.component.js +3 -4
  268. package/cdn/components/image-comparer/image-comparer.js +4 -5
  269. package/cdn/components/include/include.component.js +2 -3
  270. package/cdn/components/include/include.js +3 -4
  271. package/cdn/components/input/input.component.js +5 -6
  272. package/cdn/components/input/input.js +6 -7
  273. package/cdn/components/menu/menu.component.js +3 -4
  274. package/cdn/components/menu/menu.js +4 -5
  275. package/cdn/components/menu/menu.styles.js +1 -1
  276. package/cdn/components/menu-item/menu-item.component.js +7 -8
  277. package/cdn/components/menu-item/menu-item.js +8 -9
  278. package/cdn/components/menu-item/menu-item.styles.js +1 -1
  279. package/cdn/components/menu-label/menu-label.component.js +2 -3
  280. package/cdn/components/menu-label/menu-label.js +3 -4
  281. package/cdn/components/mutation-observer/mutation-observer.component.js +2 -3
  282. package/cdn/components/mutation-observer/mutation-observer.js +3 -4
  283. package/cdn/components/option/option.component.js +4 -5
  284. package/cdn/components/option/option.js +5 -6
  285. package/cdn/components/option/option.styles.js +1 -1
  286. package/cdn/components/pagination/custom-select.js +18 -2
  287. package/cdn/components/pagination/pagination.component.js +19 -6
  288. package/cdn/components/pagination/pagination.js +19 -6
  289. package/cdn/components/pagination/pagination.styles.js +1 -1
  290. package/cdn/components/popup/popup.component.js +2 -3
  291. package/cdn/components/popup/popup.js +3 -4
  292. package/cdn/components/progress-bar/progress-bar.component.js +3 -4
  293. package/cdn/components/progress-bar/progress-bar.js +4 -5
  294. package/cdn/components/progress-ring/progress-ring.component.js +2 -3
  295. package/cdn/components/progress-ring/progress-ring.js +3 -4
  296. package/cdn/components/qr-code/qr-code.component.js +2 -3
  297. package/cdn/components/qr-code/qr-code.js +3 -4
  298. package/cdn/components/radio/radio.component.js +3 -4
  299. package/cdn/components/radio/radio.js +4 -5
  300. package/cdn/components/radio-button/radio-button.component.js +2 -3
  301. package/cdn/components/radio-button/radio-button.js +3 -4
  302. package/cdn/components/radio-group/radio-group.component.js +3 -4
  303. package/cdn/components/radio-group/radio-group.js +4 -5
  304. package/cdn/components/range/range.component.js +4 -5
  305. package/cdn/components/range/range.js +5 -6
  306. package/cdn/components/rating/rating.component.js +3 -4
  307. package/cdn/components/rating/rating.js +4 -5
  308. package/cdn/components/relative-time/relative-time.component.js +2 -3
  309. package/cdn/components/relative-time/relative-time.js +3 -4
  310. package/cdn/components/resize-observer/resize-observer.component.js +2 -3
  311. package/cdn/components/resize-observer/resize-observer.js +3 -4
  312. package/cdn/components/screen/screen.component.js +2 -3
  313. package/cdn/components/screen/screen.js +3 -4
  314. package/cdn/components/select/select.component.js +9 -10
  315. package/cdn/components/select/select.js +10 -11
  316. package/cdn/components/select/select.styles.js +1 -1
  317. package/cdn/components/skeleton/skeleton.component.js +2 -3
  318. package/cdn/components/skeleton/skeleton.js +3 -4
  319. package/cdn/components/spinner/spinner.component.js +2 -3
  320. package/cdn/components/spinner/spinner.js +3 -4
  321. package/cdn/components/split-panel/split-panel.component.js +3 -4
  322. package/cdn/components/split-panel/split-panel.js +4 -5
  323. package/cdn/components/switch/switch.component.js +2 -3
  324. package/cdn/components/switch/switch.js +3 -4
  325. package/cdn/components/tab/tab.component.js +5 -6
  326. package/cdn/components/tab/tab.js +6 -7
  327. package/cdn/components/tab-group/tab-group.component.js +6 -7
  328. package/cdn/components/tab-group/tab-group.js +7 -8
  329. package/cdn/components/tab-panel/tab-panel.component.js +2 -3
  330. package/cdn/components/tab-panel/tab-panel.js +3 -4
  331. package/cdn/components/table/body-table.js +7 -7
  332. package/cdn/components/table/col-group.js +2 -2
  333. package/cdn/components/table/features/index.js +2 -2
  334. package/cdn/components/table/features/row-expend.js +9 -0
  335. package/cdn/components/table/features/row-selection.js +2 -2
  336. package/cdn/components/table/head-table.js +26 -27
  337. package/cdn/components/table/spinner-container.js +2 -3
  338. package/cdn/components/table/table.component.js +34 -34
  339. package/cdn/components/table/table.js +35 -35
  340. package/cdn/components/table/utils.js +1 -1
  341. package/cdn/components/tag/tag.component.js +5 -6
  342. package/cdn/components/tag/tag.js +6 -7
  343. package/cdn/components/textarea/textarea.component.js +2 -3
  344. package/cdn/components/textarea/textarea.js +3 -4
  345. package/cdn/components/time-panel/time-panel.component.js +8 -9
  346. package/cdn/components/time-panel/time-panel.js +8 -9
  347. package/cdn/components/time-panel/time-panel.styles.js +1 -1
  348. package/cdn/components/timepicker/timepicker.component.js +14 -14
  349. package/cdn/components/timepicker/timepicker.js +15 -15
  350. package/cdn/components/tooltip/tooltip.component.js +3 -4
  351. package/cdn/components/tooltip/tooltip.js +4 -5
  352. package/cdn/components/tree/tree.component.js +9 -10
  353. package/cdn/components/tree/tree.js +10 -11
  354. package/cdn/components/tree-item/tree-item.component.js +7 -8
  355. package/cdn/components/tree-item/tree-item.js +8 -9
  356. package/cdn/components/visually-hidden/visually-hidden.component.js +2 -3
  357. package/cdn/components/visually-hidden/visually-hidden.js +3 -4
  358. package/cdn/custom-elements.json +2577 -2818
  359. package/cdn/react/alert/index.js +7 -8
  360. package/cdn/react/animated-image/index.js +4 -5
  361. package/cdn/react/animation/index.js +3 -4
  362. package/cdn/react/avatar/index.js +4 -5
  363. package/cdn/react/badge/index.js +3 -4
  364. package/cdn/react/breadcrumb/index.js +4 -5
  365. package/cdn/react/breadcrumb-item/index.js +3 -4
  366. package/cdn/react/button/index.js +7 -8
  367. package/cdn/react/button-group/index.js +3 -4
  368. package/cdn/react/card/index.js +3 -4
  369. package/cdn/react/carousel/index.js +4 -5
  370. package/cdn/react/carousel-item/index.js +3 -4
  371. package/cdn/react/checkbox/index.js +4 -5
  372. package/cdn/react/color-picker/index.js +14 -15
  373. package/cdn/react/copy-button/index.js +6 -7
  374. package/cdn/react/date-panel/index.js +48 -0
  375. package/cdn/react/datepicker/index.js +27 -14
  376. package/cdn/react/details/index.js +4 -5
  377. package/cdn/react/dialog/index.js +7 -8
  378. package/cdn/react/divider/index.js +3 -4
  379. package/cdn/react/drawer/index.js +8 -9
  380. package/cdn/react/dropdown/index.js +6 -7
  381. package/cdn/react/format-bytes/index.js +3 -4
  382. package/cdn/react/format-date/index.js +3 -4
  383. package/cdn/react/format-number/index.js +3 -4
  384. package/cdn/react/icon/index.js +3 -4
  385. package/cdn/react/icon-button/index.js +4 -5
  386. package/cdn/react/image-comparer/index.js +4 -5
  387. package/cdn/react/include/index.js +3 -4
  388. package/cdn/react/index.js +221 -214
  389. package/cdn/react/input/index.js +6 -7
  390. package/cdn/react/menu/index.js +4 -5
  391. package/cdn/react/menu-item/index.js +8 -9
  392. package/cdn/react/menu-label/index.js +3 -4
  393. package/cdn/react/mutation-observer/index.js +3 -4
  394. package/cdn/react/option/index.js +5 -6
  395. package/cdn/react/pagination/index.js +20 -7
  396. package/cdn/react/popup/index.js +3 -4
  397. package/cdn/react/progress-bar/index.js +4 -5
  398. package/cdn/react/progress-ring/index.js +3 -4
  399. package/cdn/react/qr-code/index.js +3 -4
  400. package/cdn/react/radio/index.js +4 -5
  401. package/cdn/react/radio-button/index.js +3 -4
  402. package/cdn/react/radio-group/index.js +4 -5
  403. package/cdn/react/range/index.js +5 -6
  404. package/cdn/react/rating/index.js +4 -5
  405. package/cdn/react/relative-time/index.js +3 -4
  406. package/cdn/react/resize-observer/index.js +3 -4
  407. package/cdn/react/screen/index.js +3 -4
  408. package/cdn/react/select/index.js +10 -11
  409. package/cdn/react/skeleton/index.js +3 -4
  410. package/cdn/react/spinner/index.js +3 -4
  411. package/cdn/react/split-panel/index.js +4 -5
  412. package/cdn/react/switch/index.js +3 -4
  413. package/cdn/react/tab/index.js +6 -7
  414. package/cdn/react/tab-group/index.js +7 -8
  415. package/cdn/react/tab-panel/index.js +3 -4
  416. package/cdn/react/table/index.js +35 -35
  417. package/cdn/react/tag/index.js +6 -7
  418. package/cdn/react/textarea/index.js +3 -4
  419. package/cdn/react/timepicker/index.js +13 -13
  420. package/cdn/react/tooltip/index.js +4 -5
  421. package/cdn/react/tree/index.js +10 -11
  422. package/cdn/react/tree-item/index.js +8 -9
  423. package/cdn/react/visually-hidden/index.js +3 -4
  424. package/cdn/shoelace.js +201 -201
  425. package/cdn/types/vue/index.d.ts +469 -495
  426. package/cdn/vscode.html-custom-data.json +289 -334
  427. package/cdn/web-types.json +728 -821
  428. package/dist/chunks/chunk.23K7R4NT.js +21 -0
  429. package/dist/chunks/chunk.2BAPB5ES.js +27 -0
  430. package/dist/chunks/chunk.2J6YXAWS.js +126 -0
  431. package/dist/chunks/chunk.2KAFZV2U.js +11 -0
  432. package/dist/chunks/chunk.2OGA6BZH.js +29 -0
  433. package/dist/chunks/chunk.2YRC6UA6.js +29 -0
  434. package/dist/chunks/chunk.32ACMMB6.js +11 -0
  435. package/dist/chunks/chunk.35CVCI6E.js +24 -0
  436. package/dist/chunks/chunk.3DRUISHG.js +21 -0
  437. package/dist/chunks/chunk.3TCZIRLS.js +11 -0
  438. package/dist/chunks/chunk.45JFYGIK.js +80 -0
  439. package/dist/chunks/chunk.4AKCX5MH.js +11 -0
  440. package/dist/chunks/chunk.4HRUBCPR.js +28 -0
  441. package/dist/chunks/chunk.4JORV644.js +25 -0
  442. package/dist/chunks/chunk.4MOUWA4Z.js +21 -0
  443. package/dist/chunks/chunk.4QWIG25M.js +147 -0
  444. package/dist/chunks/chunk.55S3OOTM.js +33 -0
  445. package/dist/chunks/chunk.5IBHAVZB.js +11 -0
  446. package/dist/chunks/chunk.5LIVGRUK.js +814 -0
  447. package/dist/chunks/chunk.5LW6WNIF.js +28 -0
  448. package/dist/chunks/chunk.5O7H5V47.js +11 -0
  449. package/dist/chunks/chunk.5PHH6PWX.js +11 -0
  450. package/dist/chunks/chunk.5TRNUMBN.js +315 -0
  451. package/dist/chunks/chunk.5VIQWMIT.js +119 -0
  452. package/dist/chunks/chunk.6226EGTC.js +24 -0
  453. package/dist/chunks/chunk.6DV25BZ3.js +11 -0
  454. package/dist/chunks/chunk.6E4JXCKX.js +11 -0
  455. package/dist/chunks/chunk.6HCN3CVD.js +29 -0
  456. package/dist/chunks/chunk.6HDQXFGS.js +11 -0
  457. package/dist/chunks/chunk.6HL5WIAB.js +417 -0
  458. package/dist/chunks/chunk.6RXDWBBR.js +135 -0
  459. package/dist/chunks/chunk.6UDSH4MU.js +21 -0
  460. package/dist/chunks/chunk.6UEXF2NO.js +11 -0
  461. package/dist/chunks/chunk.7CQOMPVQ.js +27 -0
  462. package/dist/chunks/chunk.7I4AGK2W.js +11 -0
  463. package/dist/chunks/chunk.7ITNVYCE.js +27 -0
  464. package/dist/chunks/chunk.7IYR2C2M.js +42 -0
  465. package/dist/chunks/chunk.7JNOANWO.js +21 -0
  466. package/dist/chunks/chunk.7MJ5DZAT.js +21 -0
  467. package/dist/chunks/chunk.7PLM7LGQ.js +45 -0
  468. package/dist/chunks/chunk.7TJ3OU57.js +11 -0
  469. package/dist/chunks/chunk.A6RWY7SS.js +51 -0
  470. package/dist/chunks/chunk.AGWHCSPV.js +247 -0
  471. package/dist/chunks/chunk.AM3JZDVB.js +22 -0
  472. package/dist/chunks/chunk.AROHADPZ.js +28 -0
  473. package/dist/chunks/chunk.AS7AINCJ.js +11 -0
  474. package/dist/chunks/chunk.B3I5UMF7.js +11 -0
  475. package/dist/chunks/chunk.B3PQOMHX.js +75 -0
  476. package/dist/chunks/chunk.B4HO2SQD.js +174 -0
  477. package/dist/chunks/chunk.BGRYUZRK.js +11 -0
  478. package/dist/chunks/chunk.BIAKIAJA.js +28 -0
  479. package/dist/chunks/chunk.BNQY5HIO.js +106 -0
  480. package/dist/chunks/chunk.BSSTY3ZB.js +113 -0
  481. package/dist/chunks/chunk.BTCOZSMV.js +280 -0
  482. package/dist/chunks/chunk.BUYWCJQE.js +11 -0
  483. package/dist/chunks/chunk.BVXAI6ST.js +358 -0
  484. package/dist/chunks/chunk.CH37X4P2.js +85 -0
  485. package/dist/chunks/chunk.CQ6VBUBR.js +96 -0
  486. package/dist/chunks/chunk.CSOWQ6ZF.js +22 -0
  487. package/dist/chunks/chunk.CXA6EXAW.js +27 -0
  488. package/dist/chunks/chunk.CXU7I7I7.js +45 -0
  489. package/dist/chunks/chunk.D5KF7L4N.js +21 -0
  490. package/dist/chunks/chunk.DBTBPR6I.js +11 -0
  491. package/dist/chunks/chunk.DK37NZTT.js +111 -0
  492. package/dist/chunks/chunk.DM3OE4HD.js +286 -0
  493. package/dist/chunks/chunk.DOJK6RUS.js +100 -0
  494. package/dist/chunks/chunk.DQB4ELCQ.js +21 -0
  495. package/dist/chunks/chunk.DTGV36KM.js +100 -0
  496. package/dist/chunks/chunk.DTMV2ULT.js +11 -0
  497. package/dist/chunks/chunk.EEKY6YDI.js +11 -0
  498. package/dist/chunks/chunk.EFHRHRWG.js +11 -0
  499. package/dist/chunks/chunk.EJNVBHMH.js +21 -0
  500. package/dist/chunks/chunk.ELAFEIPF.js +294 -0
  501. package/dist/chunks/chunk.EQJH2YFS.js +11 -0
  502. package/dist/chunks/chunk.F6KTV6TM.js +21 -0
  503. package/dist/chunks/chunk.FABTVEML.js +212 -0
  504. package/dist/chunks/chunk.FB63SVB3.js +11 -0
  505. package/dist/chunks/chunk.FDMNNFER.js +11 -0
  506. package/dist/chunks/chunk.FI2TCNNM.js +181 -0
  507. package/dist/chunks/chunk.FVWZSKWN.js +11 -0
  508. package/dist/chunks/chunk.G2IQGQTI.js +11 -0
  509. package/dist/chunks/chunk.G2NKHICI.js +21 -0
  510. package/dist/chunks/chunk.G7UNLCTM.js +11 -0
  511. package/dist/chunks/chunk.GAIJOPWX.js +35 -0
  512. package/dist/chunks/chunk.GDOJ72TB.js +949 -0
  513. package/dist/chunks/chunk.GHTILCMM.js +25 -0
  514. package/dist/chunks/chunk.GHW3EPMK.js +311 -0
  515. package/dist/chunks/chunk.GK62YFVA.js +21 -0
  516. package/dist/chunks/chunk.GVYXCDBW.js +25 -0
  517. package/dist/chunks/chunk.HARIMSYA.js +11 -0
  518. package/dist/chunks/chunk.HD65V4AX.js +47 -0
  519. package/dist/chunks/chunk.HFOJQZOV.js +11 -0
  520. package/dist/chunks/chunk.HGUMHCJ3.js +33 -0
  521. package/dist/chunks/chunk.HJFDDXS6.js +87 -0
  522. package/dist/chunks/chunk.HZD5GWNS.js +11 -0
  523. package/dist/chunks/chunk.I2LYHYCJ.js +21 -0
  524. package/dist/chunks/chunk.I63M2N2I.js +111 -0
  525. package/dist/chunks/chunk.I6WAAJDP.js +28 -0
  526. package/dist/chunks/chunk.IBRIK4MX.js +11 -0
  527. package/dist/chunks/chunk.IO4L7D3R.js +494 -0
  528. package/dist/chunks/chunk.J76SHUCJ.js +116 -0
  529. package/dist/chunks/chunk.JCF3SGWP.js +151 -0
  530. package/dist/chunks/chunk.K53OW3SG.js +21 -0
  531. package/dist/chunks/chunk.K6P23T7S.js +11 -0
  532. package/dist/chunks/chunk.KIMVNML5.js +11 -0
  533. package/dist/chunks/chunk.KMDFY6IR.js +27 -0
  534. package/dist/chunks/chunk.KPRSKD3P.js +39 -0
  535. package/dist/chunks/chunk.KZ2E2QPX.js +214 -0
  536. package/dist/chunks/chunk.L2XYGNOM.js +167 -0
  537. package/dist/chunks/chunk.L6IB7TSB.js +448 -0
  538. package/dist/chunks/chunk.LBA6EKPQ.js +59 -0
  539. package/dist/chunks/chunk.LVPIOFIR.js +93 -0
  540. package/dist/chunks/chunk.LZ5HHTHZ.js +27 -0
  541. package/dist/chunks/chunk.M3ZETKTC.js +134 -0
  542. package/dist/chunks/chunk.M4MEGHVA.js +11 -0
  543. package/dist/chunks/chunk.M6K5R2VR.js +67 -0
  544. package/dist/chunks/chunk.M6ZHGEXN.js +11 -0
  545. package/dist/chunks/chunk.MCD46OIE.js +11 -0
  546. package/dist/chunks/chunk.MD64S3ZW.js +333 -0
  547. package/dist/chunks/chunk.MPYCS6NC.js +11 -0
  548. package/dist/chunks/chunk.MRT2Y3XH.js +11 -0
  549. package/dist/chunks/chunk.MXNOEVRE.js +813 -0
  550. package/dist/chunks/chunk.MXT5E2E3.js +291 -0
  551. package/dist/chunks/chunk.NBRBQS2A.js +91 -0
  552. package/dist/chunks/chunk.NBVINANI.js +21 -0
  553. package/dist/chunks/chunk.NKVJLRXA.js +11 -0
  554. package/dist/chunks/chunk.NPSSFTSZ.js +25 -0
  555. package/dist/chunks/chunk.NPZGO3TF.js +50 -0
  556. package/dist/chunks/chunk.NW73JBXM.js +369 -0
  557. package/dist/chunks/chunk.O353OWBH.js +117 -0
  558. package/dist/chunks/chunk.OBEF6N5D.js +24 -0
  559. package/dist/chunks/chunk.OBLIKQB3.js +26 -0
  560. package/dist/chunks/chunk.OFFPQXOQ.js +21 -0
  561. package/dist/chunks/chunk.ONADNVXD.js +11 -0
  562. package/dist/chunks/chunk.OQEO56ZS.js +259 -0
  563. package/dist/chunks/chunk.ORZXW3UE.js +25 -0
  564. package/dist/chunks/chunk.OUI74XAI.js +484 -0
  565. package/dist/chunks/chunk.OV3GZJAR.js +11 -0
  566. package/dist/chunks/chunk.OW3KW6VO.js +109 -0
  567. package/dist/chunks/chunk.P7CKOTGP.js +11 -0
  568. package/dist/chunks/chunk.PAQULMRN.js +21 -0
  569. package/dist/chunks/chunk.PE4KZWE6.js +28 -0
  570. package/dist/chunks/chunk.PHVS3KJH.js +156 -0
  571. package/dist/chunks/chunk.PKGVMMJG.js +11 -0
  572. package/dist/chunks/chunk.PM4AMVBK.js +21 -0
  573. package/dist/chunks/chunk.PON4NNDJ.js +231 -0
  574. package/dist/chunks/chunk.PVCCOPM6.js +22 -0
  575. package/dist/chunks/chunk.Q6YUGPVX.js +75 -0
  576. package/dist/chunks/chunk.QGHSEJOU.js +25 -0
  577. package/dist/chunks/chunk.QH2UWZH5.js +25 -0
  578. package/dist/chunks/chunk.QI3W6HTK.js +21 -0
  579. package/dist/chunks/chunk.QLNJE55A.js +63 -0
  580. package/dist/chunks/chunk.QSDSNJKA.js +21 -0
  581. package/dist/chunks/chunk.QXOMAHWK.js +11 -0
  582. package/dist/chunks/chunk.R2SBUTSK.js +11 -0
  583. package/dist/chunks/chunk.R5BPAQWB.js +24 -0
  584. package/dist/chunks/chunk.RC22A6WL.js +34 -0
  585. package/dist/chunks/chunk.RJLUOWN7.js +24 -0
  586. package/dist/chunks/chunk.RJZ63WPY.js +11 -0
  587. package/dist/chunks/chunk.RQHBV33L.js +24 -0
  588. package/dist/chunks/chunk.RYIEJALO.js +293 -0
  589. package/dist/chunks/chunk.S35XBDYL.js +11 -0
  590. package/dist/chunks/chunk.S6V5W6F6.js +11 -0
  591. package/dist/chunks/chunk.S72HPYOZ.js +24 -0
  592. package/dist/chunks/chunk.SEPTQA5Z.js +21 -0
  593. package/dist/chunks/chunk.ST5YCFFA.js +119 -0
  594. package/dist/chunks/chunk.SXW7Z6ZF.js +227 -0
  595. package/dist/chunks/chunk.TC7HEXQD.js +24 -0
  596. package/dist/chunks/chunk.THHF2YU7.js +550 -0
  597. package/dist/chunks/chunk.THWXZUDV.js +26 -0
  598. package/dist/chunks/chunk.TSMWOE6E.js +121 -0
  599. package/dist/chunks/chunk.TTEHZN2N.js +21 -0
  600. package/dist/chunks/chunk.TYQJKOUY.js +24 -0
  601. package/dist/chunks/chunk.UCZXKYHX.js +205 -0
  602. package/dist/chunks/chunk.UGKTF4KF.js +52 -0
  603. package/dist/chunks/chunk.UJOYFODR.js +11 -0
  604. package/dist/chunks/chunk.UNJALYPM.js +11 -0
  605. package/dist/chunks/chunk.UQGDM7HN.js +274 -0
  606. package/dist/chunks/chunk.UYCPHCRE.js +371 -0
  607. package/dist/chunks/chunk.UZSTWEES.js +73 -0
  608. package/dist/chunks/chunk.V4ACSAX5.js +29 -0
  609. package/dist/chunks/chunk.V4OFZZMW.js +21 -0
  610. package/dist/chunks/chunk.VHWATTYS.js +55 -0
  611. package/dist/chunks/chunk.VKXVNU5C.js +11 -0
  612. package/dist/chunks/chunk.VZDXD5YC.js +21 -0
  613. package/dist/chunks/chunk.W4O4QP2L.js +384 -0
  614. package/dist/chunks/chunk.W5KB6T3Z.js +91 -0
  615. package/dist/chunks/chunk.W5MMYC3G.js +192 -0
  616. package/dist/chunks/chunk.WBWPWG4N.js +302 -0
  617. package/dist/chunks/chunk.WENLC4PY.js +11 -0
  618. package/dist/chunks/chunk.WFNZBTGD.js +175 -0
  619. package/dist/chunks/chunk.WHF6ESAS.js +24 -0
  620. package/dist/chunks/chunk.WIJMV6OZ.js +337 -0
  621. package/dist/chunks/chunk.WKSHSVGC.js +25 -0
  622. package/dist/chunks/chunk.WO7ALQNH.js +46 -0
  623. package/dist/chunks/chunk.WUUCPSLN.js +213 -0
  624. package/dist/chunks/chunk.WUWD2BSL.js +11 -0
  625. package/dist/chunks/chunk.WY73GMZ7.js +11 -0
  626. package/dist/chunks/chunk.WZQP5JDX.js +25 -0
  627. package/dist/chunks/chunk.X7TTTNXB.js +11 -0
  628. package/dist/chunks/chunk.XHPJLIWX.js +26 -0
  629. package/dist/chunks/chunk.XQGFFI4E.js +11 -0
  630. package/dist/chunks/chunk.Y3CWY7MQ.js +11 -0
  631. package/dist/chunks/chunk.Y3MHU54X.js +11 -0
  632. package/dist/chunks/chunk.Y45VBPZ3.js +150 -0
  633. package/dist/chunks/chunk.YIDE4D7D.js +25 -0
  634. package/dist/chunks/chunk.YIPMXBCU.js +90 -0
  635. package/dist/chunks/chunk.YPXJR2OL.js +361 -0
  636. package/dist/chunks/chunk.YR3LRTL7.js +224 -0
  637. package/dist/chunks/chunk.YXGFGUZJ.js +11 -0
  638. package/dist/chunks/chunk.ZMQFIJ2T.js +11 -0
  639. package/dist/chunks/chunk.ZNNGKQEN.js +575 -0
  640. package/dist/chunks/chunk.ZQHA5KWE.js +24 -0
  641. package/dist/chunks/chunk.ZQR2MBTN.js +24 -0
  642. package/dist/chunks/chunk.ZVZFQNJG.js +111 -0
  643. package/dist/chunks/chunk.ZZ7SF3Y7.js +397 -0
  644. package/dist/components/alert/alert.component.js +9 -9
  645. package/dist/components/alert/alert.js +10 -10
  646. package/dist/components/alert/alert.styles.js +1 -1
  647. package/dist/components/animated-image/animated-image.component.js +5 -5
  648. package/dist/components/animated-image/animated-image.js +6 -6
  649. package/dist/components/animated-image/animated-image.styles.js +1 -1
  650. package/dist/components/animation/animation.component.js +4 -4
  651. package/dist/components/animation/animation.js +5 -5
  652. package/dist/components/animation/animation.styles.js +1 -1
  653. package/dist/components/animation/animations.js +1 -1
  654. package/dist/components/avatar/avatar.component.js +5 -5
  655. package/dist/components/avatar/avatar.js +6 -6
  656. package/dist/components/avatar/avatar.styles.js +1 -1
  657. package/dist/components/badge/badge.component.js +3 -3
  658. package/dist/components/badge/badge.js +4 -4
  659. package/dist/components/badge/badge.styles.js +1 -1
  660. package/dist/components/breadcrumb/breadcrumb.component.js +5 -5
  661. package/dist/components/breadcrumb/breadcrumb.js +6 -6
  662. package/dist/components/breadcrumb/breadcrumb.styles.js +1 -1
  663. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +4 -4
  664. package/dist/components/breadcrumb-item/breadcrumb-item.js +5 -5
  665. package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
  666. package/dist/components/button/button.component.js +8 -8
  667. package/dist/components/button/button.js +9 -9
  668. package/dist/components/button/button.styles.js +1 -1
  669. package/dist/components/button-group/button-group.component.js +3 -3
  670. package/dist/components/button-group/button-group.js +4 -4
  671. package/dist/components/button-group/button-group.styles.js +1 -1
  672. package/dist/components/calendar/calendar.component.js +11 -11
  673. package/dist/components/calendar/calendar.js +11 -11
  674. package/dist/components/card/card.component.js +3 -3
  675. package/dist/components/card/card.js +4 -4
  676. package/dist/components/card/card.styles.js +1 -1
  677. package/dist/components/carousel/autoplay-controller.js +1 -1
  678. package/dist/components/carousel/carousel.component.js +6 -6
  679. package/dist/components/carousel/carousel.js +7 -7
  680. package/dist/components/carousel/carousel.styles.js +1 -1
  681. package/dist/components/carousel-item/carousel-item.component.js +3 -3
  682. package/dist/components/carousel-item/carousel-item.js +4 -4
  683. package/dist/components/carousel-item/carousel-item.styles.js +1 -1
  684. package/dist/components/checkbox/checkbox.component.js +6 -6
  685. package/dist/components/checkbox/checkbox.js +7 -7
  686. package/dist/components/checkbox/checkbox.styles.js +1 -1
  687. package/dist/components/color-picker/color-picker.component.js +17 -17
  688. package/dist/components/color-picker/color-picker.js +18 -18
  689. package/dist/components/color-picker/color-picker.styles.js +1 -1
  690. package/dist/components/copy-button/copy-button.component.js +9 -9
  691. package/dist/components/copy-button/copy-button.js +10 -10
  692. package/dist/components/copy-button/copy-button.styles.js +1 -1
  693. package/dist/components/date-panel/date-panel.component.js +40 -0
  694. package/dist/components/date-panel/date-panel.js +44 -0
  695. package/dist/components/date-panel/date-panel.styles.js +7 -0
  696. package/dist/components/datepicker/datepicker.component.js +28 -14
  697. package/dist/components/datepicker/datepicker.js +28 -14
  698. package/dist/components/details/details.component.js +7 -7
  699. package/dist/components/details/details.js +8 -8
  700. package/dist/components/details/details.styles.js +1 -1
  701. package/dist/components/dialog/dialog.component.js +11 -11
  702. package/dist/components/dialog/dialog.js +12 -12
  703. package/dist/components/dialog/dialog.styles.js +1 -1
  704. package/dist/components/divider/divider.component.js +4 -4
  705. package/dist/components/divider/divider.js +5 -5
  706. package/dist/components/divider/divider.styles.js +1 -1
  707. package/dist/components/drawer/drawer.component.js +12 -12
  708. package/dist/components/drawer/drawer.js +13 -13
  709. package/dist/components/drawer/drawer.styles.js +1 -1
  710. package/dist/components/dropdown/dropdown.component.js +8 -8
  711. package/dist/components/dropdown/dropdown.js +9 -9
  712. package/dist/components/dropdown/dropdown.styles.js +1 -1
  713. package/dist/components/format-bytes/format-bytes.component.js +3 -3
  714. package/dist/components/format-bytes/format-bytes.js +4 -4
  715. package/dist/components/format-date/format-date.component.js +3 -3
  716. package/dist/components/format-date/format-date.js +4 -4
  717. package/dist/components/format-number/format-number.component.js +3 -3
  718. package/dist/components/format-number/format-number.js +4 -4
  719. package/dist/components/icon/icon.component.js +4 -4
  720. package/dist/components/icon/icon.js +5 -5
  721. package/dist/components/icon/icon.styles.js +1 -1
  722. package/dist/components/icon/library.default.js +1 -1
  723. package/dist/components/icon/library.js +1 -1
  724. package/dist/components/icon/library.system.js +1 -1
  725. package/dist/components/icon-button/icon-button.component.js +5 -5
  726. package/dist/components/icon-button/icon-button.js +6 -6
  727. package/dist/components/icon-button/icon-button.styles.js +1 -1
  728. package/dist/components/image-comparer/image-comparer.component.js +5 -5
  729. package/dist/components/image-comparer/image-comparer.js +6 -6
  730. package/dist/components/image-comparer/image-comparer.styles.js +1 -1
  731. package/dist/components/include/include.component.js +4 -4
  732. package/dist/components/include/include.js +5 -5
  733. package/dist/components/include/include.styles.js +1 -1
  734. package/dist/components/include/request.js +1 -1
  735. package/dist/components/input/input.component.js +7 -7
  736. package/dist/components/input/input.js +8 -8
  737. package/dist/components/input/input.styles.js +1 -1
  738. package/dist/components/menu/menu.component.js +4 -4
  739. package/dist/components/menu/menu.js +5 -5
  740. package/dist/components/menu/menu.styles.js +2 -2
  741. package/dist/components/menu-item/menu-item.component.js +9 -9
  742. package/dist/components/menu-item/menu-item.js +10 -10
  743. package/dist/components/menu-item/menu-item.styles.js +2 -2
  744. package/dist/components/menu-item/submenu-controller.js +1 -1
  745. package/dist/components/menu-label/menu-label.component.js +3 -3
  746. package/dist/components/menu-label/menu-label.js +4 -4
  747. package/dist/components/menu-label/menu-label.styles.js +1 -1
  748. package/dist/components/mutation-observer/mutation-observer.component.js +4 -4
  749. package/dist/components/mutation-observer/mutation-observer.js +5 -5
  750. package/dist/components/mutation-observer/mutation-observer.styles.js +1 -1
  751. package/dist/components/option/option.component.js +6 -6
  752. package/dist/components/option/option.js +7 -7
  753. package/dist/components/option/option.styles.js +2 -2
  754. package/dist/components/pagination/custom-select.js +15 -2
  755. package/dist/components/pagination/pagination.component.js +17 -7
  756. package/dist/components/pagination/pagination.js +17 -7
  757. package/dist/components/pagination/pagination.styles.js +2 -2
  758. package/dist/components/popup/popup.component.js +3 -3
  759. package/dist/components/popup/popup.js +4 -4
  760. package/dist/components/popup/popup.styles.js +1 -1
  761. package/dist/components/progress-bar/progress-bar.component.js +3 -3
  762. package/dist/components/progress-bar/progress-bar.js +4 -4
  763. package/dist/components/progress-bar/progress-bar.styles.js +1 -1
  764. package/dist/components/progress-ring/progress-ring.component.js +3 -3
  765. package/dist/components/progress-ring/progress-ring.js +4 -4
  766. package/dist/components/progress-ring/progress-ring.styles.js +1 -1
  767. package/dist/components/qr-code/qr-code.component.js +4 -4
  768. package/dist/components/qr-code/qr-code.js +5 -5
  769. package/dist/components/qr-code/qr-code.styles.js +1 -1
  770. package/dist/components/radio/radio.component.js +5 -5
  771. package/dist/components/radio/radio.js +6 -6
  772. package/dist/components/radio/radio.styles.js +1 -1
  773. package/dist/components/radio-button/radio-button.component.js +4 -4
  774. package/dist/components/radio-button/radio-button.js +5 -5
  775. package/dist/components/radio-button/radio-button.styles.js +1 -1
  776. package/dist/components/radio-group/radio-group.component.js +6 -6
  777. package/dist/components/radio-group/radio-group.js +7 -7
  778. package/dist/components/radio-group/radio-group.styles.js +1 -1
  779. package/dist/components/range/range.component.js +6 -6
  780. package/dist/components/range/range.js +7 -7
  781. package/dist/components/range/range.styles.js +1 -1
  782. package/dist/components/rating/rating.component.js +5 -5
  783. package/dist/components/rating/rating.js +6 -6
  784. package/dist/components/rating/rating.styles.js +1 -1
  785. package/dist/components/relative-time/relative-time.component.js +3 -3
  786. package/dist/components/relative-time/relative-time.js +4 -4
  787. package/dist/components/resize-observer/resize-observer.component.js +4 -4
  788. package/dist/components/resize-observer/resize-observer.js +5 -5
  789. package/dist/components/resize-observer/resize-observer.styles.js +1 -1
  790. package/dist/components/screen/gridstack.styles.js +1 -1
  791. package/dist/components/screen/screen.component.js +4 -4
  792. package/dist/components/screen/screen.js +5 -5
  793. package/dist/components/screen/screen.styles.js +1 -1
  794. package/dist/components/select/select.component.js +13 -13
  795. package/dist/components/select/select.js +14 -14
  796. package/dist/components/select/select.styles.js +2 -2
  797. package/dist/components/skeleton/skeleton.component.js +3 -3
  798. package/dist/components/skeleton/skeleton.js +4 -4
  799. package/dist/components/skeleton/skeleton.styles.js +1 -1
  800. package/dist/components/spinner/spinner.component.js +3 -3
  801. package/dist/components/spinner/spinner.js +4 -4
  802. package/dist/components/spinner/spinner.styles.js +1 -1
  803. package/dist/components/split-panel/split-panel.component.js +4 -4
  804. package/dist/components/split-panel/split-panel.js +5 -5
  805. package/dist/components/split-panel/split-panel.styles.js +1 -1
  806. package/dist/components/switch/switch.component.js +5 -5
  807. package/dist/components/switch/switch.js +6 -6
  808. package/dist/components/switch/switch.styles.js +1 -1
  809. package/dist/components/tab/tab.component.js +6 -6
  810. package/dist/components/tab/tab.js +7 -7
  811. package/dist/components/tab/tab.styles.js +1 -1
  812. package/dist/components/tab-group/tab-group.component.js +7 -7
  813. package/dist/components/tab-group/tab-group.js +8 -8
  814. package/dist/components/tab-group/tab-group.styles.js +1 -1
  815. package/dist/components/tab-panel/tab-panel.component.js +4 -4
  816. package/dist/components/tab-panel/tab-panel.js +5 -5
  817. package/dist/components/tab-panel/tab-panel.styles.js +1 -1
  818. package/dist/components/table/body-table.js +7 -6
  819. package/dist/components/table/col-group.js +3 -3
  820. package/dist/components/table/const.js +1 -1
  821. package/dist/components/table/features/index.js +2 -2
  822. package/dist/components/table/features/row-expend.js +7 -0
  823. package/dist/components/table/features/row-filtering.js +1 -1
  824. package/dist/components/table/features/row-selection.js +2 -2
  825. package/dist/components/table/features/row-sorting.js +1 -1
  826. package/dist/components/table/head-table.js +29 -29
  827. package/dist/components/table/spinner-container.js +3 -3
  828. package/dist/components/table/table.component.js +37 -36
  829. package/dist/components/table/table.context.js +1 -1
  830. package/dist/components/table/table.js +38 -37
  831. package/dist/components/table/utils.js +2 -2
  832. package/dist/components/tag/tag.component.js +6 -6
  833. package/dist/components/tag/tag.js +7 -7
  834. package/dist/components/tag/tag.styles.js +1 -1
  835. package/dist/components/textarea/textarea.component.js +5 -5
  836. package/dist/components/textarea/textarea.js +6 -6
  837. package/dist/components/textarea/textarea.styles.js +1 -1
  838. package/dist/components/time-panel/time-panel.component.js +10 -10
  839. package/dist/components/time-panel/time-panel.js +10 -10
  840. package/dist/components/time-panel/time-panel.styles.js +2 -2
  841. package/dist/components/timepicker/timepicker.component.js +16 -15
  842. package/dist/components/timepicker/timepicker.js +17 -16
  843. package/dist/components/timepicker/timepicker.styles.js +1 -1
  844. package/dist/components/tooltip/tooltip.component.js +7 -7
  845. package/dist/components/tooltip/tooltip.js +8 -8
  846. package/dist/components/tooltip/tooltip.styles.js +1 -1
  847. package/dist/components/tree/tree.component.js +13 -13
  848. package/dist/components/tree/tree.js +14 -14
  849. package/dist/components/tree/tree.styles.js +1 -1
  850. package/dist/components/tree-item/tree-item.component.js +11 -11
  851. package/dist/components/tree-item/tree-item.js +12 -12
  852. package/dist/components/tree-item/tree-item.styles.js +1 -1
  853. package/dist/components/visually-hidden/visually-hidden.component.js +3 -3
  854. package/dist/components/visually-hidden/visually-hidden.js +4 -4
  855. package/dist/components/visually-hidden/visually-hidden.styles.js +1 -1
  856. package/dist/custom-elements.json +2577 -2818
  857. package/dist/react/alert/index.js +10 -10
  858. package/dist/react/animated-image/index.js +6 -6
  859. package/dist/react/animation/index.js +5 -5
  860. package/dist/react/avatar/index.js +6 -6
  861. package/dist/react/badge/index.js +4 -4
  862. package/dist/react/breadcrumb/index.js +6 -6
  863. package/dist/react/breadcrumb-item/index.js +5 -5
  864. package/dist/react/button/index.js +9 -9
  865. package/dist/react/button-group/index.js +4 -4
  866. package/dist/react/card/index.js +4 -4
  867. package/dist/react/carousel/index.js +7 -7
  868. package/dist/react/carousel-item/index.js +4 -4
  869. package/dist/react/checkbox/index.js +7 -7
  870. package/dist/react/color-picker/index.js +18 -18
  871. package/dist/react/copy-button/index.js +10 -10
  872. package/dist/react/date-panel/index.js +41 -0
  873. package/dist/react/datepicker/index.js +29 -15
  874. package/dist/react/details/index.js +8 -8
  875. package/dist/react/dialog/index.js +12 -12
  876. package/dist/react/divider/index.js +5 -5
  877. package/dist/react/drawer/index.js +13 -13
  878. package/dist/react/dropdown/index.js +9 -9
  879. package/dist/react/format-bytes/index.js +4 -4
  880. package/dist/react/format-date/index.js +4 -4
  881. package/dist/react/format-number/index.js +4 -4
  882. package/dist/react/icon/index.js +5 -5
  883. package/dist/react/icon-button/index.js +6 -6
  884. package/dist/react/image-comparer/index.js +6 -6
  885. package/dist/react/include/index.js +5 -5
  886. package/dist/react/index.js +224 -216
  887. package/dist/react/input/index.js +8 -8
  888. package/dist/react/menu/index.js +5 -5
  889. package/dist/react/menu-item/index.js +10 -10
  890. package/dist/react/menu-label/index.js +4 -4
  891. package/dist/react/mutation-observer/index.js +5 -5
  892. package/dist/react/option/index.js +7 -7
  893. package/dist/react/pagination/index.js +18 -8
  894. package/dist/react/popup/index.js +4 -4
  895. package/dist/react/progress-bar/index.js +4 -4
  896. package/dist/react/progress-ring/index.js +4 -4
  897. package/dist/react/qr-code/index.js +5 -5
  898. package/dist/react/radio/index.js +6 -6
  899. package/dist/react/radio-button/index.js +5 -5
  900. package/dist/react/radio-group/index.js +7 -7
  901. package/dist/react/range/index.js +7 -7
  902. package/dist/react/rating/index.js +6 -6
  903. package/dist/react/relative-time/index.js +4 -4
  904. package/dist/react/resize-observer/index.js +5 -5
  905. package/dist/react/screen/index.js +5 -5
  906. package/dist/react/select/index.js +14 -14
  907. package/dist/react/skeleton/index.js +4 -4
  908. package/dist/react/spinner/index.js +4 -4
  909. package/dist/react/split-panel/index.js +5 -5
  910. package/dist/react/switch/index.js +6 -6
  911. package/dist/react/tab/index.js +7 -7
  912. package/dist/react/tab-group/index.js +8 -8
  913. package/dist/react/tab-panel/index.js +5 -5
  914. package/dist/react/table/index.js +38 -37
  915. package/dist/react/tag/index.js +7 -7
  916. package/dist/react/textarea/index.js +6 -6
  917. package/dist/react/timepicker/index.js +15 -14
  918. package/dist/react/tooltip/index.js +8 -8
  919. package/dist/react/tree/index.js +14 -14
  920. package/dist/react/tree-item/index.js +12 -12
  921. package/dist/react/visually-hidden/index.js +4 -4
  922. package/dist/shoelace-autoloader.js +1 -1
  923. package/dist/shoelace.js +203 -202
  924. package/dist/translations/ar.js +1 -1
  925. package/dist/translations/cs.js +1 -1
  926. package/dist/translations/da.js +1 -1
  927. package/dist/translations/de-ch.js +1 -1
  928. package/dist/translations/de.js +1 -1
  929. package/dist/translations/en-gb.js +1 -1
  930. package/dist/translations/en.js +1 -1
  931. package/dist/translations/es.js +1 -1
  932. package/dist/translations/fa.js +1 -1
  933. package/dist/translations/fi.js +1 -1
  934. package/dist/translations/fr.js +1 -1
  935. package/dist/translations/he.js +1 -1
  936. package/dist/translations/hr.js +1 -1
  937. package/dist/translations/hu.js +1 -1
  938. package/dist/translations/id.js +1 -1
  939. package/dist/translations/it.js +1 -1
  940. package/dist/translations/ja.js +1 -1
  941. package/dist/translations/nb.js +1 -1
  942. package/dist/translations/nl.js +1 -1
  943. package/dist/translations/nn.js +1 -1
  944. package/dist/translations/pl.js +1 -1
  945. package/dist/translations/pt.js +1 -1
  946. package/dist/translations/ru.js +1 -1
  947. package/dist/translations/sl.js +1 -1
  948. package/dist/translations/sv.js +1 -1
  949. package/dist/translations/tr.js +1 -1
  950. package/dist/translations/uk.js +1 -1
  951. package/dist/translations/zh-cn.js +1 -1
  952. package/dist/translations/zh-tw.js +1 -1
  953. package/dist/types/vue/index.d.ts +469 -495
  954. package/dist/utilities/animation-registry.js +2 -2
  955. package/dist/utilities/animation.js +1 -1
  956. package/dist/utilities/base-path.js +1 -1
  957. package/dist/utilities/form.js +3 -3
  958. package/dist/utilities/icon-library.js +1 -1
  959. package/dist/utilities/localize.js +1 -1
  960. package/dist/utilities/spread.js +1 -1
  961. package/dist/vscode.html-custom-data.json +289 -334
  962. package/dist/web-types.json +728 -821
  963. package/package.json +1 -1
  964. package/cdn/chunks/chunk.274OIEVI.js +0 -97
  965. package/cdn/chunks/chunk.2HGYNT3V.js +0 -294
  966. package/cdn/chunks/chunk.2HHYJS5E.js +0 -129
  967. package/cdn/chunks/chunk.2IY2QWZ7.js +0 -348
  968. package/cdn/chunks/chunk.2KCNZ3X3.js +0 -84
  969. package/cdn/chunks/chunk.2PWHGNKZ.js +0 -160
  970. package/cdn/chunks/chunk.2XKGBNLX.js +0 -21
  971. package/cdn/chunks/chunk.3H3GOTJ2.js +0 -11
  972. package/cdn/chunks/chunk.3NNGBS52.js +0 -316
  973. package/cdn/chunks/chunk.3WU6LNUA.js +0 -11
  974. package/cdn/chunks/chunk.3XFODJZM.js +0 -57
  975. package/cdn/chunks/chunk.47FPHGDJ.js +0 -33
  976. package/cdn/chunks/chunk.4FFIKHQ6.js +0 -11
  977. package/cdn/chunks/chunk.4YC3GCZV.js +0 -21
  978. package/cdn/chunks/chunk.4ZQJPI5L.js +0 -21
  979. package/cdn/chunks/chunk.56WLJRAD.js +0 -11
  980. package/cdn/chunks/chunk.5B2RHXB2.js +0 -188
  981. package/cdn/chunks/chunk.5D7K2Y2M.js +0 -588
  982. package/cdn/chunks/chunk.5GLETPQ3.js +0 -26
  983. package/cdn/chunks/chunk.5SZ3VVWH.js +0 -11
  984. package/cdn/chunks/chunk.5ZJCSNBL.js +0 -21
  985. package/cdn/chunks/chunk.5ZJNL7P2.js +0 -11
  986. package/cdn/chunks/chunk.5ZPRCFKW.js +0 -21
  987. package/cdn/chunks/chunk.62VUCHSP.js +0 -90
  988. package/cdn/chunks/chunk.67I2W5ED.js +0 -11
  989. package/cdn/chunks/chunk.67L6J4PF.js +0 -11
  990. package/cdn/chunks/chunk.6BKANMUH.js +0 -11
  991. package/cdn/chunks/chunk.6MHUCJTT.js +0 -21
  992. package/cdn/chunks/chunk.6TXJOCC6.js +0 -21
  993. package/cdn/chunks/chunk.6USRM27Q.js +0 -75
  994. package/cdn/chunks/chunk.6UZWSOMS.js +0 -25
  995. package/cdn/chunks/chunk.7AOL6AS4.js +0 -113
  996. package/cdn/chunks/chunk.7DG4KOED.js +0 -25
  997. package/cdn/chunks/chunk.7KAXSS4O.js +0 -235
  998. package/cdn/chunks/chunk.7MHPPVAH.js +0 -27
  999. package/cdn/chunks/chunk.7NPWMO7X.js +0 -36
  1000. package/cdn/chunks/chunk.7NZA66XH.js +0 -21
  1001. package/cdn/chunks/chunk.7RAEXH4E.js +0 -803
  1002. package/cdn/chunks/chunk.7WBZZP5I.js +0 -24
  1003. package/cdn/chunks/chunk.A4LJNNKF.js +0 -11
  1004. package/cdn/chunks/chunk.AB7334PR.js +0 -24
  1005. package/cdn/chunks/chunk.ACZIB4GP.js +0 -11
  1006. package/cdn/chunks/chunk.AD227U3E.js +0 -281
  1007. package/cdn/chunks/chunk.AJ63BSZZ.js +0 -457
  1008. package/cdn/chunks/chunk.AWSXB3E6.js +0 -11
  1009. package/cdn/chunks/chunk.B3SMJ4ZH.js +0 -77
  1010. package/cdn/chunks/chunk.BH2A6WPY.js +0 -338
  1011. package/cdn/chunks/chunk.BIRYNFUT.js +0 -361
  1012. package/cdn/chunks/chunk.BIWCIJTI.js +0 -21
  1013. package/cdn/chunks/chunk.BM7OO3LN.js +0 -144
  1014. package/cdn/chunks/chunk.BMI2DCT6.js +0 -11
  1015. package/cdn/chunks/chunk.BSXU73W7.js +0 -26
  1016. package/cdn/chunks/chunk.BTAUZ2GK.js +0 -381
  1017. package/cdn/chunks/chunk.BU65MDM4.js +0 -52
  1018. package/cdn/chunks/chunk.BWJKC7HR.js +0 -369
  1019. package/cdn/chunks/chunk.C5MBP4NZ.js +0 -100
  1020. package/cdn/chunks/chunk.C77LBFQ2.js +0 -11
  1021. package/cdn/chunks/chunk.CD7ANDDQ.js +0 -199
  1022. package/cdn/chunks/chunk.CY47GRGG.js +0 -217
  1023. package/cdn/chunks/chunk.D7YZUGAV.js +0 -11
  1024. package/cdn/chunks/chunk.DEUJNG4D.js +0 -24
  1025. package/cdn/chunks/chunk.DK7OY5PV.js +0 -25
  1026. package/cdn/chunks/chunk.DMPBM3WB.js +0 -24
  1027. package/cdn/chunks/chunk.DTK4XUYI.js +0 -24
  1028. package/cdn/chunks/chunk.E3LJCZQT.js +0 -218
  1029. package/cdn/chunks/chunk.E5SJBZWN.js +0 -21
  1030. package/cdn/chunks/chunk.E6DXGKDY.js +0 -11
  1031. package/cdn/chunks/chunk.EEXRATVK.js +0 -115
  1032. package/cdn/chunks/chunk.EGWMFBMJ.js +0 -27
  1033. package/cdn/chunks/chunk.EHK4FN4I.js +0 -11
  1034. package/cdn/chunks/chunk.EPKMAGLQ.js +0 -11
  1035. package/cdn/chunks/chunk.ETBW3UWE.js +0 -105
  1036. package/cdn/chunks/chunk.F6EXYTIQ.js +0 -11
  1037. package/cdn/chunks/chunk.F6LAMHEB.js +0 -25
  1038. package/cdn/chunks/chunk.FPSEIB6K.js +0 -26
  1039. package/cdn/chunks/chunk.FUJQ6WAL.js +0 -116
  1040. package/cdn/chunks/chunk.FVNSUFSE.js +0 -11
  1041. package/cdn/chunks/chunk.G4S3RY3U.js +0 -25
  1042. package/cdn/chunks/chunk.GEVG2WIH.js +0 -122
  1043. package/cdn/chunks/chunk.GFBIRQG3.js +0 -11
  1044. package/cdn/chunks/chunk.GH4Z7QBU.js +0 -11
  1045. package/cdn/chunks/chunk.GK63N5AE.js +0 -11
  1046. package/cdn/chunks/chunk.GM3ZSZIB.js +0 -11
  1047. package/cdn/chunks/chunk.H7KGGSN7.js +0 -25
  1048. package/cdn/chunks/chunk.HAN47AQU.js +0 -11
  1049. package/cdn/chunks/chunk.HJW6J5WI.js +0 -21
  1050. package/cdn/chunks/chunk.I57WXLMR.js +0 -21
  1051. package/cdn/chunks/chunk.I6347S77.js +0 -5977
  1052. package/cdn/chunks/chunk.I7XDYHF7.js +0 -11
  1053. package/cdn/chunks/chunk.ICNDZ37C.js +0 -11
  1054. package/cdn/chunks/chunk.IJCGOLLB.js +0 -269
  1055. package/cdn/chunks/chunk.IL7UIP2H.js +0 -11
  1056. package/cdn/chunks/chunk.ILWAKT36.js +0 -116
  1057. package/cdn/chunks/chunk.IQGWTOFC.js +0 -29
  1058. package/cdn/chunks/chunk.IRYP33LO.js +0 -104
  1059. package/cdn/chunks/chunk.IUQQ6GMY.js +0 -99
  1060. package/cdn/chunks/chunk.IY4XR4U3.js +0 -21
  1061. package/cdn/chunks/chunk.J5RYNIJI.js +0 -47
  1062. package/cdn/chunks/chunk.JABFV2DF.js +0 -11
  1063. package/cdn/chunks/chunk.JDPUQZOS.js +0 -2970
  1064. package/cdn/chunks/chunk.JEIGSLSZ.js +0 -24
  1065. package/cdn/chunks/chunk.JJBJXO7I.js +0 -21
  1066. package/cdn/chunks/chunk.JKOLXWTK.js +0 -139
  1067. package/cdn/chunks/chunk.JMEI2INX.js +0 -25
  1068. package/cdn/chunks/chunk.JRHBBVWD.js +0 -28
  1069. package/cdn/chunks/chunk.JTM2RMRQ.js +0 -24
  1070. package/cdn/chunks/chunk.K2CNA4AH.js +0 -1881
  1071. package/cdn/chunks/chunk.K7P4ZNIR.js +0 -28
  1072. package/cdn/chunks/chunk.KAKFYT62.js +0 -382
  1073. package/cdn/chunks/chunk.KEN5NERU.js +0 -11
  1074. package/cdn/chunks/chunk.KJA2CCWT.js +0 -171
  1075. package/cdn/chunks/chunk.KKJPBFOS.js +0 -21
  1076. package/cdn/chunks/chunk.KMJ37RZ3.js +0 -177
  1077. package/cdn/chunks/chunk.KNUAFTBD.js +0 -11
  1078. package/cdn/chunks/chunk.KPGKBJGQ.js +0 -11
  1079. package/cdn/chunks/chunk.KSUQROY6.js +0 -79
  1080. package/cdn/chunks/chunk.LTUI3QNR.js +0 -25
  1081. package/cdn/chunks/chunk.LY5O4QV2.js +0 -301
  1082. package/cdn/chunks/chunk.LZIP6CLF.js +0 -504
  1083. package/cdn/chunks/chunk.MAI7WJX5.js +0 -1992
  1084. package/cdn/chunks/chunk.MFQNZKSL.js +0 -25
  1085. package/cdn/chunks/chunk.MIJZQQGC.js +0 -382
  1086. package/cdn/chunks/chunk.MPB2O6EL.js +0 -21
  1087. package/cdn/chunks/chunk.MXTFQSH4.js +0 -11
  1088. package/cdn/chunks/chunk.N3COEU4Q.js +0 -11
  1089. package/cdn/chunks/chunk.N4FP5YJM.js +0 -11
  1090. package/cdn/chunks/chunk.NEOOCCRX.js +0 -11
  1091. package/cdn/chunks/chunk.NHKI5IOQ.js +0 -11
  1092. package/cdn/chunks/chunk.NJFOOAX6.js +0 -95
  1093. package/cdn/chunks/chunk.NMC4U2UZ.js +0 -257
  1094. package/cdn/chunks/chunk.NWC5QC3A.js +0 -21
  1095. package/cdn/chunks/chunk.NZYXMJ6J.js +0 -11
  1096. package/cdn/chunks/chunk.O2EW6OJX.js +0 -21
  1097. package/cdn/chunks/chunk.OMX2TEPL.js +0 -11
  1098. package/cdn/chunks/chunk.OSD74RPD.js +0 -89
  1099. package/cdn/chunks/chunk.OVMIORYD.js +0 -11
  1100. package/cdn/chunks/chunk.OVN3X2JB.js +0 -24
  1101. package/cdn/chunks/chunk.P5W76TTI.js +0 -11
  1102. package/cdn/chunks/chunk.PDE7AU7F.js +0 -21
  1103. package/cdn/chunks/chunk.PH23XDAE.js +0 -24
  1104. package/cdn/chunks/chunk.PJYHQXK5.js +0 -11
  1105. package/cdn/chunks/chunk.POFCZUEH.js +0 -11
  1106. package/cdn/chunks/chunk.QE3Y4CZQ.js +0 -21
  1107. package/cdn/chunks/chunk.QN7TUUQV.js +0 -11
  1108. package/cdn/chunks/chunk.QQQCDFVB.js +0 -11
  1109. package/cdn/chunks/chunk.QS25M6RH.js +0 -21
  1110. package/cdn/chunks/chunk.QUMPPHSZ.js +0 -24
  1111. package/cdn/chunks/chunk.R2I6XQFG.js +0 -163
  1112. package/cdn/chunks/chunk.R4APGLP7.js +0 -28
  1113. package/cdn/chunks/chunk.RG4EOM5J.js +0 -44
  1114. package/cdn/chunks/chunk.RIHDSMVI.js +0 -124
  1115. package/cdn/chunks/chunk.RIPHFJLF.js +0 -11
  1116. package/cdn/chunks/chunk.RY46DAZK.js +0 -404
  1117. package/cdn/chunks/chunk.SCGBKOMH.js +0 -24
  1118. package/cdn/chunks/chunk.SOH5F2QY.js +0 -21
  1119. package/cdn/chunks/chunk.SXQYL2XZ.js +0 -25
  1120. package/cdn/chunks/chunk.T4AVTU5A.js +0 -99
  1121. package/cdn/chunks/chunk.T5IZ272E.js +0 -11
  1122. package/cdn/chunks/chunk.T5NYV44S.js +0 -24
  1123. package/cdn/chunks/chunk.TCOAYLJB.js +0 -11
  1124. package/cdn/chunks/chunk.TIWL7N5C.js +0 -393
  1125. package/cdn/chunks/chunk.TU2DOTXL.js +0 -11
  1126. package/cdn/chunks/chunk.TWQ3EL2D.js +0 -21
  1127. package/cdn/chunks/chunk.UF3SAHJQ.js +0 -823
  1128. package/cdn/chunks/chunk.UWMG47MH.js +0 -11
  1129. package/cdn/chunks/chunk.VA2VYQUE.js +0 -28
  1130. package/cdn/chunks/chunk.VB63IAEY.js +0 -28
  1131. package/cdn/chunks/chunk.VJ7FOYMM.js +0 -438
  1132. package/cdn/chunks/chunk.VWCYZTAK.js +0 -69
  1133. package/cdn/chunks/chunk.W6BVVB2O.js +0 -167
  1134. package/cdn/chunks/chunk.W6RKWVXP.js +0 -11
  1135. package/cdn/chunks/chunk.W7KX2J3B.js +0 -28
  1136. package/cdn/chunks/chunk.WA5BGK7G.js +0 -11
  1137. package/cdn/chunks/chunk.WBIKWNRR.js +0 -120
  1138. package/cdn/chunks/chunk.WDLCSDGJ.js +0 -11
  1139. package/cdn/chunks/chunk.WE2HKJTL.js +0 -11
  1140. package/cdn/chunks/chunk.WE335CM2.js +0 -11
  1141. package/cdn/chunks/chunk.WENKIBPX.js +0 -300
  1142. package/cdn/chunks/chunk.WKUBBRDO.js +0 -49
  1143. package/cdn/chunks/chunk.WOQC6KFO.js +0 -123
  1144. package/cdn/chunks/chunk.WUPHFRA5.js +0 -155
  1145. package/cdn/chunks/chunk.WY6I3BUX.js +0 -238
  1146. package/cdn/chunks/chunk.XAUO4ASA.js +0 -137
  1147. package/cdn/chunks/chunk.XDJMRXHF.js +0 -11
  1148. package/cdn/chunks/chunk.XDTCQJW6.js +0 -65
  1149. package/cdn/chunks/chunk.XHEXLCHU.js +0 -11
  1150. package/cdn/chunks/chunk.XLVBHHX7.js +0 -51
  1151. package/cdn/chunks/chunk.XSV5DOEQ.js +0 -11
  1152. package/cdn/chunks/chunk.XVF5P3O6.js +0 -726
  1153. package/cdn/chunks/chunk.XWBB3YZF.js +0 -21
  1154. package/cdn/chunks/chunk.XWSZ3UD2.js +0 -304
  1155. package/cdn/chunks/chunk.Y22JTKGA.js +0 -5847
  1156. package/cdn/chunks/chunk.Y3QDCWGF.js +0 -29
  1157. package/cdn/chunks/chunk.YLHUKNQ6.js +0 -27
  1158. package/cdn/chunks/chunk.YPN7YBLI.js +0 -293
  1159. package/cdn/chunks/chunk.YQA6W6HV.js +0 -29
  1160. package/cdn/chunks/chunk.YTPZBLRE.js +0 -27
  1161. package/cdn/chunks/chunk.YYVJVTG2.js +0 -11
  1162. package/cdn/chunks/chunk.Z3SBCMXQ.js +0 -24
  1163. package/cdn/chunks/chunk.ZDMBCAJB.js +0 -29
  1164. package/cdn/chunks/chunk.ZNGDLIME.js +0 -27
  1165. package/cdn/chunks/chunk.ZP353MK4.js +0 -24
  1166. package/cdn/chunks/chunk.ZPV5ODF4.js +0 -81
  1167. package/cdn/chunks/chunk.ZQDMOZML.js +0 -56
  1168. package/cdn/chunks/chunk.ZTUDZLV5.js +0 -11
  1169. package/dist/chunks/chunk.27FESLTN.js +0 -11
  1170. package/dist/chunks/chunk.2FX6DNML.js +0 -96
  1171. package/dist/chunks/chunk.2KJUI5IO.js +0 -213
  1172. package/dist/chunks/chunk.36BA2HHO.js +0 -286
  1173. package/dist/chunks/chunk.3G2QMJ5P.js +0 -11
  1174. package/dist/chunks/chunk.3IQLPJXJ.js +0 -21
  1175. package/dist/chunks/chunk.3LZW4S27.js +0 -25
  1176. package/dist/chunks/chunk.3NDTANKD.js +0 -24
  1177. package/dist/chunks/chunk.3RPBFEDE.js +0 -302
  1178. package/dist/chunks/chunk.3UXRRTUZ.js +0 -28
  1179. package/dist/chunks/chunk.3Y3F3SN3.js +0 -42
  1180. package/dist/chunks/chunk.3Y5PA7P2.js +0 -11
  1181. package/dist/chunks/chunk.3ZQBXUFQ.js +0 -135
  1182. package/dist/chunks/chunk.4BD7U3TX.js +0 -26
  1183. package/dist/chunks/chunk.4EH6CRRL.js +0 -11
  1184. package/dist/chunks/chunk.4MIF3MOR.js +0 -11
  1185. package/dist/chunks/chunk.4Q3NU54T.js +0 -34
  1186. package/dist/chunks/chunk.4Q4Z7VHZ.js +0 -80
  1187. package/dist/chunks/chunk.4UV3URTK.js +0 -371
  1188. package/dist/chunks/chunk.4UVFSJNN.js +0 -45
  1189. package/dist/chunks/chunk.54TUSYKV.js +0 -11
  1190. package/dist/chunks/chunk.5BLLS676.js +0 -25
  1191. package/dist/chunks/chunk.5QEFBJ6M.js +0 -100
  1192. package/dist/chunks/chunk.5T2AHSSJ.js +0 -21
  1193. package/dist/chunks/chunk.5Z7YPAZI.js +0 -21
  1194. package/dist/chunks/chunk.64PJLQBK.js +0 -11
  1195. package/dist/chunks/chunk.6AD6KEUJ.js +0 -116
  1196. package/dist/chunks/chunk.6LORUQTF.js +0 -11
  1197. package/dist/chunks/chunk.6OHPTVAU.js +0 -111
  1198. package/dist/chunks/chunk.6R4DNMNE.js +0 -311
  1199. package/dist/chunks/chunk.6U7GE4EG.js +0 -21
  1200. package/dist/chunks/chunk.6W5F5MYH.js +0 -11
  1201. package/dist/chunks/chunk.7BU4A5YG.js +0 -11
  1202. package/dist/chunks/chunk.7DGD2XVK.js +0 -11
  1203. package/dist/chunks/chunk.7DVI5SGZ.js +0 -293
  1204. package/dist/chunks/chunk.7FWXG35V.js +0 -119
  1205. package/dist/chunks/chunk.7GSWZF3R.js +0 -494
  1206. package/dist/chunks/chunk.7OE5OXEX.js +0 -52
  1207. package/dist/chunks/chunk.7QAAX3EZ.js +0 -11
  1208. package/dist/chunks/chunk.7RY6QRNG.js +0 -59
  1209. package/dist/chunks/chunk.7SU4UORK.js +0 -371
  1210. package/dist/chunks/chunk.7XYN5E46.js +0 -11
  1211. package/dist/chunks/chunk.7YK2NKMD.js +0 -162
  1212. package/dist/chunks/chunk.A53FXZSD.js +0 -167
  1213. package/dist/chunks/chunk.AEFD6GGW.js +0 -797
  1214. package/dist/chunks/chunk.AJ3ENQ5C.js +0 -55
  1215. package/dist/chunks/chunk.ARQGNI2B.js +0 -11
  1216. package/dist/chunks/chunk.AWXCV27K.js +0 -93
  1217. package/dist/chunks/chunk.AX5VGNBE.js +0 -75
  1218. package/dist/chunks/chunk.BKXHV6VB.js +0 -21
  1219. package/dist/chunks/chunk.BNNPCWW4.js +0 -11
  1220. package/dist/chunks/chunk.BOSE4AJ7.js +0 -11
  1221. package/dist/chunks/chunk.BPQOHH5O.js +0 -21
  1222. package/dist/chunks/chunk.BZELNFKK.js +0 -291
  1223. package/dist/chunks/chunk.C222ASFU.js +0 -21
  1224. package/dist/chunks/chunk.CBSVUDRQ.js +0 -27
  1225. package/dist/chunks/chunk.CETG4ZAE.js +0 -337
  1226. package/dist/chunks/chunk.CFACVCDT.js +0 -25
  1227. package/dist/chunks/chunk.CK3RH23S.js +0 -274
  1228. package/dist/chunks/chunk.CVYA7T6M.js +0 -384
  1229. package/dist/chunks/chunk.DPFZEOGL.js +0 -101
  1230. package/dist/chunks/chunk.EBWLLNIL.js +0 -11
  1231. package/dist/chunks/chunk.EH5YF74Z.js +0 -21
  1232. package/dist/chunks/chunk.EKYXWEBE.js +0 -11
  1233. package/dist/chunks/chunk.EMN3H5QW.js +0 -119
  1234. package/dist/chunks/chunk.EMQO27IG.js +0 -11
  1235. package/dist/chunks/chunk.ENGFIA3R.js +0 -21
  1236. package/dist/chunks/chunk.EP6NJN7S.js +0 -417
  1237. package/dist/chunks/chunk.EZVZXBXQ.js +0 -24
  1238. package/dist/chunks/chunk.F5ZSRYUV.js +0 -550
  1239. package/dist/chunks/chunk.F7FNQ5YN.js +0 -11
  1240. package/dist/chunks/chunk.FFW55VXP.js +0 -11
  1241. package/dist/chunks/chunk.FKB5UJ3U.js +0 -27
  1242. package/dist/chunks/chunk.FLP4DZLX.js +0 -21
  1243. package/dist/chunks/chunk.FTZVBSPQ.js +0 -949
  1244. package/dist/chunks/chunk.FWMIQBLS.js +0 -11
  1245. package/dist/chunks/chunk.G7IAEPI7.js +0 -361
  1246. package/dist/chunks/chunk.G7RPBUJC.js +0 -11
  1247. package/dist/chunks/chunk.GCZYBCE6.js +0 -21
  1248. package/dist/chunks/chunk.GF2G7J3U.js +0 -11
  1249. package/dist/chunks/chunk.GFFJXLSF.js +0 -11
  1250. package/dist/chunks/chunk.GFUXU5KJ.js +0 -11
  1251. package/dist/chunks/chunk.GLHCLWHC.js +0 -24
  1252. package/dist/chunks/chunk.GMYPQTFK.js +0 -33
  1253. package/dist/chunks/chunk.GP2XRWYU.js +0 -11
  1254. package/dist/chunks/chunk.GRY6X3GS.js +0 -11
  1255. package/dist/chunks/chunk.GTIRGE4I.js +0 -11
  1256. package/dist/chunks/chunk.H4X7SBFY.js +0 -25
  1257. package/dist/chunks/chunk.HCVVX3UT.js +0 -21
  1258. package/dist/chunks/chunk.HJLPMBSG.js +0 -21
  1259. package/dist/chunks/chunk.HJYLGWT5.js +0 -210
  1260. package/dist/chunks/chunk.HNESWAQM.js +0 -11
  1261. package/dist/chunks/chunk.HP6BDTJU.js +0 -21
  1262. package/dist/chunks/chunk.HUDXX3XK.js +0 -28
  1263. package/dist/chunks/chunk.HVGOXH2K.js +0 -87
  1264. package/dist/chunks/chunk.I23WDD5U.js +0 -50
  1265. package/dist/chunks/chunk.I34FGIXH.js +0 -45
  1266. package/dist/chunks/chunk.I37AVZUF.js +0 -24
  1267. package/dist/chunks/chunk.I3FHHOIF.js +0 -11
  1268. package/dist/chunks/chunk.I4F6APXV.js +0 -11
  1269. package/dist/chunks/chunk.I4PBQHL3.js +0 -147
  1270. package/dist/chunks/chunk.IJGD3Z6V.js +0 -25
  1271. package/dist/chunks/chunk.IOGIHEAF.js +0 -21
  1272. package/dist/chunks/chunk.IRV34E3C.js +0 -259
  1273. package/dist/chunks/chunk.J5RYNIJI.js +0 -47
  1274. package/dist/chunks/chunk.J7RT2L5U.js +0 -28
  1275. package/dist/chunks/chunk.JJ2ZHCK7.js +0 -24
  1276. package/dist/chunks/chunk.JJSDBCDL.js +0 -24
  1277. package/dist/chunks/chunk.JM3NMOQV.js +0 -11
  1278. package/dist/chunks/chunk.JSJNUSHO.js +0 -11
  1279. package/dist/chunks/chunk.JW5T4OYH.js +0 -109
  1280. package/dist/chunks/chunk.JZTEQUPS.js +0 -100
  1281. package/dist/chunks/chunk.K7JGTRV7.js +0 -46
  1282. package/dist/chunks/chunk.KAW7D32O.js +0 -78
  1283. package/dist/chunks/chunk.KHZJNTNP.js +0 -11
  1284. package/dist/chunks/chunk.KMGPXVAU.js +0 -168
  1285. package/dist/chunks/chunk.KUCVIE3T.js +0 -90
  1286. package/dist/chunks/chunk.KZJTBZUK.js +0 -67
  1287. package/dist/chunks/chunk.L3G777K5.js +0 -21
  1288. package/dist/chunks/chunk.L5KTFP54.js +0 -11
  1289. package/dist/chunks/chunk.LEC34CJJ.js +0 -153
  1290. package/dist/chunks/chunk.LJQ6PZAG.js +0 -231
  1291. package/dist/chunks/chunk.LPM3FEEY.js +0 -91
  1292. package/dist/chunks/chunk.LSFMYJRW.js +0 -21
  1293. package/dist/chunks/chunk.LUDOHTAK.js +0 -11
  1294. package/dist/chunks/chunk.LUDTW2OZ.js +0 -11
  1295. package/dist/chunks/chunk.LZSWXXBT.js +0 -28
  1296. package/dist/chunks/chunk.M7WDYKMS.js +0 -21
  1297. package/dist/chunks/chunk.MCBNRYPV.js +0 -73
  1298. package/dist/chunks/chunk.MF6MS3TQ.js +0 -11
  1299. package/dist/chunks/chunk.MHMANAVS.js +0 -108
  1300. package/dist/chunks/chunk.MI3M7R5Q.js +0 -11
  1301. package/dist/chunks/chunk.MYIGOB6X.js +0 -24
  1302. package/dist/chunks/chunk.N3SJ75IN.js +0 -181
  1303. package/dist/chunks/chunk.N4WPBYFA.js +0 -54
  1304. package/dist/chunks/chunk.N74ZZFAH.js +0 -26
  1305. package/dist/chunks/chunk.NGNGYKBL.js +0 -117
  1306. package/dist/chunks/chunk.NLLZANVJ.js +0 -11
  1307. package/dist/chunks/chunk.NTAMDSTW.js +0 -121
  1308. package/dist/chunks/chunk.NUE4Z3BK.js +0 -29
  1309. package/dist/chunks/chunk.OCX4RLQ3.js +0 -11
  1310. package/dist/chunks/chunk.OOQDFVOF.js +0 -25
  1311. package/dist/chunks/chunk.OV4VB5DD.js +0 -294
  1312. package/dist/chunks/chunk.OYHPCF5A.js +0 -11
  1313. package/dist/chunks/chunk.P4OMHOT5.js +0 -376
  1314. package/dist/chunks/chunk.PASTNL6A.js +0 -11
  1315. package/dist/chunks/chunk.PB6TL5B2.js +0 -25
  1316. package/dist/chunks/chunk.PDAF4KUD.js +0 -134
  1317. package/dist/chunks/chunk.PKQO5Q7X.js +0 -315
  1318. package/dist/chunks/chunk.PMFWCHES.js +0 -28
  1319. package/dist/chunks/chunk.POJDEU4P.js +0 -11
  1320. package/dist/chunks/chunk.Q3NHZCR6.js +0 -11
  1321. package/dist/chunks/chunk.QJFL2QKK.js +0 -11
  1322. package/dist/chunks/chunk.QPUQ6QKT.js +0 -21
  1323. package/dist/chunks/chunk.QPYSNJMK.js +0 -11
  1324. package/dist/chunks/chunk.QRDAH72O.js +0 -25
  1325. package/dist/chunks/chunk.QZ5SCWD4.js +0 -11
  1326. package/dist/chunks/chunk.R5N74XD4.js +0 -75
  1327. package/dist/chunks/chunk.RKE45MKZ.js +0 -358
  1328. package/dist/chunks/chunk.RP4DZ3VC.js +0 -397
  1329. package/dist/chunks/chunk.RVSUQ7V2.js +0 -22
  1330. package/dist/chunks/chunk.SAC257ZY.js +0 -151
  1331. package/dist/chunks/chunk.SFV64E5X.js +0 -192
  1332. package/dist/chunks/chunk.SJKKTKCA.js +0 -85
  1333. package/dist/chunks/chunk.SMDY62OK.js +0 -25
  1334. package/dist/chunks/chunk.SNX253NU.js +0 -21
  1335. package/dist/chunks/chunk.SQ7LGXI6.js +0 -25
  1336. package/dist/chunks/chunk.SX5HRLZ6.js +0 -21
  1337. package/dist/chunks/chunk.SZSOBJR7.js +0 -11
  1338. package/dist/chunks/chunk.T3IJ7FJO.js +0 -39
  1339. package/dist/chunks/chunk.TENOPCST.js +0 -126
  1340. package/dist/chunks/chunk.TMDUU76J.js +0 -227
  1341. package/dist/chunks/chunk.U6WDY5S4.js +0 -24
  1342. package/dist/chunks/chunk.UK2FXRFD.js +0 -29
  1343. package/dist/chunks/chunk.UQOROFX2.js +0 -24
  1344. package/dist/chunks/chunk.UVL7C5UN.js +0 -96
  1345. package/dist/chunks/chunk.UXGZKKIO.js +0 -448
  1346. package/dist/chunks/chunk.UY6FDD5W.js +0 -11
  1347. package/dist/chunks/chunk.UZFQHOYJ.js +0 -24
  1348. package/dist/chunks/chunk.V2BCTWCT.js +0 -11
  1349. package/dist/chunks/chunk.V5O7FRKE.js +0 -24
  1350. package/dist/chunks/chunk.V6DW7BPE.js +0 -63
  1351. package/dist/chunks/chunk.VESXC477.js +0 -156
  1352. package/dist/chunks/chunk.VFXMYHYZ.js +0 -21
  1353. package/dist/chunks/chunk.VFYUZDBZ.js +0 -11
  1354. package/dist/chunks/chunk.VMZXWIMR.js +0 -35
  1355. package/dist/chunks/chunk.VQ5G4BHO.js +0 -11
  1356. package/dist/chunks/chunk.VVA35HTY.js +0 -22
  1357. package/dist/chunks/chunk.W7HVG27A.js +0 -11
  1358. package/dist/chunks/chunk.WK4NXGFN.js +0 -813
  1359. package/dist/chunks/chunk.WM52THS3.js +0 -22
  1360. package/dist/chunks/chunk.WRCWOPKG.js +0 -33
  1361. package/dist/chunks/chunk.WTKH74WS.js +0 -280
  1362. package/dist/chunks/chunk.WWWFM4HA.js +0 -21
  1363. package/dist/chunks/chunk.WZCBQNPZ.js +0 -113
  1364. package/dist/chunks/chunk.XCWRG3GG.js +0 -21
  1365. package/dist/chunks/chunk.XFGX2LE5.js +0 -27
  1366. package/dist/chunks/chunk.XGWFYJNE.js +0 -434
  1367. package/dist/chunks/chunk.XLFD452Y.js +0 -11
  1368. package/dist/chunks/chunk.XMQ2LSZT.js +0 -247
  1369. package/dist/chunks/chunk.XO2EH4DG.js +0 -454
  1370. package/dist/chunks/chunk.XTX7HR6N.js +0 -29
  1371. package/dist/chunks/chunk.YI676TAC.js +0 -28
  1372. package/dist/chunks/chunk.YN53X4O7.js +0 -11
  1373. package/dist/chunks/chunk.YOEKHXTG.js +0 -26
  1374. package/dist/chunks/chunk.YUMX55DW.js +0 -11
  1375. package/dist/chunks/chunk.Z5GW4PSK.js +0 -11
  1376. package/dist/chunks/chunk.ZHKFTU4X.js +0 -11
  1377. package/dist/chunks/chunk.ZNVGWYMG.js +0 -29
  1378. package/dist/chunks/chunk.ZUZCNKCX.js +0 -27
  1379. package/dist/chunks/chunk.ZV7NCPCJ.js +0 -24
@@ -0,0 +1,2982 @@
1
+ import {
2
+ __objRest,
3
+ __publicField,
4
+ __restKey,
5
+ __spreadProps,
6
+ __spreadValues
7
+ } from "./chunk.CZCSAYQZ.js";
8
+
9
+ // node_modules/@tanstack/table-core/build/lib/index.mjs
10
+ function createColumnHelper() {
11
+ return {
12
+ accessor: (accessor, column) => {
13
+ return typeof accessor === "function" ? __spreadProps(__spreadValues({}, column), {
14
+ accessorFn: accessor
15
+ }) : __spreadProps(__spreadValues({}, column), {
16
+ accessorKey: accessor
17
+ });
18
+ },
19
+ display: (column) => column,
20
+ group: (column) => column
21
+ };
22
+ }
23
+ function functionalUpdate(updater, input) {
24
+ return typeof updater === "function" ? updater(input) : updater;
25
+ }
26
+ function makeStateUpdater(key, instance) {
27
+ return (updater) => {
28
+ instance.setState((old) => {
29
+ return __spreadProps(__spreadValues({}, old), {
30
+ [key]: functionalUpdate(updater, old[key])
31
+ });
32
+ });
33
+ };
34
+ }
35
+ function isFunction(d) {
36
+ return d instanceof Function;
37
+ }
38
+ function isNumberArray(d) {
39
+ return Array.isArray(d) && d.every((val) => typeof val === "number");
40
+ }
41
+ function flattenBy(arr, getChildren) {
42
+ const flat = [];
43
+ const recurse = (subArr) => {
44
+ subArr.forEach((item) => {
45
+ flat.push(item);
46
+ const children = getChildren(item);
47
+ if (children != null && children.length) {
48
+ recurse(children);
49
+ }
50
+ });
51
+ };
52
+ recurse(arr);
53
+ return flat;
54
+ }
55
+ function memo(getDeps, fn, opts) {
56
+ let deps = [];
57
+ let result;
58
+ return (depArgs) => {
59
+ let depTime;
60
+ if (opts.key && opts.debug) depTime = Date.now();
61
+ const newDeps = getDeps(depArgs);
62
+ const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);
63
+ if (!depsChanged) {
64
+ return result;
65
+ }
66
+ deps = newDeps;
67
+ let resultTime;
68
+ if (opts.key && opts.debug) resultTime = Date.now();
69
+ result = fn(...newDeps);
70
+ opts == null || opts.onChange == null || opts.onChange(result);
71
+ if (opts.key && opts.debug) {
72
+ if (opts != null && opts.debug()) {
73
+ const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
74
+ const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
75
+ const resultFpsPercentage = resultEndTime / 16;
76
+ const pad = (str, num) => {
77
+ str = String(str);
78
+ while (str.length < num) {
79
+ str = " " + str;
80
+ }
81
+ return str;
82
+ };
83
+ console.info(`%c\u23F1 ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`, `
84
+ font-size: .6rem;
85
+ font-weight: bold;
86
+ color: hsl(${Math.max(0, Math.min(120 - 120 * resultFpsPercentage, 120))}deg 100% 31%);`, opts == null ? void 0 : opts.key);
87
+ }
88
+ }
89
+ return result;
90
+ };
91
+ }
92
+ function getMemoOptions(tableOptions, debugLevel, key, onChange) {
93
+ return {
94
+ debug: () => {
95
+ var _tableOptions$debugAl;
96
+ return (_tableOptions$debugAl = tableOptions == null ? void 0 : tableOptions.debugAll) != null ? _tableOptions$debugAl : tableOptions[debugLevel];
97
+ },
98
+ key: false,
99
+ onChange
100
+ };
101
+ }
102
+ function createCell(table, row, column, columnId) {
103
+ const getRenderValue = () => {
104
+ var _cell$getValue;
105
+ return (_cell$getValue = cell.getValue()) != null ? _cell$getValue : table.options.renderFallbackValue;
106
+ };
107
+ const cell = {
108
+ id: `${row.id}_${column.id}`,
109
+ row,
110
+ column,
111
+ getValue: () => row.getValue(columnId),
112
+ renderValue: getRenderValue,
113
+ getContext: memo(() => [table, column, row, cell], (table2, column2, row2, cell2) => ({
114
+ table: table2,
115
+ column: column2,
116
+ row: row2,
117
+ cell: cell2,
118
+ getValue: cell2.getValue,
119
+ renderValue: cell2.renderValue
120
+ }), getMemoOptions(table.options, "debugCells", "cell.getContext"))
121
+ };
122
+ table._features.forEach((feature) => {
123
+ feature.createCell == null || feature.createCell(cell, column, row, table);
124
+ }, {});
125
+ return cell;
126
+ }
127
+ function createColumn(table, columnDef, depth, parent) {
128
+ var _ref, _resolvedColumnDef$id;
129
+ const defaultColumn = table._getDefaultColumnDef();
130
+ const resolvedColumnDef = __spreadValues(__spreadValues({}, defaultColumn), columnDef);
131
+ const accessorKey = resolvedColumnDef.accessorKey;
132
+ let id = (_ref = (_resolvedColumnDef$id = resolvedColumnDef.id) != null ? _resolvedColumnDef$id : accessorKey ? typeof String.prototype.replaceAll === "function" ? accessorKey.replaceAll(".", "_") : accessorKey.replace(/\./g, "_") : void 0) != null ? _ref : typeof resolvedColumnDef.header === "string" ? resolvedColumnDef.header : void 0;
133
+ let accessorFn;
134
+ if (resolvedColumnDef.accessorFn) {
135
+ accessorFn = resolvedColumnDef.accessorFn;
136
+ } else if (accessorKey) {
137
+ if (accessorKey.includes(".")) {
138
+ accessorFn = (originalRow) => {
139
+ let result = originalRow;
140
+ for (const key of accessorKey.split(".")) {
141
+ var _result;
142
+ result = (_result = result) == null ? void 0 : _result[key];
143
+ if (false) {
144
+ console.warn(`"${key}" in deeply nested key "${accessorKey}" returned undefined.`);
145
+ }
146
+ }
147
+ return result;
148
+ };
149
+ } else {
150
+ accessorFn = (originalRow) => originalRow[resolvedColumnDef.accessorKey];
151
+ }
152
+ }
153
+ if (!id) {
154
+ if (false) {
155
+ throw new Error(resolvedColumnDef.accessorFn ? `Columns require an id when using an accessorFn` : `Columns require an id when using a non-string header`);
156
+ }
157
+ throw new Error();
158
+ }
159
+ let column = {
160
+ id: `${String(id)}`,
161
+ accessorFn,
162
+ parent,
163
+ depth,
164
+ columnDef: resolvedColumnDef,
165
+ columns: [],
166
+ getFlatColumns: memo(() => [true], () => {
167
+ var _column$columns;
168
+ return [column, ...(_column$columns = column.columns) == null ? void 0 : _column$columns.flatMap((d) => d.getFlatColumns())];
169
+ }, getMemoOptions(table.options, "debugColumns", "column.getFlatColumns")),
170
+ getLeafColumns: memo(() => [table._getOrderColumnsFn()], (orderColumns2) => {
171
+ var _column$columns2;
172
+ if ((_column$columns2 = column.columns) != null && _column$columns2.length) {
173
+ let leafColumns = column.columns.flatMap((column2) => column2.getLeafColumns());
174
+ return orderColumns2(leafColumns);
175
+ }
176
+ return [column];
177
+ }, getMemoOptions(table.options, "debugColumns", "column.getLeafColumns"))
178
+ };
179
+ for (const feature of table._features) {
180
+ feature.createColumn == null || feature.createColumn(column, table);
181
+ }
182
+ return column;
183
+ }
184
+ var debug = "debugHeaders";
185
+ function createHeader(table, column, options) {
186
+ var _options$id;
187
+ const id = (_options$id = options.id) != null ? _options$id : column.id;
188
+ let header = {
189
+ id,
190
+ column,
191
+ index: options.index,
192
+ isPlaceholder: !!options.isPlaceholder,
193
+ placeholderId: options.placeholderId,
194
+ depth: options.depth,
195
+ subHeaders: [],
196
+ colSpan: 0,
197
+ rowSpan: 0,
198
+ headerGroup: null,
199
+ getLeafHeaders: () => {
200
+ const leafHeaders = [];
201
+ const recurseHeader = (h) => {
202
+ if (h.subHeaders && h.subHeaders.length) {
203
+ h.subHeaders.map(recurseHeader);
204
+ }
205
+ leafHeaders.push(h);
206
+ };
207
+ recurseHeader(header);
208
+ return leafHeaders;
209
+ },
210
+ getContext: () => ({
211
+ table,
212
+ header,
213
+ column
214
+ })
215
+ };
216
+ table._features.forEach((feature) => {
217
+ feature.createHeader == null || feature.createHeader(header, table);
218
+ });
219
+ return header;
220
+ }
221
+ var Headers = {
222
+ createTable: (table) => {
223
+ table.getHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
224
+ var _left$map$filter, _right$map$filter;
225
+ const leftColumns = (_left$map$filter = left == null ? void 0 : left.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter : [];
226
+ const rightColumns = (_right$map$filter = right == null ? void 0 : right.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter : [];
227
+ const centerColumns = leafColumns.filter((column) => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
228
+ const headerGroups = buildHeaderGroups(allColumns, [...leftColumns, ...centerColumns, ...rightColumns], table);
229
+ return headerGroups;
230
+ }, getMemoOptions(table.options, debug, "getHeaderGroups"));
231
+ table.getCenterHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
232
+ leafColumns = leafColumns.filter((column) => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
233
+ return buildHeaderGroups(allColumns, leafColumns, table, "center");
234
+ }, getMemoOptions(table.options, debug, "getCenterHeaderGroups"));
235
+ table.getLeftHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left], (allColumns, leafColumns, left) => {
236
+ var _left$map$filter2;
237
+ const orderedLeafColumns = (_left$map$filter2 = left == null ? void 0 : left.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter2 : [];
238
+ return buildHeaderGroups(allColumns, orderedLeafColumns, table, "left");
239
+ }, getMemoOptions(table.options, debug, "getLeftHeaderGroups"));
240
+ table.getRightHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.right], (allColumns, leafColumns, right) => {
241
+ var _right$map$filter2;
242
+ const orderedLeafColumns = (_right$map$filter2 = right == null ? void 0 : right.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter2 : [];
243
+ return buildHeaderGroups(allColumns, orderedLeafColumns, table, "right");
244
+ }, getMemoOptions(table.options, debug, "getRightHeaderGroups"));
245
+ table.getFooterGroups = memo(() => [table.getHeaderGroups()], (headerGroups) => {
246
+ return [...headerGroups].reverse();
247
+ }, getMemoOptions(table.options, debug, "getFooterGroups"));
248
+ table.getLeftFooterGroups = memo(() => [table.getLeftHeaderGroups()], (headerGroups) => {
249
+ return [...headerGroups].reverse();
250
+ }, getMemoOptions(table.options, debug, "getLeftFooterGroups"));
251
+ table.getCenterFooterGroups = memo(() => [table.getCenterHeaderGroups()], (headerGroups) => {
252
+ return [...headerGroups].reverse();
253
+ }, getMemoOptions(table.options, debug, "getCenterFooterGroups"));
254
+ table.getRightFooterGroups = memo(() => [table.getRightHeaderGroups()], (headerGroups) => {
255
+ return [...headerGroups].reverse();
256
+ }, getMemoOptions(table.options, debug, "getRightFooterGroups"));
257
+ table.getFlatHeaders = memo(() => [table.getHeaderGroups()], (headerGroups) => {
258
+ return headerGroups.map((headerGroup) => {
259
+ return headerGroup.headers;
260
+ }).flat();
261
+ }, getMemoOptions(table.options, debug, "getFlatHeaders"));
262
+ table.getLeftFlatHeaders = memo(() => [table.getLeftHeaderGroups()], (left) => {
263
+ return left.map((headerGroup) => {
264
+ return headerGroup.headers;
265
+ }).flat();
266
+ }, getMemoOptions(table.options, debug, "getLeftFlatHeaders"));
267
+ table.getCenterFlatHeaders = memo(() => [table.getCenterHeaderGroups()], (left) => {
268
+ return left.map((headerGroup) => {
269
+ return headerGroup.headers;
270
+ }).flat();
271
+ }, getMemoOptions(table.options, debug, "getCenterFlatHeaders"));
272
+ table.getRightFlatHeaders = memo(() => [table.getRightHeaderGroups()], (left) => {
273
+ return left.map((headerGroup) => {
274
+ return headerGroup.headers;
275
+ }).flat();
276
+ }, getMemoOptions(table.options, debug, "getRightFlatHeaders"));
277
+ table.getCenterLeafHeaders = memo(() => [table.getCenterFlatHeaders()], (flatHeaders) => {
278
+ return flatHeaders.filter((header) => {
279
+ var _header$subHeaders;
280
+ return !((_header$subHeaders = header.subHeaders) != null && _header$subHeaders.length);
281
+ });
282
+ }, getMemoOptions(table.options, debug, "getCenterLeafHeaders"));
283
+ table.getLeftLeafHeaders = memo(() => [table.getLeftFlatHeaders()], (flatHeaders) => {
284
+ return flatHeaders.filter((header) => {
285
+ var _header$subHeaders2;
286
+ return !((_header$subHeaders2 = header.subHeaders) != null && _header$subHeaders2.length);
287
+ });
288
+ }, getMemoOptions(table.options, debug, "getLeftLeafHeaders"));
289
+ table.getRightLeafHeaders = memo(() => [table.getRightFlatHeaders()], (flatHeaders) => {
290
+ return flatHeaders.filter((header) => {
291
+ var _header$subHeaders3;
292
+ return !((_header$subHeaders3 = header.subHeaders) != null && _header$subHeaders3.length);
293
+ });
294
+ }, getMemoOptions(table.options, debug, "getRightLeafHeaders"));
295
+ table.getLeafHeaders = memo(() => [table.getLeftHeaderGroups(), table.getCenterHeaderGroups(), table.getRightHeaderGroups()], (left, center, right) => {
296
+ var _left$0$headers, _left$, _center$0$headers, _center$, _right$0$headers, _right$;
297
+ return [...(_left$0$headers = (_left$ = left[0]) == null ? void 0 : _left$.headers) != null ? _left$0$headers : [], ...(_center$0$headers = (_center$ = center[0]) == null ? void 0 : _center$.headers) != null ? _center$0$headers : [], ...(_right$0$headers = (_right$ = right[0]) == null ? void 0 : _right$.headers) != null ? _right$0$headers : []].map((header) => {
298
+ return header.getLeafHeaders();
299
+ }).flat();
300
+ }, getMemoOptions(table.options, debug, "getLeafHeaders"));
301
+ }
302
+ };
303
+ function buildHeaderGroups(allColumns, columnsToGroup, table, headerFamily) {
304
+ var _headerGroups$0$heade, _headerGroups$;
305
+ let maxDepth = 0;
306
+ const findMaxDepth = function(columns, depth) {
307
+ if (depth === void 0) {
308
+ depth = 1;
309
+ }
310
+ maxDepth = Math.max(maxDepth, depth);
311
+ columns.filter((column) => column.getIsVisible()).forEach((column) => {
312
+ var _column$columns;
313
+ if ((_column$columns = column.columns) != null && _column$columns.length) {
314
+ findMaxDepth(column.columns, depth + 1);
315
+ }
316
+ }, 0);
317
+ };
318
+ findMaxDepth(allColumns);
319
+ let headerGroups = [];
320
+ const createHeaderGroup = (headersToGroup, depth) => {
321
+ const headerGroup = {
322
+ depth,
323
+ id: [headerFamily, `${depth}`].filter(Boolean).join("_"),
324
+ headers: []
325
+ };
326
+ const pendingParentHeaders = [];
327
+ headersToGroup.forEach((headerToGroup) => {
328
+ const latestPendingParentHeader = [...pendingParentHeaders].reverse()[0];
329
+ const isLeafHeader = headerToGroup.column.depth === headerGroup.depth;
330
+ let column;
331
+ let isPlaceholder = false;
332
+ if (isLeafHeader && headerToGroup.column.parent) {
333
+ column = headerToGroup.column.parent;
334
+ } else {
335
+ column = headerToGroup.column;
336
+ isPlaceholder = true;
337
+ }
338
+ if (latestPendingParentHeader && (latestPendingParentHeader == null ? void 0 : latestPendingParentHeader.column) === column) {
339
+ latestPendingParentHeader.subHeaders.push(headerToGroup);
340
+ } else {
341
+ const header = createHeader(table, column, {
342
+ id: [headerFamily, depth, column.id, headerToGroup == null ? void 0 : headerToGroup.id].filter(Boolean).join("_"),
343
+ isPlaceholder,
344
+ placeholderId: isPlaceholder ? `${pendingParentHeaders.filter((d) => d.column === column).length}` : void 0,
345
+ depth,
346
+ index: pendingParentHeaders.length
347
+ });
348
+ header.subHeaders.push(headerToGroup);
349
+ pendingParentHeaders.push(header);
350
+ }
351
+ headerGroup.headers.push(headerToGroup);
352
+ headerToGroup.headerGroup = headerGroup;
353
+ });
354
+ headerGroups.push(headerGroup);
355
+ if (depth > 0) {
356
+ createHeaderGroup(pendingParentHeaders, depth - 1);
357
+ }
358
+ };
359
+ const bottomHeaders = columnsToGroup.map((column, index) => createHeader(table, column, {
360
+ depth: maxDepth,
361
+ index
362
+ }));
363
+ createHeaderGroup(bottomHeaders, maxDepth - 1);
364
+ headerGroups.reverse();
365
+ const recurseHeadersForSpans = (headers) => {
366
+ const filteredHeaders = headers.filter((header) => header.column.getIsVisible());
367
+ return filteredHeaders.map((header) => {
368
+ let colSpan = 0;
369
+ let rowSpan = 0;
370
+ let childRowSpans = [0];
371
+ if (header.subHeaders && header.subHeaders.length) {
372
+ childRowSpans = [];
373
+ recurseHeadersForSpans(header.subHeaders).forEach((_ref) => {
374
+ let {
375
+ colSpan: childColSpan,
376
+ rowSpan: childRowSpan
377
+ } = _ref;
378
+ colSpan += childColSpan;
379
+ childRowSpans.push(childRowSpan);
380
+ });
381
+ } else {
382
+ colSpan = 1;
383
+ }
384
+ const minChildRowSpan = Math.min(...childRowSpans);
385
+ rowSpan = rowSpan + minChildRowSpan;
386
+ header.colSpan = colSpan;
387
+ header.rowSpan = rowSpan;
388
+ return {
389
+ colSpan,
390
+ rowSpan
391
+ };
392
+ });
393
+ };
394
+ recurseHeadersForSpans((_headerGroups$0$heade = (_headerGroups$ = headerGroups[0]) == null ? void 0 : _headerGroups$.headers) != null ? _headerGroups$0$heade : []);
395
+ return headerGroups;
396
+ }
397
+ var createRow = (table, id, original, rowIndex, depth, subRows, parentId) => {
398
+ let row = {
399
+ id,
400
+ index: rowIndex,
401
+ original,
402
+ depth,
403
+ parentId,
404
+ _valuesCache: {},
405
+ _uniqueValuesCache: {},
406
+ getValue: (columnId) => {
407
+ if (row._valuesCache.hasOwnProperty(columnId)) {
408
+ return row._valuesCache[columnId];
409
+ }
410
+ const column = table.getColumn(columnId);
411
+ if (!(column != null && column.accessorFn)) {
412
+ return void 0;
413
+ }
414
+ row._valuesCache[columnId] = column.accessorFn(row.original, rowIndex);
415
+ return row._valuesCache[columnId];
416
+ },
417
+ getUniqueValues: (columnId) => {
418
+ if (row._uniqueValuesCache.hasOwnProperty(columnId)) {
419
+ return row._uniqueValuesCache[columnId];
420
+ }
421
+ const column = table.getColumn(columnId);
422
+ if (!(column != null && column.accessorFn)) {
423
+ return void 0;
424
+ }
425
+ if (!column.columnDef.getUniqueValues) {
426
+ row._uniqueValuesCache[columnId] = [row.getValue(columnId)];
427
+ return row._uniqueValuesCache[columnId];
428
+ }
429
+ row._uniqueValuesCache[columnId] = column.columnDef.getUniqueValues(row.original, rowIndex);
430
+ return row._uniqueValuesCache[columnId];
431
+ },
432
+ renderValue: (columnId) => {
433
+ var _row$getValue;
434
+ return (_row$getValue = row.getValue(columnId)) != null ? _row$getValue : table.options.renderFallbackValue;
435
+ },
436
+ subRows: subRows != null ? subRows : [],
437
+ getLeafRows: () => flattenBy(row.subRows, (d) => d.subRows),
438
+ getParentRow: () => row.parentId ? table.getRow(row.parentId, true) : void 0,
439
+ getParentRows: () => {
440
+ let parentRows = [];
441
+ let currentRow = row;
442
+ while (true) {
443
+ const parentRow = currentRow.getParentRow();
444
+ if (!parentRow) break;
445
+ parentRows.push(parentRow);
446
+ currentRow = parentRow;
447
+ }
448
+ return parentRows.reverse();
449
+ },
450
+ getAllCells: memo(() => [table.getAllLeafColumns()], (leafColumns) => {
451
+ return leafColumns.map((column) => {
452
+ return createCell(table, row, column, column.id);
453
+ });
454
+ }, getMemoOptions(table.options, "debugRows", "getAllCells")),
455
+ _getAllCellsByColumnId: memo(() => [row.getAllCells()], (allCells) => {
456
+ return allCells.reduce((acc, cell) => {
457
+ acc[cell.column.id] = cell;
458
+ return acc;
459
+ }, {});
460
+ }, getMemoOptions(table.options, "debugRows", "getAllCellsByColumnId"))
461
+ };
462
+ for (let i = 0; i < table._features.length; i++) {
463
+ const feature = table._features[i];
464
+ feature == null || feature.createRow == null || feature.createRow(row, table);
465
+ }
466
+ return row;
467
+ };
468
+ var ColumnFaceting = {
469
+ createColumn: (column, table) => {
470
+ column._getFacetedRowModel = table.options.getFacetedRowModel && table.options.getFacetedRowModel(table, column.id);
471
+ column.getFacetedRowModel = () => {
472
+ if (!column._getFacetedRowModel) {
473
+ return table.getPreFilteredRowModel();
474
+ }
475
+ return column._getFacetedRowModel();
476
+ };
477
+ column._getFacetedUniqueValues = table.options.getFacetedUniqueValues && table.options.getFacetedUniqueValues(table, column.id);
478
+ column.getFacetedUniqueValues = () => {
479
+ if (!column._getFacetedUniqueValues) {
480
+ return /* @__PURE__ */ new Map();
481
+ }
482
+ return column._getFacetedUniqueValues();
483
+ };
484
+ column._getFacetedMinMaxValues = table.options.getFacetedMinMaxValues && table.options.getFacetedMinMaxValues(table, column.id);
485
+ column.getFacetedMinMaxValues = () => {
486
+ if (!column._getFacetedMinMaxValues) {
487
+ return void 0;
488
+ }
489
+ return column._getFacetedMinMaxValues();
490
+ };
491
+ }
492
+ };
493
+ var includesString = (row, columnId, filterValue) => {
494
+ var _filterValue$toString, _row$getValue;
495
+ const search = filterValue == null || (_filterValue$toString = filterValue.toString()) == null ? void 0 : _filterValue$toString.toLowerCase();
496
+ return Boolean((_row$getValue = row.getValue(columnId)) == null || (_row$getValue = _row$getValue.toString()) == null || (_row$getValue = _row$getValue.toLowerCase()) == null ? void 0 : _row$getValue.includes(search));
497
+ };
498
+ includesString.autoRemove = (val) => testFalsey(val);
499
+ var includesStringSensitive = (row, columnId, filterValue) => {
500
+ var _row$getValue2;
501
+ return Boolean((_row$getValue2 = row.getValue(columnId)) == null || (_row$getValue2 = _row$getValue2.toString()) == null ? void 0 : _row$getValue2.includes(filterValue));
502
+ };
503
+ includesStringSensitive.autoRemove = (val) => testFalsey(val);
504
+ var equalsString = (row, columnId, filterValue) => {
505
+ var _row$getValue3;
506
+ return ((_row$getValue3 = row.getValue(columnId)) == null || (_row$getValue3 = _row$getValue3.toString()) == null ? void 0 : _row$getValue3.toLowerCase()) === (filterValue == null ? void 0 : filterValue.toLowerCase());
507
+ };
508
+ equalsString.autoRemove = (val) => testFalsey(val);
509
+ var arrIncludes = (row, columnId, filterValue) => {
510
+ var _row$getValue4;
511
+ return (_row$getValue4 = row.getValue(columnId)) == null ? void 0 : _row$getValue4.includes(filterValue);
512
+ };
513
+ arrIncludes.autoRemove = (val) => testFalsey(val);
514
+ var arrIncludesAll = (row, columnId, filterValue) => {
515
+ return !filterValue.some((val) => {
516
+ var _row$getValue5;
517
+ return !((_row$getValue5 = row.getValue(columnId)) != null && _row$getValue5.includes(val));
518
+ });
519
+ };
520
+ arrIncludesAll.autoRemove = (val) => testFalsey(val) || !(val != null && val.length);
521
+ var arrIncludesSome = (row, columnId, filterValue) => {
522
+ return filterValue.some((val) => {
523
+ var _row$getValue6;
524
+ return (_row$getValue6 = row.getValue(columnId)) == null ? void 0 : _row$getValue6.includes(val);
525
+ });
526
+ };
527
+ arrIncludesSome.autoRemove = (val) => testFalsey(val) || !(val != null && val.length);
528
+ var equals = (row, columnId, filterValue) => {
529
+ return row.getValue(columnId) === filterValue;
530
+ };
531
+ equals.autoRemove = (val) => testFalsey(val);
532
+ var weakEquals = (row, columnId, filterValue) => {
533
+ return row.getValue(columnId) == filterValue;
534
+ };
535
+ weakEquals.autoRemove = (val) => testFalsey(val);
536
+ var inNumberRange = (row, columnId, filterValue) => {
537
+ let [min2, max2] = filterValue;
538
+ const rowValue = row.getValue(columnId);
539
+ return rowValue >= min2 && rowValue <= max2;
540
+ };
541
+ inNumberRange.resolveFilterValue = (val) => {
542
+ let [unsafeMin, unsafeMax] = val;
543
+ let parsedMin = typeof unsafeMin !== "number" ? parseFloat(unsafeMin) : unsafeMin;
544
+ let parsedMax = typeof unsafeMax !== "number" ? parseFloat(unsafeMax) : unsafeMax;
545
+ let min2 = unsafeMin === null || Number.isNaN(parsedMin) ? -Infinity : parsedMin;
546
+ let max2 = unsafeMax === null || Number.isNaN(parsedMax) ? Infinity : parsedMax;
547
+ if (min2 > max2) {
548
+ const temp = min2;
549
+ min2 = max2;
550
+ max2 = temp;
551
+ }
552
+ return [min2, max2];
553
+ };
554
+ inNumberRange.autoRemove = (val) => testFalsey(val) || testFalsey(val[0]) && testFalsey(val[1]);
555
+ var filterFns = {
556
+ includesString,
557
+ includesStringSensitive,
558
+ equalsString,
559
+ arrIncludes,
560
+ arrIncludesAll,
561
+ arrIncludesSome,
562
+ equals,
563
+ weakEquals,
564
+ inNumberRange
565
+ };
566
+ function testFalsey(val) {
567
+ return val === void 0 || val === null || val === "";
568
+ }
569
+ var ColumnFiltering = {
570
+ getDefaultColumnDef: () => {
571
+ return {
572
+ filterFn: "auto"
573
+ };
574
+ },
575
+ getInitialState: (state) => {
576
+ return __spreadValues({
577
+ columnFilters: []
578
+ }, state);
579
+ },
580
+ getDefaultOptions: (table) => {
581
+ return {
582
+ onColumnFiltersChange: makeStateUpdater("columnFilters", table),
583
+ filterFromLeafRows: false,
584
+ maxLeafRowFilterDepth: 100
585
+ };
586
+ },
587
+ createColumn: (column, table) => {
588
+ column.getAutoFilterFn = () => {
589
+ const firstRow = table.getCoreRowModel().flatRows[0];
590
+ const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
591
+ if (typeof value === "string") {
592
+ return filterFns.includesString;
593
+ }
594
+ if (typeof value === "number") {
595
+ return filterFns.inNumberRange;
596
+ }
597
+ if (typeof value === "boolean") {
598
+ return filterFns.equals;
599
+ }
600
+ if (value !== null && typeof value === "object") {
601
+ return filterFns.equals;
602
+ }
603
+ if (Array.isArray(value)) {
604
+ return filterFns.arrIncludes;
605
+ }
606
+ return filterFns.weakEquals;
607
+ };
608
+ column.getFilterFn = () => {
609
+ var _table$options$filter, _table$options$filter2;
610
+ return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === "auto" ? column.getAutoFilterFn() : (
611
+ // @ts-ignore
612
+ (_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[column.columnDef.filterFn]) != null ? _table$options$filter : filterFns[column.columnDef.filterFn]
613
+ );
614
+ };
615
+ column.getCanFilter = () => {
616
+ var _column$columnDef$ena, _table$options$enable, _table$options$enable2;
617
+ return ((_column$columnDef$ena = column.columnDef.enableColumnFilter) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableColumnFilters) != null ? _table$options$enable : true) && ((_table$options$enable2 = table.options.enableFilters) != null ? _table$options$enable2 : true) && !!column.accessorFn;
618
+ };
619
+ column.getIsFiltered = () => column.getFilterIndex() > -1;
620
+ column.getFilterValue = () => {
621
+ var _table$getState$colum;
622
+ return (_table$getState$colum = table.getState().columnFilters) == null || (_table$getState$colum = _table$getState$colum.find((d) => d.id === column.id)) == null ? void 0 : _table$getState$colum.value;
623
+ };
624
+ column.getFilterIndex = () => {
625
+ var _table$getState$colum2, _table$getState$colum3;
626
+ return (_table$getState$colum2 = (_table$getState$colum3 = table.getState().columnFilters) == null ? void 0 : _table$getState$colum3.findIndex((d) => d.id === column.id)) != null ? _table$getState$colum2 : -1;
627
+ };
628
+ column.setFilterValue = (value) => {
629
+ table.setColumnFilters((old) => {
630
+ const filterFn = column.getFilterFn();
631
+ const previousFilter = old == null ? void 0 : old.find((d) => d.id === column.id);
632
+ const newFilter = functionalUpdate(value, previousFilter ? previousFilter.value : void 0);
633
+ if (shouldAutoRemoveFilter(filterFn, newFilter, column)) {
634
+ var _old$filter;
635
+ return (_old$filter = old == null ? void 0 : old.filter((d) => d.id !== column.id)) != null ? _old$filter : [];
636
+ }
637
+ const newFilterObj = {
638
+ id: column.id,
639
+ value: newFilter
640
+ };
641
+ if (previousFilter) {
642
+ var _old$map;
643
+ return (_old$map = old == null ? void 0 : old.map((d) => {
644
+ if (d.id === column.id) {
645
+ return newFilterObj;
646
+ }
647
+ return d;
648
+ })) != null ? _old$map : [];
649
+ }
650
+ if (old != null && old.length) {
651
+ return [...old, newFilterObj];
652
+ }
653
+ return [newFilterObj];
654
+ });
655
+ };
656
+ },
657
+ createRow: (row, _table) => {
658
+ row.columnFilters = {};
659
+ row.columnFiltersMeta = {};
660
+ },
661
+ createTable: (table) => {
662
+ table.setColumnFilters = (updater) => {
663
+ const leafColumns = table.getAllLeafColumns();
664
+ const updateFn = (old) => {
665
+ var _functionalUpdate;
666
+ return (_functionalUpdate = functionalUpdate(updater, old)) == null ? void 0 : _functionalUpdate.filter((filter) => {
667
+ const column = leafColumns.find((d) => d.id === filter.id);
668
+ if (column) {
669
+ const filterFn = column.getFilterFn();
670
+ if (shouldAutoRemoveFilter(filterFn, filter.value, column)) {
671
+ return false;
672
+ }
673
+ }
674
+ return true;
675
+ });
676
+ };
677
+ table.options.onColumnFiltersChange == null || table.options.onColumnFiltersChange(updateFn);
678
+ };
679
+ table.resetColumnFilters = (defaultState) => {
680
+ var _table$initialState$c, _table$initialState;
681
+ table.setColumnFilters(defaultState ? [] : (_table$initialState$c = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.columnFilters) != null ? _table$initialState$c : []);
682
+ };
683
+ table.getPreFilteredRowModel = () => table.getCoreRowModel();
684
+ table.getFilteredRowModel = () => {
685
+ if (!table._getFilteredRowModel && table.options.getFilteredRowModel) {
686
+ table._getFilteredRowModel = table.options.getFilteredRowModel(table);
687
+ }
688
+ if (table.options.manualFiltering || !table._getFilteredRowModel) {
689
+ return table.getPreFilteredRowModel();
690
+ }
691
+ return table._getFilteredRowModel();
692
+ };
693
+ }
694
+ };
695
+ function shouldAutoRemoveFilter(filterFn, value, column) {
696
+ return (filterFn && filterFn.autoRemove ? filterFn.autoRemove(value, column) : false) || typeof value === "undefined" || typeof value === "string" && !value;
697
+ }
698
+ var sum = (columnId, _leafRows, childRows) => {
699
+ return childRows.reduce((sum2, next) => {
700
+ const nextValue = next.getValue(columnId);
701
+ return sum2 + (typeof nextValue === "number" ? nextValue : 0);
702
+ }, 0);
703
+ };
704
+ var min = (columnId, _leafRows, childRows) => {
705
+ let min2;
706
+ childRows.forEach((row) => {
707
+ const value = row.getValue(columnId);
708
+ if (value != null && (min2 > value || min2 === void 0 && value >= value)) {
709
+ min2 = value;
710
+ }
711
+ });
712
+ return min2;
713
+ };
714
+ var max = (columnId, _leafRows, childRows) => {
715
+ let max2;
716
+ childRows.forEach((row) => {
717
+ const value = row.getValue(columnId);
718
+ if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
719
+ max2 = value;
720
+ }
721
+ });
722
+ return max2;
723
+ };
724
+ var extent = (columnId, _leafRows, childRows) => {
725
+ let min2;
726
+ let max2;
727
+ childRows.forEach((row) => {
728
+ const value = row.getValue(columnId);
729
+ if (value != null) {
730
+ if (min2 === void 0) {
731
+ if (value >= value) min2 = max2 = value;
732
+ } else {
733
+ if (min2 > value) min2 = value;
734
+ if (max2 < value) max2 = value;
735
+ }
736
+ }
737
+ });
738
+ return [min2, max2];
739
+ };
740
+ var mean = (columnId, leafRows) => {
741
+ let count2 = 0;
742
+ let sum2 = 0;
743
+ leafRows.forEach((row) => {
744
+ let value = row.getValue(columnId);
745
+ if (value != null && (value = +value) >= value) {
746
+ ++count2, sum2 += value;
747
+ }
748
+ });
749
+ if (count2) return sum2 / count2;
750
+ return;
751
+ };
752
+ var median = (columnId, leafRows) => {
753
+ if (!leafRows.length) {
754
+ return;
755
+ }
756
+ const values = leafRows.map((row) => row.getValue(columnId));
757
+ if (!isNumberArray(values)) {
758
+ return;
759
+ }
760
+ if (values.length === 1) {
761
+ return values[0];
762
+ }
763
+ const mid = Math.floor(values.length / 2);
764
+ const nums = values.sort((a, b) => a - b);
765
+ return values.length % 2 !== 0 ? nums[mid] : (nums[mid - 1] + nums[mid]) / 2;
766
+ };
767
+ var unique = (columnId, leafRows) => {
768
+ return Array.from(new Set(leafRows.map((d) => d.getValue(columnId))).values());
769
+ };
770
+ var uniqueCount = (columnId, leafRows) => {
771
+ return new Set(leafRows.map((d) => d.getValue(columnId))).size;
772
+ };
773
+ var count = (_columnId, leafRows) => {
774
+ return leafRows.length;
775
+ };
776
+ var aggregationFns = {
777
+ sum,
778
+ min,
779
+ max,
780
+ extent,
781
+ mean,
782
+ median,
783
+ unique,
784
+ uniqueCount,
785
+ count
786
+ };
787
+ var ColumnGrouping = {
788
+ getDefaultColumnDef: () => {
789
+ return {
790
+ aggregatedCell: (props) => {
791
+ var _toString, _props$getValue;
792
+ return (_toString = (_props$getValue = props.getValue()) == null || _props$getValue.toString == null ? void 0 : _props$getValue.toString()) != null ? _toString : null;
793
+ },
794
+ aggregationFn: "auto"
795
+ };
796
+ },
797
+ getInitialState: (state) => {
798
+ return __spreadValues({
799
+ grouping: []
800
+ }, state);
801
+ },
802
+ getDefaultOptions: (table) => {
803
+ return {
804
+ onGroupingChange: makeStateUpdater("grouping", table),
805
+ groupedColumnMode: "reorder"
806
+ };
807
+ },
808
+ createColumn: (column, table) => {
809
+ column.toggleGrouping = () => {
810
+ table.setGrouping((old) => {
811
+ if (old != null && old.includes(column.id)) {
812
+ return old.filter((d) => d !== column.id);
813
+ }
814
+ return [...old != null ? old : [], column.id];
815
+ });
816
+ };
817
+ column.getCanGroup = () => {
818
+ var _column$columnDef$ena, _table$options$enable;
819
+ return ((_column$columnDef$ena = column.columnDef.enableGrouping) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableGrouping) != null ? _table$options$enable : true) && (!!column.accessorFn || !!column.columnDef.getGroupingValue);
820
+ };
821
+ column.getIsGrouped = () => {
822
+ var _table$getState$group;
823
+ return (_table$getState$group = table.getState().grouping) == null ? void 0 : _table$getState$group.includes(column.id);
824
+ };
825
+ column.getGroupedIndex = () => {
826
+ var _table$getState$group2;
827
+ return (_table$getState$group2 = table.getState().grouping) == null ? void 0 : _table$getState$group2.indexOf(column.id);
828
+ };
829
+ column.getToggleGroupingHandler = () => {
830
+ const canGroup = column.getCanGroup();
831
+ return () => {
832
+ if (!canGroup) return;
833
+ column.toggleGrouping();
834
+ };
835
+ };
836
+ column.getAutoAggregationFn = () => {
837
+ const firstRow = table.getCoreRowModel().flatRows[0];
838
+ const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
839
+ if (typeof value === "number") {
840
+ return aggregationFns.sum;
841
+ }
842
+ if (Object.prototype.toString.call(value) === "[object Date]") {
843
+ return aggregationFns.extent;
844
+ }
845
+ };
846
+ column.getAggregationFn = () => {
847
+ var _table$options$aggreg, _table$options$aggreg2;
848
+ if (!column) {
849
+ throw new Error();
850
+ }
851
+ return isFunction(column.columnDef.aggregationFn) ? column.columnDef.aggregationFn : column.columnDef.aggregationFn === "auto" ? column.getAutoAggregationFn() : (_table$options$aggreg = (_table$options$aggreg2 = table.options.aggregationFns) == null ? void 0 : _table$options$aggreg2[column.columnDef.aggregationFn]) != null ? _table$options$aggreg : aggregationFns[column.columnDef.aggregationFn];
852
+ };
853
+ },
854
+ createTable: (table) => {
855
+ table.setGrouping = (updater) => table.options.onGroupingChange == null ? void 0 : table.options.onGroupingChange(updater);
856
+ table.resetGrouping = (defaultState) => {
857
+ var _table$initialState$g, _table$initialState;
858
+ table.setGrouping(defaultState ? [] : (_table$initialState$g = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.grouping) != null ? _table$initialState$g : []);
859
+ };
860
+ table.getPreGroupedRowModel = () => table.getFilteredRowModel();
861
+ table.getGroupedRowModel = () => {
862
+ if (!table._getGroupedRowModel && table.options.getGroupedRowModel) {
863
+ table._getGroupedRowModel = table.options.getGroupedRowModel(table);
864
+ }
865
+ if (table.options.manualGrouping || !table._getGroupedRowModel) {
866
+ return table.getPreGroupedRowModel();
867
+ }
868
+ return table._getGroupedRowModel();
869
+ };
870
+ },
871
+ createRow: (row, table) => {
872
+ row.getIsGrouped = () => !!row.groupingColumnId;
873
+ row.getGroupingValue = (columnId) => {
874
+ if (row._groupingValuesCache.hasOwnProperty(columnId)) {
875
+ return row._groupingValuesCache[columnId];
876
+ }
877
+ const column = table.getColumn(columnId);
878
+ if (!(column != null && column.columnDef.getGroupingValue)) {
879
+ return row.getValue(columnId);
880
+ }
881
+ row._groupingValuesCache[columnId] = column.columnDef.getGroupingValue(row.original);
882
+ return row._groupingValuesCache[columnId];
883
+ };
884
+ row._groupingValuesCache = {};
885
+ },
886
+ createCell: (cell, column, row, table) => {
887
+ cell.getIsGrouped = () => column.getIsGrouped() && column.id === row.groupingColumnId;
888
+ cell.getIsPlaceholder = () => !cell.getIsGrouped() && column.getIsGrouped();
889
+ cell.getIsAggregated = () => {
890
+ var _row$subRows;
891
+ return !cell.getIsGrouped() && !cell.getIsPlaceholder() && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
892
+ };
893
+ }
894
+ };
895
+ function orderColumns(leafColumns, grouping, groupedColumnMode) {
896
+ if (!(grouping != null && grouping.length) || !groupedColumnMode) {
897
+ return leafColumns;
898
+ }
899
+ const nonGroupingColumns = leafColumns.filter((col) => !grouping.includes(col.id));
900
+ if (groupedColumnMode === "remove") {
901
+ return nonGroupingColumns;
902
+ }
903
+ const groupingColumns = grouping.map((g) => leafColumns.find((col) => col.id === g)).filter(Boolean);
904
+ return [...groupingColumns, ...nonGroupingColumns];
905
+ }
906
+ var ColumnOrdering = {
907
+ getInitialState: (state) => {
908
+ return __spreadValues({
909
+ columnOrder: []
910
+ }, state);
911
+ },
912
+ getDefaultOptions: (table) => {
913
+ return {
914
+ onColumnOrderChange: makeStateUpdater("columnOrder", table)
915
+ };
916
+ },
917
+ createColumn: (column, table) => {
918
+ column.getIndex = memo((position) => [_getVisibleLeafColumns(table, position)], (columns) => columns.findIndex((d) => d.id === column.id), getMemoOptions(table.options, "debugColumns", "getIndex"));
919
+ column.getIsFirstColumn = (position) => {
920
+ var _columns$;
921
+ const columns = _getVisibleLeafColumns(table, position);
922
+ return ((_columns$ = columns[0]) == null ? void 0 : _columns$.id) === column.id;
923
+ };
924
+ column.getIsLastColumn = (position) => {
925
+ var _columns;
926
+ const columns = _getVisibleLeafColumns(table, position);
927
+ return ((_columns = columns[columns.length - 1]) == null ? void 0 : _columns.id) === column.id;
928
+ };
929
+ },
930
+ createTable: (table) => {
931
+ table.setColumnOrder = (updater) => table.options.onColumnOrderChange == null ? void 0 : table.options.onColumnOrderChange(updater);
932
+ table.resetColumnOrder = (defaultState) => {
933
+ var _table$initialState$c;
934
+ table.setColumnOrder(defaultState ? [] : (_table$initialState$c = table.initialState.columnOrder) != null ? _table$initialState$c : []);
935
+ };
936
+ table._getOrderColumnsFn = memo(() => [table.getState().columnOrder, table.getState().grouping, table.options.groupedColumnMode], (columnOrder, grouping, groupedColumnMode) => (columns) => {
937
+ let orderedColumns = [];
938
+ if (!(columnOrder != null && columnOrder.length)) {
939
+ orderedColumns = columns;
940
+ } else {
941
+ const columnOrderCopy = [...columnOrder];
942
+ const columnsCopy = [...columns];
943
+ while (columnsCopy.length && columnOrderCopy.length) {
944
+ const targetColumnId = columnOrderCopy.shift();
945
+ const foundIndex = columnsCopy.findIndex((d) => d.id === targetColumnId);
946
+ if (foundIndex > -1) {
947
+ orderedColumns.push(columnsCopy.splice(foundIndex, 1)[0]);
948
+ }
949
+ }
950
+ orderedColumns = [...orderedColumns, ...columnsCopy];
951
+ }
952
+ return orderColumns(orderedColumns, grouping, groupedColumnMode);
953
+ }, getMemoOptions(table.options, "debugTable", "_getOrderColumnsFn"));
954
+ }
955
+ };
956
+ var getDefaultColumnPinningState = () => ({
957
+ left: [],
958
+ right: []
959
+ });
960
+ var ColumnPinning = {
961
+ getInitialState: (state) => {
962
+ return __spreadValues({
963
+ columnPinning: getDefaultColumnPinningState()
964
+ }, state);
965
+ },
966
+ getDefaultOptions: (table) => {
967
+ return {
968
+ onColumnPinningChange: makeStateUpdater("columnPinning", table)
969
+ };
970
+ },
971
+ createColumn: (column, table) => {
972
+ column.pin = (position) => {
973
+ const columnIds = column.getLeafColumns().map((d) => d.id).filter(Boolean);
974
+ table.setColumnPinning((old) => {
975
+ var _old$left3, _old$right3;
976
+ if (position === "right") {
977
+ var _old$left, _old$right;
978
+ return {
979
+ left: ((_old$left = old == null ? void 0 : old.left) != null ? _old$left : []).filter((d) => !(columnIds != null && columnIds.includes(d))),
980
+ right: [...((_old$right = old == null ? void 0 : old.right) != null ? _old$right : []).filter((d) => !(columnIds != null && columnIds.includes(d))), ...columnIds]
981
+ };
982
+ }
983
+ if (position === "left") {
984
+ var _old$left2, _old$right2;
985
+ return {
986
+ left: [...((_old$left2 = old == null ? void 0 : old.left) != null ? _old$left2 : []).filter((d) => !(columnIds != null && columnIds.includes(d))), ...columnIds],
987
+ right: ((_old$right2 = old == null ? void 0 : old.right) != null ? _old$right2 : []).filter((d) => !(columnIds != null && columnIds.includes(d)))
988
+ };
989
+ }
990
+ return {
991
+ left: ((_old$left3 = old == null ? void 0 : old.left) != null ? _old$left3 : []).filter((d) => !(columnIds != null && columnIds.includes(d))),
992
+ right: ((_old$right3 = old == null ? void 0 : old.right) != null ? _old$right3 : []).filter((d) => !(columnIds != null && columnIds.includes(d)))
993
+ };
994
+ });
995
+ };
996
+ column.getCanPin = () => {
997
+ const leafColumns = column.getLeafColumns();
998
+ return leafColumns.some((d) => {
999
+ var _d$columnDef$enablePi, _ref, _table$options$enable;
1000
+ return ((_d$columnDef$enablePi = d.columnDef.enablePinning) != null ? _d$columnDef$enablePi : true) && ((_ref = (_table$options$enable = table.options.enableColumnPinning) != null ? _table$options$enable : table.options.enablePinning) != null ? _ref : true);
1001
+ });
1002
+ };
1003
+ column.getIsPinned = () => {
1004
+ const leafColumnIds = column.getLeafColumns().map((d) => d.id);
1005
+ const {
1006
+ left,
1007
+ right
1008
+ } = table.getState().columnPinning;
1009
+ const isLeft = leafColumnIds.some((d) => left == null ? void 0 : left.includes(d));
1010
+ const isRight = leafColumnIds.some((d) => right == null ? void 0 : right.includes(d));
1011
+ return isLeft ? "left" : isRight ? "right" : false;
1012
+ };
1013
+ column.getPinnedIndex = () => {
1014
+ var _table$getState$colum, _table$getState$colum2;
1015
+ const position = column.getIsPinned();
1016
+ return position ? (_table$getState$colum = (_table$getState$colum2 = table.getState().columnPinning) == null || (_table$getState$colum2 = _table$getState$colum2[position]) == null ? void 0 : _table$getState$colum2.indexOf(column.id)) != null ? _table$getState$colum : -1 : 0;
1017
+ };
1018
+ },
1019
+ createRow: (row, table) => {
1020
+ row.getCenterVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allCells, left, right) => {
1021
+ const leftAndRight = [...left != null ? left : [], ...right != null ? right : []];
1022
+ return allCells.filter((d) => !leftAndRight.includes(d.column.id));
1023
+ }, getMemoOptions(table.options, "debugRows", "getCenterVisibleCells"));
1024
+ row.getLeftVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.left], (allCells, left) => {
1025
+ const cells = (left != null ? left : []).map((columnId) => allCells.find((cell) => cell.column.id === columnId)).filter(Boolean).map((d) => __spreadProps(__spreadValues({}, d), {
1026
+ position: "left"
1027
+ }));
1028
+ return cells;
1029
+ }, getMemoOptions(table.options, "debugRows", "getLeftVisibleCells"));
1030
+ row.getRightVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.right], (allCells, right) => {
1031
+ const cells = (right != null ? right : []).map((columnId) => allCells.find((cell) => cell.column.id === columnId)).filter(Boolean).map((d) => __spreadProps(__spreadValues({}, d), {
1032
+ position: "right"
1033
+ }));
1034
+ return cells;
1035
+ }, getMemoOptions(table.options, "debugRows", "getRightVisibleCells"));
1036
+ },
1037
+ createTable: (table) => {
1038
+ table.setColumnPinning = (updater) => table.options.onColumnPinningChange == null ? void 0 : table.options.onColumnPinningChange(updater);
1039
+ table.resetColumnPinning = (defaultState) => {
1040
+ var _table$initialState$c, _table$initialState;
1041
+ return table.setColumnPinning(defaultState ? getDefaultColumnPinningState() : (_table$initialState$c = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.columnPinning) != null ? _table$initialState$c : getDefaultColumnPinningState());
1042
+ };
1043
+ table.getIsSomeColumnsPinned = (position) => {
1044
+ var _pinningState$positio;
1045
+ const pinningState = table.getState().columnPinning;
1046
+ if (!position) {
1047
+ var _pinningState$left, _pinningState$right;
1048
+ return Boolean(((_pinningState$left = pinningState.left) == null ? void 0 : _pinningState$left.length) || ((_pinningState$right = pinningState.right) == null ? void 0 : _pinningState$right.length));
1049
+ }
1050
+ return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
1051
+ };
1052
+ table.getLeftLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left], (allColumns, left) => {
1053
+ return (left != null ? left : []).map((columnId) => allColumns.find((column) => column.id === columnId)).filter(Boolean);
1054
+ }, getMemoOptions(table.options, "debugColumns", "getLeftLeafColumns"));
1055
+ table.getRightLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.right], (allColumns, right) => {
1056
+ return (right != null ? right : []).map((columnId) => allColumns.find((column) => column.id === columnId)).filter(Boolean);
1057
+ }, getMemoOptions(table.options, "debugColumns", "getRightLeafColumns"));
1058
+ table.getCenterLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, left, right) => {
1059
+ const leftAndRight = [...left != null ? left : [], ...right != null ? right : []];
1060
+ return allColumns.filter((d) => !leftAndRight.includes(d.id));
1061
+ }, getMemoOptions(table.options, "debugColumns", "getCenterLeafColumns"));
1062
+ }
1063
+ };
1064
+ function safelyAccessDocument(_document) {
1065
+ return _document || (typeof document !== "undefined" ? document : null);
1066
+ }
1067
+ var defaultColumnSizing = {
1068
+ size: 150,
1069
+ minSize: 20,
1070
+ maxSize: Number.MAX_SAFE_INTEGER
1071
+ };
1072
+ var getDefaultColumnSizingInfoState = () => ({
1073
+ startOffset: null,
1074
+ startSize: null,
1075
+ deltaOffset: null,
1076
+ deltaPercentage: null,
1077
+ isResizingColumn: false,
1078
+ columnSizingStart: []
1079
+ });
1080
+ var ColumnSizing = {
1081
+ getDefaultColumnDef: () => {
1082
+ return defaultColumnSizing;
1083
+ },
1084
+ getInitialState: (state) => {
1085
+ return __spreadValues({
1086
+ columnSizing: {},
1087
+ columnSizingInfo: getDefaultColumnSizingInfoState()
1088
+ }, state);
1089
+ },
1090
+ getDefaultOptions: (table) => {
1091
+ return {
1092
+ columnResizeMode: "onEnd",
1093
+ columnResizeDirection: "ltr",
1094
+ onColumnSizingChange: makeStateUpdater("columnSizing", table),
1095
+ onColumnSizingInfoChange: makeStateUpdater("columnSizingInfo", table)
1096
+ };
1097
+ },
1098
+ createColumn: (column, table) => {
1099
+ column.getSize = () => {
1100
+ var _column$columnDef$min, _ref, _column$columnDef$max;
1101
+ const columnSize = table.getState().columnSizing[column.id];
1102
+ return Math.min(Math.max((_column$columnDef$min = column.columnDef.minSize) != null ? _column$columnDef$min : defaultColumnSizing.minSize, (_ref = columnSize != null ? columnSize : column.columnDef.size) != null ? _ref : defaultColumnSizing.size), (_column$columnDef$max = column.columnDef.maxSize) != null ? _column$columnDef$max : defaultColumnSizing.maxSize);
1103
+ };
1104
+ column.getStart = memo((position) => [position, _getVisibleLeafColumns(table, position), table.getState().columnSizing], (position, columns) => columns.slice(0, column.getIndex(position)).reduce((sum2, column2) => sum2 + column2.getSize(), 0), getMemoOptions(table.options, "debugColumns", "getStart"));
1105
+ column.getAfter = memo((position) => [position, _getVisibleLeafColumns(table, position), table.getState().columnSizing], (position, columns) => columns.slice(column.getIndex(position) + 1).reduce((sum2, column2) => sum2 + column2.getSize(), 0), getMemoOptions(table.options, "debugColumns", "getAfter"));
1106
+ column.resetSize = () => {
1107
+ table.setColumnSizing((_ref2) => {
1108
+ var _a;
1109
+ let _b = _ref2, {
1110
+ [_a = column.id]: _
1111
+ } = _b, rest = __objRest(_b, [
1112
+ __restKey(_a)
1113
+ ]);
1114
+ return rest;
1115
+ });
1116
+ };
1117
+ column.getCanResize = () => {
1118
+ var _column$columnDef$ena, _table$options$enable;
1119
+ return ((_column$columnDef$ena = column.columnDef.enableResizing) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableColumnResizing) != null ? _table$options$enable : true);
1120
+ };
1121
+ column.getIsResizing = () => {
1122
+ return table.getState().columnSizingInfo.isResizingColumn === column.id;
1123
+ };
1124
+ },
1125
+ createHeader: (header, table) => {
1126
+ header.getSize = () => {
1127
+ let sum2 = 0;
1128
+ const recurse = (header2) => {
1129
+ if (header2.subHeaders.length) {
1130
+ header2.subHeaders.forEach(recurse);
1131
+ } else {
1132
+ var _header$column$getSiz;
1133
+ sum2 += (_header$column$getSiz = header2.column.getSize()) != null ? _header$column$getSiz : 0;
1134
+ }
1135
+ };
1136
+ recurse(header);
1137
+ return sum2;
1138
+ };
1139
+ header.getStart = () => {
1140
+ if (header.index > 0) {
1141
+ const prevSiblingHeader = header.headerGroup.headers[header.index - 1];
1142
+ return prevSiblingHeader.getStart() + prevSiblingHeader.getSize();
1143
+ }
1144
+ return 0;
1145
+ };
1146
+ header.getResizeHandler = (_contextDocument) => {
1147
+ const column = table.getColumn(header.column.id);
1148
+ const canResize = column == null ? void 0 : column.getCanResize();
1149
+ return (e) => {
1150
+ if (!column || !canResize) {
1151
+ return;
1152
+ }
1153
+ e.persist == null || e.persist();
1154
+ if (isTouchStartEvent(e)) {
1155
+ if (e.touches && e.touches.length > 1) {
1156
+ return;
1157
+ }
1158
+ }
1159
+ const startSize = header.getSize();
1160
+ const columnSizingStart = header ? header.getLeafHeaders().map((d) => [d.column.id, d.column.getSize()]) : [[column.id, column.getSize()]];
1161
+ const clientX = isTouchStartEvent(e) ? Math.round(e.touches[0].clientX) : e.clientX;
1162
+ const newColumnSizing = {};
1163
+ const updateOffset = (eventType, clientXPos) => {
1164
+ if (typeof clientXPos !== "number") {
1165
+ return;
1166
+ }
1167
+ table.setColumnSizingInfo((old) => {
1168
+ var _old$startOffset, _old$startSize;
1169
+ const deltaDirection = table.options.columnResizeDirection === "rtl" ? -1 : 1;
1170
+ const deltaOffset = (clientXPos - ((_old$startOffset = old == null ? void 0 : old.startOffset) != null ? _old$startOffset : 0)) * deltaDirection;
1171
+ const deltaPercentage = Math.max(deltaOffset / ((_old$startSize = old == null ? void 0 : old.startSize) != null ? _old$startSize : 0), -0.999999);
1172
+ old.columnSizingStart.forEach((_ref3) => {
1173
+ let [columnId, headerSize] = _ref3;
1174
+ newColumnSizing[columnId] = Math.round(Math.max(headerSize + headerSize * deltaPercentage, 0) * 100) / 100;
1175
+ });
1176
+ return __spreadProps(__spreadValues({}, old), {
1177
+ deltaOffset,
1178
+ deltaPercentage
1179
+ });
1180
+ });
1181
+ if (table.options.columnResizeMode === "onChange" || eventType === "end") {
1182
+ table.setColumnSizing((old) => __spreadValues(__spreadValues({}, old), newColumnSizing));
1183
+ }
1184
+ };
1185
+ const onMove = (clientXPos) => updateOffset("move", clientXPos);
1186
+ const onEnd = (clientXPos) => {
1187
+ updateOffset("end", clientXPos);
1188
+ table.setColumnSizingInfo((old) => __spreadProps(__spreadValues({}, old), {
1189
+ isResizingColumn: false,
1190
+ startOffset: null,
1191
+ startSize: null,
1192
+ deltaOffset: null,
1193
+ deltaPercentage: null,
1194
+ columnSizingStart: []
1195
+ }));
1196
+ };
1197
+ const contextDocument = safelyAccessDocument(_contextDocument);
1198
+ const mouseEvents = {
1199
+ moveHandler: (e2) => onMove(e2.clientX),
1200
+ upHandler: (e2) => {
1201
+ contextDocument == null || contextDocument.removeEventListener("mousemove", mouseEvents.moveHandler);
1202
+ contextDocument == null || contextDocument.removeEventListener("mouseup", mouseEvents.upHandler);
1203
+ onEnd(e2.clientX);
1204
+ }
1205
+ };
1206
+ const touchEvents = {
1207
+ moveHandler: (e2) => {
1208
+ if (e2.cancelable) {
1209
+ e2.preventDefault();
1210
+ e2.stopPropagation();
1211
+ }
1212
+ onMove(e2.touches[0].clientX);
1213
+ return false;
1214
+ },
1215
+ upHandler: (e2) => {
1216
+ var _e$touches$;
1217
+ contextDocument == null || contextDocument.removeEventListener("touchmove", touchEvents.moveHandler);
1218
+ contextDocument == null || contextDocument.removeEventListener("touchend", touchEvents.upHandler);
1219
+ if (e2.cancelable) {
1220
+ e2.preventDefault();
1221
+ e2.stopPropagation();
1222
+ }
1223
+ onEnd((_e$touches$ = e2.touches[0]) == null ? void 0 : _e$touches$.clientX);
1224
+ }
1225
+ };
1226
+ const passiveIfSupported = passiveEventSupported() ? {
1227
+ passive: false
1228
+ } : false;
1229
+ if (isTouchStartEvent(e)) {
1230
+ contextDocument == null || contextDocument.addEventListener("touchmove", touchEvents.moveHandler, passiveIfSupported);
1231
+ contextDocument == null || contextDocument.addEventListener("touchend", touchEvents.upHandler, passiveIfSupported);
1232
+ } else {
1233
+ contextDocument == null || contextDocument.addEventListener("mousemove", mouseEvents.moveHandler, passiveIfSupported);
1234
+ contextDocument == null || contextDocument.addEventListener("mouseup", mouseEvents.upHandler, passiveIfSupported);
1235
+ }
1236
+ table.setColumnSizingInfo((old) => __spreadProps(__spreadValues({}, old), {
1237
+ startOffset: clientX,
1238
+ startSize,
1239
+ deltaOffset: 0,
1240
+ deltaPercentage: 0,
1241
+ columnSizingStart,
1242
+ isResizingColumn: column.id
1243
+ }));
1244
+ };
1245
+ };
1246
+ },
1247
+ createTable: (table) => {
1248
+ table.setColumnSizing = (updater) => table.options.onColumnSizingChange == null ? void 0 : table.options.onColumnSizingChange(updater);
1249
+ table.setColumnSizingInfo = (updater) => table.options.onColumnSizingInfoChange == null ? void 0 : table.options.onColumnSizingInfoChange(updater);
1250
+ table.resetColumnSizing = (defaultState) => {
1251
+ var _table$initialState$c;
1252
+ table.setColumnSizing(defaultState ? {} : (_table$initialState$c = table.initialState.columnSizing) != null ? _table$initialState$c : {});
1253
+ };
1254
+ table.resetHeaderSizeInfo = (defaultState) => {
1255
+ var _table$initialState$c2;
1256
+ table.setColumnSizingInfo(defaultState ? getDefaultColumnSizingInfoState() : (_table$initialState$c2 = table.initialState.columnSizingInfo) != null ? _table$initialState$c2 : getDefaultColumnSizingInfoState());
1257
+ };
1258
+ table.getTotalSize = () => {
1259
+ var _table$getHeaderGroup, _table$getHeaderGroup2;
1260
+ return (_table$getHeaderGroup = (_table$getHeaderGroup2 = table.getHeaderGroups()[0]) == null ? void 0 : _table$getHeaderGroup2.headers.reduce((sum2, header) => {
1261
+ return sum2 + header.getSize();
1262
+ }, 0)) != null ? _table$getHeaderGroup : 0;
1263
+ };
1264
+ table.getLeftTotalSize = () => {
1265
+ var _table$getLeftHeaderG, _table$getLeftHeaderG2;
1266
+ return (_table$getLeftHeaderG = (_table$getLeftHeaderG2 = table.getLeftHeaderGroups()[0]) == null ? void 0 : _table$getLeftHeaderG2.headers.reduce((sum2, header) => {
1267
+ return sum2 + header.getSize();
1268
+ }, 0)) != null ? _table$getLeftHeaderG : 0;
1269
+ };
1270
+ table.getCenterTotalSize = () => {
1271
+ var _table$getCenterHeade, _table$getCenterHeade2;
1272
+ return (_table$getCenterHeade = (_table$getCenterHeade2 = table.getCenterHeaderGroups()[0]) == null ? void 0 : _table$getCenterHeade2.headers.reduce((sum2, header) => {
1273
+ return sum2 + header.getSize();
1274
+ }, 0)) != null ? _table$getCenterHeade : 0;
1275
+ };
1276
+ table.getRightTotalSize = () => {
1277
+ var _table$getRightHeader, _table$getRightHeader2;
1278
+ return (_table$getRightHeader = (_table$getRightHeader2 = table.getRightHeaderGroups()[0]) == null ? void 0 : _table$getRightHeader2.headers.reduce((sum2, header) => {
1279
+ return sum2 + header.getSize();
1280
+ }, 0)) != null ? _table$getRightHeader : 0;
1281
+ };
1282
+ }
1283
+ };
1284
+ var passiveSupported = null;
1285
+ function passiveEventSupported() {
1286
+ if (typeof passiveSupported === "boolean") return passiveSupported;
1287
+ let supported = false;
1288
+ try {
1289
+ const options = {
1290
+ get passive() {
1291
+ supported = true;
1292
+ return false;
1293
+ }
1294
+ };
1295
+ const noop = () => {
1296
+ };
1297
+ window.addEventListener("test", noop, options);
1298
+ window.removeEventListener("test", noop);
1299
+ } catch (err) {
1300
+ supported = false;
1301
+ }
1302
+ passiveSupported = supported;
1303
+ return passiveSupported;
1304
+ }
1305
+ function isTouchStartEvent(e) {
1306
+ return e.type === "touchstart";
1307
+ }
1308
+ var ColumnVisibility = {
1309
+ getInitialState: (state) => {
1310
+ return __spreadValues({
1311
+ columnVisibility: {}
1312
+ }, state);
1313
+ },
1314
+ getDefaultOptions: (table) => {
1315
+ return {
1316
+ onColumnVisibilityChange: makeStateUpdater("columnVisibility", table)
1317
+ };
1318
+ },
1319
+ createColumn: (column, table) => {
1320
+ column.toggleVisibility = (value) => {
1321
+ if (column.getCanHide()) {
1322
+ table.setColumnVisibility((old) => __spreadProps(__spreadValues({}, old), {
1323
+ [column.id]: value != null ? value : !column.getIsVisible()
1324
+ }));
1325
+ }
1326
+ };
1327
+ column.getIsVisible = () => {
1328
+ var _ref, _table$getState$colum;
1329
+ const childColumns = column.columns;
1330
+ return (_ref = childColumns.length ? childColumns.some((c) => c.getIsVisible()) : (_table$getState$colum = table.getState().columnVisibility) == null ? void 0 : _table$getState$colum[column.id]) != null ? _ref : true;
1331
+ };
1332
+ column.getCanHide = () => {
1333
+ var _column$columnDef$ena, _table$options$enable;
1334
+ return ((_column$columnDef$ena = column.columnDef.enableHiding) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableHiding) != null ? _table$options$enable : true);
1335
+ };
1336
+ column.getToggleVisibilityHandler = () => {
1337
+ return (e) => {
1338
+ column.toggleVisibility == null || column.toggleVisibility(e.target.checked);
1339
+ };
1340
+ };
1341
+ },
1342
+ createRow: (row, table) => {
1343
+ row._getAllVisibleCells = memo(() => [row.getAllCells(), table.getState().columnVisibility], (cells) => {
1344
+ return cells.filter((cell) => cell.column.getIsVisible());
1345
+ }, getMemoOptions(table.options, "debugRows", "_getAllVisibleCells"));
1346
+ row.getVisibleCells = memo(() => [row.getLeftVisibleCells(), row.getCenterVisibleCells(), row.getRightVisibleCells()], (left, center, right) => [...left, ...center, ...right], getMemoOptions(table.options, "debugRows", "getVisibleCells"));
1347
+ },
1348
+ createTable: (table) => {
1349
+ const makeVisibleColumnsMethod = (key, getColumns) => {
1350
+ return memo(() => [getColumns(), getColumns().filter((d) => d.getIsVisible()).map((d) => d.id).join("_")], (columns) => {
1351
+ return columns.filter((d) => d.getIsVisible == null ? void 0 : d.getIsVisible());
1352
+ }, getMemoOptions(table.options, "debugColumns", key));
1353
+ };
1354
+ table.getVisibleFlatColumns = makeVisibleColumnsMethod("getVisibleFlatColumns", () => table.getAllFlatColumns());
1355
+ table.getVisibleLeafColumns = makeVisibleColumnsMethod("getVisibleLeafColumns", () => table.getAllLeafColumns());
1356
+ table.getLeftVisibleLeafColumns = makeVisibleColumnsMethod("getLeftVisibleLeafColumns", () => table.getLeftLeafColumns());
1357
+ table.getRightVisibleLeafColumns = makeVisibleColumnsMethod("getRightVisibleLeafColumns", () => table.getRightLeafColumns());
1358
+ table.getCenterVisibleLeafColumns = makeVisibleColumnsMethod("getCenterVisibleLeafColumns", () => table.getCenterLeafColumns());
1359
+ table.setColumnVisibility = (updater) => table.options.onColumnVisibilityChange == null ? void 0 : table.options.onColumnVisibilityChange(updater);
1360
+ table.resetColumnVisibility = (defaultState) => {
1361
+ var _table$initialState$c;
1362
+ table.setColumnVisibility(defaultState ? {} : (_table$initialState$c = table.initialState.columnVisibility) != null ? _table$initialState$c : {});
1363
+ };
1364
+ table.toggleAllColumnsVisible = (value) => {
1365
+ var _value;
1366
+ value = (_value = value) != null ? _value : !table.getIsAllColumnsVisible();
1367
+ table.setColumnVisibility(table.getAllLeafColumns().reduce((obj, column) => __spreadProps(__spreadValues({}, obj), {
1368
+ [column.id]: !value ? !(column.getCanHide != null && column.getCanHide()) : value
1369
+ }), {}));
1370
+ };
1371
+ table.getIsAllColumnsVisible = () => !table.getAllLeafColumns().some((column) => !(column.getIsVisible != null && column.getIsVisible()));
1372
+ table.getIsSomeColumnsVisible = () => table.getAllLeafColumns().some((column) => column.getIsVisible == null ? void 0 : column.getIsVisible());
1373
+ table.getToggleAllColumnsVisibilityHandler = () => {
1374
+ return (e) => {
1375
+ var _target;
1376
+ table.toggleAllColumnsVisible((_target = e.target) == null ? void 0 : _target.checked);
1377
+ };
1378
+ };
1379
+ }
1380
+ };
1381
+ function _getVisibleLeafColumns(table, position) {
1382
+ return !position ? table.getVisibleLeafColumns() : position === "center" ? table.getCenterVisibleLeafColumns() : position === "left" ? table.getLeftVisibleLeafColumns() : table.getRightVisibleLeafColumns();
1383
+ }
1384
+ var GlobalFaceting = {
1385
+ createTable: (table) => {
1386
+ table._getGlobalFacetedRowModel = table.options.getFacetedRowModel && table.options.getFacetedRowModel(table, "__global__");
1387
+ table.getGlobalFacetedRowModel = () => {
1388
+ if (table.options.manualFiltering || !table._getGlobalFacetedRowModel) {
1389
+ return table.getPreFilteredRowModel();
1390
+ }
1391
+ return table._getGlobalFacetedRowModel();
1392
+ };
1393
+ table._getGlobalFacetedUniqueValues = table.options.getFacetedUniqueValues && table.options.getFacetedUniqueValues(table, "__global__");
1394
+ table.getGlobalFacetedUniqueValues = () => {
1395
+ if (!table._getGlobalFacetedUniqueValues) {
1396
+ return /* @__PURE__ */ new Map();
1397
+ }
1398
+ return table._getGlobalFacetedUniqueValues();
1399
+ };
1400
+ table._getGlobalFacetedMinMaxValues = table.options.getFacetedMinMaxValues && table.options.getFacetedMinMaxValues(table, "__global__");
1401
+ table.getGlobalFacetedMinMaxValues = () => {
1402
+ if (!table._getGlobalFacetedMinMaxValues) {
1403
+ return;
1404
+ }
1405
+ return table._getGlobalFacetedMinMaxValues();
1406
+ };
1407
+ }
1408
+ };
1409
+ var GlobalFiltering = {
1410
+ getInitialState: (state) => {
1411
+ return __spreadValues({
1412
+ globalFilter: void 0
1413
+ }, state);
1414
+ },
1415
+ getDefaultOptions: (table) => {
1416
+ return {
1417
+ onGlobalFilterChange: makeStateUpdater("globalFilter", table),
1418
+ globalFilterFn: "auto",
1419
+ getColumnCanGlobalFilter: (column) => {
1420
+ var _table$getCoreRowMode;
1421
+ const value = (_table$getCoreRowMode = table.getCoreRowModel().flatRows[0]) == null || (_table$getCoreRowMode = _table$getCoreRowMode._getAllCellsByColumnId()[column.id]) == null ? void 0 : _table$getCoreRowMode.getValue();
1422
+ return typeof value === "string" || typeof value === "number";
1423
+ }
1424
+ };
1425
+ },
1426
+ createColumn: (column, table) => {
1427
+ column.getCanGlobalFilter = () => {
1428
+ var _column$columnDef$ena, _table$options$enable, _table$options$enable2, _table$options$getCol;
1429
+ return ((_column$columnDef$ena = column.columnDef.enableGlobalFilter) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableGlobalFilter) != null ? _table$options$enable : true) && ((_table$options$enable2 = table.options.enableFilters) != null ? _table$options$enable2 : true) && ((_table$options$getCol = table.options.getColumnCanGlobalFilter == null ? void 0 : table.options.getColumnCanGlobalFilter(column)) != null ? _table$options$getCol : true) && !!column.accessorFn;
1430
+ };
1431
+ },
1432
+ createTable: (table) => {
1433
+ table.getGlobalAutoFilterFn = () => {
1434
+ return filterFns.includesString;
1435
+ };
1436
+ table.getGlobalFilterFn = () => {
1437
+ var _table$options$filter, _table$options$filter2;
1438
+ const {
1439
+ globalFilterFn
1440
+ } = table.options;
1441
+ return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === "auto" ? table.getGlobalAutoFilterFn() : (_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[globalFilterFn]) != null ? _table$options$filter : filterFns[globalFilterFn];
1442
+ };
1443
+ table.setGlobalFilter = (updater) => {
1444
+ table.options.onGlobalFilterChange == null || table.options.onGlobalFilterChange(updater);
1445
+ };
1446
+ table.resetGlobalFilter = (defaultState) => {
1447
+ table.setGlobalFilter(defaultState ? void 0 : table.initialState.globalFilter);
1448
+ };
1449
+ }
1450
+ };
1451
+ var RowExpanding = {
1452
+ getInitialState: (state) => {
1453
+ return __spreadValues({
1454
+ expanded: {}
1455
+ }, state);
1456
+ },
1457
+ getDefaultOptions: (table) => {
1458
+ return {
1459
+ onExpandedChange: makeStateUpdater("expanded", table),
1460
+ paginateExpandedRows: true
1461
+ };
1462
+ },
1463
+ createTable: (table) => {
1464
+ let registered = false;
1465
+ let queued = false;
1466
+ table._autoResetExpanded = () => {
1467
+ var _ref, _table$options$autoRe;
1468
+ if (!registered) {
1469
+ table._queue(() => {
1470
+ registered = true;
1471
+ });
1472
+ return;
1473
+ }
1474
+ if ((_ref = (_table$options$autoRe = table.options.autoResetAll) != null ? _table$options$autoRe : table.options.autoResetExpanded) != null ? _ref : !table.options.manualExpanding) {
1475
+ if (queued) return;
1476
+ queued = true;
1477
+ table._queue(() => {
1478
+ table.resetExpanded();
1479
+ queued = false;
1480
+ });
1481
+ }
1482
+ };
1483
+ table.setExpanded = (updater) => table.options.onExpandedChange == null ? void 0 : table.options.onExpandedChange(updater);
1484
+ table.toggleAllRowsExpanded = (expanded) => {
1485
+ if (expanded != null ? expanded : !table.getIsAllRowsExpanded()) {
1486
+ table.setExpanded(true);
1487
+ } else {
1488
+ table.setExpanded({});
1489
+ }
1490
+ };
1491
+ table.resetExpanded = (defaultState) => {
1492
+ var _table$initialState$e, _table$initialState;
1493
+ table.setExpanded(defaultState ? {} : (_table$initialState$e = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.expanded) != null ? _table$initialState$e : {});
1494
+ };
1495
+ table.getCanSomeRowsExpand = () => {
1496
+ return table.getPrePaginationRowModel().flatRows.some((row) => row.getCanExpand());
1497
+ };
1498
+ table.getToggleAllRowsExpandedHandler = () => {
1499
+ return (e) => {
1500
+ e.persist == null || e.persist();
1501
+ table.toggleAllRowsExpanded();
1502
+ };
1503
+ };
1504
+ table.getIsSomeRowsExpanded = () => {
1505
+ const expanded = table.getState().expanded;
1506
+ return expanded === true || Object.values(expanded).some(Boolean);
1507
+ };
1508
+ table.getIsAllRowsExpanded = () => {
1509
+ const expanded = table.getState().expanded;
1510
+ if (typeof expanded === "boolean") {
1511
+ return expanded === true;
1512
+ }
1513
+ if (!Object.keys(expanded).length) {
1514
+ return false;
1515
+ }
1516
+ if (table.getRowModel().flatRows.some((row) => !row.getIsExpanded())) {
1517
+ return false;
1518
+ }
1519
+ return true;
1520
+ };
1521
+ table.getExpandedDepth = () => {
1522
+ let maxDepth = 0;
1523
+ const rowIds = table.getState().expanded === true ? Object.keys(table.getRowModel().rowsById) : Object.keys(table.getState().expanded);
1524
+ rowIds.forEach((id) => {
1525
+ const splitId = id.split(".");
1526
+ maxDepth = Math.max(maxDepth, splitId.length);
1527
+ });
1528
+ return maxDepth;
1529
+ };
1530
+ table.getPreExpandedRowModel = () => table.getSortedRowModel();
1531
+ table.getExpandedRowModel = () => {
1532
+ if (!table._getExpandedRowModel && table.options.getExpandedRowModel) {
1533
+ table._getExpandedRowModel = table.options.getExpandedRowModel(table);
1534
+ }
1535
+ if (table.options.manualExpanding || !table._getExpandedRowModel) {
1536
+ return table.getPreExpandedRowModel();
1537
+ }
1538
+ return table._getExpandedRowModel();
1539
+ };
1540
+ },
1541
+ createRow: (row, table) => {
1542
+ row.toggleExpanded = (expanded) => {
1543
+ table.setExpanded((old) => {
1544
+ var _a;
1545
+ var _expanded;
1546
+ const exists = old === true ? true : !!(old != null && old[row.id]);
1547
+ let oldExpanded = {};
1548
+ if (old === true) {
1549
+ Object.keys(table.getRowModel().rowsById).forEach((rowId) => {
1550
+ oldExpanded[rowId] = true;
1551
+ });
1552
+ } else {
1553
+ oldExpanded = old;
1554
+ }
1555
+ expanded = (_expanded = expanded) != null ? _expanded : !exists;
1556
+ if (!exists && expanded) {
1557
+ return __spreadProps(__spreadValues({}, oldExpanded), {
1558
+ [row.id]: true
1559
+ });
1560
+ }
1561
+ if (exists && !expanded) {
1562
+ const _b = oldExpanded, {
1563
+ [_a = row.id]: _
1564
+ } = _b, rest = __objRest(_b, [
1565
+ __restKey(_a)
1566
+ ]);
1567
+ return rest;
1568
+ }
1569
+ return old;
1570
+ });
1571
+ };
1572
+ row.getIsExpanded = () => {
1573
+ var _table$options$getIsR;
1574
+ const expanded = table.getState().expanded;
1575
+ return !!((_table$options$getIsR = table.options.getIsRowExpanded == null ? void 0 : table.options.getIsRowExpanded(row)) != null ? _table$options$getIsR : expanded === true || (expanded == null ? void 0 : expanded[row.id]));
1576
+ };
1577
+ row.getCanExpand = () => {
1578
+ var _table$options$getRow, _table$options$enable, _row$subRows;
1579
+ return (_table$options$getRow = table.options.getRowCanExpand == null ? void 0 : table.options.getRowCanExpand(row)) != null ? _table$options$getRow : ((_table$options$enable = table.options.enableExpanding) != null ? _table$options$enable : true) && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
1580
+ };
1581
+ row.getIsAllParentsExpanded = () => {
1582
+ let isFullyExpanded = true;
1583
+ let currentRow = row;
1584
+ while (isFullyExpanded && currentRow.parentId) {
1585
+ currentRow = table.getRow(currentRow.parentId, true);
1586
+ isFullyExpanded = currentRow.getIsExpanded();
1587
+ }
1588
+ return isFullyExpanded;
1589
+ };
1590
+ row.getToggleExpandedHandler = () => {
1591
+ const canExpand = row.getCanExpand();
1592
+ return () => {
1593
+ if (!canExpand) return;
1594
+ row.toggleExpanded();
1595
+ };
1596
+ };
1597
+ }
1598
+ };
1599
+ var defaultPageIndex = 0;
1600
+ var defaultPageSize = 10;
1601
+ var getDefaultPaginationState = () => ({
1602
+ pageIndex: defaultPageIndex,
1603
+ pageSize: defaultPageSize
1604
+ });
1605
+ var RowPagination = {
1606
+ getInitialState: (state) => {
1607
+ return __spreadProps(__spreadValues({}, state), {
1608
+ pagination: __spreadValues(__spreadValues({}, getDefaultPaginationState()), state == null ? void 0 : state.pagination)
1609
+ });
1610
+ },
1611
+ getDefaultOptions: (table) => {
1612
+ return {
1613
+ onPaginationChange: makeStateUpdater("pagination", table)
1614
+ };
1615
+ },
1616
+ createTable: (table) => {
1617
+ let registered = false;
1618
+ let queued = false;
1619
+ table._autoResetPageIndex = () => {
1620
+ var _ref, _table$options$autoRe;
1621
+ if (!registered) {
1622
+ table._queue(() => {
1623
+ registered = true;
1624
+ });
1625
+ return;
1626
+ }
1627
+ if ((_ref = (_table$options$autoRe = table.options.autoResetAll) != null ? _table$options$autoRe : table.options.autoResetPageIndex) != null ? _ref : !table.options.manualPagination) {
1628
+ if (queued) return;
1629
+ queued = true;
1630
+ table._queue(() => {
1631
+ table.resetPageIndex();
1632
+ queued = false;
1633
+ });
1634
+ }
1635
+ };
1636
+ table.setPagination = (updater) => {
1637
+ const safeUpdater = (old) => {
1638
+ let newState = functionalUpdate(updater, old);
1639
+ return newState;
1640
+ };
1641
+ return table.options.onPaginationChange == null ? void 0 : table.options.onPaginationChange(safeUpdater);
1642
+ };
1643
+ table.resetPagination = (defaultState) => {
1644
+ var _table$initialState$p;
1645
+ table.setPagination(defaultState ? getDefaultPaginationState() : (_table$initialState$p = table.initialState.pagination) != null ? _table$initialState$p : getDefaultPaginationState());
1646
+ };
1647
+ table.setPageIndex = (updater) => {
1648
+ table.setPagination((old) => {
1649
+ let pageIndex = functionalUpdate(updater, old.pageIndex);
1650
+ const maxPageIndex = typeof table.options.pageCount === "undefined" || table.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : table.options.pageCount - 1;
1651
+ pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
1652
+ return __spreadProps(__spreadValues({}, old), {
1653
+ pageIndex
1654
+ });
1655
+ });
1656
+ };
1657
+ table.resetPageIndex = (defaultState) => {
1658
+ var _table$initialState$p2, _table$initialState;
1659
+ table.setPageIndex(defaultState ? defaultPageIndex : (_table$initialState$p2 = (_table$initialState = table.initialState) == null || (_table$initialState = _table$initialState.pagination) == null ? void 0 : _table$initialState.pageIndex) != null ? _table$initialState$p2 : defaultPageIndex);
1660
+ };
1661
+ table.resetPageSize = (defaultState) => {
1662
+ var _table$initialState$p3, _table$initialState2;
1663
+ table.setPageSize(defaultState ? defaultPageSize : (_table$initialState$p3 = (_table$initialState2 = table.initialState) == null || (_table$initialState2 = _table$initialState2.pagination) == null ? void 0 : _table$initialState2.pageSize) != null ? _table$initialState$p3 : defaultPageSize);
1664
+ };
1665
+ table.setPageSize = (updater) => {
1666
+ table.setPagination((old) => {
1667
+ const pageSize = Math.max(1, functionalUpdate(updater, old.pageSize));
1668
+ const topRowIndex = old.pageSize * old.pageIndex;
1669
+ const pageIndex = Math.floor(topRowIndex / pageSize);
1670
+ return __spreadProps(__spreadValues({}, old), {
1671
+ pageIndex,
1672
+ pageSize
1673
+ });
1674
+ });
1675
+ };
1676
+ table.setPageCount = (updater) => table.setPagination((old) => {
1677
+ var _table$options$pageCo;
1678
+ let newPageCount = functionalUpdate(updater, (_table$options$pageCo = table.options.pageCount) != null ? _table$options$pageCo : -1);
1679
+ if (typeof newPageCount === "number") {
1680
+ newPageCount = Math.max(-1, newPageCount);
1681
+ }
1682
+ return __spreadProps(__spreadValues({}, old), {
1683
+ pageCount: newPageCount
1684
+ });
1685
+ });
1686
+ table.getPageOptions = memo(() => [table.getPageCount()], (pageCount) => {
1687
+ let pageOptions = [];
1688
+ if (pageCount && pageCount > 0) {
1689
+ pageOptions = [...new Array(pageCount)].fill(null).map((_, i) => i);
1690
+ }
1691
+ return pageOptions;
1692
+ }, getMemoOptions(table.options, "debugTable", "getPageOptions"));
1693
+ table.getCanPreviousPage = () => table.getState().pagination.pageIndex > 0;
1694
+ table.getCanNextPage = () => {
1695
+ const {
1696
+ pageIndex
1697
+ } = table.getState().pagination;
1698
+ const pageCount = table.getPageCount();
1699
+ if (pageCount === -1) {
1700
+ return true;
1701
+ }
1702
+ if (pageCount === 0) {
1703
+ return false;
1704
+ }
1705
+ return pageIndex < pageCount - 1;
1706
+ };
1707
+ table.previousPage = () => {
1708
+ return table.setPageIndex((old) => old - 1);
1709
+ };
1710
+ table.nextPage = () => {
1711
+ return table.setPageIndex((old) => {
1712
+ return old + 1;
1713
+ });
1714
+ };
1715
+ table.firstPage = () => {
1716
+ return table.setPageIndex(0);
1717
+ };
1718
+ table.lastPage = () => {
1719
+ return table.setPageIndex(table.getPageCount() - 1);
1720
+ };
1721
+ table.getPrePaginationRowModel = () => table.getExpandedRowModel();
1722
+ table.getPaginationRowModel = () => {
1723
+ if (!table._getPaginationRowModel && table.options.getPaginationRowModel) {
1724
+ table._getPaginationRowModel = table.options.getPaginationRowModel(table);
1725
+ }
1726
+ if (table.options.manualPagination || !table._getPaginationRowModel) {
1727
+ return table.getPrePaginationRowModel();
1728
+ }
1729
+ return table._getPaginationRowModel();
1730
+ };
1731
+ table.getPageCount = () => {
1732
+ var _table$options$pageCo2;
1733
+ return (_table$options$pageCo2 = table.options.pageCount) != null ? _table$options$pageCo2 : Math.ceil(table.getRowCount() / table.getState().pagination.pageSize);
1734
+ };
1735
+ table.getRowCount = () => {
1736
+ var _table$options$rowCou;
1737
+ return (_table$options$rowCou = table.options.rowCount) != null ? _table$options$rowCou : table.getPrePaginationRowModel().rows.length;
1738
+ };
1739
+ }
1740
+ };
1741
+ var getDefaultRowPinningState = () => ({
1742
+ top: [],
1743
+ bottom: []
1744
+ });
1745
+ var RowPinning = {
1746
+ getInitialState: (state) => {
1747
+ return __spreadValues({
1748
+ rowPinning: getDefaultRowPinningState()
1749
+ }, state);
1750
+ },
1751
+ getDefaultOptions: (table) => {
1752
+ return {
1753
+ onRowPinningChange: makeStateUpdater("rowPinning", table)
1754
+ };
1755
+ },
1756
+ createRow: (row, table) => {
1757
+ row.pin = (position, includeLeafRows, includeParentRows) => {
1758
+ const leafRowIds = includeLeafRows ? row.getLeafRows().map((_ref) => {
1759
+ let {
1760
+ id
1761
+ } = _ref;
1762
+ return id;
1763
+ }) : [];
1764
+ const parentRowIds = includeParentRows ? row.getParentRows().map((_ref2) => {
1765
+ let {
1766
+ id
1767
+ } = _ref2;
1768
+ return id;
1769
+ }) : [];
1770
+ const rowIds = /* @__PURE__ */ new Set([...parentRowIds, row.id, ...leafRowIds]);
1771
+ table.setRowPinning((old) => {
1772
+ var _old$top3, _old$bottom3;
1773
+ if (position === "bottom") {
1774
+ var _old$top, _old$bottom;
1775
+ return {
1776
+ top: ((_old$top = old == null ? void 0 : old.top) != null ? _old$top : []).filter((d) => !(rowIds != null && rowIds.has(d))),
1777
+ bottom: [...((_old$bottom = old == null ? void 0 : old.bottom) != null ? _old$bottom : []).filter((d) => !(rowIds != null && rowIds.has(d))), ...Array.from(rowIds)]
1778
+ };
1779
+ }
1780
+ if (position === "top") {
1781
+ var _old$top2, _old$bottom2;
1782
+ return {
1783
+ top: [...((_old$top2 = old == null ? void 0 : old.top) != null ? _old$top2 : []).filter((d) => !(rowIds != null && rowIds.has(d))), ...Array.from(rowIds)],
1784
+ bottom: ((_old$bottom2 = old == null ? void 0 : old.bottom) != null ? _old$bottom2 : []).filter((d) => !(rowIds != null && rowIds.has(d)))
1785
+ };
1786
+ }
1787
+ return {
1788
+ top: ((_old$top3 = old == null ? void 0 : old.top) != null ? _old$top3 : []).filter((d) => !(rowIds != null && rowIds.has(d))),
1789
+ bottom: ((_old$bottom3 = old == null ? void 0 : old.bottom) != null ? _old$bottom3 : []).filter((d) => !(rowIds != null && rowIds.has(d)))
1790
+ };
1791
+ });
1792
+ };
1793
+ row.getCanPin = () => {
1794
+ var _ref3;
1795
+ const {
1796
+ enableRowPinning,
1797
+ enablePinning
1798
+ } = table.options;
1799
+ if (typeof enableRowPinning === "function") {
1800
+ return enableRowPinning(row);
1801
+ }
1802
+ return (_ref3 = enableRowPinning != null ? enableRowPinning : enablePinning) != null ? _ref3 : true;
1803
+ };
1804
+ row.getIsPinned = () => {
1805
+ const rowIds = [row.id];
1806
+ const {
1807
+ top,
1808
+ bottom
1809
+ } = table.getState().rowPinning;
1810
+ const isTop = rowIds.some((d) => top == null ? void 0 : top.includes(d));
1811
+ const isBottom = rowIds.some((d) => bottom == null ? void 0 : bottom.includes(d));
1812
+ return isTop ? "top" : isBottom ? "bottom" : false;
1813
+ };
1814
+ row.getPinnedIndex = () => {
1815
+ var _ref4, _visiblePinnedRowIds$;
1816
+ const position = row.getIsPinned();
1817
+ if (!position) return -1;
1818
+ const visiblePinnedRowIds = (_ref4 = position === "top" ? table.getTopRows() : table.getBottomRows()) == null ? void 0 : _ref4.map((_ref5) => {
1819
+ let {
1820
+ id
1821
+ } = _ref5;
1822
+ return id;
1823
+ });
1824
+ return (_visiblePinnedRowIds$ = visiblePinnedRowIds == null ? void 0 : visiblePinnedRowIds.indexOf(row.id)) != null ? _visiblePinnedRowIds$ : -1;
1825
+ };
1826
+ },
1827
+ createTable: (table) => {
1828
+ table.setRowPinning = (updater) => table.options.onRowPinningChange == null ? void 0 : table.options.onRowPinningChange(updater);
1829
+ table.resetRowPinning = (defaultState) => {
1830
+ var _table$initialState$r, _table$initialState;
1831
+ return table.setRowPinning(defaultState ? getDefaultRowPinningState() : (_table$initialState$r = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.rowPinning) != null ? _table$initialState$r : getDefaultRowPinningState());
1832
+ };
1833
+ table.getIsSomeRowsPinned = (position) => {
1834
+ var _pinningState$positio;
1835
+ const pinningState = table.getState().rowPinning;
1836
+ if (!position) {
1837
+ var _pinningState$top, _pinningState$bottom;
1838
+ return Boolean(((_pinningState$top = pinningState.top) == null ? void 0 : _pinningState$top.length) || ((_pinningState$bottom = pinningState.bottom) == null ? void 0 : _pinningState$bottom.length));
1839
+ }
1840
+ return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
1841
+ };
1842
+ table._getPinnedRows = (visibleRows, pinnedRowIds, position) => {
1843
+ var _table$options$keepPi;
1844
+ const rows = ((_table$options$keepPi = table.options.keepPinnedRows) != null ? _table$options$keepPi : true) ? (
1845
+ //get all rows that are pinned even if they would not be otherwise visible
1846
+ //account for expanded parent rows, but not pagination or filtering
1847
+ (pinnedRowIds != null ? pinnedRowIds : []).map((rowId) => {
1848
+ const row = table.getRow(rowId, true);
1849
+ return row.getIsAllParentsExpanded() ? row : null;
1850
+ })
1851
+ ) : (
1852
+ //else get only visible rows that are pinned
1853
+ (pinnedRowIds != null ? pinnedRowIds : []).map((rowId) => visibleRows.find((row) => row.id === rowId))
1854
+ );
1855
+ return rows.filter(Boolean).map((d) => __spreadProps(__spreadValues({}, d), {
1856
+ position
1857
+ }));
1858
+ };
1859
+ table.getTopRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top], (allRows, topPinnedRowIds) => table._getPinnedRows(allRows, topPinnedRowIds, "top"), getMemoOptions(table.options, "debugRows", "getTopRows"));
1860
+ table.getBottomRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.bottom], (allRows, bottomPinnedRowIds) => table._getPinnedRows(allRows, bottomPinnedRowIds, "bottom"), getMemoOptions(table.options, "debugRows", "getBottomRows"));
1861
+ table.getCenterRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top, table.getState().rowPinning.bottom], (allRows, top, bottom) => {
1862
+ const topAndBottom = /* @__PURE__ */ new Set([...top != null ? top : [], ...bottom != null ? bottom : []]);
1863
+ return allRows.filter((d) => !topAndBottom.has(d.id));
1864
+ }, getMemoOptions(table.options, "debugRows", "getCenterRows"));
1865
+ }
1866
+ };
1867
+ var RowSelection = {
1868
+ getInitialState: (state) => {
1869
+ return __spreadValues({
1870
+ rowSelection: {}
1871
+ }, state);
1872
+ },
1873
+ getDefaultOptions: (table) => {
1874
+ return {
1875
+ onRowSelectionChange: makeStateUpdater("rowSelection", table),
1876
+ enableRowSelection: true,
1877
+ enableMultiRowSelection: true,
1878
+ enableSubRowSelection: true
1879
+ // enableGroupingRowSelection: false,
1880
+ // isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
1881
+ // isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
1882
+ };
1883
+ },
1884
+ createTable: (table) => {
1885
+ table.setRowSelection = (updater) => table.options.onRowSelectionChange == null ? void 0 : table.options.onRowSelectionChange(updater);
1886
+ table.resetRowSelection = (defaultState) => {
1887
+ var _table$initialState$r;
1888
+ return table.setRowSelection(defaultState ? {} : (_table$initialState$r = table.initialState.rowSelection) != null ? _table$initialState$r : {});
1889
+ };
1890
+ table.toggleAllRowsSelected = (value) => {
1891
+ table.setRowSelection((old) => {
1892
+ value = typeof value !== "undefined" ? value : !table.getIsAllRowsSelected();
1893
+ const rowSelection = __spreadValues({}, old);
1894
+ const preGroupedFlatRows = table.getPreGroupedRowModel().flatRows;
1895
+ if (value) {
1896
+ preGroupedFlatRows.forEach((row) => {
1897
+ if (!row.getCanSelect()) {
1898
+ return;
1899
+ }
1900
+ rowSelection[row.id] = true;
1901
+ });
1902
+ } else {
1903
+ preGroupedFlatRows.forEach((row) => {
1904
+ delete rowSelection[row.id];
1905
+ });
1906
+ }
1907
+ return rowSelection;
1908
+ });
1909
+ };
1910
+ table.toggleAllPageRowsSelected = (value) => table.setRowSelection((old) => {
1911
+ const resolvedValue = typeof value !== "undefined" ? value : !table.getIsAllPageRowsSelected();
1912
+ const rowSelection = __spreadValues({}, old);
1913
+ table.getRowModel().rows.forEach((row) => {
1914
+ mutateRowIsSelected(rowSelection, row.id, resolvedValue, true, table);
1915
+ });
1916
+ return rowSelection;
1917
+ });
1918
+ table.getPreSelectedRowModel = () => table.getCoreRowModel();
1919
+ table.getSelectedRowModel = memo(() => [table.getState().rowSelection, table.getCoreRowModel()], (rowSelection, rowModel) => {
1920
+ if (!Object.keys(rowSelection).length) {
1921
+ return {
1922
+ rows: [],
1923
+ flatRows: [],
1924
+ rowsById: {}
1925
+ };
1926
+ }
1927
+ return selectRowsFn(table, rowModel);
1928
+ }, getMemoOptions(table.options, "debugTable", "getSelectedRowModel"));
1929
+ table.getFilteredSelectedRowModel = memo(() => [table.getState().rowSelection, table.getFilteredRowModel()], (rowSelection, rowModel) => {
1930
+ if (!Object.keys(rowSelection).length) {
1931
+ return {
1932
+ rows: [],
1933
+ flatRows: [],
1934
+ rowsById: {}
1935
+ };
1936
+ }
1937
+ return selectRowsFn(table, rowModel);
1938
+ }, getMemoOptions(table.options, "debugTable", "getFilteredSelectedRowModel"));
1939
+ table.getGroupedSelectedRowModel = memo(() => [table.getState().rowSelection, table.getSortedRowModel()], (rowSelection, rowModel) => {
1940
+ if (!Object.keys(rowSelection).length) {
1941
+ return {
1942
+ rows: [],
1943
+ flatRows: [],
1944
+ rowsById: {}
1945
+ };
1946
+ }
1947
+ return selectRowsFn(table, rowModel);
1948
+ }, getMemoOptions(table.options, "debugTable", "getGroupedSelectedRowModel"));
1949
+ table.getIsAllRowsSelected = () => {
1950
+ const preGroupedFlatRows = table.getFilteredRowModel().flatRows;
1951
+ const {
1952
+ rowSelection
1953
+ } = table.getState();
1954
+ let isAllRowsSelected = Boolean(preGroupedFlatRows.length && Object.keys(rowSelection).length);
1955
+ if (isAllRowsSelected) {
1956
+ if (preGroupedFlatRows.some((row) => row.getCanSelect() && !rowSelection[row.id])) {
1957
+ isAllRowsSelected = false;
1958
+ }
1959
+ }
1960
+ return isAllRowsSelected;
1961
+ };
1962
+ table.getIsAllPageRowsSelected = () => {
1963
+ const paginationFlatRows = table.getPaginationRowModel().flatRows.filter((row) => row.getCanSelect());
1964
+ const {
1965
+ rowSelection
1966
+ } = table.getState();
1967
+ let isAllPageRowsSelected = !!paginationFlatRows.length;
1968
+ if (isAllPageRowsSelected && paginationFlatRows.some((row) => !rowSelection[row.id])) {
1969
+ isAllPageRowsSelected = false;
1970
+ }
1971
+ return isAllPageRowsSelected;
1972
+ };
1973
+ table.getIsSomeRowsSelected = () => {
1974
+ var _table$getState$rowSe;
1975
+ const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
1976
+ return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
1977
+ };
1978
+ table.getIsSomePageRowsSelected = () => {
1979
+ const paginationFlatRows = table.getPaginationRowModel().flatRows;
1980
+ return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.filter((row) => row.getCanSelect()).some((d) => d.getIsSelected() || d.getIsSomeSelected());
1981
+ };
1982
+ table.getToggleAllRowsSelectedHandler = () => {
1983
+ return (e) => {
1984
+ table.toggleAllRowsSelected(e.target.checked);
1985
+ };
1986
+ };
1987
+ table.getToggleAllPageRowsSelectedHandler = () => {
1988
+ return (e) => {
1989
+ table.toggleAllPageRowsSelected(e.target.checked);
1990
+ };
1991
+ };
1992
+ },
1993
+ createRow: (row, table) => {
1994
+ row.toggleSelected = (value, opts) => {
1995
+ const isSelected = row.getIsSelected();
1996
+ table.setRowSelection((old) => {
1997
+ var _opts$selectChildren;
1998
+ value = typeof value !== "undefined" ? value : !isSelected;
1999
+ if (row.getCanSelect() && isSelected === value) {
2000
+ return old;
2001
+ }
2002
+ const selectedRowIds = __spreadValues({}, old);
2003
+ mutateRowIsSelected(selectedRowIds, row.id, value, (_opts$selectChildren = opts == null ? void 0 : opts.selectChildren) != null ? _opts$selectChildren : true, table);
2004
+ return selectedRowIds;
2005
+ });
2006
+ };
2007
+ row.getIsSelected = () => {
2008
+ const {
2009
+ rowSelection
2010
+ } = table.getState();
2011
+ return isRowSelected(row, rowSelection);
2012
+ };
2013
+ row.getIsSomeSelected = () => {
2014
+ const {
2015
+ rowSelection
2016
+ } = table.getState();
2017
+ return isSubRowSelected(row, rowSelection) === "some";
2018
+ };
2019
+ row.getIsAllSubRowsSelected = () => {
2020
+ const {
2021
+ rowSelection
2022
+ } = table.getState();
2023
+ return isSubRowSelected(row, rowSelection) === "all";
2024
+ };
2025
+ row.getCanSelect = () => {
2026
+ var _table$options$enable;
2027
+ if (typeof table.options.enableRowSelection === "function") {
2028
+ return table.options.enableRowSelection(row);
2029
+ }
2030
+ return (_table$options$enable = table.options.enableRowSelection) != null ? _table$options$enable : true;
2031
+ };
2032
+ row.getCanSelectSubRows = () => {
2033
+ var _table$options$enable2;
2034
+ if (typeof table.options.enableSubRowSelection === "function") {
2035
+ return table.options.enableSubRowSelection(row);
2036
+ }
2037
+ return (_table$options$enable2 = table.options.enableSubRowSelection) != null ? _table$options$enable2 : true;
2038
+ };
2039
+ row.getCanMultiSelect = () => {
2040
+ var _table$options$enable3;
2041
+ if (typeof table.options.enableMultiRowSelection === "function") {
2042
+ return table.options.enableMultiRowSelection(row);
2043
+ }
2044
+ return (_table$options$enable3 = table.options.enableMultiRowSelection) != null ? _table$options$enable3 : true;
2045
+ };
2046
+ row.getToggleSelectedHandler = () => {
2047
+ const canSelect = row.getCanSelect();
2048
+ return (e) => {
2049
+ var _target;
2050
+ if (!canSelect) return;
2051
+ row.toggleSelected((_target = e.target) == null ? void 0 : _target.checked);
2052
+ };
2053
+ };
2054
+ }
2055
+ };
2056
+ var mutateRowIsSelected = (selectedRowIds, id, value, includeChildren, table) => {
2057
+ var _row$subRows;
2058
+ const row = table.getRow(id, true);
2059
+ if (value) {
2060
+ if (!row.getCanMultiSelect()) {
2061
+ Object.keys(selectedRowIds).forEach((key) => delete selectedRowIds[key]);
2062
+ }
2063
+ if (row.getCanSelect()) {
2064
+ selectedRowIds[id] = true;
2065
+ }
2066
+ } else {
2067
+ delete selectedRowIds[id];
2068
+ }
2069
+ if (includeChildren && (_row$subRows = row.subRows) != null && _row$subRows.length && row.getCanSelectSubRows()) {
2070
+ row.subRows.forEach((row2) => mutateRowIsSelected(selectedRowIds, row2.id, value, includeChildren, table));
2071
+ }
2072
+ };
2073
+ function selectRowsFn(table, rowModel) {
2074
+ const rowSelection = table.getState().rowSelection;
2075
+ const newSelectedFlatRows = [];
2076
+ const newSelectedRowsById = {};
2077
+ const recurseRows = function(rows, depth) {
2078
+ return rows.map((row) => {
2079
+ var _row$subRows2;
2080
+ const isSelected = isRowSelected(row, rowSelection);
2081
+ if (isSelected) {
2082
+ newSelectedFlatRows.push(row);
2083
+ newSelectedRowsById[row.id] = row;
2084
+ }
2085
+ if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
2086
+ row = __spreadProps(__spreadValues({}, row), {
2087
+ subRows: recurseRows(row.subRows)
2088
+ });
2089
+ }
2090
+ if (isSelected) {
2091
+ return row;
2092
+ }
2093
+ }).filter(Boolean);
2094
+ };
2095
+ return {
2096
+ rows: recurseRows(rowModel.rows),
2097
+ flatRows: newSelectedFlatRows,
2098
+ rowsById: newSelectedRowsById
2099
+ };
2100
+ }
2101
+ function isRowSelected(row, selection) {
2102
+ var _selection$row$id;
2103
+ return (_selection$row$id = selection[row.id]) != null ? _selection$row$id : false;
2104
+ }
2105
+ function isSubRowSelected(row, selection, table) {
2106
+ var _row$subRows3;
2107
+ if (!((_row$subRows3 = row.subRows) != null && _row$subRows3.length)) return false;
2108
+ let allChildrenSelected = true;
2109
+ let someSelected = false;
2110
+ row.subRows.forEach((subRow) => {
2111
+ if (someSelected && !allChildrenSelected) {
2112
+ return;
2113
+ }
2114
+ if (subRow.getCanSelect()) {
2115
+ if (isRowSelected(subRow, selection)) {
2116
+ someSelected = true;
2117
+ } else {
2118
+ allChildrenSelected = false;
2119
+ }
2120
+ }
2121
+ if (subRow.subRows && subRow.subRows.length) {
2122
+ const subRowChildrenSelected = isSubRowSelected(subRow, selection);
2123
+ if (subRowChildrenSelected === "all") {
2124
+ someSelected = true;
2125
+ } else if (subRowChildrenSelected === "some") {
2126
+ someSelected = true;
2127
+ allChildrenSelected = false;
2128
+ } else {
2129
+ allChildrenSelected = false;
2130
+ }
2131
+ }
2132
+ });
2133
+ return allChildrenSelected ? "all" : someSelected ? "some" : false;
2134
+ }
2135
+ var reSplitAlphaNumeric = /([0-9]+)/gm;
2136
+ var alphanumeric = (rowA, rowB, columnId) => {
2137
+ return compareAlphanumeric(toString(rowA.getValue(columnId)).toLowerCase(), toString(rowB.getValue(columnId)).toLowerCase());
2138
+ };
2139
+ var alphanumericCaseSensitive = (rowA, rowB, columnId) => {
2140
+ return compareAlphanumeric(toString(rowA.getValue(columnId)), toString(rowB.getValue(columnId)));
2141
+ };
2142
+ var text = (rowA, rowB, columnId) => {
2143
+ return compareBasic(toString(rowA.getValue(columnId)).toLowerCase(), toString(rowB.getValue(columnId)).toLowerCase());
2144
+ };
2145
+ var textCaseSensitive = (rowA, rowB, columnId) => {
2146
+ return compareBasic(toString(rowA.getValue(columnId)), toString(rowB.getValue(columnId)));
2147
+ };
2148
+ var datetime = (rowA, rowB, columnId) => {
2149
+ const a = rowA.getValue(columnId);
2150
+ const b = rowB.getValue(columnId);
2151
+ return a > b ? 1 : a < b ? -1 : 0;
2152
+ };
2153
+ var basic = (rowA, rowB, columnId) => {
2154
+ return compareBasic(rowA.getValue(columnId), rowB.getValue(columnId));
2155
+ };
2156
+ function compareBasic(a, b) {
2157
+ return a === b ? 0 : a > b ? 1 : -1;
2158
+ }
2159
+ function toString(a) {
2160
+ if (typeof a === "number") {
2161
+ if (isNaN(a) || a === Infinity || a === -Infinity) {
2162
+ return "";
2163
+ }
2164
+ return String(a);
2165
+ }
2166
+ if (typeof a === "string") {
2167
+ return a;
2168
+ }
2169
+ return "";
2170
+ }
2171
+ function compareAlphanumeric(aStr, bStr) {
2172
+ const a = aStr.split(reSplitAlphaNumeric).filter(Boolean);
2173
+ const b = bStr.split(reSplitAlphaNumeric).filter(Boolean);
2174
+ while (a.length && b.length) {
2175
+ const aa = a.shift();
2176
+ const bb = b.shift();
2177
+ const an = parseInt(aa, 10);
2178
+ const bn = parseInt(bb, 10);
2179
+ const combo = [an, bn].sort();
2180
+ if (isNaN(combo[0])) {
2181
+ if (aa > bb) {
2182
+ return 1;
2183
+ }
2184
+ if (bb > aa) {
2185
+ return -1;
2186
+ }
2187
+ continue;
2188
+ }
2189
+ if (isNaN(combo[1])) {
2190
+ return isNaN(an) ? -1 : 1;
2191
+ }
2192
+ if (an > bn) {
2193
+ return 1;
2194
+ }
2195
+ if (bn > an) {
2196
+ return -1;
2197
+ }
2198
+ }
2199
+ return a.length - b.length;
2200
+ }
2201
+ var sortingFns = {
2202
+ alphanumeric,
2203
+ alphanumericCaseSensitive,
2204
+ text,
2205
+ textCaseSensitive,
2206
+ datetime,
2207
+ basic
2208
+ };
2209
+ var RowSorting = {
2210
+ getInitialState: (state) => {
2211
+ return __spreadValues({
2212
+ sorting: []
2213
+ }, state);
2214
+ },
2215
+ getDefaultColumnDef: () => {
2216
+ return {
2217
+ sortingFn: "auto",
2218
+ sortUndefined: 1
2219
+ };
2220
+ },
2221
+ getDefaultOptions: (table) => {
2222
+ return {
2223
+ onSortingChange: makeStateUpdater("sorting", table),
2224
+ isMultiSortEvent: (e) => {
2225
+ return e.shiftKey;
2226
+ }
2227
+ };
2228
+ },
2229
+ createColumn: (column, table) => {
2230
+ column.getAutoSortingFn = () => {
2231
+ const firstRows = table.getFilteredRowModel().flatRows.slice(10);
2232
+ let isString = false;
2233
+ for (const row of firstRows) {
2234
+ const value = row == null ? void 0 : row.getValue(column.id);
2235
+ if (Object.prototype.toString.call(value) === "[object Date]") {
2236
+ return sortingFns.datetime;
2237
+ }
2238
+ if (typeof value === "string") {
2239
+ isString = true;
2240
+ if (value.split(reSplitAlphaNumeric).length > 1) {
2241
+ return sortingFns.alphanumeric;
2242
+ }
2243
+ }
2244
+ }
2245
+ if (isString) {
2246
+ return sortingFns.text;
2247
+ }
2248
+ return sortingFns.basic;
2249
+ };
2250
+ column.getAutoSortDir = () => {
2251
+ const firstRow = table.getFilteredRowModel().flatRows[0];
2252
+ const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
2253
+ if (typeof value === "string") {
2254
+ return "asc";
2255
+ }
2256
+ return "desc";
2257
+ };
2258
+ column.getSortingFn = () => {
2259
+ var _table$options$sortin, _table$options$sortin2;
2260
+ if (!column) {
2261
+ throw new Error();
2262
+ }
2263
+ return isFunction(column.columnDef.sortingFn) ? column.columnDef.sortingFn : column.columnDef.sortingFn === "auto" ? column.getAutoSortingFn() : (_table$options$sortin = (_table$options$sortin2 = table.options.sortingFns) == null ? void 0 : _table$options$sortin2[column.columnDef.sortingFn]) != null ? _table$options$sortin : sortingFns[column.columnDef.sortingFn];
2264
+ };
2265
+ column.toggleSorting = (desc, multi) => {
2266
+ const nextSortingOrder = column.getNextSortingOrder();
2267
+ const hasManualValue = typeof desc !== "undefined" && desc !== null;
2268
+ table.setSorting((old) => {
2269
+ const existingSorting = old == null ? void 0 : old.find((d) => d.id === column.id);
2270
+ const existingIndex = old == null ? void 0 : old.findIndex((d) => d.id === column.id);
2271
+ let newSorting = [];
2272
+ let sortAction;
2273
+ let nextDesc = hasManualValue ? desc : nextSortingOrder === "desc";
2274
+ if (old != null && old.length && column.getCanMultiSort() && multi) {
2275
+ if (existingSorting) {
2276
+ sortAction = "toggle";
2277
+ } else {
2278
+ sortAction = "add";
2279
+ }
2280
+ } else {
2281
+ if (old != null && old.length && existingIndex !== old.length - 1) {
2282
+ sortAction = "replace";
2283
+ } else if (existingSorting) {
2284
+ sortAction = "toggle";
2285
+ } else {
2286
+ sortAction = "replace";
2287
+ }
2288
+ }
2289
+ if (sortAction === "toggle") {
2290
+ if (!hasManualValue) {
2291
+ if (!nextSortingOrder) {
2292
+ sortAction = "remove";
2293
+ }
2294
+ }
2295
+ }
2296
+ if (sortAction === "add") {
2297
+ var _table$options$maxMul;
2298
+ newSorting = [...old, {
2299
+ id: column.id,
2300
+ desc: nextDesc
2301
+ }];
2302
+ newSorting.splice(0, newSorting.length - ((_table$options$maxMul = table.options.maxMultiSortColCount) != null ? _table$options$maxMul : Number.MAX_SAFE_INTEGER));
2303
+ } else if (sortAction === "toggle") {
2304
+ newSorting = old.map((d) => {
2305
+ if (d.id === column.id) {
2306
+ return __spreadProps(__spreadValues({}, d), {
2307
+ desc: nextDesc
2308
+ });
2309
+ }
2310
+ return d;
2311
+ });
2312
+ } else if (sortAction === "remove") {
2313
+ newSorting = old.filter((d) => d.id !== column.id);
2314
+ } else {
2315
+ newSorting = [{
2316
+ id: column.id,
2317
+ desc: nextDesc
2318
+ }];
2319
+ }
2320
+ return newSorting;
2321
+ });
2322
+ };
2323
+ column.getFirstSortDir = () => {
2324
+ var _ref, _column$columnDef$sor;
2325
+ const sortDescFirst = (_ref = (_column$columnDef$sor = column.columnDef.sortDescFirst) != null ? _column$columnDef$sor : table.options.sortDescFirst) != null ? _ref : column.getAutoSortDir() === "desc";
2326
+ return sortDescFirst ? "desc" : "asc";
2327
+ };
2328
+ column.getNextSortingOrder = (multi) => {
2329
+ var _table$options$enable, _table$options$enable2;
2330
+ const firstSortDirection = column.getFirstSortDir();
2331
+ const isSorted = column.getIsSorted();
2332
+ if (!isSorted) {
2333
+ return firstSortDirection;
2334
+ }
2335
+ if (isSorted !== firstSortDirection && ((_table$options$enable = table.options.enableSortingRemoval) != null ? _table$options$enable : true) && // If enableSortRemove, enable in general
2336
+ (multi ? (_table$options$enable2 = table.options.enableMultiRemove) != null ? _table$options$enable2 : true : true)) {
2337
+ return false;
2338
+ }
2339
+ return isSorted === "desc" ? "asc" : "desc";
2340
+ };
2341
+ column.getCanSort = () => {
2342
+ var _column$columnDef$ena, _table$options$enable3;
2343
+ return ((_column$columnDef$ena = column.columnDef.enableSorting) != null ? _column$columnDef$ena : true) && ((_table$options$enable3 = table.options.enableSorting) != null ? _table$options$enable3 : true) && !!column.accessorFn;
2344
+ };
2345
+ column.getCanMultiSort = () => {
2346
+ var _ref2, _column$columnDef$ena2;
2347
+ return (_ref2 = (_column$columnDef$ena2 = column.columnDef.enableMultiSort) != null ? _column$columnDef$ena2 : table.options.enableMultiSort) != null ? _ref2 : !!column.accessorFn;
2348
+ };
2349
+ column.getIsSorted = () => {
2350
+ var _table$getState$sorti;
2351
+ const columnSort = (_table$getState$sorti = table.getState().sorting) == null ? void 0 : _table$getState$sorti.find((d) => d.id === column.id);
2352
+ return !columnSort ? false : columnSort.desc ? "desc" : "asc";
2353
+ };
2354
+ column.getSortIndex = () => {
2355
+ var _table$getState$sorti2, _table$getState$sorti3;
2356
+ return (_table$getState$sorti2 = (_table$getState$sorti3 = table.getState().sorting) == null ? void 0 : _table$getState$sorti3.findIndex((d) => d.id === column.id)) != null ? _table$getState$sorti2 : -1;
2357
+ };
2358
+ column.clearSorting = () => {
2359
+ table.setSorting((old) => old != null && old.length ? old.filter((d) => d.id !== column.id) : []);
2360
+ };
2361
+ column.getToggleSortingHandler = () => {
2362
+ const canSort = column.getCanSort();
2363
+ return (e) => {
2364
+ if (!canSort) return;
2365
+ e.persist == null || e.persist();
2366
+ column.toggleSorting == null || column.toggleSorting(void 0, column.getCanMultiSort() ? table.options.isMultiSortEvent == null ? void 0 : table.options.isMultiSortEvent(e) : false);
2367
+ };
2368
+ };
2369
+ },
2370
+ createTable: (table) => {
2371
+ table.setSorting = (updater) => table.options.onSortingChange == null ? void 0 : table.options.onSortingChange(updater);
2372
+ table.resetSorting = (defaultState) => {
2373
+ var _table$initialState$s, _table$initialState;
2374
+ table.setSorting(defaultState ? [] : (_table$initialState$s = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.sorting) != null ? _table$initialState$s : []);
2375
+ };
2376
+ table.getPreSortedRowModel = () => table.getGroupedRowModel();
2377
+ table.getSortedRowModel = () => {
2378
+ if (!table._getSortedRowModel && table.options.getSortedRowModel) {
2379
+ table._getSortedRowModel = table.options.getSortedRowModel(table);
2380
+ }
2381
+ if (table.options.manualSorting || !table._getSortedRowModel) {
2382
+ return table.getPreSortedRowModel();
2383
+ }
2384
+ return table._getSortedRowModel();
2385
+ };
2386
+ }
2387
+ };
2388
+ var builtInFeatures = [
2389
+ Headers,
2390
+ ColumnVisibility,
2391
+ ColumnOrdering,
2392
+ ColumnPinning,
2393
+ ColumnFaceting,
2394
+ ColumnFiltering,
2395
+ GlobalFaceting,
2396
+ //depends on ColumnFaceting
2397
+ GlobalFiltering,
2398
+ //depends on ColumnFiltering
2399
+ RowSorting,
2400
+ ColumnGrouping,
2401
+ //depends on RowSorting
2402
+ RowExpanding,
2403
+ RowPagination,
2404
+ RowPinning,
2405
+ RowSelection,
2406
+ ColumnSizing
2407
+ ];
2408
+ function createTable(options) {
2409
+ var _options$_features, _options$initialState;
2410
+ if (false) {
2411
+ console.info("Creating Table Instance...");
2412
+ }
2413
+ const _features = [...builtInFeatures, ...(_options$_features = options._features) != null ? _options$_features : []];
2414
+ let table = {
2415
+ _features
2416
+ };
2417
+ const defaultOptions = table._features.reduce((obj, feature) => {
2418
+ return Object.assign(obj, feature.getDefaultOptions == null ? void 0 : feature.getDefaultOptions(table));
2419
+ }, {});
2420
+ const mergeOptions = (options2) => {
2421
+ if (table.options.mergeOptions) {
2422
+ return table.options.mergeOptions(defaultOptions, options2);
2423
+ }
2424
+ return __spreadValues(__spreadValues({}, defaultOptions), options2);
2425
+ };
2426
+ const coreInitialState = {};
2427
+ let initialState = __spreadValues(__spreadValues({}, coreInitialState), (_options$initialState = options.initialState) != null ? _options$initialState : {});
2428
+ table._features.forEach((feature) => {
2429
+ var _feature$getInitialSt;
2430
+ initialState = (_feature$getInitialSt = feature.getInitialState == null ? void 0 : feature.getInitialState(initialState)) != null ? _feature$getInitialSt : initialState;
2431
+ });
2432
+ const queued = [];
2433
+ let queuedTimeout = false;
2434
+ const coreInstance = {
2435
+ _features,
2436
+ options: __spreadValues(__spreadValues({}, defaultOptions), options),
2437
+ initialState,
2438
+ _queue: (cb) => {
2439
+ queued.push(cb);
2440
+ if (!queuedTimeout) {
2441
+ queuedTimeout = true;
2442
+ Promise.resolve().then(() => {
2443
+ while (queued.length) {
2444
+ queued.shift()();
2445
+ }
2446
+ queuedTimeout = false;
2447
+ }).catch((error) => setTimeout(() => {
2448
+ throw error;
2449
+ }));
2450
+ }
2451
+ },
2452
+ reset: () => {
2453
+ table.setState(table.initialState);
2454
+ },
2455
+ setOptions: (updater) => {
2456
+ const newOptions = functionalUpdate(updater, table.options);
2457
+ table.options = mergeOptions(newOptions);
2458
+ },
2459
+ getState: () => {
2460
+ return table.options.state;
2461
+ },
2462
+ setState: (updater) => {
2463
+ table.options.onStateChange == null || table.options.onStateChange(updater);
2464
+ },
2465
+ _getRowId: (row, index, parent) => {
2466
+ var _table$options$getRow;
2467
+ return (_table$options$getRow = table.options.getRowId == null ? void 0 : table.options.getRowId(row, index, parent)) != null ? _table$options$getRow : `${parent ? [parent.id, index].join(".") : index}`;
2468
+ },
2469
+ getCoreRowModel: () => {
2470
+ if (!table._getCoreRowModel) {
2471
+ table._getCoreRowModel = table.options.getCoreRowModel(table);
2472
+ }
2473
+ return table._getCoreRowModel();
2474
+ },
2475
+ // The final calls start at the bottom of the model,
2476
+ // expanded rows, which then work their way up
2477
+ getRowModel: () => {
2478
+ return table.getPaginationRowModel();
2479
+ },
2480
+ //in next version, we should just pass in the row model as the optional 2nd arg
2481
+ getRow: (id, searchAll) => {
2482
+ let row = (searchAll ? table.getPrePaginationRowModel() : table.getRowModel()).rowsById[id];
2483
+ if (!row) {
2484
+ row = table.getCoreRowModel().rowsById[id];
2485
+ if (!row) {
2486
+ if (false) {
2487
+ throw new Error(`getRow could not find row with ID: ${id}`);
2488
+ }
2489
+ throw new Error();
2490
+ }
2491
+ }
2492
+ return row;
2493
+ },
2494
+ _getDefaultColumnDef: memo(() => [table.options.defaultColumn], (defaultColumn) => {
2495
+ var _defaultColumn;
2496
+ defaultColumn = (_defaultColumn = defaultColumn) != null ? _defaultColumn : {};
2497
+ return __spreadValues(__spreadValues({
2498
+ header: (props) => {
2499
+ const resolvedColumnDef = props.header.column.columnDef;
2500
+ if (resolvedColumnDef.accessorKey) {
2501
+ return resolvedColumnDef.accessorKey;
2502
+ }
2503
+ if (resolvedColumnDef.accessorFn) {
2504
+ return resolvedColumnDef.id;
2505
+ }
2506
+ return null;
2507
+ },
2508
+ // footer: props => props.header.column.id,
2509
+ cell: (props) => {
2510
+ var _props$renderValue$to, _props$renderValue;
2511
+ return (_props$renderValue$to = (_props$renderValue = props.renderValue()) == null || _props$renderValue.toString == null ? void 0 : _props$renderValue.toString()) != null ? _props$renderValue$to : null;
2512
+ }
2513
+ }, table._features.reduce((obj, feature) => {
2514
+ return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
2515
+ }, {})), defaultColumn);
2516
+ }, getMemoOptions(options, "debugColumns", "_getDefaultColumnDef")),
2517
+ _getColumnDefs: () => table.options.columns,
2518
+ getAllColumns: memo(() => [table._getColumnDefs()], (columnDefs) => {
2519
+ const recurseColumns = function(columnDefs2, parent, depth) {
2520
+ if (depth === void 0) {
2521
+ depth = 0;
2522
+ }
2523
+ return columnDefs2.map((columnDef) => {
2524
+ const column = createColumn(table, columnDef, depth, parent);
2525
+ const groupingColumnDef = columnDef;
2526
+ column.columns = groupingColumnDef.columns ? recurseColumns(groupingColumnDef.columns, column, depth + 1) : [];
2527
+ return column;
2528
+ });
2529
+ };
2530
+ return recurseColumns(columnDefs);
2531
+ }, getMemoOptions(options, "debugColumns", "getAllColumns")),
2532
+ getAllFlatColumns: memo(() => [table.getAllColumns()], (allColumns) => {
2533
+ return allColumns.flatMap((column) => {
2534
+ return column.getFlatColumns();
2535
+ });
2536
+ }, getMemoOptions(options, "debugColumns", "getAllFlatColumns")),
2537
+ _getAllFlatColumnsById: memo(() => [table.getAllFlatColumns()], (flatColumns) => {
2538
+ return flatColumns.reduce((acc, column) => {
2539
+ acc[column.id] = column;
2540
+ return acc;
2541
+ }, {});
2542
+ }, getMemoOptions(options, "debugColumns", "getAllFlatColumnsById")),
2543
+ getAllLeafColumns: memo(() => [table.getAllColumns(), table._getOrderColumnsFn()], (allColumns, orderColumns2) => {
2544
+ let leafColumns = allColumns.flatMap((column) => column.getLeafColumns());
2545
+ return orderColumns2(leafColumns);
2546
+ }, getMemoOptions(options, "debugColumns", "getAllLeafColumns")),
2547
+ getColumn: (columnId) => {
2548
+ const column = table._getAllFlatColumnsById()[columnId];
2549
+ if (false) {
2550
+ console.error(`[Table] Column with id '${columnId}' does not exist.`);
2551
+ }
2552
+ return column;
2553
+ }
2554
+ };
2555
+ Object.assign(table, coreInstance);
2556
+ for (let index = 0; index < table._features.length; index++) {
2557
+ const feature = table._features[index];
2558
+ feature == null || feature.createTable == null || feature.createTable(table);
2559
+ }
2560
+ return table;
2561
+ }
2562
+ function getCoreRowModel() {
2563
+ return (table) => memo(() => [table.options.data], (data) => {
2564
+ const rowModel = {
2565
+ rows: [],
2566
+ flatRows: [],
2567
+ rowsById: {}
2568
+ };
2569
+ const accessRows = function(originalRows, depth, parentRow) {
2570
+ if (depth === void 0) {
2571
+ depth = 0;
2572
+ }
2573
+ const rows = [];
2574
+ for (let i = 0; i < originalRows.length; i++) {
2575
+ const row = createRow(table, table._getRowId(originalRows[i], i, parentRow), originalRows[i], i, depth, void 0, parentRow == null ? void 0 : parentRow.id);
2576
+ rowModel.flatRows.push(row);
2577
+ rowModel.rowsById[row.id] = row;
2578
+ rows.push(row);
2579
+ if (table.options.getSubRows) {
2580
+ var _row$originalSubRows;
2581
+ row.originalSubRows = table.options.getSubRows(originalRows[i], i);
2582
+ if ((_row$originalSubRows = row.originalSubRows) != null && _row$originalSubRows.length) {
2583
+ row.subRows = accessRows(row.originalSubRows, depth + 1, row);
2584
+ }
2585
+ }
2586
+ }
2587
+ return rows;
2588
+ };
2589
+ rowModel.rows = accessRows(data);
2590
+ return rowModel;
2591
+ }, getMemoOptions(table.options, "debugTable", "getRowModel", () => table._autoResetPageIndex()));
2592
+ }
2593
+ function getExpandedRowModel() {
2594
+ return (table) => memo(() => [table.getState().expanded, table.getPreExpandedRowModel(), table.options.paginateExpandedRows], (expanded, rowModel, paginateExpandedRows) => {
2595
+ if (!rowModel.rows.length || expanded !== true && !Object.keys(expanded != null ? expanded : {}).length) {
2596
+ return rowModel;
2597
+ }
2598
+ if (!paginateExpandedRows) {
2599
+ return rowModel;
2600
+ }
2601
+ return expandRows(rowModel);
2602
+ }, getMemoOptions(table.options, "debugTable", "getExpandedRowModel"));
2603
+ }
2604
+ function expandRows(rowModel) {
2605
+ const expandedRows = [];
2606
+ const handleRow = (row) => {
2607
+ var _row$subRows;
2608
+ expandedRows.push(row);
2609
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length && row.getIsExpanded()) {
2610
+ row.subRows.forEach(handleRow);
2611
+ }
2612
+ };
2613
+ rowModel.rows.forEach(handleRow);
2614
+ return {
2615
+ rows: expandedRows,
2616
+ flatRows: rowModel.flatRows,
2617
+ rowsById: rowModel.rowsById
2618
+ };
2619
+ }
2620
+ function filterRows(rows, filterRowImpl, table) {
2621
+ if (table.options.filterFromLeafRows) {
2622
+ return filterRowModelFromLeafs(rows, filterRowImpl, table);
2623
+ }
2624
+ return filterRowModelFromRoot(rows, filterRowImpl, table);
2625
+ }
2626
+ function filterRowModelFromLeafs(rowsToFilter, filterRow, table) {
2627
+ var _table$options$maxLea;
2628
+ const newFilteredFlatRows = [];
2629
+ const newFilteredRowsById = {};
2630
+ const maxDepth = (_table$options$maxLea = table.options.maxLeafRowFilterDepth) != null ? _table$options$maxLea : 100;
2631
+ const recurseFilterRows = function(rowsToFilter2, depth) {
2632
+ if (depth === void 0) {
2633
+ depth = 0;
2634
+ }
2635
+ const rows = [];
2636
+ for (let i = 0; i < rowsToFilter2.length; i++) {
2637
+ var _row$subRows;
2638
+ let row = rowsToFilter2[i];
2639
+ const newRow = createRow(table, row.id, row.original, row.index, row.depth, void 0, row.parentId);
2640
+ newRow.columnFilters = row.columnFilters;
2641
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length && depth < maxDepth) {
2642
+ newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
2643
+ row = newRow;
2644
+ if (filterRow(row) && !newRow.subRows.length) {
2645
+ rows.push(row);
2646
+ newFilteredRowsById[row.id] = row;
2647
+ newFilteredFlatRows.push(row);
2648
+ continue;
2649
+ }
2650
+ if (filterRow(row) || newRow.subRows.length) {
2651
+ rows.push(row);
2652
+ newFilteredRowsById[row.id] = row;
2653
+ newFilteredFlatRows.push(row);
2654
+ continue;
2655
+ }
2656
+ } else {
2657
+ row = newRow;
2658
+ if (filterRow(row)) {
2659
+ rows.push(row);
2660
+ newFilteredRowsById[row.id] = row;
2661
+ newFilteredFlatRows.push(row);
2662
+ }
2663
+ }
2664
+ }
2665
+ return rows;
2666
+ };
2667
+ return {
2668
+ rows: recurseFilterRows(rowsToFilter),
2669
+ flatRows: newFilteredFlatRows,
2670
+ rowsById: newFilteredRowsById
2671
+ };
2672
+ }
2673
+ function filterRowModelFromRoot(rowsToFilter, filterRow, table) {
2674
+ var _table$options$maxLea2;
2675
+ const newFilteredFlatRows = [];
2676
+ const newFilteredRowsById = {};
2677
+ const maxDepth = (_table$options$maxLea2 = table.options.maxLeafRowFilterDepth) != null ? _table$options$maxLea2 : 100;
2678
+ const recurseFilterRows = function(rowsToFilter2, depth) {
2679
+ if (depth === void 0) {
2680
+ depth = 0;
2681
+ }
2682
+ const rows = [];
2683
+ for (let i = 0; i < rowsToFilter2.length; i++) {
2684
+ let row = rowsToFilter2[i];
2685
+ const pass = filterRow(row);
2686
+ if (pass) {
2687
+ var _row$subRows2;
2688
+ if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length && depth < maxDepth) {
2689
+ const newRow = createRow(table, row.id, row.original, row.index, row.depth, void 0, row.parentId);
2690
+ newRow.subRows = recurseFilterRows(row.subRows, depth + 1);
2691
+ row = newRow;
2692
+ }
2693
+ rows.push(row);
2694
+ newFilteredFlatRows.push(row);
2695
+ newFilteredRowsById[row.id] = row;
2696
+ }
2697
+ }
2698
+ return rows;
2699
+ };
2700
+ return {
2701
+ rows: recurseFilterRows(rowsToFilter),
2702
+ flatRows: newFilteredFlatRows,
2703
+ rowsById: newFilteredRowsById
2704
+ };
2705
+ }
2706
+ function getFilteredRowModel() {
2707
+ return (table) => memo(() => [table.getPreFilteredRowModel(), table.getState().columnFilters, table.getState().globalFilter], (rowModel, columnFilters, globalFilter) => {
2708
+ if (!rowModel.rows.length || !(columnFilters != null && columnFilters.length) && !globalFilter) {
2709
+ for (let i = 0; i < rowModel.flatRows.length; i++) {
2710
+ rowModel.flatRows[i].columnFilters = {};
2711
+ rowModel.flatRows[i].columnFiltersMeta = {};
2712
+ }
2713
+ return rowModel;
2714
+ }
2715
+ const resolvedColumnFilters = [];
2716
+ const resolvedGlobalFilters = [];
2717
+ (columnFilters != null ? columnFilters : []).forEach((d) => {
2718
+ var _filterFn$resolveFilt;
2719
+ const column = table.getColumn(d.id);
2720
+ if (!column) {
2721
+ return;
2722
+ }
2723
+ const filterFn = column.getFilterFn();
2724
+ if (!filterFn) {
2725
+ if (false) {
2726
+ console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${column.id}.`);
2727
+ }
2728
+ return;
2729
+ }
2730
+ resolvedColumnFilters.push({
2731
+ id: d.id,
2732
+ filterFn,
2733
+ resolvedValue: (_filterFn$resolveFilt = filterFn.resolveFilterValue == null ? void 0 : filterFn.resolveFilterValue(d.value)) != null ? _filterFn$resolveFilt : d.value
2734
+ });
2735
+ });
2736
+ const filterableIds = (columnFilters != null ? columnFilters : []).map((d) => d.id);
2737
+ const globalFilterFn = table.getGlobalFilterFn();
2738
+ const globallyFilterableColumns = table.getAllLeafColumns().filter((column) => column.getCanGlobalFilter());
2739
+ if (globalFilter && globalFilterFn && globallyFilterableColumns.length) {
2740
+ filterableIds.push("__global__");
2741
+ globallyFilterableColumns.forEach((column) => {
2742
+ var _globalFilterFn$resol;
2743
+ resolvedGlobalFilters.push({
2744
+ id: column.id,
2745
+ filterFn: globalFilterFn,
2746
+ resolvedValue: (_globalFilterFn$resol = globalFilterFn.resolveFilterValue == null ? void 0 : globalFilterFn.resolveFilterValue(globalFilter)) != null ? _globalFilterFn$resol : globalFilter
2747
+ });
2748
+ });
2749
+ }
2750
+ let currentColumnFilter;
2751
+ let currentGlobalFilter;
2752
+ for (let j = 0; j < rowModel.flatRows.length; j++) {
2753
+ const row = rowModel.flatRows[j];
2754
+ row.columnFilters = {};
2755
+ if (resolvedColumnFilters.length) {
2756
+ for (let i = 0; i < resolvedColumnFilters.length; i++) {
2757
+ currentColumnFilter = resolvedColumnFilters[i];
2758
+ const id = currentColumnFilter.id;
2759
+ row.columnFilters[id] = currentColumnFilter.filterFn(row, id, currentColumnFilter.resolvedValue, (filterMeta) => {
2760
+ row.columnFiltersMeta[id] = filterMeta;
2761
+ });
2762
+ }
2763
+ }
2764
+ if (resolvedGlobalFilters.length) {
2765
+ for (let i = 0; i < resolvedGlobalFilters.length; i++) {
2766
+ currentGlobalFilter = resolvedGlobalFilters[i];
2767
+ const id = currentGlobalFilter.id;
2768
+ if (currentGlobalFilter.filterFn(row, id, currentGlobalFilter.resolvedValue, (filterMeta) => {
2769
+ row.columnFiltersMeta[id] = filterMeta;
2770
+ })) {
2771
+ row.columnFilters.__global__ = true;
2772
+ break;
2773
+ }
2774
+ }
2775
+ if (row.columnFilters.__global__ !== true) {
2776
+ row.columnFilters.__global__ = false;
2777
+ }
2778
+ }
2779
+ }
2780
+ const filterRowsImpl = (row) => {
2781
+ for (let i = 0; i < filterableIds.length; i++) {
2782
+ if (row.columnFilters[filterableIds[i]] === false) {
2783
+ return false;
2784
+ }
2785
+ }
2786
+ return true;
2787
+ };
2788
+ return filterRows(rowModel.rows, filterRowsImpl, table);
2789
+ }, getMemoOptions(table.options, "debugTable", "getFilteredRowModel", () => table._autoResetPageIndex()));
2790
+ }
2791
+ function getPaginationRowModel(opts) {
2792
+ return (table) => memo(() => [table.getState().pagination, table.getPrePaginationRowModel(), table.options.paginateExpandedRows ? void 0 : table.getState().expanded], (pagination, rowModel) => {
2793
+ if (!rowModel.rows.length) {
2794
+ return rowModel;
2795
+ }
2796
+ const {
2797
+ pageSize,
2798
+ pageIndex
2799
+ } = pagination;
2800
+ let {
2801
+ rows,
2802
+ flatRows,
2803
+ rowsById
2804
+ } = rowModel;
2805
+ const pageStart = pageSize * pageIndex;
2806
+ const pageEnd = pageStart + pageSize;
2807
+ rows = rows.slice(pageStart, pageEnd);
2808
+ let paginatedRowModel;
2809
+ if (!table.options.paginateExpandedRows) {
2810
+ paginatedRowModel = expandRows({
2811
+ rows,
2812
+ flatRows,
2813
+ rowsById
2814
+ });
2815
+ } else {
2816
+ paginatedRowModel = {
2817
+ rows,
2818
+ flatRows,
2819
+ rowsById
2820
+ };
2821
+ }
2822
+ paginatedRowModel.flatRows = [];
2823
+ const handleRow = (row) => {
2824
+ paginatedRowModel.flatRows.push(row);
2825
+ if (row.subRows.length) {
2826
+ row.subRows.forEach(handleRow);
2827
+ }
2828
+ };
2829
+ paginatedRowModel.rows.forEach(handleRow);
2830
+ return paginatedRowModel;
2831
+ }, getMemoOptions(table.options, "debugTable", "getPaginationRowModel"));
2832
+ }
2833
+ function getSortedRowModel() {
2834
+ return (table) => memo(() => [table.getState().sorting, table.getPreSortedRowModel()], (sorting, rowModel) => {
2835
+ if (!rowModel.rows.length || !(sorting != null && sorting.length)) {
2836
+ return rowModel;
2837
+ }
2838
+ const sortingState = table.getState().sorting;
2839
+ const sortedFlatRows = [];
2840
+ const availableSorting = sortingState.filter((sort) => {
2841
+ var _table$getColumn;
2842
+ return (_table$getColumn = table.getColumn(sort.id)) == null ? void 0 : _table$getColumn.getCanSort();
2843
+ });
2844
+ const columnInfoById = {};
2845
+ availableSorting.forEach((sortEntry) => {
2846
+ const column = table.getColumn(sortEntry.id);
2847
+ if (!column) return;
2848
+ columnInfoById[sortEntry.id] = {
2849
+ sortUndefined: column.columnDef.sortUndefined,
2850
+ invertSorting: column.columnDef.invertSorting,
2851
+ sortingFn: column.getSortingFn()
2852
+ };
2853
+ });
2854
+ const sortData = (rows) => {
2855
+ const sortedData = rows.map((row) => __spreadValues({}, row));
2856
+ sortedData.sort((rowA, rowB) => {
2857
+ for (let i = 0; i < availableSorting.length; i += 1) {
2858
+ var _sortEntry$desc;
2859
+ const sortEntry = availableSorting[i];
2860
+ const columnInfo = columnInfoById[sortEntry.id];
2861
+ const sortUndefined = columnInfo.sortUndefined;
2862
+ const isDesc = (_sortEntry$desc = sortEntry == null ? void 0 : sortEntry.desc) != null ? _sortEntry$desc : false;
2863
+ let sortInt = 0;
2864
+ if (sortUndefined) {
2865
+ const aValue = rowA.getValue(sortEntry.id);
2866
+ const bValue = rowB.getValue(sortEntry.id);
2867
+ const aUndefined = aValue === void 0;
2868
+ const bUndefined = bValue === void 0;
2869
+ if (aUndefined || bUndefined) {
2870
+ if (sortUndefined === "first") return aUndefined ? -1 : 1;
2871
+ if (sortUndefined === "last") return aUndefined ? 1 : -1;
2872
+ sortInt = aUndefined && bUndefined ? 0 : aUndefined ? sortUndefined : -sortUndefined;
2873
+ }
2874
+ }
2875
+ if (sortInt === 0) {
2876
+ sortInt = columnInfo.sortingFn(rowA, rowB, sortEntry.id);
2877
+ }
2878
+ if (sortInt !== 0) {
2879
+ if (isDesc) {
2880
+ sortInt *= -1;
2881
+ }
2882
+ if (columnInfo.invertSorting) {
2883
+ sortInt *= -1;
2884
+ }
2885
+ return sortInt;
2886
+ }
2887
+ }
2888
+ return rowA.index - rowB.index;
2889
+ });
2890
+ sortedData.forEach((row) => {
2891
+ var _row$subRows;
2892
+ sortedFlatRows.push(row);
2893
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
2894
+ row.subRows = sortData(row.subRows);
2895
+ }
2896
+ });
2897
+ return sortedData;
2898
+ };
2899
+ return {
2900
+ rows: sortData(rowModel.rows),
2901
+ flatRows: sortedFlatRows,
2902
+ rowsById: rowModel.rowsById
2903
+ };
2904
+ }, getMemoOptions(table.options, "debugTable", "getSortedRowModel", () => table._autoResetPageIndex()));
2905
+ }
2906
+
2907
+ // node_modules/@tanstack/lit-table/build/lib/index.mjs
2908
+ function flexRender(Comp, props) {
2909
+ if (!Comp) return null;
2910
+ if (typeof Comp === "function") {
2911
+ return Comp(props);
2912
+ }
2913
+ return Comp;
2914
+ }
2915
+ var TableController = class {
2916
+ constructor(host) {
2917
+ __publicField(this, "tableInstance", null);
2918
+ __publicField(this, "_tableState", null);
2919
+ (this.host = host).addController(this);
2920
+ }
2921
+ table(options) {
2922
+ if (!this.tableInstance) {
2923
+ const resolvedOptions = __spreadValues({
2924
+ state: {},
2925
+ onStateChange: () => {
2926
+ },
2927
+ // noop
2928
+ renderFallbackValue: null
2929
+ }, options);
2930
+ this.tableInstance = createTable(resolvedOptions);
2931
+ this._tableState = __spreadValues(__spreadValues({}, this.tableInstance.initialState), options.state);
2932
+ }
2933
+ this.tableInstance.setOptions((prev) => __spreadProps(__spreadValues(__spreadValues({}, prev), options), {
2934
+ state: __spreadValues(__spreadValues({}, this._tableState), options.state),
2935
+ onStateChange: (updater) => {
2936
+ this._tableState = updater(this._tableState);
2937
+ this.host.requestUpdate();
2938
+ options.onStateChange == null || options.onStateChange(updater);
2939
+ }
2940
+ }));
2941
+ return this.tableInstance;
2942
+ }
2943
+ hostDisconnected() {
2944
+ }
2945
+ };
2946
+
2947
+ export {
2948
+ createColumnHelper,
2949
+ getCoreRowModel,
2950
+ getExpandedRowModel,
2951
+ getFilteredRowModel,
2952
+ getPaginationRowModel,
2953
+ getSortedRowModel,
2954
+ flexRender,
2955
+ TableController
2956
+ };
2957
+ /*! Bundled license information:
2958
+
2959
+ @tanstack/table-core/build/lib/index.mjs:
2960
+ (**
2961
+ * table-core
2962
+ *
2963
+ * Copyright (c) TanStack
2964
+ *
2965
+ * This source code is licensed under the MIT license found in the
2966
+ * LICENSE.md file in the root directory of this source tree.
2967
+ *
2968
+ * @license MIT
2969
+ *)
2970
+
2971
+ @tanstack/lit-table/build/lib/index.mjs:
2972
+ (**
2973
+ * lit-table
2974
+ *
2975
+ * Copyright (c) TanStack
2976
+ *
2977
+ * This source code is licensed under the MIT license found in the
2978
+ * LICENSE.md file in the root directory of this source tree.
2979
+ *
2980
+ * @license MIT
2981
+ *)
2982
+ */