@oiz/stzh-components 2.11.0-beta1 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (671) hide show
  1. package/dist/cjs/{app-globals-5b6fc14f.js → app-globals-909813e1.js} +2 -2
  2. package/dist/cjs/{app-globals-5b6fc14f.js.map → app-globals-909813e1.js.map} +1 -1
  3. package/dist/cjs/index.cjs.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  6. package/dist/cjs/stzh-actionset_4.cjs.entry.js +3 -3
  7. package/dist/cjs/stzh-actionset_4.cjs.entry.js.map +1 -1
  8. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-badge_3.cjs.entry.js +3 -3
  11. package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
  12. package/dist/cjs/stzh-carousel.cjs.entry.js +4 -3
  13. package/dist/cjs/stzh-carousel.cjs.entry.js.map +1 -1
  14. package/dist/cjs/stzh-cell.cjs.entry.js +4 -4
  15. package/dist/cjs/stzh-cell.cjs.entry.js.map +1 -1
  16. package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-chip_2.cjs.entry.js +8 -1
  19. package/dist/cjs/stzh-chip_2.cjs.entry.js.map +1 -1
  20. package/dist/cjs/stzh-components.cjs.js +2 -2
  21. package/dist/cjs/stzh-contact.cjs.entry.js +7 -4
  22. package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
  23. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
  25. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
  29. package/dist/cjs/{stzh-ratio.cjs.entry.js → stzh-figure_2.cjs.entry.js} +33 -1
  30. package/dist/cjs/stzh-figure_2.cjs.entry.js.map +1 -0
  31. package/dist/cjs/stzh-footer.cjs.entry.js +22 -6
  32. package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
  33. package/dist/cjs/stzh-gallery.cjs.entry.js +9733 -0
  34. package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -0
  35. package/dist/cjs/stzh-ghettobox.cjs.entry.js +1 -1
  36. package/dist/cjs/stzh-header.cjs.entry.js +3 -6
  37. package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
  38. package/dist/cjs/{stzh-hspace.cjs.entry.js → stzh-hspace_2.cjs.entry.js} +41 -6
  39. package/dist/cjs/stzh-hspace_2.cjs.entry.js.map +1 -0
  40. package/dist/cjs/stzh-imagecomparison.cjs.entry.js +0 -2
  41. package/dist/cjs/stzh-imagecomparison.cjs.entry.js.map +1 -1
  42. package/dist/cjs/stzh-input.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-link.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-logo.cjs.entry.js +671 -0
  45. package/dist/cjs/stzh-logo.cjs.entry.js.map +1 -0
  46. package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
  48. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
  49. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  50. package/dist/cjs/stzh-panorama.cjs.entry.js +3 -2
  51. package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
  52. package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
  53. package/dist/cjs/stzh-print.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +2 -1
  55. package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
  56. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  57. package/dist/cjs/stzh-row.cjs.entry.js +4 -4
  58. package/dist/cjs/stzh-row.cjs.entry.js.map +1 -1
  59. package/dist/cjs/stzh-scrollup.cjs.entry.js +1 -1
  60. package/dist/cjs/stzh-share.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-space.cjs.entry.js +5 -5
  62. package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
  63. package/dist/cjs/stzh-sticky.cjs.entry.js +166 -15
  64. package/dist/cjs/stzh-sticky.cjs.entry.js.map +1 -1
  65. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  66. package/dist/cjs/stzh-text.cjs.entry.js +1 -1
  67. package/dist/cjs/stzh-text.cjs.entry.js.map +1 -1
  68. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  69. package/dist/cjs/stzh-timeline-item.cjs.entry.js +1 -1
  70. package/dist/cjs/stzh-toast.cjs.entry.js +1 -1
  71. package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
  72. package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
  73. package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-vspace.cjs.entry.js +5 -5
  75. package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
  76. package/dist/cjs/{utils-77bc0ea1.js → utils-01c0bbdd.js} +25 -1
  77. package/dist/cjs/utils-01c0bbdd.js.map +1 -0
  78. package/dist/collection/assets/i18n/de.json +19 -10
  79. package/dist/collection/assets/i18n/en.json +19 -10
  80. package/dist/collection/collection-manifest.json +2 -0
  81. package/dist/collection/components/stzh-button/stzh-button.css +4 -0
  82. package/dist/collection/components/stzh-button/stzh-button.js +3 -3
  83. package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
  84. package/dist/collection/components/stzh-card/stzh-card.css +1 -0
  85. package/dist/collection/components/stzh-card-list/stzh-card-list.css +27 -38
  86. package/dist/collection/components/stzh-carousel/stzh-carousel.css +3 -0
  87. package/dist/collection/components/stzh-carousel/stzh-carousel.js +2 -1
  88. package/dist/collection/components/stzh-carousel/stzh-carousel.js.map +1 -1
  89. package/dist/collection/components/stzh-cell/stzh-cell.js +9 -13
  90. package/dist/collection/components/stzh-cell/stzh-cell.js.map +1 -1
  91. package/dist/collection/components/stzh-clamp/stzh-clamp.js +9 -2
  92. package/dist/collection/components/stzh-clamp/stzh-clamp.js.map +1 -1
  93. package/dist/collection/components/stzh-contact/stzh-contact.js +25 -3
  94. package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
  95. package/dist/collection/components/stzh-cspace/stzh-cspace.css +5 -0
  96. package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +1 -1
  97. package/dist/collection/components/stzh-figure/stzh-figure.css +5 -0
  98. package/dist/collection/components/stzh-footer/stzh-footer.css +1 -7
  99. package/dist/collection/components/stzh-footer/stzh-footer.js +21 -5
  100. package/dist/collection/components/stzh-footer/stzh-footer.js.map +1 -1
  101. package/dist/collection/components/stzh-footer/stzh-footer.stories.js +2 -2
  102. package/dist/collection/components/stzh-gallery/assets/angle-left.svg +3 -0
  103. package/dist/collection/components/stzh-gallery/assets/angle-right.svg +3 -0
  104. package/dist/collection/components/stzh-gallery/assets/close.svg +3 -0
  105. package/dist/collection/components/stzh-gallery/stzh-gallery.css +839 -0
  106. package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js +22 -0
  107. package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js.map +1 -0
  108. package/dist/collection/components/stzh-gallery/stzh-gallery.js +410 -0
  109. package/dist/collection/components/stzh-gallery/stzh-gallery.js.map +1 -0
  110. package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js +2 -0
  111. package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js.map +1 -0
  112. package/dist/collection/components/stzh-gallery/stzh-gallery.stories.js +163 -0
  113. package/dist/collection/components/stzh-header/stzh-header.css +19 -1
  114. package/dist/collection/components/stzh-header/stzh-header.js +1 -4
  115. package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
  116. package/dist/collection/components/stzh-header/stzh-header.stories.js +5 -3
  117. package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
  118. package/dist/collection/components/stzh-hspace/stzh-hspace.js +13 -18
  119. package/dist/collection/components/stzh-hspace/stzh-hspace.js.map +1 -1
  120. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js +0 -38
  121. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js.map +1 -1
  122. package/dist/collection/components/stzh-logo/assets/aoz.svg +15 -0
  123. package/dist/collection/components/stzh-logo/assets/pkzh.svg +207 -0
  124. package/dist/collection/components/stzh-logo/assets/stzh-default.svg +166 -0
  125. package/dist/collection/components/stzh-logo/assets/uvz.svg +85 -0
  126. package/dist/collection/components/stzh-logo/assets/vbz.svg +147 -0
  127. package/dist/collection/components/stzh-logo/stzh-logo.css +134 -0
  128. package/dist/collection/components/stzh-logo/stzh-logo.e2e.js +19 -0
  129. package/dist/collection/components/stzh-logo/stzh-logo.e2e.js.map +1 -0
  130. package/dist/collection/components/stzh-logo/stzh-logo.js +72 -0
  131. package/dist/collection/components/stzh-logo/stzh-logo.js.map +1 -0
  132. package/dist/collection/components/stzh-logo/stzh-logo.stories.js +51 -0
  133. package/dist/collection/components/stzh-panorama/stzh-panorama.js +21 -2
  134. package/dist/collection/components/stzh-panorama/stzh-panorama.js.map +1 -1
  135. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +3 -2
  136. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
  137. package/dist/collection/components/stzh-row/stzh-row.js +9 -13
  138. package/dist/collection/components/stzh-row/stzh-row.js.map +1 -1
  139. package/dist/collection/components/stzh-show/stzh-show.js +5 -5
  140. package/dist/collection/components/stzh-show/stzh-show.js.map +1 -1
  141. package/dist/collection/components/stzh-space/stzh-space.js +13 -18
  142. package/dist/collection/components/stzh-space/stzh-space.js.map +1 -1
  143. package/dist/collection/components/stzh-sticky/stzh-sticky.css +28 -17
  144. package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js +1 -0
  145. package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js.map +1 -1
  146. package/dist/collection/components/stzh-sticky/stzh-sticky.js +186 -14
  147. package/dist/collection/components/stzh-sticky/stzh-sticky.js.map +1 -1
  148. package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +88 -44
  149. package/dist/collection/components/stzh-text/stzh-text.css +19 -0
  150. package/dist/collection/components/stzh-text/stzh-text.js +1 -1
  151. package/dist/collection/components/stzh-vspace/stzh-vspace.js +13 -18
  152. package/dist/collection/components/stzh-vspace/stzh-vspace.js.map +1 -1
  153. package/dist/collection/index.js.map +1 -1
  154. package/dist/collection/patterns/media/media.e2e.js +3 -1
  155. package/dist/collection/patterns/media/media.e2e.js.map +1 -1
  156. package/dist/collection/patterns/subpages/subpages.e2e.js +1 -0
  157. package/dist/collection/patterns/subpages/subpages.e2e.js.map +1 -1
  158. package/dist/collection/utils/utils.js +22 -0
  159. package/dist/collection/utils/utils.js.map +1 -1
  160. package/dist/components/index.js +1 -1
  161. package/dist/components/index2.js.map +1 -1
  162. package/dist/components/stzh-button2.js +2 -2
  163. package/dist/components/stzh-button2.js.map +1 -1
  164. package/dist/components/stzh-card-list2.js +1 -1
  165. package/dist/components/stzh-card-list2.js.map +1 -1
  166. package/dist/components/stzh-card2.js +1 -1
  167. package/dist/components/stzh-card2.js.map +1 -1
  168. package/dist/components/stzh-carousel2.js +3 -2
  169. package/dist/components/stzh-carousel2.js.map +1 -1
  170. package/dist/components/stzh-cell.js +9 -9
  171. package/dist/components/stzh-cell.js.map +1 -1
  172. package/dist/components/stzh-clamp2.js +8 -1
  173. package/dist/components/stzh-clamp2.js.map +1 -1
  174. package/dist/components/stzh-contact.js +7 -3
  175. package/dist/components/stzh-contact.js.map +1 -1
  176. package/dist/components/stzh-cspace.js +1 -1
  177. package/dist/components/stzh-cspace.js.map +1 -1
  178. package/dist/components/stzh-figure2.js +1 -1
  179. package/dist/components/stzh-figure2.js.map +1 -1
  180. package/dist/components/stzh-footer.js +21 -5
  181. package/dist/components/stzh-footer.js.map +1 -1
  182. package/dist/components/stzh-gallery.d.ts +11 -0
  183. package/dist/components/stzh-gallery.js +9808 -0
  184. package/dist/components/stzh-gallery.js.map +1 -0
  185. package/dist/components/stzh-header.js +2 -5
  186. package/dist/components/stzh-header.js.map +1 -1
  187. package/dist/components/stzh-hspace.js +1 -57
  188. package/dist/components/stzh-hspace.js.map +1 -1
  189. package/dist/{esm/stzh-hspace.entry.js → components/stzh-hspace2.js} +41 -13
  190. package/dist/components/stzh-hspace2.js.map +1 -0
  191. package/dist/components/stzh-imagecomparison.js +0 -4
  192. package/dist/components/stzh-imagecomparison.js.map +1 -1
  193. package/dist/components/stzh-logo.d.ts +11 -0
  194. package/dist/components/stzh-logo.js +687 -0
  195. package/dist/components/stzh-logo.js.map +1 -0
  196. package/dist/components/stzh-panorama.js +4 -2
  197. package/dist/components/stzh-panorama.js.map +1 -1
  198. package/dist/components/stzh-progressbar-item2.js +2 -1
  199. package/dist/components/stzh-progressbar-item2.js.map +1 -1
  200. package/dist/components/stzh-row.js +9 -9
  201. package/dist/components/stzh-row.js.map +1 -1
  202. package/dist/components/stzh-show.js +1 -59
  203. package/dist/components/stzh-show.js.map +1 -1
  204. package/dist/{esm/stzh-show.entry.js → components/stzh-show2.js} +34 -10
  205. package/dist/components/stzh-show2.js.map +1 -0
  206. package/dist/components/stzh-space.js +13 -13
  207. package/dist/components/stzh-space.js.map +1 -1
  208. package/dist/components/stzh-sticky.js +171 -17
  209. package/dist/components/stzh-sticky.js.map +1 -1
  210. package/dist/components/stzh-text2.js +1 -1
  211. package/dist/components/stzh-text2.js.map +1 -1
  212. package/dist/components/stzh-vbz-majorticker.js +1 -1
  213. package/dist/components/stzh-vspace.js +13 -13
  214. package/dist/components/stzh-vspace.js.map +1 -1
  215. package/dist/components/utils.js +23 -1
  216. package/dist/components/utils.js.map +1 -1
  217. package/dist/esm/{app-globals-2df573fd.js → app-globals-8bdc0f78.js} +2 -2
  218. package/dist/esm/{app-globals-2df573fd.js.map → app-globals-8bdc0f78.js.map} +1 -1
  219. package/dist/esm/index.js.map +1 -1
  220. package/dist/esm/loader.js +2 -2
  221. package/dist/esm/stzh-actions.entry.js +1 -1
  222. package/dist/esm/stzh-actionset_4.entry.js +3 -3
  223. package/dist/esm/stzh-actionset_4.entry.js.map +1 -1
  224. package/dist/esm/stzh-appnav.entry.js +1 -1
  225. package/dist/esm/stzh-audio.entry.js +1 -1
  226. package/dist/esm/stzh-badge_3.entry.js +3 -3
  227. package/dist/esm/stzh-badge_3.entry.js.map +1 -1
  228. package/dist/esm/stzh-carousel.entry.js +4 -3
  229. package/dist/esm/stzh-carousel.entry.js.map +1 -1
  230. package/dist/esm/stzh-cell.entry.js +4 -4
  231. package/dist/esm/stzh-cell.entry.js.map +1 -1
  232. package/dist/esm/stzh-checkbox.entry.js +1 -1
  233. package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
  234. package/dist/esm/stzh-chip_2.entry.js +8 -1
  235. package/dist/esm/stzh-chip_2.entry.js.map +1 -1
  236. package/dist/esm/stzh-components.js +2 -2
  237. package/dist/esm/stzh-contact.entry.js +7 -4
  238. package/dist/esm/stzh-contact.entry.js.map +1 -1
  239. package/dist/esm/stzh-cspace.entry.js +1 -1
  240. package/dist/esm/stzh-cspace.entry.js.map +1 -1
  241. package/dist/esm/stzh-datepicker_3.entry.js +1 -1
  242. package/dist/esm/stzh-details.entry.js +1 -1
  243. package/dist/esm/stzh-dialog.entry.js +1 -1
  244. package/dist/esm/stzh-dropdown.entry.js +1 -1
  245. package/dist/esm/{stzh-ratio.entry.js → stzh-figure_2.entry.js} +33 -2
  246. package/dist/esm/stzh-figure_2.entry.js.map +1 -0
  247. package/dist/esm/stzh-footer.entry.js +22 -6
  248. package/dist/esm/stzh-footer.entry.js.map +1 -1
  249. package/dist/esm/stzh-gallery.entry.js +9729 -0
  250. package/dist/esm/stzh-gallery.entry.js.map +1 -0
  251. package/dist/esm/stzh-ghettobox.entry.js +1 -1
  252. package/dist/esm/stzh-header.entry.js +3 -6
  253. package/dist/esm/stzh-header.entry.js.map +1 -1
  254. package/dist/esm/stzh-hspace_2.entry.js +67 -0
  255. package/dist/esm/stzh-hspace_2.entry.js.map +1 -0
  256. package/dist/esm/stzh-imagecomparison.entry.js +0 -2
  257. package/dist/esm/stzh-imagecomparison.entry.js.map +1 -1
  258. package/dist/esm/stzh-input.entry.js +1 -1
  259. package/dist/esm/stzh-link.entry.js +1 -1
  260. package/dist/esm/stzh-logo.entry.js +667 -0
  261. package/dist/esm/stzh-logo.entry.js.map +1 -0
  262. package/dist/esm/stzh-menu_2.entry.js +1 -1
  263. package/dist/esm/stzh-pagebottom.entry.js +1 -1
  264. package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
  265. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  266. package/dist/esm/stzh-panorama.entry.js +3 -2
  267. package/dist/esm/stzh-panorama.entry.js.map +1 -1
  268. package/dist/esm/stzh-popover.entry.js +1 -1
  269. package/dist/esm/stzh-print.entry.js +1 -1
  270. package/dist/esm/stzh-progressbar-item.entry.js +2 -1
  271. package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
  272. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  273. package/dist/esm/stzh-row.entry.js +4 -4
  274. package/dist/esm/stzh-row.entry.js.map +1 -1
  275. package/dist/esm/stzh-scrollup.entry.js +1 -1
  276. package/dist/esm/stzh-share.entry.js +1 -1
  277. package/dist/esm/stzh-space.entry.js +5 -5
  278. package/dist/esm/stzh-space.entry.js.map +1 -1
  279. package/dist/esm/stzh-sticky.entry.js +166 -15
  280. package/dist/esm/stzh-sticky.entry.js.map +1 -1
  281. package/dist/esm/stzh-table.entry.js +1 -1
  282. package/dist/esm/stzh-text.entry.js +1 -1
  283. package/dist/esm/stzh-text.entry.js.map +1 -1
  284. package/dist/esm/stzh-textandimage.entry.js +1 -1
  285. package/dist/esm/stzh-timeline-item.entry.js +1 -1
  286. package/dist/esm/stzh-toast.entry.js +1 -1
  287. package/dist/esm/stzh-toggle.entry.js +1 -1
  288. package/dist/esm/stzh-tooltip.entry.js +1 -1
  289. package/dist/esm/stzh-upload.entry.js +1 -1
  290. package/dist/esm/stzh-vspace.entry.js +5 -5
  291. package/dist/esm/stzh-vspace.entry.js.map +1 -1
  292. package/dist/esm/{utils-107fad0f.js → utils-8bb4c3c6.js} +24 -2
  293. package/dist/esm/utils-8bb4c3c6.js.map +1 -0
  294. package/dist/esm-es5/{app-globals-2df573fd.js → app-globals-8bdc0f78.js} +2 -2
  295. package/dist/esm-es5/{app-globals-2df573fd.js.map → app-globals-8bdc0f78.js.map} +1 -1
  296. package/dist/esm-es5/index.js.map +1 -1
  297. package/dist/esm-es5/loader.js +1 -1
  298. package/dist/esm-es5/loader.js.map +1 -1
  299. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  300. package/dist/esm-es5/stzh-actionset_4.entry.js +2 -2
  301. package/dist/esm-es5/stzh-actionset_4.entry.js.map +1 -1
  302. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  303. package/dist/esm-es5/stzh-audio.entry.js +1 -1
  304. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  305. package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
  306. package/dist/esm-es5/stzh-carousel.entry.js +1 -1
  307. package/dist/esm-es5/stzh-carousel.entry.js.map +1 -1
  308. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  309. package/dist/esm-es5/stzh-cell.entry.js.map +1 -1
  310. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  311. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  312. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  313. package/dist/esm-es5/stzh-chip_2.entry.js.map +1 -1
  314. package/dist/esm-es5/stzh-components.js +1 -1
  315. package/dist/esm-es5/stzh-components.js.map +1 -1
  316. package/dist/esm-es5/stzh-contact.entry.js +1 -1
  317. package/dist/esm-es5/stzh-contact.entry.js.map +1 -1
  318. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  319. package/dist/esm-es5/stzh-cspace.entry.js.map +1 -1
  320. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  321. package/dist/esm-es5/stzh-details.entry.js +1 -1
  322. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  323. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  324. package/dist/esm-es5/stzh-figure_2.entry.js +2 -0
  325. package/dist/esm-es5/stzh-figure_2.entry.js.map +1 -0
  326. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  327. package/dist/esm-es5/stzh-footer.entry.js.map +1 -1
  328. package/dist/esm-es5/stzh-gallery.entry.js +10 -0
  329. package/dist/esm-es5/stzh-gallery.entry.js.map +1 -0
  330. package/dist/esm-es5/stzh-ghettobox.entry.js +1 -1
  331. package/dist/esm-es5/stzh-header.entry.js +1 -1
  332. package/dist/esm-es5/stzh-header.entry.js.map +1 -1
  333. package/dist/esm-es5/stzh-hspace_2.entry.js +2 -0
  334. package/dist/esm-es5/stzh-hspace_2.entry.js.map +1 -0
  335. package/dist/esm-es5/stzh-imagecomparison.entry.js +1 -1
  336. package/dist/esm-es5/stzh-imagecomparison.entry.js.map +1 -1
  337. package/dist/esm-es5/stzh-input.entry.js +1 -1
  338. package/dist/esm-es5/stzh-link.entry.js +1 -1
  339. package/dist/esm-es5/stzh-logo.entry.js +2 -0
  340. package/dist/esm-es5/stzh-logo.entry.js.map +1 -0
  341. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  342. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  343. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  344. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  345. package/dist/esm-es5/stzh-panorama.entry.js +1 -1
  346. package/dist/esm-es5/stzh-panorama.entry.js.map +1 -1
  347. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  348. package/dist/esm-es5/stzh-print.entry.js +1 -1
  349. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  350. package/dist/esm-es5/stzh-progressbar-item.entry.js.map +1 -1
  351. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  352. package/dist/esm-es5/stzh-row.entry.js +1 -1
  353. package/dist/esm-es5/stzh-row.entry.js.map +1 -1
  354. package/dist/esm-es5/stzh-scrollup.entry.js +1 -1
  355. package/dist/esm-es5/stzh-share.entry.js +1 -1
  356. package/dist/esm-es5/stzh-space.entry.js +1 -1
  357. package/dist/esm-es5/stzh-space.entry.js.map +1 -1
  358. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  359. package/dist/esm-es5/stzh-sticky.entry.js.map +1 -1
  360. package/dist/esm-es5/stzh-table.entry.js +1 -1
  361. package/dist/esm-es5/stzh-text.entry.js +1 -1
  362. package/dist/esm-es5/stzh-text.entry.js.map +1 -1
  363. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  364. package/dist/esm-es5/stzh-timeline-item.entry.js +1 -1
  365. package/dist/esm-es5/stzh-toast.entry.js +1 -1
  366. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  367. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  368. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  369. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  370. package/dist/esm-es5/stzh-vspace.entry.js.map +1 -1
  371. package/dist/esm-es5/utils-8bb4c3c6.js +2 -0
  372. package/dist/esm-es5/utils-8bb4c3c6.js.map +1 -0
  373. package/dist/stzh-components/assets/i18n/de.json +19 -10
  374. package/dist/stzh-components/assets/i18n/en.json +19 -10
  375. package/dist/stzh-components/index.esm.js.map +1 -1
  376. package/dist/stzh-components/{p-a509436d.entry.js → p-0164f9d1.entry.js} +2 -2
  377. package/dist/stzh-components/p-0164f9d1.entry.js.map +1 -0
  378. package/dist/stzh-components/{p-1f1910e4.system.entry.js → p-0684cfac.system.entry.js} +2 -2
  379. package/dist/stzh-components/{p-1f1910e4.system.entry.js.map → p-0684cfac.system.entry.js.map} +1 -1
  380. package/dist/stzh-components/p-07819ba5.entry.js +2 -0
  381. package/dist/stzh-components/p-07819ba5.entry.js.map +1 -0
  382. package/dist/stzh-components/{p-6b9365fe.system.entry.js → p-0b4cba00.system.entry.js} +2 -2
  383. package/dist/stzh-components/{p-b1fbe1d1.system.entry.js → p-0b8a15cc.system.entry.js} +2 -2
  384. package/dist/stzh-components/p-0bb08043.system.js.map +1 -1
  385. package/dist/stzh-components/p-0c049996.system.entry.js +2 -0
  386. package/dist/stzh-components/p-0c049996.system.entry.js.map +1 -0
  387. package/dist/stzh-components/{p-9bd8613c.system.entry.js → p-0c2381f6.system.entry.js} +2 -2
  388. package/dist/stzh-components/{p-1e7376c9.system.js → p-0c972915.system.js} +2 -2
  389. package/dist/stzh-components/{p-1e7376c9.system.js.map → p-0c972915.system.js.map} +1 -1
  390. package/dist/stzh-components/p-0d9aa70c.entry.js +2 -0
  391. package/dist/stzh-components/p-0d9aa70c.entry.js.map +1 -0
  392. package/dist/stzh-components/{p-55a00af2.entry.js → p-10361297.entry.js} +2 -2
  393. package/dist/stzh-components/p-1095d872.system.entry.js +2 -0
  394. package/dist/stzh-components/p-1095d872.system.entry.js.map +1 -0
  395. package/dist/stzh-components/{p-26f37848.entry.js → p-11031613.entry.js} +2 -2
  396. package/dist/stzh-components/{p-062360a4.system.entry.js → p-153f8f3f.system.entry.js} +2 -2
  397. package/dist/stzh-components/p-15980af0.entry.js +10 -0
  398. package/dist/stzh-components/p-15980af0.entry.js.map +1 -0
  399. package/dist/stzh-components/{p-fbf4ee43.system.entry.js → p-1834deba.system.entry.js} +2 -2
  400. package/dist/stzh-components/{p-c1fa2872.system.entry.js → p-188dd49d.system.entry.js} +2 -2
  401. package/dist/stzh-components/{p-68e15c10.system.entry.js → p-1a49012e.system.entry.js} +2 -2
  402. package/dist/stzh-components/{p-2565c905.entry.js → p-1c9eee3d.entry.js} +2 -2
  403. package/dist/stzh-components/{p-badd636f.system.entry.js → p-24c0e33a.system.entry.js} +2 -2
  404. package/dist/stzh-components/{p-badd636f.system.entry.js.map → p-24c0e33a.system.entry.js.map} +1 -1
  405. package/dist/stzh-components/p-2547ec12.system.entry.js +2 -0
  406. package/dist/stzh-components/p-2547ec12.system.entry.js.map +1 -0
  407. package/dist/stzh-components/p-287edde1.system.entry.js +2 -0
  408. package/dist/stzh-components/p-287edde1.system.entry.js.map +1 -0
  409. package/dist/stzh-components/p-2a3fdd90.system.entry.js +2 -0
  410. package/dist/stzh-components/p-2a3fdd90.system.entry.js.map +1 -0
  411. package/dist/stzh-components/{p-af5151b6.entry.js → p-2abcca01.entry.js} +2 -2
  412. package/dist/stzh-components/p-2abcca01.entry.js.map +1 -0
  413. package/dist/stzh-components/{p-97b0b868.system.entry.js → p-2ff7c5db.system.entry.js} +2 -2
  414. package/dist/stzh-components/{p-e0e5d06f.system.entry.js → p-3154e4da.system.entry.js} +2 -2
  415. package/dist/stzh-components/{p-754f37ee.entry.js → p-34add4af.entry.js} +2 -2
  416. package/dist/stzh-components/{p-b28e5fd4.system.entry.js → p-34ff6606.system.entry.js} +2 -2
  417. package/dist/stzh-components/{p-46ccadd5.system.entry.js → p-3ab3a5a7.system.entry.js} +2 -2
  418. package/dist/stzh-components/{p-dd43141d.system.entry.js → p-3ceef7dd.system.entry.js} +2 -2
  419. package/dist/stzh-components/p-3df3f45c.entry.js +2 -0
  420. package/dist/stzh-components/p-3df3f45c.entry.js.map +1 -0
  421. package/dist/stzh-components/p-428eacce.system.js +2 -0
  422. package/dist/stzh-components/{p-044b80d8.system.js.map → p-428eacce.system.js.map} +1 -1
  423. package/dist/stzh-components/{p-e42dbd26.system.entry.js → p-42e25ae1.system.entry.js} +3 -3
  424. package/dist/stzh-components/p-42e25ae1.system.entry.js.map +1 -0
  425. package/dist/stzh-components/{p-38ebb72d.system.entry.js → p-42f483f6.system.entry.js} +2 -2
  426. package/dist/stzh-components/{p-508f6d3d.entry.js → p-488c5c8a.entry.js} +2 -2
  427. package/dist/stzh-components/{p-a5b55401.entry.js → p-4ad49ece.entry.js} +2 -2
  428. package/dist/stzh-components/{p-f8b5c7a8.entry.js → p-4c091b1b.entry.js} +2 -2
  429. package/dist/stzh-components/{p-66965853.entry.js → p-4cb041d5.entry.js} +2 -2
  430. package/dist/stzh-components/{p-9a22e78f.system.entry.js → p-509f90d0.system.entry.js} +2 -2
  431. package/dist/stzh-components/p-509f90d0.system.entry.js.map +1 -0
  432. package/dist/stzh-components/{p-ff2029b6.entry.js → p-5342d3ae.entry.js} +2 -2
  433. package/dist/stzh-components/{p-ff2029b6.entry.js.map → p-5342d3ae.entry.js.map} +1 -1
  434. package/dist/stzh-components/{p-243f3d8c.system.entry.js → p-54a1fdcc.system.entry.js} +2 -2
  435. package/dist/stzh-components/p-54dbcd0e.system.entry.js +11 -0
  436. package/dist/stzh-components/p-54dbcd0e.system.entry.js.map +1 -0
  437. package/dist/stzh-components/{p-1f6fe9f1.entry.js → p-5cea16ad.entry.js} +2 -2
  438. package/dist/stzh-components/{p-1f6fe9f1.entry.js.map → p-5cea16ad.entry.js.map} +1 -1
  439. package/dist/stzh-components/{p-b218ae94.system.entry.js → p-5d02c5e0.system.entry.js} +2 -2
  440. package/dist/stzh-components/{p-01436630.system.entry.js → p-5e861cb6.system.entry.js} +2 -2
  441. package/dist/stzh-components/{p-45e98de0.entry.js → p-64845b66.entry.js} +2 -2
  442. package/dist/stzh-components/{p-45e98de0.entry.js.map → p-64845b66.entry.js.map} +1 -1
  443. package/dist/stzh-components/{p-95e4bc28.entry.js → p-68feffea.entry.js} +2 -2
  444. package/dist/stzh-components/{p-a6938665.entry.js → p-6a91ac35.entry.js} +2 -2
  445. package/dist/stzh-components/p-6a91ac35.entry.js.map +1 -0
  446. package/dist/stzh-components/{p-93c73a62.entry.js → p-6b9b037a.entry.js} +2 -2
  447. package/dist/stzh-components/{p-93c73a62.entry.js.map → p-6b9b037a.entry.js.map} +1 -1
  448. package/dist/stzh-components/{p-98357b67.system.entry.js → p-6e979c9c.system.entry.js} +2 -2
  449. package/dist/stzh-components/{p-98357b67.system.entry.js.map → p-6e979c9c.system.entry.js.map} +1 -1
  450. package/dist/stzh-components/{p-d5b2327f.system.entry.js → p-709514fc.system.entry.js} +2 -2
  451. package/dist/stzh-components/{p-c9f0cf53.entry.js → p-73442cf1.entry.js} +2 -2
  452. package/dist/stzh-components/{p-fd41d303.entry.js → p-7873a639.entry.js} +2 -2
  453. package/dist/stzh-components/p-7c2aa5e8.entry.js +2 -0
  454. package/dist/stzh-components/{p-41b2f989.entry.js.map → p-7c2aa5e8.entry.js.map} +1 -1
  455. package/dist/stzh-components/{p-a7ef9c99.entry.js → p-80851e3d.entry.js} +2 -2
  456. package/dist/stzh-components/p-80f1f324.system.entry.js +2 -0
  457. package/dist/stzh-components/p-80f1f324.system.entry.js.map +1 -0
  458. package/dist/stzh-components/{p-e1bada00.entry.js → p-83a216d7.entry.js} +2 -2
  459. package/dist/stzh-components/{p-bd5b6832.system.entry.js → p-88adaf4b.system.entry.js} +2 -2
  460. package/dist/stzh-components/{p-34a359dd.entry.js → p-88e6248e.entry.js} +2 -2
  461. package/dist/stzh-components/{p-e4e8b73a.system.entry.js → p-8c1c75a7.system.entry.js} +2 -2
  462. package/dist/stzh-components/{p-e4e8b73a.system.entry.js.map → p-8c1c75a7.system.entry.js.map} +1 -1
  463. package/dist/stzh-components/{p-7e76c84a.entry.js → p-91e7dae0.entry.js} +2 -2
  464. package/dist/stzh-components/{p-a8c669b2.system.entry.js → p-97704eb0.system.entry.js} +2 -2
  465. package/dist/stzh-components/p-9d0fedfe.system.entry.js +2 -0
  466. package/dist/stzh-components/{p-8de3379f.system.entry.js.map → p-9d0fedfe.system.entry.js.map} +1 -1
  467. package/dist/stzh-components/{p-67a483cf.system.entry.js → p-a0b350c2.system.entry.js} +2 -2
  468. package/dist/stzh-components/{p-a4c5ef8d.entry.js → p-a312a505.entry.js} +2 -2
  469. package/dist/stzh-components/p-a60e85c8.system.entry.js +2 -0
  470. package/dist/stzh-components/p-a60e85c8.system.entry.js.map +1 -0
  471. package/dist/stzh-components/{p-99ec62a5.entry.js → p-a94dd79b.entry.js} +2 -2
  472. package/dist/stzh-components/{p-99ec62a5.entry.js.map → p-a94dd79b.entry.js.map} +1 -1
  473. package/dist/stzh-components/p-aa337ae2.entry.js +2 -0
  474. package/dist/stzh-components/p-aa337ae2.entry.js.map +1 -0
  475. package/dist/stzh-components/{p-80e08833.entry.js → p-abbcda3b.entry.js} +2 -2
  476. package/dist/stzh-components/p-ae8eaf99.entry.js +2 -0
  477. package/dist/stzh-components/p-ae8eaf99.entry.js.map +1 -0
  478. package/dist/stzh-components/{p-793a530d.entry.js → p-af33b013.entry.js} +2 -2
  479. package/dist/stzh-components/{p-19b7b131.entry.js → p-afb2885a.entry.js} +2 -2
  480. package/dist/stzh-components/p-b305ec22.entry.js +2 -0
  481. package/dist/stzh-components/p-b305ec22.entry.js.map +1 -0
  482. package/dist/stzh-components/p-b6fed7ff.entry.js +2 -0
  483. package/dist/stzh-components/p-b6fed7ff.entry.js.map +1 -0
  484. package/dist/stzh-components/{p-cc10a5c5.system.entry.js → p-bb2fe16f.system.entry.js} +2 -2
  485. package/dist/stzh-components/p-bb2fe16f.system.entry.js.map +1 -0
  486. package/dist/stzh-components/{p-7a7eb40f.system.entry.js → p-c143a3f0.system.entry.js} +2 -2
  487. package/dist/stzh-components/{p-0a57145c.system.entry.js → p-c1ab5b6a.system.entry.js} +2 -2
  488. package/dist/stzh-components/p-c1ab5b6a.system.entry.js.map +1 -0
  489. package/dist/stzh-components/{p-fb70c624.system.entry.js → p-c41d9fa7.system.entry.js} +2 -2
  490. package/dist/stzh-components/{p-ebd47e41.entry.js → p-c5a4865c.entry.js} +2 -2
  491. package/dist/stzh-components/{p-7007044a.entry.js → p-c7a068ee.entry.js} +2 -2
  492. package/dist/stzh-components/{p-a00db16c.js → p-ca32a687.js} +2 -2
  493. package/dist/stzh-components/{p-a00db16c.js.map → p-ca32a687.js.map} +1 -1
  494. package/dist/stzh-components/{p-ae44fab0.entry.js → p-cb906ad4.entry.js} +2 -2
  495. package/dist/stzh-components/{p-70461b7e.entry.js → p-cc260e20.entry.js} +2 -2
  496. package/dist/stzh-components/p-cc260e20.entry.js.map +1 -0
  497. package/dist/stzh-components/p-cfd1eed9.system.entry.js +2 -0
  498. package/dist/stzh-components/p-cfd1eed9.system.entry.js.map +1 -0
  499. package/dist/stzh-components/p-cfdb06e4.js +2 -0
  500. package/dist/stzh-components/p-cfdb06e4.js.map +1 -0
  501. package/dist/stzh-components/{p-54c0340b.entry.js → p-d0678cbb.entry.js} +2 -2
  502. package/dist/stzh-components/p-d22fbf2e.system.entry.js +2 -0
  503. package/dist/stzh-components/p-d22fbf2e.system.entry.js.map +1 -0
  504. package/dist/stzh-components/{p-42138c55.entry.js → p-d362dc3a.entry.js} +2 -2
  505. package/dist/stzh-components/{p-3ac03d9a.entry.js → p-ded183e7.entry.js} +2 -2
  506. package/dist/stzh-components/{p-58a6ed19.system.entry.js → p-df322682.system.entry.js} +2 -2
  507. package/dist/stzh-components/{p-d50495d5.entry.js → p-e24cfa3e.entry.js} +2 -2
  508. package/dist/stzh-components/{p-ffe3fbab.entry.js → p-e3cd443b.entry.js} +2 -2
  509. package/dist/stzh-components/{p-e58d6819.system.entry.js → p-e61f6afc.system.entry.js} +2 -2
  510. package/dist/stzh-components/{p-e58d6819.system.entry.js.map → p-e61f6afc.system.entry.js.map} +1 -1
  511. package/dist/stzh-components/{p-f16e40f8.system.entry.js → p-e670eba0.system.entry.js} +2 -2
  512. package/dist/stzh-components/p-ed2896cd.entry.js +2 -0
  513. package/dist/stzh-components/p-ed2896cd.entry.js.map +1 -0
  514. package/dist/stzh-components/{p-3ccf5529.system.entry.js → p-f159a561.system.entry.js} +2 -2
  515. package/dist/stzh-components/p-f6662aa5.entry.js +2 -0
  516. package/dist/stzh-components/p-f6662aa5.entry.js.map +1 -0
  517. package/dist/stzh-components/p-f73af272.entry.js +8 -0
  518. package/dist/stzh-components/p-f73af272.entry.js.map +1 -0
  519. package/dist/stzh-components/{p-75beb9f8.system.entry.js → p-f8511c39.system.entry.js} +2 -2
  520. package/dist/stzh-components/{p-b1851b3e.entry.js → p-f91187c8.entry.js} +2 -2
  521. package/dist/stzh-components/p-f9cb0fcd.system.js +2 -0
  522. package/dist/stzh-components/p-f9cb0fcd.system.js.map +1 -0
  523. package/dist/stzh-components/{p-4e32ee7a.system.entry.js → p-ff1d24e2.system.entry.js} +2 -2
  524. package/dist/stzh-components/{p-61589824.system.entry.js → p-ff356dc8.system.entry.js} +2 -2
  525. package/dist/stzh-components/{p-9145f8d9.system.entry.js → p-ff9a0645.system.entry.js} +2 -2
  526. package/dist/stzh-components/p-ff9a0645.system.entry.js.map +1 -0
  527. package/dist/stzh-components/stzh-components.esm.js +1 -1
  528. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  529. package/dist/stzh-components/stzh-components.js +1 -1
  530. package/dist/types/components/stzh-gallery/stzh-gallery.localization.d.ts +10 -0
  531. package/dist/types/components.d.ts +101 -24
  532. package/dist/types/utils/utils.d.ts +5 -0
  533. package/dist/vscode-data.json +102 -13
  534. package/package.json +2 -1
  535. package/dist/cjs/stzh-figure.cjs.entry.js +0 -40
  536. package/dist/cjs/stzh-figure.cjs.entry.js.map +0 -1
  537. package/dist/cjs/stzh-hspace.cjs.entry.js.map +0 -1
  538. package/dist/cjs/stzh-ratio.cjs.entry.js.map +0 -1
  539. package/dist/cjs/stzh-show.cjs.entry.js +0 -43
  540. package/dist/cjs/stzh-show.cjs.entry.js.map +0 -1
  541. package/dist/cjs/utils-77bc0ea1.js.map +0 -1
  542. package/dist/esm/stzh-figure.entry.js +0 -36
  543. package/dist/esm/stzh-figure.entry.js.map +0 -1
  544. package/dist/esm/stzh-hspace.entry.js.map +0 -1
  545. package/dist/esm/stzh-ratio.entry.js.map +0 -1
  546. package/dist/esm/stzh-show.entry.js.map +0 -1
  547. package/dist/esm/utils-107fad0f.js.map +0 -1
  548. package/dist/esm-es5/stzh-figure.entry.js +0 -2
  549. package/dist/esm-es5/stzh-figure.entry.js.map +0 -1
  550. package/dist/esm-es5/stzh-hspace.entry.js +0 -2
  551. package/dist/esm-es5/stzh-hspace.entry.js.map +0 -1
  552. package/dist/esm-es5/stzh-ratio.entry.js +0 -2
  553. package/dist/esm-es5/stzh-ratio.entry.js.map +0 -1
  554. package/dist/esm-es5/stzh-show.entry.js +0 -2
  555. package/dist/esm-es5/stzh-show.entry.js.map +0 -1
  556. package/dist/esm-es5/utils-107fad0f.js +0 -2
  557. package/dist/esm-es5/utils-107fad0f.js.map +0 -1
  558. package/dist/stzh-components/p-004b3030.system.entry.js +0 -2
  559. package/dist/stzh-components/p-004b3030.system.entry.js.map +0 -1
  560. package/dist/stzh-components/p-044b80d8.system.js +0 -2
  561. package/dist/stzh-components/p-0a57145c.system.entry.js.map +0 -1
  562. package/dist/stzh-components/p-0c8d651e.entry.js +0 -2
  563. package/dist/stzh-components/p-0c8d651e.entry.js.map +0 -1
  564. package/dist/stzh-components/p-0e5d39e2.system.entry.js +0 -2
  565. package/dist/stzh-components/p-0e5d39e2.system.entry.js.map +0 -1
  566. package/dist/stzh-components/p-0ed6eafb.system.entry.js +0 -2
  567. package/dist/stzh-components/p-0ed6eafb.system.entry.js.map +0 -1
  568. package/dist/stzh-components/p-168f0faa.entry.js +0 -8
  569. package/dist/stzh-components/p-168f0faa.entry.js.map +0 -1
  570. package/dist/stzh-components/p-18bf2b21.system.entry.js +0 -2
  571. package/dist/stzh-components/p-18bf2b21.system.entry.js.map +0 -1
  572. package/dist/stzh-components/p-2452dd71.system.entry.js +0 -2
  573. package/dist/stzh-components/p-2452dd71.system.entry.js.map +0 -1
  574. package/dist/stzh-components/p-330bdf15.system.entry.js +0 -2
  575. package/dist/stzh-components/p-330bdf15.system.entry.js.map +0 -1
  576. package/dist/stzh-components/p-341c1c6c.entry.js +0 -2
  577. package/dist/stzh-components/p-341c1c6c.entry.js.map +0 -1
  578. package/dist/stzh-components/p-41b2f989.entry.js +0 -2
  579. package/dist/stzh-components/p-52e9dbe5.entry.js +0 -2
  580. package/dist/stzh-components/p-52e9dbe5.entry.js.map +0 -1
  581. package/dist/stzh-components/p-53e44e89.system.js +0 -2
  582. package/dist/stzh-components/p-53e44e89.system.js.map +0 -1
  583. package/dist/stzh-components/p-645bbb42.entry.js +0 -2
  584. package/dist/stzh-components/p-645bbb42.entry.js.map +0 -1
  585. package/dist/stzh-components/p-70461b7e.entry.js.map +0 -1
  586. package/dist/stzh-components/p-74e07267.entry.js +0 -2
  587. package/dist/stzh-components/p-74e07267.entry.js.map +0 -1
  588. package/dist/stzh-components/p-7b044a55.entry.js +0 -2
  589. package/dist/stzh-components/p-7b044a55.entry.js.map +0 -1
  590. package/dist/stzh-components/p-7eaed674.system.entry.js +0 -2
  591. package/dist/stzh-components/p-7eaed674.system.entry.js.map +0 -1
  592. package/dist/stzh-components/p-8de3379f.system.entry.js +0 -2
  593. package/dist/stzh-components/p-9145f8d9.system.entry.js.map +0 -1
  594. package/dist/stzh-components/p-9a22e78f.system.entry.js.map +0 -1
  595. package/dist/stzh-components/p-a27c6c02.system.entry.js +0 -2
  596. package/dist/stzh-components/p-a27c6c02.system.entry.js.map +0 -1
  597. package/dist/stzh-components/p-a509436d.entry.js.map +0 -1
  598. package/dist/stzh-components/p-a6938665.entry.js.map +0 -1
  599. package/dist/stzh-components/p-a999bb48.entry.js +0 -2
  600. package/dist/stzh-components/p-a999bb48.entry.js.map +0 -1
  601. package/dist/stzh-components/p-af5151b6.entry.js.map +0 -1
  602. package/dist/stzh-components/p-ba8c574b.js +0 -2
  603. package/dist/stzh-components/p-ba8c574b.js.map +0 -1
  604. package/dist/stzh-components/p-c2fcd668.entry.js +0 -2
  605. package/dist/stzh-components/p-c2fcd668.entry.js.map +0 -1
  606. package/dist/stzh-components/p-cc10a5c5.system.entry.js.map +0 -1
  607. package/dist/stzh-components/p-d18665b6.system.entry.js +0 -2
  608. package/dist/stzh-components/p-d18665b6.system.entry.js.map +0 -1
  609. package/dist/stzh-components/p-e42dbd26.system.entry.js.map +0 -1
  610. package/dist/stzh-components/p-e6f1bae9.system.entry.js +0 -2
  611. package/dist/stzh-components/p-e6f1bae9.system.entry.js.map +0 -1
  612. package/dist/stzh-components/p-ebaf8f26.entry.js +0 -2
  613. package/dist/stzh-components/p-ebaf8f26.entry.js.map +0 -1
  614. package/dist/stzh-components/p-ef274d0c.entry.js +0 -2
  615. package/dist/stzh-components/p-ef274d0c.entry.js.map +0 -1
  616. /package/dist/stzh-components/{p-6b9365fe.system.entry.js.map → p-0b4cba00.system.entry.js.map} +0 -0
  617. /package/dist/stzh-components/{p-b1fbe1d1.system.entry.js.map → p-0b8a15cc.system.entry.js.map} +0 -0
  618. /package/dist/stzh-components/{p-9bd8613c.system.entry.js.map → p-0c2381f6.system.entry.js.map} +0 -0
  619. /package/dist/stzh-components/{p-55a00af2.entry.js.map → p-10361297.entry.js.map} +0 -0
  620. /package/dist/stzh-components/{p-26f37848.entry.js.map → p-11031613.entry.js.map} +0 -0
  621. /package/dist/stzh-components/{p-062360a4.system.entry.js.map → p-153f8f3f.system.entry.js.map} +0 -0
  622. /package/dist/stzh-components/{p-fbf4ee43.system.entry.js.map → p-1834deba.system.entry.js.map} +0 -0
  623. /package/dist/stzh-components/{p-c1fa2872.system.entry.js.map → p-188dd49d.system.entry.js.map} +0 -0
  624. /package/dist/stzh-components/{p-68e15c10.system.entry.js.map → p-1a49012e.system.entry.js.map} +0 -0
  625. /package/dist/stzh-components/{p-2565c905.entry.js.map → p-1c9eee3d.entry.js.map} +0 -0
  626. /package/dist/stzh-components/{p-97b0b868.system.entry.js.map → p-2ff7c5db.system.entry.js.map} +0 -0
  627. /package/dist/stzh-components/{p-e0e5d06f.system.entry.js.map → p-3154e4da.system.entry.js.map} +0 -0
  628. /package/dist/stzh-components/{p-754f37ee.entry.js.map → p-34add4af.entry.js.map} +0 -0
  629. /package/dist/stzh-components/{p-b28e5fd4.system.entry.js.map → p-34ff6606.system.entry.js.map} +0 -0
  630. /package/dist/stzh-components/{p-46ccadd5.system.entry.js.map → p-3ab3a5a7.system.entry.js.map} +0 -0
  631. /package/dist/stzh-components/{p-dd43141d.system.entry.js.map → p-3ceef7dd.system.entry.js.map} +0 -0
  632. /package/dist/stzh-components/{p-38ebb72d.system.entry.js.map → p-42f483f6.system.entry.js.map} +0 -0
  633. /package/dist/stzh-components/{p-508f6d3d.entry.js.map → p-488c5c8a.entry.js.map} +0 -0
  634. /package/dist/stzh-components/{p-a5b55401.entry.js.map → p-4ad49ece.entry.js.map} +0 -0
  635. /package/dist/stzh-components/{p-f8b5c7a8.entry.js.map → p-4c091b1b.entry.js.map} +0 -0
  636. /package/dist/stzh-components/{p-66965853.entry.js.map → p-4cb041d5.entry.js.map} +0 -0
  637. /package/dist/stzh-components/{p-243f3d8c.system.entry.js.map → p-54a1fdcc.system.entry.js.map} +0 -0
  638. /package/dist/stzh-components/{p-b218ae94.system.entry.js.map → p-5d02c5e0.system.entry.js.map} +0 -0
  639. /package/dist/stzh-components/{p-01436630.system.entry.js.map → p-5e861cb6.system.entry.js.map} +0 -0
  640. /package/dist/stzh-components/{p-95e4bc28.entry.js.map → p-68feffea.entry.js.map} +0 -0
  641. /package/dist/stzh-components/{p-d5b2327f.system.entry.js.map → p-709514fc.system.entry.js.map} +0 -0
  642. /package/dist/stzh-components/{p-c9f0cf53.entry.js.map → p-73442cf1.entry.js.map} +0 -0
  643. /package/dist/stzh-components/{p-fd41d303.entry.js.map → p-7873a639.entry.js.map} +0 -0
  644. /package/dist/stzh-components/{p-a7ef9c99.entry.js.map → p-80851e3d.entry.js.map} +0 -0
  645. /package/dist/stzh-components/{p-e1bada00.entry.js.map → p-83a216d7.entry.js.map} +0 -0
  646. /package/dist/stzh-components/{p-bd5b6832.system.entry.js.map → p-88adaf4b.system.entry.js.map} +0 -0
  647. /package/dist/stzh-components/{p-34a359dd.entry.js.map → p-88e6248e.entry.js.map} +0 -0
  648. /package/dist/stzh-components/{p-7e76c84a.entry.js.map → p-91e7dae0.entry.js.map} +0 -0
  649. /package/dist/stzh-components/{p-a8c669b2.system.entry.js.map → p-97704eb0.system.entry.js.map} +0 -0
  650. /package/dist/stzh-components/{p-67a483cf.system.entry.js.map → p-a0b350c2.system.entry.js.map} +0 -0
  651. /package/dist/stzh-components/{p-a4c5ef8d.entry.js.map → p-a312a505.entry.js.map} +0 -0
  652. /package/dist/stzh-components/{p-80e08833.entry.js.map → p-abbcda3b.entry.js.map} +0 -0
  653. /package/dist/stzh-components/{p-793a530d.entry.js.map → p-af33b013.entry.js.map} +0 -0
  654. /package/dist/stzh-components/{p-19b7b131.entry.js.map → p-afb2885a.entry.js.map} +0 -0
  655. /package/dist/stzh-components/{p-7a7eb40f.system.entry.js.map → p-c143a3f0.system.entry.js.map} +0 -0
  656. /package/dist/stzh-components/{p-fb70c624.system.entry.js.map → p-c41d9fa7.system.entry.js.map} +0 -0
  657. /package/dist/stzh-components/{p-ebd47e41.entry.js.map → p-c5a4865c.entry.js.map} +0 -0
  658. /package/dist/stzh-components/{p-7007044a.entry.js.map → p-c7a068ee.entry.js.map} +0 -0
  659. /package/dist/stzh-components/{p-ae44fab0.entry.js.map → p-cb906ad4.entry.js.map} +0 -0
  660. /package/dist/stzh-components/{p-54c0340b.entry.js.map → p-d0678cbb.entry.js.map} +0 -0
  661. /package/dist/stzh-components/{p-42138c55.entry.js.map → p-d362dc3a.entry.js.map} +0 -0
  662. /package/dist/stzh-components/{p-3ac03d9a.entry.js.map → p-ded183e7.entry.js.map} +0 -0
  663. /package/dist/stzh-components/{p-58a6ed19.system.entry.js.map → p-df322682.system.entry.js.map} +0 -0
  664. /package/dist/stzh-components/{p-d50495d5.entry.js.map → p-e24cfa3e.entry.js.map} +0 -0
  665. /package/dist/stzh-components/{p-ffe3fbab.entry.js.map → p-e3cd443b.entry.js.map} +0 -0
  666. /package/dist/stzh-components/{p-f16e40f8.system.entry.js.map → p-e670eba0.system.entry.js.map} +0 -0
  667. /package/dist/stzh-components/{p-3ccf5529.system.entry.js.map → p-f159a561.system.entry.js.map} +0 -0
  668. /package/dist/stzh-components/{p-75beb9f8.system.entry.js.map → p-f8511c39.system.entry.js.map} +0 -0
  669. /package/dist/stzh-components/{p-b1851b3e.entry.js.map → p-f91187c8.entry.js.map} +0 -0
  670. /package/dist/stzh-components/{p-4e32ee7a.system.entry.js.map → p-ff1d24e2.system.entry.js.map} +0 -0
  671. /package/dist/stzh-components/{p-61589824.system.entry.js.map → p-ff356dc8.system.entry.js.map} +0 -0
