@orangesk/orange-design-system 2.0.0-alpha.1 → 2.0.0-alpha.3

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 (1159) hide show
  1. package/build/components/Accordion/index.js +3 -1157
  2. package/build/components/Accordion/index.js.map +1 -1
  3. package/build/components/Accordion/style.css +1 -1
  4. package/build/components/Accordion/style.css.map +1 -1
  5. package/build/components/Alert/index.js +3 -1907
  6. package/build/components/Alert/index.js.map +1 -1
  7. package/build/components/Alert/style.css +1 -1
  8. package/build/components/Alert/style.css.map +1 -1
  9. package/build/components/AnchorNavigation/index.js +16 -0
  10. package/build/components/AnchorNavigation/index.js.map +1 -0
  11. package/build/components/AnchorNavigation/style.css +2 -0
  12. package/build/components/AnchorNavigation/style.css.map +1 -0
  13. package/build/components/Bar/index.js +16 -0
  14. package/build/components/Bar/index.js.map +1 -0
  15. package/build/components/Bar/style.css +2 -0
  16. package/build/components/Bar/style.css.map +1 -0
  17. package/build/components/BlockAction/index.js +16 -0
  18. package/build/components/BlockAction/index.js.map +1 -0
  19. package/build/components/BlockAction/style.css +2 -0
  20. package/build/components/BlockAction/style.css.map +1 -0
  21. package/build/components/BodyBanner/index.js +16 -0
  22. package/build/components/BodyBanner/index.js.map +1 -0
  23. package/build/components/BodyBanner/style.css +2 -0
  24. package/build/components/BodyBanner/style.css.map +1 -0
  25. package/build/components/Breadcrumbs/index.js +3 -674
  26. package/build/components/Breadcrumbs/index.js.map +1 -1
  27. package/build/components/Breadcrumbs/style.css +1 -1
  28. package/build/components/Breadcrumbs/style.css.map +1 -1
  29. package/build/components/Button/index.js +3 -721
  30. package/build/components/Button/index.js.map +1 -1
  31. package/build/components/Button/style.css +1 -1
  32. package/build/components/Button/style.css.map +1 -1
  33. package/build/components/Buttons/index.js +3 -601
  34. package/build/components/Buttons/index.js.map +1 -1
  35. package/build/components/Buttons/style.css +1 -1
  36. package/build/components/Buttons/style.css.map +1 -1
  37. package/build/components/Card/index.js +16 -0
  38. package/build/components/Card/index.js.map +1 -0
  39. package/build/components/Card/style.css +2 -0
  40. package/build/components/Card/style.css.map +1 -0
  41. package/build/components/Carousel/index.js +16 -0
  42. package/build/components/Carousel/index.js.map +1 -0
  43. package/build/components/Carousel/style.css +2 -0
  44. package/build/components/Carousel/style.css.map +1 -0
  45. package/build/components/CarouselPromotions/index.js +16 -0
  46. package/build/components/CarouselPromotions/index.js.map +1 -0
  47. package/build/components/CarouselPromotions/style.css +2 -0
  48. package/build/components/CarouselPromotions/style.css.map +1 -0
  49. package/build/components/CartTable/index.js +16 -0
  50. package/build/components/CartTable/index.js.map +1 -0
  51. package/build/components/CartTable/style.css +2 -0
  52. package/build/components/CartTable/style.css.map +1 -0
  53. package/build/components/Code/index.js +11 -0
  54. package/build/components/Code/index.js.map +1 -0
  55. package/build/components/Code/style.css +2 -0
  56. package/build/components/Code/style.css.map +1 -0
  57. package/build/components/Container/index.js +3 -598
  58. package/build/components/Container/index.js.map +1 -1
  59. package/build/components/Container/style.css +1 -1
  60. package/build/components/Container/style.css.map +1 -1
  61. package/build/components/Controls/index.js +16 -0
  62. package/build/components/Controls/index.js.map +1 -0
  63. package/build/components/Controls/style.css +2 -0
  64. package/build/components/Controls/style.css.map +1 -0
  65. package/build/components/Cover/index.js +16 -0
  66. package/build/components/Cover/index.js.map +1 -0
  67. package/build/components/Cover/style.css +2 -0
  68. package/build/components/Cover/style.css.map +1 -0
  69. package/build/components/Divider/index.js +16 -0
  70. package/build/components/Divider/index.js.map +1 -0
  71. package/build/components/Divider/style.css +2 -0
  72. package/build/components/Divider/style.css.map +1 -0
  73. package/build/components/DocumentationSidebar/index.js +16 -0
  74. package/build/components/DocumentationSidebar/index.js.map +1 -0
  75. package/build/components/DocumentationSidebar/style.css +2 -0
  76. package/build/components/DocumentationSidebar/style.css.map +1 -0
  77. package/build/components/Dropdown/index.js +16 -0
  78. package/build/components/Dropdown/index.js.map +1 -0
  79. package/build/components/Dropdown/style.css +2 -0
  80. package/build/components/Dropdown/style.css.map +1 -0
  81. package/build/components/Expander/index.js +16 -0
  82. package/build/components/Expander/index.js.map +1 -0
  83. package/build/components/Expander/style.css +2 -0
  84. package/build/components/Expander/style.css.map +1 -0
  85. package/build/components/FeatureAccordion/index.js +16 -0
  86. package/build/components/FeatureAccordion/index.js.map +1 -0
  87. package/build/components/FeatureAccordion/style.css +2 -0
  88. package/build/components/FeatureAccordion/style.css.map +1 -0
  89. package/build/components/Footer/index.js +16 -0
  90. package/build/components/Footer/index.js.map +1 -0
  91. package/build/components/Footer/style.css +2 -0
  92. package/build/components/Footer/style.css.map +1 -0
  93. package/build/components/Forms/index.js +18 -0
  94. package/build/components/Forms/index.js.map +1 -0
  95. package/build/components/Forms/style.css +2 -0
  96. package/build/components/Forms/style.css.map +1 -0
  97. package/build/components/Gauge/index.js +16 -0
  98. package/build/components/Gauge/index.js.map +1 -0
  99. package/build/components/Gauge/style.css +2 -0
  100. package/build/components/Gauge/style.css.map +1 -0
  101. package/build/components/Grid/index.js +3 -1069
  102. package/build/components/Grid/index.js.map +1 -1
  103. package/build/components/Grid/style.css +1 -1
  104. package/build/components/Grid/style.css.map +1 -1
  105. package/build/components/Hero/index.js +16 -0
  106. package/build/components/Hero/index.js.map +1 -0
  107. package/build/components/Hero/style.css +2 -0
  108. package/build/components/Hero/style.css.map +1 -0
  109. package/build/components/Icon/index.js +2 -619
  110. package/build/components/Icon/index.js.map +1 -1
  111. package/build/components/Icon/style.css +1 -1
  112. package/build/components/Icon/style.css.map +1 -1
  113. package/build/components/IconList/index.js +16 -0
  114. package/build/components/IconList/index.js.map +1 -0
  115. package/build/components/IconList/style.css +2 -0
  116. package/build/components/IconList/style.css.map +1 -0
  117. package/build/components/Image/index.js +3 -646
  118. package/build/components/Image/index.js.map +1 -1
  119. package/build/components/Image/style.css +1 -1
  120. package/build/components/Image/style.css.map +1 -1
  121. package/build/components/Link/index.js +2 -168
  122. package/build/components/Link/index.js.map +1 -1
  123. package/build/components/Link/style.css +1 -1
  124. package/build/components/Link/style.css.map +1 -1
  125. package/build/components/List/index.js +16 -0
  126. package/build/components/List/index.js.map +1 -0
  127. package/build/components/List/style.css +2 -0
  128. package/build/components/List/style.css.map +1 -0
  129. package/build/components/Loader/index.js +16 -0
  130. package/build/components/Loader/index.js.map +1 -0
  131. package/build/components/Loader/style.css +2 -0
  132. package/build/components/Loader/style.css.map +1 -0
  133. package/build/components/Modal/index.js +4 -3154
  134. package/build/components/Modal/index.js.map +1 -1
  135. package/build/components/Modal/style.css +1 -1
  136. package/build/components/Modal/style.css.map +1 -1
  137. package/build/components/Pagination/index.js +16 -0
  138. package/build/components/Pagination/index.js.map +1 -0
  139. package/build/components/Pagination/style.css +2 -0
  140. package/build/components/Pagination/style.css.map +1 -0
  141. package/build/components/Preview/index.js +83 -0
  142. package/build/components/Preview/index.js.map +1 -0
  143. package/build/components/Preview/style.css +2 -0
  144. package/build/components/Preview/style.css.map +1 -0
  145. package/build/components/Progress/index.js +16 -0
  146. package/build/components/Progress/index.js.map +1 -0
  147. package/build/components/Progress/style.css +2 -0
  148. package/build/components/Progress/style.css.map +1 -0
  149. package/build/components/PromoBanner/index.js +16 -0
  150. package/build/components/PromoBanner/index.js.map +1 -0
  151. package/build/components/PromoBanner/style.css +2 -0
  152. package/build/components/PromoBanner/style.css.map +1 -0
  153. package/build/components/PromotionCard/index.js +16 -0
  154. package/build/components/PromotionCard/index.js.map +1 -0
  155. package/build/components/PromotionCard/style.css +2 -0
  156. package/build/components/PromotionCard/style.css.map +1 -0
  157. package/build/components/Section/index.js +3 -619
  158. package/build/components/Section/index.js.map +1 -1
  159. package/build/components/Section/style.css +1 -1
  160. package/build/components/Section/style.css.map +1 -1
  161. package/build/components/Skeleton/index.js +16 -0
  162. package/build/components/Skeleton/index.js.map +1 -0
  163. package/build/components/Skeleton/style.css +2 -0
  164. package/build/components/Skeleton/style.css.map +1 -0
  165. package/build/components/SkipLink/index.js +16 -0
  166. package/build/components/SkipLink/index.js.map +1 -0
  167. package/build/components/SkipLink/style.css +2 -0
  168. package/build/components/SkipLink/style.css.map +1 -0
  169. package/build/components/Stepbar/index.js +16 -0
  170. package/build/components/Stepbar/index.js.map +1 -0
  171. package/build/components/Stepbar/style.css +2 -0
  172. package/build/components/Stepbar/style.css.map +1 -0
  173. package/build/components/Sticker/index.js +16 -0
  174. package/build/components/Sticker/index.js.map +1 -0
  175. package/build/components/Sticker/style.css +2 -0
  176. package/build/components/Sticker/style.css.map +1 -0
  177. package/build/components/Table/index.js +16 -0
  178. package/build/components/Table/index.js.map +1 -0
  179. package/build/components/Table/style.css +2 -0
  180. package/build/components/Table/style.css.map +1 -0
  181. package/build/components/Tabs/index.js +3 -1043
  182. package/build/components/Tabs/index.js.map +1 -1
  183. package/build/components/Tabs/style.css +1 -1
  184. package/build/components/Tabs/style.css.map +1 -1
  185. package/build/components/Tag/index.js +16 -0
  186. package/build/components/Tag/index.js.map +1 -0
  187. package/build/components/Tag/style.css +2 -0
  188. package/build/components/Tag/style.css.map +1 -0
  189. package/build/components/Testimonial/index.js +16 -0
  190. package/build/components/Testimonial/index.js.map +1 -0
  191. package/build/components/Testimonial/style.css +2 -0
  192. package/build/components/Testimonial/style.css.map +1 -0
  193. package/build/components/Tile/index.js +16 -0
  194. package/build/components/Tile/index.js.map +1 -0
  195. package/build/components/Tile/style.css +2 -0
  196. package/build/components/Tile/style.css.map +1 -0
  197. package/build/components/Tooltip/index.js +16 -0
  198. package/build/components/Tooltip/index.js.map +1 -0
  199. package/build/components/Tooltip/style.css +2 -0
  200. package/build/components/Tooltip/style.css.map +1 -0
  201. package/build/components/index.css +2 -1
  202. package/build/components/index.css.map +1 -1
  203. package/build/components/index.js +6 -3662
  204. package/build/components/index.js.map +1 -1
  205. package/build/components/static.css +2 -0
  206. package/build/components/static.css.map +1 -0
  207. package/build/components/static.js +4 -2440
  208. package/build/components/static.js.map +1 -1
  209. package/build/components/types/mdx-components.d.ts +2 -0
  210. package/build/components/types/next.config.d.ts +3 -0
  211. package/build/components/types/src/app/ODSLib.d.ts +1 -0
  212. package/build/components/types/src/app/components/accordion/AccordionClientWrapper.d.ts +1 -0
  213. package/build/components/types/src/app/components/alert/AlertClientWrapper.d.ts +1 -0
  214. package/build/components/types/src/app/components/anchor-navigation/AnchorNavigationClientWrapper.d.ts +2 -0
  215. package/build/components/types/src/app/components/body-banner/BodyBannerClientWrapper.d.ts +1 -0
  216. package/build/components/types/src/app/components/code/CodeClientWrapper.d.ts +1 -0
  217. package/build/components/types/src/app/components/cover/CoverClientWrapper.d.ts +1 -0
  218. package/build/components/types/src/app/components/expander/ExpanderClientWrapper.d.ts +1 -0
  219. package/build/components/types/src/app/components/feature-accordion/FeatureAccordionClientWrapper.d.ts +1 -0
  220. package/build/components/types/src/app/components/forms/autocomplete/AutocompleteClientWrapper.d.ts +1 -0
  221. package/build/components/types/src/app/components/forms/datepicker/DatePickerClientWrapper.d.ts +1 -0
  222. package/build/components/types/src/app/components/forms/radio/RadioClientWrapper.d.ts +1 -0
  223. package/build/components/types/src/app/components/gauge/GaugeClientWrapper.d.ts +1 -0
  224. package/build/components/types/src/app/components/hero/HeroClientWrapper.d.ts +1 -0
  225. package/build/components/types/src/app/components/icon-list/IconListClientWrapper.d.ts +1 -0
  226. package/build/components/types/src/app/components/list/ListClientWrapper.d.ts +1 -0
  227. package/build/components/types/src/app/components/pagination/PaginationClientWrapper.d.ts +1 -0
  228. package/build/components/types/src/app/components/progress/ProgressClientWrapper.d.ts +1 -0
  229. package/build/components/types/src/app/components/promo-banner/PromoBannerClientWrapper.d.ts +1 -0
  230. package/build/components/types/src/app/components/promotion-card/PromotionCardWrapper.d.ts +1 -0
  231. package/build/components/types/src/app/components/sticker/StickerClientWrapper.d.ts +1 -0
  232. package/build/components/types/src/app/components/tag/TagClientWrapper.d.ts +1 -0
  233. package/build/components/types/src/app/components/testimonial/TestimonialClientWrapper.d.ts +1 -0
  234. package/build/components/types/src/app/layout.d.ts +4 -0
  235. package/build/components/types/src/app/menuItems.d.ts +24 -0
  236. package/build/components/types/src/components/Accordion/Accordion.d.ts +17 -0
  237. package/build/components/types/src/components/Accordion/Accordion.static.d.ts +17 -0
  238. package/build/components/types/src/components/Accordion/AccordionHeader.d.ts +15 -0
  239. package/build/components/types/src/components/Accordion/AccordionItem.d.ts +19 -0
  240. package/build/components/types/src/components/Accordion/HeadingContext.d.ts +2 -0
  241. package/build/components/types/src/components/Accordion/index.d.ts +3 -0
  242. package/build/components/types/src/components/Accordion/tests/data.d.ts +5 -0
  243. package/build/components/types/{components → src/components}/Alert/Alert.d.ts +2 -2
  244. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +17 -0
  245. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +24 -0
  246. package/build/components/types/src/components/AnchorNavigation/index.d.ts +2 -0
  247. package/build/components/types/src/components/Bar/Bar.d.ts +22 -0
  248. package/build/components/types/src/components/Bar/BarBreak.d.ts +12 -0
  249. package/build/components/types/src/components/Bar/BarItem.d.ts +16 -0
  250. package/build/components/types/src/components/Bar/index.d.ts +4 -0
  251. package/build/components/types/src/components/BlockAction/BlockAction.d.ts +9 -0
  252. package/build/components/types/src/components/BlockAction/BlockAction.static.d.ts +19 -0
  253. package/build/components/types/src/components/BlockAction/BlockActionControl.d.ts +9 -0
  254. package/build/components/types/src/components/BlockAction/BlockActionIndicator.d.ts +9 -0
  255. package/build/components/types/src/components/BlockAction/CloneElementWithClassName.d.ts +8 -0
  256. package/build/components/types/src/components/BlockAction/Context.d.ts +13 -0
  257. package/build/components/types/src/components/BlockAction/index.d.ts +16 -0
  258. package/build/components/types/src/components/BodyBanner/BodyBanner.d.ts +20 -0
  259. package/build/components/types/src/components/BodyBanner/index.d.ts +2 -0
  260. package/build/components/types/src/components/Breadcrumbs/BreadcrumbItem.d.ts +15 -0
  261. package/build/components/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +20 -0
  262. package/build/components/types/src/components/Breadcrumbs/index.d.ts +2 -0
  263. package/build/components/types/{components → src/components}/Button/Button.d.ts +1 -1
  264. package/build/components/types/src/components/Card/Card.d.ts +13 -0
  265. package/build/components/types/src/components/Card/CardProductHeader.d.ts +9 -0
  266. package/build/components/types/src/components/Card/CardSection.d.ts +14 -0
  267. package/build/components/types/src/components/Card/index.d.ts +4 -0
  268. package/build/components/types/src/components/Card/tests/data.d.ts +5 -0
  269. package/build/components/types/src/components/Carousel/Carousel.d.ts +12 -0
  270. package/build/components/types/src/components/Carousel/Carousel.static.d.ts +33 -0
  271. package/build/components/types/src/components/Carousel/CarouselItem.d.ts +7 -0
  272. package/build/components/types/src/components/Carousel/constants.d.ts +22 -0
  273. package/build/components/types/src/components/Carousel/index.d.ts +3 -0
  274. package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.d.ts +10 -0
  275. package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.static.d.ts +31 -0
  276. package/build/components/types/src/components/CarouselPromotions/CarouselPromotionsItem.d.ts +12 -0
  277. package/build/components/types/src/components/CarouselPromotions/constants.d.ts +20 -0
  278. package/build/components/types/src/components/CarouselPromotions/index.d.ts +3 -0
  279. package/build/components/types/src/components/CartTable/CartTable.d.ts +13 -0
  280. package/build/components/types/src/components/CartTable/FooterNameColumn.d.ts +7 -0
  281. package/build/components/types/src/components/CartTable/FooterPriceColumn.d.ts +9 -0
  282. package/build/components/types/src/components/CartTable/Price.d.ts +10 -0
  283. package/build/components/types/src/components/CartTable/data.d.ts +33 -0
  284. package/build/components/types/src/components/CartTable/generateFooter.d.ts +22 -0
  285. package/build/components/types/src/components/CartTable/generateRow.d.ts +21 -0
  286. package/build/components/types/src/components/CartTable/generateTotal.d.ts +45 -0
  287. package/build/components/types/src/components/CartTable/index.d.ts +2 -0
  288. package/build/components/types/src/components/Code/Code.d.ts +16 -0
  289. package/build/components/types/src/components/Code/index.d.ts +6 -0
  290. package/build/components/types/src/components/Code/oneDarkProTheme.d.ts +13 -0
  291. package/build/components/types/src/components/Container/Container.d.ts +3 -0
  292. package/build/components/types/src/components/Container/index.d.ts +2 -0
  293. package/build/components/types/src/components/Controls/Controls.d.ts +16 -0
  294. package/build/components/types/src/components/Controls/index.d.ts +2 -0
  295. package/build/components/types/src/components/Cover/Cover.d.ts +42 -0
  296. package/build/components/types/src/components/Cover/index.d.ts +3 -0
  297. package/build/components/types/src/components/Divider/Divider.d.ts +13 -0
  298. package/build/components/types/src/components/Divider/index.d.ts +2 -0
  299. package/build/components/types/src/components/DocumentationSidebar/DocumentationSidebar.d.ts +16 -0
  300. package/build/components/types/src/components/DocumentationSidebar/index.d.ts +3 -0
  301. package/build/components/types/src/components/Dropdown/Dropdown.d.ts +20 -0
  302. package/build/components/types/src/components/Dropdown/Dropdown.static.d.ts +28 -0
  303. package/build/components/types/src/components/Dropdown/DropdownDivider.d.ts +3 -0
  304. package/build/components/types/src/components/Dropdown/DropdownItem.d.ts +9 -0
  305. package/build/components/types/src/components/Dropdown/DropdownToggleButton.d.ts +7 -0
  306. package/build/components/types/src/components/Dropdown/index.d.ts +5 -0
  307. package/build/components/types/src/components/Expander/Expander.d.ts +22 -0
  308. package/build/components/types/src/components/Expander/Expander.static.d.ts +13 -0
  309. package/build/components/types/src/components/Expander/index.d.ts +2 -0
  310. package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +11 -0
  311. package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.static.d.ts +23 -0
  312. package/build/components/types/src/components/FeatureAccordion/FeatureAccordionItem.d.ts +11 -0
  313. package/build/components/types/src/components/FeatureAccordion/index.d.ts +2 -0
  314. package/build/components/types/src/components/Footer/Footer.d.ts +12 -0
  315. package/build/components/types/src/components/Footer/data.d.ts +15 -0
  316. package/build/components/types/src/components/Footer/index.d.ts +1 -0
  317. package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.d.ts +17 -0
  318. package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.static.d.ts +21 -0
  319. package/build/components/types/src/components/Forms/Autocomplete/index.d.ts +2 -0
  320. package/build/components/types/src/components/Forms/Checkbox/Checkbox.d.ts +21 -0
  321. package/build/components/types/src/components/Forms/Checkbox/index.d.ts +2 -0
  322. package/build/components/types/src/components/Forms/DatePicker/DatePicker.d.ts +84 -0
  323. package/build/components/types/src/components/Forms/DatePicker/DatePicker.static.d.ts +69 -0
  324. package/build/components/types/src/components/Forms/DatePicker/index.d.ts +2 -0
  325. package/build/components/types/src/components/Forms/Field/Control.d.ts +6 -0
  326. package/build/components/types/src/components/Forms/Field/Description.d.ts +7 -0
  327. package/build/components/types/src/components/Forms/Field/Field.d.ts +17 -0
  328. package/build/components/types/src/components/Forms/Field/FieldContext.d.ts +18 -0
  329. package/build/components/types/src/components/Forms/Field/Label.d.ts +11 -0
  330. package/build/components/types/src/components/Forms/Field/Messages.d.ts +12 -0
  331. package/build/components/types/src/components/Forms/Field/Tooltip.d.ts +11 -0
  332. package/build/components/types/src/components/Forms/Field/index.d.ts +2 -0
  333. package/build/components/types/src/components/Forms/Field/utils.d.ts +16 -0
  334. package/build/components/types/src/components/Forms/Fieldset/Fieldset.d.ts +16 -0
  335. package/build/components/types/src/components/Forms/Fieldset/FieldsetContext.d.ts +7 -0
  336. package/build/components/types/src/components/Forms/Fieldset/docsData.d.ts +59 -0
  337. package/build/components/types/src/components/Forms/Fieldset/index.d.ts +2 -0
  338. package/build/components/types/src/components/Forms/File/File.d.ts +17 -0
  339. package/build/components/types/src/components/Forms/File/File.static.d.ts +27 -0
  340. package/build/components/types/src/components/Forms/File/index.d.ts +2 -0
  341. package/build/components/types/src/components/Forms/Group/Group.d.ts +14 -0
  342. package/build/components/types/src/components/Forms/Group/Item.d.ts +8 -0
  343. package/build/components/types/src/components/Forms/Group/index.d.ts +2 -0
  344. package/build/components/types/src/components/Forms/Hint/Hint.d.ts +7 -0
  345. package/build/components/types/src/components/Forms/Hint/index.d.ts +2 -0
  346. package/build/components/types/src/components/Forms/InputStepper/InputStepper.d.ts +20 -0
  347. package/build/components/types/src/components/Forms/InputStepper/InputStepper.static.d.ts +24 -0
  348. package/build/components/types/src/components/Forms/InputStepper/index.d.ts +2 -0
  349. package/build/components/types/src/components/Forms/Label/Label.d.ts +8 -0
  350. package/build/components/types/src/components/Forms/Label/index.d.ts +2 -0
  351. package/build/components/types/src/components/Forms/Message/Message.d.ts +12 -0
  352. package/build/components/types/src/components/Forms/Message/index.d.ts +2 -0
  353. package/build/components/types/src/components/Forms/Radio/Radio.d.ts +21 -0
  354. package/build/components/types/src/components/Forms/Radio/index.d.ts +2 -0
  355. package/build/components/types/src/components/Forms/RangeSlider/RangeSlider.d.ts +38 -0
  356. package/build/components/types/src/components/Forms/RangeSlider/RangeSlider.static.d.ts +24 -0
  357. package/build/components/types/src/components/Forms/RangeSlider/data.d.ts +49 -0
  358. package/build/components/types/src/components/Forms/RangeSlider/index.d.ts +2 -0
  359. package/build/components/types/src/components/Forms/Select/Select.d.ts +33 -0
  360. package/build/components/types/src/components/Forms/Select/index.d.ts +4 -0
  361. package/build/components/types/src/components/Forms/TextArea/TextArea.d.ts +29 -0
  362. package/build/components/types/src/components/Forms/TextArea/index.d.ts +2 -0
  363. package/build/components/types/src/components/Forms/TextInput/TextInput.d.ts +32 -0
  364. package/build/components/types/src/components/Forms/TextInput/index.d.ts +2 -0
  365. package/build/components/types/src/components/Forms/index.d.ts +16 -0
  366. package/build/components/types/src/components/Gauge/Gauge.d.ts +11 -0
  367. package/build/components/types/src/components/Gauge/GaugeMaker.d.ts +3 -0
  368. package/build/components/types/src/components/Gauge/index.d.ts +2 -0
  369. package/build/components/types/src/components/Grid/Grid.d.ts +14 -0
  370. package/build/components/types/src/components/Grid/GridCol.d.ts +12 -0
  371. package/build/components/types/src/components/Grid/index.d.ts +3 -0
  372. package/build/components/types/src/components/Hero/Hero.d.ts +52 -0
  373. package/build/components/types/src/components/Hero/HeroPlayground.d.ts +2 -0
  374. package/build/components/types/src/components/Hero/index.d.ts +2 -0
  375. package/build/components/types/{components → src/components}/Icon/Icon.d.ts +2 -2
  376. package/build/components/types/src/components/Icon/iconSearchTags.d.ts +419 -0
  377. package/build/components/types/src/components/IconList/IconList.d.ts +13 -0
  378. package/build/components/types/src/components/IconList/Item.d.ts +9 -0
  379. package/build/components/types/src/components/IconList/index.d.ts +3 -0
  380. package/build/components/types/src/components/Image/Image.d.ts +20 -0
  381. package/build/components/types/src/components/Image/index.d.ts +2 -0
  382. package/build/components/types/src/components/Link/Link.d.ts +18 -0
  383. package/build/components/types/src/components/Link/index.d.ts +2 -0
  384. package/build/components/types/src/components/List/ClickableControl.d.ts +9 -0
  385. package/build/components/types/src/components/List/List.d.ts +13 -0
  386. package/build/components/types/src/components/List/ListItem.d.ts +16 -0
  387. package/build/components/types/src/components/List/index.d.ts +3 -0
  388. package/build/components/types/src/components/Loader/Loader.d.ts +14 -0
  389. package/build/components/types/src/components/Loader/Loader.static.d.ts +19 -0
  390. package/build/components/types/src/components/Loader/index.d.ts +2 -0
  391. package/build/components/types/{components → src/components}/Modal/Modal.d.ts +2 -0
  392. package/build/components/types/src/components/Pagination/Pagination.d.ts +28 -0
  393. package/build/components/types/src/components/Pagination/PaginationItem.d.ts +21 -0
  394. package/build/components/types/src/components/Pagination/Separator.d.ts +6 -0
  395. package/build/components/types/src/components/Pagination/helpers.d.ts +23 -0
  396. package/build/components/types/src/components/Pagination/index.d.ts +4 -0
  397. package/build/components/types/src/components/Preview/CodeExample.d.ts +9 -0
  398. package/build/components/types/src/components/Preview/Interact/ButtonShowPropsGroup.d.ts +10 -0
  399. package/build/components/types/src/components/Preview/Interact/Interact.d.ts +17 -0
  400. package/build/components/types/src/components/Preview/Interact/PropCheckbox.d.ts +15 -0
  401. package/build/components/types/src/components/Preview/Interact/PropFormField.d.ts +7 -0
  402. package/build/components/types/src/components/Preview/Interact/PropInput.d.ts +17 -0
  403. package/build/components/types/src/components/Preview/Interact/PropLabelWithTooltip.d.ts +17 -0
  404. package/build/components/types/src/components/Preview/Interact/PropSelect.d.ts +15 -0
  405. package/build/components/types/src/components/Preview/Interact/PropsGroup.d.ts +10 -0
  406. package/build/components/types/src/components/Preview/Interact/Tooltip.d.ts +8 -0
  407. package/build/components/types/src/components/Preview/Interact/helpers.d.ts +19 -0
  408. package/build/components/types/src/components/Preview/Interact/state.d.ts +14 -0
  409. package/build/components/types/src/components/Preview/Preview.d.ts +26 -0
  410. package/build/components/types/src/components/Preview/PreviewTitleBar.d.ts +9 -0
  411. package/build/components/types/src/components/Preview/index.d.ts +7 -0
  412. package/build/components/types/src/components/Progress/Progress.d.ts +15 -0
  413. package/build/components/types/src/components/Progress/index.d.ts +2 -0
  414. package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +12 -0
  415. package/build/components/types/src/components/PromoBanner/index.d.ts +2 -0
  416. package/build/components/types/src/components/PromotionCard/PromotionCard.d.ts +9 -0
  417. package/build/components/types/src/components/PromotionCard/PromotionCardContent.d.ts +8 -0
  418. package/build/components/types/src/components/PromotionCard/PromotionCardImageWrapper.d.ts +8 -0
  419. package/build/components/types/src/components/PromotionCard/PromotionCardSection.d.ts +9 -0
  420. package/build/components/types/src/components/PromotionCard/PromotionCardTitle.d.ts +8 -0
  421. package/build/components/types/src/components/PromotionCard/constants.d.ts +5 -0
  422. package/build/components/types/src/components/PromotionCard/index.d.ts +6 -0
  423. package/build/components/types/src/components/Skeleton/Skeleton.d.ts +3 -0
  424. package/build/components/types/src/components/Skeleton/index.d.ts +2 -0
  425. package/build/components/types/src/components/SkipLink/SkipLink.d.ts +6 -0
  426. package/build/components/types/src/components/SkipLink/index.d.ts +2 -0
  427. package/build/components/types/src/components/Stepbar/Stepbar.d.ts +21 -0
  428. package/build/components/types/src/components/Stepbar/index.d.ts +2 -0
  429. package/build/components/types/src/components/Sticker/Sticker.d.ts +10 -0
  430. package/build/components/types/src/components/Sticker/index.d.ts +3 -0
  431. package/build/components/types/src/components/Table/Cell.d.ts +11 -0
  432. package/build/components/types/src/components/Table/Footer.d.ts +3 -0
  433. package/build/components/types/src/components/Table/Header.d.ts +3 -0
  434. package/build/components/types/src/components/Table/Row.d.ts +10 -0
  435. package/build/components/types/src/components/Table/Rows.d.ts +3 -0
  436. package/build/components/types/src/components/Table/Table.d.ts +24 -0
  437. package/build/components/types/src/components/Table/Table.static.d.ts +23 -0
  438. package/build/components/types/src/components/Table/TableContext.d.ts +4 -0
  439. package/build/components/types/src/components/Table/docsData.d.ts +39 -0
  440. package/build/components/types/src/components/Table/index.d.ts +3 -0
  441. package/build/components/types/src/components/Table/types.d.ts +34 -0
  442. package/build/components/types/{components → src/components}/Tabs/Tabs.d.ts +1 -3
  443. package/build/components/types/src/components/Tag/Tag.d.ts +24 -0
  444. package/build/components/types/src/components/Tag/TagButton.d.ts +12 -0
  445. package/build/components/types/src/components/Tag/index.d.ts +4 -0
  446. package/build/components/types/src/components/Testimonial/Testimonial.d.ts +10 -0
  447. package/build/components/types/src/components/Testimonial/index.d.ts +2 -0
  448. package/build/components/types/src/components/Tile/Tile.d.ts +23 -0
  449. package/build/components/types/src/components/Tile/index.d.ts +2 -0
  450. package/build/components/types/src/components/Tooltip/InfoTooltip.d.ts +8 -0
  451. package/build/components/types/src/components/Tooltip/Tooltip.d.ts +25 -0
  452. package/build/components/types/src/components/Tooltip/Tooltip.static.d.ts +26 -0
  453. package/build/components/types/src/components/Tooltip/index.d.ts +3 -0
  454. package/build/components/types/src/components/Tooltip/tests/BaseWrapper.d.ts +3 -0
  455. package/build/components/types/src/components/index.d.ts +49 -0
  456. package/build/components/types/src/components/static.d.ts +1 -0
  457. package/build/components/types/src/docs/utils/ToggleButton.d.ts +9 -0
  458. package/build/components/types/src/lib/scripts.d.ts +1 -0
  459. package/build/components/types/src/scripts/index.d.ts +102 -0
  460. package/build/components/types/src/scripts/lib/moduleFactory.d.ts +3 -0
  461. package/build/components/types/src/scripts/modules/SameHeight.d.ts +15 -0
  462. package/build/components/types/src/scripts/modules/Toggle.d.ts +39 -0
  463. package/build/components/types/src/scripts/modules/toggleUtil.d.ts +13 -0
  464. package/build/components/types/src/styles/export/breakpoint.d.ts +9 -0
  465. package/build/components/types/src/utils/ConditionalWrapper.d.ts +10 -0
  466. package/build/components/types/src/utils/classes.d.ts +5 -0
  467. package/build/components/types/src/utils/color.d.ts +20 -0
  468. package/build/components/types/src/utils/helpers.d.ts +11 -0
  469. package/build/components/types/{utils → src/utils}/hooks.d.ts +2 -1
  470. package/build/components/types/src/utils/index.d.ts +5 -0
  471. package/build/images/product-1.svg +10 -0
  472. package/build/images/product-2.svg +14 -0
  473. package/build/images/product-3.svg +9 -0
  474. package/build/lib/after-components.css +1 -1
  475. package/build/lib/after-components.css.map +1 -1
  476. package/build/lib/before-components.css +2 -1
  477. package/build/lib/before-components.css.map +1 -1
  478. package/build/lib/components.css +1 -1
  479. package/build/lib/components.css.map +1 -1
  480. package/build/lib/scripts.css +2 -0
  481. package/build/lib/scripts.css.map +1 -0
  482. package/build/lib/scripts.js +4 -2442
  483. package/build/lib/scripts.js.map +1 -1
  484. package/build/lib/style.css +2 -1
  485. package/build/lib/style.css.map +1 -1
  486. package/build/logo.svg +1 -0
  487. package/package.json +46 -29
  488. package/src/components/Accordion/Accordion.mdx +2 -2
  489. package/src/components/Accordion/Accordion.tsx +12 -20
  490. package/src/components/Accordion/AccordionItem.tsx +16 -26
  491. package/src/components/Accordion/index.ts +3 -3
  492. package/src/components/Accordion/styles/mixins.scss +11 -11
  493. package/src/components/Accordion/styles/style.scss +34 -32
  494. package/src/components/Accordion/tests/Accordion.unit.test.js +2 -2
  495. package/src/components/Accordion/tests/{data.js → data.ts} +9 -7
  496. package/src/components/Alert/Alert.tsx +6 -5
  497. package/src/components/Alert/CHANGELOG.md +33 -0
  498. package/src/components/Alert/styles/config.scss +6 -44
  499. package/src/components/Alert/styles/mixins.scss +20 -8
  500. package/src/components/Alert/styles/style.scss +22 -30
  501. package/src/components/Alert/tests/Alert.test.js +26 -0
  502. package/src/components/AnchorNavigation/AnchorNavigation.static.ts +115 -0
  503. package/src/components/AnchorNavigation/AnchorNavigation.tsx +81 -0
  504. package/src/components/AnchorNavigation/index.tsx +3 -0
  505. package/src/components/AnchorNavigation/styles/mixins.scss +126 -0
  506. package/src/components/AnchorNavigation/styles/style.scss +22 -0
  507. package/src/components/Bar/Bar.mdx +203 -0
  508. package/src/components/Bar/Bar.tsx +58 -0
  509. package/src/components/Bar/BarBreak.tsx +29 -0
  510. package/src/components/Bar/BarItem.tsx +50 -0
  511. package/src/components/Bar/index.ts +5 -0
  512. package/src/components/Bar/styles/config.scss +10 -0
  513. package/src/components/Bar/styles/mixins.scss +84 -0
  514. package/src/components/Bar/styles/style.scss +62 -0
  515. package/src/components/Bar/tests/Bar.conformance.test.js +29 -0
  516. package/src/components/Bar/tests/Bar.unit.test.js +58 -0
  517. package/src/components/Bar/tests/BarBreak.unit.test.js +32 -0
  518. package/src/components/Bar/tests/BarItem.unit.test.js +51 -0
  519. package/src/components/BlockAction/BlockAction.mdx +244 -0
  520. package/src/components/BlockAction/BlockAction.static.ts +104 -0
  521. package/src/components/BlockAction/BlockAction.tsx +27 -0
  522. package/src/components/BlockAction/BlockActionControl.tsx +32 -0
  523. package/src/components/BlockAction/BlockActionIndicator.tsx +32 -0
  524. package/src/components/BlockAction/CloneElementWithClassName.tsx +23 -0
  525. package/src/components/BlockAction/Context.tsx +39 -0
  526. package/src/components/BlockAction/index.tsx +29 -0
  527. package/src/components/BlockAction/styles/config.scss +10 -0
  528. package/src/components/BlockAction/styles/mixins.scss +33 -0
  529. package/src/components/BlockAction/styles/style.scss +35 -0
  530. package/src/components/BlockAction/tests/BlockAction.conformance.test.js +117 -0
  531. package/src/components/BlockAction/tests/BlockAction.unit.test.js +44 -0
  532. package/src/components/BlockAction/tests/BlockActionControl.unit.test.js +146 -0
  533. package/src/components/BlockAction/tests/BlockActionIndicator.unit.test.js +68 -0
  534. package/src/components/BlockAction/tests/CloneElementWithClassName.unit.test.js +33 -0
  535. package/src/components/BodyBanner/BodyBanner.mdx +268 -0
  536. package/src/components/BodyBanner/BodyBanner.tsx +102 -0
  537. package/src/components/BodyBanner/index.tsx +3 -0
  538. package/src/components/BodyBanner/styles/mixins.scss +106 -0
  539. package/src/components/BodyBanner/styles/style.scss +41 -0
  540. package/src/components/Breadcrumbs/BreadcrumbItem.tsx +13 -13
  541. package/src/components/Breadcrumbs/Breadcrumbs.tsx +17 -16
  542. package/src/components/Breadcrumbs/index.ts +2 -4
  543. package/src/components/Breadcrumbs/styles/mixins.scss +16 -28
  544. package/src/components/Breadcrumbs/styles/style.scss +17 -26
  545. package/src/components/Breadcrumbs/tests/BreadcrumbItem.unit.test.js +1 -2
  546. package/src/components/Breadcrumbs/tests/Breadcrumbs.conformance.test.js +16 -17
  547. package/src/components/Breadcrumbs/tests/Breadcrumbs.integration.test.js +21 -19
  548. package/src/components/Breadcrumbs/tests/Breadcrumbs.unit.test.js +28 -21
  549. package/src/components/Button/Button.tsx +4 -3
  550. package/src/components/Button/styles/config.scss +34 -135
  551. package/src/components/Button/styles/mixins.scss +2 -11
  552. package/src/components/Button/styles/style.scss +28 -48
  553. package/src/components/Button/tests/Button.test.js +8 -3
  554. package/src/components/Buttons/styles/style.scss +6 -4
  555. package/src/components/Card/CHANGELOG.md +19 -0
  556. package/src/components/Card/Card.mdx +334 -0
  557. package/src/components/Card/Card.tsx +35 -0
  558. package/src/components/Card/CardProductHeader.tsx +36 -0
  559. package/src/components/Card/CardSection.tsx +44 -0
  560. package/src/components/Card/index.ts +5 -0
  561. package/src/components/Card/styles/config.scss +16 -0
  562. package/src/components/Card/styles/mixins.scss +68 -0
  563. package/src/components/Card/styles/style.scss +39 -0
  564. package/src/components/Card/tests/Card.conformance.test.js +31 -0
  565. package/src/components/Card/tests/Card.unit.test.js +47 -0
  566. package/src/components/Card/tests/CardProductHeader.unit.test.js +61 -0
  567. package/src/components/Card/tests/CardSection.unit.test.js +61 -0
  568. package/src/components/Card/tests/data.ts +44 -0
  569. package/src/components/Carousel/CHANGELOG.md +11 -0
  570. package/src/components/Carousel/Carousel.mdx +159 -0
  571. package/src/components/Carousel/Carousel.static.ts +261 -0
  572. package/src/components/Carousel/Carousel.tsx +98 -0
  573. package/src/components/Carousel/CarouselItem.tsx +29 -0
  574. package/src/components/Carousel/constants.ts +24 -0
  575. package/src/components/Carousel/index.ts +4 -0
  576. package/src/components/Carousel/styles/config.scss +31 -0
  577. package/src/components/Carousel/styles/mixins.scss +196 -0
  578. package/src/components/Carousel/styles/style.scss +65 -0
  579. package/src/components/Carousel/tests/Carousel.conformance.test.js +26 -0
  580. package/src/components/Carousel/tests/Carousel.unit.test.js +207 -0
  581. package/src/components/Carousel/tests/CarouselItem.unit.test.js +31 -0
  582. package/src/components/CarouselPromotions/CarouselPromotions.mdx +246 -0
  583. package/src/components/CarouselPromotions/CarouselPromotions.static.ts +287 -0
  584. package/src/components/CarouselPromotions/CarouselPromotions.tsx +66 -0
  585. package/src/components/CarouselPromotions/CarouselPromotionsItem.tsx +53 -0
  586. package/src/components/CarouselPromotions/constants.ts +23 -0
  587. package/src/components/CarouselPromotions/index.ts +4 -0
  588. package/src/components/CarouselPromotions/styles/config.scss +65 -0
  589. package/src/components/CarouselPromotions/styles/mixins.scss +286 -0
  590. package/src/components/CarouselPromotions/styles/style.scss +51 -0
  591. package/src/components/CarouselPromotions/tests/CarouselPromotions.conformance.test.js +30 -0
  592. package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.js +244 -0
  593. package/src/components/CarouselPromotions/tests/CarouselPromotionsItem.unit.test.js +33 -0
  594. package/src/components/CartTable/CartTable.mdx +129 -0
  595. package/src/components/CartTable/CartTable.tsx +111 -0
  596. package/src/components/CartTable/FooterNameColumn.tsx +32 -0
  597. package/src/components/CartTable/FooterPriceColumn.tsx +50 -0
  598. package/src/components/CartTable/Price.tsx +48 -0
  599. package/src/components/CartTable/data.ts +147 -0
  600. package/src/components/CartTable/generateFooter.tsx +97 -0
  601. package/src/components/CartTable/generateRow.tsx +196 -0
  602. package/src/components/CartTable/generateTotal.ts +157 -0
  603. package/src/components/CartTable/index.ts +3 -0
  604. package/src/components/CartTable/styles/config.scss +19 -0
  605. package/src/components/CartTable/styles/mixins.scss +141 -0
  606. package/src/components/CartTable/styles/style.scss +37 -0
  607. package/src/components/CartTable/tests/CartTable.conformance.test.js +16 -0
  608. package/src/components/Code/Code.tsx +85 -0
  609. package/src/components/Code/index.tsx +16 -0
  610. package/src/components/Code/oneDarkProTheme.ts +70 -0
  611. package/src/components/Code/styles/style.scss +58 -0
  612. package/src/components/Container/Container.tsx +11 -9
  613. package/src/components/Container/index.ts +2 -4
  614. package/src/components/Container/styles/style.scss +5 -3
  615. package/src/components/Container/tests/Container.conformance.test.js +58 -53
  616. package/src/components/Container/tests/Container.unit.test.js +125 -134
  617. package/src/components/Controls/Controls.mdx +469 -0
  618. package/src/components/Controls/Controls.tsx +50 -0
  619. package/src/components/Controls/index.ts +3 -0
  620. package/src/components/Controls/styles/config.scss +52 -0
  621. package/src/components/Controls/styles/mixins.scss +70 -0
  622. package/src/components/Controls/styles/style.scss +16 -0
  623. package/src/components/Controls/tests/Controls.test.js +479 -0
  624. package/src/components/Cover/Cover.mdx +87 -0
  625. package/src/components/Cover/Cover.tsx +81 -0
  626. package/src/components/Cover/index.ts +5 -0
  627. package/src/components/Cover/styles/config.scss +55 -0
  628. package/src/components/Cover/styles/mixins.scss +43 -0
  629. package/src/components/Cover/styles/style.scss +32 -0
  630. package/src/components/Cover/tests/Cover.conformance.test.js +28 -0
  631. package/src/components/Cover/tests/Cover.unit.test.js +116 -0
  632. package/src/components/Divider/Divider.mdx +65 -0
  633. package/src/components/Divider/Divider.tsx +57 -0
  634. package/src/components/Divider/index.ts +3 -0
  635. package/src/components/Divider/styles/config.scss +27 -0
  636. package/src/components/Divider/styles/mixins.scss +45 -0
  637. package/src/components/Divider/styles/style.scss +33 -0
  638. package/src/components/{Badge/tests/Badge.conformance.test.js → Divider/tests/Divider.conformance.test.js} +5 -8
  639. package/src/components/Divider/tests/Divider.unit.test.js +80 -0
  640. package/src/components/DocumentationSidebar/DocumentationSidebar.tsx +171 -0
  641. package/src/components/DocumentationSidebar/index.ts +4 -0
  642. package/src/components/DocumentationSidebar/styles/style.scss +230 -0
  643. package/src/components/Dropdown/Dropdown.mdx +260 -0
  644. package/src/components/Dropdown/Dropdown.static.ts +198 -0
  645. package/src/components/Dropdown/Dropdown.tsx +107 -0
  646. package/src/components/Dropdown/DropdownDivider.tsx +17 -0
  647. package/src/components/Dropdown/DropdownItem.tsx +43 -0
  648. package/src/components/Dropdown/DropdownToggleButton.tsx +37 -0
  649. package/src/components/Dropdown/index.ts +6 -0
  650. package/src/components/Dropdown/styles/config.scss +41 -0
  651. package/src/components/Dropdown/styles/mixins.scss +79 -0
  652. package/src/components/Dropdown/styles/style.scss +33 -0
  653. package/src/components/Dropdown/tests/Dropdown.conformance.test.js +48 -0
  654. package/src/components/Dropdown/tests/Dropdown.unit.test.js +69 -0
  655. package/src/components/Expander/Expander.mdx +153 -0
  656. package/src/components/Expander/Expander.static.ts +59 -0
  657. package/src/components/Expander/Expander.tsx +99 -0
  658. package/src/components/Expander/index.ts +3 -0
  659. package/src/components/Expander/styles/style.scss +63 -0
  660. package/src/components/Expander/tests/Expander.conformance.test.js +59 -0
  661. package/src/components/Expander/tests/Expander.unit.test.js +124 -0
  662. package/src/components/FeatureAccordion/FeatureAccordion.mdx +33 -0
  663. package/src/components/FeatureAccordion/FeatureAccordion.static.ts +121 -0
  664. package/src/components/FeatureAccordion/FeatureAccordion.tsx +116 -0
  665. package/src/components/FeatureAccordion/FeatureAccordionItem.tsx +31 -0
  666. package/src/components/FeatureAccordion/index.ts +2 -0
  667. package/src/components/FeatureAccordion/styles/mixins.scss +74 -0
  668. package/src/components/FeatureAccordion/styles/style.scss +21 -0
  669. package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.js +92 -0
  670. package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.js +80 -0
  671. package/src/components/Footer/Footer.tsx +93 -0
  672. package/src/components/Footer/data.ts +71 -0
  673. package/src/components/Footer/index.ts +1 -0
  674. package/src/components/Footer/tests/Footer.conformance.test.js +13 -0
  675. package/src/components/Footer/tests/Footer.unit.test.js +66 -0
  676. package/src/components/Forms/Autocomplete/Autocomplete.mdx +198 -0
  677. package/src/components/Forms/Autocomplete/Autocomplete.static.ts +90 -0
  678. package/src/components/Forms/Autocomplete/Autocomplete.tsx +66 -0
  679. package/src/components/Forms/Autocomplete/index.ts +3 -0
  680. package/src/components/Forms/Autocomplete/styles/config.scss +7 -0
  681. package/src/components/Forms/Autocomplete/styles/mixins.scss +78 -0
  682. package/src/components/Forms/Autocomplete/styles/style.scss +66 -0
  683. package/src/components/Forms/Checkbox/Checkbox.mdx +139 -0
  684. package/src/components/Forms/Checkbox/Checkbox.tsx +75 -0
  685. package/src/components/Forms/Checkbox/index.ts +3 -0
  686. package/src/components/Forms/Checkbox/styles/config.scss +25 -0
  687. package/src/components/Forms/Checkbox/styles/mixins.scss +2 -0
  688. package/src/components/Forms/Checkbox/styles/style.scss +89 -0
  689. package/src/components/Forms/Checkbox/tests/Checkbox.unit.test.js +95 -0
  690. package/src/components/Forms/DatePicker/DatePicker.mdx +149 -0
  691. package/src/components/Forms/DatePicker/DatePicker.static.ts +211 -0
  692. package/src/components/Forms/DatePicker/DatePicker.tsx +129 -0
  693. package/src/components/Forms/DatePicker/index.ts +3 -0
  694. package/src/components/Forms/DatePicker/styles/style.scss +183 -0
  695. package/src/components/Forms/DatePicker/tests/DatePicker.unit.test.js +262 -0
  696. package/src/components/Forms/Field/Control.tsx +129 -0
  697. package/src/components/Forms/Field/Description.tsx +40 -0
  698. package/src/components/Forms/Field/Field.mdx +383 -0
  699. package/src/components/Forms/Field/Field.tsx +104 -0
  700. package/src/components/Forms/Field/FieldContext.tsx +24 -0
  701. package/src/components/Forms/Field/Label.tsx +71 -0
  702. package/src/components/Forms/Field/Messages.tsx +36 -0
  703. package/src/components/Forms/Field/Tooltip.tsx +37 -0
  704. package/src/components/Forms/Field/index.ts +3 -0
  705. package/src/components/Forms/Field/styles/config.scss +25 -0
  706. package/src/components/Forms/Field/styles/mixins.scss +43 -0
  707. package/src/components/Forms/Field/styles/style.scss +37 -0
  708. package/src/components/Forms/Field/tests/Autocomplete.Field.conformance.test.js +52 -0
  709. package/src/components/Forms/Field/tests/Checkbox.Field.conformance.test.js +43 -0
  710. package/src/components/Forms/Field/tests/Field.unit.test.js +11 -0
  711. package/src/components/Forms/Field/tests/File.Field.conformance.test.js +47 -0
  712. package/src/components/Forms/Field/tests/Group.Field.conformance.test.js +47 -0
  713. package/src/components/Forms/Field/tests/Label.unit.test.js +163 -0
  714. package/src/components/Forms/Field/tests/Messages.unit.test.js +102 -0
  715. package/src/components/Forms/Field/tests/Radio.Field.conformance.test.js +43 -0
  716. package/src/components/Forms/Field/tests/Rangeslider.Field.test.js +60 -0
  717. package/src/components/Forms/Field/tests/Select.Field.conformance.test.js +45 -0
  718. package/src/components/Forms/Field/tests/Text.Field.conformance.test.js +43 -0
  719. package/src/components/Forms/Field/tests/Textarea.Field.conformance.test.js +43 -0
  720. package/src/components/Forms/Field/tests/Tooltip.unit.test.js +38 -0
  721. package/src/components/Forms/Field/utils.ts +36 -0
  722. package/src/components/Forms/Fieldset/Fieldset.mdx +178 -0
  723. package/src/components/Forms/Fieldset/Fieldset.tsx +62 -0
  724. package/src/components/Forms/Fieldset/FieldsetContext.ts +13 -0
  725. package/src/components/Forms/Fieldset/docsData.ts +75 -0
  726. package/src/components/Forms/Fieldset/index.ts +3 -0
  727. package/src/components/Forms/Fieldset/styles/mixins.scss +6 -0
  728. package/src/components/Forms/Fieldset/styles/style.scss +10 -0
  729. package/src/components/Forms/Fieldset/tests/Fieldset.unit.test.js +63 -0
  730. package/src/components/Forms/File/File.mdx +88 -0
  731. package/src/components/Forms/File/File.static.ts +164 -0
  732. package/src/components/Forms/File/File.tsx +77 -0
  733. package/src/components/Forms/File/index.ts +3 -0
  734. package/src/components/Forms/File/styles/config.scss +12 -0
  735. package/src/components/Forms/File/styles/mixins.scss +87 -0
  736. package/src/components/Forms/File/styles/style.scss +51 -0
  737. package/src/components/Forms/FormTooltip.mdx +51 -0
  738. package/src/components/Forms/Forms.mdx +48 -0
  739. package/src/components/Forms/Group/CHANGELOG.md +5 -0
  740. package/src/components/Forms/Group/Group.mdx +146 -0
  741. package/src/components/Forms/Group/Group.tsx +74 -0
  742. package/src/components/Forms/Group/Item.tsx +35 -0
  743. package/src/components/Forms/Group/index.ts +3 -0
  744. package/src/components/Forms/Group/styles/config.scss +9 -0
  745. package/src/components/Forms/Group/styles/mixins.scss +50 -0
  746. package/src/components/Forms/Group/styles/style.scss +19 -0
  747. package/src/components/Forms/Group/tests/Group.unit.test.js +171 -0
  748. package/src/components/Forms/Group/tests/Item.unit.test.js +31 -0
  749. package/src/components/Forms/Hint/Hint.mdx +40 -0
  750. package/src/components/Forms/Hint/Hint.tsx +21 -0
  751. package/src/components/Forms/Hint/index.ts +3 -0
  752. package/src/components/Forms/Hint/styles/config.scss +5 -0
  753. package/src/components/Forms/Hint/styles/mixins.scss +6 -0
  754. package/src/components/Forms/Hint/styles/style.scss +7 -0
  755. package/src/components/Forms/Hint/tests/Hint.unit.test.js +35 -0
  756. package/src/components/Forms/InputStepper/InputStepper.mdx +147 -0
  757. package/src/components/Forms/InputStepper/InputStepper.static.ts +187 -0
  758. package/src/components/Forms/InputStepper/InputStepper.tsx +86 -0
  759. package/src/components/Forms/InputStepper/index.ts +3 -0
  760. package/src/components/Forms/InputStepper/styles/style.scss +210 -0
  761. package/src/components/Forms/InputStepper/tests/InputStepper.unit.test.js +54 -0
  762. package/src/components/Forms/Label/Label.mdx +95 -0
  763. package/src/components/Forms/Label/Label.tsx +26 -0
  764. package/src/components/Forms/Label/index.ts +3 -0
  765. package/src/components/Forms/Label/styles/config.scss +4 -0
  766. package/src/components/Forms/Label/styles/mixins.scss +6 -0
  767. package/src/components/Forms/Label/styles/style.scss +11 -0
  768. package/src/components/Forms/Label/tests/Label.unit.test.js +42 -0
  769. package/src/components/Forms/Message/Message.mdx +40 -0
  770. package/src/components/Forms/Message/Message.tsx +58 -0
  771. package/src/components/Forms/Message/index.ts +3 -0
  772. package/src/components/Forms/Message/styles/config.scss +15 -0
  773. package/src/components/Forms/Message/styles/mixins.scss +12 -0
  774. package/src/components/Forms/Message/styles/style.scss +11 -0
  775. package/src/components/Forms/Message/tests/Message.unit.test.js +71 -0
  776. package/src/components/Forms/Radio/Radio.mdx +98 -0
  777. package/src/components/Forms/Radio/Radio.tsx +70 -0
  778. package/src/components/Forms/Radio/index.ts +3 -0
  779. package/src/components/Forms/Radio/styles/config.scss +25 -0
  780. package/src/components/Forms/Radio/styles/mixins.scss +6 -0
  781. package/src/components/Forms/Radio/styles/style.scss +25 -0
  782. package/src/components/Forms/Radio/tests/Radio.unit.test.js +105 -0
  783. package/src/components/Forms/RangeSlider/RangeSlider.mdx +304 -0
  784. package/src/components/Forms/RangeSlider/RangeSlider.static.ts +121 -0
  785. package/src/components/Forms/RangeSlider/RangeSlider.tsx +98 -0
  786. package/src/components/Forms/RangeSlider/data.ts +50 -0
  787. package/src/components/Forms/RangeSlider/index.ts +3 -0
  788. package/src/components/Forms/RangeSlider/styles/config.scss +32 -0
  789. package/src/components/Forms/RangeSlider/styles/mixins.scss +139 -0
  790. package/src/components/Forms/RangeSlider/styles/style.scss +97 -0
  791. package/src/components/Forms/Select/Select.mdx +106 -0
  792. package/src/components/Forms/Select/Select.tsx +97 -0
  793. package/src/components/Forms/Select/index.tsx +9 -0
  794. package/src/components/Forms/Select/styles/config.scss +53 -0
  795. package/src/components/Forms/Select/styles/mixins.scss +34 -0
  796. package/src/components/Forms/Select/styles/style.scss +22 -0
  797. package/src/components/Forms/Select/tests/Select.unit.test.js +98 -0
  798. package/src/components/Forms/TextArea/TextArea.mdx +109 -0
  799. package/src/components/Forms/TextArea/TextArea.tsx +84 -0
  800. package/src/components/Forms/TextArea/index.ts +3 -0
  801. package/src/components/Forms/TextArea/styles/config.scss +35 -0
  802. package/src/components/Forms/TextArea/styles/mixins.scss +48 -0
  803. package/src/components/Forms/TextArea/styles/style.scss +22 -0
  804. package/src/components/Forms/TextArea/tests/TextArea.unit.test.js +127 -0
  805. package/src/components/Forms/TextInput/TextInput.mdx +153 -0
  806. package/src/components/Forms/TextInput/TextInput.tsx +101 -0
  807. package/src/components/Forms/TextInput/index.ts +3 -0
  808. package/src/components/Forms/TextInput/styles/config.scss +60 -0
  809. package/src/components/Forms/TextInput/styles/mixins.scss +80 -0
  810. package/src/components/Forms/TextInput/styles/style.scss +30 -0
  811. package/src/components/Forms/TextInput/tests/TextInput.unit.test.js +108 -0
  812. package/src/components/Forms/index.ts +16 -0
  813. package/src/components/Forms/styles/config.scss +41 -0
  814. package/src/components/Forms/styles/mixins.scss +44 -0
  815. package/src/components/Gauge/Gauge.mdx +35 -0
  816. package/src/components/Gauge/Gauge.tsx +72 -0
  817. package/src/components/Gauge/GaugeMaker.tsx +90 -0
  818. package/src/components/Gauge/index.ts +3 -0
  819. package/src/components/Gauge/styles/style.scss +34 -0
  820. package/src/components/Gauge/tests/Gauge.conformance.test.js +25 -0
  821. package/src/components/Gauge/tests/Gauge.unit.test.js +35 -0
  822. package/src/components/Grid/Grid.mdx +20 -19
  823. package/src/components/Grid/Grid.tsx +27 -22
  824. package/src/components/Grid/index.ts +3 -5
  825. package/src/components/Grid/styles/style.scss +29 -27
  826. package/src/components/Grid/tests/Grid.unit.test.js +572 -0
  827. package/src/components/Grid/tests/GridCol.unit.test.js +223 -0
  828. package/src/components/Hero/Hero.mdx +168 -0
  829. package/src/components/Hero/Hero.tsx +182 -0
  830. package/src/components/Hero/HeroPlayground.tsx +369 -0
  831. package/src/components/Hero/index.ts +3 -0
  832. package/src/components/Hero/styles/config.scss +23 -0
  833. package/src/components/Hero/styles/mixins.scss +173 -0
  834. package/src/components/Hero/styles/style.scss +59 -0
  835. package/src/components/Hero/tests/Hero.conformance.test.js +29 -0
  836. package/src/components/Hero/tests/Hero.unit.test.js +272 -0
  837. package/src/components/Hero/tests/data.js +40 -0
  838. package/src/components/Icon/Icon.tsx +2 -2
  839. package/src/components/Icon/IconSearch.jsx +2 -0
  840. package/src/components/Icon/styles/config.scss +5 -5
  841. package/src/components/Icon/styles/style.scss +12 -10
  842. package/src/components/IconList/IconList.mdx +53 -0
  843. package/src/components/IconList/IconList.tsx +30 -0
  844. package/src/components/IconList/Item.tsx +39 -0
  845. package/src/components/IconList/index.ts +4 -0
  846. package/src/components/IconList/styles/config.scss +3 -0
  847. package/src/components/IconList/styles/mixins.scss +33 -0
  848. package/src/components/IconList/styles/style.scss +21 -0
  849. package/src/components/IconList/tests/IconList.conformance.test.js +55 -0
  850. package/src/components/IconList/tests/IconList.unit.test.js +79 -0
  851. package/src/components/IconList/tests/Item.unit.test.js +143 -0
  852. package/src/components/Image/Image.mdx +29 -20
  853. package/src/components/Image/Image.tsx +12 -13
  854. package/src/components/Image/index.ts +2 -6
  855. package/src/components/Image/styles/style.scss +9 -6
  856. package/src/components/Image/tests/Image.conformance.test.js +1 -1
  857. package/src/components/Image/tests/Image.unit.test.js +166 -188
  858. package/src/components/Link/CHANGELOG.md +25 -0
  859. package/src/components/Link/Link.tsx +14 -9
  860. package/src/components/Link/styles/mixins.scss +8 -17
  861. package/src/components/Link/styles/style.scss +37 -54
  862. package/src/components/Link/tests/Link.conformance.test.js +7 -25
  863. package/src/components/Link/tests/Link.unit.test.js +20 -33
  864. package/src/components/List/ClickableControl.tsx +33 -0
  865. package/src/components/List/List.mdx +216 -0
  866. package/src/components/List/List.tsx +40 -0
  867. package/src/components/List/ListItem.tsx +44 -0
  868. package/src/components/List/index.ts +5 -0
  869. package/src/components/List/styles/config.scss +38 -0
  870. package/src/components/List/styles/mixins.scss +99 -0
  871. package/src/components/List/styles/style.scss +48 -0
  872. package/src/components/List/tests/ClickableControl.unit.test.js +100 -0
  873. package/src/components/List/tests/List.conformance.test.js +69 -0
  874. package/src/components/List/tests/List.unit.test.js +47 -0
  875. package/src/components/List/tests/ListItem.unit.test.js +104 -0
  876. package/src/components/Loader/Loader.mdx +148 -0
  877. package/src/components/Loader/Loader.static.ts +85 -0
  878. package/src/components/Loader/Loader.tsx +75 -0
  879. package/src/components/Loader/index.ts +3 -0
  880. package/src/components/Loader/styles/config.scss +16 -0
  881. package/src/components/Loader/styles/mixins.scss +66 -0
  882. package/src/components/Loader/styles/style.scss +38 -0
  883. package/src/components/Loader/tests/Loader.conformance.test.js +22 -0
  884. package/src/components/Loader/tests/Loader.unit.test.js +59 -0
  885. package/src/components/Loader/tests/test.scss +5 -0
  886. package/src/components/Modal/Modal.mdx +86 -86
  887. package/src/components/Modal/Modal.tsx +5 -0
  888. package/src/components/Modal/styles/config.scss +7 -8
  889. package/src/components/Modal/styles/mixins.scss +2 -2
  890. package/src/components/Modal/styles/style.scss +65 -63
  891. package/src/components/Modal/tests/Modal.unit.test.js +22 -0
  892. package/src/components/Pagination/Pagination.mdx +45 -0
  893. package/src/components/Pagination/Pagination.tsx +86 -0
  894. package/src/components/Pagination/PaginationItem.tsx +61 -0
  895. package/src/components/Pagination/Separator.tsx +19 -0
  896. package/src/components/Pagination/helpers.ts +71 -0
  897. package/src/components/Pagination/index.ts +5 -0
  898. package/src/components/Pagination/styles/mixins.scss +43 -0
  899. package/src/components/Pagination/styles/style.scss +28 -0
  900. package/src/components/Pagination/tests/Item.unit.test.js +96 -0
  901. package/src/components/Pagination/tests/Pagination.conformance.test.js +41 -0
  902. package/src/components/Pagination/tests/Pagination.unit.test.js +108 -0
  903. package/src/components/Pagination/tests/Separator.unit.test.js +25 -0
  904. package/src/components/Pagination/tests/utils.js +12 -0
  905. package/src/components/Preview/CodeExample.tsx +238 -0
  906. package/src/components/Preview/Interact/ButtonShowPropsGroup.tsx +38 -0
  907. package/src/components/Preview/Interact/Interact.tsx +263 -0
  908. package/src/components/Preview/Interact/PropCheckbox.tsx +50 -0
  909. package/src/components/Preview/Interact/PropFormField.tsx +76 -0
  910. package/src/components/Preview/Interact/PropInput.tsx +72 -0
  911. package/src/components/Preview/Interact/PropLabelWithTooltip.tsx +77 -0
  912. package/src/components/Preview/Interact/PropSelect.tsx +60 -0
  913. package/src/components/Preview/Interact/PropsGroup.tsx +49 -0
  914. package/src/components/Preview/Interact/Tooltip.tsx +17 -0
  915. package/src/components/Preview/Interact/helpers.ts +60 -0
  916. package/src/components/Preview/Interact/state.ts +18 -0
  917. package/src/components/Preview/Preview.docs.mdx +153 -0
  918. package/src/components/Preview/Preview.test.js +66 -0
  919. package/src/components/Preview/Preview.tsx +273 -0
  920. package/src/components/Preview/PreviewTitleBar.tsx +32 -0
  921. package/src/components/Preview/index.tsx +16 -0
  922. package/src/components/Preview/styles/style.scss +340 -0
  923. package/src/components/Progress/Progress.mdx +119 -0
  924. package/src/components/Progress/Progress.tsx +60 -0
  925. package/src/components/Progress/index.ts +3 -0
  926. package/src/components/Progress/styles/config.scss +19 -0
  927. package/src/components/Progress/styles/mixins.scss +40 -0
  928. package/src/components/Progress/styles/style.scss +31 -0
  929. package/src/components/Progress/tests/Progress.conformance.test.js +27 -0
  930. package/src/components/Progress/tests/Progress.unit.test.js +108 -0
  931. package/src/components/PromoBanner/PromoBanner.tsx +65 -0
  932. package/src/components/PromoBanner/index.ts +2 -0
  933. package/src/components/PromoBanner/styles/mixins.scss +37 -0
  934. package/src/components/PromoBanner/styles/style.scss +23 -0
  935. package/src/components/PromotionCard/PromotionCard.mdx +191 -0
  936. package/src/components/PromotionCard/PromotionCard.tsx +31 -0
  937. package/src/components/PromotionCard/PromotionCardContent.tsx +25 -0
  938. package/src/components/PromotionCard/PromotionCardImageWrapper.tsx +25 -0
  939. package/src/components/PromotionCard/PromotionCardSection.tsx +29 -0
  940. package/src/components/PromotionCard/PromotionCardTitle.tsx +24 -0
  941. package/src/components/PromotionCard/constants.ts +5 -0
  942. package/src/components/PromotionCard/index.ts +7 -0
  943. package/src/components/PromotionCard/styles/config.scss +4 -0
  944. package/src/components/PromotionCard/styles/mixins.scss +89 -0
  945. package/src/components/PromotionCard/styles/style.scss +25 -0
  946. package/src/components/Section/Section.tsx +1 -1
  947. package/src/components/Section/styles/style.scss +28 -26
  948. package/src/components/Skeleton/Skeleton.mdx +90 -0
  949. package/src/components/Skeleton/Skeleton.tsx +21 -0
  950. package/src/components/Skeleton/index.ts +3 -0
  951. package/src/components/Skeleton/styles/config.scss +31 -0
  952. package/src/components/Skeleton/styles/mixins.scss +22 -0
  953. package/src/components/Skeleton/styles/style.scss +7 -0
  954. package/src/components/Skeleton/tests/Skeleton.conformance.test.js +16 -0
  955. package/src/components/Skeleton/tests/Skeleton.unit.test.js +22 -0
  956. package/src/components/SkipLink/SkipLink.mdx +23 -0
  957. package/src/components/SkipLink/SkipLink.tsx +25 -0
  958. package/src/components/SkipLink/index.ts +3 -0
  959. package/src/components/SkipLink/styles/style.scss +20 -0
  960. package/src/components/SkipLink/tests/SkipLink.unit.test.js +88 -0
  961. package/src/components/Stepbar/Stepbar.mdx +137 -0
  962. package/src/components/Stepbar/Stepbar.tsx +100 -0
  963. package/src/components/Stepbar/index.ts +3 -0
  964. package/src/components/Stepbar/styles/config.scss +91 -0
  965. package/src/components/Stepbar/styles/mixins.scss +132 -0
  966. package/src/components/Stepbar/styles/style.scss +77 -0
  967. package/src/components/Stepbar/tests/Stepbar.conformance.test.js +34 -0
  968. package/src/components/Stepbar/tests/Stepbar.unit.test.js +92 -0
  969. package/src/components/Sticker/Sticker.mdx +50 -0
  970. package/src/components/Sticker/Sticker.tsx +31 -0
  971. package/src/components/Sticker/index.ts +4 -0
  972. package/src/components/Sticker/styles/config.scss +31 -0
  973. package/src/components/Sticker/styles/mixins.scss +25 -0
  974. package/src/components/Sticker/styles/style.scss +22 -0
  975. package/src/components/Sticker/tests/Sticker.conformance.test.js +17 -0
  976. package/src/components/Sticker/tests/Sticker.unit.test.js +42 -0
  977. package/src/components/Table/Cell.tsx +22 -0
  978. package/src/components/Table/Footer.tsx +25 -0
  979. package/src/components/Table/Header.tsx +73 -0
  980. package/src/components/Table/Row.tsx +70 -0
  981. package/src/components/Table/Rows.tsx +36 -0
  982. package/src/components/Table/Table.mdx +199 -0
  983. package/src/components/Table/Table.static.ts +146 -0
  984. package/src/components/Table/Table.tsx +130 -0
  985. package/src/components/Table/TableContext.ts +9 -0
  986. package/src/components/Table/docsData.ts +210 -0
  987. package/src/components/Table/index.ts +4 -0
  988. package/src/components/Table/styles/config.scss +4 -0
  989. package/src/components/Table/styles/mixins.scss +115 -0
  990. package/src/components/Table/styles/style.scss +103 -0
  991. package/src/components/Table/tests/Cell.unit.test.js +59 -0
  992. package/src/components/Table/tests/Footer.unit.test.js +70 -0
  993. package/src/components/Table/tests/Header.unit.test.js +120 -0
  994. package/src/components/Table/tests/Row.unit.test.js +206 -0
  995. package/src/components/Table/tests/Rows.unit.test.js +92 -0
  996. package/src/components/Table/tests/Table.conformance.test.js +74 -0
  997. package/src/components/Table/tests/Table.unit.test.js +296 -0
  998. package/src/components/Table/types.ts +40 -0
  999. package/src/components/Tabs/Tabs.tsx +4 -5
  1000. package/src/components/Tabs/styles/config.scss +29 -48
  1001. package/src/components/Tabs/styles/mixins.scss +20 -29
  1002. package/src/components/Tabs/styles/style.scss +34 -42
  1003. package/src/components/Tabs/tests/Tabs.unit.test.js +8 -0
  1004. package/src/components/Tag/CHANGELOG.md +93 -0
  1005. package/src/components/Tag/Tag.mdx +52 -0
  1006. package/src/components/Tag/Tag.tsx +118 -0
  1007. package/src/components/Tag/TagButton.tsx +67 -0
  1008. package/src/components/Tag/index.ts +5 -0
  1009. package/src/components/Tag/styles/config.scss +132 -0
  1010. package/src/components/Tag/styles/mixins.scss +54 -0
  1011. package/src/components/Tag/styles/style.scss +69 -0
  1012. package/src/components/Tag/tests/Tag.conformance.test.js +44 -0
  1013. package/src/components/Tag/tests/Tag.unit.test.js +93 -0
  1014. package/src/components/Tag/tests/TagButton.conformance.test.js +24 -0
  1015. package/src/components/Tag/tests/TagButton.unit.test.js +96 -0
  1016. package/src/components/Testimonial/Testimonial.mdx +41 -0
  1017. package/src/components/Testimonial/Testimonial.tsx +38 -0
  1018. package/src/components/Testimonial/index.ts +3 -0
  1019. package/src/components/Testimonial/styles/config.scss +39 -0
  1020. package/src/components/Testimonial/styles/mixins.scss +40 -0
  1021. package/src/components/Testimonial/styles/style.scss +16 -0
  1022. package/src/components/Testimonial/tests/Testimonial.conformance.test.js +17 -0
  1023. package/src/components/Testimonial/tests/Testimonial.unit.test.js +44 -0
  1024. package/src/components/Tile/CHANGELOG.md +14 -0
  1025. package/src/components/Tile/Tile.mdx +163 -0
  1026. package/src/components/Tile/Tile.tsx +86 -0
  1027. package/src/components/Tile/index.ts +3 -0
  1028. package/src/components/Tile/styles/config.scss +17 -0
  1029. package/src/components/Tile/styles/mixins.scss +78 -0
  1030. package/src/components/Tile/styles/style.scss +55 -0
  1031. package/src/components/Tile/tests/Tile.conformance.test.js +16 -0
  1032. package/src/components/Tile/tests/Tile.unit.test.js +126 -0
  1033. package/src/components/Tooltip/InfoTooltip.tsx +40 -0
  1034. package/src/components/Tooltip/TODO.md +1 -0
  1035. package/src/components/Tooltip/Tooltip.mdx +227 -0
  1036. package/src/components/Tooltip/Tooltip.static.ts +213 -0
  1037. package/src/components/Tooltip/Tooltip.tsx +107 -0
  1038. package/src/components/Tooltip/index.ts +4 -0
  1039. package/src/components/Tooltip/styles/config.scss +59 -0
  1040. package/src/components/Tooltip/styles/mixins.scss +94 -0
  1041. package/src/components/Tooltip/styles/style.scss +30 -0
  1042. package/src/components/Tooltip/tests/BaseWrapper.tsx +10 -0
  1043. package/src/components/Tooltip/tests/InfoTooltip.unit.test.js +98 -0
  1044. package/src/components/Tooltip/tests/Tooltip.conformance.test.js +44 -0
  1045. package/src/components/Tooltip/tests/Tooltip.unit.test.js +326 -0
  1046. package/src/components/index.ts +147 -3
  1047. package/src/components/static.ts +1 -1
  1048. package/src/styles/base/globals-forms.scss +15 -13
  1049. package/src/styles/base/globals.scss +132 -103
  1050. package/src/styles/before-components.scss +18 -4
  1051. package/src/styles/export/base.scss +1 -1
  1052. package/src/styles/export/color.scss +22 -22
  1053. package/src/styles/shame.scss +10 -8
  1054. package/src/styles/tokens/base.scss +4 -4
  1055. package/src/styles/tokens/color.scss +11 -11
  1056. package/src/styles/typography/mixins.scss +1 -1
  1057. package/src/styles/typography/style.scss +43 -41
  1058. package/src/styles/utilities/border.scss +16 -15
  1059. package/src/styles/utilities/color.scss +115 -95
  1060. package/src/styles/utilities/horizontal-scroll.scss +40 -36
  1061. package/src/styles/utilities/layout.scss +159 -157
  1062. package/src/styles/utilities/text.scss +98 -84
  1063. package/src/styles/utilities/visibility.scss +66 -62
  1064. package/build/404.html +0 -1
  1065. package/build/_next/static/CRhIjUFtohDOfdDfzvfXM/_buildManifest.js +0 -1
  1066. package/build/_next/static/CRhIjUFtohDOfdDfzvfXM/_ssgManifest.js +0 -1
  1067. package/build/_next/static/chunks/4bd1b696-40a218329c8ae32b.js +0 -1
  1068. package/build/_next/static/chunks/684-c72f8f73e7f2d568.js +0 -1
  1069. package/build/_next/static/chunks/925.75d0c8afa7ab7cfa.js +0 -1
  1070. package/build/_next/static/chunks/998-a45c3cf6f575e126.js +0 -1
  1071. package/build/_next/static/chunks/app/_not-found/page-c799b4c91b89a5c2.js +0 -1
  1072. package/build/_next/static/chunks/app/components/alert/page-d591b03a7394f81e.js +0 -1
  1073. package/build/_next/static/chunks/app/components/badge/page-bbcffd5558aeab06.js +0 -1
  1074. package/build/_next/static/chunks/app/components/button/page-b922a8f5114b0a69.js +0 -1
  1075. package/build/_next/static/chunks/app/components/buttons/page-0a5bf7e5ac7991fb.js +0 -1
  1076. package/build/_next/static/chunks/app/components/icon/page-dac6ba29b85d924d.js +0 -1
  1077. package/build/_next/static/chunks/app/components/modal/page-4a249b6d271eea91.js +0 -1
  1078. package/build/_next/static/chunks/app/components/tabs/page-7d82e8eafd25b86e.js +0 -1
  1079. package/build/_next/static/chunks/app/layout-f74d44a2772d8d63.js +0 -1
  1080. package/build/_next/static/chunks/app/page-9efa16a51ef59461.js +0 -1
  1081. package/build/_next/static/chunks/framework-f593a28cde54158e.js +0 -1
  1082. package/build/_next/static/chunks/main-43608b6b4bb05f8f.js +0 -1
  1083. package/build/_next/static/chunks/main-app-ce2a2222e012907f.js +0 -1
  1084. package/build/_next/static/chunks/pages/_app-da15c11dea942c36.js +0 -1
  1085. package/build/_next/static/chunks/pages/_error-cc3f077a18ea1793.js +0 -1
  1086. package/build/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
  1087. package/build/_next/static/chunks/webpack-623f6e616651e1c0.js +0 -1
  1088. package/build/_next/static/css/14f3a3e0186fb7a8.css +0 -3
  1089. package/build/_next/static/css/168dd2b7e791cf72.css +0 -1
  1090. package/build/_next/static/css/28a41a1d7dcdbfd9.css +0 -1
  1091. package/build/_next/static/css/291602d64f1f3570.css +0 -1
  1092. package/build/_next/static/css/4c4366b3963177f0.css +0 -1
  1093. package/build/_next/static/css/5481aeac9adca710.css +0 -1
  1094. package/build/_next/static/css/73b136688c14b891.css +0 -1
  1095. package/build/_next/static/css/91c8cf755bf9ff19.css +0 -1
  1096. package/build/_next/static/css/c1b0424033f305ff.css +0 -1
  1097. package/build/_next/static/css/eea9fd9ccdd56c76.css +0 -1
  1098. package/build/_next/static/media/671791babd225be4-s.p.woff2 +0 -0
  1099. package/build/_next/static/media/c62d990acddde5f0-s.p.woff2 +0 -0
  1100. package/build/_next/static/media/dfdbb1c4973e0bd7-s.p.woff2 +0 -0
  1101. package/build/components/Badge/index.js +0 -619
  1102. package/build/components/Badge/index.js.map +0 -1
  1103. package/build/components/Badge/style.css +0 -2
  1104. package/build/components/Badge/style.css.map +0 -1
  1105. package/build/components/alert.html +0 -2
  1106. package/build/components/alert.txt +0 -30
  1107. package/build/components/badge.html +0 -4
  1108. package/build/components/badge.txt +0 -24
  1109. package/build/components/button.html +0 -2
  1110. package/build/components/button.txt +0 -27
  1111. package/build/components/buttons.html +0 -1
  1112. package/build/components/buttons.txt +0 -27
  1113. package/build/components/icon.html +0 -1
  1114. package/build/components/icon.txt +0 -23
  1115. package/build/components/modal.html +0 -1
  1116. package/build/components/modal.txt +0 -29
  1117. package/build/components/tabs.html +0 -1
  1118. package/build/components/tabs.txt +0 -27
  1119. package/build/components/types/components/Badge/Badge.d.ts +0 -12
  1120. package/build/components/types/components/Badge/index.d.ts +0 -2
  1121. package/build/components/types/components/Container/Container.d.ts +0 -6
  1122. package/build/components/types/components/Container/index.d.ts +0 -3
  1123. package/build/components/types/components/index.d.ts +0 -11
  1124. package/build/components/types/utils/ConditionalWrapper.d.ts +0 -13
  1125. package/build/index.html +0 -11
  1126. package/build/index.txt +0 -23
  1127. package/src/components/Badge/Badge.mdx +0 -52
  1128. package/src/components/Badge/Badge.tsx +0 -47
  1129. package/src/components/Badge/index.ts +0 -3
  1130. package/src/components/Badge/styles/config.scss +0 -88
  1131. package/src/components/Badge/styles/mixins.scss +0 -26
  1132. package/src/components/Badge/styles/style.scss +0 -21
  1133. package/src/components/Badge/tests/Badge.unit.test.js +0 -50
  1134. package/src/components/Grid/tests/Grid.unit.test.tsx +0 -533
  1135. package/src/components/Grid/tests/GridCol.unit.test.tsx +0 -199
  1136. package/src/components/Link/styles/config.scss +0 -85
  1137. package/src/components/Link/tests/Link.integration.test.js +0 -393
  1138. /package/build/components/types/{components → src/components}/Alert/data.d.ts +0 -0
  1139. /package/build/components/types/{components → src/components}/Alert/index.d.ts +0 -0
  1140. /package/build/components/types/{components → src/components}/Button/IconButton.d.ts +0 -0
  1141. /package/build/components/types/{components → src/components}/Button/index.d.ts +0 -0
  1142. /package/build/components/types/{components → src/components}/Buttons/Buttons.d.ts +0 -0
  1143. /package/build/components/types/{components → src/components}/Buttons/index.d.ts +0 -0
  1144. /package/build/components/types/{components → src/components}/Icon/SpritePathContext.d.ts +0 -0
  1145. /package/build/components/types/{components → src/components}/Icon/index.d.ts +0 -0
  1146. /package/build/components/types/{components → src/components}/Modal/Modal.static.d.ts +0 -0
  1147. /package/build/components/types/{components → src/components}/Modal/ModalBody.d.ts +0 -0
  1148. /package/build/components/types/{components → src/components}/Modal/ModalCloseButton.d.ts +0 -0
  1149. /package/build/components/types/{components → src/components}/Modal/ModalTitle.d.ts +0 -0
  1150. /package/build/components/types/{components → src/components}/Modal/index.d.ts +0 -0
  1151. /package/build/components/types/{components → src/components}/Section/Section.d.ts +0 -0
  1152. /package/build/components/types/{components → src/components}/Section/index.d.ts +0 -0
  1153. /package/build/components/types/{components → src/components}/Tabs/Tab.d.ts +0 -0
  1154. /package/build/components/types/{components → src/components}/Tabs/TabPanel.d.ts +0 -0
  1155. /package/build/components/types/{components → src/components}/Tabs/Tabs.static.d.ts +0 -0
  1156. /package/build/components/types/{components → src/components}/Tabs/index.d.ts +0 -0
  1157. /package/build/components/types/{utils → src/utils}/constants.d.ts +0 -0
  1158. /package/build/components/types/{utils → src/utils}/generateId.d.ts +0 -0
  1159. /package/build/components/types/{utils → src/utils}/keyboard.d.ts +0 -0
@@ -1,2444 +1,8 @@
1
- function _arrayLikeToArray(r, a) {
2
- (null == a || a > r.length) && (a = r.length);
3
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
4
- return n;
5
- }
6
- function _arrayWithHoles(r) {
7
- if (Array.isArray(r)) return r;
8
- }
9
- function _arrayWithoutHoles(r) {
10
- if (Array.isArray(r)) return _arrayLikeToArray(r);
11
- }
12
- function _classCallCheck(a, n) {
13
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
14
- }
15
- function _defineProperties(e, r) {
16
- for (var t = 0; t < r.length; t++) {
17
- var o = r[t];
18
- o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
19
- }
20
- }
21
- function _createClass(e, r, t) {
22
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
23
- writable: false
24
- }), e;
25
- }
26
- function _createForOfIteratorHelper(r, e) {
27
- var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
28
- if (!t) {
29
- if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
30
- t && (r = t);
31
- var n = 0,
32
- F = function () {};
33
- return {
34
- s: F,
35
- n: function () {
36
- return n >= r.length ? {
37
- done: true
38
- } : {
39
- done: false,
40
- value: r[n++]
41
- };
42
- },
43
- e: function (r) {
44
- throw r;
45
- },
46
- f: F
47
- };
48
- }
49
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
50
- }
51
- var o,
52
- a = true,
53
- u = false;
54
- return {
55
- s: function () {
56
- t = t.call(r);
57
- },
58
- n: function () {
59
- var r = t.next();
60
- return a = r.done, r;
61
- },
62
- e: function (r) {
63
- u = true, o = r;
64
- },
65
- f: function () {
66
- try {
67
- a || null == t.return || t.return();
68
- } finally {
69
- if (u) throw o;
70
- }
71
- }
72
- };
73
- }
74
- function _defineProperty(e, r, t) {
75
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
76
- value: t,
77
- enumerable: true,
78
- configurable: true,
79
- writable: true
80
- }) : e[r] = t, e;
81
- }
82
- function _iterableToArray(r) {
83
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
84
- }
85
- function _iterableToArrayLimit(r, l) {
86
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
87
- if (null != t) {
88
- var e,
89
- n,
90
- i,
91
- u,
92
- a = [],
93
- f = true,
94
- o = false;
95
- try {
96
- if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
97
- } catch (r) {
98
- o = true, n = r;
99
- } finally {
100
- try {
101
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
102
- } finally {
103
- if (o) throw n;
104
- }
105
- }
106
- return a;
107
- }
108
- }
109
- function _nonIterableRest() {
110
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
111
- }
112
- function _nonIterableSpread() {
113
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
114
- }
115
- function ownKeys(e, r) {
116
- var t = Object.keys(e);
117
- if (Object.getOwnPropertySymbols) {
118
- var o = Object.getOwnPropertySymbols(e);
119
- r && (o = o.filter(function (r) {
120
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
121
- })), t.push.apply(t, o);
122
- }
123
- return t;
124
- }
125
- function _objectSpread2(e) {
126
- for (var r = 1; r < arguments.length; r++) {
127
- var t = null != arguments[r] ? arguments[r] : {};
128
- r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
129
- _defineProperty(e, r, t[r]);
130
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
131
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
132
- });
133
- }
134
- return e;
135
- }
136
- function _slicedToArray(r, e) {
137
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
138
- }
139
- function _toConsumableArray(r) {
140
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
141
- }
142
- function _toPrimitive(t, r) {
143
- if ("object" != typeof t || !t) return t;
144
- var e = t[Symbol.toPrimitive];
145
- if (void 0 !== e) {
146
- var i = e.call(t, r);
147
- if ("object" != typeof i) return i;
148
- throw new TypeError("@@toPrimitive must return a primitive value.");
149
- }
150
- return (String )(t);
151
- }
152
- function _toPropertyKey(t) {
153
- var i = _toPrimitive(t, "string");
154
- return "symbol" == typeof i ? i : i + "";
155
- }
156
- function _typeof(o) {
157
- "@babel/helpers - typeof";
158
-
159
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
160
- return typeof o;
161
- } : function (o) {
162
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
163
- }, _typeof(o);
164
- }
165
- function _unsupportedIterableToArray(r, a) {
166
- if (r) {
167
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
168
- var t = {}.toString.call(r).slice(8, -1);
169
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
170
- }
171
- }
172
-
173
- var wNumb = {exports: {}};
174
-
175
- var hasRequiredWNumb;
176
-
177
- function requireWNumb () {
178
- if (hasRequiredWNumb) return wNumb.exports;
179
- hasRequiredWNumb = 1;
180
- (function (module, exports) {
181
- (function(factory) {
182
- {
183
- // Node/CommonJS
184
- module.exports = factory();
185
- }
186
- })(function() {
187
-
188
- var FormatOptions = [
189
- "decimals",
190
- "thousand",
191
- "mark",
192
- "prefix",
193
- "suffix",
194
- "encoder",
195
- "decoder",
196
- "negativeBefore",
197
- "negative",
198
- "edit",
199
- "undo"
200
- ];
201
-
202
- // General
203
-
204
- // Reverse a string
205
- function strReverse(a) {
206
- return a
207
- .split("")
208
- .reverse()
209
- .join("");
210
- }
211
-
212
- // Check if a string starts with a specified prefix.
213
- function strStartsWith(input, match) {
214
- return input.substring(0, match.length) === match;
215
- }
216
-
217
- // Check is a string ends in a specified suffix.
218
- function strEndsWith(input, match) {
219
- return input.slice(-1 * match.length) === match;
220
- }
221
-
222
- // Throw an error if formatting options are incompatible.
223
- function throwEqualError(F, a, b) {
224
- if ((F[a] || F[b]) && F[a] === F[b]) {
225
- throw new Error(a);
226
- }
227
- }
228
-
229
- // Check if a number is finite and not NaN
230
- function isValidNumber(input) {
231
- return typeof input === "number" && isFinite(input);
232
- }
233
-
234
- // Provide rounding-accurate toFixed method.
235
- // Borrowed: http://stackoverflow.com/a/21323330/775265
236
- function toFixed(value, exp) {
237
- value = value.toString().split("e");
238
- value = Math.round(+(value[0] + "e" + (value[1] ? +value[1] + exp : exp)));
239
- value = value.toString().split("e");
240
- return (+(value[0] + "e" + (value[1] ? +value[1] - exp : -exp))).toFixed(exp);
241
- }
242
-
243
- // Formatting
244
-
245
- // Accept a number as input, output formatted string.
246
- function formatTo(
247
- decimals,
248
- thousand,
249
- mark,
250
- prefix,
251
- suffix,
252
- encoder,
253
- decoder,
254
- negativeBefore,
255
- negative,
256
- edit,
257
- undo,
258
- input
259
- ) {
260
- var originalInput = input,
261
- inputIsNegative,
262
- inputPieces,
263
- inputBase,
264
- inputDecimals = "",
265
- output = "";
266
-
267
- // Apply user encoder to the input.
268
- // Expected outcome: number.
269
- if (encoder) {
270
- input = encoder(input);
271
- }
272
-
273
- // Stop if no valid number was provided, the number is infinite or NaN.
274
- if (!isValidNumber(input)) {
275
- return false;
276
- }
277
-
278
- // Rounding away decimals might cause a value of -0
279
- // when using very small ranges. Remove those cases.
280
- if (decimals !== false && parseFloat(input.toFixed(decimals)) === 0) {
281
- input = 0;
282
- }
283
-
284
- // Formatting is done on absolute numbers,
285
- // decorated by an optional negative symbol.
286
- if (input < 0) {
287
- inputIsNegative = true;
288
- input = Math.abs(input);
289
- }
290
-
291
- // Reduce the number of decimals to the specified option.
292
- if (decimals !== false) {
293
- input = toFixed(input, decimals);
294
- }
295
-
296
- // Transform the number into a string, so it can be split.
297
- input = input.toString();
298
-
299
- // Break the number on the decimal separator.
300
- if (input.indexOf(".") !== -1) {
301
- inputPieces = input.split(".");
302
-
303
- inputBase = inputPieces[0];
304
-
305
- if (mark) {
306
- inputDecimals = mark + inputPieces[1];
307
- }
308
- } else {
309
- // If it isn't split, the entire number will do.
310
- inputBase = input;
311
- }
312
-
313
- // Group numbers in sets of three.
314
- if (thousand) {
315
- inputBase = strReverse(inputBase).match(/.{1,3}/g);
316
- inputBase = strReverse(inputBase.join(strReverse(thousand)));
317
- }
318
-
319
- // If the number is negative, prefix with negation symbol.
320
- if (inputIsNegative && negativeBefore) {
321
- output += negativeBefore;
322
- }
323
-
324
- // Prefix the number
325
- if (prefix) {
326
- output += prefix;
327
- }
328
-
329
- // Normal negative option comes after the prefix. Defaults to '-'.
330
- if (inputIsNegative && negative) {
331
- output += negative;
332
- }
333
-
334
- // Append the actual number.
335
- output += inputBase;
336
- output += inputDecimals;
337
-
338
- // Apply the suffix.
339
- if (suffix) {
340
- output += suffix;
341
- }
342
-
343
- // Run the output through a user-specified post-formatter.
344
- if (edit) {
345
- output = edit(output, originalInput);
346
- }
347
-
348
- // All done.
349
- return output;
350
- }
351
-
352
- // Accept a sting as input, output decoded number.
353
- function formatFrom(
354
- decimals,
355
- thousand,
356
- mark,
357
- prefix,
358
- suffix,
359
- encoder,
360
- decoder,
361
- negativeBefore,
362
- negative,
363
- edit,
364
- undo,
365
- input
366
- ) {
367
- var inputIsNegative,
368
- output = "";
369
-
370
- // User defined pre-decoder. Result must be a non empty string.
371
- if (undo) {
372
- input = undo(input);
373
- }
374
-
375
- // Test the input. Can't be empty.
376
- if (!input || typeof input !== "string") {
377
- return false;
378
- }
379
-
380
- // If the string starts with the negativeBefore value: remove it.
381
- // Remember is was there, the number is negative.
382
- if (negativeBefore && strStartsWith(input, negativeBefore)) {
383
- input = input.replace(negativeBefore, "");
384
- inputIsNegative = true;
385
- }
386
-
387
- // Repeat the same procedure for the prefix.
388
- if (prefix && strStartsWith(input, prefix)) {
389
- input = input.replace(prefix, "");
390
- }
391
-
392
- // And again for negative.
393
- if (negative && strStartsWith(input, negative)) {
394
- input = input.replace(negative, "");
395
- inputIsNegative = true;
396
- }
397
-
398
- // Remove the suffix.
399
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice
400
- if (suffix && strEndsWith(input, suffix)) {
401
- input = input.slice(0, -1 * suffix.length);
402
- }
403
-
404
- // Remove the thousand grouping.
405
- if (thousand) {
406
- input = input.split(thousand).join("");
407
- }
408
-
409
- // Set the decimal separator back to period.
410
- if (mark) {
411
- input = input.replace(mark, ".");
412
- }
413
-
414
- // Prepend the negative symbol.
415
- if (inputIsNegative) {
416
- output += "-";
417
- }
418
-
419
- // Add the number
420
- output += input;
421
-
422
- // Trim all non-numeric characters (allow '.' and '-');
423
- output = output.replace(/[^0-9\.\-.]/g, "");
424
-
425
- // The value contains no parse-able number.
426
- if (output === "") {
427
- return false;
428
- }
429
-
430
- // Covert to number.
431
- output = Number(output);
432
-
433
- // Run the user-specified post-decoder.
434
- if (decoder) {
435
- output = decoder(output);
436
- }
437
-
438
- // Check is the output is valid, otherwise: return false.
439
- if (!isValidNumber(output)) {
440
- return false;
441
- }
442
-
443
- return output;
444
- }
445
-
446
- // Framework
447
-
448
- // Validate formatting options
449
- function validate(inputOptions) {
450
- var i,
451
- optionName,
452
- optionValue,
453
- filteredOptions = {};
454
-
455
- if (inputOptions["suffix"] === undefined) {
456
- inputOptions["suffix"] = inputOptions["postfix"];
457
- }
458
-
459
- for (i = 0; i < FormatOptions.length; i += 1) {
460
- optionName = FormatOptions[i];
461
- optionValue = inputOptions[optionName];
462
-
463
- if (optionValue === undefined) {
464
- // Only default if negativeBefore isn't set.
465
- if (optionName === "negative" && !filteredOptions.negativeBefore) {
466
- filteredOptions[optionName] = "-";
467
- // Don't set a default for mark when 'thousand' is set.
468
- } else if (optionName === "mark" && filteredOptions.thousand !== ".") {
469
- filteredOptions[optionName] = ".";
470
- } else {
471
- filteredOptions[optionName] = false;
472
- }
473
-
474
- // Floating points in JS are stable up to 7 decimals.
475
- } else if (optionName === "decimals") {
476
- if (optionValue >= 0 && optionValue < 8) {
477
- filteredOptions[optionName] = optionValue;
478
- } else {
479
- throw new Error(optionName);
480
- }
481
-
482
- // These options, when provided, must be functions.
483
- } else if (
484
- optionName === "encoder" ||
485
- optionName === "decoder" ||
486
- optionName === "edit" ||
487
- optionName === "undo"
488
- ) {
489
- if (typeof optionValue === "function") {
490
- filteredOptions[optionName] = optionValue;
491
- } else {
492
- throw new Error(optionName);
493
- }
494
-
495
- // Other options are strings.
496
- } else {
497
- if (typeof optionValue === "string") {
498
- filteredOptions[optionName] = optionValue;
499
- } else {
500
- throw new Error(optionName);
501
- }
502
- }
503
- }
504
-
505
- // Some values can't be extracted from a
506
- // string if certain combinations are present.
507
- throwEqualError(filteredOptions, "mark", "thousand");
508
- throwEqualError(filteredOptions, "prefix", "negative");
509
- throwEqualError(filteredOptions, "prefix", "negativeBefore");
510
-
511
- return filteredOptions;
512
- }
513
-
514
- // Pass all options as function arguments
515
- function passAll(options, method, input) {
516
- var i,
517
- args = [];
518
-
519
- // Add all options in order of FormatOptions
520
- for (i = 0; i < FormatOptions.length; i += 1) {
521
- args.push(options[FormatOptions[i]]);
522
- }
523
-
524
- // Append the input, then call the method, presenting all
525
- // options as arguments.
526
- args.push(input);
527
- return method.apply("", args);
528
- }
529
-
530
- function wNumb(options) {
531
- if (!(this instanceof wNumb)) {
532
- return new wNumb(options);
533
- }
534
-
535
- if (typeof options !== "object") {
536
- return;
537
- }
538
-
539
- options = validate(options);
540
-
541
- // Call 'formatTo' with proper arguments.
542
- this.to = function(input) {
543
- return passAll(options, formatTo, input);
544
- };
545
-
546
- // Call 'formatFrom' with proper arguments.
547
- this.from = function(input) {
548
- return passAll(options, formatFrom, input);
549
- };
550
- }
551
-
552
- return wNumb;
553
- });
554
- } (wNumb));
555
- return wNumb.exports;
556
- }
557
-
558
- requireWNumb();
559
-
560
- function lowerCamelCase(string) {
561
- return string.charAt(0).toLowerCase() + string.slice(1);
562
- }
563
-
564
- const not = {
565
- inert: ':not([inert]):not([inert] *)',
566
- negTabIndex: ':not([tabindex^="-"])',
567
- disabled: ':not(:disabled)',
568
- };
569
-
570
- var focusableSelectors = [
571
- `a[href]${not.inert}${not.negTabIndex}`,
572
- `area[href]${not.inert}${not.negTabIndex}`,
573
- `input:not([type="hidden"]):not([type="radio"])${not.inert}${not.negTabIndex}${not.disabled}`,
574
- `input[type="radio"]${not.inert}${not.negTabIndex}${not.disabled}`,
575
- `select${not.inert}${not.negTabIndex}${not.disabled}`,
576
- `textarea${not.inert}${not.negTabIndex}${not.disabled}`,
577
- `button${not.inert}${not.negTabIndex}${not.disabled}`,
578
- `details${not.inert} > summary:first-of-type${not.negTabIndex}`,
579
- // Discard until Firefox supports `:has()`
580
- // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
581
- // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
582
- `iframe${not.inert}${not.negTabIndex}`,
583
- `audio[controls]${not.inert}${not.negTabIndex}`,
584
- `video[controls]${not.inert}${not.negTabIndex}`,
585
- `[contenteditable]${not.inert}${not.negTabIndex}`,
586
- `[tabindex]${not.inert}${not.negTabIndex}`,
587
- ];
588
-
589
- /**
590
- * Set the focus to the first element with `autofocus` with the element or the
591
- * element itself.
592
- */
593
- function focus(el) {
594
- (el.querySelector('[autofocus]') || el).focus();
595
- }
596
- /**
597
- * Get the first and last focusable elements within a given element.
598
- */
599
- function getFocusableEdges(el) {
600
- // Check for a focusable element within the subtree of the given element.
601
- const firstEl = findFocusableEl(el, true);
602
- // Only if we find the first element do we need to look for the last one. If
603
- // there’s no last element, we set `lastEl` as a reference to `firstEl` so
604
- // that the returned array is still always of length 2.
605
- const lastEl = firstEl ? findFocusableEl(el, false) || firstEl : null;
606
- return [firstEl, lastEl];
607
- }
608
- /**
609
- * Find the first focusable element inside the given element if `forward` is
610
- * truthy or the last focusable element otherwise.
611
- */
612
- function findFocusableEl(el, forward) {
613
- // If we’re walking forward, check if this element is focusable, and return it
614
- // immediately if it is.
615
- if (forward && isFocusable(el))
616
- return el;
617
- // We should only search the subtree of this element if it can have focusable
618
- // children.
619
- if (canHaveFocusableChildren(el)) {
620
- // Start walking the DOM tree, looking for focusable elements.
621
- // Case 1: If this element has a shadow root, search it recursively.
622
- if (el.shadowRoot) {
623
- // Descend into this subtree.
624
- let next = getNextChildEl(el.shadowRoot, forward);
625
- // Traverse the siblings, searching the subtree of each one for focusable
626
- // elements.
627
- while (next) {
628
- const focusableEl = findFocusableEl(next, forward);
629
- if (focusableEl)
630
- return focusableEl;
631
- next = getNextSiblingEl(next, forward);
632
- }
633
- }
634
- // Case 2: If this element is a slot for a Custom Element, search its
635
- // assigned elements recursively.
636
- else if (el.localName === 'slot') {
637
- const assignedElements = el.assignedElements({
638
- flatten: true,
639
- });
640
- if (!forward)
641
- assignedElements.reverse();
642
- for (const assignedElement of assignedElements) {
643
- const focusableEl = findFocusableEl(assignedElement, forward);
644
- if (focusableEl)
645
- return focusableEl;
646
- }
647
- }
648
- // Case 3: this is a regular Light DOM element. Search its subtree.
649
- else {
650
- // Descend into this subtree.
651
- let next = getNextChildEl(el, forward);
652
- // Traverse siblings, searching the subtree of each one
653
- // for focusable elements.
654
- while (next) {
655
- const focusableEl = findFocusableEl(next, forward);
656
- if (focusableEl)
657
- return focusableEl;
658
- next = getNextSiblingEl(next, forward);
659
- }
660
- }
661
- }
662
- // If we’re walking backward, we want to check the element’s entire subtree
663
- // before checking the element itself. If this element is focusable, return
664
- // it.
665
- if (!forward && isFocusable(el))
666
- return el;
667
- return null;
668
- }
669
- function getNextChildEl(el, forward) {
670
- return forward ? el.firstElementChild : el.lastElementChild;
671
- }
672
- function getNextSiblingEl(el, forward) {
673
- return forward ? el.nextElementSibling : el.previousElementSibling;
674
- }
675
- /**
676
- * Determine if an element is hidden from the user.
677
- */
678
- const isHidden$1 = (el) => {
679
- // Browsers hide all non-<summary> descendants of closed <details> elements
680
- // from user interaction, but those non-<summary> elements may still match our
681
- // focusable-selectors and may still have dimensions, so we need a special
682
- // case to ignore them.
683
- if (el.matches('details:not([open]) *') &&
684
- !el.matches('details>summary:first-of-type'))
685
- return true;
686
- // If this element has no painted dimensions, it's hidden.
687
- return !(el.offsetWidth || el.offsetHeight || el.getClientRects().length);
688
- };
689
- /**
690
- * Determine if an element is focusable and has user-visible painted dimensions.
691
- */
692
- const isFocusable = (el) => {
693
- // A shadow host that delegates focus will never directly receive focus,
694
- // even with `tabindex=0`. Consider our <fancy-button> custom element, which
695
- // delegates focus to its shadow button:
696
- //
697
- // <fancy-button tabindex="0">
698
- // #shadow-root
699
- // <button><slot></slot></button>
700
- // </fancy-button>
701
- //
702
- // The browser acts as as if there is only one focusable element – the shadow
703
- // button. Our library should behave the same way.
704
- if (el.shadowRoot?.delegatesFocus)
705
- return false;
706
- return el.matches(focusableSelectors.join(',')) && !isHidden$1(el);
707
- };
708
- /**
709
- * Determine if an element can have focusable children. Useful for bailing out
710
- * early when walking the DOM tree.
711
- * @example
712
- * This div is inert, so none of its children can be focused, even though they
713
- * meet our criteria for what is focusable. Once we check the div, we can skip
714
- * the rest of the subtree.
715
- * ```html
716
- * <div inert>
717
- * <button>Button</button>
718
- * <a href="#">Link</a>
719
- * </div>
720
- * ```
721
- */
722
- function canHaveFocusableChildren(el) {
723
- // The browser will never send focus into a Shadow DOM if the host element
724
- // has a negative tabindex. This applies to both slotted Light DOM Shadow DOM
725
- // children
726
- if (el.shadowRoot && el.getAttribute('tabindex') === '-1')
727
- return false;
728
- // Elemments matching this selector are either hidden entirely from the user,
729
- // or are visible but unavailable for interaction. Their descentants can never
730
- // receive focus.
731
- return !el.matches(':disabled,[hidden],[inert]');
732
- }
733
- /**
734
- * Get the active element, accounting for Shadow DOM subtrees.
735
- * @author Cory LaViska
736
- * @see: https://www.abeautifulsite.net/posts/finding-the-active-element-in-a-shadow-root/
737
- */
738
- function getActiveEl(root = document) {
739
- const activeEl = root.activeElement;
740
- if (!activeEl)
741
- return null;
742
- // If there’s a shadow root, recursively find the active element within it.
743
- // If the recursive call returns null, return the active element
744
- // of the top-level Document.
745
- if (activeEl.shadowRoot)
746
- return getActiveEl(activeEl.shadowRoot) || document.activeElement;
747
- // If not, we can just return the active element
748
- return activeEl;
749
- }
750
- /**
751
- * Trap the focus inside the given element
752
- */
753
- function trapTabKey(el, event) {
754
- const [firstFocusableEl, lastFocusableEl] = getFocusableEdges(el);
755
- // If there are no focusable children in the dialog, prevent the user from
756
- // tabbing out of it
757
- if (!firstFocusableEl)
758
- return event.preventDefault();
759
- const activeEl = getActiveEl();
760
- // If the SHIFT key is pressed while tabbing (moving backwards) and the
761
- // currently focused item is the first one, move the focus to the last
762
- // focusable item from the dialog element
763
- if (event.shiftKey && activeEl === firstFocusableEl) {
764
- // @ts-ignore: we know that `lastFocusableEl` is not null here
765
- lastFocusableEl.focus();
766
- event.preventDefault();
767
- }
768
- // If the SHIFT key is not pressed (moving forwards) and the currently focused
769
- // item is the last one, move the focus to the first focusable item from the
770
- // dialog element
771
- else if (!event.shiftKey && activeEl === lastFocusableEl) {
772
- firstFocusableEl.focus();
773
- event.preventDefault();
774
- }
775
- }
776
- /**
777
- * Find the closest element to the given element matching the given selector,
778
- * accounting for Shadow DOM subtrees.
779
- * @author Louis St-Amour
780
- * @see: https://stackoverflow.com/a/56105394
781
- */
782
- function closest(selector, base) {
783
- function from(el) {
784
- if (!el || el === document || el === window)
785
- return null;
786
- // Reading the `assignedSlot` property from the element (as suggested by the
787
- // aforementioned StackOverflow answer) is not enough, because it does not
788
- // take into consideration elements nested deeply within a <slot>. For these
789
- // elements, the `assignedSlot` property is `null` as it is only specified
790
- // for top-level elements within a <slot>. To still find the closest <slot>,
791
- // we walk up the tree looking for the `assignedSlot` property.
792
- const slot = findAssignedSlot(el);
793
- if (slot)
794
- el = slot;
795
- return (el.closest(selector) ||
796
- from(el.getRootNode().host));
797
- }
798
- return from(base);
799
- }
800
- function findAssignedSlot(node) {
801
- return (node.assignedSlot ||
802
- (node.parentNode ? findAssignedSlot(node.parentNode) : null));
803
- }
804
-
805
- const SCOPE = 'data-a11y-dialog';
806
- class A11yDialog {
807
- $el;
808
- id;
809
- previouslyFocused;
810
- shown;
811
- constructor(element) {
812
- this.$el = element;
813
- this.id = this.$el.getAttribute(SCOPE) || this.$el.id;
814
- this.previouslyFocused = null;
815
- this.shown = false;
816
- this.maintainFocus = this.maintainFocus.bind(this);
817
- this.bindKeypress = this.bindKeypress.bind(this);
818
- this.handleTriggerClicks = this.handleTriggerClicks.bind(this);
819
- this.show = this.show.bind(this);
820
- this.hide = this.hide.bind(this);
821
- this.$el.setAttribute('aria-hidden', 'true');
822
- this.$el.setAttribute('aria-modal', 'true');
823
- this.$el.setAttribute('tabindex', '-1');
824
- if (!this.$el.hasAttribute('role')) {
825
- this.$el.setAttribute('role', 'dialog');
826
- }
827
- document.addEventListener('click', this.handleTriggerClicks, true);
828
- }
829
- /**
830
- * Destroy the current instance (after making sure the dialog has been hidden)
831
- * and remove all associated listeners from dialog openers and closers
832
- */
833
- destroy() {
834
- // Dispatch a `destroy` event
835
- const destroyEvent = this.fire('destroy');
836
- // If the event was prevented, do not continue with the normal behavior
837
- if (destroyEvent.defaultPrevented)
838
- return this;
839
- // Hide the dialog to avoid destroying an open instance
840
- this.hide();
841
- // Remove the click event delegates for our openers and closers
842
- document.removeEventListener('click', this.handleTriggerClicks, true);
843
- // Clone and replace the dialog element to prevent memory leaks caused by
844
- // event listeners that the author might not have cleaned up.
845
- this.$el.replaceWith(this.$el.cloneNode(true));
846
- return this;
847
- }
848
- /**
849
- * Show the dialog element, trap the current focus within it, listen for some
850
- * specific key presses and fire all registered callbacks for `show` event
851
- */
852
- show(event) {
853
- // If the dialog is already open, abort
854
- if (this.shown)
855
- return this;
856
- // Dispatch a `show` event
857
- const showEvent = this.fire('show', event);
858
- // If the event was prevented, do not continue with the normal behavior
859
- if (showEvent.defaultPrevented)
860
- return this;
861
- // Keep a reference to the currently focused element to be able to restore
862
- // it later
863
- this.shown = true;
864
- this.$el.removeAttribute('aria-hidden');
865
- this.previouslyFocused = getActiveEl();
866
- // Due to a long lasting bug in Safari, clicking an interactive element
867
- // (like a <button>) does *not* move the focus to that element, which means
868
- // `document.activeElement` is whatever element is currently focused (like
869
- // an <input>), or the <body> element otherwise. We can work around that
870
- // problem by checking whether the focused element is the <body>, and if it,
871
- // store the click event target.
872
- // See: https://bugs.webkit.org/show_bug.cgi?id=22261
873
- if (this.previouslyFocused?.tagName === 'BODY' && event?.target) {
874
- this.previouslyFocused = event.target;
875
- }
876
- // Set the focus to the dialog element
877
- // See: https://github.com/KittyGiraudel/a11y-dialog/pull/583
878
- if (event?.type === 'focus') {
879
- this.maintainFocus();
880
- }
881
- else {
882
- focus(this.$el);
883
- }
884
- // Bind a focus event listener to the body element to make sure the focus
885
- // stays trapped inside the dialog while open, and start listening for some
886
- // specific key presses (TAB and ESC)
887
- document.body.addEventListener('focus', this.maintainFocus, true);
888
- this.$el.addEventListener('keydown', this.bindKeypress, true);
889
- return this;
890
- }
891
- /**
892
- * Hide the dialog element, restore the focus to the previously active
893
- * element, stop listening for some specific key presses and fire all
894
- * registered callbacks for `hide` event
895
- */
896
- hide(event) {
897
- // If the dialog is already closed, abort
898
- if (!this.shown)
899
- return this;
900
- // Dispatch a `hide` event
901
- const hideEvent = this.fire('hide', event);
902
- // If the event was prevented, do not continue with the normal behavior
903
- if (hideEvent.defaultPrevented)
904
- return this;
905
- this.shown = false;
906
- this.$el.setAttribute('aria-hidden', 'true');
907
- // Remove the focus event listener to the body element and stop listening
908
- // for specific key presses
909
- document.body.removeEventListener('focus', this.maintainFocus, true);
910
- this.$el.removeEventListener('keydown', this.bindKeypress, true);
911
- // Ensure the previously focused element (if any) has a `focus` method
912
- // before attempting to call it to account for SVG elements
913
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/108
914
- this.previouslyFocused?.focus?.();
915
- return this;
916
- }
917
- /**
918
- * Register a new callback for the given event type
919
- */
920
- on(type, handler, options) {
921
- this.$el.addEventListener(type, handler, options);
922
- return this;
923
- }
924
- /**
925
- * Unregister an existing callback for the given event type
926
- */
927
- off(type, handler, options) {
928
- this.$el.removeEventListener(type, handler, options);
929
- return this;
930
- }
931
- /**
932
- * Dispatch and return a custom event from the DOM element associated with
933
- * this dialog; this allows authors to listen for and respond to the events
934
- * in their own code
935
- */
936
- fire(type, event) {
937
- const customEvent = new CustomEvent(type, {
938
- detail: event,
939
- cancelable: true,
940
- });
941
- this.$el.dispatchEvent(customEvent);
942
- return customEvent;
943
- }
944
- /**
945
- * Add a delegated event listener for when elememts that open or close the
946
- * dialog are clicked, and call `show` or `hide`, respectively
947
- */
948
- handleTriggerClicks(event) {
949
- // We need to retrieve the click target while accounting for Shadow DOM.
950
- // When within a web component, `event.target` is the shadow root (e.g.
951
- // `<my-dialog>`), so we need to use `event.composedPath()` to get the click
952
- // target
953
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/582
954
- const target = event.composedPath()[0];
955
- const opener = closest(`[${SCOPE}-show="${this.id}"]`, target);
956
- const explicitCloser = closest(`[${SCOPE}-hide="${this.id}"]`, target);
957
- const implicitCloser = closest(`[${SCOPE}-hide]`, target) &&
958
- closest('[aria-modal="true"]', target) === this.$el;
959
- // We use `closest(..)` (instead of `matches(..)`) so that clicking an
960
- // element nested within a dialog opener does cause the dialog to open, and
961
- // we use our custom `closest(..)` function so that it can cross shadow
962
- // boundaries
963
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/712
964
- if (opener)
965
- this.show(event);
966
- if (explicitCloser || implicitCloser)
967
- this.hide(event);
968
- }
969
- /**
970
- * Private event handler used when listening to some specific key presses
971
- * (namely ESC and TAB)
972
- */
973
- bindKeypress(event) {
974
- // This is an escape hatch in case there are nested open dialogs, so that
975
- // only the top most dialog gets interacted with (`closest` is basically
976
- // `Element.prototype.closest()` accounting for Shadow DOM subtrees)
977
- if (closest('[aria-modal="true"]', getActiveEl()) !== this.$el) {
978
- return;
979
- }
980
- let hasOpenPopover = false;
981
- try {
982
- hasOpenPopover = !!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open');
983
- }
984
- catch {
985
- // Run that DOM query in a try/catch because not all browsers support the
986
- // `:popover-open` selector, which would cause the whole expression to
987
- // fail
988
- // See: https://caniuse.com/mdn-css_selectors_popover-open
989
- // See: https://github.com/KittyGiraudel/a11y-dialog/pull/578#discussion_r1343215149
990
- }
991
- // If the dialog is shown and the ESC key is pressed, prevent any further
992
- // effects from the ESC key and hide the dialog, unless:
993
- // - its role is `alertdialog`, which means it should be modal
994
- // - or it contains an open popover, in which case ESC should close it
995
- if (event.key === 'Escape' &&
996
- this.$el.getAttribute('role') !== 'alertdialog' &&
997
- !hasOpenPopover) {
998
- event.preventDefault();
999
- this.hide(event);
1000
- }
1001
- // If the dialog is shown and the TAB key is pressed, make sure the focus
1002
- // stays trapped within the dialog element
1003
- if (event.key === 'Tab') {
1004
- trapTabKey(this.$el, event);
1005
- }
1006
- }
1007
- /**
1008
- * If the dialog is shown and the focus is not within a dialog element (either
1009
- * this one or another one in case of nested dialogs) or an element with the
1010
- * ignore attribute, move it back to the dialog container
1011
- * See: https://github.com/KittyGiraudel/a11y-dialog/issues/177
1012
- */
1013
- maintainFocus() {
1014
- // We use `getActiveEl()` and not `event.target` here because the latter can
1015
- // be a shadow root. This can happen when having a focusable element after
1016
- // slotted content: tabbing out of it causes this focus listener to trigger
1017
- // with the shadow root as a target event. In such a case, the focus would
1018
- // be incorrectly moved to the dialog, which shouldn’t happen. Getting the
1019
- // active element (while accounting for Shadow DOM) avoids that problem.
1020
- // See: https://github.com/KittyGiraudel/a11y-dialog/issues/778
1021
- const target = getActiveEl();
1022
- if (!closest(`[aria-modal="true"], [${SCOPE}-ignore-focus-trap]`, target)) {
1023
- focus(this.$el);
1024
- }
1025
- }
1026
- }
1027
-
1028
- function instantiateDialogs() {
1029
- for (const el of document.querySelectorAll('[data-a11y-dialog]')) {
1030
- new A11yDialog(el);
1031
- }
1032
- }
1033
- if (typeof document !== 'undefined') {
1034
- if (document.readyState === 'loading') {
1035
- document.addEventListener('DOMContentLoaded', instantiateDialogs);
1036
- }
1037
- else {
1038
- instantiateDialogs();
1039
- }
1040
- }
1041
-
1
+ function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(t,n){if(t){if("string"==typeof t)return e(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d,p={exports:{}};var f=(d||(d=1,p.exports=function(){var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function n(e,t){return e.substring(0,t.length)===t}function i(e,t){return e.slice(-1*t.length)===t}function r(e,t,n){if((e[t]||e[n])&&e[t]===e[n])throw new Error(t)}function o(e){return"number"==typeof e&&isFinite(e)}function s(e,t){return e=e.toString().split("e"),(+((e=(e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]-t:-t))).toFixed(t)}function a(e,n,i,r,a,l,c,u,d,p,f,h){var m,v,g,b=h,y="",_="";return l&&(h=l(h)),!!o(h)&&(!1!==e&&0===parseFloat(h.toFixed(e))&&(h=0),h<0&&(m=!0,h=Math.abs(h)),!1!==e&&(h=s(h,e)),-1!==(h=h.toString()).indexOf(".")?(g=(v=h.split("."))[0],i&&(y=i+v[1])):g=h,n&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(n)))),m&&u&&(_+=u),r&&(_+=r),m&&d&&(_+=d),_+=g,_+=y,a&&(_+=a),p&&(_=p(_,b)),_)}function l(e,t,r,s,a,l,c,u,d,p,f,h){var m,v="";return f&&(h=f(h)),!(!h||"string"!=typeof h)&&(u&&n(h,u)&&(h=h.replace(u,""),m=!0),s&&n(h,s)&&(h=h.replace(s,"")),d&&n(h,d)&&(h=h.replace(d,""),m=!0),a&&i(h,a)&&(h=h.slice(0,-1*a.length)),t&&(h=h.split(t).join("")),r&&(h=h.replace(r,".")),m&&(v+="-"),""!==(v=(v+=h).replace(/[^0-9\.\-.]/g,""))&&(v=Number(v),c&&(v=c(v)),!!o(v)&&v))}function c(t){var n,i,o,s={};for(void 0===t.suffix&&(t.suffix=t.postfix),n=0;n<e.length;n+=1)if(void 0===(o=t[i=e[n]]))"negative"!==i||s.negativeBefore?"mark"===i&&"."!==s.thousand?s[i]=".":s[i]=!1:s[i]="-";else if("decimals"===i){if(!(o>=0&&o<8))throw new Error(i);s[i]=o}else if("encoder"===i||"decoder"===i||"edit"===i||"undo"===i){if("function"!=typeof o)throw new Error(i);s[i]=o}else{if("string"!=typeof o)throw new Error(i);s[i]=o}return r(s,"mark","thousand"),r(s,"prefix","negative"),r(s,"prefix","negativeBefore"),s}function u(t,n,i){var r,o=[];for(r=0;r<e.length;r+=1)o.push(t[e[r]]);return o.push(i),n.apply("",o)}function d(e){if(!(this instanceof d))return new d(e);"object"==typeof e&&(e=c(e),this.to=function(t){return u(e,a,t)},this.from=function(t){return u(e,l,t)})}return d}()),p.exports),h=u(f);function m(e){return e.charAt(0).toLowerCase()+e.slice(1)}var v={TAB:["Tab"],ESC:["Esc","Escape"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]},g=function(){return i(function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{direction:"horizontal"};t(this,e),this.elems=n,this.config=i,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)},[{key:"init",value:function(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}},{key:"destroy",value:function(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}},{key:"update",value:function(e){this.elems=e}},{key:"onKeydown",value:function(e){var t=this.elems.indexOf(document.activeElement);(v.ARROWUP.includes(e.key)||v.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(v.ARROWLEFT.includes(e.key)||v.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((v.ARROWDOWN.includes(e.key)||v.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(v.ARROWUP.includes(e.key)||v.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),v.TAB.includes(e.key)&&this.destroy())}}])}(),b={activeClass:"is-active",settingsAttr:"data-toggle"},y=function(){function e(n,i){return t(this,e),this.element=n,this.config=Object.assign(Object.assign({},b),i),this.settings=[],this.targets=[],this.handleClick=this.handleClick.bind(this),this.element.ODS_Toggle=this,this.init(),this}return i(e,[{key:"doToggle",value:function(e){var t=e.dispatchEvent,n=void 0===t||t,i=e.element,r=e.attribute,o=e.value,s=e.action,a=Object.assign({},e),l={trigger:this.element,element:i},c=r,u=i,d=o;"icon"===c&&(c="xlink:href",u=i.querySelector("use")),"text"===c&&(u=i.querySelector("[data-toggle-text-target]")||i),void 0===d&&(d=!1);var p=_({element:u,attribute:c,action:s,value:d,dispatchEvent:n,eventDetail:l});return null!==p&&(a.value=p),a}},{key:"init",value:function(){return this.settings=this.parseSettings(),this.targets=this.setupTargets(),this.element.addEventListener("click",this.handleClick),this.targets}},{key:"handleClick",value:function(){var e=this;this.targets=this.targets.map(function(t){return e.doToggle(t)}),this.element.dispatchEvent(new CustomEvent("toggleTrigger",{bubbles:!0}))}},{key:"destroy",value:function(){this.element.removeEventListener("click",this.handleClick),this.settings=[],this.targets=[]}},{key:"update",value:function(){this.removeNonExistentTargets(),this.addNewTargets()}},{key:"parseSettings",value:function(){var e=this.element.getAttribute(this.config.settingsAttr),t=this.element.getAttribute("aria-controls"),n=[];try{e&&(n=JSON.parse(e))}catch(e){console.warn("Invalid JSON in data-toggle attribute",e)}if(t){var i=this.element.getAttribute("aria-expanded");n=[].concat(s(i?[{target:"self",attribute:"aria-expanded"}]:[]),[{target:t.split(" ").map(function(e){return"#".concat(e)}).join(","),attribute:"hidden"}],s(Array.isArray(n)?n:[]))}return n}},{key:"setupTargets",value:function(){var t=this.element;return this.settings.reduce(function(n,i){return i&&i.target?[].concat(s(n),s(i.target.split(",").reduce(function(n,r){return[].concat(s(n),s(e.getTargetElementsFromString({target:r,trigger:t}).map(function(e){return Object.assign(Object.assign({},i),{element:e})})))},[]))):n},[])}},{key:"removeNonExistentTargets",value:function(){this.targets=this.targets.filter(function(e){return document.contains(e.element)})}},{key:"addNewTargets",value:function(){var e=this,t=this.setupTargets().filter(function(t){return!e.targets.find(function(e){return e.element===t.element&&e.action===t.action})});this.targets=[].concat(s(this.targets),s(t))}}],[{key:"getTargetElementsFromString",value:function(e){var t=e.target,n=e.trigger,i=t.trim();return"self"===i?[n]:"parent"===i?[n.parentNode]:"previous"===i?[n.previousElementSibling]:"next"===i?[n.nextElementSibling]:"string"==typeof i?Array.from(document.querySelectorAll(i)):[]}},{key:"getInstance",value:function(e){return e&&e.ODS_Toggle?e.ODS_Toggle:null}}])}();function _(e){var t=e.element,n=e.attribute,i=e.action,r=e.value,o=e.dispatchEvent,s=void 0===o||o,a=e.eventDetail,l=null;if(!(t&&t instanceof Element))return l;if("focus"===i&&setTimeout(function(){return t.focus()},20),"click"===i&&t.click(),"class"===n&&"string"==typeof r&&(t.classList.toggle(r),l=r),"text"===n){var c=t.textContent;t.textContent=(null==r?void 0:r.toString())||"",l=c}return"class"!==n&&"text"!==n&&void 0===i&&(l=t.getAttribute(n),"hidden"===n?t.hasAttribute(n)?t.removeAttribute(n):t.setAttribute(n,""):r?t.setAttribute(n,String(r)):t.setAttribute(n,String(!("true"===l)))),s&&t.dispatchEvent(new CustomEvent("toggle",{detail:a,bubbles:!0})),l}var w,S={buttonSelector:"[data-accordion-toggle]"},E=function(){return i(function e(n,i){return t(this,e),this.element=n,this.config=Object.assign(Object.assign({},S),i),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this},[{key:"onFocus",value:function(e){this.rovingTabindex.isActive||this.rovingTabindex.init();var t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}},{key:"init",value:function(){var e=this;this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new g(this.buttons,{direction:"vertical"}),this.buttons.forEach(function(t){t.addEventListener("focus",e.onFocus),t.getAttribute("data-toggle")||t.addEventListener("click",e.onClick)})}},{key:"onClick",value:function(e){var t=e.currentTarget,n=this.element.querySelector("#".concat(t.getAttribute("aria-controls")));_({element:t,attribute:"aria-expanded"}),_({element:n,attribute:"hidden"})}},{key:"destroy",value:function(){var e=this;this.rovingTabindex.destroy(),this.buttons.forEach(function(t){t.removeEventListener("focus",e.onFocus),t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}}])}(),x={exports:{}};var k,T,C,A,O,M,D,L,P,N,I,R=(w||(w=1,k=x,function(e,t){k.exports=t()}(window,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var i=n(1),r=n(6),o=n(7),s=n(16),a=n(18),l="prototype",c=function(e,t,n){var u,d,p,f,h=e&c.F,m=e&c.G,v=e&c.S,g=e&c.P,b=e&c.B,y=m?i:v?i[t]||(i[t]={}):(i[t]||{})[l],_=m?r:r[t]||(r[t]={}),w=_[l]||(_[l]={});for(u in m&&(n=t),n)p=((d=!h&&y&&void 0!==y[u])?y:n)[u],f=b&&d?a(p,i):g&&"function"==typeof p?a(Function.call,p):p,y&&s(y,u,p,e&c.U),_[u]!=p&&o(_,u,f),g&&w[u]!=p&&(w[u]=p)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){n.r(t),n.d(t,"h",function(){return a}),n.d(t,"createElement",function(){return a}),n.d(t,"cloneElement",function(){return u}),n.d(t,"Component",function(){return N}),n.d(t,"render",function(){return I}),n.d(t,"rerender",function(){return h}),n.d(t,"options",function(){return r});var i=function(){},r={},o=[],s=[];function a(e,t){var n,a,l,c,u=s;for(c=arguments.length;2<c--;)o.push(arguments[c]);for(t&&null!=t.children&&(o.length||o.push(t.children),delete t.children);o.length;)if((a=o.pop())&&void 0!==a.pop)for(c=a.length;c--;)o.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&n?u[u.length-1]+=a:u===s?u=[a]:u.push(a),n=l;var d=new i;return d.nodeName=e,d.children=u,d.attributes=null==t?void 0:t,d.key=null==t?void 0:t.key,void 0!==r.vnode&&r.vnode(d),d}function l(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function u(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var d=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,p=[];function f(e){!e._dirty&&(e._dirty=!0)&&1==p.push(e)&&(r.debounceRendering||c)(h)}function h(){var e,t=p;for(p=[];e=t.pop();)e._dirty&&L(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===t[i]&&(t[i]=n[i]);return t}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,i,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),i&&i(e);else if("class"!==t||r)if("style"===t){if(i&&"string"!=typeof i&&"string"!=typeof n||(e.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var o in n)o in i||(e.style[o]="");for(var o in i)e.style[o]="number"==typeof i[o]&&!1===d.test(o)?i[o]+"px":i[o]}}else if("dangerouslySetInnerHTML"===t)i&&(e.innerHTML=i.__html||"");else if("o"==t[0]&&"n"==t[1]){var s=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),i?n||e.addEventListener(t,y,s):e.removeEventListener(t,y,s),(e._listeners||(e._listeners={}))[t]=i}else if("list"!==t&&"type"!==t&&!r&&t in e){try{e[t]=null==i?"":i}catch(e){}null!=i&&!1!==i||"spellcheck"==t||e.removeAttribute(t)}else{var a=r&&t!==(t=t.replace(/^xlink:?/,""));null==i||!1===i?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof i&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),i):e.setAttribute(t,i))}else e.className=i||""}function y(e){return this._listeners[e.type](r.event&&r.event(e)||e)}var _=[],w=0,S=!1,E=!1;function x(){for(var e;e=_.pop();)r.afterMount&&r.afterMount(e),e.componentDidMount&&e.componentDidMount()}function k(e,t,n,i,r){var o=e,s=S;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(o=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(o,e),T(e,!0))),o.__preactattr_=!0,o;var a=t.nodeName;if("function"==typeof a)return function(e,t,n,i){for(var r=e&&e._component,o=r,s=e,a=r&&e._componentConstructor===t.nodeName,l=a,c=v(t);r&&!l&&(r=r._parentComponent);)l=r.constructor===t.nodeName;return r&&l&&(!i||r._component)?(D(r,c,3,n,i),e=r.base):(o&&!a&&(P(o),e=s=null),r=O(t.nodeName,c,n),e&&!r.nextBase&&(r.nextBase=e,s=null),D(r,c,1,n,i),e=r.base,s&&e!==s&&(s._component=null,T(s,!1))),e}(e,t,n,i);if(S="svg"===a||"foreignObject"!==a&&S,a=String(a),(!e||!m(e,a))&&(o=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a,S),e)){for(;e.firstChild;)o.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(o,e),T(e,!0)}var l=o.firstChild,c=o.__preactattr_,u=t.children;if(null==c){c=o.__preactattr_={};for(var d=o.attributes,p=d.length;p--;)c[d[p].name]=d[p].value}return!E&&u&&1===u.length&&"string"==typeof u[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=u[0]&&(l.nodeValue=u[0]):(u&&u.length||null!=l)&&function(e,t,n,i,r){var o,s,a,l,c,u,d,p,f=e.childNodes,h=[],v={},b=0,y=0,_=f.length,w=0,S=t?t.length:0;if(0!==_)for(var E=0;E<_;E++){var x=f[E],C=x.__preactattr_;null!=(A=S&&C?x._component?x._component.__key:C.key:null)?(b++,v[A]=x):(C||(void 0!==x.splitText?!r||x.nodeValue.trim():r))&&(h[w++]=x)}if(0!==S)for(E=0;E<S;E++){var A;if(c=null,null!=(A=(l=t[E]).key))b&&void 0!==v[A]&&(c=v[A],v[A]=void 0,b--);else if(y<w)for(o=y;o<w;o++)if(void 0!==h[o]&&(u=s=h[o],p=r,"string"==typeof(d=l)||"number"==typeof d?void 0!==u.splitText:"string"==typeof d.nodeName?!u._componentConstructor&&m(u,d.nodeName):p||u._componentConstructor===d.nodeName)){c=s,h[o]=void 0,o===w-1&&w--,o===y&&y++;break}c=k(c,l,n,i),a=f[E],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?g(a):e.insertBefore(c,a))}if(b)for(var E in v)void 0!==v[E]&&T(v[E],!1);for(;y<=w;)void 0!==(c=h[w--])&&T(c,!1)}(o,u,n,i,E||null!=c.dangerouslySetInnerHTML),function(e,t,n){var i;for(i in n)t&&null!=t[i]||null==n[i]||b(e,i,n[i],n[i]=void 0,S);for(i in t)"children"===i||"innerHTML"===i||i in n&&t[i]===("value"===i||"checked"===i?e[i]:n[i])||b(e,i,n[i],n[i]=t[i],S)}(o,t.attributes,c),S=s,o}function T(e,t){var n=e._component;n?P(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||g(e),C(e))}function C(e){for(e=e.lastChild;e;){var t=e.previousSibling;T(e,!0),e=t}}var A=[];function O(e,t,n){var i,r=A.length;for(e.prototype&&e.prototype.render?(i=new e(t,n),N.call(i,t,n)):((i=new N(t,n)).constructor=e,i.render=M);r--;)if(A[r].constructor===e)return i.nextBase=A[r].nextBase,A.splice(r,1),i;return i}function M(e,t,n){return this.constructor(e,n)}function D(e,t,n,i,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,i)),i&&i!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=i),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===r.syncComponentUpdates&&e.base?f(e):L(e,1,o)),e.__ref&&e.__ref(e))}function L(e,t,n,i){if(!e._disable){var o,s,a,c=e.props,u=e.state,d=e.context,p=e.prevProps||c,f=e.prevState||u,h=e.prevContext||d,m=e.base,g=e.nextBase,b=m||g,y=e._component,C=!1,A=h;if(e.constructor.getDerivedStateFromProps&&(u=l(l({},u),e.constructor.getDerivedStateFromProps(c,u)),e.state=u),m&&(e.props=p,e.state=f,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,u,d)?C=!0:e.componentWillUpdate&&e.componentWillUpdate(c,u,d),e.props=c,e.state=u,e.context=d),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!C){o=e.render(c,u,d),e.getChildContext&&(d=l(l({},d),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(A=e.getSnapshotBeforeUpdate(p,f));var M,N,I=o&&o.nodeName;if("function"==typeof I){var R=v(o);(s=y)&&s.constructor===I&&R.key==s.__key?D(s,R,1,d,!1):(M=s,e._component=s=O(I,R,d),s.nextBase=s.nextBase||g,s._parentComponent=e,D(s,R,0,d,!1),L(s,1,n,!0)),N=s.base}else a=b,(M=y)&&(a=e._component=null),(b||1===t)&&(a&&(a._component=null),N=function(e,t,n,i,r,o){w++||(S=null!=r&&void 0!==r.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var s=k(e,t,n,i,o);return r&&s.parentNode!==r&&r.appendChild(s),--w||(E=!1),s}(a,o,d,n||!m,b&&b.parentNode,!0));if(b&&N!==b&&s!==y){var z=b.parentNode;z&&N!==z&&(z.replaceChild(N,b),M||(b._component=null,T(b,!1)))}if(M&&P(M),(e.base=N)&&!i){for(var B=e,H=e;H=H._parentComponent;)(B=H).base=N;N._component=B,N._componentConstructor=B.constructor}}for(!m||n?_.unshift(e):C||(e.componentDidUpdate&&e.componentDidUpdate(p,f,A),r.afterUpdate&&r.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);w||i||x()}}function P(e){r.beforeUnmount&&r.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?P(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),g(e.nextBase=t),A.push(e),C(t)),e.__ref&&e.__ref(null)}function N(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function I(e,t,n){return function(e,t,n,i,r,o){w++||(S=null!=r&&void 0!==r.ownerSVGElement,E=null!=e&&!("__preactattr_"in e));var s=k(e,t,n,i,o);return r&&s.parentNode!==r&&r.appendChild(s),--w||(E=!1,x()),s}(n,e,{},!1,t,!1)}l(N.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),f(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),L(this,2)},render:function(){}});var R={h:a,createElement:a,cloneElement:u,Component:N,render:I,rerender:h,options:r};t.default=R},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(8),r=n(40);e.exports=n(3)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(9),r=n(38),o=n(39),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(2);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(4);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(41)})},function(e,t,n){var i=n(2),r=n(1).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){var i=n(1),r=n(7),o=n(17),s=n(10)("src"),a="toString",l=Function[a],c=(""+l).split(a);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(o(n,s)||r(n,s,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[s]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(42),r=n(28);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(11),r=n(12);e.exports=function(e){return i(r(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(21),r=n(24),o=n(43);e.exports=function(e){return function(t,n,s){var a,l=i(t),c=r(l.length),u=o(s,c);if(e&&n!=n){for(;u<c;)if((a=l[u++])!=a)return!0}else for(;u<c;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var i=n(25),r=Math.min;e.exports=function(e){return 0<e?r(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(27)("keys"),r=n(10);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(6),r=n(1),o="__core-js_shared__",s=r[o]||(r[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(8).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||n(3)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){var i=n(0),r=n(32)(1);i(i.P+i.F*!n(13)([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(18),r=n(11),o=n(29),s=n(24),a=n(47);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,f=t||a;return function(t,a,h){for(var m,v,g=o(t),b=r(g),y=i(a,h,3),_=s(b.length),w=0,S=n?f(t,_):l?f(t,0):void 0;w<_;w++)if((p||w in b)&&(v=y(m=b[w],w,g),e))if(n)S[w]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:S.push(m)}else if(u)return!1;return d?-1:c||u?u:S}}},function(e,t,n){var i=n(22);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(27)("wks"),r=n(10),o=n(1).Symbol,s="function"==typeof o;(e.exports=function(e){return i[e]||(i[e]=s&&o[e]||(s?o:r)("Symbol."+e))}).store=i},function(e,t,n){var i=n(0),r=n(23)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(s||!n(13)(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(52)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var i=n(5),r=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function o(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=s(e.source)),(0,i.render)((0,i.createElement)(r.default,e),e.element)}var s=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};o.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=n.textContent||n.innerText}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);var i=document.createElement("div");e.selectElement.parentNode.insertBefore(i,e.selectElement),o(Object.assign({},e,{element:i})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=o;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(2);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(20),r=n(45),o=n(46),s=n(29),a=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e,t){for(var n=s(e),l=arguments.length,c=1,u=r.f,d=o.f;c<l;)for(var p,f=a(arguments[c++]),h=u?i(f).concat(u(f)):i(f),m=h.length,v=0;v<m;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:l},function(e,t,n){var i=n(17),r=n(21),o=n(23)(!1),s=n(26)("IE_PROTO");e.exports=function(e,t){var n,a=r(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;t.length>l;)i(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var i=n(25),r=Math.max,o=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):o(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(48);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(2),r=n(33),o=n(34)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(0),r=n(32)(2);i(i.P+i.F*!n(13)([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(33)})},function(e,t,n){t.__esModule=!0,t.default=void 0,n(14),n(36),n(30),n(31),n(35),n(55),n(58);var i=n(5),r=s(n(60)),o=s(n(61));function s(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function u(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var d=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0,searchOnInteraction:!0},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseDown=n.handleOptionMouseDown.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.isQueryAnOption=function(e,t){var n=this;return-1!==t.map(function(e){return n.templateInputValue(e).toLowerCase()}).indexOf(e.toLowerCase())},n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state.focused,i=null===n,r=t.focused!==n;r&&!i&&this.elementReferences[n].focus();var o=-1===n,s=r&&null===t.focused;if(o&&s){var a=this.elementReferences[n];a.setSelectionRange(0,a.value.length)}},n.hasAutoselect=function(){return this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,i=n.options,r=n.query,o=n.selected;this.props.confirmOnBlur?(t=e.query||r,this.props.onConfirm(i[o])):t=r,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,i)})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,i=n.focused,r=n.menuOpen,o=n.options,s=n.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=i!==t&&-1!==i;if(!c&&a||!c&&!l){var d=r&&u()&&!this.hasAutoselect();this.handleComponentBlur({menuOpen:d,query:this.templateInputValue(o[s])})}},n.handleInputBlur=function(e){var t=this.state,n=t.focused,i=t.menuOpen,r=t.options,o=t.query,s=t.selected,a=0<=n;if(u()&&!e.relatedTarget&&!a&&this.hasAutoselect()){var l=this.templateInputValue(r[s]);this.handleComponentBlur({menuOpen:!1,query:l})}else if(!a){var c=i&&u(),d=u()?o:this.templateInputValue(r[s]);this.handleComponentBlur({menuOpen:c,query:d})}},n.handleInputChange=function(e){var t=this,n=this.props,i=n.minLength,r=n.source,o=n.showAllValues,s=this.state.searchOnInteraction,a=this.hasAutoselect(),l=e.target.value,c=0===l.length,u=s||this.state.query.length!==l.length,d=l.length>=i;this.setState({query:l,ariaHint:c,searchOnInteraction:!0}),o||!c&&u&&d?r(l,function(e){var n=0<e.length;t.setState(function(t){return{menuOpen:n&&null!==t.focused,options:e,selected:a&&n?0:-1,validChoiceMade:!1}})}):!c&&d||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){var t=this.state,n=t.query,i=t.validChoiceMade,r=t.options,o=this.props.minLength,s=!i&&n.length>=o&&0<r.length;s?this.setState(function(e){var t=e.menuOpen;return{focused:-1,menuOpen:s||t,selected:-1}}):this.setState({focused:-1}),e&&this.handleInputChange(e)},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e,searchOnInteraction:-1!==e})},n.handleOptionMouseEnter=function(e,t){u()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],i=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,hovered:null,menuOpen:!1,query:i,selected:-1,validChoiceMade:!0}),this.forceUpdate()},n.handleOptionMouseDown=function(e){e.preventDefault()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,i=t.selected;-1!==i&&n&&this.handleOptionFocus(i-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,i=n.menuOpen,r=n.options,o=n.selected;o!==r.length-1&&i&&this.handleOptionFocus(o+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,o=n.cssNamespace,s=n.customInputClassName,l=n.wrapperClassName,c=n.optionClassName,d=n.menuClassName,p=n.displayMenu,f=n.enterKeyHint,h=n.id,m=n.minLength,v=n.name,g=n.placeholder,b=n.required,y=n.showAllValues,_=n.tNoResults,w=n.tStatusQueryTooShort,S=n.tStatusNoResults,E=n.tStatusSelectedOption,x=n.tStatusResults,k=n.tAssistiveHint,T=n.dropdownArrow,C=this.state,A=C.focused,O=C.hovered,M=C.menuOpen,D=C.options,L=C.query,P=C.selected,N=C.ariaHint,I=C.validChoiceMade,R=this.hasAutoselect(),z=-1===A,B=0===D.length,H=0!==L.length,j=L.length>=m,F=this.props.showNoOptionsFound&&z&&B&&H&&j,V=o+"__wrapper"+(l?" "+l:""),U=o+"__input",$=null!==A?" "+U+"--focused":"",q=this.props.showAllValues?" "+U+"--show-all-values":" "+U+"--default",G=o+"__dropdown-arrow-down",W=-1!==A&&null!==A,Y=o+"__menu",K=Y+"--"+p,X=Y+"--"+(M||F?"visible":"hidden"),J=o+"__option",Q=o+"__hint",Z=this.templateInputValue(D[P]),ee=Z&&0===Z.toLowerCase().indexOf(L.toLowerCase())&&R?L+Z.substr(L.length):"",te=h+"__assistiveHint",ne=N?{"aria-describedby":te}:null;return y&&"string"==typeof(e=T({className:G}))&&(e=(0,i.createElement)("div",{className:o+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,i.createElement)("div",{className:V,onKeyDown:this.handleKeyDown},(0,i.createElement)(r.default,{id:h,length:D.length,queryLength:L.length,minQueryLength:m,selectedOption:this.templateInputValue(D[P]),selectedOptionIndex:P,validChoiceMade:I,isInFocus:null!==this.state.focused,tQueryTooShort:w,tNoResults:S,tSelectedOption:E,tResults:x}),ee&&(0,i.createElement)("span",null,(0,i.createElement)("input",{className:Q,readonly:!0,tabIndex:"-1",value:ee})),(0,i.createElement)("input",a({enterkeyhint:f||(u()&&this.hasAutoselect()?"done":""),"aria-expanded":M?"true":"false","aria-activedescendant":!!W&&h+"__option--"+A,"aria-owns":h+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},ne,{autoComplete:"off",className:""+U+$+q+(s?" "+s:""),id:h,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:v,placeholder:g,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:b,value:L})),e,(0,i.createElement)("ul",{className:Y+" "+K+" "+X+(d?" "+d:""),onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:h+"__listbox",role:"listbox"},D.map(function(e,n){var r=(-1===A?P===n:A===n)&&null===O?" "+J+"--focused":"",o=n%2?" "+J+"--odd":"",s=u()?"<span id="+h+"__option-suffix--"+n+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(n+1)+" of "+D.length+"</span>":"";return(0,i.createElement)("li",{"aria-selected":A===n?"true":"false",className:""+J+r+o+(c?" "+c:""),dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+s},id:h+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1","aria-posinset":n+1,"aria-setsize":D.length})}),F&&(0,i.createElement)("li",{className:J+(c?" "+c:"")+" "+J+"--no-results"},_())),(0,i.createElement)("span",{id:te,style:{display:"none"}},k()))},t}(i.Component);(t.default=d).defaultProps={autoselect:!1,cssNamespace:"autocomplete",wrapperClassName:"",customInputClassName:"",menuClassName:"",optionClassName:"",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:o.default}},function(e,t,n){var i=n(9),r=n(53),o=n(28),s=n(26)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n(15)("iframe"),i=o.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c[l][o[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[s]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(8),r=n(9),o=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){r(e);for(var n,s=o(t),a=s.length,l=0;l<a;)i.f(e,n=s[l++],t[n]);return e}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(0);i(i.P,"Function",{bind:n(56)})},function(e,t,n){var i=n(19),r=n(2),o=n(57),s=[].slice,a={};e.exports=Function.bind||function(e){var t=i(this),n=s.call(arguments,1),l=function(){var i=n.concat(s.call(arguments));return this instanceof l?function(e,t,n){if(!(t in a)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";a[t]=Function("F,a","return new F("+i.join(",")+")")}return a[t](e,n)}(t,i.length,i):o(t,i,e)};return r(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){var i=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},n]})},function(e,t,n){var i=n(7),r=n(16),o=n(4),s=n(12),a=n(34);e.exports=function(e,t,n){var l=a(e),c=n(s,l,""[e]),u=c[0],d=c[1];o(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,u),i(RegExp.prototype,l,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},function(e,t,n){t.__esModule=!0,t.default=void 0,n(36);var i=n(5),r=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,r)},t)}}(function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState(function(e){return{bump:!e.bump,debounced:!0,silenced:t}})}},1400)},n.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},n.render=function(){var e,t=this.props,n=t.id,r=t.length,o=t.queryLength,s=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,u=t.tNoResults,d=t.tSelectedOption,p=t.tResults,f=this.state,h=f.bump,m=f.debounced,v=f.silenced,g=o<s,b=0===r,y=a?d(a,r,l):"";return e=g?c(s):b?u():p(r,y),this.debounceStatusUpdate(),(0,i.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,i.createElement)("div",{id:n+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!v&&m&&h?e:""),(0,i.createElement)("div",{id:n+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},v||!m||h?"":e))},t}(i.Component);(t.default=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,n){return e+" "+(n+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){t.__esModule=!0,t.default=void 0;var i=n(5);t.default=function(e){var t=e.className;return(0,i.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,i.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,i.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default})),x.exports),z=u(R),B={autoselect:!0,wrapperClassName:"",menuClassName:"",optionClassName:"",customInputClassName:"",displayMenu:"overlay",tAssistiveHint:function(){return"Pre prezeranie výsledkov automatického dopĺňania použite šípky nahor a nadol a pre výber konkrétneho výsledku použite tlačidlo Enter. Pri dotykových zariadeniach použite dotyk alebo potiahnutie prstom do strany."}},H=function(){return i(function e(n,i){return t(this,e),this.element=n,this.config=Object.assign(Object.assign({},B),i),this.onPageshow=this.onPageshow.bind(this),this.instance=null,this.element.ODS_Autocomplete=this,this.init(),this},[{key:"init",value:function(){var e=this.element.getAttribute("data-autocomplete-config"),t={};if(e)try{t=JSON.parse(e)}catch(e){}this.config=Object.assign(Object.assign({},this.config),t),"SELECT"===this.element.tagName?z.enhanceSelectElement(Object.assign({selectElement:this.element},this.config)):z(Object.assign({element:this.element},this.config)),window.addEventListener("pageshow",this.onPageshow)}},{key:"onPageshow",value:function(e){e.persisted&&window&&window.location.reload()}},{key:"destroy",value:function(){window.removeEventListener("pageshow",this.onPageshow),this.element.ODS_Autocomplete=null}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Autocomplete?e.ODS_Autocomplete:null}}])}(),j={},F=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function U(e,t){for(var n in t)e[n]=t[n];return e}function $(e){var t=e.parentNode;t&&t.removeChild(e)}function q(e,t,n){var i,r,o,s={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?T.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return G(e,s,i,r,null)}function G(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++A:r};return null==r&&null!=C.vnode&&C.vnode(o),o}function W(e){return e.children}function Y(e,t){this.props=e,this.context=t}function K(e,t){if(null==t)return e.__?K(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?K(e):null}function X(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return X(e)}}function J(e){(!e.__d&&(e.__d=!0)&&O.push(e)&&!Q.__r++||D!==C.debounceRendering)&&((D=C.debounceRendering)||M)(Q)}function Q(){for(var e;Q.__r=O.length;)e=O.sort(function(e,t){return e.__v.__b-t.__v.__b}),O=[],e.some(function(e){var t,n,i,r,o,s;e.__d&&(o=(r=(t=e).__v).__e,(s=t.__P)&&(n=[],(i=U({},r)).__v=r.__v+1,ae(s,r,i,t.__n,void 0!==s.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?K(r):o,r.__h),le(n,r),r.__e!=o&&X(r)))})}function Z(e,t,n,i,r,o,s,a,l,c){var u,d,p,f,h,m,v,g=i&&i.__k||F,b=g.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(f=n.__k[u]=null==(f=t[u])||"boolean"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?G(null,f,null,null,f):Array.isArray(f)?G(W,{children:f},null,null,null):f.__b>0?G(f.type,f.props,f.key,null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=g[u])||p&&f.key==p.key&&f.type===p.type)g[u]=void 0;else for(d=0;d<b;d++){if((p=g[d])&&f.key==p.key&&f.type===p.type){g[d]=void 0;break}p=null}ae(e,f,p=p||j,r,o,s,a,l,c),h=f.__e,(d=f.ref)&&p.ref!=d&&(v||(v=[]),p.ref&&v.push(p.ref,null,f),v.push(d,f.__c||h,f)),null!=h?(null==m&&(m=h),"function"==typeof f.type&&f.__k===p.__k?f.__d=l=ee(f,l,e):l=ne(e,f,p,g,h,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=K(p))}for(n.__e=m,u=b;u--;)null!=g[u]&&("function"==typeof n.type&&null!=g[u].__e&&g[u].__e==n.__d&&(n.__d=K(i,u+1)),ue(g[u],g[u]));if(v)for(u=0;u<v.length;u++)ce(v[u],v[++u],v[++u])}function ee(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t="function"==typeof i.type?ee(i,t,n):ne(n,i,i,r,i.__e,t));return t}function te(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){te(e,t)}):t.push(e)),t}function ne(e,t,n,i,r,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return void 0!==s?s:r.nextSibling}function ie(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||V.test(t)?n:n+"px"}function re(e,t,n,i,r){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||ie(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||ie(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?se:oe,o):e.removeEventListener(t,o?se:oe,o);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function oe(e){this.l[e.type+!1](C.event?C.event(e):e)}function se(e){this.l[e.type+!0](C.event?C.event(e):e)}function ae(e,t,n,i,r,o,s,a,l){var c,u,d,p,f,h,m,v,g,b,y,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=C.__b)&&c(t);try{e:if("function"==typeof _){if(v=t.props,g=(c=_.contextType)&&i[c.__c],b=c?g?g.props.value:c.__:i,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in _&&_.prototype.render?t.__c=u=new _(v,b):(t.__c=u=new Y(v,b),u.constructor=_,u.render=de),g&&g.sub(u),u.props=v,u.state||(u.state={}),u.context=b,u.__n=i,d=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=_.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=U({},u.__s)),U(u.__s,_.getDerivedStateFromProps(v,u.__s))),p=u.props,f=u.state,d)null==_.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==_.getDerivedStateFromProps&&v!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,b),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,b)||t.__v===n.__v){u.props=v,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),u.__h.length&&s.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(v,u.__s,b),null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(p,f,h)})}u.context=b,u.props=v,u.state=u.__s,(c=C.__r)&&c(t),u.__d=!1,u.__v=t,u.__P=e,c=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(i=U(U({},i),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(h=u.getSnapshotBeforeUpdate(p,f)),y=null!=c&&c.type===W&&null==c.key?c.props.children:c,Z(e,Array.isArray(y)?y:[y],t,n,i,r,o,s,a,l),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,r,o,s,a){var l,c,u,d=n.props,p=t.props,f=t.type,h=0;if("svg"===f&&(r=!0),null!=o)for(;h<o.length;h++)if((l=o[h])&&"setAttribute"in l==!!f&&(f?l.localName===f:3===l.nodeType)){e=l,o[h]=null;break}if(null==e){if(null===f)return document.createTextNode(p);e=r?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,p.is&&p),o=null,a=!1}if(null===f)d===p||a&&e.data===p||(e.data=p);else{if(o=o&&T.call(e.childNodes),c=(d=n.props||j).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!a){if(null!=o)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in t||re(e,o,null,n[o],i);for(o in t)r&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||re(e,o,t[o],n[o],i)}(e,p,d,r,a),u)t.__k=[];else if(h=t.props.children,Z(e,Array.isArray(h)?h:[h],t,n,i,r&&"foreignObject"!==f,o,s,o?o[0]:n.__k&&K(n,0),a),null!=o)for(h=o.length;h--;)null!=o[h]&&$(o[h]);a||("value"in p&&void 0!==(h=p.value)&&(h!==e.value||"progress"===f&&!h||"option"===f&&h!==d.value)&&re(e,"value",h,d.value,!1),"checked"in p&&void 0!==(h=p.checked)&&h!==e.checked&&re(e,"checked",h,d.checked,!1))}return e}(n.__e,t,n,i,r,o,s,l);(c=C.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),C.__e(e,t,n)}}function le(e,t){C.__c&&C.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){C.__e(e,t.__v)}})}function ce(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){C.__e(e,n)}}function ue(e,t,n){var i,r;if(C.unmount&&C.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||ce(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){C.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&ue(i[r],t,"function"!=typeof e.type);n||null==e.__e||$(e.__e),e.__e=e.__d=void 0}function de(e,t,n){return this.constructor(e,n)}function pe(e,t,n){var i,r;C.__&&C.__(e,t),i=!1?null:t.__k,r=[],ae(t,e=t.__k=q(W,null,[e]),i||j,j,void 0!==t.ownerSVGElement,i?null:t.firstChild?T.call(t.childNodes):null,r,i?i.__e:t.firstChild,false),le(r,e)}T=F.slice,C={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(t){e=t}throw e}},A=0,Y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=U({},this.state),"function"==typeof e&&(e=e(U({},n),this.props)),e&&U(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),J(this))},Y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),J(this))},Y.prototype.render=W,O=[],M="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Q.__r=0,L=0;var fe=0,he=[],me=C.__b,ve=C.__r,ge=C.diffed,be=C.__c,ye=C.unmount;function _e(e,t){C.__h&&C.__h(N,e,fe||t),fe=0;var n=N.__H||(N.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function we(e){return fe=1,function(e,t){var n=_e(P++,2);return n.t=e,n.__c||(n.__=[Me(void 0,t),function(e){var t=n.t(n.__[0],e);n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=N),n.__}(Me,e)}function Se(e,t){var n=_e(P++,3);!C.__s&&Oe(n.__H,t)&&(n.__=e,n.__H=t,N.__H.__h.push(n))}function Ee(e){return fe=5,function(e,t){var n=_e(P++,7);return Oe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}(function(){return{current:e}},[])}function xe(e){var t=N.context[e.__c],n=_e(P++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(N)),t.props.value):e.__}function ke(){for(var e;e=he.shift();)if(e.__P)try{e.__H.__h.forEach(Ce),e.__H.__h.forEach(Ae),e.__H.__h=[]}catch(t){e.__H.__h=[],C.__e(t,e.__v)}}C.__b=function(e){N=null,me&&me(e)},C.__r=function(e){ve&&ve(e),P=0;var t=(N=e.__c).__H;t&&(t.__h.forEach(Ce),t.__h.forEach(Ae),t.__h=[])},C.diffed=function(e){ge&&ge(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==he.push(t)&&I===C.requestAnimationFrame||((I=C.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),Te&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);Te&&(t=requestAnimationFrame(n))})(ke)),N=null},C.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Ce),e.__h=e.__h.filter(function(e){return!e.__||Ae(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],C.__e(n,e.__v)}}),be&&be(e,t)},C.unmount=function(e){ye&&ye(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Ce(e)}catch(e){t=e}}),t&&C.__e(t,n.__v))};var Te="function"==typeof requestAnimationFrame;function Ce(e){var t=N,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),N=t}function Ae(e){var t=N;e.__c=e.__(),N=t}function Oe(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Me(e,t){return"function"==typeof t?t(e):t}function De(e,t){for(var n in t)e[n]=t[n];return e}function Le(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function Pe(e){this.props=e}(Pe.prototype=new Y).isPureReactComponent=!0,Pe.prototype.shouldComponentUpdate=function(e,t){return Le(this.props,e)||Le(this.state,t)};var Ne=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ne&&Ne(e)};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Re(e){function t(t,n){var i=De({},t);return delete i.ref,e(i,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Ie,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ze=C.__e;C.__e=function(e,t,n){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);ze(e,t,n)};var Be=C.unmount;function He(){this.__u=0,this.t=null,this.__b=null}function je(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Fe(){this.u=null,this.o=null}C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Be&&Be(e)},(He.prototype=new Y).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=je(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(! --i.__u){if(i.state.__e){var e=i.state.__e;i.__v.__k[0]=function e(t,n,i){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=i)),t}(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__e:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(s,s)},He.prototype.componentWillUnmount=function(){this.t=[]},He.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=De({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&q(W,null,e.fallback);return r&&(r.__h=null),[q(W,null,t.__e?null:e.children),r]};var Ve=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(Fe.prototype=new Y).__e=function(e){var t=this,n=je(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),Ve(t,e,i)):r()};n?n(o):o()}},Fe.prototype.render=function(e){this.u=null,this.o=new Map;var t=te(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Fe.prototype.componentDidUpdate=Fe.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ve(e,n,t)})};var Ue="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,$e=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,qe="undefined"!=typeof document,Ge=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Y.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Y.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var We=C.event;function Ye(){}function Ke(){return this.cancelBubble}function Xe(){return this.defaultPrevented}C.event=function(e){return We&&(e=We(e)),e.persist=Ye,e.isPropagationStopped=Ke,e.isDefaultPrevented=Xe,e.nativeEvent=e};var Je={configurable:!0,get:function(){return this.class}},Qe=C.vnode;C.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){var r=-1===t.indexOf("-");for(var o in i={},n){var s=n[o];qe&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==s||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===s?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Ge(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():r&&$e.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),i[o]=s)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=te(n.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==t&&null!=i.defaultValue&&(i.value=te(n.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),e.props=i,n.class!=n.className&&(Je.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",Je))}e.$$typeof=Ue,Qe&&Qe(e)};var Ze=C.__r;C.__r=function(e){Ze&&Ze(e),e.__c};var et={wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination",nextMonthButton:"daypickr__button--pagination-next",prevMonthButton:"daypickr__button--pagination-prev",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",closeButton:"daypickr__button--close",toggleButton:"daypickr__button--toggle"};function tt(...e){return e.join(" ").trim()}var nt={prevMonth:"previous month",nextMonth:"next month",month:"Month",year:"Year",weekdays:[{name:"Sunday",shortname:"Su"},{name:"Monday",shortname:"Mo"},{name:"Tuesday",shortname:"Tu"},{name:"Wednesday",shortname:"We"},{name:"Thursday",shortname:"Th"},{name:"Friday",shortname:"Fr"},{name:"Saturday",shortname:"Sa"}],months:["January","February","March","April","May","June","July","August","September","October","November","December"],openButton:"Choose date",closeButton:"Close"};function it(e){return e instanceof Date&&!isNaN(e.valueOf())}function rt(e,t=1){const n=new Date(e),i=e.getDay(),r=(i<t?7:0)+i-t;return new Date(n.setDate(n.getDate()-r))}function ot(e,t=1){const n=new Date(e),i=n.getDay(),r=6+(i<t?-7:0)-(i-t);return new Date(n.setDate(n.getDate()+r))}function st(e,t){const n=new Date(e);n.setDate(1);const i=new Date(e);i.setMonth(e.getMonth()+1,0);return function(e,t){const n=[];let i=e;for(;i.getTime()<t.getTime();)n.push(new Date(i)),i=new Date(i.setDate(i.getDate()+1));return n.push(new Date(i)),n}(rt(n,t),ot(i,t))}function at(e,t){return!(!it(e)||!it(t))&&(e.setHours(0,0,0,0),t.setHours(0,0,0,0),e.getTime()===t.getTime())}function lt(e,t){const n=new Date(e).setMonth(t),i=new Date(e.getFullYear(),t+1,0).getTime();return n>i?new Date(i):new Date(n)}var ct,ut,dt,pt=(dt={__c:ut="__cC"+L++,__:ct,Consumer:function(e,t){return e.children(t)},Provider:function(e){var t,n;return this.getChildContext||(t=[],(n={})[ut]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(J)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}}).Provider.__=dt.Consumer.contextType=dt,ft=()=>{const{firstDayOfWeek:e,classes:t,l10n:n,selected:i,setSelected:r,setView:o,handleKeyboardNavigation:s,focusedRef:a,view:l,disabledDayFn:c,locale:u}=xe(pt),d=function(e,t){const n=e?.length?[...e]:[],i=n.splice(0,t);return[...n,...i]}(n.weekdays,e),p=function(e){const t=[];for(let n=0;n<e.length;n+=7)t.push(e.slice(n,n+7));return t}(st(l,e));return q("table",{className:t.table},q("thead",null,q("tr",{className:t.tableHeaderRow},d.map(e=>q("th",{scope:"col",className:t.tableHeaderCell},q("span",{className:t.srOnly},e.name),q("span",{"aria-hidden":"true"},e.shortname))))),q("tbody",null,p.map(e=>q("tr",{className:t.tableRow},e.map(e=>{const n=i&&at(e,i),d=at(e,l),p=!function(e,t){return e.getMonth()===t.getMonth()}(e,l)||c(e),f=(h=e,at(new Date,h)?t.isToday:void 0);var h;const m=n?t.isSelected:void 0,v=[t.dayButton,f,m],g=d?"0":"-1",b=e.toLocaleDateString(u),y=d?a:void 0;return q("td",{role:"gridcell",className:t.tableCell},q("button",{className:v.join(" "),type:"button",onClick:()=>{p||(r(e),o(e))},tabindex:g,onKeyUp:s,ref:y,"aria-disabled":p,"aria-label":b,"aria-selected":n},q("span",{className:t.srOnly},b),q("span",{"aria-hidden":"true"},e.getDate())))})))))},ht=Re(({label:e,value:t,options:n,onChange:i,className:r,elemRef:o,...s},a)=>{const{classes:l}=xe(pt);return q("label",null,q("span",{className:"sr-only"},e),q("select",{className:tt(l.select,r),onChange:e=>i(e),ref:a,...s},n?.map(e=>q("option",{value:e?.value||0===e?.value?e.value:e,selected:t===e?.value||t===e?"selected":void 0},e?.text?e.text:e))))}),mt=ht;function vt(e,t){const n=[];for(let i=e;i<=t;i++)n.push(i);return n}var gt=Re((e,t)=>{const{l10n:n,min:i,max:r,view:o,setView:s,classes:a}=xe(pt),l=new Date(i).getFullYear(),c=new Date(r).getFullYear();return q(mt,{label:n.year,options:vt(l,c),value:o.getFullYear(),className:a.yearSelect,onChange:e=>{const t=new Date(o);t.setFullYear(parseInt(e.target.value,10)),s(t)},ref:t,...e})}),bt=gt,yt=()=>{const{l10n:e,view:t,setView:n,classes:i}=xe(pt);return q(mt,{label:e.month,value:t.getMonth(),className:i.monthSelect,options:e.months?.map((e,t)=>({value:t,text:e})),onChange:e=>{const i=new Date(t);i.setMonth(parseInt(e.target.value,10)),n(i)}})},_t=({min:e="1900-01-01",max:t="2100-12-31",classes:n=et,l10n:i=nt,selectedDay:r,firstDayOfWeek:o=1,locale:s={},disabledDayFn:a=()=>{},onSelect:l=()=>{},formatDate:c=e=>function(e){return e&&e instanceof Date?`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`:""}(e),parseDate:u=e=>{const t=e.match(/(\d{2})\/(\d{2})\/(\d{4})/);return!!t&&new Date(t[3],t[2]-1,t[1])},calendarIcon:d,name:p,id:f})=>{const[h,m]=we(r?new Date(r):new Date),[v,g]=we(r?new Date(r):void 0),[b,y]=we(!1),_=Ee(!0),w=Ee(),S=Ee(),E=Ee(),x=Ee(),k=Ee(),T=Ee();var A,O,M;Se(()=>{l(v),y(!1)},[v]),Se(()=>{const e=e=>{"Tab"===e.key&&b&&(e.shiftKey||document.activeElement!==T.current||(e.preventDefault(),x.current.focus()),!e.shiftKey||document.activeElement!==x.current&&document.activeElement!==k.current||(e.preventDefault(),T.current.focus()))},t=e=>{"Escape"===e.key&&b&&y(!1)};return document.addEventListener("keydown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keydown",t)}},[b,T.current,x.current]),Se(()=>{const e=e=>{!k.current.contains(e.target)&&b&&y(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[b,k.current]),A=()=>{b?k.current.focus():document.activeElement===w.current||_.current?_.current=!1:E.current.focus()},O=[b,x.current,E.current,w.current],M=_e(P++,4),!C.__s&&Oe(M.__H,O)&&(M.__=A,M.__H=O,N.__h.push(M));const D=e=>lt(e,e.getMonth()-1),L=e=>lt(e,e.getMonth()+1),I=()=>{y(!b)},R=({type:e,children:t,...n})=>q(e,n,t&&t.length&&t.map(e=>R(e)));return q(pt.Provider,{value:{firstDayOfWeek:o,classes:n,l10n:i,min:e,max:t,view:h,setView:m,selected:v,setSelected:g,handleKeyboardNavigation:e=>{let t=new Date(h);const n={ArrowLeft:()=>{t.setDate(h.getDate()-1)},ArrowRight:()=>{t.setDate(h.getDate()+1)},ArrowUp:()=>{t.setDate(h.getDate()-7)},ArrowDown:()=>{t.setDate(h.getDate()+7)},PageUp:()=>{e.shiftKey?t.setFullYear(h.getFullYear()-1):t=D(h)},PageDown:()=>{e.shiftKey?t.setFullYear(h.getFullYear()+1):t=L(h)},Home:()=>{t=rt(h,o)},End:()=>{t=ot(h,o)}};Object.keys(n).includes(e.key)&&(e.preventDefault(),n[e.key]?.(),m(t),setTimeout(()=>{S.current.focus()},0))},focusedRef:S,disabledDayFn:a,locale:s}},q("input",{id:`${f}-input`,type:"text",className:n.input,value:v&&v.toLocaleDateString(s),onChange:e=>(e=>{""===e.target.value&&g(void 0);const t=u(e.target.value);if(t)return m(t),g(t)})(e),ref:w}),q("input",{type:"hidden",id:`${f}-value`,value:c(v),name:p}),q("button",{type:"button","aria-controls":`${f}-dialog`,onClick:()=>I(),"aria-expanded":b,ref:E,className:n.toggleButton},d&&R(d),d?q("span",{class:n.srOnly},i.openButton):i.openButton),q("div",{className:n.wrapper,role:"dialog","aria-modal":"true","aria-labelledby":"daypickr-label",hidden:!b,ref:k,tabIndex:"-1"},q("div",{className:"daypickr__content"},q("h2",{id:"daypickr-label",className:"sr-only"},h.toLocaleString(s,{month:"long",year:"numeric"})),q("div",{className:n.header},q("div",{className:n.yearMonthWrapper},q(bt,{ref:x}),q(yt,null)),q("div",{className:n.pagination},q("button",{type:"button",className:`${n.button} ${n.prevMonthButton}`,onClick:()=>{m(D(h))}},i.prevMonth),q("button",{type:"button",className:`${n.button} ${n.nextMonthButton}`,onClick:()=>{m(L(h))}},i.nextMonth))),q(ft,null),q("button",{className:`${n.button} ${n.closeButton}`,type:"button",onClick:()=>I(),ref:T},i.closeButton))))},wt=({calendarIcon:e,classes:t=classNames,l10n:n=l10nEN,...i})=>{const r=({type:e,children:t,...n})=>q(e,n,t&&t.length&&t.map(e=>r(e)));return q(pt.Provider,{value:{classes:t,l10n:n}},q("input",{type:"text",disabled:!0,className:t.input}),q("button",{type:"button",className:t.toggleButton,disabled:!0},e&&r(e),e?q("span",{class:t.srOnly},n.openButton):n.openButton))};var St=function(e,t){return pe(q(_t,{...t}),e),{destroy(){!function(e){!!e.__k&&pe(null,e)}(e),pe(q(wt,{...t}),e)}}},Et={locale:"sk",classes:{wrapper:"daypickr",header:"daypickr__header",select:"daypickr__select",selectDisplay:"daypickr__select-display",monthSelect:"daypickr__select--month",yearSelect:"daypickr__select--year",button:"daypickr__button",paginationButton:"daypickr__button--pagination ",nextMonthButton:"daypickr__button--pagination-next btn btn--ghost btn--square btn--small",prevMonthButton:"daypickr__button--pagination-prev btn btn--ghost btn--square btn--small",yearMonthWrapper:"daypickr__year-month-wrapper",pagination:"daypickr__pagination",table:"daypickr__calendar",tableRow:"daypickr__calendar-row",tableCell:"daypickr__calendar-cell",tableHeaderRow:"daypickr__calendar-header-row",tableHeaderCell:"daypickr__calendar-header-cell",dayButton:"daypickr__day",isToday:"isToday",isSelected:"isSelected",srOnly:"sr-only",input:"form-group__item text-input",closeButton:"daypickr__button--close btn mb-none",toggleButton:"form-group__item btn btn--square"},firstDayOfWeek:1,l10n:{prevMonth:"predchádzajúci mesiac",nextMonth:"nasledujúci mesiac",month:"Mesiac",year:"Rok",weekdays:[{name:"Nedeľa",shortname:"Ne"},{name:"Pondelok",shortname:"Po"},{name:"Utorok",shortname:"Ut"},{name:"Streda",shortname:"St"},{name:"Štvrtok",shortname:"Št"},{name:"Piatok",shortname:"Pi"},{name:"Sobota",shortname:"So"}],months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],openButton:"Vyberte dátum",closeButton:"Zatvoriť"},parseDate:function(e){var t=e.match(/(\d{1,2})\. ?(\d{1,2})\. ?(\d{4})/);return!!t&&new Date(Number(t[3]),Number(t[2])-1,Number(t[1]))},calendarIcon:{type:"svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",className:"icon icon--medium",children:[{type:"path",d:"M800 175H700v-37.5a37.5 37.5 0 0 0-75 0V175H350v-37.5a37.5 37.5 0 0 0-75 0V175H100v625a75 75 0 0 0 75 75h700V250a75 75 0 0 0-75-75zM300 825H187.4a37.5 37.5 0 0 1-37.5-37.6V700H300v125zm0-150H150V550h150v125zm0-150H150V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zm225 562.4H325V700h150v125zm0-149.9H325V550h150v125zm0-150H325V400h150v125zm175 300H500V700h150v125zm0-150H500V550h150v125zm0-150H500V400h150v125zm-50-262.5a62.4 62.4 0 0 1 25-50v50a37.5 37.5 0 0 0 75 0v-50a62.5 62.5 0 1 1-100 50zM825 675H675V550h150v125zm0-150H675V400h112.5a37.5 37.5 0 0 1 37.5 37.4V525z","fill-rule":"evenodd"}]}},xt=function(){return i(function e(n,i){return t(this,e),this.element=n,this.config=Object.assign(Object.assign({},Et),i),this.init(),this.element.ODS_DatePicker=this,this},[{key:"init",value:function(){var e=this.element.getAttribute("data-datepicker-config"),t=this.element.getAttribute("data-enabled-days"),n={};if(e)try{n=JSON.parse(e)}catch(e){n={}}this.config=Object.assign(Object.assign(Object.assign({},this.config),n),t&&{disabledDayFn:function(e){return!t.split(",").includes(function(e){return e&&e instanceof Date?"".concat(e.getFullYear(),"-").concat((e.getMonth()+1).toString().padStart(2,"0"),"-").concat(e.getDate().toString().padStart(2,"0")):""}(e))}});var i=this.element.getAttribute("data-datepicker-id")||void 0,r=this.element.getAttribute("data-datepicker-name")||i;this.instance=St(this.element,Object.assign({id:i,name:r},this.config))}},{key:"destroy",value:function(){this.instance&&this.instance.destroy(),this.instance=null,this.element.ODS_DatePicker=null}}])}(),kt={controlSelector:".block-action__control",indicatorSelector:".block-action__indicator",activeClass:"is-indicating"},Tt=function(){return i(function e(n,i){return t(this,e),this.controlElement=null,this.indicatorElements=[],this.element=n,this.config=Object.assign(Object.assign({},kt),i),this.highlightIndicators=this.highlightIndicators.bind(this),this.unhighlightIndicators=this.unhighlightIndicators.bind(this),this.element.ODS_BlockAction=this,this.init(),this},[{key:"init",value:function(){this.controlElement=this.element.querySelector(this.config.controlSelector),this.indicatorElements=Array.from(this.element.querySelectorAll(this.config.indicatorSelector)),!this.controlElement||this.indicatorElements.length<1||(this.controlElement.addEventListener("mouseenter",this.highlightIndicators),this.controlElement.addEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.addEventListener("focus",this.highlightIndicators),this.controlElement.addEventListener("blur",this.unhighlightIndicators))}},{key:"highlightIndicators",value:function(){var e=this;this.indicatorElements.forEach(function(t){return t.classList.add(e.config.activeClass)})}},{key:"unhighlightIndicators",value:function(){var e=this;this.indicatorElements.forEach(function(t){return t.classList.remove(e.config.activeClass)})}},{key:"destroy",value:function(){var e=this;this.indicatorElements.forEach(function(t){return t.classList.remove(e.config.activeClass)}),this.controlElement&&(this.controlElement.removeEventListener("mouseenter",this.highlightIndicators),this.controlElement.removeEventListener("mouseleave",this.unhighlightIndicators),this.controlElement.removeEventListener("focus",this.highlightIndicators),this.controlElement.removeEventListener("blur",this.unhighlightIndicators)),this.controlElement=null,this.indicatorElements=[]}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_BlockAction?e.ODS_BlockAction:null}}])}();function Ct(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function At(e,t){void 0===e&&(e={}),void 0===t&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:Ct(t[n])&&Ct(e[n])&&Object.keys(t[n]).length>0&&At(e[n],t[n])})}const Ot={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Mt(){const e="undefined"!=typeof document?document:{};return At(e,Ot),e}const Dt={document:Ot,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Lt(){const e="undefined"!=typeof window?window:{};return At(e,Dt),e}function Pt(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}function Nt(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function It(){return Date.now()}function Rt(e,t){void 0===t&&(t="x");const n=Lt();let i,r,o;const s=function(e){const t=Lt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(r=s.transform||s.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix("none"===r?"":r)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=o.toString().split(",")),"x"===t&&(r=n.WebKitCSSMatrix?o.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=n.WebKitCSSMatrix?o.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function zt(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Bt(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function Ht(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(null!=i&&!Bt(i)){const n=Object.keys(Object(i)).filter(e=>t.indexOf(e)<0);for(let t=0,r=n.length;t<r;t+=1){const r=n[t],o=Object.getOwnPropertyDescriptor(i,r);void 0!==o&&o.enumerable&&(zt(e[r])&&zt(i[r])?i[r].__swiper__?e[r]=i[r]:Ht(e[r],i[r]):!zt(e[r])&&zt(i[r])?(e[r]={},i[r].__swiper__?e[r]=i[r]:Ht(e[r],i[r])):e[r]=i[r])}}}return e}function jt(e,t,n){e.style.setProperty(t,n)}function Ft(e){let{swiper:t,targetPosition:n,side:i}=e;const r=Lt(),o=-t.translate;let s,a=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const c=n>o?"next":"prev",u=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,d=()=>{s=(new Date).getTime(),null===a&&(a=s);const e=Math.max(Math.min((s-a)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let p=o+c*(n-o);if(u(p,n)&&(p=n),t.wrapperEl.scrollTo({[i]:p}),u(p,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:p})}),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(d)};d()}function Vt(e,t){void 0===t&&(t="");const n=Lt(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function Ut(e){try{return void console.warn(e)}catch(e){}}function $t(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Pt(t)),n}function qt(e){const t=Lt(),n=Mt(),i=e.getBoundingClientRect(),r=n.body,o=e.clientTop||r.clientTop||0,s=e.clientLeft||r.clientLeft||0,a=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:i.top+a-o,left:i.left+l-s}}function Gt(e,t){return Lt().getComputedStyle(e,null).getPropertyValue(t)}function Wt(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function Yt(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function Kt(e,t,n){const i=Lt();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function Xt(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function Jt(e,t){void 0===t&&(t=""),"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let Qt,Zt,en;function tn(){return Qt||(Qt=function(){const e=Lt(),t=Mt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),Qt}function nn(e){return void 0===e&&(e={}),Zt||(Zt=function(e){let{userAgent:t}=void 0===e?{}:e;const n=tn(),i=Lt(),r=i.navigator.platform,o=t||i.navigator.userAgent,s={ios:!1,android:!1},a=i.screen.width,l=i.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let u=o.match(/(iPad).*OS\s([\d_]+)/);const d=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===r;let h="MacIntel"===r;return!u&&h&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${l}`)>=0&&(u=o.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),h=!1),c&&!f&&(s.os="android",s.android=!0),(u||p||d)&&(s.os="ios",s.ios=!0),s}(e)),Zt}function rn(){return en||(en=function(){const e=Lt(),t=nn();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&i<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=i();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||r&&t.ios,isWebView:r}}()),en}var on={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const r=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function r(){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];t.apply(i,o)}return r.__emitterProxy=t,i.on(e,r,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((i,r)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(r,1)})}),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,i;for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];"string"==typeof o[0]||Array.isArray(o[0])?(t=o[0],n=o.slice(1,o.length),i=e):(t=o[0].events,n=o[0].data,i=o[0].context||e),n.unshift(i);return(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(i,[t,...n])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(i,n)})}),e}};const sn=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const an=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const ln=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())})),t&&t.remove()}},cn=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},un=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=r,o=[n-t];return o.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{o.includes(t.column)&&cn(e,n)})}const o=r+i-1;if(e.params.rewind||e.params.loop)for(let i=r-t;i<=o+t;i+=1){const t=(i%n+n)%n;(t<r||t>o)&&cn(e,t)}else for(let i=Math.max(r-t,0);i<=Math.min(o+t,n-1);i+=1)i!==r&&(i>o||i<r)&&cn(e,i)};var dn={updateSize:function(){const e=this;let t,n;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(Gt(i,"padding-left")||0,10)-parseInt(Gt(i,"padding-right")||0,10),n=n-parseInt(Gt(i,"padding-top")||0,10)-parseInt(Gt(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:i,slidesEl:r,size:o,rtlTranslate:s,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=Vt(r,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:u.length;let p=[];const f=[],h=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(e));let v=n.slidesOffsetAfter;"function"==typeof v&&(v=n.slidesOffsetAfter.call(e));const g=e.snapGrid.length,b=e.slidesGrid.length;let y=n.spaceBetween,_=-m,w=0,S=0;if(void 0===o)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*o:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y,u.forEach(e=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(jt(i,"--swiper-centered-offset-before",""),jt(i,"--swiper-centered-offset-after",""));const E=n.grid&&n.grid.rows>1&&e.grid;let x;E?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();const k="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<d;i+=1){let r;if(x=0,u[i]&&(r=u[i]),E&&e.grid.updateSlide(i,r,u),!u[i]||"none"!==Gt(r,"display")){if("auto"===n.slidesPerView){k&&(u[i].style[e.getDirectionLabel("width")]="");const o=getComputedStyle(r),s=r.style.transform,a=r.style.webkitTransform;if(s&&(r.style.transform="none"),a&&(r.style.webkitTransform="none"),n.roundLengths)x=e.isHorizontal()?Kt(r,"width"):Kt(r,"height");else{const e=t(o,"width"),n=t(o,"padding-left"),i=t(o,"padding-right"),s=t(o,"margin-left"),a=t(o,"margin-right"),l=o.getPropertyValue("box-sizing");if(l&&"border-box"===l)x=e+s+a;else{const{clientWidth:t,offsetWidth:o}=r;x=e+n+i+s+a+(o-t)}}s&&(r.style.transform=s),a&&(r.style.webkitTransform=a),n.roundLengths&&(x=Math.floor(x))}else x=(o-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(x=Math.floor(x)),u[i]&&(u[i].style[e.getDirectionLabel("width")]=`${x}px`);u[i]&&(u[i].swiperSlideSize=x),h.push(x),n.centeredSlides?(_=_+x/2+w/2+y,0===w&&0!==i&&(_=_-o/2-y),0===i&&(_=_-o/2-y),Math.abs(_)<.001&&(_=0),n.roundLengths&&(_=Math.floor(_)),S%n.slidesPerGroup===0&&p.push(_),f.push(_)):(n.roundLengths&&(_=Math.floor(_)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&p.push(_),f.push(_),_=_+x+y),e.virtualSize+=x+y,w=x,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+v,s&&a&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),E&&e.grid.updateWrapperSize(x,p),!n.centeredSlides){const t=[];for(let i=0;i<p.length;i+=1){let r=p[i];n.roundLengths&&(r=Math.floor(r)),p[i]<=e.virtualSize-o&&t.push(r)}p=t,Math.floor(e.virtualSize-o)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-o)}if(l&&n.loop){const t=h[0]+y;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),r=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)p.push(p[p.length-1]+r)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==y){const t=e.isHorizontal()&&s?"marginLeft":e.getDirectionLabel("marginRight");u.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==u.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(y||0)}),e-=y;const t=e>o?e-o:0;p=p.map(e=>e<=0?-m:e>t?t+v:e)}if(n.centerInsufficientSlides){let e=0;h.forEach(t=>{e+=t+(y||0)}),e-=y;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<o){const n=(o-e-t)/2;p.forEach((e,t)=>{p[t]=e-n}),f.forEach((e,t)=>{f[t]=e+n})}}if(Object.assign(e,{slides:u,snapGrid:p,slidesGrid:f,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){jt(i,"--swiper-centered-offset-before",-p[0]+"px"),jt(i,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(d!==c&&e.emit("slidesLengthChange"),p.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let r,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const s=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!i)break;n.push(s(e))}else n.push(s(t.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const e=n[r].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:i,rtlTranslate:r,snapGrid:o}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let s=-e;r&&(s=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const u=(s+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),d=(s-o[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),p=-(s-c),f=p+t.slidesSizesGrid[e],h=p>=0&&p<=t.size-t.slidesSizesGrid[e],m=p>=0&&p<t.size-1||f>1&&f<=t.size||p<=0&&f>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),sn(l,m,n.slideVisibleClass),sn(l,h,n.slideFullyVisibleClass),l.progress=r?-u:u,l.originalProgress=r?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:o,isEnd:s,progressLoop:a}=t;const l=o,c=s;if(0===i)r=0,o=!0,s=!0;else{r=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;o=n||r<=0,s=a||r>=1,n&&(r=0),a&&(r=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),r=t.slidesGrid[n],o=t.slidesGrid[i],s=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=r?(l-r)/s:(l+s-o)/s,a>1&&(a-=1)}Object.assign(t,{progress:r,progressLoop:a,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!s)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:r}=e,o=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,a=e=>Vt(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,u;if(o)if(n.loop){let t=r-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${t}"]`)}else l=a(`[data-swiper-slide-index="${r}"]`);else s?(l=t.find(e=>e.column===r),u=t.find(e=>e.column===r+1),c=t.find(e=>e.column===r-1)):l=t[r];l&&(s||(u=function(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{an(e,e===l,n.slideActiveClass),an(e,e===u,n.slideNextClass),an(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:r,activeIndex:o,realIndex:s,snapIndex:a}=t;let l,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?r=e:i>=t[e]&&i<t[e+1]&&(r=e+1):i>=t[e]&&(r=e);return n.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(r.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/r.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===o&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&r.grid&&r.grid.rows>1;let p;if(t.virtual&&r.virtual.enabled&&r.loop)p=u(c);else if(d){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/r.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:s,realIndex:p,previousIndex:o,activeIndex:c}),t.initialized&&un(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let r=e.closest(`.${i.slideClass}, swiper-slide`);!r&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(r=e)});let o,s=!1;if(r)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===r){s=!0,o=e;break}if(!r||!s)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};var pn={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:i,wrapperEl:r}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let o=Rt(r,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:r,wrapperEl:o,progress:s}=n;let a,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,r.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:r.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();a=0===u?0:(e-n.minTranslate())/u,a!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,i,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);const o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=i&&e>l?l:i&&e<c?c:e,o.updateProgress(u),s.cssMode){const e=o.isHorizontal();if(0===t)a[e?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return Ft({swiper:o,targetPosition:-u,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,r),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,r),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};function fn(e){let{swiper:t,runCallbacks:n,direction:i,step:r}=e;const{activeIndex:o,previousIndex:s}=t;let a=i;a||(a=o>s?"next":o<s?"prev":"reset"),t.emit(`transition${r}`),n&&"reset"===a?t.emit(`slideResetTransition${r}`):n&&o!==s&&(t.emit(`slideChangeTransition${r}`),"next"===a?t.emit(`slideNextTransition${r}`):t.emit(`slidePrevTransition${r}`))}var hn={slideTo:function(e,t,n,i,r){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const o=this;let s=e;s<0&&(s=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:p,wrapperEl:f,enabled:h}=o;if(!h&&!i&&!r||o.destroyed||o.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,s);let v=m+Math.floor((s-m)/o.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const g=-l[v];if(a.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*g),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?s=e:t>=n&&t<i&&(s=e+1):t>=n&&(s=e)}if(o.initialized&&s!==d){if(!o.allowSlideNext&&(p?g>o.translate&&g>o.minTranslate():g<o.translate&&g<o.minTranslate()))return!1;if(!o.allowSlidePrev&&g>o.translate&&g>o.maxTranslate()&&(d||0)!==s)return!1}let b;s!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(g),b=s>d?"next":s<d?"prev":"reset";const y=o.virtual&&o.params.virtual.enabled;if(!(y&&r)&&(p&&-g===o.translate||!p&&g===o.translate))return o.updateActiveIndex(s),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==a.effect&&o.setTranslate(g),"reset"!==b&&(o.transitionStart(n,b),o.transitionEnd(n,b)),!1;if(a.cssMode){const e=o.isHorizontal(),n=p?g:-g;if(0===t)y&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),y&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[e?"scrollLeft":"scrollTop"]=n})):f[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return Ft({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const _=rn().isSafari;return y&&!r&&_&&o.isElement&&o.virtual.update(!1,!1,s),o.setTransition(t),o.setTranslate(g),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,i),o.transitionStart(n,b),0===t?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,i){if(void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e){e=parseInt(e,10)}const r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);const o=r.grid&&r.params.grid&&r.params.grid.rows>1;let s=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)s+=r.virtual.slidesBefore;else{let e;if(o){const t=s*r.params.grid.rows;e=r.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=r.getSlideIndexByData(s);const t=o?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:n}=r.params;let a=r.params.slidesPerView;"auto"===a?a=r.slidesPerViewDynamic():(a=Math.ceil(parseFloat(r.params.slidesPerView,10)),n&&a%2==0&&(a+=1));let l=t-e<a;if(n&&(l=l||e<Math.ceil(a/2)),i&&n&&"auto"!==r.params.slidesPerView&&!o&&(l=!1),l){const i=n?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?r.realIndex:void 0})}if(o){const e=s*r.params.grid.rows;s=r.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else s=r.getSlideIndexByData(s)}return requestAnimationFrame(()=>{r.slideTo(s,t,n,i)}),r},slideNext:function(e,t,n){void 0===t&&(t=!0);const i=this,{enabled:r,params:o,animating:s}=i;if(!r||i.destroyed)return i;void 0===e&&(e=i.params.speed);let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<o.slidesPerGroupSkip?1:a,c=i.virtual&&o.virtual.enabled;if(o.loop){if(s&&!c&&o.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return o.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const i=this,{params:r,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const u=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!u&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=d(a?i.translate:-i.translate),f=o.map(e=>d(e)),h=r.freeMode&&r.freeMode.enabled;let m=o[f.indexOf(p)-1];if(void 0===m&&(r.cssMode||h)){let e;o.forEach((t,n)=>{p>=t&&(e=n)}),void 0!==e&&(m=h?o[e]:o[e>0?e-1:e])}let v=0;if(void 0!==m&&(v=s.indexOf(m),v<0&&(v=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(v=v-i.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),r.rewind&&i.isBeginning){const r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,n)}return r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{i.slideTo(v,e,t,n)}),!0):i.slideTo(v,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t,n,i){void 0===t&&(t=!0),void 0===i&&(i=.5);const r=this;if(r.destroyed)return;void 0===e&&(e=r.params.speed);let o=r.activeIndex;const s=Math.min(r.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const e=r.snapGrid[a];l-e>(r.snapGrid[a+1]-e)*i&&(o+=r.params.slidesPerGroup)}else{const e=r.snapGrid[a-1];l-e<=(r.snapGrid[a]-e)*i&&(o-=r.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,r.slidesGrid.length-1),r.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,o=e.getSlideIndexWhenGrid(e.clickedIndex);const s=e.isElement?"swiper-slide":`.${t.slideClass}`,a=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(r):o>(a?(e.slides.length-i)/2-(e.params.grid.rows-1):e.slides.length-i)?(e.loopFix(),o=e.getSlideIndex(Vt(n,`${s}[data-swiper-slide-index="${r}"]`)[0]),Nt(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}};var mn={loopCreate:function(e,t){const n=this,{params:i,slidesEl:r}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{Vt(r,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},s=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||s)&&(()=>{const e=Vt(r,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const a=i.slidesPerGroup*(s?i.grid.rows:1),l=n.slides.length%a!==0,c=s&&n.slides.length%i.grid.rows!==0,u=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?$t("swiper-slide",[i.slideBlankClass]):$t("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};if(l){if(i.loopAddBlankSlides){u(a-n.slides.length%a),n.recalcSlides(),n.updateSlides()}else Ut("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(c){if(i.loopAddBlankSlides){u(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()}else Ut("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();n.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:r,activeSlideIndex:o,initial:s,byController:a,byMousewheel:l}=void 0===e?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:p,slidesEl:f,params:h}=c,{centeredSlides:m,initialSlide:v}=h;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&h.virtual.enabled)return n&&(h.centeredSlides||0!==c.snapIndex?h.centeredSlides&&c.snapIndex<h.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=p,void c.emit("loopFix");let g=h.slidesPerView;"auto"===g?g=c.slidesPerViewDynamic():(g=Math.ceil(parseFloat(h.slidesPerView,10)),m&&g%2==0&&(g+=1));const b=h.slidesPerGroupAuto?g:h.slidesPerGroup;let y=m?Math.max(b,Math.ceil(g/2)):b;y%b!==0&&(y+=b-y%b),y+=h.loopAdditionalSlides,c.loopedSlides=y;const _=c.grid&&h.grid&&h.grid.rows>1;u.length<g+y||"cards"===c.params.effect&&u.length<g+2*y?Ut("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):_&&"row"===h.grid.fill&&Ut("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const w=[],S=[],E=_?Math.ceil(u.length/h.grid.rows):u.length,x=s&&E-v<g&&!m;let k=x?v:c.activeIndex;void 0===o?o=c.getSlideIndex(u.find(e=>e.classList.contains(h.slideActiveClass))):k=o;const T="next"===i||!i,C="prev"===i||!i;let A=0,O=0;const M=(_?u[o].column:o)+(m&&void 0===r?-g/2+.5:0);if(M<y){A=Math.max(y-M,b);for(let e=0;e<y-M;e+=1){const t=e-Math.floor(e/E)*E;if(_){const e=E-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&w.push(t)}else w.push(E-t-1)}}else if(M+g>E-y){O=Math.max(M-(E-2*y),b),x&&(O=Math.max(O,g-E+v+1));for(let e=0;e<O;e+=1){const t=e-Math.floor(e/E)*E;_?u.forEach((e,n)=>{e.column===t&&S.push(n)}):S.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),"cards"===c.params.effect&&u.length<g+2*y&&(S.includes(o)&&S.splice(S.indexOf(o),1),w.includes(o)&&w.splice(w.indexOf(o),1)),C&&w.forEach(e=>{u[e].swiperLoopMoveDOM=!0,f.prepend(u[e]),u[e].swiperLoopMoveDOM=!1}),T&&S.forEach(e=>{u[e].swiperLoopMoveDOM=!0,f.append(u[e]),u[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),"auto"===h.slidesPerView?c.updateSlides():_&&(w.length>0&&C||S.length>0&&T)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),h.watchSlidesProgress&&c.updateSlidesOffset(),n)if(w.length>0&&C){if(void 0===t){const e=c.slidesGrid[k],t=c.slidesGrid[k+A]-e;l?c.setTranslate(c.translate-t):(c.slideTo(k+Math.ceil(A),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(r){const e=_?w.length/h.grid.rows:w.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(S.length>0&&T)if(void 0===t){const e=c.slidesGrid[k],t=c.slidesGrid[k-O]-e;l?c.setTranslate(c.translate-t):(c.slideTo(k-O,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{const e=_?S.length/h.grid.rows:S.length;c.slideTo(c.activeIndex-e,0,!1,!0)}if(c.allowSlidePrev=d,c.allowSlideNext=p,c.controller&&c.controller.control&&!a){const e={slideRealIndex:t,direction:i,setTranslate:r,activeSlideIndex:o,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&n})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===h.slidesPerView&&n})}c.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function vn(e,t,n){const i=Lt(),{params:r}=e,o=r.edgeSwipeDetection,s=r.edgeSwipeThreshold;return!o||!(n<=s||n>=i.innerWidth-s)||"prevent"===o&&(t.preventDefault(),!0)}function gn(e){const t=this,n=Mt();let i=e;i.originalEvent&&(i=i.originalEvent);const r=t.touchEventsData;if("pointerdown"===i.type){if(null!==r.pointerId&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(r.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void vn(t,i,i.targetTouches[0].pageX);const{params:o,touches:s,enabled:a}=t;if(!a)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=i.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=Lt();let i=t.contains(e);!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t)));return i}(l,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(r.isTouched&&r.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,u=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&u&&(l=u[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!(!i.target||!i.target.shadowRoot);if(o.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===Mt()||n===Lt())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(d,l):l.closest(d)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;s.currentX=i.pageX,s.currentY=i.pageY;const f=s.currentX,h=s.currentY;if(!vn(t,i,f))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=f,s.startY=h,r.touchStartTime=It(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1);let m=!0;l.matches(r.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(r.focusableElements))&&n.activeElement.blur();const v=m&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!v||l.isContentEditable||i.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function bn(e){const t=Mt(),n=this,i=n.touchEventsData,{params:r,touches:o,rtlTranslate:s,enabled:a}=n;if(!a)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==i.touchId)return;if(c.pointerId!==i.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find(e=>e.identifier===i.touchId),!l||l.identifier!==i.touchId)return}else l=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));const u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return o.startX=u,void(o.startY=d);if(!n.allowTouchMove)return c.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),i.touchStartTime=It()));if(r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(d<o.startY&&n.translate<=n.maxTranslate()||d>o.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(s&&(u>o.startX&&-n.translate<=n.maxTranslate()||u<o.startX&&-n.translate>=n.minTranslate()))return;if(!s&&(u<o.startX&&n.translate<=n.maxTranslate()||u>o.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=d;const p=o.currentX-o.startX,f=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(p**2+f**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:p*p+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,i.isScrolling=n.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),void 0===i.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let h=n.isHorizontal()?p:f,m=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;r.oneWayMovement&&(h=Math.abs(h)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),o.diff=h,h*=r.touchRatio,s&&(h=-h,m=-m);const v=n.touchesDirection;n.swipeDirection=h>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const g=n.params.loop&&!r.cssMode,b="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(g&&b&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==r._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&v!==n.touchesDirection&&g&&b&&Math.abs(h)>=1)return Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=h+i.startTranslate;let y=!0,_=r.resistanceRatio;if(r.touchReleaseOnEdges&&(_=0),h>0?(g&&b&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(y=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+h)**_))):h<0&&(g&&b&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===r.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(y=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-h)**_))),y&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(h)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function yn(e){const t=this,n=t.touchEventsData;let i,r=e;r.originalEvent&&(r=r.originalEvent);if("touchend"===r.type||"touchcancel"===r.type){if(i=[...r.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)){if(!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return}n.pointerId=null,n.touchId=null;const{params:o,touches:s,rtlTranslate:a,slidesGrid:l,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=It(),d=u-n.touchStartTime;if(t.allowClick){const e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit("tap click",r),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=It(),Nt(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===s.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=o.followFinger?a?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const f=p>=-t.maxTranslate()&&!t.params.loop;let h=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const t=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==l[e+t]?(f||p>=l[e]&&p<l[e+t])&&(h=e,m=l[e+t]-l[e]):(f||p>=l[e])&&(h=e,m=l[l.length-1]-l[l.length-2])}let v=null,g=null;o.rewind&&(t.isBeginning?g=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const b=(p-l[h])/m,y=h<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?v:h+y):t.slideTo(h)),"prev"===t.swipeDirection&&(b>1-o.longSwipesRatio?t.slideTo(h+y):null!==g&&b<0&&Math.abs(b)>o.longSwipesRatio?t.slideTo(g):t.slideTo(h))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(h+y):t.slideTo(h):("next"===t.swipeDirection&&t.slideTo(null!==v?v:h+y),"prev"===t.swipeDirection&&t.slideTo(null!==g?g:h))}}function _n(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:o}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=s&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function wn(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Sn(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();r=0===o?0:(e.translate-e.minTranslate())/o,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function En(e){const t=this;ln(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function xn(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const kn=(e,t)=>{const n=Mt(),{params:i,el:r,wrapperEl:o,device:s}=e,a=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",e.onClick,!0),i.cssMode&&o[l]("scroll",e.onScroll),i.updateOnWindowResize?e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",_n,!0):e[c]("observerUpdate",_n,!0),r[l]("load",e.onLoad,{capture:!0}))};const Tn=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Cn={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:r}=e,o=i.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const s=Mt(),a="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:s.querySelector(i.breakpointsBase),c=e.getBreakpoint(o,a,l);if(!c||e.currentBreakpoint===c)return;const u=(c in o?o[c]:void 0)||e.originalParams,d=Tn(e,i),p=Tn(e,u),f=e.params.grabCursor,h=u.grabCursor,m=i.enabled;d&&!p?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&p&&(r.classList.add(`${i.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!h?e.unsetGrabCursor():!f&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===u[t])return;const n=i[t]&&i[t].enabled,r=u[t]&&u[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()});const v=u.direction&&u.direction!==i.direction,g=i.loop&&(u.slidesPerView!==i.slidesPerView||v),b=i.loop;v&&n&&e.changeDirection(),Ht(e.params,u);const y=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!y?e.disable():!m&&y&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&_?(e.loopCreate(t),e.updateSlides()):b&&!_&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let i=!1;const r=Lt(),o="window"===t?r.innerHeight:n.clientHeight,s=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});s.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<s.length;e+=1){const{point:o,value:a}=s[e];"window"===t?r.matchMedia(`(min-width: ${a}px)`).matches&&(i=o):a<=n.clientWidth&&(i=o)}return i||"max"}};var An={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:r,device:o}=e,s=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(i=>{e[i]&&n.push(t+i)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),r.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};var On={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Mn(e,t){return function(n){void 0===n&&(n={});const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in r?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Ht(t,n)):Ht(t,n)):Ht(t,n)}}const Dn={eventsEmitter:on,update:dn,translate:pn,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),fn({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),fn({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:hn,loop:mn,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=gn.bind(e),e.onTouchMove=bn.bind(e),e.onTouchEnd=yn.bind(e),e.onDocumentTouchStart=xn.bind(e),t.cssMode&&(e.onScroll=Sn.bind(e)),e.onClick=wn.bind(e),e.onLoad=En.bind(e),kn(e,"on")},detachEvents:function(){kn(this,"off")}},breakpoints:Cn,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:An},Ln={};class Pn{constructor(){let e,t;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?t=i[0]:[e,t]=i,t||(t={}),t=Ht({},t),e&&!t.el&&(t.el=e);const o=Mt();if(t.el&&"string"==typeof t.el&&o.querySelectorAll(t.el).length>1){const e=[];return o.querySelectorAll(t.el).forEach(n=>{const i=Ht({},t,{el:n});e.push(new Pn(i))}),e}const s=this;s.__swiper__=!0,s.support=tn(),s.device=nn({userAgent:t.userAgent}),s.browser=rn(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],t.modules&&Array.isArray(t.modules)&&s.modules.push(...t.modules);const a={};s.modules.forEach(e=>{e({params:t,swiper:s,extendParams:Mn(t,a),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const l=Ht({},On,a);return s.params=Ht({},l,Ln,t),s.originalParams=Ht({},s.params),s.passedParams=Ht({},t),s.params&&s.params.on&&Object.keys(s.params.on).forEach(e=>{s.on(e,s.params.on[e])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=Wt(Vt(t,`.${n.slideClass}, swiper-slide`)[0]);return Wt(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=Vt(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),r=(n.maxTranslate()-i)*e+i;n.translateTo(r,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:i,slidesGrid:r,slidesSizesGrid:o,size:s,activeIndex:a}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[a]?Math.ceil(i[a].swiperSlideSize):0;for(let n=a+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>s&&(e=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>s&&(e=!0))}else if("current"===e)for(let e=a+1;e<i.length;e+=1){(t?r[e]+o[e]-r[a]<s:r[e]-r[a]<s)&&(l+=1)}else for(let e=a-1;e>=0;e-=1){r[a]-r[e]<s&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&ln(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(t.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(n&&n.shadowRoot&&n.shadowRoot.querySelector){return n.shadowRoot.querySelector(i())}return Vt(n,i())[0]})();return!r&&t.params.createElements&&(r=$t("div",t.params.wrapperClass),n.append(r),Vt(n,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:n,wrapperEl:r,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===Gt(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===Gt(n,"direction")),wrongRTL:"-webkit-box"===Gt(r,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?ln(t,e):e.addEventListener("load",e=>{ln(t,e.target)})}),un(t),t.initialized=!0,un(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:i,el:r,wrapperEl:o,slides:s}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),o&&o.removeAttribute("style"),s&&s.length&&s.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){Ht(Ln,e)}static get extendedDefaults(){return Ln}static get defaults(){return On}static installModule(e){Pn.prototype.__modules__||(Pn.prototype.__modules__=[]);const t=Pn.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Pn.installModule(e)),Pn):(Pn.installModule(e),Pn)}}function Nn(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const o=Mt(),s=Lt();function a(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let i=e;i.originalEvent&&(i=i.originalEvent);const a=i.keyCode||i.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===a,u=l&&34===a,d=37===a,p=39===a,f=38===a,h=40===a;if(!t.allowSlideNext&&(t.isHorizontal()&&p||t.isVertical()&&h||u))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&d||t.isVertical()&&f||c))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||o.activeElement&&(o.activeElement.isContentEditable||o.activeElement.nodeName&&("input"===o.activeElement.nodeName.toLowerCase()||"textarea"===o.activeElement.nodeName.toLowerCase())))){if(t.params.keyboard.onlyInViewport&&(c||u||d||p||f||h)){let e=!1;if(Yt(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===Yt(t.el,`.${t.params.slideActiveClass}`).length)return;const i=t.el,r=i.clientWidth,o=i.clientHeight,a=s.innerWidth,l=s.innerHeight,c=qt(i);n&&(c.left-=i.scrollLeft);const u=[[c.left,c.top],[c.left+r,c.top],[c.left,c.top+o],[c.left+r,c.top+o]];for(let t=0;t<u.length;t+=1){const n=u[t];if(n[0]>=0&&n[0]<=a&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||u||d||p)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),((u||p)&&!n||(c||d)&&n)&&t.slideNext(),((c||d)&&!n||(u||p)&&n)&&t.slidePrev()):((c||u||f||h)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),(u||h)&&t.slideNext(),(c||f)&&t.slidePrev()),r("keyPress",a)}}function l(){t.keyboard.enabled||(o.addEventListener("keydown",a),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(o.removeEventListener("keydown",a),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",()=>{t.params.keyboard.enabled&&l()}),i("destroy",()=>{t.keyboard.enabled&&c()}),Object.assign(t.keyboard,{enable:l,disable:c})}function In(e,t,n,i){return e.params.createElements&&Object.keys(i).forEach(r=>{if(!n[r]&&!0===n.auto){let o=Vt(e.el,`.${i[r]}`)[0];o||(o=$t("div",i[r]),o.className=i[r],e.el.append(o)),n[r]=o,t[r]=o}}),n}function Rn(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;function o(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function s(e,n){const i=t.params.navigation;(e=Xt(e)).forEach(e=>{e&&(e.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass))})}function a(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return s(n,!1),void s(e,!1);s(n,t.isBeginning&&!t.params.rewind),s(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function u(){const e=t.params.navigation;if(t.params.navigation=In(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=o(e.nextEl),i=o(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:i}),n=Xt(n),i=Xt(i);const r=(n,i)=>{n&&n.addEventListener("click","next"===i?c:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach(e=>r(e,"next")),i.forEach(e=>r(e,"prev"))}function d(){let{nextEl:e,prevEl:n}=t.navigation;e=Xt(e),n=Xt(n);const i=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>i(e,"next")),n.forEach(e=>i(e,"prev"))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},i("init",()=>{!1===t.params.navigation.enabled?p():(u(),a())}),i("toEdge fromEdge lock unlock",()=>{a()}),i("destroy",()=>{d()}),i("enable disable",()=>{let{nextEl:e,prevEl:n}=t.navigation;e=Xt(e),n=Xt(n),t.enabled?a():[...e,...n].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),i("click",(e,n)=>{let{nextEl:i,prevEl:o}=t.navigation;i=Xt(i),o=Xt(o);const s=n.target;let a=o.includes(s)||i.includes(s);if(t.isElement&&!a){const e=n.path||n.composedPath&&n.composedPath();e&&(a=e.find(e=>i.includes(e)||o.includes(e)))}if(t.params.navigation.hideOnClick&&!a){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;let e;i.length?e=i[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),[...i,...o].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),u(),a()},disable:p,update:a,init:u,destroy:d})}function zn(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function Bn(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const o="swiper-pagination";let s;n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),t.pagination={el:null,bullets:[]};let a=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,n){const{bulletActiveClass:i}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${i}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${i}-${n}-${n}`))}function u(e){const n=e.target.closest(zn(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const i=Wt(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===i)return;const e=(r=t.realIndex,o=i,s=t.slides.length,(o%=s)===1+(r%=s)?"next":o===r-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(i)}else t.slideTo(i);var r,o,s}function d(){const e=t.rtl,n=t.params.pagination;if(l())return;let i,o,u=t.pagination.el;u=Xt(u);const d=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(d/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(o=t.previousRealIndex||0,i=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(i=t.snapIndex,o=t.previousSnapIndex):(o=t.previousIndex||0,i=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let l,d,p;if(n.dynamicBullets&&(s=Kt(r[0],t.isHorizontal()?"width":"height"),u.forEach(e=>{e.style[t.isHorizontal()?"width":"height"]=s*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==o&&(a+=i-(o||0),a>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),l=Math.max(i-a,0),d=l+(Math.min(r.length,n.dynamicMainBullets)-1),p=(d+l)/2),r.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),u.length>1)r.forEach(e=>{const r=Wt(e);r===i?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(r>=l&&r<=d&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),r===l&&c(e,"prev"),r===d&&c(e,"next"))});else{const e=r[i];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&r.forEach((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")}),n.dynamicBullets){const e=r[l],t=r[d];for(let e=l;e<=d;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),o=(s*i-s)/2-p*s,a=e?"right":"left";r.forEach(e=>{e.style[t.isHorizontal()?a:"top"]=`${o}px`})}}u.forEach((e,o)=>{if("fraction"===n.type&&(e.querySelectorAll(zn(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(i+1)}),e.querySelectorAll(zn(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(p)})),"progressbar"===n.type){let r;r=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const o=(i+1)/p;let s=1,a=1;"horizontal"===r?s=o:a=o,e.querySelectorAll(zn(n.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${a})`,e.style.transitionDuration=`${t.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(Jt(e,n.renderCustom(t,i+1,p)),0===o&&r("paginationRender",e)):(0===o&&r("paginationRender",e),r("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)})}function p(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let i=t.pagination.el;i=Xt(i);let o="";if("bullets"===e.type){let i=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&i>n&&(i=n);for(let n=0;n<i;n+=1)e.renderBullet?o+=e.renderBullet.call(t,n,e.bulletClass):o+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],i.forEach(n=>{"custom"!==e.type&&Jt(n,o||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(zn(e.bulletClass)))}),"custom"!==e.type&&r("paginationRender",i[0])}function f(){t.params.pagination=In(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.find(e=>Yt(e,".swiper")[0]===t.el))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}),n=Xt(n),n.forEach(n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",u),t.enabled||n.classList.add(e.lockClass)}))}function h(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=Xt(n),n.forEach(n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",u))})),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;n=Xt(n),n.forEach(n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),i("init",()=>{!1===t.params.pagination.enabled?m():(f(),p(),d())}),i("activeIndexChange",()=>{void 0===t.snapIndex&&d()}),i("snapIndexChange",()=>{d()}),i("snapGridLengthChange",()=>{p(),d()}),i("destroy",()=>{h()}),i("enable disable",()=>{let{el:e}=t.pagination;e&&(e=Xt(e),e.forEach(e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),i("lock unlock",()=>{d()}),i("click",(e,n)=>{const i=n.target,o=Xt(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!i.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=o[0].classList.contains(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),o.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=Xt(e),e.forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass))),h()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=Xt(e),e.forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass))),f(),p(),d()},disable:m,render:p,update:d,init:f,destroy:h})}function Hn(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const o=Mt();let s,a,l,c,u=!1,d=null,p=null;function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n}=t,{dragEl:i,el:r}=e,o=t.params.scrollbar,s=t.params.loop?t.progressLoop:t.progress;let c=a,u=(l-a)*s;n?(u=-u,u>0?(c=a-u,u=0):-u+a>l&&(c=l+u)):u<0?(c=a+u,u=0):u+a>l&&(c=l-u),t.isHorizontal()?(i.style.transform=`translate3d(${u}px, 0, 0)`,i.style.width=`${c}px`):(i.style.transform=`translate3d(0px, ${u}px, 0)`,i.style.height=`${c}px`),o.hide&&(clearTimeout(d),r.style.opacity=1,d=setTimeout(()=>{r.style.opacity=0,r.style.transitionDuration="400ms"},1e3))}function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:n,el:i}=e;n.style.width="",n.style.height="",l=t.isHorizontal()?i.offsetWidth:i.offsetHeight,c=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),a="auto"===t.params.scrollbar.dragSize?l*c:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n.style.width=`${a}px`:n.style.height=`${a}px`,i.style.display=c>=1?"none":"",t.params.scrollbar.hide&&(i.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function m(e){return t.isHorizontal()?e.clientX:e.clientY}function v(e){const{scrollbar:n,rtlTranslate:i}=t,{el:r}=n;let o;o=(m(e)-qt(r)[t.isHorizontal()?"left":"top"]-(null!==s?s:a/2))/(l-a),o=Math.max(Math.min(o,1),0),i&&(o=1-o);const c=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*o;t.updateProgress(c),t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}function g(e){const n=t.params.scrollbar,{scrollbar:i,wrapperEl:o}=t,{el:a,dragEl:l}=i;u=!0,s=e.target===l?m(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),o.style.transitionDuration="100ms",l.style.transitionDuration="100ms",v(e),clearTimeout(p),a.style.transitionDuration="0ms",n.hide&&(a.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function b(e){const{scrollbar:n,wrapperEl:i}=t,{el:o,dragEl:s}=n;u&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,v(e),i.style.transitionDuration="0ms",o.style.transitionDuration="0ms",s.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function y(e){const n=t.params.scrollbar,{scrollbar:i,wrapperEl:o}=t,{el:s}=i;u&&(u=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",o.style.transitionDuration=""),n.hide&&(clearTimeout(p),p=Nt(()=>{s.style.opacity=0,s.style.transitionDuration="400ms"},1e3)),r("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())}function _(e){const{scrollbar:n,params:i}=t,r=n.el;if(!r)return;const s=r,a=!!i.passiveListeners&&{passive:!1,capture:!1},l=!!i.passiveListeners&&{passive:!0,capture:!1};if(!s)return;const c="on"===e?"addEventListener":"removeEventListener";s[c]("pointerdown",g,a),o[c]("pointermove",b,a),o[c]("pointerup",y,l)}function w(){const{scrollbar:e,el:n}=t;t.params.scrollbar=In(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const i=t.params.scrollbar;if(!i.el)return;let r,s;if("string"==typeof i.el&&t.isElement&&(r=t.el.querySelector(i.el)),r||"string"!=typeof i.el)r||(r=i.el);else if(r=o.querySelectorAll(i.el),!r.length)return;t.params.uniqueNavElements&&"string"==typeof i.el&&r.length>1&&1===n.querySelectorAll(i.el).length&&(r=n.querySelector(i.el)),r.length>0&&(r=r[0]),r.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass),r&&(s=r.querySelector(zn(t.params.scrollbar.dragClass)),s||(s=$t("div",t.params.scrollbar.dragClass),r.append(s))),Object.assign(e,{el:r,dragEl:s}),i.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&_("on"),r&&r.classList[t.enabled?"remove":"add"](...Pt(t.params.scrollbar.lockClass))}function S(){const e=t.params.scrollbar,n=t.scrollbar.el;n&&n.classList.remove(...Pt(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&_("off")}n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},i("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:n}=t.scrollbar;n=Xt(n),n.forEach(n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),i("init",()=>{!1===t.params.scrollbar.enabled?E():(w(),h(),f())}),i("update resize observerUpdate lock unlock changeDirection",()=>{h()}),i("setTranslate",()=>{f()}),i("setTransition",(e,n)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(n)}),i("enable disable",()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...Pt(t.params.scrollbar.lockClass))}),i("destroy",()=>{S()});const E=()=>{t.el.classList.add(...Pt(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...Pt(t.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...Pt(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...Pt(t.params.scrollbar.scrollbarDisabledClass)),w(),h(),f()},disable:E,updateSize:h,setTranslate:f,init:w,destroy:S})}function jn(e){let{swiper:t,extendParams:n,on:i}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let r,o,s=null,a=(new Date).getTime();function l(e){const t=s;0!==t.length&&Jt(t,e)}function c(e){(e=Xt(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function u(e){(e=Xt(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function d(e,t){(e=Xt(e)).forEach(e=>{e.setAttribute("role",t)})}function p(e,t){(e=Xt(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function f(e,t){(e=Xt(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function h(e){(e=Xt(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function m(e){(e=Xt(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function v(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,i=e.target;if(!t.pagination||!t.pagination.el||i!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(zn(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=Xt(t.navigation.prevEl);Xt(t.navigation.nextEl).includes(i)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),e.includes(i)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}t.pagination&&i.matches(zn(t.params.pagination.bulletClass))&&i.click()}}function g(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function b(){return g()&&t.params.pagination.clickable}const y=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(d(e,"button"),e.addEventListener("keydown",v)),f(e,n),function(e,t){(e=Xt(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},_=e=>{o&&o!==e.target&&!o.contains(e.target)&&(r=!0),t.a11y.clicked=!0},w=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},S=e=>{a=(new Date).getTime()},E=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-a<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;o=n;const i=t.slides.indexOf(n)===t.activeIndex,s=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);i||s||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{r||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(n)),0),r=!1)}))},x=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&p(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&d(t.slides,e.slideRole);const n=t.slides.length;e.slideLabelMessage&&t.slides.forEach((i,r)=>{const o=t.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):r;f(i,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,n))})},k=()=>{const e=t.params.a11y;t.el.append(s);const n=t.el;e.containerRoleDescriptionMessage&&p(n,e.containerRoleDescriptionMessage),e.containerMessage&&f(n,e.containerMessage),e.containerRole&&d(n,e.containerRole);const i=t.wrapperEl,r=e.id||i.getAttribute("id")||`swiper-wrapper-${o=16,"x".repeat(o).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`;var o;const a=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var l;l=r,Xt(i).forEach(e=>{e.setAttribute("id",l)}),function(e,t){(e=Xt(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(i,a),x();let{nextEl:c,prevEl:u}=t.navigation?t.navigation:{};if(c=Xt(c),u=Xt(u),c&&c.forEach(t=>y(t,r,e.nextSlideMessage)),u&&u.forEach(t=>y(t,r,e.prevSlideMessage)),b()){Xt(t.pagination.el).forEach(e=>{e.addEventListener("keydown",v)})}Mt().addEventListener("visibilitychange",S),t.el.addEventListener("focus",E,!0),t.el.addEventListener("focus",E,!0),t.el.addEventListener("pointerdown",_,!0),t.el.addEventListener("pointerup",w,!0)};i("beforeInit",()=>{s=$t("span",t.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),i("afterInit",()=>{t.params.a11y.enabled&&k()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&x()}),i("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(h(n),u(n)):(m(n),c(n))),e&&(t.isEnd?(h(e),u(e)):(m(e),c(e)))}()}),i("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;g()&&t.pagination.bullets.forEach(n=>{t.params.pagination.clickable&&(c(n),t.params.pagination.renderBullet||(d(n,"button"),f(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,Wt(n)+1)))),n.matches(zn(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),i("destroy",()=>{t.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=Xt(e),n=Xt(n),e&&e.forEach(e=>e.removeEventListener("keydown",v)),n&&n.forEach(e=>e.removeEventListener("keydown",v)),b()&&Xt(t.pagination.el).forEach(e=>{e.removeEventListener("keydown",v)});Mt().removeEventListener("visibilitychange",S),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",E,!0),t.el.removeEventListener("pointerdown",_,!0),t.el.removeEventListener("pointerup",w,!0))}()})}Object.keys(Dn).forEach(e=>{Object.keys(Dn[e]).forEach(t=>{Pn.prototype[t]=Dn[e][t]})}),Pn.use([function(e){let{swiper:t,on:n,emit:i}=e;const r=Lt();let o=null,s=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};n("init",()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver(e=>{s=r.requestAnimationFrame(()=>{const{width:n,height:i}=t;let r=n,o=i;e.forEach(e=>{let{contentBoxSize:n,contentRect:i,target:s}=e;s&&s!==t.el||(r=i?i.width:(n[0]||n).inlineSize,o=i?i.height:(n[0]||n).blockSize)}),r===n&&o===i||a()})}),o.observe(t.el)):(r.addEventListener("resize",a),r.addEventListener("orientationchange",l))}),n("destroy",()=>{s&&r.cancelAnimationFrame(s),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",l)})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const o=[],s=Lt(),a=function(e,n){void 0===n&&(n={});const i=new(s.MutationObserver||s.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void r("observerUpdate",e[0]);const n=function(){r("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(n):s.setTimeout(n,0)});i.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),o.push(i)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=Yt(t.hostEl);for(let t=0;t<e.length;t+=1)a(e[t])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}}),i("destroy",()=>{o.forEach(e=>{e.disconnect()}),o.splice(0,o.length)})}]);var Fn="top",Vn="bottom",Un="right",$n="left",qn="auto",Gn=[Fn,Vn,Un,$n],Wn="start",Yn="end",Kn="viewport",Xn="popper",Jn=Gn.reduce(function(e,t){return e.concat([t+"-"+Wn,t+"-"+Yn])},[]),Qn=[].concat(Gn,[qn]).reduce(function(e,t){return e.concat([t,t+"-"+Wn,t+"-"+Yn])},[]),Zn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ei(e){return e?(e.nodeName||"").toLowerCase():null}function ti(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ni(e){return e instanceof ti(e).Element||e instanceof Element}function ii(e){return e instanceof ti(e).HTMLElement||e instanceof HTMLElement}function ri(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ti(e).ShadowRoot||e instanceof ShadowRoot)}var oi={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];ii(r)&&ei(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ii(i)&&ei(i)&&(Object.assign(i.style,o),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function si(e){return e.split("-")[0]}var ai=Math.max,li=Math.min,ci=Math.round;function ui(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function di(){return!/^((?!chrome|android).)*safari/i.test(ui())}function pi(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&ii(e)&&(r=e.offsetWidth>0&&ci(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ci(i.height)/e.offsetHeight||1);var s=(ni(e)?ti(e):window).visualViewport,a=!di()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/r,c=(i.top+(a&&s?s.offsetTop:0))/o,u=i.width/r,d=i.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function fi(e){var t=pi(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function hi(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ri(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function mi(e){return ti(e).getComputedStyle(e)}function vi(e){return["table","td","th"].indexOf(ei(e))>=0}function gi(e){return((ni(e)?e.ownerDocument:e.document)||window.document).documentElement}function bi(e){return"html"===ei(e)?e:e.assignedSlot||e.parentNode||(ri(e)?e.host:null)||gi(e)}function yi(e){return ii(e)&&"fixed"!==mi(e).position?e.offsetParent:null}function _i(e){for(var t=ti(e),n=yi(e);n&&vi(n)&&"static"===mi(n).position;)n=yi(n);return n&&("html"===ei(n)||"body"===ei(n)&&"static"===mi(n).position)?t:n||function(e){var t=/firefox/i.test(ui());if(/Trident/i.test(ui())&&ii(e)&&"fixed"===mi(e).position)return null;var n=bi(e);for(ri(n)&&(n=n.host);ii(n)&&["html","body"].indexOf(ei(n))<0;){var i=mi(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function wi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Si(e,t,n){return ai(e,li(t,n))}function Ei(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xi(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ki={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=si(n.placement),l=wi(a),c=[$n,Un].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return Ei("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xi(e,Gn))}(r.padding,n),d=fi(o),p="y"===l?Fn:$n,f="y"===l?Vn:Un,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],v=_i(o),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=h/2-m/2,y=u[p],_=g-d[c]-u[f],w=g/2-d[c]/2+b,S=Si(y,w,_),E=l;n.modifiersData[i]=((t={})[E]=S,t.centerOffset=S-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&hi(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ti(e){return e.split("-")[1]}var Ci={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ai(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,f=void 0===p?0:p,h=s.y,m=void 0===h?0:h,v="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=v.x,m=v.y;var g=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=$n,_=Fn,w=window;if(c){var S=_i(n),E="clientHeight",x="clientWidth";if(S===ti(n)&&"static"!==mi(S=gi(n)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),r===Fn||(r===$n||r===Un)&&o===Yn)_=Vn,m-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[E])-i.height,m*=l?1:-1;if(r===$n||(r===Fn||r===Vn)&&o===Yn)y=Un,f-=(d&&S===w&&w.visualViewport?w.visualViewport.width:S[x])-i.width,f*=l?1:-1}var k,T=Object.assign({position:a},c&&Ci),C=!0===u?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:ci(n*r)/r||0,y:ci(i*r)/r||0}}({x:f,y:m},ti(n)):{x:f,y:m};return f=C.x,m=C.y,l?Object.assign({},T,((k={})[_]=b?"0":"",k[y]=g?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},T,((t={})[_]=b?m+"px":"",t[y]=g?f+"px":"",t.transform="",t))}var Oi={passive:!0};var Mi={left:"right",right:"left",bottom:"top",top:"bottom"};function Di(e){return e.replace(/left|right|bottom|top/g,function(e){return Mi[e]})}var Li={start:"end",end:"start"};function Pi(e){return e.replace(/start|end/g,function(e){return Li[e]})}function Ni(e){var t=ti(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ii(e){return pi(gi(e)).left+Ni(e).scrollLeft}function Ri(e){var t=mi(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function zi(e){return["html","body","#document"].indexOf(ei(e))>=0?e.ownerDocument.body:ii(e)&&Ri(e)?e:zi(bi(e))}function Bi(e,t){var n;void 0===t&&(t=[]);var i=zi(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=ti(i),s=r?[o].concat(o.visualViewport||[],Ri(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(Bi(bi(s)))}function Hi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ji(e,t,n){return t===Kn?Hi(function(e,t){var n=ti(e),i=gi(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=di();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+Ii(e),y:l}}(e,n)):ni(t)?function(e,t){var n=pi(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Hi(function(e){var t,n=gi(e),i=Ni(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=ai(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=ai(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Ii(e),l=-i.scrollTop;return"rtl"===mi(r||n).direction&&(a+=ai(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(gi(e)))}function Fi(e,t,n,i){var r="clippingParents"===t?function(e){var t=Bi(bi(e)),n=["absolute","fixed"].indexOf(mi(e).position)>=0&&ii(e)?_i(e):e;return ni(n)?t.filter(function(e){return ni(e)&&hi(e,n)&&"body"!==ei(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),s=o[0],a=o.reduce(function(t,n){var r=ji(e,n,i);return t.top=ai(r.top,t.top),t.right=li(r.right,t.right),t.bottom=li(r.bottom,t.bottom),t.left=ai(r.left,t.left),t},ji(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Vi(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?si(r):null,s=r?Ti(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case Fn:t={x:a,y:n.y-i.height};break;case Vn:t={x:a,y:n.y+n.height};break;case Un:t={x:n.x+n.width,y:l};break;case $n:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?wi(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Wn:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Yn:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function Ui(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.strategy,s=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?Kn:c,d=n.elementContext,p=void 0===d?Xn:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,v=void 0===m?0:m,g=Ei("number"!=typeof v?v:xi(v,Gn)),b=p===Xn?"reference":Xn,y=e.rects.popper,_=e.elements[h?b:p],w=Fi(ni(_)?_:_.contextElement||gi(e.elements.popper),l,u,s),S=pi(e.elements.reference),E=Vi({reference:S,element:y,placement:r}),x=Hi(Object.assign({},y,E)),k=p===Xn?x:S,T={top:w.top-k.top+g.top,bottom:k.bottom-w.bottom+g.bottom,left:w.left-k.left+g.left,right:k.right-w.right+g.right},C=e.modifiersData.offset;if(p===Xn&&C){var A=C[r];Object.keys(T).forEach(function(e){var t=[Un,Vn].indexOf(e)>=0?1:-1,n=[Fn,Vn].indexOf(e)>=0?"y":"x";T[e]+=A[n]*t})}return T}function $i(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Qn:l,u=Ti(i),d=u?a?Jn:Jn.filter(function(e){return Ti(e)===u}):Gn,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=Ui(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[si(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var qi={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,v=t.options.placement,g=si(v),b=l||(g===v||!h?[Di(v)]:function(e){if(si(e)===qn)return[];var t=Di(e);return[Pi(e),t,Pi(t)]}(v)),y=[v].concat(b).reduce(function(e,n){return e.concat(si(n)===qn?$i(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),_=t.rects.reference,w=t.rects.popper,S=new Map,E=!0,x=y[0],k=0;k<y.length;k++){var T=y[k],C=si(T),A=Ti(T)===Wn,O=[Fn,Vn].indexOf(C)>=0,M=O?"width":"height",D=Ui(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),L=O?A?Un:$n:A?Vn:Fn;_[M]>w[M]&&(L=Di(L));var P=Di(L),N=[];if(o&&N.push(D[C]<=0),a&&N.push(D[L]<=0,D[P]<=0),N.every(function(e){return e})){x=T,E=!1;break}S.set(T,N)}if(E)for(var I=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},R=h?3:1;R>0;R--){if("break"===I(R))break}t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Gi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wi(e){return[Fn,Un,Vn,$n].some(function(t){return e[t]>=0})}var Yi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=Qn.reduce(function(e,n){return e[n]=function(e,t,n){var i=si(e),r=[$n,Fn].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[$n,Un].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e},{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}};var Ki={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,v=Ui(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=si(t.placement),b=Ti(t.placement),y=!b,_=wi(g),w="x"===_?"y":"x",S=t.modifiersData.popperOffsets,E=t.rects.reference,x=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(S){if(o){var O,M="y"===_?Fn:$n,D="y"===_?Vn:Un,L="y"===_?"height":"width",P=S[_],N=P+v[M],I=P-v[D],R=f?-x[L]/2:0,z=b===Wn?E[L]:x[L],B=b===Wn?-x[L]:-E[L],H=t.elements.arrow,j=f&&H?fi(H):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=F[M],U=F[D],$=Si(0,E[L],j[L]),q=y?E[L]/2-R-$-V-T.mainAxis:z-$-V-T.mainAxis,G=y?-E[L]/2+R+$+U+T.mainAxis:B+$+U+T.mainAxis,W=t.elements.arrow&&_i(t.elements.arrow),Y=W?"y"===_?W.clientTop||0:W.clientLeft||0:0,K=null!=(O=null==C?void 0:C[_])?O:0,X=P+G-K,J=Si(f?li(N,P+q-K-Y):N,P,f?ai(I,X):I);S[_]=J,A[_]=J-P}if(a){var Q,Z="x"===_?Fn:$n,ee="x"===_?Vn:Un,te=S[w],ne="y"===w?"height":"width",ie=te+v[Z],re=te-v[ee],oe=-1!==[Fn,$n].indexOf(g),se=null!=(Q=null==C?void 0:C[w])?Q:0,ae=oe?ie:te-E[ne]-x[ne]-se+T.altAxis,le=oe?te+E[ne]+x[ne]-se-T.altAxis:re,ce=f&&oe?function(e,t,n){var i=Si(e,t,n);return i>n?n:i}(ae,te,le):Si(f?ae:ie,te,f?le:re);S[w]=ce,A[w]=ce-te}t.modifiersData[i]=A}},requiresIfExists:["offset"]};function Xi(e,t,n){void 0===n&&(n=!1);var i,r,o=ii(t),s=ii(t)&&function(e){var t=e.getBoundingClientRect(),n=ci(t.width)/e.offsetWidth||1,i=ci(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=gi(t),l=pi(e,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==ei(t)||Ri(a))&&(c=(i=t)!==ti(i)&&ii(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:Ni(i)),ii(t)?((u=pi(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Ii(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Ji(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}var Qi={placement:"bottom",modifiers:[],strategy:"absolute"};function Zi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function er(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?Qi:r;return function(e,t,n){void 0===n&&(n=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qi,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var r="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:ni(e)?Bi(e):e.contextElement?Bi(e.contextElement):[],popper:Bi(t)};var s,c,p=function(e){var t=Ji(e);return Zn.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((s=[].concat(i,a.options.modifiers),c=s.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=p.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:a,name:t,instance:u,options:i}),s=function(){};l.push(o||s)}}),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Zi(t,n)){a.rects={reference:Xi(t,_i(n),"fixed"===a.options.strategy),popper:fi(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,s=r.options,l=void 0===s?{}:s,d=r.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(r())})})),s}),destroy:function(){d(),c=!0}};if(!Zi(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var tr=er({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,l=ti(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,Oi)}),a&&l.addEventListener("resize",n.update,Oi),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Oi)}),a&&l.removeEventListener("resize",n.update,Oi)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Vi({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:si(t.placement),variation:Ti(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ai(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ai(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},oi,Yi,qi,Ki,ki,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ui(t,{elementContext:"reference"}),a=Ui(t,{altBoundary:!0}),l=Gi(s,i),c=Gi(a,r,o),u=Wi(l),d=Wi(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function nr({element:e,visibleClass:t,waitMode:n="transitionend",timeoutDuration:i,hideMode:r="hidden",displayValue:o="block"}){if("timeout"===n&&"number"!=typeof i)return void console.error("\n When calling transitionHiddenElement with waitMode set to timeout,\n you must pass in a number for timeoutDuration.\n ");window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(n="immediate");const s=t=>{t.target===e&&(a(),e.removeEventListener("transitionend",s))},a=()=>{"display"===r?e.style.display="none":e.setAttribute("hidden",!0)};return{show(){e.removeEventListener("transitionend",s),this.timeout&&clearTimeout(this.timeout),"display"===r?e.style.display=o:e.removeAttribute("hidden"),e.offsetHeight,e.classList.add(t)},hide(){"transitionend"===n?e.addEventListener("transitionend",s):"timeout"===n?this.timeout=setTimeout(()=>{a()},i):a(),e.classList.remove(t)},toggle(){this.isHidden()?this.show():this.hide()},isHidden(){const n=null!==e.getAttribute("hidden"),i="none"===e.style.display,r=[...e.classList].includes(t);return n||i||!r},timeout:null}}var ir={rootContainerSelector:"#root-tooltips",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom",strategy:"absolute",modifiers:[{name:"arrow",options:{element:".tooltip__arrow",padding:10}},{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["right","top","auto"]}},{name:"offset",options:{offset:function(e){var t=e.placement;return t.includes("start")?[-10,0]:t.includes("end")?[10,0]:[0,0]}}}]}},rr=function(){return i(function e(n,i){var r;return t(this,e),this.element=n,this.config=Object.assign(Object.assign({},ir),i),this.config.popperOptions=Object.assign(Object.assign({},ir.popperOptions),(null==i?void 0:i.popperOptions)||{}),this.config.popperOptions.modifiers=[].concat(s(ir.popperOptions.modifiers),s((null===(r=null==i?void 0:i.popperOptions)||void 0===r?void 0:r.modifiers)||[])),this.handleVisibility=this.handleVisibility.bind(this),this.onKeydown=this.onKeydown.bind(this),this.element.ODS_Tooltip=this,this.init(),this},[{key:"wrapLastWordAndButton",value:function(){var e,t;if(this.element.hasAttribute("data-tooltip-keep-with-text")){var n=this.trigger.previousSibling;if(n&&n.nodeType===Node.TEXT_NODE){var i=((null===(e=n.textContent)||void 0===e?void 0:e.trim())||"").split(" "),r=i.pop(),o=i.join(" ");n.textContent=o+" ";var s=document.createElement("span");s.className="text-nowrap",s.innerHTML="".concat(r," ").concat(this.trigger.outerHTML),null===(t=this.trigger.parentNode)||void 0===t||t.replaceChild(s,this.trigger),this.trigger=s.querySelector("[data-tooltip-trigger]")}else console.warn("Previous sibling is not a text node.")}}},{key:"init",value:function(){this.trigger=document.querySelector("[data-tooltip-trigger][aria-describedby=".concat(this.element.getAttribute("id"),"]")),this.trigger||console.warn("tooltip trigger element is not defined and the tooltip cannot be attached. Please provide an element with [aria-describedby=".concat(this.element.getAttribute("id"),"]")),this.element.hasAttribute("data-tooltip-keep-with-text")&&this.wrapLastWordAndButton(),this.rootContainer=document.querySelector(this.config.rootContainerSelector),this.rootContainer?this.rootContainer.appendChild(this.element):console.warn("rootContainer element is not defined. Tooltips will be placed inside content which can affect positioning. Please provide rootContainer element (should be placed outside of main content, usually in end of <body /> tag)");var e=this.element.getAttribute("data-tooltip-placement");e&&(this.config.popperOptions.placement=e),this.instance=tr(this.trigger,this.element,this.config.popperOptions),this.transitioner=nr({element:this.element,visibleClass:"is-visible"}),this.trigger.addEventListener("mouseenter",this.handleVisibility),this.trigger.addEventListener("mouseleave",this.handleVisibility),this.trigger.addEventListener("focus",this.handleVisibility),this.trigger.addEventListener("blur",this.handleVisibility)}},{key:"handleVisibility",value:function(e){("mouseenter"!==e.type&&"focus"!==e.type||this.show(),"blur"===e.type&&this.hide(),"mouseleave"===e.type)&&(this.shouldClose(e)&&this.hide())}},{key:"shouldClose",value:function(e){var t=this,n=e.relatedreference||e.toElement||e.relatedTarget,i=function(e){var n=e.relatedreference||e.toElement||e.relatedTarget;t.element.removeEventListener("mouseleave",i),t.trigger.contains(n)||t.hide()};return!this.element.contains(n)||(this.element.addEventListener("mouseleave",i),!1)}},{key:"onKeydown",value:function(e){v.ESC.includes(e.key)&&this.hide()}},{key:"show",value:function(){this.transitioner.show(),this.trigger.classList.add("is-active"),this.instance.forceUpdate(),document.addEventListener("keydown",this.onKeydown)}},{key:"hide",value:function(){this.transitioner.hide(),this.trigger.classList.remove("is-active"),document.removeEventListener("keydown",this.onKeydown)}},{key:"update",value:function(){this.instance.forceUpdate()}},{key:"destroy",value:function(){this.trigger.removeEventListener("mouseenter",this.handleVisibility),this.trigger.removeEventListener("mouseleave",this.handleVisibility),this.trigger.removeEventListener("focus",this.handleVisibility),this.trigger.removeEventListener("blur",this.handleVisibility),this.instance.destroy(),this.element.ODS_Tooltip=null,this.config.removeDialogOnDestroy&&this.element.remove()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Tooltip?e.ODS_Tooltip:null}}])}(),or="carousel",sr="".concat(or,"__viewport"),ar="".concat(or,"__track"),lr="".concat(or,"__slide"),cr="".concat(or,"__slide-next"),ur="".concat(or,"__slide-prev"),dr="".concat(or,"__prev"),pr="".concat(or,"__next"),fr="".concat(or,"__pagination"),hr="".concat(or,"__pagination-item"),mr="".concat(or,"__scrollbar"),vr="".concat(or,"__scrollbar-horizontal"),gr="".concat(or,"__scrollbar-drag"),br="is-active",yr=".".concat(sr),_r=".".concat(ar),wr=".".concat(dr),Sr=".".concat(pr),Er=".".concat(fr),xr=".".concat(mr),kr=".".concat(br),Tr={navigation:{nextEl:Sr,prevEl:wr},pagination:{el:Er,clickable:!0,bulletClass:hr,bulletActiveClass:br,renderBullet:function(e,t){return'<button aria-label="Page '.concat(e+1,'" role="tab" class="').concat(t,'" type="button"></button>')}},scrollbar:{el:xr,draggable:!0,enabled:!0,horizontalClass:vr,dragClass:gr},slidesPerView:1.2,a11y:{enabled:!0,prevSlideMessage:"Predchádzajúci snímok",nextSlideMessage:"Nasledujúci snímok",paginationBulletMessage:"Prejsť na snímok {index}",containerMessage:"Carousel so snímkami",containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"snímok",firstSlideMessage:"Prvý snímok",lastSlideMessage:"Posledný snímok",slideLabelMessage:"Snímok"},loop:!1,cssMode:!1,direction:"horizontal",breakpoints:{1240:{slidesPerView:1.6}},wrapperClass:ar,slideClass:lr,slideActiveClass:br,slideNextClass:cr,slidePrevClass:ur},Cr=function(){return i(function e(n,i){var r,o,s=this;return t(this,e),this.element=n,this.config=Object.assign(Object.assign(Object.assign({},Tr),i),{scrollbar:Object.assign(Object.assign(Object.assign({},null!==(r=Tr.scrollbar)&&void 0!==r?r:{}),null!==(o=null==i?void 0:i.scrollbar)&&void 0!==o?o:{}),{el:this.element.querySelector(xr)})}),this.handleSlideChange=this.handleSlideChange.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.element.ODS_Carousel=this,requestAnimationFrame(function(){s.init()}),this},[{key:"init",value:function(){this.getElements(),this.element.hasAttribute("data-swiper-options")&&this.getCustomOptions(),this.instance=new Pn(this.viewport,Object.assign(Object.assign({},this.config),{modules:[Rn,Bn,Hn,jn,Nn],on:{slideChange:this.handleSlideChange}}))}},{key:"getElements",value:function(){var e,t;this.viewport=this.element.querySelector(yr),this.track=this.viewport.querySelector(_r);var n=this.element.querySelector(Er);n&&!n.hasAttribute("role")&&n.setAttribute("role","tablist");var i={navigation:Object.assign(Object.assign({},null!==(e=this.config.navigation)&&void 0!==e?e:{}),{nextEl:this.element.querySelector(Sr),prevEl:this.element.querySelector(wr)}),pagination:Object.assign(Object.assign({},null!==(t=this.config.pagination)&&void 0!==t?t:{}),{el:n,clickable:!0,bulletClass:"carousel__pagination-item",bulletActiveClass:br})};this.config=Object.assign(Object.assign({},this.config),i)}},{key:"getCustomOptions",value:function(){var e=this.element.getAttribute("data-swiper-options");if(e){var t=JSON.parse(e);this.config=Object.assign(Object.assign({},this.config),t)}}},{key:"handleSlideChange",value:function(){var e=this.track.querySelector(kr),t=this.track.querySelectorAll(".".concat(lr,":not(").concat(kr,")"));e&&this.updateTooltipPosition(e),t.length>0&&this.hideAllTooltips(t)}},{key:"updateTooltipPosition",value:function(e){var t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(function(e){var t=e.getAttribute("aria-describedby");if(t){var n=document.getElementById(t);if(n){var i=rr.getInstance(n);i&&i.update()}}})}},{key:"hideAllTooltips",value:function(e){e.forEach(function(e){var t=e.querySelectorAll('[data-tooltip-trigger="true"]');t.length>0&&t.forEach(function(e){var t=e.getAttribute("aria-describedby");if(t){var n=document.getElementById(t);if(n){var i=rr.getInstance(n);i&&(i.hide(),e.blur())}}})})}},{key:"destroy",value:function(){this.instance&&this.instance.destroy()}},{key:"update",value:function(){this.instance&&this.instance.update()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Carousel?e.ODS_Carousel:null}}])}(),Ar={dataInteractive:"data-dropdown-interactive",focusTrap:"data-dropdown-focus-trap",removeDialogOnDestroy:!1,popperOptions:{placement:"bottom-start",strategy:"absolute",modifiers:[{name:"eventListeners",options:{scroll:!1,resize:!1}},{name:"flip",options:{fallbackPlacements:["bottom-end","bottom-start","bottom"]}},{name:"offset",options:{offset:[0,-1]}}]}},Or=function(){return i(function e(n){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,e),n.ODS_Dropdown?n.ODS_Dropdown:(this.element=n,this.config=Object.assign(Object.assign({},Ar),r),this.config.popperOptions=Object.assign(Object.assign({},Ar.popperOptions),(null==r?void 0:r.popperOptions)||{}),this.config.popperOptions.modifiers=[].concat(s(Ar.popperOptions.modifiers||[]),s((null===(i=null==r?void 0:r.popperOptions)||void 0===i?void 0:i.modifiers)||[])),this.handleVisibility=this.handleVisibility.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this),this.handleClick=this.handleClick.bind(this),this.element.ODS_Dropdown=this,this.focusableElements=this.element.querySelectorAll('a[href]:not([disabled]), button:not([disabled]),\n textarea:not([disabled]), input[type="text"]:not([disabled]),\n input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]),\n select:not([disabled])'),this.init(),this)},[{key:"init",value:function(){this.trigger=document.getElementById(this.element.id.replace("dropdown","btn"));var e=this.element.getAttribute("data-dropdown-placement");e&&(this.config.popperOptions.placement=e),this.instance=tr(this.trigger,this.element,this.config.popperOptions),this.transitioner=nr({element:this.element,visibleClass:"dropdown--visible"}),this.trigger.addEventListener("click",this.handleVisibility,!0)}},{key:"handleVisibility",value:function(){this.element.classList.contains("dropdown--visible")?this.hide():this.show()}},{key:"handleClick",value:function(e){this.trigger===e.target||this.trigger.contains(e.target)||this.element.hasAttribute(this.config.dataInteractive)&&!e.target.id.includes(this.element.id.replace("dropdown","btn"))&&this.element.contains(e.target)||this.handleVisibility()}},{key:"handleKeyPress",value:function(e){if(v.ESC.includes(e.key)&&(this.handleVisibility(),this.element.contains(document.activeElement)&&this.trigger.focus(),this.hide()),this.element.hasAttribute(this.config.focusTrap)){var t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];document.activeElement!==this.button||"Tab"!==e.key&&9!==e.keyCode?"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===t&&(n.focus(),e.preventDefault()):document.activeElement===n&&(t.focus(),e.preventDefault())):e.shiftKey&&(this.focusableElements[this.focusableElements.length-1].focus(),e.preventDefault())}}},{key:"show",value:function(){var e=this;this.transitioner.show(),this.instance.forceUpdate(),document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("click",this.handleClick),window.onresize=function(){return e.update()}}},{key:"hide",value:function(){this.transitioner.hide(),document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("click",this.handleClick),window.onresize=null}},{key:"update",value:function(){this.instance.forceUpdate()}},{key:"destroy",value:function(){this.trigger.removeEventListener("click",this.handleVisibility),this.instance.destroy(),this.element.ODS_Dropdown=null,window.onresize=null,this.config.removeDialogOnDestroy&&this.element.remove()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Dropdown?e.ODS_Dropdown:null}}])}(),Mr={itemSelector:"[data-feature-accordion-item]",bodiesSelector:".accordion__body",buttonSelector:"[data-accordion-toggle]",imageSelector:"[data-feature-accordion-image]"},Dr=function(){return i(function e(n,i){var r=this;return t(this,e),this.items=[],this.bodies=[],this.buttons=[],this.images=[],this.activeId=null,this.onClick=function(e){var t=e.currentTarget.closest(r.config.itemSelector),n=(null==t?void 0:t.getAttribute("id"))||null;r.setActive(n)},this.element=n,this.config=Object.assign(Object.assign({},Mr),i),this.element.ODS_FeatureAccordion=this,this.init(),this},[{key:"init",value:function(){var e=this;this.items=Array.from(this.element.querySelectorAll(this.config.itemSelector)),this.bodies=Array.from(this.element.querySelectorAll(this.config.bodiesSelector)),this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.images=Array.from(this.element.querySelectorAll(this.config.imageSelector));var t=this.items[0]||null,n=(null==t?void 0:t.getAttribute("id"))||null;this.setActive(n),this.buttons.forEach(function(t){t.addEventListener("click",e.onClick)})}},{key:"setActive",value:function(e){if(e){this.activeId=e;var t=this.buttons.find(function(t){return t.getAttribute("id")===e}),n=null==t?void 0:t.getAttribute("aria-controls");this.bodies.forEach(function(e){e.id===n?e.removeAttribute("hidden"):e.setAttribute("hidden","")}),this.buttons.forEach(function(t){var n=t.getAttribute("id")===e,i=t.closest(".feature-accordion__item");null==i||i.classList.toggle("is-active",n),_({element:t,attribute:"aria-expanded",value:n?"true":"false"})}),this.images.forEach(function(t){var n=t.getAttribute("data-feature-accordion-image-for");t.classList.toggle("hide",n!==e)})}}},{key:"destroy",value:function(){var e=this;this.buttons.forEach(function(t){t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_FeatureAccordion?e.ODS_FeatureAccordion:null}}])}();
2
+ /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
3
+ const{entries:Lr,setPrototypeOf:Pr,isFrozen:Nr,getPrototypeOf:Ir,getOwnPropertyDescriptor:Rr}=Object;let{freeze:zr,seal:Br,create:Hr}=Object,{apply:jr,construct:Fr}="undefined"!=typeof Reflect&&Reflect;zr||(zr=function(e){return e}),Br||(Br=function(e){return e}),jr||(jr=function(e,t,n){return e.apply(t,n)}),Fr||(Fr=function(e,t){return new e(...t)});const Vr=io(Array.prototype.forEach),Ur=io(Array.prototype.lastIndexOf),$r=io(Array.prototype.pop),qr=io(Array.prototype.push),Gr=io(Array.prototype.splice),Wr=io(String.prototype.toLowerCase),Yr=io(String.prototype.toString),Kr=io(String.prototype.match),Xr=io(String.prototype.replace),Jr=io(String.prototype.indexOf),Qr=io(String.prototype.trim),Zr=io(Object.prototype.hasOwnProperty),eo=io(RegExp.prototype.test),to=(no=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fr(no,t)});var no;function io(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return jr(e,t,i)}}function ro(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wr;Pr&&Pr(e,null);let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(Nr(t)||(t[i]=e),r=e)}e[r]=!0}return e}function oo(e){for(let t=0;t<e.length;t++){Zr(e,t)||(e[t]=null)}return e}function so(e){const t=Hr(null);for(const[n,i]of Lr(e)){Zr(e,n)&&(Array.isArray(i)?t[n]=oo(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=so(i):t[n]=i)}return t}function ao(e,t){for(;null!==e;){const n=Rr(e,t);if(n){if(n.get)return io(n.get);if("function"==typeof n.value)return io(n.value)}e=Ir(e)}return function(){return null}}const lo=zr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),co=zr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),uo=zr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),po=zr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fo=zr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ho=zr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mo=zr(["#text"]),vo=zr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),go=zr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),bo=zr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yo=zr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_o=Br(/\{\{[\w\W]*|[\w\W]*\}\}/gm),wo=Br(/<%[\w\W]*|[\w\W]*%>/gm),So=Br(/\$\{[\w\W]*/gm),Eo=Br(/^data-[\-\w.\u00B7-\uFFFF]+$/),xo=Br(/^aria-[\-\w]+$/),ko=Br(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),To=Br(/^(?:\w+script|data):/i),Co=Br(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ao=Br(/^html$/i),Oo=Br(/^[a-z][.\w]*(-[.\w]+)+$/i);var Mo=Object.freeze({__proto__:null,ARIA_ATTR:xo,ATTR_WHITESPACE:Co,CUSTOM_ELEMENT:Oo,DATA_ATTR:Eo,DOCTYPE_NAME:Ao,ERB_EXPR:wo,IS_ALLOWED_URI:ko,IS_SCRIPT_OR_DATA:To,MUSTACHE_EXPR:_o,TMPLIT_EXPR:So});const Do=1,Lo=3,Po=7,No=8,Io=9,Ro=function(){return"undefined"==typeof window?null:window};var zo=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ro();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==Io||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,m=c.prototype,v=ao(m,"cloneNode"),g=ao(m,"remove"),b=ao(m,"nextSibling"),y=ao(m,"childNodes"),_=ao(m,"parentNode");if("function"==typeof a){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let w,S="";const{implementation:E,createNodeIterator:x,createDocumentFragment:k,getElementsByTagName:T}=i,{importNode:C}=r;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Lr&&"function"==typeof _&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:M,TMPLIT_EXPR:D,DATA_ATTR:L,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:I,CUSTOM_ELEMENT:R}=Mo;let{IS_ALLOWED_URI:z}=Mo,B=null;const H=ro({},[...lo,...co,...uo,...fo,...mo]);let j=null;const F=ro({},[...vo,...go,...bo,...yo]);let V=Object.seal(Hr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,$=null,q=!0,G=!0,W=!1,Y=!0,K=!1,X=!0,J=!1,Q=!1,Z=!1,ee=!1,te=!1,ne=!1,ie=!0,re=!1,oe=!0,se=!1,ae={},le=null;const ce=ro({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=ro({},["audio","video","img","source","image","track"]);let pe=null;const fe=ro({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ve="http://www.w3.org/1999/xhtml";let ge=ve,be=!1,ye=null;const _e=ro({},[he,me,ve],Yr);let we=ro({},["mi","mo","mn","ms","mtext"]),Se=ro({},["annotation-xml"]);const Ee=ro({},["title","style","font","a","script"]);let xe=null;const ke=["application/xhtml+xml","text/html"];let Te=null,Ce=null;const Ae=i.createElement("form"),Oe=function(e){return e instanceof RegExp||e instanceof Function},Me=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce||Ce!==e){if(e&&"object"==typeof e||(e={}),e=so(e),xe=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Te="application/xhtml+xml"===xe?Yr:Wr,B=Zr(e,"ALLOWED_TAGS")?ro({},e.ALLOWED_TAGS,Te):H,j=Zr(e,"ALLOWED_ATTR")?ro({},e.ALLOWED_ATTR,Te):F,ye=Zr(e,"ALLOWED_NAMESPACES")?ro({},e.ALLOWED_NAMESPACES,Yr):_e,pe=Zr(e,"ADD_URI_SAFE_ATTR")?ro(so(fe),e.ADD_URI_SAFE_ATTR,Te):fe,ue=Zr(e,"ADD_DATA_URI_TAGS")?ro(so(de),e.ADD_DATA_URI_TAGS,Te):de,le=Zr(e,"FORBID_CONTENTS")?ro({},e.FORBID_CONTENTS,Te):ce,U=Zr(e,"FORBID_TAGS")?ro({},e.FORBID_TAGS,Te):so({}),$=Zr(e,"FORBID_ATTR")?ro({},e.FORBID_ATTR,Te):so({}),ae=!!Zr(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,z=e.ALLOWED_URI_REGEXP||ko,ge=e.NAMESPACE||ve,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,Se=e.HTML_INTEGRATION_POINTS||Se,V=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(G=!1),te&&(ee=!0),ae&&(B=ro({},mo),j=[],!0===ae.html&&(ro(B,lo),ro(j,vo)),!0===ae.svg&&(ro(B,co),ro(j,go),ro(j,yo)),!0===ae.svgFilters&&(ro(B,uo),ro(j,go),ro(j,yo)),!0===ae.mathMl&&(ro(B,fo),ro(j,bo),ro(j,yo))),e.ADD_TAGS&&(B===H&&(B=so(B)),ro(B,e.ADD_TAGS,Te)),e.ADD_ATTR&&(j===F&&(j=so(j)),ro(j,e.ADD_ATTR,Te)),e.ADD_URI_SAFE_ATTR&&ro(pe,e.ADD_URI_SAFE_ATTR,Te),e.FORBID_CONTENTS&&(le===ce&&(le=so(le)),ro(le,e.FORBID_CONTENTS,Te)),oe&&(B["#text"]=!0),J&&ro(B,["html","head","body"]),B.table&&(ro(B,["tbody"]),delete U.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw to('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw to('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,S=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(h,o)),null!==w&&"string"==typeof S&&(S=w.createHTML(""));zr&&zr(e),Ce=e}},De=ro({},[...co,...uo,...po]),Le=ro({},[...fo,...ho]),Pe=function(e){qr(n.removed,{element:e});try{_(e).removeChild(e)}catch(t){g(e)}},Ne=function(e,t){try{qr(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){qr(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Pe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ie=function(e){let t=null,n=null;if(Z)e="<remove></remove>"+e;else{const t=Kr(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===xe&&ge===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=w?w.createHTML(e):e;if(ge===ve)try{t=(new f).parseFromString(r,xe)}catch(e){}if(!t||!t.documentElement){t=E.createDocument(ge,"template",null);try{t.documentElement.innerHTML=be?S:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),ge===ve?T.call(t,J?"html":"body")[0]:J?t.documentElement:o},Re=function(e){return x.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},ze=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l};function He(e,t,i){Vr(e,e=>{e.call(n,t,i,Ce)})}const je=function(e){let t=null;if(He(A.beforeSanitizeElements,e,null),ze(e))return Pe(e),!0;const i=Te(e.nodeName);if(He(A.uponSanitizeElement,e,{tagName:i,allowedTags:B}),X&&e.hasChildNodes()&&!Be(e.firstElementChild)&&eo(/<[/\w!]/g,e.innerHTML)&&eo(/<[/\w!]/g,e.textContent))return Pe(e),!0;if(e.nodeType===Po)return Pe(e),!0;if(X&&e.nodeType===No&&eo(/<[/\w]/g,e.data))return Pe(e),!0;if(!B[i]||U[i]){if(!U[i]&&Ve(i)){if(V.tagNameCheck instanceof RegExp&&eo(V.tagNameCheck,i))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(i))return!1}if(oe&&!le[i]){const t=_(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let i=n.length-1;i>=0;--i){const r=v(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,b(e))}}}return Pe(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:ge,tagName:"template"});const n=Wr(e.tagName),i=Wr(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ve?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===i||we[i]):Boolean(De[n]):e.namespaceURI===he?t.namespaceURI===ve?"math"===n:t.namespaceURI===me?"math"===n&&Se[i]:Boolean(Le[n]):e.namespaceURI===ve?!(t.namespaceURI===me&&!Se[i])&&!(t.namespaceURI===he&&!we[i])&&!Le[n]&&(Ee[n]||!De[n]):!("application/xhtml+xml"!==xe||!ye[e.namespaceURI]))}(e)?(Pe(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!eo(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&e.nodeType===Lo&&(t=e.textContent,Vr([O,M,D],e=>{t=Xr(t,e," ")}),e.textContent!==t&&(qr(n.removed,{element:e.cloneNode()}),e.textContent=t)),He(A.afterSanitizeElements,e,null),!1):(Pe(e),!0)},Fe=function(e,t,n){if(ie&&("id"===t||"name"===t)&&(n in i||n in Ae))return!1;if(G&&!$[t]&&eo(L,t));else if(q&&eo(P,t));else if(!j[t]||$[t]){if(!(Ve(e)&&(V.tagNameCheck instanceof RegExp&&eo(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&eo(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&eo(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(pe[t]);else if(eo(z,Xr(n,I,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Jr(n,"data:")||!ue[e]){if(W&&!eo(N,Xr(n,I,"")));else if(n)return!1}else;return!0},Ve=function(e){return"annotation-xml"!==e&&Kr(e,R)},Ue=function(e){He(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||ze(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:s,namespaceURI:a,value:l}=o,c=Te(s),u=l;let d="value"===s?u:Qr(u);if(i.attrName=c,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,He(A.uponSanitizeAttribute,e,i),d=i.attrValue,!re||"id"!==c&&"name"!==c||(Ne(s,e),d="user-content-"+d),X&&eo(/((--!?|])>)|<\/(style|title)/i,d)){Ne(s,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Ne(s,e);continue}if(!Y&&eo(/\/>/i,d)){Ne(s,e);continue}K&&Vr([O,M,D],e=>{d=Xr(d,e," ")});const p=Te(e.nodeName);if(Fe(p,c,d)){if(w&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(a);else switch(h.getAttributeType(p,c)){case"TrustedHTML":d=w.createHTML(d);break;case"TrustedScriptURL":d=w.createScriptURL(d)}if(d!==u)try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),ze(e)?Pe(e):$r(n.removed)}catch(t){Ne(s,e)}}else Ne(s,e)}He(A.afterSanitizeAttributes,e,null)},$e=function e(t){let n=null;const i=Re(t);for(He(A.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)He(A.uponSanitizeShadowNode,n,null),je(n),Ue(n),n.content instanceof s&&e(n.content);He(A.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,a=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw to("toString is not a function");if("string"!=typeof(e=e.toString()))throw to("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||Me(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Te(e.nodeName);if(!B[t]||U[t])throw to("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)i=Ie("\x3c!----\x3e"),o=i.ownerDocument.importNode(e,!0),o.nodeType===Do&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!ee&&!K&&!J&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(i=Ie(e),!i)return ee?null:ne?S:""}i&&Z&&Pe(i.firstChild);const u=Re(se?e:i);for(;a=u.nextNode();)je(a),Ue(a),a.content instanceof s&&$e(a.content);if(se)return e;if(ee){if(te)for(c=k.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(j.shadowroot||j.shadowrootmode)&&(c=C.call(r,c,!0)),c}let d=J?i.outerHTML:i.innerHTML;return J&&B["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&eo(Ao,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),K&&Vr([O,M,D],e=>{d=Xr(d,e," ")}),w&&ne?w.createHTML(d):d},n.setConfig=function(){Me(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Ce=null,Q=!1},n.isValidAttribute=function(e,t,n){Ce||Me({});const i=Te(e),r=Te(t);return Fe(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&qr(A[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Ur(A[e],t);return-1===n?void 0:Gr(A[e],n,1)[0]}return $r(A[e])},n.removeHooks=function(e){A[e]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Bo={dragDropClassname:"is-dragdrop",inputSelector:'input[type="file"]',resultsSelector:".file-input__files",deleteButtonSelector:"[data-file-delete]",deleteFileAttr:"data-file-delete",fileTemplate:function(e,t){return"\n <li>".concat(e,'&nbsp;<button type="button" data-file-delete="').concat(t,'" class="file-input__delete">\n <svg class="icon icon--small icon--trash icon--danger" aria-hidden="true">\n <use xlink:href="/sprite.svg#trash"></use>\n </svg>\n <span class="sr-only">Odstrániť súbor ').concat(e,"</span>\n </button>\n </li>\n ")}},Ho=function(){return i(function e(n,i){return t(this,e),this.element=n,this.config=Object.assign(Object.assign({},Bo),i),this.input=null,this.files=[],this.results=null,this.removeButtons=[],this.onInputChange=this.onInputChange.bind(this),this.onRemoveButtonClick=this.onRemoveButtonClick.bind(this),this.highlight=this.highlight.bind(this),this.unhighlight=this.unhighlight.bind(this),this.onDrop=this.onDrop.bind(this),this.preventDefaults=this.preventDefaults.bind(this),this.init(),this},[{key:"init",value:function(){var e=this;this.input=this.element.querySelector(this.config.inputSelector),this.results=this.element.querySelector(this.config.resultsSelector),this.input&&this.results&&(this.input.addEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.element.addEventListener(t,e.preventDefaults,!1),document.body.addEventListener(t,e.preventDefaults,!1)}),["dragenter","dragover"].forEach(function(t){e.element.addEventListener(t,e.highlight,!1)}),["dragleave","drop"].forEach(function(t){e.element.addEventListener(t,e.unhighlight,!1)}),this.element.addEventListener("drop",this.onDrop))}},{key:"onInputChange",value:function(){var e,t=this;return!(!this.input||!this.results)&&(this.files=Array.from(null!==(e=this.input.files)&&void 0!==e?e:[]),!!this.files&&(this.results.innerHTML="",this.files.map(function(e,n){return t.config.fileTemplate(zo.sanitize(e.name,{ALLOWED_TAGS:[]}),n)}).forEach(function(e){t.results.appendChild(zo.sanitize(e,{ADD_TAGS:["use"],RETURN_DOM_FRAGMENT:!0}))}),this.removeButtons=Array.from(this.results.querySelectorAll(this.config.deleteButtonSelector)),void this.removeButtons.forEach(function(e){return e.addEventListener("click",t.onRemoveButtonClick)})))}},{key:"onDrop",value:function(e){var t;this.input&&(this.input.files=(null===(t=null==e?void 0:e.dataTransfer)||void 0===t?void 0:t.files)||(new DataTransfer).files,this.onInputChange())}},{key:"onRemoveButtonClick",value:function(e){if(this.input){var t=new DataTransfer,n=e.currentTarget,i=Number(n.getAttribute(this.config.deleteFileAttr));this.files.splice(i,1),this.files.forEach(function(e){return t.items.add(e)}),this.input.files=t.files,this.onInputChange()}}},{key:"highlight",value:function(){this.element.classList.add(this.config.dragDropClassname)}},{key:"unhighlight",value:function(){this.element.classList.remove(this.config.dragDropClassname)}},{key:"preventDefaults",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"destroy",value:function(){var e=this;this.input&&(this.input.removeEventListener("change",this.onInputChange),["dragenter","dragover","dragleave","drop"].forEach(function(t){e.element.removeEventListener(t,e.preventDefaults,!1),document.body.removeEventListener(t,e.preventDefaults,!1)}),["dragenter","dragover"].forEach(function(t){e.element.removeEventListener(t,e.highlight,!1)}),["dragleave","drop"].forEach(function(t){e.element.removeEventListener(t,e.unhighlight,!1)}),this.element.removeEventListener("drop",this.onDrop))}},{key:"update",value:function(){this.destroy(),this.init()}}])}(),jo={cycleDuration:4e3,delay:5e3},Fo=function(){return i(function e(n,i){t(this,e),this.element=n,this.config=Object.assign(Object.assign({},jo),i),this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()},[{key:"initBody",value:function(){var e,t=this.element.getAttribute("data-loader-messages");this.messages=t?JSON.parse(t):[],this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,null!==(e=this.config.cycleDuration)&&void 0!==e?e:jo.cycleDuration))}},{key:"init",value:function(){var e,t=this;this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(function(){t.element.parentNode&&t.element.parentNode instanceof HTMLElement&&t.element.parentNode.classList.remove("hide"),t.initBody()},null!==(e=this.config.delay)&&void 0!==e?e:jo.delay):this.initBody()}},{key:"destroy",value:function(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearTimeout(this.delay)}},{key:"cycleMessages",value:function(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Loader?e.ODS_Loader:null}}])}();const Vo=":not([inert]):not([inert] *)",Uo=':not([tabindex^="-"])',$o=":not(:disabled)";var qo=[`a[href]${Vo}${Uo}`,`area[href]${Vo}${Uo}`,`input:not([type="hidden"]):not([type="radio"])${Vo}${Uo}${$o}`,`input[type="radio"]${Vo}${Uo}${$o}`,`select${Vo}${Uo}${$o}`,`textarea${Vo}${Uo}${$o}`,`button${Vo}${Uo}${$o}`,`details${Vo} > summary:first-of-type${Uo}`,`iframe${Vo}${Uo}`,`audio[controls]${Vo}${Uo}`,`video[controls]${Vo}${Uo}`,`[contenteditable]${Vo}${Uo}`,`[tabindex]${Vo}${Uo}`];function Go(e){(e.querySelector("[autofocus]")||e).focus()}function Wo(e,t){if(t&&Xo(e))return e;if(function(e){return(!e.shadowRoot||"-1"!==e.getAttribute("tabindex"))&&!e.matches(":disabled,[hidden],[inert]")}(e))if(e.shadowRoot){let n=Yo(e.shadowRoot,t);for(;n;){const e=Wo(n,t);if(e)return e;n=Ko(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=Wo(e,t);if(n)return n}}else{let n=Yo(e,t);for(;n;){const e=Wo(n,t);if(e)return e;n=Ko(n,t)}}return!t&&Xo(e)?e:null}function Yo(e,t){return t?e.firstElementChild:e.lastElementChild}function Ko(e,t){return t?e.nextElementSibling:e.previousElementSibling}const Xo=e=>!e.shadowRoot?.delegatesFocus&&(e.matches(qo.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e));function Jo(e=document){const t=e.activeElement;return t?t.shadowRoot?Jo(t.shadowRoot)||document.activeElement:t:null}function Qo(e,t){const[n,i]=function(e){const t=Wo(e,!0);return[t,t?Wo(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const r=Jo();t.shiftKey&&r===n?(i.focus(),t.preventDefault()):t.shiftKey||r!==i||(n.focus(),t.preventDefault())}function Zo(e,t){return function t(n){if(!n||n===document||n===window)return null;const i=es(n);return i&&(n=i),n.closest(e)||t(n.getRootNode().host)}(t)}function es(e){return e.assignedSlot||(e.parentNode?es(e.parentNode):null)}const ts="data-a11y-dialog";class ns{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(ts)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){if(this.shown)return this;return this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=Jo(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():Go(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){if(!this.shown)return this;return this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){const t=e.composedPath()[0],n=Zo(`[${ts}-show="${this.id}"]`,t),i=Zo(`[${ts}-hide="${this.id}"]`,t),r=Zo(`[${ts}-hide]`,t)&&Zo('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||r)&&this.hide(e)}bindKeypress(e){if(Zo('[aria-modal="true"]',Jo())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&Qo(this.$el,e)}maintainFocus(){const e=Jo();Zo(`[aria-modal="true"], [${ts}-ignore-focus-trap]`,e)||Go(this.$el)}}function is(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new ns(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",is):is());
1042
4
  /*!
1043
5
  * tabbable 6.2.0
1044
6
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1045
- */
1046
- // NOTE: separate `:not()` selectors has broader browser support than the newer
1047
- // `:not([inert], [inert] *)` (Feb 2023)
1048
- // CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes
1049
- // the entire query to fail, resulting in no nodes found, which will break a lot
1050
- // of things... so we have to rely on JS to identify nodes inside an inert container
1051
- var candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable="false"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];
1052
- var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
1053
- var NoElement = typeof Element === 'undefined';
1054
- var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
1055
- var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
1056
- var _element$getRootNode;
1057
- return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
1058
- } : function (element) {
1059
- return element === null || element === void 0 ? void 0 : element.ownerDocument;
1060
- };
1061
-
1062
- /**
1063
- * Determines if a node is inert or in an inert ancestor.
1064
- * @param {Element} [node]
1065
- * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
1066
- * see if any of them are inert. If false, only `node` itself is considered.
1067
- * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
1068
- * False if `node` is falsy.
1069
- */
1070
- var isInert = function isInert(node, lookUp) {
1071
- var _node$getAttribute;
1072
- if (lookUp === void 0) {
1073
- lookUp = true;
1074
- }
1075
- // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
1076
- // JS API property; we have to check the attribute, which can either be empty or 'true';
1077
- // if it's `null` (not specified) or 'false', it's an active element
1078
- var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
1079
- var inert = inertAtt === '' || inertAtt === 'true';
1080
-
1081
- // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
1082
- // if it weren't for `matches()` not being a function on shadow roots; the following
1083
- // code works for any kind of node
1084
- // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`
1085
- // so it likely would not support `:is([inert] *)` either...
1086
- var result = inert || lookUp && node && isInert(node.parentNode); // recursive
1087
-
1088
- return result;
1089
- };
1090
-
1091
- /**
1092
- * Determines if a node's content is editable.
1093
- * @param {Element} [node]
1094
- * @returns True if it's content-editable; false if it's not or `node` is falsy.
1095
- */
1096
- var isContentEditable = function isContentEditable(node) {
1097
- var _node$getAttribute2;
1098
- // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
1099
- // to use the attribute directly to check for this, which can either be empty or 'true';
1100
- // if it's `null` (not specified) or 'false', it's a non-editable element
1101
- var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');
1102
- return attValue === '' || attValue === 'true';
1103
- };
1104
-
1105
- /**
1106
- * @private
1107
- * Determines if the node has an explicitly specified `tabindex` attribute.
1108
- * @param {HTMLElement} node
1109
- * @returns {boolean} True if so; false if not.
1110
- */
1111
- var hasTabIndex = function hasTabIndex(node) {
1112
- return !isNaN(parseInt(node.getAttribute('tabindex'), 10));
1113
- };
1114
-
1115
- /**
1116
- * Determine the tab index of a given node.
1117
- * @param {HTMLElement} node
1118
- * @returns {number} Tab order (negative, 0, or positive number).
1119
- * @throws {Error} If `node` is falsy.
1120
- */
1121
- var getTabIndex = function getTabIndex(node) {
1122
- if (!node) {
1123
- throw new Error('No node provided');
1124
- }
1125
- if (node.tabIndex < 0) {
1126
- // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
1127
- // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
1128
- // yet they are still part of the regular tab order; in FF, they get a default
1129
- // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
1130
- // order, consider their tab index to be 0.
1131
- // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
1132
- // so if they don't have a tabindex attribute specifically set, assume it's 0.
1133
- if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
1134
- return 0;
1135
- }
1136
- }
1137
- return node.tabIndex;
1138
- };
1139
- var isInput = function isInput(node) {
1140
- return node.tagName === 'INPUT';
1141
- };
1142
- var isHiddenInput = function isHiddenInput(node) {
1143
- return isInput(node) && node.type === 'hidden';
1144
- };
1145
- var isDetailsWithSummary = function isDetailsWithSummary(node) {
1146
- var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
1147
- return child.tagName === 'SUMMARY';
1148
- });
1149
- return r;
1150
- };
1151
- var getCheckedRadio = function getCheckedRadio(nodes, form) {
1152
- for (var i = 0; i < nodes.length; i++) {
1153
- if (nodes[i].checked && nodes[i].form === form) {
1154
- return nodes[i];
1155
- }
1156
- }
1157
- };
1158
- var isTabbableRadio = function isTabbableRadio(node) {
1159
- if (!node.name) {
1160
- return true;
1161
- }
1162
- var radioScope = node.form || getRootNode(node);
1163
- var queryRadios = function queryRadios(name) {
1164
- return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
1165
- };
1166
- var radioSet;
1167
- if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
1168
- radioSet = queryRadios(window.CSS.escape(node.name));
1169
- } else {
1170
- try {
1171
- radioSet = queryRadios(node.name);
1172
- } catch (err) {
1173
- // eslint-disable-next-line no-console
1174
- console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
1175
- return false;
1176
- }
1177
- }
1178
- var checked = getCheckedRadio(radioSet, node.form);
1179
- return !checked || checked === node;
1180
- };
1181
- var isRadio = function isRadio(node) {
1182
- return isInput(node) && node.type === 'radio';
1183
- };
1184
- var isNonTabbableRadio = function isNonTabbableRadio(node) {
1185
- return isRadio(node) && !isTabbableRadio(node);
1186
- };
1187
-
1188
- // determines if a node is ultimately attached to the window's document
1189
- var isNodeAttached = function isNodeAttached(node) {
1190
- var _nodeRoot;
1191
- // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
1192
- // (but NOT _the_ document; see second 'If' comment below for more).
1193
- // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
1194
- // is attached, and the one we need to check if it's in the document or not (because the
1195
- // shadow, and all nodes it contains, is never considered in the document since shadows
1196
- // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
1197
- // is hidden, or is not in the document itself but is detached, it will affect the shadow's
1198
- // visibility, including all the nodes it contains). The host could be any normal node,
1199
- // or a custom element (i.e. web component). Either way, that's the one that is considered
1200
- // part of the document, not the shadow root, nor any of its children (i.e. the node being
1201
- // tested).
1202
- // To further complicate things, we have to look all the way up until we find a shadow HOST
1203
- // that is attached (or find none) because the node might be in nested shadows...
1204
- // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
1205
- // document (per the docs) and while it's a Document-type object, that document does not
1206
- // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
1207
- // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
1208
- // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
1209
- // node is actually detached.
1210
- // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
1211
- // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
1212
- // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
1213
- // `ownerDocument` will be `null`, hence the optional chaining on it.
1214
- var nodeRoot = node && getRootNode(node);
1215
- var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
1216
-
1217
- // in some cases, a detached node will return itself as the root instead of a document or
1218
- // shadow root object, in which case, we shouldn't try to look further up the host chain
1219
- var attached = false;
1220
- if (nodeRoot && nodeRoot !== node) {
1221
- var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
1222
- attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
1223
- while (!attached && nodeRootHost) {
1224
- var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
1225
- // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
1226
- // which means we need to get the host's host and check if that parent host is contained
1227
- // in (i.e. attached to) the document
1228
- nodeRoot = getRootNode(nodeRootHost);
1229
- nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
1230
- attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
1231
- }
1232
- }
1233
- return attached;
1234
- };
1235
- var isZeroArea = function isZeroArea(node) {
1236
- var _node$getBoundingClie = node.getBoundingClientRect(),
1237
- width = _node$getBoundingClie.width,
1238
- height = _node$getBoundingClie.height;
1239
- return width === 0 && height === 0;
1240
- };
1241
- var isHidden = function isHidden(node, _ref) {
1242
- var displayCheck = _ref.displayCheck,
1243
- getShadowRoot = _ref.getShadowRoot;
1244
- // NOTE: visibility will be `undefined` if node is detached from the document
1245
- // (see notes about this further down), which means we will consider it visible
1246
- // (this is legacy behavior from a very long way back)
1247
- // NOTE: we check this regardless of `displayCheck="none"` because this is a
1248
- // _visibility_ check, not a _display_ check
1249
- if (getComputedStyle(node).visibility === 'hidden') {
1250
- return true;
1251
- }
1252
- var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
1253
- var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
1254
- if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
1255
- return true;
1256
- }
1257
- if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
1258
- if (typeof getShadowRoot === 'function') {
1259
- // figure out if we should consider the node to be in an undisclosed shadow and use the
1260
- // 'non-zero-area' fallback
1261
- var originalNode = node;
1262
- while (node) {
1263
- var parentElement = node.parentElement;
1264
- var rootNode = getRootNode(node);
1265
- if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
1266
- ) {
1267
- // node has an undisclosed shadow which means we can only treat it as a black box, so we
1268
- // fall back to a non-zero-area test
1269
- return isZeroArea(node);
1270
- } else if (node.assignedSlot) {
1271
- // iterate up slot
1272
- node = node.assignedSlot;
1273
- } else if (!parentElement && rootNode !== node.ownerDocument) {
1274
- // cross shadow boundary
1275
- node = rootNode.host;
1276
- } else {
1277
- // iterate up normal dom
1278
- node = parentElement;
1279
- }
1280
- }
1281
- node = originalNode;
1282
- }
1283
- // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
1284
- // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
1285
- // it might be a falsy value, which means shadow DOM support is disabled
1286
-
1287
- // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
1288
- // now we can just test to see if it would normally be visible or not, provided it's
1289
- // attached to the main document.
1290
- // NOTE: We must consider case where node is inside a shadow DOM and given directly to
1291
- // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
1292
-
1293
- if (isNodeAttached(node)) {
1294
- // this works wherever the node is: if there's at least one client rect, it's
1295
- // somehow displayed; it also covers the CSS 'display: contents' case where the
1296
- // node itself is hidden in place of its contents; and there's no need to search
1297
- // up the hierarchy either
1298
- return !node.getClientRects().length;
1299
- }
1300
-
1301
- // Else, the node isn't attached to the document, which means the `getClientRects()`
1302
- // API will __always__ return zero rects (this can happen, for example, if React
1303
- // is used to render nodes onto a detached tree, as confirmed in this thread:
1304
- // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
1305
- //
1306
- // It also means that even window.getComputedStyle(node).display will return `undefined`
1307
- // because styles are only computed for nodes that are in the document.
1308
- //
1309
- // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
1310
- // somehow. Though it was never stated officially, anyone who has ever used tabbable
1311
- // APIs on nodes in detached containers has actually implicitly used tabbable in what
1312
- // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
1313
- // considering __everything__ to be visible because of the innability to determine styles.
1314
- //
1315
- // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
1316
- // nodes as visible with the 'none' fallback.__
1317
- if (displayCheck !== 'legacy-full') {
1318
- return true; // hidden
1319
- }
1320
- // else, fallback to 'none' mode and consider the node visible
1321
- } else if (displayCheck === 'non-zero-area') {
1322
- // NOTE: Even though this tests that the node's client rect is non-zero to determine
1323
- // whether it's displayed, and that a detached node will __always__ have a zero-area
1324
- // client rect, we don't special-case for whether the node is attached or not. In
1325
- // this mode, we do want to consider nodes that have a zero area to be hidden at all
1326
- // times, and that includes attached or not.
1327
- return isZeroArea(node);
1328
- }
1329
-
1330
- // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
1331
- // it's visible
1332
- return false;
1333
- };
1334
-
1335
- // form fields (nested) inside a disabled fieldset are not focusable/tabbable
1336
- // unless they are in the _first_ <legend> element of the top-most disabled
1337
- // fieldset
1338
- var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
1339
- if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
1340
- var parentNode = node.parentElement;
1341
- // check if `node` is contained in a disabled <fieldset>
1342
- while (parentNode) {
1343
- if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
1344
- // look for the first <legend> among the children of the disabled <fieldset>
1345
- for (var i = 0; i < parentNode.children.length; i++) {
1346
- var child = parentNode.children.item(i);
1347
- // when the first <legend> (in document order) is found
1348
- if (child.tagName === 'LEGEND') {
1349
- // if its parent <fieldset> is not nested in another disabled <fieldset>,
1350
- // return whether `node` is a descendant of its first <legend>
1351
- return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
1352
- }
1353
- }
1354
- // the disabled <fieldset> containing `node` has no <legend>
1355
- return true;
1356
- }
1357
- parentNode = parentNode.parentElement;
1358
- }
1359
- }
1360
-
1361
- // else, node's tabbable/focusable state should not be affected by a fieldset's
1362
- // enabled/disabled state
1363
- return false;
1364
- };
1365
- var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
1366
- if (node.disabled ||
1367
- // we must do an inert look up to filter out any elements inside an inert ancestor
1368
- // because we're limited in the type of selectors we can use in JSDom (see related
1369
- // note related to `candidateSelectors`)
1370
- isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
1371
- // For a details element with a summary, the summary element gets the focus
1372
- isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
1373
- return false;
1374
- }
1375
- return true;
1376
- };
1377
- var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
1378
- if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
1379
- return false;
1380
- }
1381
- return true;
1382
- };
1383
- var isTabbable = function isTabbable(node, options) {
1384
- options = options || {};
1385
- if (!node) {
1386
- throw new Error('No node provided');
1387
- }
1388
- if (matches.call(node, candidateSelector) === false) {
1389
- return false;
1390
- }
1391
- return isNodeMatchingSelectorTabbable(options, node);
1392
- };
1393
-
1394
- var defaultConfig$2 = function defaultConfig() {
1395
- return {
1396
- /** Class which indicates that modal is open */
1397
- classModalIsOpen: "is-active",
1398
- /** Class on body which indicates that modal is open */
1399
- classModalIsOpenBody: "has-modal",
1400
- /** Root of page content which should be hidden when modal is open */
1401
- root: "#root",
1402
- /** Move modal into this element selector (must be unique in DOM) */
1403
- modalsRoot: "#root-modals"
1404
- };
1405
- };
1406
- var Modal = /*#__PURE__*/function () {
1407
- function Modal(element, config) {
1408
- _classCallCheck(this, Modal);
1409
- this.element = element;
1410
- this.config = Object.assign(Object.assign({}, defaultConfig$2()), config);
1411
- this.handleShow = this.handleShow.bind(this);
1412
- this.handleHide = this.handleHide.bind(this);
1413
- this.show = this.show.bind(this);
1414
- this.hide = this.hide.bind(this);
1415
- this.headerFirstItemSpacing = this.headerFirstItemSpacing.bind(this);
1416
- Modal.moveToModalRoot = Modal.moveToModalRoot.bind(this);
1417
- Modal.lockBody = Modal.lockBody.bind(this);
1418
- Modal.unlockBody = Modal.unlockBody.bind(this);
1419
- this.element.ODS_Modal = this;
1420
- this.init();
1421
- return this;
1422
- }
1423
- return _createClass(Modal, [{
1424
- key: "handleShow",
1425
- value: function handleShow(el) {
1426
- Modal.lockBody();
1427
- if (el) el.classList.add(this.config.classModalIsOpen);
1428
- // Long modals can have first focusabble element under the fold, so static content above the fold should be focused instead to prevent undesirable scrolling
1429
- var initialFocusEl = el.querySelector("[data-a11y-dialog-initial-focus]");
1430
- if (!initialFocusEl) {
1431
- return;
1432
- }
1433
- // set tabindex to -1 so element can't be focused via keyboard
1434
- if (!isTabbable(initialFocusEl)) {
1435
- initialFocusEl.setAttribute("tabindex", "-1");
1436
- }
1437
- initialFocusEl.focus();
1438
- }
1439
- }, {
1440
- key: "handleHide",
1441
- value: function handleHide(el) {
1442
- Modal.unlockBody();
1443
- if (el) el.classList.remove(this.config.classModalIsOpen);
1444
- }
1445
- }, {
1446
- key: "show",
1447
- value: function show() {
1448
- this.instance.show();
1449
- }
1450
- }, {
1451
- key: "hide",
1452
- value: function hide() {
1453
- this.instance.hide();
1454
- }
1455
- }, {
1456
- key: "headerFirstItemSpacing",
1457
- value: function headerFirstItemSpacing() {
1458
- /**
1459
- * Target the first element which is not .btn inside .modal__header and add margin-right 40px.
1460
- * css has its limitations and it is not possible with pseudo selectors
1461
- */
1462
- var modalHeader = this.element.querySelector(".modal__header");
1463
- if (modalHeader) {
1464
- var firstNonBtnElement = Array.from(modalHeader.children).find(function (child) {
1465
- return !child.classList.contains("btn");
1466
- });
1467
- if (firstNonBtnElement) {
1468
- firstNonBtnElement.style.marginRight = "40px";
1469
- }
1470
- }
1471
- }
1472
- }, {
1473
- key: "init",
1474
- value: function init() {
1475
- var _this = this;
1476
- if (this.config.modalsRoot) {
1477
- Modal.moveToModalRoot(this.element, document.querySelector(this.config.modalsRoot));
1478
- }
1479
- this.instance = new A11yDialog(this.element);
1480
- this.instance.on("show", function (event) {
1481
- var dialogEl = event.currentTarget;
1482
- _this.handleShow(dialogEl);
1483
- });
1484
- this.instance.on("hide", function (event) {
1485
- var dialogEl = event.currentTarget;
1486
- _this.handleHide(dialogEl);
1487
- });
1488
- this.headerFirstItemSpacing();
1489
- }
1490
- }, {
1491
- key: "destroy",
1492
- value: function destroy() {
1493
- this.instance.destroy();
1494
- this.element.ODS_Modal = this;
1495
- }
1496
- }, {
1497
- key: "update",
1498
- value: function update() {
1499
- this.destroy();
1500
- this.init();
1501
- }
1502
- }], [{
1503
- key: "getInstance",
1504
- value: function getInstance(el) {
1505
- if (!el) return null;
1506
- var modalEl = el;
1507
- return modalEl.ODS_Modal || null;
1508
- }
1509
- }, {
1510
- key: "moveToModalRoot",
1511
- value: function moveToModalRoot(el, container) {
1512
- var _a;
1513
- if (container) {
1514
- container.appendChild(el);
1515
- } else {
1516
- console.warn("`modalsRoot: ".concat((_a = this.config) === null || _a === void 0 ? void 0 : _a.modalsRoot, "` element is not present in DOM. Modal will be placed inside content which can affect it's styling. Please provide `modalsRoot` selector (should be placed outside of main contant, usualy in end of <body /> tag)"));
1517
- }
1518
- }
1519
- }, {
1520
- key: "lockBody",
1521
- value: function lockBody(className, root) {
1522
- var _a, _b;
1523
- var actualClassName = className || ((_a = this.config) === null || _a === void 0 ? void 0 : _a.classModalIsOpenBody);
1524
- var actualRoot = root || ((_b = this.config) === null || _b === void 0 ? void 0 : _b.root);
1525
- var container = document.querySelector(actualRoot);
1526
- // store current scrollTop value
1527
- var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
1528
- document.body.setAttribute("data-lock-scrolltop", scrollTop.toString());
1529
- // add locking styles to body
1530
- document.body.style.height = "100%";
1531
- document.body.style.width = "100%";
1532
- document.body.style.overflow = "hidden";
1533
- document.body.style.position = "fixed";
1534
- // add locking styles to scrollTop
1535
- if (container) {
1536
- container.style.height = "100%";
1537
- container.style.width = "100%";
1538
- container.style.overflow = "hidden";
1539
- container.style.position = "fixed";
1540
- // scroll page-container to scrollTop position
1541
- container.scrollTop = scrollTop;
1542
- }
1543
- // add modal class
1544
- document.body.classList.add(actualClassName);
1545
- // attempt to scroll top fixed position
1546
- window.requestAnimationFrame(function () {
1547
- window.scrollTo(0, scrollTop);
1548
- });
1549
- }
1550
- }, {
1551
- key: "unlockBody",
1552
- value: function unlockBody(className, root) {
1553
- var _a, _b;
1554
- var actualClassName = className || ((_a = this.config) === null || _a === void 0 ? void 0 : _a.classModalIsOpenBody);
1555
- var actualRoot = root || ((_b = this.config) === null || _b === void 0 ? void 0 : _b.root);
1556
- var container = document.querySelector(actualRoot);
1557
- var scrollTop = document.body.getAttribute("data-lock-scrolltop") || "0";
1558
- // remove locking styles from body
1559
- document.body.style.height = "";
1560
- document.body.style.width = "";
1561
- document.body.style.overflow = "";
1562
- document.body.style.position = "";
1563
- // add modal class
1564
- document.body.classList.remove(actualClassName);
1565
- // remove locking styles from page-container
1566
- if (container) {
1567
- container.style.height = "";
1568
- container.style.width = "";
1569
- container.style.overflow = "";
1570
- container.style.position = "";
1571
- }
1572
- // set scroll position back
1573
- window.requestAnimationFrame(function () {
1574
- window.scrollTo({
1575
- left: 0,
1576
- top: parseInt(scrollTop, 10),
1577
- behavior: "instant"
1578
- });
1579
- });
1580
- }
1581
- }]);
1582
- }();
1583
-
1584
- // we use array to include old browser key names like IE11
1585
- // ie. navigation keys https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values#navigation_keys
1586
- var keys = {
1587
- TAB: ['Tab'],
1588
- ARROWLEFT: ['Left', 'ArrowLeft'],
1589
- ARROWUP: ['Up', 'ArrowUp'],
1590
- ARROWRIGHT: ['Right', 'ArrowRight'],
1591
- ARROWDOWN: ['Down', 'ArrowDown']
1592
- };
1593
-
1594
- var RovingTabindex = /*#__PURE__*/function () {
1595
- function RovingTabindex(elems) {
1596
- var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
1597
- direction: 'horizontal'
1598
- };
1599
- _classCallCheck(this, RovingTabindex);
1600
- this.elems = elems;
1601
- this.config = config;
1602
- this.isActive = false;
1603
- this.onKeydown = this.onKeydown.bind(this);
1604
- }
1605
- return _createClass(RovingTabindex, [{
1606
- key: "init",
1607
- value: function init() {
1608
- document.addEventListener('keydown', this.onKeydown);
1609
- this.isActive = true;
1610
- }
1611
- }, {
1612
- key: "destroy",
1613
- value: function destroy() {
1614
- document.removeEventListener('keydown', this.onKeydown);
1615
- this.isActive = false;
1616
- }
1617
- }, {
1618
- key: "update",
1619
- value: function update(elems) {
1620
- this.elems = elems;
1621
- }
1622
- }, {
1623
- key: "onKeydown",
1624
- value: function onKeydown(e) {
1625
- var activeElemIndex = this.elems.indexOf(document.activeElement);
1626
- if ((keys.ARROWUP.includes(e.key) || keys.ARROWDOWN.includes(e.key)) && this.config.direction === 'horizontal') {
1627
- return;
1628
- }
1629
- if ((keys.ARROWLEFT.includes(e.key) || keys.ARROWRIGHT.includes(e.key)) && this.config.direction === 'vertical') {
1630
- return;
1631
- }
1632
- if (keys.ARROWDOWN.includes(e.key) || keys.ARROWRIGHT.includes(e.key)) {
1633
- e.preventDefault();
1634
- if (activeElemIndex >= 0 && activeElemIndex < this.elems.length - 1) {
1635
- this.elems[activeElemIndex + 1].focus();
1636
- } else {
1637
- this.elems[0].focus();
1638
- }
1639
- }
1640
- if (keys.ARROWUP.includes(e.key) || keys.ARROWLEFT.includes(e.key)) {
1641
- e.preventDefault();
1642
- if (activeElemIndex >= 1) {
1643
- this.elems[activeElemIndex - 1].focus();
1644
- } else {
1645
- this.elems[this.elems.length - 1].focus();
1646
- }
1647
- }
1648
- if (keys.TAB.includes(e.key)) {
1649
- this.destroy();
1650
- }
1651
- }
1652
- }]);
1653
- }();
1654
-
1655
- var defaultConfig$1 = {
1656
- tabSelector: '[role="tab"]'
1657
- };
1658
- var Tabs = /*#__PURE__*/function () {
1659
- function Tabs(element, config) {
1660
- _classCallCheck(this, Tabs);
1661
- this.isActive = function (el) {
1662
- return el ? !el.hasAttribute("hidden") : false;
1663
- };
1664
- this.isSelected = function (el) {
1665
- return el.getAttribute("aria-selected") === "true";
1666
- };
1667
- this.element = element;
1668
- this.config = Object.assign(Object.assign({}, defaultConfig$1), config);
1669
- this.tabs = [];
1670
- this.tabPanels = [];
1671
- this.activeTabIndex = null;
1672
- this.rovingTabindex = null;
1673
- this.handleClick = this.handleClick.bind(this);
1674
- this.handleTabFocus = this.handleTabFocus.bind(this);
1675
- this.element.ODS_Tabs = this;
1676
- this.init();
1677
- return this;
1678
- }
1679
- return _createClass(Tabs, [{
1680
- key: "init",
1681
- value: function init() {
1682
- var _this = this;
1683
- this.tabs = Array.from(this.element.querySelectorAll(this.config.tabSelector));
1684
- this.tabs.map(function (tab, index) {
1685
- var controlId = tab.getAttribute("aria-controls");
1686
- _this.tabPanels.push(controlId ? document.getElementById(controlId) : null);
1687
- tab.addEventListener("click", _this.handleClick);
1688
- tab.addEventListener("focus", _this.handleTabFocus);
1689
- if (_this.isSelected(tab)) {
1690
- _this.activeTabIndex = index;
1691
- }
1692
- return tab;
1693
- });
1694
- if (!this.rovingTabindex) {
1695
- this.rovingTabindex = new RovingTabindex(this.tabs, {
1696
- direction: "any"
1697
- });
1698
- } else {
1699
- this.rovingTabindex.update(this.tabs);
1700
- }
1701
- if (this.activeTabIndex !== null) {
1702
- this.toggleTabPanel(this.tabPanels[this.activeTabIndex], "on");
1703
- } else if (this.tabs.length > 0) {
1704
- this.activateNthTab(0);
1705
- }
1706
- }
1707
- }, {
1708
- key: "destroy",
1709
- value: function destroy() {
1710
- var _this2 = this;
1711
- this.tabs.map(function (tab) {
1712
- tab.removeEventListener("click", _this2.handleClick);
1713
- tab.removeEventListener("focus", _this2.handleTabFocus);
1714
- return tab;
1715
- });
1716
- this.tabs = [];
1717
- this.tabPanels = [];
1718
- if (this.rovingTabindex) {
1719
- this.rovingTabindex.destroy();
1720
- }
1721
- this.element.ODS_Tabs = null;
1722
- }
1723
- }, {
1724
- key: "update",
1725
- value: function update() {
1726
- this.destroy();
1727
- this.init();
1728
- }
1729
- }, {
1730
- key: "handleClick",
1731
- value: function handleClick(e) {
1732
- var _this3 = this;
1733
- var clickedTab = e.currentTarget;
1734
- if (clickedTab.hasAttribute("aria-disabled")) {
1735
- e.preventDefault();
1736
- return;
1737
- }
1738
- this.tabs.map(function (tab, i) {
1739
- if (tab === clickedTab) {
1740
- _this3.activeTabIndex = i;
1741
- return _this3.toggleTab(tab, "on");
1742
- }
1743
- return _this3.toggleTab(tab, "off");
1744
- });
1745
- this.tabPanels.map(function (tabPanel) {
1746
- if (tabPanel && tabPanel.getAttribute("id") === clickedTab.getAttribute("aria-controls")) {
1747
- return _this3.toggleTabPanel(tabPanel, "on");
1748
- }
1749
- return _this3.toggleTabPanel(tabPanel, "off");
1750
- });
1751
- }
1752
- }, {
1753
- key: "toggleTab",
1754
- value: function toggleTab(el, state) {
1755
- var isActive = this.isSelected(el);
1756
- if (state === "on" && !isActive) {
1757
- el.setAttribute("aria-selected", "true");
1758
- el.setAttribute("tabindex", "0");
1759
- }
1760
- if (state === "off" && isActive) {
1761
- el.setAttribute("aria-selected", "false");
1762
- el.setAttribute("tabindex", "-1");
1763
- }
1764
- }
1765
- }, {
1766
- key: "toggleTabPanel",
1767
- value: function toggleTabPanel(el, state) {
1768
- if (!el) return;
1769
- var isActive = this.isActive(el);
1770
- if (state === "on" && !isActive) {
1771
- el.removeAttribute("hidden");
1772
- }
1773
- if (state === "off" && isActive) {
1774
- el.setAttribute("hidden", "");
1775
- }
1776
- }
1777
- }, {
1778
- key: "activateNthTab",
1779
- value: function activateNthTab(index) {
1780
- var _this4 = this;
1781
- this.tabs.map(function (tab, i) {
1782
- if (i === index) {
1783
- _this4.activeTabIndex = i;
1784
- return _this4.toggleTab(tab, "on");
1785
- }
1786
- return _this4.toggleTab(tab, "off");
1787
- });
1788
- this.tabPanels.map(function (tabPanel, i) {
1789
- if (i === index) {
1790
- return _this4.toggleTabPanel(tabPanel, "on");
1791
- }
1792
- return _this4.toggleTabPanel(tabPanel, "off");
1793
- });
1794
- }
1795
- }, {
1796
- key: "handleTabFocus",
1797
- value: function handleTabFocus() {
1798
- if (this.rovingTabindex && !this.rovingTabindex.isActive) {
1799
- this.rovingTabindex.init();
1800
- }
1801
- }
1802
- }], [{
1803
- key: "getInstance",
1804
- value: function getInstance(el) {
1805
- return el && el.ODS_Tabs ? el.ODS_Tabs : null;
1806
- }
1807
- }]);
1808
- }();
1809
-
1810
- function moduleFactory(Module, selector) {
1811
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1812
- var elements = Array.from(document.querySelectorAll(selector));
1813
- return elements.map(function (element) {
1814
- return new Module(element, options);
1815
- });
1816
- }
1817
- function destroyModulesWithin(container) {
1818
- var removeOrphanedNodes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1819
- var destroyedInstances = {};
1820
- Object.keys(window.ODS.instances).forEach(function (moduleName) {
1821
- window.ODS.instances[moduleName].forEach(function (instance) {
1822
- if (_typeof(destroyedInstances[moduleName]) !== "object") {
1823
- destroyedInstances[moduleName] = [];
1824
- }
1825
- var isInContainer = container.contains(instance.element);
1826
- if (moduleName === "modal") {
1827
- var _instance$instance;
1828
- isInContainer = (_instance$instance = instance.instance) === null || _instance$instance === void 0 ? void 0 : _instance$instance._openers.every(function (opener) {
1829
- return container.contains(opener);
1830
- });
1831
- } else if (moduleName === "tooltip") {
1832
- isInContainer = container.contains(instance.trigger);
1833
- }
1834
- if (isInContainer) {
1835
- instance.destroy();
1836
- destroyedInstances[moduleName].push(instance);
1837
- }
1838
- if (isInContainer && removeOrphanedNodes && ["modal", "tooltip"].includes(moduleName)) {
1839
- instance.element.remove();
1840
- }
1841
- });
1842
- window.ODS.instances[moduleName] = window.ODS.instances[moduleName].filter(function (instance) {
1843
- return !destroyedInstances[moduleName].includes(instance);
1844
- });
1845
- });
1846
- return destroyedInstances;
1847
- }
1848
- function initModulesWithin(container) {
1849
- var instances = {};
1850
- window.ODS.moduleSelectorPairs.forEach(function (module) {
1851
- var name = lowerCamelCase(module.name);
1852
- var elements = Array.from(container.querySelectorAll(module.selector));
1853
- if (window && window.ODS && window.ODS.instances[name]) {
1854
- window.ODS.instances[name].forEach(function (instance) {
1855
- elements.forEach(function (element, index) {
1856
- if (element.isSameNode(instance.element)) {
1857
- elements.splice(index, 1);
1858
- }
1859
- });
1860
- });
1861
- }
1862
- if (elements.length) {
1863
- if (!Array.isArray(window.ODS.instances[name])) {
1864
- window.ODS.instances[name] = [];
1865
- }
1866
- instances[name] = elements.map(function (element) {
1867
- return new module.Module(element);
1868
- });
1869
- window.ODS.instances[name] = [].concat(_toConsumableArray(window.ODS.instances[name]), _toConsumableArray(instances[name]));
1870
- }
1871
- });
1872
- return instances;
1873
- }
1874
-
1875
- function toggle(props) {
1876
- var element = props.element,
1877
- attribute = props.attribute,
1878
- action = props.action,
1879
- value = props.value,
1880
- _props$dispatchEvent = props.dispatchEvent,
1881
- dispatchEvent = _props$dispatchEvent === void 0 ? true : _props$dispatchEvent,
1882
- eventDetail = props.eventDetail;
1883
- var returnValue = null;
1884
- if (!element || !(element instanceof Element)) {
1885
- return returnValue;
1886
- }
1887
- if (action === 'focus') {
1888
- setTimeout(element.focus(), 20);
1889
- }
1890
- if (action === 'click') {
1891
- element.click();
1892
- }
1893
- if (attribute === 'class') {
1894
- element.classList.toggle(value);
1895
- returnValue = value;
1896
- }
1897
- if (attribute === 'text') {
1898
- var oldText = element.textContent;
1899
- element.textContent = value;
1900
- returnValue = oldText;
1901
- }
1902
- if (attribute !== 'class' && attribute !== 'text' && typeof action === 'undefined') {
1903
- returnValue = element.getAttribute(attribute);
1904
- if (attribute === 'hidden') {
1905
- if (element.hasAttribute(attribute)) {
1906
- element.removeAttribute(attribute);
1907
- } else {
1908
- element.setAttribute(attribute, '');
1909
- }
1910
- } else if (!value) {
1911
- element.setAttribute(attribute, !(returnValue === 'true'));
1912
- } else {
1913
- element.setAttribute(attribute, value);
1914
- }
1915
- }
1916
- if (dispatchEvent) {
1917
- element.dispatchEvent(new CustomEvent(TOGGLE_EVT, {
1918
- detail: eventDetail,
1919
- bubbles: true
1920
- }));
1921
- }
1922
- return returnValue;
1923
- }
1924
-
1925
- var TRIGGER_EVT = 'toggleTrigger';
1926
- var TOGGLE_EVT = 'toggle';
1927
- var defaultConfig = {
1928
- activeClass: 'is-active',
1929
- settingsAttr: 'data-toggle'
1930
- };
1931
- var Toggle = /*#__PURE__*/function () {
1932
- function Toggle(element, config) {
1933
- _classCallCheck(this, Toggle);
1934
- this.element = element;
1935
- this.config = _objectSpread2(_objectSpread2({}, defaultConfig), config);
1936
- this.settings = {};
1937
- this.targets = [];
1938
- this.handleClick = this.handleClick.bind(this);
1939
- this.element.ODS_Toggle = this;
1940
- this.init();
1941
- return this;
1942
- }
1943
- return _createClass(Toggle, [{
1944
- key: "doToggle",
1945
- value: function doToggle(props) {
1946
- var _props$dispatchEvent = props.dispatchEvent,
1947
- dispatchEvent = _props$dispatchEvent === void 0 ? true : _props$dispatchEvent;
1948
- var element = props.element,
1949
- attribute = props.attribute,
1950
- value = props.value,
1951
- action = props.action;
1952
- var returnProps = _objectSpread2({}, props);
1953
- var eventDetail = {
1954
- trigger: this.element,
1955
- element: element
1956
- };
1957
- if (attribute === 'icon') {
1958
- attribute = 'xlink:href';
1959
- element = element.querySelector('use');
1960
- }
1961
- if (attribute === 'text') {
1962
- element = element.querySelector('[data-toggle-text-target]') || element;
1963
- }
1964
- if (typeof value === 'undefined') {
1965
- value = false;
1966
- }
1967
- returnProps.value = toggle({
1968
- element: element,
1969
- attribute: attribute,
1970
- action: action,
1971
- value: value,
1972
- dispatchEvent: dispatchEvent,
1973
- eventDetail: eventDetail
1974
- });
1975
- return returnProps;
1976
- }
1977
- }, {
1978
- key: "init",
1979
- value: function init() {
1980
- this.settings = this.parseSettings();
1981
- this.targets = this.setupTargets();
1982
- this.element.addEventListener('click', this.handleClick);
1983
- return this.targets;
1984
- }
1985
- }, {
1986
- key: "handleClick",
1987
- value: function handleClick() {
1988
- var _this = this;
1989
- this.targets = this.targets.map(function (target) {
1990
- return _this.doToggle(target);
1991
- });
1992
- this.element.dispatchEvent(new CustomEvent(TRIGGER_EVT, {
1993
- bubbles: true
1994
- }));
1995
- }
1996
- }, {
1997
- key: "destroy",
1998
- value: function destroy() {
1999
- this.element.removeEventListener('click', this.handleClick);
2000
- this.settings = [];
2001
- this.targets = [];
2002
- }
2003
- }, {
2004
- key: "update",
2005
- value: function update() {
2006
- this.removeNonExistentTargets();
2007
- this.addNewTargets();
2008
- }
2009
- }, {
2010
- key: "parseSettings",
2011
- value: function parseSettings() {
2012
- var jsonSettings = this.element.getAttribute(this.config.settingsAttr);
2013
- var ariaControls = this.element.getAttribute('aria-controls');
2014
- var settings = JSON.parse(jsonSettings);
2015
- if (ariaControls) {
2016
- var ariaExpanded = this.element.getAttribute('aria-expanded');
2017
- settings = [].concat(_toConsumableArray(ariaExpanded ? [{
2018
- target: 'self',
2019
- attribute: 'aria-expanded'
2020
- }] : []), [{
2021
- target: ariaControls.split(' ').map(function (a) {
2022
- return "#".concat(a);
2023
- }).join(','),
2024
- attribute: 'hidden'
2025
- }], _toConsumableArray(Array.isArray(settings) ? settings : []));
2026
- }
2027
- return settings;
2028
- }
2029
-
2030
- // get all the possible settings for all target elements
2031
- }, {
2032
- key: "setupTargets",
2033
- value: function setupTargets() {
2034
- var trigger = this.element;
2035
- return this.settings.reduce(function (allSettings, setting) {
2036
- return [].concat(_toConsumableArray(allSettings), _toConsumableArray(setting === null || setting === void 0 ? void 0 : setting.target.split(',') // separate target selectors
2037
- .reduce(function (targetSettings, target) {
2038
- return [].concat(_toConsumableArray(targetSettings), _toConsumableArray(Toggle
2039
- // get target elements from DOM
2040
- .getTargetElementsFromString({
2041
- target: target,
2042
- trigger: trigger
2043
- })
2044
- // duplicate setting for each DOM element
2045
- .map(function (element) {
2046
- return _objectSpread2(_objectSpread2({}, setting), {}, {
2047
- element: element
2048
- });
2049
- })));
2050
- }, [])));
2051
- }, []);
2052
- }
2053
- }, {
2054
- key: "removeNonExistentTargets",
2055
- value: function removeNonExistentTargets() {
2056
- this.targets = this.targets.filter(function (target) {
2057
- return document.contains(target.element);
2058
- });
2059
- }
2060
- }, {
2061
- key: "addNewTargets",
2062
- value: function addNewTargets() {
2063
- var _this2 = this;
2064
- var allTargets = this.setupTargets();
2065
- var newTargets = allTargets.filter(function (newTarget) {
2066
- return !_this2.targets.find(function (target) {
2067
- return target.element === newTarget.element && target.action === newTarget.action;
2068
- });
2069
- });
2070
- this.targets = [].concat(_toConsumableArray(this.targets), _toConsumableArray(newTargets));
2071
- }
2072
- }], [{
2073
- key: "getTargetElementsFromString",
2074
- value: function getTargetElementsFromString(_ref) {
2075
- var target = _ref.target,
2076
- trigger = _ref.trigger;
2077
- var selector = target.trim();
2078
- if (selector === 'self') {
2079
- return [trigger];
2080
- }
2081
- if (selector === 'parent') {
2082
- return [trigger.parentNode];
2083
- }
2084
- if (selector === 'previous') {
2085
- return [trigger.previousElementSibling];
2086
- }
2087
- if (selector === 'next') {
2088
- return [trigger.nextElementSibling];
2089
- }
2090
- if (typeof selector === 'string') {
2091
- // don't be tempted to remove this querySelectorAll
2092
- // selector like '.target-elements' whould not work as expected
2093
- return Array.from(document.querySelectorAll(selector));
2094
- }
2095
-
2096
- // add log why we endup here
2097
- return selector;
2098
- }
2099
- }, {
2100
- key: "getInstance",
2101
- value: function getInstance(el) {
2102
- return el && el.ODS_Toggle ? el.ODS_Toggle : null;
2103
- }
2104
- }]);
2105
- }();
2106
- Toggle.getTargetElements;
2107
- Toggle.setTargets;
2108
-
2109
- var SameHeight = /*#__PURE__*/function () {
2110
- function SameHeight(element) {
2111
- _classCallCheck(this, SameHeight);
2112
- this.element = element;
2113
- this.children = null;
2114
- this.updateHeight = this.updateHeight.bind(this);
2115
- this.element.ODS_SameHeight = this;
2116
- this.intervalId = null; // Add this line to store interval ID
2117
- this.init();
2118
- }
2119
-
2120
- // This method temporarily shows hidden elements by changing their display style to 'block' and removing the 'hidden' attribute.
2121
- return _createClass(SameHeight, [{
2122
- key: "temporarilyShowHiddenElements",
2123
- value: function temporarilyShowHiddenElements() {
2124
- var _this = this;
2125
- // Initialize an array to store the original display states of the elements.
2126
- this.originalDisplayStates = [];
2127
-
2128
- // Iterate over each child element.
2129
- this.children.forEach(function (child) {
2130
- // Find the closest ancestor with the role 'tabpanel'.
2131
- var tabPanel = child.closest('[role="tabpanel"]');
2132
- // Find the closest ancestor with the role 'dialog'.
2133
- var modal = child.closest('[role="dialog"]');
2134
-
2135
- // If the tabPanel exists and has the 'hidden' attribute.
2136
- if (tabPanel && tabPanel.hasAttribute("hidden")) {
2137
- // Store the original display state of the tabPanel.
2138
- _this.originalDisplayStates.push({
2139
- element: tabPanel,
2140
- display: tabPanel.style.display
2141
- });
2142
- // Change the display style to 'block' and remove the 'hidden' attribute.
2143
- tabPanel.style.display = "block";
2144
- tabPanel.removeAttribute("hidden");
2145
- }
2146
-
2147
- // If the modal exists and has the 'aria-hidden' attribute.
2148
- if (modal && modal.hasAttribute("aria-hidden")) {
2149
- // Store the original display state of the modal.
2150
- _this.originalDisplayStates.push({
2151
- element: modal,
2152
- display: modal.style.display
2153
- });
2154
- // Change the display style to 'block' and remove the 'aria-hidden' attribute.
2155
- modal.style.display = "block";
2156
- modal.removeAttribute("aria-hidden");
2157
- }
2158
- });
2159
- }
2160
-
2161
- // This method restores the hidden elements to their original display states.
2162
- }, {
2163
- key: "restoreHiddenElements",
2164
- value: function restoreHiddenElements() {
2165
- // Iterate over each stored original display state.
2166
- this.originalDisplayStates.forEach(function (_ref) {
2167
- var element = _ref.element,
2168
- display = _ref.display;
2169
- // Restore the original display style.
2170
- element.style.display = display;
2171
-
2172
- // Check if the element has the role 'tabpanel'.
2173
- if (element.getAttribute("role") === "tabpanel") {
2174
- // If so, set the 'hidden' attribute to true.
2175
- element.setAttribute("hidden", true);
2176
- }
2177
- // Check if the element has the role 'dialog'.
2178
- else if (element.getAttribute("role") === "dialog") {
2179
- // If so, set the 'aria-hidden' attribute to true.
2180
- element.setAttribute("aria-hidden", true);
2181
- }
2182
- });
2183
- }
2184
- }, {
2185
- key: "updateHeight",
2186
- value: function updateHeight() {
2187
- // Temporarily show hidden elements to ensure they are included in the height calculations.
2188
- this.temporarilyShowHiddenElements();
2189
-
2190
- // Get all elements with data-same-height-child attribute
2191
- var allSameHeightChildren = this.element.querySelectorAll('[data-same-height-child="true"]');
2192
-
2193
- // Group elements by their "type" (using data-same-height-group if available)
2194
- var groupedElements = this.groupElementsByTypeAndPosition(allSameHeightChildren);
2195
-
2196
- // Process each group separately
2197
-
2198
- for (var _i = 0, _Object$entries = Object.entries(groupedElements); _i < _Object$entries.length; _i++) {
2199
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
2200
- elements = _Object$entries$_i[1];
2201
- var rows = [];
2202
- var newRow = [];
2203
- if (elements.length) {
2204
- var lastOffset = elements[0].getBoundingClientRect().top;
2205
- var _iterator = _createForOfIteratorHelper(elements),
2206
- _step;
2207
- try {
2208
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2209
- var child = _step.value;
2210
- if (child.getBoundingClientRect().top === lastOffset) {
2211
- newRow.push(child);
2212
- } else {
2213
- rows.push(_toConsumableArray(newRow));
2214
- newRow = [];
2215
- newRow.push(child);
2216
- }
2217
- lastOffset = child.getBoundingClientRect().top;
2218
- }
2219
- } catch (err) {
2220
- _iterator.e(err);
2221
- } finally {
2222
- _iterator.f();
2223
- }
2224
- rows.push(_toConsumableArray(newRow));
2225
- rows.forEach(function (row) {
2226
- if (row.length > 1) {
2227
- var maxHeight = 0;
2228
- row.forEach(function (child) {
2229
- if (child) {
2230
- if (child.style.height) {
2231
- child.style.height = "";
2232
- }
2233
- if (child.offsetHeight > maxHeight) {
2234
- maxHeight = child.offsetHeight;
2235
- }
2236
- }
2237
- });
2238
- row.forEach(function (child) {
2239
- child.style.height = maxHeight + "px";
2240
- });
2241
- } else {
2242
- row.forEach(function (child) {
2243
- if (child.style.height) {
2244
- child.style.height = null;
2245
- }
2246
- });
2247
- }
2248
- });
2249
- }
2250
- }
2251
-
2252
- // Restore the hidden elements to their original display states after height calculations are done.
2253
- this.restoreHiddenElements();
2254
- }
2255
- }, {
2256
- key: "groupElementsByTypeAndPosition",
2257
- value: function groupElementsByTypeAndPosition(elements) {
2258
- var groups = {};
2259
- elements.forEach(function (element) {
2260
- // Get group identifier - either from data-same-height-group attribute or default to 'default'
2261
- var groupKey = element.getAttribute("data-same-height-group") || "default";
2262
- if (!groups[groupKey]) {
2263
- groups[groupKey] = [];
2264
- }
2265
- groups[groupKey].push(element);
2266
- });
2267
- return groups;
2268
- }
2269
- }, {
2270
- key: "init",
2271
- value: function init() {
2272
- var _this2 = this;
2273
- var imgLoaded = [];
2274
- // Instead of finding one child per parent element, we find all elements with the attribute
2275
- this.children = this.element.querySelectorAll('[data-same-height-child="true"]');
2276
-
2277
- // Check if any of the data-same-height-child elements contain images
2278
- this.children.forEach(function (child) {
2279
- var images = child.querySelectorAll("img");
2280
- images.forEach(function (img) {
2281
- if (!img.complete) {
2282
- imgLoaded.push(img);
2283
- }
2284
- });
2285
- });
2286
-
2287
- // Function executed on init when there are no img children or all img are loaded
2288
- if (imgLoaded.length === 0) {
2289
- this.updateHeight();
2290
- }
2291
- // If there are unloaded images we check if they did load every 400ms
2292
- else {
2293
- var x = 0;
2294
- this.intervalId = setInterval(function () {
2295
- var completed = false;
2296
- imgLoaded.forEach(function (img, index, array) {
2297
- if (img.complete) {
2298
- array.splice(index, 1);
2299
- completed = true;
2300
- }
2301
- });
2302
- if (completed && _this2.updateHeight) {
2303
- _this2.updateHeight();
2304
- }
2305
- if (++x >= 15 || imgLoaded.length === 0) {
2306
- if (imgLoaded.length && _this2.updateHeight) {
2307
- _this2.updateHeight();
2308
- }
2309
- window.clearInterval(_this2.intervalId);
2310
- }
2311
- }, 400);
2312
- }
2313
- window.addEventListener("resize", this.updateHeight);
2314
- }
2315
- }, {
2316
- key: "update",
2317
- value: function update() {
2318
- this.destroy();
2319
- this.init();
2320
- }
2321
- }, {
2322
- key: "destroy",
2323
- value: function destroy() {
2324
- window.removeEventListener("resize", this.updateHeight);
2325
- if (this.intervalId) {
2326
- clearInterval(this.intervalId);
2327
- this.intervalId = null;
2328
- }
2329
- }
2330
- }], [{
2331
- key: "getInstance",
2332
- value: function getInstance(el) {
2333
- return el && el.ODS_SameHeight ? el.ODS_SameHeight : null;
2334
- }
2335
- }]);
2336
- }();
2337
-
2338
- var moduleSelectorPairs = [
2339
- // {
2340
- // Module: Accordion,
2341
- // name: 'Accordion',
2342
- // selector: '[data-accordion]',
2343
- // },
2344
- // {
2345
- // Module: Autocomplete,
2346
- // name: 'Autocomplete',
2347
- // selector: '[data-autocomplete]',
2348
- // },
2349
- // {
2350
- // Module: DatePicker,
2351
- // name: 'DatePicker',
2352
- // selector: '[data-datepicker]',
2353
- // },
2354
- // {
2355
- // Module: Dropdown,
2356
- // name: 'Dropdown',
2357
- // selector: '[data-dropdown]',
2358
- // },
2359
- // {
2360
- // Module: Expander,
2361
- // name: 'Expander',
2362
- // selector: '[data-expander]',
2363
- // },
2364
- // {
2365
- // Module: BlockAction,
2366
- // name: 'BlockAction',
2367
- // selector: '[data-block-action]',
2368
- // },
2369
- // {
2370
- // Module: Carousel,
2371
- // name: 'Carousel',
2372
- // selector: '[data-carousel]',
2373
- // },
2374
- // {
2375
- // Module: CarouselPromotions,
2376
- // name: 'CarouselPromotions',
2377
- // selector: '[data-carousel-promotions]',
2378
- // },
2379
- // {
2380
- // Module: File,
2381
- // name: 'File',
2382
- // selector: '[data-file-input]',
2383
- // },
2384
- // {
2385
- // Module: Loader,
2386
- // name: 'Loader',
2387
- // selector: '[data-loader]',
2388
- // },
2389
- {
2390
- Module: Modal,
2391
- name: "Modal",
2392
- selector: "[data-modal]"
2393
- }, {
2394
- Module: SameHeight,
2395
- name: "SameHeight",
2396
- selector: "[data-same-height]"
2397
- },
2398
- // {
2399
- // Module: RangeSlider,
2400
- // name: 'RangeSlider',
2401
- // selector: '[data-rangeslider]',
2402
- // },
2403
- // {
2404
- // Module: InputStepper,
2405
- // name: 'InputStepper',
2406
- // selector: '[data-inputstepper]',
2407
- // },
2408
- // {
2409
- // Module: Table,
2410
- // name: 'Table',
2411
- // selector: '[data-table]',
2412
- // },
2413
- {
2414
- Module: Tabs,
2415
- name: "Tabs",
2416
- selector: "[data-tabs]"
2417
- }, {
2418
- Module: Toggle,
2419
- name: "Toggle",
2420
- selector: "[data-toggle]"
2421
- }
2422
- // {
2423
- // Module: Tooltip,
2424
- // name: 'Tooltip',
2425
- // selector: '[data-tooltip]',
2426
- // },
2427
- ];
2428
- window.ODS = window.ODS || {
2429
- modules: {},
2430
- instances: {},
2431
- moduleSelectorPairs: {}
2432
- };
2433
- window.ODS.initModulesWithin = initModulesWithin;
2434
- window.ODS.destroyModulesWithin = destroyModulesWithin;
2435
- window.ODS.moduleSelectorPairs = moduleSelectorPairs;
2436
- window.addEventListener("DOMContentLoaded", function () {
2437
- console.log("ODS modules loaded");
2438
- moduleSelectorPairs.forEach(function (module) {
2439
- window.ODS.modules[module.name] = module.Module;
2440
- window.ODS.instances[lowerCamelCase(module.name)] = moduleFactory(module.Module, module.selector);
2441
- });
2442
- window.dispatchEvent(new Event("ODSLoaded"));
2443
- });
7
+ */var rs,os,ss=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),as="undefined"==typeof Element,ls=as?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,cs=!as&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},us=function e(t,n){var i;void 0===n&&(n=!0);var r=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===r||"true"===r||n&&t&&e(t.parentNode)},ds=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))}(e)?0:e.tabIndex},ps=function(e){return"INPUT"===e.tagName},fs=function(e){return function(e){return ps(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||cs(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},hs=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},ms=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=ls.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ls.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return hs(e)}else{if("function"==typeof i){for(var o=e;e;){var s=e.parentElement,a=cs(e);if(s&&!s.shadowRoot&&!0===i(s))return hs(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=o}if(function(e){var t,n,i,r,o=e&&cs(e),s=null===(t=o)||void 0===t?void 0:t.host,a=!1;if(o&&o!==e)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(s)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!a&&s;){var l,c,u;a=!(null===(c=s=null===(l=o=cs(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},vs=function(e,t){return!(t.disabled||us(t)||function(e){return ps(e)&&"hidden"===e.type}(t)||ms(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!ls.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},gs=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ls.call(e,ss)&&function(e,t){return!(fs(t)||ds(t)<0||!vs(e,t))}(t,e)},bs=function(){function e(n,i){return t(this,e),this.element=n,this.config=Object.assign(Object.assign({},{classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals"}),i),this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),e.moveToModalRoot=e.moveToModalRoot.bind(this),e.lockBody=e.lockBody.bind(this),e.unlockBody=e.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}return i(e,[{key:"handleShow",value:function(t){e.lockBody(),t&&t.classList.add(this.config.classModalIsOpen);var n=t.querySelector("[data-a11y-dialog-initial-focus]");n&&(gs(n)||n.setAttribute("tabindex","-1"),n.focus())}},{key:"handleHide",value:function(t){e.unlockBody(),t&&t.classList.remove(this.config.classModalIsOpen)}},{key:"show",value:function(){this.instance.show()}},{key:"hide",value:function(){this.instance.hide()}},{key:"headerFirstItemSpacing",value:function(){var e=this.element.querySelector(".modal__header");if(e){var t=Array.from(e.children).find(function(e){return!e.classList.contains("btn")});t&&(t.style.marginRight="40px")}}},{key:"init",value:function(){var t=this;this.config.modalsRoot&&e.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new ns(this.element),this.instance.on("show",function(e){var n=e.currentTarget;t.handleShow(n)}),this.instance.on("hide",function(e){var n=e.currentTarget;t.handleHide(n)}),this.headerFirstItemSpacing()}},{key:"destroy",value:function(){this.instance.destroy(),this.element.ODS_Modal=this}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Modal||null}},{key:"moveToModalRoot",value:function(e,t){var n;t?t.appendChild(e):console.warn("`modalsRoot: ".concat(null===(n=this.config)||void 0===n?void 0:n.modalsRoot,"` element is not present in DOM. Modal will be placed inside content which can affect it's styling. Please provide `modalsRoot` selector (should be placed outside of main contant, usualy in end of <body /> tag)"))}},{key:"lockBody",value:function(e,t){var n,i,r=e||(null===(n=this.config)||void 0===n?void 0:n.classModalIsOpenBody),o=t||(null===(i=this.config)||void 0===i?void 0:i.root),s=document.querySelector(o),a=document.documentElement.scrollTop||document.body.scrollTop;document.body.setAttribute("data-lock-scrolltop",a.toString()),document.body.style.height="100%",document.body.style.width="100%",document.body.style.overflow="hidden",document.body.style.position="fixed",s&&(s.style.height="100%",s.style.width="100%",s.style.overflow="hidden",s.style.position="fixed",s.scrollTop=a),document.body.classList.add(r),window.requestAnimationFrame(function(){window.scrollTo(0,a)})}},{key:"unlockBody",value:function(e,t){var n,i,r=e||(null===(n=this.config)||void 0===n?void 0:n.classModalIsOpenBody),o=t||(null===(i=this.config)||void 0===i?void 0:i.root),s=document.querySelector(o),a=document.body.getAttribute("data-lock-scrolltop")||"0";document.body.style.height="",document.body.style.width="",document.body.style.overflow="",document.body.style.position="",document.body.classList.remove(r),s&&(s.style.height="",s.style.width="",s.style.overflow="",s.style.position=""),window.requestAnimationFrame(function(){window.scrollTo({left:0,top:parseInt(a,10),behavior:"instant"})})}}])}();function ys(e){return"object"==typeof e&&"function"==typeof e.to}function _s(e){e.parentElement.removeChild(e)}function ws(e){return null!=e}function Ss(e){e.preventDefault()}function Es(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function xs(e,t,n){n>0&&(As(e,t),setTimeout(function(){Os(e,t)},n))}function ks(e){return Math.max(Math.min(e,100),0)}function Ts(e){return Array.isArray(e)?e:[e]}function Cs(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function As(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function Os(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function Ms(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function Ds(e,t){return 100/(t-e)}function Ls(e,t,n){return 100*t/(e[n+1]-e[n])}function Ps(e,t){for(var n=1;e>=t[n];)n+=1;return n}function Ns(e,t,n){if(n>=e.slice(-1)[0])return 100;var i=Ps(n,e),r=e[i-1],o=e[i],s=t[i-1],a=t[i];return s+function(e,t){return Ls(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([r,o],n)/Ds(s,a)}function Is(e,t,n,i){if(100===i)return i;var r=Ps(i,e),o=e[r-1],s=e[r];return n?i-o>(s-o)/2?s:o:t[r-1]?e[r-1]+function(e,t){return Math.round(e/t)*t}(i-e[r-1],t[r-1]):i}!function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(rs||(rs={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(os||(os={}));var Rs=function(){function e(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var r=[];for(Object.keys(e).forEach(function(t){r.push([Ts(e[t]),t])}),r.sort(function(e,t){return e[0][0]-t[0][0]}),i=0;i<r.length;i++)this.handleEntryPoint(r[i][1],r[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=Ls(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var i,r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);n||e!==this.xPct[r+1]||r++,null===t&&(t=[]);var o=1,s=t[r],a=0,l=0,c=0,u=0;for(i=n?(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);s>0;)a=this.xPct[r+1+u]-this.xPct[r+u],t[r+u]*o+100-100*i>100?(l=a*i,o=(s-100*i)/t[r+u],i=1):(l=t[r+u]*a/100*o,o=0),n?(c-=l,this.xPct.length+u>=1&&u--):(c+=l,this.xPct.length-u>=1&&u++),s=t[r+u]*o;return e+c},e.prototype.toStepping=function(e){return e=Ns(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=Ps(n,t),r=e[i-1],o=e[i],s=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([r,o],(n-s)*Ds(s,t[i]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return e=Is(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var i=Ps(e,this.xPct);return(100===e||t&&e===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(e){var t=Ps(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(Cs);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!Es(n="min"===e?0:"max"===e?100:parseFloat(e))||!Es(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(!isNaN(i)&&i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=Ls([this.xVal[e],this.xVal[e+1]],t,0)/Ds(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],i=Math.ceil(Number(n.toFixed(3))-1),r=this.xVal[e]+this.xNumSteps[e]*i;this.xHighestCompleteStep[e]=r}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),zs={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},Bs={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},Hs=".__tooltips",js=".__aria";function Fs(e,t){if(!Es(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function Vs(e,t){if(!Es(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function Us(e,t){if(!Es(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function $s(e,t){if(!Es(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function qs(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new Rs(t,e.snap||!1,e.singleStep)}function Gs(e,t){if(t=Ts(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function Ws(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function Ys(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function Ks(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Xs(e,t){var n,i=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)i.push(t);i.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=t}e.connect=i}function Js(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Qs(e,t){if(!Es(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function Zs(e,t){if(!Es(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function ea(e,t){var n;if(!Es(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!Es(t[0])&&!Es(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=t[0]+t[1],r=e.spectrum.xVal[0];if(i/(e.spectrum.xVal[e.spectrum.xVal.length-1]-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function ta(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function na(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,i=t.indexOf("drag")>=0,r=t.indexOf("fixed")>=0,o=t.indexOf("snap")>=0,s=t.indexOf("hover")>=0,a=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,c=t.indexOf("drag-all")>=0,u=t.indexOf("smooth-steps")>=0;if(r){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Qs(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||o,drag:i,dragAll:c,smoothSteps:u,fixed:r,snap:o,hover:s,unconstrained:a,invertConnects:l}}function ia(e,t){if(!1!==t)if(!0===t||ys(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=Ts(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!ys(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function ra(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function oa(e,t){if(!ys(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function sa(e,t){if(!function(e){return ys(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function aa(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function la(e,t){e.documentElement=t}function ca(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function ua(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach(function(n){e.cssClasses[n]=e.cssPrefix+t[n]})):e.cssClasses=t}function da(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:zs,format:zs},n={step:{r:!1,t:Fs},keyboardPageMultiplier:{r:!1,t:Vs},keyboardMultiplier:{r:!1,t:Us},keyboardDefaultStep:{r:!1,t:$s},start:{r:!0,t:Gs},connect:{r:!0,t:Xs},direction:{r:!0,t:ta},snap:{r:!1,t:Ws},animate:{r:!1,t:Ys},animationDuration:{r:!1,t:Ks},range:{r:!0,t:qs},orientation:{r:!1,t:Js},margin:{r:!1,t:Qs},limit:{r:!1,t:Zs},padding:{r:!1,t:ea},behaviour:{r:!0,t:na},ariaFormat:{r:!1,t:oa},format:{r:!1,t:sa},tooltips:{r:!1,t:ia},keyboardSupport:{r:!0,t:aa},documentElement:{r:!1,t:la},cssPrefix:{r:!0,t:ca},cssClasses:{r:!0,t:ua},handleAttributes:{r:!1,t:ra}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Bs,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(r){if(ws(e[r])||void 0!==i[r])n[r].t(t,ws(e[r])?e[r]:i[r]);else if(n[r].r)throw new Error("noUiSlider: '"+r+"' is required.")}),t.pips=e.pips;var r=document.createElement("div"),o=void 0!==r.style.msTransform,s=void 0!==r.style.transform;t.transformRule=s?"transform":o?"msTransform":"webkitTransform";return t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function pa(e,t,n){var i,r,o,s,a,l,c,u=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},d=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),p=e,f=t.spectrum,h=[],m=[],v=[],g=0,b={},y=!1,_=e.ownerDocument,w=t.documentElement||_.documentElement,S=_.body,E="rtl"===_.dir||1===t.ort?0:100;function x(e,t){var n=_.createElement("div");return t&&As(n,t),e.appendChild(n),n}function k(e,n){var i=x(e,t.cssClasses.origin),r=x(i,t.cssClasses.handle);if(x(r,t.cssClasses.touchArea),r.setAttribute("data-handle",String(n)),t.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",function(e){return function(e,n){if(A()||O(n))return!1;var i=["Left","Right"],r=["Down","Up"],o=["PageDown","PageUp"],s=["Home","End"];t.dir&&!t.ort?i.reverse():t.ort&&!t.dir&&(r.reverse(),o.reverse());var a,l=e.key.replace("Arrow",""),c=l===o[0],u=l===o[1],d=l===r[0]||l===i[0]||c,p=l===r[1]||l===i[1]||u,v=l===s[0],g=l===s[1];if(!(d||p||v||g))return!0;if(e.preventDefault(),p||d){var b=d?0:1,y=ae(n)[b];if(null===y)return!1;!1===y&&(y=f.getDefaultStep(m[n],d,t.keyboardDefaultStep)),y*=u||c?t.keyboardPageMultiplier:t.keyboardMultiplier,y=Math.max(y,1e-7),y*=d?-1:1,a=h[n]+y}else a=g?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return ne(n,f.toStepping(a),!0,!0),K("slide",n),K("update",n),K("change",n),K("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var o=t.handleAttributes[n];Object.keys(o).forEach(function(e){r.setAttribute(e,o[e])})}return r.setAttribute("role","slider"),r.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?As(r,t.cssClasses.handleLower):n===t.handles-1&&As(r,t.cssClasses.handleUpper),i.handle=r,i}function T(e,n){return!!n&&x(e,t.cssClasses.connect)}function C(e,n){return!(!t.tooltips||!t.tooltips[n])&&x(e.firstChild,t.cssClasses.tooltip)}function A(){return p.hasAttribute("disabled")}function O(e){return o[e].hasAttribute("disabled")}function M(){l&&(Y("update"+Hs),l.forEach(function(e){e&&_s(e)}),l=null)}function D(){M(),l=o.map(C),W("update"+Hs,function(e,n,i){if(l&&t.tooltips&&!1!==l[n]){var r=e[n];!0!==t.tooltips[n]&&(r=t.tooltips[n].to(i[n])),l[n].innerHTML=r}})}function L(e,t){return e.map(function(e){return f.fromStepping(t?f.getStep(e):e)})}function P(e){function t(e,t){return Number((e+t).toFixed(7))}var n,i=function(e){if(e.mode===rs.Range||e.mode===rs.Steps)return f.xVal;if(e.mode===rs.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var t=e.values-1,n=100/t,i=[];t--;)i[t]=t*n;return i.push(100),L(i,e.stepped)}return e.mode===rs.Positions?L(e.values,e.stepped):e.mode===rs.Values?e.stepped?e.values.map(function(e){return f.fromStepping(f.getStep(f.toStepping(e)))}):e.values:[]}(e),r={},o=f.xVal[0],s=f.xVal[f.xVal.length-1],a=!1,l=!1,c=0;return n=i.slice().sort(function(e,t){return e-t}),i=n.filter(function(e){return!this[e]&&(this[e]=!0)},{}),i[0]!==o&&(i.unshift(o),a=!0),i[i.length-1]!==s&&(i.push(s),l=!0),i.forEach(function(n,o){var s,u,d,p,h,m,v,g,b,y,_=n,w=i[o+1],S=e.mode===rs.Steps;for(S&&(s=f.xNumSteps[o]),s||(s=w-_),void 0===w&&(w=_),s=Math.max(s,1e-7),u=_;u<=w;u=t(u,s)){for(g=(h=(p=f.toStepping(u))-c)/(e.density||1),y=h/(b=Math.round(g)),d=1;d<=b;d+=1)r[(m=c+d*y).toFixed(5)]=[f.fromStepping(m),0];v=i.indexOf(u)>-1?os.LargeValue:S?os.SmallValue:os.NoValue,!o&&a&&u!==w&&(v=0),u===w&&l||(r[p.toFixed(5)]=[u,v]),c=p}}),r}function N(e,n,i){var r,o,s=_.createElement("div"),a=((r={})[os.None]="",r[os.NoValue]=t.cssClasses.valueNormal,r[os.LargeValue]=t.cssClasses.valueLarge,r[os.SmallValue]=t.cssClasses.valueSub,r),l=((o={})[os.None]="",o[os.NoValue]=t.cssClasses.markerNormal,o[os.LargeValue]=t.cssClasses.markerLarge,o[os.SmallValue]=t.cssClasses.markerSub,o),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],u=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function d(e,n){var i=n===t.cssClasses.value,r=i?a:l;return n+" "+(i?c:u)[t.ort]+" "+r[e]}return As(s,t.cssClasses.pips),As(s,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r,o){if((o=n?n(r,o):o)!==os.None){var a=x(s,!1);a.className=d(o,t.cssClasses.marker),a.style[t.style]=e+"%",o>os.NoValue&&((a=x(s,!1)).className=d(o,t.cssClasses.value),a.setAttribute("data-value",String(r)),a.style[t.style]=e+"%",a.innerHTML=String(i.to(r)))}}(r,e[r][0],e[r][1])}),s}function I(){a&&(_s(a),a=null)}function R(e){I();var t=P(e),n=e.filter,i=e.format||{to:function(e){return String(Math.round(e))}};return a=p.appendChild(N(t,n,i))}function z(){var e=i.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||i[n]:e.height||i[n]}function B(e,n,i,r){var o=function(o){var s,a,l=function(e,t,n){var i=0===e.type.indexOf("touch"),r=0===e.type.indexOf("mouse"),o=0===e.type.indexOf("pointer"),s=0,a=0;0===e.type.indexOf("MSPointer")&&(o=!0);if("mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(i){var l=function(t){var i=t.target;return i===n||n.contains(i)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;s=c[0].pageX,a=c[0].pageY}else{var u=Array.prototype.find.call(e.changedTouches,l);if(!u)return!1;s=u.pageX,a=u.pageY}}t=t||Ms(_),(r||o)&&(s=e.clientX+t.x,a=e.clientY+t.y);return e.pageOffset=t,e.points=[s,a],e.cursor=r||o,e}(o,r.pageOffset,r.target||n);return!!l&&(!(A()&&!r.doNotReject)&&(s=p,a=t.cssClasses.tap,!((s.classList?s.classList.contains(a):new RegExp("\\b"+a+"\\b").test(s.className))&&!r.doNotReject)&&(!(e===u.start&&void 0!==l.buttons&&l.buttons>1)&&((!r.hover||!l.buttons)&&(d||l.preventDefault(),l.calcPoint=l.points[t.ort],void i(l,r))))))},s=[];return e.split(" ").forEach(function(e){n.addEventListener(e,o,!!d&&{passive:!0}),s.push([e,o])}),s}function H(e){var n,r,o,s,a,l,c=100*(e-(n=i,r=t.ort,o=n.getBoundingClientRect(),s=n.ownerDocument,a=s.documentElement,l=Ms(s),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),r?o.top+l.y-a.clientTop:o.left+l.x-a.clientLeft))/z();return c=ks(c),t.dir?100-c:c}function j(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&V(e,t)}function F(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return V(e,n);var i=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);Q(i>0,100*i/n.baseSize,n.locations,n.handleNumbers,n.connect)}function V(e,n){n.handle&&(Os(n.handle,t.cssClasses.active),g-=1),n.listeners.forEach(function(e){w.removeEventListener(e[0],e[1])}),0===g&&(Os(p,t.cssClasses.drag),te(),e.cursor&&(S.style.cursor="",S.removeEventListener("selectstart",Ss))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){ne(e,m[e],!0,!0,!1,!1)}),n.handleNumbers.forEach(function(e){K("update",e)})),n.handleNumbers.forEach(function(e){K("change",e),K("set",e),K("end",e)})}function U(e,n){if(!n.handleNumbers.some(O)){var i;if(1===n.handleNumbers.length)i=o[n.handleNumbers[0]].children[0],g+=1,As(i,t.cssClasses.active);e.stopPropagation();var r=[],s=B(u.move,w,F,{target:e.target,handle:i,connect:n.connect,listeners:r,startCalcPoint:e.calcPoint,baseSize:z(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:m.slice()}),a=B(u.end,w,V,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:n.handleNumbers}),l=B("mouseout",w,j,{target:e.target,handle:i,listeners:r,doNotReject:!0,handleNumbers:n.handleNumbers});r.push.apply(r,s.concat(a,l)),e.cursor&&(S.style.cursor=getComputedStyle(e.target).cursor,o.length>1&&As(p,t.cssClasses.drag),S.addEventListener("selectstart",Ss,!1)),n.handleNumbers.forEach(function(e){K("start",e)})}}function $(e){e.stopPropagation();var n=H(e.calcPoint),i=function(e){var t=100,n=!1;return o.forEach(function(i,r){if(!O(r)){var o=m[r],s=Math.abs(o-e);(s<t||s<=t&&e>o||100===s&&100===t)&&(n=r,t=s)}}),n}(n);!1!==i&&(t.events.snap||xs(p,t.cssClasses.tap,t.animationDuration),ne(i,n,!0,!0),te(),K("slide",i,!0),K("update",i,!0),t.events.snap?U(e,{handleNumbers:[i]}):(K("change",i,!0),K("set",i,!0)))}function q(e){var t=H(e.calcPoint),n=f.getStep(t),i=f.fromStepping(n);Object.keys(b).forEach(function(e){"hover"===e.split(".")[0]&&b[e].forEach(function(e){e.call(ce,i)})})}function G(e){e.fixed||o.forEach(function(e,t){B(u.start,e.children[0],U,{handleNumbers:[t]})}),e.tap&&B(u.start,i,$,{}),e.hover&&B(u.move,i,q,{hover:!0}),e.drag&&s.forEach(function(n,i){if(!1!==n&&0!==i&&i!==s.length-1){var r=o[i-1],a=o[i],l=[n],c=[r,a],d=[i-1,i];As(n,t.cssClasses.draggable),e.fixed&&(l.push(r.children[0]),l.push(a.children[0])),e.dragAll&&(c=o,d=v),l.forEach(function(e){B(u.start,e,U,{handles:c,handleNumbers:d,connect:n})})}})}function W(e,t){b[e]=b[e]||[],b[e].push(t),"update"===e.split(".")[0]&&o.forEach(function(e,t){K("update",t)})}function Y(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(b).forEach(function(e){var i=e.split(".")[0],r=e.substring(i.length);t&&t!==i||n&&n!==r||function(e){return e===js||e===Hs}(r)&&n!==r||delete b[e]})}function K(e,n,i){Object.keys(b).forEach(function(r){var o=r.split(".")[0];e===o&&b[r].forEach(function(e){e.call(ce,h.map(t.format.to),n,h.slice(),i||!1,m.slice(),ce)})})}function X(e,n,i,r,s,a,l){var c;return o.length>1&&!t.events.unconstrained&&(r&&n>0&&(c=f.getAbsoluteDistance(e[n-1],t.margin,!1),i=Math.max(i,c)),s&&n<o.length-1&&(c=f.getAbsoluteDistance(e[n+1],t.margin,!0),i=Math.min(i,c))),o.length>1&&t.limit&&(r&&n>0&&(c=f.getAbsoluteDistance(e[n-1],t.limit,!1),i=Math.min(i,c)),s&&n<o.length-1&&(c=f.getAbsoluteDistance(e[n+1],t.limit,!0),i=Math.max(i,c))),t.padding&&(0===n&&(c=f.getAbsoluteDistance(0,t.padding[0],!1),i=Math.max(i,c)),n===o.length-1&&(c=f.getAbsoluteDistance(100,t.padding[1],!0),i=Math.min(i,c))),l||(i=f.getStep(i)),!((i=ks(i))===e[n]&&!a)&&i}function J(e,n){var i=t.ort;return(i?n:e)+", "+(i?e:n)}function Q(e,n,i,r,o){var s=i.slice(),a=r[0],l=t.events.smoothSteps,c=[!e,e],u=[e,!e];r=r.slice(),e&&r.reverse(),r.length>1?r.forEach(function(e,t){var i=X(s,e,s[e]+n,c[t],u[t],!1,l);!1===i?n=0:(n=i-s[e],s[e]=i)}):c=u=[!0];var d=!1;r.forEach(function(e,t){d=ne(e,i[e]+n,c[t],u[t],!1,l)||d}),d&&(r.forEach(function(e){K("update",e),K("slide",e)}),null!=o&&K("drag",a))}function Z(e,n){return t.dir?100-e-n:e}function ee(e,n){m[e]=n,h[e]=f.fromStepping(n);var i="translate("+J(Z(n,0)-E+"%","0")+")";if(o[e].style[t.transformRule]=i,t.events.invertConnects&&m.length>1){var r=m.every(function(e,t,n){return 0===t||e>=n[t-1]});if(y!==!r)return y=!y,Xs(t,t.connect.map(function(e){return!e})),void le()}ie(e),ie(e+1),y&&(ie(e-1),ie(e+2))}function te(){v.forEach(function(e){var t=m[e]>50?-1:1,n=3+(o.length+t*e);o[e].style.zIndex=String(n)})}function ne(e,t,n,i,r,o){return r||(t=X(m,e,t,n,i,!1,o)),!1!==t&&(ee(e,t),!0)}function ie(e){if(s[e]){var n=m.slice();y&&n.sort(function(e,t){return e-t});var i=0,r=100;0!==e&&(i=n[e-1]),e!==s.length-1&&(r=n[e]);var o=r-i,a="translate("+J(Z(i,o)+"%","0")+")",l="scale("+J(o/100,"1")+")";s[e].style[t.transformRule]=a+" "+l}}function re(e,n){return null===e||!1===e||void 0===e?m[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=f.toStepping(e)),!1===e||isNaN(e)?m[n]:e)}function oe(e,n,i){var r=Ts(e),o=void 0===m[0];n=void 0===n||n,t.animate&&!o&&xs(p,t.cssClasses.tap,t.animationDuration),v.forEach(function(e){ne(e,re(r[e],e),!0,!1,i)});var s=1===v.length?0:1;if(o&&f.hasNoSize()&&(i=!0,m[0]=0,v.length>1)){var a=100/(v.length-1);v.forEach(function(e){m[e]=e*a})}for(;s<v.length;++s)v.forEach(function(e){ne(e,m[e],!0,!0,i)});te(),v.forEach(function(e){K("update",e),null!==r[e]&&n&&K("set",e)})}function se(e){if(void 0===e&&(e=!1),e)return 1===h.length?h[0]:h.slice(0);var n=h.map(t.format.to);return 1===n.length?n[0]:n}function ae(e){var n=m[e],i=f.getNearbySteps(n),r=h[e],o=i.thisStep.step,s=null;if(t.snap)return[r-i.stepBefore.startValue||null,i.stepAfter.startValue-r||null];!1!==o&&r+o>i.stepAfter.startValue&&(o=i.stepAfter.startValue-r),s=r>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&r-i.stepBefore.highestStep,100===n?o=null:0===n&&(s=null);var a=f.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(a))),null!==s&&!1!==s&&(s=Number(s.toFixed(a))),[s,o]}function le(){for(;r.firstChild;)r.removeChild(r.firstChild);for(var e=0;e<=t.handles;e++)s[e]=T(r,t.connect[e]),ie(e);G({drag:t.events.drag,fixed:!0})}As(c=p,t.cssClasses.target),0===t.dir?As(c,t.cssClasses.ltr):As(c,t.cssClasses.rtl),0===t.ort?As(c,t.cssClasses.horizontal):As(c,t.cssClasses.vertical),As(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),i=x(c,t.cssClasses.base),function(e,n){r=x(n,t.cssClasses.connects),o=[],(s=[]).push(T(r,e[0]));for(var i=0;i<t.handles;i++)o.push(k(n,i)),v[i]=i,s.push(T(r,e[i+1]))}(t.connect,i),G(t.events),oe(t.start),t.pips&&R(t.pips),t.tooltips&&D(),Y("update"+js),W("update"+js,function(e,n,i,r,s){v.forEach(function(e){var n=o[e],r=X(m,e,0,!0,!0,!0),a=X(m,e,100,!0,!0,!0),l=s[e],c=String(t.ariaFormat.to(i[e]));r=f.fromStepping(r).toFixed(1),a=f.fromStepping(a).toFixed(1),l=f.fromStepping(l).toFixed(1),n.children[0].setAttribute("aria-valuemin",r),n.children[0].setAttribute("aria-valuemax",a),n.children[0].setAttribute("aria-valuenow",l),n.children[0].setAttribute("aria-valuetext",c)})});var ce={destroy:function(){for(Y(js),Y(Hs),Object.keys(t.cssClasses).forEach(function(e){Os(p,t.cssClasses[e])});p.firstChild;)p.removeChild(p.firstChild);delete p.noUiSlider},steps:function(){return v.map(ae)},on:W,off:Y,get:se,set:oe,setHandle:function(e,t,n,i){if(!((e=Number(e))>=0&&e<v.length))throw new Error("noUiSlider: invalid handle number, got: "+e);ne(e,re(t,e),!0,!0,i),K("update",e),n&&K("set",e)},reset:function(e){oe(t.start,e)},disable:function(e){null!=e?(o[e].setAttribute("disabled",""),o[e].handle.removeAttribute("tabindex")):(p.setAttribute("disabled",""),o.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(o[e].removeAttribute("disabled"),o[e].handle.setAttribute("tabindex","0")):(p.removeAttribute("disabled"),o.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))},__moveHandles:function(e,t,n){Q(e,t,m,n)},options:n,updateOptions:function(e,i){var r=se(),o=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];o.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var s=da(n);o.forEach(function(n){void 0!==e[n]&&(t[n]=s[n])}),f=s.spectrum,t.margin=s.margin,t.limit=s.limit,t.padding=s.padding,t.pips?R(t.pips):I(),t.tooltips?D():M(),m=[],oe(ws(e.start)?e.start:r,i),e.connect&&le()},target:p,removePips:I,removeTooltips:M,getPositions:function(){return m.slice()},getTooltips:function(){return l},getOrigins:function(){return o},pips:R};return ce}var fa={__spectrum:Rs,cssClasses:Bs,create:function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=pa(e,da(t),t);return e.noUiSlider=n,n}},ha={start:[0],connect:!1,range:{min:0,max:100},cssPrefix:"range-slider",cssClasses:{target:"__target",base:"__base",origin:"__origin",handle:"__handle",handleLower:"__handle--lower",handleUpper:"__handle--upper",touchArea:"__touch-area",horizontal:"--horizontal",vertical:"--vertical",background:"__background",connect:"__connect",connects:"__connects",ltr:"--ltr",rtl:"--rtl",draggable:"--draggable",drag:"--state-drag",tap:"--state-tap",active:"--active",tooltip:"__tooltip",pips:"__pips",pipsHorizontal:"__pips--horizontal",pipsVertical:"__pips--vertical",marker:"__marker",markerHorizontal:"__marker--horizontal",markerVertical:"__marker--vertical",markerNormal:"__marker--normal",markerLarge:"__marker--large",markerSub:"__marker--sub",value:"__value",valueHorizontal:"__value--horizontal",valueVertical:"__value--vertical",valueNormal:"__value--normal",valueLarge:"__value--large",valueSub:"__value--sub"},format:{decimals:0}},ma=function(){return i(function e(n,i){var r=this;return t(this,e),this.handleSliderUpdate=function(e,t){var n=e[t];if(r.inputs[t]&&(r.inputs[t].value=n),r.outputs[t]){var i=r.outputs[t];i&&i.format?i.element.innerText=i.format.to(r.config.format.from(n)):i&&(i.element.innerText=n)}},this.element=n,this.config=Object.assign(Object.assign({},ha),i),this.inputs=[],this.outputs=[],this.handleSliderUpdate=this.handleSliderUpdate.bind(this),this.element.ODS_RangeSlider=this,this.init(),this},[{key:"init",value:function(){var e,t=this,n=this.element.getAttribute("data-rangeslider-config"),i={};if(n)try{i=JSON.parse(n)}catch(e){}if(this.config=Object.assign(Object.assign({},this.config),i),this.config.format=h(this.config.format),this.element.noUiSlider&&(this.element.noUiSlider=void 0,(null===(e=this.instance)||void 0===e?void 0:e.destroy)&&this.instance.destroy()),!this.config.range)throw new Error("RangeSlider config must include 'range'.");this.instance=fa.create(this.element,this.config),this.inputs=Array.from(document.querySelectorAll("input[name^=".concat(this.element.getAttribute("id"),"-]"))),this.outputs=this.inputs.map(function(e){var t=document.getElementById("".concat(e.getAttribute("id"),"-output"));if(t){var n=t.getAttribute("data-format");return{element:t,format:t.hasAttribute("data-format")&&n?h(JSON.parse(n)):void 0}}return!1}),this.instance.on("update",function(e,n){t.handleSliderUpdate(e.map(String),n)})}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy(),this.init()}},{key:"destroy",value:function(){var e,t;null===(e=this.instance)||void 0===e||e.off("update"),null===(t=this.instance)||void 0===t||t.destroy(),this.element.ODS_RangeSlider=null}}],[{key:"getInstance",value:function(e){return e&&e.ODS_RangeSlider?e.ODS_RangeSlider:null}}])}(),va={expandButtonSelector:"[data-subrow-toggle]",scrollableContainerSelector:".table-scrollable",responsiveTableSelector:'[data-table="responsive"]'},ga=function(){return i(function e(n,i){var r=this;return t(this,e),this.element=n,this.config=Object.assign(Object.assign({},va),i),this.addRole=this.addRole.bind(this),this.addARIA=this.addARIA.bind(this),this.onExpandClick=this.onExpandClick.bind(this),this.expandButtons=[],this.scrollableContainer=null,this.element.ODS_Table=this,this.resizeObserver=new ResizeObserver(function(e){if(r.scrollableContainer){var t=r.scrollableContainer.getBoundingClientRect();e.forEach(function(e){var n,i;e.contentRect.width>t.width?null===(n=r.scrollableContainer)||void 0===n||n.setAttribute("tabindex","0"):null===(i=r.scrollableContainer)||void 0===i||i.removeAttribute("tabindex")})}}),this.init(),this},[{key:"addRole",value:function(e,t){Array.from(this.element.querySelectorAll(e)).forEach(function(e){e.setAttribute("role",t)})}},{key:"addARIA",value:function(){try{this.element.setAttribute("role","table"),this.addRole("thead, tbody, tfoot","rowgroup"),this.addRole("tr","row"),this.addRole("td","cell"),this.addRole("th","columnheader"),this.addRole("th[scope=row]","rowheader")}catch(e){console.log("Table.addARIA(): "+e)}}},{key:"onExpandClick",value:function(e){var t,n=e.currentTarget,i=null!==(t=n.getAttribute("aria-controls"))&&void 0!==t?t:"",r=this.element.querySelectorAll(i.split(" ").map(function(e){return"#".concat(e)}).join(","));_({element:n,attribute:"aria-expanded"}),r.forEach(function(e){_({element:e,attribute:"hidden"})})}},{key:"init",value:function(){var e=this;this.expandButtons=Array.from(this.element.querySelectorAll(this.config.expandButtonSelector)),this.expandButtons.forEach(function(t){t.addEventListener("click",e.onExpandClick)}),this.element.matches(this.config.responsiveTableSelector)&&this.addARIA(),this.maybeInitScrollable()}},{key:"maybeInitScrollable",value:function(){if(this.scrollableContainer=this.element.closest(this.config.scrollableContainerSelector),this.scrollableContainer)return this.resizeObserver.observe(this.element),!0}},{key:"destroy",value:function(){var e=this;this.expandButtons.forEach(function(t){t.removeEventListener("click",e.onExpandClick)}),this.resizeObserver.disconnect(),this.expandButtons=[]}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Table?e.ODS_Table:null}}])}(),ba={tabSelector:'[role="tab"]'},ya=function(){return i(function e(n,i){return t(this,e),this.isActive=function(e){return!!e&&!e.hasAttribute("hidden")},this.isSelected=function(e){return"true"===e.getAttribute("aria-selected")},this.element=n,this.config=Object.assign(Object.assign({},ba),i),this.tabs=[],this.tabPanels=[],this.activeTabIndex=null,this.rovingTabindex=null,this.handleClick=this.handleClick.bind(this),this.handleTabFocus=this.handleTabFocus.bind(this),this.element.ODS_Tabs=this,this.init(),this},[{key:"init",value:function(){var e=this;this.tabs=Array.from(this.element.querySelectorAll(this.config.tabSelector)),this.tabs.map(function(t,n){var i=t.getAttribute("aria-controls");return e.tabPanels.push(i?document.getElementById(i):null),t.addEventListener("click",e.handleClick),t.addEventListener("focus",e.handleTabFocus),e.isSelected(t)&&(e.activeTabIndex=n),t}),this.rovingTabindex?this.rovingTabindex.update(this.tabs):this.rovingTabindex=new g(this.tabs,{direction:"any"}),null!==this.activeTabIndex?this.toggleTabPanel(this.tabPanels[this.activeTabIndex],"on"):this.tabs.length>0&&this.activateNthTab(0)}},{key:"destroy",value:function(){var e=this;this.tabs.map(function(t){return t.removeEventListener("click",e.handleClick),t.removeEventListener("focus",e.handleTabFocus),t}),this.tabs=[],this.tabPanels=[],this.rovingTabindex&&this.rovingTabindex.destroy(),this.element.ODS_Tabs=null}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"handleClick",value:function(e){var t=this,n=e.currentTarget;n.hasAttribute("aria-disabled")?e.preventDefault():(this.tabs.map(function(e,i){return e===n?(t.activeTabIndex=i,t.toggleTab(e,"on")):t.toggleTab(e,"off")}),this.tabPanels.map(function(e){return e&&e.getAttribute("id")===n.getAttribute("aria-controls")?t.toggleTabPanel(e,"on"):t.toggleTabPanel(e,"off")}))}},{key:"toggleTab",value:function(e,t){var n=this.isSelected(e);"on"!==t||n||(e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")),"off"===t&&n&&(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"))}},{key:"toggleTabPanel",value:function(e,t){if(e){var n=this.isActive(e);"on"!==t||n||e.removeAttribute("hidden"),"off"===t&&n&&e.setAttribute("hidden","")}}},{key:"activateNthTab",value:function(e){var t=this;this.tabs.map(function(n,i){return i===e?(t.activeTabIndex=i,t.toggleTab(n,"on")):t.toggleTab(n,"off")}),this.tabPanels.map(function(n,i){return i===e?t.toggleTabPanel(n,"on"):t.toggleTabPanel(n,"off")})}},{key:"handleTabFocus",value:function(){this.rovingTabindex&&!this.rovingTabindex.isActive&&this.rovingTabindex.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Tabs?e.ODS_Tabs:null}}])}(),_a={nonEditableInput:!1,min:1,max:999,defaultValue:1},wa=function(){return i(function e(n,i){t(this,e),this.element=n,this.config=Object.assign(Object.assign({},_a),i),this.input=null,this.numberDisplay=null,this.add=null,this.remove=null,this.element.ODS_InputStepper=this,this.handleButtonClick=this.handleButtonClick.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleButtonState=this.handleButtonState.bind(this),this.init()},[{key:"handleInputClick",value:function(){this.input&&this.input.select()}},{key:"handleButtonState",value:function(){var e,t,n,i,r=this.config,o=r.min,s=r.max,a=this.config.nonEditableInput?parseInt(null!==(i=null===(n=this.numberDisplay)||void 0===n?void 0:n.textContent)&&void 0!==i?i:"0",10):parseInt(null!==(t=null===(e=this.input)||void 0===e?void 0:e.value)&&void 0!==t?t:"0",10);this.add&&"number"==typeof s&&a>=s?(this.add.setAttribute("aria-disabled","true"),this.add.setAttribute("disabled","true")):this.add&&(this.add.removeAttribute("aria-disabled"),this.add.removeAttribute("disabled")),this.remove&&"number"==typeof o&&a<=o?(this.remove.setAttribute("aria-disabled","true"),this.remove.setAttribute("disabled","true")):this.remove&&(this.remove.removeAttribute("aria-disabled"),this.remove.removeAttribute("disabled"))}},{key:"handleInputChange",value:function(e){var t=this.config,n=t.min,i=t.max,r=e.target;r&&(n&&Number(r.value)<=n&&(r.value=String(n)),i&&Number(r.value)>=i&&(r.value=String(i)))}},{key:"handleButtonClick",value:function(e){var t,n,i,r,o=this.config,s=o.min,a=o.max,l=e.target,c=this.config.nonEditableInput?parseInt(null!==(r=null===(i=this.numberDisplay)||void 0===i?void 0:i.textContent)&&void 0!==r?r:"0",10):parseInt(null!==(n=null===(t=this.input)||void 0===t?void 0:t.value)&&void 0!==n?n:"0",10);if(l.classList.contains("input-stepper__button--minus")){if(s&&c<=s){if("true"===l.getAttribute("disabled"))return;return l.setAttribute("aria-disabled","true"),void l.setAttribute("disabled","true")}c-=1}if(l.classList.contains("input-stepper__button--plus")){if(a&&c>=a){if("true"===l.getAttribute("disabled"))return;return l.setAttribute("aria-disabled","true"),void l.setAttribute("disabled","true")}c+=1}!this.config.nonEditableInput&&this.input?this.input.value=String(c):this.numberDisplay&&(this.numberDisplay.textContent=String(c)),this.handleButtonState()}},{key:"init",value:function(){var e=this.element.getAttribute("data-inputstepper"),t={};try{e&&e.trim().startsWith("{")&&(t=JSON.parse(e))}catch(e){t={}}this.config=Object.assign(Object.assign({},this.config),t),this.config.nonEditableInput?(this.numberDisplay=this.element.querySelector(".input-stepper__number"),this.numberDisplay&&(this.numberDisplay.textContent=String(this.config.defaultValue))):(this.input=this.element.querySelector(".input-stepper__field"),this.input&&(this.input.value=String(this.config.defaultValue))),this.add=this.element.querySelector(".input-stepper__button--plus"),this.remove=this.element.querySelector(".input-stepper__button--minus");var n=this.config.defaultValue;void 0!==n&&(!this.config.nonEditableInput&&this.input?this.input.value=String(n):this.numberDisplay&&(this.numberDisplay.textContent=String(n))),this.element.classList.contains("input-stepper--disabled")||(this.add&&this.add.addEventListener("click",this.handleButtonClick),this.remove&&this.remove.addEventListener("click",this.handleButtonClick),!this.config.nonEditableInput&&this.input&&(this.input.addEventListener("click",this.handleInputClick),this.input.addEventListener("change",this.handleInputChange)),this.handleButtonState())}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){!this.config.nonEditableInput&&this.input&&(this.input.removeEventListener("click",this.handleInputClick),this.input.removeEventListener("change",this.handleInputChange)),this.add&&this.add.removeEventListener("click",this.handleButtonClick),this.remove&&this.remove.removeEventListener("click",this.handleButtonClick)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_InputStepper?e.ODS_InputStepper:null}}])}();var Sa=function(){return i(function e(n){t(this,e),this.element=n,this.children=null,this.updateHeight=this.updateHeight.bind(this),this.element.ODS_SameHeight=this,this.intervalId=null,this.init()},[{key:"temporarilyShowHiddenElements",value:function(){var e=this;this.originalDisplayStates=[],this.children.forEach(function(t){var n=t.closest('[role="tabpanel"]'),i=t.closest('[role="dialog"]');n&&n.hasAttribute("hidden")&&(e.originalDisplayStates.push({element:n,display:n.style.display}),n.style.display="block",n.removeAttribute("hidden")),i&&i.hasAttribute("aria-hidden")&&(e.originalDisplayStates.push({element:i,display:i.style.display}),i.style.display="block",i.removeAttribute("aria-hidden"))})}},{key:"restoreHiddenElements",value:function(){this.originalDisplayStates.forEach(function(e){var t=e.element,n=e.display;t.style.display=n,"tabpanel"===t.getAttribute("role")?t.setAttribute("hidden",!0):"dialog"===t.getAttribute("role")&&t.setAttribute("aria-hidden",!0)})}},{key:"updateHeight",value:function(){this.temporarilyShowHiddenElements();for(var e=this.element.querySelectorAll('[data-same-height-child="true"]'),t=this.groupElementsByTypeAndPosition(e),n=0,i=Object.entries(t);n<i.length;n++){var a=o(i[n],2)[1],l=[],c=[];if(a.length){var u,d=a[0].getBoundingClientRect().top,p=r(a);try{for(p.s();!(u=p.n()).done;){var f=u.value;f.getBoundingClientRect().top===d?c.push(f):(l.push(s(c)),(c=[]).push(f)),d=f.getBoundingClientRect().top}}catch(e){p.e(e)}finally{p.f()}l.push(s(c)),l.forEach(function(e){if(e.length>1){var t=0;e.forEach(function(e){e&&(e.style.height&&(e.style.height=""),e.offsetHeight>t&&(t=e.offsetHeight))}),e.forEach(function(e){e.style.height=t+"px"})}else e.forEach(function(e){e.style.height&&(e.style.height=null)})})}}this.restoreHiddenElements()}},{key:"groupElementsByTypeAndPosition",value:function(e){var t={};return e.forEach(function(e){var n=e.getAttribute("data-same-height-group")||"default";t[n]||(t[n]=[]),t[n].push(e)}),t}},{key:"init",value:function(){var e=this,t=[];if(this.children=this.element.querySelectorAll('[data-same-height-child="true"]'),this.children.forEach(function(e){e.querySelectorAll("img").forEach(function(e){e.complete||t.push(e)})}),0===t.length)this.updateHeight();else{var n=0;this.intervalId=setInterval(function(){var i=!1;t.forEach(function(e,t,n){e.complete&&(n.splice(t,1),i=!0)}),i&&e.updateHeight&&e.updateHeight(),(++n>=15||0===t.length)&&(t.length&&e.updateHeight&&e.updateHeight(),window.clearInterval(e.intervalId))},400)}window.addEventListener("resize",this.updateHeight)}},{key:"update",value:function(){this.destroy(),this.init()}},{key:"destroy",value:function(){window.removeEventListener("resize",this.updateHeight),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}}],[{key:"getInstance",value:function(e){return e&&e.ODS_SameHeight?e.ODS_SameHeight:null}}])}(),Ea=[{Module:E,name:"Accordion",selector:"[data-accordion]"},{Module:H,name:"Autocomplete",selector:"[data-autocomplete]"},{Module:xt,name:"DatePicker",selector:"[data-datepicker]"},{Module:Or,name:"Dropdown",selector:"[data-dropdown]"},{Module:Tt,name:"BlockAction",selector:"[data-block-action]"},{Module:Cr,name:"Carousel",selector:"[data-carousel]"},{Module:Dr,name:"FeatureAccordion",selector:"[data-feature-accordion]"},{Module:Ho,name:"File",selector:"[data-file-input]"},{Module:Fo,name:"Loader",selector:"[data-loader]"},{Module:bs,name:"Modal",selector:"[data-modal]"},{Module:Sa,name:"SameHeight",selector:"[data-same-height]"},{Module:ma,name:"RangeSlider",selector:"[data-rangeslider]"},{Module:wa,name:"InputStepper",selector:"[data-inputstepper]"},{Module:ga,name:"Table",selector:"[data-table]"},{Module:ya,name:"Tabs",selector:"[data-tabs]"},{Module:y,name:"Toggle",selector:"[data-toggle]"},{Module:rr,name:"Tooltip",selector:"[data-tooltip]"}];window.ODS=window.ODS||{modules:{},instances:{},moduleSelectorPairs:{}},window.ODS.initModulesWithin=function(e){var t={};return window.ODS.moduleSelectorPairs.forEach(function(n){var i=m(n.name),r=Array.from(e.querySelectorAll(n.selector));window&&window.ODS&&window.ODS.instances[i]&&window.ODS.instances[i].forEach(function(e){r.forEach(function(t,n){t.isSameNode(e.element)&&r.splice(n,1)})}),r.length&&(Array.isArray(window.ODS.instances[i])||(window.ODS.instances[i]=[]),t[i]=r.map(function(e){return new n.Module(e)}),window.ODS.instances[i]=[].concat(s(window.ODS.instances[i]),s(t[i])))}),t},window.ODS.destroyModulesWithin=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return Object.keys(window.ODS.instances).forEach(function(i){window.ODS.instances[i].forEach(function(r){"object"!==l(n[i])&&(n[i]=[]);var o,s=e.contains(r.element);"modal"===i?s=null===(o=r.instance)||void 0===o?void 0:o._openers.every(function(t){return e.contains(t)}):"tooltip"===i&&(s=e.contains(r.trigger));s&&(r.destroy(),n[i].push(r)),s&&t&&["modal","tooltip"].includes(i)&&r.element.remove()}),window.ODS.instances[i]=window.ODS.instances[i].filter(function(e){return!n[i].includes(e)})}),n},window.ODS.moduleSelectorPairs=Ea,window.addEventListener("DOMContentLoaded",function(){console.log("ODS modules loaded"),Ea.forEach(function(e){window.ODS.modules[e.name]=e.Module,window.ODS.instances[m(e.name)]=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Array.from(document.querySelectorAll(t)).map(function(t){return new e(t,n)})}(e.Module,e.selector)}),window.dispatchEvent(new Event("ODSLoaded"))});
2444
8
  //# sourceMappingURL=static.js.map