q2-tecton-elements 1.51.1 → 1.51.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 (469) hide show
  1. package/dist/cjs/click-elsewhere_2.cjs.entry.js +66 -71
  2. package/dist/cjs/click-elsewhere_2.cjs.entry.js.map +1 -1
  3. package/dist/cjs/{index-9aa4a776.js → index-c4a56631.js} +1 -21
  4. package/dist/cjs/index-c4a56631.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/q2-action-group.cjs.entry.js +1 -1
  7. package/dist/cjs/q2-action-sheet.cjs.entry.js +2 -2
  8. package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
  9. package/dist/cjs/q2-badge_7.cjs.entry.js +12 -4
  10. package/dist/cjs/q2-badge_7.cjs.entry.js.map +1 -1
  11. package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
  12. package/dist/cjs/q2-card.cjs.entry.js +1 -1
  13. package/dist/cjs/q2-carousel-pane.cjs.entry.js +3 -3
  14. package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
  15. package/dist/cjs/q2-chart-area.cjs.entry.js +2 -2
  16. package/dist/cjs/q2-chart-bar.cjs.entry.js +2 -2
  17. package/dist/cjs/q2-chart-donut.cjs.entry.js +2 -2
  18. package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
  19. package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
  20. package/dist/cjs/q2-currency.cjs.entry.js +1 -1
  21. package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
  22. package/dist/cjs/q2-detail.cjs.entry.js +2 -2
  23. package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
  24. package/dist/cjs/q2-dropdown.cjs.entry.js +10 -12
  25. package/dist/cjs/q2-dropdown.cjs.entry.js.map +1 -1
  26. package/dist/cjs/q2-editable-field.cjs.entry.js +7 -8
  27. package/dist/cjs/q2-editable-field.cjs.entry.js.map +1 -1
  28. package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
  29. package/dist/cjs/q2-item.cjs.entry.js +2 -2
  30. package/dist/cjs/q2-legend.cjs.entry.js +1 -1
  31. package/dist/cjs/q2-list.cjs.entry.js +2 -2
  32. package/dist/cjs/q2-loc.cjs.entry.js +2 -2
  33. package/dist/cjs/q2-message.cjs.entry.js +2 -2
  34. package/dist/cjs/q2-month-picker.cjs.entry.js +3 -3
  35. package/dist/cjs/q2-optgroup.cjs.entry.js +2 -2
  36. package/dist/cjs/q2-option-list.cjs.entry.js +1 -1
  37. package/dist/cjs/q2-option.cjs.entry.js +1 -1
  38. package/dist/cjs/q2-pagination.cjs.entry.js +3 -3
  39. package/dist/cjs/q2-pill.cjs.entry.js +2 -2
  40. package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
  41. package/dist/cjs/q2-radio.cjs.entry.js +1 -1
  42. package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
  43. package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
  44. package/dist/cjs/q2-section.cjs.entry.js +3 -3
  45. package/dist/cjs/q2-select.cjs.entry.js +93 -16
  46. package/dist/cjs/q2-select.cjs.entry.js.map +1 -1
  47. package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
  48. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +2 -2
  49. package/dist/cjs/q2-stepper.cjs.entry.js +2 -2
  50. package/dist/cjs/q2-tag.cjs.entry.js +2 -2
  51. package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
  52. package/dist/cjs/q2-textarea.cjs.entry.js +3 -2
  53. package/dist/cjs/q2-textarea.cjs.entry.js.map +1 -1
  54. package/dist/cjs/q2-tooltip.cjs.entry.js +1 -1
  55. package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
  56. package/dist/collection/components/click-elsewhere/click-elsewhere.js.map +1 -1
  57. package/dist/collection/components/click-elsewhere/test/click-elsewhere-test.e2e.js.map +1 -1
  58. package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
  59. package/dist/collection/components/q2-action-group/q2-action-group.js.map +1 -1
  60. package/dist/collection/components/q2-action-group/test/q2-action-group.e2e.js.map +1 -1
  61. package/dist/collection/components/q2-action-group/test/q2-action-group.spec.js.map +1 -1
  62. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
  63. package/dist/collection/components/q2-action-sheet/q2-action-sheet.js.map +1 -1
  64. package/dist/collection/components/q2-action-sheet/test/q2-action-sheet-test.e2e.js.map +1 -1
  65. package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
  66. package/dist/collection/components/q2-avatar/q2-avatar.js.map +1 -1
  67. package/dist/collection/components/q2-avatar/test/q2-avatar-test.e2e.js.map +1 -1
  68. package/dist/collection/components/q2-badge/q2-badge.js.map +1 -1
  69. package/dist/collection/components/q2-badge/test/q2-badge-test.e2e.js.map +1 -1
  70. package/dist/collection/components/q2-btn/q2-btn.js +4 -0
  71. package/dist/collection/components/q2-btn/q2-btn.js.map +1 -1
  72. package/dist/collection/components/q2-btn/test/q2-btn-test.e2e.js.map +1 -1
  73. package/dist/collection/components/q2-calendar/q2-calendar-helpers.js.map +1 -1
  74. package/dist/collection/components/q2-calendar/q2-calendar-types.js.map +1 -1
  75. package/dist/collection/components/q2-calendar/q2-calendar-validation.js.map +1 -1
  76. package/dist/collection/components/q2-calendar/q2-calendar.js.map +1 -1
  77. package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
  78. package/dist/collection/components/q2-calendar/q2-month-picker.js.map +1 -1
  79. package/dist/collection/components/q2-calendar/test/helpers-test.e2e.js.map +1 -1
  80. package/dist/collection/components/q2-calendar/test/q2-calendar-month-picker-test.e2e.js.map +1 -1
  81. package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js +2 -2
  82. package/dist/collection/components/q2-calendar/test/q2-calendar-test.e2e.js.map +1 -1
  83. package/dist/collection/components/q2-calendar/test/validation-test.e2e.js.map +1 -1
  84. package/dist/collection/components/q2-card/q2-card.js.map +1 -1
  85. package/dist/collection/components/q2-card/test/q2-card-test.e2e.js.map +1 -1
  86. package/dist/collection/components/q2-carousel/q2-carousel.js.map +1 -1
  87. package/dist/collection/components/q2-carousel/test/q2-carousel-test.e2e.js.map +1 -1
  88. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
  89. package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js.map +1 -1
  90. package/dist/collection/components/q2-carousel-pane/test/q2-carousel-pane-test.e2e.js.map +1 -1
  91. package/dist/collection/components/q2-carousel-pane/test/q2-carousel-pane-test.spec.js.map +1 -1
  92. package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
  93. package/dist/collection/components/q2-chart-area/q2-chart-area.js.map +1 -1
  94. package/dist/collection/components/q2-chart-area/test/q2-chart-area-test.e2e.js.map +1 -1
  95. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
  96. package/dist/collection/components/q2-chart-bar/q2-chart-bar.js.map +1 -1
  97. package/dist/collection/components/q2-chart-bar/test/q2-chart-bar-test.e2e.js.map +1 -1
  98. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
  99. package/dist/collection/components/q2-chart-donut/q2-chart-donut.js.map +1 -1
  100. package/dist/collection/components/q2-chart-donut/test/q2-chart-donut-test.e2e.js.map +1 -1
  101. package/dist/collection/components/q2-checkbox/q2-checkbox.js.map +1 -1
  102. package/dist/collection/components/q2-checkbox/test/q2-checkbox-test.e2e.js.map +1 -1
  103. package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js.map +1 -1
  104. package/dist/collection/components/q2-checkbox-group/test/q2-checkbox-group-test.e2e.js.map +1 -1
  105. package/dist/collection/components/q2-currency/q2-currency.js +1 -1
  106. package/dist/collection/components/q2-currency/q2-currency.js.map +1 -1
  107. package/dist/collection/components/q2-currency/test/q2-currency-test.e2e.js.map +1 -1
  108. package/dist/collection/components/q2-data-table/q2-data-table.js.map +1 -1
  109. package/dist/collection/components/q2-data-table/test/q2-data-table-test.e2e.js.map +1 -1
  110. package/dist/collection/components/q2-detail/q2-detail.js +1 -1
  111. package/dist/collection/components/q2-detail/q2-detail.js.map +1 -1
  112. package/dist/collection/components/q2-detail/test/q2-detail-test.e2e.js.map +1 -1
  113. package/dist/collection/components/q2-dropdown/q2-dropdown.js +9 -11
  114. package/dist/collection/components/q2-dropdown/q2-dropdown.js.map +1 -1
  115. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js +5 -17
  116. package/dist/collection/components/q2-dropdown/test/q2-dropdown-test.e2e.js.map +1 -1
  117. package/dist/collection/components/q2-dropdown-item/q2-dropdown-item.js.map +1 -1
  118. package/dist/collection/components/q2-dropdown-item/test/q2-dropdown-item-test.e2e.js.map +1 -1
  119. package/dist/collection/components/q2-editable-field/q2-editable-field.js +12 -7
  120. package/dist/collection/components/q2-editable-field/q2-editable-field.js.map +1 -1
  121. package/dist/collection/components/q2-editable-field/test/q2-editable-field-test.e2e.js.map +1 -1
  122. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
  123. package/dist/collection/components/q2-formatted-text/q2-formatted-text.js.map +1 -1
  124. package/dist/collection/components/q2-formatted-text/test/q2-formatted-text-test.e2e.js.map +1 -1
  125. package/dist/collection/components/q2-icon/q2-icon-types.js.map +1 -1
  126. package/dist/collection/components/q2-icon/q2-icon.js +4 -0
  127. package/dist/collection/components/q2-icon/q2-icon.js.map +1 -1
  128. package/dist/collection/components/q2-icon/test/q2-icon-test.e2e.js.map +1 -1
  129. package/dist/collection/components/q2-input/formatting/alpha.js.map +1 -1
  130. package/dist/collection/components/q2-input/formatting/alphanumeric.js.map +1 -1
  131. package/dist/collection/components/q2-input/formatting/credit-card.js.map +1 -1
  132. package/dist/collection/components/q2-input/formatting/credit-card.spec.js.map +1 -1
  133. package/dist/collection/components/q2-input/formatting/currency.js.map +1 -1
  134. package/dist/collection/components/q2-input/formatting/date.js.map +1 -1
  135. package/dist/collection/components/q2-input/formatting/generic.js.map +1 -1
  136. package/dist/collection/components/q2-input/formatting/number.js.map +1 -1
  137. package/dist/collection/components/q2-input/formatting/numeric.js.map +1 -1
  138. package/dist/collection/components/q2-input/formatting/phone.js.map +1 -1
  139. package/dist/collection/components/q2-input/formatting/postal.js.map +1 -1
  140. package/dist/collection/components/q2-input/formatting/ssn.js.map +1 -1
  141. package/dist/collection/components/q2-input/formatting/tin.js.map +1 -1
  142. package/dist/collection/components/q2-input/q2-input-types.js.map +1 -1
  143. package/dist/collection/components/q2-input/q2-input.js +1 -1
  144. package/dist/collection/components/q2-input/q2-input.js.map +1 -1
  145. package/dist/collection/components/q2-input/test/q2-input-credit-card-test.e2e.js.map +1 -1
  146. package/dist/collection/components/q2-input/test/q2-input-test.e2e.js.map +1 -1
  147. package/dist/collection/components/q2-item/q2-item.js +1 -1
  148. package/dist/collection/components/q2-item/q2-item.js.map +1 -1
  149. package/dist/collection/components/q2-item/test/q2-item-test.e2e.js.map +1 -1
  150. package/dist/collection/components/q2-item/test/q2-item-test.spec.js.map +1 -1
  151. package/dist/collection/components/q2-legend/q2-legend.js +1 -1
  152. package/dist/collection/components/q2-legend/q2-legend.js.map +1 -1
  153. package/dist/collection/components/q2-legend/test/q2-legend-test.e2e.js.map +1 -1
  154. package/dist/collection/components/q2-legend/test/q2-legend-test.spec.js.map +1 -1
  155. package/dist/collection/components/q2-link/q2-link.js.map +1 -1
  156. package/dist/collection/components/q2-link/test/q2-link-test.e2e.js.map +1 -1
  157. package/dist/collection/components/q2-list/q2-list.js +1 -1
  158. package/dist/collection/components/q2-list/q2-list.js.map +1 -1
  159. package/dist/collection/components/q2-list/test/q2-list-test.e2e.js.map +1 -1
  160. package/dist/collection/components/q2-loading/q2-loading.js.map +1 -1
  161. package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js.map +1 -1
  162. package/dist/collection/components/q2-loading/skeleton/shapes.js.map +1 -1
  163. package/dist/collection/components/q2-loading/test/q2-loading-element-test.e2e.js.map +1 -1
  164. package/dist/collection/components/q2-loading/test/q2-loading-test.e2e.js.map +1 -1
  165. package/dist/collection/components/q2-loc/q2-loc.js +1 -1
  166. package/dist/collection/components/q2-loc/q2-loc.js.map +1 -1
  167. package/dist/collection/components/q2-loc/test/q2-loc-test.e2e.js.map +1 -1
  168. package/dist/collection/components/q2-message/q2-message.js +1 -1
  169. package/dist/collection/components/q2-message/q2-message.js.map +1 -1
  170. package/dist/collection/components/q2-message/test/q2-message-test.e2e.js.map +1 -1
  171. package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
  172. package/dist/collection/components/q2-optgroup/q2-optgroup.js.map +1 -1
  173. package/dist/collection/components/q2-optgroup/test/q2-optgroup-test.e2e.js.map +1 -1
  174. package/dist/collection/components/q2-option/q2-option.js +1 -1
  175. package/dist/collection/components/q2-option/q2-option.js.map +1 -1
  176. package/dist/collection/components/q2-option/test/q2-option-test.e2e.js.map +1 -1
  177. package/dist/collection/components/q2-option-list/q2-option-list.js.map +1 -1
  178. package/dist/collection/components/q2-option-list/test/q2-option-list-test.e2e.js.map +1 -1
  179. package/dist/collection/components/q2-pagination/q2-pagination.js +2 -2
  180. package/dist/collection/components/q2-pagination/q2-pagination.js.map +1 -1
  181. package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js +1 -0
  182. package/dist/collection/components/q2-pagination/test/q2-pagination-test.e2e.js.map +1 -1
  183. package/dist/collection/components/q2-pill/q2-pill.js +1 -1
  184. package/dist/collection/components/q2-pill/q2-pill.js.map +1 -1
  185. package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js +1 -1
  186. package/dist/collection/components/q2-pill/test/q2-pill-test.e2e.js.map +1 -1
  187. package/dist/collection/components/q2-popover/q2-popover.css +18 -10
  188. package/dist/collection/components/q2-popover/q2-popover.js +66 -70
  189. package/dist/collection/components/q2-popover/q2-popover.js.map +1 -1
  190. package/dist/collection/components/q2-popover/test/q2-popover-test.e2e.js +1 -83
  191. package/dist/collection/components/q2-popover/test/q2-popover-test.e2e.js.map +1 -1
  192. package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js +743 -435
  193. package/dist/collection/components/q2-popover/test/q2-popover-test.spec.js.map +1 -1
  194. package/dist/collection/components/q2-radio/q2-radio.js.map +1 -1
  195. package/dist/collection/components/q2-radio/test/q2-radio-test.e2e.js.map +1 -1
  196. package/dist/collection/components/q2-radio-group/q2-radio-group.js.map +1 -1
  197. package/dist/collection/components/q2-radio-group/test/q2-radio-group-test.e2e.js.map +1 -1
  198. package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
  199. package/dist/collection/components/q2-relative-time/q2-relative-time.js.map +1 -1
  200. package/dist/collection/components/q2-relative-time/test/q2-relative-time-test.e2e.js.map +1 -1
  201. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
  202. package/dist/collection/components/q2-resize-observer/q2-resize-observer.js.map +1 -1
  203. package/dist/collection/components/q2-resize-observer/test/q2-resize-observer.e2e.js.map +1 -1
  204. package/dist/collection/components/q2-resize-observer/test/q2-resize-observer.spec.js.map +1 -1
  205. package/dist/collection/components/q2-section/q2-section.js +2 -2
  206. package/dist/collection/components/q2-section/q2-section.js.map +1 -1
  207. package/dist/collection/components/q2-section/test/q2-section-test.e2e.js.map +1 -1
  208. package/dist/collection/components/q2-select/q2-select.js +114 -18
  209. package/dist/collection/components/q2-select/q2-select.js.map +1 -1
  210. package/dist/collection/components/q2-select/test/q2-select-test.e2e.js +1 -2
  211. package/dist/collection/components/q2-select/test/q2-select-test.e2e.js.map +1 -1
  212. package/dist/collection/components/q2-select/test/q2-select-test.spec.js +412 -0
  213. package/dist/collection/components/q2-select/test/q2-select-test.spec.js.map +1 -0
  214. package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
  215. package/dist/collection/components/q2-stepper/q2-stepper.js.map +1 -1
  216. package/dist/collection/components/q2-stepper/test/q2-stepper-test.e2e.js.map +1 -1
  217. package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js.map +1 -1
  218. package/dist/collection/components/q2-stepper-pane/test/q2-stepper-pane-test.e2e.js.map +1 -1
  219. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js +1 -1
  220. package/dist/collection/components/q2-stepper-vertical/q2-stepper-vertical.js.map +1 -1
  221. package/dist/collection/components/q2-stepper-vertical/test/q2-stepper-vertical-test.e2e.js.map +1 -1
  222. package/dist/collection/components/q2-tab-container/q2-tab-container.js +1 -1
  223. package/dist/collection/components/q2-tab-container/q2-tab-container.js.map +1 -1
  224. package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.e2e.js.map +1 -1
  225. package/dist/collection/components/q2-tab-container/test/q2-tab-container-test.spec.js.map +1 -1
  226. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js +1 -1
  227. package/dist/collection/components/q2-tab-pane/q2-tab-pane.js.map +1 -1
  228. package/dist/collection/components/q2-tab-pane/test/q2-tab-pane-test.e2e.js.map +1 -1
  229. package/dist/collection/components/q2-tag/q2-tag.js +1 -1
  230. package/dist/collection/components/q2-tag/q2-tag.js.map +1 -1
  231. package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js +6 -1
  232. package/dist/collection/components/q2-tag/test/q2-tag-test.e2e.js.map +1 -1
  233. package/dist/collection/components/q2-textarea/q2-textarea.js +2 -1
  234. package/dist/collection/components/q2-textarea/q2-textarea.js.map +1 -1
  235. package/dist/collection/components/q2-textarea/test/q2-textarea-test.e2e.js.map +1 -1
  236. package/dist/collection/components/q2-tooltip/q2-tooltip.js.map +1 -1
  237. package/dist/collection/components/q2-tooltip/test/q2-tooltip-test.e2e.js.map +1 -1
  238. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane-types.js.map +1 -1
  239. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js +2 -2
  240. package/dist/collection/components/tecton-tab-pane/tecton-tab-pane.js.map +1 -1
  241. package/dist/collection/components/tecton-tab-pane/test/tecton-tab-pane-test.e2e.js.map +1 -1
  242. package/dist/collection/index.js.map +1 -1
  243. package/dist/collection/utils/action-sheet.js.map +1 -1
  244. package/dist/collection/utils/charting.js.map +1 -1
  245. package/dist/collection/utils/helpers.js.map +1 -1
  246. package/dist/collection/utils/index.js.map +1 -1
  247. package/dist/collection/utils/sanitize-html-string.js.map +1 -1
  248. package/dist/collection/utils/sanitize-regex-string.js.map +1 -1
  249. package/dist/collection/utils/test/action-sheet-test.e2e.js.map +1 -1
  250. package/dist/collection/utils/test/index.spec.js.map +1 -1
  251. package/dist/components/index2.js +1 -20
  252. package/dist/components/index2.js.map +1 -1
  253. package/dist/components/q2-action-group.js +1 -1
  254. package/dist/components/q2-action-sheet.js +1 -1
  255. package/dist/components/q2-avatar2.js +1 -1
  256. package/dist/components/q2-btn2.js +4 -0
  257. package/dist/components/q2-btn2.js.map +1 -1
  258. package/dist/components/q2-carousel-pane.js +2 -2
  259. package/dist/components/q2-chart-area.js +1 -1
  260. package/dist/components/q2-chart-bar.js +1 -1
  261. package/dist/components/q2-chart-donut.js +1 -1
  262. package/dist/components/q2-currency.js +1 -1
  263. package/dist/components/q2-detail.js +1 -1
  264. package/dist/components/q2-dropdown.js +9 -11
  265. package/dist/components/q2-dropdown.js.map +1 -1
  266. package/dist/components/q2-editable-field.js +7 -8
  267. package/dist/components/q2-editable-field.js.map +1 -1
  268. package/dist/components/q2-formatted-text.js +1 -1
  269. package/dist/components/q2-icon2.js +4 -0
  270. package/dist/components/q2-icon2.js.map +1 -1
  271. package/dist/components/q2-input2.js +1 -1
  272. package/dist/components/q2-item.js +1 -1
  273. package/dist/components/q2-legend2.js +1 -1
  274. package/dist/components/q2-list.js +1 -1
  275. package/dist/components/q2-loc.js +1 -1
  276. package/dist/components/q2-message2.js +1 -1
  277. package/dist/components/q2-month-picker.js +2 -2
  278. package/dist/components/q2-optgroup2.js +1 -1
  279. package/dist/components/q2-option2.js +1 -1
  280. package/dist/components/q2-pagination.js +2 -2
  281. package/dist/components/q2-pill.js +1 -1
  282. package/dist/components/q2-popover2.js +65 -70
  283. package/dist/components/q2-popover2.js.map +1 -1
  284. package/dist/components/q2-relative-time.js +1 -1
  285. package/dist/components/q2-resize-observer2.js +1 -1
  286. package/dist/components/q2-section.js +2 -2
  287. package/dist/components/q2-select2.js +96 -19
  288. package/dist/components/q2-select2.js.map +1 -1
  289. package/dist/components/q2-stepper-vertical.js +1 -1
  290. package/dist/components/q2-stepper.js +1 -1
  291. package/dist/components/q2-tab-container.js +1 -1
  292. package/dist/components/q2-tab-pane.js +1 -1
  293. package/dist/components/q2-tag.js +1 -1
  294. package/dist/components/q2-textarea.js +2 -1
  295. package/dist/components/q2-textarea.js.map +1 -1
  296. package/dist/components/tecton-tab-pane.js +2 -2
  297. package/dist/esm/click-elsewhere_2.entry.js +66 -71
  298. package/dist/esm/click-elsewhere_2.entry.js.map +1 -1
  299. package/dist/esm/{index-844fc010.js → index-a185b189.js} +2 -21
  300. package/dist/esm/index-a185b189.js.map +1 -0
  301. package/dist/esm/loader.js +1 -1
  302. package/dist/esm/q2-action-group.entry.js +1 -1
  303. package/dist/esm/q2-action-sheet.entry.js +2 -2
  304. package/dist/esm/q2-avatar.entry.js +1 -1
  305. package/dist/esm/q2-badge_7.entry.js +12 -4
  306. package/dist/esm/q2-badge_7.entry.js.map +1 -1
  307. package/dist/esm/q2-calendar.entry.js +1 -1
  308. package/dist/esm/q2-card.entry.js +1 -1
  309. package/dist/esm/q2-carousel-pane.entry.js +3 -3
  310. package/dist/esm/q2-carousel.entry.js +1 -1
  311. package/dist/esm/q2-chart-area.entry.js +2 -2
  312. package/dist/esm/q2-chart-bar.entry.js +2 -2
  313. package/dist/esm/q2-chart-donut.entry.js +2 -2
  314. package/dist/esm/q2-checkbox-group.entry.js +1 -1
  315. package/dist/esm/q2-checkbox.entry.js +1 -1
  316. package/dist/esm/q2-currency.entry.js +1 -1
  317. package/dist/esm/q2-data-table.entry.js +1 -1
  318. package/dist/esm/q2-detail.entry.js +2 -2
  319. package/dist/esm/q2-dropdown-item.entry.js +1 -1
  320. package/dist/esm/q2-dropdown.entry.js +10 -12
  321. package/dist/esm/q2-dropdown.entry.js.map +1 -1
  322. package/dist/esm/q2-editable-field.entry.js +7 -8
  323. package/dist/esm/q2-editable-field.entry.js.map +1 -1
  324. package/dist/esm/q2-formatted-text.entry.js +1 -1
  325. package/dist/esm/q2-item.entry.js +2 -2
  326. package/dist/esm/q2-legend.entry.js +1 -1
  327. package/dist/esm/q2-list.entry.js +2 -2
  328. package/dist/esm/q2-loc.entry.js +2 -2
  329. package/dist/esm/q2-message.entry.js +2 -2
  330. package/dist/esm/q2-month-picker.entry.js +3 -3
  331. package/dist/esm/q2-optgroup.entry.js +2 -2
  332. package/dist/esm/q2-option-list.entry.js +1 -1
  333. package/dist/esm/q2-option.entry.js +1 -1
  334. package/dist/esm/q2-pagination.entry.js +3 -3
  335. package/dist/esm/q2-pill.entry.js +2 -2
  336. package/dist/esm/q2-radio-group.entry.js +1 -1
  337. package/dist/esm/q2-radio.entry.js +1 -1
  338. package/dist/esm/q2-relative-time.entry.js +2 -2
  339. package/dist/esm/q2-resize-observer.entry.js +1 -1
  340. package/dist/esm/q2-section.entry.js +3 -3
  341. package/dist/esm/q2-select.entry.js +94 -17
  342. package/dist/esm/q2-select.entry.js.map +1 -1
  343. package/dist/esm/q2-stepper-pane.entry.js +1 -1
  344. package/dist/esm/q2-stepper-vertical.entry.js +2 -2
  345. package/dist/esm/q2-stepper.entry.js +2 -2
  346. package/dist/esm/q2-tag.entry.js +2 -2
  347. package/dist/esm/q2-tecton-elements.js +1 -1
  348. package/dist/esm/q2-textarea.entry.js +3 -2
  349. package/dist/esm/q2-textarea.entry.js.map +1 -1
  350. package/dist/esm/q2-tooltip.entry.js +1 -1
  351. package/dist/esm/tecton-tab-pane.entry.js +2 -2
  352. package/dist/jest.setup.js +22 -0
  353. package/dist/jest.setup.js.map +1 -0
  354. package/dist/q2-tecton-elements/{p-7c9a0122.entry.js → p-089801c6.entry.js} +2 -2
  355. package/dist/q2-tecton-elements/p-0e63312a.entry.js +2 -0
  356. package/dist/q2-tecton-elements/p-0e63312a.entry.js.map +1 -0
  357. package/dist/q2-tecton-elements/{p-7c9f8b62.entry.js → p-15383dc8.entry.js} +2 -2
  358. package/dist/q2-tecton-elements/{p-7903cd15.entry.js → p-18209f3b.entry.js} +2 -2
  359. package/dist/q2-tecton-elements/{p-ac6aa392.entry.js → p-1f7e9ab9.entry.js} +2 -2
  360. package/dist/q2-tecton-elements/{p-7aef0c08.entry.js → p-29f1f2df.entry.js} +2 -2
  361. package/dist/q2-tecton-elements/{p-8d07cf91.entry.js → p-2a296347.entry.js} +2 -2
  362. package/dist/q2-tecton-elements/{p-4e10550d.entry.js → p-3b075b65.entry.js} +2 -2
  363. package/dist/q2-tecton-elements/{p-c5667d5d.entry.js → p-432869d3.entry.js} +2 -2
  364. package/dist/q2-tecton-elements/{p-f5f23659.entry.js → p-4a399340.entry.js} +2 -2
  365. package/dist/q2-tecton-elements/{p-5f99a4a8.entry.js → p-4cabd4a3.entry.js} +2 -2
  366. package/dist/q2-tecton-elements/{p-07d1c3ae.entry.js → p-4e4aa30e.entry.js} +2 -2
  367. package/dist/q2-tecton-elements/{p-a47597dd.entry.js → p-50f6e95a.entry.js} +2 -2
  368. package/dist/q2-tecton-elements/{p-7906f49e.entry.js → p-53224667.entry.js} +2 -2
  369. package/dist/q2-tecton-elements/p-5df24439.entry.js +2 -0
  370. package/dist/q2-tecton-elements/p-5df24439.entry.js.map +1 -0
  371. package/dist/q2-tecton-elements/{p-b1784be3.entry.js → p-65f60a00.entry.js} +2 -2
  372. package/dist/q2-tecton-elements/{p-188eb162.entry.js → p-7e87cbdf.entry.js} +3 -3
  373. package/dist/q2-tecton-elements/p-85c46278.entry.js +2 -0
  374. package/dist/q2-tecton-elements/p-85c46278.entry.js.map +1 -0
  375. package/dist/q2-tecton-elements/{p-8d2b02e1.entry.js → p-8a75584e.entry.js} +2 -2
  376. package/dist/q2-tecton-elements/{p-5637c486.entry.js → p-998d2b5e.entry.js} +2 -2
  377. package/dist/q2-tecton-elements/{p-e2c800ef.entry.js → p-9e8e33e4.entry.js} +2 -2
  378. package/dist/q2-tecton-elements/{p-1c88d057.entry.js → p-a2793557.entry.js} +2 -2
  379. package/dist/q2-tecton-elements/{p-95a7c042.entry.js → p-a64e521d.entry.js} +2 -2
  380. package/dist/q2-tecton-elements/{p-16910682.entry.js → p-aad42723.entry.js} +2 -2
  381. package/dist/q2-tecton-elements/{p-f135b265.entry.js → p-ac7a3bc1.entry.js} +2 -2
  382. package/dist/q2-tecton-elements/{p-f135b265.entry.js.map → p-ac7a3bc1.entry.js.map} +1 -1
  383. package/dist/q2-tecton-elements/{p-20a3d6ed.entry.js → p-b17e9798.entry.js} +2 -2
  384. package/dist/q2-tecton-elements/{p-5a834214.entry.js → p-bbe24257.entry.js} +2 -2
  385. package/dist/q2-tecton-elements/{p-b7de110e.entry.js → p-bc530c75.entry.js} +2 -2
  386. package/dist/q2-tecton-elements/{p-2733583e.entry.js → p-c324d1c8.entry.js} +2 -2
  387. package/dist/q2-tecton-elements/{p-3e428290.entry.js → p-c3566e7a.entry.js} +2 -2
  388. package/dist/q2-tecton-elements/p-c5445b5e.js +2 -0
  389. package/dist/q2-tecton-elements/p-c5445b5e.js.map +1 -0
  390. package/dist/q2-tecton-elements/{p-e216ef3f.entry.js → p-c6fb83ff.entry.js} +2 -2
  391. package/dist/q2-tecton-elements/{p-1c760a89.entry.js → p-cca5af1f.entry.js} +2 -2
  392. package/dist/q2-tecton-elements/{p-a5d0e252.entry.js → p-cfcec7f4.entry.js} +2 -2
  393. package/dist/q2-tecton-elements/{p-c235ab3f.entry.js → p-d312f179.entry.js} +2 -2
  394. package/dist/q2-tecton-elements/{p-96b1406c.entry.js → p-d326261a.entry.js} +2 -2
  395. package/dist/q2-tecton-elements/{p-06701928.entry.js → p-dc80c2ed.entry.js} +2 -2
  396. package/dist/q2-tecton-elements/{p-4774e5b3.entry.js → p-e0a617fd.entry.js} +2 -2
  397. package/dist/q2-tecton-elements/p-e940ccfb.entry.js +2 -0
  398. package/dist/q2-tecton-elements/p-e940ccfb.entry.js.map +1 -0
  399. package/dist/q2-tecton-elements/{p-50f7328f.entry.js → p-e9dfbb78.entry.js} +2 -2
  400. package/dist/q2-tecton-elements/{p-ff8f1a32.entry.js → p-ebc71f10.entry.js} +2 -2
  401. package/dist/q2-tecton-elements/{p-ad057d10.entry.js → p-f043a9f1.entry.js} +2 -2
  402. package/dist/q2-tecton-elements/{p-fff01dc1.entry.js → p-f51426b0.entry.js} +2 -2
  403. package/dist/q2-tecton-elements/p-f8710843.entry.js +2 -0
  404. package/dist/q2-tecton-elements/p-f8710843.entry.js.map +1 -0
  405. package/dist/q2-tecton-elements/{p-81fbe718.entry.js → p-fa68a890.entry.js} +2 -2
  406. package/dist/q2-tecton-elements/{p-490ef8e5.entry.js → p-fbd6cb9a.entry.js} +2 -2
  407. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  408. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js.map +1 -1
  409. package/dist/types/builds/q2e/development/tecton/tecton/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +1 -0
  410. package/dist/types/components/q2-btn/q2-btn.d.ts +1 -0
  411. package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +1 -4
  412. package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +2 -2
  413. package/dist/types/components/q2-icon/q2-icon.d.ts +1 -0
  414. package/dist/types/components/q2-popover/q2-popover.d.ts +4 -5
  415. package/dist/types/components/q2-select/q2-select.d.ts +19 -0
  416. package/package.json +3 -3
  417. package/dist/cjs/index-9aa4a776.js.map +0 -1
  418. package/dist/esm/index-844fc010.js.map +0 -1
  419. package/dist/q2-tecton-elements/p-1305f7ca.entry.js +0 -2
  420. package/dist/q2-tecton-elements/p-1305f7ca.entry.js.map +0 -1
  421. package/dist/q2-tecton-elements/p-15ac45d6.js +0 -2
  422. package/dist/q2-tecton-elements/p-15ac45d6.js.map +0 -1
  423. package/dist/q2-tecton-elements/p-56df21b0.entry.js +0 -2
  424. package/dist/q2-tecton-elements/p-56df21b0.entry.js.map +0 -1
  425. package/dist/q2-tecton-elements/p-896c7008.entry.js +0 -2
  426. package/dist/q2-tecton-elements/p-896c7008.entry.js.map +0 -1
  427. package/dist/q2-tecton-elements/p-b0e5e9dc.entry.js +0 -2
  428. package/dist/q2-tecton-elements/p-b0e5e9dc.entry.js.map +0 -1
  429. package/dist/q2-tecton-elements/p-f7867f21.entry.js +0 -2
  430. package/dist/q2-tecton-elements/p-f7867f21.entry.js.map +0 -1
  431. /package/dist/q2-tecton-elements/{p-7c9a0122.entry.js.map → p-089801c6.entry.js.map} +0 -0
  432. /package/dist/q2-tecton-elements/{p-7c9f8b62.entry.js.map → p-15383dc8.entry.js.map} +0 -0
  433. /package/dist/q2-tecton-elements/{p-7903cd15.entry.js.map → p-18209f3b.entry.js.map} +0 -0
  434. /package/dist/q2-tecton-elements/{p-ac6aa392.entry.js.map → p-1f7e9ab9.entry.js.map} +0 -0
  435. /package/dist/q2-tecton-elements/{p-7aef0c08.entry.js.map → p-29f1f2df.entry.js.map} +0 -0
  436. /package/dist/q2-tecton-elements/{p-8d07cf91.entry.js.map → p-2a296347.entry.js.map} +0 -0
  437. /package/dist/q2-tecton-elements/{p-4e10550d.entry.js.map → p-3b075b65.entry.js.map} +0 -0
  438. /package/dist/q2-tecton-elements/{p-c5667d5d.entry.js.map → p-432869d3.entry.js.map} +0 -0
  439. /package/dist/q2-tecton-elements/{p-f5f23659.entry.js.map → p-4a399340.entry.js.map} +0 -0
  440. /package/dist/q2-tecton-elements/{p-5f99a4a8.entry.js.map → p-4cabd4a3.entry.js.map} +0 -0
  441. /package/dist/q2-tecton-elements/{p-07d1c3ae.entry.js.map → p-4e4aa30e.entry.js.map} +0 -0
  442. /package/dist/q2-tecton-elements/{p-a47597dd.entry.js.map → p-50f6e95a.entry.js.map} +0 -0
  443. /package/dist/q2-tecton-elements/{p-7906f49e.entry.js.map → p-53224667.entry.js.map} +0 -0
  444. /package/dist/q2-tecton-elements/{p-b1784be3.entry.js.map → p-65f60a00.entry.js.map} +0 -0
  445. /package/dist/q2-tecton-elements/{p-188eb162.entry.js.map → p-7e87cbdf.entry.js.map} +0 -0
  446. /package/dist/q2-tecton-elements/{p-8d2b02e1.entry.js.map → p-8a75584e.entry.js.map} +0 -0
  447. /package/dist/q2-tecton-elements/{p-5637c486.entry.js.map → p-998d2b5e.entry.js.map} +0 -0
  448. /package/dist/q2-tecton-elements/{p-e2c800ef.entry.js.map → p-9e8e33e4.entry.js.map} +0 -0
  449. /package/dist/q2-tecton-elements/{p-1c88d057.entry.js.map → p-a2793557.entry.js.map} +0 -0
  450. /package/dist/q2-tecton-elements/{p-95a7c042.entry.js.map → p-a64e521d.entry.js.map} +0 -0
  451. /package/dist/q2-tecton-elements/{p-16910682.entry.js.map → p-aad42723.entry.js.map} +0 -0
  452. /package/dist/q2-tecton-elements/{p-20a3d6ed.entry.js.map → p-b17e9798.entry.js.map} +0 -0
  453. /package/dist/q2-tecton-elements/{p-5a834214.entry.js.map → p-bbe24257.entry.js.map} +0 -0
  454. /package/dist/q2-tecton-elements/{p-b7de110e.entry.js.map → p-bc530c75.entry.js.map} +0 -0
  455. /package/dist/q2-tecton-elements/{p-2733583e.entry.js.map → p-c324d1c8.entry.js.map} +0 -0
  456. /package/dist/q2-tecton-elements/{p-3e428290.entry.js.map → p-c3566e7a.entry.js.map} +0 -0
  457. /package/dist/q2-tecton-elements/{p-e216ef3f.entry.js.map → p-c6fb83ff.entry.js.map} +0 -0
  458. /package/dist/q2-tecton-elements/{p-1c760a89.entry.js.map → p-cca5af1f.entry.js.map} +0 -0
  459. /package/dist/q2-tecton-elements/{p-a5d0e252.entry.js.map → p-cfcec7f4.entry.js.map} +0 -0
  460. /package/dist/q2-tecton-elements/{p-c235ab3f.entry.js.map → p-d312f179.entry.js.map} +0 -0
  461. /package/dist/q2-tecton-elements/{p-96b1406c.entry.js.map → p-d326261a.entry.js.map} +0 -0
  462. /package/dist/q2-tecton-elements/{p-06701928.entry.js.map → p-dc80c2ed.entry.js.map} +0 -0
  463. /package/dist/q2-tecton-elements/{p-4774e5b3.entry.js.map → p-e0a617fd.entry.js.map} +0 -0
  464. /package/dist/q2-tecton-elements/{p-50f7328f.entry.js.map → p-e9dfbb78.entry.js.map} +0 -0
  465. /package/dist/q2-tecton-elements/{p-ff8f1a32.entry.js.map → p-ebc71f10.entry.js.map} +0 -0
  466. /package/dist/q2-tecton-elements/{p-ad057d10.entry.js.map → p-f043a9f1.entry.js.map} +0 -0
  467. /package/dist/q2-tecton-elements/{p-fff01dc1.entry.js.map → p-f51426b0.entry.js.map} +0 -0
  468. /package/dist/q2-tecton-elements/{p-81fbe718.entry.js.map → p-fa68a890.entry.js.map} +0 -0
  469. /package/dist/q2-tecton-elements/{p-490ef8e5.entry.js.map → p-fbd6cb9a.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,h as i,F as n,H as s,g as r}from"./p-a5f18e27.js";import{c as o,l as a,a as l,o as f,i as c}from"./p-15ac45d6.js";function u(e){return e!==null&&typeof e==="object"&&"constructor"in e&&e.constructor===Object}function d(e={},t={}){Object.keys(t).forEach((i=>{if(typeof e[i]==="undefined")e[i]=t[i];else if(u(t[i])&&u(e[i])&&Object.keys(t[i]).length>0){d(e[i],t[i])}}))}const p={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function h(){const e=typeof document!=="undefined"?document:{};d(e,p);return e}const g={document:p,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function e(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){if(typeof setTimeout==="undefined"){e();return null}return setTimeout(e,0)},cancelAnimationFrame(e){if(typeof setTimeout==="undefined"){return}clearTimeout(e)}};function v(){const e=typeof window!=="undefined"?window:{};d(e,g);return e}function b(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get(){return t},set(e){t.__proto__=e}})}class m extends Array{constructor(e){if(typeof e==="number"){super(e)}else{super(...e||[]);b(this)}}}function w(e=[]){const t=[];e.forEach((e=>{if(Array.isArray(e)){t.push(...w(e))}else{t.push(e)}}));return t}function y(e,t){return Array.prototype.filter.call(e,t)}function x(e){const t=[];for(let i=0;i<e.length;i+=1){if(t.indexOf(e[i])===-1)t.push(e[i])}return t}function $(e,t){if(typeof e!=="string"){return[e]}const i=[];const n=t.querySelectorAll(e);for(let e=0;e<n.length;e+=1){i.push(n[e])}return i}function S(e,t){const i=v();const n=h();let s=[];if(!t&&e instanceof m){return e}if(!e){return new m(s)}if(typeof e==="string"){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";if(i.indexOf("<li")===0)e="ul";if(i.indexOf("<tr")===0)e="tbody";if(i.indexOf("<td")===0||i.indexOf("<th")===0)e="tr";if(i.indexOf("<tbody")===0)e="table";if(i.indexOf("<option")===0)e="select";const t=n.createElement(e);t.innerHTML=i;for(let e=0;e<t.childNodes.length;e+=1){s.push(t.childNodes[e])}}else{s=$(e.trim(),t||n)}}else if(e.nodeType||e===i||e===n){s.push(e)}else if(Array.isArray(e)){if(e instanceof m)return e;s=e}return new m(x(s))}S.fn=m.prototype;function C(...e){const t=w(e.map((e=>e.split(" "))));this.forEach((e=>{e.classList.add(...t)}));return this}function T(...e){const t=w(e.map((e=>e.split(" "))));this.forEach((e=>{e.classList.remove(...t)}));return this}function k(...e){const t=w(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))}function E(...e){const t=w(e.map((e=>e.split(" "))));return y(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0}function M(e,t){if(arguments.length===1&&typeof e==="string"){if(this[0])return this[0].getAttribute(e);return undefined}for(let i=0;i<this.length;i+=1){if(arguments.length===2){this[i].setAttribute(e,t)}else{for(const t in e){this[i][t]=e[t];this[i].setAttribute(t,e[t])}}}return this}function q(e){for(let t=0;t<this.length;t+=1){this[t].removeAttribute(e)}return this}function P(e){for(let t=0;t<this.length;t+=1){this[t].style.transform=e}return this}function O(e){for(let t=0;t<this.length;t+=1){this[t].style.transitionDuration=typeof e!=="string"?`${e}ms`:e}return this}function I(...e){let[t,i,n,s]=e;if(typeof e[1]==="function"){[t,n,s]=e;i=undefined}if(!s)s=false;function r(e){const t=e.target;if(!t)return;const s=e.target.dom7EventData||[];if(s.indexOf(e)<0){s.unshift(e)}if(S(t).is(i))n.apply(t,s);else{const e=S(t).parents();for(let t=0;t<e.length;t+=1){if(S(e[t]).is(i))n.apply(e[t],s)}}}function o(e){const t=e&&e.target?e.target.dom7EventData||[]:[];if(t.indexOf(e)<0){t.unshift(e)}n.apply(this,t)}const a=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(!i){for(l=0;l<a.length;l+=1){const e=a[l];if(!t.dom7Listeners)t.dom7Listeners={};if(!t.dom7Listeners[e])t.dom7Listeners[e]=[];t.dom7Listeners[e].push({listener:n,proxyListener:o});t.addEventListener(e,o,s)}}else{for(l=0;l<a.length;l+=1){const e=a[l];if(!t.dom7LiveListeners)t.dom7LiveListeners={};if(!t.dom7LiveListeners[e])t.dom7LiveListeners[e]=[];t.dom7LiveListeners[e].push({listener:n,proxyListener:r});t.addEventListener(e,r,s)}}}return this}function j(...e){let[t,i,n,s]=e;if(typeof e[1]==="function"){[t,n,s]=e;i=undefined}if(!s)s=false;const r=t.split(" ");for(let e=0;e<r.length;e+=1){const t=r[e];for(let e=0;e<this.length;e+=1){const r=this[e];let o;if(!i&&r.dom7Listeners){o=r.dom7Listeners[t]}else if(i&&r.dom7LiveListeners){o=r.dom7LiveListeners[t]}if(o&&o.length){for(let e=o.length-1;e>=0;e-=1){const i=o[e];if(n&&i.listener===n){r.removeEventListener(t,i.proxyListener,s);o.splice(e,1)}else if(n&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===n){r.removeEventListener(t,i.proxyListener,s);o.splice(e,1)}else if(!n){r.removeEventListener(t,i.proxyListener,s);o.splice(e,1)}}}}}return this}function L(...e){const t=v();const i=e[0].split(" ");const n=e[1];for(let s=0;s<i.length;s+=1){const r=i[s];for(let i=0;i<this.length;i+=1){const s=this[i];if(t.CustomEvent){const i=new t.CustomEvent(r,{detail:n,bubbles:true,cancelable:true});s.dom7EventData=e.filter(((e,t)=>t>0));s.dispatchEvent(i);s.dom7EventData=[];delete s.dom7EventData}}}return this}function A(e){const t=this;function i(n){if(n.target!==this)return;e.call(this,n);t.off("transitionend",i)}if(e){t.on("transitionend",i)}return this}function z(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function D(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function F(){if(this.length>0){const e=v();const t=h();const i=this[0];const n=i.getBoundingClientRect();const s=t.body;const r=i.clientTop||s.clientTop||0;const o=i.clientLeft||s.clientLeft||0;const a=i===e?e.scrollY:i.scrollTop;const l=i===e?e.scrollX:i.scrollLeft;return{top:n.top+a-r,left:n.left+l-o}}return null}function B(){const e=v();if(this[0])return e.getComputedStyle(this[0],null);return{}}function G(e,t){const i=v();let n;if(arguments.length===1){if(typeof e==="string"){if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(n=0;n<this.length;n+=1){for(const t in e){this[n].style[t]=e[t]}}return this}}if(arguments.length===2&&typeof e==="string"){for(n=0;n<this.length;n+=1){this[n].style[e]=t}return this}return this}function N(e){if(!e)return this;this.forEach(((t,i)=>{e.apply(t,[t,i])}));return this}function W(e){const t=y(this,e);return S(t)}function _(e){if(typeof e==="undefined"){return this[0]?this[0].innerHTML:null}for(let t=0;t<this.length;t+=1){this[t].innerHTML=e}return this}function R(e){if(typeof e==="undefined"){return this[0]?this[0].textContent.trim():null}for(let t=0;t<this.length;t+=1){this[t].textContent=e}return this}function H(e){const t=v();const i=h();const n=this[0];let s;let r;if(!n||typeof e==="undefined")return false;if(typeof e==="string"){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);s=S(e);for(r=0;r<s.length;r+=1){if(s[r]===n)return true}return false}if(e===i){return n===i}if(e===t){return n===t}if(e.nodeType||e instanceof m){s=e.nodeType?[e]:e;for(r=0;r<s.length;r+=1){if(s[r]===n)return true}return false}return false}function V(){let e=this[0];let t;if(e){t=0;while((e=e.previousSibling)!==null){if(e.nodeType===1)t+=1}return t}return undefined}function U(e){if(typeof e==="undefined")return this;const t=this.length;if(e>t-1){return S([])}if(e<0){const i=t+e;if(i<0)return S([]);return S([this[i]])}return S([this[e]])}function X(...e){let t;const i=h();for(let n=0;n<e.length;n+=1){t=e[n];for(let e=0;e<this.length;e+=1){if(typeof t==="string"){const n=i.createElement("div");n.innerHTML=t;while(n.firstChild){this[e].appendChild(n.firstChild)}}else if(t instanceof m){for(let i=0;i<t.length;i+=1){this[e].appendChild(t[i])}}else{this[e].appendChild(t)}}}return this}function Y(e){const t=h();let i;let n;for(i=0;i<this.length;i+=1){if(typeof e==="string"){const s=t.createElement("div");s.innerHTML=e;for(n=s.childNodes.length-1;n>=0;n-=1){this[i].insertBefore(s.childNodes[n],this[i].childNodes[0])}}else if(e instanceof m){for(n=0;n<e.length;n+=1){this[i].insertBefore(e[n],this[i].childNodes[0])}}else{this[i].insertBefore(e,this[i].childNodes[0])}}return this}function K(e){if(this.length>0){if(e){if(this[0].nextElementSibling&&S(this[0].nextElementSibling).is(e)){return S([this[0].nextElementSibling])}return S([])}if(this[0].nextElementSibling)return S([this[0].nextElementSibling]);return S([])}return S([])}function J(e){const t=[];let i=this[0];if(!i)return S([]);while(i.nextElementSibling){const n=i.nextElementSibling;if(e){if(S(n).is(e))t.push(n)}else t.push(n);i=n}return S(t)}function Q(e){if(this.length>0){const t=this[0];if(e){if(t.previousElementSibling&&S(t.previousElementSibling).is(e)){return S([t.previousElementSibling])}return S([])}if(t.previousElementSibling)return S([t.previousElementSibling]);return S([])}return S([])}function Z(e){const t=[];let i=this[0];if(!i)return S([]);while(i.previousElementSibling){const n=i.previousElementSibling;if(e){if(S(n).is(e))t.push(n)}else t.push(n);i=n}return S(t)}function ee(e){const t=[];for(let i=0;i<this.length;i+=1){if(this[i].parentNode!==null){if(e){if(S(this[i].parentNode).is(e))t.push(this[i].parentNode)}else{t.push(this[i].parentNode)}}}return S(t)}function te(e){const t=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;while(n){if(e){if(S(n).is(e))t.push(n)}else{t.push(n)}n=n.parentNode}}return S(t)}function ie(e){let t=this;if(typeof e==="undefined"){return S([])}if(!t.is(e)){t=t.parents(e).eq(0)}return t}function ne(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].querySelectorAll(e);for(let e=0;e<n.length;e+=1){t.push(n[e])}}return S(t)}function se(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].children;for(let i=0;i<n.length;i+=1){if(!e||S(n[i]).is(e)){t.push(n[i])}}}return S(t)}function re(){for(let e=0;e<this.length;e+=1){if(this[e].parentNode)this[e].parentNode.removeChild(this[e])}return this}const oe={addClass:C,removeClass:T,hasClass:E,toggleClass:k,attr:M,removeAttr:q,transform:P,transition:O,on:I,off:j,trigger:L,transitionEnd:A,outerWidth:z,outerHeight:D,styles:B,offset:F,css:G,each:N,html:_,text:R,is:H,index:V,eq:U,append:X,prepend:Y,next:K,nextAll:J,prev:Q,prevAll:Z,parent:ee,parents:te,closest:ie,find:ne,children:se,filter:W,remove:re};Object.keys(oe).forEach((e=>{Object.defineProperty(S.fn,e,{value:oe[e],writable:true})}));function ae(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}function le(e,t=0){return setTimeout(e,t)}function fe(){return Date.now()}function ce(e){const t=v();let i;if(t.getComputedStyle){i=t.getComputedStyle(e,null)}if(!i&&e.currentStyle){i=e.currentStyle}if(!i){i=e.style}return i}function ue(e,t="x"){const i=v();let n;let s;let r;const o=ce(e);if(i.WebKitCSSMatrix){s=o.transform||o.webkitTransform;if(s.split(",").length>6){s=s.split(", ").map((e=>e.replace(",","."))).join(", ")}r=new i.WebKitCSSMatrix(s==="none"?"":s)}else{r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");n=r.toString().split(",")}if(t==="x"){if(i.WebKitCSSMatrix)s=r.m41;else if(n.length===16)s=parseFloat(n[12]);else s=parseFloat(n[4])}if(t==="y"){if(i.WebKitCSSMatrix)s=r.m42;else if(n.length===16)s=parseFloat(n[13]);else s=parseFloat(n[5])}return s||0}function de(e){return typeof e==="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function pe(e){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return e instanceof HTMLElement}return e&&(e.nodeType===1||e.nodeType===11)}function he(...e){const t=Object(e[0]);const i=["__proto__","constructor","prototype"];for(let n=1;n<e.length;n+=1){const s=e[n];if(s!==undefined&&s!==null&&!pe(s)){const e=Object.keys(Object(s)).filter((e=>i.indexOf(e)<0));for(let i=0,n=e.length;i<n;i+=1){const n=e[i];const r=Object.getOwnPropertyDescriptor(s,n);if(r!==undefined&&r.enumerable){if(de(t[n])&&de(s[n])){if(s[n].__swiper__){t[n]=s[n]}else{he(t[n],s[n])}}else if(!de(t[n])&&de(s[n])){t[n]={};if(s[n].__swiper__){t[n]=s[n]}else{he(t[n],s[n])}}else{t[n]=s[n]}}}}}return t}function ge(e,t,i){e.style.setProperty(t,i)}function ve({swiper:e,targetPosition:t,side:i}){const n=v();const s=-e.translate;let r=null;let o;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none";n.cancelAnimationFrame(e.cssModeFrameID);const l=t>s?"next":"prev";const f=(e,t)=>l==="next"&&e>=t||l==="prev"&&e<=t;const c=()=>{o=(new Date).getTime();if(r===null){r=o}const l=Math.max(Math.min((o-r)/a,1),0);const u=.5-Math.cos(l*Math.PI)/2;let d=s+u*(t-s);if(f(d,t)){d=t}e.wrapperEl.scrollTo({[i]:d});if(f(d,t)){e.wrapperEl.style.overflow="hidden";e.wrapperEl.style.scrollSnapType="";setTimeout((()=>{e.wrapperEl.style.overflow="";e.wrapperEl.scrollTo({[i]:d})}));n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(c)};c()}let be;function me(){const e=v();const t=h();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function t(){let i=false;try{const t=Object.defineProperty({},"passive",{get(){i=true}});e.addEventListener("testPassiveListener",null,t)}catch(e){}return i}(),gestures:function t(){return"ongesturestart"in e}()}}function we(){if(!be){be=me()}return be}let ye;function xe({userAgent:e}={}){const t=we();const i=v();const n=i.navigator.platform;const s=e||i.navigator.userAgent;const r={ios:false,android:false};const o=i.screen.width;const a=i.screen.height;const l=s.match(/(Android);?[\s\/]+([\d.]+)?/);let f=s.match(/(iPad).*OS\s([\d_]+)/);const c=s.match(/(iPod)(.*OS\s([\d_]+))?/);const u=!f&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/);const d=n==="Win32";let p=n==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!f&&p&&t.touch&&h.indexOf(`${o}x${a}`)>=0){f=s.match(/(Version)\/([\d.]+)/);if(!f)f=[0,1,"13_0_0"];p=false}if(l&&!d){r.os="android";r.android=true}if(f||u||c){r.os="ios";r.ios=true}return r}function $e(e={}){if(!ye){ye=xe(e)}return ye}let Se;function Ce(){const e=v();function t(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isSafari:t(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function Te(){if(!Se){Se=Ce()}return Se}function ke({swiper:e,on:t,emit:i}){const n=v();let s=null;let r=null;const o=()=>{if(!e||e.destroyed||!e.initialized)return;i("beforeResize");i("resize")};const a=()=>{if(!e||e.destroyed||!e.initialized)return;s=new ResizeObserver((t=>{r=n.requestAnimationFrame((()=>{const{width:i,height:n}=e;let s=i;let r=n;t.forEach((({contentBoxSize:t,contentRect:i,target:n})=>{if(n&&n!==e.el)return;s=i?i.width:(t[0]||t).inlineSize;r=i?i.height:(t[0]||t).blockSize}));if(s!==i||r!==n){o()}}))}));s.observe(e.el)};const l=()=>{if(r){n.cancelAnimationFrame(r)}if(s&&s.unobserve&&e.el){s.unobserve(e.el);s=null}};const f=()=>{if(!e||e.destroyed||!e.initialized)return;i("orientationchange")};t("init",(()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver!=="undefined"){a();return}n.addEventListener("resize",o);n.addEventListener("orientationchange",f)}));t("destroy",(()=>{l();n.removeEventListener("resize",o);n.removeEventListener("orientationchange",f)}))}function Ee({swiper:e,extendParams:t,on:i,emit:n}){const s=[];const r=v();const o=(e,t={})=>{const i=r.MutationObserver||r.WebkitMutationObserver;const o=new i((e=>{if(e.length===1){n("observerUpdate",e[0]);return}const t=function t(){n("observerUpdate",e[0])};if(r.requestAnimationFrame){r.requestAnimationFrame(t)}else{r.setTimeout(t,0)}}));o.observe(e,{attributes:typeof t.attributes==="undefined"?true:t.attributes,childList:typeof t.childList==="undefined"?true:t.childList,characterData:typeof t.characterData==="undefined"?true:t.characterData});s.push(o)};const a=()=>{if(!e.params.observer)return;if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1){o(t[e])}}o(e.$el[0],{childList:e.params.observeSlideChildren});o(e.$wrapperEl[0],{attributes:false})};const l=()=>{s.forEach((e=>{e.disconnect()}));s.splice(0,s.length)};t({observer:false,observeParents:false,observeSlideChildren:false});i("init",a);i("destroy",l)}const Me={on(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if(typeof t!=="function")return n;const s=i?"unshift":"push";e.split(" ").forEach((e=>{if(!n.eventsListeners[e])n.eventsListeners[e]=[];n.eventsListeners[e][s](t)}));return n},once(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if(typeof t!=="function")return n;function s(...i){n.off(e,s);if(s.__emitterProxy){delete s.__emitterProxy}t.apply(n,i)}s.__emitterProxy=t;return n.on(e,s,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(typeof e!=="function")return i;const n=t?"unshift":"push";if(i.eventsAnyListeners.indexOf(e)<0){i.eventsAnyListeners[n](e)}return i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);if(i>=0){t.eventsAnyListeners.splice(i,1)}return t},off(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;e.split(" ").forEach((e=>{if(typeof t==="undefined"){i.eventsListeners[e]=[]}else if(i.eventsListeners[e]){i.eventsListeners[e].forEach(((n,s)=>{if(n===t||n.__emitterProxy&&n.__emitterProxy===t){i.eventsListeners[e].splice(s,1)}}))}}));return i},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let i;let n;let s;if(typeof e[0]==="string"||Array.isArray(e[0])){i=e[0];n=e.slice(1,e.length);s=t}else{i=e[0].events;n=e[0].data;s=e[0].context||t}n.unshift(s);const r=Array.isArray(i)?i:i.split(" ");r.forEach((e=>{if(t.eventsAnyListeners&&t.eventsAnyListeners.length){t.eventsAnyListeners.forEach((t=>{t.apply(s,[e,...n])}))}if(t.eventsListeners&&t.eventsListeners[e]){t.eventsListeners[e].forEach((e=>{e.apply(s,n)}))}}));return t}};function qe(){const e=this;let t;let i;const n=e.$el;if(typeof e.params.width!=="undefined"&&e.params.width!==null){t=e.params.width}else{t=n[0].clientWidth}if(typeof e.params.height!=="undefined"&&e.params.height!==null){i=e.params.height}else{i=n[0].clientHeight}if(t===0&&e.isHorizontal()||i===0&&e.isVertical()){return}t=t-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10);i=i-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10);if(Number.isNaN(t))t=0;if(Number.isNaN(i))i=0;Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i})}function Pe(){const e=this;function t(t){if(e.isHorizontal()){return t}return{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"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const n=e.params;const{$wrapperEl:s,size:r,rtlTranslate:o,wrongRTL:a}=e;const l=e.virtual&&n.virtual.enabled;const f=l?e.virtual.slides.length:e.slides.length;const c=s.children(`.${e.params.slideClass}`);const u=l?e.virtual.slides.length:c.length;let d=[];const p=[];const h=[];let g=n.slidesOffsetBefore;if(typeof g==="function"){g=n.slidesOffsetBefore.call(e)}let v=n.slidesOffsetAfter;if(typeof v==="function"){v=n.slidesOffsetAfter.call(e)}const b=e.snapGrid.length;const m=e.slidesGrid.length;let w=n.spaceBetween;let y=-g;let x=0;let $=0;if(typeof r==="undefined"){return}if(typeof w==="string"&&w.indexOf("%")>=0){w=parseFloat(w.replace("%",""))/100*r}e.virtualSize=-w;if(o)c.css({marginLeft:"",marginBottom:"",marginTop:""});else c.css({marginRight:"",marginBottom:"",marginTop:""});if(n.centeredSlides&&n.cssMode){ge(e.wrapperEl,"--swiper-centered-offset-before","");ge(e.wrapperEl,"--swiper-centered-offset-after","")}const S=n.grid&&n.grid.rows>1&&e.grid;if(S){e.grid.initSlides(u)}let C;const T=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>typeof n.breakpoints[e].slidesPerView!=="undefined")).length>0;for(let s=0;s<u;s+=1){C=0;const o=c.eq(s);if(S){e.grid.updateSlide(s,o,u,t)}if(o.css("display")==="none")continue;if(n.slidesPerView==="auto"){if(T){c[s].style[t("width")]=``}const r=getComputedStyle(o[0]);const a=o[0].style.transform;const l=o[0].style.webkitTransform;if(a){o[0].style.transform="none"}if(l){o[0].style.webkitTransform="none"}if(n.roundLengths){C=e.isHorizontal()?o.outerWidth(true):o.outerHeight(true)}else{const e=i(r,"width");const t=i(r,"padding-left");const n=i(r,"padding-right");const s=i(r,"margin-left");const a=i(r,"margin-right");const l=r.getPropertyValue("box-sizing");if(l&&l==="border-box"){C=e+s+a}else{const{clientWidth:i,offsetWidth:r}=o[0];C=e+t+n+s+a+(r-i)}}if(a){o[0].style.transform=a}if(l){o[0].style.webkitTransform=l}if(n.roundLengths)C=Math.floor(C)}else{C=(r-(n.slidesPerView-1)*w)/n.slidesPerView;if(n.roundLengths)C=Math.floor(C);if(c[s]){c[s].style[t("width")]=`${C}px`}}if(c[s]){c[s].swiperSlideSize=C}h.push(C);if(n.centeredSlides){y=y+C/2+x/2+w;if(x===0&&s!==0)y=y-r/2-w;if(s===0)y=y-r/2-w;if(Math.abs(y)<1/1e3)y=0;if(n.roundLengths)y=Math.floor(y);if($%n.slidesPerGroup===0)d.push(y);p.push(y)}else{if(n.roundLengths)y=Math.floor(y);if(($-Math.min(e.params.slidesPerGroupSkip,$))%e.params.slidesPerGroup===0)d.push(y);p.push(y);y=y+C+w}e.virtualSize+=C+w;x=C;$+=1}e.virtualSize=Math.max(e.virtualSize,r)+v;if(o&&a&&(n.effect==="slide"||n.effect==="coverflow")){s.css({width:`${e.virtualSize+n.spaceBetween}px`})}if(n.setWrapperSize){s.css({[t("width")]:`${e.virtualSize+n.spaceBetween}px`})}if(S){e.grid.updateWrapperSize(C,d,t)}if(!n.centeredSlides){const t=[];for(let i=0;i<d.length;i+=1){let s=d[i];if(n.roundLengths)s=Math.floor(s);if(d[i]<=e.virtualSize-r){t.push(s)}}d=t;if(Math.floor(e.virtualSize-r)-Math.floor(d[d.length-1])>1){d.push(e.virtualSize-r)}}if(d.length===0)d=[0];if(n.spaceBetween!==0){const i=e.isHorizontal()&&o?"marginLeft":t("marginRight");c.filter(((e,t)=>{if(!n.cssMode)return true;if(t===c.length-1){return false}return true})).css({[i]:`${w}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;h.forEach((t=>{e+=t+(n.spaceBetween?n.spaceBetween:0)}));e-=n.spaceBetween;const t=e-r;d=d.map((e=>{if(e<0)return-g;if(e>t)return t+v;return e}))}if(n.centerInsufficientSlides){let e=0;h.forEach((t=>{e+=t+(n.spaceBetween?n.spaceBetween:0)}));e-=n.spaceBetween;if(e<r){const t=(r-e)/2;d.forEach(((e,i)=>{d[i]=e-t}));p.forEach(((e,i)=>{p[i]=e+t}))}}Object.assign(e,{slides:c,snapGrid:d,slidesGrid:p,slidesSizesGrid:h});if(n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){ge(e.wrapperEl,"--swiper-centered-offset-before",`${-d[0]}px`);ge(e.wrapperEl,"--swiper-centered-offset-after",`${e.size/2-h[h.length-1]/2}px`);const t=-e.snapGrid[0];const i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t));e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(u!==f){e.emit("slidesLengthChange")}if(d.length!==b){if(e.params.watchOverflow)e.checkOverflow();e.emit("snapGridLengthChange")}if(p.length!==m){e.emit("slidesGridLengthChange")}if(n.watchSlidesProgress){e.updateSlidesOffset()}if(!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const t=`${n.containerModifierClass}backface-hidden`;const i=e.$el.hasClass(t);if(u<=n.maxBackfaceHiddenSlides){if(!i)e.$el.addClass(t)}else if(i){e.$el.removeClass(t)}}}function Oe(e){const t=this;const i=[];const n=t.virtual&&t.params.virtual.enabled;let s=0;let r;if(typeof e==="number"){t.setTransition(e)}else if(e===true){t.setTransition(t.params.speed)}const o=e=>{if(n){return t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]}return t.slides.eq(e)[0]};if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1){if(t.params.centeredSlides){(t.visibleSlides||S([])).each((e=>{i.push(e)}))}else{for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!n)break;i.push(o(e))}}}else{i.push(o(t.activeIndex))}for(r=0;r<i.length;r+=1){if(typeof i[r]!=="undefined"){const e=i[r].offsetHeight;s=e>s?e:s}}if(s||s===0)t.$wrapperEl.css("height",`${s}px`)}function Ie(){const e=this;const t=e.slides;for(let i=0;i<t.length;i+=1){t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop}}function je(e=this&&this.translate||0){const t=this;const i=t.params;const{slides:n,rtlTranslate:s,snapGrid:r}=t;if(n.length===0)return;if(typeof n[0].swiperSlideOffset==="undefined")t.updateSlidesOffset();let o=-e;if(s)o=e;n.removeClass(i.slideVisibleClass);t.visibleSlidesIndexes=[];t.visibleSlides=[];for(let e=0;e<n.length;e+=1){const a=n[e];let l=a.swiperSlideOffset;if(i.cssMode&&i.centeredSlides){l-=n[0].swiperSlideOffset}const f=(o+(i.centeredSlides?t.minTranslate():0)-l)/(a.swiperSlideSize+i.spaceBetween);const c=(o-r[0]+(i.centeredSlides?t.minTranslate():0)-l)/(a.swiperSlideSize+i.spaceBetween);const u=-(o-l);const d=u+t.slidesSizesGrid[e];const p=u>=0&&u<t.size-1||d>1&&d<=t.size||u<=0&&d>=t.size;if(p){t.visibleSlides.push(a);t.visibleSlidesIndexes.push(e);n.eq(e).addClass(i.slideVisibleClass)}a.progress=s?-f:f;a.originalProgress=s?-c:c}t.visibleSlides=S(t.visibleSlides)}function Le(e){const t=this;if(typeof e==="undefined"){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params;const n=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:o}=t;const a=r;const l=o;if(n===0){s=0;r=true;o=true}else{s=(e-t.minTranslate())/n;r=s<=0;o=s>=1}Object.assign(t,{progress:s,isBeginning:r,isEnd:o});if(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)t.updateSlidesProgress(e);if(r&&!a){t.emit("reachBeginning toEdge")}if(o&&!l){t.emit("reachEnd toEdge")}if(a&&!r||l&&!o){t.emit("fromEdge")}t.emit("progress",s)}function Ae(){const e=this;const{slides:t,params:i,$wrapperEl:n,activeIndex:s,realIndex:r}=e;const o=e.virtual&&i.virtual.enabled;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`);let a;if(o){a=e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${s}"]`)}else{a=t.eq(s)}a.addClass(i.slideActiveClass);if(i.loop){if(a.hasClass(i.slideDuplicateClass)){n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(i.slideDuplicateActiveClass)}else{n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(i.slideDuplicateActiveClass)}}let l=a.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);if(i.loop&&l.length===0){l=t.eq(0);l.addClass(i.slideNextClass)}let f=a.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);if(i.loop&&f.length===0){f=t.eq(-1);f.addClass(i.slidePrevClass)}if(i.loop){if(l.hasClass(i.slideDuplicateClass)){n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass)}else{n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass)}if(f.hasClass(i.slideDuplicateClass)){n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${f.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)}else{n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${f.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)}}e.emitSlidesClasses()}function ze(e){const t=this;const i=t.rtlTranslate?t.translate:-t.translate;const{slidesGrid:n,snapGrid:s,params:r,activeIndex:o,realIndex:a,snapIndex:l}=t;let f=e;let c;if(typeof f==="undefined"){for(let e=0;e<n.length;e+=1){if(typeof n[e+1]!=="undefined"){if(i>=n[e]&&i<n[e+1]-(n[e+1]-n[e])/2){f=e}else if(i>=n[e]&&i<n[e+1]){f=e+1}}else if(i>=n[e]){f=e}}if(r.normalizeSlideIndex){if(f<0||typeof f==="undefined")f=0}}if(s.indexOf(i)>=0){c=s.indexOf(i)}else{const e=Math.min(r.slidesPerGroupSkip,f);c=e+Math.floor((f-e)/r.slidesPerGroup)}if(c>=s.length)c=s.length-1;if(f===o){if(c!==l){t.snapIndex=c;t.emit("snapIndexChange")}return}const u=parseInt(t.slides.eq(f).attr("data-swiper-slide-index")||f,10);Object.assign(t,{snapIndex:c,realIndex:u,previousIndex:o,activeIndex:f});t.emit("activeIndexChange");t.emit("snapIndexChange");if(a!==u){t.emit("realIndexChange")}if(t.initialized||t.params.runCallbacksOnInit){t.emit("slideChange")}}function De(e){const t=this;const i=t.params;const n=S(e).closest(`.${i.slideClass}`)[0];let s=false;let r;if(n){for(let e=0;e<t.slides.length;e+=1){if(t.slides[e]===n){s=true;r=e;break}}}if(n&&s){t.clickedSlide=n;if(t.virtual&&t.params.virtual.enabled){t.clickedIndex=parseInt(S(n).attr("data-swiper-slide-index"),10)}else{t.clickedIndex=r}}else{t.clickedSlide=undefined;t.clickedIndex=undefined;return}if(i.slideToClickedSlide&&t.clickedIndex!==undefined&&t.clickedIndex!==t.activeIndex){t.slideToClickedSlide()}}const Fe={updateSize:qe,updateSlides:Pe,updateAutoHeight:Oe,updateSlidesOffset:Ie,updateSlidesProgress:je,updateProgress:Le,updateSlidesClasses:Ae,updateActiveIndex:ze,updateClickedSlide:De};function Be(e=(this.isHorizontal()?"x":"y")){const t=this;const{params:i,rtlTranslate:n,translate:s,$wrapperEl:r}=t;if(i.virtualTranslate){return n?-s:s}if(i.cssMode){return s}let o=ue(r[0],e);if(n)o=-o;return o||0}function Ge(e,t){const i=this;const{rtlTranslate:n,params:s,$wrapperEl:r,wrapperEl:o,progress:a}=i;let l=0;let f=0;const c=0;if(i.isHorizontal()){l=n?-e:e}else{f=e}if(s.roundLengths){l=Math.floor(l);f=Math.floor(f)}if(s.cssMode){o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-f}else if(!s.virtualTranslate){r.transform(`translate3d(${l}px, ${f}px, ${c}px)`)}i.previousTranslate=i.translate;i.translate=i.isHorizontal()?l:f;let u;const d=i.maxTranslate()-i.minTranslate();if(d===0){u=0}else{u=(e-i.minTranslate())/d}if(u!==a){i.updateProgress(e)}i.emit("setTranslate",i.translate,t)}function Ne(){return-this.snapGrid[0]}function We(){return-this.snapGrid[this.snapGrid.length-1]}function _e(e=0,t=this.params.speed,i=true,n=true,s){const r=this;const{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition){return false}const l=r.minTranslate();const f=r.maxTranslate();let c;if(n&&e>l)c=l;else if(n&&e<f)c=f;else c=e;r.updateProgress(c);if(o.cssMode){const e=r.isHorizontal();if(t===0){a[e?"scrollLeft":"scrollTop"]=-c}else{if(!r.support.smoothScroll){ve({swiper:r,targetPosition:-c,side:e?"left":"top"});return true}a.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return true}if(t===0){r.setTransition(0);r.setTranslate(c);if(i){r.emit("beforeTransitionStart",t,s);r.emit("transitionEnd")}}else{r.setTransition(t);r.setTranslate(c);if(i){r.emit("beforeTransitionStart",t,s);r.emit("transitionStart")}if(!r.animating){r.animating=true;if(!r.onTranslateToWrapperTransitionEnd){r.onTranslateToWrapperTransitionEnd=function e(t){if(!r||r.destroyed)return;if(t.target!==this)return;r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd);r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd);r.onTranslateToWrapperTransitionEnd=null;delete r.onTranslateToWrapperTransitionEnd;if(i){r.emit("transitionEnd")}}}r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd);r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd)}}return true}const Re={getTranslate:Be,setTranslate:Ge,minTranslate:Ne,maxTranslate:We,translateTo:_e};function He(e,t){const i=this;if(!i.params.cssMode){i.$wrapperEl.transition(e)}i.emit("setTransition",e,t)}function Ve({swiper:e,runCallbacks:t,direction:i,step:n}){const{activeIndex:s,previousIndex:r}=e;let o=i;if(!o){if(s>r)o="next";else if(s<r)o="prev";else o="reset"}e.emit(`transition${n}`);if(t&&s!==r){if(o==="reset"){e.emit(`slideResetTransition${n}`);return}e.emit(`slideChangeTransition${n}`);if(o==="next"){e.emit(`slideNextTransition${n}`)}else{e.emit(`slidePrevTransition${n}`)}}}function Ue(e=true,t){const i=this;const{params:n}=i;if(n.cssMode)return;if(n.autoHeight){i.updateAutoHeight()}Ve({swiper:i,runCallbacks:e,direction:t,step:"Start"})}function Xe(e=true,t){const i=this;const{params:n}=i;i.animating=false;if(n.cssMode)return;i.setTransition(0);Ve({swiper:i,runCallbacks:e,direction:t,step:"End"})}const Ye={setTransition:He,transitionStart:Ue,transitionEnd:Xe};function Ke(e=0,t=this.params.speed,i=true,n,s){if(typeof e!=="number"&&typeof e!=="string"){throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`)}if(typeof e==="string"){const t=parseInt(e,10);const i=isFinite(t);if(!i){throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`)}e=t}const r=this;let o=e;if(o<0)o=0;const{params:a,snapGrid:l,slidesGrid:f,previousIndex:c,activeIndex:u,rtlTranslate:d,wrapperEl:p,enabled:h}=r;if(r.animating&&a.preventInteractionOnTransition||!h&&!n&&!s){return false}const g=Math.min(r.params.slidesPerGroupSkip,o);let v=g+Math.floor((o-g)/r.params.slidesPerGroup);if(v>=l.length)v=l.length-1;const b=-l[v];if(a.normalizeSlideIndex){for(let e=0;e<f.length;e+=1){const t=-Math.floor(b*100);const i=Math.floor(f[e]*100);const n=Math.floor(f[e+1]*100);if(typeof f[e+1]!=="undefined"){if(t>=i&&t<n-(n-i)/2){o=e}else if(t>=i&&t<n){o=e+1}}else if(t>=i){o=e}}}if(r.initialized&&o!==u){if(!r.allowSlideNext&&b<r.translate&&b<r.minTranslate()){return false}if(!r.allowSlidePrev&&b>r.translate&&b>r.maxTranslate()){if((u||0)!==o)return false}}if(o!==(c||0)&&i){r.emit("beforeSlideChangeStart")}r.updateProgress(b);let m;if(o>u)m="next";else if(o<u)m="prev";else m="reset";if(d&&-b===r.translate||!d&&b===r.translate){r.updateActiveIndex(o);if(a.autoHeight){r.updateAutoHeight()}r.updateSlidesClasses();if(a.effect!=="slide"){r.setTranslate(b)}if(m!=="reset"){r.transitionStart(i,m);r.transitionEnd(i,m)}return false}if(a.cssMode){const e=r.isHorizontal();const i=d?b:-b;if(t===0){const t=r.virtual&&r.params.virtual.enabled;if(t){r.wrapperEl.style.scrollSnapType="none";r._immediateVirtual=true}p[e?"scrollLeft":"scrollTop"]=i;if(t){requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="";r._swiperImmediateVirtual=false}))}}else{if(!r.support.smoothScroll){ve({swiper:r,targetPosition:i,side:e?"left":"top"});return true}p.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return true}r.setTransition(t);r.setTranslate(b);r.updateActiveIndex(o);r.updateSlidesClasses();r.emit("beforeTransitionStart",t,n);r.transitionStart(i,m);if(t===0){r.transitionEnd(i,m)}else if(!r.animating){r.animating=true;if(!r.onSlideToWrapperTransitionEnd){r.onSlideToWrapperTransitionEnd=function e(t){if(!r||r.destroyed)return;if(t.target!==this)return;r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd);r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd);r.onSlideToWrapperTransitionEnd=null;delete r.onSlideToWrapperTransitionEnd;r.transitionEnd(i,m)}}r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd);r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd)}return true}function Je(e=0,t=this.params.speed,i=true,n){if(typeof e==="string"){const t=parseInt(e,10);const i=isFinite(t);if(!i){throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`)}e=t}const s=this;let r=e;if(s.params.loop){r+=s.loopedSlides}return s.slideTo(r,t,i,n)}function Qe(e=this.params.speed,t=true,i){const n=this;const{animating:s,enabled:r,params:o}=n;if(!r)return n;let a=o.slidesPerGroup;if(o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto){a=Math.max(n.slidesPerViewDynamic("current",true),1)}const l=n.activeIndex<o.slidesPerGroupSkip?1:a;if(o.loop){if(s&&o.loopPreventsSlide)return false;n.loopFix();n._clientLeft=n.$wrapperEl[0].clientLeft}if(o.rewind&&n.isEnd){return n.slideTo(0,e,t,i)}return n.slideTo(n.activeIndex+l,e,t,i)}function Ze(e=this.params.speed,t=true,i){const n=this;const{params:s,animating:r,snapGrid:o,slidesGrid:a,rtlTranslate:l,enabled:f}=n;if(!f)return n;if(s.loop){if(r&&s.loopPreventsSlide)return false;n.loopFix();n._clientLeft=n.$wrapperEl[0].clientLeft}const c=l?n.translate:-n.translate;function u(e){if(e<0)return-Math.floor(Math.abs(e));return Math.floor(e)}const d=u(c);const p=o.map((e=>u(e)));let h=o[p.indexOf(d)-1];if(typeof h==="undefined"&&s.cssMode){let e;o.forEach(((t,i)=>{if(d>=t){e=i}}));if(typeof e!=="undefined"){h=o[e>0?e-1:e]}}let g=0;if(typeof h!=="undefined"){g=a.indexOf(h);if(g<0)g=n.activeIndex-1;if(s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto){g=g-n.slidesPerViewDynamic("previous",true)+1;g=Math.max(g,0)}}if(s.rewind&&n.isBeginning){const s=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(s,e,t,i)}return n.slideTo(g,e,t,i)}function et(e=this.params.speed,t=true,i){const n=this;return n.slideTo(n.activeIndex,e,t,i)}function tt(e=this.params.speed,t=true,i,n=.5){const s=this;let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r);const a=o+Math.floor((r-o)/s.params.slidesPerGroup);const l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const e=s.snapGrid[a];const t=s.snapGrid[a+1];if(l-e>(t-e)*n){r+=s.params.slidesPerGroup}}else{const e=s.snapGrid[a-1];const t=s.snapGrid[a];if(l-e<=(t-e)*n){r-=s.params.slidesPerGroup}}r=Math.max(r,0);r=Math.min(r,s.slidesGrid.length-1);return s.slideTo(r,e,t,i)}function it(){const e=this;const{params:t,$wrapperEl:i}=e;const n=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let s=e.clickedIndex;let r;if(t.loop){if(e.animating)return;r=parseInt(S(e.clickedSlide).attr("data-swiper-slide-index"),10);if(t.centeredSlides){if(s<e.loopedSlides-n/2||s>e.slides.length-e.loopedSlides+n/2){e.loopFix();s=i.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index();le((()=>{e.slideTo(s)}))}else{e.slideTo(s)}}else if(s>e.slides.length-n){e.loopFix();s=i.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index();le((()=>{e.slideTo(s)}))}else{e.slideTo(s)}}else{e.slideTo(s)}}const nt={slideTo:Ke,slideToLoop:Je,slideNext:Qe,slidePrev:Ze,slideReset:et,slideToClosest:tt,slideToClickedSlide:it};function st(){const e=this;const t=h();const{params:i,$wrapperEl:n}=e;const s=n.children().length>0?S(n.children()[0].parentNode):n;s.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let r=s.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-r.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let n=0;n<e;n+=1){const e=S(t.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);s.append(e)}r=s.children(`.${i.slideClass}`)}}if(i.slidesPerView==="auto"&&!i.loopedSlides)i.loopedSlides=r.length;e.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10));e.loopedSlides+=i.loopAdditionalSlides;if(e.loopedSlides>r.length&&e.params.loopedSlidesLimit){e.loopedSlides=r.length}const o=[];const a=[];r.each(((e,t)=>{const i=S(e);i.attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/r.length)*r.length;a.push(r.eq(e)[0]);o.unshift(r.eq(r.length-e-1)[0])}for(let e=0;e<a.length;e+=1){s.append(S(a[e].cloneNode(true)).addClass(i.slideDuplicateClass))}for(let e=o.length-1;e>=0;e-=1){s.prepend(S(o[e].cloneNode(true)).addClass(i.slideDuplicateClass))}}function rt(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:n,allowSlidePrev:s,allowSlideNext:r,snapGrid:o,rtlTranslate:a}=e;let l;e.allowSlidePrev=true;e.allowSlideNext=true;const f=-o[t];const c=f-e.getTranslate();if(t<n){l=i.length-n*3+t;l+=n;const s=e.slideTo(l,0,false,true);if(s&&c!==0){e.setTranslate((a?-e.translate:e.translate)-c)}}else if(t>=i.length-n){l=-i.length+t+n;l+=n;const s=e.slideTo(l,0,false,true);if(s&&c!==0){e.setTranslate((a?-e.translate:e.translate)-c)}}e.allowSlidePrev=s;e.allowSlideNext=r;e.emit("loopFix")}function ot(){const e=this;const{$wrapperEl:t,params:i,slides:n}=e;t.children(`.${i.slideClass}.${i.slideDuplicateClass},.${i.slideClass}.${i.slideBlankClass}`).remove();n.removeAttr("data-swiper-slide-index")}const at={loopCreate:st,loopFix:rt,loopDestroy:ot};function lt(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;i.style.cursor="move";i.style.cursor=e?"grabbing":"grab"}function ft(){const e=this;if(e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode){return}e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor=""}const ct={setGrabCursor:lt,unsetGrabCursor:ft};function ut(e,t=this){function i(t){if(!t||t===h()||t===v())return null;if(t.assignedSlot)t=t.assignedSlot;const n=t.closest(e);if(!n&&!t.getRootNode){return null}return n||i(t.getRootNode().host)}return i(t)}function dt(e){const t=this;const i=h();const n=v();const s=t.touchEventsData;const{params:r,touches:o,enabled:a}=t;if(!a)return;if(t.animating&&r.preventInteractionOnTransition){return}if(!t.animating&&r.cssMode&&r.loop){t.loopFix()}let l=e;if(l.originalEvent)l=l.originalEvent;let f=S(l.target);if(r.touchEventsTarget==="wrapper"){if(!f.closest(t.wrapperEl).length)return}s.isTouchEvent=l.type==="touchstart";if(!s.isTouchEvent&&"which"in l&&l.which===3)return;if(!s.isTouchEvent&&"button"in l&&l.button>0)return;if(s.isTouched&&s.isMoved)return;const c=!!r.noSwipingClass&&r.noSwipingClass!=="";const u=e.composedPath?e.composedPath():e.path;if(c&&l.target&&l.target.shadowRoot&&u){f=S(u[0])}const d=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`;const p=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(p?ut(d,f[0]):f.closest(d)[0])){t.allowClick=true;return}if(r.swipeHandler){if(!f.closest(r.swipeHandler)[0])return}o.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX;o.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const g=o.currentX;const b=o.currentY;const m=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection;const w=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(m&&(g<=w||g>=n.innerWidth-w)){if(m==="prevent"){e.preventDefault()}else{return}}Object.assign(s,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});o.startX=g;o.startY=b;s.touchStartTime=fe();t.allowClick=true;t.updateSize();t.swipeDirection=undefined;if(r.threshold>0)s.allowThresholdMove=false;if(l.type!=="touchstart"){let e=true;if(f.is(s.focusableElements)){e=false;if(f[0].nodeName==="SELECT"){s.isTouched=false}}if(i.activeElement&&S(i.activeElement).is(s.focusableElements)&&i.activeElement!==f[0]){i.activeElement.blur()}const n=e&&t.allowTouchMove&&r.touchStartPreventDefault;if((r.touchStartForcePreventDefault||n)&&!f[0].isContentEditable){l.preventDefault()}}if(t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode){t.freeMode.onTouchStart()}t.emit("touchStart",l)}function pt(e){const t=h();const i=this;const n=i.touchEventsData;const{params:s,touches:r,rtlTranslate:o,enabled:a}=i;if(!a)return;let l=e;if(l.originalEvent)l=l.originalEvent;if(!n.isTouched){if(n.startMoving&&n.isScrolling){i.emit("touchMoveOpposite",l)}return}if(n.isTouchEvent&&l.type!=="touchmove")return;const f=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]);const c=l.type==="touchmove"?f.pageX:l.pageX;const u=l.type==="touchmove"?f.pageY:l.pageY;if(l.preventedByNestedSwiper){r.startX=c;r.startY=u;return}if(!i.allowTouchMove){if(!S(l.target).is(n.focusableElements)){i.allowClick=false}if(n.isTouched){Object.assign(r,{startX:c,startY:u,currentX:c,currentY:u});n.touchStartTime=fe()}return}if(n.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop){if(i.isVertical()){if(u<r.startY&&i.translate<=i.maxTranslate()||u>r.startY&&i.translate>=i.minTranslate()){n.isTouched=false;n.isMoved=false;return}}else if(c<r.startX&&i.translate<=i.maxTranslate()||c>r.startX&&i.translate>=i.minTranslate()){return}}if(n.isTouchEvent&&t.activeElement){if(l.target===t.activeElement&&S(l.target).is(n.focusableElements)){n.isMoved=true;i.allowClick=false;return}}if(n.allowTouchCallbacks){i.emit("touchMove",l)}if(l.targetTouches&&l.targetTouches.length>1)return;r.currentX=c;r.currentY=u;const d=r.currentX-r.startX;const p=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(d**2+p**2)<i.params.threshold)return;if(typeof n.isScrolling==="undefined"){let e;if(i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX){n.isScrolling=false}else{if(d*d+p*p>=25){e=Math.atan2(Math.abs(p),Math.abs(d))*180/Math.PI;n.isScrolling=i.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle}}}if(n.isScrolling){i.emit("touchMoveOpposite",l)}if(typeof n.startMoving==="undefined"){if(r.currentX!==r.startX||r.currentY!==r.startY){n.startMoving=true}}if(n.isScrolling){n.isTouched=false;return}if(!n.startMoving){return}i.allowClick=false;if(!s.cssMode&&l.cancelable){l.preventDefault()}if(s.touchMoveStopPropagation&&!s.nested){l.stopPropagation()}if(!n.isMoved){if(s.loop&&!s.cssMode){i.loopFix()}n.startTranslate=i.getTranslate();i.setTransition(0);if(i.animating){i.$wrapperEl.trigger("webkitTransitionEnd transitionend")}n.allowMomentumBounce=false;if(s.grabCursor&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(true)}i.emit("sliderFirstMove",l)}i.emit("sliderMove",l);n.isMoved=true;let g=i.isHorizontal()?d:p;r.diff=g;g*=s.touchRatio;if(o)g=-g;i.swipeDirection=g>0?"prev":"next";n.currentTranslate=g+n.startTranslate;let v=true;let b=s.resistanceRatio;if(s.touchReleaseOnEdges){b=0}if(g>0&&n.currentTranslate>i.minTranslate()){v=false;if(s.resistance)n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+g)**b}else if(g<0&&n.currentTranslate<i.maxTranslate()){v=false;if(s.resistance)n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-g)**b}if(v){l.preventedByNestedSwiper=true}if(!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate){n.currentTranslate=n.startTranslate}if(!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate){n.currentTranslate=n.startTranslate}if(!i.allowSlidePrev&&!i.allowSlideNext){n.currentTranslate=n.startTranslate}if(s.threshold>0){if(Math.abs(g)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=true;r.startX=r.currentX;r.startY=r.currentY;n.currentTranslate=n.startTranslate;r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{n.currentTranslate=n.startTranslate;return}}if(!s.followFinger||s.cssMode)return;if(s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress){i.updateActiveIndex();i.updateSlidesClasses()}if(i.params.freeMode&&s.freeMode.enabled&&i.freeMode){i.freeMode.onTouchMove()}i.updateProgress(n.currentTranslate);i.setTranslate(n.currentTranslate)}function ht(e){const t=this;const i=t.touchEventsData;const{params:n,touches:s,rtlTranslate:r,slidesGrid:o,enabled:a}=t;if(!a)return;let l=e;if(l.originalEvent)l=l.originalEvent;if(i.allowTouchCallbacks){t.emit("touchEnd",l)}i.allowTouchCallbacks=false;if(!i.isTouched){if(i.isMoved&&n.grabCursor){t.setGrabCursor(false)}i.isMoved=false;i.startMoving=false;return}if(n.grabCursor&&i.isMoved&&i.isTouched&&(t.allowSlideNext===true||t.allowSlidePrev===true)){t.setGrabCursor(false)}const f=fe();const c=f-i.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target);t.emit("tap click",l);if(c<300&&f-i.lastClickTime<300){t.emit("doubleTap doubleClick",l)}}i.lastClickTime=fe();le((()=>{if(!t.destroyed)t.allowClick=true}));if(!i.isTouched||!i.isMoved||!t.swipeDirection||s.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=false;i.isMoved=false;i.startMoving=false;return}i.isTouched=false;i.isMoved=false;i.startMoving=false;let u;if(n.followFinger){u=r?t.translate:-t.translate}else{u=-i.currentTranslate}if(n.cssMode){return}if(t.params.freeMode&&n.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:u});return}let d=0;let p=t.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=e<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(typeof o[e+t]!=="undefined"){if(u>=o[e]&&u<o[e+t]){d=e;p=o[e+t]-o[e]}}else if(u>=o[e]){d=e;p=o[o.length-1]-o[o.length-2]}}let h=null;let g=null;if(n.rewind){if(t.isBeginning){g=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1}else if(t.isEnd){h=0}}const v=(u-o[d])/p;const b=d<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(c>n.longSwipesMs){if(!n.longSwipes){t.slideTo(t.activeIndex);return}if(t.swipeDirection==="next"){if(v>=n.longSwipesRatio)t.slideTo(n.rewind&&t.isEnd?h:d+b);else t.slideTo(d)}if(t.swipeDirection==="prev"){if(v>1-n.longSwipesRatio){t.slideTo(d+b)}else if(g!==null&&v<0&&Math.abs(v)>n.longSwipesRatio){t.slideTo(g)}else{t.slideTo(d)}}}else{if(!n.shortSwipes){t.slideTo(t.activeIndex);return}const e=t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl);if(!e){if(t.swipeDirection==="next"){t.slideTo(h!==null?h:d+b)}if(t.swipeDirection==="prev"){t.slideTo(g!==null?g:d)}}else if(l.target===t.navigation.nextEl){t.slideTo(d+b)}else{t.slideTo(d)}}}function gt(){const e=this;const{params:t,el:i}=e;if(i&&i.offsetWidth===0)return;if(t.breakpoints){e.setBreakpoint()}const{allowSlideNext:n,allowSlidePrev:s,snapGrid:r}=e;e.allowSlideNext=true;e.allowSlidePrev=true;e.updateSize();e.updateSlides();e.updateSlidesClasses();if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides){e.slideTo(e.slides.length-1,0,false,true)}else{e.slideTo(e.activeIndex,0,false,true)}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){e.autoplay.run()}e.allowSlidePrev=s;e.allowSlideNext=n;if(e.params.watchOverflow&&r!==e.snapGrid){e.checkOverflow()}}function vt(e){const t=this;if(!t.enabled)return;if(!t.allowClick){if(t.params.preventClicks)e.preventDefault();if(t.params.preventClicksPropagation&&t.animating){e.stopPropagation();e.stopImmediatePropagation()}}}function bt(){const e=this;const{wrapperEl:t,rtlTranslate:i,enabled:n}=e;if(!n)return;e.previousTranslate=e.translate;if(e.isHorizontal()){e.translate=-t.scrollLeft}else{e.translate=-t.scrollTop}if(e.translate===0)e.translate=0;e.updateActiveIndex();e.updateSlidesClasses();let s;const r=e.maxTranslate()-e.minTranslate();if(r===0){s=0}else{s=(e.translate-e.minTranslate())/r}if(s!==e.progress){e.updateProgress(i?-e.translate:e.translate)}e.emit("setTranslate",e.translate,false)}let mt=false;function wt(){}const yt=(e,t)=>{const i=h();const{params:n,touchEvents:s,el:r,wrapperEl:o,device:a,support:l}=e;const f=!!n.nested;const c=t==="on"?"addEventListener":"removeEventListener";const u=t;if(!l.touch){r[c](s.start,e.onTouchStart,false);i[c](s.move,e.onTouchMove,f);i[c](s.end,e.onTouchEnd,false)}else{const t=s.start==="touchstart"&&l.passiveListener&&n.passiveListeners?{passive:true,capture:false}:false;r[c](s.start,e.onTouchStart,t);r[c](s.move,e.onTouchMove,l.passiveListener?{passive:false,capture:f}:f);r[c](s.end,e.onTouchEnd,t);if(s.cancel){r[c](s.cancel,e.onTouchEnd,t)}}if(n.preventClicks||n.preventClicksPropagation){r[c]("click",e.onClick,true)}if(n.cssMode){o[c]("scroll",e.onScroll)}if(n.updateOnWindowResize){e[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",gt,true)}else{e[u]("observerUpdate",gt,true)}};function xt(){const e=this;const t=h();const{params:i,support:n}=e;e.onTouchStart=dt.bind(e);e.onTouchMove=pt.bind(e);e.onTouchEnd=ht.bind(e);if(i.cssMode){e.onScroll=bt.bind(e)}e.onClick=vt.bind(e);if(n.touch&&!mt){t.addEventListener("touchstart",wt);mt=true}yt(e,"on")}function $t(){const e=this;yt(e,"off")}const St={attachEvents:xt,detachEvents:$t};const Ct=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Tt(){const e=this;const{activeIndex:t,initialized:i,loopedSlides:n=0,params:s,$el:r}=e;const o=s.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=a in o?o[a]:undefined;const f=l||e.originalParams;const c=Ct(e,s);const u=Ct(e,f);const d=s.enabled;if(c&&!u){r.removeClass(`${s.containerModifierClass}grid ${s.containerModifierClass}grid-column`);e.emitContainerClasses()}else if(!c&&u){r.addClass(`${s.containerModifierClass}grid`);if(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&s.grid.fill==="column"){r.addClass(`${s.containerModifierClass}grid-column`)}e.emitContainerClasses()}["navigation","pagination","scrollbar"].forEach((t=>{const i=s[t]&&s[t].enabled;const n=f[t]&&f[t].enabled;if(i&&!n){e[t].disable()}if(!i&&n){e[t].enable()}}));const p=f.direction&&f.direction!==s.direction;const h=s.loop&&(f.slidesPerView!==s.slidesPerView||p);if(p&&i){e.changeDirection()}he(e.params,f);const g=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev});if(d&&!g){e.disable()}else if(!d&&g){e.enable()}e.currentBreakpoint=a;e.emit("_beforeBreakpoint",f);if(h&&i){e.loopDestroy();e.loopCreate();e.updateSlides();e.slideTo(t-n+e.loopedSlides,0,false)}e.emit("breakpoint",f)}function kt(e,t="window",i){if(!e||t==="container"&&!i)return undefined;let n=false;const s=v();const r=t==="window"?s.innerHeight:i.clientHeight;const o=Object.keys(e).map((e=>{if(typeof e==="string"&&e.indexOf("@")===0){const t=parseFloat(e.substr(1));const i=r*t;return{value:i,point:e}}return{value:e,point:e}}));o.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<o.length;e+=1){const{point:r,value:a}=o[e];if(t==="window"){if(s.matchMedia(`(min-width: ${a}px)`).matches){n=r}}else if(a<=i.clientWidth){n=r}}return n||"max"}const Et={setBreakpoint:Tt,getBreakpoint:kt};function Mt(e,t){const i=[];e.forEach((e=>{if(typeof e==="object"){Object.keys(e).forEach((n=>{if(e[n]){i.push(t+n)}}))}else if(typeof e==="string"){i.push(t+e)}}));return i}function qt(){const e=this;const{classNames:t,params:i,rtl:n,$el:s,device:r,support:o}=e;const a=Mt(["initialized",i.direction,{"pointer-events":!o.touch},{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...a);s.addClass([...t].join(" "));e.emitContainerClasses()}function Pt(){const e=this;const{$el:t,classNames:i}=e;t.removeClass(i.join(" "));e.emitContainerClasses()}const Ot={addClasses:qt,removeClasses:Pt};function It(e,t,i,n,s,r){const o=v();let a;function l(){if(r)r()}const f=S(e).parent("picture")[0];if(!f&&(!e.complete||!s)){if(t){a=new o.Image;a.onload=l;a.onerror=l;if(n){a.sizes=n}if(i){a.srcset=i}if(t){a.src=t}}else{l()}}else{l()}}function jt(){const e=this;e.imagesToLoad=e.$el.find("img");function t(){if(typeof e==="undefined"||e===null||!e||e.destroyed)return;if(e.imagesLoaded!==undefined)e.imagesLoaded+=1;if(e.imagesLoaded===e.imagesToLoad.length){if(e.params.updateOnImagesReady)e.update();e.emit("imagesReady")}}for(let i=0;i<e.imagesToLoad.length;i+=1){const n=e.imagesToLoad[i];e.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),true,t)}}const Lt={loadImage:It,preloadImages:jt};function At(){const e=this;const{isLocked:t,params:i}=e;const{slidesOffsetBefore:n}=i;if(n){const t=e.slides.length-1;const i=e.slidesGrid[t]+e.slidesSizesGrid[t]+n*2;e.isLocked=e.size>i}else{e.isLocked=e.snapGrid.length===1}if(i.allowSlideNext===true){e.allowSlideNext=!e.isLocked}if(i.allowSlidePrev===true){e.allowSlidePrev=!e.isLocked}if(t&&t!==e.isLocked){e.isEnd=false}if(t!==e.isLocked){e.emit(e.isLocked?"lock":"unlock")}}const zt={checkOverflow:At};const Dt={init:true,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:false,updateOnWindowResize:true,resizeObserver:true,nested:false,createElements:false,enabled:true,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:false,userAgent:null,url:null,edgeSwipeDetection:false,edgeSwipeThreshold:20,autoHeight:false,setWrapperSize:false,virtualTranslate:false,effect:"slide",breakpoints:undefined,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:false,centeredSlides:false,centeredSlidesBounds:false,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:true,centerInsufficientSlides:false,watchOverflow:true,roundLengths:false,touchRatio:1,touchAngle:45,simulateTouch:true,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,allowTouchMove:true,threshold:0,touchMoveStopPropagation:false,touchStartPreventDefault:true,touchStartForcePreventDefault:false,touchReleaseOnEdges:false,uniqueNavElements:true,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,grabCursor:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,preloadImages:true,updateOnImagesReady:true,loop:false,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:true,loopFillGroupWithBlank:false,loopPreventsSlide:true,rewind:false,allowSlidePrev:true,allowSlideNext:true,swipeHandler:null,noSwiping:true,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:true,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:true,_emitClasses:false};function Ft(e,t){return function i(n={}){const s=Object.keys(n)[0];const r=n[s];if(typeof r!=="object"||r===null){he(t,n);return}if(["navigation","pagination","scrollbar"].indexOf(s)>=0&&e[s]===true){e[s]={auto:true}}if(!(s in e&&"enabled"in r)){he(t,n);return}if(e[s]===true){e[s]={enabled:true}}if(typeof e[s]==="object"&&!("enabled"in e[s])){e[s].enabled=true}if(!e[s])e[s]={enabled:false};he(t,n)}}const Bt={eventsEmitter:Me,update:Fe,translate:Re,transition:Ye,slide:nt,loop:at,grabCursor:ct,events:St,breakpoints:Et,checkOverflow:zt,classes:Ot,images:Lt};const Gt={};class Nt{constructor(...e){let t;let i;if(e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"){i=e[0]}else{[t,i]=e}if(!i)i={};i=he({},i);if(t&&!i.el)i.el=t;if(i.el&&S(i.el).length>1){const e=[];S(i.el).each((t=>{const n=he({},i,{el:t});e.push(new Nt(n))}));return e}const n=this;n.__swiper__=true;n.support=we();n.device=$e({userAgent:i.userAgent});n.browser=Te();n.eventsListeners={};n.eventsAnyListeners=[];n.modules=[...n.__modules__];if(i.modules&&Array.isArray(i.modules)){n.modules.push(...i.modules)}const s={};n.modules.forEach((e=>{e({swiper:n,extendParams:Ft(i,s),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})}));const r=he({},Dt,s);n.params=he({},r,Gt,i);n.originalParams=he({},n.params);n.passedParams=he({},i);if(n.params&&n.params.on){Object.keys(n.params.on).forEach((e=>{n.on(e,n.params.on[e])}))}if(n.params&&n.params.onAny){n.onAny(n.params.onAny)}n.$=S;Object.assign(n,{enabled:n.params.enabled,el:t,classNames:[],slides:S(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function e(){const t=["touchstart","touchmove","touchend","touchcancel"];const i=["pointerdown","pointermove","pointerup"];n.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]};n.touchEventsDesktop={start:i[0],move:i[1],end:i[2]};return n.support.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:n.params.focusableElements,lastClickTime:fe(),clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,isTouchEvent:undefined,startMoving:undefined},allowClick:true,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});n.emit("_swiper");if(n.params.init){n.init()}return n}enable(){const e=this;if(e.enabled)return;e.enabled=true;if(e.params.grabCursor){e.setGrabCursor()}e.emit("enable")}disable(){const e=this;if(!e.enabled)return;e.enabled=false;if(e.params.grabCursor){e.unsetGrabCursor()}e.emit("disable")}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const n=i.minTranslate();const s=i.maxTranslate();const r=(s-n)*e+n;i.translateTo(r,typeof t==="undefined"?0:t);i.updateActiveIndex();i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>t.indexOf("swiper")===0||t.indexOf(e.params.containerModifierClass)===0));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;if(t.destroyed)return"";return e.className.split(" ").filter((e=>e.indexOf("swiper-slide")===0||e.indexOf(t.params.slideClass)===0)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((i=>{const n=e.getSlideClasses(i);t.push({slideEl:i,classNames:n});e.emit("_slideClass",i,n)}));e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=false){const i=this;const{params:n,slides:s,slidesGrid:r,slidesSizesGrid:o,size:a,activeIndex:l}=i;let f=1;if(n.centeredSlides){let e=s[l].swiperSlideSize;let t;for(let i=l+1;i<s.length;i+=1){if(s[i]&&!t){e+=s[i].swiperSlideSize;f+=1;if(e>a)t=true}}for(let i=l-1;i>=0;i-=1){if(s[i]&&!t){e+=s[i].swiperSlideSize;f+=1;if(e>a)t=true}}}else{if(e==="current"){for(let e=l+1;e<s.length;e+=1){const i=t?r[e]+o[e]-r[l]<a:r[e]-r[l]<a;if(i){f+=1}}}else{for(let e=l-1;e>=0;e-=1){const t=r[l]-r[e]<a;if(t){f+=1}}}}return f}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;if(i.breakpoints){e.setBreakpoint()}e.updateSize();e.updateSlides();e.updateProgress();e.updateSlidesClasses();function n(){const t=e.rtlTranslate?e.translate*-1:e.translate;const i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i);e.updateActiveIndex();e.updateSlidesClasses()}let s;if(e.params.freeMode&&e.params.freeMode.enabled){n();if(e.params.autoHeight){e.updateAutoHeight()}}else{if((e.params.slidesPerView==="auto"||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides){s=e.slideTo(e.slides.length-1,0,false,true)}else{s=e.slideTo(e.activeIndex,0,false,true)}if(!s){n()}}if(i.watchOverflow&&t!==e.snapGrid){e.checkOverflow()}e.emit("update")}changeDirection(e,t=true){const i=this;const n=i.params.direction;if(!e){e=n==="horizontal"?"vertical":"horizontal"}if(e===n||e!=="horizontal"&&e!=="vertical"){return i}i.$el.removeClass(`${i.params.containerModifierClass}${n}`).addClass(`${i.params.containerModifierClass}${e}`);i.emitContainerClasses();i.params.direction=e;i.slides.each((t=>{if(e==="vertical"){t.style.width=""}else{t.style.height=""}}));i.emit("changeDirection");if(t)i.update();return i}changeLanguageDirection(e){const t=this;if(t.rtl&&e==="rtl"||!t.rtl&&e==="ltr")return;t.rtl=e==="rtl";t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl;if(t.rtl){t.$el.addClass(`${t.params.containerModifierClass}rtl`);t.el.dir="rtl"}else{t.$el.removeClass(`${t.params.containerModifierClass}rtl`);t.el.dir="ltr"}t.update()}mount(e){const t=this;if(t.mounted)return true;const i=S(e||t.params.el);e=i[0];if(!e){return false}e.swiper=t;const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;const s=()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=S(e.shadowRoot.querySelector(n()));t.children=e=>i.children(e);return t}if(!i.children){return S(i).children(n())}return i.children(n())};let r=s();if(r.length===0&&t.params.createElements){const e=h();const n=e.createElement("div");r=S(n);n.className=t.params.wrapperClass;i.append(n);i.children(`.${t.params.slideClass}`).each((e=>{r.append(e)}))}Object.assign(t,{$el:i,el:e,$wrapperEl:r,wrapperEl:r[0],mounted:true,rtl:e.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl"),wrongRTL:r.css("display")==="-webkit-box"});return true}init(e){const t=this;if(t.initialized)return t;const i=t.mount(e);if(i===false)return t;t.emit("beforeInit");if(t.params.breakpoints){t.setBreakpoint()}t.addClasses();if(t.params.loop){t.loopCreate()}t.updateSize();t.updateSlides();if(t.params.watchOverflow){t.checkOverflow()}if(t.params.grabCursor&&t.enabled){t.setGrabCursor()}if(t.params.preloadImages){t.preloadImages()}if(t.params.loop){t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,false,true)}else{t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,false,true)}t.attachEvents();t.initialized=true;t.emit("init");t.emit("afterInit");return t}destroy(e=true,t=true){const i=this;const{params:n,$el:s,$wrapperEl:r,slides:o}=i;if(typeof i.params==="undefined"||i.destroyed){return null}i.emit("beforeDestroy");i.initialized=false;i.detachEvents();if(n.loop){i.loopDestroy()}if(t){i.removeClasses();s.removeAttr("style");r.removeAttr("style");if(o&&o.length){o.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")}}i.emit("destroy");Object.keys(i.eventsListeners).forEach((e=>{i.off(e)}));if(e!==false){i.$el[0].swiper=null;ae(i)}i.destroyed=true;return null}static extendDefaults(e){he(Gt,e)}static get extendedDefaults(){return Gt}static get defaults(){return Dt}static installModule(e){if(!Nt.prototype.__modules__)Nt.prototype.__modules__=[];const t=Nt.prototype.__modules__;if(typeof e==="function"&&t.indexOf(e)<0){t.push(e)}}static use(e){if(Array.isArray(e)){e.forEach((e=>Nt.installModule(e)));return Nt}Nt.installModule(e);return Nt}}Object.keys(Bt).forEach((e=>{Object.keys(Bt[e]).forEach((t=>{Nt.prototype[t]=Bt[e][t]}))}));Nt.use([ke,Ee]);function Wt({swiper:e,extendParams:t,on:i,emit:n}){let s;e.autoplay={running:false,paused:false};t({autoplay:{enabled:false,delay:3e3,waitForTransition:true,disableOnInteraction:true,stopOnLastSlide:false,reverseDirection:false,pauseOnMouseEnter:false}});function r(){if(!e.size){e.autoplay.running=false;e.autoplay.paused=false;return}const t=e.slides.eq(e.activeIndex);let i=e.params.autoplay.delay;if(t.attr("data-swiper-autoplay")){i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay}clearTimeout(s);s=le((()=>{let t;if(e.params.autoplay.reverseDirection){if(e.params.loop){e.loopFix();t=e.slidePrev(e.params.speed,true,true);n("autoplay")}else if(!e.isBeginning){t=e.slidePrev(e.params.speed,true,true);n("autoplay")}else if(!e.params.autoplay.stopOnLastSlide){t=e.slideTo(e.slides.length-1,e.params.speed,true,true);n("autoplay")}else{a()}}else if(e.params.loop){e.loopFix();t=e.slideNext(e.params.speed,true,true);n("autoplay")}else if(!e.isEnd){t=e.slideNext(e.params.speed,true,true);n("autoplay")}else if(!e.params.autoplay.stopOnLastSlide){t=e.slideTo(0,e.params.speed,true,true);n("autoplay")}else{a()}if(e.params.cssMode&&e.autoplay.running)r();else if(t===false){r()}}),i)}function o(){if(typeof s!=="undefined")return false;if(e.autoplay.running)return false;e.autoplay.running=true;n("autoplayStart");r();return true}function a(){if(!e.autoplay.running)return false;if(typeof s==="undefined")return false;if(s){clearTimeout(s);s=undefined}e.autoplay.running=false;n("autoplayStop");return true}function l(t){if(!e.autoplay.running)return;if(e.autoplay.paused)return;if(s)clearTimeout(s);e.autoplay.paused=true;if(t===0||!e.params.autoplay.waitForTransition){e.autoplay.paused=false;r()}else{["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].addEventListener(t,c)}))}}function f(){const t=h();if(t.visibilityState==="hidden"&&e.autoplay.running){l()}if(t.visibilityState==="visible"&&e.autoplay.paused){r();e.autoplay.paused=false}}function c(t){if(!e||e.destroyed||!e.$wrapperEl)return;if(t.target!==e.$wrapperEl[0])return;["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,c)}));e.autoplay.paused=false;if(!e.autoplay.running){a()}else{r()}}function u(){if(e.params.autoplay.disableOnInteraction){a()}else{n("autoplayPause");l()}["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,c)}))}function d(){if(e.params.autoplay.disableOnInteraction){return}e.autoplay.paused=false;n("autoplayResume");r()}function p(){if(e.params.autoplay.pauseOnMouseEnter){e.$el.on("mouseenter",u);e.$el.on("mouseleave",d)}}function g(){e.$el.off("mouseenter",u);e.$el.off("mouseleave",d)}i("init",(()=>{if(e.params.autoplay.enabled){o();const e=h();e.addEventListener("visibilitychange",f);p()}}));i("beforeTransitionStart",((t,i,n)=>{if(e.autoplay.running){if(n||!e.params.autoplay.disableOnInteraction){e.autoplay.pause(i)}else{a()}}}));i("sliderFirstMove",(()=>{if(e.autoplay.running){if(e.params.autoplay.disableOnInteraction){a()}else{l()}}}));i("touchEnd",(()=>{if(e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction){r()}}));i("destroy",(()=>{g();if(e.autoplay.running){a()}const t=h();t.removeEventListener("visibilitychange",f)}));Object.assign(e.autoplay,{pause:l,run:r,start:o,stop:a})}const _t="*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}q2-carousel{display:grid;grid-template-rows:repeat(2, auto);gap:var(--app-scale-2x, 10px)}.swiper-container{--comp-container-padding:var(--app-scale-1x, 5px) 0 var(--app-scale-2x, 10px);display:block;width:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;padding:var(--tct-carousel-container-padding, var(--t-carousel-container-padding, var(--comp-container-padding, 5px 0 10px)))}.insufficient-pane-feedback{text-align:center;box-shadow:var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14));background:var(--tct-carousel-background, var(--tct-carousel-background-color, var(--t-carousel-background-color, var(--tct-white, var(--app-white, #ffffff)))));border:var(--tct-carousel-pane-border-width, var(--t-carousel-pane-border-width, 1px)) solid var(--tct-carousel-pane-border-color, var(--t-carousel-pane-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));border-radius:var(--tct-carousel-pane-border-radius, var(--t-carousel-pane-border-radius, 8px));padding:var(--tct-carousel-pane-padding, var(--t-carousel-pane-padding, 7px))}.insufficient-pane-feedback.content-peek-display{max-width:395px;margin:0 auto}.insufficient-pane-feedback .insufficient-panes-header,.insufficient-pane-feedback .insufficient-panes-body{text-align:center}.insufficient-pane-feedback .insufficient-panes-header strong{font-weight:600}.insufficient-pane-feedback .insufficient-panes-body{margin:0 auto 2rem auto;max-width:75%}.insufficient-pane-feedback .insufficient-panes-icon-wrapper{display:flex;justify-content:center;margin:1rem 0 2rem 0}.insufficient-pane-feedback .insufficient-panes-icon-wrapper q2-icon{width:38px}.q2-carousel-pagination-navigation-wrapper{grid-row:2;display:flex;justify-content:center;align-items:center;min-height:44px}.q2-carousel-pagination-navigation-wrapper.evenly-space{justify-content:space-between}.q2-carousel-control-center-tray{display:flex;align-items:center}.q2-carousel-swiper-wrapper.compact{overflow:visible}.q2-carousel-swiper-wrapper.compact q2-btn{margin-top:4px}.q2-carousel-pagination{height:12px;display:flex;align-content:center;justify-content:center;gap:0.5rem}.q2-carousel-pagination .q2-carousel-page-indicator{display:inline-block;height:12px;width:12px;border-radius:50%;background-color:var(--tct-carousel-pagination-inactive-color, var(--t-carousel-pagination-inactive-color, var(--t-a11y--gray-color-AA, #949494)));padding:0;border:0;transition:all 0.5s}.q2-carousel-pagination .q2-carousel-page-indicator:hover{background-color:var(--tct-carousel-pagination-active-color, var(--t-carousel-pagination-active-color, var(--tct-primary, var(--t-primary, #006eb2))))}.q2-carousel-pagination .q2-carousel-page-indicator.active-page{display:inline-block;background-color:var(--tct-carousel-pagination-active-color, var(--t-carousel-pagination-active-color, var(--tct-primary, var(--t-primary, #006eb2))))}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator{display:none}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator.active-page,.q2-carousel-pagination.dynamic .q2-carousel-page-indicator.active-adjacent{display:inline-block;height:10px;width:10px}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator.active-adjacent-adjacent{display:inline-block;height:8px;width:8px}.q2-carousel-swiper-container{grid-row:1;}.q2-carousel-swiper-container .swiper-wrapper{position:relative;width:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.q2-carousel-swiper-container.content-peek-display .q2-carousel-pane:not(.swiper-slide-active){transform:scale(0.9)}.q2-carousel-swiper-container.frameless-display{padding:var(--tct-carousel-frameless-container-padding, var(--t-carousel-frameless-container-padding, 0))}.q2-carousel-swiper-container.full-width-display{--comp-container-padding:var(--app-scale-1x, 5px) var(--app-scale-2x, 10px) var(--app-scale-2x, 10px);padding:var(--tct-carousel-full-width-container-padding, var(--t-carousel-full-width-container-padding, var(--comp-container-padding, 5px 10px 10px)))}";const Rt=_t;const Ht=500;const Vt=class{constructor(n){e(this,n);this.change=t(this,"change",7);this.guid=o();this.swiper=null;this.configureCarousel=(e,t)=>{var i,n;if(!!this.swiper){this.tearDownCarousel()}this.autoPlayInProgress=this.autoPlay;new Nt(e,t);(i=this.swiper)===null||i===void 0?void 0:i.slideTo(this.realIndex);if(this.autoPlayInProgress)(n=this.swiper)===null||n===void 0?void 0:n.autoplay.start()};this.handleAutoPlayPause=e=>{var t;if(!this.autoPlay)return;const i=(t=this.swiper)===null||t===void 0?void 0:t.autoplay;switch(e){case"play":i.start();this.autoPlayInProgress=true;break;case"pause":i.stop();this.autoPlayInProgress=false;break}};this.handlePopovers=e=>{const{swiper:t,carouselPaneWrapperElement:i}=this;if(e.detail.open){i.style.left=`${t===null||t===void 0?void 0:t.translate}px`;i.style.transform=null;t===null||t===void 0?void 0:t.disable()}else{i.style.left=null;i.style.transform=`translate3d(${t===null||t===void 0?void 0:t.translate}px, 0, 0)`;t===null||t===void 0?void 0:t.enable()}};this.keydownHandler=e=>{var t,i,n,s;switch(e.key){case"ArrowRight":e.preventDefault();(t=this.swiper)===null||t===void 0?void 0:t.slideNext();break;case"ArrowLeft":e.preventDefault();(i=this.swiper)===null||i===void 0?void 0:i.slidePrev();break;case"Home":e.preventDefault();(n=this.swiper)===null||n===void 0?void 0:n.slideTo(0);break;case"End":e.preventDefault();(s=this.swiper)===null||s===void 0?void 0:s.slideTo(this.paneCount-1);break}};this.onMutationObserved=()=>{this.updateCarouselPaneProps();this.configureCarousel(this.carouselWrapper,this.activeCarouselOptions)};this.setCarouselWrapperWidth=()=>{if(this.insufficientPanes)return;this.carouselWrapperWidth=this.carouselWrapper.clientWidth};this.tearDownCarousel=()=>{this.swiper.destroy();this.swiper=null};this.updateCarouselPaneProps=()=>{const{framelessPanes:e,paneCount:t,paneArray:i}=this;i.forEach(((i,n)=>{i.index=n;i.siblingCount=t;i.isActivePane=n===this.realIndex;i.slotFrameless=e||undefined}));this.currentPaneCount=t};this.renderAutoPlayBtn=()=>{const{autoPlayInProgress:e}=this;return i("q2-btn",{type:"button","hide-label":true,label:a(e?"tecton.element.carousel.pausePlayLabel":"tecton.element.carousel.resumePlayLabel"),class:"q2-carousel-autoplay-control",onClick:()=>this.handleAutoPlayPause(e?"pause":"play")},i("q2-icon",{type:e?"pause":"play"}))};this.renderInsufficientPanesDisplay=()=>{let e=["insufficient-pane-feedback",this.fullWidthPanes?"full-width-display":"content-peek-display"];if(this.compactMode)e=[...e,"compact"];return i("div",{class:e.join(" ")},i("div",{class:"insufficient-panes-icon-wrapper"},i("q2-icon",{type:"warning"})),i("p",{class:"insufficient-panes-header"},i("strong",null,a("tecton.element.carousel.insufficientPanesMessageHeader"))),i("p",{class:"insufficient-panes-body"},a("tecton.element.carousel.insufficientPanesMessageBody")))};this.renderNextNavBtn=()=>{const e=this.realIndex<this.paneCount-1;return i("div",null,i("q2-btn",{type:"button",disabled:e?undefined:true,class:"q2-carousel-navigation-button q2-carousel-navigation-button-next","hide-label":true,label:a("tecton.element.carousel.nextItemLabel"),onClick:()=>{var e;return(e=this.swiper)===null||e===void 0?void 0:e.slideNext()}},i("q2-icon",{type:"chevron-right"})))};this.renderPaginationArea=()=>{const{useDynamicPaginationDots:e,realIndex:t,paneCount:n,paneArray:s}=this;let r=["q2-carousel-pagination"];if(e)r=[...r,"dynamic"];return i("div",{class:r.join(" "),role:"tablist","aria-label":a("tecton.element.carousel.tabWrapperLabel")},s.map((s=>{let r=["q2-carousel-page-indicator",`q2-carousel-page-indicator-${s.index}`];if(s.isActivePane)r=[...r,"active-page"];if(e)r=[...r,"dynamic"];const o=s.index===t+1||s.index===t-1;if(o)r=[...r,"active-adjacent"];const l=s.index===t+2||s.index===t-2;if(l)r=[...r,"active-adjacent-adjacent"];return i("button",{type:"button",role:"tab",tabIndex:s.isActivePane?undefined:-1,"aria-selected":s.isActivePane?"true":"false",class:r.join(" "),onClick:()=>{var e;return(e=this.swiper)===null||e===void 0?void 0:e.slideTo(s.index)},onKeyDown:this.keydownHandler,"aria-label":a("tecton.element.carousel.itemDescription",[(s.index+1).toString(),n.toString()])})})))};this.renderPrevNavBtn=()=>{const e=this.realIndex>0;return i("div",null,i("q2-btn",{type:"button",disabled:e?undefined:true,class:"q2-carousel-navigation-button q2-carousel-navigation-button-prev","hide-label":true,label:a("tecton.element.carousel.previousItemLabel"),onClick:()=>{var e;return(e=this.swiper)===null||e===void 0?void 0:e.slidePrev()}},i("q2-icon",{type:"chevron-left"})))};this.ariaLiveValue="polite";this.autoPlayInProgress=false;this.carouselWrapperWidth=0;this.compactMode=false;this.currentPaneCount=this.paneCount;this.ariaLabel=undefined;this.autoPlay=false;this.framelessPanes=false;this.fullWidthPanes=false;this.hidePagination=false;this.index=1;this.label="tecton.element.carousel.ariaLabel";this.showNavigationArrows=false}disconnectedCallback(){if(this.mutationObserver){this.mutationObserver.disconnect();this.mutationObserver=null}if(!!this.swiper){this.tearDownCarousel()}window.removeEventListener("resize",this.setCarouselWrapperWidth)}componentWillLoad(){l(this);this.updateCarouselPaneProps();window.addEventListener("resize",this.setCarouselWrapperWidth);this.universalCarouselOptions={centeredSlides:true,focusableElements:"q2-btn, q2-dropdown, q2-item, q2-list, a, input, select, textarea, button, video, label, option",autoplay:this.autoPlay,modules:[Wt],on:{realIndexChange:e=>{this.index=e.realIndex+1;this.updateCarouselPaneProps();const t=!!document.activeElement.closest(`#q2-carousel-${this.guid} .q2-carousel-page-indicator`);const i=!!document.activeElement.closest(`#q2-carousel-${this.guid} q2-carousel-pane`);const n=t||i;this.handleAriaLive(n);this.change.emit({index:e.realIndex+1});if(t){this.paginationBtns[e.realIndex].focus({preventScroll:true})}else if(i)e.slides[e.realIndex].focus({preventScroll:true})},afterInit:e=>{var t;this.swiper=e;(t=this.activePane)===null||t===void 0?void 0:t.addEventListener("popoverStateChanged",this.handlePopovers)},slideChangeTransitionEnd:()=>{var e;(e=this.activePane)===null||e===void 0?void 0:e.addEventListener("popoverStateChanged",this.handlePopovers)},slideChangeTransitionStart:()=>{var e;(e=this.activePane)===null||e===void 0?void 0:e.removeEventListener("popoverStateChanged",this.handlePopovers)}}};this.fullWidthDisplayOptions=Object.assign({slidesPerView:1,spaceBetween:100},this.universalCarouselOptions)}componentDidLoad(){this.setCarouselWrapperWidth();if(this.carouselWrapper&&!!this.paneArray.length){this.configureCarousel(this.carouselWrapper,this.activeCarouselOptions)}const e=new MutationObserver(this.onMutationObserved);e.observe(this.hostElement,{childList:true,subtree:true});this.mutationObserver=e;f(this.hostElement)}carouselPaneClicked(e){var t,i;(t=this.swiper)===null||t===void 0?void 0:t.slideTo(e.detail.paneIndex);((i=this.swiper)===null||i===void 0?void 0:i.slides[e.detail.paneIndex]).focus({preventScroll:true})}delegateFocus(e){var t,i;const n=(t=this.swiper)===null||t===void 0?void 0:t.slides[(i=this.swiper)===null||i===void 0?void 0:i.realIndex];if(!c(e,this.hostElement)||!n)return;n.focus({preventScroll:true})}async selectCarouselPane(e){if(e>this.paneCount)return;const t=e>0?e-1:0;const i=this.paneArray[t];i===null||i===void 0?void 0:i.click();i===null||i===void 0?void 0:i.focus({preventScroll:true})}async togglePlayPause(){if(!this.autoPlay)return;const e=this.hostElement.querySelector(".q2-carousel-autoplay-control");e===null||e===void 0?void 0:e.click();e===null||e===void 0?void 0:e.focus()}ariaLabelObserver(){l(this)}carouselWrapperWidthChanged(){this.compactMode=this.carouselWrapperWidth<Ht}framelessPanesChanged(){this.updateCarouselPaneProps();this.revampCarousel()}revampCarousel(){this.configureCarousel(this.carouselWrapper,this.activeCarouselOptions)}indexChanged(e){var t,i;if(e!==((t=this.swiper)===null||t===void 0?void 0:t.realIndex)+1){(i=this.swiper)===null||i===void 0?void 0:i.slideTo(this.realIndex)}}get activeCarouselOptions(){return this.fullWidthPanes||this.framelessPanes?this.fullWidthDisplayOptions:this.peekContentDisplayOptions}get activePane(){var e,t,i;const n=(i=(e=this.swiper)===null||e===void 0?void 0:e.slides[(t=this.swiper)===null||t===void 0?void 0:t.realIndex])!==null&&i!==void 0?i:0;return n instanceof HTMLElement?n:null}get insufficientPanes(){return this.paneCount<1}get paginationBtns(){return this.hostElement.querySelectorAll(".q2-carousel-page-indicator")}get paneArray(){return Array.from(this.hostElement.querySelectorAll("q2-carousel-pane"))}get paneCount(){return this.paneArray.length}get peekContentDisplayOptions(){return Object.assign({slidesPerView:2,spaceBetween:this.compactMode?0:-10,centerInsufficientSlides:false},this.universalCarouselOptions)}get realIndex(){const e=Number(this.index);return e>0?e-1:0}get useDynamicPaginationDots(){return this.paneCount&&this.paneCount>5}handleAriaLive(e){if(this.autoPlayInProgress&&!e){this.ariaLiveValue="off"}else{this.ariaLiveValue="polite"}}render(){const{paneCount:e,fullWidthPanes:t,framelessPanes:r,compactMode:o,showNavigationArrows:l,insufficientPanes:f,autoPlay:c,hidePagination:u,ariaLiveValue:d,label:p}=this;let h=["q2-carousel-swiper-container","swiper-container"];if(t)h=[...h,"full-width-display"];if(r)h=[...h,"frameless-display"];if(!t&&!r)h=[...h,"content-peek-display"];if(o)h=[...h,"compact"];let g=["q2-carousel-pagination-navigation-wrapper"];if(l)g=[...g,"evenly-space"];return i(s,{key:"67d25d2920d5a952d2940cfdd6afa21e66c68abe",id:`q2-carousel-${this.guid}`,class:"q2-carousel-instance"},f?this.renderInsufficientPanesDisplay():i(n,null,e>1&&i("div",{class:g.join(" ")},l&&this.renderPrevNavBtn(),i("div",{class:"q2-carousel-control-center-tray"},!u&&this.renderPaginationArea(),c&&this.renderAutoPlayBtn()),l&&this.renderNextNavBtn()),i("section",{class:h.join(" "),ref:e=>this.carouselWrapper=e,"aria-roledescription":"carousel","aria-label":a(p)},i("div",{class:"q2-carousel-swiper-wrapper swiper-wrapper",ref:e=>this.carouselPaneWrapperElement=e,"aria-live":d,onKeyDown:this.keydownHandler},i("slot",null)))))}get hostElement(){return r(this)}static get watchers(){return{ariaLabel:["ariaLabelObserver"],carouselWrapperWidth:["carouselWrapperWidthChanged"],framelessPanes:["framelessPanesChanged","revampCarousel"],fullWidthPanes:["revampCarousel"],compactMode:["revampCarousel"],autoPlay:["revampCarousel"],index:["indexChanged"]}}};Vt.style=Rt;export{Vt as q2_carousel};
2
- //# sourceMappingURL=p-e216ef3f.entry.js.map
1
+ import{r as e,c as t,h as i,F as n,H as s,g as r}from"./p-a5f18e27.js";import{c as o,l as a,a as l,o as f,i as c}from"./p-c5445b5e.js";function u(e){return e!==null&&typeof e==="object"&&"constructor"in e&&e.constructor===Object}function d(e={},t={}){Object.keys(t).forEach((i=>{if(typeof e[i]==="undefined")e[i]=t[i];else if(u(t[i])&&u(e[i])&&Object.keys(t[i]).length>0){d(e[i],t[i])}}))}const p={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function h(){const e=typeof document!=="undefined"?document:{};d(e,p);return e}const g={document:p,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function e(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){if(typeof setTimeout==="undefined"){e();return null}return setTimeout(e,0)},cancelAnimationFrame(e){if(typeof setTimeout==="undefined"){return}clearTimeout(e)}};function v(){const e=typeof window!=="undefined"?window:{};d(e,g);return e}function b(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get(){return t},set(e){t.__proto__=e}})}class m extends Array{constructor(e){if(typeof e==="number"){super(e)}else{super(...e||[]);b(this)}}}function w(e=[]){const t=[];e.forEach((e=>{if(Array.isArray(e)){t.push(...w(e))}else{t.push(e)}}));return t}function y(e,t){return Array.prototype.filter.call(e,t)}function x(e){const t=[];for(let i=0;i<e.length;i+=1){if(t.indexOf(e[i])===-1)t.push(e[i])}return t}function $(e,t){if(typeof e!=="string"){return[e]}const i=[];const n=t.querySelectorAll(e);for(let e=0;e<n.length;e+=1){i.push(n[e])}return i}function S(e,t){const i=v();const n=h();let s=[];if(!t&&e instanceof m){return e}if(!e){return new m(s)}if(typeof e==="string"){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";if(i.indexOf("<li")===0)e="ul";if(i.indexOf("<tr")===0)e="tbody";if(i.indexOf("<td")===0||i.indexOf("<th")===0)e="tr";if(i.indexOf("<tbody")===0)e="table";if(i.indexOf("<option")===0)e="select";const t=n.createElement(e);t.innerHTML=i;for(let e=0;e<t.childNodes.length;e+=1){s.push(t.childNodes[e])}}else{s=$(e.trim(),t||n)}}else if(e.nodeType||e===i||e===n){s.push(e)}else if(Array.isArray(e)){if(e instanceof m)return e;s=e}return new m(x(s))}S.fn=m.prototype;function C(...e){const t=w(e.map((e=>e.split(" "))));this.forEach((e=>{e.classList.add(...t)}));return this}function T(...e){const t=w(e.map((e=>e.split(" "))));this.forEach((e=>{e.classList.remove(...t)}));return this}function k(...e){const t=w(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))}function E(...e){const t=w(e.map((e=>e.split(" "))));return y(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0}function M(e,t){if(arguments.length===1&&typeof e==="string"){if(this[0])return this[0].getAttribute(e);return undefined}for(let i=0;i<this.length;i+=1){if(arguments.length===2){this[i].setAttribute(e,t)}else{for(const t in e){this[i][t]=e[t];this[i].setAttribute(t,e[t])}}}return this}function q(e){for(let t=0;t<this.length;t+=1){this[t].removeAttribute(e)}return this}function P(e){for(let t=0;t<this.length;t+=1){this[t].style.transform=e}return this}function O(e){for(let t=0;t<this.length;t+=1){this[t].style.transitionDuration=typeof e!=="string"?`${e}ms`:e}return this}function I(...e){let[t,i,n,s]=e;if(typeof e[1]==="function"){[t,n,s]=e;i=undefined}if(!s)s=false;function r(e){const t=e.target;if(!t)return;const s=e.target.dom7EventData||[];if(s.indexOf(e)<0){s.unshift(e)}if(S(t).is(i))n.apply(t,s);else{const e=S(t).parents();for(let t=0;t<e.length;t+=1){if(S(e[t]).is(i))n.apply(e[t],s)}}}function o(e){const t=e&&e.target?e.target.dom7EventData||[]:[];if(t.indexOf(e)<0){t.unshift(e)}n.apply(this,t)}const a=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(!i){for(l=0;l<a.length;l+=1){const e=a[l];if(!t.dom7Listeners)t.dom7Listeners={};if(!t.dom7Listeners[e])t.dom7Listeners[e]=[];t.dom7Listeners[e].push({listener:n,proxyListener:o});t.addEventListener(e,o,s)}}else{for(l=0;l<a.length;l+=1){const e=a[l];if(!t.dom7LiveListeners)t.dom7LiveListeners={};if(!t.dom7LiveListeners[e])t.dom7LiveListeners[e]=[];t.dom7LiveListeners[e].push({listener:n,proxyListener:r});t.addEventListener(e,r,s)}}}return this}function j(...e){let[t,i,n,s]=e;if(typeof e[1]==="function"){[t,n,s]=e;i=undefined}if(!s)s=false;const r=t.split(" ");for(let e=0;e<r.length;e+=1){const t=r[e];for(let e=0;e<this.length;e+=1){const r=this[e];let o;if(!i&&r.dom7Listeners){o=r.dom7Listeners[t]}else if(i&&r.dom7LiveListeners){o=r.dom7LiveListeners[t]}if(o&&o.length){for(let e=o.length-1;e>=0;e-=1){const i=o[e];if(n&&i.listener===n){r.removeEventListener(t,i.proxyListener,s);o.splice(e,1)}else if(n&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===n){r.removeEventListener(t,i.proxyListener,s);o.splice(e,1)}else if(!n){r.removeEventListener(t,i.proxyListener,s);o.splice(e,1)}}}}}return this}function L(...e){const t=v();const i=e[0].split(" ");const n=e[1];for(let s=0;s<i.length;s+=1){const r=i[s];for(let i=0;i<this.length;i+=1){const s=this[i];if(t.CustomEvent){const i=new t.CustomEvent(r,{detail:n,bubbles:true,cancelable:true});s.dom7EventData=e.filter(((e,t)=>t>0));s.dispatchEvent(i);s.dom7EventData=[];delete s.dom7EventData}}}return this}function A(e){const t=this;function i(n){if(n.target!==this)return;e.call(this,n);t.off("transitionend",i)}if(e){t.on("transitionend",i)}return this}function z(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function D(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function F(){if(this.length>0){const e=v();const t=h();const i=this[0];const n=i.getBoundingClientRect();const s=t.body;const r=i.clientTop||s.clientTop||0;const o=i.clientLeft||s.clientLeft||0;const a=i===e?e.scrollY:i.scrollTop;const l=i===e?e.scrollX:i.scrollLeft;return{top:n.top+a-r,left:n.left+l-o}}return null}function B(){const e=v();if(this[0])return e.getComputedStyle(this[0],null);return{}}function G(e,t){const i=v();let n;if(arguments.length===1){if(typeof e==="string"){if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(n=0;n<this.length;n+=1){for(const t in e){this[n].style[t]=e[t]}}return this}}if(arguments.length===2&&typeof e==="string"){for(n=0;n<this.length;n+=1){this[n].style[e]=t}return this}return this}function N(e){if(!e)return this;this.forEach(((t,i)=>{e.apply(t,[t,i])}));return this}function W(e){const t=y(this,e);return S(t)}function _(e){if(typeof e==="undefined"){return this[0]?this[0].innerHTML:null}for(let t=0;t<this.length;t+=1){this[t].innerHTML=e}return this}function R(e){if(typeof e==="undefined"){return this[0]?this[0].textContent.trim():null}for(let t=0;t<this.length;t+=1){this[t].textContent=e}return this}function H(e){const t=v();const i=h();const n=this[0];let s;let r;if(!n||typeof e==="undefined")return false;if(typeof e==="string"){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);s=S(e);for(r=0;r<s.length;r+=1){if(s[r]===n)return true}return false}if(e===i){return n===i}if(e===t){return n===t}if(e.nodeType||e instanceof m){s=e.nodeType?[e]:e;for(r=0;r<s.length;r+=1){if(s[r]===n)return true}return false}return false}function V(){let e=this[0];let t;if(e){t=0;while((e=e.previousSibling)!==null){if(e.nodeType===1)t+=1}return t}return undefined}function U(e){if(typeof e==="undefined")return this;const t=this.length;if(e>t-1){return S([])}if(e<0){const i=t+e;if(i<0)return S([]);return S([this[i]])}return S([this[e]])}function X(...e){let t;const i=h();for(let n=0;n<e.length;n+=1){t=e[n];for(let e=0;e<this.length;e+=1){if(typeof t==="string"){const n=i.createElement("div");n.innerHTML=t;while(n.firstChild){this[e].appendChild(n.firstChild)}}else if(t instanceof m){for(let i=0;i<t.length;i+=1){this[e].appendChild(t[i])}}else{this[e].appendChild(t)}}}return this}function Y(e){const t=h();let i;let n;for(i=0;i<this.length;i+=1){if(typeof e==="string"){const s=t.createElement("div");s.innerHTML=e;for(n=s.childNodes.length-1;n>=0;n-=1){this[i].insertBefore(s.childNodes[n],this[i].childNodes[0])}}else if(e instanceof m){for(n=0;n<e.length;n+=1){this[i].insertBefore(e[n],this[i].childNodes[0])}}else{this[i].insertBefore(e,this[i].childNodes[0])}}return this}function K(e){if(this.length>0){if(e){if(this[0].nextElementSibling&&S(this[0].nextElementSibling).is(e)){return S([this[0].nextElementSibling])}return S([])}if(this[0].nextElementSibling)return S([this[0].nextElementSibling]);return S([])}return S([])}function J(e){const t=[];let i=this[0];if(!i)return S([]);while(i.nextElementSibling){const n=i.nextElementSibling;if(e){if(S(n).is(e))t.push(n)}else t.push(n);i=n}return S(t)}function Q(e){if(this.length>0){const t=this[0];if(e){if(t.previousElementSibling&&S(t.previousElementSibling).is(e)){return S([t.previousElementSibling])}return S([])}if(t.previousElementSibling)return S([t.previousElementSibling]);return S([])}return S([])}function Z(e){const t=[];let i=this[0];if(!i)return S([]);while(i.previousElementSibling){const n=i.previousElementSibling;if(e){if(S(n).is(e))t.push(n)}else t.push(n);i=n}return S(t)}function ee(e){const t=[];for(let i=0;i<this.length;i+=1){if(this[i].parentNode!==null){if(e){if(S(this[i].parentNode).is(e))t.push(this[i].parentNode)}else{t.push(this[i].parentNode)}}}return S(t)}function te(e){const t=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;while(n){if(e){if(S(n).is(e))t.push(n)}else{t.push(n)}n=n.parentNode}}return S(t)}function ie(e){let t=this;if(typeof e==="undefined"){return S([])}if(!t.is(e)){t=t.parents(e).eq(0)}return t}function ne(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].querySelectorAll(e);for(let e=0;e<n.length;e+=1){t.push(n[e])}}return S(t)}function se(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].children;for(let i=0;i<n.length;i+=1){if(!e||S(n[i]).is(e)){t.push(n[i])}}}return S(t)}function re(){for(let e=0;e<this.length;e+=1){if(this[e].parentNode)this[e].parentNode.removeChild(this[e])}return this}const oe={addClass:C,removeClass:T,hasClass:E,toggleClass:k,attr:M,removeAttr:q,transform:P,transition:O,on:I,off:j,trigger:L,transitionEnd:A,outerWidth:z,outerHeight:D,styles:B,offset:F,css:G,each:N,html:_,text:R,is:H,index:V,eq:U,append:X,prepend:Y,next:K,nextAll:J,prev:Q,prevAll:Z,parent:ee,parents:te,closest:ie,find:ne,children:se,filter:W,remove:re};Object.keys(oe).forEach((e=>{Object.defineProperty(S.fn,e,{value:oe[e],writable:true})}));function ae(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}function le(e,t=0){return setTimeout(e,t)}function fe(){return Date.now()}function ce(e){const t=v();let i;if(t.getComputedStyle){i=t.getComputedStyle(e,null)}if(!i&&e.currentStyle){i=e.currentStyle}if(!i){i=e.style}return i}function ue(e,t="x"){const i=v();let n;let s;let r;const o=ce(e);if(i.WebKitCSSMatrix){s=o.transform||o.webkitTransform;if(s.split(",").length>6){s=s.split(", ").map((e=>e.replace(",","."))).join(", ")}r=new i.WebKitCSSMatrix(s==="none"?"":s)}else{r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");n=r.toString().split(",")}if(t==="x"){if(i.WebKitCSSMatrix)s=r.m41;else if(n.length===16)s=parseFloat(n[12]);else s=parseFloat(n[4])}if(t==="y"){if(i.WebKitCSSMatrix)s=r.m42;else if(n.length===16)s=parseFloat(n[13]);else s=parseFloat(n[5])}return s||0}function de(e){return typeof e==="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function pe(e){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return e instanceof HTMLElement}return e&&(e.nodeType===1||e.nodeType===11)}function he(...e){const t=Object(e[0]);const i=["__proto__","constructor","prototype"];for(let n=1;n<e.length;n+=1){const s=e[n];if(s!==undefined&&s!==null&&!pe(s)){const e=Object.keys(Object(s)).filter((e=>i.indexOf(e)<0));for(let i=0,n=e.length;i<n;i+=1){const n=e[i];const r=Object.getOwnPropertyDescriptor(s,n);if(r!==undefined&&r.enumerable){if(de(t[n])&&de(s[n])){if(s[n].__swiper__){t[n]=s[n]}else{he(t[n],s[n])}}else if(!de(t[n])&&de(s[n])){t[n]={};if(s[n].__swiper__){t[n]=s[n]}else{he(t[n],s[n])}}else{t[n]=s[n]}}}}}return t}function ge(e,t,i){e.style.setProperty(t,i)}function ve({swiper:e,targetPosition:t,side:i}){const n=v();const s=-e.translate;let r=null;let o;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none";n.cancelAnimationFrame(e.cssModeFrameID);const l=t>s?"next":"prev";const f=(e,t)=>l==="next"&&e>=t||l==="prev"&&e<=t;const c=()=>{o=(new Date).getTime();if(r===null){r=o}const l=Math.max(Math.min((o-r)/a,1),0);const u=.5-Math.cos(l*Math.PI)/2;let d=s+u*(t-s);if(f(d,t)){d=t}e.wrapperEl.scrollTo({[i]:d});if(f(d,t)){e.wrapperEl.style.overflow="hidden";e.wrapperEl.style.scrollSnapType="";setTimeout((()=>{e.wrapperEl.style.overflow="";e.wrapperEl.scrollTo({[i]:d})}));n.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=n.requestAnimationFrame(c)};c()}let be;function me(){const e=v();const t=h();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function t(){let i=false;try{const t=Object.defineProperty({},"passive",{get(){i=true}});e.addEventListener("testPassiveListener",null,t)}catch(e){}return i}(),gestures:function t(){return"ongesturestart"in e}()}}function we(){if(!be){be=me()}return be}let ye;function xe({userAgent:e}={}){const t=we();const i=v();const n=i.navigator.platform;const s=e||i.navigator.userAgent;const r={ios:false,android:false};const o=i.screen.width;const a=i.screen.height;const l=s.match(/(Android);?[\s\/]+([\d.]+)?/);let f=s.match(/(iPad).*OS\s([\d_]+)/);const c=s.match(/(iPod)(.*OS\s([\d_]+))?/);const u=!f&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/);const d=n==="Win32";let p=n==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!f&&p&&t.touch&&h.indexOf(`${o}x${a}`)>=0){f=s.match(/(Version)\/([\d.]+)/);if(!f)f=[0,1,"13_0_0"];p=false}if(l&&!d){r.os="android";r.android=true}if(f||u||c){r.os="ios";r.ios=true}return r}function $e(e={}){if(!ye){ye=xe(e)}return ye}let Se;function Ce(){const e=v();function t(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isSafari:t(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function Te(){if(!Se){Se=Ce()}return Se}function ke({swiper:e,on:t,emit:i}){const n=v();let s=null;let r=null;const o=()=>{if(!e||e.destroyed||!e.initialized)return;i("beforeResize");i("resize")};const a=()=>{if(!e||e.destroyed||!e.initialized)return;s=new ResizeObserver((t=>{r=n.requestAnimationFrame((()=>{const{width:i,height:n}=e;let s=i;let r=n;t.forEach((({contentBoxSize:t,contentRect:i,target:n})=>{if(n&&n!==e.el)return;s=i?i.width:(t[0]||t).inlineSize;r=i?i.height:(t[0]||t).blockSize}));if(s!==i||r!==n){o()}}))}));s.observe(e.el)};const l=()=>{if(r){n.cancelAnimationFrame(r)}if(s&&s.unobserve&&e.el){s.unobserve(e.el);s=null}};const f=()=>{if(!e||e.destroyed||!e.initialized)return;i("orientationchange")};t("init",(()=>{if(e.params.resizeObserver&&typeof n.ResizeObserver!=="undefined"){a();return}n.addEventListener("resize",o);n.addEventListener("orientationchange",f)}));t("destroy",(()=>{l();n.removeEventListener("resize",o);n.removeEventListener("orientationchange",f)}))}function Ee({swiper:e,extendParams:t,on:i,emit:n}){const s=[];const r=v();const o=(e,t={})=>{const i=r.MutationObserver||r.WebkitMutationObserver;const o=new i((e=>{if(e.length===1){n("observerUpdate",e[0]);return}const t=function t(){n("observerUpdate",e[0])};if(r.requestAnimationFrame){r.requestAnimationFrame(t)}else{r.setTimeout(t,0)}}));o.observe(e,{attributes:typeof t.attributes==="undefined"?true:t.attributes,childList:typeof t.childList==="undefined"?true:t.childList,characterData:typeof t.characterData==="undefined"?true:t.characterData});s.push(o)};const a=()=>{if(!e.params.observer)return;if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1){o(t[e])}}o(e.$el[0],{childList:e.params.observeSlideChildren});o(e.$wrapperEl[0],{attributes:false})};const l=()=>{s.forEach((e=>{e.disconnect()}));s.splice(0,s.length)};t({observer:false,observeParents:false,observeSlideChildren:false});i("init",a);i("destroy",l)}const Me={on(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if(typeof t!=="function")return n;const s=i?"unshift":"push";e.split(" ").forEach((e=>{if(!n.eventsListeners[e])n.eventsListeners[e]=[];n.eventsListeners[e][s](t)}));return n},once(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if(typeof t!=="function")return n;function s(...i){n.off(e,s);if(s.__emitterProxy){delete s.__emitterProxy}t.apply(n,i)}s.__emitterProxy=t;return n.on(e,s,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(typeof e!=="function")return i;const n=t?"unshift":"push";if(i.eventsAnyListeners.indexOf(e)<0){i.eventsAnyListeners[n](e)}return i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);if(i>=0){t.eventsAnyListeners.splice(i,1)}return t},off(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;e.split(" ").forEach((e=>{if(typeof t==="undefined"){i.eventsListeners[e]=[]}else if(i.eventsListeners[e]){i.eventsListeners[e].forEach(((n,s)=>{if(n===t||n.__emitterProxy&&n.__emitterProxy===t){i.eventsListeners[e].splice(s,1)}}))}}));return i},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let i;let n;let s;if(typeof e[0]==="string"||Array.isArray(e[0])){i=e[0];n=e.slice(1,e.length);s=t}else{i=e[0].events;n=e[0].data;s=e[0].context||t}n.unshift(s);const r=Array.isArray(i)?i:i.split(" ");r.forEach((e=>{if(t.eventsAnyListeners&&t.eventsAnyListeners.length){t.eventsAnyListeners.forEach((t=>{t.apply(s,[e,...n])}))}if(t.eventsListeners&&t.eventsListeners[e]){t.eventsListeners[e].forEach((e=>{e.apply(s,n)}))}}));return t}};function qe(){const e=this;let t;let i;const n=e.$el;if(typeof e.params.width!=="undefined"&&e.params.width!==null){t=e.params.width}else{t=n[0].clientWidth}if(typeof e.params.height!=="undefined"&&e.params.height!==null){i=e.params.height}else{i=n[0].clientHeight}if(t===0&&e.isHorizontal()||i===0&&e.isVertical()){return}t=t-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10);i=i-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10);if(Number.isNaN(t))t=0;if(Number.isNaN(i))i=0;Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i})}function Pe(){const e=this;function t(t){if(e.isHorizontal()){return t}return{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"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const n=e.params;const{$wrapperEl:s,size:r,rtlTranslate:o,wrongRTL:a}=e;const l=e.virtual&&n.virtual.enabled;const f=l?e.virtual.slides.length:e.slides.length;const c=s.children(`.${e.params.slideClass}`);const u=l?e.virtual.slides.length:c.length;let d=[];const p=[];const h=[];let g=n.slidesOffsetBefore;if(typeof g==="function"){g=n.slidesOffsetBefore.call(e)}let v=n.slidesOffsetAfter;if(typeof v==="function"){v=n.slidesOffsetAfter.call(e)}const b=e.snapGrid.length;const m=e.slidesGrid.length;let w=n.spaceBetween;let y=-g;let x=0;let $=0;if(typeof r==="undefined"){return}if(typeof w==="string"&&w.indexOf("%")>=0){w=parseFloat(w.replace("%",""))/100*r}e.virtualSize=-w;if(o)c.css({marginLeft:"",marginBottom:"",marginTop:""});else c.css({marginRight:"",marginBottom:"",marginTop:""});if(n.centeredSlides&&n.cssMode){ge(e.wrapperEl,"--swiper-centered-offset-before","");ge(e.wrapperEl,"--swiper-centered-offset-after","")}const S=n.grid&&n.grid.rows>1&&e.grid;if(S){e.grid.initSlides(u)}let C;const T=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>typeof n.breakpoints[e].slidesPerView!=="undefined")).length>0;for(let s=0;s<u;s+=1){C=0;const o=c.eq(s);if(S){e.grid.updateSlide(s,o,u,t)}if(o.css("display")==="none")continue;if(n.slidesPerView==="auto"){if(T){c[s].style[t("width")]=``}const r=getComputedStyle(o[0]);const a=o[0].style.transform;const l=o[0].style.webkitTransform;if(a){o[0].style.transform="none"}if(l){o[0].style.webkitTransform="none"}if(n.roundLengths){C=e.isHorizontal()?o.outerWidth(true):o.outerHeight(true)}else{const e=i(r,"width");const t=i(r,"padding-left");const n=i(r,"padding-right");const s=i(r,"margin-left");const a=i(r,"margin-right");const l=r.getPropertyValue("box-sizing");if(l&&l==="border-box"){C=e+s+a}else{const{clientWidth:i,offsetWidth:r}=o[0];C=e+t+n+s+a+(r-i)}}if(a){o[0].style.transform=a}if(l){o[0].style.webkitTransform=l}if(n.roundLengths)C=Math.floor(C)}else{C=(r-(n.slidesPerView-1)*w)/n.slidesPerView;if(n.roundLengths)C=Math.floor(C);if(c[s]){c[s].style[t("width")]=`${C}px`}}if(c[s]){c[s].swiperSlideSize=C}h.push(C);if(n.centeredSlides){y=y+C/2+x/2+w;if(x===0&&s!==0)y=y-r/2-w;if(s===0)y=y-r/2-w;if(Math.abs(y)<1/1e3)y=0;if(n.roundLengths)y=Math.floor(y);if($%n.slidesPerGroup===0)d.push(y);p.push(y)}else{if(n.roundLengths)y=Math.floor(y);if(($-Math.min(e.params.slidesPerGroupSkip,$))%e.params.slidesPerGroup===0)d.push(y);p.push(y);y=y+C+w}e.virtualSize+=C+w;x=C;$+=1}e.virtualSize=Math.max(e.virtualSize,r)+v;if(o&&a&&(n.effect==="slide"||n.effect==="coverflow")){s.css({width:`${e.virtualSize+n.spaceBetween}px`})}if(n.setWrapperSize){s.css({[t("width")]:`${e.virtualSize+n.spaceBetween}px`})}if(S){e.grid.updateWrapperSize(C,d,t)}if(!n.centeredSlides){const t=[];for(let i=0;i<d.length;i+=1){let s=d[i];if(n.roundLengths)s=Math.floor(s);if(d[i]<=e.virtualSize-r){t.push(s)}}d=t;if(Math.floor(e.virtualSize-r)-Math.floor(d[d.length-1])>1){d.push(e.virtualSize-r)}}if(d.length===0)d=[0];if(n.spaceBetween!==0){const i=e.isHorizontal()&&o?"marginLeft":t("marginRight");c.filter(((e,t)=>{if(!n.cssMode)return true;if(t===c.length-1){return false}return true})).css({[i]:`${w}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;h.forEach((t=>{e+=t+(n.spaceBetween?n.spaceBetween:0)}));e-=n.spaceBetween;const t=e-r;d=d.map((e=>{if(e<0)return-g;if(e>t)return t+v;return e}))}if(n.centerInsufficientSlides){let e=0;h.forEach((t=>{e+=t+(n.spaceBetween?n.spaceBetween:0)}));e-=n.spaceBetween;if(e<r){const t=(r-e)/2;d.forEach(((e,i)=>{d[i]=e-t}));p.forEach(((e,i)=>{p[i]=e+t}))}}Object.assign(e,{slides:c,snapGrid:d,slidesGrid:p,slidesSizesGrid:h});if(n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){ge(e.wrapperEl,"--swiper-centered-offset-before",`${-d[0]}px`);ge(e.wrapperEl,"--swiper-centered-offset-after",`${e.size/2-h[h.length-1]/2}px`);const t=-e.snapGrid[0];const i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t));e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(u!==f){e.emit("slidesLengthChange")}if(d.length!==b){if(e.params.watchOverflow)e.checkOverflow();e.emit("snapGridLengthChange")}if(p.length!==m){e.emit("slidesGridLengthChange")}if(n.watchSlidesProgress){e.updateSlidesOffset()}if(!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const t=`${n.containerModifierClass}backface-hidden`;const i=e.$el.hasClass(t);if(u<=n.maxBackfaceHiddenSlides){if(!i)e.$el.addClass(t)}else if(i){e.$el.removeClass(t)}}}function Oe(e){const t=this;const i=[];const n=t.virtual&&t.params.virtual.enabled;let s=0;let r;if(typeof e==="number"){t.setTransition(e)}else if(e===true){t.setTransition(t.params.speed)}const o=e=>{if(n){return t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]}return t.slides.eq(e)[0]};if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1){if(t.params.centeredSlides){(t.visibleSlides||S([])).each((e=>{i.push(e)}))}else{for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!n)break;i.push(o(e))}}}else{i.push(o(t.activeIndex))}for(r=0;r<i.length;r+=1){if(typeof i[r]!=="undefined"){const e=i[r].offsetHeight;s=e>s?e:s}}if(s||s===0)t.$wrapperEl.css("height",`${s}px`)}function Ie(){const e=this;const t=e.slides;for(let i=0;i<t.length;i+=1){t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop}}function je(e=this&&this.translate||0){const t=this;const i=t.params;const{slides:n,rtlTranslate:s,snapGrid:r}=t;if(n.length===0)return;if(typeof n[0].swiperSlideOffset==="undefined")t.updateSlidesOffset();let o=-e;if(s)o=e;n.removeClass(i.slideVisibleClass);t.visibleSlidesIndexes=[];t.visibleSlides=[];for(let e=0;e<n.length;e+=1){const a=n[e];let l=a.swiperSlideOffset;if(i.cssMode&&i.centeredSlides){l-=n[0].swiperSlideOffset}const f=(o+(i.centeredSlides?t.minTranslate():0)-l)/(a.swiperSlideSize+i.spaceBetween);const c=(o-r[0]+(i.centeredSlides?t.minTranslate():0)-l)/(a.swiperSlideSize+i.spaceBetween);const u=-(o-l);const d=u+t.slidesSizesGrid[e];const p=u>=0&&u<t.size-1||d>1&&d<=t.size||u<=0&&d>=t.size;if(p){t.visibleSlides.push(a);t.visibleSlidesIndexes.push(e);n.eq(e).addClass(i.slideVisibleClass)}a.progress=s?-f:f;a.originalProgress=s?-c:c}t.visibleSlides=S(t.visibleSlides)}function Le(e){const t=this;if(typeof e==="undefined"){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params;const n=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:o}=t;const a=r;const l=o;if(n===0){s=0;r=true;o=true}else{s=(e-t.minTranslate())/n;r=s<=0;o=s>=1}Object.assign(t,{progress:s,isBeginning:r,isEnd:o});if(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)t.updateSlidesProgress(e);if(r&&!a){t.emit("reachBeginning toEdge")}if(o&&!l){t.emit("reachEnd toEdge")}if(a&&!r||l&&!o){t.emit("fromEdge")}t.emit("progress",s)}function Ae(){const e=this;const{slides:t,params:i,$wrapperEl:n,activeIndex:s,realIndex:r}=e;const o=e.virtual&&i.virtual.enabled;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`);let a;if(o){a=e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${s}"]`)}else{a=t.eq(s)}a.addClass(i.slideActiveClass);if(i.loop){if(a.hasClass(i.slideDuplicateClass)){n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(i.slideDuplicateActiveClass)}else{n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(i.slideDuplicateActiveClass)}}let l=a.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);if(i.loop&&l.length===0){l=t.eq(0);l.addClass(i.slideNextClass)}let f=a.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);if(i.loop&&f.length===0){f=t.eq(-1);f.addClass(i.slidePrevClass)}if(i.loop){if(l.hasClass(i.slideDuplicateClass)){n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass)}else{n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass)}if(f.hasClass(i.slideDuplicateClass)){n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${f.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)}else{n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${f.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)}}e.emitSlidesClasses()}function ze(e){const t=this;const i=t.rtlTranslate?t.translate:-t.translate;const{slidesGrid:n,snapGrid:s,params:r,activeIndex:o,realIndex:a,snapIndex:l}=t;let f=e;let c;if(typeof f==="undefined"){for(let e=0;e<n.length;e+=1){if(typeof n[e+1]!=="undefined"){if(i>=n[e]&&i<n[e+1]-(n[e+1]-n[e])/2){f=e}else if(i>=n[e]&&i<n[e+1]){f=e+1}}else if(i>=n[e]){f=e}}if(r.normalizeSlideIndex){if(f<0||typeof f==="undefined")f=0}}if(s.indexOf(i)>=0){c=s.indexOf(i)}else{const e=Math.min(r.slidesPerGroupSkip,f);c=e+Math.floor((f-e)/r.slidesPerGroup)}if(c>=s.length)c=s.length-1;if(f===o){if(c!==l){t.snapIndex=c;t.emit("snapIndexChange")}return}const u=parseInt(t.slides.eq(f).attr("data-swiper-slide-index")||f,10);Object.assign(t,{snapIndex:c,realIndex:u,previousIndex:o,activeIndex:f});t.emit("activeIndexChange");t.emit("snapIndexChange");if(a!==u){t.emit("realIndexChange")}if(t.initialized||t.params.runCallbacksOnInit){t.emit("slideChange")}}function De(e){const t=this;const i=t.params;const n=S(e).closest(`.${i.slideClass}`)[0];let s=false;let r;if(n){for(let e=0;e<t.slides.length;e+=1){if(t.slides[e]===n){s=true;r=e;break}}}if(n&&s){t.clickedSlide=n;if(t.virtual&&t.params.virtual.enabled){t.clickedIndex=parseInt(S(n).attr("data-swiper-slide-index"),10)}else{t.clickedIndex=r}}else{t.clickedSlide=undefined;t.clickedIndex=undefined;return}if(i.slideToClickedSlide&&t.clickedIndex!==undefined&&t.clickedIndex!==t.activeIndex){t.slideToClickedSlide()}}const Fe={updateSize:qe,updateSlides:Pe,updateAutoHeight:Oe,updateSlidesOffset:Ie,updateSlidesProgress:je,updateProgress:Le,updateSlidesClasses:Ae,updateActiveIndex:ze,updateClickedSlide:De};function Be(e=(this.isHorizontal()?"x":"y")){const t=this;const{params:i,rtlTranslate:n,translate:s,$wrapperEl:r}=t;if(i.virtualTranslate){return n?-s:s}if(i.cssMode){return s}let o=ue(r[0],e);if(n)o=-o;return o||0}function Ge(e,t){const i=this;const{rtlTranslate:n,params:s,$wrapperEl:r,wrapperEl:o,progress:a}=i;let l=0;let f=0;const c=0;if(i.isHorizontal()){l=n?-e:e}else{f=e}if(s.roundLengths){l=Math.floor(l);f=Math.floor(f)}if(s.cssMode){o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-f}else if(!s.virtualTranslate){r.transform(`translate3d(${l}px, ${f}px, ${c}px)`)}i.previousTranslate=i.translate;i.translate=i.isHorizontal()?l:f;let u;const d=i.maxTranslate()-i.minTranslate();if(d===0){u=0}else{u=(e-i.minTranslate())/d}if(u!==a){i.updateProgress(e)}i.emit("setTranslate",i.translate,t)}function Ne(){return-this.snapGrid[0]}function We(){return-this.snapGrid[this.snapGrid.length-1]}function _e(e=0,t=this.params.speed,i=true,n=true,s){const r=this;const{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition){return false}const l=r.minTranslate();const f=r.maxTranslate();let c;if(n&&e>l)c=l;else if(n&&e<f)c=f;else c=e;r.updateProgress(c);if(o.cssMode){const e=r.isHorizontal();if(t===0){a[e?"scrollLeft":"scrollTop"]=-c}else{if(!r.support.smoothScroll){ve({swiper:r,targetPosition:-c,side:e?"left":"top"});return true}a.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return true}if(t===0){r.setTransition(0);r.setTranslate(c);if(i){r.emit("beforeTransitionStart",t,s);r.emit("transitionEnd")}}else{r.setTransition(t);r.setTranslate(c);if(i){r.emit("beforeTransitionStart",t,s);r.emit("transitionStart")}if(!r.animating){r.animating=true;if(!r.onTranslateToWrapperTransitionEnd){r.onTranslateToWrapperTransitionEnd=function e(t){if(!r||r.destroyed)return;if(t.target!==this)return;r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd);r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd);r.onTranslateToWrapperTransitionEnd=null;delete r.onTranslateToWrapperTransitionEnd;if(i){r.emit("transitionEnd")}}}r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd);r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd)}}return true}const Re={getTranslate:Be,setTranslate:Ge,minTranslate:Ne,maxTranslate:We,translateTo:_e};function He(e,t){const i=this;if(!i.params.cssMode){i.$wrapperEl.transition(e)}i.emit("setTransition",e,t)}function Ve({swiper:e,runCallbacks:t,direction:i,step:n}){const{activeIndex:s,previousIndex:r}=e;let o=i;if(!o){if(s>r)o="next";else if(s<r)o="prev";else o="reset"}e.emit(`transition${n}`);if(t&&s!==r){if(o==="reset"){e.emit(`slideResetTransition${n}`);return}e.emit(`slideChangeTransition${n}`);if(o==="next"){e.emit(`slideNextTransition${n}`)}else{e.emit(`slidePrevTransition${n}`)}}}function Ue(e=true,t){const i=this;const{params:n}=i;if(n.cssMode)return;if(n.autoHeight){i.updateAutoHeight()}Ve({swiper:i,runCallbacks:e,direction:t,step:"Start"})}function Xe(e=true,t){const i=this;const{params:n}=i;i.animating=false;if(n.cssMode)return;i.setTransition(0);Ve({swiper:i,runCallbacks:e,direction:t,step:"End"})}const Ye={setTransition:He,transitionStart:Ue,transitionEnd:Xe};function Ke(e=0,t=this.params.speed,i=true,n,s){if(typeof e!=="number"&&typeof e!=="string"){throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`)}if(typeof e==="string"){const t=parseInt(e,10);const i=isFinite(t);if(!i){throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`)}e=t}const r=this;let o=e;if(o<0)o=0;const{params:a,snapGrid:l,slidesGrid:f,previousIndex:c,activeIndex:u,rtlTranslate:d,wrapperEl:p,enabled:h}=r;if(r.animating&&a.preventInteractionOnTransition||!h&&!n&&!s){return false}const g=Math.min(r.params.slidesPerGroupSkip,o);let v=g+Math.floor((o-g)/r.params.slidesPerGroup);if(v>=l.length)v=l.length-1;const b=-l[v];if(a.normalizeSlideIndex){for(let e=0;e<f.length;e+=1){const t=-Math.floor(b*100);const i=Math.floor(f[e]*100);const n=Math.floor(f[e+1]*100);if(typeof f[e+1]!=="undefined"){if(t>=i&&t<n-(n-i)/2){o=e}else if(t>=i&&t<n){o=e+1}}else if(t>=i){o=e}}}if(r.initialized&&o!==u){if(!r.allowSlideNext&&b<r.translate&&b<r.minTranslate()){return false}if(!r.allowSlidePrev&&b>r.translate&&b>r.maxTranslate()){if((u||0)!==o)return false}}if(o!==(c||0)&&i){r.emit("beforeSlideChangeStart")}r.updateProgress(b);let m;if(o>u)m="next";else if(o<u)m="prev";else m="reset";if(d&&-b===r.translate||!d&&b===r.translate){r.updateActiveIndex(o);if(a.autoHeight){r.updateAutoHeight()}r.updateSlidesClasses();if(a.effect!=="slide"){r.setTranslate(b)}if(m!=="reset"){r.transitionStart(i,m);r.transitionEnd(i,m)}return false}if(a.cssMode){const e=r.isHorizontal();const i=d?b:-b;if(t===0){const t=r.virtual&&r.params.virtual.enabled;if(t){r.wrapperEl.style.scrollSnapType="none";r._immediateVirtual=true}p[e?"scrollLeft":"scrollTop"]=i;if(t){requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="";r._swiperImmediateVirtual=false}))}}else{if(!r.support.smoothScroll){ve({swiper:r,targetPosition:i,side:e?"left":"top"});return true}p.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return true}r.setTransition(t);r.setTranslate(b);r.updateActiveIndex(o);r.updateSlidesClasses();r.emit("beforeTransitionStart",t,n);r.transitionStart(i,m);if(t===0){r.transitionEnd(i,m)}else if(!r.animating){r.animating=true;if(!r.onSlideToWrapperTransitionEnd){r.onSlideToWrapperTransitionEnd=function e(t){if(!r||r.destroyed)return;if(t.target!==this)return;r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd);r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd);r.onSlideToWrapperTransitionEnd=null;delete r.onSlideToWrapperTransitionEnd;r.transitionEnd(i,m)}}r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd);r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd)}return true}function Je(e=0,t=this.params.speed,i=true,n){if(typeof e==="string"){const t=parseInt(e,10);const i=isFinite(t);if(!i){throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`)}e=t}const s=this;let r=e;if(s.params.loop){r+=s.loopedSlides}return s.slideTo(r,t,i,n)}function Qe(e=this.params.speed,t=true,i){const n=this;const{animating:s,enabled:r,params:o}=n;if(!r)return n;let a=o.slidesPerGroup;if(o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto){a=Math.max(n.slidesPerViewDynamic("current",true),1)}const l=n.activeIndex<o.slidesPerGroupSkip?1:a;if(o.loop){if(s&&o.loopPreventsSlide)return false;n.loopFix();n._clientLeft=n.$wrapperEl[0].clientLeft}if(o.rewind&&n.isEnd){return n.slideTo(0,e,t,i)}return n.slideTo(n.activeIndex+l,e,t,i)}function Ze(e=this.params.speed,t=true,i){const n=this;const{params:s,animating:r,snapGrid:o,slidesGrid:a,rtlTranslate:l,enabled:f}=n;if(!f)return n;if(s.loop){if(r&&s.loopPreventsSlide)return false;n.loopFix();n._clientLeft=n.$wrapperEl[0].clientLeft}const c=l?n.translate:-n.translate;function u(e){if(e<0)return-Math.floor(Math.abs(e));return Math.floor(e)}const d=u(c);const p=o.map((e=>u(e)));let h=o[p.indexOf(d)-1];if(typeof h==="undefined"&&s.cssMode){let e;o.forEach(((t,i)=>{if(d>=t){e=i}}));if(typeof e!=="undefined"){h=o[e>0?e-1:e]}}let g=0;if(typeof h!=="undefined"){g=a.indexOf(h);if(g<0)g=n.activeIndex-1;if(s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto){g=g-n.slidesPerViewDynamic("previous",true)+1;g=Math.max(g,0)}}if(s.rewind&&n.isBeginning){const s=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(s,e,t,i)}return n.slideTo(g,e,t,i)}function et(e=this.params.speed,t=true,i){const n=this;return n.slideTo(n.activeIndex,e,t,i)}function tt(e=this.params.speed,t=true,i,n=.5){const s=this;let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r);const a=o+Math.floor((r-o)/s.params.slidesPerGroup);const l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const e=s.snapGrid[a];const t=s.snapGrid[a+1];if(l-e>(t-e)*n){r+=s.params.slidesPerGroup}}else{const e=s.snapGrid[a-1];const t=s.snapGrid[a];if(l-e<=(t-e)*n){r-=s.params.slidesPerGroup}}r=Math.max(r,0);r=Math.min(r,s.slidesGrid.length-1);return s.slideTo(r,e,t,i)}function it(){const e=this;const{params:t,$wrapperEl:i}=e;const n=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let s=e.clickedIndex;let r;if(t.loop){if(e.animating)return;r=parseInt(S(e.clickedSlide).attr("data-swiper-slide-index"),10);if(t.centeredSlides){if(s<e.loopedSlides-n/2||s>e.slides.length-e.loopedSlides+n/2){e.loopFix();s=i.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index();le((()=>{e.slideTo(s)}))}else{e.slideTo(s)}}else if(s>e.slides.length-n){e.loopFix();s=i.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index();le((()=>{e.slideTo(s)}))}else{e.slideTo(s)}}else{e.slideTo(s)}}const nt={slideTo:Ke,slideToLoop:Je,slideNext:Qe,slidePrev:Ze,slideReset:et,slideToClosest:tt,slideToClickedSlide:it};function st(){const e=this;const t=h();const{params:i,$wrapperEl:n}=e;const s=n.children().length>0?S(n.children()[0].parentNode):n;s.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let r=s.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-r.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let n=0;n<e;n+=1){const e=S(t.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);s.append(e)}r=s.children(`.${i.slideClass}`)}}if(i.slidesPerView==="auto"&&!i.loopedSlides)i.loopedSlides=r.length;e.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10));e.loopedSlides+=i.loopAdditionalSlides;if(e.loopedSlides>r.length&&e.params.loopedSlidesLimit){e.loopedSlides=r.length}const o=[];const a=[];r.each(((e,t)=>{const i=S(e);i.attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/r.length)*r.length;a.push(r.eq(e)[0]);o.unshift(r.eq(r.length-e-1)[0])}for(let e=0;e<a.length;e+=1){s.append(S(a[e].cloneNode(true)).addClass(i.slideDuplicateClass))}for(let e=o.length-1;e>=0;e-=1){s.prepend(S(o[e].cloneNode(true)).addClass(i.slideDuplicateClass))}}function rt(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:n,allowSlidePrev:s,allowSlideNext:r,snapGrid:o,rtlTranslate:a}=e;let l;e.allowSlidePrev=true;e.allowSlideNext=true;const f=-o[t];const c=f-e.getTranslate();if(t<n){l=i.length-n*3+t;l+=n;const s=e.slideTo(l,0,false,true);if(s&&c!==0){e.setTranslate((a?-e.translate:e.translate)-c)}}else if(t>=i.length-n){l=-i.length+t+n;l+=n;const s=e.slideTo(l,0,false,true);if(s&&c!==0){e.setTranslate((a?-e.translate:e.translate)-c)}}e.allowSlidePrev=s;e.allowSlideNext=r;e.emit("loopFix")}function ot(){const e=this;const{$wrapperEl:t,params:i,slides:n}=e;t.children(`.${i.slideClass}.${i.slideDuplicateClass},.${i.slideClass}.${i.slideBlankClass}`).remove();n.removeAttr("data-swiper-slide-index")}const at={loopCreate:st,loopFix:rt,loopDestroy:ot};function lt(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;i.style.cursor="move";i.style.cursor=e?"grabbing":"grab"}function ft(){const e=this;if(e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode){return}e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor=""}const ct={setGrabCursor:lt,unsetGrabCursor:ft};function ut(e,t=this){function i(t){if(!t||t===h()||t===v())return null;if(t.assignedSlot)t=t.assignedSlot;const n=t.closest(e);if(!n&&!t.getRootNode){return null}return n||i(t.getRootNode().host)}return i(t)}function dt(e){const t=this;const i=h();const n=v();const s=t.touchEventsData;const{params:r,touches:o,enabled:a}=t;if(!a)return;if(t.animating&&r.preventInteractionOnTransition){return}if(!t.animating&&r.cssMode&&r.loop){t.loopFix()}let l=e;if(l.originalEvent)l=l.originalEvent;let f=S(l.target);if(r.touchEventsTarget==="wrapper"){if(!f.closest(t.wrapperEl).length)return}s.isTouchEvent=l.type==="touchstart";if(!s.isTouchEvent&&"which"in l&&l.which===3)return;if(!s.isTouchEvent&&"button"in l&&l.button>0)return;if(s.isTouched&&s.isMoved)return;const c=!!r.noSwipingClass&&r.noSwipingClass!=="";const u=e.composedPath?e.composedPath():e.path;if(c&&l.target&&l.target.shadowRoot&&u){f=S(u[0])}const d=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`;const p=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(p?ut(d,f[0]):f.closest(d)[0])){t.allowClick=true;return}if(r.swipeHandler){if(!f.closest(r.swipeHandler)[0])return}o.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX;o.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const g=o.currentX;const b=o.currentY;const m=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection;const w=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(m&&(g<=w||g>=n.innerWidth-w)){if(m==="prevent"){e.preventDefault()}else{return}}Object.assign(s,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});o.startX=g;o.startY=b;s.touchStartTime=fe();t.allowClick=true;t.updateSize();t.swipeDirection=undefined;if(r.threshold>0)s.allowThresholdMove=false;if(l.type!=="touchstart"){let e=true;if(f.is(s.focusableElements)){e=false;if(f[0].nodeName==="SELECT"){s.isTouched=false}}if(i.activeElement&&S(i.activeElement).is(s.focusableElements)&&i.activeElement!==f[0]){i.activeElement.blur()}const n=e&&t.allowTouchMove&&r.touchStartPreventDefault;if((r.touchStartForcePreventDefault||n)&&!f[0].isContentEditable){l.preventDefault()}}if(t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode){t.freeMode.onTouchStart()}t.emit("touchStart",l)}function pt(e){const t=h();const i=this;const n=i.touchEventsData;const{params:s,touches:r,rtlTranslate:o,enabled:a}=i;if(!a)return;let l=e;if(l.originalEvent)l=l.originalEvent;if(!n.isTouched){if(n.startMoving&&n.isScrolling){i.emit("touchMoveOpposite",l)}return}if(n.isTouchEvent&&l.type!=="touchmove")return;const f=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]);const c=l.type==="touchmove"?f.pageX:l.pageX;const u=l.type==="touchmove"?f.pageY:l.pageY;if(l.preventedByNestedSwiper){r.startX=c;r.startY=u;return}if(!i.allowTouchMove){if(!S(l.target).is(n.focusableElements)){i.allowClick=false}if(n.isTouched){Object.assign(r,{startX:c,startY:u,currentX:c,currentY:u});n.touchStartTime=fe()}return}if(n.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop){if(i.isVertical()){if(u<r.startY&&i.translate<=i.maxTranslate()||u>r.startY&&i.translate>=i.minTranslate()){n.isTouched=false;n.isMoved=false;return}}else if(c<r.startX&&i.translate<=i.maxTranslate()||c>r.startX&&i.translate>=i.minTranslate()){return}}if(n.isTouchEvent&&t.activeElement){if(l.target===t.activeElement&&S(l.target).is(n.focusableElements)){n.isMoved=true;i.allowClick=false;return}}if(n.allowTouchCallbacks){i.emit("touchMove",l)}if(l.targetTouches&&l.targetTouches.length>1)return;r.currentX=c;r.currentY=u;const d=r.currentX-r.startX;const p=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(d**2+p**2)<i.params.threshold)return;if(typeof n.isScrolling==="undefined"){let e;if(i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX){n.isScrolling=false}else{if(d*d+p*p>=25){e=Math.atan2(Math.abs(p),Math.abs(d))*180/Math.PI;n.isScrolling=i.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle}}}if(n.isScrolling){i.emit("touchMoveOpposite",l)}if(typeof n.startMoving==="undefined"){if(r.currentX!==r.startX||r.currentY!==r.startY){n.startMoving=true}}if(n.isScrolling){n.isTouched=false;return}if(!n.startMoving){return}i.allowClick=false;if(!s.cssMode&&l.cancelable){l.preventDefault()}if(s.touchMoveStopPropagation&&!s.nested){l.stopPropagation()}if(!n.isMoved){if(s.loop&&!s.cssMode){i.loopFix()}n.startTranslate=i.getTranslate();i.setTransition(0);if(i.animating){i.$wrapperEl.trigger("webkitTransitionEnd transitionend")}n.allowMomentumBounce=false;if(s.grabCursor&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(true)}i.emit("sliderFirstMove",l)}i.emit("sliderMove",l);n.isMoved=true;let g=i.isHorizontal()?d:p;r.diff=g;g*=s.touchRatio;if(o)g=-g;i.swipeDirection=g>0?"prev":"next";n.currentTranslate=g+n.startTranslate;let v=true;let b=s.resistanceRatio;if(s.touchReleaseOnEdges){b=0}if(g>0&&n.currentTranslate>i.minTranslate()){v=false;if(s.resistance)n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+g)**b}else if(g<0&&n.currentTranslate<i.maxTranslate()){v=false;if(s.resistance)n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-g)**b}if(v){l.preventedByNestedSwiper=true}if(!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate){n.currentTranslate=n.startTranslate}if(!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate){n.currentTranslate=n.startTranslate}if(!i.allowSlidePrev&&!i.allowSlideNext){n.currentTranslate=n.startTranslate}if(s.threshold>0){if(Math.abs(g)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=true;r.startX=r.currentX;r.startY=r.currentY;n.currentTranslate=n.startTranslate;r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{n.currentTranslate=n.startTranslate;return}}if(!s.followFinger||s.cssMode)return;if(s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress){i.updateActiveIndex();i.updateSlidesClasses()}if(i.params.freeMode&&s.freeMode.enabled&&i.freeMode){i.freeMode.onTouchMove()}i.updateProgress(n.currentTranslate);i.setTranslate(n.currentTranslate)}function ht(e){const t=this;const i=t.touchEventsData;const{params:n,touches:s,rtlTranslate:r,slidesGrid:o,enabled:a}=t;if(!a)return;let l=e;if(l.originalEvent)l=l.originalEvent;if(i.allowTouchCallbacks){t.emit("touchEnd",l)}i.allowTouchCallbacks=false;if(!i.isTouched){if(i.isMoved&&n.grabCursor){t.setGrabCursor(false)}i.isMoved=false;i.startMoving=false;return}if(n.grabCursor&&i.isMoved&&i.isTouched&&(t.allowSlideNext===true||t.allowSlidePrev===true)){t.setGrabCursor(false)}const f=fe();const c=f-i.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target);t.emit("tap click",l);if(c<300&&f-i.lastClickTime<300){t.emit("doubleTap doubleClick",l)}}i.lastClickTime=fe();le((()=>{if(!t.destroyed)t.allowClick=true}));if(!i.isTouched||!i.isMoved||!t.swipeDirection||s.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=false;i.isMoved=false;i.startMoving=false;return}i.isTouched=false;i.isMoved=false;i.startMoving=false;let u;if(n.followFinger){u=r?t.translate:-t.translate}else{u=-i.currentTranslate}if(n.cssMode){return}if(t.params.freeMode&&n.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:u});return}let d=0;let p=t.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=e<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(typeof o[e+t]!=="undefined"){if(u>=o[e]&&u<o[e+t]){d=e;p=o[e+t]-o[e]}}else if(u>=o[e]){d=e;p=o[o.length-1]-o[o.length-2]}}let h=null;let g=null;if(n.rewind){if(t.isBeginning){g=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1}else if(t.isEnd){h=0}}const v=(u-o[d])/p;const b=d<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(c>n.longSwipesMs){if(!n.longSwipes){t.slideTo(t.activeIndex);return}if(t.swipeDirection==="next"){if(v>=n.longSwipesRatio)t.slideTo(n.rewind&&t.isEnd?h:d+b);else t.slideTo(d)}if(t.swipeDirection==="prev"){if(v>1-n.longSwipesRatio){t.slideTo(d+b)}else if(g!==null&&v<0&&Math.abs(v)>n.longSwipesRatio){t.slideTo(g)}else{t.slideTo(d)}}}else{if(!n.shortSwipes){t.slideTo(t.activeIndex);return}const e=t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl);if(!e){if(t.swipeDirection==="next"){t.slideTo(h!==null?h:d+b)}if(t.swipeDirection==="prev"){t.slideTo(g!==null?g:d)}}else if(l.target===t.navigation.nextEl){t.slideTo(d+b)}else{t.slideTo(d)}}}function gt(){const e=this;const{params:t,el:i}=e;if(i&&i.offsetWidth===0)return;if(t.breakpoints){e.setBreakpoint()}const{allowSlideNext:n,allowSlidePrev:s,snapGrid:r}=e;e.allowSlideNext=true;e.allowSlidePrev=true;e.updateSize();e.updateSlides();e.updateSlidesClasses();if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides){e.slideTo(e.slides.length-1,0,false,true)}else{e.slideTo(e.activeIndex,0,false,true)}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){e.autoplay.run()}e.allowSlidePrev=s;e.allowSlideNext=n;if(e.params.watchOverflow&&r!==e.snapGrid){e.checkOverflow()}}function vt(e){const t=this;if(!t.enabled)return;if(!t.allowClick){if(t.params.preventClicks)e.preventDefault();if(t.params.preventClicksPropagation&&t.animating){e.stopPropagation();e.stopImmediatePropagation()}}}function bt(){const e=this;const{wrapperEl:t,rtlTranslate:i,enabled:n}=e;if(!n)return;e.previousTranslate=e.translate;if(e.isHorizontal()){e.translate=-t.scrollLeft}else{e.translate=-t.scrollTop}if(e.translate===0)e.translate=0;e.updateActiveIndex();e.updateSlidesClasses();let s;const r=e.maxTranslate()-e.minTranslate();if(r===0){s=0}else{s=(e.translate-e.minTranslate())/r}if(s!==e.progress){e.updateProgress(i?-e.translate:e.translate)}e.emit("setTranslate",e.translate,false)}let mt=false;function wt(){}const yt=(e,t)=>{const i=h();const{params:n,touchEvents:s,el:r,wrapperEl:o,device:a,support:l}=e;const f=!!n.nested;const c=t==="on"?"addEventListener":"removeEventListener";const u=t;if(!l.touch){r[c](s.start,e.onTouchStart,false);i[c](s.move,e.onTouchMove,f);i[c](s.end,e.onTouchEnd,false)}else{const t=s.start==="touchstart"&&l.passiveListener&&n.passiveListeners?{passive:true,capture:false}:false;r[c](s.start,e.onTouchStart,t);r[c](s.move,e.onTouchMove,l.passiveListener?{passive:false,capture:f}:f);r[c](s.end,e.onTouchEnd,t);if(s.cancel){r[c](s.cancel,e.onTouchEnd,t)}}if(n.preventClicks||n.preventClicksPropagation){r[c]("click",e.onClick,true)}if(n.cssMode){o[c]("scroll",e.onScroll)}if(n.updateOnWindowResize){e[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",gt,true)}else{e[u]("observerUpdate",gt,true)}};function xt(){const e=this;const t=h();const{params:i,support:n}=e;e.onTouchStart=dt.bind(e);e.onTouchMove=pt.bind(e);e.onTouchEnd=ht.bind(e);if(i.cssMode){e.onScroll=bt.bind(e)}e.onClick=vt.bind(e);if(n.touch&&!mt){t.addEventListener("touchstart",wt);mt=true}yt(e,"on")}function $t(){const e=this;yt(e,"off")}const St={attachEvents:xt,detachEvents:$t};const Ct=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Tt(){const e=this;const{activeIndex:t,initialized:i,loopedSlides:n=0,params:s,$el:r}=e;const o=s.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=a in o?o[a]:undefined;const f=l||e.originalParams;const c=Ct(e,s);const u=Ct(e,f);const d=s.enabled;if(c&&!u){r.removeClass(`${s.containerModifierClass}grid ${s.containerModifierClass}grid-column`);e.emitContainerClasses()}else if(!c&&u){r.addClass(`${s.containerModifierClass}grid`);if(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&s.grid.fill==="column"){r.addClass(`${s.containerModifierClass}grid-column`)}e.emitContainerClasses()}["navigation","pagination","scrollbar"].forEach((t=>{const i=s[t]&&s[t].enabled;const n=f[t]&&f[t].enabled;if(i&&!n){e[t].disable()}if(!i&&n){e[t].enable()}}));const p=f.direction&&f.direction!==s.direction;const h=s.loop&&(f.slidesPerView!==s.slidesPerView||p);if(p&&i){e.changeDirection()}he(e.params,f);const g=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev});if(d&&!g){e.disable()}else if(!d&&g){e.enable()}e.currentBreakpoint=a;e.emit("_beforeBreakpoint",f);if(h&&i){e.loopDestroy();e.loopCreate();e.updateSlides();e.slideTo(t-n+e.loopedSlides,0,false)}e.emit("breakpoint",f)}function kt(e,t="window",i){if(!e||t==="container"&&!i)return undefined;let n=false;const s=v();const r=t==="window"?s.innerHeight:i.clientHeight;const o=Object.keys(e).map((e=>{if(typeof e==="string"&&e.indexOf("@")===0){const t=parseFloat(e.substr(1));const i=r*t;return{value:i,point:e}}return{value:e,point:e}}));o.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<o.length;e+=1){const{point:r,value:a}=o[e];if(t==="window"){if(s.matchMedia(`(min-width: ${a}px)`).matches){n=r}}else if(a<=i.clientWidth){n=r}}return n||"max"}const Et={setBreakpoint:Tt,getBreakpoint:kt};function Mt(e,t){const i=[];e.forEach((e=>{if(typeof e==="object"){Object.keys(e).forEach((n=>{if(e[n]){i.push(t+n)}}))}else if(typeof e==="string"){i.push(t+e)}}));return i}function qt(){const e=this;const{classNames:t,params:i,rtl:n,$el:s,device:r,support:o}=e;const a=Mt(["initialized",i.direction,{"pointer-events":!o.touch},{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...a);s.addClass([...t].join(" "));e.emitContainerClasses()}function Pt(){const e=this;const{$el:t,classNames:i}=e;t.removeClass(i.join(" "));e.emitContainerClasses()}const Ot={addClasses:qt,removeClasses:Pt};function It(e,t,i,n,s,r){const o=v();let a;function l(){if(r)r()}const f=S(e).parent("picture")[0];if(!f&&(!e.complete||!s)){if(t){a=new o.Image;a.onload=l;a.onerror=l;if(n){a.sizes=n}if(i){a.srcset=i}if(t){a.src=t}}else{l()}}else{l()}}function jt(){const e=this;e.imagesToLoad=e.$el.find("img");function t(){if(typeof e==="undefined"||e===null||!e||e.destroyed)return;if(e.imagesLoaded!==undefined)e.imagesLoaded+=1;if(e.imagesLoaded===e.imagesToLoad.length){if(e.params.updateOnImagesReady)e.update();e.emit("imagesReady")}}for(let i=0;i<e.imagesToLoad.length;i+=1){const n=e.imagesToLoad[i];e.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),true,t)}}const Lt={loadImage:It,preloadImages:jt};function At(){const e=this;const{isLocked:t,params:i}=e;const{slidesOffsetBefore:n}=i;if(n){const t=e.slides.length-1;const i=e.slidesGrid[t]+e.slidesSizesGrid[t]+n*2;e.isLocked=e.size>i}else{e.isLocked=e.snapGrid.length===1}if(i.allowSlideNext===true){e.allowSlideNext=!e.isLocked}if(i.allowSlidePrev===true){e.allowSlidePrev=!e.isLocked}if(t&&t!==e.isLocked){e.isEnd=false}if(t!==e.isLocked){e.emit(e.isLocked?"lock":"unlock")}}const zt={checkOverflow:At};const Dt={init:true,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:false,updateOnWindowResize:true,resizeObserver:true,nested:false,createElements:false,enabled:true,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:false,userAgent:null,url:null,edgeSwipeDetection:false,edgeSwipeThreshold:20,autoHeight:false,setWrapperSize:false,virtualTranslate:false,effect:"slide",breakpoints:undefined,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:false,centeredSlides:false,centeredSlidesBounds:false,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:true,centerInsufficientSlides:false,watchOverflow:true,roundLengths:false,touchRatio:1,touchAngle:45,simulateTouch:true,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,allowTouchMove:true,threshold:0,touchMoveStopPropagation:false,touchStartPreventDefault:true,touchStartForcePreventDefault:false,touchReleaseOnEdges:false,uniqueNavElements:true,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,grabCursor:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,preloadImages:true,updateOnImagesReady:true,loop:false,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:true,loopFillGroupWithBlank:false,loopPreventsSlide:true,rewind:false,allowSlidePrev:true,allowSlideNext:true,swipeHandler:null,noSwiping:true,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:true,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:true,_emitClasses:false};function Ft(e,t){return function i(n={}){const s=Object.keys(n)[0];const r=n[s];if(typeof r!=="object"||r===null){he(t,n);return}if(["navigation","pagination","scrollbar"].indexOf(s)>=0&&e[s]===true){e[s]={auto:true}}if(!(s in e&&"enabled"in r)){he(t,n);return}if(e[s]===true){e[s]={enabled:true}}if(typeof e[s]==="object"&&!("enabled"in e[s])){e[s].enabled=true}if(!e[s])e[s]={enabled:false};he(t,n)}}const Bt={eventsEmitter:Me,update:Fe,translate:Re,transition:Ye,slide:nt,loop:at,grabCursor:ct,events:St,breakpoints:Et,checkOverflow:zt,classes:Ot,images:Lt};const Gt={};class Nt{constructor(...e){let t;let i;if(e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"){i=e[0]}else{[t,i]=e}if(!i)i={};i=he({},i);if(t&&!i.el)i.el=t;if(i.el&&S(i.el).length>1){const e=[];S(i.el).each((t=>{const n=he({},i,{el:t});e.push(new Nt(n))}));return e}const n=this;n.__swiper__=true;n.support=we();n.device=$e({userAgent:i.userAgent});n.browser=Te();n.eventsListeners={};n.eventsAnyListeners=[];n.modules=[...n.__modules__];if(i.modules&&Array.isArray(i.modules)){n.modules.push(...i.modules)}const s={};n.modules.forEach((e=>{e({swiper:n,extendParams:Ft(i,s),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})}));const r=he({},Dt,s);n.params=he({},r,Gt,i);n.originalParams=he({},n.params);n.passedParams=he({},i);if(n.params&&n.params.on){Object.keys(n.params.on).forEach((e=>{n.on(e,n.params.on[e])}))}if(n.params&&n.params.onAny){n.onAny(n.params.onAny)}n.$=S;Object.assign(n,{enabled:n.params.enabled,el:t,classNames:[],slides:S(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function e(){const t=["touchstart","touchmove","touchend","touchcancel"];const i=["pointerdown","pointermove","pointerup"];n.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]};n.touchEventsDesktop={start:i[0],move:i[1],end:i[2]};return n.support.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:n.params.focusableElements,lastClickTime:fe(),clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,isTouchEvent:undefined,startMoving:undefined},allowClick:true,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});n.emit("_swiper");if(n.params.init){n.init()}return n}enable(){const e=this;if(e.enabled)return;e.enabled=true;if(e.params.grabCursor){e.setGrabCursor()}e.emit("enable")}disable(){const e=this;if(!e.enabled)return;e.enabled=false;if(e.params.grabCursor){e.unsetGrabCursor()}e.emit("disable")}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const n=i.minTranslate();const s=i.maxTranslate();const r=(s-n)*e+n;i.translateTo(r,typeof t==="undefined"?0:t);i.updateActiveIndex();i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>t.indexOf("swiper")===0||t.indexOf(e.params.containerModifierClass)===0));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;if(t.destroyed)return"";return e.className.split(" ").filter((e=>e.indexOf("swiper-slide")===0||e.indexOf(t.params.slideClass)===0)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((i=>{const n=e.getSlideClasses(i);t.push({slideEl:i,classNames:n});e.emit("_slideClass",i,n)}));e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=false){const i=this;const{params:n,slides:s,slidesGrid:r,slidesSizesGrid:o,size:a,activeIndex:l}=i;let f=1;if(n.centeredSlides){let e=s[l].swiperSlideSize;let t;for(let i=l+1;i<s.length;i+=1){if(s[i]&&!t){e+=s[i].swiperSlideSize;f+=1;if(e>a)t=true}}for(let i=l-1;i>=0;i-=1){if(s[i]&&!t){e+=s[i].swiperSlideSize;f+=1;if(e>a)t=true}}}else{if(e==="current"){for(let e=l+1;e<s.length;e+=1){const i=t?r[e]+o[e]-r[l]<a:r[e]-r[l]<a;if(i){f+=1}}}else{for(let e=l-1;e>=0;e-=1){const t=r[l]-r[e]<a;if(t){f+=1}}}}return f}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;if(i.breakpoints){e.setBreakpoint()}e.updateSize();e.updateSlides();e.updateProgress();e.updateSlidesClasses();function n(){const t=e.rtlTranslate?e.translate*-1:e.translate;const i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i);e.updateActiveIndex();e.updateSlidesClasses()}let s;if(e.params.freeMode&&e.params.freeMode.enabled){n();if(e.params.autoHeight){e.updateAutoHeight()}}else{if((e.params.slidesPerView==="auto"||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides){s=e.slideTo(e.slides.length-1,0,false,true)}else{s=e.slideTo(e.activeIndex,0,false,true)}if(!s){n()}}if(i.watchOverflow&&t!==e.snapGrid){e.checkOverflow()}e.emit("update")}changeDirection(e,t=true){const i=this;const n=i.params.direction;if(!e){e=n==="horizontal"?"vertical":"horizontal"}if(e===n||e!=="horizontal"&&e!=="vertical"){return i}i.$el.removeClass(`${i.params.containerModifierClass}${n}`).addClass(`${i.params.containerModifierClass}${e}`);i.emitContainerClasses();i.params.direction=e;i.slides.each((t=>{if(e==="vertical"){t.style.width=""}else{t.style.height=""}}));i.emit("changeDirection");if(t)i.update();return i}changeLanguageDirection(e){const t=this;if(t.rtl&&e==="rtl"||!t.rtl&&e==="ltr")return;t.rtl=e==="rtl";t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl;if(t.rtl){t.$el.addClass(`${t.params.containerModifierClass}rtl`);t.el.dir="rtl"}else{t.$el.removeClass(`${t.params.containerModifierClass}rtl`);t.el.dir="ltr"}t.update()}mount(e){const t=this;if(t.mounted)return true;const i=S(e||t.params.el);e=i[0];if(!e){return false}e.swiper=t;const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;const s=()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=S(e.shadowRoot.querySelector(n()));t.children=e=>i.children(e);return t}if(!i.children){return S(i).children(n())}return i.children(n())};let r=s();if(r.length===0&&t.params.createElements){const e=h();const n=e.createElement("div");r=S(n);n.className=t.params.wrapperClass;i.append(n);i.children(`.${t.params.slideClass}`).each((e=>{r.append(e)}))}Object.assign(t,{$el:i,el:e,$wrapperEl:r,wrapperEl:r[0],mounted:true,rtl:e.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl"),wrongRTL:r.css("display")==="-webkit-box"});return true}init(e){const t=this;if(t.initialized)return t;const i=t.mount(e);if(i===false)return t;t.emit("beforeInit");if(t.params.breakpoints){t.setBreakpoint()}t.addClasses();if(t.params.loop){t.loopCreate()}t.updateSize();t.updateSlides();if(t.params.watchOverflow){t.checkOverflow()}if(t.params.grabCursor&&t.enabled){t.setGrabCursor()}if(t.params.preloadImages){t.preloadImages()}if(t.params.loop){t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,false,true)}else{t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,false,true)}t.attachEvents();t.initialized=true;t.emit("init");t.emit("afterInit");return t}destroy(e=true,t=true){const i=this;const{params:n,$el:s,$wrapperEl:r,slides:o}=i;if(typeof i.params==="undefined"||i.destroyed){return null}i.emit("beforeDestroy");i.initialized=false;i.detachEvents();if(n.loop){i.loopDestroy()}if(t){i.removeClasses();s.removeAttr("style");r.removeAttr("style");if(o&&o.length){o.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")}}i.emit("destroy");Object.keys(i.eventsListeners).forEach((e=>{i.off(e)}));if(e!==false){i.$el[0].swiper=null;ae(i)}i.destroyed=true;return null}static extendDefaults(e){he(Gt,e)}static get extendedDefaults(){return Gt}static get defaults(){return Dt}static installModule(e){if(!Nt.prototype.__modules__)Nt.prototype.__modules__=[];const t=Nt.prototype.__modules__;if(typeof e==="function"&&t.indexOf(e)<0){t.push(e)}}static use(e){if(Array.isArray(e)){e.forEach((e=>Nt.installModule(e)));return Nt}Nt.installModule(e);return Nt}}Object.keys(Bt).forEach((e=>{Object.keys(Bt[e]).forEach((t=>{Nt.prototype[t]=Bt[e][t]}))}));Nt.use([ke,Ee]);function Wt({swiper:e,extendParams:t,on:i,emit:n}){let s;e.autoplay={running:false,paused:false};t({autoplay:{enabled:false,delay:3e3,waitForTransition:true,disableOnInteraction:true,stopOnLastSlide:false,reverseDirection:false,pauseOnMouseEnter:false}});function r(){if(!e.size){e.autoplay.running=false;e.autoplay.paused=false;return}const t=e.slides.eq(e.activeIndex);let i=e.params.autoplay.delay;if(t.attr("data-swiper-autoplay")){i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay}clearTimeout(s);s=le((()=>{let t;if(e.params.autoplay.reverseDirection){if(e.params.loop){e.loopFix();t=e.slidePrev(e.params.speed,true,true);n("autoplay")}else if(!e.isBeginning){t=e.slidePrev(e.params.speed,true,true);n("autoplay")}else if(!e.params.autoplay.stopOnLastSlide){t=e.slideTo(e.slides.length-1,e.params.speed,true,true);n("autoplay")}else{a()}}else if(e.params.loop){e.loopFix();t=e.slideNext(e.params.speed,true,true);n("autoplay")}else if(!e.isEnd){t=e.slideNext(e.params.speed,true,true);n("autoplay")}else if(!e.params.autoplay.stopOnLastSlide){t=e.slideTo(0,e.params.speed,true,true);n("autoplay")}else{a()}if(e.params.cssMode&&e.autoplay.running)r();else if(t===false){r()}}),i)}function o(){if(typeof s!=="undefined")return false;if(e.autoplay.running)return false;e.autoplay.running=true;n("autoplayStart");r();return true}function a(){if(!e.autoplay.running)return false;if(typeof s==="undefined")return false;if(s){clearTimeout(s);s=undefined}e.autoplay.running=false;n("autoplayStop");return true}function l(t){if(!e.autoplay.running)return;if(e.autoplay.paused)return;if(s)clearTimeout(s);e.autoplay.paused=true;if(t===0||!e.params.autoplay.waitForTransition){e.autoplay.paused=false;r()}else{["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].addEventListener(t,c)}))}}function f(){const t=h();if(t.visibilityState==="hidden"&&e.autoplay.running){l()}if(t.visibilityState==="visible"&&e.autoplay.paused){r();e.autoplay.paused=false}}function c(t){if(!e||e.destroyed||!e.$wrapperEl)return;if(t.target!==e.$wrapperEl[0])return;["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,c)}));e.autoplay.paused=false;if(!e.autoplay.running){a()}else{r()}}function u(){if(e.params.autoplay.disableOnInteraction){a()}else{n("autoplayPause");l()}["transitionend","webkitTransitionEnd"].forEach((t=>{e.$wrapperEl[0].removeEventListener(t,c)}))}function d(){if(e.params.autoplay.disableOnInteraction){return}e.autoplay.paused=false;n("autoplayResume");r()}function p(){if(e.params.autoplay.pauseOnMouseEnter){e.$el.on("mouseenter",u);e.$el.on("mouseleave",d)}}function g(){e.$el.off("mouseenter",u);e.$el.off("mouseleave",d)}i("init",(()=>{if(e.params.autoplay.enabled){o();const e=h();e.addEventListener("visibilitychange",f);p()}}));i("beforeTransitionStart",((t,i,n)=>{if(e.autoplay.running){if(n||!e.params.autoplay.disableOnInteraction){e.autoplay.pause(i)}else{a()}}}));i("sliderFirstMove",(()=>{if(e.autoplay.running){if(e.params.autoplay.disableOnInteraction){a()}else{l()}}}));i("touchEnd",(()=>{if(e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction){r()}}));i("destroy",(()=>{g();if(e.autoplay.running){a()}const t=h();t.removeEventListener("visibilitychange",f)}));Object.assign(e.autoplay,{pause:l,run:r,start:o,stop:a})}const _t="*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}q2-carousel{display:grid;grid-template-rows:repeat(2, auto);gap:var(--app-scale-2x, 10px)}.swiper-container{--comp-container-padding:var(--app-scale-1x, 5px) 0 var(--app-scale-2x, 10px);display:block;width:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;padding:var(--tct-carousel-container-padding, var(--t-carousel-container-padding, var(--comp-container-padding, 5px 0 10px)))}.insufficient-pane-feedback{text-align:center;box-shadow:var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14));background:var(--tct-carousel-background, var(--tct-carousel-background-color, var(--t-carousel-background-color, var(--tct-white, var(--app-white, #ffffff)))));border:var(--tct-carousel-pane-border-width, var(--t-carousel-pane-border-width, 1px)) solid var(--tct-carousel-pane-border-color, var(--t-carousel-pane-border-color, var(--tct-gray-11, var(--t-gray-11, var(--tct-gray-l1, var(--app-gray-l1, #cccccc))))));border-radius:var(--tct-carousel-pane-border-radius, var(--t-carousel-pane-border-radius, 8px));padding:var(--tct-carousel-pane-padding, var(--t-carousel-pane-padding, 7px))}.insufficient-pane-feedback.content-peek-display{max-width:395px;margin:0 auto}.insufficient-pane-feedback .insufficient-panes-header,.insufficient-pane-feedback .insufficient-panes-body{text-align:center}.insufficient-pane-feedback .insufficient-panes-header strong{font-weight:600}.insufficient-pane-feedback .insufficient-panes-body{margin:0 auto 2rem auto;max-width:75%}.insufficient-pane-feedback .insufficient-panes-icon-wrapper{display:flex;justify-content:center;margin:1rem 0 2rem 0}.insufficient-pane-feedback .insufficient-panes-icon-wrapper q2-icon{width:38px}.q2-carousel-pagination-navigation-wrapper{grid-row:2;display:flex;justify-content:center;align-items:center;min-height:44px}.q2-carousel-pagination-navigation-wrapper.evenly-space{justify-content:space-between}.q2-carousel-control-center-tray{display:flex;align-items:center}.q2-carousel-swiper-wrapper.compact{overflow:visible}.q2-carousel-swiper-wrapper.compact q2-btn{margin-top:4px}.q2-carousel-pagination{height:12px;display:flex;align-content:center;justify-content:center;gap:0.5rem}.q2-carousel-pagination .q2-carousel-page-indicator{display:inline-block;height:12px;width:12px;border-radius:50%;background-color:var(--tct-carousel-pagination-inactive-color, var(--t-carousel-pagination-inactive-color, var(--t-a11y--gray-color-AA, #949494)));padding:0;border:0;transition:all 0.5s}.q2-carousel-pagination .q2-carousel-page-indicator:hover{background-color:var(--tct-carousel-pagination-active-color, var(--t-carousel-pagination-active-color, var(--tct-primary, var(--t-primary, #006eb2))))}.q2-carousel-pagination .q2-carousel-page-indicator.active-page{display:inline-block;background-color:var(--tct-carousel-pagination-active-color, var(--t-carousel-pagination-active-color, var(--tct-primary, var(--t-primary, #006eb2))))}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator{display:none}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator.active-page,.q2-carousel-pagination.dynamic .q2-carousel-page-indicator.active-adjacent{display:inline-block;height:10px;width:10px}.q2-carousel-pagination.dynamic .q2-carousel-page-indicator.active-adjacent-adjacent{display:inline-block;height:8px;width:8px}.q2-carousel-swiper-container{grid-row:1;}.q2-carousel-swiper-container .swiper-wrapper{position:relative;width:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.q2-carousel-swiper-container.content-peek-display .q2-carousel-pane:not(.swiper-slide-active){transform:scale(0.9)}.q2-carousel-swiper-container.frameless-display{padding:var(--tct-carousel-frameless-container-padding, var(--t-carousel-frameless-container-padding, 0))}.q2-carousel-swiper-container.full-width-display{--comp-container-padding:var(--app-scale-1x, 5px) var(--app-scale-2x, 10px) var(--app-scale-2x, 10px);padding:var(--tct-carousel-full-width-container-padding, var(--t-carousel-full-width-container-padding, var(--comp-container-padding, 5px 10px 10px)))}";const Rt=_t;const Ht=500;const Vt=class{constructor(n){e(this,n);this.change=t(this,"change",7);this.guid=o();this.swiper=null;this.configureCarousel=(e,t)=>{var i,n;if(!!this.swiper){this.tearDownCarousel()}this.autoPlayInProgress=this.autoPlay;new Nt(e,t);(i=this.swiper)===null||i===void 0?void 0:i.slideTo(this.realIndex);if(this.autoPlayInProgress)(n=this.swiper)===null||n===void 0?void 0:n.autoplay.start()};this.handleAutoPlayPause=e=>{var t;if(!this.autoPlay)return;const i=(t=this.swiper)===null||t===void 0?void 0:t.autoplay;switch(e){case"play":i.start();this.autoPlayInProgress=true;break;case"pause":i.stop();this.autoPlayInProgress=false;break}};this.handlePopovers=e=>{const{swiper:t,carouselPaneWrapperElement:i}=this;if(e.detail.open){i.style.left=`${t===null||t===void 0?void 0:t.translate}px`;i.style.transform=null;t===null||t===void 0?void 0:t.disable()}else{i.style.left=null;i.style.transform=`translate3d(${t===null||t===void 0?void 0:t.translate}px, 0, 0)`;t===null||t===void 0?void 0:t.enable()}};this.keydownHandler=e=>{var t,i,n,s;switch(e.key){case"ArrowRight":e.preventDefault();(t=this.swiper)===null||t===void 0?void 0:t.slideNext();break;case"ArrowLeft":e.preventDefault();(i=this.swiper)===null||i===void 0?void 0:i.slidePrev();break;case"Home":e.preventDefault();(n=this.swiper)===null||n===void 0?void 0:n.slideTo(0);break;case"End":e.preventDefault();(s=this.swiper)===null||s===void 0?void 0:s.slideTo(this.paneCount-1);break}};this.onMutationObserved=()=>{this.updateCarouselPaneProps();this.configureCarousel(this.carouselWrapper,this.activeCarouselOptions)};this.setCarouselWrapperWidth=()=>{if(this.insufficientPanes)return;this.carouselWrapperWidth=this.carouselWrapper.clientWidth};this.tearDownCarousel=()=>{this.swiper.destroy();this.swiper=null};this.updateCarouselPaneProps=()=>{const{framelessPanes:e,paneCount:t,paneArray:i}=this;i.forEach(((i,n)=>{i.index=n;i.siblingCount=t;i.isActivePane=n===this.realIndex;i.slotFrameless=e||undefined}));this.currentPaneCount=t};this.renderAutoPlayBtn=()=>{const{autoPlayInProgress:e}=this;return i("q2-btn",{type:"button","hide-label":true,label:a(e?"tecton.element.carousel.pausePlayLabel":"tecton.element.carousel.resumePlayLabel"),class:"q2-carousel-autoplay-control",onClick:()=>this.handleAutoPlayPause(e?"pause":"play")},i("q2-icon",{type:e?"pause":"play"}))};this.renderInsufficientPanesDisplay=()=>{let e=["insufficient-pane-feedback",this.fullWidthPanes?"full-width-display":"content-peek-display"];if(this.compactMode)e=[...e,"compact"];return i("div",{class:e.join(" ")},i("div",{class:"insufficient-panes-icon-wrapper"},i("q2-icon",{type:"warning"})),i("p",{class:"insufficient-panes-header"},i("strong",null,a("tecton.element.carousel.insufficientPanesMessageHeader"))),i("p",{class:"insufficient-panes-body"},a("tecton.element.carousel.insufficientPanesMessageBody")))};this.renderNextNavBtn=()=>{const e=this.realIndex<this.paneCount-1;return i("div",null,i("q2-btn",{type:"button",disabled:e?undefined:true,class:"q2-carousel-navigation-button q2-carousel-navigation-button-next","hide-label":true,label:a("tecton.element.carousel.nextItemLabel"),onClick:()=>{var e;return(e=this.swiper)===null||e===void 0?void 0:e.slideNext()}},i("q2-icon",{type:"chevron-right"})))};this.renderPaginationArea=()=>{const{useDynamicPaginationDots:e,realIndex:t,paneCount:n,paneArray:s}=this;let r=["q2-carousel-pagination"];if(e)r=[...r,"dynamic"];return i("div",{class:r.join(" "),role:"tablist","aria-label":a("tecton.element.carousel.tabWrapperLabel")},s.map((s=>{let r=["q2-carousel-page-indicator",`q2-carousel-page-indicator-${s.index}`];if(s.isActivePane)r=[...r,"active-page"];if(e)r=[...r,"dynamic"];const o=s.index===t+1||s.index===t-1;if(o)r=[...r,"active-adjacent"];const l=s.index===t+2||s.index===t-2;if(l)r=[...r,"active-adjacent-adjacent"];return i("button",{type:"button",role:"tab",tabIndex:s.isActivePane?undefined:-1,"aria-selected":s.isActivePane?"true":"false",class:r.join(" "),onClick:()=>{var e;return(e=this.swiper)===null||e===void 0?void 0:e.slideTo(s.index)},onKeyDown:this.keydownHandler,"aria-label":a("tecton.element.carousel.itemDescription",[(s.index+1).toString(),n.toString()])})})))};this.renderPrevNavBtn=()=>{const e=this.realIndex>0;return i("div",null,i("q2-btn",{type:"button",disabled:e?undefined:true,class:"q2-carousel-navigation-button q2-carousel-navigation-button-prev","hide-label":true,label:a("tecton.element.carousel.previousItemLabel"),onClick:()=>{var e;return(e=this.swiper)===null||e===void 0?void 0:e.slidePrev()}},i("q2-icon",{type:"chevron-left"})))};this.ariaLiveValue="polite";this.autoPlayInProgress=false;this.carouselWrapperWidth=0;this.compactMode=false;this.currentPaneCount=this.paneCount;this.ariaLabel=undefined;this.autoPlay=false;this.framelessPanes=false;this.fullWidthPanes=false;this.hidePagination=false;this.index=1;this.label="tecton.element.carousel.ariaLabel";this.showNavigationArrows=false}disconnectedCallback(){if(this.mutationObserver){this.mutationObserver.disconnect();this.mutationObserver=null}if(!!this.swiper){this.tearDownCarousel()}window.removeEventListener("resize",this.setCarouselWrapperWidth)}componentWillLoad(){l(this);this.updateCarouselPaneProps();window.addEventListener("resize",this.setCarouselWrapperWidth);this.universalCarouselOptions={centeredSlides:true,focusableElements:"q2-btn, q2-dropdown, q2-item, q2-list, a, input, select, textarea, button, video, label, option",autoplay:this.autoPlay,modules:[Wt],on:{realIndexChange:e=>{this.index=e.realIndex+1;this.updateCarouselPaneProps();const t=!!document.activeElement.closest(`#q2-carousel-${this.guid} .q2-carousel-page-indicator`);const i=!!document.activeElement.closest(`#q2-carousel-${this.guid} q2-carousel-pane`);const n=t||i;this.handleAriaLive(n);this.change.emit({index:e.realIndex+1});if(t){this.paginationBtns[e.realIndex].focus({preventScroll:true})}else if(i)e.slides[e.realIndex].focus({preventScroll:true})},afterInit:e=>{var t;this.swiper=e;(t=this.activePane)===null||t===void 0?void 0:t.addEventListener("popoverStateChanged",this.handlePopovers)},slideChangeTransitionEnd:()=>{var e;(e=this.activePane)===null||e===void 0?void 0:e.addEventListener("popoverStateChanged",this.handlePopovers)},slideChangeTransitionStart:()=>{var e;(e=this.activePane)===null||e===void 0?void 0:e.removeEventListener("popoverStateChanged",this.handlePopovers)}}};this.fullWidthDisplayOptions=Object.assign({slidesPerView:1,spaceBetween:100},this.universalCarouselOptions)}componentDidLoad(){this.setCarouselWrapperWidth();if(this.carouselWrapper&&!!this.paneArray.length){this.configureCarousel(this.carouselWrapper,this.activeCarouselOptions)}const e=new MutationObserver(this.onMutationObserved);e.observe(this.hostElement,{childList:true,subtree:true});this.mutationObserver=e;f(this.hostElement)}carouselPaneClicked(e){var t,i;(t=this.swiper)===null||t===void 0?void 0:t.slideTo(e.detail.paneIndex);((i=this.swiper)===null||i===void 0?void 0:i.slides[e.detail.paneIndex]).focus({preventScroll:true})}delegateFocus(e){var t,i;const n=(t=this.swiper)===null||t===void 0?void 0:t.slides[(i=this.swiper)===null||i===void 0?void 0:i.realIndex];if(!c(e,this.hostElement)||!n)return;n.focus({preventScroll:true})}async selectCarouselPane(e){if(e>this.paneCount)return;const t=e>0?e-1:0;const i=this.paneArray[t];i===null||i===void 0?void 0:i.click();i===null||i===void 0?void 0:i.focus({preventScroll:true})}async togglePlayPause(){if(!this.autoPlay)return;const e=this.hostElement.querySelector(".q2-carousel-autoplay-control");e===null||e===void 0?void 0:e.click();e===null||e===void 0?void 0:e.focus()}ariaLabelObserver(){l(this)}carouselWrapperWidthChanged(){this.compactMode=this.carouselWrapperWidth<Ht}framelessPanesChanged(){this.updateCarouselPaneProps();this.revampCarousel()}revampCarousel(){this.configureCarousel(this.carouselWrapper,this.activeCarouselOptions)}indexChanged(e){var t,i;if(e!==((t=this.swiper)===null||t===void 0?void 0:t.realIndex)+1){(i=this.swiper)===null||i===void 0?void 0:i.slideTo(this.realIndex)}}get activeCarouselOptions(){return this.fullWidthPanes||this.framelessPanes?this.fullWidthDisplayOptions:this.peekContentDisplayOptions}get activePane(){var e,t,i;const n=(i=(e=this.swiper)===null||e===void 0?void 0:e.slides[(t=this.swiper)===null||t===void 0?void 0:t.realIndex])!==null&&i!==void 0?i:0;return n instanceof HTMLElement?n:null}get insufficientPanes(){return this.paneCount<1}get paginationBtns(){return this.hostElement.querySelectorAll(".q2-carousel-page-indicator")}get paneArray(){return Array.from(this.hostElement.querySelectorAll("q2-carousel-pane"))}get paneCount(){return this.paneArray.length}get peekContentDisplayOptions(){return Object.assign({slidesPerView:2,spaceBetween:this.compactMode?0:-10,centerInsufficientSlides:false},this.universalCarouselOptions)}get realIndex(){const e=Number(this.index);return e>0?e-1:0}get useDynamicPaginationDots(){return this.paneCount&&this.paneCount>5}handleAriaLive(e){if(this.autoPlayInProgress&&!e){this.ariaLiveValue="off"}else{this.ariaLiveValue="polite"}}render(){const{paneCount:e,fullWidthPanes:t,framelessPanes:r,compactMode:o,showNavigationArrows:l,insufficientPanes:f,autoPlay:c,hidePagination:u,ariaLiveValue:d,label:p}=this;let h=["q2-carousel-swiper-container","swiper-container"];if(t)h=[...h,"full-width-display"];if(r)h=[...h,"frameless-display"];if(!t&&!r)h=[...h,"content-peek-display"];if(o)h=[...h,"compact"];let g=["q2-carousel-pagination-navigation-wrapper"];if(l)g=[...g,"evenly-space"];return i(s,{key:"67d25d2920d5a952d2940cfdd6afa21e66c68abe",id:`q2-carousel-${this.guid}`,class:"q2-carousel-instance"},f?this.renderInsufficientPanesDisplay():i(n,null,e>1&&i("div",{class:g.join(" ")},l&&this.renderPrevNavBtn(),i("div",{class:"q2-carousel-control-center-tray"},!u&&this.renderPaginationArea(),c&&this.renderAutoPlayBtn()),l&&this.renderNextNavBtn()),i("section",{class:h.join(" "),ref:e=>this.carouselWrapper=e,"aria-roledescription":"carousel","aria-label":a(p)},i("div",{class:"q2-carousel-swiper-wrapper swiper-wrapper",ref:e=>this.carouselPaneWrapperElement=e,"aria-live":d,onKeyDown:this.keydownHandler},i("slot",null)))))}get hostElement(){return r(this)}static get watchers(){return{ariaLabel:["ariaLabelObserver"],carouselWrapperWidth:["carouselWrapperWidthChanged"],framelessPanes:["framelessPanesChanged","revampCarousel"],fullWidthPanes:["revampCarousel"],compactMode:["revampCarousel"],autoPlay:["revampCarousel"],index:["indexChanged"]}}};Vt.style=Rt;export{Vt as q2_carousel};
2
+ //# sourceMappingURL=p-c6fb83ff.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as a,h as r,F as c,g as o}from"./p-a5f18e27.js";import{k as e,o as i,i as s}from"./p-15ac45d6.js";const n="*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:block}.container{position:relative;width:100%;text-align:start;height:100%;display:grid;gap:var(--tct-card-gap, var(--t-card-gap, var(--app-scale-3x, 15px)));margin:0;color:var(--tct-card-color, var(--t-card-color, var(--t-text, #4d4d4d)));--comp-avatar-size:var(--tct-card-avatar-size, var(--t-card-avatar-size, 44px));--comp-chevron-size:0;--comp-bar-width:var(--tct-card-bar-width, var(--t-card-bar-width, var(--app-scale-2x, 10px)));--comp-card-padding:var(--tct-card-padding, var(--t-card-padding, var(--app-scale-4x, 20px)))}.container.is-small{--comp-avatar-size:var(--tct-card-avatar-size, var(--t-card-avatar-size, 26px))}.container.has-avatar{grid-template-columns:var(--comp-avatar-size) 1fr;--tct-avatar-width:var(--comp-avatar-size);--tct-avatar-height:var(--comp-avatar-size);--tct-icon-size:var(--comp-avatar-size)}:host([bar][is-static]) .container{padding-left:var(--comp-card-padding)}:host(:not([is-static])) .container{--comp-border-radius:var(--tct-card-border-radius, var(--t-card-border-radius, var(--app-border-radius-1, 4px)));--comp-border-width:var(--tct-card-border-width, var(--t-card-border-width, 0px));border:none;background:var(--tct-card-background, var(--t-card-background, var(--t-base, #ffffff)));padding:var(--comp-card-padding);text-decoration:none;border-width:var(--comp-border-width);border-color:var(--tct-card-border-color, var(--t-card-border-color, transparent));border-style:var(--tct-card-border-style, solid);border-radius:var(--comp-border-radius);transition:box-shadow var(--tct-tween-1, var(--app-tween-1, 0.2s ease));box-shadow:var(--tct-card-box-shadow, var(--t-card-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14))))}:host(:not([is-static])) .container.clickable{cursor:pointer}@media (hover: hover){:host(:not([is-static])) .container.clickable{--comp-card-hover-box-shadow:var(--tct-card-hover-box-shadow, var(--t-card-hover-box-shadow, var(--app-shadow-3, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 8px 16px rgba(0, 0, 0, 0.14))))}:host(:not([is-static])) .container.clickable:hover,:host(:not([is-static])) .container.clickable:active,:host(:not([is-static])) .container.clickable:focus{color:var(--tct-card-color, var(--t-card-color, var(--t-text, #4d4d4d)));box-shadow:var(--const-double-focus-ring)}:host(:not([is-static])) .container.clickable:hover{box-shadow:var(--comp-card-hover-box-shadow)}:host(:not([is-static])) .container.clickable:focus:hover{box-shadow:var(--const-double-focus-ring), var(--comp-card-hover-box-shadow)}:host(:not([is-static])) .container.clickable:active{box-shadow:var(--tct-card-active-box-shadow, var(--t-card-active-box-shadow, var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14))))}}:host(:not([is-static])) .container.is-touch{--comp-chevron-size:var(--tct-card-chevron-size, var(--t-card-chevron-size, 26px));grid-template-columns:1fr var(--comp-chevron-size)}:host(:not([is-static])) .container.has-avatar.is-touch{grid-template-columns:var(--comp-avatar-size) 1fr var(--comp-chevron-size)}.content{overflow:hidden;display:grid;gap:var(--tct-card-content-gap, var(--t-card-content-gap, var(--app-scale-1x, 5px)));align-content:start}h3,p{margin:0;padding:0;line-height:var(--tct-card-font-height, var(--t-card-font-height, 20px))}h3{font-weight:var(--tct-card-font-weight, var(--t-card-font-weight, 600));font-size:var(--tct-card-font-size, var(--t-card-font-size, 17px));text-overflow:ellipsis;overflow:hidden;white-space:nowrap}p{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.bar{--comp-bar-border-radius:calc(var(--comp-border-radius) - var(--comp-border-width));border-radius:var(--comp-bar-border-radius) 0 0 var(--comp-bar-border-radius);position:absolute;inset:0 auto auto 0;width:var(--comp-bar-width);background:var(--comp-bar-color);height:100%}.bar.color-primary{--comp-bar-color:var(--tct-card-bar-color-primary, var(--t-primary, #5446a4))}.bar.color-secondary{--comp-bar-color:var(--tct-card-bar-color-secondary, var(--t-secondary, #b6b3cc))}.bar.color-tertiary{--comp-bar-color:var(--tct-card-bar-color-tertiary, var(--t-tertiary, #ebe8fc))}.bar.color-info{--comp-bar-color:var(--tct-card-bar-color-info, var(--const-stoplight-info, #0079c1))}.bar.color-success{--comp-bar-color:var(--tct-card-bar-color-success, var(--const-stoplight-success, #0e8a00))}.bar.color-warning{--comp-bar-color:var(--tct-card-bar-color-warning, var(--const-stoplight-warning, #c35500))}.bar.color-alert{--comp-bar-color:var(--tct-card-bar-color-alert, var(--const-stoplight-alert, #c35500))}.bar.color-accent-1{--comp-bar-color:var(--tct-card-bar-color-accent-1, var(--t-accent-1, #e05252))}.bar.color-accent-2{--comp-bar-color:var(--tct-card-bar-color-accent-2, var(--t-accent-2, #e09952))}.bar.color-accent-3{--comp-bar-color:var(--tct-card-bar-color-accent-3, var(--t-accent-3, #e0e052))}.bar.color-accent-4{--comp-bar-color:var(--tct-card-bar-color-accent-4, var(--t-accent-4, #99e052))}.bar.color-accent-5{--comp-bar-color:var(--tct-card-bar-color-accent-5, var(--t-accent-5, #52e052))}.bar.color-accent-6{--comp-bar-color:var(--tct-card-bar-color-accent-6, var(--t-accent-6, #52e099))}.bar.color-accent-7{--comp-bar-color:var(--tct-card-bar-color-accent-7, var(--t-accent-7, #52e0e0))}.bar.color-accent-8{--comp-bar-color:var(--tct-card-bar-color-accent-8, var(--t-accent-8, #5299e0))}.bar.color-accent-9{--comp-bar-color:var(--tct-card-bar-color-accent-9, var(--t-accent-9, #5252e0))}.bar.color-accent-10{--comp-bar-color:var(--tct-card-bar-color-accent-10, var(--t-accent-10, #9952e0))}.bar.color-accent-11{--comp-bar-color:var(--tct-card-bar-color-accent-11, var(--t-accent-11, #e052e0))}.bar.color-accent-12{--comp-bar-color:var(--tct-card-bar-color-accent-12, var(--t-accent-12, #e05299))}.touch-indicator{align-self:center;--tct-icon-size:var(--comp-chevron-size)}";const d=n;const l=["primary","secondary","tertiary","info","success","warning","alert","accent-1","accent-2","accent-3","accent-4","accent-5","accent-6","accent-7","accent-8","accent-9","accent-10","accent-11","accent-12"];const h=class{constructor(r){t(this,r);this.click=a(this,"click",7);this.handleClick=t=>{if(this.url)return true;t.preventDefault();t.stopPropagation();this.click.emit()};this.isAutoSmall=false;this.isAutoTouch=false;this.avatarIcon=undefined;this.avatarInitials=undefined;this.avatarName=undefined;this.avatarSrc=undefined;this.bar=undefined;this.description=undefined;this.isSmall=undefined;this.isStatic=undefined;this.isTouch=e();this.target=undefined;this.title=undefined;this.type="clickable";this.url=undefined}disconnectedCallback(){this.resizeObserver=null}componentDidLoad(){const{hostElement:t,clickableElement:a}=this;t.click=()=>a.click();i(this.hostElement);this.resizeObserver=new ResizeObserver((()=>this.determineAutoSmall()));this.resizeObserver.observe(this.hostElement)}onHostElementFocus(t){if(!s(t,this.hostElement))return;this.clickableElement.focus()}determineAutoSmall(){var t,a;if(this.isStatic)return;if(this.hostElement.hasAttribute("is-small"))return;const{containerElement:r,avatarElement:c}=this;const o=(t=c===null||c===void 0?void 0:c.offsetWidth)!==null&&t!==void 0?t:0;const e=(a=r===null||r===void 0?void 0:r.offsetWidth)!==null&&a!==void 0?a:0;const i=o+e;this.isAutoSmall=i<350}determineAutoTouch(){if(this.hostElement.hasAttribute("is-touch"))return;this.isAutoTouch=e()}generateAvatar(){const{avatarName:t,avatarInitials:a,avatarSrc:c,avatarIcon:o}=this;if(o){return r("q2-icon",{type:o,ref:t=>this.avatarElement=t,"test-id":"avatar"})}else if(t||a||c){return r("q2-avatar",{name:t,initials:a,src:c,ref:t=>this.avatarElement=t,"test-id":"avatar"})}}generateContainerClasses(){const{isSmall:t,isAutoSmall:a,avatarName:r,avatarInitials:c,avatarSrc:o,avatarIcon:e,isTouch:i,isAutoTouch:s,isStatic:n,type:d}=this;const l=["container",d];const h=t||a;const v=i||s;const p=r||c||o||e;if(h)l.push("is-small");if(v&&!n)l.push("is-touch");if(p)l.push("has-avatar");if(n)l.push("is-static");return l.join(" ")}generateContent(){return r(c,null,this.bar&&r("div",{class:this.getBarClasses(),"test-id":"bar",style:this.getBarStyles()}),this.generateAvatar(),r("div",{class:"content","test-id":"contentContainer",ref:t=>this.containerElement=t},this.title&&r("h3",{"test-id":"title"},this.title),this.description&&r("p",{"test-id":"description"},this.description),r("slot",null)),this.isTouch&&!this.isStatic&&r("q2-icon",{"test-id":"touchIndicator",type:"chevron-right",class:"touch-indicator"}))}getBarClasses(){const{bar:t}=this;return{bar:true,[`color-${t}`]:this.isBarColorPredefined()}}getBarStyles(){const{bar:t}=this;return this.isBarColorPredefined()?{}:{"--comp-bar-color":t}}isBarColorPredefined(){return l.includes(this.bar)}render(){const{url:t,isStatic:a,type:c}=this;if(a||c==="non-clickable")return r("div",{ref:t=>this.clickableElement=t,class:this.generateContainerClasses(),"test-id":"clickableElement"},this.generateContent());else if(!!t)return r("a",{ref:t=>this.clickableElement=t,href:this.url,class:this.generateContainerClasses(),target:this.target,rel:"noopener noreferrer","test-id":"clickableElement",onClick:this.handleClick},this.generateContent());else return r("button",{ref:t=>this.clickableElement=t,class:this.generateContainerClasses(),"test-id":"clickableElement",type:"button",onClick:this.handleClick},this.generateContent())}get hostElement(){return o(this)}};h.style=d;export{h as q2_card};
2
- //# sourceMappingURL=p-1c760a89.entry.js.map
1
+ import{r as t,c as a,h as r,F as c,g as o}from"./p-a5f18e27.js";import{k as e,o as i,i as s}from"./p-c5445b5e.js";const n="*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{display:block}.container{position:relative;width:100%;text-align:start;height:100%;display:grid;gap:var(--tct-card-gap, var(--t-card-gap, var(--app-scale-3x, 15px)));margin:0;color:var(--tct-card-color, var(--t-card-color, var(--t-text, #4d4d4d)));--comp-avatar-size:var(--tct-card-avatar-size, var(--t-card-avatar-size, 44px));--comp-chevron-size:0;--comp-bar-width:var(--tct-card-bar-width, var(--t-card-bar-width, var(--app-scale-2x, 10px)));--comp-card-padding:var(--tct-card-padding, var(--t-card-padding, var(--app-scale-4x, 20px)))}.container.is-small{--comp-avatar-size:var(--tct-card-avatar-size, var(--t-card-avatar-size, 26px))}.container.has-avatar{grid-template-columns:var(--comp-avatar-size) 1fr;--tct-avatar-width:var(--comp-avatar-size);--tct-avatar-height:var(--comp-avatar-size);--tct-icon-size:var(--comp-avatar-size)}:host([bar][is-static]) .container{padding-left:var(--comp-card-padding)}:host(:not([is-static])) .container{--comp-border-radius:var(--tct-card-border-radius, var(--t-card-border-radius, var(--app-border-radius-1, 4px)));--comp-border-width:var(--tct-card-border-width, var(--t-card-border-width, 0px));border:none;background:var(--tct-card-background, var(--t-card-background, var(--t-base, #ffffff)));padding:var(--comp-card-padding);text-decoration:none;border-width:var(--comp-border-width);border-color:var(--tct-card-border-color, var(--t-card-border-color, transparent));border-style:var(--tct-card-border-style, solid);border-radius:var(--comp-border-radius);transition:box-shadow var(--tct-tween-1, var(--app-tween-1, 0.2s ease));box-shadow:var(--tct-card-box-shadow, var(--t-card-box-shadow, var(--app-shadow-2, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 4px 8px rgba(0, 0, 0, 0.14))))}:host(:not([is-static])) .container.clickable{cursor:pointer}@media (hover: hover){:host(:not([is-static])) .container.clickable{--comp-card-hover-box-shadow:var(--tct-card-hover-box-shadow, var(--t-card-hover-box-shadow, var(--app-shadow-3, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 8px 16px rgba(0, 0, 0, 0.14))))}:host(:not([is-static])) .container.clickable:hover,:host(:not([is-static])) .container.clickable:active,:host(:not([is-static])) .container.clickable:focus{color:var(--tct-card-color, var(--t-card-color, var(--t-text, #4d4d4d)));box-shadow:var(--const-double-focus-ring)}:host(:not([is-static])) .container.clickable:hover{box-shadow:var(--comp-card-hover-box-shadow)}:host(:not([is-static])) .container.clickable:focus:hover{box-shadow:var(--const-double-focus-ring), var(--comp-card-hover-box-shadow)}:host(:not([is-static])) .container.clickable:active{box-shadow:var(--tct-card-active-box-shadow, var(--t-card-active-box-shadow, var(--app-shadow-1, 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14))))}}:host(:not([is-static])) .container.is-touch{--comp-chevron-size:var(--tct-card-chevron-size, var(--t-card-chevron-size, 26px));grid-template-columns:1fr var(--comp-chevron-size)}:host(:not([is-static])) .container.has-avatar.is-touch{grid-template-columns:var(--comp-avatar-size) 1fr var(--comp-chevron-size)}.content{overflow:hidden;display:grid;gap:var(--tct-card-content-gap, var(--t-card-content-gap, var(--app-scale-1x, 5px)));align-content:start}h3,p{margin:0;padding:0;line-height:var(--tct-card-font-height, var(--t-card-font-height, 20px))}h3{font-weight:var(--tct-card-font-weight, var(--t-card-font-weight, 600));font-size:var(--tct-card-font-size, var(--t-card-font-size, 17px));text-overflow:ellipsis;overflow:hidden;white-space:nowrap}p{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.bar{--comp-bar-border-radius:calc(var(--comp-border-radius) - var(--comp-border-width));border-radius:var(--comp-bar-border-radius) 0 0 var(--comp-bar-border-radius);position:absolute;inset:0 auto auto 0;width:var(--comp-bar-width);background:var(--comp-bar-color);height:100%}.bar.color-primary{--comp-bar-color:var(--tct-card-bar-color-primary, var(--t-primary, #5446a4))}.bar.color-secondary{--comp-bar-color:var(--tct-card-bar-color-secondary, var(--t-secondary, #b6b3cc))}.bar.color-tertiary{--comp-bar-color:var(--tct-card-bar-color-tertiary, var(--t-tertiary, #ebe8fc))}.bar.color-info{--comp-bar-color:var(--tct-card-bar-color-info, var(--const-stoplight-info, #0079c1))}.bar.color-success{--comp-bar-color:var(--tct-card-bar-color-success, var(--const-stoplight-success, #0e8a00))}.bar.color-warning{--comp-bar-color:var(--tct-card-bar-color-warning, var(--const-stoplight-warning, #c35500))}.bar.color-alert{--comp-bar-color:var(--tct-card-bar-color-alert, var(--const-stoplight-alert, #c35500))}.bar.color-accent-1{--comp-bar-color:var(--tct-card-bar-color-accent-1, var(--t-accent-1, #e05252))}.bar.color-accent-2{--comp-bar-color:var(--tct-card-bar-color-accent-2, var(--t-accent-2, #e09952))}.bar.color-accent-3{--comp-bar-color:var(--tct-card-bar-color-accent-3, var(--t-accent-3, #e0e052))}.bar.color-accent-4{--comp-bar-color:var(--tct-card-bar-color-accent-4, var(--t-accent-4, #99e052))}.bar.color-accent-5{--comp-bar-color:var(--tct-card-bar-color-accent-5, var(--t-accent-5, #52e052))}.bar.color-accent-6{--comp-bar-color:var(--tct-card-bar-color-accent-6, var(--t-accent-6, #52e099))}.bar.color-accent-7{--comp-bar-color:var(--tct-card-bar-color-accent-7, var(--t-accent-7, #52e0e0))}.bar.color-accent-8{--comp-bar-color:var(--tct-card-bar-color-accent-8, var(--t-accent-8, #5299e0))}.bar.color-accent-9{--comp-bar-color:var(--tct-card-bar-color-accent-9, var(--t-accent-9, #5252e0))}.bar.color-accent-10{--comp-bar-color:var(--tct-card-bar-color-accent-10, var(--t-accent-10, #9952e0))}.bar.color-accent-11{--comp-bar-color:var(--tct-card-bar-color-accent-11, var(--t-accent-11, #e052e0))}.bar.color-accent-12{--comp-bar-color:var(--tct-card-bar-color-accent-12, var(--t-accent-12, #e05299))}.touch-indicator{align-self:center;--tct-icon-size:var(--comp-chevron-size)}";const d=n;const l=["primary","secondary","tertiary","info","success","warning","alert","accent-1","accent-2","accent-3","accent-4","accent-5","accent-6","accent-7","accent-8","accent-9","accent-10","accent-11","accent-12"];const h=class{constructor(r){t(this,r);this.click=a(this,"click",7);this.handleClick=t=>{if(this.url)return true;t.preventDefault();t.stopPropagation();this.click.emit()};this.isAutoSmall=false;this.isAutoTouch=false;this.avatarIcon=undefined;this.avatarInitials=undefined;this.avatarName=undefined;this.avatarSrc=undefined;this.bar=undefined;this.description=undefined;this.isSmall=undefined;this.isStatic=undefined;this.isTouch=e();this.target=undefined;this.title=undefined;this.type="clickable";this.url=undefined}disconnectedCallback(){this.resizeObserver=null}componentDidLoad(){const{hostElement:t,clickableElement:a}=this;t.click=()=>a.click();i(this.hostElement);this.resizeObserver=new ResizeObserver((()=>this.determineAutoSmall()));this.resizeObserver.observe(this.hostElement)}onHostElementFocus(t){if(!s(t,this.hostElement))return;this.clickableElement.focus()}determineAutoSmall(){var t,a;if(this.isStatic)return;if(this.hostElement.hasAttribute("is-small"))return;const{containerElement:r,avatarElement:c}=this;const o=(t=c===null||c===void 0?void 0:c.offsetWidth)!==null&&t!==void 0?t:0;const e=(a=r===null||r===void 0?void 0:r.offsetWidth)!==null&&a!==void 0?a:0;const i=o+e;this.isAutoSmall=i<350}determineAutoTouch(){if(this.hostElement.hasAttribute("is-touch"))return;this.isAutoTouch=e()}generateAvatar(){const{avatarName:t,avatarInitials:a,avatarSrc:c,avatarIcon:o}=this;if(o){return r("q2-icon",{type:o,ref:t=>this.avatarElement=t,"test-id":"avatar"})}else if(t||a||c){return r("q2-avatar",{name:t,initials:a,src:c,ref:t=>this.avatarElement=t,"test-id":"avatar"})}}generateContainerClasses(){const{isSmall:t,isAutoSmall:a,avatarName:r,avatarInitials:c,avatarSrc:o,avatarIcon:e,isTouch:i,isAutoTouch:s,isStatic:n,type:d}=this;const l=["container",d];const h=t||a;const v=i||s;const p=r||c||o||e;if(h)l.push("is-small");if(v&&!n)l.push("is-touch");if(p)l.push("has-avatar");if(n)l.push("is-static");return l.join(" ")}generateContent(){return r(c,null,this.bar&&r("div",{class:this.getBarClasses(),"test-id":"bar",style:this.getBarStyles()}),this.generateAvatar(),r("div",{class:"content","test-id":"contentContainer",ref:t=>this.containerElement=t},this.title&&r("h3",{"test-id":"title"},this.title),this.description&&r("p",{"test-id":"description"},this.description),r("slot",null)),this.isTouch&&!this.isStatic&&r("q2-icon",{"test-id":"touchIndicator",type:"chevron-right",class:"touch-indicator"}))}getBarClasses(){const{bar:t}=this;return{bar:true,[`color-${t}`]:this.isBarColorPredefined()}}getBarStyles(){const{bar:t}=this;return this.isBarColorPredefined()?{}:{"--comp-bar-color":t}}isBarColorPredefined(){return l.includes(this.bar)}render(){const{url:t,isStatic:a,type:c}=this;if(a||c==="non-clickable")return r("div",{ref:t=>this.clickableElement=t,class:this.generateContainerClasses(),"test-id":"clickableElement"},this.generateContent());else if(!!t)return r("a",{ref:t=>this.clickableElement=t,href:this.url,class:this.generateContainerClasses(),target:this.target,rel:"noopener noreferrer","test-id":"clickableElement",onClick:this.handleClick},this.generateContent());else return r("button",{ref:t=>this.clickableElement=t,class:this.generateContainerClasses(),"test-id":"clickableElement",type:"button",onClick:this.handleClick},this.generateContent())}get hostElement(){return o(this)}};h.style=d;export{h as q2_card};
2
+ //# sourceMappingURL=p-cca5af1f.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as s,H as i,g as n}from"./p-a5f18e27.js";import{n as o,l as h,o as a,i as c,w as r,v as l}from"./p-15ac45d6.js";function f(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const d="*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{position:relative;width:100%;display:block;line-height:var(--tct-option-list-line-height, var(--t-option-list-line-height, var(--app-line-height, 1.428571429em)))}.content{text-align:start}:host([is-sizeable]) .content{display:block;height:auto}";const p=d;const u=class{constructor(s){t(this,s);this.change=e(this,"change",7);this.popoverState=e(this,"popoverState",7);this.ready=e(this,"ready",3);this.keyStore={queue:[],lastPressedAt:new Date};this.scheduledAfterRender=[];this.clickHandler=t=>{const e=t.target;const s=e.closest("q2-option");this.selectOption(s);if(this.multiple)return;this.popoverState.emit({open:false,action:"select"})};this.externalKeydownHandler=t=>{t.stopPropagation();const{activeIndex:e,customSearch:s,allOptions:i}=this;const{key:n}=t;let h;switch(n){case" ":if(this.searchString){if(s)break;this.searchOptions(n,true);break}else if(this.type==="menu"){this.activeIndex=0;this.openDropdownWithActiveElement(0)}else{this.setDefaultActiveElement();o((()=>this.popoverState.emit({open:true,action:"open"})))}break;case"Enter":if(this.type==="menu"){this.activeIndex=0;this.openDropdownWithActiveElement(0)}else{this.setDefaultActiveElement();o((()=>this.popoverState.emit({open:true,action:"open"})))}break;case"ArrowUp":t.preventDefault();h=!!this.selectedOptions.length?this.getDefaultActiveIndex():this.getNextVisibleIndex(-1);if(h===-1)break;this.openDropdownWithActiveElement(h);break;case"ArrowDown":t.preventDefault();h=!!this.selectedOptions.length?this.getDefaultActiveIndex():this.getNextVisibleIndex(1);if(h===-1)break;this.openDropdownWithActiveElement(h);break;case"Home":t.preventDefault();this.openDropdownWithActiveElement(0);break;case"End":t.preventDefault();this.openDropdownWithActiveElement(i.length-1);break;case"PageUp":t.preventDefault();this.openDropdownWithActiveElement(Math.max((e||0)-10,0));break;case"PageDown":t.preventDefault();this.openDropdownWithActiveElement(Math.min((e||0)+10,i.length-1));break;case"Tab":this.popoverState.emit({open:false,action:"close"});break;case"Esc":case"Escape":if(this.noSelect)this.setActiveElement(null);this.popoverState.emit({open:false,action:"close"});break;default:if(s)break;if(!n.match(/^[\w]$/))break;this.searchOptions(n,true);break}};this.focusoutHandler=t=>{const{relatedTarget:e}=t;const s=this.allOptions.includes(e);const i=!s&&this.hostElement.contains(e);if(s||i){t.stopPropagation()}};this.internalKeydownHandler=t=>{t.stopPropagation();const{activeIndex:e,customSearch:s,allOptions:i,allVisibleOptions:n,multiple:o}=this;const{key:h,shiftKey:a}=t;let c;switch(h){case" ":if(this.searchString&&!this.multiple){if(s)break;this.searchOptions(h,false);break}t.preventDefault();c=i.find((t=>t.active));if(!c||c.disabled)break;this.selectOption(c);if(o)break;this.popoverState.emit({open:false,action:"select"});break;case"Enter":t.preventDefault();c=i.find((t=>t.active));if(!c||c.disabled)break;this.selectOption(c);if(o)break;this.popoverState.emit({open:false,action:"select"});break;case"ArrowUp":t.preventDefault();const r=n[0].active;if(r)break;if(e===undefined){this.setDefaultActiveElement();break}else{const t=this.getNextVisibleIndex(-1);if(t===-1)break;this.adjustActiveOptionAndScroll(t-e);break}case"ArrowDown":t.preventDefault();const l=n[n.length-1].active;if(l)break;if(e===undefined){this.setDefaultActiveElement();break}else{const t=this.getNextVisibleIndex(1);if(t===-1)break;this.adjustActiveOptionAndScroll(t-e);break}case"Home":t.preventDefault();this.openDropdownWithActiveElement(0);break;case"End":t.preventDefault();this.openDropdownWithActiveElement(i.length-1);break;case"PageUp":t.preventDefault();this.openDropdownWithActiveElement(Math.max(e-10,0));break;case"PageDown":t.preventDefault();this.openDropdownWithActiveElement(Math.min(e+10,i.length-1));break;case"Tab":if(a)break;if(this.multiple&&this.type==="listbox")break;if(this.type==="menu"){this.popoverState.emit({open:false,action:"close"});break}c=i.find((t=>t.active));if(!c||c.disabled)return;this.selectOption(c);break;case"Esc":case"Escape":if(this.noSelect)this.setActiveElement(null);this.popoverState.emit({open:false,action:"close"});break;default:if(s)break;if(!h.match(/^[\w]$/))break;this.searchOptions(h,false);break}};this.searchAndFocus=(t,e)=>{const s=()=>{this.pivotIndex=this.pivotIndex===undefined?0:(this.activeIndex||0)+1;const t=this.allOptions.map(((t,e)=>({element:t,index:e})));return[...t.slice(this.pivotIndex),...t.slice(0,this.pivotIndex)]};const i=()=>{const e=new Date;if(e.getTime()-this.keyStore.lastPressedAt.getTime()>1e3){this.keyStore.queue.length=0}if(this.keyStore.queue.length!==1||this.keyStore.queue[0]!==t){this.keyStore.queue.push(t)}this.keyStore.lastPressedAt=e};const n=t=>{const e=this.keyStore.queue.join("");const s=f(e);return t.find((t=>!t.element.disabled&&t.element.display&&(t.element.display.match(new RegExp(`^${s}`,"i"))||t.element.display.replace(/\s/g,"").match(new RegExp(`^${s}`,"i")))))};const o=({index:t})=>{if(this.multiple){this.openDropdownWithActiveElement(t)}else{this.activeIndex=t;if(e){this.selectOption(this.allOptions[t]);this.popoverState.emit({open:false,action:"select"})}else this.setActiveElement(t)}};i();const h=n(s());if(h){o(h)}};this.hasOptions=undefined;this.align=undefined;this.customSearch=undefined;this.disabled=undefined;this.label=h("tecton.element.optionList.label");this.multiple=undefined;this.noSelect=undefined;this.selectedOptions=[];this.showSelected=undefined;this.type="listbox"}componentWillLoad(){this.hasOptions=!!this.hostElement.querySelectorAll("q2-option").length}componentDidLoad(){a(this.hostElement);this.checkOptions();this.selectedOptionsUpdated();this.ready.emit()}componentDidRender(){this.scheduledAfterRender.forEach((t=>t()));this.scheduledAfterRender=[]}handleClick(t){t.stopPropagation()}delegateFocus(t){if(!c(t,this.hostElement))return;this.popoverState.emit({open:true,action:"open"});const{activeIndex:e}=this;if(typeof e==="number"&&e>-1){this.setActiveOption();this.setFocusedOption()}else{this.setDefaultActiveElement()}}async getContents(){return this.allContents}async getOptions(){return this.allOptions}async handleExternalKeydown(t){this.externalKeydownHandler(t)}async setActiveElement(t){this.activeIndex=t;this.setActiveOption();this.setFocusedOption()}async setDefaultActiveElement(){this.activeIndex=this.getDefaultActiveIndex();this.setActiveOption();this.setFocusedOption()}selectedOptionsUpdated(){if(this.multiple){this.updateMultipleOptionAttrs()}else{this.updateSingleOptionAttrs()}}showSelectedUpdated(t){if(t&&this.selectedOptions.length===0){this.showSelected=false;return}this.allOptions.forEach((e=>e._multiSelectHidden=t?!e.selected:false))}get allContents(){const t=this.getRootSlot(this.hostElement);const e=["Q2-OPTGROUP","Q2-OPTION"];return t.filter((t=>e.includes(t.tagName)))}get allOptions(){const t=this.allContents;const e=t=>t.reduce(((t,s)=>{if(s.tagName==="Q2-OPTGROUP"){return[...t,...e(Array.from(s.children))]}else if(s.tagName==="Q2-OPTION"){return[...t,s]}else{return t}}),[]);return e(t)}get allVisibleOptions(){return this.allOptions.filter((t=>!t.hidden&&!t._multiSelectHidden&&!t.disabled&&!t.disabledGroup))}adjustActiveOptionAndScroll(t){this.activeIndex+=t;this.setActiveOption();this.setFocusedOption();this.scrollToActiveOption()}async checkOptions(){const{type:t}=this;const e=await this.getOptions();if(!t)return;const s=t==="menu"?"menuitem":"option";e.forEach((t=>{t.role=s}))}focusSelectedSibling(t){const{allVisibleOptions:e,allOptions:s}=this;const i=e.length<2;if(i){this.showSelected=false;return}const n=e.indexOf(t);const o=n?n-1:n+1;const h=e[o];const a=s.indexOf(h);this.activeIndex=a;this.setFocusedOption();this.scheduledAfterRender.push((()=>{t._multiSelectHidden=!t.selected}))}getDefaultActiveIndex(){const{allOptions:t}=this;const e=t.findIndex((t=>t.selected));if(e>-1)return e;const s=t.findIndex((t=>!t.hidden));if(s>-1)return s;return 0}getNextVisibleIndex(t){const{allVisibleOptions:e,allOptions:s,activeIndex:i}=this;const n=s[i];const o=e.indexOf(n);let h=o+t;if(h<0){h=e.length-1}else if(h>e.length-1){h=0}const a=e[h];return s.indexOf(a)}getRootSlot(t){var e;const s=t.querySelector("slot");const i=(e=s===null||s===void 0?void 0:s.assignedElements())!==null&&e!==void 0?e:Array.from(t.children);const n=!!i.length&&i[0].tagName==="SLOT";if(n){return this.getRootSlot(i[0])}else{return i}}async openDropdownWithActiveElement(t){if(this.disabled)return;this.popoverState.emit({open:true,action:"open"});await r();this.activeIndex=t;this.setActiveOption();this.setFocusedOption();this.scrollToActiveOption()}resetTimer(){if(this.searchStringTimer){clearTimeout(this.searchStringTimer)}this.searchStringTimer=window.setTimeout((()=>{this.searchString=null}),2e3)}scrollToActiveOption(){const t=this.allOptions[this.activeIndex];t===null||t===void 0?void 0:t.scrollIntoView({block:"center"})}searchOptions(t,e){this.searchString=t;this.searchAndFocus(t,e)}selectOption(t){const{multiple:e,noSelect:s,showSelected:i}=this;if(!t||t.disabled||t.disabledGroup)return;const n=t.value;const o={value:n,display:t.display||t.innerText.trim()};let h=[];if(e){const{selectedOptions:e}=this;const s=e.find((t=>t.value===n));if(s){h=e.filter((({value:t})=>t!==n))}else{h=[...e,o]}if(i)this.focusSelectedSibling(t)}else{h=[o]}if(s)this.setActiveElement(null);else this.selectedOptions=h;this.change.emit({value:n,values:h})}setActiveOption(){const t=this.activeIndex;this.allOptions.forEach(((e,s)=>{e.active=t===s}))}setFocusedOption(){const t=this.allOptions[this.activeIndex];if(!t)return;const e=l(t);if(e)t.focus();else o((()=>t.focus()))}updateMultipleOptionAttrs(){const{allOptions:t,selectedOptions:e}=this;const s=e.map((({value:t})=>t));t.forEach((t=>{t.selected=s.includes(t.value)}))}updateSingleOptionAttrs(){var t;const{allOptions:e,selectedOptions:s}=this;const i=((t=s[0])===null||t===void 0?void 0:t.value)||undefined;e.forEach((t=>{t.selected=t.value===i}))}render(){return s(i,{key:"221e3d11f55902cd286a6f69cb1c30ce4cc3cb1c"},s("div",{key:"5e08ad2fd5a1a773976285ad16f2e2ef6e2161be",class:"content",ref:t=>this.contentElement=t,onFocusout:this.focusoutHandler},s("div",{key:"537330008c139176aaa19ba997579e61f841fffb",class:"options","aria-label":h("tecton.element.optionList.label",[this.label]),"aria-multiselectable":`${!!this.multiple}`,role:this.type||"listbox",onKeyDown:this.internalKeydownHandler,onClick:this.clickHandler},s("slot",{key:"9204233743b02ead43bbe4f9329973059af24414"}))))}get hostElement(){return n(this)}static get watchers(){return{selectedOptions:["selectedOptionsUpdated"],showSelected:["showSelectedUpdated"]}}};u.style=p;export{u as q2_option_list};
2
- //# sourceMappingURL=p-a5d0e252.entry.js.map
1
+ import{r as t,c as e,h as s,H as i,g as n}from"./p-a5f18e27.js";import{n as o,l as h,o as a,i as c,w as r,u as l}from"./p-c5445b5e.js";function f(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const d="*{box-sizing:border-box}*:active{outline:none}*:focus{outline:none;box-shadow:var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc)}:host{box-shadow:none !important}::-moz-focus-inner{border:none}input,textarea,button{font-family:inherit;font-size:inherit;font-stretch:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}:host{position:relative;width:100%;display:block;line-height:var(--tct-option-list-line-height, var(--t-option-list-line-height, var(--app-line-height, 1.428571429em)))}.content{text-align:start}:host([is-sizeable]) .content{display:block;height:auto}";const p=d;const u=class{constructor(s){t(this,s);this.change=e(this,"change",7);this.popoverState=e(this,"popoverState",7);this.ready=e(this,"ready",3);this.keyStore={queue:[],lastPressedAt:new Date};this.scheduledAfterRender=[];this.clickHandler=t=>{const e=t.target;const s=e.closest("q2-option");this.selectOption(s);if(this.multiple)return;this.popoverState.emit({open:false,action:"select"})};this.externalKeydownHandler=t=>{t.stopPropagation();const{activeIndex:e,customSearch:s,allOptions:i}=this;const{key:n}=t;let h;switch(n){case" ":if(this.searchString){if(s)break;this.searchOptions(n,true);break}else if(this.type==="menu"){this.activeIndex=0;this.openDropdownWithActiveElement(0)}else{this.setDefaultActiveElement();o((()=>this.popoverState.emit({open:true,action:"open"})))}break;case"Enter":if(this.type==="menu"){this.activeIndex=0;this.openDropdownWithActiveElement(0)}else{this.setDefaultActiveElement();o((()=>this.popoverState.emit({open:true,action:"open"})))}break;case"ArrowUp":t.preventDefault();h=!!this.selectedOptions.length?this.getDefaultActiveIndex():this.getNextVisibleIndex(-1);if(h===-1)break;this.openDropdownWithActiveElement(h);break;case"ArrowDown":t.preventDefault();h=!!this.selectedOptions.length?this.getDefaultActiveIndex():this.getNextVisibleIndex(1);if(h===-1)break;this.openDropdownWithActiveElement(h);break;case"Home":t.preventDefault();this.openDropdownWithActiveElement(0);break;case"End":t.preventDefault();this.openDropdownWithActiveElement(i.length-1);break;case"PageUp":t.preventDefault();this.openDropdownWithActiveElement(Math.max((e||0)-10,0));break;case"PageDown":t.preventDefault();this.openDropdownWithActiveElement(Math.min((e||0)+10,i.length-1));break;case"Tab":this.popoverState.emit({open:false,action:"close"});break;case"Esc":case"Escape":if(this.noSelect)this.setActiveElement(null);this.popoverState.emit({open:false,action:"close"});break;default:if(s)break;if(!n.match(/^[\w]$/))break;this.searchOptions(n,true);break}};this.focusoutHandler=t=>{const{relatedTarget:e}=t;const s=this.allOptions.includes(e);const i=!s&&this.hostElement.contains(e);if(s||i){t.stopPropagation()}};this.internalKeydownHandler=t=>{t.stopPropagation();const{activeIndex:e,customSearch:s,allOptions:i,allVisibleOptions:n,multiple:o}=this;const{key:h,shiftKey:a}=t;let c;switch(h){case" ":if(this.searchString&&!this.multiple){if(s)break;this.searchOptions(h,false);break}t.preventDefault();c=i.find((t=>t.active));if(!c||c.disabled)break;this.selectOption(c);if(o)break;this.popoverState.emit({open:false,action:"select"});break;case"Enter":t.preventDefault();c=i.find((t=>t.active));if(!c||c.disabled)break;this.selectOption(c);if(o)break;this.popoverState.emit({open:false,action:"select"});break;case"ArrowUp":t.preventDefault();const r=n[0].active;if(r)break;if(e===undefined){this.setDefaultActiveElement();break}else{const t=this.getNextVisibleIndex(-1);if(t===-1)break;this.adjustActiveOptionAndScroll(t-e);break}case"ArrowDown":t.preventDefault();const l=n[n.length-1].active;if(l)break;if(e===undefined){this.setDefaultActiveElement();break}else{const t=this.getNextVisibleIndex(1);if(t===-1)break;this.adjustActiveOptionAndScroll(t-e);break}case"Home":t.preventDefault();this.openDropdownWithActiveElement(0);break;case"End":t.preventDefault();this.openDropdownWithActiveElement(i.length-1);break;case"PageUp":t.preventDefault();this.openDropdownWithActiveElement(Math.max(e-10,0));break;case"PageDown":t.preventDefault();this.openDropdownWithActiveElement(Math.min(e+10,i.length-1));break;case"Tab":if(a)break;if(this.multiple&&this.type==="listbox")break;if(this.type==="menu"){this.popoverState.emit({open:false,action:"close"});break}c=i.find((t=>t.active));if(!c||c.disabled)return;this.selectOption(c);break;case"Esc":case"Escape":if(this.noSelect)this.setActiveElement(null);this.popoverState.emit({open:false,action:"close"});break;default:if(s)break;if(!h.match(/^[\w]$/))break;this.searchOptions(h,false);break}};this.searchAndFocus=(t,e)=>{const s=()=>{this.pivotIndex=this.pivotIndex===undefined?0:(this.activeIndex||0)+1;const t=this.allOptions.map(((t,e)=>({element:t,index:e})));return[...t.slice(this.pivotIndex),...t.slice(0,this.pivotIndex)]};const i=()=>{const e=new Date;if(e.getTime()-this.keyStore.lastPressedAt.getTime()>1e3){this.keyStore.queue.length=0}if(this.keyStore.queue.length!==1||this.keyStore.queue[0]!==t){this.keyStore.queue.push(t)}this.keyStore.lastPressedAt=e};const n=t=>{const e=this.keyStore.queue.join("");const s=f(e);return t.find((t=>!t.element.disabled&&t.element.display&&(t.element.display.match(new RegExp(`^${s}`,"i"))||t.element.display.replace(/\s/g,"").match(new RegExp(`^${s}`,"i")))))};const o=({index:t})=>{if(this.multiple){this.openDropdownWithActiveElement(t)}else{this.activeIndex=t;if(e){this.selectOption(this.allOptions[t]);this.popoverState.emit({open:false,action:"select"})}else this.setActiveElement(t)}};i();const h=n(s());if(h){o(h)}};this.hasOptions=undefined;this.align=undefined;this.customSearch=undefined;this.disabled=undefined;this.label=h("tecton.element.optionList.label");this.multiple=undefined;this.noSelect=undefined;this.selectedOptions=[];this.showSelected=undefined;this.type="listbox"}componentWillLoad(){this.hasOptions=!!this.hostElement.querySelectorAll("q2-option").length}componentDidLoad(){a(this.hostElement);this.checkOptions();this.selectedOptionsUpdated();this.ready.emit()}componentDidRender(){this.scheduledAfterRender.forEach((t=>t()));this.scheduledAfterRender=[]}handleClick(t){t.stopPropagation()}delegateFocus(t){if(!c(t,this.hostElement))return;this.popoverState.emit({open:true,action:"open"});const{activeIndex:e}=this;if(typeof e==="number"&&e>-1){this.setActiveOption();this.setFocusedOption()}else{this.setDefaultActiveElement()}}async getContents(){return this.allContents}async getOptions(){return this.allOptions}async handleExternalKeydown(t){this.externalKeydownHandler(t)}async setActiveElement(t){this.activeIndex=t;this.setActiveOption();this.setFocusedOption()}async setDefaultActiveElement(){this.activeIndex=this.getDefaultActiveIndex();this.setActiveOption();this.setFocusedOption()}selectedOptionsUpdated(){if(this.multiple){this.updateMultipleOptionAttrs()}else{this.updateSingleOptionAttrs()}}showSelectedUpdated(t){if(t&&this.selectedOptions.length===0){this.showSelected=false;return}this.allOptions.forEach((e=>e._multiSelectHidden=t?!e.selected:false))}get allContents(){const t=this.getRootSlot(this.hostElement);const e=["Q2-OPTGROUP","Q2-OPTION"];return t.filter((t=>e.includes(t.tagName)))}get allOptions(){const t=this.allContents;const e=t=>t.reduce(((t,s)=>{if(s.tagName==="Q2-OPTGROUP"){return[...t,...e(Array.from(s.children))]}else if(s.tagName==="Q2-OPTION"){return[...t,s]}else{return t}}),[]);return e(t)}get allVisibleOptions(){return this.allOptions.filter((t=>!t.hidden&&!t._multiSelectHidden&&!t.disabled&&!t.disabledGroup))}adjustActiveOptionAndScroll(t){this.activeIndex+=t;this.setActiveOption();this.setFocusedOption();this.scrollToActiveOption()}async checkOptions(){const{type:t}=this;const e=await this.getOptions();if(!t)return;const s=t==="menu"?"menuitem":"option";e.forEach((t=>{t.role=s}))}focusSelectedSibling(t){const{allVisibleOptions:e,allOptions:s}=this;const i=e.length<2;if(i){this.showSelected=false;return}const n=e.indexOf(t);const o=n?n-1:n+1;const h=e[o];const a=s.indexOf(h);this.activeIndex=a;this.setFocusedOption();this.scheduledAfterRender.push((()=>{t._multiSelectHidden=!t.selected}))}getDefaultActiveIndex(){const{allOptions:t}=this;const e=t.findIndex((t=>t.selected));if(e>-1)return e;const s=t.findIndex((t=>!t.hidden));if(s>-1)return s;return 0}getNextVisibleIndex(t){const{allVisibleOptions:e,allOptions:s,activeIndex:i}=this;const n=s[i];const o=e.indexOf(n);let h=o+t;if(h<0){h=e.length-1}else if(h>e.length-1){h=0}const a=e[h];return s.indexOf(a)}getRootSlot(t){var e;const s=t.querySelector("slot");const i=(e=s===null||s===void 0?void 0:s.assignedElements())!==null&&e!==void 0?e:Array.from(t.children);const n=!!i.length&&i[0].tagName==="SLOT";if(n){return this.getRootSlot(i[0])}else{return i}}async openDropdownWithActiveElement(t){if(this.disabled)return;this.popoverState.emit({open:true,action:"open"});await r();this.activeIndex=t;this.setActiveOption();this.setFocusedOption();this.scrollToActiveOption()}resetTimer(){if(this.searchStringTimer){clearTimeout(this.searchStringTimer)}this.searchStringTimer=window.setTimeout((()=>{this.searchString=null}),2e3)}scrollToActiveOption(){const t=this.allOptions[this.activeIndex];t===null||t===void 0?void 0:t.scrollIntoView({block:"center"})}searchOptions(t,e){this.searchString=t;this.searchAndFocus(t,e)}selectOption(t){const{multiple:e,noSelect:s,showSelected:i}=this;if(!t||t.disabled||t.disabledGroup)return;const n=t.value;const o={value:n,display:t.display||t.innerText.trim()};let h=[];if(e){const{selectedOptions:e}=this;const s=e.find((t=>t.value===n));if(s){h=e.filter((({value:t})=>t!==n))}else{h=[...e,o]}if(i)this.focusSelectedSibling(t)}else{h=[o]}if(s)this.setActiveElement(null);else this.selectedOptions=h;this.change.emit({value:n,values:h})}setActiveOption(){const t=this.activeIndex;this.allOptions.forEach(((e,s)=>{e.active=t===s}))}setFocusedOption(){const t=this.allOptions[this.activeIndex];if(!t)return;const e=l(t);if(e)t.focus();else o((()=>t.focus()))}updateMultipleOptionAttrs(){const{allOptions:t,selectedOptions:e}=this;const s=e.map((({value:t})=>t));t.forEach((t=>{t.selected=s.includes(t.value)}))}updateSingleOptionAttrs(){var t;const{allOptions:e,selectedOptions:s}=this;const i=((t=s[0])===null||t===void 0?void 0:t.value)||undefined;e.forEach((t=>{t.selected=t.value===i}))}render(){return s(i,{key:"221e3d11f55902cd286a6f69cb1c30ce4cc3cb1c"},s("div",{key:"5e08ad2fd5a1a773976285ad16f2e2ef6e2161be",class:"content",ref:t=>this.contentElement=t,onFocusout:this.focusoutHandler},s("div",{key:"537330008c139176aaa19ba997579e61f841fffb",class:"options","aria-label":h("tecton.element.optionList.label",[this.label]),"aria-multiselectable":`${!!this.multiple}`,role:this.type||"listbox",onKeyDown:this.internalKeydownHandler,onClick:this.clickHandler},s("slot",{key:"9204233743b02ead43bbe4f9329973059af24414"}))))}get hostElement(){return n(this)}static get watchers(){return{selectedOptions:["selectedOptionsUpdated"],showSelected:["showSelectedUpdated"]}}};u.style=p;export{u as q2_option_list};
2
+ //# sourceMappingURL=p-cfcec7f4.entry.js.map