@kdcloudjs/shoelace 1.0.20 → 1.0.22

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 (1341) hide show
  1. package/cdn/chunks/chunk.2CM45OPI.js +11 -0
  2. package/cdn/chunks/chunk.2M2IEZMJ.js +11 -0
  3. package/cdn/chunks/chunk.2YWTCW7W.js +11 -0
  4. package/cdn/chunks/chunk.2ZQOLEDC.js +11 -0
  5. package/cdn/chunks/chunk.3YYDPUTT.js +11 -0
  6. package/cdn/chunks/chunk.3ZDUMADR.js +358 -0
  7. package/cdn/chunks/chunk.3ZKKS3GH.js +21 -0
  8. package/cdn/chunks/chunk.42RSWJ72.js +21 -0
  9. package/cdn/chunks/chunk.4D35RY2E.js +21 -0
  10. package/cdn/chunks/chunk.4EVM3UF2.js +314 -0
  11. package/cdn/chunks/chunk.4STNX3YX.js +2953 -0
  12. package/cdn/chunks/chunk.5A2TQWJT.js +21 -0
  13. package/cdn/chunks/chunk.5DMVBFON.js +11 -0
  14. package/cdn/chunks/chunk.5E6J5ERA.js +113 -0
  15. package/cdn/chunks/chunk.5YMVI36Y.js +25 -0
  16. package/cdn/chunks/chunk.6APO5EBS.js +21 -0
  17. package/cdn/chunks/chunk.6BATQ6LY.js +11 -0
  18. package/cdn/chunks/chunk.6LEXUZ6W.js +118 -0
  19. package/cdn/chunks/chunk.6Z2NBGGA.js +346 -0
  20. package/cdn/chunks/chunk.7JIELPQI.js +29 -0
  21. package/cdn/chunks/chunk.7L6FJHOX.js +49 -0
  22. package/cdn/chunks/chunk.7M36RZAW.js +21 -0
  23. package/cdn/chunks/chunk.7NSBGUZO.js +216 -0
  24. package/cdn/chunks/chunk.7NTP4M3K.js +11 -0
  25. package/cdn/chunks/chunk.7WVYHJ3U.js +24 -0
  26. package/cdn/chunks/chunk.AJ6JKIU6.js +313 -0
  27. package/cdn/chunks/chunk.AJTTR72H.js +11 -0
  28. package/cdn/chunks/chunk.ALOIJIYN.js +29 -0
  29. package/cdn/chunks/chunk.ASTKIYOQ.js +5845 -0
  30. package/cdn/chunks/chunk.AUCKEGQD.js +53 -0
  31. package/cdn/chunks/chunk.AVIQ7AOD.js +336 -0
  32. package/cdn/chunks/chunk.B32KJU7E.js +58 -0
  33. package/cdn/chunks/chunk.B4VA5KO3.js +26 -0
  34. package/cdn/chunks/chunk.B5CEMB6B.js +114 -0
  35. package/cdn/chunks/chunk.BDLEZ22C.js +24 -0
  36. package/cdn/chunks/chunk.BEJDHOLO.js +11 -0
  37. package/cdn/chunks/chunk.BMTOC3GS.js +135 -0
  38. package/cdn/chunks/chunk.BMX6WZ5W.js +21 -0
  39. package/cdn/chunks/chunk.BOZ5C257.js +27 -0
  40. package/cdn/chunks/chunk.BQMHXX5Y.js +11 -0
  41. package/cdn/chunks/chunk.BWJJLA4R.js +11 -0
  42. package/cdn/chunks/chunk.BXULK73O.js +11 -0
  43. package/cdn/chunks/chunk.BYCZOE7M.js +11 -0
  44. package/cdn/chunks/chunk.BYNG7O4M.js +21 -0
  45. package/cdn/chunks/chunk.C2XSG2BT.js +82 -0
  46. package/cdn/chunks/chunk.CD3NR5KZ.js +21 -0
  47. package/cdn/chunks/chunk.CFQDN24E.js +11 -0
  48. package/cdn/chunks/chunk.CIBKWBQG.js +11 -0
  49. package/cdn/chunks/chunk.CIVWJFPJ.js +21 -0
  50. package/cdn/chunks/chunk.CTDWKH5S.js +11 -0
  51. package/cdn/chunks/chunk.CZXR5GQR.js +302 -0
  52. package/cdn/chunks/chunk.D4HH4ARG.js +1925 -0
  53. package/cdn/chunks/chunk.D6ASVSND.js +21 -0
  54. package/cdn/chunks/chunk.D6ZBEJWY.js +271 -0
  55. package/cdn/chunks/chunk.D7RBRGHN.js +11 -0
  56. package/cdn/chunks/chunk.DIIT24M3.js +11 -0
  57. package/cdn/chunks/chunk.DN6ULTYY.js +11 -0
  58. package/cdn/chunks/chunk.DNKBCPZM.js +24 -0
  59. package/cdn/chunks/chunk.DVVJN2I4.js +402 -0
  60. package/cdn/chunks/chunk.DW2A25GC.js +21 -0
  61. package/cdn/chunks/chunk.DWTWP5TK.js +510 -0
  62. package/cdn/chunks/chunk.E3NXW5FC.js +54 -0
  63. package/cdn/chunks/chunk.E6E5QBVB.js +11 -0
  64. package/cdn/chunks/chunk.E6HYHMAO.js +67 -0
  65. package/cdn/chunks/chunk.EPRQOZJV.js +120 -0
  66. package/cdn/chunks/chunk.EQRUE6HF.js +29 -0
  67. package/cdn/chunks/chunk.ESPY75AW.js +11 -0
  68. package/cdn/chunks/chunk.ET5B4S6F.js +455 -0
  69. package/cdn/chunks/chunk.EU2ML75I.js +158 -0
  70. package/cdn/chunks/chunk.EYJ6YHOV.js +28 -0
  71. package/cdn/chunks/chunk.F6SRH2TM.js +11 -0
  72. package/cdn/chunks/chunk.FJUDJGJY.js +11 -0
  73. package/cdn/chunks/chunk.FN5PB4Q3.js +11 -0
  74. package/cdn/chunks/chunk.FSL5GL6F.js +21 -0
  75. package/cdn/chunks/chunk.G25QQBJO.js +343 -0
  76. package/cdn/chunks/chunk.GDCM5KES.js +11 -0
  77. package/cdn/chunks/chunk.GDMHZY7D.js +299 -0
  78. package/cdn/chunks/chunk.GFGMIJRX.js +11 -0
  79. package/cdn/chunks/chunk.GJIWNWGD.js +235 -0
  80. package/cdn/chunks/chunk.GPV5OAV7.js +137 -0
  81. package/cdn/chunks/chunk.GQ6AEHMV.js +28 -0
  82. package/cdn/chunks/chunk.GVTEYK4N.js +7313 -0
  83. package/cdn/chunks/chunk.GWNNWDEA.js +11 -0
  84. package/cdn/chunks/chunk.H325IBML.js +11 -0
  85. package/cdn/chunks/chunk.H5D7466W.js +27 -0
  86. package/cdn/chunks/chunk.H5IFYSMF.js +11 -0
  87. package/cdn/chunks/chunk.HA4FKTFE.js +21 -0
  88. package/cdn/chunks/chunk.HJVCK55J.js +93 -0
  89. package/cdn/chunks/chunk.HJVLOY5X.js +335 -0
  90. package/cdn/chunks/chunk.HLFDOO43.js +24 -0
  91. package/cdn/chunks/chunk.HO2XTUD6.js +11 -0
  92. package/cdn/chunks/chunk.HRWFS3OO.js +233 -0
  93. package/cdn/chunks/chunk.HSMD375X.js +75 -0
  94. package/cdn/chunks/chunk.HU2TM4BN.js +11 -0
  95. package/cdn/chunks/chunk.I3DBIRF3.js +21 -0
  96. package/cdn/chunks/chunk.ICOEO3FS.js +49 -0
  97. package/cdn/chunks/chunk.IIPVWFCF.js +24 -0
  98. package/cdn/chunks/chunk.IQBUHVAQ.js +28 -0
  99. package/cdn/chunks/chunk.JE3G4PFV.js +11 -0
  100. package/cdn/chunks/chunk.JPNFGHFI.js +24 -0
  101. package/cdn/chunks/chunk.JTVJZDDS.js +335 -0
  102. package/cdn/chunks/chunk.JXQ2W4PK.js +1129 -0
  103. package/cdn/chunks/chunk.K2HS577V.js +25 -0
  104. package/cdn/chunks/chunk.KA2SALVR.js +25 -0
  105. package/cdn/chunks/chunk.KG7UNBFJ.js +24 -0
  106. package/cdn/chunks/chunk.KGDNX54L.js +11 -0
  107. package/cdn/chunks/chunk.KI4WN4VI.js +26 -0
  108. package/cdn/chunks/chunk.KIZNTB2O.js +219 -0
  109. package/cdn/chunks/chunk.KLZF7VBM.js +11 -0
  110. package/cdn/chunks/chunk.KNX5YZUV.js +11 -0
  111. package/cdn/chunks/chunk.KSNF2ZEA.js +11 -0
  112. package/cdn/chunks/chunk.KVE5R2BD.js +29 -0
  113. package/cdn/chunks/chunk.KVPYGLL3.js +27 -0
  114. package/cdn/chunks/chunk.KWRLMHDC.js +153 -0
  115. package/cdn/chunks/chunk.L4KUQW46.js +122 -0
  116. package/cdn/chunks/chunk.L7OMP3VD.js +236 -0
  117. package/cdn/chunks/chunk.LA3NAGA5.js +142 -0
  118. package/cdn/chunks/chunk.LBPBKZBP.js +21 -0
  119. package/cdn/chunks/chunk.LCY7JOBC.js +11 -0
  120. package/cdn/chunks/chunk.LEF7GSQ3.js +11 -0
  121. package/cdn/chunks/chunk.LFNFCZYE.js +276 -0
  122. package/cdn/chunks/chunk.LO7W7GOI.js +11 -0
  123. package/cdn/chunks/chunk.LPL4SGGY.js +11 -0
  124. package/cdn/chunks/chunk.LQI6ARO6.js +25 -0
  125. package/cdn/chunks/chunk.LTGCMLCD.js +11 -0
  126. package/cdn/chunks/chunk.LXDBQVSO.js +24 -0
  127. package/cdn/chunks/chunk.M4CWWPE2.js +21 -0
  128. package/cdn/chunks/chunk.MIY74YCU.js +1990 -0
  129. package/cdn/chunks/chunk.MVYBNIJZ.js +167 -0
  130. package/cdn/chunks/chunk.MWGLVFPI.js +28 -0
  131. package/cdn/chunks/chunk.N7RAIOQ7.js +11 -0
  132. package/cdn/chunks/chunk.NO2C7C24.js +103 -0
  133. package/cdn/chunks/chunk.NROU7XSM.js +11 -0
  134. package/cdn/chunks/chunk.NXAMED34.js +11 -0
  135. package/cdn/chunks/chunk.O6X46HH6.js +25 -0
  136. package/cdn/chunks/chunk.OASEKQXW.js +515 -0
  137. package/cdn/chunks/chunk.OOQAR74T.js +21 -0
  138. package/cdn/chunks/chunk.OPFUW64T.js +431 -0
  139. package/cdn/chunks/chunk.OZ26VFTF.js +11 -0
  140. package/cdn/chunks/chunk.OZVW34JQ.js +283 -0
  141. package/cdn/chunks/chunk.OZYOLL5P.js +11 -0
  142. package/cdn/chunks/chunk.P7CBHBNG.js +127 -0
  143. package/cdn/chunks/chunk.PGEDAEWE.js +24 -0
  144. package/cdn/chunks/chunk.PIEEG6RN.js +25 -0
  145. package/cdn/chunks/chunk.PKFDBOJJ.js +24 -0
  146. package/cdn/chunks/chunk.PZWKMKW6.js +11 -0
  147. package/cdn/chunks/chunk.QGKC2OCD.js +27 -0
  148. package/cdn/chunks/chunk.QHIT35AP.js +11 -0
  149. package/cdn/chunks/chunk.QIVMITAD.js +191 -0
  150. package/cdn/chunks/chunk.QLUS4PGD.js +26 -0
  151. package/cdn/chunks/chunk.QMTD3TWA.js +79 -0
  152. package/cdn/chunks/chunk.QUH25DPS.js +28 -0
  153. package/cdn/chunks/chunk.R3Z6N7GM.js +556 -0
  154. package/cdn/chunks/chunk.R6KYWG73.js +27 -0
  155. package/cdn/chunks/chunk.RET6RZGD.js +197 -0
  156. package/cdn/chunks/chunk.RG266O2T.js +724 -0
  157. package/cdn/chunks/chunk.RGDTGPSS.js +27 -0
  158. package/cdn/chunks/chunk.RGZJVHRH.js +25 -0
  159. package/cdn/chunks/chunk.RJP2ALSI.js +21 -0
  160. package/cdn/chunks/chunk.RLAYFIJD.js +11 -0
  161. package/cdn/chunks/chunk.RLIYLQLZ.js +50 -0
  162. package/cdn/chunks/chunk.RSMEU224.js +21 -0
  163. package/cdn/chunks/chunk.RSSCVLWU.js +26 -0
  164. package/cdn/chunks/chunk.RTUWPT6S.js +25 -0
  165. package/cdn/chunks/chunk.RV5GNJLC.js +586 -0
  166. package/cdn/chunks/chunk.RWCMUWT4.js +183 -0
  167. package/cdn/chunks/chunk.RXMX25Y3.js +11 -0
  168. package/cdn/chunks/chunk.S6CAFGAM.js +77 -0
  169. package/cdn/chunks/chunk.SDREWGD2.js +822 -0
  170. package/cdn/chunks/chunk.SGK6G2DX.js +216 -0
  171. package/cdn/chunks/chunk.SI3ULW5R.js +33 -0
  172. package/cdn/chunks/chunk.SPES5DKU.js +255 -0
  173. package/cdn/chunks/chunk.T2ZK3YNV.js +11 -0
  174. package/cdn/chunks/chunk.T7LPNB6G.js +186 -0
  175. package/cdn/chunks/chunk.THV7LDP3.js +11 -0
  176. package/cdn/chunks/chunk.TMXZV6I4.js +95 -0
  177. package/cdn/chunks/chunk.TNV7E3UH.js +292 -0
  178. package/cdn/chunks/chunk.TQXRAKUV.js +11 -0
  179. package/cdn/chunks/chunk.TV44OHUA.js +11 -0
  180. package/cdn/chunks/chunk.U2GLC7D6.js +21 -0
  181. package/cdn/chunks/chunk.U3EW3XKK.js +21 -0
  182. package/cdn/chunks/chunk.U7KQXLQK.js +367 -0
  183. package/cdn/chunks/chunk.UA3YBJZB.js +21 -0
  184. package/cdn/chunks/chunk.UDMNF7NJ.js +24 -0
  185. package/cdn/chunks/chunk.UGCLQAJF.js +1244 -0
  186. package/cdn/chunks/chunk.UQ5GY3VQ.js +42 -0
  187. package/cdn/chunks/chunk.UV45CWCU.js +21 -0
  188. package/cdn/chunks/chunk.V3YBAXL2.js +25 -0
  189. package/cdn/chunks/chunk.V7SFPY3Z.js +79 -0
  190. package/cdn/chunks/chunk.VA5SKNTX.js +97 -0
  191. package/cdn/chunks/chunk.VCD2CINA.js +24 -0
  192. package/cdn/chunks/chunk.VFRIFLHP.js +11 -0
  193. package/cdn/chunks/chunk.VJQNQR2N.js +36 -0
  194. package/cdn/chunks/chunk.VPWKT654.js +21 -0
  195. package/cdn/chunks/chunk.VQNHHWLA.js +24 -0
  196. package/cdn/chunks/chunk.VVQNTHGV.js +11 -0
  197. package/cdn/chunks/chunk.VZL4OYDP.js +28 -0
  198. package/cdn/chunks/chunk.W5P4WCWF.js +63 -0
  199. package/cdn/chunks/chunk.WID27ZVI.js +87 -0
  200. package/cdn/chunks/chunk.WY4T66P4.js +379 -0
  201. package/cdn/chunks/chunk.X47JS3TQ.js +11 -0
  202. package/cdn/chunks/chunk.X4AF572Z.js +11 -0
  203. package/cdn/chunks/chunk.X5L42NVW.js +11 -0
  204. package/cdn/chunks/chunk.X75W4SZN.js +279 -0
  205. package/cdn/chunks/chunk.XFF7N2RV.js +21 -0
  206. package/cdn/chunks/chunk.XKN7ML6G.js +11 -0
  207. package/cdn/chunks/chunk.XO74QCLQ.js +391 -0
  208. package/cdn/chunks/chunk.Y2P6YYQA.js +131 -0
  209. package/cdn/chunks/chunk.YDXTT57X.js +11 -0
  210. package/cdn/chunks/chunk.YK4VHZQU.js +24 -0
  211. package/cdn/chunks/chunk.YKZYUDV3.js +11 -0
  212. package/cdn/chunks/chunk.Z7Z5D2TF.js +11 -0
  213. package/cdn/chunks/chunk.ZA2GDZ2E.js +291 -0
  214. package/cdn/chunks/chunk.ZMQACYT2.js +24 -0
  215. package/cdn/chunks/chunk.ZMQEXK2B.js +583 -0
  216. package/cdn/chunks/chunk.ZNZBBCRH.js +27 -0
  217. package/cdn/chunks/chunk.ZSLM3NGU.js +73 -0
  218. package/cdn/chunks/chunk.ZVOFPK6X.js +11 -0
  219. package/cdn/components/alert/alert.component.js +4 -4
  220. package/cdn/components/alert/alert.js +5 -5
  221. package/cdn/components/animated-image/animated-image.component.js +3 -3
  222. package/cdn/components/animated-image/animated-image.js +4 -4
  223. package/cdn/components/animation/animation.component.js +2 -2
  224. package/cdn/components/animation/animation.js +3 -3
  225. package/cdn/components/avatar/avatar.component.js +3 -3
  226. package/cdn/components/avatar/avatar.js +4 -4
  227. package/cdn/components/badge/badge.component.js +2 -2
  228. package/cdn/components/badge/badge.js +3 -3
  229. package/cdn/components/breadcrumb/breadcrumb.component.js +3 -3
  230. package/cdn/components/breadcrumb/breadcrumb.js +4 -4
  231. package/cdn/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  232. package/cdn/components/breadcrumb-item/breadcrumb-item.js +3 -3
  233. package/cdn/components/button/button.component.js +4 -4
  234. package/cdn/components/button/button.js +5 -5
  235. package/cdn/components/button-group/button-group.component.js +2 -2
  236. package/cdn/components/button-group/button-group.js +3 -3
  237. package/cdn/components/calendar/calendar.component.js +6 -6
  238. package/cdn/components/calendar/calendar.js +6 -6
  239. package/cdn/components/card/card.component.js +2 -2
  240. package/cdn/components/card/card.js +3 -3
  241. package/cdn/components/carousel/carousel.component.js +3 -3
  242. package/cdn/components/carousel/carousel.js +4 -4
  243. package/cdn/components/carousel-item/carousel-item.component.js +2 -2
  244. package/cdn/components/carousel-item/carousel-item.js +3 -3
  245. package/cdn/components/checkbox/checkbox.component.js +3 -3
  246. package/cdn/components/checkbox/checkbox.js +4 -4
  247. package/cdn/components/color-picker/color-picker.component.js +14 -14
  248. package/cdn/components/color-picker/color-picker.js +15 -15
  249. package/cdn/components/copy-button/copy-button.component.js +5 -5
  250. package/cdn/components/copy-button/copy-button.js +6 -6
  251. package/cdn/components/date-panel/date-panel.component.js +10 -10
  252. package/cdn/components/date-panel/date-panel.js +10 -10
  253. package/cdn/components/date-panel/date-panel.styles.js +1 -1
  254. package/cdn/components/datepicker/datepicker.component.js +16 -16
  255. package/cdn/components/datepicker/datepicker.js +16 -16
  256. package/cdn/components/daterange/daterange.component.js +9 -9
  257. package/cdn/components/daterange/daterange.js +10 -10
  258. package/cdn/components/daterange/daterange.styles.js +1 -1
  259. package/cdn/components/details/details.component.js +3 -3
  260. package/cdn/components/details/details.js +4 -4
  261. package/cdn/components/dialog/dialog.component.js +4 -4
  262. package/cdn/components/dialog/dialog.js +5 -5
  263. package/cdn/components/divider/divider.component.js +2 -2
  264. package/cdn/components/divider/divider.js +3 -3
  265. package/cdn/components/drawer/drawer.component.js +4 -4
  266. package/cdn/components/drawer/drawer.js +5 -5
  267. package/cdn/components/dropdown/dropdown.component.js +4 -4
  268. package/cdn/components/dropdown/dropdown.js +5 -5
  269. package/cdn/components/format-bytes/format-bytes.component.js +2 -2
  270. package/cdn/components/format-bytes/format-bytes.js +3 -3
  271. package/cdn/components/format-date/format-date.component.js +2 -2
  272. package/cdn/components/format-date/format-date.js +3 -3
  273. package/cdn/components/format-number/format-number.component.js +2 -2
  274. package/cdn/components/format-number/format-number.js +3 -3
  275. package/cdn/components/icon/icon.component.js +2 -2
  276. package/cdn/components/icon/icon.js +3 -3
  277. package/cdn/components/icon-button/icon-button.component.js +3 -3
  278. package/cdn/components/icon-button/icon-button.js +4 -4
  279. package/cdn/components/image-comparer/image-comparer.component.js +3 -3
  280. package/cdn/components/image-comparer/image-comparer.js +4 -4
  281. package/cdn/components/include/include.component.js +2 -2
  282. package/cdn/components/include/include.js +3 -3
  283. package/cdn/components/input/input.component.js +4 -4
  284. package/cdn/components/input/input.js +5 -5
  285. package/cdn/components/input/input.styles.js +1 -1
  286. package/cdn/components/menu/menu.component.js +2 -2
  287. package/cdn/components/menu/menu.js +3 -3
  288. package/cdn/components/menu-item/menu-item.component.js +5 -5
  289. package/cdn/components/menu-item/menu-item.js +6 -6
  290. package/cdn/components/menu-label/menu-label.component.js +2 -2
  291. package/cdn/components/menu-label/menu-label.js +3 -3
  292. package/cdn/components/mutation-observer/mutation-observer.component.js +2 -2
  293. package/cdn/components/mutation-observer/mutation-observer.js +3 -3
  294. package/cdn/components/nav/nav.component.js +28 -3
  295. package/cdn/components/nav/nav.js +29 -4
  296. package/cdn/components/nav/nav.styles.js +1 -1
  297. package/cdn/components/nav-group/nav-group.component.js +3 -3
  298. package/cdn/components/nav-group/nav-group.js +4 -4
  299. package/cdn/components/nav-group/nav-group.styles.js +1 -1
  300. package/cdn/components/nav-item/nav-item.component.js +3 -3
  301. package/cdn/components/nav-item/nav-item.js +4 -4
  302. package/cdn/components/nav-item/nav-item.styles.js +1 -1
  303. package/cdn/components/nav-submenu/nav-submenu.component.js +5 -5
  304. package/cdn/components/nav-submenu/nav-submenu.js +6 -6
  305. package/cdn/components/nav-submenu/nav-submenu.styles.js +1 -1
  306. package/cdn/components/option/option.component.js +3 -3
  307. package/cdn/components/option/option.js +4 -4
  308. package/cdn/components/pagination/custom-select.js +9 -9
  309. package/cdn/components/pagination/pagination.component.js +10 -10
  310. package/cdn/components/pagination/pagination.js +10 -10
  311. package/cdn/components/popup/popup.component.js +2 -2
  312. package/cdn/components/popup/popup.js +3 -3
  313. package/cdn/components/progress-bar/progress-bar.component.js +2 -2
  314. package/cdn/components/progress-bar/progress-bar.js +3 -3
  315. package/cdn/components/progress-ring/progress-ring.component.js +2 -2
  316. package/cdn/components/progress-ring/progress-ring.js +3 -3
  317. package/cdn/components/qr-code/qr-code.component.js +2 -2
  318. package/cdn/components/qr-code/qr-code.js +3 -3
  319. package/cdn/components/radio/radio.component.js +3 -3
  320. package/cdn/components/radio/radio.js +4 -4
  321. package/cdn/components/radio-button/radio-button.component.js +2 -2
  322. package/cdn/components/radio-button/radio-button.js +3 -3
  323. package/cdn/components/radio-group/radio-group.component.js +3 -3
  324. package/cdn/components/radio-group/radio-group.js +4 -4
  325. package/cdn/components/range/range.component.js +2 -2
  326. package/cdn/components/range/range.js +3 -3
  327. package/cdn/components/rating/rating.component.js +3 -3
  328. package/cdn/components/rating/rating.js +4 -4
  329. package/cdn/components/relative-time/relative-time.component.js +2 -2
  330. package/cdn/components/relative-time/relative-time.js +3 -3
  331. package/cdn/components/resize-observer/resize-observer.component.js +2 -2
  332. package/cdn/components/resize-observer/resize-observer.js +3 -3
  333. package/cdn/components/screen/screen.component.js +2 -2
  334. package/cdn/components/screen/screen.js +3 -3
  335. package/cdn/components/select/select.component.js +6 -6
  336. package/cdn/components/select/select.js +7 -7
  337. package/cdn/components/skeleton/skeleton.component.js +2 -2
  338. package/cdn/components/skeleton/skeleton.js +3 -3
  339. package/cdn/components/spinner/spinner.component.js +2 -2
  340. package/cdn/components/spinner/spinner.js +3 -3
  341. package/cdn/components/split-panel/split-panel.component.js +2 -2
  342. package/cdn/components/split-panel/split-panel.js +3 -3
  343. package/cdn/components/switch/switch.component.js +2 -2
  344. package/cdn/components/switch/switch.js +3 -3
  345. package/cdn/components/tab/tab.component.js +4 -4
  346. package/cdn/components/tab/tab.js +5 -5
  347. package/cdn/components/tab-group/tab-group.component.js +5 -5
  348. package/cdn/components/tab-group/tab-group.js +6 -6
  349. package/cdn/components/tab-panel/tab-panel.component.js +2 -2
  350. package/cdn/components/tab-panel/tab-panel.js +3 -3
  351. package/cdn/components/table/body-table.js +2 -2
  352. package/cdn/components/table/head-table.js +20 -20
  353. package/cdn/components/table/spinner-container.js +2 -2
  354. package/cdn/components/table/table.component.js +27 -27
  355. package/cdn/components/table/table.js +29 -29
  356. package/cdn/components/tag/tag.component.js +4 -4
  357. package/cdn/components/tag/tag.js +5 -5
  358. package/cdn/components/textarea/textarea.component.js +2 -2
  359. package/cdn/components/textarea/textarea.js +3 -3
  360. package/cdn/components/time-panel/time-panel.component.js +5 -5
  361. package/cdn/components/time-panel/time-panel.js +5 -5
  362. package/cdn/components/timepicker/timepicker.component.js +16 -16
  363. package/cdn/components/timepicker/timepicker.js +16 -16
  364. package/cdn/components/tooltip/tooltip.component.js +3 -3
  365. package/cdn/components/tooltip/tooltip.js +4 -4
  366. package/cdn/components/tree/tree.component.js +7 -7
  367. package/cdn/components/tree/tree.js +8 -8
  368. package/cdn/components/tree-item/tree-item.component.js +5 -5
  369. package/cdn/components/tree-item/tree-item.js +6 -6
  370. package/cdn/components/visually-hidden/visually-hidden.component.js +2 -2
  371. package/cdn/components/visually-hidden/visually-hidden.js +3 -3
  372. package/cdn/custom-elements.json +5437 -4484
  373. package/cdn/react/alert/index.js +5 -5
  374. package/cdn/react/animated-image/index.js +4 -4
  375. package/cdn/react/animation/index.js +3 -3
  376. package/cdn/react/avatar/index.js +4 -4
  377. package/cdn/react/badge/index.js +3 -3
  378. package/cdn/react/breadcrumb/index.js +4 -4
  379. package/cdn/react/breadcrumb-item/index.js +3 -3
  380. package/cdn/react/button/index.js +5 -5
  381. package/cdn/react/button-group/index.js +3 -3
  382. package/cdn/react/card/index.js +3 -3
  383. package/cdn/react/carousel/index.js +4 -4
  384. package/cdn/react/carousel-item/index.js +3 -3
  385. package/cdn/react/checkbox/index.js +4 -4
  386. package/cdn/react/color-picker/index.js +15 -15
  387. package/cdn/react/copy-button/index.js +6 -6
  388. package/cdn/react/date-panel/index.js +11 -11
  389. package/cdn/react/datepicker/index.js +17 -17
  390. package/cdn/react/daterange/index.js +10 -10
  391. package/cdn/react/details/index.js +4 -4
  392. package/cdn/react/dialog/index.js +5 -5
  393. package/cdn/react/divider/index.js +3 -3
  394. package/cdn/react/drawer/index.js +5 -5
  395. package/cdn/react/dropdown/index.js +5 -5
  396. package/cdn/react/format-bytes/index.js +3 -3
  397. package/cdn/react/format-date/index.js +3 -3
  398. package/cdn/react/format-number/index.js +3 -3
  399. package/cdn/react/icon/index.js +3 -3
  400. package/cdn/react/icon-button/index.js +4 -4
  401. package/cdn/react/image-comparer/index.js +4 -4
  402. package/cdn/react/include/index.js +3 -3
  403. package/cdn/react/index.js +211 -211
  404. package/cdn/react/input/index.js +5 -5
  405. package/cdn/react/menu/index.js +3 -3
  406. package/cdn/react/menu-item/index.js +6 -6
  407. package/cdn/react/menu-label/index.js +3 -3
  408. package/cdn/react/mutation-observer/index.js +3 -3
  409. package/cdn/react/nav/index.js +29 -4
  410. package/cdn/react/nav-group/index.js +4 -4
  411. package/cdn/react/nav-item/index.js +4 -4
  412. package/cdn/react/nav-submenu/index.js +6 -6
  413. package/cdn/react/option/index.js +4 -4
  414. package/cdn/react/pagination/index.js +11 -11
  415. package/cdn/react/popup/index.js +3 -3
  416. package/cdn/react/progress-bar/index.js +3 -3
  417. package/cdn/react/progress-ring/index.js +3 -3
  418. package/cdn/react/qr-code/index.js +3 -3
  419. package/cdn/react/radio/index.js +4 -4
  420. package/cdn/react/radio-button/index.js +3 -3
  421. package/cdn/react/radio-group/index.js +4 -4
  422. package/cdn/react/range/index.js +3 -3
  423. package/cdn/react/rating/index.js +4 -4
  424. package/cdn/react/relative-time/index.js +3 -3
  425. package/cdn/react/resize-observer/index.js +3 -3
  426. package/cdn/react/screen/index.js +3 -3
  427. package/cdn/react/select/index.js +7 -7
  428. package/cdn/react/skeleton/index.js +3 -3
  429. package/cdn/react/spinner/index.js +3 -3
  430. package/cdn/react/split-panel/index.js +3 -3
  431. package/cdn/react/switch/index.js +3 -3
  432. package/cdn/react/tab/index.js +5 -5
  433. package/cdn/react/tab-group/index.js +6 -6
  434. package/cdn/react/tab-panel/index.js +3 -3
  435. package/cdn/react/table/index.js +28 -28
  436. package/cdn/react/tag/index.js +5 -5
  437. package/cdn/react/textarea/index.js +3 -3
  438. package/cdn/react/timepicker/index.js +17 -17
  439. package/cdn/react/tooltip/index.js +4 -4
  440. package/cdn/react/tree/index.js +8 -8
  441. package/cdn/react/tree-item/index.js +6 -6
  442. package/cdn/react/visually-hidden/index.js +3 -3
  443. package/cdn/shoelace.js +184 -184
  444. package/cdn/themes/dark.css +0 -1
  445. package/cdn/themes/dark.styles.js +0 -1
  446. package/cdn/themes/light.css +11 -11
  447. package/cdn/themes/light.styles.js +11 -11
  448. package/cdn/themes/nova.css +37 -26
  449. package/cdn/themes/nova.styles.js +37 -26
  450. package/cdn/types/vue/index.d.ts +285 -210
  451. package/cdn/vscode.html-custom-data.json +289 -222
  452. package/cdn/web-types.json +1100 -840
  453. package/dist/chunks/chunk.23OG2WCM.js +11 -0
  454. package/dist/chunks/chunk.26ZD3S7Y.js +21 -0
  455. package/dist/chunks/chunk.2DKS2HFH.js +28 -0
  456. package/dist/chunks/chunk.2FUVLRCV.js +24 -0
  457. package/dist/chunks/chunk.2GHXZAQI.js +293 -0
  458. package/dist/chunks/chunk.2HCBSW4B.js +11 -0
  459. package/dist/chunks/chunk.2JIH63GY.js +11 -0
  460. package/dist/chunks/chunk.2XLL7YNQ.js +11 -0
  461. package/dist/chunks/chunk.2YYHPEVO.js +11 -0
  462. package/dist/chunks/chunk.36TVT6YF.js +11 -0
  463. package/dist/chunks/chunk.3EBM4TXW.js +80 -0
  464. package/dist/chunks/chunk.3OB3LWMM.js +577 -0
  465. package/dist/chunks/chunk.3RHW3QZ2.js +315 -0
  466. package/dist/chunks/chunk.3UHHEDUQ.js +93 -0
  467. package/dist/chunks/chunk.3WMLGMZN.js +21 -0
  468. package/dist/chunks/chunk.3YNKWXRR.js +329 -0
  469. package/dist/chunks/chunk.4B4DPFHD.js +162 -0
  470. package/dist/chunks/chunk.4HA245FV.js +247 -0
  471. package/dist/chunks/chunk.4VVYVRBW.js +28 -0
  472. package/dist/chunks/chunk.4YSIIAV6.js +306 -0
  473. package/dist/chunks/chunk.5B57XRR7.js +11 -0
  474. package/dist/chunks/chunk.5JCM4ACS.js +21 -0
  475. package/dist/chunks/chunk.5VOVJ6U4.js +25 -0
  476. package/dist/chunks/chunk.5Y6EKMRE.js +24 -0
  477. package/dist/chunks/chunk.5YXRUJZA.js +11 -0
  478. package/dist/chunks/chunk.6DZWGDY4.js +21 -0
  479. package/dist/chunks/chunk.6FSZMBBK.js +550 -0
  480. package/dist/chunks/chunk.6IPMTFGI.js +11 -0
  481. package/dist/chunks/chunk.6LRK2OAA.js +417 -0
  482. package/dist/chunks/chunk.6M3KDB3W.js +502 -0
  483. package/dist/chunks/chunk.6SJ5NM3F.js +11 -0
  484. package/dist/chunks/chunk.6UOTLC2Q.js +11 -0
  485. package/dist/chunks/chunk.72XEGOEU.js +21 -0
  486. package/dist/chunks/chunk.74HBIRSW.js +117 -0
  487. package/dist/chunks/chunk.7HXAGTDG.js +24 -0
  488. package/dist/chunks/chunk.7JKNUYMB.js +181 -0
  489. package/dist/chunks/chunk.7KAEBXNM.js +11 -0
  490. package/dist/chunks/chunk.7MUJSLZU.js +21 -0
  491. package/dist/chunks/chunk.7OQTBZII.js +949 -0
  492. package/dist/chunks/chunk.7OTWENCM.js +189 -0
  493. package/dist/chunks/chunk.7OYIAAPX.js +21 -0
  494. package/dist/chunks/chunk.7X755TGA.js +21 -0
  495. package/dist/chunks/chunk.7YOONU2V.js +25 -0
  496. package/dist/chunks/chunk.7Z2W6OXK.js +24 -0
  497. package/dist/chunks/chunk.A2RI6OCN.js +11 -0
  498. package/dist/chunks/chunk.A6R57GPQ.js +11 -0
  499. package/dist/chunks/chunk.ABHA54FT.js +67 -0
  500. package/dist/chunks/chunk.ACGBDTAV.js +21 -0
  501. package/dist/chunks/chunk.AFQ4W3IV.js +11 -0
  502. package/dist/chunks/chunk.AG6MRYHQ.js +96 -0
  503. package/dist/chunks/chunk.APHAPL3G.js +340 -0
  504. package/dist/chunks/chunk.B2AGCDAH.js +21 -0
  505. package/dist/chunks/chunk.BA22GN6J.js +24 -0
  506. package/dist/chunks/chunk.BBOVVW7N.js +45 -0
  507. package/dist/chunks/chunk.BBXOBKDA.js +119 -0
  508. package/dist/chunks/chunk.BFJVGUYU.js +25 -0
  509. package/dist/chunks/chunk.BLQ7F33C.js +11 -0
  510. package/dist/chunks/chunk.BOEZC6OD.js +85 -0
  511. package/dist/chunks/chunk.BPVPEL4F.js +77 -0
  512. package/dist/chunks/chunk.BR2I5NWY.js +24 -0
  513. package/dist/chunks/chunk.BVM3YF66.js +11 -0
  514. package/dist/chunks/chunk.C6CWTTCA.js +11 -0
  515. package/dist/chunks/chunk.CIRCW7LI.js +549 -0
  516. package/dist/chunks/chunk.CIWWDGZ6.js +11 -0
  517. package/dist/chunks/chunk.CQ7TQFXE.js +11 -0
  518. package/dist/chunks/chunk.CQBMYKTR.js +280 -0
  519. package/dist/chunks/chunk.CSHENRJ2.js +180 -0
  520. package/dist/chunks/chunk.CWCTMRXY.js +11 -0
  521. package/dist/chunks/chunk.CYJ53JTI.js +52 -0
  522. package/dist/chunks/chunk.CYOKNO44.js +27 -0
  523. package/dist/chunks/chunk.D5JJ3UOZ.js +227 -0
  524. package/dist/chunks/chunk.DN3NOFVF.js +25 -0
  525. package/dist/chunks/chunk.DPSVF6BX.js +286 -0
  526. package/dist/chunks/chunk.DS3544QD.js +25 -0
  527. package/dist/chunks/chunk.DT2PTDEQ.js +50 -0
  528. package/dist/chunks/chunk.DUHLBTTY.js +371 -0
  529. package/dist/chunks/chunk.E4WYPAWP.js +11 -0
  530. package/dist/chunks/chunk.EJ5HY6XL.js +21 -0
  531. package/dist/chunks/chunk.EKKKPYGJ.js +21 -0
  532. package/dist/chunks/chunk.EU53B7ZQ.js +100 -0
  533. package/dist/chunks/chunk.EVYFKMLF.js +26 -0
  534. package/dist/chunks/chunk.EW6EWFXR.js +294 -0
  535. package/dist/chunks/chunk.EWPZGOK4.js +11 -0
  536. package/dist/chunks/chunk.F62Y2DON.js +21 -0
  537. package/dist/chunks/chunk.F63YX4ZG.js +11 -0
  538. package/dist/chunks/chunk.FOXYEZ3Z.js +11 -0
  539. package/dist/chunks/chunk.FRW6GAJC.js +11 -0
  540. package/dist/chunks/chunk.FZHPOSO6.js +24 -0
  541. package/dist/chunks/chunk.GBZ5KOZE.js +11 -0
  542. package/dist/chunks/chunk.GFYRZ2OC.js +11 -0
  543. package/dist/chunks/chunk.GRRWZ3JO.js +21 -0
  544. package/dist/chunks/chunk.GU57KGKX.js +11 -0
  545. package/dist/chunks/chunk.GWOLQ5MV.js +73 -0
  546. package/dist/chunks/chunk.GWQNSIDU.js +28 -0
  547. package/dist/chunks/chunk.GX6DAIPL.js +21 -0
  548. package/dist/chunks/chunk.H2OLAKPY.js +45 -0
  549. package/dist/chunks/chunk.H37XJ4MV.js +214 -0
  550. package/dist/chunks/chunk.H7SU653X.js +25 -0
  551. package/dist/chunks/chunk.HEBIBOCB.js +24 -0
  552. package/dist/chunks/chunk.HGFPJLK5.js +21 -0
  553. package/dist/chunks/chunk.HLW7BCLC.js +11 -0
  554. package/dist/chunks/chunk.HOXJOYML.js +425 -0
  555. package/dist/chunks/chunk.HRHKJKRT.js +506 -0
  556. package/dist/chunks/chunk.HUWKYOVK.js +231 -0
  557. package/dist/chunks/chunk.HVVMQOVU.js +29 -0
  558. package/dist/chunks/chunk.HYWWRLSF.js +28 -0
  559. package/dist/chunks/chunk.I37BPTDO.js +25 -0
  560. package/dist/chunks/chunk.I64MN2ZT.js +11 -0
  561. package/dist/chunks/chunk.I7ZZEDZ4.js +27 -0
  562. package/dist/chunks/chunk.IFUP5NAQ.js +21 -0
  563. package/dist/chunks/chunk.IKD2GUTZ.js +11 -0
  564. package/dist/chunks/chunk.IMBE6NS7.js +21 -0
  565. package/dist/chunks/chunk.IQJAUZU7.js +192 -0
  566. package/dist/chunks/chunk.IVV46OK7.js +213 -0
  567. package/dist/chunks/chunk.IZLCWRVM.js +21 -0
  568. package/dist/chunks/chunk.JCU4QJQL.js +63 -0
  569. package/dist/chunks/chunk.JMLS7UTV.js +126 -0
  570. package/dist/chunks/chunk.JXW24NNM.js +384 -0
  571. package/dist/chunks/chunk.K63B5BDV.js +27 -0
  572. package/dist/chunks/chunk.KCX6OUXF.js +11 -0
  573. package/dist/chunks/chunk.KP5Y3VFD.js +24 -0
  574. package/dist/chunks/chunk.KSZZPJAE.js +27 -0
  575. package/dist/chunks/chunk.KW735VDQ.js +25 -0
  576. package/dist/chunks/chunk.KXDVL3I7.js +274 -0
  577. package/dist/chunks/chunk.LEGNL7H4.js +21 -0
  578. package/dist/chunks/chunk.LI3JWXGV.js +331 -0
  579. package/dist/chunks/chunk.LR53B5ZU.js +11 -0
  580. package/dist/chunks/chunk.LSRZA42R.js +11 -0
  581. package/dist/chunks/chunk.LVWF2BRI.js +11 -0
  582. package/dist/chunks/chunk.LY2OVPYP.js +11 -0
  583. package/dist/chunks/chunk.LZQ53CGA.js +134 -0
  584. package/dist/chunks/chunk.M23AFFIU.js +11 -0
  585. package/dist/chunks/chunk.M2TNPACZ.js +26 -0
  586. package/dist/chunks/chunk.MAQMQ4K7.js +26 -0
  587. package/dist/chunks/chunk.MHQRS66W.js +280 -0
  588. package/dist/chunks/chunk.MJ2I45FD.js +11 -0
  589. package/dist/chunks/chunk.MJUGRPNY.js +56 -0
  590. package/dist/chunks/chunk.MMONTZH6.js +126 -0
  591. package/dist/chunks/chunk.MUP3ORYH.js +21 -0
  592. package/dist/chunks/chunk.MYOEG5AG.js +116 -0
  593. package/dist/chunks/chunk.N3PO6ZCY.js +11 -0
  594. package/dist/chunks/chunk.N76DQWXN.js +113 -0
  595. package/dist/chunks/chunk.NBO2XEQX.js +11 -0
  596. package/dist/chunks/chunk.NJPWEDYB.js +135 -0
  597. package/dist/chunks/chunk.NPXKCPZI.js +24 -0
  598. package/dist/chunks/chunk.NXODKHKS.js +24 -0
  599. package/dist/chunks/chunk.O56EWGVI.js +11 -0
  600. package/dist/chunks/chunk.OF4T7ZN4.js +11 -0
  601. package/dist/chunks/chunk.OHP6N4NT.js +75 -0
  602. package/dist/chunks/chunk.OM2X6TYA.js +11 -0
  603. package/dist/chunks/chunk.P5LVTOVJ.js +25 -0
  604. package/dist/chunks/chunk.PJ2RI2XR.js +29 -0
  605. package/dist/chunks/chunk.PKDD7LC7.js +743 -0
  606. package/dist/chunks/chunk.PLXNL73R.js +11 -0
  607. package/dist/chunks/chunk.PLY4KNJ7.js +356 -0
  608. package/dist/chunks/chunk.PP45VZKM.js +21 -0
  609. package/dist/chunks/chunk.PPLGLVUK.js +167 -0
  610. package/dist/chunks/chunk.PRNO5MOD.js +11 -0
  611. package/dist/chunks/chunk.PYMHBZUR.js +50 -0
  612. package/dist/chunks/chunk.Q6MXK32G.js +11 -0
  613. package/dist/chunks/chunk.QI5DMS6S.js +151 -0
  614. package/dist/chunks/chunk.QRI3RO2Y.js +311 -0
  615. package/dist/chunks/chunk.QWBTYNHI.js +59 -0
  616. package/dist/chunks/chunk.R2FXVXDZ.js +11 -0
  617. package/dist/chunks/chunk.R4KRHIP5.js +11 -0
  618. package/dist/chunks/chunk.R5Z27L3J.js +230 -0
  619. package/dist/chunks/chunk.R7XUMWJC.js +34 -0
  620. package/dist/chunks/chunk.RI45COE3.js +28 -0
  621. package/dist/chunks/chunk.RI4HC5WM.js +22 -0
  622. package/dist/chunks/chunk.RKZC52MX.js +24 -0
  623. package/dist/chunks/chunk.RQREQ4HM.js +11 -0
  624. package/dist/chunks/chunk.RRWKU4GM.js +22 -0
  625. package/dist/chunks/chunk.SAMVARF5.js +24 -0
  626. package/dist/chunks/chunk.SMVQ7KLD.js +111 -0
  627. package/dist/chunks/chunk.T6YYQVKA.js +90 -0
  628. package/dist/chunks/chunk.TCK5LG2Y.js +213 -0
  629. package/dist/chunks/chunk.TJJ44BIO.js +26 -0
  630. package/dist/chunks/chunk.TSFTCJO7.js +21 -0
  631. package/dist/chunks/chunk.TTTFCOSZ.js +11 -0
  632. package/dist/chunks/chunk.TW6VYD4G.js +100 -0
  633. package/dist/chunks/chunk.U5TX7TIN.js +25 -0
  634. package/dist/chunks/chunk.UBJMNDLX.js +448 -0
  635. package/dist/chunks/chunk.UMFLL4JA.js +28 -0
  636. package/dist/chunks/chunk.UOHXQWDA.js +11 -0
  637. package/dist/chunks/chunk.UTSBALSC.js +27 -0
  638. package/dist/chunks/chunk.UVREUPWC.js +21 -0
  639. package/dist/chunks/chunk.V4MNQQDO.js +21 -0
  640. package/dist/chunks/chunk.V5U4BI4B.js +1242 -0
  641. package/dist/chunks/chunk.VA74CFPG.js +814 -0
  642. package/dist/chunks/chunk.VPZTKXAT.js +11 -0
  643. package/dist/chunks/chunk.VWKB2GF3.js +42 -0
  644. package/dist/chunks/chunk.VZGKZ4YC.js +11 -0
  645. package/dist/chunks/chunk.W2KFQRBC.js +11 -0
  646. package/dist/chunks/chunk.W3SNACYG.js +11 -0
  647. package/dist/chunks/chunk.WFFMFVBE.js +11 -0
  648. package/dist/chunks/chunk.WGQYVXZW.js +263 -0
  649. package/dist/chunks/chunk.WLYECG27.js +11 -0
  650. package/dist/chunks/chunk.WMQAVRXC.js +147 -0
  651. package/dist/chunks/chunk.WR2AHX7I.js +11 -0
  652. package/dist/chunks/chunk.WVCX76FP.js +27 -0
  653. package/dist/chunks/chunk.WXFDHT4J.js +91 -0
  654. package/dist/chunks/chunk.X276QAMP.js +21 -0
  655. package/dist/chunks/chunk.X4UO6LTB.js +11 -0
  656. package/dist/chunks/chunk.XB64HOBB.js +11 -0
  657. package/dist/chunks/chunk.XBCFSL2E.js +29 -0
  658. package/dist/chunks/chunk.XIWSHOAU.js +820 -0
  659. package/dist/chunks/chunk.XOLD26HY.js +397 -0
  660. package/dist/chunks/chunk.XRWHJU3T.js +75 -0
  661. package/dist/chunks/chunk.YACIYXNN.js +11 -0
  662. package/dist/chunks/chunk.YF3N67E7.js +109 -0
  663. package/dist/chunks/chunk.YI7VLVIB.js +11 -0
  664. package/dist/chunks/chunk.YONJNVK4.js +1120 -0
  665. package/dist/chunks/chunk.YWHYPIDP.js +361 -0
  666. package/dist/chunks/chunk.YZLKFDE5.js +29 -0
  667. package/dist/chunks/chunk.ZAM65RLS.js +11 -0
  668. package/dist/chunks/chunk.ZG6HRQWM.js +337 -0
  669. package/dist/chunks/chunk.ZIE7ZIS3.js +33 -0
  670. package/dist/chunks/chunk.ZNSIJFAS.js +11 -0
  671. package/dist/components/alert/alert.component.js +4 -4
  672. package/dist/components/alert/alert.js +5 -5
  673. package/dist/components/animated-image/animated-image.component.js +3 -3
  674. package/dist/components/animated-image/animated-image.js +4 -4
  675. package/dist/components/animation/animation.component.js +2 -2
  676. package/dist/components/animation/animation.js +3 -3
  677. package/dist/components/avatar/avatar.component.js +3 -3
  678. package/dist/components/avatar/avatar.js +4 -4
  679. package/dist/components/badge/badge.component.js +2 -2
  680. package/dist/components/badge/badge.js +3 -3
  681. package/dist/components/breadcrumb/breadcrumb.component.js +3 -3
  682. package/dist/components/breadcrumb/breadcrumb.js +4 -4
  683. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  684. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  685. package/dist/components/button/button.component.js +4 -4
  686. package/dist/components/button/button.js +5 -5
  687. package/dist/components/button-group/button-group.component.js +2 -2
  688. package/dist/components/button-group/button-group.js +3 -3
  689. package/dist/components/calendar/calendar.component.js +6 -6
  690. package/dist/components/calendar/calendar.js +6 -6
  691. package/dist/components/card/card.component.js +2 -2
  692. package/dist/components/card/card.js +3 -3
  693. package/dist/components/carousel/carousel.component.js +3 -3
  694. package/dist/components/carousel/carousel.js +4 -4
  695. package/dist/components/carousel-item/carousel-item.component.js +2 -2
  696. package/dist/components/carousel-item/carousel-item.js +3 -3
  697. package/dist/components/checkbox/checkbox.component.js +3 -3
  698. package/dist/components/checkbox/checkbox.js +4 -4
  699. package/dist/components/color-picker/color-picker.component.js +14 -14
  700. package/dist/components/color-picker/color-picker.js +15 -15
  701. package/dist/components/copy-button/copy-button.component.js +5 -5
  702. package/dist/components/copy-button/copy-button.js +6 -6
  703. package/dist/components/date-panel/date-panel.component.js +10 -10
  704. package/dist/components/date-panel/date-panel.js +10 -10
  705. package/dist/components/date-panel/date-panel.styles.js +1 -1
  706. package/dist/components/datepicker/datepicker.component.js +16 -16
  707. package/dist/components/datepicker/datepicker.js +16 -16
  708. package/dist/components/daterange/daterange.component.js +9 -9
  709. package/dist/components/daterange/daterange.js +10 -10
  710. package/dist/components/daterange/daterange.styles.js +1 -1
  711. package/dist/components/details/details.component.js +3 -3
  712. package/dist/components/details/details.js +4 -4
  713. package/dist/components/dialog/dialog.component.js +4 -4
  714. package/dist/components/dialog/dialog.js +5 -5
  715. package/dist/components/divider/divider.component.js +2 -2
  716. package/dist/components/divider/divider.js +3 -3
  717. package/dist/components/drawer/drawer.component.js +4 -4
  718. package/dist/components/drawer/drawer.js +5 -5
  719. package/dist/components/dropdown/dropdown.component.js +4 -4
  720. package/dist/components/dropdown/dropdown.js +5 -5
  721. package/dist/components/format-bytes/format-bytes.component.js +2 -2
  722. package/dist/components/format-bytes/format-bytes.js +3 -3
  723. package/dist/components/format-date/format-date.component.js +2 -2
  724. package/dist/components/format-date/format-date.js +3 -3
  725. package/dist/components/format-number/format-number.component.js +2 -2
  726. package/dist/components/format-number/format-number.js +3 -3
  727. package/dist/components/icon/icon.component.js +2 -2
  728. package/dist/components/icon/icon.js +3 -3
  729. package/dist/components/icon-button/icon-button.component.js +3 -3
  730. package/dist/components/icon-button/icon-button.js +4 -4
  731. package/dist/components/image-comparer/image-comparer.component.js +3 -3
  732. package/dist/components/image-comparer/image-comparer.js +4 -4
  733. package/dist/components/include/include.component.js +2 -2
  734. package/dist/components/include/include.js +3 -3
  735. package/dist/components/input/input.component.js +4 -4
  736. package/dist/components/input/input.js +5 -5
  737. package/dist/components/input/input.styles.js +1 -1
  738. package/dist/components/menu/menu.component.js +2 -2
  739. package/dist/components/menu/menu.js +3 -3
  740. package/dist/components/menu-item/menu-item.component.js +5 -5
  741. package/dist/components/menu-item/menu-item.js +6 -6
  742. package/dist/components/menu-label/menu-label.component.js +2 -2
  743. package/dist/components/menu-label/menu-label.js +3 -3
  744. package/dist/components/mutation-observer/mutation-observer.component.js +2 -2
  745. package/dist/components/mutation-observer/mutation-observer.js +3 -3
  746. package/dist/components/nav/nav.component.js +26 -3
  747. package/dist/components/nav/nav.js +27 -4
  748. package/dist/components/nav/nav.styles.js +1 -1
  749. package/dist/components/nav-group/nav-group.component.js +3 -3
  750. package/dist/components/nav-group/nav-group.js +4 -4
  751. package/dist/components/nav-group/nav-group.styles.js +1 -1
  752. package/dist/components/nav-item/nav-item.component.js +3 -3
  753. package/dist/components/nav-item/nav-item.js +4 -4
  754. package/dist/components/nav-item/nav-item.styles.js +1 -1
  755. package/dist/components/nav-submenu/nav-submenu.component.js +5 -5
  756. package/dist/components/nav-submenu/nav-submenu.js +6 -6
  757. package/dist/components/nav-submenu/nav-submenu.styles.js +1 -1
  758. package/dist/components/option/option.component.js +3 -3
  759. package/dist/components/option/option.js +4 -4
  760. package/dist/components/pagination/custom-select.js +9 -9
  761. package/dist/components/pagination/pagination.component.js +10 -10
  762. package/dist/components/pagination/pagination.js +10 -10
  763. package/dist/components/popup/popup.component.js +2 -2
  764. package/dist/components/popup/popup.js +3 -3
  765. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  766. package/dist/components/progress-bar/progress-bar.js +3 -3
  767. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  768. package/dist/components/progress-ring/progress-ring.js +3 -3
  769. package/dist/components/qr-code/qr-code.component.js +2 -2
  770. package/dist/components/qr-code/qr-code.js +3 -3
  771. package/dist/components/radio/radio.component.js +3 -3
  772. package/dist/components/radio/radio.js +4 -4
  773. package/dist/components/radio-button/radio-button.component.js +2 -2
  774. package/dist/components/radio-button/radio-button.js +3 -3
  775. package/dist/components/radio-group/radio-group.component.js +3 -3
  776. package/dist/components/radio-group/radio-group.js +4 -4
  777. package/dist/components/range/range.component.js +2 -2
  778. package/dist/components/range/range.js +3 -3
  779. package/dist/components/rating/rating.component.js +3 -3
  780. package/dist/components/rating/rating.js +4 -4
  781. package/dist/components/relative-time/relative-time.component.js +2 -2
  782. package/dist/components/relative-time/relative-time.js +3 -3
  783. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  784. package/dist/components/resize-observer/resize-observer.js +3 -3
  785. package/dist/components/screen/screen.component.js +2 -2
  786. package/dist/components/screen/screen.js +3 -3
  787. package/dist/components/select/select.component.js +6 -6
  788. package/dist/components/select/select.js +7 -7
  789. package/dist/components/skeleton/skeleton.component.js +2 -2
  790. package/dist/components/skeleton/skeleton.js +3 -3
  791. package/dist/components/spinner/spinner.component.js +2 -2
  792. package/dist/components/spinner/spinner.js +3 -3
  793. package/dist/components/split-panel/split-panel.component.js +2 -2
  794. package/dist/components/split-panel/split-panel.js +3 -3
  795. package/dist/components/switch/switch.component.js +2 -2
  796. package/dist/components/switch/switch.js +3 -3
  797. package/dist/components/tab/tab.component.js +4 -4
  798. package/dist/components/tab/tab.js +5 -5
  799. package/dist/components/tab-group/tab-group.component.js +5 -5
  800. package/dist/components/tab-group/tab-group.js +6 -6
  801. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  802. package/dist/components/tab-panel/tab-panel.js +3 -3
  803. package/dist/components/table/body-table.js +2 -2
  804. package/dist/components/table/head-table.js +20 -20
  805. package/dist/components/table/spinner-container.js +2 -2
  806. package/dist/components/table/table.component.js +27 -27
  807. package/dist/components/table/table.js +29 -29
  808. package/dist/components/tag/tag.component.js +4 -4
  809. package/dist/components/tag/tag.js +5 -5
  810. package/dist/components/textarea/textarea.component.js +2 -2
  811. package/dist/components/textarea/textarea.js +3 -3
  812. package/dist/components/time-panel/time-panel.component.js +5 -5
  813. package/dist/components/time-panel/time-panel.js +5 -5
  814. package/dist/components/timepicker/timepicker.component.js +16 -16
  815. package/dist/components/timepicker/timepicker.js +16 -16
  816. package/dist/components/tooltip/tooltip.component.js +3 -3
  817. package/dist/components/tooltip/tooltip.js +4 -4
  818. package/dist/components/tree/tree.component.js +7 -7
  819. package/dist/components/tree/tree.js +8 -8
  820. package/dist/components/tree-item/tree-item.component.js +5 -5
  821. package/dist/components/tree-item/tree-item.js +6 -6
  822. package/dist/components/visually-hidden/visually-hidden.component.js +2 -2
  823. package/dist/components/visually-hidden/visually-hidden.js +3 -3
  824. package/dist/custom-elements.json +5437 -4484
  825. package/dist/react/alert/index.js +5 -5
  826. package/dist/react/animated-image/index.js +4 -4
  827. package/dist/react/animation/index.js +3 -3
  828. package/dist/react/avatar/index.js +4 -4
  829. package/dist/react/badge/index.js +3 -3
  830. package/dist/react/breadcrumb/index.js +4 -4
  831. package/dist/react/breadcrumb-item/index.js +3 -3
  832. package/dist/react/button/index.js +5 -5
  833. package/dist/react/button-group/index.js +3 -3
  834. package/dist/react/card/index.js +3 -3
  835. package/dist/react/carousel/index.js +4 -4
  836. package/dist/react/carousel-item/index.js +3 -3
  837. package/dist/react/checkbox/index.js +4 -4
  838. package/dist/react/color-picker/index.js +15 -15
  839. package/dist/react/copy-button/index.js +6 -6
  840. package/dist/react/date-panel/index.js +11 -11
  841. package/dist/react/datepicker/index.js +17 -17
  842. package/dist/react/daterange/index.js +10 -10
  843. package/dist/react/details/index.js +4 -4
  844. package/dist/react/dialog/index.js +5 -5
  845. package/dist/react/divider/index.js +3 -3
  846. package/dist/react/drawer/index.js +5 -5
  847. package/dist/react/dropdown/index.js +5 -5
  848. package/dist/react/format-bytes/index.js +3 -3
  849. package/dist/react/format-date/index.js +3 -3
  850. package/dist/react/format-number/index.js +3 -3
  851. package/dist/react/icon/index.js +3 -3
  852. package/dist/react/icon-button/index.js +4 -4
  853. package/dist/react/image-comparer/index.js +4 -4
  854. package/dist/react/include/index.js +3 -3
  855. package/dist/react/index.js +211 -211
  856. package/dist/react/input/index.js +5 -5
  857. package/dist/react/menu/index.js +3 -3
  858. package/dist/react/menu-item/index.js +6 -6
  859. package/dist/react/menu-label/index.js +3 -3
  860. package/dist/react/mutation-observer/index.js +3 -3
  861. package/dist/react/nav/index.js +27 -4
  862. package/dist/react/nav-group/index.js +4 -4
  863. package/dist/react/nav-item/index.js +4 -4
  864. package/dist/react/nav-submenu/index.js +6 -6
  865. package/dist/react/option/index.js +4 -4
  866. package/dist/react/pagination/index.js +11 -11
  867. package/dist/react/popup/index.js +3 -3
  868. package/dist/react/progress-bar/index.js +3 -3
  869. package/dist/react/progress-ring/index.js +3 -3
  870. package/dist/react/qr-code/index.js +3 -3
  871. package/dist/react/radio/index.js +4 -4
  872. package/dist/react/radio-button/index.js +3 -3
  873. package/dist/react/radio-group/index.js +4 -4
  874. package/dist/react/range/index.js +3 -3
  875. package/dist/react/rating/index.js +4 -4
  876. package/dist/react/relative-time/index.js +3 -3
  877. package/dist/react/resize-observer/index.js +3 -3
  878. package/dist/react/screen/index.js +3 -3
  879. package/dist/react/select/index.js +7 -7
  880. package/dist/react/skeleton/index.js +3 -3
  881. package/dist/react/spinner/index.js +3 -3
  882. package/dist/react/split-panel/index.js +3 -3
  883. package/dist/react/switch/index.js +3 -3
  884. package/dist/react/tab/index.js +5 -5
  885. package/dist/react/tab-group/index.js +6 -6
  886. package/dist/react/tab-panel/index.js +3 -3
  887. package/dist/react/table/index.js +28 -28
  888. package/dist/react/tag/index.js +5 -5
  889. package/dist/react/textarea/index.js +3 -3
  890. package/dist/react/timepicker/index.js +17 -17
  891. package/dist/react/tooltip/index.js +4 -4
  892. package/dist/react/tree/index.js +8 -8
  893. package/dist/react/tree-item/index.js +6 -6
  894. package/dist/react/visually-hidden/index.js +3 -3
  895. package/dist/shoelace.js +184 -184
  896. package/dist/themes/dark.css +0 -1
  897. package/dist/themes/dark.styles.js +0 -1
  898. package/dist/themes/light.css +11 -11
  899. package/dist/themes/light.styles.js +11 -11
  900. package/dist/themes/nova.css +37 -26
  901. package/dist/themes/nova.styles.js +37 -26
  902. package/dist/types/vue/index.d.ts +285 -210
  903. package/dist/vscode.html-custom-data.json +289 -222
  904. package/dist/web-types.json +1100 -840
  905. package/package.json +1 -1
  906. package/cdn/chunks/chunk.2D23USCW.js +0 -140
  907. package/cdn/chunks/chunk.2RCCYUF5.js +0 -24
  908. package/cdn/chunks/chunk.2TKU3L4J.js +0 -24
  909. package/cdn/chunks/chunk.2U22GIRT.js +0 -25
  910. package/cdn/chunks/chunk.2Y3R65EN.js +0 -27
  911. package/cdn/chunks/chunk.2ZZL46WA.js +0 -26
  912. package/cdn/chunks/chunk.35PB6CZG.js +0 -25
  913. package/cdn/chunks/chunk.3EZHMWBD.js +0 -11
  914. package/cdn/chunks/chunk.3XAVCE7Z.js +0 -11
  915. package/cdn/chunks/chunk.3XFPVYL4.js +0 -347
  916. package/cdn/chunks/chunk.3XNKBI5S.js +0 -49
  917. package/cdn/chunks/chunk.3YQ4HMQM.js +0 -11
  918. package/cdn/chunks/chunk.3ZFUODKR.js +0 -25
  919. package/cdn/chunks/chunk.47PFA3VX.js +0 -33
  920. package/cdn/chunks/chunk.4A2CCC4V.js +0 -24
  921. package/cdn/chunks/chunk.4CPE4DNZ.js +0 -21
  922. package/cdn/chunks/chunk.4G67LFGE.js +0 -11
  923. package/cdn/chunks/chunk.4J6F7YHL.js +0 -1990
  924. package/cdn/chunks/chunk.4W5K5NIR.js +0 -11
  925. package/cdn/chunks/chunk.53YZYDXI.js +0 -21
  926. package/cdn/chunks/chunk.5ABJINYG.js +0 -28
  927. package/cdn/chunks/chunk.5BOJGKUG.js +0 -292
  928. package/cdn/chunks/chunk.5E22AYAA.js +0 -331
  929. package/cdn/chunks/chunk.5F4BMJ3X.js +0 -11
  930. package/cdn/chunks/chunk.5XSCZESR.js +0 -271
  931. package/cdn/chunks/chunk.65DBNMCE.js +0 -724
  932. package/cdn/chunks/chunk.6JAOORDG.js +0 -11
  933. package/cdn/chunks/chunk.6KIIUI7S.js +0 -219
  934. package/cdn/chunks/chunk.6R5PXXWV.js +0 -11
  935. package/cdn/chunks/chunk.6XIELA7H.js +0 -28
  936. package/cdn/chunks/chunk.77DX5FFD.js +0 -21
  937. package/cdn/chunks/chunk.7I2P3EI3.js +0 -11
  938. package/cdn/chunks/chunk.7R6LQJQN.js +0 -21
  939. package/cdn/chunks/chunk.7S352MG5.js +0 -24
  940. package/cdn/chunks/chunk.A2BPVVQ6.js +0 -11
  941. package/cdn/chunks/chunk.A4326IL2.js +0 -42
  942. package/cdn/chunks/chunk.AHVT6SMK.js +0 -153
  943. package/cdn/chunks/chunk.AK653YGY.js +0 -583
  944. package/cdn/chunks/chunk.AKWA6BDR.js +0 -49
  945. package/cdn/chunks/chunk.AUF4U6FY.js +0 -118
  946. package/cdn/chunks/chunk.AUGS5OJG.js +0 -27
  947. package/cdn/chunks/chunk.B5QQCSOG.js +0 -24
  948. package/cdn/chunks/chunk.BCFIC5EH.js +0 -142
  949. package/cdn/chunks/chunk.BCIKFAHC.js +0 -11
  950. package/cdn/chunks/chunk.BED5S3XG.js +0 -402
  951. package/cdn/chunks/chunk.BHX6VUIT.js +0 -1073
  952. package/cdn/chunks/chunk.BJ6EABUT.js +0 -75
  953. package/cdn/chunks/chunk.BLU6UMY3.js +0 -58
  954. package/cdn/chunks/chunk.BQZC5DHU.js +0 -11
  955. package/cdn/chunks/chunk.BVQQEMVU.js +0 -11
  956. package/cdn/chunks/chunk.BX352G3W.js +0 -122
  957. package/cdn/chunks/chunk.BX4GDJW7.js +0 -63
  958. package/cdn/chunks/chunk.C32UDDJX.js +0 -276
  959. package/cdn/chunks/chunk.C5PWT6RW.js +0 -48
  960. package/cdn/chunks/chunk.CFQ2B6VR.js +0 -216
  961. package/cdn/chunks/chunk.CJDJNRPA.js +0 -21
  962. package/cdn/chunks/chunk.D75D72TI.js +0 -21
  963. package/cdn/chunks/chunk.DHGPGIO7.js +0 -73
  964. package/cdn/chunks/chunk.DHSARJNO.js +0 -24
  965. package/cdn/chunks/chunk.DJVVEJS2.js +0 -11
  966. package/cdn/chunks/chunk.DYLTSCJ2.js +0 -11
  967. package/cdn/chunks/chunk.E5WS3VLQ.js +0 -137
  968. package/cdn/chunks/chunk.E7OFOOCY.js +0 -131
  969. package/cdn/chunks/chunk.EB6SZ2ME.js +0 -25
  970. package/cdn/chunks/chunk.EDWOOCJS.js +0 -21
  971. package/cdn/chunks/chunk.EGCFKZRA.js +0 -11
  972. package/cdn/chunks/chunk.EMNCBZZF.js +0 -21
  973. package/cdn/chunks/chunk.ETTUKEX2.js +0 -21
  974. package/cdn/chunks/chunk.EZBTJYKW.js +0 -11
  975. package/cdn/chunks/chunk.FLO4YQKA.js +0 -24
  976. package/cdn/chunks/chunk.FTE3BHQA.js +0 -28
  977. package/cdn/chunks/chunk.G5SN4ATN.js +0 -29
  978. package/cdn/chunks/chunk.GC2Q57ME.js +0 -11
  979. package/cdn/chunks/chunk.GJLSJRGM.js +0 -235
  980. package/cdn/chunks/chunk.GZBPWBFQ.js +0 -11
  981. package/cdn/chunks/chunk.H2HIFHL4.js +0 -515
  982. package/cdn/chunks/chunk.H3QBL45P.js +0 -21
  983. package/cdn/chunks/chunk.H5U6ZDNP.js +0 -54
  984. package/cdn/chunks/chunk.HHETPBMQ.js +0 -291
  985. package/cdn/chunks/chunk.HHN3CABS.js +0 -95
  986. package/cdn/chunks/chunk.HQUJGA42.js +0 -25
  987. package/cdn/chunks/chunk.HYS7OSVZ.js +0 -28
  988. package/cdn/chunks/chunk.I6RV2R33.js +0 -455
  989. package/cdn/chunks/chunk.IM5V5CZX.js +0 -586
  990. package/cdn/chunks/chunk.IWAMU5T3.js +0 -24
  991. package/cdn/chunks/chunk.J3SBHDCS.js +0 -11
  992. package/cdn/chunks/chunk.J6DWSXVL.js +0 -27
  993. package/cdn/chunks/chunk.J6LZ3NHX.js +0 -11
  994. package/cdn/chunks/chunk.JFJVTIF7.js +0 -11
  995. package/cdn/chunks/chunk.JIFO673L.js +0 -21
  996. package/cdn/chunks/chunk.JJEXKS3G.js +0 -25
  997. package/cdn/chunks/chunk.JJPZQTBS.js +0 -279
  998. package/cdn/chunks/chunk.JUN4MTEQ.js +0 -313
  999. package/cdn/chunks/chunk.JWFO2VSY.js +0 -24
  1000. package/cdn/chunks/chunk.JZKLFF3X.js +0 -11
  1001. package/cdn/chunks/chunk.KC5TMHKO.js +0 -21
  1002. package/cdn/chunks/chunk.KGUHKJHO.js +0 -336
  1003. package/cdn/chunks/chunk.KIX5SSVB.js +0 -233
  1004. package/cdn/chunks/chunk.KKMGVTZE.js +0 -79
  1005. package/cdn/chunks/chunk.KLAHC6ES.js +0 -11
  1006. package/cdn/chunks/chunk.LALK3Z7C.js +0 -11
  1007. package/cdn/chunks/chunk.LIJO3XYE.js +0 -27
  1008. package/cdn/chunks/chunk.LJW5NGJP.js +0 -11
  1009. package/cdn/chunks/chunk.LM5DJPXX.js +0 -28
  1010. package/cdn/chunks/chunk.LX2L2CLA.js +0 -28
  1011. package/cdn/chunks/chunk.LXUPIU2G.js +0 -197
  1012. package/cdn/chunks/chunk.LZACVHGL.js +0 -255
  1013. package/cdn/chunks/chunk.LZOQGUC3.js +0 -29
  1014. package/cdn/chunks/chunk.M6WQKQTZ.js +0 -334
  1015. package/cdn/chunks/chunk.MA5WO3E3.js +0 -11
  1016. package/cdn/chunks/chunk.MACB645Y.js +0 -11
  1017. package/cdn/chunks/chunk.MCBYLKTJ.js +0 -236
  1018. package/cdn/chunks/chunk.MRBMQJP3.js +0 -29
  1019. package/cdn/chunks/chunk.MRGEWIRP.js +0 -11
  1020. package/cdn/chunks/chunk.MRQ4RPBS.js +0 -11
  1021. package/cdn/chunks/chunk.MSFCD7OR.js +0 -26
  1022. package/cdn/chunks/chunk.MTXB66VF.js +0 -21
  1023. package/cdn/chunks/chunk.MVFSDFDH.js +0 -11
  1024. package/cdn/chunks/chunk.N4543YFZ.js +0 -21
  1025. package/cdn/chunks/chunk.NDJ2FQS5.js +0 -21
  1026. package/cdn/chunks/chunk.NLKB4SMT.js +0 -11
  1027. package/cdn/chunks/chunk.NLKQ7WRY.js +0 -367
  1028. package/cdn/chunks/chunk.NNFEEDGI.js +0 -114
  1029. package/cdn/chunks/chunk.NNLPTNMJ.js +0 -27
  1030. package/cdn/chunks/chunk.NPH4KMNE.js +0 -93
  1031. package/cdn/chunks/chunk.NX3T6NE6.js +0 -314
  1032. package/cdn/chunks/chunk.OFT7CWKV.js +0 -11
  1033. package/cdn/chunks/chunk.OHCAKBFE.js +0 -11
  1034. package/cdn/chunks/chunk.OJXP3KEW.js +0 -81
  1035. package/cdn/chunks/chunk.OXPAWWYQ.js +0 -29
  1036. package/cdn/chunks/chunk.OZQFUUCA.js +0 -26
  1037. package/cdn/chunks/chunk.PBAQRUIC.js +0 -11
  1038. package/cdn/chunks/chunk.PD3R4OIX.js +0 -183
  1039. package/cdn/chunks/chunk.PDYJEA7O.js +0 -11
  1040. package/cdn/chunks/chunk.PFD3CFYX.js +0 -27
  1041. package/cdn/chunks/chunk.PFYEI3HJ.js +0 -11
  1042. package/cdn/chunks/chunk.PL3ASQPN.js +0 -67
  1043. package/cdn/chunks/chunk.PSFNWY5K.js +0 -208
  1044. package/cdn/chunks/chunk.PWAY36H6.js +0 -21
  1045. package/cdn/chunks/chunk.PXJXQBM2.js +0 -822
  1046. package/cdn/chunks/chunk.Q2Q6JJY5.js +0 -11
  1047. package/cdn/chunks/chunk.QEVEBBQC.js +0 -11
  1048. package/cdn/chunks/chunk.QK3XYD26.js +0 -25
  1049. package/cdn/chunks/chunk.QKQUFEKO.js +0 -11
  1050. package/cdn/chunks/chunk.QOUCXP2H.js +0 -11
  1051. package/cdn/chunks/chunk.QSG6NEIL.js +0 -25
  1052. package/cdn/chunks/chunk.QTDWVHJJ.js +0 -24
  1053. package/cdn/chunks/chunk.QXOHHRYA.js +0 -127
  1054. package/cdn/chunks/chunk.RMKURFLN.js +0 -11
  1055. package/cdn/chunks/chunk.RPS4DGWP.js +0 -11
  1056. package/cdn/chunks/chunk.RPXRRMJP.js +0 -24
  1057. package/cdn/chunks/chunk.RRNEYPFW.js +0 -11
  1058. package/cdn/chunks/chunk.RRSWQAUL.js +0 -11
  1059. package/cdn/chunks/chunk.RSCYDI2D.js +0 -21
  1060. package/cdn/chunks/chunk.RXRVBR3Z.js +0 -50
  1061. package/cdn/chunks/chunk.S4DY7KMR.js +0 -11
  1062. package/cdn/chunks/chunk.S5EU5CBU.js +0 -11
  1063. package/cdn/chunks/chunk.SHDEMQUZ.js +0 -21
  1064. package/cdn/chunks/chunk.SP7WSCM6.js +0 -21
  1065. package/cdn/chunks/chunk.SS5MTRHG.js +0 -24
  1066. package/cdn/chunks/chunk.STJANZDP.js +0 -11
  1067. package/cdn/chunks/chunk.SXAUBZ56.js +0 -24
  1068. package/cdn/chunks/chunk.SZ2K6XKK.js +0 -153
  1069. package/cdn/chunks/chunk.T754DV56.js +0 -11
  1070. package/cdn/chunks/chunk.TEMXSAZW.js +0 -21
  1071. package/cdn/chunks/chunk.TIPQV3FE.js +0 -11
  1072. package/cdn/chunks/chunk.TLLBVDXL.js +0 -11
  1073. package/cdn/chunks/chunk.TQHPDS6M.js +0 -11
  1074. package/cdn/chunks/chunk.TRQAZYFW.js +0 -158
  1075. package/cdn/chunks/chunk.TRUH7BW4.js +0 -113
  1076. package/cdn/chunks/chunk.U4PX3B7C.js +0 -21
  1077. package/cdn/chunks/chunk.U6SLENYO.js +0 -87
  1078. package/cdn/chunks/chunk.UBUG7BOC.js +0 -11
  1079. package/cdn/chunks/chunk.ULRISOA4.js +0 -391
  1080. package/cdn/chunks/chunk.UVP3V5Z2.js +0 -135
  1081. package/cdn/chunks/chunk.V4P7MA7M.js +0 -77
  1082. package/cdn/chunks/chunk.VDGTKOSL.js +0 -25
  1083. package/cdn/chunks/chunk.VDR3LRG6.js +0 -11
  1084. package/cdn/chunks/chunk.VEYJKKIO.js +0 -36
  1085. package/cdn/chunks/chunk.VHNYSBJX.js +0 -335
  1086. package/cdn/chunks/chunk.VJUIUYMI.js +0 -21
  1087. package/cdn/chunks/chunk.VLZ7MP4C.js +0 -21
  1088. package/cdn/chunks/chunk.VRLOBCSH.js +0 -302
  1089. package/cdn/chunks/chunk.VW5TH327.js +0 -11
  1090. package/cdn/chunks/chunk.W5QBUFQN.js +0 -11
  1091. package/cdn/chunks/chunk.W6QAVMGN.js +0 -1925
  1092. package/cdn/chunks/chunk.WHZTGM5R.js +0 -5845
  1093. package/cdn/chunks/chunk.WIIUT3V7.js +0 -502
  1094. package/cdn/chunks/chunk.WL4ACLEQ.js +0 -21
  1095. package/cdn/chunks/chunk.WN6J5ARU.js +0 -21
  1096. package/cdn/chunks/chunk.WOT6FDXA.js +0 -2664
  1097. package/cdn/chunks/chunk.WREBCP5B.js +0 -11
  1098. package/cdn/chunks/chunk.X55JHD5V.js +0 -299
  1099. package/cdn/chunks/chunk.XCHSZLPK.js +0 -11
  1100. package/cdn/chunks/chunk.XEOHKAS2.js +0 -11
  1101. package/cdn/chunks/chunk.XESRDP62.js +0 -346
  1102. package/cdn/chunks/chunk.XHFA75ZT.js +0 -1223
  1103. package/cdn/chunks/chunk.XQBGYT3A.js +0 -120
  1104. package/cdn/chunks/chunk.XQSNIN63.js +0 -11
  1105. package/cdn/chunks/chunk.XQYQHUM2.js +0 -11
  1106. package/cdn/chunks/chunk.XUEJ2TUM.js +0 -186
  1107. package/cdn/chunks/chunk.XXFXYJ4E.js +0 -379
  1108. package/cdn/chunks/chunk.Y75WHQLP.js +0 -97
  1109. package/cdn/chunks/chunk.YA3XGNQU.js +0 -27
  1110. package/cdn/chunks/chunk.YEDIBZND.js +0 -24
  1111. package/cdn/chunks/chunk.YP4HAHSB.js +0 -290
  1112. package/cdn/chunks/chunk.YX4KNYJ5.js +0 -21
  1113. package/cdn/chunks/chunk.YYDXR7K4.js +0 -328
  1114. package/cdn/chunks/chunk.Z2PIKGJI.js +0 -25
  1115. package/cdn/chunks/chunk.Z6M6VTWR.js +0 -11
  1116. package/cdn/chunks/chunk.ZB46MZZQ.js +0 -82
  1117. package/cdn/chunks/chunk.ZEV3XC4F.js +0 -103
  1118. package/cdn/chunks/chunk.ZHYOC7HD.js +0 -190
  1119. package/cdn/chunks/chunk.ZN6DLIAX.js +0 -11
  1120. package/cdn/chunks/chunk.ZS47WVJ2.js +0 -11
  1121. package/cdn/chunks/chunk.ZSIRTHBW.js +0 -7252
  1122. package/cdn/chunks/chunk.ZSMLDO5K.js +0 -11
  1123. package/cdn/chunks/chunk.ZZVPSAXA.js +0 -24
  1124. package/dist/chunks/chunk.223VZVEM.js +0 -21
  1125. package/dist/chunks/chunk.2GGBLR2P.js +0 -274
  1126. package/dist/chunks/chunk.2LEINLRX.js +0 -11
  1127. package/dist/chunks/chunk.2LUHK26V.js +0 -11
  1128. package/dist/chunks/chunk.2OGIQIU4.js +0 -188
  1129. package/dist/chunks/chunk.2WG3ZBA3.js +0 -11
  1130. package/dist/chunks/chunk.37RKHEOR.js +0 -27
  1131. package/dist/chunks/chunk.3A6GQCKU.js +0 -11
  1132. package/dist/chunks/chunk.3EHQPXML.js +0 -25
  1133. package/dist/chunks/chunk.3PIY7LYJ.js +0 -25
  1134. package/dist/chunks/chunk.3VQGCENE.js +0 -11
  1135. package/dist/chunks/chunk.4ESJ4FUZ.js +0 -247
  1136. package/dist/chunks/chunk.4HVTL6LK.js +0 -109
  1137. package/dist/chunks/chunk.4HYWKEVU.js +0 -325
  1138. package/dist/chunks/chunk.4J264PD6.js +0 -11
  1139. package/dist/chunks/chunk.4OEEEKJH.js +0 -11
  1140. package/dist/chunks/chunk.4PEAPK2D.js +0 -11
  1141. package/dist/chunks/chunk.4VODEWDA.js +0 -21
  1142. package/dist/chunks/chunk.57KYN7K2.js +0 -11
  1143. package/dist/chunks/chunk.5BMMIJIB.js +0 -11
  1144. package/dist/chunks/chunk.5DNTIITZ.js +0 -28
  1145. package/dist/chunks/chunk.5IQMUKIF.js +0 -21
  1146. package/dist/chunks/chunk.5J5O6YEX.js +0 -27
  1147. package/dist/chunks/chunk.5MPRF7P3.js +0 -11
  1148. package/dist/chunks/chunk.5NIDMQTO.js +0 -27
  1149. package/dist/chunks/chunk.5RTMJSYA.js +0 -11
  1150. package/dist/chunks/chunk.5RV7OSEK.js +0 -21
  1151. package/dist/chunks/chunk.5V6KLE7G.js +0 -28
  1152. package/dist/chunks/chunk.67E5MTNW.js +0 -949
  1153. package/dist/chunks/chunk.6BQ7UA7Y.js +0 -192
  1154. package/dist/chunks/chunk.6CWM2K6O.js +0 -56
  1155. package/dist/chunks/chunk.6JQMMJAW.js +0 -28
  1156. package/dist/chunks/chunk.6JSXJJX2.js +0 -11
  1157. package/dist/chunks/chunk.6PFU2JMW.js +0 -21
  1158. package/dist/chunks/chunk.6TCX3JAN.js +0 -25
  1159. package/dist/chunks/chunk.6YL4MWZK.js +0 -11
  1160. package/dist/chunks/chunk.72W3VB3G.js +0 -24
  1161. package/dist/chunks/chunk.7FAGA6SS.js +0 -11
  1162. package/dist/chunks/chunk.7L4XHE5K.js +0 -116
  1163. package/dist/chunks/chunk.7OTIP7QP.js +0 -85
  1164. package/dist/chunks/chunk.7QTU26ZK.js +0 -33
  1165. package/dist/chunks/chunk.7SSV4L7W.js +0 -11
  1166. package/dist/chunks/chunk.7XXGN4YQ.js +0 -11
  1167. package/dist/chunks/chunk.7ZNVN4YX.js +0 -26
  1168. package/dist/chunks/chunk.A3BE34EQ.js +0 -11
  1169. package/dist/chunks/chunk.ACBQACJS.js +0 -34
  1170. package/dist/chunks/chunk.AEUNCNGZ.js +0 -29
  1171. package/dist/chunks/chunk.AEXVFRIV.js +0 -326
  1172. package/dist/chunks/chunk.AJ7UG7Z3.js +0 -361
  1173. package/dist/chunks/chunk.AJLLICMK.js +0 -75
  1174. package/dist/chunks/chunk.AMG3ARFC.js +0 -11
  1175. package/dist/chunks/chunk.APPWE47X.js +0 -26
  1176. package/dist/chunks/chunk.APWLI7DN.js +0 -759
  1177. package/dist/chunks/chunk.AVQHKBAV.js +0 -11
  1178. package/dist/chunks/chunk.BCHNMKET.js +0 -24
  1179. package/dist/chunks/chunk.BJQSTSQV.js +0 -11
  1180. package/dist/chunks/chunk.BOR3BYCE.js +0 -24
  1181. package/dist/chunks/chunk.BR7DDTQ4.js +0 -11
  1182. package/dist/chunks/chunk.BXO7MLLQ.js +0 -28
  1183. package/dist/chunks/chunk.C6CVPPSA.js +0 -21
  1184. package/dist/chunks/chunk.CLT3CYNE.js +0 -100
  1185. package/dist/chunks/chunk.CMTJUJID.js +0 -814
  1186. package/dist/chunks/chunk.CMU3IVNR.js +0 -28
  1187. package/dist/chunks/chunk.CUHSLNAG.js +0 -75
  1188. package/dist/chunks/chunk.CUIQXIDW.js +0 -59
  1189. package/dist/chunks/chunk.CW7YV6TL.js +0 -21
  1190. package/dist/chunks/chunk.CXHTHCYU.js +0 -25
  1191. package/dist/chunks/chunk.D6ALX2IN.js +0 -21
  1192. package/dist/chunks/chunk.D7AHFBFH.js +0 -213
  1193. package/dist/chunks/chunk.DAFTXLXT.js +0 -11
  1194. package/dist/chunks/chunk.DFJAXRYO.js +0 -100
  1195. package/dist/chunks/chunk.DFZEGCJI.js +0 -91
  1196. package/dist/chunks/chunk.DKKAWVRO.js +0 -11
  1197. package/dist/chunks/chunk.DLGJJYME.js +0 -29
  1198. package/dist/chunks/chunk.DONMNHMV.js +0 -577
  1199. package/dist/chunks/chunk.DY3Y4NFJ.js +0 -24
  1200. package/dist/chunks/chunk.EGU4HMTD.js +0 -11
  1201. package/dist/chunks/chunk.ELXHO4S3.js +0 -11
  1202. package/dist/chunks/chunk.FMM44VN6.js +0 -11
  1203. package/dist/chunks/chunk.FWWIFAUG.js +0 -280
  1204. package/dist/chunks/chunk.FXGINRVH.js +0 -27
  1205. package/dist/chunks/chunk.G2FIRR46.js +0 -306
  1206. package/dist/chunks/chunk.G5ISK3BU.js +0 -11
  1207. package/dist/chunks/chunk.GCD47KBA.js +0 -21
  1208. package/dist/chunks/chunk.GDF3VXVB.js +0 -25
  1209. package/dist/chunks/chunk.GDFWEXLR.js +0 -397
  1210. package/dist/chunks/chunk.HMFJXCMV.js +0 -147
  1211. package/dist/chunks/chunk.HOZPSOMB.js +0 -11
  1212. package/dist/chunks/chunk.HS3DSPZO.js +0 -11
  1213. package/dist/chunks/chunk.HUPKM5UW.js +0 -11
  1214. package/dist/chunks/chunk.HW7GTGF2.js +0 -126
  1215. package/dist/chunks/chunk.I5ESCHS2.js +0 -134
  1216. package/dist/chunks/chunk.I5YU6K4U.js +0 -96
  1217. package/dist/chunks/chunk.IB2MEOXY.js +0 -21
  1218. package/dist/chunks/chunk.IB3VZJRB.js +0 -126
  1219. package/dist/chunks/chunk.ICU7CJQU.js +0 -11
  1220. package/dist/chunks/chunk.IKQS4SBZ.js +0 -180
  1221. package/dist/chunks/chunk.IOM5T7ZI.js +0 -286
  1222. package/dist/chunks/chunk.IUXIO43F.js +0 -80
  1223. package/dist/chunks/chunk.IWQYMGCA.js +0 -29
  1224. package/dist/chunks/chunk.J3AY77KD.js +0 -63
  1225. package/dist/chunks/chunk.JBYUF4RE.js +0 -214
  1226. package/dist/chunks/chunk.JDF3ZXO4.js +0 -90
  1227. package/dist/chunks/chunk.JIRNDAXQ.js +0 -148
  1228. package/dist/chunks/chunk.JOG3GP3Y.js +0 -11
  1229. package/dist/chunks/chunk.JP3HAWDR.js +0 -45
  1230. package/dist/chunks/chunk.JPVJEVFM.js +0 -231
  1231. package/dist/chunks/chunk.JQPPMZPT.js +0 -73
  1232. package/dist/chunks/chunk.JVLZ66DT.js +0 -22
  1233. package/dist/chunks/chunk.JYPOA6M2.js +0 -205
  1234. package/dist/chunks/chunk.K57VSYNP.js +0 -24
  1235. package/dist/chunks/chunk.K6B5IHVG.js +0 -21
  1236. package/dist/chunks/chunk.K6ZMGFJZ.js +0 -454
  1237. package/dist/chunks/chunk.KDQGUY6W.js +0 -21
  1238. package/dist/chunks/chunk.KGBSQCIN.js +0 -11
  1239. package/dist/chunks/chunk.KJRYOAIQ.js +0 -181
  1240. package/dist/chunks/chunk.KLZC627P.js +0 -11
  1241. package/dist/chunks/chunk.KSWSWCPU.js +0 -494
  1242. package/dist/chunks/chunk.KUOOK7D6.js +0 -11
  1243. package/dist/chunks/chunk.L3SREJXK.js +0 -230
  1244. package/dist/chunks/chunk.LDLTERCF.js +0 -21
  1245. package/dist/chunks/chunk.LIS6RTOX.js +0 -27
  1246. package/dist/chunks/chunk.LOIDO45I.js +0 -227
  1247. package/dist/chunks/chunk.LUB6NSTR.js +0 -93
  1248. package/dist/chunks/chunk.MEFAPVHC.js +0 -21
  1249. package/dist/chunks/chunk.MFBDKZCQ.js +0 -11
  1250. package/dist/chunks/chunk.ML2HEWDO.js +0 -294
  1251. package/dist/chunks/chunk.MMKXREC6.js +0 -24
  1252. package/dist/chunks/chunk.MOSE42CI.js +0 -550
  1253. package/dist/chunks/chunk.MRNE5SQK.js +0 -79
  1254. package/dist/chunks/chunk.MY5LC322.js +0 -67
  1255. package/dist/chunks/chunk.N3QVGDPP.js +0 -26
  1256. package/dist/chunks/chunk.N53XDQYW.js +0 -45
  1257. package/dist/chunks/chunk.NFVKFHLP.js +0 -135
  1258. package/dist/chunks/chunk.NGYRYM6N.js +0 -11
  1259. package/dist/chunks/chunk.NI3YHVXQ.js +0 -11
  1260. package/dist/chunks/chunk.NLNIFQB7.js +0 -417
  1261. package/dist/chunks/chunk.NRKXDEZN.js +0 -167
  1262. package/dist/chunks/chunk.NVTROG33.js +0 -24
  1263. package/dist/chunks/chunk.O4JUVR2Z.js +0 -21
  1264. package/dist/chunks/chunk.OCMMXSGM.js +0 -21
  1265. package/dist/chunks/chunk.OJ5KQ2N6.js +0 -371
  1266. package/dist/chunks/chunk.OVRP7SCW.js +0 -11
  1267. package/dist/chunks/chunk.OWGHUKJT.js +0 -11
  1268. package/dist/chunks/chunk.OXCEIP4D.js +0 -21
  1269. package/dist/chunks/chunk.P6H6LFK6.js +0 -11
  1270. package/dist/chunks/chunk.P7NJ766H.js +0 -21
  1271. package/dist/chunks/chunk.PJ5YDOOR.js +0 -21
  1272. package/dist/chunks/chunk.PNBNNXAE.js +0 -11
  1273. package/dist/chunks/chunk.POIFPHSW.js +0 -11
  1274. package/dist/chunks/chunk.PZXGZKZX.js +0 -287
  1275. package/dist/chunks/chunk.Q6XBKIKU.js +0 -345
  1276. package/dist/chunks/chunk.QCP6XLVO.js +0 -117
  1277. package/dist/chunks/chunk.QDYFAE4C.js +0 -24
  1278. package/dist/chunks/chunk.QEDGF3Q6.js +0 -25
  1279. package/dist/chunks/chunk.QFBVFH3H.js +0 -11
  1280. package/dist/chunks/chunk.QGACMWH5.js +0 -11
  1281. package/dist/chunks/chunk.QLP3FUXD.js +0 -331
  1282. package/dist/chunks/chunk.R3TJXBBX.js +0 -11
  1283. package/dist/chunks/chunk.RHIGMPRD.js +0 -384
  1284. package/dist/chunks/chunk.RQKP666V.js +0 -448
  1285. package/dist/chunks/chunk.RSFSIT42.js +0 -46
  1286. package/dist/chunks/chunk.SAVIMCUW.js +0 -11
  1287. package/dist/chunks/chunk.SQBURCNA.js +0 -111
  1288. package/dist/chunks/chunk.SVB3JJF6.js +0 -21
  1289. package/dist/chunks/chunk.T2V3TM34.js +0 -11
  1290. package/dist/chunks/chunk.T6GNVPBE.js +0 -11
  1291. package/dist/chunks/chunk.TK3QCEQE.js +0 -11
  1292. package/dist/chunks/chunk.TMDHKQYC.js +0 -25
  1293. package/dist/chunks/chunk.TMW55T5C.js +0 -1221
  1294. package/dist/chunks/chunk.TUF2UAQ6.js +0 -50
  1295. package/dist/chunks/chunk.U6XBQJAS.js +0 -28
  1296. package/dist/chunks/chunk.U7NL5I3V.js +0 -315
  1297. package/dist/chunks/chunk.UF6OTKUN.js +0 -136
  1298. package/dist/chunks/chunk.UKG4SK62.js +0 -52
  1299. package/dist/chunks/chunk.UKM7FUXP.js +0 -1064
  1300. package/dist/chunks/chunk.UNESK4ZR.js +0 -25
  1301. package/dist/chunks/chunk.URDGW7Q4.js +0 -263
  1302. package/dist/chunks/chunk.UYNBFPYP.js +0 -506
  1303. package/dist/chunks/chunk.VFA4IRBZ.js +0 -29
  1304. package/dist/chunks/chunk.VFBSZZ6A.js +0 -328
  1305. package/dist/chunks/chunk.VI64RMZE.js +0 -21
  1306. package/dist/chunks/chunk.VIDDUYKN.js +0 -24
  1307. package/dist/chunks/chunk.VIPJU4IR.js +0 -11
  1308. package/dist/chunks/chunk.WDIFRG2W.js +0 -21
  1309. package/dist/chunks/chunk.WDJMAWPD.js +0 -22
  1310. package/dist/chunks/chunk.WIG3P76X.js +0 -21
  1311. package/dist/chunks/chunk.WMRA22XF.js +0 -11
  1312. package/dist/chunks/chunk.WNKXT66E.js +0 -11
  1313. package/dist/chunks/chunk.WQBXNYRY.js +0 -311
  1314. package/dist/chunks/chunk.WRDEVFBZ.js +0 -11
  1315. package/dist/chunks/chunk.WRXJWKY4.js +0 -337
  1316. package/dist/chunks/chunk.WXBMB2HA.js +0 -25
  1317. package/dist/chunks/chunk.X2XIRKUV.js +0 -27
  1318. package/dist/chunks/chunk.X3AGI6YL.js +0 -21
  1319. package/dist/chunks/chunk.X3UKKW7K.js +0 -11
  1320. package/dist/chunks/chunk.X5RCL3YC.js +0 -113
  1321. package/dist/chunks/chunk.XLCI5RL7.js +0 -11
  1322. package/dist/chunks/chunk.XLEG6INU.js +0 -21
  1323. package/dist/chunks/chunk.XRYA5SYA.js +0 -11
  1324. package/dist/chunks/chunk.XVJ6QERN.js +0 -11
  1325. package/dist/chunks/chunk.XX6NFIBF.js +0 -11
  1326. package/dist/chunks/chunk.Y4RQDZBR.js +0 -151
  1327. package/dist/chunks/chunk.YB2RED7N.js +0 -21
  1328. package/dist/chunks/chunk.YC7RT22D.js +0 -293
  1329. package/dist/chunks/chunk.YCSABC7B.js +0 -11
  1330. package/dist/chunks/chunk.YDZHIY2T.js +0 -11
  1331. package/dist/chunks/chunk.YFYBJDLP.js +0 -11
  1332. package/dist/chunks/chunk.YLXNBX2W.js +0 -24
  1333. package/dist/chunks/chunk.YTSZAEYM.js +0 -11
  1334. package/dist/chunks/chunk.YZ63LOCS.js +0 -25
  1335. package/dist/chunks/chunk.ZGZ3UL6N.js +0 -24
  1336. package/dist/chunks/chunk.ZLVTBNS2.js +0 -25
  1337. package/dist/chunks/chunk.ZNX2BE6C.js +0 -119
  1338. package/dist/chunks/chunk.ZSJLW4OH.js +0 -42
  1339. package/dist/chunks/chunk.ZSKCVEBV.js +0 -11
  1340. package/dist/chunks/chunk.ZXAR2FG7.js +0 -24
  1341. package/dist/chunks/chunk.ZZ7RG7GR.js +0 -24
