@ptcwebops/ptcw-design 6.2.21 → 6.2.22-beta

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 (516) hide show
  1. package/dist/cjs/blog-detail-content_2.cjs.entry.js +1 -1
  2. package/dist/cjs/blog-detail-layout.cjs.entry.js +1 -1
  3. package/dist/cjs/blogs-search-section.cjs.entry.js +1 -1
  4. package/dist/cjs/{component-06dda623.js → component-4dd13907.js} +2643 -832
  5. package/dist/cjs/event-jumbotron-example.cjs.entry.js +146 -0
  6. package/dist/cjs/event-podcast-slider-example.cjs.entry.js +7 -13
  7. package/dist/cjs/featured-list.cjs.entry.js +1 -1
  8. package/dist/cjs/homepage-jumbotron.cjs.entry.js +1 -1
  9. package/dist/cjs/homepage-toggled-content.cjs.entry.js +1 -1
  10. package/dist/cjs/icon-asset_18.cjs.entry.js +1501 -0
  11. package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/modal-form-example.cjs.entry.js +94 -0
  14. package/dist/cjs/most-popular-news.cjs.entry.js +1 -1
  15. package/dist/cjs/my-component.cjs.entry.js +1 -1
  16. package/dist/cjs/ptc-accordion-item.cjs.entry.js +1 -1
  17. package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
  18. package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +155 -0
  19. package/dist/cjs/ptc-card-content.cjs.entry.js +76 -0
  20. package/dist/cjs/ptc-card_2.cjs.entry.js +3 -8
  21. package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
  22. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +239 -0
  23. package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
  24. package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -2
  25. package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
  26. package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
  27. package/dist/cjs/ptc-footer.cjs.entry.js +1 -1
  28. package/dist/cjs/{ptc-form-checkbox_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +787 -5
  29. package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +1 -1
  30. package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +1 -1
  31. package/dist/cjs/ptc-icon-card.cjs.entry.js +8 -2
  32. package/dist/cjs/ptc-icon-component.cjs.entry.js +2 -39
  33. package/dist/cjs/ptc-icon-minimize.cjs.entry.js +3 -50
  34. package/dist/cjs/ptc-link.cjs.entry.js +87 -0
  35. package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
  36. package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
  37. package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -2
  38. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
  39. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +2 -2
  40. package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
  41. package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
  42. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
  43. package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
  44. package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
  45. package/dist/cjs/ptc-scroll-button.cjs.entry.js +136 -0
  46. package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +7 -2
  47. package/dist/cjs/ptc-sticky-title.cjs.entry.js +2 -2
  48. package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
  49. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
  50. package/dist/cjs/ptc-white-paper.cjs.entry.js +2 -2
  51. package/dist/cjs/ptcw-design.cjs.js +1 -1
  52. package/dist/cjs/{utils-87d7b99f.js → utils-ad441b07.js} +9 -0
  53. package/dist/collection/collection-manifest.json +1 -0
  54. package/dist/collection/components/icon-asset/icon-asset.css +0 -6
  55. package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +30 -2
  56. package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +20 -12
  57. package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +20 -9
  58. package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +3 -25
  59. package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +1 -3
  60. package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.css +71 -23
  61. package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.js +30 -12
  62. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +26 -0
  63. package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +99 -0
  64. package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +20 -12
  65. package/dist/collection/components/ptc-button/ptc-button.js +4 -1
  66. package/dist/collection/components/ptc-card/ptc-card.css +0 -1
  67. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +0 -2
  68. package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +1 -20
  69. package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +20 -12
  70. package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +20 -12
  71. package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +20 -12
  72. package/dist/collection/components/ptc-footer/ptc-footer-v2.css +14 -1
  73. package/dist/collection/components/ptc-icon-card/ptc-icon-card.css +10 -0
  74. package/dist/collection/components/ptc-icon-card/ptc-icon-card.js +25 -1
  75. package/dist/collection/components/ptc-icon-component/ptc-icon-component.css +0 -12
  76. package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +1 -38
  77. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +0 -8
  78. package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +2 -67
  79. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +32 -12
  80. package/dist/collection/components/ptc-link/ptc-link.css +8 -0
  81. package/dist/collection/components/ptc-link/ptc-link.js +4 -1
  82. package/dist/collection/components/ptc-modal/ptc-modal.css +6 -13
  83. package/dist/collection/components/ptc-modal/ptc-modal.js +19 -2
  84. package/dist/collection/components/ptc-para/ptc-para.css +3 -0
  85. package/dist/collection/components/ptc-para/ptc-para.js +2 -2
  86. package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +20 -12
  87. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +26 -116
  88. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +1 -6
  89. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +16 -0
  90. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +27 -1
  91. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +12 -0
  92. package/dist/collection/components/ptc-product-card/ptc-product-card.css +20 -12
  93. package/dist/collection/components/ptc-product-category/ptc-product-category.css +20 -12
  94. package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +20 -12
  95. package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +20 -12
  96. package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +20 -12
  97. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.css +10 -0
  98. package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.js +24 -1
  99. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +2 -2
  100. package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +20 -12
  101. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +20 -12
  102. package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +20 -12
  103. package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +1 -1
  104. package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.css +6 -0
  105. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.css +8 -0
  106. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +3 -0
  107. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.css +7 -0
  108. package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +9 -1
  109. package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +45 -0
  110. package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +47 -0
  111. package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +157 -0
  112. package/dist/collection/utils/utils.js +8 -0
  113. package/dist/custom-elements/index.d.ts +6 -0
  114. package/dist/custom-elements/index.js +210 -159
  115. package/dist/esm/academic-form-test.entry.js +1 -1
  116. package/dist/esm/author-listing-example.entry.js +1 -1
  117. package/dist/esm/blog-detail-content_2.entry.js +2 -2
  118. package/dist/esm/blog-detail-layout.entry.js +2 -2
  119. package/dist/esm/blogs-search-section.entry.js +2 -2
  120. package/dist/esm/bundle-example.entry.js +1 -1
  121. package/dist/esm/bundle-jumbotron-example.entry.js +1 -1
  122. package/dist/esm/{component-274da230.js → component-9c921cc6.js} +2592 -793
  123. package/dist/esm/dropdown-item.entry.js +1 -1
  124. package/dist/esm/dynamic-box-bundle.entry.js +1 -1
  125. package/dist/esm/embedded-form.entry.js +1 -1
  126. package/dist/esm/event-jumbotron-example.entry.js +142 -0
  127. package/dist/esm/event-podcast-slider-example.entry.js +8 -14
  128. package/dist/esm/featured-events-slider-example.entry.js +1 -1
  129. package/dist/esm/featured-list.entry.js +2 -2
  130. package/dist/esm/fl-tab-content_3.entry.js +1 -1
  131. package/dist/esm/footer-form.entry.js +1 -1
  132. package/dist/esm/homepage-clickable-tab.entry.js +1 -1
  133. package/dist/esm/homepage-jumbotron.entry.js +2 -2
  134. package/dist/esm/homepage-toggled-content.entry.js +2 -2
  135. package/dist/esm/icon-asset_18.entry.js +1480 -0
  136. package/dist/esm/{index-c83db688.js → index-0bf594c4.js} +1 -1
  137. package/dist/esm/innovator-toggle-container.entry.js +2 -2
  138. package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
  139. package/dist/esm/jumbotron-sub-mune.entry.js +1 -1
  140. package/dist/esm/loader.js +3 -3
  141. package/dist/esm/modal-form-example.entry.js +90 -0
  142. package/dist/esm/most-popular-news.entry.js +2 -2
  143. package/dist/esm/my-component.entry.js +2 -2
  144. package/dist/esm/news-search-result.entry.js +1 -1
  145. package/dist/esm/ptc-accordion-item.entry.js +2 -2
  146. package/dist/esm/ptc-accordion.entry.js +1 -1
  147. package/dist/esm/ptc-announcement.entry.js +1 -1
  148. package/dist/esm/ptc-back-to-top.entry.js +1 -1
  149. package/dist/esm/ptc-badge.entry.js +1 -1
  150. package/dist/esm/ptc-bio-card.entry.js +2 -2
  151. package/dist/esm/ptc-brightcov-video.entry.js +1 -1
  152. package/dist/esm/ptc-card-bottom_2.entry.js +150 -0
  153. package/dist/esm/ptc-card-content.entry.js +72 -0
  154. package/dist/esm/ptc-card_2.entry.js +4 -9
  155. package/dist/esm/ptc-case-studies-slider.entry.js +2 -2
  156. package/dist/esm/ptc-checkbox-group.entry.js +1 -1
  157. package/dist/esm/ptc-checkbox.entry.js +1 -1
  158. package/dist/esm/ptc-close-icon_2.entry.js +234 -0
  159. package/dist/esm/ptc-collapse-list.entry.js +2 -2
  160. package/dist/esm/ptc-container.entry.js +1 -1
  161. package/dist/esm/ptc-countdown.entry.js +1 -1
  162. package/dist/esm/ptc-data-lookup.entry.js +2 -3
  163. package/dist/esm/ptc-date.entry.js +1 -1
  164. package/dist/esm/ptc-dropdown.entry.js +1 -1
  165. package/dist/esm/ptc-dynamic-card.entry.js +1 -1
  166. package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
  167. package/dist/esm/ptc-embedded-quiz.entry.js +1 -1
  168. package/dist/esm/ptc-featured-list.entry.js +2 -2
  169. package/dist/esm/ptc-filter-dropdown_4.entry.js +1 -1
  170. package/dist/esm/ptc-filter-level-theater.entry.js +2 -2
  171. package/dist/esm/ptc-filter-tag_2.entry.js +1 -1
  172. package/dist/esm/ptc-footer.entry.js +2 -2
  173. package/dist/esm/{ptc-form-checkbox_2.entry.js → ptc-form-checkbox_4.entry.js} +785 -5
  174. package/dist/esm/ptc-form-radio-button.entry.js +1 -1
  175. package/dist/esm/ptc-form-radio-group.entry.js +1 -1
  176. package/dist/esm/ptc-form.entry.js +1 -1
  177. package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
  178. package/dist/esm/ptc-hero.entry.js +1 -1
  179. package/dist/esm/ptc-homepage-image-feature.entry.js +2 -2
  180. package/dist/esm/ptc-homepage-video-background.entry.js +2 -2
  181. package/dist/esm/ptc-icon-card.entry.js +9 -3
  182. package/dist/esm/ptc-icon-component.entry.js +3 -40
  183. package/dist/esm/ptc-icon-list.entry.js +1 -1
  184. package/dist/esm/ptc-icon-minimize.entry.js +4 -51
  185. package/dist/esm/ptc-image-download-strip.entry.js +1 -1
  186. package/dist/esm/ptc-info-tile.entry.js +1 -1
  187. package/dist/esm/ptc-inline-cta.entry.js +1 -1
  188. package/dist/esm/ptc-link.entry.js +83 -0
  189. package/dist/esm/ptc-list.entry.js +1 -1
  190. package/dist/esm/ptc-media-card.entry.js +2 -2
  191. package/dist/esm/ptc-minimized-nav.entry.js +1 -1
  192. package/dist/esm/ptc-mobile-select.entry.js +1 -1
  193. package/dist/esm/ptc-modal-quiz.entry.js +1 -1
  194. package/dist/esm/ptc-nav-card.entry.js +1 -1
  195. package/dist/esm/ptc-nav-pills.entry.js +1 -1
  196. package/dist/esm/ptc-nav-skip-to-content.entry.js +1 -1
  197. package/dist/esm/ptc-nav-tile.entry.js +1 -1
  198. package/dist/esm/ptc-news.entry.js +1 -1
  199. package/dist/esm/ptc-office-location-card.entry.js +1 -1
  200. package/dist/esm/ptc-office-locations.entry.js +1 -1
  201. package/dist/esm/ptc-overlay.entry.js +1 -1
  202. package/dist/esm/ptc-podcast-card.entry.js +2 -2
  203. package/dist/esm/ptc-preferance-center-form.entry.js +1 -1
  204. package/dist/esm/ptc-previous-url.entry.js +11 -3
  205. package/dist/esm/ptc-pricing-add-on-card.entry.js +1 -1
  206. package/dist/esm/ptc-pricing-add-on-section.entry.js +1 -1
  207. package/dist/esm/ptc-pricing-block.entry.js +1 -1
  208. package/dist/esm/ptc-pricing-packaging-table.entry.js +2 -2
  209. package/dist/esm/ptc-pricing-tabs.entry.js +3 -3
  210. package/dist/esm/ptc-product-card.entry.js +2 -2
  211. package/dist/esm/ptc-product-category.entry.js +2 -2
  212. package/dist/esm/ptc-product-dropdown.entry.js +1 -1
  213. package/dist/esm/ptc-product-highlight-card.entry.js +2 -2
  214. package/dist/esm/ptc-product-list.entry.js +1 -1
  215. package/dist/esm/ptc-product-sidebar.entry.js +1 -1
  216. package/dist/esm/ptc-progress-bar.entry.js +1 -1
  217. package/dist/esm/ptc-quantity-counter.entry.js +1 -1
  218. package/dist/esm/ptc-quote.entry.js +1 -1
  219. package/dist/esm/ptc-readmore-char.entry.js +2 -2
  220. package/dist/esm/ptc-readmore-new.entry.js +1 -1
  221. package/dist/esm/ptc-readmore-v3.entry.js +2 -2
  222. package/dist/esm/ptc-readmore.entry.js +1 -1
  223. package/dist/esm/ptc-related-card-rail.entry.js +1 -1
  224. package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
  225. package/dist/esm/ptc-scroll-button.entry.js +132 -0
  226. package/dist/esm/ptc-search-field.entry.js +1 -1
  227. package/dist/esm/ptc-seo-title.entry.js +1 -1
  228. package/dist/esm/ptc-shopping-cart.entry.js +1 -1
  229. package/dist/esm/ptc-showcase-card.entry.js +1 -1
  230. package/dist/esm/ptc-skeleton.entry.js +1 -1
  231. package/dist/esm/ptc-slit-card.entry.js +1 -1
  232. package/dist/esm/ptc-social-icons-footer.entry.js +8 -3
  233. package/dist/esm/ptc-social-icons.entry.js +1 -1
  234. package/dist/esm/ptc-span.entry.js +1 -1
  235. package/dist/esm/ptc-square-card.entry.js +1 -1
  236. package/dist/esm/ptc-sticky-icons.entry.js +1 -1
  237. package/dist/esm/ptc-sticky-title.entry.js +3 -3
  238. package/dist/esm/ptc-subnav-card.entry.js +1 -1
  239. package/dist/esm/ptc-svg-btn.entry.js +1 -1
  240. package/dist/esm/ptc-tab-list.entry.js +1 -1
  241. package/dist/esm/ptc-tab.entry.js +1 -1
  242. package/dist/esm/ptc-tabs.entry.js +1 -1
  243. package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
  244. package/dist/esm/ptc-theater-video-modal.entry.js +1 -1
  245. package/dist/esm/ptc-tooltip-v2.entry.js +2 -2
  246. package/dist/esm/ptc-tooltip-v3.entry.js +1 -1
  247. package/dist/esm/ptc-two-column-media.entry.js +1 -1
  248. package/dist/esm/ptc-value-led-card.entry.js +1 -1
  249. package/dist/esm/ptc-value-led-content-highlight.entry.js +1 -1
  250. package/dist/esm/ptc-value-led-content.entry.js +1 -1
  251. package/dist/esm/ptc-value-led-intro.entry.js +1 -1
  252. package/dist/esm/ptc-value-led-layout.entry.js +1 -1
  253. package/dist/esm/ptc-value-led-speed-bump.entry.js +2 -2
  254. package/dist/esm/ptc-value-prop-card.entry.js +1 -1
  255. package/dist/esm/ptc-video-embed.entry.js +1 -1
  256. package/dist/esm/ptc-white-paper.entry.js +3 -3
  257. package/dist/esm/ptcw-design.js +3 -3
  258. package/dist/esm/sequential-bundle-example.entry.js +1 -1
  259. package/dist/esm/sequential-bundle.entry.js +1 -1
  260. package/dist/esm/tab-content.entry.js +1 -1
  261. package/dist/esm/tab-header.entry.js +1 -1
  262. package/dist/esm/{utils-b7c6422e.js → utils-ff65c75b.js} +9 -1
  263. package/dist/ptcw-design/media/designer-v6.0.6.svg +30 -2
  264. package/dist/ptcw-design/p-01ad1cc2.entry.js +68 -0
  265. package/dist/ptcw-design/{p-03a917f8.entry.js → p-02f0460b.entry.js} +1 -1
  266. package/dist/ptcw-design/p-051ba8f9.entry.js +1 -0
  267. package/dist/ptcw-design/{p-9e2fd13c.entry.js → p-0a558a22.entry.js} +1 -1
  268. package/dist/ptcw-design/{p-9ac99185.entry.js → p-0abb6e77.entry.js} +1 -1
  269. package/dist/ptcw-design/{p-71360e29.entry.js → p-0b182300.entry.js} +1 -1
  270. package/dist/ptcw-design/{p-34b270c1.entry.js → p-0c862dbd.entry.js} +1 -1
  271. package/dist/ptcw-design/p-0eb9ea11.entry.js +1 -0
  272. package/dist/ptcw-design/{p-fb8584e4.entry.js → p-0ed4609e.entry.js} +1 -1
  273. package/dist/ptcw-design/p-11eb4dd1.entry.js +1 -0
  274. package/dist/ptcw-design/{p-c0bb1ad0.entry.js → p-13131b4d.entry.js} +1 -1
  275. package/dist/ptcw-design/{p-2657df50.entry.js → p-132f71c3.entry.js} +1 -1
  276. package/dist/ptcw-design/{p-99b45d23.entry.js → p-139ca5d2.entry.js} +1 -1
  277. package/dist/ptcw-design/{p-27e47c25.entry.js → p-14c77b5e.entry.js} +1 -1
  278. package/dist/ptcw-design/{p-7d29a418.entry.js → p-183ba1ca.entry.js} +1 -1
  279. package/dist/ptcw-design/{p-85f32bf5.entry.js → p-1ab6201b.entry.js} +1 -1
  280. package/dist/ptcw-design/{p-464d8e22.entry.js → p-1d48bad3.entry.js} +1 -1
  281. package/dist/ptcw-design/{p-46f67bec.entry.js → p-1e9f25fc.entry.js} +1 -1
  282. package/dist/ptcw-design/{p-6b32020a.entry.js → p-1ec32cbc.entry.js} +1 -1
  283. package/dist/ptcw-design/{p-c1ebaf0f.entry.js → p-20388467.entry.js} +1 -1
  284. package/dist/ptcw-design/p-20670bc5.entry.js +1 -0
  285. package/dist/ptcw-design/p-208ca9de.entry.js +1 -0
  286. package/dist/ptcw-design/{p-bf8fbba7.entry.js → p-208ec7f3.entry.js} +1 -1
  287. package/dist/ptcw-design/p-20d837a9.entry.js +1 -0
  288. package/dist/ptcw-design/p-20d84f63.entry.js +1 -0
  289. package/dist/ptcw-design/p-212cdacd.entry.js +1 -0
  290. package/dist/ptcw-design/{p-8c49d736.entry.js → p-212d0145.entry.js} +1 -1
  291. package/dist/ptcw-design/p-286e048c.entry.js +1 -0
  292. package/dist/ptcw-design/{p-9b26ea67.entry.js → p-290012e3.entry.js} +1 -1
  293. package/dist/ptcw-design/{p-9b0df204.entry.js → p-298d02ab.entry.js} +1 -1
  294. package/dist/ptcw-design/p-29ae44dd.entry.js +1 -0
  295. package/dist/ptcw-design/{p-52b82ac5.entry.js → p-2a255901.entry.js} +1 -1
  296. package/dist/ptcw-design/{p-e90fbbad.entry.js → p-2a3735a5.entry.js} +1 -1
  297. package/dist/ptcw-design/p-2d0a9613.entry.js +1 -0
  298. package/dist/ptcw-design/p-2ee3a32b.entry.js +1 -0
  299. package/dist/ptcw-design/{p-21fa5abe.entry.js → p-2fd01953.entry.js} +1 -1
  300. package/dist/ptcw-design/p-330e1a36.entry.js +1 -0
  301. package/dist/ptcw-design/p-36c42aae.entry.js +1 -0
  302. package/dist/ptcw-design/p-3717a6e1.entry.js +1 -0
  303. package/dist/ptcw-design/{p-dc8c0a06.entry.js → p-37899461.entry.js} +1 -1
  304. package/dist/ptcw-design/{p-6e8ed2ee.entry.js → p-379fcc72.entry.js} +1 -1
  305. package/dist/ptcw-design/p-39ec04d4.entry.js +1 -0
  306. package/dist/ptcw-design/p-3a7c5330.entry.js +1 -0
  307. package/dist/ptcw-design/p-3ada2482.entry.js +1 -0
  308. package/dist/ptcw-design/{p-867a808f.entry.js → p-3b6c2a79.entry.js} +1 -1
  309. package/dist/ptcw-design/{p-f61a3476.entry.js → p-3b967df1.entry.js} +1 -1
  310. package/dist/ptcw-design/{p-8533988f.entry.js → p-3c52fabe.entry.js} +1 -1
  311. package/dist/ptcw-design/{p-58e91cb8.entry.js → p-3c72e82d.entry.js} +1 -1
  312. package/dist/ptcw-design/{p-76d98c5a.entry.js → p-3e13b735.entry.js} +1 -1
  313. package/dist/ptcw-design/{p-fe907670.entry.js → p-4335d7f3.entry.js} +1 -1
  314. package/dist/ptcw-design/{p-c6a0dd99.entry.js → p-43756439.entry.js} +1 -1
  315. package/dist/ptcw-design/{p-ee534211.entry.js → p-4b23b4c3.entry.js} +1 -1
  316. package/dist/ptcw-design/p-4e41c031.entry.js +1 -0
  317. package/dist/ptcw-design/p-4e8c87e1.entry.js +1 -0
  318. package/dist/ptcw-design/p-53d88f2b.entry.js +1 -0
  319. package/dist/ptcw-design/{p-2c2f895a.entry.js → p-54891548.entry.js} +1 -1
  320. package/dist/ptcw-design/p-5ae21271.entry.js +1 -0
  321. package/dist/ptcw-design/{p-f731fc96.entry.js → p-5da98805.entry.js} +1 -1
  322. package/dist/ptcw-design/{p-61d28206.entry.js → p-5fb671ee.entry.js} +1 -1
  323. package/dist/ptcw-design/{p-c631608f.entry.js → p-61a5012d.entry.js} +1 -1
  324. package/dist/ptcw-design/p-640d07b5.entry.js +1 -0
  325. package/dist/ptcw-design/p-66d50b46.entry.js +1 -0
  326. package/dist/ptcw-design/p-6a79e68e.entry.js +1 -0
  327. package/dist/ptcw-design/p-6af8c192.entry.js +1 -0
  328. package/dist/ptcw-design/{p-9de963f8.entry.js → p-6d628113.entry.js} +1 -1
  329. package/dist/ptcw-design/{p-f4699d4e.entry.js → p-70a5f144.entry.js} +1 -1
  330. package/dist/ptcw-design/p-72681e91.entry.js +1 -0
  331. package/dist/ptcw-design/p-73a41148.entry.js +1 -0
  332. package/dist/ptcw-design/{p-04aae3f5.entry.js → p-74a845fd.entry.js} +1 -1
  333. package/dist/ptcw-design/{p-99ee8a0e.entry.js → p-761f71c4.entry.js} +1 -1
  334. package/dist/ptcw-design/{p-8038bf31.entry.js → p-779c3f21.entry.js} +1 -1
  335. package/dist/ptcw-design/{p-282b7d4e.entry.js → p-78252282.entry.js} +1 -1
  336. package/dist/ptcw-design/p-7853f1b5.entry.js +1 -0
  337. package/dist/ptcw-design/{p-081e969d.entry.js → p-7b75091d.entry.js} +1 -1
  338. package/dist/ptcw-design/{p-4b192f5e.entry.js → p-7e19be10.entry.js} +1 -1
  339. package/dist/ptcw-design/{p-3c3a7b54.entry.js → p-7edef9ed.entry.js} +1 -1
  340. package/dist/ptcw-design/{p-7cc9255e.entry.js → p-7fada7ae.entry.js} +1 -1
  341. package/dist/ptcw-design/{p-5980d65d.entry.js → p-807ad5c4.entry.js} +1 -1
  342. package/dist/ptcw-design/{p-931650bb.entry.js → p-80c56c81.entry.js} +1 -1
  343. package/dist/ptcw-design/{p-48815ee0.entry.js → p-88379d69.entry.js} +1 -1
  344. package/dist/ptcw-design/p-8872161f.js +1 -0
  345. package/dist/ptcw-design/{p-9a335b5b.entry.js → p-8eb36507.entry.js} +1 -1
  346. package/dist/ptcw-design/p-907727fd.entry.js +1 -0
  347. package/dist/ptcw-design/{p-ac75c7ad.js → p-944c5be8.js} +1 -1
  348. package/dist/ptcw-design/p-973b06d1.entry.js +1 -0
  349. package/dist/ptcw-design/p-98083315.entry.js +1 -0
  350. package/dist/ptcw-design/{p-40b8c884.entry.js → p-986be938.entry.js} +1 -1
  351. package/dist/ptcw-design/p-99e41dc4.entry.js +1 -0
  352. package/dist/ptcw-design/{p-bfacfe67.entry.js → p-9a28ded2.entry.js} +1 -1
  353. package/dist/ptcw-design/p-9ae901e2.entry.js +1 -0
  354. package/dist/ptcw-design/{p-e38ed0e3.entry.js → p-9b60270e.entry.js} +1 -1
  355. package/dist/ptcw-design/{p-5db7f70b.entry.js → p-9d32f1bc.entry.js} +1 -1
  356. package/dist/ptcw-design/{p-3ee2a531.entry.js → p-9dde477c.entry.js} +1 -1
  357. package/dist/ptcw-design/p-9e6fb4ba.entry.js +1 -0
  358. package/dist/ptcw-design/p-a220ab2c.entry.js +1 -0
  359. package/dist/ptcw-design/{p-257a68df.entry.js → p-a22d7ae8.entry.js} +1 -1
  360. package/dist/ptcw-design/{p-3872fce7.entry.js → p-a2710bbf.entry.js} +1 -1
  361. package/dist/ptcw-design/{p-29639cd4.entry.js → p-a560e839.entry.js} +1 -1
  362. package/dist/ptcw-design/{p-8191928d.entry.js → p-a974f98f.entry.js} +1 -1
  363. package/dist/ptcw-design/{p-d20cf3c5.entry.js → p-aaf8fb04.entry.js} +1 -1
  364. package/dist/ptcw-design/p-aba549b7.entry.js +1 -0
  365. package/dist/ptcw-design/p-abdd3b8e.entry.js +1 -0
  366. package/dist/ptcw-design/p-ac32267c.entry.js +1 -0
  367. package/dist/ptcw-design/{p-a25578e9.entry.js → p-ac78409e.entry.js} +1 -1
  368. package/dist/ptcw-design/{p-dc85c302.entry.js → p-afbe8e2c.entry.js} +1 -1
  369. package/dist/ptcw-design/{p-34610052.entry.js → p-b1c1de30.entry.js} +1 -1
  370. package/dist/ptcw-design/{p-aea09a70.entry.js → p-b293a0b1.entry.js} +1 -1
  371. package/dist/ptcw-design/{p-0e5932f0.entry.js → p-b3b63f67.entry.js} +1 -1
  372. package/dist/ptcw-design/{p-7e7ebf0a.entry.js → p-b4ba719a.entry.js} +1 -1
  373. package/dist/ptcw-design/p-b5d0e4a2.entry.js +1 -0
  374. package/dist/ptcw-design/p-bcab66bf.js +336 -0
  375. package/dist/ptcw-design/{p-a7cb3851.entry.js → p-be00fb74.entry.js} +1 -1
  376. package/dist/ptcw-design/{p-815848f6.entry.js → p-bf076b87.entry.js} +1 -1
  377. package/dist/ptcw-design/{p-89ba3dfd.entry.js → p-bf2f9183.entry.js} +1 -1
  378. package/dist/ptcw-design/{p-dbbe35bf.entry.js → p-bf439f9b.entry.js} +1 -1
  379. package/dist/ptcw-design/{p-38a56ed6.entry.js → p-c05e326f.entry.js} +1 -1
  380. package/dist/ptcw-design/{p-ffb0ff97.entry.js → p-c415ab42.entry.js} +1 -1
  381. package/dist/ptcw-design/{p-aac082cf.entry.js → p-c5417010.entry.js} +1 -1
  382. package/dist/ptcw-design/{p-97b9f41b.entry.js → p-c5886b7b.entry.js} +1 -1
  383. package/dist/ptcw-design/{p-b59f30d5.entry.js → p-c9518684.entry.js} +1 -1
  384. package/dist/ptcw-design/{p-04f0b1ba.entry.js → p-c9a73ad1.entry.js} +1 -1
  385. package/dist/ptcw-design/p-ca268a17.entry.js +1 -0
  386. package/dist/ptcw-design/{p-5946d7c9.entry.js → p-cab0274c.entry.js} +1 -1
  387. package/dist/ptcw-design/p-ce6d1c5f.entry.js +1 -0
  388. package/dist/ptcw-design/{p-1a6759a4.entry.js → p-d113403b.entry.js} +1 -1
  389. package/dist/ptcw-design/{p-e3bf092e.entry.js → p-d1f57070.entry.js} +1 -1
  390. package/dist/ptcw-design/{p-72825cf6.entry.js → p-d21cf742.entry.js} +1 -1
  391. package/dist/ptcw-design/{p-df8526a2.entry.js → p-d871e7f7.entry.js} +1 -1
  392. package/dist/ptcw-design/{p-a0bf3dd2.entry.js → p-dadbab48.entry.js} +1 -1
  393. package/dist/ptcw-design/{p-760507e1.entry.js → p-dbb4e7f9.entry.js} +1 -1
  394. package/dist/ptcw-design/{p-c5f42895.entry.js → p-dd38bf84.entry.js} +1 -1
  395. package/dist/ptcw-design/{p-d7275289.entry.js → p-e1242dd4.entry.js} +1 -1
  396. package/dist/ptcw-design/{p-a37c5209.entry.js → p-e2e33ddb.entry.js} +1 -1
  397. package/dist/ptcw-design/{p-fdee2cdc.entry.js → p-e6ebc832.entry.js} +1 -1
  398. package/dist/ptcw-design/{p-89177041.entry.js → p-e75dff95.entry.js} +1 -1
  399. package/dist/ptcw-design/p-e77d2204.entry.js +1 -0
  400. package/dist/ptcw-design/{p-c68d31c6.entry.js → p-e87a4ff8.entry.js} +1 -1
  401. package/dist/ptcw-design/{p-0a9ee6c2.entry.js → p-e8b51e7d.entry.js} +1 -1
  402. package/dist/ptcw-design/{p-7a1db471.entry.js → p-ecfc8211.entry.js} +1 -1
  403. package/dist/ptcw-design/{p-27a4ee73.entry.js → p-eef5d58b.entry.js} +1 -1
  404. package/dist/ptcw-design/{p-071a6109.entry.js → p-ef0079b0.entry.js} +1 -1
  405. package/dist/ptcw-design/p-ef55ab3c.entry.js +1 -0
  406. package/dist/ptcw-design/{p-da02913d.entry.js → p-f05be87f.entry.js} +1 -1
  407. package/dist/ptcw-design/{p-4f93c631.entry.js → p-f77c7c78.entry.js} +1 -1
  408. package/dist/ptcw-design/p-fb2e4612.entry.js +1 -0
  409. package/dist/ptcw-design/{p-4c096997.entry.js → p-fc0d9251.entry.js} +1 -1
  410. package/dist/ptcw-design/ptcw-design.css +2 -2
  411. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  412. package/dist/types/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.d.ts +1 -0
  413. package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +25 -0
  414. package/dist/types/components/ptc-button/ptc-button.d.ts +1 -0
  415. package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +0 -2
  416. package/dist/types/components/ptc-icon-card/ptc-icon-card.d.ts +6 -0
  417. package/dist/types/components/ptc-icon-component/ptc-icon-component.d.ts +0 -5
  418. package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +0 -2
  419. package/dist/types/components/ptc-link/ptc-link.d.ts +1 -0
  420. package/dist/types/components/ptc-modal/ptc-modal.d.ts +2 -1
  421. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  422. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +2 -0
  423. package/dist/types/components/ptc-social-icons-footer/ptc-social-icons-footer.d.ts +5 -0
  424. package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +1 -0
  425. package/dist/types/components.d.ts +37 -14
  426. package/dist/types/utils/utils.d.ts +1 -0
  427. package/package.json +1 -1
  428. package/readme.md +5 -1
  429. package/dist/cjs/component-5b5b6a98.js +0 -1819
  430. package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +0 -1374
  431. package/dist/cjs/interfaces-574e6df7.js +0 -15
  432. package/dist/cjs/max-width-container.cjs.entry.js +0 -54
  433. package/dist/cjs/ptc-background-video.cjs.entry.js +0 -102
  434. package/dist/cjs/ptc-card-bottom.cjs.entry.js +0 -67
  435. package/dist/cjs/ptc-jumbotron.cjs.entry.js +0 -151
  436. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -670
  437. package/dist/cjs/ptc-nav-link.cjs.entry.js +0 -48
  438. package/dist/cjs/ptc-nav-slider.cjs.entry.js +0 -106
  439. package/dist/cjs/ptc-nav-submenu.cjs.entry.js +0 -51
  440. package/dist/cjs/ptc-picture.cjs.entry.js +0 -163
  441. package/dist/cjs/ptc-sticky-section.cjs.entry.js +0 -70
  442. package/dist/cjs/ptc-subnav.cjs.entry.js +0 -37
  443. package/dist/cjs/ptc-tooltip.cjs.entry.js +0 -107
  444. package/dist/cjs/validation-messages-33a4f26b.js +0 -126
  445. package/dist/esm/component-341e4eaa.js +0 -1802
  446. package/dist/esm/event-jumbotron-example_15.entry.js +0 -1356
  447. package/dist/esm/interfaces-4caedd26.js +0 -12
  448. package/dist/esm/max-width-container.entry.js +0 -50
  449. package/dist/esm/ptc-background-video.entry.js +0 -98
  450. package/dist/esm/ptc-card-bottom.entry.js +0 -63
  451. package/dist/esm/ptc-jumbotron.entry.js +0 -147
  452. package/dist/esm/ptc-multi-select_2.entry.js +0 -665
  453. package/dist/esm/ptc-nav-link.entry.js +0 -44
  454. package/dist/esm/ptc-nav-slider.entry.js +0 -102
  455. package/dist/esm/ptc-nav-submenu.entry.js +0 -47
  456. package/dist/esm/ptc-picture.entry.js +0 -159
  457. package/dist/esm/ptc-sticky-section.entry.js +0 -66
  458. package/dist/esm/ptc-subnav.entry.js +0 -33
  459. package/dist/esm/ptc-tooltip.entry.js +0 -103
  460. package/dist/esm/validation-messages-adbb6518.js +0 -124
  461. package/dist/ptcw-design/p-00e21489.entry.js +0 -1
  462. package/dist/ptcw-design/p-0a214a22.entry.js +0 -1
  463. package/dist/ptcw-design/p-0cf5bc9e.entry.js +0 -1
  464. package/dist/ptcw-design/p-0ee01112.entry.js +0 -1
  465. package/dist/ptcw-design/p-103ec637.entry.js +0 -1
  466. package/dist/ptcw-design/p-12e61bb5.entry.js +0 -1
  467. package/dist/ptcw-design/p-17c3f01a.entry.js +0 -1
  468. package/dist/ptcw-design/p-18a5a338.js +0 -1
  469. package/dist/ptcw-design/p-18f59395.entry.js +0 -1
  470. package/dist/ptcw-design/p-1a0bf166.entry.js +0 -1
  471. package/dist/ptcw-design/p-1ca8a5bf.entry.js +0 -1
  472. package/dist/ptcw-design/p-2335d57c.entry.js +0 -1
  473. package/dist/ptcw-design/p-25178331.entry.js +0 -1
  474. package/dist/ptcw-design/p-260ecfef.entry.js +0 -1
  475. package/dist/ptcw-design/p-2f7ea1a6.entry.js +0 -1
  476. package/dist/ptcw-design/p-3738a01f.entry.js +0 -1
  477. package/dist/ptcw-design/p-398d2ca5.entry.js +0 -1
  478. package/dist/ptcw-design/p-426715a4.entry.js +0 -1
  479. package/dist/ptcw-design/p-4cee12b8.entry.js +0 -1
  480. package/dist/ptcw-design/p-4e2bb0e0.entry.js +0 -1
  481. package/dist/ptcw-design/p-58bb25e6.entry.js +0 -1
  482. package/dist/ptcw-design/p-5feaea80.entry.js +0 -1
  483. package/dist/ptcw-design/p-711bcdad.js +0 -1
  484. package/dist/ptcw-design/p-759f6457.entry.js +0 -1
  485. package/dist/ptcw-design/p-841b807d.js +0 -1
  486. package/dist/ptcw-design/p-863b5b20.entry.js +0 -68
  487. package/dist/ptcw-design/p-885b3428.entry.js +0 -1
  488. package/dist/ptcw-design/p-8c692bd6.entry.js +0 -1
  489. package/dist/ptcw-design/p-97eb1025.entry.js +0 -1
  490. package/dist/ptcw-design/p-999d1c9f.entry.js +0 -1
  491. package/dist/ptcw-design/p-99daf693.entry.js +0 -1
  492. package/dist/ptcw-design/p-9d3a7f36.entry.js +0 -1
  493. package/dist/ptcw-design/p-9fe0c27d.entry.js +0 -1
  494. package/dist/ptcw-design/p-a114198f.entry.js +0 -1
  495. package/dist/ptcw-design/p-a4f65d28.entry.js +0 -1
  496. package/dist/ptcw-design/p-a54c6da5.entry.js +0 -1
  497. package/dist/ptcw-design/p-a8f30586.entry.js +0 -1
  498. package/dist/ptcw-design/p-b436f56d.entry.js +0 -1
  499. package/dist/ptcw-design/p-b50f71dd.entry.js +0 -1
  500. package/dist/ptcw-design/p-be533f0d.js +0 -134
  501. package/dist/ptcw-design/p-c1513c3f.js +0 -203
  502. package/dist/ptcw-design/p-c89030e4.entry.js +0 -1
  503. package/dist/ptcw-design/p-cffebefe.entry.js +0 -1
  504. package/dist/ptcw-design/p-d1857ada.entry.js +0 -1
  505. package/dist/ptcw-design/p-d2cc0297.entry.js +0 -1
  506. package/dist/ptcw-design/p-dc54b2b0.entry.js +0 -1
  507. package/dist/ptcw-design/p-e4b034b9.entry.js +0 -1
  508. package/dist/ptcw-design/p-e7937ac1.entry.js +0 -1
  509. package/dist/ptcw-design/p-e89ce54f.entry.js +0 -1
  510. package/dist/ptcw-design/p-e9cb2483.entry.js +0 -1
  511. package/dist/ptcw-design/p-e9f12e0d.entry.js +0 -1
  512. package/dist/ptcw-design/p-eab1042e.entry.js +0 -1
  513. package/dist/ptcw-design/p-f05fec22.entry.js +0 -1
  514. package/dist/ptcw-design/p-f5c97ab2.entry.js +0 -1
  515. package/dist/ptcw-design/p-fd7e5935.entry.js +0 -1
  516. package/dist/ptcw-design/p-fd8f2c86.entry.js +0 -1
@@ -0,0 +1,336 @@
1
+ var t=function(n,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},t(n,i)};function n(n,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=n}t(n,i),n.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}var i=function(){return i=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},i.apply(this,arguments)};function e(t){var n="function"==typeof Symbol&&Symbol.iterator,i=n&&t[n],e=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(t,n){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var e,r,s=i.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(e=s.next()).done;)u.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return u}function s(t,n,i){if(i||2===arguments.length)for(var e,r=0,s=n.length;r<s;r++)!e&&r in n||(e||(e=Array.prototype.slice.call(n,0,r)),e[r]=n[r]);return t.concat(e||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;
2
+ /**
3
+ * @license
4
+ * Copyright 2016 Google Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ * THE SOFTWARE.
23
+ */
24
+ var u=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),o=function(){function t(t,n){for(var i=[],e=2;e<arguments.length;e++)i[e-2]=arguments[e];this.root=t,this.initialize.apply(this,s([],r(i))),this.foundation=void 0===n?this.getDefaultFoundation():n,this.foundation.init(),this.initialSyncWithDOM()}return t.attachTo=function(n){return new t(n,new u({}))},t.prototype.initialize=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n]},t.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},t.prototype.initialSyncWithDOM=function(){},t.prototype.destroy=function(){this.foundation.destroy()},t.prototype.listen=function(t,n,i){this.root.addEventListener(t,n,i)},t.prototype.unlisten=function(t,n,i){this.root.removeEventListener(t,n,i)},t.prototype.emit=function(t,n,i){var e;void 0===i&&(i=!1),"function"==typeof CustomEvent?e=new CustomEvent(t,{bubbles:i,detail:n}):(e=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,n),this.root.dispatchEvent(e)},t}();
25
+ /**
26
+ * @license
27
+ * Copyright 2016 Google Inc.
28
+ *
29
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
30
+ * of this software and associated documentation files (the "Software"), to deal
31
+ * in the Software without restriction, including without limitation the rights
32
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
33
+ * copies of the Software, and to permit persons to whom the Software is
34
+ * furnished to do so, subject to the following conditions:
35
+ *
36
+ * The above copyright notice and this permission notice shall be included in
37
+ * all copies or substantial portions of the Software.
38
+ *
39
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
42
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
44
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
45
+ * THE SOFTWARE.
46
+ */
47
+ /**
48
+ * @license
49
+ * Copyright 2018 Google Inc.
50
+ *
51
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
52
+ * of this software and associated documentation files (the "Software"), to deal
53
+ * in the Software without restriction, including without limitation the rights
54
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
55
+ * copies of the Software, and to permit persons to whom the Software is
56
+ * furnished to do so, subject to the following conditions:
57
+ *
58
+ * The above copyright notice and this permission notice shall be included in
59
+ * all copies or substantial portions of the Software.
60
+ *
61
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
63
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
64
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
65
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
66
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
67
+ * THE SOFTWARE.
68
+ */
69
+ function c(t,n){if(t.closest)return t.closest(n);for(var i=t;i;){if(h(i,n))return i;i=i.parentElement}return null}function h(t,n){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,n)}
70
+ /**
71
+ * @license
72
+ * Copyright 2016 Google Inc.
73
+ *
74
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
75
+ * of this software and associated documentation files (the "Software"), to deal
76
+ * in the Software without restriction, including without limitation the rights
77
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
78
+ * copies of the Software, and to permit persons to whom the Software is
79
+ * furnished to do so, subject to the following conditions:
80
+ *
81
+ * The above copyright notice and this permission notice shall be included in
82
+ * all copies or substantial portions of the Software.
83
+ *
84
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
85
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
86
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
87
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
88
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
89
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
90
+ * THE SOFTWARE.
91
+ */
92
+ var f,a,l,d,m={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},b=function(t){function e(n){var r=t.call(this,i(i({},e.defaultAdapter),n))||this;return r.shakeAnimationEndHandler=function(){r.handleShakeAnimationEnd()},r}return n(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.getWidth=function(){return this.adapter.getWidth()},e.prototype.shake=function(t){var n=e.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.float=function(t){var n=e.cssClasses,i=n.LABEL_FLOAT_ABOVE,r=n.LABEL_SHAKE;t?this.adapter.addClass(i):(this.adapter.removeClass(i),this.adapter.removeClass(r))},e.prototype.setRequired=function(t){var n=e.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.handleShakeAnimationEnd=function(){this.adapter.removeClass(e.cssClasses.LABEL_SHAKE)},e}(u),v=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.attachTo=function(t){return new i(t)},i.prototype.shake=function(t){this.foundation.shake(t)},i.prototype.float=function(t){this.foundation.float(t)},i.prototype.setRequired=function(t){this.foundation.setRequired(t)},i.prototype.getWidth=function(){return this.foundation.getWidth()},i.prototype.getDefaultFoundation=function(){var t=this;return new b({addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},getWidth:function(){return function(t){if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var i=n.scrollWidth;return document.documentElement.removeChild(n),i}(t.root)},registerInteractionHandler:function(n,i){return t.listen(n,i)},deregisterInteractionHandler:function(n,i){return t.unlisten(n,i)}})},i}(o),E={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},I=function(t){function e(n){var r=t.call(this,i(i({},e.defaultAdapter),n))||this;return r.transitionEndHandler=function(t){r.handleTransitionEnd(t)},r}return n(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return E},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},e.prototype.activate=function(){this.adapter.removeClass(E.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(E.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter.addClass(E.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var n=this.adapter.hasClass(E.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&n&&(this.adapter.removeClass(E.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(E.LINE_RIPPLE_DEACTIVATING))},e}(u),g=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.attachTo=function(t){return new i(t)},i.prototype.activate=function(){this.foundation.activate()},i.prototype.deactivate=function(){this.foundation.deactivate()},i.prototype.setRippleCenter=function(t){this.foundation.setRippleCenter(t)},i.prototype.getDefaultFoundation=function(){var t=this;return new I({addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},hasClass:function(n){return t.root.classList.contains(n)},setStyle:function(n,i){return t.root.style.setProperty(n,i)},registerEventHandler:function(n,i){return t.listen(n,i)},deregisterEventHandler:function(n,i){return t.unlisten(n,i)}})},i}(o),A={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},T={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},C={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};
93
+ /**
94
+ * @license
95
+ * Copyright 2016 Google Inc.
96
+ *
97
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
98
+ * of this software and associated documentation files (the "Software"), to deal
99
+ * in the Software without restriction, including without limitation the rights
100
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
101
+ * copies of the Software, and to permit persons to whom the Software is
102
+ * furnished to do so, subject to the following conditions:
103
+ *
104
+ * The above copyright notice and this permission notice shall be included in
105
+ * all copies or substantial portions of the Software.
106
+ *
107
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
108
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
109
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
110
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
111
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
112
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
113
+ * THE SOFTWARE.
114
+ */!function(t){t[t.BOTTOM=1]="BOTTOM",t[t.CENTER=2]="CENTER",t[t.RIGHT=4]="RIGHT",t[t.FLIP_RTL=8]="FLIP_RTL"}(f||(f={})),function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=4]="TOP_RIGHT",t[t.BOTTOM_LEFT=1]="BOTTOM_LEFT",t[t.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",t[t.TOP_START=8]="TOP_START",t[t.TOP_END=12]="TOP_END",t[t.BOTTOM_START=9]="BOTTOM_START",t[t.BOTTOM_END=13]="BOTTOM_END"}(a||(a={}));var p={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},O=((l={})[""+p.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",l[""+p.LIST_ITEM_CLASS]="mdc-list-item",l[""+p.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",l[""+p.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",l[""+p.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",l[""+p.ROOT]="mdc-list",l),_=((d={})[""+p.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",d[""+p.LIST_ITEM_CLASS]="mdc-deprecated-list-item",d[""+p.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",d[""+p.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",d[""+p.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",d[""+p.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",d[""+p.ROOT]="mdc-deprecated-list",d),x={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+p.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+p.LIST_ITEM_CLASS+" a,\n ."+_[p.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+_[p.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+p.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+p.LIST_ITEM_CLASS+" a,\n ."+p.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+p.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+_[p.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+_[p.LIST_ITEM_CLASS]+" a,\n ."+_[p.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+_[p.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},S={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},w="Backspace",y="Enter",L="Spacebar",R="PageUp",D="PageDown",N="End",M="Home",F="ArrowLeft",j="ArrowUp",k="ArrowRight",H="ArrowDown",B="Delete",P="Escape",U=new Set;U.add(w),U.add(y),U.add(L),U.add(R),U.add(D),U.add(N),U.add(M),U.add(F),U.add(j),U.add(k),U.add(H),U.add(B),U.add(P),U.add("Tab");var V=new Map;V.set(8,w),V.set(13,y),V.set(32,L),V.set(33,R),V.set(34,D),V.set(35,N),V.set(36,M),V.set(37,F),V.set(38,j),V.set(39,k),V.set(40,H),V.set(46,B),V.set(27,P),V.set(9,"Tab");var G=new Set;function q(t){var n=t.key;return U.has(n)?n:V.get(t.keyCode)||"Unknown"}
115
+ /**
116
+ * @license
117
+ * Copyright 2020 Google Inc.
118
+ *
119
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
120
+ * of this software and associated documentation files (the "Software"), to deal
121
+ * in the Software without restriction, including without limitation the rights
122
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
123
+ * copies of the Software, and to permit persons to whom the Software is
124
+ * furnished to do so, subject to the following conditions:
125
+ *
126
+ * The above copyright notice and this permission notice shall be included in
127
+ * all copies or substantial portions of the Software.
128
+ *
129
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
130
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
131
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
132
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
133
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
134
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
135
+ * THE SOFTWARE.
136
+ */G.add(R),G.add(D),G.add(N),G.add(M),G.add(F),G.add(j),G.add(k),G.add(H);var W=["input","button","textarea","select"],X=function(t){var n=t.target;if(n){var i=(""+n.tagName).toLowerCase();-1===W.indexOf(i)&&t.preventDefault()}};function z(t,n){var i,e=t.nextChar,r=t.focusItemAtIndex,s=t.sortedIndexByFirstChar,u=t.focusedItemIndex,o=t.skipFocus,c=t.isItemAtIndexDisabled;return clearTimeout(n.bufferClearTimeout),n.bufferClearTimeout=setTimeout((function(){Y(n)}),S.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),n.typeaheadBuffer=n.typeaheadBuffer+e,i=1===n.typeaheadBuffer.length?function(t,n,i,e){var r=e.typeaheadBuffer[0],s=t.get(r);if(!s)return-1;if(r===e.currentFirstChar&&s[e.sortedIndexCursor].index===n){e.sortedIndexCursor=(e.sortedIndexCursor+1)%s.length;var u=s[e.sortedIndexCursor].index;if(!i(u))return u}e.currentFirstChar=r;var o,c=-1;for(o=0;o<s.length;o++)if(!i(s[o].index)){c=o;break}for(;o<s.length;o++)if(s[o].index>n&&!i(s[o].index)){c=o;break}return-1!==c?(e.sortedIndexCursor=c,s[e.sortedIndexCursor].index):-1}(s,u,c,n):function(t,n,i){var e=t.get(i.typeaheadBuffer[0]);if(!e)return-1;var r=e[i.sortedIndexCursor];if(0===r.text.lastIndexOf(i.typeaheadBuffer,0)&&!n(r.index))return r.index;for(var s=(i.sortedIndexCursor+1)%e.length,u=-1;s!==i.sortedIndexCursor;){var o=e[s],c=0===o.text.lastIndexOf(i.typeaheadBuffer,0),h=!n(o.index);if(c&&h){u=s;break}s=(s+1)%e.length}return-1!==u?(i.sortedIndexCursor=u,e[i.sortedIndexCursor].index):-1}(s,c,n),-1===i||o||r(i),i}function K(t){return t.typeaheadBuffer.length>0}function Y(t){t.typeaheadBuffer=""}function Q(t,n){var i=t.event,e=t.isTargetListItem,r=t.focusedItemIndex,s=t.focusItemAtIndex,u=t.sortedIndexByFirstChar,o=t.isItemAtIndexDisabled,c="ArrowLeft"===q(i),h="ArrowUp"===q(i),f="ArrowRight"===q(i),a="ArrowDown"===q(i),l="Home"===q(i),d="End"===q(i),m="Enter"===q(i),b="Spacebar"===q(i);return i.altKey||i.ctrlKey||i.metaKey||c||h||f||a||l||d||m?-1:b||1!==i.key.length?b?(e&&X(i),e&&K(n)?z({focusItemAtIndex:s,focusedItemIndex:r,nextChar:" ",sortedIndexByFirstChar:u,skipFocus:!1,isItemAtIndexDisabled:o},n):-1):-1:(X(i),z({focusItemAtIndex:s,focusedItemIndex:r,nextChar:i.key.toLowerCase(),sortedIndexByFirstChar:u,skipFocus:!1,isItemAtIndexDisabled:o},n))}
137
+ /**
138
+ * @license
139
+ * Copyright 2018 Google Inc.
140
+ *
141
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
142
+ * of this software and associated documentation files (the "Software"), to deal
143
+ * in the Software without restriction, including without limitation the rights
144
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
145
+ * copies of the Software, and to permit persons to whom the Software is
146
+ * furnished to do so, subject to the following conditions:
147
+ *
148
+ * The above copyright notice and this permission notice shall be included in
149
+ * all copies or substantial portions of the Software.
150
+ *
151
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
152
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
153
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
154
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
155
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
156
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
157
+ * THE SOFTWARE.
158
+ */var Z=["Alt","Control","Meta","Shift"];function J(t){var n=new Set(t?Z.filter((function(n){return t.getModifierState(n)})):[]);return function(t){return t.every((function(t){return n.has(t)}))&&t.length===n.size}}var $=function(t){function e(n){var r=t.call(this,i(i({},e.defaultAdapter),n))||this;return r.wrapFocus=!1,r.isVertical=!0,r.isSingleSelectionList=!1,r.areDisabledItemsFocusable=!0,r.selectedIndex=S.UNSET_INDEX,r.focusedItemIndex=S.UNSET_INDEX,r.useActivatedClass=!1,r.useSelectedAttr=!1,r.ariaCurrentAttrValue=null,r.isCheckboxList=!1,r.isRadioList=!1,r.lastSelectedIndex=null,r.hasTypeahead=!1,r.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},r.sortedIndexByFirstChar=new Map,r}return n(e,t),Object.defineProperty(e,"strings",{get:function(){return x},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return S},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),e.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},e.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},e.prototype.setWrapFocus=function(t){this.wrapFocus=t},e.prototype.setVerticalOrientation=function(t){this.isVertical=t},e.prototype.setSingleSelection=function(t){this.isSingleSelectionList=t,t&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},e.prototype.setDisabledItemsFocusable=function(t){this.areDisabledItemsFocusable=t},e.prototype.maybeInitializeSingleSelection=function(){var t=this.getSelectedIndexFromDOM();t!==S.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(t,p.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=t)},e.prototype.getSelectedIndexFromDOM=function(){for(var t=S.UNSET_INDEX,n=this.adapter.getListItemCount(),i=0;i<n;i++){var e=this.adapter.listItemAtIndexHasClass(i,p.LIST_ITEM_SELECTED_CLASS),r=this.adapter.listItemAtIndexHasClass(i,p.LIST_ITEM_ACTIVATED_CLASS);if(e||r){t=i;break}}return t},e.prototype.setHasTypeahead=function(t){this.hasTypeahead=t,t&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},e.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&K(this.typeaheadState)},e.prototype.setUseActivatedClass=function(t){this.useActivatedClass=t},e.prototype.setUseSelectedAttribute=function(t){this.useSelectedAttr=t},e.prototype.getSelectedIndex=function(){return this.selectedIndex},e.prototype.setSelectedIndex=function(t,n){void 0===n&&(n={}),this.isIndexValid(t)&&(this.isCheckboxList?this.setCheckboxAtIndex(t,n):this.isRadioList?this.setRadioAtIndex(t,n):this.setSingleSelectionAtIndex(t,n))},e.prototype.handleFocusIn=function(t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},e.prototype.handleFocusOut=function(t){var n=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout((function(){n.adapter.isFocusInsideList()||n.setTabindexToFirstSelectedOrFocusedItem()}),0)},e.prototype.isIndexDisabled=function(t){return this.adapter.listItemAtIndexHasClass(t,p.LIST_ITEM_DISABLED_CLASS)},e.prototype.handleKeydown=function(t,n,i){var e,r=this,s="ArrowLeft"===q(t),u="ArrowUp"===q(t),o="ArrowRight"===q(t),c="ArrowDown"===q(t),h="Home"===q(t),f="End"===q(t),a="Enter"===q(t),l="Spacebar"===q(t),d=this.isVertical&&c||!this.isVertical&&o,m=this.isVertical&&u||!this.isVertical&&s,b="A"===t.key||"a"===t.key,v=J(t);if(this.adapter.isRootFocused())(m||f)&&v([])?(t.preventDefault(),this.focusLastElement()):(d||h)&&v([])?(t.preventDefault(),this.focusFirstElement()):m&&v(["Shift"])&&this.isCheckboxList?(t.preventDefault(),-1!==(I=this.focusLastElement())&&this.setSelectedIndexOnAction(I,!1)):d&&v(["Shift"])&&this.isCheckboxList&&(t.preventDefault(),-1!==(I=this.focusFirstElement())&&this.setSelectedIndexOnAction(I,!1)),this.hasTypeahead&&Q({event:t,focusItemAtIndex:function(t){r.focusItemAtIndex(t)},focusedItemIndex:-1,isTargetListItem:n,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return r.isIndexDisabled(t)}},this.typeaheadState);else{var E=this.adapter.getFocusedElementIndex();if(!(-1===E&&(E=i)<0)){if(d&&v([]))X(t),this.focusNextElement(E);else if(m&&v([]))X(t),this.focusPrevElement(E);else if(d&&v(["Shift"])&&this.isCheckboxList)X(t),-1!==(I=this.focusNextElement(E))&&this.setSelectedIndexOnAction(I,!1);else if(m&&v(["Shift"])&&this.isCheckboxList){var I;X(t),-1!==(I=this.focusPrevElement(E))&&this.setSelectedIndexOnAction(I,!1)}else if(h&&v([]))X(t),this.focusFirstElement();else if(f&&v([]))X(t),this.focusLastElement();else if(h&&v(["Control","Shift"])&&this.isCheckboxList){if(X(t),this.isIndexDisabled(E))return;this.focusFirstElement(),this.toggleCheckboxRange(0,E,E)}else if(f&&v(["Control","Shift"])&&this.isCheckboxList){if(X(t),this.isIndexDisabled(E))return;this.focusLastElement(),this.toggleCheckboxRange(E,this.adapter.getListItemCount()-1,E)}else if(b&&v(["Control"])&&this.isCheckboxList)t.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===S.UNSET_INDEX?[]:this.selectedIndex,!0);else if((a||l)&&v([])){if(n){if((g=t.target)&&"A"===g.tagName&&a)return;if(X(t),this.isIndexDisabled(E))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(E,!1),this.adapter.notifyAction(E))}}else if((a||l)&&v(["Shift"])&&this.isCheckboxList){var g;if((g=t.target)&&"A"===g.tagName&&a)return;if(X(t),this.isIndexDisabled(E))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(e=this.lastSelectedIndex)&&void 0!==e?e:E,E,E),this.adapter.notifyAction(E))}this.hasTypeahead&&Q({event:t,focusItemAtIndex:function(t){r.focusItemAtIndex(t)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:n,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(t){return r.isIndexDisabled(t)}},this.typeaheadState)}}},e.prototype.handleClick=function(t,n,i){var e,r=J(i);t!==S.UNSET_INDEX&&(this.isIndexDisabled(t)||(r([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(t,n),this.adapter.notifyAction(t)):this.isCheckboxList&&r(["Shift"])&&(this.toggleCheckboxRange(null!==(e=this.lastSelectedIndex)&&void 0!==e?e:t,t,t),this.adapter.notifyAction(t))))},e.prototype.focusNextElement=function(t){var n=this.adapter.getListItemCount(),i=t,e=null;do{if(++i>=n){if(!this.wrapFocus)return t;i=0}if(i===e)return-1;e=null!=e?e:i}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(i));return this.focusItemAtIndex(i),i},e.prototype.focusPrevElement=function(t){var n=this.adapter.getListItemCount(),i=t,e=null;do{if(--i<0){if(!this.wrapFocus)return t;i=n-1}if(i===e)return-1;e=null!=e?e:i}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(i));return this.focusItemAtIndex(i),i},e.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},e.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},e.prototype.focusInitialElement=function(){var t=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(t),t},e.prototype.setEnabled=function(t,n){this.isIndexValid(t,!1)&&(n?(this.adapter.removeClassForElementIndex(t,p.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,x.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(t,p.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,x.ARIA_DISABLED,"true")))},e.prototype.setSingleSelectionAtIndex=function(t,n){if(void 0===n&&(n={}),this.selectedIndex!==t||n.forceUpdate){var i=p.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(i=p.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==S.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,i),this.setAriaForSingleSelectionAtIndex(t),this.setTabindexAtIndex(t),t!==S.UNSET_INDEX&&this.adapter.addClassForElementIndex(t,i),this.selectedIndex=t,n.isUserInteraction&&!n.forceUpdate&&this.adapter.notifySelectionChange([t])}},e.prototype.setAriaForSingleSelectionAtIndex=function(t){this.selectedIndex===S.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(t,x.ARIA_CURRENT));var n=null!==this.ariaCurrentAttrValue,i=n?x.ARIA_CURRENT:x.ARIA_SELECTED;this.selectedIndex!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,i,"false"),t!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,i,n?this.ariaCurrentAttrValue:"true")},e.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?x.ARIA_SELECTED:x.ARIA_CHECKED},e.prototype.setRadioAtIndex=function(t,n){void 0===n&&(n={});var i=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(t,!0),(this.selectedIndex!==t||n.forceUpdate)&&(this.selectedIndex!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,i,"false"),this.adapter.setAttributeForElementIndex(t,i,"true"),this.selectedIndex=t,n.isUserInteraction&&!n.forceUpdate&&this.adapter.notifySelectionChange([t]))},e.prototype.setCheckboxAtIndex=function(t,n){void 0===n&&(n={});for(var i=this.selectedIndex,e=n.isUserInteraction?new Set(i===S.UNSET_INDEX?[]:i):null,r=this.getSelectionAttribute(),s=[],u=0;u<this.adapter.getListItemCount();u++){var o=null==e?void 0:e.has(u),c=t.indexOf(u)>=0;c!==o&&s.push(u),this.adapter.setCheckedCheckboxOrRadioAtIndex(u,c),this.adapter.setAttributeForElementIndex(u,r,c?"true":"false")}this.selectedIndex=t,n.isUserInteraction&&s.length&&this.adapter.notifySelectionChange(s)},e.prototype.toggleCheckboxRange=function(t,n,i){this.lastSelectedIndex=i;for(var e=new Set(this.selectedIndex===S.UNSET_INDEX?[]:this.selectedIndex),u=!(null==e?void 0:e.has(i)),o=r([t,n].sort(),2),c=o[0],h=o[1],f=this.getSelectionAttribute(),a=[],l=c;l<=h;l++)this.isIndexDisabled(l)||u!==e.has(l)&&(a.push(l),this.adapter.setCheckedCheckboxOrRadioAtIndex(l,u),this.adapter.setAttributeForElementIndex(l,f,""+u),u?e.add(l):e.delete(l));a.length&&(this.selectedIndex=s([],r(e)),this.adapter.notifySelectionChange(a))},e.prototype.setTabindexAtIndex=function(t){this.focusedItemIndex===S.UNSET_INDEX&&0!==t?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==t&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===t||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),t!==S.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,"tabindex","0")},e.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},e.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var t=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(t)},e.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?"number"==typeof this.selectedIndex&&this.selectedIndex!==S.UNSET_INDEX?this.selectedIndex:this.selectedIndex instanceof Array&&this.selectedIndex.length>0?this.selectedIndex.reduce((function(t,n){return Math.min(t,n)})):0:Math.max(this.focusedItemIndex,0)},e.prototype.isIndexValid=function(t,n){var i=this;if(void 0===n&&(n=!0),t instanceof Array){if(!this.isCheckboxList&&n)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===t.length||t.some((function(t){return i.isIndexInRange(t)}))}if("number"==typeof t){if(this.isCheckboxList&&n)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return this.isIndexInRange(t)||this.isSingleSelectionList&&t===S.UNSET_INDEX}return!1},e.prototype.isIndexInRange=function(t){var n=this.adapter.getListItemCount();return t>=0&&t<n},e.prototype.setSelectedIndexOnAction=function(t,n){this.lastSelectedIndex=t,this.isCheckboxList?(this.toggleCheckboxAtIndex(t,n),this.adapter.notifySelectionChange([t])):this.setSelectedIndex(t,{isUserInteraction:!0})},e.prototype.toggleCheckboxAtIndex=function(t,n){var i,e=this.getSelectionAttribute(),r=this.adapter.isCheckboxCheckedAtIndex(t);n?i=r:this.adapter.setCheckedCheckboxOrRadioAtIndex(t,i=!r),this.adapter.setAttributeForElementIndex(t,e,i?"true":"false");var s=this.selectedIndex===S.UNSET_INDEX?[]:this.selectedIndex.slice();i?s.push(t):s=s.filter((function(n){return n!==t})),this.selectedIndex=s},e.prototype.focusItemAtIndex=function(t){this.adapter.focusItemAtIndex(t),this.focusedItemIndex=t},e.prototype.checkboxListToggleAll=function(t,n){var i=this.adapter.getListItemCount();if(t.length===i)this.setCheckboxAtIndex([],{isUserInteraction:n});else{for(var e=[],r=0;r<i;r++)(!this.isIndexDisabled(r)||t.indexOf(r)>-1)&&e.push(r);this.setCheckboxAtIndex(e,{isUserInteraction:n})}},e.prototype.typeaheadMatchItem=function(t,n,i){var e=this;return void 0===i&&(i=!1),z({focusItemAtIndex:function(t){e.focusItemAtIndex(t)},focusedItemIndex:n||this.focusedItemIndex,nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:i,isItemAtIndexDisabled:function(t){return e.isIndexDisabled(t)}},this.typeaheadState)},e.prototype.typeaheadInitSortedIndex=function(){return function(t,n){for(var i=new Map,e=0;e<t;e++){var r=n(e).trim();if(r){var s=r[0].toLowerCase();i.has(s)||i.set(s,[]),i.get(s).push({text:r.toLowerCase(),index:e})}}return i.forEach((function(t){t.sort((function(t,n){return t.index-n.index}))})),i}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},e.prototype.clearTypeaheadBuffer=function(){Y(this.typeaheadState)},e}(u),tt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),Object.defineProperty(i.prototype,"vertical",{set:function(t){this.foundation.setVerticalOrientation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[p.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"wrapFocus",{set:function(t){this.foundation.setWrapFocus(t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasTypeahead",{set:function(t){this.foundation.setHasTypeahead(t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"singleSelection",{set:function(t){this.foundation.setSingleSelection(t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"disabledItemsFocusable",{set:function(t){this.foundation.setDisabledItemsFocusable(t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t)},enumerable:!1,configurable:!0}),i.attachTo=function(t){return new i(t)},i.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled="evolution"in this.root.dataset,this.classNameMap=this.isEvolutionEnabled?O:h(this.root,x.DEPRECATED_SELECTOR)?_:Object.values(p).reduce((function(t,n){return t[n]=n,t}),{}),this.handleClick=this.handleClickEvent.bind(this),this.handleKeydown=this.handleKeydownEvent.bind(this),this.focusInEventListener=this.handleFocusInEvent.bind(this),this.focusOutEventListener=this.handleFocusOutEvent.bind(this),this.listen("keydown",this.handleKeydown),this.listen("click",this.handleClick),this.listen("focusin",this.focusInEventListener),this.listen("focusout",this.focusOutEventListener),this.layout(),this.initializeListType(),this.ensureFocusable()},i.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},i.prototype.layout=function(){var t=this.root.getAttribute(x.ARIA_ORIENTATION);this.vertical=t!==x.ARIA_ORIENTATION_HORIZONTAL;var n=x.FOCUSABLE_CHILD_ELEMENTS,i=this.root.querySelectorAll("."+this.classNameMap[p.LIST_ITEM_CLASS]+":not([tabindex])");i.length&&Array.prototype.forEach.call(i,(function(t){t.setAttribute("tabindex","-1")}));var e=this.root.querySelectorAll(n);e.length&&Array.prototype.forEach.call(e,(function(t){t.setAttribute("tabindex","-1")})),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},i.prototype.getPrimaryText=function(t){var n,i=t.querySelector("."+this.classNameMap[p.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||i)return null!==(n=null==i?void 0:i.textContent)&&void 0!==n?n:"";var e=t.querySelector("."+this.classNameMap[p.LIST_ITEM_TEXT_CLASS]);return e&&e.textContent||""},i.prototype.initializeListType=function(){var t=this;if(this.isInteractive=h(this.root,x.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var n=Array.from(this.root.querySelectorAll(x.SELECTED_ITEM_SELECTOR),(function(n){return t.listElements.indexOf(n)}));h(this.root,x.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=n:n.length>0&&(this.selectedIndex=n[0])}else{var i=this.root.querySelectorAll(x.ARIA_ROLE_CHECKBOX_SELECTOR),e=this.root.querySelector(x.ARIA_CHECKED_RADIO_SELECTOR);if(i.length){var r=this.root.querySelectorAll(x.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(r,(function(n){return t.listElements.indexOf(n)}))}else e&&(this.selectedIndex=this.listElements.indexOf(e))}},i.prototype.setEnabled=function(t,n){this.foundation.setEnabled(t,n)},i.prototype.typeaheadMatchItem=function(t,n){return this.foundation.typeaheadMatchItem(t,n,!0)},i.prototype.getDefaultFoundation=function(){var t=this;return new $({addClassForElementIndex:function(n,i){var e=t.listElements[n];e&&e.classList.add(t.classNameMap[i])},focusItemAtIndex:function(n){var i=t.listElements[n];i&&i.focus()},getAttributeForElementIndex:function(n,i){return t.listElements[n].getAttribute(i)},getFocusedElementIndex:function(){return t.listElements.indexOf(document.activeElement)},getListItemCount:function(){return t.listElements.length},getPrimaryTextAtIndex:function(n){return t.getPrimaryText(t.listElements[n])},hasCheckboxAtIndex:function(n){return!!t.listElements[n].querySelector(x.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(n){return!!t.listElements[n].querySelector(x.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(n){return t.listElements[n].querySelector(x.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return t.root!==document.activeElement&&t.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===t.root},listItemAtIndexHasClass:function(n,i){return t.listElements[n].classList.contains(t.classNameMap[i])},notifyAction:function(n){t.emit(x.ACTION_EVENT,{index:n},!0)},notifySelectionChange:function(n){t.emit(x.SELECTION_CHANGE_EVENT,{changedIndices:n},!0)},removeClassForElementIndex:function(n,i){var e=t.listElements[n];e&&e.classList.remove(t.classNameMap[i])},setAttributeForElementIndex:function(n,i,e){var r=t.listElements[n];r&&r.setAttribute(i,e)},setCheckedCheckboxOrRadioAtIndex:function(n,i){var e=t.listElements[n].querySelector(x.CHECKBOX_RADIO_SELECTOR);e.checked=i;var r=document.createEvent("Event");r.initEvent("change",!0,!0),e.dispatchEvent(r)},setTabIndexForListItemChildren:function(n,i){Array.prototype.forEach.call(t.listElements[n].querySelectorAll(x.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX),(function(t){t.setAttribute("tabindex",i)}))}})},i.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[p.LIST_ITEM_CLASS]+'[tabindex="0"]')){var t=this.initialFocusIndex();-1!==t&&(this.listElements[t].tabIndex=0)}},i.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&this.selectedIndex.length>0)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==S.UNSET_INDEX)return this.selectedIndex;var t=this.root.querySelector("."+this.classNameMap[p.LIST_ITEM_CLASS]+":not(."+this.classNameMap[p.LIST_ITEM_DISABLED_CLASS]+")");return null===t?-1:this.getListItemIndex(t)},i.prototype.getListItemIndex=function(t){var n=c(t,"."+this.classNameMap[p.LIST_ITEM_CLASS]+", ."+this.classNameMap[p.ROOT]);return n&&h(n,"."+this.classNameMap[p.LIST_ITEM_CLASS])?this.listElements.indexOf(n):-1},i.prototype.handleFocusInEvent=function(t){var n=this.getListItemIndex(t.target);this.foundation.handleFocusIn(n)},i.prototype.handleFocusOutEvent=function(t){var n=this.getListItemIndex(t.target);this.foundation.handleFocusOut(n)},i.prototype.handleKeydownEvent=function(t){var n=this.getListItemIndex(t.target);this.foundation.handleKeydown(t,t.target.classList.contains(this.classNameMap[p.LIST_ITEM_CLASS]),n)},i.prototype.handleClickEvent=function(t){var n=this.getListItemIndex(t.target),i=!h(t.target,x.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(n,i,t)},i}(o),nt=function(t){function r(n){var e=t.call(this,i(i({},r.defaultAdapter),n))||this;return e.isSurfaceOpen=!1,e.isQuickOpen=!1,e.isHoistedElement=!1,e.isFixedPosition=!1,e.isHorizontallyCenteredOnViewport=!1,e.maxHeight=0,e.openBottomBias=0,e.openAnimationEndTimerId=0,e.closeAnimationEndTimerId=0,e.animationRequestId=0,e.anchorCorner=a.TOP_START,e.originCorner=a.TOP_START,e.anchorMargin={top:0,right:0,bottom:0,left:0},e.position={x:0,y:0},e}return n(r,t),Object.defineProperty(r,"cssClasses",{get:function(){return A},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return T},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return C},enumerable:!1,configurable:!0}),Object.defineProperty(r,"Corner",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=r.cssClasses,n=t.ROOT,i=t.OPEN;if(!this.adapter.hasClass(n))throw new Error(n+" class required in root element.");this.adapter.hasClass(i)&&(this.isSurfaceOpen=!0)},r.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},r.prototype.setAnchorCorner=function(t){this.anchorCorner=t},r.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^f.RIGHT},r.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},r.prototype.setIsHoisted=function(t){this.isHoistedElement=t},r.prototype.setFixedPosition=function(t){this.isFixedPosition=t},r.prototype.isFixed=function(){return this.isFixedPosition},r.prototype.setAbsolutePosition=function(t,n){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(n)?n:0},r.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},r.prototype.setQuickOpen=function(t){this.isQuickOpen=t},r.prototype.setMaxHeight=function(t){this.maxHeight=t},r.prototype.setOpenBottomBias=function(t){this.openBottomBias=t},r.prototype.isOpen=function(){return this.isSurfaceOpen},r.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(r.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(r.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(r.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout((function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(r.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()}),C.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},r.prototype.close=function(t){var n=this;if(void 0===t&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(r.cssClasses.OPEN),this.adapter.removeClass(r.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(r.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function(){n.adapter.removeClass(r.cssClasses.OPEN),n.adapter.removeClass(r.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout((function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(r.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()}),C.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},r.prototype.handleBodyClick=function(t){this.adapter.isElementInContainer(t.target)||this.close()},r.prototype.handleKeydown=function(t){("Escape"===t.key||27===t.keyCode)&&this.close()},r.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var n=this.getoriginCorner(),i=this.getMenuSurfaceMaxHeight(n),e=this.hasBit(n,f.BOTTOM)?"bottom":"top",s=this.hasBit(n,f.RIGHT)?"right":"left",u=this.getHorizontalOriginOffset(n),o=this.getVerticalOriginOffset(n),c=this.measurements,h=c.anchorSize,a=c.surfaceSize,l=((t={})[s]=u,t[e]=o,t);h.width/a.width>C.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(s="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(l),this.adapter.setTransformOrigin(s+" "+e),this.adapter.setPosition(l),this.adapter.setMaxHeight(i?i+"px":""),this.hasBit(n,f.BOTTOM)||this.adapter.addClass(r.cssClasses.IS_OPEN_BELOW)},r.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),n=this.adapter.getBodyDimensions(),i=this.adapter.getWindowDimensions(),e=this.adapter.getWindowScroll();return t||(t={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:t,bodySize:n,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:i.width-t.right,bottom:i.height-t.bottom,left:t.left},viewportSize:i,windowScroll:e}},r.prototype.getoriginCorner=function(){var t,n,i=this.originCorner,e=this.measurements,s=e.viewportDistance,u=e.anchorSize,o=e.surfaceSize,c=r.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,f.BOTTOM)?(t=s.top-c+this.anchorMargin.bottom,n=s.bottom-c-this.anchorMargin.bottom):(t=s.top-c+this.anchorMargin.top,n=s.bottom-c+u.height-this.anchorMargin.top),!(n-o.height>0)&&t>n+this.openBottomBias&&(i=this.setBit(i,f.BOTTOM));var h,a,l,d=this.adapter.isRtl(),m=this.hasBit(this.anchorCorner,f.FLIP_RTL),b=this.hasBit(this.anchorCorner,f.RIGHT)||this.hasBit(i,f.RIGHT);(l=d&&m?!b:b)?(h=s.left+u.width+this.anchorMargin.right,a=s.right-this.anchorMargin.right):(h=s.left+this.anchorMargin.left,a=s.right+u.width-this.anchorMargin.left);var v=h-o.width>0,E=a-o.width>0,I=this.hasBit(i,f.FLIP_RTL)&&this.hasBit(i,f.RIGHT);return E&&I&&d||!v&&I?i=this.unsetBit(i,f.RIGHT):(v&&l&&d||v&&!l&&b||!E&&h>=a)&&(i=this.setBit(i,f.RIGHT)),i},r.prototype.getMenuSurfaceMaxHeight=function(t){if(this.maxHeight>0)return this.maxHeight;var n=this.measurements.viewportDistance,i=0,e=this.hasBit(t,f.BOTTOM),s=this.hasBit(this.anchorCorner,f.BOTTOM),u=r.numbers.MARGIN_TO_EDGE;return e?(i=n.top+this.anchorMargin.top-u,s||(i+=this.measurements.anchorSize.height)):(i=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-u,s&&(i-=this.measurements.anchorSize.height)),i},r.prototype.getHorizontalOriginOffset=function(t){var n=this.measurements.anchorSize,i=this.hasBit(t,f.RIGHT),e=this.hasBit(this.anchorCorner,f.RIGHT);if(i){var r=e?n.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?r-(this.measurements.viewportSize.width-this.measurements.bodySize.width):r}return e?n.width-this.anchorMargin.right:this.anchorMargin.left},r.prototype.getVerticalOriginOffset=function(t){var n=this.measurements.anchorSize,i=this.hasBit(t,f.BOTTOM),e=this.hasBit(this.anchorCorner,f.BOTTOM);return i?e?n.height-this.anchorMargin.top:-this.anchorMargin.bottom:e?n.height+this.anchorMargin.bottom:this.anchorMargin.top},r.prototype.adjustPositionForHoistedElement=function(t){var n,i,r=this.measurements,s=r.windowScroll,u=r.viewportDistance,o=r.surfaceSize,c=r.viewportSize,h=Object.keys(t);try{for(var f=e(h),a=f.next();!a.done;a=f.next()){var l=a.value,d=t[l]||0;!this.isHorizontallyCenteredOnViewport||"left"!==l&&"right"!==l?(d+=u[l],this.isFixedPosition||("top"===l?d+=s.y:"bottom"===l?d-=s.y:"left"===l?d+=s.x:d-=s.x),t[l]=d):t[l]=(c.width-o.width)/2}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}},r.prototype.maybeRestoreFocus=function(){var t=this,n=this.adapter.isFocused(),i=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,e=i.activeElement&&this.adapter.isElementInContainer(i.activeElement);(n||e)&&setTimeout((function(){t.adapter.restoreFocus()}),C.TOUCH_EVENT_WAIT_MS)},r.prototype.hasBit=function(t,n){return Boolean(t&n)},r.prototype.setBit=function(t,n){return t|n},r.prototype.unsetBit=function(t,n){return t^n},r.prototype.isFinite=function(t){return"number"==typeof t&&isFinite(t)},r}(u),it={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},et={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};
159
+ /**
160
+ * @license
161
+ * Copyright 2018 Google Inc.
162
+ *
163
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
164
+ * of this software and associated documentation files (the "Software"), to deal
165
+ * in the Software without restriction, including without limitation the rights
166
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
167
+ * copies of the Software, and to permit persons to whom the Software is
168
+ * furnished to do so, subject to the following conditions:
169
+ *
170
+ * The above copyright notice and this permission notice shall be included in
171
+ * all copies or substantial portions of the Software.
172
+ *
173
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
174
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
175
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
176
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
177
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
178
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
179
+ * THE SOFTWARE.
180
+ */function rt(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}function st(t,n){if(rt(t)&&n in et){var i=t.document.createElement("div"),e=et[n];return e.cssProperty in i.style?e.standard:e.prefixed}return n}
181
+ /**
182
+ * @license
183
+ * Copyright 2018 Google Inc.
184
+ *
185
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
186
+ * of this software and associated documentation files (the "Software"), to deal
187
+ * in the Software without restriction, including without limitation the rights
188
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
189
+ * copies of the Software, and to permit persons to whom the Software is
190
+ * furnished to do so, subject to the following conditions:
191
+ *
192
+ * The above copyright notice and this permission notice shall be included in
193
+ * all copies or substantial portions of the Software.
194
+ *
195
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
196
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
197
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
198
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
199
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
200
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
201
+ * THE SOFTWARE.
202
+ */var ut,ot=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.attachTo=function(t){return new i(t)},i.prototype.initialSyncWithDOM=function(){var t=this,n=this.root.parentElement;this.anchorElement=n&&n.classList.contains(A.ANCHOR)?n:null,this.root.classList.contains(A.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(n){t.foundation.handleKeydown(n)},this.handleBodyClick=function(n){t.foundation.handleBodyClick(n)},this.registerBodyClickListener=function(){document.body.addEventListener("click",t.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",t.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(T.OPENED_EVENT,this.registerBodyClickListener),this.listen(T.CLOSED_EVENT,this.deregisterBodyClickListener)},i.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(T.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(T.CLOSED_EVENT,this.deregisterBodyClickListener),t.prototype.destroy.call(this)},i.prototype.isOpen=function(){return this.foundation.isOpen()},i.prototype.open=function(){this.foundation.open()},i.prototype.close=function(t){void 0===t&&(t=!1),this.foundation.close(t)},Object.defineProperty(i.prototype,"quickOpen",{set:function(t){this.foundation.setQuickOpen(t)},enumerable:!1,configurable:!0}),i.prototype.setIsHoisted=function(t){this.foundation.setIsHoisted(t)},i.prototype.setMenuSurfaceAnchorElement=function(t){this.anchorElement=t},i.prototype.setFixedPosition=function(t){t?this.root.classList.add(A.FIXED):this.root.classList.remove(A.FIXED),this.foundation.setFixedPosition(t)},i.prototype.setAbsolutePosition=function(t,n){this.foundation.setAbsolutePosition(t,n),this.setIsHoisted(!0)},i.prototype.setAnchorCorner=function(t){this.foundation.setAnchorCorner(t)},i.prototype.setAnchorMargin=function(t){this.foundation.setAnchorMargin(t)},i.prototype.getDefaultFoundation=function(){var t=this,n={addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},hasClass:function(n){return t.root.classList.contains(n)},hasAnchor:function(){return!!t.anchorElement},notifyClose:function(){return t.emit(nt.strings.CLOSED_EVENT,{})},notifyClosing:function(){t.emit(nt.strings.CLOSING_EVENT,{})},notifyOpen:function(){return t.emit(nt.strings.OPENED_EVENT,{})},notifyOpening:function(){return t.emit(nt.strings.OPENING_EVENT,{})},isElementInContainer:function(n){return t.root.contains(n)},isRtl:function(){return"rtl"===getComputedStyle(t.root).getPropertyValue("direction")},setTransformOrigin:function(n){var i=function(t,n){if(rt(t)&&n in it){var i=t.document.createElement("div"),e=it[n],r=e.standard;return r in i.style?r:e.prefixed}return n}(window,"transform")+"-origin";t.root.style.setProperty(i,n)},isFocused:function(){return document.activeElement===t.root},saveFocus:function(){t.previousFocus=document.activeElement},restoreFocus:function(){t.root.contains(document.activeElement)&&t.previousFocus&&t.previousFocus.focus&&t.previousFocus.focus()},getInnerDimensions:function(){return{width:t.root.offsetWidth,height:t.root.offsetHeight}},getAnchorDimensions:function(){return t.anchorElement?t.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(n){var i=t.root;i.style.left="left"in n?n.left+"px":"",i.style.right="right"in n?n.right+"px":"",i.style.top="top"in n?n.top+"px":"",i.style.bottom="bottom"in n?n.bottom+"px":""},setMaxHeight:function(n){t.root.style.maxHeight=n}};return new nt(n)},i}(o),ct={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},ht={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},ft={FOCUS_ROOT_INDEX:-1};
203
+ /**
204
+ * @license
205
+ * Copyright 2018 Google Inc.
206
+ *
207
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
208
+ * of this software and associated documentation files (the "Software"), to deal
209
+ * in the Software without restriction, including without limitation the rights
210
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
211
+ * copies of the Software, and to permit persons to whom the Software is
212
+ * furnished to do so, subject to the following conditions:
213
+ *
214
+ * The above copyright notice and this permission notice shall be included in
215
+ * all copies or substantial portions of the Software.
216
+ *
217
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
218
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
219
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
220
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
221
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
222
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
223
+ * THE SOFTWARE.
224
+ */!function(t){t[t.NONE=0]="NONE",t[t.LIST_ROOT=1]="LIST_ROOT",t[t.FIRST_ITEM=2]="FIRST_ITEM",t[t.LAST_ITEM=3]="LAST_ITEM"}(ut||(ut={}));
225
+ /**
226
+ * @license
227
+ * Copyright 2018 Google Inc.
228
+ *
229
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
230
+ * of this software and associated documentation files (the "Software"), to deal
231
+ * in the Software without restriction, including without limitation the rights
232
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
233
+ * copies of the Software, and to permit persons to whom the Software is
234
+ * furnished to do so, subject to the following conditions:
235
+ *
236
+ * The above copyright notice and this permission notice shall be included in
237
+ * all copies or substantial portions of the Software.
238
+ *
239
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
240
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
241
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
242
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
243
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
244
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
245
+ * THE SOFTWARE.
246
+ */
247
+ var at=function(t){function e(n){var r=t.call(this,i(i({},e.defaultAdapter),n))||this;return r.closeAnimationEndTimerId=0,r.defaultFocusState=ut.LIST_ROOT,r.selectedIndex=-1,r}return n(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ct},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ht},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ft},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},e.prototype.handleKeydown=function(t){("Tab"===t.key||9===t.keyCode)&&this.adapter.closeSurface(!0)},e.prototype.handleItemAction=function(t){var n=this,i=this.adapter.getElementIndex(t);if(!(i<0)){this.adapter.notifySelected({index:i});var e="true"===this.adapter.getAttributeFromElementAtIndex(i,ht.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(e),this.closeAnimationEndTimerId=setTimeout((function(){var i=n.adapter.getElementIndex(t);i>=0&&n.adapter.isSelectableItemAtIndex(i)&&n.setSelectedIndex(i)}),nt.numbers.TRANSITION_CLOSE_DURATION)}},e.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case ut.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case ut.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case ut.NONE:break;default:this.adapter.focusListRoot()}},e.prototype.setDefaultFocusState=function(t){this.defaultFocusState=t},e.prototype.getSelectedIndex=function(){return this.selectedIndex},e.prototype.setSelectedIndex=function(t){if(this.validatedIndex(t),!this.adapter.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var n=this.adapter.getSelectedSiblingOfItemAtIndex(t);n>=0&&(this.adapter.removeAttributeFromElementAtIndex(n,ht.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(n,ct.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,ct.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,ht.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=t},e.prototype.setEnabled=function(t,n){this.validatedIndex(t),n?(this.adapter.removeClassFromElementAtIndex(t,p.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,ht.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,p.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,ht.ARIA_DISABLED_ATTR,"true"))},e.prototype.validatedIndex=function(t){var n=this.adapter.getMenuItemCount();if(!(t>=0&&t<n))throw new Error("MDCMenuFoundation: No list item at specified index.")},e}(u),lt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.attachTo=function(t){return new i(t)},i.prototype.initialize=function(t,n){void 0===t&&(t=function(t){return new ot(t)}),void 0===n&&(n=function(t){return new tt(t)}),this.menuSurfaceFactory=t,this.listFactory=n},i.prototype.initialSyncWithDOM=function(){var t=this;this.menuSurface=this.menuSurfaceFactory(this.root);var n=this.root.querySelector(ht.LIST_SELECTOR);n?(this.list=this.listFactory(n),this.list.wrapFocus=!0):this.list=null,this.handleKeydown=function(n){t.foundation.handleKeydown(n)},this.handleItemAction=function(n){t.foundation.handleItemAction(t.items[n.detail.index])},this.handleMenuSurfaceOpened=function(){t.foundation.handleMenuSurfaceOpened()},this.menuSurface.listen(nt.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.listen("keydown",this.handleKeydown),this.listen($.strings.ACTION_EVENT,this.handleItemAction)},i.prototype.destroy=function(){this.list&&this.list.destroy(),this.menuSurface.destroy(),this.menuSurface.unlisten(nt.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.unlisten("keydown",this.handleKeydown),this.unlisten($.strings.ACTION_EVENT,this.handleItemAction),t.prototype.destroy.call(this)},Object.defineProperty(i.prototype,"open",{get:function(){return this.menuSurface.isOpen()},set:function(t){t?this.menuSurface.open():this.menuSurface.close()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"wrapFocus",{get:function(){return!!this.list&&this.list.wrapFocus},set:function(t){this.list&&(this.list.wrapFocus=t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasTypeahead",{set:function(t){this.list&&(this.list.hasTypeahead=t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"typeaheadInProgress",{get:function(){return!!this.list&&this.list.typeaheadInProgress},enumerable:!1,configurable:!0}),i.prototype.typeaheadMatchItem=function(t,n){return this.list?this.list.typeaheadMatchItem(t,n):-1},i.prototype.layout=function(){this.list&&this.list.layout()},Object.defineProperty(i.prototype,"items",{get:function(){return this.list?this.list.listElements:[]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"singleSelection",{set:function(t){this.list&&(this.list.singleSelection=t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectedIndex",{get:function(){return this.list?this.list.selectedIndex:S.UNSET_INDEX},set:function(t){this.list&&(this.list.selectedIndex=t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"quickOpen",{set:function(t){this.menuSurface.quickOpen=t},enumerable:!1,configurable:!0}),i.prototype.setDefaultFocusState=function(t){this.foundation.setDefaultFocusState(t)},i.prototype.setAnchorCorner=function(t){this.menuSurface.setAnchorCorner(t)},i.prototype.setAnchorMargin=function(t){this.menuSurface.setAnchorMargin(t)},i.prototype.setSelectedIndex=function(t){this.foundation.setSelectedIndex(t)},i.prototype.setEnabled=function(t,n){this.foundation.setEnabled(t,n)},i.prototype.getOptionByIndex=function(t){return t<this.items.length?this.items[t]:null},i.prototype.getPrimaryTextAtIndex=function(t){var n=this.getOptionByIndex(t);return n&&this.list&&this.list.getPrimaryText(n)||""},i.prototype.setFixedPosition=function(t){this.menuSurface.setFixedPosition(t)},i.prototype.setIsHoisted=function(t){this.menuSurface.setIsHoisted(t)},i.prototype.setAbsolutePosition=function(t,n){this.menuSurface.setAbsolutePosition(t,n)},i.prototype.setAnchorElement=function(t){this.menuSurface.anchorElement=t},i.prototype.getDefaultFoundation=function(){var t=this;return new at({addClassToElementAtIndex:function(n,i){t.items[n].classList.add(i)},removeClassFromElementAtIndex:function(n,i){t.items[n].classList.remove(i)},addAttributeToElementAtIndex:function(n,i,e){t.items[n].setAttribute(i,e)},removeAttributeFromElementAtIndex:function(n,i){t.items[n].removeAttribute(i)},getAttributeFromElementAtIndex:function(n,i){return t.items[n].getAttribute(i)},elementContainsClass:function(t,n){return t.classList.contains(n)},closeSurface:function(n){t.menuSurface.close(n)},getElementIndex:function(n){return t.items.indexOf(n)},notifySelected:function(n){t.emit(ht.SELECTED_EVENT,{index:n.index,item:t.items[n.index]})},getMenuItemCount:function(){return t.items.length},focusItemAtIndex:function(n){t.items[n].focus()},focusListRoot:function(){t.root.querySelector(ht.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(n){return!!c(t.items[n],"."+ct.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(n){var i=c(t.items[n],"."+ct.MENU_SELECTION_GROUP).querySelector("."+ct.MENU_SELECTED_LIST_ITEM);return i?t.items.indexOf(i):-1}})},i}(o),dt={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},mt={NOTCH_ELEMENT_PADDING:8},bt={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},vt=function(t){function e(n){return t.call(this,i(i({},e.defaultAdapter),n))||this}return n(e,t),Object.defineProperty(e,"strings",{get:function(){return dt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return bt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return mt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.notch=function(t){var n=e.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=mt.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(t),this.adapter.addClass(n)},e.prototype.closeNotch=function(){this.adapter.removeClass(e.cssClasses.OUTLINE_NOTCHED),this.adapter.removeNotchWidthProperty()},e}(u),Et=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.attachTo=function(t){return new i(t)},i.prototype.initialSyncWithDOM=function(){this.notchElement=this.root.querySelector(dt.NOTCH_ELEMENT_SELECTOR);var t=this.root.querySelector("."+b.cssClasses.ROOT);t?(t.style.transitionDuration="0s",this.root.classList.add(bt.OUTLINE_UPGRADED),requestAnimationFrame((function(){t.style.transitionDuration=""}))):this.root.classList.add(bt.NO_LABEL)},i.prototype.notch=function(t){this.foundation.notch(t)},i.prototype.closeNotch=function(){this.foundation.closeNotch()},i.prototype.getDefaultFoundation=function(){var t=this;return new vt({addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},setNotchWidthProperty:function(n){t.notchElement.style.setProperty("width",n+"px")},removeNotchWidthProperty:function(){t.notchElement.style.removeProperty("width")}})},i}(o);
248
+ /**
249
+ * @license
250
+ * Copyright 2018 Google Inc.
251
+ *
252
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
253
+ * of this software and associated documentation files (the "Software"), to deal
254
+ * in the Software without restriction, including without limitation the rights
255
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
256
+ * copies of the Software, and to permit persons to whom the Software is
257
+ * furnished to do so, subject to the following conditions:
258
+ *
259
+ * The above copyright notice and this permission notice shall be included in
260
+ * all copies or substantial portions of the Software.
261
+ *
262
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
263
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
264
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
265
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
266
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
267
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
268
+ * THE SOFTWARE.
269
+ */
270
+ /**
271
+ * @license
272
+ * Copyright 2019 Google Inc.
273
+ *
274
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
275
+ * of this software and associated documentation files (the "Software"), to deal
276
+ * in the Software without restriction, including without limitation the rights
277
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
278
+ * copies of the Software, and to permit persons to whom the Software is
279
+ * furnished to do so, subject to the following conditions:
280
+ *
281
+ * The above copyright notice and this permission notice shall be included in
282
+ * all copies or substantial portions of the Software.
283
+ *
284
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
285
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
286
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
287
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
288
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
289
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
290
+ * THE SOFTWARE.
291
+ */
292
+ function It(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var n=!1;try{var i={get passive(){return n=!0,!1}},e=function(){};t.document.addEventListener("test",e,i),t.document.removeEventListener("test",e,i)}catch(t){n=!1}return n}
293
+ /**
294
+ * @license
295
+ * Copyright 2016 Google Inc.
296
+ *
297
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
298
+ * of this software and associated documentation files (the "Software"), to deal
299
+ * in the Software without restriction, including without limitation the rights
300
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
301
+ * copies of the Software, and to permit persons to whom the Software is
302
+ * furnished to do so, subject to the following conditions:
303
+ *
304
+ * The above copyright notice and this permission notice shall be included in
305
+ * all copies or substantial portions of the Software.
306
+ *
307
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
308
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
309
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
310
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
311
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
312
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
313
+ * THE SOFTWARE.
314
+ */(t)&&{passive:!0}}var gt,At={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Tt={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Ct={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},pt=["touchstart","pointerdown","mousedown","keydown"],Ot=["touchend","pointerup","mouseup","contextmenu"],_t=[],xt=function(t){function r(n){var e=t.call(this,i(i({},r.defaultAdapter),n))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}return n(r,t),Object.defineProperty(r,"cssClasses",{get:function(){return At},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return Tt},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return Ct},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var i=r.cssClasses,e=i.ROOT,s=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(e),t.adapter.isUnbounded()&&(t.adapter.addClass(s),t.layoutInternal())}))}},r.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(r.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(r.cssClasses.FG_DEACTIVATION));var n=r.cssClasses,i=n.ROOT,e=n.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(i),t.adapter.removeClass(e),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},r.prototype.activate=function(t){this.activateImpl(t)},r.prototype.deactivate=function(){this.deactivateImpl()},r.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},r.prototype.setUnbounded=function(t){var n=r.cssClasses.UNBOUNDED;t?this.adapter.addClass(n):this.adapter.removeClass(n)},r.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(r.cssClasses.BG_FOCUSED)}))},r.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(r.cssClasses.BG_FOCUSED)}))},r.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},r.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},r.prototype.registerRootHandlers=function(t){var n,i;if(t){try{for(var r=e(pt),s=r.next();!s.done;s=r.next())this.adapter.registerInteractionHandler(s.value,this.activateHandler)}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},r.prototype.registerDeactivationHandlers=function(t){var n,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=e(Ot),s=r.next();!s.done;s=r.next())this.adapter.registerDocumentInteractionHandler(s.value,this.deactivateHandler)}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},r.prototype.deregisterRootHandlers=function(){var t,n;try{for(var i=e(pt),r=i.next();!r.done;r=i.next())this.adapter.deregisterInteractionHandler(r.value,this.activateHandler)}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},r.prototype.deregisterDeactivationHandlers=function(){var t,n;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=e(Ot),r=i.next();!r.done;r=i.next())this.adapter.deregisterDocumentInteractionHandler(r.value,this.deactivateHandler)}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},r.prototype.removeCssVars=function(){var t=this,n=r.strings;Object.keys(n).forEach((function(i){0===i.indexOf("VAR_")&&t.adapter.updateCssVariable(n[i],null)}))},r.prototype.activateImpl=function(t){var n=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var e=this.previousActivationEvent;e&&void 0!==t&&e.type!==t.type||(i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&_t.length>0&&_t.some((function(t){return n.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(_t.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){_t=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=n.checkElementMadeActive(t),i.wasElementMadeActive&&n.animateActivation()),i.wasElementMadeActive||(n.activationState=n.defaultActivationState())}))))}}},r.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},r.prototype.animateActivation=function(){var t=this,n=r.strings,i=n.VAR_FG_TRANSLATE_START,e=n.VAR_FG_TRANSLATE_END,s=r.cssClasses,u=s.FG_DEACTIVATION,o=s.FG_ACTIVATION,c=r.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var h="",f="";if(!this.adapter.isUnbounded()){var a=this.getFgTranslationCoordinates(),l=a.startPoint,d=a.endPoint;h=l.x+"px, "+l.y+"px",f=d.x+"px, "+d.y+"px"}this.adapter.updateCssVariable(i,h),this.adapter.updateCssVariable(e,f),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(u),this.adapter.computeBoundingRect(),this.adapter.addClass(o),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},r.prototype.getFgTranslationCoordinates=function(){var t,n=this.activationState;return{startPoint:t={x:(t=n.wasActivatedByPointer?function(t,n,i){if(!t)return{x:0,y:0};var e,r,s=n.x+i.left,u=n.y+i.top;return"touchstart"===t.type?(e=t.changedTouches[0].pageX-s,r=t.changedTouches[0].pageY-u):(e=t.pageX-s,r=t.pageY-u),{x:e,y:r}}
315
+ /**
316
+ * @license
317
+ * Copyright 2016 Google Inc.
318
+ *
319
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
320
+ * of this software and associated documentation files (the "Software"), to deal
321
+ * in the Software without restriction, including without limitation the rights
322
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
323
+ * copies of the Software, and to permit persons to whom the Software is
324
+ * furnished to do so, subject to the following conditions:
325
+ *
326
+ * The above copyright notice and this permission notice shall be included in
327
+ * all copies or substantial portions of the Software.
328
+ *
329
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
330
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
331
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
332
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
333
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
334
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
335
+ * THE SOFTWARE.
336
+ */(n.activationEvent,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},r.prototype.runDeactivationUXLogicIfReady=function(){var t=this,n=r.cssClasses.FG_DEACTIVATION,i=this.activationState;(i.hasDeactivationUXRun||!i.isActivated)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(n)}),Ct.FG_DEACTIVATION_MS))},r.prototype.rmBoundedActivationClasses=function(){this.adapter.removeClass(r.cssClasses.FG_ACTIVATION),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},r.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),r.numbers.TAP_DELAY_MS)},r.prototype.deactivateImpl=function(){var t=this,n=this.activationState;if(n.isActivated){var e=i({},n);n.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(e)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(e),t.resetActivationState()})))}},r.prototype.animateDeactivation=function(t){(t.wasActivatedByPointer||t.wasElementMadeActive)&&this.runDeactivationUXLogicIfReady()},r.prototype.layoutInternal=function(){this.frame=this.adapter.computeBoundingRect();var t=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?t:Math.sqrt(Math.pow(this.frame.width,2)+Math.pow(this.frame.height,2))+r.numbers.PADDING;var n=Math.floor(t*r.numbers.INITIAL_ORIGIN_SCALE);this.initialSize=this.adapter.isUnbounded()&&n%2!=0?n-1:n,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},r.prototype.updateLayoutCssVars=function(){var t=r.strings,n=t.VAR_LEFT,i=t.VAR_TOP,e=t.VAR_FG_SCALE;this.adapter.updateCssVariable(t.VAR_FG_SIZE,this.initialSize+"px"),this.adapter.updateCssVariable(e,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},r}(u),St=function(t){function i(){var n=null!==t&&t.apply(this,arguments)||this;return n.disabled=!1,n}return n(i,t),i.attachTo=function(t,n){void 0===n&&(n={isUnbounded:void 0});var e=new i(t);return void 0!==n.isUnbounded&&(e.unbounded=n.isUnbounded),e},i.createAdapter=function(t){return{addClass:function(n){return t.root.classList.add(n)},browserSupportsCssVars:function(){return function(t,n){void 0===n&&(n=!1);var i,e=window.CSS;if("boolean"==typeof gt&&!n)return gt;if(!e||"function"!=typeof e.supports)return!1;var r=e.supports("--css-vars","yes"),s=e.supports("(--css-vars: yes)")&&e.supports("color","#00000000");return i=r||s,n||(gt=i),i}()},computeBoundingRect:function(){return t.root.getBoundingClientRect()},containsEventTarget:function(n){return t.root.contains(n)},deregisterDocumentInteractionHandler:function(t,n){return document.documentElement.removeEventListener(t,n,It())},deregisterInteractionHandler:function(n,i){return t.root.removeEventListener(n,i,It())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return h(t.root,":active")},isSurfaceDisabled:function(){return Boolean(t.disabled)},isUnbounded:function(){return Boolean(t.unbounded)},registerDocumentInteractionHandler:function(t,n){return document.documentElement.addEventListener(t,n,It())},registerInteractionHandler:function(n,i){return t.root.addEventListener(n,i,It())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(n){return t.root.classList.remove(n)},updateCssVariable:function(n,i){return t.root.style.setProperty(n,i)}}},Object.defineProperty(i.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),i.prototype.activate=function(){this.foundation.activate()},i.prototype.deactivate=function(){this.foundation.deactivate()},i.prototype.layout=function(){this.foundation.layout()},i.prototype.getDefaultFoundation=function(){return new xt(i.createAdapter(this))},i.prototype.initialSyncWithDOM=function(){this.isUnbounded="mdcRippleIsUnbounded"in this.root.dataset},i.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},i}(o),wt={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},yt={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},Lt={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},Rt=function(t){function e(n,r){void 0===r&&(r={});var s=t.call(this,i(i({},e.defaultAdapter),n))||this;return s.disabled=!1,s.isMenuOpen=!1,s.useDefaultValidation=!0,s.customValidity=!0,s.lastSelectedIndex=Lt.UNSET_INDEX,s.clickDebounceTimeout=0,s.recentlyClicked=!1,s.leadingIcon=r.leadingIcon,s.helperText=r.helperText,s}return n(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return wt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Lt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return yt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return-1}}},enumerable:!1,configurable:!0}),e.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},e.prototype.setSelectedIndex=function(t,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1),t>=this.adapter.getMenuItemCount()||(this.adapter.setSelectedText(t===Lt.UNSET_INDEX?"":this.adapter.getMenuItemTextAtIndex(t).trim()),this.adapter.setSelectedIndex(t),n&&this.adapter.closeMenu(),i||this.lastSelectedIndex===t||this.handleChange(),this.lastSelectedIndex=t)},e.prototype.setValue=function(t,n){void 0===n&&(n=!1);var i=this.adapter.getMenuItemValues().indexOf(t);this.setSelectedIndex(i,!1,n)},e.prototype.getValue=function(){var t=this.adapter.getSelectedIndex(),n=this.adapter.getMenuItemValues();return t!==Lt.UNSET_INDEX?n[t]:""},e.prototype.getDisabled=function(){return this.disabled},e.prototype.setDisabled=function(t){this.disabled=t,this.disabled?(this.adapter.addClass(wt.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(wt.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},e.prototype.openMenu=function(){this.adapter.addClass(wt.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.layout=function(){if(this.adapter.hasLabel()){var t=this.getValue().length>0,n=this.adapter.hasClass(wt.FOCUSED),i=t||n,e=this.adapter.hasClass(wt.REQUIRED);this.notchOutline(i),this.adapter.floatLabel(i),this.adapter.setLabelRequired(e)}},e.prototype.layoutOptions=function(){var t=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(t,!1,!0)},e.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var t=this.getSelectedIndex();this.adapter.focusMenuItemAtIndex(t>=0?t:0)}},e.prototype.handleMenuClosing=function(){this.adapter.setSelectAnchorAttr("aria-expanded","false")},e.prototype.handleMenuClosed=function(){this.adapter.removeClass(wt.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused()||this.blur()},e.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(wt.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.handleMenuItemAction=function(t){this.setSelectedIndex(t,!0)},e.prototype.handleFocus=function(){this.adapter.addClass(wt.FOCUSED),this.layout(),this.adapter.activateBottomLine()},e.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},e.prototype.handleClick=function(t){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout(),this.isMenuOpen?this.adapter.closeMenu():(this.adapter.setRippleCenter(t),this.openMenu()))},e.prototype.handleKeydown=function(t){if(!this.isMenuOpen&&this.adapter.hasClass(wt.FOCUSED)){var n=q(t)===y,i=q(t)===L,e=q(t)===j,r=q(t)===H;if(!t.ctrlKey&&!t.metaKey&&(!i&&t.key&&1===t.key.length||i&&this.adapter.isTypeaheadInProgress())){var s=this.adapter.typeaheadMatchItem(i?" ":t.key,this.getSelectedIndex());return s>=0&&this.setSelectedIndex(s),void t.preventDefault()}(n||i||e||r)&&(this.openMenu(),t.preventDefault())}},e.prototype.notchOutline=function(t){if(this.adapter.hasOutline()){var n=this.adapter.hasClass(wt.FOCUSED);if(t){var i=Lt.LABEL_SCALE,e=this.adapter.getLabelWidth()*i;this.adapter.notchOutline(e)}else n||this.adapter.closeOutline()}},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.getUseDefaultValidation=function(){return this.useDefaultValidation},e.prototype.setUseDefaultValidation=function(t){this.useDefaultValidation=t},e.prototype.setValid=function(t){this.useDefaultValidation||(this.customValidity=t),this.adapter.setSelectAnchorAttr("aria-invalid",(!t).toString()),t?(this.adapter.removeClass(wt.INVALID),this.adapter.removeMenuClass(wt.MENU_INVALID)):(this.adapter.addClass(wt.INVALID),this.adapter.addMenuClass(wt.MENU_INVALID)),this.syncHelperTextValidity(t)},e.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(wt.REQUIRED)&&!this.adapter.hasClass(wt.DISABLED)?this.getSelectedIndex()!==Lt.UNSET_INDEX&&(0!==this.getSelectedIndex()||Boolean(this.getValue())):this.customValidity},e.prototype.setRequired=function(t){t?this.adapter.addClass(wt.REQUIRED):this.adapter.removeClass(wt.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",t.toString()),this.adapter.setLabelRequired(t)},e.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},e.prototype.init=function(){var t=this.adapter.getAnchorElement();t&&(this.adapter.setMenuAnchorElement(t),this.adapter.setMenuAnchorCorner(a.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(wt.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(wt.INVALID)),this.layout(),this.layoutOptions()},e.prototype.blur=function(){this.adapter.removeClass(wt.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(wt.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},e.prototype.syncHelperTextValidity=function(t){if(this.helperText){this.helperText.setValidity(t);var n=this.helperText.isVisible(),i=this.helperText.getId();n&&i?this.adapter.setSelectAnchorAttr(yt.ARIA_DESCRIBEDBY,i):this.adapter.removeSelectAnchorAttr(yt.ARIA_DESCRIBEDBY)}},e.prototype.setClickDebounceTimeout=function(){var t=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function(){t.recentlyClicked=!1}),Lt.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},e}(u),Dt={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},Nt={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},Mt=function(t){function e(n){return t.call(this,i(i({},e.defaultAdapter),n))||this}return n(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Nt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Dt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),e.prototype.getId=function(){return this.adapter.getAttr("id")},e.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(Dt.ARIA_HIDDEN)},e.prototype.setContent=function(t){this.adapter.setContent(t)},e.prototype.setValidation=function(t){t?this.adapter.addClass(Nt.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(Nt.HELPER_TEXT_VALIDATION_MSG)},e.prototype.setValidationMsgPersistent=function(t){t?this.adapter.addClass(Nt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(Nt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},e.prototype.getIsValidation=function(){return this.adapter.hasClass(Nt.HELPER_TEXT_VALIDATION_MSG)},e.prototype.getIsValidationMsgPersistent=function(){return this.adapter.hasClass(Nt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},e.prototype.setValidity=function(t){if(this.adapter.hasClass(Nt.HELPER_TEXT_VALIDATION_MSG)){var n=this.adapter.hasClass(Nt.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!t||n)return this.showToScreenReader(),void(t?this.adapter.removeAttr(Dt.ROLE):this.adapter.setAttr(Dt.ROLE,"alert"));this.adapter.removeAttr(Dt.ROLE),this.hide()}},e.prototype.showToScreenReader=function(){this.adapter.removeAttr(Dt.ARIA_HIDDEN)},e.prototype.hide=function(){this.adapter.setAttr(Dt.ARIA_HIDDEN,"true")},e}(u),Ft=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.attachTo=function(t){return new i(t)},Object.defineProperty(i.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),i.prototype.getDefaultFoundation=function(){var t=this;return new Mt({addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},hasClass:function(n){return t.root.classList.contains(n)},getAttr:function(n){return t.root.getAttribute(n)},setAttr:function(n,i){return t.root.setAttribute(n,i)},removeAttr:function(n){return t.root.removeAttribute(n)},setContent:function(n){t.root.textContent=n}})},i}(o),jt={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},kt=["click","keydown"],Ht=function(t){function r(n){var e=t.call(this,i(i({},r.defaultAdapter),n))||this;return e.savedTabIndex=null,e.interactionHandler=function(t){e.handleInteraction(t)},e}return n(r,t),Object.defineProperty(r,"strings",{get:function(){return jt},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t,n;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var i=e(kt),r=i.next();!r.done;r=i.next())this.adapter.registerInteractionHandler(r.value,this.interactionHandler)}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},r.prototype.destroy=function(){var t,n;try{for(var i=e(kt),r=i.next();!r.done;r=i.next())this.adapter.deregisterInteractionHandler(r.value,this.interactionHandler)}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},r.prototype.setDisabled=function(t){this.savedTabIndex&&(t?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",jt.ICON_ROLE)))},r.prototype.setAriaLabel=function(t){this.adapter.setAttr("aria-label",t)},r.prototype.setContent=function(t){this.adapter.setContent(t)},r.prototype.handleInteraction=function(t){("click"===t.type||"Enter"===t.key||13===t.keyCode)&&this.adapter.notifyIconAction()},r}(u),Bt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.attachTo=function(t){return new i(t)},Object.defineProperty(i.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),i.prototype.getDefaultFoundation=function(){var t=this;return new Ht({getAttr:function(n){return t.root.getAttribute(n)},setAttr:function(n,i){return t.root.setAttribute(n,i)},removeAttr:function(n){return t.root.removeAttribute(n)},setContent:function(n){t.root.textContent=n},registerInteractionHandler:function(n,i){return t.listen(n,i)},deregisterInteractionHandler:function(n,i){return t.unlisten(n,i)},notifyIconAction:function(){return t.emit(Ht.strings.ICON_EVENT,{},!0)}})},i}(o),Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.attachTo=function(t){return new e(t)},e.prototype.initialize=function(t,n,i,e,r,s){if(void 0===t&&(t=function(t){return new v(t)}),void 0===n&&(n=function(t){return new g(t)}),void 0===i&&(i=function(t){return new Et(t)}),void 0===e&&(e=function(t){return new lt(t)}),void 0===r&&(r=function(t){return new Bt(t)}),void 0===s&&(s=function(t){return new Ft(t)}),this.selectAnchor=this.root.querySelector(yt.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(yt.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(yt.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+yt.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(yt.ARIA_CONTROLS)){var u=document.getElementById(this.selectAnchor.getAttribute(yt.ARIA_CONTROLS));u&&(this.helperText=s(u))}this.menuSetup(e);var o=this.root.querySelector(yt.LABEL_SELECTOR);this.label=o?t(o):null;var c=this.root.querySelector(yt.LINE_RIPPLE_SELECTOR);this.lineRipple=c?n(c):null;var h=this.root.querySelector(yt.OUTLINE_SELECTOR);this.outline=h?i(h):null;var f=this.root.querySelector(yt.LEADING_ICON_SELECTOR);f&&(this.leadingIcon=r(f)),this.root.classList.contains(wt.OUTLINED)||(this.ripple=this.createRipple())},e.prototype.initialSyncWithDOM=function(){var t=this;if(this.handleFocus=function(){t.foundation.handleFocus()},this.handleBlur=function(){t.foundation.handleBlur()},this.handleClick=function(n){t.selectAnchor.focus(),t.foundation.handleClick(t.getNormalizedXCoordinate(n))},this.handleKeydown=function(n){t.foundation.handleKeydown(n)},this.handleMenuItemAction=function(n){t.foundation.handleMenuItemAction(n.detail.index)},this.handleMenuOpened=function(){t.foundation.handleMenuOpened()},this.handleMenuClosed=function(){t.foundation.handleMenuClosed()},this.handleMenuClosing=function(){t.foundation.handleMenuClosing()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(T.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(T.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(T.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(ht.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value)return this.foundation.setValue(this.hiddenInput.value,!0),void this.foundation.layout();this.hiddenInput.value=this.value}},e.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(T.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(T.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(ht.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),t.prototype.destroy.call(this)},Object.defineProperty(e.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(t){this.foundation.setValue(t)},enumerable:!1,configurable:!0}),e.prototype.setValue=function(t,n){void 0===n&&(n=!1),this.foundation.setValue(t,n)},Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(t){this.foundation.setSelectedIndex(t,!0)},enumerable:!1,configurable:!0}),e.prototype.setSelectedIndex=function(t,n){void 0===n&&(n=!1),this.foundation.setSelectedIndex(t,!0,n)},Object.defineProperty(e.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(t){this.foundation.setDisabled(t),this.hiddenInput&&(this.hiddenInput.disabled=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leadingIconAriaLabel",{set:function(t){this.foundation.setLeadingIconAriaLabel(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leadingIconContent",{set:function(t){this.foundation.setLeadingIconContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"helperTextContent",{set:function(t){this.foundation.setHelperTextContent(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"useDefaultValidation",{set:function(t){this.foundation.setUseDefaultValidation(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(t){this.foundation.setValid(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(t){this.foundation.setRequired(t)},enumerable:!1,configurable:!0}),e.prototype.layout=function(){this.foundation.layout()},e.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map((function(t){return t.getAttribute(yt.VALUE_ATTR)||""})),this.hiddenInput&&(this.hiddenInput.value=this.value)},e.prototype.getDefaultFoundation=function(){var t=i(i(i(i({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods());return new Rt(t,this.getFoundationMap())},e.prototype.menuSetup=function(t){this.menuElement=this.root.querySelector(yt.MENU_SELECTOR),this.menu=t(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map((function(t){return t.getAttribute(yt.VALUE_ATTR)||""}))},e.prototype.createRipple=function(){var t=this,n=i(i({},St.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(n,i){t.selectAnchor.addEventListener(n,i)},deregisterInteractionHandler:function(n,i){t.selectAnchor.removeEventListener(n,i)}});return new St(this.selectAnchor,new xt(n))},e.prototype.getSelectAdapterMethods=function(){var t=this;return{getMenuItemAttr:function(t,n){return t.getAttribute(n)},setSelectedText:function(n){t.selectedText.textContent=n},isSelectAnchorFocused:function(){return document.activeElement===t.selectAnchor},getSelectAnchorAttr:function(n){return t.selectAnchor.getAttribute(n)},setSelectAnchorAttr:function(n,i){t.selectAnchor.setAttribute(n,i)},removeSelectAnchorAttr:function(n){t.selectAnchor.removeAttribute(n)},addMenuClass:function(n){t.menuElement.classList.add(n)},removeMenuClass:function(n){t.menuElement.classList.remove(n)},openMenu:function(){t.menu.open=!0},closeMenu:function(){t.menu.open=!1},getAnchorElement:function(){return t.root.querySelector(yt.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(n){t.menu.setAnchorElement(n)},setMenuAnchorCorner:function(n){t.menu.setAnchorCorner(n)},setMenuWrapFocus:function(n){t.menu.wrapFocus=n},getSelectedIndex:function(){var n=t.menu.selectedIndex;return n instanceof Array?n[0]:n},setSelectedIndex:function(n){t.menu.selectedIndex=n},focusMenuItemAtIndex:function(n){t.menu.items[n].focus()},getMenuItemCount:function(){return t.menu.items.length},getMenuItemValues:function(){return t.menuItemValues},getMenuItemTextAtIndex:function(n){return t.menu.getPrimaryTextAtIndex(n)},isTypeaheadInProgress:function(){return t.menu.typeaheadInProgress},typeaheadMatchItem:function(n,i){return t.menu.typeaheadMatchItem(n,i)}}},e.prototype.getCommonAdapterMethods=function(){var t=this;return{addClass:function(n){t.root.classList.add(n)},removeClass:function(n){t.root.classList.remove(n)},hasClass:function(n){return t.root.classList.contains(n)},setRippleCenter:function(n){t.lineRipple&&t.lineRipple.setRippleCenter(n)},activateBottomLine:function(){t.lineRipple&&t.lineRipple.activate()},deactivateBottomLine:function(){t.lineRipple&&t.lineRipple.deactivate()},notifyChange:function(n){t.hiddenInput&&(t.hiddenInput.value=n),t.emit(yt.CHANGE_EVENT,{value:n,index:t.selectedIndex},!0)}}},e.prototype.getOutlineAdapterMethods=function(){var t=this;return{hasOutline:function(){return Boolean(t.outline)},notchOutline:function(n){t.outline&&t.outline.notch(n)},closeOutline:function(){t.outline&&t.outline.closeNotch()}}},e.prototype.getLabelAdapterMethods=function(){var t=this;return{hasLabel:function(){return!!t.label},floatLabel:function(n){t.label&&t.label.float(n)},getLabelWidth:function(){return t.label?t.label.getWidth():0},setLabelRequired:function(n){t.label&&t.label.setRequired(n)}}},e.prototype.getNormalizedXCoordinate=function(t){var n=t.target.getBoundingClientRect();return(this.isTouchEvent(t)?t.touches[0].clientX:t.clientX)-n.left},e.prototype.isTouchEvent=function(t){return Boolean(t.touches)},e.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},e}(o);export{Pt as M,n as _,i as a,u as b,St as c,It as d,xt as e,e as f,st as g,o as h,g as i,v as j,Et as k,h as m}
@@ -1 +1 @@
1
- import{r as t,h as a,H as e}from"./p-ac75c7ad.js";const r=class{constructor(a){t(this,a),this.cartCount=void 0,this.color="white",this.cartText="Cart"}render(){const t=this.getCssClassMap(),r="black"==this.color?'<svg xmlns="http://www.w3.org/2000/svg" width="31" height="28" viewBox="0 0 31 28" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M25.6721 19.7896H9.10889L8.04144 22.0952H25.8322V23.8418H24.836C25.1023 24.2481 25.2522 24.7173 25.27 25.2002C25.2878 25.6831 25.1728 26.1617 24.9371 26.5858C24.7014 27.01 24.3537 27.364 23.9305 27.6106C23.5072 27.8572 23.0242 27.9873 22.5321 27.9873C22.0399 27.9873 21.5569 27.8572 21.1336 27.6106C20.7104 27.364 20.3627 27.01 20.127 26.5858C19.8913 26.1617 19.7763 25.6831 19.7941 25.2002C19.8119 24.7173 19.9618 24.2481 20.2281 23.8418H10.8168C11.0509 24.1945 11.1974 24.5962 11.2445 25.0147C11.2916 25.4331 11.238 25.8565 11.088 26.2509C10.938 26.6453 10.6959 26.9996 10.381 27.2854C10.0662 27.5711 9.68739 27.7803 9.27516 27.8962C8.86293 28.012 8.42876 28.0312 8.00758 27.9523C7.5864 27.8734 7.18997 27.6985 6.85018 27.4417C6.51039 27.185 6.23672 26.8535 6.0512 26.474C5.86568 26.0945 5.77347 25.6775 5.78201 25.2566C5.78901 24.7578 5.93017 24.2698 6.1912 23.8418H5.05259L7.57888 17.4665H21.7048V15.9993H7.27644L2.72199 2.42785L0 1.46719V0L3.73607 1.29252L5.17712 5.23996H30.3333L25.6721 19.7896ZM7.75282 26.3603C7.97517 26.5062 8.23658 26.5841 8.504 26.5841C8.8626 26.5841 9.20652 26.4442 9.46008 26.1953C9.71365 25.9463 9.8561 25.6087 9.8561 25.2566C9.8561 24.9941 9.77681 24.7374 9.62823 24.5191C9.47966 24.3008 9.2685 24.1307 9.02143 24.0302C8.77437 23.9297 8.5025 23.9034 8.24022 23.9547C7.97794 24.0059 7.73702 24.1323 7.54792 24.3179C7.35883 24.5036 7.23005 24.7401 7.17788 24.9976C7.12571 25.2551 7.15249 25.522 7.25483 25.7646C7.35716 26.0072 7.53047 26.2145 7.75282 26.3603ZM21.7898 26.3603C22.0121 26.5062 22.2735 26.5841 22.5409 26.5841C22.8995 26.5841 23.2435 26.4442 23.497 26.1953C23.7506 25.9463 23.893 25.6087 23.893 25.2566C23.893 24.9941 23.8138 24.7374 23.6652 24.5191C23.5166 24.3008 23.3054 24.1307 23.0584 24.0302C22.8113 23.9297 22.5394 23.9034 22.2772 23.9547C22.0149 24.0059 21.774 24.1323 21.5849 24.3179C21.3958 24.5036 21.267 24.7401 21.2148 24.9976C21.1627 25.2551 21.1894 25.522 21.2918 25.7646C21.3941 26.0072 21.5674 26.2145 21.7898 26.3603ZM22.541 24.6628C22.4164 24.6593 22.2937 24.6927 22.1886 24.7585C22.0835 24.8243 22.001 24.9196 21.9516 25.032C21.9023 25.1444 21.8885 25.2687 21.9119 25.3889C21.9354 25.5091 21.9951 25.6196 22.0832 25.7061C22.1713 25.7927 22.2839 25.8513 22.4063 25.8743C22.5288 25.8973 22.6554 25.8837 22.7699 25.8353C22.8843 25.7869 22.9814 25.7059 23.0484 25.6027C23.1155 25.4995 23.1494 25.379 23.1459 25.2566C23.1459 25.0991 23.0822 24.9481 22.9688 24.8367C22.8553 24.7254 22.7015 24.6628 22.541 24.6628ZM8.50299 24.6628C8.37909 24.6628 8.25802 24.6992 8.15528 24.7672C8.05253 24.8351 7.97277 24.9317 7.92621 25.0444C7.87965 25.1571 7.8684 25.2809 7.8939 25.4C7.91941 25.519 7.9805 25.6279 8.06938 25.7126C8.15825 25.7974 8.27085 25.8542 8.39279 25.8758C8.51473 25.8973 8.64045 25.8827 8.75387 25.8337C8.86729 25.7848 8.96326 25.7037 9.02949 25.6009C9.09572 25.4981 9.12921 25.3783 9.12567 25.2567C9.12104 25.0976 9.0534 24.9465 8.93712 24.8356C8.82084 24.7247 8.6651 24.6627 8.50299 24.6628Z" fill="#20262A"/>\n</svg>\n':'<svg xmlns="http://www.w3.org/2000/svg" width="31" height="28" viewBox="0 0 31 28" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M25.6721 19.7896H9.10889L8.04144 22.0952H25.8322V23.8418H24.836C25.1023 24.2481 25.2522 24.7173 25.27 25.2002C25.2878 25.6831 25.1728 26.1617 24.9371 26.5858C24.7014 27.01 24.3537 27.364 23.9305 27.6106C23.5072 27.8572 23.0242 27.9873 22.5321 27.9873C22.0399 27.9873 21.5569 27.8572 21.1336 27.6106C20.7104 27.364 20.3627 27.01 20.127 26.5858C19.8913 26.1617 19.7763 25.6831 19.7941 25.2002C19.8119 24.7173 19.9618 24.2481 20.2281 23.8418H10.8168C11.0509 24.1945 11.1974 24.5962 11.2445 25.0147C11.2916 25.4331 11.238 25.8565 11.088 26.2509C10.938 26.6453 10.6959 26.9996 10.381 27.2854C10.0662 27.5711 9.68739 27.7803 9.27516 27.8962C8.86293 28.012 8.42876 28.0312 8.00758 27.9523C7.5864 27.8734 7.18997 27.6985 6.85018 27.4417C6.51039 27.185 6.23672 26.8535 6.0512 26.474C5.86568 26.0945 5.77347 25.6775 5.78201 25.2566C5.78901 24.7578 5.93017 24.2698 6.1912 23.8418H5.05259L7.57888 17.4665H21.7048V15.9993H7.27644L2.72199 2.42785L0 1.46719V0L3.73607 1.29252L5.17712 5.23996H30.3333L25.6721 19.7896ZM7.75282 26.3603C7.97517 26.5062 8.23658 26.5841 8.504 26.5841C8.8626 26.5841 9.20652 26.4442 9.46008 26.1953C9.71365 25.9463 9.8561 25.6087 9.8561 25.2566C9.8561 24.9941 9.77681 24.7374 9.62823 24.5191C9.47966 24.3008 9.2685 24.1307 9.02143 24.0302C8.77437 23.9297 8.5025 23.9034 8.24022 23.9547C7.97794 24.0059 7.73702 24.1323 7.54792 24.3179C7.35883 24.5036 7.23005 24.7401 7.17788 24.9976C7.12571 25.2551 7.15249 25.522 7.25483 25.7646C7.35716 26.0072 7.53047 26.2145 7.75282 26.3603ZM21.7898 26.3603C22.0121 26.5062 22.2735 26.5841 22.5409 26.5841C22.8995 26.5841 23.2435 26.4442 23.497 26.1953C23.7506 25.9463 23.893 25.6087 23.893 25.2566C23.893 24.9941 23.8138 24.7374 23.6652 24.5191C23.5166 24.3008 23.3054 24.1307 23.0584 24.0302C22.8113 23.9297 22.5394 23.9034 22.2772 23.9547C22.0149 24.0059 21.774 24.1323 21.5849 24.3179C21.3958 24.5036 21.267 24.7401 21.2148 24.9976C21.1627 25.2551 21.1894 25.522 21.2918 25.7646C21.3941 26.0072 21.5674 26.2145 21.7898 26.3603ZM22.541 24.6628C22.4164 24.6593 22.2937 24.6927 22.1886 24.7585C22.0835 24.8243 22.001 24.9196 21.9516 25.032C21.9023 25.1444 21.8885 25.2687 21.9119 25.3889C21.9354 25.5091 21.9951 25.6196 22.0832 25.7061C22.1713 25.7927 22.2839 25.8513 22.4063 25.8743C22.5288 25.8973 22.6554 25.8837 22.7699 25.8353C22.8843 25.7869 22.9814 25.7059 23.0484 25.6027C23.1155 25.4995 23.1494 25.379 23.1459 25.2566C23.1459 25.0991 23.0822 24.9481 22.9688 24.8367C22.8553 24.7254 22.7015 24.6628 22.541 24.6628ZM8.50299 24.6628C8.37909 24.6628 8.25802 24.6992 8.15528 24.7672C8.05253 24.8351 7.97277 24.9317 7.92621 25.0444C7.87965 25.1571 7.8684 25.2809 7.8939 25.4C7.91941 25.519 7.9805 25.6279 8.06938 25.7126C8.15825 25.7974 8.27085 25.8542 8.39279 25.8758C8.51473 25.8973 8.64045 25.8827 8.75387 25.8337C8.86729 25.7848 8.96326 25.7037 9.02949 25.6009C9.09572 25.4981 9.12921 25.3783 9.12567 25.2567C9.12104 25.0976 9.0534 24.9465 8.93712 24.8356C8.82084 24.7247 8.6651 24.6627 8.50299 24.6628Z" fill="white"/>\n</svg>\n',i="black"==this.color?"cart clear-background":"cart black-background";return a(e,{class:t},this.cartCount?a("div",{class:i,innerHTML:r,tabindex:"0"},a("span",{class:"cart-text"},this.cartText),a("div",{class:"cart__count"},this.cartCount)):a("div",{class:i,innerHTML:r},a("span",{class:"cart-text"},this.cartText)))}getCssClassMap(){return{"ptc-shopping-cart":!0,"mf-listen":!0}}};r.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{height:20px}:host .cart{border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-gray-12);box-shadow:var(--ptc-shadow-x-small);display:inline-block;padding:10px 16px;text-align:center;display:flex;align-items:center;box-sizing:border-box;position:relative;cursor:pointer}:host .cart .cart__count{position:absolute;top:-10px;right:-10px;background:var(--color-red-07);height:24px;min-width:24px;text-align:center;border-radius:50%;color:var(--color-white);vertical-align:middle;display:flex;justify-content:center;align-items:center;text-align:center;font-family:Raleway;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-semibold);line-height:24px;letter-spacing:0em}:host .cart .cart-text{font-weight:var(--ptc-font-weight-bold);margin-left:8px;color:var(--color-gray-12)}:host .cart.clear-background{background-color:var(--color-white)}:host .cart.clear-background:hover{background-color:var(--color-gray-02)}:host .cart.clear-background:active{background-color:var(--color-gray-03)}:host .cart.black-background{background-color:rgba(0, 0, 0, 0.8);border-color:rgba(255, 255, 255, 0.8)}:host .cart.black-background:hover{background-color:rgba(0, 0, 0, 0.85)}:host .cart.black-background:active{background-color:black}:host .cart.black-background .cart-text{color:var(--color-white)}:host .cart:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline);transition:none}";export{r as ptc_shopping_cart}
1
+ import{r as t,h as a,H as e}from"./p-944c5be8.js";const r=class{constructor(a){t(this,a),this.cartCount=void 0,this.color="white",this.cartText="Cart"}render(){const t=this.getCssClassMap(),r="black"==this.color?'<svg xmlns="http://www.w3.org/2000/svg" width="31" height="28" viewBox="0 0 31 28" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M25.6721 19.7896H9.10889L8.04144 22.0952H25.8322V23.8418H24.836C25.1023 24.2481 25.2522 24.7173 25.27 25.2002C25.2878 25.6831 25.1728 26.1617 24.9371 26.5858C24.7014 27.01 24.3537 27.364 23.9305 27.6106C23.5072 27.8572 23.0242 27.9873 22.5321 27.9873C22.0399 27.9873 21.5569 27.8572 21.1336 27.6106C20.7104 27.364 20.3627 27.01 20.127 26.5858C19.8913 26.1617 19.7763 25.6831 19.7941 25.2002C19.8119 24.7173 19.9618 24.2481 20.2281 23.8418H10.8168C11.0509 24.1945 11.1974 24.5962 11.2445 25.0147C11.2916 25.4331 11.238 25.8565 11.088 26.2509C10.938 26.6453 10.6959 26.9996 10.381 27.2854C10.0662 27.5711 9.68739 27.7803 9.27516 27.8962C8.86293 28.012 8.42876 28.0312 8.00758 27.9523C7.5864 27.8734 7.18997 27.6985 6.85018 27.4417C6.51039 27.185 6.23672 26.8535 6.0512 26.474C5.86568 26.0945 5.77347 25.6775 5.78201 25.2566C5.78901 24.7578 5.93017 24.2698 6.1912 23.8418H5.05259L7.57888 17.4665H21.7048V15.9993H7.27644L2.72199 2.42785L0 1.46719V0L3.73607 1.29252L5.17712 5.23996H30.3333L25.6721 19.7896ZM7.75282 26.3603C7.97517 26.5062 8.23658 26.5841 8.504 26.5841C8.8626 26.5841 9.20652 26.4442 9.46008 26.1953C9.71365 25.9463 9.8561 25.6087 9.8561 25.2566C9.8561 24.9941 9.77681 24.7374 9.62823 24.5191C9.47966 24.3008 9.2685 24.1307 9.02143 24.0302C8.77437 23.9297 8.5025 23.9034 8.24022 23.9547C7.97794 24.0059 7.73702 24.1323 7.54792 24.3179C7.35883 24.5036 7.23005 24.7401 7.17788 24.9976C7.12571 25.2551 7.15249 25.522 7.25483 25.7646C7.35716 26.0072 7.53047 26.2145 7.75282 26.3603ZM21.7898 26.3603C22.0121 26.5062 22.2735 26.5841 22.5409 26.5841C22.8995 26.5841 23.2435 26.4442 23.497 26.1953C23.7506 25.9463 23.893 25.6087 23.893 25.2566C23.893 24.9941 23.8138 24.7374 23.6652 24.5191C23.5166 24.3008 23.3054 24.1307 23.0584 24.0302C22.8113 23.9297 22.5394 23.9034 22.2772 23.9547C22.0149 24.0059 21.774 24.1323 21.5849 24.3179C21.3958 24.5036 21.267 24.7401 21.2148 24.9976C21.1627 25.2551 21.1894 25.522 21.2918 25.7646C21.3941 26.0072 21.5674 26.2145 21.7898 26.3603ZM22.541 24.6628C22.4164 24.6593 22.2937 24.6927 22.1886 24.7585C22.0835 24.8243 22.001 24.9196 21.9516 25.032C21.9023 25.1444 21.8885 25.2687 21.9119 25.3889C21.9354 25.5091 21.9951 25.6196 22.0832 25.7061C22.1713 25.7927 22.2839 25.8513 22.4063 25.8743C22.5288 25.8973 22.6554 25.8837 22.7699 25.8353C22.8843 25.7869 22.9814 25.7059 23.0484 25.6027C23.1155 25.4995 23.1494 25.379 23.1459 25.2566C23.1459 25.0991 23.0822 24.9481 22.9688 24.8367C22.8553 24.7254 22.7015 24.6628 22.541 24.6628ZM8.50299 24.6628C8.37909 24.6628 8.25802 24.6992 8.15528 24.7672C8.05253 24.8351 7.97277 24.9317 7.92621 25.0444C7.87965 25.1571 7.8684 25.2809 7.8939 25.4C7.91941 25.519 7.9805 25.6279 8.06938 25.7126C8.15825 25.7974 8.27085 25.8542 8.39279 25.8758C8.51473 25.8973 8.64045 25.8827 8.75387 25.8337C8.86729 25.7848 8.96326 25.7037 9.02949 25.6009C9.09572 25.4981 9.12921 25.3783 9.12567 25.2567C9.12104 25.0976 9.0534 24.9465 8.93712 24.8356C8.82084 24.7247 8.6651 24.6627 8.50299 24.6628Z" fill="#20262A"/>\n</svg>\n':'<svg xmlns="http://www.w3.org/2000/svg" width="31" height="28" viewBox="0 0 31 28" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M25.6721 19.7896H9.10889L8.04144 22.0952H25.8322V23.8418H24.836C25.1023 24.2481 25.2522 24.7173 25.27 25.2002C25.2878 25.6831 25.1728 26.1617 24.9371 26.5858C24.7014 27.01 24.3537 27.364 23.9305 27.6106C23.5072 27.8572 23.0242 27.9873 22.5321 27.9873C22.0399 27.9873 21.5569 27.8572 21.1336 27.6106C20.7104 27.364 20.3627 27.01 20.127 26.5858C19.8913 26.1617 19.7763 25.6831 19.7941 25.2002C19.8119 24.7173 19.9618 24.2481 20.2281 23.8418H10.8168C11.0509 24.1945 11.1974 24.5962 11.2445 25.0147C11.2916 25.4331 11.238 25.8565 11.088 26.2509C10.938 26.6453 10.6959 26.9996 10.381 27.2854C10.0662 27.5711 9.68739 27.7803 9.27516 27.8962C8.86293 28.012 8.42876 28.0312 8.00758 27.9523C7.5864 27.8734 7.18997 27.6985 6.85018 27.4417C6.51039 27.185 6.23672 26.8535 6.0512 26.474C5.86568 26.0945 5.77347 25.6775 5.78201 25.2566C5.78901 24.7578 5.93017 24.2698 6.1912 23.8418H5.05259L7.57888 17.4665H21.7048V15.9993H7.27644L2.72199 2.42785L0 1.46719V0L3.73607 1.29252L5.17712 5.23996H30.3333L25.6721 19.7896ZM7.75282 26.3603C7.97517 26.5062 8.23658 26.5841 8.504 26.5841C8.8626 26.5841 9.20652 26.4442 9.46008 26.1953C9.71365 25.9463 9.8561 25.6087 9.8561 25.2566C9.8561 24.9941 9.77681 24.7374 9.62823 24.5191C9.47966 24.3008 9.2685 24.1307 9.02143 24.0302C8.77437 23.9297 8.5025 23.9034 8.24022 23.9547C7.97794 24.0059 7.73702 24.1323 7.54792 24.3179C7.35883 24.5036 7.23005 24.7401 7.17788 24.9976C7.12571 25.2551 7.15249 25.522 7.25483 25.7646C7.35716 26.0072 7.53047 26.2145 7.75282 26.3603ZM21.7898 26.3603C22.0121 26.5062 22.2735 26.5841 22.5409 26.5841C22.8995 26.5841 23.2435 26.4442 23.497 26.1953C23.7506 25.9463 23.893 25.6087 23.893 25.2566C23.893 24.9941 23.8138 24.7374 23.6652 24.5191C23.5166 24.3008 23.3054 24.1307 23.0584 24.0302C22.8113 23.9297 22.5394 23.9034 22.2772 23.9547C22.0149 24.0059 21.774 24.1323 21.5849 24.3179C21.3958 24.5036 21.267 24.7401 21.2148 24.9976C21.1627 25.2551 21.1894 25.522 21.2918 25.7646C21.3941 26.0072 21.5674 26.2145 21.7898 26.3603ZM22.541 24.6628C22.4164 24.6593 22.2937 24.6927 22.1886 24.7585C22.0835 24.8243 22.001 24.9196 21.9516 25.032C21.9023 25.1444 21.8885 25.2687 21.9119 25.3889C21.9354 25.5091 21.9951 25.6196 22.0832 25.7061C22.1713 25.7927 22.2839 25.8513 22.4063 25.8743C22.5288 25.8973 22.6554 25.8837 22.7699 25.8353C22.8843 25.7869 22.9814 25.7059 23.0484 25.6027C23.1155 25.4995 23.1494 25.379 23.1459 25.2566C23.1459 25.0991 23.0822 24.9481 22.9688 24.8367C22.8553 24.7254 22.7015 24.6628 22.541 24.6628ZM8.50299 24.6628C8.37909 24.6628 8.25802 24.6992 8.15528 24.7672C8.05253 24.8351 7.97277 24.9317 7.92621 25.0444C7.87965 25.1571 7.8684 25.2809 7.8939 25.4C7.91941 25.519 7.9805 25.6279 8.06938 25.7126C8.15825 25.7974 8.27085 25.8542 8.39279 25.8758C8.51473 25.8973 8.64045 25.8827 8.75387 25.8337C8.86729 25.7848 8.96326 25.7037 9.02949 25.6009C9.09572 25.4981 9.12921 25.3783 9.12567 25.2567C9.12104 25.0976 9.0534 24.9465 8.93712 24.8356C8.82084 24.7247 8.6651 24.6627 8.50299 24.6628Z" fill="white"/>\n</svg>\n',i="black"==this.color?"cart clear-background":"cart black-background";return a(e,{class:t},this.cartCount?a("div",{class:i,innerHTML:r,tabindex:"0"},a("span",{class:"cart-text"},this.cartText),a("div",{class:"cart__count"},this.cartCount)):a("div",{class:i,innerHTML:r},a("span",{class:"cart-text"},this.cartText)))}getCssClassMap(){return{"ptc-shopping-cart":!0,"mf-listen":!0}}};r.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{height:20px}:host .cart{border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-gray-12);box-shadow:var(--ptc-shadow-x-small);display:inline-block;padding:10px 16px;text-align:center;display:flex;align-items:center;box-sizing:border-box;position:relative;cursor:pointer}:host .cart .cart__count{position:absolute;top:-10px;right:-10px;background:var(--color-red-07);height:24px;min-width:24px;text-align:center;border-radius:50%;color:var(--color-white);vertical-align:middle;display:flex;justify-content:center;align-items:center;text-align:center;font-family:Raleway;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-semibold);line-height:24px;letter-spacing:0em}:host .cart .cart-text{font-weight:var(--ptc-font-weight-bold);margin-left:8px;color:var(--color-gray-12)}:host .cart.clear-background{background-color:var(--color-white)}:host .cart.clear-background:hover{background-color:var(--color-gray-02)}:host .cart.clear-background:active{background-color:var(--color-gray-03)}:host .cart.black-background{background-color:rgba(0, 0, 0, 0.8);border-color:rgba(255, 255, 255, 0.8)}:host .cart.black-background:hover{background-color:rgba(0, 0, 0, 0.85)}:host .cart.black-background:active{background-color:black}:host .cart.black-background .cart-text{color:var(--color-white)}:host .cart:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline);transition:none}";export{r as ptc_shopping_cart}