@@ -1,8 +1,8 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++){e=arguments[i];for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s))t[s]=e[s]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,a){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function n(t){try{l(a.next(t))}catch(t){r(t)}}function o(t){try{l(a["throw"](t))}catch(t){r(t)}}function l(t){t.done?i(t.value):s(t.value).then(n,o)}l((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,s,r,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(t){return function(e){return l([t,e])}}function l(o){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,o[0]&&(i=0)),i)try{if(a=1,s&&(r=o[0]&2?s["return"]:o[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,o[1])).done)return r;if(s=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;s=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];s=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var i={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0)i[a]=t[a];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var s=0,a=Object.getOwnPropertySymbols(t);s<a.length;s++){if(e.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(t,a[s]))i[a[s]]=t[a[s]]}return i};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var a=0,s=e.length,r;a<s;a++){if(r||!(a in e)){if(!r)r=Array.prototype.slice.call(e,0,a);r[a]=e[a]}}return t.concat(r||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement,f as forceUpdate,F as Fragment}from"./index-bfb5b569.js";import{m as media,a as addMediaChangeListener,r as removeMediaChangeListener}from"./media-utils-ee5a59fa.js";import{s as setPropsIfNull,h as hasSlot}from"./utils-107fad0f.js";import"./string-utils-e252977e.js";var stzhActionsetCss=".sc-stzh-actionset-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-actionset-h{display:none}.sc-stzh-actionset-h *.sc-stzh-actionset,.sc-stzh-actionset-h *.sc-stzh-actionset::before,.sc-stzh-actionset-h *.sc-stzh-actionset::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-actionset-h .has-focus.sc-stzh-actionset{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-actionset-h .stzh-fylingfocus-focused.sc-stzh-actionset{outline-style:none !important}.sc-stzh-actionset-h .stzh-fylingfocus-focused.sc-stzh-actionset::-moz-focus-inner{border:0 !important}.stzh-actionset__actions.sc-stzh-actionset{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.stzh-actionset__actions-wrapper.sc-stzh-actionset{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden}.stzh-actionset__action.sc-stzh-actionset:not(:last-child){margin-right:var(--stzh-space-xsmall)}.stzh-actionset__action-popover.sc-stzh-actionset{opacity:0}.stzh-actionset--has-collapsed-items.sc-stzh-actionset .stzh-actionset__action-popover.sc-stzh-actionset{--width:auto;opacity:1}@media screen and (min-width: 1024px){.stzh-actionset--overflow.sc-stzh-actionset .stzh-actionset__action.sc-stzh-actionset{--white-space:nowrap}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__actions.sc-stzh-actionset{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__actions-wrapper.sc-stzh-actionset{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}@media screen and (min-width: 600px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action.sc-stzh-actionset{--white-space:nowrap}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action.sc-stzh-actionset:not(:last-child){margin-bottom:var(--stzh-space-xsmall);margin-right:0}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action-popover.sc-stzh-actionset{margin-top:var(--stzh-space-xsmall)}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset:not(.stzh-actionset--has-collapsed-items) .stzh-actionset__action-popover.sc-stzh-actionset{display:none}}";var StzhActionset=function(){function t(t){var e=this;registerInstance(this,t);this.stzhActionClick=createEvent(this,"stzhActionClick",7);this._actions=[];this.actionClick=function(t,i){e.stzhActionClick.emit({component:"stzh-actionset",action:t,originalEvent:i})};this.update=function(){e.isSmall=media("small").matches;e.isMedium=media("medium").matches;if(!e.actionsElement){return}Object.assign(e.actionsElement.style,{width:null,height:null});var t=0;if(e.variant==="overflow"&&e.isMedium||e.variant==="stack"&&e.isSmall){e.dynamicActions=true;var i=0;var a=0;Array.from(e.actionsElement.children).forEach((function(e){if(e.offsetTop===0){t++;var s=getComputedStyle(e);var r=parseInt(s.marginLeft);var n=parseInt(s.marginRight);var o=parseInt(s.marginTop);var l=parseInt(s.marginBottom);var c=e.offsetWidth+r+n;var h=e.offsetHeight+o+l;if(i<h){i=h}a=a+c+1}}));Object.assign(e.actionsElement.style,{width:"".concat(a,"px"),height:"".concat(i,"px")})}else{e.dynamicActions=false;if(e.variant==="overflow"){t=0}else if(e.variant==="stack"){t=e._actions.length<=3?e._actions.length:2}}e.actionsCollapsed=e._actions.slice(t)};this.handleResize=function(){if(e.debounceResize){window.cancelAnimationFrame(e.debounceResize)}e.debounceResize=requestAnimationFrame(e.update)};this.mediaChangeHandler=function(){e.actionsCollapsed=[];requestAnimationFrame(e.update)};this.localization=undefined;this.variant="stack";this.popoverButtonVariant="";this.popoverButtonSize="";this.popoverPlacement="bottom-end";this.actions=[];this.actionsCollapsed=[];this.dynamicActions=undefined;this.isSmall=undefined;this.isMedium=undefined}t.prototype.actionsWatcher=function(t){if(typeof t==="string"){this._actions=JSON.parse(t)}else{this._actions=t}};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.actionsWatcher(this.actions);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"actionset")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.connectedCallback=function(){addMediaChangeListener(this.mediaChangeHandler);this.resizeObserver=new ResizeObserver(this.handleResize);this.resizeObserver.observe(this.element)};t.prototype.disconnectedCallback=function(){removeMediaChangeListener(this.mediaChangeHandler);if(this.resizeObserver){this.resizeObserver.disconnect()}};t.prototype.componentDidLoad=function(){this.update()};t.prototype.render=function(){var t;var e=this;var i=(t={"stzh-actionset":true,"stzh-actionset--has-collapsed-items":this.actionsCollapsed.length>0},t["stzh-actionset--".concat(this.variant)]=!!this.variant,t);var a=function(t){return h("stzh-button",{class:{"stzh-actionset__action":true,"is-button":true},icon:t.icon,iconPosition:t.iconPosition,iconOnly:t.iconOnly,badge:t.badge,variant:t.variant?t.variant:e.variant==="stack"?"secondary":"tertiary",size:t.size?t.size:e.variant==="stack"?"default":"tiny",badgePosition:"icon",onClick:function(i){e.actionClick(t,i)}},h("span",{class:{}},t.label))};return h(Host,{"has-collapsed-items":this.actionsCollapsed.length>0},h("div",{class:i},h("div",{class:"stzh-actionset__actions",role:"group"},h("div",{ref:function(t){return e.actionsElement=t},class:"stzh-actionset__actions-wrapper"},this._actions.map((function(t){return(e.dynamicActions||!e.dynamicActions&&e.actionsCollapsed.indexOf(t)===-1)&&(t.tooltipContent?h("stzh-tooltip",{strategy:"fixed",content:t.tooltipContent},a(t)):a(t))}))),h("stzh-popover",{label:this.variant==="stack"?this.localization.furtherActions:!this.isMedium?this.localization.actions:"",strategy:"fixed",placement:this.popoverPlacement,class:"stzh-actionset__action-popover"},h("stzh-button",{fullwidth:true,disabled:this.actionsCollapsed.length===0,class:"stzh-actionset__action is-further",variant:this.popoverButtonVariant!==""?this.popoverButtonVariant:this.variant==="stack"?"secondary":"tertiary",size:this.popoverButtonSize!==""?this.popoverButtonSize:this.variant==="stack"?"default":"tiny",icon:this.variant==="stack"?"angle-down":"more-vertical",iconOnly:this.variant==="overflow"&&this.isMedium,iconPosition:"right",label:this.variant==="stack"?this.localization.furtherActions:!this.isMedium?this.localization.actions:""}),h("stzh-menu",{slot:"content"},this.actionsCollapsed.map((function(t){return h("stzh-menu-item",{icon:t.icon,badge:t.badge,badgeEmpty:t.badgeEmpty,badgeType:t.badgeType,onClick:function(i){e.actionClick(t,i)}},t.label)})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{actions:["actionsWatcher"]}},enumerable:false,configurable:true});return t}();StzhActionset.style=stzhActionsetCss;var stzhCardCss='.sc-stzh-card-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-card-h{display:none}.sc-stzh-card-h *.sc-stzh-card,.sc-stzh-card-h *.sc-stzh-card::before,.sc-stzh-card-h *.sc-stzh-card::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-card-h .has-focus.sc-stzh-card{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-card-h .stzh-fylingfocus-focused.sc-stzh-card{outline-style:none !important}.sc-stzh-card-h .stzh-fylingfocus-focused.sc-stzh-card::-moz-focus-inner{border:0 !important}.sc-stzh-card-h{--box-shadow:var(--stzh-box-shadow-popover);--border-color:var(--stzh-base-border-color);--border-radius:0.1875rem;--content-min-height:7.5rem;--dnd-visibility:hidden;--dnd-opacity:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;border-radius:var(--border-radius)}@media print{.sc-stzh-card-h{page-break-inside:avoid;-moz-column-break-inside:avoid;-webkit-column-break-inside:avoid;break-inside:avoid}}[collapsed].sc-stzh-card-h:not([collapsed=false]){--content-min-height:none}[checked].sc-stzh-card-h:not([checked=false]){outline:0.1875rem solid var(--stzh-color-primary, var(--stzh-color-zueriblue))}[hide-elevation].sc-stzh-card-h:not([hide-elevation=false]){--box-shadow:none}[hide-elevation].sc-stzh-card-h:not([hide-elevation=false])[href]:hover,[hide-elevation].sc-stzh-card-h:not([hide-elevation=false])[href]:focus-within,[hide-elevation].sc-stzh-card-h:not([hide-elevation=false]).is-selected,[hide-elevation].sc-stzh-card-h:not([hide-elevation=false]).is-chosen,.is-selected [hide-elevation].sc-stzh-card-h:not([hide-elevation=false]),.is-chosen [hide-elevation].sc-stzh-card-h:not([hide-elevation=false]){--box-shadow:var(--stzh-box-shadow-popover)}.is-ghost.sc-stzh-card-h::after,.is-ghost .sc-stzh-card-h::after{border-radius:var(--border-radius)}[href].sc-stzh-card-h:hover,[href].sc-stzh-card-h:focus-within,.is-selected.sc-stzh-card-h,.is-chosen.sc-stzh-card-h,.is-selected .sc-stzh-card-h,.is-chosen .sc-stzh-card-h{--box-shadow:var(--stzh-box-shadow-overlay)}.is-ghost.sc-stzh-card-h,.is-ghost .sc-stzh-card-h{--box-shadow:none;--border-color:transparent;overflow:hidden}.is-drag.sc-stzh-card-h,.is-chosen.sc-stzh-card-h,.is-ghost.sc-stzh-card-h,.is-selected.sc-stzh-card-h,.is-drag .sc-stzh-card-h,.is-chosen .sc-stzh-card-h,.is-ghost .sc-stzh-card-h,.is-selected .sc-stzh-card-h,[is-sortable].sc-stzh-card-h:hover{--dnd-visibility:visible;--dnd-opacity:1}.sc-stzh-card-h .sc-stzh-card-s>*{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing)}.sc-stzh-card-h .sc-stzh-card-s>[slot=image]{width:100%;max-width:100%}.sc-stzh-card-h .sc-stzh-card-s>img[slot=image]{display:block}.sc-stzh-card-h .sc-stzh-card-s>[slot=meta]:not(:last-child){margin-right:var(--stzh-space-xsmall)}.sc-stzh-card-h .sc-stzh-card-s>table{border:0;border-spacing:0}.sc-stzh-card-h .sc-stzh-card-s>table th{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular)}.sc-stzh-card-h .sc-stzh-card-s>table td,.sc-stzh-card-h .sc-stzh-card-s>table th{padding:0}.sc-stzh-card-h .sc-stzh-card-s>table td{color:var(--stzh-color-black);padding-left:var(--stzh-space-xsmall)}.sc-stzh-card-h .sc-stzh-card-s>[slot=heading],.stzh-card__title.sc-stzh-card{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy);font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-default-heading-letter-spacing)}@media screen and (min-width: 600px){.sc-stzh-card-h .sc-stzh-card-s>[slot=heading],.stzh-card__title.sc-stzh-card{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-small-heading-letter-spacing)}}@media screen and (min-width: 1024px){.sc-stzh-card-h .sc-stzh-card-s>[slot=heading],.stzh-card__title.sc-stzh-card{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-heading-line-height, var(--stzh-font-regular-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-heading-letter-spacing)}}.stzh-card.sc-stzh-card{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--stzh-color-white);border-radius:var(--border-radius);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);border-width:0.0625rem;border-style:solid;border-color:var(--border-color);-webkit-transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed), -webkit-box-shadow var(--stzh-base-transition-animation-speed)}@media screen and (max-width: 1023px){.stzh-card.sc-stzh-card .vshow-medium.sc-stzh-card{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}}@media screen and (max-width: 1023px){.stzh-card.sc-stzh-card .show-medium.sc-stzh-card{display:none}}@media screen and (min-width: 1024px){.stzh-card.sc-stzh-card .hide-medium.sc-stzh-card{display:none}}.stzh-card__content-wrapper.sc-stzh-card{position:relative;-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:var(--content-min-height)}.stzh-card__dnd.sc-stzh-card{--size:var(--stzh-icon-size-xsmall);position:absolute;left:0.1875rem;top:1.4375rem;display:-ms-flexbox;display:flex;visibility:var(--dnd-visibility);opacity:var(--dnd-opacity);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);display:none}@media screen and (min-width: 1024px){.stzh-card__dnd.sc-stzh-card{display:block}}@media screen and (min-width: 1260px){.stzh-card__dnd.sc-stzh-card{left:0.25rem;top:1.6875rem}}.stzh-card__header-top.sc-stzh-card{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}.stzh-card__header-meta.sc-stzh-card:not(:empty){display:-ms-inline-flexbox;display:inline-flex;margin-top:var(--stzh-space-xsmall)}.stzh-card__header-left.sc-stzh-card,.stzh-card__header-right.sc-stzh-card{display:-ms-flexbox;display:flex}.stzh-card__header-right.sc-stzh-card{padding-left:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-card__header-right.sc-stzh-card{padding-left:var(--stzh-space-small)}}@media screen and (min-width: 1260px){.stzh-card__header-right.sc-stzh-card{padding-left:var(--stzh-space-medium)}}.stzh-card__left.sc-stzh-card{-ms-flex-item-align:center;align-self:center}.stzh-card__title-area.sc-stzh-card{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden}.stzh-card__title.sc-stzh-card,.stzh-card__subtitle.sc-stzh-card{margin:0}.stzh-card__title-link.sc-stzh-card{color:inherit;-webkit-text-decoration-line:none;text-decoration-line:none}.stzh-card__image-link.sc-stzh-card{display:block}.stzh-card__subtitle.sc-stzh-card{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-text-decoration-line:none;text-decoration-line:none;margin-left:-0.5625em}@media screen and (min-width: 1024px){.stzh-card__subtitle.sc-stzh-card{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-card__subtitle-text.sc-stzh-card{position:relative;display:-ms-inline-flexbox;display:inline-flex;padding-left:0.5625em}.stzh-card__subtitle-text.sc-stzh-card::after{content:",";position:absolute;left:0}.stzh-card__content.sc-stzh-card{-ms-flex-positive:1;flex-grow:1}.stzh-card__content.sc-stzh-card:not(:empty){padding:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-card__content.sc-stzh-card:not(:empty){padding:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card__content.sc-stzh-card:not(:empty){padding:var(--stzh-space-xlarge)}}.stzh-card__footer-arrow.sc-stzh-card{--size:var(--stzh-icon-size-medium);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-card__card-actions.sc-stzh-card{display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}@media screen and (max-width: 1023px){.stzh-card__card-action.sc-stzh-card{--icon-text-margin:0px;--badge-icon-text-margin:0px}}.stzh-card__card-action[variant=tertiary].sc-stzh-card{--color:var(--stzh-color-grey70)}.stzh-card__card-action.is-button.sc-stzh-card{--icon-size:var(--stzh-icon-size-small)}.stzh-card__card-action.is-placeholder.sc-stzh-card{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge)}.stzh-card__card-action-popover.sc-stzh-card{--width:auto}.stzh-card--has-header.sc-stzh-card .stzh-card__header.sc-stzh-card{padding:var(--stzh-space-medium);border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 1024px){.stzh-card--has-header.sc-stzh-card .stzh-card__header.sc-stzh-card{padding:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card--has-header.sc-stzh-card .stzh-card__header.sc-stzh-card{padding:var(--stzh-space-xlarge)}}.stzh-card--has-footer.sc-stzh-card .stzh-card__footer.sc-stzh-card:not(:empty){padding:var(--stzh-space-medium);border-top:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 1024px){.stzh-card--has-footer.sc-stzh-card .stzh-card__footer.sc-stzh-card:not(:empty){padding:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card--has-footer.sc-stzh-card .stzh-card__footer.sc-stzh-card:not(:empty){padding:var(--stzh-space-xlarge)}}.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card{color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-text-decoration-line:none;text-decoration-line:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card::before,.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card::after{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%}.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card::after{z-index:1}.stzh-card--has-link.sc-stzh-card .stzh-card__card-actions.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__header-meta.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__footer-actionset.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__footer-select-button.sc-stzh-card{position:relative;z-index:2}.stzh-card--has-link.sc-stzh-card .stzh-card__image-link.sc-stzh-card:hover+.stzh-card__content-wrapper.sc-stzh-card .stzh-card__title-link.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card:hover,.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--has-link.sc-stzh-card:hover .stzh-card__footer-arrow.sc-stzh-card{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--has-subtitle-interactive.sc-stzh-card .stzh-card__subtitle.sc-stzh-card{cursor:pointer;font-family:inherit;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-card--has-subtitle-interactive.sc-stzh-card .stzh-card__subtitle.sc-stzh-card:hover,.stzh-card--has-subtitle-interactive.sc-stzh-card .stzh-card__subtitle.sc-stzh-card:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--is-collapsible.sc-stzh-card .stzh-card__header.sc-stzh-card{cursor:pointer}.stzh-card--is-collapsed.sc-stzh-card .vhide-when-collapsed.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__header.sc-stzh-card .vhide-when-collapsed.sc-stzh-card{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-card--is-collapsed.sc-stzh-card .hide-when-collapsed.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__header.sc-stzh-card .hide-when-collapsed.sc-stzh-card{display:none}.stzh-card--is-collapsed.sc-stzh-card .show-when-collapsed.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__header.sc-stzh-card .show-when-collapsed.sc-stzh-card{display:block}.stzh-card--is-collapsed.sc-stzh-card .stzh-card__header.sc-stzh-card{border-bottom:none}.stzh-card--is-collapsed.sc-stzh-card .stzh-card__card-action.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__card-action.sc-stzh-card{--icon-text-margin:0px;--badge-icon-text-margin:0px}.stzh-card--is-starred.sc-stzh-card .stzh-card__card-action.is-star.sc-stzh-card{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-card--is-starred.sc-stzh-card .stzh-card__card-action.is-star.sc-stzh-card:hover,.stzh-card--is-starred.sc-stzh-card .stzh-card__card-action.is-star.sc-stzh-card:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--has-hidden-header-border.sc-stzh-card .stzh-card__header.sc-stzh-card{border-bottom:none;padding-bottom:0}.stzh-card--has-hidden-footer-border.sc-stzh-card .stzh-card__footer.sc-stzh-card:not(:empty){padding-top:0;border-top:none}';var StzhCard=function(){function t(t){var e=this;registerInstance(this,t);this.stzhClick=createEvent(this,"stzhClick",7);this.stzhCollapse=createEvent(this,"stzhCollapse",7);this.stzhSubtitleClick=createEvent(this,"stzhSubtitleClick",7);this.stzhStarClick=createEvent(this,"stzhStarClick",7);this.stzhHeaderActionClick=createEvent(this,"stzhHeaderActionClick",7);this._subtitles=[];this.nodeChange=function(t){var i=false;t.forEach((function(t){if(t.target.closest("[slot]")||t.target.hasAttribute("slot")){i=true}}));if(i){forceUpdate(e.element)}};this.update=function(){if(!e.mainElement){return}e.mainElement.classList.remove("stzh-card--has-collapsed-header");if(media("medium").matches){var t=e.headerElement.clientWidth;var i=e.headerLeftElement.clientWidth;var a=e.headerRightElement.clientWidth;if(t-i<=a){e.mainElement.classList.add("stzh-card--has-collapsed-header")}}};this.headerClick=function(t){if(!e.collapsible){return}var i=["stzh-popover","stzh-tooltip","button","a","input","select","textarea","iframe","details","label","area"];var a=t.composedPath().map((function(t){var e;return(e=t.tagName)===null||e===void 0?void 0:e.toLowerCase()}));var s=a.some((function(t){return i.includes(t)}));if(!s){e.collapsed=!e.collapsed;e.stzhCollapse.emit({component:"stzh-card",collapsed:e.collapsed})}};this.subtitleClick=function(){if(e.subtitleInteractive){e.stzhSubtitleClick.emit({component:"stzh-card"})}};this.starToggleClick=function(){e.stzhStarClick.emit({component:"stzh-card",starred:e.starred})};this.actionClick=function(t){e.stzhHeaderActionClick.emit({component:"stzh-card",action:t})};this.arrowUpClick=function(){var t=e.element.closest("stzh-sortable");if(t){var i=e.findSortableChildElement();t.moveItem(i,"up")}};this.arrowDownClick=function(){var t=e.element.closest("stzh-sortable");if(t){var i=e.findSortableChildElement();t.moveItem(i,"down")}};this.updateElementInsideSortable=function(){var t=e.element.closest("stzh-sortable");if(!t){e.sortable.removeEventListener("stzhUpdate",e.updateElementInsideSortable);e.sortable.removeEventListener("stzhDisable",e.updateElementInsideSortable);return}if(e.element){forceUpdate(e.element)}};this.init=function(){var t=e.element.querySelectorAll('stzh-chip[slot="meta"], [slot="meta"] stzh-chip');t.forEach((function(t){setPropsIfNull(t,{size:"small"})}))};this.handleResize=function(){if(e.debounceResize){window.cancelAnimationFrame(e.debounceResize)}e.debounceResize=requestAnimationFrame(e.update)};this.handleMutation=function(t){e.init();e.nodeChange(t)};this.handleSelectionChange=function(t){e.checked=t.detail.checked};this.cardClick=function(t){e.stzhClick.emit({component:"stzh-card",originalEvent:t})};this.localization=undefined;this.collapsed=false;this.starred=false;this.starrable=false;this.selectable=false;this.checked=false;this.name="";this.href=undefined;this.target=undefined;this.value="";this.disabled=false;this.withArrow=false;this.heading="";this.subtitle="";this.headerActions=[];this.footerActions=[];this.subtitleInteractive=false;this.sortableDisabled=false;this.collapsible=false;this.hideHeaderBorder=false;this.hideFooterBorder=false;this.hideElevation=false;this.hideMovementActions=false;this.analyticsId=undefined}t.prototype.subtitleWatcher=function(t){if(typeof t==="string"){if(t===""){this._subtitles=[]}else{try{this._subtitles=JSON.parse(t)}catch(e){this._subtitles=[t]}}}else{this._subtitles=t}};t.prototype.headerActionsWatcher=function(t){if(typeof t==="string"){this._headerActions=JSON.parse(t)}else{this._headerActions=t}};t.prototype.footerActionsWatcher=function(t){if(typeof t==="string"){this._footerActions=JSON.parse(t)}else{this._footerActions=t}};t.prototype.collapsedWatcher=function(){this.handleResize()};t.prototype.findSortableChildElement=function(){var t=this.element.closest("stzh-sortable");if(t){var e=this.element;var i=null;if(typeof t.container==="function"){i=t.container()}else{i=t.container}while(e.parentElement&&e.parentElement!==i){e=e.parentElement}return e}};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.subtitleWatcher(this.subtitle);this.headerActionsWatcher(this.headerActions);this.footerActionsWatcher(this.footerActions);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"card")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.sortable=this.element.closest("stzh-sortable");if(this.sortable){this.sortable.addEventListener("stzhUpdate",this.updateElementInsideSortable);this.sortable.addEventListener("stzhDisable",this.updateElementInsideSortable)}};t.prototype.componentDidRender=function(){var t=this;requestAnimationFrame((function(){var e,i,a;var s=t.analyticsId||((e=t.headingTextElement)===null||e===void 0?void 0:e.innerText);if(s){(i=t.imageLinkElement)===null||i===void 0?void 0:i.setAttribute("s-object-id",s);(a=t.titleLinkElement)===null||a===void 0?void 0:a.setAttribute("s-object-id",s)}}))};t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.handleMutation);this.observer.observe(this.element,{childList:true,subtree:true});this.resizeObserver=new ResizeObserver(this.handleResize);this.resizeObserver.observe(this.element)};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}if(this.resizeObserver){this.resizeObserver.disconnect()}};t.prototype.render=function(){var t=this;var e,i,a;var s=hasSlot(this.element,"image");var r=hasSlot(this.element,"heading");var n=hasSlot(this.element,"content");var o="".concat(this.subtitleInteractive?"button":"span");var l=this.findSortableChildElement();var c=(l===null||l===void 0?void 0:l.parentElement)&&Array.from((e=l===null||l===void 0?void 0:l.parentElement)===null||e===void 0?void 0:e.children).indexOf(l)===0;var d=(l===null||l===void 0?void 0:l.parentElement)&&Array.from((i=l===null||l===void 0?void 0:l.parentElement)===null||i===void 0?void 0:i.children).indexOf(l)===((a=l===null||l===void 0?void 0:l.parentElement)===null||a===void 0?void 0:a.children.length)-1;var u=!this.sortableDisabled&&this.sortable&&!this.sortable.disabled;var f=u&&!this.hideMovementActions;var g=this._headerActions.filter((function(t){return!t.onlyCollapseText}));var p=!!this.heading||r;var m=p||this._subtitles.length>0||this._headerActions.length>0||g.length>0||this.starrable||f;var v=this._footerActions.length>0||this.selectable||this.withArrow;var b={"stzh-card":true,"stzh-card--has-link":!!this.href,"stzh-card--has-image":s,"stzh-card--has-content":n,"stzh-card--has-subtitle":!!this.subtitle,"stzh-card--has-subtitle-interactive":!!this.subtitle&&this.subtitleInteractive,"stzh-card--has-hidden-header-border":this.hideHeaderBorder,"stzh-card--has-hidden-footer-border":this.hideFooterBorder,"stzh-card--has-header":m,"stzh-card--has-footer":v,"stzh-card--is-collapsible":this.collapsible,"stzh-card--is-collapsed":this.collapsed,"stzh-card--is-starred":this.starred,"stzh-card--is-checked":this.checked,"stzh-card--is-sortable":u};return h(Host,{role:"listitem","aria-label":this.heading,"is-sortable":u},h("article",{ref:function(e){return t.mainElement=e},class:b},h("a",{ref:function(e){return t.imageLinkElement=e},"aria-hidden":"true",tabindex:"-1",class:"stzh-card__image-link",href:this.href,target:this.target,onClick:this.href?this.cardClick:null},h("slot",{name:"image"})),h("div",{class:"stzh-card__content-wrapper"},h("stzh-icon",{class:"stzh-card__dnd",name:"drag"}),h("header",{ref:function(e){return t.headerElement=e},class:"stzh-card__header",onClick:this.headerClick},h("div",{class:"stzh-card__header-top"},h("div",{ref:function(e){return t.headerLeftElement=e},class:"stzh-card__header-left"},h("div",{class:"stzh-card__title-area"},p&&h("h3",{class:"stzh-card__title"},h("a",{ref:function(e){return t.titleLinkElement=e},class:"stzh-card__title-link",href:this.href,target:this.target,onClick:this.href?this.cardClick:null},h("div",{ref:function(e){return t.headingTextElement=e}},this.heading?this.heading:h("slot",{name:"heading"})))),this._subtitles.length>0&&h(o,{class:"stzh-card__subtitle",onClick:this.subtitleClick},this._subtitles.map((function(t){return h("span",{class:"stzh-card__subtitle-text"},t)}))))),h("div",{ref:function(e){return t.headerRightElement=e},class:"stzh-card__header-right"},h("div",{class:"stzh-card__card-actions"},this._headerActions.map((function(e){return h("stzh-button",{class:{"stzh-card__card-action":true,"is-button":true,"show-medium":!e.onlyCollapseText,"hide-when-collapsed":!e.onlyCollapseText,"hide-text-when-collapsed":e.onlyCollapseText},icon:e.icon,badge:e.badge,badgeEmpty:e.badgeEmpty,badgeType:e.badgeType,variant:"tertiary",size:"tiny",badgePosition:"icon",onClick:function(){t.actionClick(e)}},h("span",{class:{"vshow-medium":e.onlyCollapseText,"vhide-when-collapsed":e.onlyCollapseText}},e.label))})),this.starrable&&h("stzh-tooltip",null,h("stzh-button",{class:"stzh-card__card-action is-star",icon:this.starred?"star-filled":"star",variant:"tertiary",size:"tiny",iconOnly:true,onClick:this.starToggleClick}),h("div",{slot:"content"},this.starred?this.localization.actionRemove:this.localization.actionAdd)),(g.length>0||this.starrable||f)&&h("stzh-popover",{label:this.localization.actionsPopoverLabel,placement:"bottom-end",class:{"stzh-card__card-action-popover":true,"hide-medium show-when-collapsed":!this.starrable&&!f}},h("stzh-button",{class:"stzh-card__card-action is-further",variant:"tertiary",size:"tiny",icon:"more-vertical",iconOnly:true}),h("stzh-menu",{slot:"content"},this.starrable&&h("stzh-menu-item",{icon:this.starred?"star-filled":"star",onClick:this.starToggleClick},this.starred?this.localization.actionRemove:this.localization.actionAdd),g.map((function(e){return h("stzh-menu-item",{class:"hide-medium show-when-collapsed",icon:e.icon,badge:e.badge,badgeEmpty:e.badgeEmpty,badgeType:e.badgeType,onClick:function(){t.actionClick(e)}},e.label)})),f&&h(Fragment,null,!c&&h("stzh-menu-item",{icon:"arrow-up",onClick:this.arrowUpClick},this.localization.actionMoveUp),!d&&h("stzh-menu-item",{icon:"arrow-down",onClick:this.arrowDownClick},this.localization.actionMoveDown))))))),h("div",{class:"stzh-card__header-meta"},h("slot",{name:"meta"}))),h("div",{class:"stzh-card__content hide-when-collapsed"},h("slot",{name:"content"})),h("div",{class:"stzh-card__footer hide-when-collapsed"},h("slot",{name:"footer"},this._footerActions.length>0&&h("stzh-actionset",{class:"stzh-card__footer-actionset",actions:this._footerActions}),this.selectable&&h("stzh-button",{class:"stzh-card__footer-select-button",fullwidth:true,type:"radio",variant:"secondary",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,label:this.localization.select,onStzhChange:this.handleSelectionChange}),this.withArrow&&h("stzh-icon",{class:"stzh-card__footer-arrow",name:"arrow-right-long"}))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{subtitle:["subtitleWatcher"],headerActions:["headerActionsWatcher"],footerActions:["footerActionsWatcher"],collapsed:["collapsedWatcher"]}},enumerable:false,configurable:true});return t}();StzhCard.style=stzhCardCss;var stzhCardListCss=".sc-stzh-card-list-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-card-list-h{display:none}.sc-stzh-card-list-h *.sc-stzh-card-list,.sc-stzh-card-list-h *.sc-stzh-card-list::before,.sc-stzh-card-list-h *.sc-stzh-card-list::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-card-list-h .has-focus.sc-stzh-card-list{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-card-list-h .stzh-fylingfocus-focused.sc-stzh-card-list{outline-style:none !important}.sc-stzh-card-list-h .stzh-fylingfocus-focused.sc-stzh-card-list::-moz-focus-inner{border:0 !important}.sc-stzh-card-list-h[layout=fullwidth] .sc-stzh-card-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.sc-stzh-card-list-h[layout=fullwidth] .sc-stzh-card-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-card-list-h[layout=fullwidth] .sc-stzh-card-list-s>*:not(:last-child):not([slot]){margin-bottom:var(--stzh-space-xlarge)}}.sc-stzh-card-list-h[layout=subpages] .sc-stzh-card-list-s>*:not([slot]){width:100%;margin:calc(var(--stzh-grid-gutter) / 2)}@media screen and (min-width: 600px){.sc-stzh-card-list-h[layout=subpages] .sc-stzh-card-list-s>*:not([slot]){width:calc(50% - var(--stzh-grid-gutter-small));margin:calc(var(--stzh-grid-gutter-small) / 2)}}@media screen and (min-width: 1024px){.sc-stzh-card-list-h[layout=subpages] .sc-stzh-card-list-s>*:not([slot]){width:calc(33.333% - var(--stzh-grid-gutter-medium));margin:calc(var(--stzh-grid-gutter-medium) / 2)}}.sc-stzh-card-list-h .sc-stzh-card-list-s>[slot=description] stzh-icon{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.sc-stzh-card-list-h .sc-stzh-card-list-s>stzh-text[slot=description]{--color:inherit}.stzh-card-list__cards.sc-stzh-card-list{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.stzh-card-list__header.sc-stzh-card-list{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}@media screen and (min-width: 800px){.stzh-card-list__header.sc-stzh-card-list{-ms-flex-direction:row;flex-direction:row}}.stzh-card-list__description.sc-stzh-card-list{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);color:var(--stzh-base-lead-color)}@media screen and (min-width: 1024px){.stzh-card-list__description.sc-stzh-card-list{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-card-list__description.sc-stzh-card-list:not(:empty){margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 800px){.stzh-card-list__description.sc-stzh-card-list:not(:empty){margin-bottom:0}}.stzh-card-list__switch.sc-stzh-card-list{--color:var(--stzh-base-lead-color);-ms-flex-item-align:end;align-self:end}.stzh-card-list--has-header.sc-stzh-card-list .stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-card-list--has-header.sc-stzh-card-list .stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card-list--has-header.sc-stzh-card-list .stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-xlarge)}}.stzh-card-list--layout-subpages.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:calc(var(--stzh-grid-gutter) / -2)}@media screen and (min-width: 600px){.stzh-card-list--layout-subpages.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{margin:calc(var(--stzh-grid-gutter-small) / -2)}}@media screen and (min-width: 1024px){.stzh-card-list--layout-subpages.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{margin:calc(var(--stzh-grid-gutter-medium) / -2)}}";var StzhCardList=function(){function t(t){var e=this;registerInstance(this,t);this.stzhCollapseAll=createEvent(this,"stzhCollapseAll",7);this.collapseClick=function(){var t=Array.from(e.element.querySelectorAll("stzh-card"));t.forEach((function(t){if(t.collapsible){t.collapsed=!e.allCollapsed}}));e.allCollapsed=!e.allCollapsed;e.stzhCollapseAll.emit({component:"stzh-card-list",allCollapsed:e.allCollapsed})};this.updateCollapsedState=function(){var t=Array.from(e.element.querySelectorAll("stzh-card"));e.allCollapsed=!t.some((function(t){return!t.collapsed}))};this.sortableGhostClone=function(t){if(t&&t.tagName.toLowerCase()==="stzh-card"){var e=t;var i=t.cloneNode(true);i.heading=e.heading;i.subtitle=e.subtitle;i.headerActions=e.headerActions;i.footerActions=e.footerActions;i.hideMovementActions=e.hideMovementActions;return i}};this.localization=undefined;this.layout="fullwidth";this.description=undefined;this.showToggleLink=false;this.sortableEnabled=false;this.sortableDataIdAttribute="data-id";this.allCollapsed=false}t.prototype.collapseListener=function(){this.updateCollapsedState()};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"card-list")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.updateCollapsedState()};t.prototype.render=function(){var t;var e=hasSlot(this.element,"description")||!!this.description;var i=(t={"stzh-card-list":true,"stzh-card-list--has-header":this.showToggleLink||e},t["stzh-card-list--layout-".concat(this.layout)]=!!this.layout,t);return h(Host,null,h("div",{class:i},h("div",{class:"stzh-card-list__header"},h("div",{class:"stzh-card-list__description"},this.description?this.description:h("slot",{name:"description"})),this.showToggleLink&&h("stzh-link",{class:"stzh-card-list__switch",icon:this.allCollapsed?"list-expanded":"list-shrinked",label:this.allCollapsed?this.localization.expandAll:this.localization.collapseAll,onClick:this.collapseClick})),h("stzh-sortable",{disabled:!this.sortableEnabled,dataIdAttribute:this.sortableDataIdAttribute,ghostClone:this.sortableGhostClone},h("div",{class:"stzh-card-list__cards",role:"list"},h("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhCardList.style=stzhCardListCss;var t=function(t){return"object"==typeof t&&null!=t&&1===t.nodeType},e$1=function(t,e){return(!e||"hidden"!==t)&&("visible"!==t&&"clip"!==t)},n=function(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var i=getComputedStyle(t,null);return e$1(i.overflowY,e)||e$1(i.overflowX,e)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1},o$1=function(t,e,i,a,s,r,n,o){return r<t&&n>e||r>t&&n<e?0:r<=t&&o<=i||n>=e&&o>=i?r-t-a:n>e&&o<i||r<t&&o>i?n-e+s:0},i=function(t){var e=t.parentElement;return null==e?t.getRootNode().host||null:e},l=function(e,a){var s,r,o,l;if("undefined"==typeof document)return[];var c=a.scrollMode,h=a.block,d=a.inline,u=a.boundary,f=a.skipOverflowHiddenElements,g="function"==typeof u?u:function(t){return t!==u};if(!t(e))throw new TypeError("Invalid target");var p=document.scrollingElement||document.documentElement,m=[];var v=e;for(;t(v)&&g(v);){if(v=i(v),v===p){m.push(v);break}null!=v&&v===document.body&&n(v)&&!n(document.documentElement)||null!=v&&n(v,f)&&m.push(v)}var b=null!=(r=null==(s=window.visualViewport)?void 0:s.width)?r:innerWidth,z=null!=(l=null==(o=window.visualViewport)?void 0:o.height)?l:innerHeight,E=window.scrollX,_=window.scrollY,w=e.getBoundingClientRect(),y=w.height,x=w.width,S=w.top,C=w.right,D=w.bottom,k=w.left;var I="start"===h||"nearest"===h?S:"end"===h?D:S+y/2,A="center"===d?k+x/2:"end"===d?C:k;var T=[];for(var O=0;O<m.length;O++){var M=m[O],R=M.getBoundingClientRect(),P=R.height,N=R.width,L=R.top,F=R.right,W=R.bottom,H=R.left;if("if-needed"===c&&S>=0&&k>=0&&D<=z&&C<=b&&S>=L&&D<=W&&k>=H&&C<=F)return T;var B=getComputedStyle(M),X=parseInt(B.borderLeftWidth,10),Y=parseInt(B.borderTopWidth,10),$=parseInt(B.borderRightWidth,10),j=parseInt(B.borderBottomWidth,10);var G=0,U=0;var K="offsetWidth"in M?M.offsetWidth-M.clientWidth-X-$:0,q="offsetHeight"in M?M.offsetHeight-M.clientHeight-Y-j:0,V="offsetWidth"in M?0===M.offsetWidth?0:N/M.offsetWidth:0,J="offsetHeight"in M?0===M.offsetHeight?0:P/M.offsetHeight:0;if(p===M)G="start"===h?I:"end"===h?I-z:"nearest"===h?o$1(_,_+z,z,Y,j,_+I,_+I+y,y):I-z/2,U="start"===d?A:"center"===d?A-b/2:"end"===d?A-b:o$1(E,E+b,b,X,$,E+A,E+A+x,x),G=Math.max(0,G+_),U=Math.max(0,U+E);else{G="start"===h?I-L-Y:"end"===h?I-W+j+q:"nearest"===h?o$1(L,W,P,Y,j+q,I,I+y,y):I-(L+P/2)+q/2,U="start"===d?A-H-X:"center"===d?A-(H+N/2)+K/2:"end"===d?A-F+$+K:o$1(H,F,N,X,$+K,A,A+x,x);var Z=M.scrollLeft,Q=M.scrollTop;G=Math.max(0,Math.min(Q+G/J,M.scrollHeight-P/J+q)),U=Math.max(0,Math.min(Z+U/V,M.scrollWidth-N/V+K)),I+=Q-G,A+=Z-U}T.push({el:M,top:G,left:U})}return T};var o=function(t){return!1===t?{block:"end",inline:"nearest"}:function(t){return t===Object(t)&&0!==Object.keys(t).length}(t)?t:{block:"start",inline:"nearest"}};function e(t,e){if(!t.isConnected||!function(t){var e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1}(t))return;var i=function(t){var e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}}(t);if(function(t){return"object"==typeof t&&"function"==typeof t.behavior}(e))return e.behavior(l(t,e));var a="boolean"==typeof e||null==e?void 0:e.behavior;for(var s=0,r=l(t,o(e));s<r.length;s++){var n=r[s],c=n.el,h=n.top,d=n.left;var u=h-i.top+i.bottom,f=d-i.left+i.right;c.scroll({top:u,left:f,behavior:a})}}
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++){e=arguments[i];for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s))t[s]=e[s]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,a){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function n(t){try{l(a.next(t))}catch(t){r(t)}}function o(t){try{l(a["throw"](t))}catch(t){r(t)}}function l(t){t.done?i(t.value):s(t.value).then(n,o)}l((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,s,r,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(t){return function(e){return l([t,e])}}function l(o){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,o[0]&&(i=0)),i)try{if(a=1,s&&(r=o[0]&2?s["return"]:o[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,o[1])).done)return r;if(s=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;s=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];s=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var i={};for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0)i[a]=t[a];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var s=0,a=Object.getOwnPropertySymbols(t);s<a.length;s++){if(e.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(t,a[s]))i[a[s]]=t[a[s]]}return i};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var a=0,s=e.length,r;a<s;a++){if(r||!(a in e)){if(!r)r=Array.prototype.slice.call(e,0,a);r[a]=e[a]}}return t.concat(r||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement,f as forceUpdate,F as Fragment}from"./index-bfb5b569.js";import{m as media,a as addMediaChangeListener,r as removeMediaChangeListener}from"./media-utils-ee5a59fa.js";import{s as setPropsIfNull,h as hasSlot}from"./utils-8bb4c3c6.js";import"./string-utils-e252977e.js";var stzhActionsetCss=".sc-stzh-actionset-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-actionset-h{display:none}.sc-stzh-actionset-h *.sc-stzh-actionset,.sc-stzh-actionset-h *.sc-stzh-actionset::before,.sc-stzh-actionset-h *.sc-stzh-actionset::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-actionset-h .has-focus.sc-stzh-actionset{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-actionset-h .stzh-fylingfocus-focused.sc-stzh-actionset{outline-style:none !important}.sc-stzh-actionset-h .stzh-fylingfocus-focused.sc-stzh-actionset::-moz-focus-inner{border:0 !important}.stzh-actionset__actions.sc-stzh-actionset{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.stzh-actionset__actions-wrapper.sc-stzh-actionset{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden}.stzh-actionset__action.sc-stzh-actionset:not(:last-child){margin-right:var(--stzh-space-xsmall)}.stzh-actionset__action-popover.sc-stzh-actionset{opacity:0}.stzh-actionset--has-collapsed-items.sc-stzh-actionset .stzh-actionset__action-popover.sc-stzh-actionset{--width:auto;opacity:1}@media screen and (min-width: 1024px){.stzh-actionset--overflow.sc-stzh-actionset .stzh-actionset__action.sc-stzh-actionset{--white-space:nowrap}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__actions.sc-stzh-actionset{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__actions-wrapper.sc-stzh-actionset{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}@media screen and (min-width: 600px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action.sc-stzh-actionset{--white-space:nowrap}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action.sc-stzh-actionset:not(:last-child){margin-bottom:var(--stzh-space-xsmall);margin-right:0}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action-popover.sc-stzh-actionset{margin-top:var(--stzh-space-xsmall)}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset:not(.stzh-actionset--has-collapsed-items) .stzh-actionset__action-popover.sc-stzh-actionset{display:none}}";var StzhActionset=function(){function t(t){var e=this;registerInstance(this,t);this.stzhActionClick=createEvent(this,"stzhActionClick",7);this._actions=[];this.actionClick=function(t,i){e.stzhActionClick.emit({component:"stzh-actionset",action:t,originalEvent:i})};this.update=function(){e.isSmall=media("small").matches;e.isMedium=media("medium").matches;if(!e.actionsElement){return}Object.assign(e.actionsElement.style,{width:null,height:null});var t=0;if(e.variant==="overflow"&&e.isMedium||e.variant==="stack"&&e.isSmall){e.dynamicActions=true;var i=0;var a=0;Array.from(e.actionsElement.children).forEach((function(e){if(e.offsetTop===0){t++;var s=getComputedStyle(e);var r=parseInt(s.marginLeft);var n=parseInt(s.marginRight);var o=parseInt(s.marginTop);var l=parseInt(s.marginBottom);var c=e.offsetWidth+r+n;var h=e.offsetHeight+o+l;if(i<h){i=h}a=a+c+1}}));Object.assign(e.actionsElement.style,{width:"".concat(a,"px"),height:"".concat(i,"px")})}else{e.dynamicActions=false;if(e.variant==="overflow"){t=0}else if(e.variant==="stack"){t=e._actions.length<=3?e._actions.length:2}}e.actionsCollapsed=e._actions.slice(t)};this.handleResize=function(){if(e.debounceResize){window.cancelAnimationFrame(e.debounceResize)}e.debounceResize=requestAnimationFrame(e.update)};this.mediaChangeHandler=function(){e.actionsCollapsed=[];requestAnimationFrame(e.update)};this.localization=undefined;this.variant="stack";this.popoverButtonVariant="";this.popoverButtonSize="";this.popoverPlacement="bottom-end";this.actions=[];this.actionsCollapsed=[];this.dynamicActions=undefined;this.isSmall=undefined;this.isMedium=undefined}t.prototype.actionsWatcher=function(t){if(typeof t==="string"){this._actions=JSON.parse(t)}else{this._actions=t}};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.actionsWatcher(this.actions);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"actionset")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.connectedCallback=function(){addMediaChangeListener(this.mediaChangeHandler);this.resizeObserver=new ResizeObserver(this.handleResize);this.resizeObserver.observe(this.element)};t.prototype.disconnectedCallback=function(){removeMediaChangeListener(this.mediaChangeHandler);if(this.resizeObserver){this.resizeObserver.disconnect()}};t.prototype.componentDidLoad=function(){this.update()};t.prototype.render=function(){var t;var e=this;var i=(t={"stzh-actionset":true,"stzh-actionset--has-collapsed-items":this.actionsCollapsed.length>0},t["stzh-actionset--".concat(this.variant)]=!!this.variant,t);var a=function(t){return h("stzh-button",{class:{"stzh-actionset__action":true,"is-button":true},icon:t.icon,iconPosition:t.iconPosition,iconOnly:t.iconOnly,badge:t.badge,variant:t.variant?t.variant:e.variant==="stack"?"secondary":"tertiary",size:t.size?t.size:e.variant==="stack"?"default":"tiny",badgePosition:"icon",onClick:function(i){e.actionClick(t,i)}},h("span",{class:{}},t.label))};return h(Host,{"has-collapsed-items":this.actionsCollapsed.length>0},h("div",{class:i},h("div",{class:"stzh-actionset__actions",role:"group"},h("div",{ref:function(t){return e.actionsElement=t},class:"stzh-actionset__actions-wrapper"},this._actions.map((function(t){return(e.dynamicActions||!e.dynamicActions&&e.actionsCollapsed.indexOf(t)===-1)&&(t.tooltipContent?h("stzh-tooltip",{strategy:"fixed",content:t.tooltipContent},a(t)):a(t))}))),h("stzh-popover",{label:this.variant==="stack"?this.localization.furtherActions:!this.isMedium?this.localization.actions:"",strategy:"fixed",placement:this.popoverPlacement,class:"stzh-actionset__action-popover"},h("stzh-button",{fullwidth:true,disabled:this.actionsCollapsed.length===0,class:"stzh-actionset__action is-further",variant:this.popoverButtonVariant!==""?this.popoverButtonVariant:this.variant==="stack"?"secondary":"tertiary",size:this.popoverButtonSize!==""?this.popoverButtonSize:this.variant==="stack"?"default":"tiny",icon:this.variant==="stack"?"angle-down":"more-vertical",iconOnly:this.variant==="overflow"&&this.isMedium,iconPosition:"right",label:this.variant==="stack"?this.localization.furtherActions:!this.isMedium?this.localization.actions:""}),h("stzh-menu",{slot:"content"},this.actionsCollapsed.map((function(t){return h("stzh-menu-item",{icon:t.icon,badge:t.badge,badgeEmpty:t.badgeEmpty,badgeType:t.badgeType,onClick:function(i){e.actionClick(t,i)}},t.label)})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{actions:["actionsWatcher"]}},enumerable:false,configurable:true});return t}();StzhActionset.style=stzhActionsetCss;var stzhCardCss='.sc-stzh-card-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-card-h{display:none}.sc-stzh-card-h *.sc-stzh-card,.sc-stzh-card-h *.sc-stzh-card::before,.sc-stzh-card-h *.sc-stzh-card::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-card-h .has-focus.sc-stzh-card{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-card-h .stzh-fylingfocus-focused.sc-stzh-card{outline-style:none !important}.sc-stzh-card-h .stzh-fylingfocus-focused.sc-stzh-card::-moz-focus-inner{border:0 !important}.sc-stzh-card-h{--box-shadow:var(--stzh-box-shadow-popover);--border-color:var(--stzh-base-border-color);--border-radius:0.1875rem;--content-min-height:7.5rem;--dnd-visibility:hidden;--dnd-opacity:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;border-radius:var(--border-radius)}@media print{.sc-stzh-card-h{page-break-inside:avoid;-moz-column-break-inside:avoid;-webkit-column-break-inside:avoid;break-inside:avoid}}[collapsed].sc-stzh-card-h:not([collapsed=false]){--content-min-height:none}[checked].sc-stzh-card-h:not([checked=false]){outline:0.1875rem solid var(--stzh-color-primary, var(--stzh-color-zueriblue))}[hide-elevation].sc-stzh-card-h:not([hide-elevation=false]){--box-shadow:none}[hide-elevation].sc-stzh-card-h:not([hide-elevation=false])[href]:hover,[hide-elevation].sc-stzh-card-h:not([hide-elevation=false])[href]:focus-within,[hide-elevation].sc-stzh-card-h:not([hide-elevation=false]).is-selected,[hide-elevation].sc-stzh-card-h:not([hide-elevation=false]).is-chosen,.is-selected [hide-elevation].sc-stzh-card-h:not([hide-elevation=false]),.is-chosen [hide-elevation].sc-stzh-card-h:not([hide-elevation=false]){--box-shadow:var(--stzh-box-shadow-popover)}.is-ghost.sc-stzh-card-h::after,.is-ghost .sc-stzh-card-h::after{border-radius:var(--border-radius)}[href].sc-stzh-card-h:hover,[href].sc-stzh-card-h:focus-within,.is-selected.sc-stzh-card-h,.is-chosen.sc-stzh-card-h,.is-selected .sc-stzh-card-h,.is-chosen .sc-stzh-card-h{--box-shadow:var(--stzh-box-shadow-overlay)}.is-ghost.sc-stzh-card-h,.is-ghost .sc-stzh-card-h{--box-shadow:none;--border-color:transparent;overflow:hidden}.is-drag.sc-stzh-card-h,.is-chosen.sc-stzh-card-h,.is-ghost.sc-stzh-card-h,.is-selected.sc-stzh-card-h,.is-drag .sc-stzh-card-h,.is-chosen .sc-stzh-card-h,.is-ghost .sc-stzh-card-h,.is-selected .sc-stzh-card-h,[is-sortable].sc-stzh-card-h:hover{--dnd-visibility:visible;--dnd-opacity:1}.sc-stzh-card-h .sc-stzh-card-s>*{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing)}.sc-stzh-card-h .sc-stzh-card-s>[slot=image]{width:100%;max-width:100%;background-color:var(--stzh-color-grey13)}.sc-stzh-card-h .sc-stzh-card-s>img[slot=image]{display:block}.sc-stzh-card-h .sc-stzh-card-s>[slot=meta]:not(:last-child){margin-right:var(--stzh-space-xsmall)}.sc-stzh-card-h .sc-stzh-card-s>table{border:0;border-spacing:0}.sc-stzh-card-h .sc-stzh-card-s>table th{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular)}.sc-stzh-card-h .sc-stzh-card-s>table td,.sc-stzh-card-h .sc-stzh-card-s>table th{padding:0}.sc-stzh-card-h .sc-stzh-card-s>table td{color:var(--stzh-color-black);padding-left:var(--stzh-space-xsmall)}.sc-stzh-card-h .sc-stzh-card-s>[slot=heading],.stzh-card__title.sc-stzh-card{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy);font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-default-heading-letter-spacing)}@media screen and (min-width: 600px){.sc-stzh-card-h .sc-stzh-card-s>[slot=heading],.stzh-card__title.sc-stzh-card{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-small-heading-letter-spacing)}}@media screen and (min-width: 1024px){.sc-stzh-card-h .sc-stzh-card-s>[slot=heading],.stzh-card__title.sc-stzh-card{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-heading-line-height, var(--stzh-font-regular-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-heading-letter-spacing)}}.stzh-card.sc-stzh-card{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--stzh-color-white);border-radius:var(--border-radius);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);border-width:0.0625rem;border-style:solid;border-color:var(--border-color);-webkit-transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed), -webkit-box-shadow var(--stzh-base-transition-animation-speed)}@media screen and (max-width: 1023px){.stzh-card.sc-stzh-card .vshow-medium.sc-stzh-card{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}}@media screen and (max-width: 1023px){.stzh-card.sc-stzh-card .show-medium.sc-stzh-card{display:none}}@media screen and (min-width: 1024px){.stzh-card.sc-stzh-card .hide-medium.sc-stzh-card{display:none}}.stzh-card__content-wrapper.sc-stzh-card{position:relative;-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:var(--content-min-height)}.stzh-card__dnd.sc-stzh-card{--size:var(--stzh-icon-size-xsmall);position:absolute;left:0.1875rem;top:1.4375rem;display:-ms-flexbox;display:flex;visibility:var(--dnd-visibility);opacity:var(--dnd-opacity);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);display:none}@media screen and (min-width: 1024px){.stzh-card__dnd.sc-stzh-card{display:block}}@media screen and (min-width: 1260px){.stzh-card__dnd.sc-stzh-card{left:0.25rem;top:1.6875rem}}.stzh-card__header-top.sc-stzh-card{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}.stzh-card__header-meta.sc-stzh-card:not(:empty){display:-ms-inline-flexbox;display:inline-flex;margin-top:var(--stzh-space-xsmall)}.stzh-card__header-left.sc-stzh-card,.stzh-card__header-right.sc-stzh-card{display:-ms-flexbox;display:flex}.stzh-card__header-right.sc-stzh-card{padding-left:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-card__header-right.sc-stzh-card{padding-left:var(--stzh-space-small)}}@media screen and (min-width: 1260px){.stzh-card__header-right.sc-stzh-card{padding-left:var(--stzh-space-medium)}}.stzh-card__left.sc-stzh-card{-ms-flex-item-align:center;align-self:center}.stzh-card__title-area.sc-stzh-card{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden}.stzh-card__title.sc-stzh-card,.stzh-card__subtitle.sc-stzh-card{margin:0}.stzh-card__title-link.sc-stzh-card{color:inherit;-webkit-text-decoration-line:none;text-decoration-line:none}.stzh-card__image-link.sc-stzh-card{display:block}.stzh-card__subtitle.sc-stzh-card{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-text-decoration-line:none;text-decoration-line:none;margin-left:-0.5625em}@media screen and (min-width: 1024px){.stzh-card__subtitle.sc-stzh-card{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-card__subtitle-text.sc-stzh-card{position:relative;display:-ms-inline-flexbox;display:inline-flex;padding-left:0.5625em}.stzh-card__subtitle-text.sc-stzh-card::after{content:",";position:absolute;left:0}.stzh-card__content.sc-stzh-card{-ms-flex-positive:1;flex-grow:1}.stzh-card__content.sc-stzh-card:not(:empty){padding:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-card__content.sc-stzh-card:not(:empty){padding:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card__content.sc-stzh-card:not(:empty){padding:var(--stzh-space-xlarge)}}.stzh-card__footer-arrow.sc-stzh-card{--size:var(--stzh-icon-size-medium);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-card__card-actions.sc-stzh-card{display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}@media screen and (max-width: 1023px){.stzh-card__card-action.sc-stzh-card{--icon-text-margin:0px;--badge-icon-text-margin:0px}}.stzh-card__card-action[variant=tertiary].sc-stzh-card{--color:var(--stzh-color-grey70)}.stzh-card__card-action.is-button.sc-stzh-card{--icon-size:var(--stzh-icon-size-small)}.stzh-card__card-action.is-placeholder.sc-stzh-card{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge)}.stzh-card__card-action-popover.sc-stzh-card{--width:auto}.stzh-card--has-header.sc-stzh-card .stzh-card__header.sc-stzh-card{padding:var(--stzh-space-medium);border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 1024px){.stzh-card--has-header.sc-stzh-card .stzh-card__header.sc-stzh-card{padding:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card--has-header.sc-stzh-card .stzh-card__header.sc-stzh-card{padding:var(--stzh-space-xlarge)}}.stzh-card--has-footer.sc-stzh-card .stzh-card__footer.sc-stzh-card:not(:empty){padding:var(--stzh-space-medium);border-top:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 1024px){.stzh-card--has-footer.sc-stzh-card .stzh-card__footer.sc-stzh-card:not(:empty){padding:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card--has-footer.sc-stzh-card .stzh-card__footer.sc-stzh-card:not(:empty){padding:var(--stzh-space-xlarge)}}.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card{color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-text-decoration-line:none;text-decoration-line:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card::before,.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card::after{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%}.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card::after{z-index:1}.stzh-card--has-link.sc-stzh-card .stzh-card__card-actions.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__header-meta.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__footer-actionset.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__footer-select-button.sc-stzh-card{position:relative;z-index:2}.stzh-card--has-link.sc-stzh-card .stzh-card__image-link.sc-stzh-card:hover+.stzh-card__content-wrapper.sc-stzh-card .stzh-card__title-link.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card:hover,.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--has-link.sc-stzh-card:hover .stzh-card__footer-arrow.sc-stzh-card{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--has-subtitle-interactive.sc-stzh-card .stzh-card__subtitle.sc-stzh-card{cursor:pointer;font-family:inherit;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-card--has-subtitle-interactive.sc-stzh-card .stzh-card__subtitle.sc-stzh-card:hover,.stzh-card--has-subtitle-interactive.sc-stzh-card .stzh-card__subtitle.sc-stzh-card:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--is-collapsible.sc-stzh-card .stzh-card__header.sc-stzh-card{cursor:pointer}.stzh-card--is-collapsed.sc-stzh-card .vhide-when-collapsed.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__header.sc-stzh-card .vhide-when-collapsed.sc-stzh-card{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-card--is-collapsed.sc-stzh-card .hide-when-collapsed.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__header.sc-stzh-card .hide-when-collapsed.sc-stzh-card{display:none}.stzh-card--is-collapsed.sc-stzh-card .show-when-collapsed.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__header.sc-stzh-card .show-when-collapsed.sc-stzh-card{display:block}.stzh-card--is-collapsed.sc-stzh-card .stzh-card__header.sc-stzh-card{border-bottom:none}.stzh-card--is-collapsed.sc-stzh-card .stzh-card__card-action.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__card-action.sc-stzh-card{--icon-text-margin:0px;--badge-icon-text-margin:0px}.stzh-card--is-starred.sc-stzh-card .stzh-card__card-action.is-star.sc-stzh-card{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-card--is-starred.sc-stzh-card .stzh-card__card-action.is-star.sc-stzh-card:hover,.stzh-card--is-starred.sc-stzh-card .stzh-card__card-action.is-star.sc-stzh-card:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--has-hidden-header-border.sc-stzh-card .stzh-card__header.sc-stzh-card{border-bottom:none;padding-bottom:0}.stzh-card--has-hidden-footer-border.sc-stzh-card .stzh-card__footer.sc-stzh-card:not(:empty){padding-top:0;border-top:none}';var StzhCard=function(){function t(t){var e=this;registerInstance(this,t);this.stzhClick=createEvent(this,"stzhClick",7);this.stzhCollapse=createEvent(this,"stzhCollapse",7);this.stzhSubtitleClick=createEvent(this,"stzhSubtitleClick",7);this.stzhStarClick=createEvent(this,"stzhStarClick",7);this.stzhHeaderActionClick=createEvent(this,"stzhHeaderActionClick",7);this._subtitles=[];this.nodeChange=function(t){var i=false;t.forEach((function(t){if(t.target.closest("[slot]")||t.target.hasAttribute("slot")){i=true}}));if(i){forceUpdate(e.element)}};this.update=function(){if(!e.mainElement){return}e.mainElement.classList.remove("stzh-card--has-collapsed-header");if(media("medium").matches){var t=e.headerElement.clientWidth;var i=e.headerLeftElement.clientWidth;var a=e.headerRightElement.clientWidth;if(t-i<=a){e.mainElement.classList.add("stzh-card--has-collapsed-header")}}};this.headerClick=function(t){if(!e.collapsible){return}var i=["stzh-popover","stzh-tooltip","button","a","input","select","textarea","iframe","details","label","area"];var a=t.composedPath().map((function(t){var e;return(e=t.tagName)===null||e===void 0?void 0:e.toLowerCase()}));var s=a.some((function(t){return i.includes(t)}));if(!s){e.collapsed=!e.collapsed;e.stzhCollapse.emit({component:"stzh-card",collapsed:e.collapsed})}};this.subtitleClick=function(){if(e.subtitleInteractive){e.stzhSubtitleClick.emit({component:"stzh-card"})}};this.starToggleClick=function(){e.stzhStarClick.emit({component:"stzh-card",starred:e.starred})};this.actionClick=function(t){e.stzhHeaderActionClick.emit({component:"stzh-card",action:t})};this.arrowUpClick=function(){var t=e.element.closest("stzh-sortable");if(t){var i=e.findSortableChildElement();t.moveItem(i,"up")}};this.arrowDownClick=function(){var t=e.element.closest("stzh-sortable");if(t){var i=e.findSortableChildElement();t.moveItem(i,"down")}};this.updateElementInsideSortable=function(){var t=e.element.closest("stzh-sortable");if(!t){e.sortable.removeEventListener("stzhUpdate",e.updateElementInsideSortable);e.sortable.removeEventListener("stzhDisable",e.updateElementInsideSortable);return}if(e.element){forceUpdate(e.element)}};this.init=function(){var t=e.element.querySelectorAll('stzh-chip[slot="meta"], [slot="meta"] stzh-chip');t.forEach((function(t){setPropsIfNull(t,{size:"small"})}))};this.handleResize=function(){if(e.debounceResize){window.cancelAnimationFrame(e.debounceResize)}e.debounceResize=requestAnimationFrame(e.update)};this.handleMutation=function(t){e.init();e.nodeChange(t)};this.handleSelectionChange=function(t){e.checked=t.detail.checked};this.cardClick=function(t){e.stzhClick.emit({component:"stzh-card",originalEvent:t})};this.localization=undefined;this.collapsed=false;this.starred=false;this.starrable=false;this.selectable=false;this.checked=false;this.name="";this.href=undefined;this.target=undefined;this.value="";this.disabled=false;this.withArrow=false;this.heading="";this.subtitle="";this.headerActions=[];this.footerActions=[];this.subtitleInteractive=false;this.sortableDisabled=false;this.collapsible=false;this.hideHeaderBorder=false;this.hideFooterBorder=false;this.hideElevation=false;this.hideMovementActions=false;this.analyticsId=undefined}t.prototype.subtitleWatcher=function(t){if(typeof t==="string"){if(t===""){this._subtitles=[]}else{try{this._subtitles=JSON.parse(t)}catch(e){this._subtitles=[t]}}}else{this._subtitles=t}};t.prototype.headerActionsWatcher=function(t){if(typeof t==="string"){this._headerActions=JSON.parse(t)}else{this._headerActions=t}};t.prototype.footerActionsWatcher=function(t){if(typeof t==="string"){this._footerActions=JSON.parse(t)}else{this._footerActions=t}};t.prototype.collapsedWatcher=function(){this.handleResize()};t.prototype.findSortableChildElement=function(){var t=this.element.closest("stzh-sortable");if(t){var e=this.element;var i=null;if(typeof t.container==="function"){i=t.container()}else{i=t.container}while(e.parentElement&&e.parentElement!==i){e=e.parentElement}return e}};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.subtitleWatcher(this.subtitle);this.headerActionsWatcher(this.headerActions);this.footerActionsWatcher(this.footerActions);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"card")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.sortable=this.element.closest("stzh-sortable");if(this.sortable){this.sortable.addEventListener("stzhUpdate",this.updateElementInsideSortable);this.sortable.addEventListener("stzhDisable",this.updateElementInsideSortable)}};t.prototype.componentDidRender=function(){var t=this;requestAnimationFrame((function(){var e,i,a;var s=t.analyticsId||((e=t.headingTextElement)===null||e===void 0?void 0:e.innerText);if(s){(i=t.imageLinkElement)===null||i===void 0?void 0:i.setAttribute("s-object-id",s);(a=t.titleLinkElement)===null||a===void 0?void 0:a.setAttribute("s-object-id",s)}}))};t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.handleMutation);this.observer.observe(this.element,{childList:true,subtree:true});this.resizeObserver=new ResizeObserver(this.handleResize);this.resizeObserver.observe(this.element)};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}if(this.resizeObserver){this.resizeObserver.disconnect()}};t.prototype.render=function(){var t=this;var e,i,a;var s=hasSlot(this.element,"image");var r=hasSlot(this.element,"heading");var n=hasSlot(this.element,"content");var o="".concat(this.subtitleInteractive?"button":"span");var l=this.findSortableChildElement();var c=(l===null||l===void 0?void 0:l.parentElement)&&Array.from((e=l===null||l===void 0?void 0:l.parentElement)===null||e===void 0?void 0:e.children).indexOf(l)===0;var d=(l===null||l===void 0?void 0:l.parentElement)&&Array.from((i=l===null||l===void 0?void 0:l.parentElement)===null||i===void 0?void 0:i.children).indexOf(l)===((a=l===null||l===void 0?void 0:l.parentElement)===null||a===void 0?void 0:a.children.length)-1;var u=!this.sortableDisabled&&this.sortable&&!this.sortable.disabled;var f=u&&!this.hideMovementActions;var p=this._headerActions.filter((function(t){return!t.onlyCollapseText}));var g=!!this.heading||r;var m=g||this._subtitles.length>0||this._headerActions.length>0||p.length>0||this.starrable||f;var v=this._footerActions.length>0||this.selectable||this.withArrow;var b={"stzh-card":true,"stzh-card--has-link":!!this.href,"stzh-card--has-image":s,"stzh-card--has-content":n,"stzh-card--has-subtitle":!!this.subtitle,"stzh-card--has-subtitle-interactive":!!this.subtitle&&this.subtitleInteractive,"stzh-card--has-hidden-header-border":this.hideHeaderBorder,"stzh-card--has-hidden-footer-border":this.hideFooterBorder,"stzh-card--has-header":m,"stzh-card--has-footer":v,"stzh-card--is-collapsible":this.collapsible,"stzh-card--is-collapsed":this.collapsed,"stzh-card--is-starred":this.starred,"stzh-card--is-checked":this.checked,"stzh-card--is-sortable":u};return h(Host,{role:"listitem","aria-label":this.heading,"is-sortable":u},h("article",{ref:function(e){return t.mainElement=e},class:b},h("a",{ref:function(e){return t.imageLinkElement=e},"aria-hidden":"true",tabindex:"-1",class:"stzh-card__image-link",href:this.href,target:this.target,onClick:this.href?this.cardClick:null},h("slot",{name:"image"})),h("div",{class:"stzh-card__content-wrapper"},h("stzh-icon",{class:"stzh-card__dnd",name:"drag"}),h("header",{ref:function(e){return t.headerElement=e},class:"stzh-card__header",onClick:this.headerClick},h("div",{class:"stzh-card__header-top"},h("div",{ref:function(e){return t.headerLeftElement=e},class:"stzh-card__header-left"},h("div",{class:"stzh-card__title-area"},g&&h("h3",{class:"stzh-card__title"},h("a",{ref:function(e){return t.titleLinkElement=e},class:"stzh-card__title-link",href:this.href,target:this.target,onClick:this.href?this.cardClick:null},h("div",{ref:function(e){return t.headingTextElement=e}},this.heading?this.heading:h("slot",{name:"heading"})))),this._subtitles.length>0&&h(o,{class:"stzh-card__subtitle",onClick:this.subtitleClick},this._subtitles.map((function(t){return h("span",{class:"stzh-card__subtitle-text"},t)}))))),h("div",{ref:function(e){return t.headerRightElement=e},class:"stzh-card__header-right"},h("div",{class:"stzh-card__card-actions"},this._headerActions.map((function(e){return h("stzh-button",{class:{"stzh-card__card-action":true,"is-button":true,"show-medium":!e.onlyCollapseText,"hide-when-collapsed":!e.onlyCollapseText,"hide-text-when-collapsed":e.onlyCollapseText},icon:e.icon,badge:e.badge,badgeEmpty:e.badgeEmpty,badgeType:e.badgeType,variant:"tertiary",size:"tiny",badgePosition:"icon",onClick:function(){t.actionClick(e)}},h("span",{class:{"vshow-medium":e.onlyCollapseText,"vhide-when-collapsed":e.onlyCollapseText}},e.label))})),this.starrable&&h("stzh-tooltip",null,h("stzh-button",{class:"stzh-card__card-action is-star",icon:this.starred?"star-filled":"star",variant:"tertiary",size:"tiny",iconOnly:true,onClick:this.starToggleClick}),h("div",{slot:"content"},this.starred?this.localization.actionRemove:this.localization.actionAdd)),(p.length>0||this.starrable||f)&&h("stzh-popover",{label:this.localization.actionsPopoverLabel,placement:"bottom-end",class:{"stzh-card__card-action-popover":true,"hide-medium show-when-collapsed":!this.starrable&&!f}},h("stzh-button",{class:"stzh-card__card-action is-further",variant:"tertiary",size:"tiny",icon:"more-vertical",iconOnly:true}),h("stzh-menu",{slot:"content"},this.starrable&&h("stzh-menu-item",{icon:this.starred?"star-filled":"star",onClick:this.starToggleClick},this.starred?this.localization.actionRemove:this.localization.actionAdd),p.map((function(e){return h("stzh-menu-item",{class:"hide-medium show-when-collapsed",icon:e.icon,badge:e.badge,badgeEmpty:e.badgeEmpty,badgeType:e.badgeType,onClick:function(){t.actionClick(e)}},e.label)})),f&&h(Fragment,null,!c&&h("stzh-menu-item",{icon:"arrow-up",onClick:this.arrowUpClick},this.localization.actionMoveUp),!d&&h("stzh-menu-item",{icon:"arrow-down",onClick:this.arrowDownClick},this.localization.actionMoveDown))))))),h("div",{class:"stzh-card__header-meta"},h("slot",{name:"meta"}))),h("div",{class:"stzh-card__content hide-when-collapsed"},h("slot",{name:"content"})),h("div",{class:"stzh-card__footer hide-when-collapsed"},h("slot",{name:"footer"},this._footerActions.length>0&&h("stzh-actionset",{class:"stzh-card__footer-actionset",actions:this._footerActions}),this.selectable&&h("stzh-button",{class:"stzh-card__footer-select-button",fullwidth:true,type:"radio",variant:"secondary",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,label:this.localization.select,onStzhChange:this.handleSelectionChange}),this.withArrow&&h("stzh-icon",{class:"stzh-card__footer-arrow",name:"arrow-right-long"}))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{subtitle:["subtitleWatcher"],headerActions:["headerActionsWatcher"],footerActions:["footerActionsWatcher"],collapsed:["collapsedWatcher"]}},enumerable:false,configurable:true});return t}();StzhCard.style=stzhCardCss;var stzhCardListCss=".sc-stzh-card-list-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-card-list-h{display:none}.sc-stzh-card-list-h *.sc-stzh-card-list,.sc-stzh-card-list-h *.sc-stzh-card-list::before,.sc-stzh-card-list-h *.sc-stzh-card-list::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-card-list-h .has-focus.sc-stzh-card-list{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-card-list-h .stzh-fylingfocus-focused.sc-stzh-card-list{outline-style:none !important}.sc-stzh-card-list-h .stzh-fylingfocus-focused.sc-stzh-card-list::-moz-focus-inner{border:0 !important}.sc-stzh-card-list-h .sc-stzh-card-list-s>[slot=description] stzh-icon{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.sc-stzh-card-list-h .sc-stzh-card-list-s>stzh-text[slot=description]{--color:inherit}.stzh-card-list__cards.sc-stzh-card-list{display:grid;gap:var(--stzh-grid-gutter)}@media screen and (min-width: 600px){.stzh-card-list__cards.sc-stzh-card-list{gap:var(--stzh-grid-gutter-small)}}@media screen and (min-width: 1024px){.stzh-card-list__cards.sc-stzh-card-list{gap:var(--stzh-grid-gutter-medium)}}.stzh-card-list__header.sc-stzh-card-list{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}@media screen and (min-width: 800px){.stzh-card-list__header.sc-stzh-card-list{-ms-flex-direction:row;flex-direction:row}}.stzh-card-list__description.sc-stzh-card-list{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);color:var(--stzh-base-lead-color)}@media screen and (min-width: 1024px){.stzh-card-list__description.sc-stzh-card-list{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-card-list__description.sc-stzh-card-list:not(:empty){margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 800px){.stzh-card-list__description.sc-stzh-card-list:not(:empty){margin-bottom:0}}.stzh-card-list__switch.sc-stzh-card-list{--color:var(--stzh-base-lead-color);-ms-flex-item-align:end;align-self:end}.stzh-card-list--has-header.sc-stzh-card-list .stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-card-list--has-header.sc-stzh-card-list .stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card-list--has-header.sc-stzh-card-list .stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 600px){.stzh-card-list--layout-subpages.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media screen and (min-width: 1024px){.stzh-card-list--layout-subpages.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{grid-template-columns:repeat(3, minmax(0, 1fr))}}.stzh-card-list--layout-fullwidth.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{gap:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-card-list--layout-fullwidth.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{gap:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card-list--layout-fullwidth.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{gap:var(--stzh-space-xlarge)}}";var StzhCardList=function(){function t(t){var e=this;registerInstance(this,t);this.stzhCollapseAll=createEvent(this,"stzhCollapseAll",7);this.collapseClick=function(){var t=Array.from(e.element.querySelectorAll("stzh-card"));t.forEach((function(t){if(t.collapsible){t.collapsed=!e.allCollapsed}}));e.allCollapsed=!e.allCollapsed;e.stzhCollapseAll.emit({component:"stzh-card-list",allCollapsed:e.allCollapsed})};this.updateCollapsedState=function(){var t=Array.from(e.element.querySelectorAll("stzh-card"));e.allCollapsed=!t.some((function(t){return!t.collapsed}))};this.sortableGhostClone=function(t){if(t&&t.tagName.toLowerCase()==="stzh-card"){var e=t;var i=t.cloneNode(true);i.heading=e.heading;i.subtitle=e.subtitle;i.headerActions=e.headerActions;i.footerActions=e.footerActions;i.hideMovementActions=e.hideMovementActions;return i}};this.localization=undefined;this.layout="fullwidth";this.description=undefined;this.showToggleLink=false;this.sortableEnabled=false;this.sortableDataIdAttribute="data-id";this.allCollapsed=false}t.prototype.collapseListener=function(){this.updateCollapsedState()};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"card-list")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.updateCollapsedState()};t.prototype.render=function(){var t;var e=hasSlot(this.element,"description")||!!this.description;var i=(t={"stzh-card-list":true,"stzh-card-list--has-header":this.showToggleLink||e},t["stzh-card-list--layout-".concat(this.layout)]=!!this.layout,t);return h(Host,null,h("div",{class:i},h("div",{class:"stzh-card-list__header"},h("div",{class:"stzh-card-list__description"},this.description?this.description:h("slot",{name:"description"})),this.showToggleLink&&h("stzh-link",{class:"stzh-card-list__switch",icon:this.allCollapsed?"list-expanded":"list-shrinked",label:this.allCollapsed?this.localization.expandAll:this.localization.collapseAll,onClick:this.collapseClick})),h("stzh-sortable",{disabled:!this.sortableEnabled,dataIdAttribute:this.sortableDataIdAttribute,ghostClone:this.sortableGhostClone},h("div",{class:"stzh-card-list__cards",role:"list"},h("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhCardList.style=stzhCardListCss;var t=function(t){return"object"==typeof t&&null!=t&&1===t.nodeType},e$1=function(t,e){return(!e||"hidden"!==t)&&("visible"!==t&&"clip"!==t)},n=function(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var i=getComputedStyle(t,null);return e$1(i.overflowY,e)||e$1(i.overflowX,e)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1},o$1=function(t,e,i,a,s,r,n,o){return r<t&&n>e||r>t&&n<e?0:r<=t&&o<=i||n>=e&&o>=i?r-t-a:n>e&&o<i||r<t&&o>i?n-e+s:0},i=function(t){var e=t.parentElement;return null==e?t.getRootNode().host||null:e},l=function(e,a){var s,r,o,l;if("undefined"==typeof document)return[];var c=a.scrollMode,h=a.block,d=a.inline,u=a.boundary,f=a.skipOverflowHiddenElements,p="function"==typeof u?u:function(t){return t!==u};if(!t(e))throw new TypeError("Invalid target");var g=document.scrollingElement||document.documentElement,m=[];var v=e;for(;t(v)&&p(v);){if(v=i(v),v===g){m.push(v);break}null!=v&&v===document.body&&n(v)&&!n(document.documentElement)||null!=v&&n(v,f)&&m.push(v)}var b=null!=(r=null==(s=window.visualViewport)?void 0:s.width)?r:innerWidth,z=null!=(l=null==(o=window.visualViewport)?void 0:o.height)?l:innerHeight,E=window.scrollX,_=window.scrollY,w=e.getBoundingClientRect(),y=w.height,x=w.width,S=w.top,C=w.right,D=w.bottom,k=w.left;var I="start"===h||"nearest"===h?S:"end"===h?D:S+y/2,A="center"===d?k+x/2:"end"===d?C:k;var T=[];for(var O=0;O<m.length;O++){var M=m[O],R=M.getBoundingClientRect(),P=R.height,N=R.width,L=R.top,F=R.right,W=R.bottom,H=R.left;if("if-needed"===c&&S>=0&&k>=0&&D<=z&&C<=b&&S>=L&&D<=W&&k>=H&&C<=F)return T;var B=getComputedStyle(M),X=parseInt(B.borderLeftWidth,10),Y=parseInt(B.borderTopWidth,10),$=parseInt(B.borderRightWidth,10),j=parseInt(B.borderBottomWidth,10);var G=0,U=0;var K="offsetWidth"in M?M.offsetWidth-M.clientWidth-X-$:0,q="offsetHeight"in M?M.offsetHeight-M.clientHeight-Y-j:0,V="offsetWidth"in M?0===M.offsetWidth?0:N/M.offsetWidth:0,J="offsetHeight"in M?0===M.offsetHeight?0:P/M.offsetHeight:0;if(g===M)G="start"===h?I:"end"===h?I-z:"nearest"===h?o$1(_,_+z,z,Y,j,_+I,_+I+y,y):I-z/2,U="start"===d?A:"center"===d?A-b/2:"end"===d?A-b:o$1(E,E+b,b,X,$,E+A,E+A+x,x),G=Math.max(0,G+_),U=Math.max(0,U+E);else{G="start"===h?I-L-Y:"end"===h?I-W+j+q:"nearest"===h?o$1(L,W,P,Y,j+q,I,I+y,y):I-(L+P/2)+q/2,U="start"===d?A-H-X:"center"===d?A-(H+N/2)+K/2:"end"===d?A-F+$+K:o$1(H,F,N,X,$+K,A,A+x,x);var Z=M.scrollLeft,Q=M.scrollTop;G=Math.max(0,Math.min(Q+G/J,M.scrollHeight-P/J+q)),U=Math.max(0,Math.min(Z+U/V,M.scrollWidth-N/V+K)),I+=Q-G,A+=Z-U}T.push({el:M,top:G,left:U})}return T};var o=function(t){return!1===t?{block:"end",inline:"nearest"}:function(t){return t===Object(t)&&0!==Object.keys(t).length}(t)?t:{block:"start",inline:"nearest"}};function e(t,e){if(!t.isConnected||!function(t){var e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1}(t))return;var i=function(t){var e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}}(t);if(function(t){return"object"==typeof t&&"function"==typeof t.behavior}(e))return e.behavior(l(t,e));var a="boolean"==typeof e||null==e?void 0:e.behavior;for(var s=0,r=l(t,o(e));s<r.length;s++){var n=r[s],c=n.el,h=n.top,d=n.left;var u=h-i.top+i.bottom,f=d-i.left+i.right;c.scroll({top:u,left:f,behavior:a})}}
2
2
  /**!
3
3
  * Sortable 1.15.0
4
4
  * @author RubaXa <trash@rubaxa.org>
5
5
  * @author owenm <owen23355@gmail.com>
6
6
  * @license MIT
7
- */function _extends(){_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var a in i){if(Object.prototype.hasOwnProperty.call(i,a)){t[a]=i[a]}}}return t};return _extends.apply(this,arguments)}var version="1.15.0";function userAgent(t){if(typeof window!=="undefined"&&window.navigator){return!!navigator.userAgent.match(t)}}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var Edge=userAgent(/Edge/i);var FireFox=userAgent(/firefox/i);var Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i);var IOS=userAgent(/iP(ad|od|hone)/i);var ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i);var captureMode={capture:false,passive:false};function on(t,e,i){t.addEventListener(e,i,!IE11OrLess&&captureMode)}function off(t,e,i){t.removeEventListener(e,i,!IE11OrLess&&captureMode)}function matches(t,e){if(!e)return;e[0]===">"&&(e=e.substring(1));if(t){try{if(t.matches){return t.matches(e)}else if(t.msMatchesSelector){return t.msMatchesSelector(e)}else if(t.webkitMatchesSelector){return t.webkitMatchesSelector(e)}}catch(t){return false}}return false}function getParentOrHost(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function closest(t,e,i,a){if(t){i=i||document;do{if(e!=null&&(e[0]===">"?t.parentNode===i&&matches(t,e):matches(t,e))||a&&t===i){return t}if(t===i)break}while(t=getParentOrHost(t))}return null}var R_SPACE=/\s+/g;function toggleClass(t,e,i){if(t&&e){if(t.classList){t.classList[i?"add":"remove"](e)}else{var a=(" "+t.className+" ").replace(R_SPACE," ").replace(" "+e+" "," ");t.className=(a+(i?" "+e:"")).replace(R_SPACE," ")}}}function css(t,e,i){var a=t&&t.style;if(a){if(i===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){i=document.defaultView.getComputedStyle(t,"")}else if(t.currentStyle){i=t.currentStyle}return e===void 0?i:i[e]}else{if(!(e in a)&&e.indexOf("webkit")===-1){e="-webkit-"+e}a[e]=i+(typeof i==="string"?"":"px")}}}function matrix(t,e){var i="";if(typeof t==="string"){i=t}else{do{var a=css(t,"transform");if(a&&a!=="none"){i=a+" "+i}}while(!e&&(t=t.parentNode))}var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(i)}function find(t,e,i){if(t){var a=t.getElementsByTagName(e),s=0,r=a.length;if(i){for(;s<r;s++){i(a[s],s)}}return a}return[]}function getWindowScrollingElement(){var t=document.scrollingElement;if(t){return t}else{return document.documentElement}}function getRect(t,e,i,a,s){if(!t.getBoundingClientRect&&t!==window)return;var r,n,o,l,c,h,d;if(t!==window&&t.parentNode&&t!==getWindowScrollingElement()){r=t.getBoundingClientRect();n=r.top;o=r.left;l=r.bottom;c=r.right;h=r.height;d=r.width}else{n=0;o=0;l=window.innerHeight;c=window.innerWidth;h=window.innerHeight;d=window.innerWidth}if((e||i)&&t!==window){s=s||t.parentNode;if(!IE11OrLess){do{if(s&&s.getBoundingClientRect&&(css(s,"transform")!=="none"||i&&css(s,"position")!=="static")){var u=s.getBoundingClientRect();n-=u.top+parseInt(css(s,"border-top-width"));o-=u.left+parseInt(css(s,"border-left-width"));l=n+r.height;c=o+r.width;break}}while(s=s.parentNode)}}if(a&&t!==window){var f=matrix(s||t),g=f&&f.a,p=f&&f.d;if(f){n/=p;o/=g;d/=g;h/=p;l=n+h;c=o+d}}return{top:n,left:o,bottom:l,right:c,width:d,height:h}}function isScrolledPast(t,e,i){var a=getParentAutoScrollElement(t,true),s=getRect(t)[e];while(a){var r=getRect(a)[i],n=void 0;if(i==="top"||i==="left"){n=s>=r}else{n=s<=r}if(!n)return a;if(a===getWindowScrollingElement())break;a=getParentAutoScrollElement(a,false)}return false}function getChild(t,e,i,a){var s=0,r=0,n=t.children;while(r<n.length){if(n[r].style.display!=="none"&&n[r]!==Sortable.ghost&&(a||n[r]!==Sortable.dragged)&&closest(n[r],i.draggable,t,false)){if(s===e){return n[r]}s++}r++}return null}function lastChild(t,e){var i=t.lastElementChild;while(i&&(i===Sortable.ghost||css(i,"display")==="none"||e&&!matches(i,e))){i=i.previousElementSibling}return i||null}function index(t,e){var i=0;if(!t||!t.parentNode){return-1}while(t=t.previousElementSibling){if(t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Sortable.clone&&(!e||matches(t,e))){i++}}return i}function getRelativeScrollOffset(t){var e=0,i=0,a=getWindowScrollingElement();if(t){do{var s=matrix(t),r=s.a,n=s.d;e+=t.scrollLeft*r;i+=t.scrollTop*n}while(t!==a&&(t=t.parentNode))}return[e,i]}function indexOfObject(t,e){for(var i in t){if(!t.hasOwnProperty(i))continue;for(var a in e){if(e.hasOwnProperty(a)&&e[a]===t[i][a])return Number(i)}}return-1}function getParentAutoScrollElement(t,e){if(!t||!t.getBoundingClientRect)return getWindowScrollingElement();var i=t;var a=false;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var s=css(i);if(i.clientWidth<i.scrollWidth&&(s.overflowX=="auto"||s.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(s.overflowY=="auto"||s.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return getWindowScrollingElement();if(a||e)return i;a=true}}}while(i=i.parentNode);return getWindowScrollingElement()}function extend(t,e){if(t&&e){for(var i in e){if(e.hasOwnProperty(i)){t[i]=e[i]}}}return t}function isRectEqual(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var _throttleTimeout;function throttle(t,e){return function(){if(!_throttleTimeout){var i=arguments,a=this;if(i.length===1){t.call(a,i[0])}else{t.apply(a,i)}_throttleTimeout=setTimeout((function(){_throttleTimeout=void 0}),e)}}}function cancelThrottle(){clearTimeout(_throttleTimeout);_throttleTimeout=void 0}function scrollBy(t,e,i){t.scrollLeft+=e;t.scrollTop+=i}function clone(t){var e=window.Polymer;var i=window.jQuery||window.Zepto;if(e&&e.dom){return e.dom(t).cloneNode(true)}else if(i){return i(t).clone(true)[0]}else{return t.cloneNode(true)}}function setRect(t,e){css(t,"position","absolute");css(t,"top",e.top);css(t,"left",e.left);css(t,"width",e.width);css(t,"height",e.height)}function unsetRect(t){css(t,"position","");css(t,"top","");css(t,"left","");css(t,"width","");css(t,"height","")}var expando="Sortable"+(new Date).getTime();function AnimationStateManager(){var t=[],e;return{captureAnimationState:function(){t=[];if(!this.options.animation)return;var e=[].slice.call(this.el.children);e.forEach((function(e){if(css(e,"display")==="none"||e===Sortable.ghost)return;t.push({target:e,rect:getRect(e)});var i=__assign({},t[t.length-1].rect);if(e.thisAnimationDuration){var a=matrix(e,true);if(a){i.top-=a.f;i.left-=a.e}}e.fromRect=i}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(indexOfObject(t,{target:e}),1)},animateAll:function(i){var a=this;if(!this.options.animation){clearTimeout(e);if(typeof i==="function")i();return}var s=false,r=0;t.forEach((function(t){var e=0,i=t.target,n=i.fromRect,o=getRect(i),l=i.prevFromRect,c=i.prevToRect,h=t.rect,d=matrix(i,true);if(d){o.top-=d.f;o.left-=d.e}i.toRect=o;if(i.thisAnimationDuration){if(isRectEqual(l,o)&&!isRectEqual(n,o)&&(h.top-o.top)/(h.left-o.left)===(n.top-o.top)/(n.left-o.left)){e=calculateRealTime(h,l,c,a.options)}}if(!isRectEqual(o,n)){i.prevFromRect=n;i.prevToRect=o;if(!e){e=a.options.animation}a.animate(i,h,o,e)}if(e){s=true;r=Math.max(r,e);clearTimeout(i.animationResetTimer);i.animationResetTimer=setTimeout((function(){i.animationTime=0;i.prevFromRect=null;i.fromRect=null;i.prevToRect=null;i.thisAnimationDuration=null}),e);i.thisAnimationDuration=e}}));clearTimeout(e);if(!s){if(typeof i==="function")i()}else{e=setTimeout((function(){if(typeof i==="function")i()}),r)}t=[]},animate:function(t,e,i,a){if(a){css(t,"transition","");css(t,"transform","");var s=matrix(this.el),r=s&&s.a,n=s&&s.d,o=(e.left-i.left)/(r||1),l=(e.top-i.top)/(n||1);t.animatingX=!!o;t.animatingY=!!l;css(t,"transform","translate3d("+o+"px,"+l+"px,0)");this.forRepaintDummy=repaint(t);css(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:""));css(t,"transform","translate3d(0,0,0)");typeof t.animated==="number"&&clearTimeout(t.animated);t.animated=setTimeout((function(){css(t,"transition","");css(t,"transform","");t.animated=false;t.animatingX=false;t.animatingY=false}),a)}}}}function repaint(t){return t.offsetWidth}function calculateRealTime(t,e,i,a){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*a.animation}var plugins=[];var defaults={initializeByDefault:true};var PluginManager={mount:function(t){for(var e in defaults){if(defaults.hasOwnProperty(e)&&!(e in t)){t[e]=defaults[e]}}plugins.forEach((function(e){if(e.pluginName===t.pluginName){throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}}));plugins.push(t)},pluginEvent:function(t,e,i){var a=this;this.eventCanceled=false;i.cancel=function(){a.eventCanceled=true};var s=t+"Global";plugins.forEach((function(a){if(!e[a.pluginName])return;if(e[a.pluginName][s]){e[a.pluginName][s](__assign({sortable:e},i))}if(e.options[a.pluginName]&&e[a.pluginName][t]){e[a.pluginName][t](__assign({sortable:e},i))}}))},initializePlugins:function(t,e,i,a){plugins.forEach((function(a){var s=a.pluginName;if(!t.options[s]&&!a.initializeByDefault)return;var r=new a(t,e,t.options);r.sortable=t;r.options=t.options;t[s]=r;_extends(i,r.defaults)}));for(var s in t.options){if(!t.options.hasOwnProperty(s))continue;var r=this.modifyOption(t,s,t.options[s]);if(typeof r!=="undefined"){t.options[s]=r}}},getEventProperties:function(t,e){var i={};plugins.forEach((function(a){if(typeof a.eventProperties!=="function")return;_extends(i,a.eventProperties.call(e[a.pluginName],t))}));return i},modifyOption:function(t,e,i){var a;plugins.forEach((function(s){if(!t[s.pluginName])return;if(s.optionListeners&&typeof s.optionListeners[e]==="function"){a=s.optionListeners[e].call(t[s.pluginName],i)}}));return a}};function dispatchEvent(t){var e=t.sortable,i=t.rootEl,a=t.name,s=t.targetEl,r=t.cloneEl,n=t.toEl,o=t.fromEl,l=t.oldIndex,c=t.newIndex,h=t.oldDraggableIndex,d=t.newDraggableIndex,u=t.originalEvent,f=t.putSortable,g=t.extraEventProperties;e=e||i&&i[expando];if(!e)return;var p,m=e.options,v="on"+a.charAt(0).toUpperCase()+a.substr(1);if(window.CustomEvent&&!IE11OrLess&&!Edge){p=new CustomEvent(a,{bubbles:true,cancelable:true})}else{p=document.createEvent("Event");p.initEvent(a,true,true)}p.to=n||i;p.from=o||i;p.item=s||i;p.clone=r;p.oldIndex=l;p.newIndex=c;p.oldDraggableIndex=h;p.newDraggableIndex=d;p.originalEvent=u;p.pullMode=f?f.lastPutMode:undefined;var b=__assign(__assign({},g),PluginManager.getEventProperties(a,e));for(var z in b){p[z]=b[z]}if(i){i.dispatchEvent(p)}if(m[v]){m[v].call(e,p)}}var pluginEvent=function(t,e,i){if(i===void 0){i={}}var a=i.evt,s=__rest(i,["evt"]);PluginManager.pluginEvent.bind(Sortable)(t,e,__assign({dragEl:dragEl,parentEl:parentEl,ghostEl:ghostEl,rootEl:rootEl,nextEl:nextEl,lastDownEl:lastDownEl,cloneEl:cloneEl,cloneHidden:cloneHidden,dragStarted:moved,putSortable:putSortable,activeSortable:Sortable.active,originalEvent:a,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=true},cloneNowShown:function(){cloneHidden=false},dispatchSortableEvent:function(t){_dispatchEvent({sortable:e,name:t,originalEvent:a})}},s))};function _dispatchEvent(t){dispatchEvent(__assign({putSortable:putSortable,cloneEl:cloneEl,targetEl:dragEl,rootEl:rootEl,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex},t))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=false,ignoreNextClick=false,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=false,isCircumstantialInvert=false,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=false,savedInputChecked=[];var documentExists=typeof document!=="undefined",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(!documentExists)return;if(IE11OrLess){return false}var t=document.createElement("x");t.style.cssText="pointer-events:auto";return t.style.pointerEvents==="auto"}(),_detectDirection=function(t,e){var i=css(t),a=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),s=getChild(t,0,e),r=getChild(t,1,e),n=s&&css(s),o=r&&css(r),l=n&&parseInt(n.marginLeft)+parseInt(n.marginRight)+getRect(s).width,c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+getRect(r).width;if(i.display==="flex"){return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal"}if(i.display==="grid"){return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(s&&n.float&&n.float!=="none"){var h=n.float==="left"?"left":"right";return r&&(o.clear==="both"||o.clear===h)?"vertical":"horizontal"}return s&&(n.display==="block"||n.display==="flex"||n.display==="table"||n.display==="grid"||l>=a&&i[CSSFloatProperty]==="none"||r&&i[CSSFloatProperty]==="none"&&l+c>a)?"vertical":"horizontal"},_dragElInRowColumn=function(t,e,i){var a=i?t.left:t.top,s=i?t.right:t.bottom,r=i?t.width:t.height,n=i?e.left:e.top,o=i?e.right:e.bottom,l=i?e.width:e.height;return a===n||s===o||a+r/2===n+l/2},_detectNearestEmptySortable=function(t,e){var i;sortables.some((function(a){var s=a[expando].options.emptyInsertThreshold;if(!s||lastChild(a))return;var r=getRect(a),n=t>=r.left-s&&t<=r.right+s,o=e>=r.top-s&&e<=r.bottom+s;if(n&&o){return i=a}}));return i},_prepareGroup=function(t){function e(t,i){return function(a,s,r,n){var o=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(t==null&&(i||o)){return true}else if(t==null||t===false){return false}else if(i&&t==="clone"){return t}else if(typeof t==="function"){return e(t(a,s,r,n),i)(a,s,r,n)}else{var l=(i?a:s).options.group.name;return t===true||typeof t==="string"&&t===l||t.join&&t.indexOf(l)>-1}}}var i={};var a=t.group;if(!a||typeof a!="object"){a={name:a}}i.name=a.name;i.checkPull=e(a.pull,true);i.checkPut=e(a.put);i.revertClone=a.revertClone;t.group=i},_hideGhostForTarget=function(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","none")}},_unhideGhostForTarget=function(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","")}};if(documentExists&&!ChromeForAndroid){document.addEventListener("click",(function(t){if(ignoreNextClick){t.preventDefault();t.stopPropagation&&t.stopPropagation();t.stopImmediatePropagation&&t.stopImmediatePropagation();ignoreNextClick=false;return false}}),true)}var nearestEmptyInsertDetectEvent=function(t){if(dragEl){t=t.touches?t.touches[0]:t;var e=_detectNearestEmptySortable(t.clientX,t.clientY);if(e){var i={};for(var a in t){if(t.hasOwnProperty(a)){i[a]=t[a]}}i.target=i.rootEl=e;i.preventDefault=void 0;i.stopPropagation=void 0;e[expando]._onDragOver(i)}}};var _checkOutsideTargetEl=function(t){if(dragEl){dragEl.parentNode[expando]._isOutsideThisEl(t.target)}};function Sortable(t,e){if(!(t&&t.nodeType&&t.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t))}this.el=t;this.options=e=_extends({},e);t[expando]=this;var i={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function(){return _detectDirection(t,this.options)},ghostClone:function(t){return t.cloneNode(true)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==false&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,t,i);for(var a in i){!(a in e)&&(e[a]=i[a])}_prepareGroup(e);for(var s in this){if(s.charAt(0)==="_"&&typeof this[s]==="function"){this[s]=this[s].bind(this)}}this.nativeDraggable=e.forceFallback?false:supportDraggable;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(e.supportPointer){on(t,"pointerdown",this._onTapStart)}else{on(t,"mousedown",this._onTapStart);on(t,"touchstart",this._onTapStart)}if(this.nativeDraggable){on(t,"dragover",this);on(t,"dragenter",this)}sortables.push(this.el);e.store&&e.store.get&&this.sort(e.store.get(this)||[]);_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(t){if(!this.el.contains(t)&&t!==this.el){lastTarget=null}},_getDirection:function(t,e){return typeof this.options.direction==="function"?this.options.direction.call(this,t,e,dragEl):this.options.direction},_onTapStart:function(t){if(!t.cancelable)return;var e=this,i=this.el,a=this.options,s=a.preventOnFilter,r=t.type,n=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,o=(n||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||o,c=a.filter;_saveInputCheckedState(i);if(dragEl){return}if(/mousedown|pointerdown/.test(r)&&t.button!==0||a.disabled){return}if(l.isContentEditable){return}if(!this.nativeDraggable&&Safari&&o&&o.tagName.toUpperCase()==="SELECT"){return}o=closest(o,a.draggable,i,false);if(o&&o.animated){return}if(lastDownEl===o){return}oldIndex=index(o);oldDraggableIndex=index(o,a.draggable);if(typeof c==="function"){if(c.call(this,t,o,this)){_dispatchEvent({sortable:e,rootEl:l,name:"filter",targetEl:o,toEl:i,fromEl:i});pluginEvent("filter",e,{evt:t});s&&t.cancelable&&t.preventDefault();return}}else if(c){c=c.split(",").some((function(a){a=closest(l,a.trim(),i,false);if(a){_dispatchEvent({sortable:e,rootEl:a,name:"filter",targetEl:o,fromEl:i,toEl:i});pluginEvent("filter",e,{evt:t});return true}}));if(c){s&&t.cancelable&&t.preventDefault();return}}if(a.handle&&!closest(l,a.handle,i,false)){return}this._prepareDragStart(t,n,o)},_prepareDragStart:function(t,e,i){var a=this,s=a.el,r=a.options,n=s.ownerDocument,o;if(i&&!dragEl&&i.parentNode===s){var l=getRect(i);rootEl=s;dragEl=i;parentEl=dragEl.parentNode;nextEl=dragEl.nextSibling;lastDownEl=i;activeGroup=r.group;Sortable.dragged=dragEl;tapEvt={target:dragEl,clientX:(e||t).clientX,clientY:(e||t).clientY};tapDistanceLeft=tapEvt.clientX-l.left;tapDistanceTop=tapEvt.clientY-l.top;this._lastX=(e||t).clientX;this._lastY=(e||t).clientY;dragEl.style["will-change"]="all";o=function(){pluginEvent("delayEnded",a,{evt:t});if(Sortable.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents();if(!FireFox&&a.nativeDraggable){dragEl.draggable=true}a._triggerDragStart(t,e);_dispatchEvent({sortable:a,name:"choose",originalEvent:t});toggleClass(dragEl,r.chosenClass,true)};r.ignore.split(",").forEach((function(t){find(dragEl,t.trim(),_disableDraggable)}));on(n,"dragover",nearestEmptyInsertDetectEvent);on(n,"mousemove",nearestEmptyInsertDetectEvent);on(n,"touchmove",nearestEmptyInsertDetectEvent);on(n,"mouseup",a._onDrop);on(n,"touchend",a._onDrop);on(n,"touchcancel",a._onDrop);if(FireFox&&this.nativeDraggable){this.options.touchStartThreshold=4;dragEl.draggable=true}pluginEvent("delayStart",this,{evt:t});if(r.delay&&(!r.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on(n,"mouseup",a._disableDelayedDrag);on(n,"touchend",a._disableDelayedDrag);on(n,"touchcancel",a._disableDelayedDrag);on(n,"mousemove",a._delayedDragTouchMoveHandler);on(n,"touchmove",a._delayedDragTouchMoveHandler);r.supportPointer&&on(n,"pointermove",a._delayedDragTouchMoveHandler);a._dragStartTimer=setTimeout(o,r.delay)}else{o()}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;if(Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function(){dragEl&&_disableDraggable(dragEl);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag);off(t,"touchend",this._disableDelayedDrag);off(t,"touchcancel",this._disableDelayedDrag);off(t,"mousemove",this._delayedDragTouchMoveHandler);off(t,"touchmove",this._delayedDragTouchMoveHandler);off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t;if(!this.nativeDraggable||e){if(this.options.supportPointer){on(document,"pointermove",this._onTouchMove)}else if(e){on(document,"touchmove",this._onTouchMove)}else{on(document,"mousemove",this._onTouchMove)}}else{on(dragEl,"dragend",this);on(rootEl,"dragstart",this._onDragStart)}try{if(document.selection){_nextTick((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(t){}},_dragStarted:function(t,e){awaitingDragStarted=false;if(rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:e});if(this.nativeDraggable){on(document,"dragover",_checkOutsideTargetEl)}var i=this.options;!t&&toggleClass(dragEl,i.dragClass,false);toggleClass(dragEl,i.ghostClass,true);Sortable.active=this;t&&this._appendGhost();_dispatchEvent({sortable:this,name:"start",originalEvent:e})}else{this._nulling()}},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX;this._lastY=touchEvt.clientY;_hideGhostForTarget();var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY);var e=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY);if(t===e)break;e=t}dragEl.parentNode[expando]._isOutsideThisEl(t);if(e){do{if(e[expando]){var i=void 0;i=e[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:e});if(i&&!this.options.dragoverBubble){break}}t=e}while(e=e.parentNode)}_unhideGhostForTarget()}},_onTouchMove:function(t){if(tapEvt){var e=this.options,i=e.fallbackTolerance,a=e.fallbackOffset,s=t.touches?t.touches[0]:t,r=ghostEl&&matrix(ghostEl,true),n=ghostEl&&r&&r.a,o=ghostEl&&r&&r.d,l=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),c=(s.clientX-tapEvt.clientX+a.x)/(n||1)+(l?l[0]-ghostRelativeParentInitialScroll[0]:0)/(n||1),h=(s.clientY-tapEvt.clientY+a.y)/(o||1)+(l?l[1]-ghostRelativeParentInitialScroll[1]:0)/(o||1);if(!Sortable.active&&!awaitingDragStarted){if(i&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<i){return}this._onDragStart(t,true)}if(ghostEl){if(r){r.e+=c-(lastDx||0);r.f+=h-(lastDy||0)}else{r={a:1,b:0,c:0,d:1,e:c,f:h}}var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");css(ghostEl,"webkitTransform",d);css(ghostEl,"mozTransform",d);css(ghostEl,"msTransform",d);css(ghostEl,"transform",d);lastDx=c;lastDy=h;touchEvt=s}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,e=getRect(dragEl,true,PositionGhostAbsolutely,true,t),i=this.options;if(PositionGhostAbsolutely){ghostRelativeParent=t;while(css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document){ghostRelativeParent=ghostRelativeParent.parentNode}if(ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement){if(ghostRelativeParent===document)ghostRelativeParent=getWindowScrollingElement();e.top+=ghostRelativeParent.scrollTop;e.left+=ghostRelativeParent.scrollLeft}else{ghostRelativeParent=getWindowScrollingElement()}ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=i.ghostClone(dragEl);toggleClass(ghostEl,i.ghostClass,false);toggleClass(ghostEl,i.fallbackClass,true);toggleClass(ghostEl,i.dragClass,true);css(ghostEl,"transition","");css(ghostEl,"transform","");css(ghostEl,"box-sizing","border-box");css(ghostEl,"margin",0);css(ghostEl,"top",e.top);css(ghostEl,"left",e.left);css(ghostEl,"width",e.width);css(ghostEl,"height",e.height);css(ghostEl,"opacity","0.8");css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed");css(ghostEl,"zIndex","100000");css(ghostEl,"pointerEvents","none");Sortable.ghost=ghostEl;t.appendChild(ghostEl);css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this;var a=t.dataTransfer;var s=i.options;pluginEvent("dragStart",this,{evt:t});if(Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this);if(!Sortable.eventCanceled){cloneEl=clone(dragEl);cloneEl.removeAttribute("id");cloneEl.draggable=false;cloneEl.style["will-change"]="";this._hideClone();toggleClass(cloneEl,this.options.chosenClass,false);Sortable.clone=cloneEl}i.cloneId=_nextTick((function(){pluginEvent("clone",i);if(Sortable.eventCanceled)return;if(!i.options.removeCloneOnHide){rootEl.insertBefore(cloneEl,dragEl)}i._hideClone();_dispatchEvent({sortable:i,name:"clone"})}));!e&&toggleClass(dragEl,s.dragClass,true);if(e){ignoreNextClick=true;i._loopId=setInterval(i._emulateDragOver,50)}else{off(document,"mouseup",i._onDrop);off(document,"touchend",i._onDrop);off(document,"touchcancel",i._onDrop);if(a){a.effectAllowed="move";s.setData&&s.setData.call(i,a,dragEl)}on(document,"drop",i);css(dragEl,"transform","translateZ(0)")}awaitingDragStarted=true;i._dragStartId=_nextTick(i._dragStarted.bind(i,e,t));on(document,"selectstart",i);moved=true;if(Safari){css(document.body,"user-select","none")}},_onDragOver:function(t){var e=this.el,i=t.target,a,s,r,n=this.options,o=n.group,l=Sortable.active,c=activeGroup===o,h=n.sort,d=putSortable||l,u,f=this,g=false;if(_silent)return;function p(n,o){pluginEvent(n,f,__assign({evt:t,isOwner:c,axis:u?"vertical":"horizontal",revert:r,dragRect:a,targetRect:s,canSort:h,fromSortable:d,target:i,completed:v,onMove:function(i,s){return onMove(rootEl,e,dragEl,a,i,getRect(i),t,s)},changed:b},o))}function m(){p("dragOverAnimationCapture");f.captureAnimationState();if(f!==d){d.captureAnimationState()}}function v(a){p("dragOverCompleted",{insertion:a});if(a){if(c){l._hideClone()}else{l._showClone(f)}if(f!==d){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:l.options.ghostClass,false);toggleClass(dragEl,n.ghostClass,true)}if(putSortable!==f&&f!==Sortable.active){putSortable=f}else if(f===Sortable.active&&putSortable){putSortable=null}if(d===f){f._ignoreWhileAnimating=i}f.animateAll((function(){p("dragOverAnimationComplete");f._ignoreWhileAnimating=null}));if(f!==d){d.animateAll();d._ignoreWhileAnimating=null}}if(i===dragEl&&!dragEl.animated||i===e&&!i.animated){lastTarget=null}if(!n.dragoverBubble&&!t.rootEl&&i!==document){dragEl.parentNode[expando]._isOutsideThisEl(t.target);!a&&nearestEmptyInsertDetectEvent(t)}!n.dragoverBubble&&t.stopPropagation&&t.stopPropagation();return g=true}function b(){newIndex=index(dragEl);newDraggableIndex=index(dragEl,n.draggable);_dispatchEvent({sortable:f,name:"change",toEl:e,newIndex:newIndex,newDraggableIndex:newDraggableIndex,originalEvent:t})}if(t.preventDefault!==void 0){t.cancelable&&t.preventDefault()}i=closest(i,n.draggable,e,true);p("dragOver");if(Sortable.eventCanceled)return g;if(dragEl.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i){return v(false)}ignoreNextClick=false;if(l&&!n.disabled&&(c?h||(r=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,l,dragEl,t))&&o.checkPut(this,l,dragEl,t))){u=this._getDirection(t,i)==="vertical";a=getRect(dragEl);p("dragOverValid");if(Sortable.eventCanceled)return g;if(r){parentEl=rootEl;m();this._hideClone();p("revert");if(!Sortable.eventCanceled){if(nextEl){rootEl.insertBefore(dragEl,nextEl)}else{rootEl.appendChild(dragEl)}}return v(true)}var z=lastChild(e,n.draggable);if(!z||_ghostIsLast(t,u,this)&&!z.animated){if(z===dragEl){return v(false)}if(z&&e===t.target){i=z}if(i){s=getRect(i)}if(onMove(rootEl,e,dragEl,a,i,s,t,!!i)!==false){m();if(z&&z.nextSibling){e.insertBefore(dragEl,z.nextSibling)}else{e.appendChild(dragEl)}parentEl=e;b();return v(true)}}else if(z&&_ghostIsFirst(t,u,this)){var E=getChild(e,0,n,true);if(E===dragEl){return v(false)}i=E;s=getRect(i);if(onMove(rootEl,e,dragEl,a,i,s,t,false)!==false){m();e.insertBefore(dragEl,E);parentEl=e;b();return v(true)}}else if(i.parentNode===e){s=getRect(i);var _=0,w=void 0,y=dragEl.parentNode!==e,x=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||a,i.animated&&i.toRect||s,u),S=u?"top":"left",C=isScrolledPast(i,"top","top")||isScrolledPast(dragEl,"top","top"),D=C?C.scrollTop:void 0;if(lastTarget!==i){w=s[S];pastFirstInvertThresh=false;isCircumstantialInvert=!x&&n.invertSwap||y}_=_getSwapDirection(t,i,s,u,x?1:n.swapThreshold,n.invertedSwapThreshold==null?n.swapThreshold:n.invertedSwapThreshold,isCircumstantialInvert,lastTarget===i);var k=void 0;if(_!==0){var I=index(dragEl);do{I-=_;k=parentEl.children[I]}while(k&&(css(k,"display")==="none"||k===ghostEl))}if(_===0||k===i){return v(false)}lastTarget=i;lastDirection=_;var A=i.nextElementSibling,T=false;T=_===1;var O=onMove(rootEl,e,dragEl,a,i,s,t,T);if(O!==false){if(O===1||O===-1){T=O===1}_silent=true;setTimeout(_unsilent,30);m();if(T&&!A){e.appendChild(dragEl)}else{i.parentNode.insertBefore(dragEl,T?A:i)}if(C){scrollBy(C,0,D-C.scrollTop)}parentEl=dragEl.parentNode;if(w!==undefined&&!isCircumstantialInvert){targetMoveDistance=Math.abs(w-getRect(i)[S])}b();return v(true)}}if(e.contains(dragEl)){return v(false)}}return false},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove);off(document,"touchmove",this._onTouchMove);off(document,"pointermove",this._onTouchMove);off(document,"dragover",nearestEmptyInsertDetectEvent);off(document,"mousemove",nearestEmptyInsertDetectEvent);off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop);off(t,"touchend",this._onDrop);off(t,"pointerup",this._onDrop);off(t,"touchcancel",this._onDrop);off(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;newIndex=index(dragEl);newDraggableIndex=index(dragEl,i.draggable);pluginEvent("drop",this,{evt:t});parentEl=dragEl&&dragEl.parentNode;newIndex=index(dragEl);newDraggableIndex=index(dragEl,i.draggable);if(Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=false;isCircumstantialInvert=false;pastFirstInvertThresh=false;clearInterval(this._loopId);clearTimeout(this._dragStartTimer);_cancelNextTick(this.cloneId);_cancelNextTick(this._dragStartId);if(this.nativeDraggable){off(document,"drop",this);off(e,"dragstart",this._onDragStart)}this._offMoveEvents();this._offUpEvents();if(Safari){css(document.body,"user-select","")}css(dragEl,"transform","");if(t){if(moved){t.cancelable&&t.preventDefault();!i.dropBubble&&t.stopPropagation()}ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl);if(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone"){cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl)}if(dragEl){if(this.nativeDraggable){off(dragEl,"dragend",this)}_disableDraggable(dragEl);dragEl.style["will-change"]="";if(moved&&!awaitingDragStarted){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,false)}toggleClass(dragEl,this.options.chosenClass,false);_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t});if(rootEl!==parentEl){if(newIndex>=0){_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t});_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}putSortable&&putSortable.save()}else{if(newIndex!==oldIndex){if(newIndex>=0){_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}}}if(Sortable.active){if(newIndex==null||newIndex===-1){newIndex=oldIndex;newDraggableIndex=oldDraggableIndex}_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t});this.save()}}}this._nulling()},_nulling:function(){pluginEvent("nulling",this);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;savedInputChecked.forEach((function(t){t.checked=true}));savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(dragEl){this._onDragOver(t);_globalDragOver(t)}break;case"selectstart":t.preventDefault();break}},toArray:function(){var t=[],e,i=this.el.children,a=0,s=i.length,r=this.options;for(;a<s;a++){e=i[a];if(closest(e,r.draggable,this.el,false)){t.push(e.getAttribute(r.dataIdAttr)||_generateId(e))}}return t},sort:function(t,e){var i={},a=this.el;this.toArray().forEach((function(t,e){var s=a.children[e];if(closest(s,this.options.draggable,a,false)){i[t]=s}}),this);e&&this.captureAnimationState();t.forEach((function(t){if(i[t]){a.removeChild(i[t]);a.appendChild(i[t])}}));e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return closest(t,e||this.options.draggable,this.el,false)},option:function(t,e){var i=this.options;if(e===void 0){return i[t]}else{var a=PluginManager.modifyOption(this,t,e);if(typeof a!=="undefined"){i[t]=a}else{i[t]=e}if(t==="group"){_prepareGroup(i)}}},destroy:function(){pluginEvent("destroy",this);var t=this.el;t[expando]=null;off(t,"mousedown",this._onTapStart);off(t,"touchstart",this._onTapStart);off(t,"pointerdown",this._onTapStart);if(this.nativeDraggable){off(t,"dragover",this);off(t,"dragenter",this)}Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")}));this._onDrop();this._disableDelayedDragEvents();sortables.splice(sortables.indexOf(this.el),1);this.el=t=null},_hideClone:function(){if(!cloneHidden){pluginEvent("hideClone",this);if(Sortable.eventCanceled)return;css(cloneEl,"display","none");if(this.options.removeCloneOnHide&&cloneEl.parentNode){cloneEl.parentNode.removeChild(cloneEl)}cloneHidden=true}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){pluginEvent("showClone",this);if(Sortable.eventCanceled)return;if(dragEl.parentNode==rootEl&&!this.options.group.revertClone){rootEl.insertBefore(cloneEl,dragEl)}else if(nextEl){rootEl.insertBefore(cloneEl,nextEl)}else{rootEl.appendChild(cloneEl)}if(this.options.group.revertClone){this.animate(dragEl,cloneEl)}css(cloneEl,"display","");cloneHidden=false}}};function _globalDragOver(t){if(t.dataTransfer){t.dataTransfer.dropEffect="move"}t.cancelable&&t.preventDefault()}function onMove(t,e,i,a,s,r,n,o){var l,c=t[expando],h=c.options.onMove,d;if(window.CustomEvent&&!IE11OrLess&&!Edge){l=new CustomEvent("move",{bubbles:true,cancelable:true})}else{l=document.createEvent("Event");l.initEvent("move",true,true)}l.to=e;l.from=t;l.dragged=i;l.draggedRect=a;l.related=s||e;l.relatedRect=r||getRect(e);l.willInsertAfter=o;l.originalEvent=n;t.dispatchEvent(l);if(h){d=h.call(c,l,n)}return d}function _disableDraggable(t){t.draggable=false}function _unsilent(){_silent=false}function _ghostIsFirst(t,e,i){var a=getRect(getChild(i.el,0,i.options,true));var s=10;return e?t.clientX<a.left-s||t.clientY<a.top&&t.clientX<a.right:t.clientY<a.top-s||t.clientY<a.bottom&&t.clientX<a.left}function _ghostIsLast(t,e,i){var a=getRect(lastChild(i.el,i.options.draggable));var s=10;return e?t.clientX>a.right+s||t.clientX<=a.right&&t.clientY>a.bottom&&t.clientX>=a.left:t.clientX>a.right&&t.clientY>a.top||t.clientX<=a.right&&t.clientY>a.bottom+s}function _getSwapDirection(t,e,i,a,s,r,n,o){var l=a?t.clientY:t.clientX,c=a?i.height:i.width,h=a?i.top:i.left,d=a?i.bottom:i.right,u=false;if(!n){if(o&&targetMoveDistance<c*s){if(!pastFirstInvertThresh&&(lastDirection===1?l>h+c*r/2:l<d-c*r/2)){pastFirstInvertThresh=true}if(!pastFirstInvertThresh){if(lastDirection===1?l<h+targetMoveDistance:l>d-targetMoveDistance){return-lastDirection}}else{u=true}}else{if(l>h+c*(1-s)/2&&l<d-c*(1-s)/2){return _getInsertDirection(e)}}}u=u||n;if(u){if(l<h+c*r/2||l>d-c*r/2){return l>h+c/2?1:-1}}return 0}function _getInsertDirection(t){if(index(dragEl)<index(t)){return 1}else{return-1}}function _generateId(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,a=0;while(i--){a+=e.charCodeAt(i)}return a.toString(36)}function _saveInputCheckedState(t){savedInputChecked.length=0;var e=t.getElementsByTagName("input");var i=e.length;while(i--){var a=e[i];a.checked&&savedInputChecked.push(a)}}function _nextTick(t){return setTimeout(t,0)}function _cancelNextTick(t){return clearTimeout(t)}if(documentExists){on(document,"touchmove",(function(t){if((Sortable.active||awaitingDragStarted)&&t.cancelable){t.preventDefault()}}))}Sortable.utils={on:on,off:off,css:css,find:find,is:function(t,e){return!!closest(t,e,t,false)},extend:extend,throttle:throttle,closest:closest,toggleClass:toggleClass,clone:clone,index:index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild:getChild};Sortable.get=function(t){return t[expando]};Sortable.mount=function(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}if(t[0].constructor===Array)t=t[0];t.forEach((function(t){if(!t.prototype||!t.prototype.constructor){throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t))}if(t.utils)Sortable.utils=__assign(__assign({},Sortable.utils),t.utils);PluginManager.mount(t)}))};Sortable.create=function(t,e){return new Sortable(t,e)};Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=false,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function t(){this.defaults={scroll:true,forceAutoScrollFallback:false,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:true};for(var t in this){if(t.charAt(0)==="_"&&typeof this[t]==="function"){this[t]=this[t].bind(this)}}}t.prototype={dragStarted:function(t){var e=t.originalEvent;if(this.sortable.nativeDraggable){on(document,"dragover",this._handleAutoScroll)}else{if(this.options.supportPointer){on(document,"pointermove",this._handleFallbackAutoScroll)}else if(e.touches){on(document,"touchmove",this._handleFallbackAutoScroll)}else{on(document,"mousemove",this._handleFallbackAutoScroll)}}},dragOverCompleted:function(t){var e=t.originalEvent;if(!this.options.dragOverBubble&&!e.rootEl){this._handleAutoScroll(e)}},drop:function(){if(this.sortable.nativeDraggable){off(document,"dragover",this._handleAutoScroll)}else{off(document,"pointermove",this._handleFallbackAutoScroll);off(document,"touchmove",this._handleFallbackAutoScroll);off(document,"mousemove",this._handleFallbackAutoScroll)}clearPointerElemChangedInterval();clearAutoScrolls();cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null;autoScrolls.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,true)},_handleAutoScroll:function(t,e){var i=this;var a=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(a,s);touchEvt$1=t;if(e||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(t,this.options,r,e);var n=getParentAutoScrollElement(r,true);if(scrolling&&(!pointerElemChangedInterval||a!==lastAutoScrollX||s!==lastAutoScrollY)){pointerElemChangedInterval&&clearPointerElemChangedInterval();pointerElemChangedInterval=setInterval((function(){var r=getParentAutoScrollElement(document.elementFromPoint(a,s),true);if(r!==n){n=r;clearAutoScrolls()}autoScroll(t,i.options,r,e)}),10);lastAutoScrollX=a;lastAutoScrollY=s}}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(r,true)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(t,this.options,getParentAutoScrollElement(r,false),false)}}};return _extends(t,{pluginName:"scroll",initializeByDefault:true})}function clearAutoScrolls(){autoScrolls.forEach((function(t){clearInterval(t.pid)}));autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle((function(t,e,i,a){if(!e.scroll)return;var s=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,n=e.scrollSensitivity,o=e.scrollSpeed,l=getWindowScrollingElement();var c=false,h;if(scrollRootEl!==i){scrollRootEl=i;clearAutoScrolls();scrollEl=e.scroll;h=e.scrollFn;if(scrollEl===true){scrollEl=getParentAutoScrollElement(i,true)}}var d=0;var u=scrollEl;do{var f=u,g=getRect(f),p=g.top,m=g.bottom,v=g.left,b=g.right,z=g.width,E=g.height,_=void 0,w=void 0,y=f.scrollWidth,x=f.scrollHeight,S=css(f),C=f.scrollLeft,D=f.scrollTop;if(f===l){_=z<y&&(S.overflowX==="auto"||S.overflowX==="scroll"||S.overflowX==="visible");w=E<x&&(S.overflowY==="auto"||S.overflowY==="scroll"||S.overflowY==="visible")}else{_=z<y&&(S.overflowX==="auto"||S.overflowX==="scroll");w=E<x&&(S.overflowY==="auto"||S.overflowY==="scroll")}var k=_&&(Math.abs(b-s)<=n&&C+z<y)-(Math.abs(v-s)<=n&&!!C);var I=w&&(Math.abs(m-r)<=n&&D+E<x)-(Math.abs(p-r)<=n&&!!D);if(!autoScrolls[d]){for(var A=0;A<=d;A++){if(!autoScrolls[A]){autoScrolls[A]={}}}}if(autoScrolls[d].vx!=k||autoScrolls[d].vy!=I||autoScrolls[d].el!==f){autoScrolls[d].el=f;autoScrolls[d].vx=k;autoScrolls[d].vy=I;clearInterval(autoScrolls[d].pid);if(k!=0||I!=0){c=true;autoScrolls[d].pid=setInterval(function(){if(a&&this.layer===0){Sortable.active._onTouchMove(touchEvt$1)}var e=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*o:0;var i=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*o:0;if(typeof h==="function"){if(h.call(Sortable.dragged.parentNode[expando],i,e,t,touchEvt$1,autoScrolls[this.layer].el)!=="continue"){return}}scrollBy(autoScrolls[this.layer].el,i,e)}.bind({layer:d}),24)}}d++}while(e.bubbleScroll&&u!==l&&(u=getParentAutoScrollElement(u,false)));scrolling=c}),30);var drop=function(t){var e=t.originalEvent,i=t.putSortable,a=t.dragEl,s=t.activeSortable,r=t.dispatchSortableEvent,n=t.hideGhostForTarget,o=t.unhideGhostForTarget;if(!e)return;var l=i||s;n();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;var h=document.elementFromPoint(c.clientX,c.clientY);o();if(l&&!l.el.contains(h)){r("spill");this.onSpill({dragEl:a,putSortable:i})}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState();if(i){i.captureAnimationState()}var a=getChild(this.sortable.el,this.startIndex,this.options);if(a){this.sortable.el.insertBefore(e,a)}else{this.sortable.el.appendChild(e)}this.sortable.animateAll();if(i){i.animateAll()}},drop:drop};_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable;var a=i||this.sortable;a.captureAnimationState();e.parentNode&&e.parentNode.removeChild(e);a.animateAll()},drop:drop};_extends(Remove,{pluginName:"removeOnSpill"});var lastSwapEl;function SwapPlugin(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}t.prototype={dragStart:function(t){var e=t.dragEl;lastSwapEl=e},dragOverValid:function(t){var e=t.completed,i=t.target,a=t.onMove,s=t.activeSortable,r=t.changed,n=t.cancel;if(!s.options.swap)return;var o=this.sortable.el,l=this.options;if(i&&i!==o){var c=lastSwapEl;if(a(i)!==false){toggleClass(i,l.swapClass,true);lastSwapEl=i}else{lastSwapEl=null}if(c&&c!==lastSwapEl){toggleClass(c,l.swapClass,false)}}r();e(true);n()},drop:function(t){var e=t.activeSortable,i=t.putSortable,a=t.dragEl;var s=i||this.sortable;var r=this.options;lastSwapEl&&toggleClass(lastSwapEl,r.swapClass,false);if(lastSwapEl&&(r.swap||i&&i.options.swap)){if(a!==lastSwapEl){s.captureAnimationState();if(s!==e)e.captureAnimationState();swapNodes(a,lastSwapEl);s.animateAll();if(s!==e)e.animateAll()}}},nulling:function(){lastSwapEl=null}};return _extends(t,{pluginName:"swap",eventProperties:function(){return{swapItem:lastSwapEl}}})}function swapNodes(t,e){var i=t.parentNode,a=e.parentNode,s,r;if(!i||!a||i.isEqualNode(e)||a.isEqualNode(t))return;s=index(t);r=index(e);if(i.isEqualNode(a)&&s<r){r++}i.insertBefore(e,i.children[s]);a.insertBefore(t,a.children[r])}var multiDragElements=[],multiDragClones=[],lastMultiDragSelect,multiDragSortable,initialFolding=false,folding=false,dragStarted=false,dragEl$1,clonesFromRect,clonesHidden;function MultiDragPlugin(){function t(t){for(var e in this){if(e.charAt(0)==="_"&&typeof this[e]==="function"){this[e]=this[e].bind(this)}}if(!t.options.avoidImplicitDeselect){if(t.options.supportPointer){on(document,"pointerup",this._deselectMultiDrag)}else{on(document,"mouseup",this._deselectMultiDrag);on(document,"touchend",this._deselectMultiDrag)}}on(document,"keydown",this._checkKeyDown);on(document,"keyup",this._checkKeyUp);this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:false,setData:function(e,i){var a="";if(multiDragElements.length&&multiDragSortable===t){multiDragElements.forEach((function(t,e){a+=(!e?"":", ")+t.textContent}))}else{a=i.textContent}e.setData("Text",a)}}}t.prototype={multiDragKeyDown:false,isMultiDrag:false,delayStartGlobal:function(t){var e=t.dragEl;dragEl$1=e},delayEnded:function(){this.isMultiDrag=~multiDragElements.indexOf(dragEl$1)},setupClone:function(t){var e=t.sortable,i=t.cancel;if(!this.isMultiDrag)return;for(var a=0;a<multiDragElements.length;a++){multiDragClones.push(clone(multiDragElements[a]));multiDragClones[a].sortableIndex=multiDragElements[a].sortableIndex;multiDragClones[a].draggable=false;multiDragClones[a].style["will-change"]="";toggleClass(multiDragClones[a],this.options.selectedClass,false);multiDragElements[a]===dragEl$1&&toggleClass(multiDragClones[a],this.options.chosenClass,false)}e._hideClone();i()},clone:function(t){var e=t.sortable,i=t.rootEl,a=t.dispatchSortableEvent,s=t.cancel;if(!this.isMultiDrag)return;if(!this.options.removeCloneOnHide){if(multiDragElements.length&&multiDragSortable===e){insertMultiDragClones(true,i);a("clone");s()}}},showClone:function(t){var e=t.cloneNowShown,i=t.rootEl,a=t.cancel;if(!this.isMultiDrag)return;insertMultiDragClones(false,i);multiDragClones.forEach((function(t){css(t,"display","")}));e();clonesHidden=false;a()},hideClone:function(t){var e=this;var i=t.sortable,a=t.cloneNowHidden,s=t.cancel;if(!this.isMultiDrag)return;multiDragClones.forEach((function(t){css(t,"display","none");if(e.options.removeCloneOnHide&&t.parentNode){t.parentNode.removeChild(t)}}));a();clonesHidden=true;s()},dragStartGlobal:function(t){var e=t.sortable;if(!this.isMultiDrag&&multiDragSortable){multiDragSortable.multiDrag._deselectMultiDrag()}multiDragElements.forEach((function(t){t.sortableIndex=index(t)}));multiDragElements=multiDragElements.sort((function(t,e){return t.sortableIndex-e.sortableIndex}));dragStarted=true},dragStarted:function(t){var e=this;var i=t.sortable;if(!this.isMultiDrag)return;if(this.options.sort){i.captureAnimationState();if(this.options.animation){multiDragElements.forEach((function(t){if(t===dragEl$1)return;css(t,"position","absolute")}));var a=getRect(dragEl$1,false,true,true);multiDragElements.forEach((function(t){if(t===dragEl$1)return;setRect(t,a)}));folding=true;initialFolding=true}}i.animateAll((function(){folding=false;initialFolding=false;if(e.options.animation){multiDragElements.forEach((function(t){unsetRect(t)}))}if(e.options.sort){removeMultiDragElements()}}))},dragOver:function(t){var e=t.target,i=t.completed,a=t.cancel;if(folding&&~multiDragElements.indexOf(e)){i(false);a()}},revert:function(t){var e=t.fromSortable,i=t.rootEl,a=t.sortable,s=t.dragRect;if(multiDragElements.length>1){multiDragElements.forEach((function(t){a.addAnimationState({target:t,rect:folding?getRect(t):s});unsetRect(t);t.fromRect=s;e.removeAnimationState(t)}));folding=false;insertMultiDragElements(!this.options.removeCloneOnHide,i)}},dragOverCompleted:function(t){var e=t.sortable,i=t.isOwner,a=t.insertion,s=t.activeSortable,r=t.parentEl,n=t.putSortable;var o=this.options;if(a){if(i){s._hideClone()}initialFolding=false;if(o.animation&&multiDragElements.length>1&&(folding||!i&&!s.options.sort&&!n)){var l=getRect(dragEl$1,false,true,true);multiDragElements.forEach((function(t){if(t===dragEl$1)return;setRect(t,l);r.appendChild(t)}));folding=true}if(!i){if(!folding){removeMultiDragElements()}if(multiDragElements.length>1){var c=clonesHidden;s._showClone(e);if(s.options.animation&&!clonesHidden&&c){multiDragClones.forEach((function(t){s.addAnimationState({target:t,rect:clonesFromRect});t.fromRect=clonesFromRect;t.thisAnimationDuration=null}))}}else{s._showClone(e)}}}},dragOverAnimationCapture:function(t){var e=t.dragRect,i=t.isOwner,a=t.activeSortable;multiDragElements.forEach((function(t){t.thisAnimationDuration=null}));if(a.options.animation&&!i&&a.multiDrag.isMultiDrag){clonesFromRect=_extends({},e);var s=matrix(dragEl$1,true);clonesFromRect.top-=s.f;clonesFromRect.left-=s.e}},dragOverAnimationComplete:function(){if(folding){folding=false;removeMultiDragElements()}},drop:function(t){var e=t.originalEvent,i=t.rootEl,a=t.parentEl,s=t.sortable,r=t.dispatchSortableEvent,n=t.oldIndex,o=t.putSortable;var l=o||this.sortable;if(!e)return;var c=this.options,h=a.children;if(!dragStarted){if(c.multiDragKey&&!this.multiDragKeyDown){this._deselectMultiDrag()}toggleClass(dragEl$1,c.selectedClass,!~multiDragElements.indexOf(dragEl$1));if(!~multiDragElements.indexOf(dragEl$1)){multiDragElements.push(dragEl$1);dispatchEvent({sortable:s,rootEl:i,name:"select",targetEl:dragEl$1,originalEvent:e});if(e.shiftKey&&lastMultiDragSelect&&s.el.contains(lastMultiDragSelect)){var d=index(lastMultiDragSelect),u=index(dragEl$1);if(~d&&~u&&d!==u){var f,g;if(u>d){g=d;f=u}else{g=u;f=d+1}for(;g<f;g++){if(~multiDragElements.indexOf(h[g]))continue;toggleClass(h[g],c.selectedClass,true);multiDragElements.push(h[g]);dispatchEvent({sortable:s,rootEl:i,name:"select",targetEl:h[g],originalEvent:e})}}}else{lastMultiDragSelect=dragEl$1}multiDragSortable=l}else{multiDragElements.splice(multiDragElements.indexOf(dragEl$1),1);lastMultiDragSelect=null;dispatchEvent({sortable:s,rootEl:i,name:"deselect",targetEl:dragEl$1,originalEvent:e})}}if(dragStarted&&this.isMultiDrag){folding=false;if((a[expando].options.sort||a!==i)&&multiDragElements.length>1){var p=getRect(dragEl$1),m=index(dragEl$1,":not(."+this.options.selectedClass+")");if(!initialFolding&&c.animation)dragEl$1.thisAnimationDuration=null;l.captureAnimationState();if(!initialFolding){if(c.animation){dragEl$1.fromRect=p;multiDragElements.forEach((function(t){t.thisAnimationDuration=null;if(t!==dragEl$1){var e=folding?getRect(t):p;t.fromRect=e;l.addAnimationState({target:t,rect:e})}}))}removeMultiDragElements();multiDragElements.forEach((function(t){if(h[m]){a.insertBefore(t,h[m])}else{a.appendChild(t)}m++}));if(n===index(dragEl$1)){var v=false;multiDragElements.forEach((function(t){if(t.sortableIndex!==index(t)){v=true;return}}));if(v){r("update")}}}multiDragElements.forEach((function(t){unsetRect(t)}));l.animateAll()}multiDragSortable=l}if(i===a||o&&o.lastPutMode!=="clone"){multiDragClones.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=dragStarted=false;multiDragClones.length=0},destroyGlobal:function(){this._deselectMultiDrag();off(document,"pointerup",this._deselectMultiDrag);off(document,"mouseup",this._deselectMultiDrag);off(document,"touchend",this._deselectMultiDrag);off(document,"keydown",this._checkKeyDown);off(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(typeof dragStarted!=="undefined"&&dragStarted)return;if(multiDragSortable!==this.sortable)return;if(t&&closest(t.target,this.options.draggable,this.sortable.el,false))return;if(t&&t.button!==0)return;while(multiDragElements.length){var e=multiDragElements[0];toggleClass(e,this.options.selectedClass,false);multiDragElements.shift();dispatchEvent({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvent:t})}},_checkKeyDown:function(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=true}},_checkKeyUp:function(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=false}}};return _extends(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[expando];if(!e||!e.options.multiDrag||~multiDragElements.indexOf(t))return;if(multiDragSortable&&multiDragSortable!==e){multiDragSortable.multiDrag._deselectMultiDrag();multiDragSortable=e}toggleClass(t,e.options.selectedClass,true);multiDragElements.push(t)},deselect:function(t){var e=t.parentNode[expando],i=multiDragElements.indexOf(t);if(!e||!e.options.multiDrag||!~i)return;toggleClass(t,e.options.selectedClass,false);multiDragElements.splice(i,1)}},eventProperties:function(){var t=this;var e=[],i=[];multiDragElements.forEach((function(a){e.push({multiDragElement:a,index:a.sortableIndex});var s;if(folding&&a!==dragEl$1){s=-1}else if(folding){s=index(a,":not(."+t.options.selectedClass+")")}else{s=index(a)}i.push({multiDragElement:a,index:s})}));return{items:__spreadArray([],multiDragElements,true),clones:__spreadArray([],multiDragClones,true),oldIndicies:e,newIndicies:i}},optionListeners:{multiDragKey:function(t){t=t.toLowerCase();if(t==="ctrl"){t="Control"}else if(t.length>1){t=t.charAt(0).toUpperCase()+t.substr(1)}return t}}})}function insertMultiDragElements(t,e){multiDragElements.forEach((function(i,a){var s=e.children[i.sortableIndex+(t?Number(a):0)];if(s){e.insertBefore(i,s)}else{e.appendChild(i)}}))}function insertMultiDragClones(t,e){multiDragClones.forEach((function(i,a){var s=e.children[i.sortableIndex+(t?Number(a):0)];if(s){e.insertBefore(i,s)}else{e.appendChild(i)}}))}function removeMultiDragElements(){multiDragElements.forEach((function(t){if(t===dragEl$1)return;t.parentNode&&t.parentNode.removeChild(t)}))}Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);Sortable.mount(new SwapPlugin);Sortable.mount(new MultiDragPlugin);var stzhSortableCss='.sc-stzh-sortable-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-sortable-h{display:none}.sc-stzh-sortable-h *.sc-stzh-sortable,.sc-stzh-sortable-h *.sc-stzh-sortable::before,.sc-stzh-sortable-h *.sc-stzh-sortable::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-sortable-h .has-focus.sc-stzh-sortable{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-sortable-h .stzh-fylingfocus-focused.sc-stzh-sortable{outline-style:none !important}.sc-stzh-sortable-h .stzh-fylingfocus-focused.sc-stzh-sortable::-moz-focus-inner{border:0 !important}.sc-stzh-sortable-h{--cursor:grab;--grabbing-cursor:grabbing;--unselected-item-opacity:0.6;--ghost-item-background:var(--stzh-color-grey5);--ghost-item-box-shadow:inset 0px 0px 0.5rem rgba(0, 0, 0, 0.32)}[disabled].sc-stzh-sortable-h{--cursor:inherit}.sc-stzh-sortable-h[disabled] .sc-stzh-sortable-s *.is-sortable-item{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item{position:relative;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:var(--cursor)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-chosen,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-selected{cursor:var(--grabbing-cursor)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag{opacity:1 !important}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost{z-index:0}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost::after{z-index:99;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ghost-item-background);-webkit-box-shadow:var(--ghost-item-box-shadow);box-shadow:var(--ghost-item-box-shadow)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item{opacity:var(--unselected-item-opacity)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item.is-selected{opacity:1}.stzh-sortable__description.sc-stzh-sortable,.stzh-sortable__aria-live.sc-stzh-sortable{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}';var CLASS_ITEM="is-sortable-item";var CLASS_GHOST="is-ghost";var CLASS_SELECTED="is-selected";var CLASS_CHOSEN="is-chosen";var CLASS_DRAG="is-drag";var CLASS_PARENT_SELECTED="has-item-selected";var sortableCounter=0;var StzhSortable=function(){function t(t){var e=this;registerInstance(this,t);this.stzhUpdate=createEvent(this,"stzhUpdate",7);this.stzhDisable=createEvent(this,"stzhDisable",7);this.selectedItem=null;this.resetItemOnBlur=false;this.init=function(){if(!e.getContainer()||e.disabled){return}e.setAttributes()};this.updated=function(t){return __awaiter(e,void 0,void 0,(function(){var e,i,a,s,r;var n;return __generator(this,(function(o){switch(o.label){case 0:if(t){e=t.newIndex;i=t.oldIndex;a=t.item}else{e=this.getIndexOfSelectedItem();i=this.lastIndex;a=this.selectedItem}if(!(e!==i))return[3,2];r=(s=this.stzhUpdate).emit;n={component:"stzh-sortable"};return[4,this.toArray()];case 1:r.apply(s,[(n.data=o.sent(),n.item=a,n.newIndex=e,n.oldIndex=i,n)]);o.label=2;case 2:return[2]}}))}))};this.onKeydown=function(t){var i=t.currentTarget;var a=t.target;if(!e.getContainer()||e.disabled||i!==a){return}if(t.key===" "){t.preventDefault();if(!e.selectedItem){e.selectedItem=i;e.selectedItem.parentElement.classList.add(CLASS_PARENT_SELECTED);e.selectedItem.classList.add(CLASS_SELECTED);e.lastIndex=e.getIndexOfSelectedItem();e.resetItemOnBlur=true;e.updateAriaLive(e.localization.started)}else{e.resetItemOnBlur=false;e.updateAriaLive(e.localization.dropped);e.updated();e.resetActiveItem()}}else if(t.key==="Tab"&&e.selectedItem&&e.selectedItem===t.currentTarget){t.preventDefault()}else if(t.key==="Escape"&&e.selectedItem){e.resetItemOnBlur=false;e.updateAriaLive(e.localization.canceled);e.resetActiveItem(true)}else if(t.key==="ArrowUp"){t.preventDefault();if(e.selectedItem){e.moveItem(e.selectedItem,"up")}else{e.focusItem(i.previousElementSibling)}}else if(t.key==="ArrowDown"){t.preventDefault();if(e.selectedItem){e.moveItem(e.selectedItem,"down")}else{e.focusItem(i.nextElementSibling)}}};this.onBlur=function(){if(e.resetItemOnBlur){e.resetItemOnBlur=false;e.updateAriaLive(e.localization.dropped);e.updated();e.resetActiveItem()}};this.localization=undefined;this.disabled=false;this.dataIdAttribute="data-id";this.container=function(){var t;return(t=e.containerElement)===null||t===void 0?void 0:t.firstElementChild};this.ghostClone=function(t){return t.cloneNode(true)};this.filterElements=["[data-stzh-sortable-filtered]","[sortable-disabled]","button","a[href]","input","select","textarea","label","iframe","details","area","stzh-sortable"]}t.prototype.toArray=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.sortable.toArray()]}))}))};t.prototype.sort=function(t,e){if(e===void 0){e=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.sortable.sort(t,e)]}))}))};t.prototype.moveItem=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,a,s,r;var n;return __generator(this,(function(o){switch(o.label){case 0:if(!t||!t.nextElementSibling&&e==="down"||!t.previousElementSibling&&e==="up"){return[2]}this.resetItemOnBlur=false;if(e==="up"){t.previousElementSibling.before(t)}else if(e==="down"){t.nextElementSibling.after(t)}this.updateAriaLive(this.localization.moved,t);this.focusItem(t);a=Array.from((i=t.parentElement)===null||i===void 0?void 0:i.children).indexOf(t);r=(s=this.stzhUpdate).emit;n={component:"stzh-sortable"};return[4,this.toArray()];case 1:r.apply(s,[(n.data=o.sent(),n.item=t,n.newIndex=a,n.oldIndex=a+(e==="up"?1:-1),n)]);this.resetItemOnBlur=true;return[2]}}))}))};t.prototype.disabledWatcher=function(t){if(t){this.setAttributes()}else{this.unsetAttributes()}this.stzhDisable.emit({component:"stzh-sortable",disabled:t})};t.prototype.filterElementsWatcher=function(t){if(typeof t==="string"){this._filterElements=JSON.parse(t)}else{this._filterElements=t}};t.prototype.getContainer=function(){return typeof this.container==="function"?this.container():this.container};t.prototype.updateAriaLive=function(t,e){if(e===void 0){e=this.selectedItem}if(!this.getContainer()){return}if(e){var i=e.getAttribute("aria-label")||"";var a=this.getIndexOfSelectedItem(e);t=t.replace("{title}",i).replace("{current}",(a+1).toString())}var s=this.getContainer().children.length;t=t.replace(/\{total\}/gi,s.toString());this.ariaLiveElement.textContent=t};t.prototype.getIndexOfSelectedItem=function(t){if(t===void 0){t=this.selectedItem}if(t){return Array.from(t.parentElement.children).indexOf(t)}};t.prototype.resetActiveItem=function(t){if(t===void 0){t=false}if(!this.selectedItem){return}var e=this.getIndexOfSelectedItem();var i=this.selectedItem.parentElement;if(t&&this.lastIndex!==e){if(this.lastIndex>e){i.children[this.lastIndex].after(this.selectedItem)}else{i.children[this.lastIndex].before(this.selectedItem)}this.selectedItem.focus()}i.classList.remove(CLASS_PARENT_SELECTED);this.selectedItem.classList.remove(CLASS_SELECTED);this.selectedItem=null;this.lastIndex=null};t.prototype.focusItem=function(t){if(!t){return}t.focus();var i=document.querySelector("stzh-flyingfocus");if(i){i.reposition()}e(t,{scrollMode:"if-needed",block:"nearest",inline:"nearest"})};t.prototype.setAttributes=function(){var t=this;Array.from(this.getContainer().children).forEach((function(e){e.classList.add(CLASS_ITEM);e.addEventListener("blur",t.onBlur);e.addEventListener("keydown",t.onKeydown);e.setAttribute("tabindex","0");e.setAttribute("aria-describedby","".concat(t.sortableId,"-description"))}))};t.prototype.unsetAttributes=function(){var t=this;Array.from(this.getContainer().children).forEach((function(e){e.classList.remove(CLASS_ITEM);e.removeEventListener("blur",t.onBlur);e.removeEventListener("keydown",t.onKeydown);e.removeAttribute("tabindex");e.removeAttribute("aria-describedby")}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.sortableId="stzh-sortable-".concat(sortableCounter++);this.filterElementsWatcher(this.filterElements);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"sortable")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentWillUpdate=function(){if(this.sortable){this.sortable.destroy();this.sortable=null}};t.prototype.componentDidRender=function(){if(this.sortable){return}this.sortable=new Sortable(this.getContainer(),{animation:150,filter:this._filterElements.join(", "),ghostClass:CLASS_GHOST,chosenClass:CLASS_CHOSEN,dragClass:CLASS_DRAG,dataIdAttr:this.dataIdAttribute,preventOnFilter:false,forceFallback:true,delay:200,delayOnTouchOnly:true,disabled:this.disabled,ghostClone:this.ghostClone,onUpdate:this.updated})};t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}this.unsetAttributes();if(this.sortable){this.sortable.destroy();this.sortable=null}};t.prototype.render=function(){var t=this;var e={"stzh-sortable":true,"stzh-sortable--disabled":this.disabled};return h(Host,null,h("div",{class:e},h("div",{id:"".concat(this.sortableId,"-description"),class:"stzh-sortable__description"},this.localization.description),h("div",{ref:function(e){return t.ariaLiveElement=e},"aria-live":"assertive",class:"stzh-sortable__aria-live"}),h("div",{ref:function(e){return t.containerElement=e},class:"stzh-sortable__container"},h("slot",null))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledWatcher"],filterElements:["filterElementsWatcher"]}},enumerable:false,configurable:true});return t}();StzhSortable.style=stzhSortableCss;export{StzhActionset as stzh_actionset,StzhCard as stzh_card,StzhCardList as stzh_card_list,StzhSortable as stzh_sortable};
7
+ */function _extends(){_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var a in i){if(Object.prototype.hasOwnProperty.call(i,a)){t[a]=i[a]}}}return t};return _extends.apply(this,arguments)}var version="1.15.0";function userAgent(t){if(typeof window!=="undefined"&&window.navigator){return!!navigator.userAgent.match(t)}}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var Edge=userAgent(/Edge/i);var FireFox=userAgent(/firefox/i);var Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i);var IOS=userAgent(/iP(ad|od|hone)/i);var ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i);var captureMode={capture:false,passive:false};function on(t,e,i){t.addEventListener(e,i,!IE11OrLess&&captureMode)}function off(t,e,i){t.removeEventListener(e,i,!IE11OrLess&&captureMode)}function matches(t,e){if(!e)return;e[0]===">"&&(e=e.substring(1));if(t){try{if(t.matches){return t.matches(e)}else if(t.msMatchesSelector){return t.msMatchesSelector(e)}else if(t.webkitMatchesSelector){return t.webkitMatchesSelector(e)}}catch(t){return false}}return false}function getParentOrHost(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function closest(t,e,i,a){if(t){i=i||document;do{if(e!=null&&(e[0]===">"?t.parentNode===i&&matches(t,e):matches(t,e))||a&&t===i){return t}if(t===i)break}while(t=getParentOrHost(t))}return null}var R_SPACE=/\s+/g;function toggleClass(t,e,i){if(t&&e){if(t.classList){t.classList[i?"add":"remove"](e)}else{var a=(" "+t.className+" ").replace(R_SPACE," ").replace(" "+e+" "," ");t.className=(a+(i?" "+e:"")).replace(R_SPACE," ")}}}function css(t,e,i){var a=t&&t.style;if(a){if(i===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){i=document.defaultView.getComputedStyle(t,"")}else if(t.currentStyle){i=t.currentStyle}return e===void 0?i:i[e]}else{if(!(e in a)&&e.indexOf("webkit")===-1){e="-webkit-"+e}a[e]=i+(typeof i==="string"?"":"px")}}}function matrix(t,e){var i="";if(typeof t==="string"){i=t}else{do{var a=css(t,"transform");if(a&&a!=="none"){i=a+" "+i}}while(!e&&(t=t.parentNode))}var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(i)}function find(t,e,i){if(t){var a=t.getElementsByTagName(e),s=0,r=a.length;if(i){for(;s<r;s++){i(a[s],s)}}return a}return[]}function getWindowScrollingElement(){var t=document.scrollingElement;if(t){return t}else{return document.documentElement}}function getRect(t,e,i,a,s){if(!t.getBoundingClientRect&&t!==window)return;var r,n,o,l,c,h,d;if(t!==window&&t.parentNode&&t!==getWindowScrollingElement()){r=t.getBoundingClientRect();n=r.top;o=r.left;l=r.bottom;c=r.right;h=r.height;d=r.width}else{n=0;o=0;l=window.innerHeight;c=window.innerWidth;h=window.innerHeight;d=window.innerWidth}if((e||i)&&t!==window){s=s||t.parentNode;if(!IE11OrLess){do{if(s&&s.getBoundingClientRect&&(css(s,"transform")!=="none"||i&&css(s,"position")!=="static")){var u=s.getBoundingClientRect();n-=u.top+parseInt(css(s,"border-top-width"));o-=u.left+parseInt(css(s,"border-left-width"));l=n+r.height;c=o+r.width;break}}while(s=s.parentNode)}}if(a&&t!==window){var f=matrix(s||t),p=f&&f.a,g=f&&f.d;if(f){n/=g;o/=p;d/=p;h/=g;l=n+h;c=o+d}}return{top:n,left:o,bottom:l,right:c,width:d,height:h}}function isScrolledPast(t,e,i){var a=getParentAutoScrollElement(t,true),s=getRect(t)[e];while(a){var r=getRect(a)[i],n=void 0;if(i==="top"||i==="left"){n=s>=r}else{n=s<=r}if(!n)return a;if(a===getWindowScrollingElement())break;a=getParentAutoScrollElement(a,false)}return false}function getChild(t,e,i,a){var s=0,r=0,n=t.children;while(r<n.length){if(n[r].style.display!=="none"&&n[r]!==Sortable.ghost&&(a||n[r]!==Sortable.dragged)&&closest(n[r],i.draggable,t,false)){if(s===e){return n[r]}s++}r++}return null}function lastChild(t,e){var i=t.lastElementChild;while(i&&(i===Sortable.ghost||css(i,"display")==="none"||e&&!matches(i,e))){i=i.previousElementSibling}return i||null}function index(t,e){var i=0;if(!t||!t.parentNode){return-1}while(t=t.previousElementSibling){if(t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Sortable.clone&&(!e||matches(t,e))){i++}}return i}function getRelativeScrollOffset(t){var e=0,i=0,a=getWindowScrollingElement();if(t){do{var s=matrix(t),r=s.a,n=s.d;e+=t.scrollLeft*r;i+=t.scrollTop*n}while(t!==a&&(t=t.parentNode))}return[e,i]}function indexOfObject(t,e){for(var i in t){if(!t.hasOwnProperty(i))continue;for(var a in e){if(e.hasOwnProperty(a)&&e[a]===t[i][a])return Number(i)}}return-1}function getParentAutoScrollElement(t,e){if(!t||!t.getBoundingClientRect)return getWindowScrollingElement();var i=t;var a=false;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var s=css(i);if(i.clientWidth<i.scrollWidth&&(s.overflowX=="auto"||s.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(s.overflowY=="auto"||s.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return getWindowScrollingElement();if(a||e)return i;a=true}}}while(i=i.parentNode);return getWindowScrollingElement()}function extend(t,e){if(t&&e){for(var i in e){if(e.hasOwnProperty(i)){t[i]=e[i]}}}return t}function isRectEqual(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var _throttleTimeout;function throttle(t,e){return function(){if(!_throttleTimeout){var i=arguments,a=this;if(i.length===1){t.call(a,i[0])}else{t.apply(a,i)}_throttleTimeout=setTimeout((function(){_throttleTimeout=void 0}),e)}}}function cancelThrottle(){clearTimeout(_throttleTimeout);_throttleTimeout=void 0}function scrollBy(t,e,i){t.scrollLeft+=e;t.scrollTop+=i}function clone(t){var e=window.Polymer;var i=window.jQuery||window.Zepto;if(e&&e.dom){return e.dom(t).cloneNode(true)}else if(i){return i(t).clone(true)[0]}else{return t.cloneNode(true)}}function setRect(t,e){css(t,"position","absolute");css(t,"top",e.top);css(t,"left",e.left);css(t,"width",e.width);css(t,"height",e.height)}function unsetRect(t){css(t,"position","");css(t,"top","");css(t,"left","");css(t,"width","");css(t,"height","")}var expando="Sortable"+(new Date).getTime();function AnimationStateManager(){var t=[],e;return{captureAnimationState:function(){t=[];if(!this.options.animation)return;var e=[].slice.call(this.el.children);e.forEach((function(e){if(css(e,"display")==="none"||e===Sortable.ghost)return;t.push({target:e,rect:getRect(e)});var i=__assign({},t[t.length-1].rect);if(e.thisAnimationDuration){var a=matrix(e,true);if(a){i.top-=a.f;i.left-=a.e}}e.fromRect=i}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(indexOfObject(t,{target:e}),1)},animateAll:function(i){var a=this;if(!this.options.animation){clearTimeout(e);if(typeof i==="function")i();return}var s=false,r=0;t.forEach((function(t){var e=0,i=t.target,n=i.fromRect,o=getRect(i),l=i.prevFromRect,c=i.prevToRect,h=t.rect,d=matrix(i,true);if(d){o.top-=d.f;o.left-=d.e}i.toRect=o;if(i.thisAnimationDuration){if(isRectEqual(l,o)&&!isRectEqual(n,o)&&(h.top-o.top)/(h.left-o.left)===(n.top-o.top)/(n.left-o.left)){e=calculateRealTime(h,l,c,a.options)}}if(!isRectEqual(o,n)){i.prevFromRect=n;i.prevToRect=o;if(!e){e=a.options.animation}a.animate(i,h,o,e)}if(e){s=true;r=Math.max(r,e);clearTimeout(i.animationResetTimer);i.animationResetTimer=setTimeout((function(){i.animationTime=0;i.prevFromRect=null;i.fromRect=null;i.prevToRect=null;i.thisAnimationDuration=null}),e);i.thisAnimationDuration=e}}));clearTimeout(e);if(!s){if(typeof i==="function")i()}else{e=setTimeout((function(){if(typeof i==="function")i()}),r)}t=[]},animate:function(t,e,i,a){if(a){css(t,"transition","");css(t,"transform","");var s=matrix(this.el),r=s&&s.a,n=s&&s.d,o=(e.left-i.left)/(r||1),l=(e.top-i.top)/(n||1);t.animatingX=!!o;t.animatingY=!!l;css(t,"transform","translate3d("+o+"px,"+l+"px,0)");this.forRepaintDummy=repaint(t);css(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:""));css(t,"transform","translate3d(0,0,0)");typeof t.animated==="number"&&clearTimeout(t.animated);t.animated=setTimeout((function(){css(t,"transition","");css(t,"transform","");t.animated=false;t.animatingX=false;t.animatingY=false}),a)}}}}function repaint(t){return t.offsetWidth}function calculateRealTime(t,e,i,a){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*a.animation}var plugins=[];var defaults={initializeByDefault:true};var PluginManager={mount:function(t){for(var e in defaults){if(defaults.hasOwnProperty(e)&&!(e in t)){t[e]=defaults[e]}}plugins.forEach((function(e){if(e.pluginName===t.pluginName){throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}}));plugins.push(t)},pluginEvent:function(t,e,i){var a=this;this.eventCanceled=false;i.cancel=function(){a.eventCanceled=true};var s=t+"Global";plugins.forEach((function(a){if(!e[a.pluginName])return;if(e[a.pluginName][s]){e[a.pluginName][s](__assign({sortable:e},i))}if(e.options[a.pluginName]&&e[a.pluginName][t]){e[a.pluginName][t](__assign({sortable:e},i))}}))},initializePlugins:function(t,e,i,a){plugins.forEach((function(a){var s=a.pluginName;if(!t.options[s]&&!a.initializeByDefault)return;var r=new a(t,e,t.options);r.sortable=t;r.options=t.options;t[s]=r;_extends(i,r.defaults)}));for(var s in t.options){if(!t.options.hasOwnProperty(s))continue;var r=this.modifyOption(t,s,t.options[s]);if(typeof r!=="undefined"){t.options[s]=r}}},getEventProperties:function(t,e){var i={};plugins.forEach((function(a){if(typeof a.eventProperties!=="function")return;_extends(i,a.eventProperties.call(e[a.pluginName],t))}));return i},modifyOption:function(t,e,i){var a;plugins.forEach((function(s){if(!t[s.pluginName])return;if(s.optionListeners&&typeof s.optionListeners[e]==="function"){a=s.optionListeners[e].call(t[s.pluginName],i)}}));return a}};function dispatchEvent(t){var e=t.sortable,i=t.rootEl,a=t.name,s=t.targetEl,r=t.cloneEl,n=t.toEl,o=t.fromEl,l=t.oldIndex,c=t.newIndex,h=t.oldDraggableIndex,d=t.newDraggableIndex,u=t.originalEvent,f=t.putSortable,p=t.extraEventProperties;e=e||i&&i[expando];if(!e)return;var g,m=e.options,v="on"+a.charAt(0).toUpperCase()+a.substr(1);if(window.CustomEvent&&!IE11OrLess&&!Edge){g=new CustomEvent(a,{bubbles:true,cancelable:true})}else{g=document.createEvent("Event");g.initEvent(a,true,true)}g.to=n||i;g.from=o||i;g.item=s||i;g.clone=r;g.oldIndex=l;g.newIndex=c;g.oldDraggableIndex=h;g.newDraggableIndex=d;g.originalEvent=u;g.pullMode=f?f.lastPutMode:undefined;var b=__assign(__assign({},p),PluginManager.getEventProperties(a,e));for(var z in b){g[z]=b[z]}if(i){i.dispatchEvent(g)}if(m[v]){m[v].call(e,g)}}var pluginEvent=function(t,e,i){if(i===void 0){i={}}var a=i.evt,s=__rest(i,["evt"]);PluginManager.pluginEvent.bind(Sortable)(t,e,__assign({dragEl:dragEl,parentEl:parentEl,ghostEl:ghostEl,rootEl:rootEl,nextEl:nextEl,lastDownEl:lastDownEl,cloneEl:cloneEl,cloneHidden:cloneHidden,dragStarted:moved,putSortable:putSortable,activeSortable:Sortable.active,originalEvent:a,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=true},cloneNowShown:function(){cloneHidden=false},dispatchSortableEvent:function(t){_dispatchEvent({sortable:e,name:t,originalEvent:a})}},s))};function _dispatchEvent(t){dispatchEvent(__assign({putSortable:putSortable,cloneEl:cloneEl,targetEl:dragEl,rootEl:rootEl,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex},t))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=false,ignoreNextClick=false,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=false,isCircumstantialInvert=false,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=false,savedInputChecked=[];var documentExists=typeof document!=="undefined",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(!documentExists)return;if(IE11OrLess){return false}var t=document.createElement("x");t.style.cssText="pointer-events:auto";return t.style.pointerEvents==="auto"}(),_detectDirection=function(t,e){var i=css(t),a=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),s=getChild(t,0,e),r=getChild(t,1,e),n=s&&css(s),o=r&&css(r),l=n&&parseInt(n.marginLeft)+parseInt(n.marginRight)+getRect(s).width,c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+getRect(r).width;if(i.display==="flex"){return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal"}if(i.display==="grid"){return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(s&&n.float&&n.float!=="none"){var h=n.float==="left"?"left":"right";return r&&(o.clear==="both"||o.clear===h)?"vertical":"horizontal"}return s&&(n.display==="block"||n.display==="flex"||n.display==="table"||n.display==="grid"||l>=a&&i[CSSFloatProperty]==="none"||r&&i[CSSFloatProperty]==="none"&&l+c>a)?"vertical":"horizontal"},_dragElInRowColumn=function(t,e,i){var a=i?t.left:t.top,s=i?t.right:t.bottom,r=i?t.width:t.height,n=i?e.left:e.top,o=i?e.right:e.bottom,l=i?e.width:e.height;return a===n||s===o||a+r/2===n+l/2},_detectNearestEmptySortable=function(t,e){var i;sortables.some((function(a){var s=a[expando].options.emptyInsertThreshold;if(!s||lastChild(a))return;var r=getRect(a),n=t>=r.left-s&&t<=r.right+s,o=e>=r.top-s&&e<=r.bottom+s;if(n&&o){return i=a}}));return i},_prepareGroup=function(t){function e(t,i){return function(a,s,r,n){var o=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(t==null&&(i||o)){return true}else if(t==null||t===false){return false}else if(i&&t==="clone"){return t}else if(typeof t==="function"){return e(t(a,s,r,n),i)(a,s,r,n)}else{var l=(i?a:s).options.group.name;return t===true||typeof t==="string"&&t===l||t.join&&t.indexOf(l)>-1}}}var i={};var a=t.group;if(!a||typeof a!="object"){a={name:a}}i.name=a.name;i.checkPull=e(a.pull,true);i.checkPut=e(a.put);i.revertClone=a.revertClone;t.group=i},_hideGhostForTarget=function(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","none")}},_unhideGhostForTarget=function(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","")}};if(documentExists&&!ChromeForAndroid){document.addEventListener("click",(function(t){if(ignoreNextClick){t.preventDefault();t.stopPropagation&&t.stopPropagation();t.stopImmediatePropagation&&t.stopImmediatePropagation();ignoreNextClick=false;return false}}),true)}var nearestEmptyInsertDetectEvent=function(t){if(dragEl){t=t.touches?t.touches[0]:t;var e=_detectNearestEmptySortable(t.clientX,t.clientY);if(e){var i={};for(var a in t){if(t.hasOwnProperty(a)){i[a]=t[a]}}i.target=i.rootEl=e;i.preventDefault=void 0;i.stopPropagation=void 0;e[expando]._onDragOver(i)}}};var _checkOutsideTargetEl=function(t){if(dragEl){dragEl.parentNode[expando]._isOutsideThisEl(t.target)}};function Sortable(t,e){if(!(t&&t.nodeType&&t.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t))}this.el=t;this.options=e=_extends({},e);t[expando]=this;var i={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function(){return _detectDirection(t,this.options)},ghostClone:function(t){return t.cloneNode(true)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==false&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,t,i);for(var a in i){!(a in e)&&(e[a]=i[a])}_prepareGroup(e);for(var s in this){if(s.charAt(0)==="_"&&typeof this[s]==="function"){this[s]=this[s].bind(this)}}this.nativeDraggable=e.forceFallback?false:supportDraggable;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(e.supportPointer){on(t,"pointerdown",this._onTapStart)}else{on(t,"mousedown",this._onTapStart);on(t,"touchstart",this._onTapStart)}if(this.nativeDraggable){on(t,"dragover",this);on(t,"dragenter",this)}sortables.push(this.el);e.store&&e.store.get&&this.sort(e.store.get(this)||[]);_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(t){if(!this.el.contains(t)&&t!==this.el){lastTarget=null}},_getDirection:function(t,e){return typeof this.options.direction==="function"?this.options.direction.call(this,t,e,dragEl):this.options.direction},_onTapStart:function(t){if(!t.cancelable)return;var e=this,i=this.el,a=this.options,s=a.preventOnFilter,r=t.type,n=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,o=(n||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||o,c=a.filter;_saveInputCheckedState(i);if(dragEl){return}if(/mousedown|pointerdown/.test(r)&&t.button!==0||a.disabled){return}if(l.isContentEditable){return}if(!this.nativeDraggable&&Safari&&o&&o.tagName.toUpperCase()==="SELECT"){return}o=closest(o,a.draggable,i,false);if(o&&o.animated){return}if(lastDownEl===o){return}oldIndex=index(o);oldDraggableIndex=index(o,a.draggable);if(typeof c==="function"){if(c.call(this,t,o,this)){_dispatchEvent({sortable:e,rootEl:l,name:"filter",targetEl:o,toEl:i,fromEl:i});pluginEvent("filter",e,{evt:t});s&&t.cancelable&&t.preventDefault();return}}else if(c){c=c.split(",").some((function(a){a=closest(l,a.trim(),i,false);if(a){_dispatchEvent({sortable:e,rootEl:a,name:"filter",targetEl:o,fromEl:i,toEl:i});pluginEvent("filter",e,{evt:t});return true}}));if(c){s&&t.cancelable&&t.preventDefault();return}}if(a.handle&&!closest(l,a.handle,i,false)){return}this._prepareDragStart(t,n,o)},_prepareDragStart:function(t,e,i){var a=this,s=a.el,r=a.options,n=s.ownerDocument,o;if(i&&!dragEl&&i.parentNode===s){var l=getRect(i);rootEl=s;dragEl=i;parentEl=dragEl.parentNode;nextEl=dragEl.nextSibling;lastDownEl=i;activeGroup=r.group;Sortable.dragged=dragEl;tapEvt={target:dragEl,clientX:(e||t).clientX,clientY:(e||t).clientY};tapDistanceLeft=tapEvt.clientX-l.left;tapDistanceTop=tapEvt.clientY-l.top;this._lastX=(e||t).clientX;this._lastY=(e||t).clientY;dragEl.style["will-change"]="all";o=function(){pluginEvent("delayEnded",a,{evt:t});if(Sortable.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents();if(!FireFox&&a.nativeDraggable){dragEl.draggable=true}a._triggerDragStart(t,e);_dispatchEvent({sortable:a,name:"choose",originalEvent:t});toggleClass(dragEl,r.chosenClass,true)};r.ignore.split(",").forEach((function(t){find(dragEl,t.trim(),_disableDraggable)}));on(n,"dragover",nearestEmptyInsertDetectEvent);on(n,"mousemove",nearestEmptyInsertDetectEvent);on(n,"touchmove",nearestEmptyInsertDetectEvent);on(n,"mouseup",a._onDrop);on(n,"touchend",a._onDrop);on(n,"touchcancel",a._onDrop);if(FireFox&&this.nativeDraggable){this.options.touchStartThreshold=4;dragEl.draggable=true}pluginEvent("delayStart",this,{evt:t});if(r.delay&&(!r.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on(n,"mouseup",a._disableDelayedDrag);on(n,"touchend",a._disableDelayedDrag);on(n,"touchcancel",a._disableDelayedDrag);on(n,"mousemove",a._delayedDragTouchMoveHandler);on(n,"touchmove",a._delayedDragTouchMoveHandler);r.supportPointer&&on(n,"pointermove",a._delayedDragTouchMoveHandler);a._dragStartTimer=setTimeout(o,r.delay)}else{o()}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;if(Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function(){dragEl&&_disableDraggable(dragEl);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag);off(t,"touchend",this._disableDelayedDrag);off(t,"touchcancel",this._disableDelayedDrag);off(t,"mousemove",this._delayedDragTouchMoveHandler);off(t,"touchmove",this._delayedDragTouchMoveHandler);off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t;if(!this.nativeDraggable||e){if(this.options.supportPointer){on(document,"pointermove",this._onTouchMove)}else if(e){on(document,"touchmove",this._onTouchMove)}else{on(document,"mousemove",this._onTouchMove)}}else{on(dragEl,"dragend",this);on(rootEl,"dragstart",this._onDragStart)}try{if(document.selection){_nextTick((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(t){}},_dragStarted:function(t,e){awaitingDragStarted=false;if(rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:e});if(this.nativeDraggable){on(document,"dragover",_checkOutsideTargetEl)}var i=this.options;!t&&toggleClass(dragEl,i.dragClass,false);toggleClass(dragEl,i.ghostClass,true);Sortable.active=this;t&&this._appendGhost();_dispatchEvent({sortable:this,name:"start",originalEvent:e})}else{this._nulling()}},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX;this._lastY=touchEvt.clientY;_hideGhostForTarget();var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY);var e=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY);if(t===e)break;e=t}dragEl.parentNode[expando]._isOutsideThisEl(t);if(e){do{if(e[expando]){var i=void 0;i=e[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:e});if(i&&!this.options.dragoverBubble){break}}t=e}while(e=e.parentNode)}_unhideGhostForTarget()}},_onTouchMove:function(t){if(tapEvt){var e=this.options,i=e.fallbackTolerance,a=e.fallbackOffset,s=t.touches?t.touches[0]:t,r=ghostEl&&matrix(ghostEl,true),n=ghostEl&&r&&r.a,o=ghostEl&&r&&r.d,l=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),c=(s.clientX-tapEvt.clientX+a.x)/(n||1)+(l?l[0]-ghostRelativeParentInitialScroll[0]:0)/(n||1),h=(s.clientY-tapEvt.clientY+a.y)/(o||1)+(l?l[1]-ghostRelativeParentInitialScroll[1]:0)/(o||1);if(!Sortable.active&&!awaitingDragStarted){if(i&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<i){return}this._onDragStart(t,true)}if(ghostEl){if(r){r.e+=c-(lastDx||0);r.f+=h-(lastDy||0)}else{r={a:1,b:0,c:0,d:1,e:c,f:h}}var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");css(ghostEl,"webkitTransform",d);css(ghostEl,"mozTransform",d);css(ghostEl,"msTransform",d);css(ghostEl,"transform",d);lastDx=c;lastDy=h;touchEvt=s}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,e=getRect(dragEl,true,PositionGhostAbsolutely,true,t),i=this.options;if(PositionGhostAbsolutely){ghostRelativeParent=t;while(css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document){ghostRelativeParent=ghostRelativeParent.parentNode}if(ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement){if(ghostRelativeParent===document)ghostRelativeParent=getWindowScrollingElement();e.top+=ghostRelativeParent.scrollTop;e.left+=ghostRelativeParent.scrollLeft}else{ghostRelativeParent=getWindowScrollingElement()}ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=i.ghostClone(dragEl);toggleClass(ghostEl,i.ghostClass,false);toggleClass(ghostEl,i.fallbackClass,true);toggleClass(ghostEl,i.dragClass,true);css(ghostEl,"transition","");css(ghostEl,"transform","");css(ghostEl,"box-sizing","border-box");css(ghostEl,"margin",0);css(ghostEl,"top",e.top);css(ghostEl,"left",e.left);css(ghostEl,"width",e.width);css(ghostEl,"height",e.height);css(ghostEl,"opacity","0.8");css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed");css(ghostEl,"zIndex","100000");css(ghostEl,"pointerEvents","none");Sortable.ghost=ghostEl;t.appendChild(ghostEl);css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this;var a=t.dataTransfer;var s=i.options;pluginEvent("dragStart",this,{evt:t});if(Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this);if(!Sortable.eventCanceled){cloneEl=clone(dragEl);cloneEl.removeAttribute("id");cloneEl.draggable=false;cloneEl.style["will-change"]="";this._hideClone();toggleClass(cloneEl,this.options.chosenClass,false);Sortable.clone=cloneEl}i.cloneId=_nextTick((function(){pluginEvent("clone",i);if(Sortable.eventCanceled)return;if(!i.options.removeCloneOnHide){rootEl.insertBefore(cloneEl,dragEl)}i._hideClone();_dispatchEvent({sortable:i,name:"clone"})}));!e&&toggleClass(dragEl,s.dragClass,true);if(e){ignoreNextClick=true;i._loopId=setInterval(i._emulateDragOver,50)}else{off(document,"mouseup",i._onDrop);off(document,"touchend",i._onDrop);off(document,"touchcancel",i._onDrop);if(a){a.effectAllowed="move";s.setData&&s.setData.call(i,a,dragEl)}on(document,"drop",i);css(dragEl,"transform","translateZ(0)")}awaitingDragStarted=true;i._dragStartId=_nextTick(i._dragStarted.bind(i,e,t));on(document,"selectstart",i);moved=true;if(Safari){css(document.body,"user-select","none")}},_onDragOver:function(t){var e=this.el,i=t.target,a,s,r,n=this.options,o=n.group,l=Sortable.active,c=activeGroup===o,h=n.sort,d=putSortable||l,u,f=this,p=false;if(_silent)return;function g(n,o){pluginEvent(n,f,__assign({evt:t,isOwner:c,axis:u?"vertical":"horizontal",revert:r,dragRect:a,targetRect:s,canSort:h,fromSortable:d,target:i,completed:v,onMove:function(i,s){return onMove(rootEl,e,dragEl,a,i,getRect(i),t,s)},changed:b},o))}function m(){g("dragOverAnimationCapture");f.captureAnimationState();if(f!==d){d.captureAnimationState()}}function v(a){g("dragOverCompleted",{insertion:a});if(a){if(c){l._hideClone()}else{l._showClone(f)}if(f!==d){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:l.options.ghostClass,false);toggleClass(dragEl,n.ghostClass,true)}if(putSortable!==f&&f!==Sortable.active){putSortable=f}else if(f===Sortable.active&&putSortable){putSortable=null}if(d===f){f._ignoreWhileAnimating=i}f.animateAll((function(){g("dragOverAnimationComplete");f._ignoreWhileAnimating=null}));if(f!==d){d.animateAll();d._ignoreWhileAnimating=null}}if(i===dragEl&&!dragEl.animated||i===e&&!i.animated){lastTarget=null}if(!n.dragoverBubble&&!t.rootEl&&i!==document){dragEl.parentNode[expando]._isOutsideThisEl(t.target);!a&&nearestEmptyInsertDetectEvent(t)}!n.dragoverBubble&&t.stopPropagation&&t.stopPropagation();return p=true}function b(){newIndex=index(dragEl);newDraggableIndex=index(dragEl,n.draggable);_dispatchEvent({sortable:f,name:"change",toEl:e,newIndex:newIndex,newDraggableIndex:newDraggableIndex,originalEvent:t})}if(t.preventDefault!==void 0){t.cancelable&&t.preventDefault()}i=closest(i,n.draggable,e,true);g("dragOver");if(Sortable.eventCanceled)return p;if(dragEl.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i){return v(false)}ignoreNextClick=false;if(l&&!n.disabled&&(c?h||(r=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,l,dragEl,t))&&o.checkPut(this,l,dragEl,t))){u=this._getDirection(t,i)==="vertical";a=getRect(dragEl);g("dragOverValid");if(Sortable.eventCanceled)return p;if(r){parentEl=rootEl;m();this._hideClone();g("revert");if(!Sortable.eventCanceled){if(nextEl){rootEl.insertBefore(dragEl,nextEl)}else{rootEl.appendChild(dragEl)}}return v(true)}var z=lastChild(e,n.draggable);if(!z||_ghostIsLast(t,u,this)&&!z.animated){if(z===dragEl){return v(false)}if(z&&e===t.target){i=z}if(i){s=getRect(i)}if(onMove(rootEl,e,dragEl,a,i,s,t,!!i)!==false){m();if(z&&z.nextSibling){e.insertBefore(dragEl,z.nextSibling)}else{e.appendChild(dragEl)}parentEl=e;b();return v(true)}}else if(z&&_ghostIsFirst(t,u,this)){var E=getChild(e,0,n,true);if(E===dragEl){return v(false)}i=E;s=getRect(i);if(onMove(rootEl,e,dragEl,a,i,s,t,false)!==false){m();e.insertBefore(dragEl,E);parentEl=e;b();return v(true)}}else if(i.parentNode===e){s=getRect(i);var _=0,w=void 0,y=dragEl.parentNode!==e,x=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||a,i.animated&&i.toRect||s,u),S=u?"top":"left",C=isScrolledPast(i,"top","top")||isScrolledPast(dragEl,"top","top"),D=C?C.scrollTop:void 0;if(lastTarget!==i){w=s[S];pastFirstInvertThresh=false;isCircumstantialInvert=!x&&n.invertSwap||y}_=_getSwapDirection(t,i,s,u,x?1:n.swapThreshold,n.invertedSwapThreshold==null?n.swapThreshold:n.invertedSwapThreshold,isCircumstantialInvert,lastTarget===i);var k=void 0;if(_!==0){var I=index(dragEl);do{I-=_;k=parentEl.children[I]}while(k&&(css(k,"display")==="none"||k===ghostEl))}if(_===0||k===i){return v(false)}lastTarget=i;lastDirection=_;var A=i.nextElementSibling,T=false;T=_===1;var O=onMove(rootEl,e,dragEl,a,i,s,t,T);if(O!==false){if(O===1||O===-1){T=O===1}_silent=true;setTimeout(_unsilent,30);m();if(T&&!A){e.appendChild(dragEl)}else{i.parentNode.insertBefore(dragEl,T?A:i)}if(C){scrollBy(C,0,D-C.scrollTop)}parentEl=dragEl.parentNode;if(w!==undefined&&!isCircumstantialInvert){targetMoveDistance=Math.abs(w-getRect(i)[S])}b();return v(true)}}if(e.contains(dragEl)){return v(false)}}return false},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove);off(document,"touchmove",this._onTouchMove);off(document,"pointermove",this._onTouchMove);off(document,"dragover",nearestEmptyInsertDetectEvent);off(document,"mousemove",nearestEmptyInsertDetectEvent);off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop);off(t,"touchend",this._onDrop);off(t,"pointerup",this._onDrop);off(t,"touchcancel",this._onDrop);off(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;newIndex=index(dragEl);newDraggableIndex=index(dragEl,i.draggable);pluginEvent("drop",this,{evt:t});parentEl=dragEl&&dragEl.parentNode;newIndex=index(dragEl);newDraggableIndex=index(dragEl,i.draggable);if(Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=false;isCircumstantialInvert=false;pastFirstInvertThresh=false;clearInterval(this._loopId);clearTimeout(this._dragStartTimer);_cancelNextTick(this.cloneId);_cancelNextTick(this._dragStartId);if(this.nativeDraggable){off(document,"drop",this);off(e,"dragstart",this._onDragStart)}this._offMoveEvents();this._offUpEvents();if(Safari){css(document.body,"user-select","")}css(dragEl,"transform","");if(t){if(moved){t.cancelable&&t.preventDefault();!i.dropBubble&&t.stopPropagation()}ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl);if(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone"){cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl)}if(dragEl){if(this.nativeDraggable){off(dragEl,"dragend",this)}_disableDraggable(dragEl);dragEl.style["will-change"]="";if(moved&&!awaitingDragStarted){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,false)}toggleClass(dragEl,this.options.chosenClass,false);_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t});if(rootEl!==parentEl){if(newIndex>=0){_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t});_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}putSortable&&putSortable.save()}else{if(newIndex!==oldIndex){if(newIndex>=0){_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}}}if(Sortable.active){if(newIndex==null||newIndex===-1){newIndex=oldIndex;newDraggableIndex=oldDraggableIndex}_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t});this.save()}}}this._nulling()},_nulling:function(){pluginEvent("nulling",this);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;savedInputChecked.forEach((function(t){t.checked=true}));savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(dragEl){this._onDragOver(t);_globalDragOver(t)}break;case"selectstart":t.preventDefault();break}},toArray:function(){var t=[],e,i=this.el.children,a=0,s=i.length,r=this.options;for(;a<s;a++){e=i[a];if(closest(e,r.draggable,this.el,false)){t.push(e.getAttribute(r.dataIdAttr)||_generateId(e))}}return t},sort:function(t,e){var i={},a=this.el;this.toArray().forEach((function(t,e){var s=a.children[e];if(closest(s,this.options.draggable,a,false)){i[t]=s}}),this);e&&this.captureAnimationState();t.forEach((function(t){if(i[t]){a.removeChild(i[t]);a.appendChild(i[t])}}));e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return closest(t,e||this.options.draggable,this.el,false)},option:function(t,e){var i=this.options;if(e===void 0){return i[t]}else{var a=PluginManager.modifyOption(this,t,e);if(typeof a!=="undefined"){i[t]=a}else{i[t]=e}if(t==="group"){_prepareGroup(i)}}},destroy:function(){pluginEvent("destroy",this);var t=this.el;t[expando]=null;off(t,"mousedown",this._onTapStart);off(t,"touchstart",this._onTapStart);off(t,"pointerdown",this._onTapStart);if(this.nativeDraggable){off(t,"dragover",this);off(t,"dragenter",this)}Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")}));this._onDrop();this._disableDelayedDragEvents();sortables.splice(sortables.indexOf(this.el),1);this.el=t=null},_hideClone:function(){if(!cloneHidden){pluginEvent("hideClone",this);if(Sortable.eventCanceled)return;css(cloneEl,"display","none");if(this.options.removeCloneOnHide&&cloneEl.parentNode){cloneEl.parentNode.removeChild(cloneEl)}cloneHidden=true}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){pluginEvent("showClone",this);if(Sortable.eventCanceled)return;if(dragEl.parentNode==rootEl&&!this.options.group.revertClone){rootEl.insertBefore(cloneEl,dragEl)}else if(nextEl){rootEl.insertBefore(cloneEl,nextEl)}else{rootEl.appendChild(cloneEl)}if(this.options.group.revertClone){this.animate(dragEl,cloneEl)}css(cloneEl,"display","");cloneHidden=false}}};function _globalDragOver(t){if(t.dataTransfer){t.dataTransfer.dropEffect="move"}t.cancelable&&t.preventDefault()}function onMove(t,e,i,a,s,r,n,o){var l,c=t[expando],h=c.options.onMove,d;if(window.CustomEvent&&!IE11OrLess&&!Edge){l=new CustomEvent("move",{bubbles:true,cancelable:true})}else{l=document.createEvent("Event");l.initEvent("move",true,true)}l.to=e;l.from=t;l.dragged=i;l.draggedRect=a;l.related=s||e;l.relatedRect=r||getRect(e);l.willInsertAfter=o;l.originalEvent=n;t.dispatchEvent(l);if(h){d=h.call(c,l,n)}return d}function _disableDraggable(t){t.draggable=false}function _unsilent(){_silent=false}function _ghostIsFirst(t,e,i){var a=getRect(getChild(i.el,0,i.options,true));var s=10;return e?t.clientX<a.left-s||t.clientY<a.top&&t.clientX<a.right:t.clientY<a.top-s||t.clientY<a.bottom&&t.clientX<a.left}function _ghostIsLast(t,e,i){var a=getRect(lastChild(i.el,i.options.draggable));var s=10;return e?t.clientX>a.right+s||t.clientX<=a.right&&t.clientY>a.bottom&&t.clientX>=a.left:t.clientX>a.right&&t.clientY>a.top||t.clientX<=a.right&&t.clientY>a.bottom+s}function _getSwapDirection(t,e,i,a,s,r,n,o){var l=a?t.clientY:t.clientX,c=a?i.height:i.width,h=a?i.top:i.left,d=a?i.bottom:i.right,u=false;if(!n){if(o&&targetMoveDistance<c*s){if(!pastFirstInvertThresh&&(lastDirection===1?l>h+c*r/2:l<d-c*r/2)){pastFirstInvertThresh=true}if(!pastFirstInvertThresh){if(lastDirection===1?l<h+targetMoveDistance:l>d-targetMoveDistance){return-lastDirection}}else{u=true}}else{if(l>h+c*(1-s)/2&&l<d-c*(1-s)/2){return _getInsertDirection(e)}}}u=u||n;if(u){if(l<h+c*r/2||l>d-c*r/2){return l>h+c/2?1:-1}}return 0}function _getInsertDirection(t){if(index(dragEl)<index(t)){return 1}else{return-1}}function _generateId(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,a=0;while(i--){a+=e.charCodeAt(i)}return a.toString(36)}function _saveInputCheckedState(t){savedInputChecked.length=0;var e=t.getElementsByTagName("input");var i=e.length;while(i--){var a=e[i];a.checked&&savedInputChecked.push(a)}}function _nextTick(t){return setTimeout(t,0)}function _cancelNextTick(t){return clearTimeout(t)}if(documentExists){on(document,"touchmove",(function(t){if((Sortable.active||awaitingDragStarted)&&t.cancelable){t.preventDefault()}}))}Sortable.utils={on:on,off:off,css:css,find:find,is:function(t,e){return!!closest(t,e,t,false)},extend:extend,throttle:throttle,closest:closest,toggleClass:toggleClass,clone:clone,index:index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild:getChild};Sortable.get=function(t){return t[expando]};Sortable.mount=function(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}if(t[0].constructor===Array)t=t[0];t.forEach((function(t){if(!t.prototype||!t.prototype.constructor){throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t))}if(t.utils)Sortable.utils=__assign(__assign({},Sortable.utils),t.utils);PluginManager.mount(t)}))};Sortable.create=function(t,e){return new Sortable(t,e)};Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=false,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function t(){this.defaults={scroll:true,forceAutoScrollFallback:false,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:true};for(var t in this){if(t.charAt(0)==="_"&&typeof this[t]==="function"){this[t]=this[t].bind(this)}}}t.prototype={dragStarted:function(t){var e=t.originalEvent;if(this.sortable.nativeDraggable){on(document,"dragover",this._handleAutoScroll)}else{if(this.options.supportPointer){on(document,"pointermove",this._handleFallbackAutoScroll)}else if(e.touches){on(document,"touchmove",this._handleFallbackAutoScroll)}else{on(document,"mousemove",this._handleFallbackAutoScroll)}}},dragOverCompleted:function(t){var e=t.originalEvent;if(!this.options.dragOverBubble&&!e.rootEl){this._handleAutoScroll(e)}},drop:function(){if(this.sortable.nativeDraggable){off(document,"dragover",this._handleAutoScroll)}else{off(document,"pointermove",this._handleFallbackAutoScroll);off(document,"touchmove",this._handleFallbackAutoScroll);off(document,"mousemove",this._handleFallbackAutoScroll)}clearPointerElemChangedInterval();clearAutoScrolls();cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null;autoScrolls.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,true)},_handleAutoScroll:function(t,e){var i=this;var a=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(a,s);touchEvt$1=t;if(e||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(t,this.options,r,e);var n=getParentAutoScrollElement(r,true);if(scrolling&&(!pointerElemChangedInterval||a!==lastAutoScrollX||s!==lastAutoScrollY)){pointerElemChangedInterval&&clearPointerElemChangedInterval();pointerElemChangedInterval=setInterval((function(){var r=getParentAutoScrollElement(document.elementFromPoint(a,s),true);if(r!==n){n=r;clearAutoScrolls()}autoScroll(t,i.options,r,e)}),10);lastAutoScrollX=a;lastAutoScrollY=s}}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(r,true)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(t,this.options,getParentAutoScrollElement(r,false),false)}}};return _extends(t,{pluginName:"scroll",initializeByDefault:true})}function clearAutoScrolls(){autoScrolls.forEach((function(t){clearInterval(t.pid)}));autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle((function(t,e,i,a){if(!e.scroll)return;var s=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,n=e.scrollSensitivity,o=e.scrollSpeed,l=getWindowScrollingElement();var c=false,h;if(scrollRootEl!==i){scrollRootEl=i;clearAutoScrolls();scrollEl=e.scroll;h=e.scrollFn;if(scrollEl===true){scrollEl=getParentAutoScrollElement(i,true)}}var d=0;var u=scrollEl;do{var f=u,p=getRect(f),g=p.top,m=p.bottom,v=p.left,b=p.right,z=p.width,E=p.height,_=void 0,w=void 0,y=f.scrollWidth,x=f.scrollHeight,S=css(f),C=f.scrollLeft,D=f.scrollTop;if(f===l){_=z<y&&(S.overflowX==="auto"||S.overflowX==="scroll"||S.overflowX==="visible");w=E<x&&(S.overflowY==="auto"||S.overflowY==="scroll"||S.overflowY==="visible")}else{_=z<y&&(S.overflowX==="auto"||S.overflowX==="scroll");w=E<x&&(S.overflowY==="auto"||S.overflowY==="scroll")}var k=_&&(Math.abs(b-s)<=n&&C+z<y)-(Math.abs(v-s)<=n&&!!C);var I=w&&(Math.abs(m-r)<=n&&D+E<x)-(Math.abs(g-r)<=n&&!!D);if(!autoScrolls[d]){for(var A=0;A<=d;A++){if(!autoScrolls[A]){autoScrolls[A]={}}}}if(autoScrolls[d].vx!=k||autoScrolls[d].vy!=I||autoScrolls[d].el!==f){autoScrolls[d].el=f;autoScrolls[d].vx=k;autoScrolls[d].vy=I;clearInterval(autoScrolls[d].pid);if(k!=0||I!=0){c=true;autoScrolls[d].pid=setInterval(function(){if(a&&this.layer===0){Sortable.active._onTouchMove(touchEvt$1)}var e=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*o:0;var i=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*o:0;if(typeof h==="function"){if(h.call(Sortable.dragged.parentNode[expando],i,e,t,touchEvt$1,autoScrolls[this.layer].el)!=="continue"){return}}scrollBy(autoScrolls[this.layer].el,i,e)}.bind({layer:d}),24)}}d++}while(e.bubbleScroll&&u!==l&&(u=getParentAutoScrollElement(u,false)));scrolling=c}),30);var drop=function(t){var e=t.originalEvent,i=t.putSortable,a=t.dragEl,s=t.activeSortable,r=t.dispatchSortableEvent,n=t.hideGhostForTarget,o=t.unhideGhostForTarget;if(!e)return;var l=i||s;n();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;var h=document.elementFromPoint(c.clientX,c.clientY);o();if(l&&!l.el.contains(h)){r("spill");this.onSpill({dragEl:a,putSortable:i})}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState();if(i){i.captureAnimationState()}var a=getChild(this.sortable.el,this.startIndex,this.options);if(a){this.sortable.el.insertBefore(e,a)}else{this.sortable.el.appendChild(e)}this.sortable.animateAll();if(i){i.animateAll()}},drop:drop};_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable;var a=i||this.sortable;a.captureAnimationState();e.parentNode&&e.parentNode.removeChild(e);a.animateAll()},drop:drop};_extends(Remove,{pluginName:"removeOnSpill"});var lastSwapEl;function SwapPlugin(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}t.prototype={dragStart:function(t){var e=t.dragEl;lastSwapEl=e},dragOverValid:function(t){var e=t.completed,i=t.target,a=t.onMove,s=t.activeSortable,r=t.changed,n=t.cancel;if(!s.options.swap)return;var o=this.sortable.el,l=this.options;if(i&&i!==o){var c=lastSwapEl;if(a(i)!==false){toggleClass(i,l.swapClass,true);lastSwapEl=i}else{lastSwapEl=null}if(c&&c!==lastSwapEl){toggleClass(c,l.swapClass,false)}}r();e(true);n()},drop:function(t){var e=t.activeSortable,i=t.putSortable,a=t.dragEl;var s=i||this.sortable;var r=this.options;lastSwapEl&&toggleClass(lastSwapEl,r.swapClass,false);if(lastSwapEl&&(r.swap||i&&i.options.swap)){if(a!==lastSwapEl){s.captureAnimationState();if(s!==e)e.captureAnimationState();swapNodes(a,lastSwapEl);s.animateAll();if(s!==e)e.animateAll()}}},nulling:function(){lastSwapEl=null}};return _extends(t,{pluginName:"swap",eventProperties:function(){return{swapItem:lastSwapEl}}})}function swapNodes(t,e){var i=t.parentNode,a=e.parentNode,s,r;if(!i||!a||i.isEqualNode(e)||a.isEqualNode(t))return;s=index(t);r=index(e);if(i.isEqualNode(a)&&s<r){r++}i.insertBefore(e,i.children[s]);a.insertBefore(t,a.children[r])}var multiDragElements=[],multiDragClones=[],lastMultiDragSelect,multiDragSortable,initialFolding=false,folding=false,dragStarted=false,dragEl$1,clonesFromRect,clonesHidden;function MultiDragPlugin(){function t(t){for(var e in this){if(e.charAt(0)==="_"&&typeof this[e]==="function"){this[e]=this[e].bind(this)}}if(!t.options.avoidImplicitDeselect){if(t.options.supportPointer){on(document,"pointerup",this._deselectMultiDrag)}else{on(document,"mouseup",this._deselectMultiDrag);on(document,"touchend",this._deselectMultiDrag)}}on(document,"keydown",this._checkKeyDown);on(document,"keyup",this._checkKeyUp);this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:false,setData:function(e,i){var a="";if(multiDragElements.length&&multiDragSortable===t){multiDragElements.forEach((function(t,e){a+=(!e?"":", ")+t.textContent}))}else{a=i.textContent}e.setData("Text",a)}}}t.prototype={multiDragKeyDown:false,isMultiDrag:false,delayStartGlobal:function(t){var e=t.dragEl;dragEl$1=e},delayEnded:function(){this.isMultiDrag=~multiDragElements.indexOf(dragEl$1)},setupClone:function(t){var e=t.sortable,i=t.cancel;if(!this.isMultiDrag)return;for(var a=0;a<multiDragElements.length;a++){multiDragClones.push(clone(multiDragElements[a]));multiDragClones[a].sortableIndex=multiDragElements[a].sortableIndex;multiDragClones[a].draggable=false;multiDragClones[a].style["will-change"]="";toggleClass(multiDragClones[a],this.options.selectedClass,false);multiDragElements[a]===dragEl$1&&toggleClass(multiDragClones[a],this.options.chosenClass,false)}e._hideClone();i()},clone:function(t){var e=t.sortable,i=t.rootEl,a=t.dispatchSortableEvent,s=t.cancel;if(!this.isMultiDrag)return;if(!this.options.removeCloneOnHide){if(multiDragElements.length&&multiDragSortable===e){insertMultiDragClones(true,i);a("clone");s()}}},showClone:function(t){var e=t.cloneNowShown,i=t.rootEl,a=t.cancel;if(!this.isMultiDrag)return;insertMultiDragClones(false,i);multiDragClones.forEach((function(t){css(t,"display","")}));e();clonesHidden=false;a()},hideClone:function(t){var e=this;var i=t.sortable,a=t.cloneNowHidden,s=t.cancel;if(!this.isMultiDrag)return;multiDragClones.forEach((function(t){css(t,"display","none");if(e.options.removeCloneOnHide&&t.parentNode){t.parentNode.removeChild(t)}}));a();clonesHidden=true;s()},dragStartGlobal:function(t){var e=t.sortable;if(!this.isMultiDrag&&multiDragSortable){multiDragSortable.multiDrag._deselectMultiDrag()}multiDragElements.forEach((function(t){t.sortableIndex=index(t)}));multiDragElements=multiDragElements.sort((function(t,e){return t.sortableIndex-e.sortableIndex}));dragStarted=true},dragStarted:function(t){var e=this;var i=t.sortable;if(!this.isMultiDrag)return;if(this.options.sort){i.captureAnimationState();if(this.options.animation){multiDragElements.forEach((function(t){if(t===dragEl$1)return;css(t,"position","absolute")}));var a=getRect(dragEl$1,false,true,true);multiDragElements.forEach((function(t){if(t===dragEl$1)return;setRect(t,a)}));folding=true;initialFolding=true}}i.animateAll((function(){folding=false;initialFolding=false;if(e.options.animation){multiDragElements.forEach((function(t){unsetRect(t)}))}if(e.options.sort){removeMultiDragElements()}}))},dragOver:function(t){var e=t.target,i=t.completed,a=t.cancel;if(folding&&~multiDragElements.indexOf(e)){i(false);a()}},revert:function(t){var e=t.fromSortable,i=t.rootEl,a=t.sortable,s=t.dragRect;if(multiDragElements.length>1){multiDragElements.forEach((function(t){a.addAnimationState({target:t,rect:folding?getRect(t):s});unsetRect(t);t.fromRect=s;e.removeAnimationState(t)}));folding=false;insertMultiDragElements(!this.options.removeCloneOnHide,i)}},dragOverCompleted:function(t){var e=t.sortable,i=t.isOwner,a=t.insertion,s=t.activeSortable,r=t.parentEl,n=t.putSortable;var o=this.options;if(a){if(i){s._hideClone()}initialFolding=false;if(o.animation&&multiDragElements.length>1&&(folding||!i&&!s.options.sort&&!n)){var l=getRect(dragEl$1,false,true,true);multiDragElements.forEach((function(t){if(t===dragEl$1)return;setRect(t,l);r.appendChild(t)}));folding=true}if(!i){if(!folding){removeMultiDragElements()}if(multiDragElements.length>1){var c=clonesHidden;s._showClone(e);if(s.options.animation&&!clonesHidden&&c){multiDragClones.forEach((function(t){s.addAnimationState({target:t,rect:clonesFromRect});t.fromRect=clonesFromRect;t.thisAnimationDuration=null}))}}else{s._showClone(e)}}}},dragOverAnimationCapture:function(t){var e=t.dragRect,i=t.isOwner,a=t.activeSortable;multiDragElements.forEach((function(t){t.thisAnimationDuration=null}));if(a.options.animation&&!i&&a.multiDrag.isMultiDrag){clonesFromRect=_extends({},e);var s=matrix(dragEl$1,true);clonesFromRect.top-=s.f;clonesFromRect.left-=s.e}},dragOverAnimationComplete:function(){if(folding){folding=false;removeMultiDragElements()}},drop:function(t){var e=t.originalEvent,i=t.rootEl,a=t.parentEl,s=t.sortable,r=t.dispatchSortableEvent,n=t.oldIndex,o=t.putSortable;var l=o||this.sortable;if(!e)return;var c=this.options,h=a.children;if(!dragStarted){if(c.multiDragKey&&!this.multiDragKeyDown){this._deselectMultiDrag()}toggleClass(dragEl$1,c.selectedClass,!~multiDragElements.indexOf(dragEl$1));if(!~multiDragElements.indexOf(dragEl$1)){multiDragElements.push(dragEl$1);dispatchEvent({sortable:s,rootEl:i,name:"select",targetEl:dragEl$1,originalEvent:e});if(e.shiftKey&&lastMultiDragSelect&&s.el.contains(lastMultiDragSelect)){var d=index(lastMultiDragSelect),u=index(dragEl$1);if(~d&&~u&&d!==u){var f,p;if(u>d){p=d;f=u}else{p=u;f=d+1}for(;p<f;p++){if(~multiDragElements.indexOf(h[p]))continue;toggleClass(h[p],c.selectedClass,true);multiDragElements.push(h[p]);dispatchEvent({sortable:s,rootEl:i,name:"select",targetEl:h[p],originalEvent:e})}}}else{lastMultiDragSelect=dragEl$1}multiDragSortable=l}else{multiDragElements.splice(multiDragElements.indexOf(dragEl$1),1);lastMultiDragSelect=null;dispatchEvent({sortable:s,rootEl:i,name:"deselect",targetEl:dragEl$1,originalEvent:e})}}if(dragStarted&&this.isMultiDrag){folding=false;if((a[expando].options.sort||a!==i)&&multiDragElements.length>1){var g=getRect(dragEl$1),m=index(dragEl$1,":not(."+this.options.selectedClass+")");if(!initialFolding&&c.animation)dragEl$1.thisAnimationDuration=null;l.captureAnimationState();if(!initialFolding){if(c.animation){dragEl$1.fromRect=g;multiDragElements.forEach((function(t){t.thisAnimationDuration=null;if(t!==dragEl$1){var e=folding?getRect(t):g;t.fromRect=e;l.addAnimationState({target:t,rect:e})}}))}removeMultiDragElements();multiDragElements.forEach((function(t){if(h[m]){a.insertBefore(t,h[m])}else{a.appendChild(t)}m++}));if(n===index(dragEl$1)){var v=false;multiDragElements.forEach((function(t){if(t.sortableIndex!==index(t)){v=true;return}}));if(v){r("update")}}}multiDragElements.forEach((function(t){unsetRect(t)}));l.animateAll()}multiDragSortable=l}if(i===a||o&&o.lastPutMode!=="clone"){multiDragClones.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=dragStarted=false;multiDragClones.length=0},destroyGlobal:function(){this._deselectMultiDrag();off(document,"pointerup",this._deselectMultiDrag);off(document,"mouseup",this._deselectMultiDrag);off(document,"touchend",this._deselectMultiDrag);off(document,"keydown",this._checkKeyDown);off(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(typeof dragStarted!=="undefined"&&dragStarted)return;if(multiDragSortable!==this.sortable)return;if(t&&closest(t.target,this.options.draggable,this.sortable.el,false))return;if(t&&t.button!==0)return;while(multiDragElements.length){var e=multiDragElements[0];toggleClass(e,this.options.selectedClass,false);multiDragElements.shift();dispatchEvent({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvent:t})}},_checkKeyDown:function(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=true}},_checkKeyUp:function(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=false}}};return _extends(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[expando];if(!e||!e.options.multiDrag||~multiDragElements.indexOf(t))return;if(multiDragSortable&&multiDragSortable!==e){multiDragSortable.multiDrag._deselectMultiDrag();multiDragSortable=e}toggleClass(t,e.options.selectedClass,true);multiDragElements.push(t)},deselect:function(t){var e=t.parentNode[expando],i=multiDragElements.indexOf(t);if(!e||!e.options.multiDrag||!~i)return;toggleClass(t,e.options.selectedClass,false);multiDragElements.splice(i,1)}},eventProperties:function(){var t=this;var e=[],i=[];multiDragElements.forEach((function(a){e.push({multiDragElement:a,index:a.sortableIndex});var s;if(folding&&a!==dragEl$1){s=-1}else if(folding){s=index(a,":not(."+t.options.selectedClass+")")}else{s=index(a)}i.push({multiDragElement:a,index:s})}));return{items:__spreadArray([],multiDragElements,true),clones:__spreadArray([],multiDragClones,true),oldIndicies:e,newIndicies:i}},optionListeners:{multiDragKey:function(t){t=t.toLowerCase();if(t==="ctrl"){t="Control"}else if(t.length>1){t=t.charAt(0).toUpperCase()+t.substr(1)}return t}}})}function insertMultiDragElements(t,e){multiDragElements.forEach((function(i,a){var s=e.children[i.sortableIndex+(t?Number(a):0)];if(s){e.insertBefore(i,s)}else{e.appendChild(i)}}))}function insertMultiDragClones(t,e){multiDragClones.forEach((function(i,a){var s=e.children[i.sortableIndex+(t?Number(a):0)];if(s){e.insertBefore(i,s)}else{e.appendChild(i)}}))}function removeMultiDragElements(){multiDragElements.forEach((function(t){if(t===dragEl$1)return;t.parentNode&&t.parentNode.removeChild(t)}))}Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);Sortable.mount(new SwapPlugin);Sortable.mount(new MultiDragPlugin);var stzhSortableCss='.sc-stzh-sortable-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-sortable-h{display:none}.sc-stzh-sortable-h *.sc-stzh-sortable,.sc-stzh-sortable-h *.sc-stzh-sortable::before,.sc-stzh-sortable-h *.sc-stzh-sortable::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-sortable-h .has-focus.sc-stzh-sortable{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-sortable-h .stzh-fylingfocus-focused.sc-stzh-sortable{outline-style:none !important}.sc-stzh-sortable-h .stzh-fylingfocus-focused.sc-stzh-sortable::-moz-focus-inner{border:0 !important}.sc-stzh-sortable-h{--cursor:grab;--grabbing-cursor:grabbing;--unselected-item-opacity:0.6;--ghost-item-background:var(--stzh-color-grey5);--ghost-item-box-shadow:inset 0px 0px 0.5rem rgba(0, 0, 0, 0.32)}[disabled].sc-stzh-sortable-h{--cursor:inherit}.sc-stzh-sortable-h[disabled] .sc-stzh-sortable-s *.is-sortable-item{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item{position:relative;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:var(--cursor)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-chosen,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-selected{cursor:var(--grabbing-cursor)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag{opacity:1 !important}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost{z-index:0}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost::after{z-index:99;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ghost-item-background);-webkit-box-shadow:var(--ghost-item-box-shadow);box-shadow:var(--ghost-item-box-shadow)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item{opacity:var(--unselected-item-opacity)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item.is-selected{opacity:1}.stzh-sortable__description.sc-stzh-sortable,.stzh-sortable__aria-live.sc-stzh-sortable{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}';var CLASS_ITEM="is-sortable-item";var CLASS_GHOST="is-ghost";var CLASS_SELECTED="is-selected";var CLASS_CHOSEN="is-chosen";var CLASS_DRAG="is-drag";var CLASS_PARENT_SELECTED="has-item-selected";var sortableCounter=0;var StzhSortable=function(){function t(t){var e=this;registerInstance(this,t);this.stzhUpdate=createEvent(this,"stzhUpdate",7);this.stzhDisable=createEvent(this,"stzhDisable",7);this.selectedItem=null;this.resetItemOnBlur=false;this.init=function(){if(!e.getContainer()||e.disabled){return}e.setAttributes()};this.updated=function(t){return __awaiter(e,void 0,void 0,(function(){var e,i,a,s,r;var n;return __generator(this,(function(o){switch(o.label){case 0:if(t){e=t.newIndex;i=t.oldIndex;a=t.item}else{e=this.getIndexOfSelectedItem();i=this.lastIndex;a=this.selectedItem}if(!(e!==i))return[3,2];r=(s=this.stzhUpdate).emit;n={component:"stzh-sortable"};return[4,this.toArray()];case 1:r.apply(s,[(n.data=o.sent(),n.item=a,n.newIndex=e,n.oldIndex=i,n)]);o.label=2;case 2:return[2]}}))}))};this.onKeydown=function(t){var i=t.currentTarget;var a=t.target;if(!e.getContainer()||e.disabled||i!==a){return}if(t.key===" "){t.preventDefault();if(!e.selectedItem){e.selectedItem=i;e.selectedItem.parentElement.classList.add(CLASS_PARENT_SELECTED);e.selectedItem.classList.add(CLASS_SELECTED);e.lastIndex=e.getIndexOfSelectedItem();e.resetItemOnBlur=true;e.updateAriaLive(e.localization.started)}else{e.resetItemOnBlur=false;e.updateAriaLive(e.localization.dropped);e.updated();e.resetActiveItem()}}else if(t.key==="Tab"&&e.selectedItem&&e.selectedItem===t.currentTarget){t.preventDefault()}else if(t.key==="Escape"&&e.selectedItem){e.resetItemOnBlur=false;e.updateAriaLive(e.localization.canceled);e.resetActiveItem(true)}else if(t.key==="ArrowUp"){t.preventDefault();if(e.selectedItem){e.moveItem(e.selectedItem,"up")}else{e.focusItem(i.previousElementSibling)}}else if(t.key==="ArrowDown"){t.preventDefault();if(e.selectedItem){e.moveItem(e.selectedItem,"down")}else{e.focusItem(i.nextElementSibling)}}};this.onBlur=function(){if(e.resetItemOnBlur){e.resetItemOnBlur=false;e.updateAriaLive(e.localization.dropped);e.updated();e.resetActiveItem()}};this.localization=undefined;this.disabled=false;this.dataIdAttribute="data-id";this.container=function(){var t;return(t=e.containerElement)===null||t===void 0?void 0:t.firstElementChild};this.ghostClone=function(t){return t.cloneNode(true)};this.filterElements=["[data-stzh-sortable-filtered]","[sortable-disabled]","button","a[href]","input","select","textarea","label","iframe","details","area","stzh-sortable"]}t.prototype.toArray=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.sortable.toArray()]}))}))};t.prototype.sort=function(t,e){if(e===void 0){e=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.sortable.sort(t,e)]}))}))};t.prototype.moveItem=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,a,s,r;var n;return __generator(this,(function(o){switch(o.label){case 0:if(!t||!t.nextElementSibling&&e==="down"||!t.previousElementSibling&&e==="up"){return[2]}this.resetItemOnBlur=false;if(e==="up"){t.previousElementSibling.before(t)}else if(e==="down"){t.nextElementSibling.after(t)}this.updateAriaLive(this.localization.moved,t);this.focusItem(t);a=Array.from((i=t.parentElement)===null||i===void 0?void 0:i.children).indexOf(t);r=(s=this.stzhUpdate).emit;n={component:"stzh-sortable"};return[4,this.toArray()];case 1:r.apply(s,[(n.data=o.sent(),n.item=t,n.newIndex=a,n.oldIndex=a+(e==="up"?1:-1),n)]);this.resetItemOnBlur=true;return[2]}}))}))};t.prototype.disabledWatcher=function(t){if(t){this.setAttributes()}else{this.unsetAttributes()}this.stzhDisable.emit({component:"stzh-sortable",disabled:t})};t.prototype.filterElementsWatcher=function(t){if(typeof t==="string"){this._filterElements=JSON.parse(t)}else{this._filterElements=t}};t.prototype.getContainer=function(){return typeof this.container==="function"?this.container():this.container};t.prototype.updateAriaLive=function(t,e){if(e===void 0){e=this.selectedItem}if(!this.getContainer()){return}if(e){var i=e.getAttribute("aria-label")||"";var a=this.getIndexOfSelectedItem(e);t=t.replace("{title}",i).replace("{current}",(a+1).toString())}var s=this.getContainer().children.length;t=t.replace(/\{total\}/gi,s.toString());this.ariaLiveElement.textContent=t};t.prototype.getIndexOfSelectedItem=function(t){if(t===void 0){t=this.selectedItem}if(t){return Array.from(t.parentElement.children).indexOf(t)}};t.prototype.resetActiveItem=function(t){if(t===void 0){t=false}if(!this.selectedItem){return}var e=this.getIndexOfSelectedItem();var i=this.selectedItem.parentElement;if(t&&this.lastIndex!==e){if(this.lastIndex>e){i.children[this.lastIndex].after(this.selectedItem)}else{i.children[this.lastIndex].before(this.selectedItem)}this.selectedItem.focus()}i.classList.remove(CLASS_PARENT_SELECTED);this.selectedItem.classList.remove(CLASS_SELECTED);this.selectedItem=null;this.lastIndex=null};t.prototype.focusItem=function(t){if(!t){return}t.focus();var i=document.querySelector("stzh-flyingfocus");if(i){i.reposition()}e(t,{scrollMode:"if-needed",block:"nearest",inline:"nearest"})};t.prototype.setAttributes=function(){var t=this;Array.from(this.getContainer().children).forEach((function(e){e.classList.add(CLASS_ITEM);e.addEventListener("blur",t.onBlur);e.addEventListener("keydown",t.onKeydown);e.setAttribute("tabindex","0");e.setAttribute("aria-describedby","".concat(t.sortableId,"-description"))}))};t.prototype.unsetAttributes=function(){var t=this;Array.from(this.getContainer().children).forEach((function(e){e.classList.remove(CLASS_ITEM);e.removeEventListener("blur",t.onBlur);e.removeEventListener("keydown",t.onKeydown);e.removeAttribute("tabindex");e.removeAttribute("aria-describedby")}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.sortableId="stzh-sortable-".concat(sortableCounter++);this.filterElementsWatcher(this.filterElements);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"sortable")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentWillUpdate=function(){if(this.sortable){this.sortable.destroy();this.sortable=null}};t.prototype.componentDidRender=function(){if(this.sortable){return}this.sortable=new Sortable(this.getContainer(),{animation:150,filter:this._filterElements.join(", "),ghostClass:CLASS_GHOST,chosenClass:CLASS_CHOSEN,dragClass:CLASS_DRAG,dataIdAttr:this.dataIdAttribute,preventOnFilter:false,forceFallback:true,delay:200,delayOnTouchOnly:true,disabled:this.disabled,ghostClone:this.ghostClone,onUpdate:this.updated})};t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}this.unsetAttributes();if(this.sortable){this.sortable.destroy();this.sortable=null}};t.prototype.render=function(){var t=this;var e={"stzh-sortable":true,"stzh-sortable--disabled":this.disabled};return h(Host,null,h("div",{class:e},h("div",{id:"".concat(this.sortableId,"-description"),class:"stzh-sortable__description"},this.localization.description),h("div",{ref:function(e){return t.ariaLiveElement=e},"aria-live":"assertive",class:"stzh-sortable__aria-live"}),h("div",{ref:function(e){return t.containerElement=e},class:"stzh-sortable__container"},h("slot",null))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledWatcher"],filterElements:["filterElementsWatcher"]}},enumerable:false,configurable:true});return t}();StzhSortable.style=stzhSortableCss;export{StzhActionset as stzh_actionset,StzhCard as stzh_card,StzhCardList as stzh_card_list,StzhSortable as stzh_sortable};
8
8
  //# sourceMappingURL=stzh-actionset_4.entry.js.map