@@ -0,0 +1,2953 @@
1
+ import {
2
+ tableCommonCss
3
+ } from "./chunk.PWUNZ5VX.js";
4
+ import {
5
+ spread_default
6
+ } from "./chunk.GRGYWQPR.js";
7
+ import {
8
+ getCommonPinningProps
9
+ } from "./chunk.REAQMJXE.js";
10
+ import {
11
+ flexRender
12
+ } from "./chunk.VK7KEYIH.js";
13
+ import {
14
+ c,
15
+ renderColGroup
16
+ } from "./chunk.E3KIWNQF.js";
17
+ import {
18
+ getTableRect,
19
+ iterateStyles
20
+ } from "./chunk.YWEYEF5K.js";
21
+ import {
22
+ CUSTOM_ROW
23
+ } from "./chunk.UP5K765N.js";
24
+ import {
25
+ e as e2,
26
+ n as n2
27
+ } from "./chunk.G2YOMCHR.js";
28
+ import {
29
+ o
30
+ } from "./chunk.BJDNEBPV.js";
31
+ import {
32
+ e
33
+ } from "./chunk.VHCLMDG7.js";
34
+ import {
35
+ ShoelaceElement,
36
+ n,
37
+ r
38
+ } from "./chunk.LFNFCZYE.js";
39
+ import {
40
+ b
41
+ } from "./chunk.7WSF3BCU.js";
42
+ import {
43
+ __decorateClass,
44
+ __objRest,
45
+ __spreadProps,
46
+ __spreadValues
47
+ } from "./chunk.CZCSAYQZ.js";
48
+
49
+ // node_modules/sortablejs/modular/sortable.esm.js
50
+ function _defineProperty(e3, r2, t) {
51
+ return (r2 = _toPropertyKey(r2)) in e3 ? Object.defineProperty(e3, r2, {
52
+ value: t,
53
+ enumerable: true,
54
+ configurable: true,
55
+ writable: true
56
+ }) : e3[r2] = t, e3;
57
+ }
58
+ function _extends() {
59
+ return _extends = Object.assign ? Object.assign.bind() : function(n3) {
60
+ for (var e3 = 1; e3 < arguments.length; e3++) {
61
+ var t = arguments[e3];
62
+ for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n3[r2] = t[r2]);
63
+ }
64
+ return n3;
65
+ }, _extends.apply(null, arguments);
66
+ }
67
+ function ownKeys(e3, r2) {
68
+ var t = Object.keys(e3);
69
+ if (Object.getOwnPropertySymbols) {
70
+ var o2 = Object.getOwnPropertySymbols(e3);
71
+ r2 && (o2 = o2.filter(function(r3) {
72
+ return Object.getOwnPropertyDescriptor(e3, r3).enumerable;
73
+ })), t.push.apply(t, o2);
74
+ }
75
+ return t;
76
+ }
77
+ function _objectSpread2(e3) {
78
+ for (var r2 = 1; r2 < arguments.length; r2++) {
79
+ var t = null != arguments[r2] ? arguments[r2] : {};
80
+ r2 % 2 ? ownKeys(Object(t), true).forEach(function(r3) {
81
+ _defineProperty(e3, r3, t[r3]);
82
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r3) {
83
+ Object.defineProperty(e3, r3, Object.getOwnPropertyDescriptor(t, r3));
84
+ });
85
+ }
86
+ return e3;
87
+ }
88
+ function _objectWithoutProperties(e3, t) {
89
+ if (null == e3) return {};
90
+ var o2, r2, i = _objectWithoutPropertiesLoose(e3, t);
91
+ if (Object.getOwnPropertySymbols) {
92
+ var n3 = Object.getOwnPropertySymbols(e3);
93
+ for (r2 = 0; r2 < n3.length; r2++) o2 = n3[r2], -1 === t.indexOf(o2) && {}.propertyIsEnumerable.call(e3, o2) && (i[o2] = e3[o2]);
94
+ }
95
+ return i;
96
+ }
97
+ function _objectWithoutPropertiesLoose(r2, e3) {
98
+ if (null == r2) return {};
99
+ var t = {};
100
+ for (var n3 in r2) if ({}.hasOwnProperty.call(r2, n3)) {
101
+ if (-1 !== e3.indexOf(n3)) continue;
102
+ t[n3] = r2[n3];
103
+ }
104
+ return t;
105
+ }
106
+ function _toPrimitive(t, r2) {
107
+ if ("object" != typeof t || !t) return t;
108
+ var e3 = t[Symbol.toPrimitive];
109
+ if (void 0 !== e3) {
110
+ var i = e3.call(t, r2 || "default");
111
+ if ("object" != typeof i) return i;
112
+ throw new TypeError("@@toPrimitive must return a primitive value.");
113
+ }
114
+ return ("string" === r2 ? String : Number)(t);
115
+ }
116
+ function _toPropertyKey(t) {
117
+ var i = _toPrimitive(t, "string");
118
+ return "symbol" == typeof i ? i : i + "";
119
+ }
120
+ function _typeof(o2) {
121
+ "@babel/helpers - typeof";
122
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o3) {
123
+ return typeof o3;
124
+ } : function(o3) {
125
+ return o3 && "function" == typeof Symbol && o3.constructor === Symbol && o3 !== Symbol.prototype ? "symbol" : typeof o3;
126
+ }, _typeof(o2);
127
+ }
128
+ var version = "1.15.7";
129
+ function userAgent(pattern) {
130
+ if (typeof window !== "undefined" && window.navigator) {
131
+ return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
132
+ }
133
+ }
134
+ var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
135
+ var Edge = userAgent(/Edge/i);
136
+ var FireFox = userAgent(/firefox/i);
137
+ var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
138
+ var IOS = userAgent(/iP(ad|od|hone)/i);
139
+ var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
140
+ var captureMode = {
141
+ capture: false,
142
+ passive: false
143
+ };
144
+ function on(el, event, fn) {
145
+ el.addEventListener(event, fn, !IE11OrLess && captureMode);
146
+ }
147
+ function off(el, event, fn) {
148
+ el.removeEventListener(event, fn, !IE11OrLess && captureMode);
149
+ }
150
+ function matches(el, selector) {
151
+ if (!selector) return;
152
+ selector[0] === ">" && (selector = selector.substring(1));
153
+ if (el) {
154
+ try {
155
+ if (el.matches) {
156
+ return el.matches(selector);
157
+ } else if (el.msMatchesSelector) {
158
+ return el.msMatchesSelector(selector);
159
+ } else if (el.webkitMatchesSelector) {
160
+ return el.webkitMatchesSelector(selector);
161
+ }
162
+ } catch (_) {
163
+ return false;
164
+ }
165
+ }
166
+ return false;
167
+ }
168
+ function getParentOrHost(el) {
169
+ return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
170
+ }
171
+ function closest(el, selector, ctx, includeCTX) {
172
+ if (el) {
173
+ ctx = ctx || document;
174
+ do {
175
+ if (selector != null && (selector[0] === ">" ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
176
+ return el;
177
+ }
178
+ if (el === ctx) break;
179
+ } while (el = getParentOrHost(el));
180
+ }
181
+ return null;
182
+ }
183
+ var R_SPACE = /\s+/g;
184
+ function toggleClass(el, name, state) {
185
+ if (el && name) {
186
+ if (el.classList) {
187
+ el.classList[state ? "add" : "remove"](name);
188
+ } else {
189
+ var className = (" " + el.className + " ").replace(R_SPACE, " ").replace(" " + name + " ", " ");
190
+ el.className = (className + (state ? " " + name : "")).replace(R_SPACE, " ");
191
+ }
192
+ }
193
+ }
194
+ function css(el, prop, val) {
195
+ var style = el && el.style;
196
+ if (style) {
197
+ if (val === void 0) {
198
+ if (document.defaultView && document.defaultView.getComputedStyle) {
199
+ val = document.defaultView.getComputedStyle(el, "");
200
+ } else if (el.currentStyle) {
201
+ val = el.currentStyle;
202
+ }
203
+ return prop === void 0 ? val : val[prop];
204
+ } else {
205
+ if (!(prop in style) && prop.indexOf("webkit") === -1) {
206
+ prop = "-webkit-" + prop;
207
+ }
208
+ style[prop] = val + (typeof val === "string" ? "" : "px");
209
+ }
210
+ }
211
+ }
212
+ function matrix(el, selfOnly) {
213
+ var appliedTransforms = "";
214
+ if (typeof el === "string") {
215
+ appliedTransforms = el;
216
+ } else {
217
+ do {
218
+ var transform = css(el, "transform");
219
+ if (transform && transform !== "none") {
220
+ appliedTransforms = transform + " " + appliedTransforms;
221
+ }
222
+ } while (!selfOnly && (el = el.parentNode));
223
+ }
224
+ var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
225
+ return matrixFn && new matrixFn(appliedTransforms);
226
+ }
227
+ function find(ctx, tagName, iterator) {
228
+ if (ctx) {
229
+ var list = ctx.getElementsByTagName(tagName), i = 0, n3 = list.length;
230
+ if (iterator) {
231
+ for (; i < n3; i++) {
232
+ iterator(list[i], i);
233
+ }
234
+ }
235
+ return list;
236
+ }
237
+ return [];
238
+ }
239
+ function getWindowScrollingElement() {
240
+ var scrollingElement = document.scrollingElement;
241
+ if (scrollingElement) {
242
+ return scrollingElement;
243
+ } else {
244
+ return document.documentElement;
245
+ }
246
+ }
247
+ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
248
+ if (!el.getBoundingClientRect && el !== window) return;
249
+ var elRect, top, left, bottom, right, height, width;
250
+ if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
251
+ elRect = el.getBoundingClientRect();
252
+ top = elRect.top;
253
+ left = elRect.left;
254
+ bottom = elRect.bottom;
255
+ right = elRect.right;
256
+ height = elRect.height;
257
+ width = elRect.width;
258
+ } else {
259
+ top = 0;
260
+ left = 0;
261
+ bottom = window.innerHeight;
262
+ right = window.innerWidth;
263
+ height = window.innerHeight;
264
+ width = window.innerWidth;
265
+ }
266
+ if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
267
+ container = container || el.parentNode;
268
+ if (!IE11OrLess) {
269
+ do {
270
+ if (container && container.getBoundingClientRect && (css(container, "transform") !== "none" || relativeToNonStaticParent && css(container, "position") !== "static")) {
271
+ var containerRect = container.getBoundingClientRect();
272
+ top -= containerRect.top + parseInt(css(container, "border-top-width"));
273
+ left -= containerRect.left + parseInt(css(container, "border-left-width"));
274
+ bottom = top + elRect.height;
275
+ right = left + elRect.width;
276
+ break;
277
+ }
278
+ } while (container = container.parentNode);
279
+ }
280
+ }
281
+ if (undoScale && el !== window) {
282
+ var elMatrix = matrix(container || el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d;
283
+ if (elMatrix) {
284
+ top /= scaleY;
285
+ left /= scaleX;
286
+ width /= scaleX;
287
+ height /= scaleY;
288
+ bottom = top + height;
289
+ right = left + width;
290
+ }
291
+ }
292
+ return {
293
+ top,
294
+ left,
295
+ bottom,
296
+ right,
297
+ width,
298
+ height
299
+ };
300
+ }
301
+ function isScrolledPast(el, elSide, parentSide) {
302
+ var parent = getParentAutoScrollElement(el, true), elSideVal = getRect(el)[elSide];
303
+ while (parent) {
304
+ var parentSideVal = getRect(parent)[parentSide], visible = void 0;
305
+ if (parentSide === "top" || parentSide === "left") {
306
+ visible = elSideVal >= parentSideVal;
307
+ } else {
308
+ visible = elSideVal <= parentSideVal;
309
+ }
310
+ if (!visible) return parent;
311
+ if (parent === getWindowScrollingElement()) break;
312
+ parent = getParentAutoScrollElement(parent, false);
313
+ }
314
+ return false;
315
+ }
316
+ function getChild(el, childNum, options, includeDragEl) {
317
+ var currentChild = 0, i = 0, children = el.children;
318
+ while (i < children.length) {
319
+ if (children[i].style.display !== "none" && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
320
+ if (currentChild === childNum) {
321
+ return children[i];
322
+ }
323
+ currentChild++;
324
+ }
325
+ i++;
326
+ }
327
+ return null;
328
+ }
329
+ function lastChild(el, selector) {
330
+ var last = el.lastElementChild;
331
+ while (last && (last === Sortable.ghost || css(last, "display") === "none" || selector && !matches(last, selector))) {
332
+ last = last.previousElementSibling;
333
+ }
334
+ return last || null;
335
+ }
336
+ function index(el, selector) {
337
+ var index2 = 0;
338
+ if (!el || !el.parentNode) {
339
+ return -1;
340
+ }
341
+ while (el = el.previousElementSibling) {
342
+ if (el.nodeName.toUpperCase() !== "TEMPLATE" && el !== Sortable.clone && (!selector || matches(el, selector))) {
343
+ index2++;
344
+ }
345
+ }
346
+ return index2;
347
+ }
348
+ function getRelativeScrollOffset(el) {
349
+ var offsetLeft = 0, offsetTop = 0, winScroller = getWindowScrollingElement();
350
+ if (el) {
351
+ do {
352
+ var elMatrix = matrix(el), scaleX = elMatrix.a, scaleY = elMatrix.d;
353
+ offsetLeft += el.scrollLeft * scaleX;
354
+ offsetTop += el.scrollTop * scaleY;
355
+ } while (el !== winScroller && (el = el.parentNode));
356
+ }
357
+ return [offsetLeft, offsetTop];
358
+ }
359
+ function indexOfObject(arr, obj) {
360
+ for (var i in arr) {
361
+ if (!arr.hasOwnProperty(i)) continue;
362
+ for (var key in obj) {
363
+ if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
364
+ }
365
+ }
366
+ return -1;
367
+ }
368
+ function getParentAutoScrollElement(el, includeSelf) {
369
+ if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
370
+ var elem = el;
371
+ var gotSelf = false;
372
+ do {
373
+ if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
374
+ var elemCSS = css(elem);
375
+ if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == "auto" || elemCSS.overflowX == "scroll") || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == "auto" || elemCSS.overflowY == "scroll")) {
376
+ if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
377
+ if (gotSelf || includeSelf) return elem;
378
+ gotSelf = true;
379
+ }
380
+ }
381
+ } while (elem = elem.parentNode);
382
+ return getWindowScrollingElement();
383
+ }
384
+ function extend(dst, src) {
385
+ if (dst && src) {
386
+ for (var key in src) {
387
+ if (src.hasOwnProperty(key)) {
388
+ dst[key] = src[key];
389
+ }
390
+ }
391
+ }
392
+ return dst;
393
+ }
394
+ function isRectEqual(rect1, rect2) {
395
+ return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
396
+ }
397
+ var _throttleTimeout;
398
+ function throttle(callback, ms) {
399
+ return function() {
400
+ if (!_throttleTimeout) {
401
+ var args = arguments, _this = this;
402
+ if (args.length === 1) {
403
+ callback.call(_this, args[0]);
404
+ } else {
405
+ callback.apply(_this, args);
406
+ }
407
+ _throttleTimeout = setTimeout(function() {
408
+ _throttleTimeout = void 0;
409
+ }, ms);
410
+ }
411
+ };
412
+ }
413
+ function cancelThrottle() {
414
+ clearTimeout(_throttleTimeout);
415
+ _throttleTimeout = void 0;
416
+ }
417
+ function scrollBy(el, x, y) {
418
+ el.scrollLeft += x;
419
+ el.scrollTop += y;
420
+ }
421
+ function clone(el) {
422
+ var Polymer = window.Polymer;
423
+ var $ = window.jQuery || window.Zepto;
424
+ if (Polymer && Polymer.dom) {
425
+ return Polymer.dom(el).cloneNode(true);
426
+ } else if ($) {
427
+ return $(el).clone(true)[0];
428
+ } else {
429
+ return el.cloneNode(true);
430
+ }
431
+ }
432
+ function getChildContainingRectFromElement(container, options, ghostEl2) {
433
+ var rect = {};
434
+ Array.from(container.children).forEach(function(child) {
435
+ var _rect$left, _rect$top, _rect$right, _rect$bottom;
436
+ if (!closest(child, options.draggable, container, false) || child.animated || child === ghostEl2) return;
437
+ var childRect = getRect(child);
438
+ rect.left = Math.min((_rect$left = rect.left) !== null && _rect$left !== void 0 ? _rect$left : Infinity, childRect.left);
439
+ rect.top = Math.min((_rect$top = rect.top) !== null && _rect$top !== void 0 ? _rect$top : Infinity, childRect.top);
440
+ rect.right = Math.max((_rect$right = rect.right) !== null && _rect$right !== void 0 ? _rect$right : -Infinity, childRect.right);
441
+ rect.bottom = Math.max((_rect$bottom = rect.bottom) !== null && _rect$bottom !== void 0 ? _rect$bottom : -Infinity, childRect.bottom);
442
+ });
443
+ rect.width = rect.right - rect.left;
444
+ rect.height = rect.bottom - rect.top;
445
+ rect.x = rect.left;
446
+ rect.y = rect.top;
447
+ return rect;
448
+ }
449
+ var expando = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
450
+ function AnimationStateManager() {
451
+ var animationStates = [], animationCallbackId;
452
+ return {
453
+ captureAnimationState: function captureAnimationState() {
454
+ animationStates = [];
455
+ if (!this.options.animation) return;
456
+ var children = [].slice.call(this.el.children);
457
+ children.forEach(function(child) {
458
+ if (css(child, "display") === "none" || child === Sortable.ghost) return;
459
+ animationStates.push({
460
+ target: child,
461
+ rect: getRect(child)
462
+ });
463
+ var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect);
464
+ if (child.thisAnimationDuration) {
465
+ var childMatrix = matrix(child, true);
466
+ if (childMatrix) {
467
+ fromRect.top -= childMatrix.f;
468
+ fromRect.left -= childMatrix.e;
469
+ }
470
+ }
471
+ child.fromRect = fromRect;
472
+ });
473
+ },
474
+ addAnimationState: function addAnimationState(state) {
475
+ animationStates.push(state);
476
+ },
477
+ removeAnimationState: function removeAnimationState(target) {
478
+ animationStates.splice(indexOfObject(animationStates, {
479
+ target
480
+ }), 1);
481
+ },
482
+ animateAll: function animateAll(callback) {
483
+ var _this = this;
484
+ if (!this.options.animation) {
485
+ clearTimeout(animationCallbackId);
486
+ if (typeof callback === "function") callback();
487
+ return;
488
+ }
489
+ var animating = false, animationTime = 0;
490
+ animationStates.forEach(function(state) {
491
+ var time = 0, target = state.target, fromRect = target.fromRect, toRect = getRect(target), prevFromRect = target.prevFromRect, prevToRect = target.prevToRect, animatingRect = state.rect, targetMatrix = matrix(target, true);
492
+ if (targetMatrix) {
493
+ toRect.top -= targetMatrix.f;
494
+ toRect.left -= targetMatrix.e;
495
+ }
496
+ target.toRect = toRect;
497
+ if (target.thisAnimationDuration) {
498
+ if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect
499
+ (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
500
+ time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
501
+ }
502
+ }
503
+ if (!isRectEqual(toRect, fromRect)) {
504
+ target.prevFromRect = fromRect;
505
+ target.prevToRect = toRect;
506
+ if (!time) {
507
+ time = _this.options.animation;
508
+ }
509
+ _this.animate(target, animatingRect, toRect, time);
510
+ }
511
+ if (time) {
512
+ animating = true;
513
+ animationTime = Math.max(animationTime, time);
514
+ clearTimeout(target.animationResetTimer);
515
+ target.animationResetTimer = setTimeout(function() {
516
+ target.animationTime = 0;
517
+ target.prevFromRect = null;
518
+ target.fromRect = null;
519
+ target.prevToRect = null;
520
+ target.thisAnimationDuration = null;
521
+ }, time);
522
+ target.thisAnimationDuration = time;
523
+ }
524
+ });
525
+ clearTimeout(animationCallbackId);
526
+ if (!animating) {
527
+ if (typeof callback === "function") callback();
528
+ } else {
529
+ animationCallbackId = setTimeout(function() {
530
+ if (typeof callback === "function") callback();
531
+ }, animationTime);
532
+ }
533
+ animationStates = [];
534
+ },
535
+ animate: function animate(target, currentRect, toRect, duration) {
536
+ if (duration) {
537
+ css(target, "transition", "");
538
+ css(target, "transform", "");
539
+ var elMatrix = matrix(this.el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d, translateX = (currentRect.left - toRect.left) / (scaleX || 1), translateY = (currentRect.top - toRect.top) / (scaleY || 1);
540
+ target.animatingX = !!translateX;
541
+ target.animatingY = !!translateY;
542
+ css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
543
+ this.forRepaintDummy = repaint(target);
544
+ css(target, "transition", "transform " + duration + "ms" + (this.options.easing ? " " + this.options.easing : ""));
545
+ css(target, "transform", "translate3d(0,0,0)");
546
+ typeof target.animated === "number" && clearTimeout(target.animated);
547
+ target.animated = setTimeout(function() {
548
+ css(target, "transition", "");
549
+ css(target, "transform", "");
550
+ target.animated = false;
551
+ target.animatingX = false;
552
+ target.animatingY = false;
553
+ }, duration);
554
+ }
555
+ }
556
+ };
557
+ }
558
+ function repaint(target) {
559
+ return target.offsetWidth;
560
+ }
561
+ function calculateRealTime(animatingRect, fromRect, toRect, options) {
562
+ return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
563
+ }
564
+ var plugins = [];
565
+ var defaults = {
566
+ initializeByDefault: true
567
+ };
568
+ var PluginManager = {
569
+ mount: function mount(plugin) {
570
+ for (var option2 in defaults) {
571
+ if (defaults.hasOwnProperty(option2) && !(option2 in plugin)) {
572
+ plugin[option2] = defaults[option2];
573
+ }
574
+ }
575
+ plugins.forEach(function(p) {
576
+ if (p.pluginName === plugin.pluginName) {
577
+ throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
578
+ }
579
+ });
580
+ plugins.push(plugin);
581
+ },
582
+ pluginEvent: function pluginEvent(eventName, sortable, evt) {
583
+ var _this = this;
584
+ this.eventCanceled = false;
585
+ evt.cancel = function() {
586
+ _this.eventCanceled = true;
587
+ };
588
+ var eventNameGlobal = eventName + "Global";
589
+ plugins.forEach(function(plugin) {
590
+ if (!sortable[plugin.pluginName]) return;
591
+ if (sortable[plugin.pluginName][eventNameGlobal]) {
592
+ sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
593
+ sortable
594
+ }, evt));
595
+ }
596
+ if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
597
+ sortable[plugin.pluginName][eventName](_objectSpread2({
598
+ sortable
599
+ }, evt));
600
+ }
601
+ });
602
+ },
603
+ initializePlugins: function initializePlugins(sortable, el, defaults2, options) {
604
+ plugins.forEach(function(plugin) {
605
+ var pluginName = plugin.pluginName;
606
+ if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
607
+ var initialized = new plugin(sortable, el, sortable.options);
608
+ initialized.sortable = sortable;
609
+ initialized.options = sortable.options;
610
+ sortable[pluginName] = initialized;
611
+ _extends(defaults2, initialized.defaults);
612
+ });
613
+ for (var option2 in sortable.options) {
614
+ if (!sortable.options.hasOwnProperty(option2)) continue;
615
+ var modified = this.modifyOption(sortable, option2, sortable.options[option2]);
616
+ if (typeof modified !== "undefined") {
617
+ sortable.options[option2] = modified;
618
+ }
619
+ }
620
+ },
621
+ getEventProperties: function getEventProperties(name, sortable) {
622
+ var eventProperties = {};
623
+ plugins.forEach(function(plugin) {
624
+ if (typeof plugin.eventProperties !== "function") return;
625
+ _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
626
+ });
627
+ return eventProperties;
628
+ },
629
+ modifyOption: function modifyOption(sortable, name, value) {
630
+ var modifiedValue;
631
+ plugins.forEach(function(plugin) {
632
+ if (!sortable[plugin.pluginName]) return;
633
+ if (plugin.optionListeners && typeof plugin.optionListeners[name] === "function") {
634
+ modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
635
+ }
636
+ });
637
+ return modifiedValue;
638
+ }
639
+ };
640
+ function dispatchEvent(_ref) {
641
+ var sortable = _ref.sortable, rootEl2 = _ref.rootEl, name = _ref.name, targetEl = _ref.targetEl, cloneEl2 = _ref.cloneEl, toEl = _ref.toEl, fromEl = _ref.fromEl, oldIndex2 = _ref.oldIndex, newIndex2 = _ref.newIndex, oldDraggableIndex2 = _ref.oldDraggableIndex, newDraggableIndex2 = _ref.newDraggableIndex, originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, extraEventProperties = _ref.extraEventProperties;
642
+ sortable = sortable || rootEl2 && rootEl2[expando];
643
+ if (!sortable) return;
644
+ var evt, options = sortable.options, onName = "on" + name.charAt(0).toUpperCase() + name.substr(1);
645
+ if (window.CustomEvent && !IE11OrLess && !Edge) {
646
+ evt = new CustomEvent(name, {
647
+ bubbles: true,
648
+ cancelable: true
649
+ });
650
+ } else {
651
+ evt = document.createEvent("Event");
652
+ evt.initEvent(name, true, true);
653
+ }
654
+ evt.to = toEl || rootEl2;
655
+ evt.from = fromEl || rootEl2;
656
+ evt.item = targetEl || rootEl2;
657
+ evt.clone = cloneEl2;
658
+ evt.oldIndex = oldIndex2;
659
+ evt.newIndex = newIndex2;
660
+ evt.oldDraggableIndex = oldDraggableIndex2;
661
+ evt.newDraggableIndex = newDraggableIndex2;
662
+ evt.originalEvent = originalEvent;
663
+ evt.pullMode = putSortable2 ? putSortable2.lastPutMode : void 0;
664
+ var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
665
+ for (var option2 in allEventProperties) {
666
+ evt[option2] = allEventProperties[option2];
667
+ }
668
+ if (rootEl2) {
669
+ rootEl2.dispatchEvent(evt);
670
+ }
671
+ if (options[onName]) {
672
+ options[onName].call(sortable, evt);
673
+ }
674
+ }
675
+ var _excluded = ["evt"];
676
+ var pluginEvent2 = function pluginEvent3(eventName, sortable) {
677
+ var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data = _objectWithoutProperties(_ref, _excluded);
678
+ PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
679
+ dragEl,
680
+ parentEl,
681
+ ghostEl,
682
+ rootEl,
683
+ nextEl,
684
+ lastDownEl,
685
+ cloneEl,
686
+ cloneHidden,
687
+ dragStarted: moved,
688
+ putSortable,
689
+ activeSortable: Sortable.active,
690
+ originalEvent,
691
+ oldIndex,
692
+ oldDraggableIndex,
693
+ newIndex,
694
+ newDraggableIndex,
695
+ hideGhostForTarget: _hideGhostForTarget,
696
+ unhideGhostForTarget: _unhideGhostForTarget,
697
+ cloneNowHidden: function cloneNowHidden() {
698
+ cloneHidden = true;
699
+ },
700
+ cloneNowShown: function cloneNowShown() {
701
+ cloneHidden = false;
702
+ },
703
+ dispatchSortableEvent: function dispatchSortableEvent(name) {
704
+ _dispatchEvent({
705
+ sortable,
706
+ name,
707
+ originalEvent
708
+ });
709
+ }
710
+ }, data));
711
+ };
712
+ function _dispatchEvent(info) {
713
+ dispatchEvent(_objectSpread2({
714
+ putSortable,
715
+ cloneEl,
716
+ targetEl: dragEl,
717
+ rootEl,
718
+ oldIndex,
719
+ oldDraggableIndex,
720
+ newIndex,
721
+ newDraggableIndex
722
+ }, info));
723
+ }
724
+ var dragEl;
725
+ var parentEl;
726
+ var ghostEl;
727
+ var rootEl;
728
+ var nextEl;
729
+ var lastDownEl;
730
+ var cloneEl;
731
+ var cloneHidden;
732
+ var oldIndex;
733
+ var newIndex;
734
+ var oldDraggableIndex;
735
+ var newDraggableIndex;
736
+ var activeGroup;
737
+ var putSortable;
738
+ var awaitingDragStarted = false;
739
+ var ignoreNextClick = false;
740
+ var sortables = [];
741
+ var tapEvt;
742
+ var touchEvt;
743
+ var lastDx;
744
+ var lastDy;
745
+ var tapDistanceLeft;
746
+ var tapDistanceTop;
747
+ var moved;
748
+ var lastTarget;
749
+ var lastDirection;
750
+ var pastFirstInvertThresh = false;
751
+ var isCircumstantialInvert = false;
752
+ var targetMoveDistance;
753
+ var ghostRelativeParent;
754
+ var ghostRelativeParentInitialScroll = [];
755
+ var _silent = false;
756
+ var savedInputChecked = [];
757
+ var documentExists = typeof document !== "undefined";
758
+ var PositionGhostAbsolutely = IOS;
759
+ var CSSFloatProperty = Edge || IE11OrLess ? "cssFloat" : "float";
760
+ var supportDraggable = documentExists && !ChromeForAndroid && !IOS && "draggable" in document.createElement("div");
761
+ var supportCssPointerEvents = function() {
762
+ if (!documentExists) return;
763
+ if (IE11OrLess) {
764
+ return false;
765
+ }
766
+ var el = document.createElement("x");
767
+ el.style.cssText = "pointer-events:auto";
768
+ return el.style.pointerEvents === "auto";
769
+ }();
770
+ var _detectDirection = function _detectDirection2(el, options) {
771
+ var elCSS = css(el), elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth), child1 = getChild(el, 0, options), child2 = getChild(el, 1, options), firstChildCSS = child1 && css(child1), secondChildCSS = child2 && css(child2), firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width, secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
772
+ if (elCSS.display === "flex") {
773
+ return elCSS.flexDirection === "column" || elCSS.flexDirection === "column-reverse" ? "vertical" : "horizontal";
774
+ }
775
+ if (elCSS.display === "grid") {
776
+ return elCSS.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
777
+ }
778
+ if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== "none") {
779
+ var touchingSideChild2 = firstChildCSS["float"] === "left" ? "left" : "right";
780
+ return child2 && (secondChildCSS.clear === "both" || secondChildCSS.clear === touchingSideChild2) ? "vertical" : "horizontal";
781
+ }
782
+ return child1 && (firstChildCSS.display === "block" || firstChildCSS.display === "flex" || firstChildCSS.display === "table" || firstChildCSS.display === "grid" || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === "none" || child2 && elCSS[CSSFloatProperty] === "none" && firstChildWidth + secondChildWidth > elWidth) ? "vertical" : "horizontal";
783
+ };
784
+ var _dragElInRowColumn = function _dragElInRowColumn2(dragRect, targetRect, vertical) {
785
+ var dragElS1Opp = vertical ? dragRect.left : dragRect.top, dragElS2Opp = vertical ? dragRect.right : dragRect.bottom, dragElOppLength = vertical ? dragRect.width : dragRect.height, targetS1Opp = vertical ? targetRect.left : targetRect.top, targetS2Opp = vertical ? targetRect.right : targetRect.bottom, targetOppLength = vertical ? targetRect.width : targetRect.height;
786
+ return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
787
+ };
788
+ var _detectNearestEmptySortable = function _detectNearestEmptySortable2(x, y) {
789
+ var ret;
790
+ sortables.some(function(sortable) {
791
+ var threshold = sortable[expando].options.emptyInsertThreshold;
792
+ if (!threshold || lastChild(sortable)) return;
793
+ var rect = getRect(sortable), insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold, insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
794
+ if (insideHorizontally && insideVertically) {
795
+ return ret = sortable;
796
+ }
797
+ });
798
+ return ret;
799
+ };
800
+ var _prepareGroup = function _prepareGroup2(options) {
801
+ function toFn(value, pull) {
802
+ return function(to, from, dragEl2, evt) {
803
+ var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
804
+ if (value == null && (pull || sameGroup)) {
805
+ return true;
806
+ } else if (value == null || value === false) {
807
+ return false;
808
+ } else if (pull && value === "clone") {
809
+ return value;
810
+ } else if (typeof value === "function") {
811
+ return toFn(value(to, from, dragEl2, evt), pull)(to, from, dragEl2, evt);
812
+ } else {
813
+ var otherGroup = (pull ? to : from).options.group.name;
814
+ return value === true || typeof value === "string" && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
815
+ }
816
+ };
817
+ }
818
+ var group = {};
819
+ var originalGroup = options.group;
820
+ if (!originalGroup || _typeof(originalGroup) != "object") {
821
+ originalGroup = {
822
+ name: originalGroup
823
+ };
824
+ }
825
+ group.name = originalGroup.name;
826
+ group.checkPull = toFn(originalGroup.pull, true);
827
+ group.checkPut = toFn(originalGroup.put);
828
+ group.revertClone = originalGroup.revertClone;
829
+ options.group = group;
830
+ };
831
+ var _hideGhostForTarget = function _hideGhostForTarget2() {
832
+ if (!supportCssPointerEvents && ghostEl) {
833
+ css(ghostEl, "display", "none");
834
+ }
835
+ };
836
+ var _unhideGhostForTarget = function _unhideGhostForTarget2() {
837
+ if (!supportCssPointerEvents && ghostEl) {
838
+ css(ghostEl, "display", "");
839
+ }
840
+ };
841
+ if (documentExists && !ChromeForAndroid) {
842
+ document.addEventListener("click", function(evt) {
843
+ if (ignoreNextClick) {
844
+ evt.preventDefault();
845
+ evt.stopPropagation && evt.stopPropagation();
846
+ evt.stopImmediatePropagation && evt.stopImmediatePropagation();
847
+ ignoreNextClick = false;
848
+ return false;
849
+ }
850
+ }, true);
851
+ }
852
+ var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent2(evt) {
853
+ if (dragEl) {
854
+ evt = evt.touches ? evt.touches[0] : evt;
855
+ var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
856
+ if (nearest) {
857
+ var event = {};
858
+ for (var i in evt) {
859
+ if (evt.hasOwnProperty(i)) {
860
+ event[i] = evt[i];
861
+ }
862
+ }
863
+ event.target = event.rootEl = nearest;
864
+ event.preventDefault = void 0;
865
+ event.stopPropagation = void 0;
866
+ nearest[expando]._onDragOver(event);
867
+ }
868
+ }
869
+ };
870
+ var _checkOutsideTargetEl = function _checkOutsideTargetEl2(evt) {
871
+ if (dragEl) {
872
+ dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
873
+ }
874
+ };
875
+ function Sortable(el, options) {
876
+ if (!(el && el.nodeType && el.nodeType === 1)) {
877
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
878
+ }
879
+ this.el = el;
880
+ this.options = options = _extends({}, options);
881
+ el[expando] = this;
882
+ var defaults2 = {
883
+ group: null,
884
+ sort: true,
885
+ disabled: false,
886
+ store: null,
887
+ handle: null,
888
+ draggable: /^[uo]l$/i.test(el.nodeName) ? ">li" : ">*",
889
+ swapThreshold: 1,
890
+ // percentage; 0 <= x <= 1
891
+ invertSwap: false,
892
+ // invert always
893
+ invertedSwapThreshold: null,
894
+ // will be set to same as swapThreshold if default
895
+ removeCloneOnHide: true,
896
+ direction: function direction() {
897
+ return _detectDirection(el, this.options);
898
+ },
899
+ ghostClass: "sortable-ghost",
900
+ chosenClass: "sortable-chosen",
901
+ dragClass: "sortable-drag",
902
+ ignore: "a, img",
903
+ filter: null,
904
+ preventOnFilter: true,
905
+ animation: 0,
906
+ easing: null,
907
+ setData: function setData(dataTransfer, dragEl2) {
908
+ dataTransfer.setData("Text", dragEl2.textContent);
909
+ },
910
+ dropBubble: false,
911
+ dragoverBubble: false,
912
+ dataIdAttr: "data-id",
913
+ delay: 0,
914
+ delayOnTouchOnly: false,
915
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
916
+ forceFallback: false,
917
+ fallbackClass: "sortable-fallback",
918
+ fallbackOnBody: false,
919
+ fallbackTolerance: 0,
920
+ fallbackOffset: {
921
+ x: 0,
922
+ y: 0
923
+ },
924
+ // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
925
+ supportPointer: Sortable.supportPointer !== false && "PointerEvent" in window && (!Safari || IOS),
926
+ emptyInsertThreshold: 5
927
+ };
928
+ PluginManager.initializePlugins(this, el, defaults2);
929
+ for (var name in defaults2) {
930
+ !(name in options) && (options[name] = defaults2[name]);
931
+ }
932
+ _prepareGroup(options);
933
+ for (var fn in this) {
934
+ if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
935
+ this[fn] = this[fn].bind(this);
936
+ }
937
+ }
938
+ this.nativeDraggable = options.forceFallback ? false : supportDraggable;
939
+ if (this.nativeDraggable) {
940
+ this.options.touchStartThreshold = 1;
941
+ }
942
+ if (options.supportPointer) {
943
+ on(el, "pointerdown", this._onTapStart);
944
+ } else {
945
+ on(el, "mousedown", this._onTapStart);
946
+ on(el, "touchstart", this._onTapStart);
947
+ }
948
+ if (this.nativeDraggable) {
949
+ on(el, "dragover", this);
950
+ on(el, "dragenter", this);
951
+ }
952
+ sortables.push(this.el);
953
+ options.store && options.store.get && this.sort(options.store.get(this) || []);
954
+ _extends(this, AnimationStateManager());
955
+ }
956
+ Sortable.prototype = /** @lends Sortable.prototype */
957
+ {
958
+ constructor: Sortable,
959
+ _isOutsideThisEl: function _isOutsideThisEl(target) {
960
+ if (!this.el.contains(target) && target !== this.el) {
961
+ lastTarget = null;
962
+ }
963
+ },
964
+ _getDirection: function _getDirection(evt, target) {
965
+ return typeof this.options.direction === "function" ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
966
+ },
967
+ _onTapStart: function _onTapStart(evt) {
968
+ if (!evt.cancelable) return;
969
+ var _this = this, el = this.el, options = this.options, preventOnFilter = options.preventOnFilter, type = evt.type, touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === "touch" && evt, target = (touch || evt).target, originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target, filter = options.filter;
970
+ _saveInputCheckedState(el);
971
+ if (dragEl) {
972
+ return;
973
+ }
974
+ if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
975
+ return;
976
+ }
977
+ if (originalTarget.isContentEditable) {
978
+ return;
979
+ }
980
+ if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === "SELECT") {
981
+ return;
982
+ }
983
+ target = closest(target, options.draggable, el, false);
984
+ if (target && target.animated) {
985
+ return;
986
+ }
987
+ if (lastDownEl === target) {
988
+ return;
989
+ }
990
+ oldIndex = index(target);
991
+ oldDraggableIndex = index(target, options.draggable);
992
+ if (typeof filter === "function") {
993
+ if (filter.call(this, evt, target, this)) {
994
+ _dispatchEvent({
995
+ sortable: _this,
996
+ rootEl: originalTarget,
997
+ name: "filter",
998
+ targetEl: target,
999
+ toEl: el,
1000
+ fromEl: el
1001
+ });
1002
+ pluginEvent2("filter", _this, {
1003
+ evt
1004
+ });
1005
+ preventOnFilter && evt.preventDefault();
1006
+ return;
1007
+ }
1008
+ } else if (filter) {
1009
+ filter = filter.split(",").some(function(criteria) {
1010
+ criteria = closest(originalTarget, criteria.trim(), el, false);
1011
+ if (criteria) {
1012
+ _dispatchEvent({
1013
+ sortable: _this,
1014
+ rootEl: criteria,
1015
+ name: "filter",
1016
+ targetEl: target,
1017
+ fromEl: el,
1018
+ toEl: el
1019
+ });
1020
+ pluginEvent2("filter", _this, {
1021
+ evt
1022
+ });
1023
+ return true;
1024
+ }
1025
+ });
1026
+ if (filter) {
1027
+ preventOnFilter && evt.preventDefault();
1028
+ return;
1029
+ }
1030
+ }
1031
+ if (options.handle && !closest(originalTarget, options.handle, el, false)) {
1032
+ return;
1033
+ }
1034
+ this._prepareDragStart(evt, touch, target);
1035
+ },
1036
+ _prepareDragStart: function _prepareDragStart(evt, touch, target) {
1037
+ var _this = this, el = _this.el, options = _this.options, ownerDocument = el.ownerDocument, dragStartFn;
1038
+ if (target && !dragEl && target.parentNode === el) {
1039
+ var dragRect = getRect(target);
1040
+ rootEl = el;
1041
+ dragEl = target;
1042
+ parentEl = dragEl.parentNode;
1043
+ nextEl = dragEl.nextSibling;
1044
+ lastDownEl = target;
1045
+ activeGroup = options.group;
1046
+ Sortable.dragged = dragEl;
1047
+ tapEvt = {
1048
+ target: dragEl,
1049
+ clientX: (touch || evt).clientX,
1050
+ clientY: (touch || evt).clientY
1051
+ };
1052
+ tapDistanceLeft = tapEvt.clientX - dragRect.left;
1053
+ tapDistanceTop = tapEvt.clientY - dragRect.top;
1054
+ this._lastX = (touch || evt).clientX;
1055
+ this._lastY = (touch || evt).clientY;
1056
+ dragEl.style["will-change"] = "all";
1057
+ dragStartFn = function dragStartFn2() {
1058
+ pluginEvent2("delayEnded", _this, {
1059
+ evt
1060
+ });
1061
+ if (Sortable.eventCanceled) {
1062
+ _this._onDrop();
1063
+ return;
1064
+ }
1065
+ _this._disableDelayedDragEvents();
1066
+ if (!FireFox && _this.nativeDraggable) {
1067
+ dragEl.draggable = true;
1068
+ }
1069
+ _this._triggerDragStart(evt, touch);
1070
+ _dispatchEvent({
1071
+ sortable: _this,
1072
+ name: "choose",
1073
+ originalEvent: evt
1074
+ });
1075
+ toggleClass(dragEl, options.chosenClass, true);
1076
+ };
1077
+ options.ignore.split(",").forEach(function(criteria) {
1078
+ find(dragEl, criteria.trim(), _disableDraggable);
1079
+ });
1080
+ on(ownerDocument, "dragover", nearestEmptyInsertDetectEvent);
1081
+ on(ownerDocument, "mousemove", nearestEmptyInsertDetectEvent);
1082
+ on(ownerDocument, "touchmove", nearestEmptyInsertDetectEvent);
1083
+ if (options.supportPointer) {
1084
+ on(ownerDocument, "pointerup", _this._onDrop);
1085
+ !this.nativeDraggable && on(ownerDocument, "pointercancel", _this._onDrop);
1086
+ } else {
1087
+ on(ownerDocument, "mouseup", _this._onDrop);
1088
+ on(ownerDocument, "touchend", _this._onDrop);
1089
+ on(ownerDocument, "touchcancel", _this._onDrop);
1090
+ }
1091
+ if (FireFox && this.nativeDraggable) {
1092
+ this.options.touchStartThreshold = 4;
1093
+ dragEl.draggable = true;
1094
+ }
1095
+ pluginEvent2("delayStart", this, {
1096
+ evt
1097
+ });
1098
+ if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
1099
+ if (Sortable.eventCanceled) {
1100
+ this._onDrop();
1101
+ return;
1102
+ }
1103
+ if (options.supportPointer) {
1104
+ on(ownerDocument, "pointerup", _this._disableDelayedDrag);
1105
+ on(ownerDocument, "pointercancel", _this._disableDelayedDrag);
1106
+ } else {
1107
+ on(ownerDocument, "mouseup", _this._disableDelayedDrag);
1108
+ on(ownerDocument, "touchend", _this._disableDelayedDrag);
1109
+ on(ownerDocument, "touchcancel", _this._disableDelayedDrag);
1110
+ }
1111
+ on(ownerDocument, "mousemove", _this._delayedDragTouchMoveHandler);
1112
+ on(ownerDocument, "touchmove", _this._delayedDragTouchMoveHandler);
1113
+ options.supportPointer && on(ownerDocument, "pointermove", _this._delayedDragTouchMoveHandler);
1114
+ _this._dragStartTimer = setTimeout(dragStartFn, options.delay);
1115
+ } else {
1116
+ dragStartFn();
1117
+ }
1118
+ }
1119
+ },
1120
+ _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(e3) {
1121
+ var touch = e3.touches ? e3.touches[0] : e3;
1122
+ if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {
1123
+ this._disableDelayedDrag();
1124
+ }
1125
+ },
1126
+ _disableDelayedDrag: function _disableDelayedDrag() {
1127
+ dragEl && _disableDraggable(dragEl);
1128
+ clearTimeout(this._dragStartTimer);
1129
+ this._disableDelayedDragEvents();
1130
+ },
1131
+ _disableDelayedDragEvents: function _disableDelayedDragEvents() {
1132
+ var ownerDocument = this.el.ownerDocument;
1133
+ off(ownerDocument, "mouseup", this._disableDelayedDrag);
1134
+ off(ownerDocument, "touchend", this._disableDelayedDrag);
1135
+ off(ownerDocument, "touchcancel", this._disableDelayedDrag);
1136
+ off(ownerDocument, "pointerup", this._disableDelayedDrag);
1137
+ off(ownerDocument, "pointercancel", this._disableDelayedDrag);
1138
+ off(ownerDocument, "mousemove", this._delayedDragTouchMoveHandler);
1139
+ off(ownerDocument, "touchmove", this._delayedDragTouchMoveHandler);
1140
+ off(ownerDocument, "pointermove", this._delayedDragTouchMoveHandler);
1141
+ },
1142
+ _triggerDragStart: function _triggerDragStart(evt, touch) {
1143
+ touch = touch || evt.pointerType == "touch" && evt;
1144
+ if (!this.nativeDraggable || touch) {
1145
+ if (this.options.supportPointer) {
1146
+ on(document, "pointermove", this._onTouchMove);
1147
+ } else if (touch) {
1148
+ on(document, "touchmove", this._onTouchMove);
1149
+ } else {
1150
+ on(document, "mousemove", this._onTouchMove);
1151
+ }
1152
+ } else {
1153
+ on(dragEl, "dragend", this);
1154
+ on(rootEl, "dragstart", this._onDragStart);
1155
+ }
1156
+ try {
1157
+ if (document.selection) {
1158
+ _nextTick(function() {
1159
+ document.selection.empty();
1160
+ });
1161
+ } else {
1162
+ window.getSelection().removeAllRanges();
1163
+ }
1164
+ } catch (err) {
1165
+ }
1166
+ },
1167
+ _dragStarted: function _dragStarted(fallback, evt) {
1168
+ awaitingDragStarted = false;
1169
+ if (rootEl && dragEl) {
1170
+ pluginEvent2("dragStarted", this, {
1171
+ evt
1172
+ });
1173
+ if (this.nativeDraggable) {
1174
+ on(document, "dragover", _checkOutsideTargetEl);
1175
+ }
1176
+ var options = this.options;
1177
+ !fallback && toggleClass(dragEl, options.dragClass, false);
1178
+ toggleClass(dragEl, options.ghostClass, true);
1179
+ Sortable.active = this;
1180
+ fallback && this._appendGhost();
1181
+ _dispatchEvent({
1182
+ sortable: this,
1183
+ name: "start",
1184
+ originalEvent: evt
1185
+ });
1186
+ } else {
1187
+ this._nulling();
1188
+ }
1189
+ },
1190
+ _emulateDragOver: function _emulateDragOver() {
1191
+ if (touchEvt) {
1192
+ this._lastX = touchEvt.clientX;
1193
+ this._lastY = touchEvt.clientY;
1194
+ _hideGhostForTarget();
1195
+ var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1196
+ var parent = target;
1197
+ while (target && target.shadowRoot) {
1198
+ target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1199
+ if (target === parent) break;
1200
+ parent = target;
1201
+ }
1202
+ dragEl.parentNode[expando]._isOutsideThisEl(target);
1203
+ if (parent) {
1204
+ do {
1205
+ if (parent[expando]) {
1206
+ var inserted = void 0;
1207
+ inserted = parent[expando]._onDragOver({
1208
+ clientX: touchEvt.clientX,
1209
+ clientY: touchEvt.clientY,
1210
+ target,
1211
+ rootEl: parent
1212
+ });
1213
+ if (inserted && !this.options.dragoverBubble) {
1214
+ break;
1215
+ }
1216
+ }
1217
+ target = parent;
1218
+ } while (parent = getParentOrHost(parent));
1219
+ }
1220
+ _unhideGhostForTarget();
1221
+ }
1222
+ },
1223
+ _onTouchMove: function _onTouchMove(evt) {
1224
+ if (tapEvt) {
1225
+ var options = this.options, fallbackTolerance = options.fallbackTolerance, fallbackOffset = options.fallbackOffset, touch = evt.touches ? evt.touches[0] : evt, ghostMatrix = ghostEl && matrix(ghostEl, true), scaleX = ghostEl && ghostMatrix && ghostMatrix.a, scaleY = ghostEl && ghostMatrix && ghostMatrix.d, relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent), dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1), dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1);
1226
+ if (!Sortable.active && !awaitingDragStarted) {
1227
+ if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
1228
+ return;
1229
+ }
1230
+ this._onDragStart(evt, true);
1231
+ }
1232
+ if (ghostEl) {
1233
+ if (ghostMatrix) {
1234
+ ghostMatrix.e += dx - (lastDx || 0);
1235
+ ghostMatrix.f += dy - (lastDy || 0);
1236
+ } else {
1237
+ ghostMatrix = {
1238
+ a: 1,
1239
+ b: 0,
1240
+ c: 0,
1241
+ d: 1,
1242
+ e: dx,
1243
+ f: dy
1244
+ };
1245
+ }
1246
+ var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
1247
+ css(ghostEl, "webkitTransform", cssMatrix);
1248
+ css(ghostEl, "mozTransform", cssMatrix);
1249
+ css(ghostEl, "msTransform", cssMatrix);
1250
+ css(ghostEl, "transform", cssMatrix);
1251
+ lastDx = dx;
1252
+ lastDy = dy;
1253
+ touchEvt = touch;
1254
+ }
1255
+ evt.cancelable && evt.preventDefault();
1256
+ }
1257
+ },
1258
+ _appendGhost: function _appendGhost() {
1259
+ if (!ghostEl) {
1260
+ var container = this.options.fallbackOnBody ? document.body : rootEl, rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container), options = this.options;
1261
+ if (PositionGhostAbsolutely) {
1262
+ ghostRelativeParent = container;
1263
+ while (css(ghostRelativeParent, "position") === "static" && css(ghostRelativeParent, "transform") === "none" && ghostRelativeParent !== document) {
1264
+ ghostRelativeParent = ghostRelativeParent.parentNode;
1265
+ }
1266
+ if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
1267
+ if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
1268
+ rect.top += ghostRelativeParent.scrollTop;
1269
+ rect.left += ghostRelativeParent.scrollLeft;
1270
+ } else {
1271
+ ghostRelativeParent = getWindowScrollingElement();
1272
+ }
1273
+ ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
1274
+ }
1275
+ ghostEl = dragEl.cloneNode(true);
1276
+ toggleClass(ghostEl, options.ghostClass, false);
1277
+ toggleClass(ghostEl, options.fallbackClass, true);
1278
+ toggleClass(ghostEl, options.dragClass, true);
1279
+ css(ghostEl, "transition", "");
1280
+ css(ghostEl, "transform", "");
1281
+ css(ghostEl, "box-sizing", "border-box");
1282
+ css(ghostEl, "margin", 0);
1283
+ css(ghostEl, "top", rect.top);
1284
+ css(ghostEl, "left", rect.left);
1285
+ css(ghostEl, "width", rect.width);
1286
+ css(ghostEl, "height", rect.height);
1287
+ css(ghostEl, "opacity", "0.8");
1288
+ css(ghostEl, "position", PositionGhostAbsolutely ? "absolute" : "fixed");
1289
+ css(ghostEl, "zIndex", "100000");
1290
+ css(ghostEl, "pointerEvents", "none");
1291
+ Sortable.ghost = ghostEl;
1292
+ container.appendChild(ghostEl);
1293
+ css(ghostEl, "transform-origin", tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + "% " + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + "%");
1294
+ }
1295
+ },
1296
+ _onDragStart: function _onDragStart(evt, fallback) {
1297
+ var _this = this;
1298
+ var dataTransfer = evt.dataTransfer;
1299
+ var options = _this.options;
1300
+ pluginEvent2("dragStart", this, {
1301
+ evt
1302
+ });
1303
+ if (Sortable.eventCanceled) {
1304
+ this._onDrop();
1305
+ return;
1306
+ }
1307
+ pluginEvent2("setupClone", this);
1308
+ if (!Sortable.eventCanceled) {
1309
+ cloneEl = clone(dragEl);
1310
+ cloneEl.removeAttribute("id");
1311
+ cloneEl.draggable = false;
1312
+ cloneEl.style["will-change"] = "";
1313
+ this._hideClone();
1314
+ toggleClass(cloneEl, this.options.chosenClass, false);
1315
+ Sortable.clone = cloneEl;
1316
+ }
1317
+ _this.cloneId = _nextTick(function() {
1318
+ pluginEvent2("clone", _this);
1319
+ if (Sortable.eventCanceled) return;
1320
+ if (!_this.options.removeCloneOnHide) {
1321
+ rootEl.insertBefore(cloneEl, dragEl);
1322
+ }
1323
+ _this._hideClone();
1324
+ _dispatchEvent({
1325
+ sortable: _this,
1326
+ name: "clone"
1327
+ });
1328
+ });
1329
+ !fallback && toggleClass(dragEl, options.dragClass, true);
1330
+ if (fallback) {
1331
+ ignoreNextClick = true;
1332
+ _this._loopId = setInterval(_this._emulateDragOver, 50);
1333
+ } else {
1334
+ off(document, "mouseup", _this._onDrop);
1335
+ off(document, "touchend", _this._onDrop);
1336
+ off(document, "touchcancel", _this._onDrop);
1337
+ if (dataTransfer) {
1338
+ dataTransfer.effectAllowed = "move";
1339
+ options.setData && options.setData.call(_this, dataTransfer, dragEl);
1340
+ }
1341
+ on(document, "drop", _this);
1342
+ css(dragEl, "transform", "translateZ(0)");
1343
+ }
1344
+ awaitingDragStarted = true;
1345
+ _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
1346
+ on(document, "selectstart", _this);
1347
+ moved = true;
1348
+ window.getSelection().removeAllRanges();
1349
+ if (Safari) {
1350
+ css(document.body, "user-select", "none");
1351
+ }
1352
+ },
1353
+ // Returns true - if no further action is needed (either inserted or another condition)
1354
+ _onDragOver: function _onDragOver(evt) {
1355
+ var el = this.el, target = evt.target, dragRect, targetRect, revert, options = this.options, group = options.group, activeSortable = Sortable.active, isOwner = activeGroup === group, canSort = options.sort, fromSortable = putSortable || activeSortable, vertical, _this = this, completedFired = false;
1356
+ if (_silent) return;
1357
+ function dragOverEvent(name, extra) {
1358
+ pluginEvent2(name, _this, _objectSpread2({
1359
+ evt,
1360
+ isOwner,
1361
+ axis: vertical ? "vertical" : "horizontal",
1362
+ revert,
1363
+ dragRect,
1364
+ targetRect,
1365
+ canSort,
1366
+ fromSortable,
1367
+ target,
1368
+ completed,
1369
+ onMove: function onMove(target2, after2) {
1370
+ return _onMove(rootEl, el, dragEl, dragRect, target2, getRect(target2), evt, after2);
1371
+ },
1372
+ changed
1373
+ }, extra));
1374
+ }
1375
+ function capture() {
1376
+ dragOverEvent("dragOverAnimationCapture");
1377
+ _this.captureAnimationState();
1378
+ if (_this !== fromSortable) {
1379
+ fromSortable.captureAnimationState();
1380
+ }
1381
+ }
1382
+ function completed(insertion) {
1383
+ dragOverEvent("dragOverCompleted", {
1384
+ insertion
1385
+ });
1386
+ if (insertion) {
1387
+ if (isOwner) {
1388
+ activeSortable._hideClone();
1389
+ } else {
1390
+ activeSortable._showClone(_this);
1391
+ }
1392
+ if (_this !== fromSortable) {
1393
+ toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
1394
+ toggleClass(dragEl, options.ghostClass, true);
1395
+ }
1396
+ if (putSortable !== _this && _this !== Sortable.active) {
1397
+ putSortable = _this;
1398
+ } else if (_this === Sortable.active && putSortable) {
1399
+ putSortable = null;
1400
+ }
1401
+ if (fromSortable === _this) {
1402
+ _this._ignoreWhileAnimating = target;
1403
+ }
1404
+ _this.animateAll(function() {
1405
+ dragOverEvent("dragOverAnimationComplete");
1406
+ _this._ignoreWhileAnimating = null;
1407
+ });
1408
+ if (_this !== fromSortable) {
1409
+ fromSortable.animateAll();
1410
+ fromSortable._ignoreWhileAnimating = null;
1411
+ }
1412
+ }
1413
+ if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
1414
+ lastTarget = null;
1415
+ }
1416
+ if (!options.dragoverBubble && !evt.rootEl && target !== document) {
1417
+ dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1418
+ !insertion && nearestEmptyInsertDetectEvent(evt);
1419
+ }
1420
+ !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
1421
+ return completedFired = true;
1422
+ }
1423
+ function changed() {
1424
+ newIndex = index(dragEl);
1425
+ newDraggableIndex = index(dragEl, options.draggable);
1426
+ _dispatchEvent({
1427
+ sortable: _this,
1428
+ name: "change",
1429
+ toEl: el,
1430
+ newIndex,
1431
+ newDraggableIndex,
1432
+ originalEvent: evt
1433
+ });
1434
+ }
1435
+ if (evt.preventDefault !== void 0) {
1436
+ evt.cancelable && evt.preventDefault();
1437
+ }
1438
+ target = closest(target, options.draggable, el, true);
1439
+ dragOverEvent("dragOver");
1440
+ if (Sortable.eventCanceled) return completedFired;
1441
+ if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
1442
+ return completed(false);
1443
+ }
1444
+ ignoreNextClick = false;
1445
+ if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
1446
+ vertical = this._getDirection(evt, target) === "vertical";
1447
+ dragRect = getRect(dragEl);
1448
+ dragOverEvent("dragOverValid");
1449
+ if (Sortable.eventCanceled) return completedFired;
1450
+ if (revert) {
1451
+ parentEl = rootEl;
1452
+ capture();
1453
+ this._hideClone();
1454
+ dragOverEvent("revert");
1455
+ if (!Sortable.eventCanceled) {
1456
+ if (nextEl) {
1457
+ rootEl.insertBefore(dragEl, nextEl);
1458
+ } else {
1459
+ rootEl.appendChild(dragEl);
1460
+ }
1461
+ }
1462
+ return completed(true);
1463
+ }
1464
+ var elLastChild = lastChild(el, options.draggable);
1465
+ if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
1466
+ if (elLastChild === dragEl) {
1467
+ return completed(false);
1468
+ }
1469
+ if (elLastChild && el === evt.target) {
1470
+ target = elLastChild;
1471
+ }
1472
+ if (target) {
1473
+ targetRect = getRect(target);
1474
+ }
1475
+ if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
1476
+ capture();
1477
+ if (elLastChild && elLastChild.nextSibling) {
1478
+ el.insertBefore(dragEl, elLastChild.nextSibling);
1479
+ } else {
1480
+ el.appendChild(dragEl);
1481
+ }
1482
+ parentEl = el;
1483
+ changed();
1484
+ return completed(true);
1485
+ }
1486
+ } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
1487
+ var firstChild = getChild(el, 0, options, true);
1488
+ if (firstChild === dragEl) {
1489
+ return completed(false);
1490
+ }
1491
+ target = firstChild;
1492
+ targetRect = getRect(target);
1493
+ if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
1494
+ capture();
1495
+ el.insertBefore(dragEl, firstChild);
1496
+ parentEl = el;
1497
+ changed();
1498
+ return completed(true);
1499
+ }
1500
+ } else if (target.parentNode === el) {
1501
+ targetRect = getRect(target);
1502
+ var direction = 0, targetBeforeFirstSwap, differentLevel = dragEl.parentNode !== el, differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical), side1 = vertical ? "top" : "left", scrolledPastTop = isScrolledPast(target, "top", "top") || isScrolledPast(dragEl, "top", "top"), scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
1503
+ if (lastTarget !== target) {
1504
+ targetBeforeFirstSwap = targetRect[side1];
1505
+ pastFirstInvertThresh = false;
1506
+ isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
1507
+ }
1508
+ direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
1509
+ var sibling;
1510
+ if (direction !== 0) {
1511
+ var dragIndex = index(dragEl);
1512
+ do {
1513
+ dragIndex -= direction;
1514
+ sibling = parentEl.children[dragIndex];
1515
+ } while (sibling && (css(sibling, "display") === "none" || sibling === ghostEl));
1516
+ }
1517
+ if (direction === 0 || sibling === target) {
1518
+ return completed(false);
1519
+ }
1520
+ lastTarget = target;
1521
+ lastDirection = direction;
1522
+ var nextSibling = target.nextElementSibling, after = false;
1523
+ after = direction === 1;
1524
+ var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
1525
+ if (moveVector !== false) {
1526
+ if (moveVector === 1 || moveVector === -1) {
1527
+ after = moveVector === 1;
1528
+ }
1529
+ _silent = true;
1530
+ setTimeout(_unsilent, 30);
1531
+ capture();
1532
+ if (after && !nextSibling) {
1533
+ el.appendChild(dragEl);
1534
+ } else {
1535
+ target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
1536
+ }
1537
+ if (scrolledPastTop) {
1538
+ scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
1539
+ }
1540
+ parentEl = dragEl.parentNode;
1541
+ if (targetBeforeFirstSwap !== void 0 && !isCircumstantialInvert) {
1542
+ targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
1543
+ }
1544
+ changed();
1545
+ return completed(true);
1546
+ }
1547
+ }
1548
+ if (el.contains(dragEl)) {
1549
+ return completed(false);
1550
+ }
1551
+ }
1552
+ return false;
1553
+ },
1554
+ _ignoreWhileAnimating: null,
1555
+ _offMoveEvents: function _offMoveEvents() {
1556
+ off(document, "mousemove", this._onTouchMove);
1557
+ off(document, "touchmove", this._onTouchMove);
1558
+ off(document, "pointermove", this._onTouchMove);
1559
+ off(document, "dragover", nearestEmptyInsertDetectEvent);
1560
+ off(document, "mousemove", nearestEmptyInsertDetectEvent);
1561
+ off(document, "touchmove", nearestEmptyInsertDetectEvent);
1562
+ },
1563
+ _offUpEvents: function _offUpEvents() {
1564
+ var ownerDocument = this.el.ownerDocument;
1565
+ off(ownerDocument, "mouseup", this._onDrop);
1566
+ off(ownerDocument, "touchend", this._onDrop);
1567
+ off(ownerDocument, "pointerup", this._onDrop);
1568
+ off(ownerDocument, "pointercancel", this._onDrop);
1569
+ off(ownerDocument, "touchcancel", this._onDrop);
1570
+ off(document, "selectstart", this);
1571
+ },
1572
+ _onDrop: function _onDrop(evt) {
1573
+ var el = this.el, options = this.options;
1574
+ newIndex = index(dragEl);
1575
+ newDraggableIndex = index(dragEl, options.draggable);
1576
+ pluginEvent2("drop", this, {
1577
+ evt
1578
+ });
1579
+ parentEl = dragEl && dragEl.parentNode;
1580
+ newIndex = index(dragEl);
1581
+ newDraggableIndex = index(dragEl, options.draggable);
1582
+ if (Sortable.eventCanceled) {
1583
+ this._nulling();
1584
+ return;
1585
+ }
1586
+ awaitingDragStarted = false;
1587
+ isCircumstantialInvert = false;
1588
+ pastFirstInvertThresh = false;
1589
+ clearInterval(this._loopId);
1590
+ clearTimeout(this._dragStartTimer);
1591
+ _cancelNextTick(this.cloneId);
1592
+ _cancelNextTick(this._dragStartId);
1593
+ if (this.nativeDraggable) {
1594
+ off(document, "drop", this);
1595
+ off(el, "dragstart", this._onDragStart);
1596
+ }
1597
+ this._offMoveEvents();
1598
+ this._offUpEvents();
1599
+ if (Safari) {
1600
+ css(document.body, "user-select", "");
1601
+ }
1602
+ css(dragEl, "transform", "");
1603
+ if (evt) {
1604
+ if (moved) {
1605
+ evt.cancelable && evt.preventDefault();
1606
+ !options.dropBubble && evt.stopPropagation();
1607
+ }
1608
+ ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
1609
+ if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== "clone") {
1610
+ cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
1611
+ }
1612
+ if (dragEl) {
1613
+ if (this.nativeDraggable) {
1614
+ off(dragEl, "dragend", this);
1615
+ }
1616
+ _disableDraggable(dragEl);
1617
+ dragEl.style["will-change"] = "";
1618
+ if (moved && !awaitingDragStarted) {
1619
+ toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
1620
+ }
1621
+ toggleClass(dragEl, this.options.chosenClass, false);
1622
+ _dispatchEvent({
1623
+ sortable: this,
1624
+ name: "unchoose",
1625
+ toEl: parentEl,
1626
+ newIndex: null,
1627
+ newDraggableIndex: null,
1628
+ originalEvent: evt
1629
+ });
1630
+ if (rootEl !== parentEl) {
1631
+ if (newIndex >= 0) {
1632
+ _dispatchEvent({
1633
+ rootEl: parentEl,
1634
+ name: "add",
1635
+ toEl: parentEl,
1636
+ fromEl: rootEl,
1637
+ originalEvent: evt
1638
+ });
1639
+ _dispatchEvent({
1640
+ sortable: this,
1641
+ name: "remove",
1642
+ toEl: parentEl,
1643
+ originalEvent: evt
1644
+ });
1645
+ _dispatchEvent({
1646
+ rootEl: parentEl,
1647
+ name: "sort",
1648
+ toEl: parentEl,
1649
+ fromEl: rootEl,
1650
+ originalEvent: evt
1651
+ });
1652
+ _dispatchEvent({
1653
+ sortable: this,
1654
+ name: "sort",
1655
+ toEl: parentEl,
1656
+ originalEvent: evt
1657
+ });
1658
+ }
1659
+ putSortable && putSortable.save();
1660
+ } else {
1661
+ if (newIndex !== oldIndex) {
1662
+ if (newIndex >= 0) {
1663
+ _dispatchEvent({
1664
+ sortable: this,
1665
+ name: "update",
1666
+ toEl: parentEl,
1667
+ originalEvent: evt
1668
+ });
1669
+ _dispatchEvent({
1670
+ sortable: this,
1671
+ name: "sort",
1672
+ toEl: parentEl,
1673
+ originalEvent: evt
1674
+ });
1675
+ }
1676
+ }
1677
+ }
1678
+ if (Sortable.active) {
1679
+ if (newIndex == null || newIndex === -1) {
1680
+ newIndex = oldIndex;
1681
+ newDraggableIndex = oldDraggableIndex;
1682
+ }
1683
+ _dispatchEvent({
1684
+ sortable: this,
1685
+ name: "end",
1686
+ toEl: parentEl,
1687
+ originalEvent: evt
1688
+ });
1689
+ this.save();
1690
+ }
1691
+ }
1692
+ }
1693
+ this._nulling();
1694
+ },
1695
+ _nulling: function _nulling() {
1696
+ pluginEvent2("nulling", this);
1697
+ rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
1698
+ var el = this.el;
1699
+ savedInputChecked.forEach(function(checkEl) {
1700
+ if (el.contains(checkEl)) {
1701
+ checkEl.checked = true;
1702
+ }
1703
+ });
1704
+ savedInputChecked.length = lastDx = lastDy = 0;
1705
+ },
1706
+ handleEvent: function handleEvent(evt) {
1707
+ switch (evt.type) {
1708
+ case "drop":
1709
+ case "dragend":
1710
+ this._onDrop(evt);
1711
+ break;
1712
+ case "dragenter":
1713
+ case "dragover":
1714
+ if (dragEl) {
1715
+ this._onDragOver(evt);
1716
+ _globalDragOver(evt);
1717
+ }
1718
+ break;
1719
+ case "selectstart":
1720
+ evt.preventDefault();
1721
+ break;
1722
+ }
1723
+ },
1724
+ /**
1725
+ * Serializes the item into an array of string.
1726
+ * @returns {String[]}
1727
+ */
1728
+ toArray: function toArray() {
1729
+ var order = [], el, children = this.el.children, i = 0, n3 = children.length, options = this.options;
1730
+ for (; i < n3; i++) {
1731
+ el = children[i];
1732
+ if (closest(el, options.draggable, this.el, false)) {
1733
+ order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
1734
+ }
1735
+ }
1736
+ return order;
1737
+ },
1738
+ /**
1739
+ * Sorts the elements according to the array.
1740
+ * @param {String[]} order order of the items
1741
+ */
1742
+ sort: function sort(order, useAnimation) {
1743
+ var items = {}, rootEl2 = this.el;
1744
+ this.toArray().forEach(function(id, i) {
1745
+ var el = rootEl2.children[i];
1746
+ if (closest(el, this.options.draggable, rootEl2, false)) {
1747
+ items[id] = el;
1748
+ }
1749
+ }, this);
1750
+ useAnimation && this.captureAnimationState();
1751
+ order.forEach(function(id) {
1752
+ if (items[id]) {
1753
+ rootEl2.removeChild(items[id]);
1754
+ rootEl2.appendChild(items[id]);
1755
+ }
1756
+ });
1757
+ useAnimation && this.animateAll();
1758
+ },
1759
+ /**
1760
+ * Save the current sorting
1761
+ */
1762
+ save: function save() {
1763
+ var store = this.options.store;
1764
+ store && store.set && store.set(this);
1765
+ },
1766
+ /**
1767
+ * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
1768
+ * @param {HTMLElement} el
1769
+ * @param {String} [selector] default: `options.draggable`
1770
+ * @returns {HTMLElement|null}
1771
+ */
1772
+ closest: function closest$1(el, selector) {
1773
+ return closest(el, selector || this.options.draggable, this.el, false);
1774
+ },
1775
+ /**
1776
+ * Set/get option
1777
+ * @param {string} name
1778
+ * @param {*} [value]
1779
+ * @returns {*}
1780
+ */
1781
+ option: function option(name, value) {
1782
+ var options = this.options;
1783
+ if (value === void 0) {
1784
+ return options[name];
1785
+ } else {
1786
+ var modifiedValue = PluginManager.modifyOption(this, name, value);
1787
+ if (typeof modifiedValue !== "undefined") {
1788
+ options[name] = modifiedValue;
1789
+ } else {
1790
+ options[name] = value;
1791
+ }
1792
+ if (name === "group") {
1793
+ _prepareGroup(options);
1794
+ }
1795
+ }
1796
+ },
1797
+ /**
1798
+ * Destroy
1799
+ */
1800
+ destroy: function destroy() {
1801
+ pluginEvent2("destroy", this);
1802
+ var el = this.el;
1803
+ el[expando] = null;
1804
+ off(el, "mousedown", this._onTapStart);
1805
+ off(el, "touchstart", this._onTapStart);
1806
+ off(el, "pointerdown", this._onTapStart);
1807
+ if (this.nativeDraggable) {
1808
+ off(el, "dragover", this);
1809
+ off(el, "dragenter", this);
1810
+ }
1811
+ Array.prototype.forEach.call(el.querySelectorAll("[draggable]"), function(el2) {
1812
+ el2.removeAttribute("draggable");
1813
+ });
1814
+ this._onDrop();
1815
+ this._disableDelayedDragEvents();
1816
+ sortables.splice(sortables.indexOf(this.el), 1);
1817
+ this.el = el = null;
1818
+ },
1819
+ _hideClone: function _hideClone() {
1820
+ if (!cloneHidden) {
1821
+ pluginEvent2("hideClone", this);
1822
+ if (Sortable.eventCanceled) return;
1823
+ css(cloneEl, "display", "none");
1824
+ if (this.options.removeCloneOnHide && cloneEl.parentNode) {
1825
+ cloneEl.parentNode.removeChild(cloneEl);
1826
+ }
1827
+ cloneHidden = true;
1828
+ }
1829
+ },
1830
+ _showClone: function _showClone(putSortable2) {
1831
+ if (putSortable2.lastPutMode !== "clone") {
1832
+ this._hideClone();
1833
+ return;
1834
+ }
1835
+ if (cloneHidden) {
1836
+ pluginEvent2("showClone", this);
1837
+ if (Sortable.eventCanceled) return;
1838
+ if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
1839
+ rootEl.insertBefore(cloneEl, dragEl);
1840
+ } else if (nextEl) {
1841
+ rootEl.insertBefore(cloneEl, nextEl);
1842
+ } else {
1843
+ rootEl.appendChild(cloneEl);
1844
+ }
1845
+ if (this.options.group.revertClone) {
1846
+ this.animate(dragEl, cloneEl);
1847
+ }
1848
+ css(cloneEl, "display", "");
1849
+ cloneHidden = false;
1850
+ }
1851
+ }
1852
+ };
1853
+ function _globalDragOver(evt) {
1854
+ if (evt.dataTransfer) {
1855
+ evt.dataTransfer.dropEffect = "move";
1856
+ }
1857
+ evt.cancelable && evt.preventDefault();
1858
+ }
1859
+ function _onMove(fromEl, toEl, dragEl2, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
1860
+ var evt, sortable = fromEl[expando], onMoveFn = sortable.options.onMove, retVal;
1861
+ if (window.CustomEvent && !IE11OrLess && !Edge) {
1862
+ evt = new CustomEvent("move", {
1863
+ bubbles: true,
1864
+ cancelable: true
1865
+ });
1866
+ } else {
1867
+ evt = document.createEvent("Event");
1868
+ evt.initEvent("move", true, true);
1869
+ }
1870
+ evt.to = toEl;
1871
+ evt.from = fromEl;
1872
+ evt.dragged = dragEl2;
1873
+ evt.draggedRect = dragRect;
1874
+ evt.related = targetEl || toEl;
1875
+ evt.relatedRect = targetRect || getRect(toEl);
1876
+ evt.willInsertAfter = willInsertAfter;
1877
+ evt.originalEvent = originalEvent;
1878
+ fromEl.dispatchEvent(evt);
1879
+ if (onMoveFn) {
1880
+ retVal = onMoveFn.call(sortable, evt, originalEvent);
1881
+ }
1882
+ return retVal;
1883
+ }
1884
+ function _disableDraggable(el) {
1885
+ el.draggable = false;
1886
+ }
1887
+ function _unsilent() {
1888
+ _silent = false;
1889
+ }
1890
+ function _ghostIsFirst(evt, vertical, sortable) {
1891
+ var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true));
1892
+ var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
1893
+ var spacer = 10;
1894
+ return vertical ? evt.clientX < childContainingRect.left - spacer || evt.clientY < firstElRect.top && evt.clientX < firstElRect.right : evt.clientY < childContainingRect.top - spacer || evt.clientY < firstElRect.bottom && evt.clientX < firstElRect.left;
1895
+ }
1896
+ function _ghostIsLast(evt, vertical, sortable) {
1897
+ var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable));
1898
+ var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
1899
+ var spacer = 10;
1900
+ return vertical ? evt.clientX > childContainingRect.right + spacer || evt.clientY > lastElRect.bottom && evt.clientX > lastElRect.left : evt.clientY > childContainingRect.bottom + spacer || evt.clientX > lastElRect.right && evt.clientY > lastElRect.top;
1901
+ }
1902
+ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
1903
+ var mouseOnAxis = vertical ? evt.clientY : evt.clientX, targetLength = vertical ? targetRect.height : targetRect.width, targetS1 = vertical ? targetRect.top : targetRect.left, targetS2 = vertical ? targetRect.bottom : targetRect.right, invert = false;
1904
+ if (!invertSwap) {
1905
+ if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
1906
+ if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
1907
+ pastFirstInvertThresh = true;
1908
+ }
1909
+ if (!pastFirstInvertThresh) {
1910
+ if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance : mouseOnAxis > targetS2 - targetMoveDistance) {
1911
+ return -lastDirection;
1912
+ }
1913
+ } else {
1914
+ invert = true;
1915
+ }
1916
+ } else {
1917
+ if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
1918
+ return _getInsertDirection(target);
1919
+ }
1920
+ }
1921
+ }
1922
+ invert = invert || invertSwap;
1923
+ if (invert) {
1924
+ if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
1925
+ return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
1926
+ }
1927
+ }
1928
+ return 0;
1929
+ }
1930
+ function _getInsertDirection(target) {
1931
+ if (index(dragEl) < index(target)) {
1932
+ return 1;
1933
+ } else {
1934
+ return -1;
1935
+ }
1936
+ }
1937
+ function _generateId(el) {
1938
+ var str = el.tagName + el.className + el.src + el.href + el.textContent, i = str.length, sum = 0;
1939
+ while (i--) {
1940
+ sum += str.charCodeAt(i);
1941
+ }
1942
+ return sum.toString(36);
1943
+ }
1944
+ function _saveInputCheckedState(root) {
1945
+ savedInputChecked.length = 0;
1946
+ var inputs = root.getElementsByTagName("input");
1947
+ var idx = inputs.length;
1948
+ while (idx--) {
1949
+ var el = inputs[idx];
1950
+ el.checked && savedInputChecked.push(el);
1951
+ }
1952
+ }
1953
+ function _nextTick(fn) {
1954
+ return setTimeout(fn, 0);
1955
+ }
1956
+ function _cancelNextTick(id) {
1957
+ return clearTimeout(id);
1958
+ }
1959
+ if (documentExists) {
1960
+ on(document, "touchmove", function(evt) {
1961
+ if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
1962
+ evt.preventDefault();
1963
+ }
1964
+ });
1965
+ }
1966
+ Sortable.utils = {
1967
+ on,
1968
+ off,
1969
+ css,
1970
+ find,
1971
+ is: function is(el, selector) {
1972
+ return !!closest(el, selector, el, false);
1973
+ },
1974
+ extend,
1975
+ throttle,
1976
+ closest,
1977
+ toggleClass,
1978
+ clone,
1979
+ index,
1980
+ nextTick: _nextTick,
1981
+ cancelNextTick: _cancelNextTick,
1982
+ detectDirection: _detectDirection,
1983
+ getChild,
1984
+ expando
1985
+ };
1986
+ Sortable.get = function(element) {
1987
+ return element[expando];
1988
+ };
1989
+ Sortable.mount = function() {
1990
+ for (var _len = arguments.length, plugins2 = new Array(_len), _key = 0; _key < _len; _key++) {
1991
+ plugins2[_key] = arguments[_key];
1992
+ }
1993
+ if (plugins2[0].constructor === Array) plugins2 = plugins2[0];
1994
+ plugins2.forEach(function(plugin) {
1995
+ if (!plugin.prototype || !plugin.prototype.constructor) {
1996
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
1997
+ }
1998
+ if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
1999
+ PluginManager.mount(plugin);
2000
+ });
2001
+ };
2002
+ Sortable.create = function(el, options) {
2003
+ return new Sortable(el, options);
2004
+ };
2005
+ Sortable.version = version;
2006
+ var autoScrolls = [];
2007
+ var scrollEl;
2008
+ var scrollRootEl;
2009
+ var scrolling = false;
2010
+ var lastAutoScrollX;
2011
+ var lastAutoScrollY;
2012
+ var touchEvt$1;
2013
+ var pointerElemChangedInterval;
2014
+ function AutoScrollPlugin() {
2015
+ function AutoScroll() {
2016
+ this.defaults = {
2017
+ scroll: true,
2018
+ forceAutoScrollFallback: false,
2019
+ scrollSensitivity: 30,
2020
+ scrollSpeed: 10,
2021
+ bubbleScroll: true
2022
+ };
2023
+ for (var fn in this) {
2024
+ if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
2025
+ this[fn] = this[fn].bind(this);
2026
+ }
2027
+ }
2028
+ }
2029
+ AutoScroll.prototype = {
2030
+ dragStarted: function dragStarted(_ref) {
2031
+ var originalEvent = _ref.originalEvent;
2032
+ if (this.sortable.nativeDraggable) {
2033
+ on(document, "dragover", this._handleAutoScroll);
2034
+ } else {
2035
+ if (this.options.supportPointer) {
2036
+ on(document, "pointermove", this._handleFallbackAutoScroll);
2037
+ } else if (originalEvent.touches) {
2038
+ on(document, "touchmove", this._handleFallbackAutoScroll);
2039
+ } else {
2040
+ on(document, "mousemove", this._handleFallbackAutoScroll);
2041
+ }
2042
+ }
2043
+ },
2044
+ dragOverCompleted: function dragOverCompleted(_ref2) {
2045
+ var originalEvent = _ref2.originalEvent;
2046
+ if (!this.options.dragOverBubble && !originalEvent.rootEl) {
2047
+ this._handleAutoScroll(originalEvent);
2048
+ }
2049
+ },
2050
+ drop: function drop3() {
2051
+ if (this.sortable.nativeDraggable) {
2052
+ off(document, "dragover", this._handleAutoScroll);
2053
+ } else {
2054
+ off(document, "pointermove", this._handleFallbackAutoScroll);
2055
+ off(document, "touchmove", this._handleFallbackAutoScroll);
2056
+ off(document, "mousemove", this._handleFallbackAutoScroll);
2057
+ }
2058
+ clearPointerElemChangedInterval();
2059
+ clearAutoScrolls();
2060
+ cancelThrottle();
2061
+ },
2062
+ nulling: function nulling() {
2063
+ touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
2064
+ autoScrolls.length = 0;
2065
+ },
2066
+ _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
2067
+ this._handleAutoScroll(evt, true);
2068
+ },
2069
+ _handleAutoScroll: function _handleAutoScroll(evt, fallback) {
2070
+ var _this = this;
2071
+ var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, elem = document.elementFromPoint(x, y);
2072
+ touchEvt$1 = evt;
2073
+ if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
2074
+ autoScroll(evt, this.options, elem, fallback);
2075
+ var ogElemScroller = getParentAutoScrollElement(elem, true);
2076
+ if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
2077
+ pointerElemChangedInterval && clearPointerElemChangedInterval();
2078
+ pointerElemChangedInterval = setInterval(function() {
2079
+ var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
2080
+ if (newElem !== ogElemScroller) {
2081
+ ogElemScroller = newElem;
2082
+ clearAutoScrolls();
2083
+ }
2084
+ autoScroll(evt, _this.options, newElem, fallback);
2085
+ }, 10);
2086
+ lastAutoScrollX = x;
2087
+ lastAutoScrollY = y;
2088
+ }
2089
+ } else {
2090
+ if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
2091
+ clearAutoScrolls();
2092
+ return;
2093
+ }
2094
+ autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
2095
+ }
2096
+ }
2097
+ };
2098
+ return _extends(AutoScroll, {
2099
+ pluginName: "scroll",
2100
+ initializeByDefault: true
2101
+ });
2102
+ }
2103
+ function clearAutoScrolls() {
2104
+ autoScrolls.forEach(function(autoScroll2) {
2105
+ clearInterval(autoScroll2.pid);
2106
+ });
2107
+ autoScrolls = [];
2108
+ }
2109
+ function clearPointerElemChangedInterval() {
2110
+ clearInterval(pointerElemChangedInterval);
2111
+ }
2112
+ var autoScroll = throttle(function(evt, options, rootEl2, isFallback) {
2113
+ if (!options.scroll) return;
2114
+ var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, sens = options.scrollSensitivity, speed = options.scrollSpeed, winScroller = getWindowScrollingElement();
2115
+ var scrollThisInstance = false, scrollCustomFn;
2116
+ if (scrollRootEl !== rootEl2) {
2117
+ scrollRootEl = rootEl2;
2118
+ clearAutoScrolls();
2119
+ scrollEl = options.scroll;
2120
+ scrollCustomFn = options.scrollFn;
2121
+ if (scrollEl === true) {
2122
+ scrollEl = getParentAutoScrollElement(rootEl2, true);
2123
+ }
2124
+ }
2125
+ var layersOut = 0;
2126
+ var currentParent = scrollEl;
2127
+ do {
2128
+ var el = currentParent, rect = getRect(el), top = rect.top, bottom = rect.bottom, left = rect.left, right = rect.right, width = rect.width, height = rect.height, canScrollX = void 0, canScrollY = void 0, scrollWidth = el.scrollWidth, scrollHeight = el.scrollHeight, elCSS = css(el), scrollPosX = el.scrollLeft, scrollPosY = el.scrollTop;
2129
+ if (el === winScroller) {
2130
+ canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll" || elCSS.overflowX === "visible");
2131
+ canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll" || elCSS.overflowY === "visible");
2132
+ } else {
2133
+ canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll");
2134
+ canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll");
2135
+ }
2136
+ var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
2137
+ var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
2138
+ if (!autoScrolls[layersOut]) {
2139
+ for (var i = 0; i <= layersOut; i++) {
2140
+ if (!autoScrolls[i]) {
2141
+ autoScrolls[i] = {};
2142
+ }
2143
+ }
2144
+ }
2145
+ if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
2146
+ autoScrolls[layersOut].el = el;
2147
+ autoScrolls[layersOut].vx = vx;
2148
+ autoScrolls[layersOut].vy = vy;
2149
+ clearInterval(autoScrolls[layersOut].pid);
2150
+ if (vx != 0 || vy != 0) {
2151
+ scrollThisInstance = true;
2152
+ autoScrolls[layersOut].pid = setInterval(function() {
2153
+ if (isFallback && this.layer === 0) {
2154
+ Sortable.active._onTouchMove(touchEvt$1);
2155
+ }
2156
+ var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
2157
+ var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
2158
+ if (typeof scrollCustomFn === "function") {
2159
+ if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== "continue") {
2160
+ return;
2161
+ }
2162
+ }
2163
+ scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
2164
+ }.bind({
2165
+ layer: layersOut
2166
+ }), 24);
2167
+ }
2168
+ }
2169
+ layersOut++;
2170
+ } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
2171
+ scrolling = scrollThisInstance;
2172
+ }, 30);
2173
+ var drop = function drop2(_ref) {
2174
+ var originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, dragEl2 = _ref.dragEl, activeSortable = _ref.activeSortable, dispatchSortableEvent = _ref.dispatchSortableEvent, hideGhostForTarget = _ref.hideGhostForTarget, unhideGhostForTarget = _ref.unhideGhostForTarget;
2175
+ if (!originalEvent) return;
2176
+ var toSortable = putSortable2 || activeSortable;
2177
+ hideGhostForTarget();
2178
+ var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
2179
+ var target = document.elementFromPoint(touch.clientX, touch.clientY);
2180
+ unhideGhostForTarget();
2181
+ if (toSortable && !toSortable.el.contains(target)) {
2182
+ dispatchSortableEvent("spill");
2183
+ this.onSpill({
2184
+ dragEl: dragEl2,
2185
+ putSortable: putSortable2
2186
+ });
2187
+ }
2188
+ };
2189
+ function Revert() {
2190
+ }
2191
+ Revert.prototype = {
2192
+ startIndex: null,
2193
+ dragStart: function dragStart(_ref2) {
2194
+ var oldDraggableIndex2 = _ref2.oldDraggableIndex;
2195
+ this.startIndex = oldDraggableIndex2;
2196
+ },
2197
+ onSpill: function onSpill(_ref3) {
2198
+ var dragEl2 = _ref3.dragEl, putSortable2 = _ref3.putSortable;
2199
+ this.sortable.captureAnimationState();
2200
+ if (putSortable2) {
2201
+ putSortable2.captureAnimationState();
2202
+ }
2203
+ var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
2204
+ if (nextSibling) {
2205
+ this.sortable.el.insertBefore(dragEl2, nextSibling);
2206
+ } else {
2207
+ this.sortable.el.appendChild(dragEl2);
2208
+ }
2209
+ this.sortable.animateAll();
2210
+ if (putSortable2) {
2211
+ putSortable2.animateAll();
2212
+ }
2213
+ },
2214
+ drop
2215
+ };
2216
+ _extends(Revert, {
2217
+ pluginName: "revertOnSpill"
2218
+ });
2219
+ function Remove() {
2220
+ }
2221
+ Remove.prototype = {
2222
+ onSpill: function onSpill2(_ref4) {
2223
+ var dragEl2 = _ref4.dragEl, putSortable2 = _ref4.putSortable;
2224
+ var parentSortable = putSortable2 || this.sortable;
2225
+ parentSortable.captureAnimationState();
2226
+ dragEl2.parentNode && dragEl2.parentNode.removeChild(dragEl2);
2227
+ parentSortable.animateAll();
2228
+ },
2229
+ drop
2230
+ };
2231
+ _extends(Remove, {
2232
+ pluginName: "removeOnSpill"
2233
+ });
2234
+ Sortable.mount(new AutoScrollPlugin());
2235
+ Sortable.mount(Remove, Revert);
2236
+ var sortable_esm_default = Sortable;
2237
+
2238
+ // src/components/table/body-table.ts
2239
+ var BodyTable = class extends ShoelaceElement {
2240
+ constructor() {
2241
+ super(...arguments);
2242
+ this.expandRowByClick = false;
2243
+ this.currentInsertIndex = null;
2244
+ this.dropTarget = null;
2245
+ this.tbodyRef = e2();
2246
+ /** 拖拽开始时记录的原始展开状态 */
2247
+ this.savedExpandedKeys = /* @__PURE__ */ new Set();
2248
+ /** 正在拖拽的行 key */
2249
+ this.draggingRowKey = null;
2250
+ /** 树形拖拽时需要显示拖拽样式的行 key 集合(自身 + 子孙) */
2251
+ this.draggingKeys = /* @__PURE__ */ new Set();
2252
+ this.cleanupDragImage = () => {
2253
+ var _a;
2254
+ if ((_a = this.dragImageEl) == null ? void 0 : _a.parentNode) this.dragImageEl.parentNode.removeChild(this.dragImageEl);
2255
+ this.dragImageEl = void 0;
2256
+ };
2257
+ // ===================== Sortable 事件处理 =====================
2258
+ this.handleMove = (evt) => {
2259
+ var _a, _b;
2260
+ const tbody = this.tbodyRef.value;
2261
+ if (!this.bodyRef.value || !tbody) return true;
2262
+ const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
2263
+ if (!rows.length) return true;
2264
+ if (this.isTreeMode()) {
2265
+ if (!this.draggingRowKey && evt.item) {
2266
+ this.draggingRowKey = (_a = evt.item.dataset.rowKey) != null ? _a : null;
2267
+ }
2268
+ const target = this.calcDragTarget(evt);
2269
+ this.dropTarget = target;
2270
+ this.requestUpdate();
2271
+ return false;
2272
+ }
2273
+ const mouseY = evt.originalEvent.clientY;
2274
+ const firstRect = rows[0].getBoundingClientRect();
2275
+ const lastRect = rows[rows.length - 1].getBoundingClientRect();
2276
+ let insertIndex = (_b = this.currentInsertIndex) != null ? _b : 0;
2277
+ if (mouseY >= lastRect.bottom) {
2278
+ insertIndex = rows.length;
2279
+ } else if (mouseY <= firstRect.top) {
2280
+ insertIndex = 0;
2281
+ } else {
2282
+ const related = evt.related;
2283
+ if (related) {
2284
+ const rect = related.getBoundingClientRect();
2285
+ const relatedIndex = rows.indexOf(related);
2286
+ if (relatedIndex >= 0) {
2287
+ insertIndex = mouseY - rect.top > rect.height / 2 ? relatedIndex + 1 : relatedIndex;
2288
+ }
2289
+ }
2290
+ }
2291
+ this.currentInsertIndex = Math.max(0, Math.min(rows.length, insertIndex));
2292
+ this.requestUpdate();
2293
+ return false;
2294
+ };
2295
+ this.handleEnd = (evt) => {
2296
+ var _a, _b, _c, _d;
2297
+ if (this.isTreeMode()) {
2298
+ const target = this.dropTarget;
2299
+ this.restoreExpandForDrag();
2300
+ if (!target || !this.draggingRowKey) {
2301
+ this.resetTreeDragState();
2302
+ return;
2303
+ }
2304
+ const dragKey = this.draggingRowKey;
2305
+ const cfg = this.getTreeConfig();
2306
+ const { removed, newData } = this.removeNodeFromTree(
2307
+ this.commonProps.dataSource,
2308
+ dragKey,
2309
+ cfg.childrenKey
2310
+ );
2311
+ if (removed) {
2312
+ const newDataSource = this.insertNodeToTree(newData, removed, target.rowKey, target.position, cfg.childrenKey);
2313
+ (_b = (_a = this.commonProps).slRowReorder) == null ? void 0 : _b.call(_a, {
2314
+ fromKey: dragKey,
2315
+ toKey: target.rowKey,
2316
+ rows: this.commonProps.dataSource,
2317
+ newRows: newDataSource
2318
+ });
2319
+ }
2320
+ this.resetTreeDragState();
2321
+ return;
2322
+ }
2323
+ if (this.currentInsertIndex === null) return;
2324
+ this.draggingBlock = { start: -1, end: -1 };
2325
+ this.requestUpdate();
2326
+ const rows = this.commonProps.tableInstance.getRowModel().rows;
2327
+ const fromIndex = evt.oldDraggableIndex;
2328
+ const toIndex = this.currentInsertIndex;
2329
+ const fromKey = this.commonProps.adapter.getRecordKey(rows[fromIndex].original);
2330
+ const newRows = [...rows.map((r2) => r2.original)];
2331
+ const { start, end } = this.getSelectedBlock(rows, fromIndex);
2332
+ if (start <= toIndex && toIndex <= end) {
2333
+ this.currentInsertIndex = null;
2334
+ return;
2335
+ }
2336
+ const block = newRows.splice(start, end - start + 1);
2337
+ const targetIndex = start < toIndex ? toIndex - block.length : toIndex;
2338
+ newRows.splice(targetIndex, 0, ...block);
2339
+ const toRow = rows[Math.min(toIndex, rows.length - 1)];
2340
+ const toKey = this.commonProps.adapter.getRecordKey(toRow.original);
2341
+ (_d = (_c = this.commonProps).slRowReorder) == null ? void 0 : _d.call(_c, {
2342
+ fromKey,
2343
+ toKey,
2344
+ rows: this.commonProps.dataSource,
2345
+ newRows
2346
+ });
2347
+ this.currentInsertIndex = null;
2348
+ this.cleanupDragImage();
2349
+ };
2350
+ this.handleChoose = (evt) => {
2351
+ const rows = this.commonProps.tableInstance.getRowModel().rows;
2352
+ const fromIndex = evt.oldDraggableIndex;
2353
+ if (this.isTreeMode()) {
2354
+ const dragRow = rows[fromIndex];
2355
+ if (dragRow) {
2356
+ this.draggingRowKey = this.commonProps.adapter.getRecordKey(dragRow.original);
2357
+ this.draggingKeys = /* @__PURE__ */ new Set([this.draggingRowKey]);
2358
+ this.collectSubRowKeys(dragRow, this.draggingKeys);
2359
+ const keyToCollapse = this.draggingRowKey;
2360
+ evt.item.addEventListener("dragstart", () => this.collapseForDrag(keyToCollapse), { once: true });
2361
+ }
2362
+ this.draggingBlock = { start: fromIndex, end: fromIndex };
2363
+ this.requestUpdate();
2364
+ return;
2365
+ }
2366
+ const { start, end } = this.getSelectedBlock(rows, fromIndex);
2367
+ this.draggingBlock = { start, end };
2368
+ this.requestUpdate();
2369
+ if (start === end) return;
2370
+ const dragImage = document.createElement("div");
2371
+ dragImage.textContent = `\u62D6\u52A8 ${end - start + 1} \u884C\u6570\u636E`;
2372
+ Object.assign(dragImage.style, {
2373
+ position: "fixed",
2374
+ padding: "10px 8px",
2375
+ color: "#212121",
2376
+ fontSize: "12px",
2377
+ background: "#FFFFFF",
2378
+ border: "1px solid rgba(217,217,217,1)",
2379
+ boxShadow: "0px 6px 16px 3px rgba(0,0,0,0.08)",
2380
+ borderRadius: "2px",
2381
+ lineHeight: "21px"
2382
+ });
2383
+ document.body.appendChild(dragImage);
2384
+ this.dragImageEl = dragImage;
2385
+ evt.item.addEventListener(
2386
+ "dragstart",
2387
+ (e3) => {
2388
+ var _a;
2389
+ return (_a = e3.dataTransfer) == null ? void 0 : _a.setDragImage(dragImage, 10, 10);
2390
+ },
2391
+ { once: true }
2392
+ );
2393
+ };
2394
+ // 未发生拖拽时清理,防止点击行但未拖拽时一直保持拖拽样式
2395
+ this.handleUnchoose = () => {
2396
+ var _a;
2397
+ this.draggingBlock = { start: -1, end: -1 };
2398
+ this.draggingKeys.clear();
2399
+ (_a = this.cleanupDragImage) == null ? void 0 : _a.call(this);
2400
+ this.requestUpdate();
2401
+ };
2402
+ this.renderTr = (row, styles = {}) => {
2403
+ var _b;
2404
+ const { rowSelectedMap, slRow, virtualized } = this.commonProps;
2405
+ const rowProps = (slRow == null ? void 0 : slRow(row.original, row.index)) || {};
2406
+ const _a = rowProps, { className, style: rowPropsStyle } = _a, rowRestProps = __objRest(_a, ["className", "style"]);
2407
+ const rowClassName = typeof className === "string" ? className : "";
2408
+ const rowKey = this.commonProps.adapter.getRecordKey(row.original);
2409
+ const isDragging = this.draggingKeys.size > 0 ? this.draggingKeys.has(rowKey) : this.draggingBlock && row.index >= this.draggingBlock.start && row.index <= this.draggingBlock.end;
2410
+ const rowClassMap = {
2411
+ "table-row": true,
2412
+ "table-row-selected": rowSelectedMap[row.id],
2413
+ "table-row-dragging": !!isDragging,
2414
+ [rowClassName]: true
2415
+ };
2416
+ const rowPropsStyleText = typeof rowPropsStyle === "string" ? rowPropsStyle : rowPropsStyle && typeof rowPropsStyle === "object" ? iterateStyles(rowPropsStyle) : void 0;
2417
+ const rowStyles = [rowPropsStyleText, iterateStyles(styles)].filter(Boolean).join(";") || "";
2418
+ return b`
2419
+ <tr
2420
+ class=${e(rowClassMap)}
2421
+ role="table-row"
2422
+ part="table-body-row"
2423
+ data-row-key=${this.commonProps.adapter.getRecordKey(row.original)}
2424
+ data-row-index=${row.index}
2425
+ @click=${this.expandRowByClick ? () => row.getCanExpand() && row.toggleExpanded() : null}
2426
+ style=${rowStyles}
2427
+ ${spread_default(rowRestProps)}
2428
+ >
2429
+ ${c(
2430
+ row.getVisibleCells(),
2431
+ (cell) => cell.id,
2432
+ (cell) => {
2433
+ var _a2, _b2, _c, _e, _f;
2434
+ const { column } = cell;
2435
+ const columnDef = column.columnDef;
2436
+ const align = (_a2 = columnDef.meta) == null ? void 0 : _a2.align;
2437
+ const cellProps = ((_c = (_b2 = columnDef.meta) == null ? void 0 : _b2.slCell) == null ? void 0 : _c.call(_b2, cell.row.original, row.index)) || {};
2438
+ const _d = cellProps, {
2439
+ className: cellClassName,
2440
+ style: cellStyle
2441
+ } = _d, cellRestProps = __objRest(_d, [
2442
+ "className",
2443
+ "style"
2444
+ ]);
2445
+ const cellClassNameValue = typeof cellClassName === "string" ? cellClassName : "";
2446
+ const { styles: pinningStyles, className: pinningClassName } = column.getIsPinned() ? getCommonPinningProps(column) : {};
2447
+ const cellClassMap = {
2448
+ "table-row-cell": true,
2449
+ [pinningClassName]: pinningClassName !== void 0
2450
+ };
2451
+ if ((_e = columnDef.meta) == null ? void 0 : _e.className) {
2452
+ cellClassMap[columnDef.meta.className] = true;
2453
+ }
2454
+ if (cellClassNameValue) {
2455
+ cellClassMap[cellClassNameValue] = true;
2456
+ }
2457
+ const cellStyleText = typeof cellStyle === "string" ? cellStyle : cellStyle && typeof cellStyle === "object" ? iterateStyles(cellStyle) : void 0;
2458
+ let cellStyleResult = [cellStyleText, pinningStyles].filter(Boolean).join(";");
2459
+ if (virtualized) {
2460
+ cellStyleResult += `;width: ${column.getSize()}px`;
2461
+ }
2462
+ return b` <td
2463
+ role="gridcell"
2464
+ part="table-body-cell"
2465
+ class="${e(cellClassMap)}"
2466
+ style=${cellStyleResult || ""}
2467
+ ${spread_default(cellRestProps)}
2468
+ >
2469
+ <div
2470
+ class="${e({
2471
+ "table-cell-content": true,
2472
+ "table-cell-ellipsis": !!((_f = columnDef.meta) == null ? void 0 : _f.ellipsis)
2473
+ })}"
2474
+ style=${o({
2475
+ "text-align": align || void 0
2476
+ })}
2477
+ >
2478
+ ${flexRender(columnDef.cell, cell.getContext())}
2479
+ </div>
2480
+ </td>`;
2481
+ }
2482
+ )}
2483
+ </tr>
2484
+ ${!this.commonProps.tree && ((_b = this.commonProps.expandProps) == null ? void 0 : _b.rowExpandable) && row.getIsExpanded() ? b`
2485
+ <tr class="table-row table-expand-row" part="table-body-row">
2486
+ <td colspan="${row.getVisibleCells().length}" class="table-row-cell" part="table-body-cell">
2487
+ <slot name="${CUSTOM_ROW}-${this.commonProps.adapter.getRecordKey(row.original)}"></slot>
2488
+ </td>
2489
+ </tr>
2490
+ ` : ""}
2491
+ `;
2492
+ };
2493
+ }
2494
+ // ===================== 获取树形数据相关信息 =====================
2495
+ getTreeConfig() {
2496
+ var _a, _b;
2497
+ const { tree } = this.commonProps;
2498
+ if (!tree) return null;
2499
+ if (typeof tree === "object") {
2500
+ const t = tree;
2501
+ return {
2502
+ childrenKey: (_a = t.childrenRecordName) != null ? _a : "children",
2503
+ indentSize: (_b = t.indentSize) != null ? _b : 16
2504
+ };
2505
+ }
2506
+ return { childrenKey: "children", indentSize: 16 };
2507
+ }
2508
+ isTreeMode() {
2509
+ return this.getTreeConfig() !== null;
2510
+ }
2511
+ /** 获取选中行所有子孙的 key */
2512
+ collectSubRowKeys(row, result) {
2513
+ const subRows = row.subRows;
2514
+ if (!(subRows == null ? void 0 : subRows.length)) return;
2515
+ for (const sub of subRows) {
2516
+ const key = this.commonProps.adapter.getRecordKey(sub.original);
2517
+ if (key) result.add(key);
2518
+ this.collectSubRowKeys(sub, result);
2519
+ }
2520
+ }
2521
+ /** 获取行的深度(depth)—— 通过 tanstack row 的 depth */
2522
+ getRowDepth(rowKey) {
2523
+ var _a;
2524
+ const allRows = this.commonProps.tableInstance.getRowModel().rows;
2525
+ const row = allRows.find((r2) => this.commonProps.adapter.getRecordKey(r2.original) === rowKey);
2526
+ return (_a = row == null ? void 0 : row.depth) != null ? _a : 0;
2527
+ }
2528
+ getSelectedBlock(rows, fromIndex) {
2529
+ const selected = this.commonProps.rowSelectedMap;
2530
+ if (!selected[rows[fromIndex].id]) {
2531
+ return { start: fromIndex, end: fromIndex };
2532
+ }
2533
+ let start = fromIndex;
2534
+ let end = fromIndex;
2535
+ while (start > 0 && selected[rows[start - 1].id]) {
2536
+ start--;
2537
+ }
2538
+ while (end < rows.length - 1 && selected[rows[end + 1].id]) {
2539
+ end++;
2540
+ }
2541
+ return { start, end };
2542
+ }
2543
+ // ===================== 指示线渲染 =====================
2544
+ /**
2545
+ * 获取指示线的 left 偏移
2546
+ * - 有展开箭头的行:对齐箭头左边 = contentDiv.left + padding-inline-start
2547
+ * - 无箭头的叶节点:对齐文字左边(取文字 span 左边)
2548
+ */
2549
+ getIndicatorLeft(targetRowEl, depth) {
2550
+ var _a;
2551
+ const cfg = this.getTreeConfig();
2552
+ const indentSize = (_a = cfg == null ? void 0 : cfg.indentSize) != null ? _a : 16;
2553
+ const tbody = this.tbodyRef.value;
2554
+ if (!tbody) return depth * indentSize;
2555
+ const tbodyRect = tbody.getBoundingClientRect();
2556
+ const contentDiv = targetRowEl.querySelector(".tree-cell-content");
2557
+ if (contentDiv) {
2558
+ const hasExpandIcon = !!contentDiv.querySelector(".row-expand-icon");
2559
+ if (hasExpandIcon) {
2560
+ const paddingLeft = parseFloat(getComputedStyle(contentDiv).paddingInlineStart) || 0;
2561
+ return contentDiv.getBoundingClientRect().left - tbodyRect.left + paddingLeft;
2562
+ }
2563
+ const textSpan = contentDiv.querySelector(".tree-cell-text");
2564
+ const refEl = textSpan != null ? textSpan : contentDiv;
2565
+ return refEl.getBoundingClientRect().left - tbodyRect.left;
2566
+ }
2567
+ return depth * indentSize;
2568
+ }
2569
+ renderIndicator() {
2570
+ const tbody = this.tbodyRef.value;
2571
+ if (!tbody) return "";
2572
+ const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
2573
+ if (!rows.length) return "";
2574
+ const isTree = this.isTreeMode();
2575
+ if (isTree && this.dropTarget) {
2576
+ const { rowIndex, position, depth } = this.dropTarget;
2577
+ const row2 = rows[rowIndex];
2578
+ if (!row2) return "";
2579
+ if (position === "inside") {
2580
+ return b`
2581
+ <div
2582
+ style="
2583
+ position:absolute;
2584
+ left:0;
2585
+ right:0;
2586
+ top:${row2.offsetTop}px;
2587
+ height:${row2.offsetHeight}px;
2588
+ border:2px solid #1677ff;
2589
+ border-radius:2px;
2590
+ pointer-events:none;
2591
+ z-index:10;
2592
+ box-sizing:border-box;
2593
+ "
2594
+ ></div>
2595
+ `;
2596
+ }
2597
+ const top2 = position === "before" ? row2.offsetTop : row2.offsetTop + row2.offsetHeight;
2598
+ const left = this.getIndicatorLeft(row2, depth);
2599
+ return b`
2600
+ <div
2601
+ style="
2602
+ position:absolute;
2603
+ left:${left}px;
2604
+ right:0;
2605
+ top:${top2}px;
2606
+ height:2px;
2607
+ background:#1677ff;
2608
+ pointer-events:none;
2609
+ z-index:10;
2610
+ "
2611
+ ></div>
2612
+ `;
2613
+ }
2614
+ if (this.currentInsertIndex === null) return "";
2615
+ const index2 = Math.min(this.currentInsertIndex, rows.length - 1);
2616
+ const row = rows[index2];
2617
+ const top = this.currentInsertIndex >= rows.length ? row.offsetTop + row.offsetHeight : row.offsetTop;
2618
+ return b`
2619
+ <div
2620
+ style="
2621
+ position:absolute;
2622
+ left:0;
2623
+ right:0;
2624
+ top:${top}px;
2625
+ height:2px;
2626
+ background:#1677ff;
2627
+ pointer-events:none;
2628
+ z-index:10;
2629
+ "
2630
+ ></div>
2631
+ `;
2632
+ }
2633
+ // ===================== 树数据拖拽 =====================
2634
+ /** 保存拖拽开始时的展开状态并收起子节点 */
2635
+ collapseForDrag(dragRowKey) {
2636
+ const tableInstance = this.commonProps.tableInstance;
2637
+ const rows = tableInstance.getRowModel().rows;
2638
+ const dragRow = rows.find((r2) => this.commonProps.adapter.getRecordKey(r2.original) === dragRowKey);
2639
+ if (!dragRow || !dragRow.getIsExpanded()) return;
2640
+ this.savedExpandedKeys = /* @__PURE__ */ new Set();
2641
+ const collectExpanded = (row) => {
2642
+ const key = this.commonProps.adapter.getRecordKey(row.original);
2643
+ if (row.getIsExpanded()) {
2644
+ this.savedExpandedKeys.add(key);
2645
+ }
2646
+ const subRows = row.subRows;
2647
+ if (subRows == null ? void 0 : subRows.length) {
2648
+ subRows.forEach(collectExpanded);
2649
+ }
2650
+ };
2651
+ collectExpanded(dragRow);
2652
+ dragRow.toggleExpanded(false);
2653
+ }
2654
+ /** 拖拽结束后恢复展开状态 */
2655
+ restoreExpandForDrag() {
2656
+ if (!this.savedExpandedKeys.size) return;
2657
+ const tableInstance = this.commonProps.tableInstance;
2658
+ const rows = tableInstance.getRowModel().rows;
2659
+ for (const key of this.savedExpandedKeys) {
2660
+ const row = rows.find((r2) => this.commonProps.adapter.getRecordKey(r2.original) === key);
2661
+ if (row && !row.getIsExpanded()) {
2662
+ row.toggleExpanded(true);
2663
+ }
2664
+ }
2665
+ this.savedExpandedKeys.clear();
2666
+ }
2667
+ /** 计算树型模式下的 drag 目标 */
2668
+ calcDragTarget(evt) {
2669
+ const tbody = this.tbodyRef.value;
2670
+ if (!tbody) return null;
2671
+ const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
2672
+ if (!rows.length) return null;
2673
+ const mouseY = evt.originalEvent.clientY;
2674
+ const firstRect = rows[0].getBoundingClientRect();
2675
+ const lastRect = rows[rows.length - 1].getBoundingClientRect();
2676
+ let targetRowEl = null;
2677
+ let rowIndex = -1;
2678
+ if (mouseY <= firstRect.top) {
2679
+ targetRowEl = rows[0];
2680
+ rowIndex = 0;
2681
+ } else if (mouseY >= lastRect.bottom) {
2682
+ targetRowEl = rows[rows.length - 1];
2683
+ rowIndex = rows.length - 1;
2684
+ } else {
2685
+ for (let i = 0; i < rows.length; i++) {
2686
+ const rect2 = rows[i].getBoundingClientRect();
2687
+ if (mouseY >= rect2.top && mouseY < rect2.bottom) {
2688
+ targetRowEl = rows[i];
2689
+ rowIndex = i;
2690
+ break;
2691
+ }
2692
+ }
2693
+ }
2694
+ if (!targetRowEl || rowIndex < 0) return null;
2695
+ const rect = targetRowEl.getBoundingClientRect();
2696
+ const offset = mouseY - rect.top;
2697
+ const rowHeight = rect.height;
2698
+ const targetRowKey = targetRowEl.dataset.rowKey;
2699
+ let position;
2700
+ if (offset < rowHeight * 0.35) {
2701
+ position = "before";
2702
+ } else if (offset > rowHeight * 0.65) {
2703
+ position = "after";
2704
+ } else {
2705
+ position = "inside";
2706
+ }
2707
+ const depth = this.getRowDepth(targetRowKey);
2708
+ return { rowIndex, position, rowKey: targetRowKey, depth };
2709
+ }
2710
+ // ===================== 树型数据重排 =====================
2711
+ /** 从树型数据中移除指定 key 的节点 */
2712
+ removeNodeFromTree(data, key, childrenKey) {
2713
+ var _a;
2714
+ let removed = null;
2715
+ const newData = [];
2716
+ for (const node of data) {
2717
+ if (this.commonProps.adapter.getRecordKey(node) === key) {
2718
+ removed = node;
2719
+ continue;
2720
+ }
2721
+ const children = (_a = node[childrenKey]) != null ? _a : [];
2722
+ if (children.length && !removed) {
2723
+ const result = this.removeNodeFromTree(children, key, childrenKey);
2724
+ if (result.removed) {
2725
+ removed = result.removed;
2726
+ newData.push(__spreadProps(__spreadValues({}, node), { [childrenKey]: result.newData }));
2727
+ continue;
2728
+ }
2729
+ }
2730
+ newData.push(node);
2731
+ }
2732
+ return { removed, newData };
2733
+ }
2734
+ /** 将节点插入树型数据中指定位置 */
2735
+ insertNodeToTree(data, nodeToInsert, targetKey, position, childrenKey) {
2736
+ return data.flatMap((node) => {
2737
+ var _a, _b;
2738
+ if (this.commonProps.adapter.getRecordKey(node) === targetKey) {
2739
+ if (position === "before") return [nodeToInsert, node];
2740
+ if (position === "after") return [node, nodeToInsert];
2741
+ return [__spreadProps(__spreadValues({}, node), { [childrenKey]: [...(_a = node[childrenKey]) != null ? _a : [], nodeToInsert] })];
2742
+ }
2743
+ const children = (_b = node[childrenKey]) != null ? _b : [];
2744
+ if (children.length) {
2745
+ return [__spreadProps(__spreadValues({}, node), { [childrenKey]: this.insertNodeToTree(children, nodeToInsert, targetKey, position, childrenKey) })];
2746
+ }
2747
+ return [node];
2748
+ });
2749
+ }
2750
+ /** 重置树形拖拽相关状态 */
2751
+ resetTreeDragState() {
2752
+ this.dropTarget = null;
2753
+ this.draggingBlock = { start: -1, end: -1 };
2754
+ this.draggingRowKey = null;
2755
+ this.draggingKeys.clear();
2756
+ this.requestUpdate();
2757
+ this.cleanupDragImage();
2758
+ }
2759
+ initSortable() {
2760
+ var _a, _b;
2761
+ const { rowDrag, virtualized } = this.commonProps;
2762
+ if (!rowDrag || virtualized) {
2763
+ (_a = this.sortable) == null ? void 0 : _a.destroy();
2764
+ this.sortable = void 0;
2765
+ return;
2766
+ }
2767
+ const el = this.tbodyRef.value;
2768
+ if (!el) return;
2769
+ (_b = this.sortable) == null ? void 0 : _b.destroy();
2770
+ this.sortable = sortable_esm_default.create(el, {
2771
+ animation: 0,
2772
+ draggable: "tr[data-row-key]",
2773
+ handle: ".row-drag-handle",
2774
+ onChoose: this.handleChoose,
2775
+ onMove: this.handleMove,
2776
+ onEnd: this.handleEnd,
2777
+ onUnchoose: this.handleUnchoose
2778
+ });
2779
+ }
2780
+ firstUpdated() {
2781
+ this.initSortable();
2782
+ }
2783
+ render() {
2784
+ var _a, _b, _c, _d, _e;
2785
+ const virtualizer = (_a = this.rowVirtualizerController) == null ? void 0 : _a.getVirtualizer();
2786
+ const { tableScroll, handleBodyScroll, bordered, tableInstance, virtualized, rowDrag } = this.commonProps;
2787
+ const { x, y } = tableScroll || {};
2788
+ const columnResizeable = tableInstance.getAllLeafColumns().some((c2) => c2.getCanResize());
2789
+ const style = {
2790
+ "max-width": x ? getTableRect(x) : "100%",
2791
+ "max-height": y ? getTableRect(y) : "100%",
2792
+ width: columnResizeable && `${tableInstance.getTotalSize()}px`
2793
+ };
2794
+ const { rows } = tableInstance.getRowModel();
2795
+ return b` <div
2796
+ style=${iterateStyles(style)}
2797
+ class="table-body"
2798
+ part="table-body"
2799
+ ${n2(this.bodyRef)}
2800
+ @scroll=${handleBodyScroll}
2801
+ >
2802
+ <table
2803
+ class="${e({
2804
+ table: true,
2805
+ "table-bordered": bordered,
2806
+ "table-fixed": !columnResizeable
2807
+ })}"
2808
+ style=${o({
2809
+ height: virtualized && y ? `${virtualizer == null ? void 0 : virtualizer.getTotalSize()}px` : "100%"
2810
+ })}
2811
+ >
2812
+ ${renderColGroup(tableInstance)}
2813
+ <tbody class="table-tbody" style="position: relative;" ${n2(this.tbodyRef)}>
2814
+ ${virtualized ? c(
2815
+ (_c = (_b = this.rowVirtualizerController) == null ? void 0 : _b.getVirtualizer().getVirtualItems()) != null ? _c : [],
2816
+ (item) => item.key,
2817
+ (item) => {
2818
+ const row = rows[item.index];
2819
+ return this.renderTr(row, {
2820
+ transform: `translateY(${item.start}px)`,
2821
+ position: "absolute",
2822
+ width: "100%"
2823
+ });
2824
+ }
2825
+ ) : c(
2826
+ rows,
2827
+ (row) => row.id,
2828
+ (row) => this.renderTr(row)
2829
+ )}
2830
+ ${rowDrag ? b`<tr class="table-bottom-placeholder" style="height: 2px;padding: 0;border: none;">
2831
+ <td colspan="${(_e = (_d = rows[0]) == null ? void 0 : _d.getVisibleCells().length) != null ? _e : 1}"></td>
2832
+ </tr>` : ""}
2833
+ ${this.renderIndicator()}
2834
+ </tbody>
2835
+ </table>
2836
+ ${this.emptyTemplate}
2837
+ </div>
2838
+ <style>
2839
+ .table-body {
2840
+ overflow: auto;
2841
+ width: 100%;
2842
+ box-sizing: border-box;
2843
+ direction: var(--sl-c-table-direction);
2844
+ }
2845
+ .table-row {
2846
+ display: table-row;
2847
+ }
2848
+ .table-row-dragging {
2849
+ opacity: 0.35;
2850
+ }
2851
+ .row-drag-handle {
2852
+ opacity: 0;
2853
+ visibility: hidden;
2854
+ pointer-events: none;
2855
+ transition: opacity 120ms ease-in-out;
2856
+ }
2857
+ .table-row:hover .row-drag-handle,
2858
+ .table-row.table-row-dragging .row-drag-handle {
2859
+ opacity: 1;
2860
+ visibility: visible;
2861
+ pointer-events: auto;
2862
+ }
2863
+ .table-row > .table-row-cell {
2864
+ height: var(--sl-table-cell-line-height);
2865
+ font-size: var(--sl-table-font-size);
2866
+ padding: 0 var(--sl-table-cell-padding);
2867
+ box-sizing: border-box;
2868
+ border-inline-start: none;
2869
+ border-inline-end: none;
2870
+ border-bottom: var(--sl-table-cell-border-width) solid var(--sl-table-cell-border);
2871
+ overflow-wrap: break-word;
2872
+ color: var(--sl-table-cell-color);
2873
+ background-color: var(--sl-table-cell-background);
2874
+ vertical-align: middle;
2875
+ }
2876
+ .table-row.table-expand-row > .table-row-cell {
2877
+ background-color: var(--sl-table-expand-row-background);
2878
+ }
2879
+ .table-row:hover > .table-row-cell {
2880
+ background: var(--sl-table-row-background-hover);
2881
+ }
2882
+ :where(.table.table-bordered) > tbody.table-tbody > tr.table-row > td.table-row-cell {
2883
+ border-inline-end: var(--sl-table-cell-border-width) solid var(--sl-table-cell-border);
2884
+ }
2885
+ .table-row.table-row-selected > .table-row-cell {
2886
+ background-color: var(--sl-table-row-background-active);
2887
+ }
2888
+ .table-row.table-row-selected:hover > .table-row-cell {
2889
+ background-color: hsl(212.29999999999995, 100%, 95.5%);
2890
+ }
2891
+ .row-expand-icon:hover {
2892
+ color: #5582f3;
2893
+ }
2894
+ .table-placeholder {
2895
+ position: sticky;
2896
+ left: 0;
2897
+ z-index: 1;
2898
+ padding: var(--sl-table-default-text-margin-vertical);
2899
+ color: var(--semi-color-text-2);
2900
+ font-size: 14px;
2901
+ text-align: center;
2902
+ background: transparent;
2903
+ color: var(--sl-table-default-text-color);
2904
+ border-bottom: var(--sl-table-cell-border-width) solid var(--sl-table-cell-border);
2905
+ border-inline-start: none;
2906
+ }
2907
+ .table-cell-content {
2908
+ line-height: var(--sl-line-height-dense);
2909
+ word-break: break-word;
2910
+ }
2911
+ </style>`;
2912
+ }
2913
+ };
2914
+ BodyTable.styles = [tableCommonCss];
2915
+ __decorateClass([
2916
+ n({ type: Object })
2917
+ ], BodyTable.prototype, "bodyRef", 2);
2918
+ __decorateClass([
2919
+ n({ type: Function })
2920
+ ], BodyTable.prototype, "emptyTemplate", 2);
2921
+ __decorateClass([
2922
+ n({ type: Object })
2923
+ ], BodyTable.prototype, "commonProps", 2);
2924
+ __decorateClass([
2925
+ n({ type: Boolean })
2926
+ ], BodyTable.prototype, "expandRowByClick", 2);
2927
+ __decorateClass([
2928
+ n({ type: Object })
2929
+ ], BodyTable.prototype, "rowVirtualizerController", 2);
2930
+ __decorateClass([
2931
+ r()
2932
+ ], BodyTable.prototype, "currentInsertIndex", 2);
2933
+ __decorateClass([
2934
+ r()
2935
+ ], BodyTable.prototype, "draggingBlock", 2);
2936
+ __decorateClass([
2937
+ r()
2938
+ ], BodyTable.prototype, "dropTarget", 2);
2939
+ BodyTable.define("sl-table-body-table");
2940
+
2941
+ export {
2942
+ BodyTable
2943
+ };
2944
+ /*! Bundled license information:
2945
+
2946
+ sortablejs/modular/sortable.esm.js:
2947
+ (**!
2948
+ * Sortable 1.15.7
2949
+ * @author RubaXa <trash@rubaxa.org>
2950
+ * @author owenm <owen23355@gmail.com>
2951
+ * @license MIT
2952
+ *)
2953
+ */