@esri/solutions-components 0.8.67 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1304) hide show
  1. package/dist/cjs/arcgis-login.cjs.entry.js +3 -2
  2. package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
  3. package/dist/cjs/buffer-tools_3.cjs.entry.js +2 -2
  4. package/dist/cjs/calcite-accordion-item.cjs.entry.js +7 -6
  5. package/dist/cjs/calcite-accordion.cjs.entry.js +4 -3
  6. package/dist/cjs/calcite-action-bar.cjs.entry.js +14 -13
  7. package/dist/cjs/calcite-action-group.cjs.entry.js +11 -10
  8. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
  9. package/dist/cjs/calcite-alert_4.cjs.entry.js +4 -4
  10. package/dist/cjs/calcite-block-section.cjs.entry.js +10 -9
  11. package/dist/cjs/calcite-block_5.cjs.entry.js +7 -7
  12. package/dist/cjs/calcite-button.cjs.entry.js +15 -14
  13. package/dist/cjs/calcite-card-group.cjs.entry.js +8 -7
  14. package/dist/cjs/calcite-card.cjs.entry.js +12 -11
  15. package/dist/cjs/calcite-carousel-item.cjs.entry.js +3 -2
  16. package/dist/cjs/calcite-carousel.cjs.entry.js +12 -11
  17. package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -10
  18. package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -7
  19. package/dist/cjs/calcite-color-picker.cjs.entry.js +23 -23
  20. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +6 -5
  21. package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +2 -2
  22. package/dist/cjs/calcite-fab.cjs.entry.js +8 -7
  23. package/dist/cjs/calcite-flow_6.cjs.entry.js +2 -2
  24. package/dist/cjs/calcite-icon.cjs.entry.js +7 -6
  25. package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -12
  26. package/dist/cjs/calcite-input-number.cjs.entry.js +15 -14
  27. package/dist/cjs/calcite-input-text.cjs.entry.js +15 -14
  28. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +17 -17
  29. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -13
  30. package/dist/cjs/calcite-label.cjs.entry.js +6 -5
  31. package/dist/cjs/calcite-link.cjs.entry.js +8 -7
  32. package/dist/cjs/calcite-list-item-group.cjs.entry.js +5 -4
  33. package/dist/cjs/calcite-menu-item.cjs.entry.js +10 -9
  34. package/dist/cjs/calcite-menu.cjs.entry.js +10 -9
  35. package/dist/cjs/calcite-meter.cjs.entry.js +10 -9
  36. package/dist/cjs/calcite-modal.cjs.entry.js +13 -18
  37. package/dist/cjs/calcite-navigation-logo.cjs.entry.js +5 -4
  38. package/dist/cjs/calcite-navigation.cjs.entry.js +6 -5
  39. package/dist/cjs/calcite-notice.cjs.entry.js +12 -11
  40. package/dist/cjs/calcite-option-group.cjs.entry.js +3 -2
  41. package/dist/cjs/calcite-pagination.cjs.entry.js +10 -202
  42. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +8 -7
  43. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +25 -24
  44. package/dist/cjs/calcite-pick-list.cjs.entry.js +12 -11
  45. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +6 -5
  46. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -9
  47. package/dist/cjs/calcite-rating.cjs.entry.js +14 -15
  48. package/dist/cjs/calcite-sheet.cjs.entry.js +9 -8
  49. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +7 -6
  50. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -2
  51. package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -8
  52. package/dist/cjs/calcite-split-button.cjs.entry.js +6 -5
  53. package/dist/cjs/calcite-stepper-item.cjs.entry.js +12 -11
  54. package/dist/cjs/calcite-stepper.cjs.entry.js +9 -8
  55. package/dist/cjs/calcite-switch.cjs.entry.js +11 -10
  56. package/dist/cjs/calcite-table-row.cjs.entry.js +8 -7
  57. package/dist/cjs/calcite-table.cjs.entry.js +11 -10
  58. package/dist/cjs/calcite-text-area.cjs.entry.js +18 -16
  59. package/dist/cjs/calcite-tile-group.cjs.entry.js +8 -7
  60. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +5 -4
  61. package/dist/cjs/calcite-tile-select.cjs.entry.js +6 -5
  62. package/dist/cjs/calcite-tile.cjs.entry.js +8 -7
  63. package/dist/cjs/calcite-time-picker.cjs.entry.js +11 -10
  64. package/dist/cjs/calcite-tip-group.cjs.entry.js +3 -2
  65. package/dist/cjs/calcite-tip-manager.cjs.entry.js +10 -16
  66. package/dist/cjs/calcite-tip.cjs.entry.js +11 -10
  67. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -8
  68. package/dist/cjs/card-manager_3.cjs.entry.js +3 -3
  69. package/dist/cjs/consent-manager.cjs.entry.js +7 -350
  70. package/dist/cjs/crowdsource-manager.cjs.entry.js +9 -9
  71. package/dist/cjs/crowdsource-reporter.cjs.entry.js +9 -10
  72. package/dist/cjs/deduct-calculator.cjs.entry.js +3 -2
  73. package/dist/cjs/{downloadUtils-737851e4.js → downloadUtils-69c90822.js} +2 -2
  74. package/dist/cjs/feature-comments.cjs.entry.js +3 -2
  75. package/dist/cjs/feature-form-flow-item.cjs.entry.js +3 -2
  76. package/dist/cjs/feature-list.cjs.entry.js +12 -12
  77. package/dist/cjs/features-flow-item.cjs.entry.js +3 -2
  78. package/dist/cjs/{helpers-758e7ae8.js → helpers-3cad996e.js} +1 -1
  79. package/dist/cjs/index.cjs.js +0 -15
  80. package/dist/cjs/{index.es-c00eb740.js → index.es-3bcb5f03.js} +3 -3
  81. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
  82. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +6 -5
  83. package/dist/cjs/instant-apps-create.cjs.entry.js +9 -8
  84. package/dist/cjs/instant-apps-export-views.cjs.entry.js +9 -8
  85. package/dist/cjs/instant-apps-export.cjs.entry.js +9 -8
  86. package/dist/cjs/instant-apps-header.cjs.entry.js +6 -6
  87. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +28 -33
  88. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
  89. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +8 -8
  90. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
  91. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +10 -10
  92. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +8 -7
  93. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +3 -2
  94. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +11 -10
  95. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +11 -10
  96. package/dist/cjs/instant-apps-measurement.cjs.entry.js +8 -7
  97. package/dist/cjs/instant-apps-popover.cjs.entry.js +8 -7
  98. package/dist/cjs/instant-apps-popovers.cjs.entry.js +3 -2
  99. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +8 -7
  100. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +8 -7
  101. package/dist/cjs/instant-apps-splash.cjs.entry.js +8 -7
  102. package/dist/cjs/{languageSwitcher-f0bb94fa.js → languageSwitcher-dc2dd354.js} +1 -1
  103. package/dist/cjs/{languageUtil-f22ce913.js → languageUtil-a3e1eafd.js} +1 -1
  104. package/dist/cjs/layout-manager.cjs.entry.js +6 -6
  105. package/dist/cjs/list-flow-item.cjs.entry.js +3 -2
  106. package/dist/cjs/{loadModules-0a42affb.js → loadModules-8567855e.js} +1 -1
  107. package/dist/cjs/loader.cjs.js +4 -4
  108. package/dist/cjs/{locale-d3582284.js → locale-1d07e942.js} +2 -2
  109. package/dist/cjs/{locale-6c657db5.js → locale-33a0038a.js} +1 -1
  110. package/dist/cjs/location-flow-item.cjs.entry.js +3 -2
  111. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  112. package/dist/cjs/pci-calculator.cjs.entry.js +3 -2
  113. package/dist/cjs/{popupUtils-92b936a2.js → popupUtils-51b6c78d.js} +2 -2
  114. package/dist/cjs/public-notification.cjs.entry.js +13 -13
  115. package/dist/cjs/refine-results-flow-item.cjs.entry.js +3 -2
  116. package/dist/cjs/share-item.cjs.entry.js +3 -2
  117. package/dist/cjs/solution-configuration.cjs.entry.js +1108 -23
  118. package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
  119. package/dist/cjs/solution-item-icon.cjs.entry.js +3 -2
  120. package/dist/cjs/solutions-components.cjs.js +5 -32
  121. package/dist/cjs/spatial-ref.cjs.entry.js +8 -8
  122. package/dist/cjs/store-manager.cjs.entry.js +7 -6
  123. package/dist/cjs/{utils-057900e0.js → utils-8d9c798c.js} +1 -1
  124. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -1
  125. package/dist/components/ExpandToggle.js +8 -8
  126. package/dist/components/_commonjsHelpers.js +0 -23
  127. package/dist/components/action-bar.js +5 -4
  128. package/dist/components/action-group.js +4 -3
  129. package/dist/components/action-menu.js +3 -2
  130. package/dist/components/action-pad.js +3 -2
  131. package/dist/components/action.js +3 -2
  132. package/dist/components/alert.js +4 -3
  133. package/dist/components/arcgis-login.js +3 -2
  134. package/dist/components/avatar.js +3 -2
  135. package/dist/components/basemap-gallery2.js +3 -2
  136. package/dist/components/block.js +3 -2
  137. package/dist/components/buffer-tools2.js +3 -2
  138. package/dist/components/button.js +3 -2
  139. package/dist/components/calcite-accordion-item.js +3 -2
  140. package/dist/components/calcite-accordion.js +3 -2
  141. package/dist/components/calcite-block-section.js +3 -2
  142. package/dist/components/calcite-card-group.js +3 -2
  143. package/dist/components/calcite-card.js +3 -2
  144. package/dist/components/calcite-carousel-item.js +3 -2
  145. package/dist/components/calcite-carousel.js +3 -2
  146. package/dist/components/calcite-chip-group.js +3 -2
  147. package/dist/components/calcite-color-picker.js +20 -19
  148. package/dist/components/calcite-combobox-item-group.js +3 -2
  149. package/dist/components/calcite-fab.js +3 -2
  150. package/dist/components/calcite-inline-editable.js +3 -2
  151. package/dist/components/calcite-input-time-picker.js +4 -7
  152. package/dist/components/calcite-input-time-zone.js +4 -3
  153. package/dist/components/calcite-list-item-group.js +3 -2
  154. package/dist/components/calcite-menu-item.js +3 -2
  155. package/dist/components/calcite-meter.js +3 -2
  156. package/dist/components/calcite-navigation-logo.js +3 -2
  157. package/dist/components/calcite-navigation.js +3 -2
  158. package/dist/components/calcite-option-group.js +3 -2
  159. package/dist/components/calcite-pick-list-group.js +5 -4
  160. package/dist/components/calcite-pick-list.js +3 -2
  161. package/dist/components/calcite-radio-button-group.js +3 -2
  162. package/dist/components/calcite-rating.js +3 -4
  163. package/dist/components/calcite-sheet.js +3 -2
  164. package/dist/components/calcite-shell-center-row.js +3 -2
  165. package/dist/components/calcite-sortable-list.js +3 -2
  166. package/dist/components/calcite-split-button.js +3 -2
  167. package/dist/components/calcite-stepper-item.js +3 -2
  168. package/dist/components/calcite-stepper.js +3 -2
  169. package/dist/components/calcite-table-row.js +3 -2
  170. package/dist/components/calcite-table.js +3 -2
  171. package/dist/components/calcite-text-area.js +4 -3
  172. package/dist/components/calcite-tile-group.js +3 -2
  173. package/dist/components/calcite-tile-select-group.js +3 -2
  174. package/dist/components/calcite-tile-select.js +3 -2
  175. package/dist/components/calcite-tile.js +3 -2
  176. package/dist/components/calcite-tip-group.js +3 -2
  177. package/dist/components/calcite-tip-manager.js +3 -9
  178. package/dist/components/calcite-tip.js +4 -3
  179. package/dist/components/card-manager2.js +3 -2
  180. package/dist/components/checkbox.js +3 -2
  181. package/dist/components/chip.js +3 -2
  182. package/dist/components/color-picker-hex-input.js +12 -11
  183. package/dist/components/color-picker-swatch.js +6 -5
  184. package/dist/components/combobox-item.js +3 -2
  185. package/dist/components/combobox.js +5 -4
  186. package/dist/components/consent-manager.js +4 -346
  187. package/dist/components/core.js +0 -309
  188. package/dist/components/create-feature2.js +3 -2
  189. package/dist/components/create-related-feature2.js +3 -2
  190. package/dist/components/crowdsource-manager.js +6 -3
  191. package/dist/components/crowdsource-reporter.js +3 -2
  192. package/dist/components/date-picker-day.js +3 -2
  193. package/dist/components/date-picker-month-header.js +3 -2
  194. package/dist/components/date-picker-month.js +3 -2
  195. package/dist/components/date-picker.js +3 -2
  196. package/dist/components/deduct-calculator2.js +3 -2
  197. package/dist/components/delete-button2.js +3 -2
  198. package/dist/components/dom.js +0 -27
  199. package/dist/components/downloadUtils.js +96 -1176
  200. package/dist/components/dropdown-group.js +3 -2
  201. package/dist/components/dropdown-item.js +3 -2
  202. package/dist/components/dropdown.js +3 -2
  203. package/dist/components/edit-card2.js +3 -2
  204. package/dist/components/esri-loader.js +6 -11
  205. package/dist/components/feature-comments.js +3 -2
  206. package/dist/components/feature-details2.js +3 -2
  207. package/dist/components/feature-form-flow-item.js +3 -2
  208. package/dist/components/feature-list2.js +3 -2
  209. package/dist/components/features-flow-item.js +3 -2
  210. package/dist/components/filter.js +730 -1
  211. package/dist/components/filter2.js +4 -3
  212. package/dist/components/floating-ui.js +13 -89
  213. package/dist/components/floor-filter2.js +3 -2
  214. package/dist/components/flow-item.js +4 -3
  215. package/dist/components/flow.js +3 -2
  216. package/dist/components/form.js +1 -1
  217. package/dist/components/graph.js +3 -2
  218. package/dist/components/handle.js +3 -2
  219. package/dist/components/helpers.js +2 -6
  220. package/dist/components/html2canvas.js +4 -9
  221. package/dist/components/icon.js +3 -2
  222. package/dist/components/index.es.js +79 -441
  223. package/dist/components/index.js +0 -16
  224. package/dist/components/index2.js +9 -17
  225. package/dist/components/index3.js +1863 -41457
  226. package/dist/components/index4.js +162 -2068
  227. package/dist/components/index5.js +184 -179
  228. package/dist/components/index6.js +55 -188
  229. package/dist/components/info-card2.js +3 -2
  230. package/dist/components/input-date-picker.js +4 -3
  231. package/dist/components/input-message.js +3 -2
  232. package/dist/components/input-number.js +3 -2
  233. package/dist/components/input-text.js +3 -2
  234. package/dist/components/input.js +3 -2
  235. package/dist/components/instant-apps-ckeditor-wrapper2.js +3 -2
  236. package/dist/components/instant-apps-control-panel.js +3 -2
  237. package/dist/components/instant-apps-create.js +3 -2
  238. package/dist/components/instant-apps-export-views.js +3 -2
  239. package/dist/components/instant-apps-export.js +3 -2
  240. package/dist/components/instant-apps-filter-list2.js +6 -6
  241. package/dist/components/instant-apps-header2.js +4 -3
  242. package/dist/components/instant-apps-interactive-legend-classic2.js +13 -17
  243. package/dist/components/instant-apps-interactive-legend-count2.js +4 -3
  244. package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +3 -2
  245. package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +3 -2
  246. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +3 -2
  247. package/dist/components/instant-apps-interactive-legend-layer-element2.js +3 -2
  248. package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +4 -3
  249. package/dist/components/instant-apps-interactive-legend-legend-element2.js +3 -2
  250. package/dist/components/instant-apps-interactive-legend-relationship2.js +3 -2
  251. package/dist/components/instant-apps-interactive-legend.js +3 -2
  252. package/dist/components/instant-apps-keyboard-shortcuts.js +3 -2
  253. package/dist/components/instant-apps-landing-page.js +3 -2
  254. package/dist/components/instant-apps-language-switcher.js +4 -3
  255. package/dist/components/instant-apps-language-translator-item2.js +3 -2
  256. package/dist/components/instant-apps-language-translator-search2.js +3 -2
  257. package/dist/components/instant-apps-language-translator2.js +3 -2
  258. package/dist/components/instant-apps-measurement-tool2.js +3 -2
  259. package/dist/components/instant-apps-measurement.js +3 -2
  260. package/dist/components/instant-apps-popover.js +3 -2
  261. package/dist/components/instant-apps-popovers.js +3 -2
  262. package/dist/components/instant-apps-scoreboard.js +3 -2
  263. package/dist/components/instant-apps-sign-in2.js +3 -2
  264. package/dist/components/instant-apps-social-share2.js +3 -2
  265. package/dist/components/instant-apps-splash.js +4 -3
  266. package/dist/components/json-editor2.js +3 -2
  267. package/dist/components/key.js +0 -28
  268. package/dist/components/label.js +1 -1
  269. package/dist/components/label2.js +3 -2
  270. package/dist/components/languageUtil.js +1 -22
  271. package/dist/components/layer-list2.js +3 -2
  272. package/dist/components/layer-table2.js +3 -2
  273. package/dist/components/layout-manager.js +3 -2
  274. package/dist/components/link.js +3 -2
  275. package/dist/components/list-flow-item.js +3 -2
  276. package/dist/components/list-item.js +3 -2
  277. package/dist/components/list.js +5 -4
  278. package/dist/components/loader.js +3 -2
  279. package/dist/components/locale.js +0 -12
  280. package/dist/components/locale2.js +1 -2
  281. package/dist/components/location-flow-item.js +3 -2
  282. package/dist/components/map-card2.js +3 -2
  283. package/dist/components/map-draw-tools2.js +3 -2
  284. package/dist/components/map-fullscreen2.js +3 -2
  285. package/dist/components/map-layer-picker2.js +3 -2
  286. package/dist/components/map-legend2.js +3 -2
  287. package/dist/components/map-picker2.js +3 -2
  288. package/dist/components/map-search2.js +3 -2
  289. package/dist/components/map-select-tools2.js +3 -2
  290. package/dist/components/map-tools2.js +3 -4
  291. package/dist/components/menu.js +3 -2
  292. package/dist/components/modal.js +3 -8
  293. package/dist/components/mode.js +0 -8
  294. package/dist/components/navigation-user.js +3 -2
  295. package/dist/components/notice.js +3 -2
  296. package/dist/components/openCloseComponent.js +0 -48
  297. package/dist/components/option.js +3 -2
  298. package/dist/components/pagination.js +3 -195
  299. package/dist/components/panel.js +4 -4
  300. package/dist/components/pci-calculator.js +4 -3
  301. package/dist/components/pdf-download2.js +3 -2
  302. package/dist/components/pick-list-item.js +3 -2
  303. package/dist/components/popover.js +3 -2
  304. package/dist/components/progress.js +3 -2
  305. package/dist/components/public-notification.js +3 -2
  306. package/dist/components/publicNotificationStore.js +1 -1
  307. package/dist/components/purify.js +3 -6
  308. package/dist/components/queryUtils.js +0 -59
  309. package/dist/components/radio-button.js +3 -2
  310. package/dist/components/refine-results-flow-item.js +3 -2
  311. package/dist/components/refine-selection2.js +3 -2
  312. package/dist/components/resources.js +0 -17
  313. package/dist/components/resources5.js +0 -3
  314. package/dist/components/scrim.js +3 -2
  315. package/dist/components/segmented-control-item.js +3 -2
  316. package/dist/components/segmented-control.js +3 -2
  317. package/dist/components/select.js +3 -2
  318. package/dist/components/share-item.js +3 -2
  319. package/dist/components/shared-list-render.js +1 -6
  320. package/dist/components/shell-panel.js +3 -2
  321. package/dist/components/shell.js +3 -2
  322. package/dist/components/slider.js +3 -2
  323. package/dist/components/solution-configuration.js +1090 -3
  324. package/dist/components/solution-contents2.js +3 -2
  325. package/dist/components/solution-item-details2.js +3 -2
  326. package/dist/components/solution-item-icon2.js +3 -2
  327. package/dist/components/solution-item-sharing2.js +3 -2
  328. package/dist/components/solution-item2.js +3 -2
  329. package/dist/components/solution-organization-variables2.js +3 -2
  330. package/dist/components/solution-resource-item2.js +5 -3
  331. package/dist/components/solution-spatial-ref2.js +4 -3
  332. package/dist/components/solution-store.js +767 -2
  333. package/dist/components/solution-template-data2.js +3 -2
  334. package/dist/components/solution-variables2.js +3 -2
  335. package/dist/components/sortableComponent.js +0 -701
  336. package/dist/components/spatial-ref2.js +6 -264
  337. package/dist/components/stack.js +3 -2
  338. package/dist/components/store-manager.js +1 -1
  339. package/dist/components/store.js +1 -2
  340. package/dist/components/switch.js +3 -2
  341. package/dist/components/t9n.js +1 -1
  342. package/dist/components/tab-nav.js +3 -2
  343. package/dist/components/tab-title.js +3 -2
  344. package/dist/components/tab.js +3 -2
  345. package/dist/components/table-cell.js +3 -2
  346. package/dist/components/table-header.js +3 -2
  347. package/dist/components/tabs.js +3 -2
  348. package/dist/components/templates.js +3 -44
  349. package/dist/components/time-picker.js +4 -3
  350. package/dist/components/tooltip.js +3 -2
  351. package/dist/components/tree-item.js +3 -2
  352. package/dist/components/tree.js +3 -2
  353. package/dist/components/utils.js +1 -6
  354. package/dist/components/utils2.js +1 -1
  355. package/dist/components/utils4.js +1 -13
  356. package/dist/components/value-list-item.js +4 -3
  357. package/dist/components/value-list.js +3 -5
  358. package/dist/esm/arcgis-login.entry.js +3 -2
  359. package/dist/esm/basemap-gallery_7.entry.js +2 -2
  360. package/dist/esm/buffer-tools_3.entry.js +2 -2
  361. package/dist/esm/calcite-accordion-item.entry.js +7 -6
  362. package/dist/esm/calcite-accordion.entry.js +4 -3
  363. package/dist/esm/calcite-action-bar.entry.js +13 -12
  364. package/dist/esm/calcite-action-group.entry.js +14 -13
  365. package/dist/esm/calcite-action-pad_2.entry.js +2 -2
  366. package/dist/esm/calcite-alert_4.entry.js +4 -4
  367. package/dist/esm/calcite-block-section.entry.js +10 -9
  368. package/dist/esm/calcite-block_5.entry.js +7 -7
  369. package/dist/esm/calcite-button.entry.js +15 -14
  370. package/dist/esm/calcite-card-group.entry.js +8 -7
  371. package/dist/esm/calcite-card.entry.js +12 -11
  372. package/dist/esm/calcite-carousel-item.entry.js +3 -2
  373. package/dist/esm/calcite-carousel.entry.js +12 -11
  374. package/dist/esm/calcite-checkbox.entry.js +11 -10
  375. package/dist/esm/calcite-chip-group.entry.js +8 -7
  376. package/dist/esm/calcite-color-picker.entry.js +29 -29
  377. package/dist/esm/calcite-combobox-item-group.entry.js +6 -5
  378. package/dist/esm/calcite-dropdown-group_2.entry.js +2 -2
  379. package/dist/esm/calcite-fab.entry.js +8 -7
  380. package/dist/esm/calcite-flow_6.entry.js +2 -2
  381. package/dist/esm/calcite-icon.entry.js +7 -6
  382. package/dist/esm/calcite-inline-editable.entry.js +13 -12
  383. package/dist/esm/calcite-input-number.entry.js +15 -14
  384. package/dist/esm/calcite-input-text.entry.js +15 -14
  385. package/dist/esm/calcite-input-time-picker.entry.js +17 -17
  386. package/dist/esm/calcite-input-time-zone.entry.js +14 -13
  387. package/dist/esm/calcite-label.entry.js +6 -5
  388. package/dist/esm/calcite-link.entry.js +8 -7
  389. package/dist/esm/calcite-list-item-group.entry.js +5 -4
  390. package/dist/esm/calcite-menu-item.entry.js +10 -9
  391. package/dist/esm/calcite-menu.entry.js +10 -9
  392. package/dist/esm/calcite-meter.entry.js +10 -9
  393. package/dist/esm/calcite-modal.entry.js +13 -18
  394. package/dist/esm/calcite-navigation-logo.entry.js +5 -4
  395. package/dist/esm/calcite-navigation.entry.js +6 -5
  396. package/dist/esm/calcite-notice.entry.js +12 -11
  397. package/dist/esm/calcite-option-group.entry.js +3 -2
  398. package/dist/esm/calcite-pagination.entry.js +10 -202
  399. package/dist/esm/calcite-pick-list-group.entry.js +8 -7
  400. package/dist/esm/calcite-pick-list-item.entry.js +15 -14
  401. package/dist/esm/calcite-pick-list.entry.js +12 -11
  402. package/dist/esm/calcite-radio-button-group.entry.js +6 -5
  403. package/dist/esm/calcite-radio-button.entry.js +10 -9
  404. package/dist/esm/calcite-rating.entry.js +14 -15
  405. package/dist/esm/calcite-sheet.entry.js +9 -8
  406. package/dist/esm/calcite-shell-center-row.entry.js +7 -6
  407. package/dist/esm/calcite-shell-panel_14.entry.js +2 -2
  408. package/dist/esm/calcite-sortable-list.entry.js +9 -8
  409. package/dist/esm/calcite-split-button.entry.js +6 -5
  410. package/dist/esm/calcite-stepper-item.entry.js +12 -11
  411. package/dist/esm/calcite-stepper.entry.js +9 -8
  412. package/dist/esm/calcite-switch.entry.js +11 -10
  413. package/dist/esm/calcite-table-row.entry.js +8 -7
  414. package/dist/esm/calcite-table.entry.js +11 -10
  415. package/dist/esm/calcite-text-area.entry.js +17 -15
  416. package/dist/esm/calcite-tile-group.entry.js +8 -7
  417. package/dist/esm/calcite-tile-select-group.entry.js +5 -4
  418. package/dist/esm/calcite-tile-select.entry.js +6 -5
  419. package/dist/esm/calcite-tile.entry.js +8 -7
  420. package/dist/esm/calcite-time-picker.entry.js +11 -10
  421. package/dist/esm/calcite-tip-group.entry.js +3 -2
  422. package/dist/esm/calcite-tip-manager.entry.js +10 -16
  423. package/dist/esm/calcite-tip.entry.js +11 -10
  424. package/dist/esm/calcite-tooltip.entry.js +9 -8
  425. package/dist/esm/card-manager_3.entry.js +3 -3
  426. package/dist/esm/consent-manager.entry.js +7 -350
  427. package/dist/esm/crowdsource-manager.entry.js +9 -9
  428. package/dist/esm/crowdsource-reporter.entry.js +7 -8
  429. package/dist/esm/deduct-calculator.entry.js +3 -2
  430. package/dist/esm/{downloadUtils-78367e33.js → downloadUtils-65947034.js} +2 -2
  431. package/dist/esm/feature-comments.entry.js +3 -2
  432. package/dist/esm/feature-form-flow-item.entry.js +3 -2
  433. package/dist/esm/feature-list.entry.js +11 -11
  434. package/dist/esm/features-flow-item.entry.js +3 -2
  435. package/dist/esm/{helpers-d661d198.js → helpers-ca6fa5a6.js} +1 -1
  436. package/dist/esm/{index.es-2b549b56.js → index.es-8311d3b3.js} +3 -3
  437. package/dist/esm/index.js +0 -15
  438. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
  439. package/dist/esm/instant-apps-control-panel.entry.js +6 -5
  440. package/dist/esm/instant-apps-create.entry.js +9 -8
  441. package/dist/esm/instant-apps-export-views.entry.js +9 -8
  442. package/dist/esm/instant-apps-export.entry.js +9 -8
  443. package/dist/esm/instant-apps-header.entry.js +6 -6
  444. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +16 -21
  445. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
  446. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +8 -8
  447. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
  448. package/dist/esm/instant-apps-interactive-legend.entry.js +10 -10
  449. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +8 -7
  450. package/dist/esm/instant-apps-landing-page.entry.js +3 -2
  451. package/dist/esm/instant-apps-language-switcher.entry.js +11 -10
  452. package/dist/esm/instant-apps-language-translator.entry.js +11 -10
  453. package/dist/esm/instant-apps-measurement.entry.js +8 -7
  454. package/dist/esm/instant-apps-popover.entry.js +8 -7
  455. package/dist/esm/instant-apps-popovers.entry.js +3 -2
  456. package/dist/esm/instant-apps-scoreboard.entry.js +8 -7
  457. package/dist/esm/instant-apps-sign-in.entry.js +8 -7
  458. package/dist/esm/instant-apps-splash.entry.js +8 -7
  459. package/dist/{solutions-components/languageSwitcher-35db9d61.js → esm/languageSwitcher-9db90f1e.js} +1 -1
  460. package/dist/esm/{languageUtil-a3e6adf6.js → languageUtil-2b6e191a.js} +1 -1
  461. package/dist/esm/layout-manager.entry.js +6 -6
  462. package/dist/esm/list-flow-item.entry.js +3 -2
  463. package/dist/{solutions-components/loadModules-4d6cf31f.js → esm/loadModules-03ba7abe.js} +1 -1
  464. package/dist/esm/loader.js +5 -5
  465. package/dist/esm/{locale-4dc2b896.js → locale-7becb9cd.js} +1 -1
  466. package/dist/esm/{locale-b4e7d56f.js → locale-d66155ee.js} +2 -2
  467. package/dist/esm/location-flow-item.entry.js +3 -2
  468. package/dist/esm/map-select-tools_3.entry.js +3 -3
  469. package/dist/esm/pci-calculator.entry.js +3 -2
  470. package/dist/esm/{popupUtils-600a3c69.js → popupUtils-7b7851ca.js} +2 -2
  471. package/dist/esm/public-notification.entry.js +12 -12
  472. package/dist/esm/refine-results-flow-item.entry.js +3 -2
  473. package/dist/esm/share-item.entry.js +3 -2
  474. package/dist/esm/solution-configuration.entry.js +1096 -11
  475. package/dist/esm/solution-contents_3.entry.js +2 -2
  476. package/dist/esm/solution-item-icon.entry.js +3 -2
  477. package/dist/esm/solutions-components.js +6 -33
  478. package/dist/esm/spatial-ref.entry.js +8 -8
  479. package/dist/esm/store-manager.entry.js +7 -6
  480. package/dist/esm/{utils-5ac53499.js → utils-8519a5f7.js} +1 -1
  481. package/dist/solutions-components/index.esm.js +0 -15
  482. package/dist/solutions-components/p-01ac1582.entry.js +6 -0
  483. package/dist/solutions-components/{p-c20f6a4b.entry.js → p-0fce578a.entry.js} +1 -1
  484. package/dist/solutions-components/{p-4cb18849.entry.js → p-16aa396b.entry.js} +1 -1
  485. package/dist/solutions-components/{p-58aca46f.entry.js → p-1977a2f2.entry.js} +1 -1
  486. package/dist/solutions-components/{p-da89f8f3.entry.js → p-1a137b52.entry.js} +1 -1
  487. package/dist/solutions-components/{p-427b4593.js → p-1c64264d.js} +1 -1
  488. package/dist/solutions-components/{p-702a8e9c.entry.js → p-250c058f.entry.js} +1 -1
  489. package/dist/solutions-components/{p-4dc6dcc4.entry.js → p-258356f9.entry.js} +1 -1
  490. package/dist/solutions-components/{p-36eaeb25.entry.js → p-266b0f36.entry.js} +1 -1
  491. package/dist/solutions-components/{p-274f2c44.entry.js → p-268484ad.entry.js} +1 -1
  492. package/dist/solutions-components/{p-4b6b0bcf.entry.js → p-28361110.entry.js} +1 -1
  493. package/dist/solutions-components/{p-c742acd9.js → p-2fc63144.js} +1 -1
  494. package/dist/solutions-components/{p-4b740dbc.entry.js → p-38283c63.entry.js} +1 -1
  495. package/dist/solutions-components/{p-66a59698.entry.js → p-461a5633.entry.js} +1 -1
  496. package/dist/solutions-components/{p-ab24cecd.entry.js → p-46264ced.entry.js} +1 -1
  497. package/dist/solutions-components/{p-65581d83.js → p-4cd4cb85.js} +1 -1
  498. package/dist/solutions-components/{p-37481a7e.js → p-4facfedc.js} +1 -1
  499. package/dist/solutions-components/{p-88ebb067.js → p-596d1177.js} +1 -1
  500. package/dist/solutions-components/{p-d7aa16de.entry.js → p-5f636f70.entry.js} +1 -1
  501. package/dist/solutions-components/{p-6011f232.entry.js → p-6c7aa9b7.entry.js} +1 -1
  502. package/dist/solutions-components/{p-6c822b5a.entry.js → p-71131fea.entry.js} +1 -1
  503. package/dist/solutions-components/{p-09ea5380.entry.js → p-7348871e.entry.js} +1 -1
  504. package/dist/solutions-components/{p-4fb8dbdb.entry.js → p-736dee44.entry.js} +1 -1
  505. package/dist/solutions-components/{p-f1e44c41.js → p-75d5dfad.js} +2 -2
  506. package/dist/solutions-components/{p-cebae8b0.entry.js → p-77d55329.entry.js} +1 -1
  507. package/dist/solutions-components/{p-0b2a84bd.entry.js → p-89333ced.entry.js} +1 -1
  508. package/dist/solutions-components/{p-72268284.entry.js → p-8c1f9b20.entry.js} +1 -1
  509. package/dist/solutions-components/{p-9946b88e.entry.js → p-8db0af91.entry.js} +1 -1
  510. package/dist/solutions-components/{p-0424696b.entry.js → p-8ebe19ed.entry.js} +1 -1
  511. package/dist/solutions-components/{p-f2832661.entry.js → p-90d3eeb2.entry.js} +1 -1
  512. package/dist/solutions-components/{p-1b67b3e2.entry.js → p-9238c1ed.entry.js} +1 -1
  513. package/dist/solutions-components/{p-19f6ceaf.entry.js → p-93d98ebb.entry.js} +1 -1
  514. package/dist/solutions-components/{p-c9c97215.entry.js → p-957d275c.entry.js} +1 -1
  515. package/dist/solutions-components/{p-36ca2014.entry.js → p-9e1c97b0.entry.js} +1 -1
  516. package/dist/solutions-components/{p-30df83ea.js → p-9f2a0621.js} +1 -1
  517. package/dist/solutions-components/{p-cd56bd9d.entry.js → p-a26763d2.entry.js} +1 -1
  518. package/dist/solutions-components/{p-4ffe4d32.entry.js → p-a80c076e.entry.js} +1 -1
  519. package/dist/solutions-components/{p-67e06dfc.js → p-a84590db.js} +1 -1
  520. package/dist/solutions-components/{p-3e84a420.entry.js → p-ab2adcaf.entry.js} +1 -1
  521. package/dist/solutions-components/{p-af2c8aa9.js → p-ac122d9e.js} +1 -1
  522. package/dist/solutions-components/{p-73c535f7.entry.js → p-b2846de4.entry.js} +2 -2
  523. package/dist/solutions-components/{p-6be3c158.entry.js → p-b323bb0e.entry.js} +1 -1
  524. package/dist/solutions-components/{p-24f7ec82.entry.js → p-b65d5c58.entry.js} +1 -1
  525. package/dist/solutions-components/{p-296174a0.entry.js → p-c3d61142.entry.js} +1 -1
  526. package/dist/solutions-components/{p-60b4309f.entry.js → p-ce1b52e7.entry.js} +1 -1
  527. package/dist/solutions-components/{p-f90f7437.js → p-d36fae45.js} +1 -1
  528. package/dist/solutions-components/{p-69fb3157.entry.js → p-e1dbe7cf.entry.js} +1 -1
  529. package/dist/solutions-components/{p-2b430d5f.entry.js → p-edead891.entry.js} +1 -1
  530. package/dist/solutions-components/solutions-components.css +1 -84
  531. package/dist/solutions-components/solutions-components.esm.js +1 -48
  532. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -0
  533. package/dist/types/components.d.ts +8 -0
  534. package/package.json +11 -11
  535. package/dist/cjs/ExpandToggle-4bf8ab4c.js +0 -118
  536. package/dist/cjs/FloatingArrow-0900fae3.js +0 -50
  537. package/dist/cjs/Heading-6f44a694.js +0 -25
  538. package/dist/cjs/InitiativeUiSchemaEdit-108652db.js +0 -28
  539. package/dist/cjs/ProjectUiSchemaCreate-c1cbccc7.js +0 -126
  540. package/dist/cjs/ProjectUiSchemaEdit-d5f11c17.js +0 -178
  541. package/dist/cjs/Validation-080a7842.js +0 -20
  542. package/dist/cjs/_commonjsHelpers-2dd87068.js +0 -43
  543. package/dist/cjs/app-globals-24367c32.js +0 -69
  544. package/dist/cjs/ar-a6ccf8f4.js +0 -105
  545. package/dist/cjs/basemap-gallery.cjs.entry.js +0 -121
  546. package/dist/cjs/bg-e6b1b515.js +0 -83
  547. package/dist/cjs/browser-1bf2a3d9.js +0 -28
  548. package/dist/cjs/bs-4151b94c.js +0 -52
  549. package/dist/cjs/buffer-tools.cjs.entry.js +0 -257
  550. package/dist/cjs/ca-1744d62a.js +0 -72
  551. package/dist/cjs/calcite-action-menu.cjs.entry.js +0 -292
  552. package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -169
  553. package/dist/cjs/calcite-action.cjs.entry.js +0 -191
  554. package/dist/cjs/calcite-alert.cjs.entry.js +0 -322
  555. package/dist/cjs/calcite-avatar.cjs.entry.js +0 -150
  556. package/dist/cjs/calcite-block.cjs.entry.js +0 -214
  557. package/dist/cjs/calcite-chip.cjs.entry.js +0 -282
  558. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +0 -274
  559. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +0 -99
  560. package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -145
  561. package/dist/cjs/calcite-combobox.cjs.entry.js +0 -1141
  562. package/dist/cjs/calcite-date-picker-day.cjs.entry.js +0 -112
  563. package/dist/cjs/calcite-date-picker-month-header.cjs.entry.js +0 -207
  564. package/dist/cjs/calcite-date-picker-month.cjs.entry.js +0 -359
  565. package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -459
  566. package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -85
  567. package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -188
  568. package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -426
  569. package/dist/cjs/calcite-filter.cjs.entry.js +0 -182
  570. package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -198
  571. package/dist/cjs/calcite-flow.cjs.entry.js +0 -153
  572. package/dist/cjs/calcite-graph.cjs.entry.js +0 -226
  573. package/dist/cjs/calcite-handle.cjs.entry.js +0 -206
  574. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -757
  575. package/dist/cjs/calcite-input-message.cjs.entry.js +0 -69
  576. package/dist/cjs/calcite-input-time-picker-f8adb5d5.js +0 -1867
  577. package/dist/cjs/calcite-input.cjs.entry.js +0 -709
  578. package/dist/cjs/calcite-list-item.cjs.entry.js +0 -456
  579. package/dist/cjs/calcite-list.cjs.entry.js +0 -560
  580. package/dist/cjs/calcite-loader.cjs.entry.js +0 -80
  581. package/dist/cjs/calcite-navigation-user.cjs.entry.js +0 -72
  582. package/dist/cjs/calcite-option.cjs.entry.js +0 -88
  583. package/dist/cjs/calcite-panel.cjs.entry.js +0 -270
  584. package/dist/cjs/calcite-popover.cjs.entry.js +0 -419
  585. package/dist/cjs/calcite-progress.cjs.entry.js +0 -41
  586. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -125
  587. package/dist/cjs/calcite-segmented-control-item.cjs.entry.js +0 -70
  588. package/dist/cjs/calcite-segmented-control.cjs.entry.js +0 -258
  589. package/dist/cjs/calcite-select.cjs.entry.js +0 -248
  590. package/dist/cjs/calcite-shell-panel.cjs.entry.js +0 -414
  591. package/dist/cjs/calcite-shell.cjs.entry.js +0 -174
  592. package/dist/cjs/calcite-slider.cjs.entry.js +0 -874
  593. package/dist/cjs/calcite-stack.cjs.entry.js +0 -74
  594. package/dist/cjs/calcite-tab-nav.cjs.entry.js +0 -470
  595. package/dist/cjs/calcite-tab-title.cjs.entry.js +0 -291
  596. package/dist/cjs/calcite-tab.cjs.entry.js +0 -112
  597. package/dist/cjs/calcite-table-cell.cjs.entry.js +0 -166
  598. package/dist/cjs/calcite-table-header.cjs.entry.js +0 -183
  599. package/dist/cjs/calcite-tabs.cjs.entry.js +0 -178
  600. package/dist/cjs/calcite-tree-item.cjs.entry.js +0 -298
  601. package/dist/cjs/calcite-tree.cjs.entry.js +0 -315
  602. package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -157
  603. package/dist/cjs/calcite-value-list.cjs.entry.js +0 -325
  604. package/dist/cjs/card-manager.cjs.entry.js +0 -107
  605. package/dist/cjs/common-f5cf368e.js +0 -297
  606. package/dist/cjs/conditionalSlot-013ea8f1.js +0 -54
  607. package/dist/cjs/core-23721ec5.js +0 -329
  608. package/dist/cjs/create-feature.cjs.entry.js +0 -411
  609. package/dist/cjs/create-related-feature.cjs.entry.js +0 -288
  610. package/dist/cjs/cs-865bf9fc.js +0 -148
  611. package/dist/cjs/da-ec3cbd7d.js +0 -67
  612. package/dist/cjs/date-86802e0d.js +0 -261
  613. package/dist/cjs/de-at-33e63cf4.js +0 -91
  614. package/dist/cjs/de-ch-41c31254.js +0 -91
  615. package/dist/cjs/de-d2010af8.js +0 -92
  616. package/dist/cjs/delete-button.cjs.entry.js +0 -150
  617. package/dist/cjs/dom-3f868a04.js +0 -1174
  618. package/dist/cjs/downloadUtils-3f3ba92b.js +0 -4247
  619. package/dist/cjs/edit-card.cjs.entry.js +0 -228
  620. package/dist/cjs/el-694f3f53.js +0 -67
  621. package/dist/cjs/en-au-ee52aa15.js +0 -67
  622. package/dist/cjs/en-ca-f397253b.js +0 -66
  623. package/dist/cjs/en-gb-e38f2064.js +0 -70
  624. package/dist/cjs/es-1f31784e.js +0 -67
  625. package/dist/cjs/es-mx-e039dd38.js +0 -66
  626. package/dist/cjs/esri-loader-9b0ce1a4.js +0 -310
  627. package/dist/cjs/et-ab75e5bf.js +0 -93
  628. package/dist/cjs/feature-details.cjs.entry.js +0 -385
  629. package/dist/cjs/fi-ac75e6d2.js +0 -116
  630. package/dist/cjs/filter-bafcd70b.js +0 -48
  631. package/dist/cjs/floating-ui-87c9e9ed.js +0 -2377
  632. package/dist/cjs/floor-filter.cjs.entry.js +0 -153
  633. package/dist/cjs/focusTrapComponent-5195d563.js +0 -1028
  634. package/dist/cjs/form-067ee7bc.js +0 -381
  635. package/dist/cjs/fr-a10ffff6.js +0 -69
  636. package/dist/cjs/fr-ch-596ab83d.js +0 -67
  637. package/dist/cjs/he-bce2e0f6.js +0 -106
  638. package/dist/cjs/helpers-d91ad1d6.js +0 -864
  639. package/dist/cjs/hi-22d77acf.js +0 -66
  640. package/dist/cjs/hr-9a468bd9.js +0 -81
  641. package/dist/cjs/html2canvas-06585c20.js +0 -7852
  642. package/dist/cjs/hu-9722b179.js +0 -89
  643. package/dist/cjs/id-426a7d98.js +0 -67
  644. package/dist/cjs/index-25afe4b8.js +0 -1972
  645. package/dist/cjs/index-62dddc18.js +0 -3038
  646. package/dist/cjs/index-bf47f22d.js +0 -41718
  647. package/dist/cjs/index-e6154163.js +0 -201
  648. package/dist/cjs/index.es-bf2a62d8.js +0 -11678
  649. package/dist/cjs/info-card.cjs.entry.js +0 -367
  650. package/dist/cjs/instant-apps-ckeditor-wrapper.cjs.entry.js +0 -125
  651. package/dist/cjs/instant-apps-filter-list.cjs.entry.js +0 -1067
  652. package/dist/cjs/instant-apps-interactive-legend-count.cjs.entry.js +0 -104
  653. package/dist/cjs/instant-apps-interactive-legend-group-legend-element.cjs.entry.js +0 -56
  654. package/dist/cjs/instant-apps-interactive-legend-layer-element-caption.cjs.entry.js +0 -55
  655. package/dist/cjs/instant-apps-interactive-legend-layer-element.cjs.entry.js +0 -57
  656. package/dist/cjs/instant-apps-interactive-legend-legend-element-caption.cjs.entry.js +0 -104
  657. package/dist/cjs/instant-apps-interactive-legend-legend-element.cjs.entry.js +0 -65
  658. package/dist/cjs/instant-apps-interactive-legend-relationship.cjs.entry.js +0 -552
  659. package/dist/cjs/instant-apps-language-translator-item.cjs.entry.js +0 -384
  660. package/dist/cjs/instant-apps-language-translator-search.cjs.entry.js +0 -105
  661. package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +0 -139
  662. package/dist/cjs/instant-apps-social-share.cjs.entry.js +0 -520
  663. package/dist/cjs/interactive-f8825052.js +0 -154
  664. package/dist/cjs/it-b310ed48.js +0 -67
  665. package/dist/cjs/it-ch-804be2a9.js +0 -67
  666. package/dist/cjs/ja-fd61ab26.js +0 -73
  667. package/dist/cjs/json-editor.cjs.entry.js +0 -406
  668. package/dist/cjs/key-620e0822.js +0 -47
  669. package/dist/cjs/ko-a799f42d.js +0 -73
  670. package/dist/cjs/label-f71c85c6.js +0 -186
  671. package/dist/cjs/languageSwitcher-8209c73c.js +0 -60
  672. package/dist/cjs/languageUtil-a615ee13.js +0 -90
  673. package/dist/cjs/layer-list.cjs.entry.js +0 -197
  674. package/dist/cjs/layer-table.cjs.entry.js +0 -1562
  675. package/dist/cjs/loadModules-36d49819.js +0 -23
  676. package/dist/cjs/loadModules-e03cf23a.js +0 -30
  677. package/dist/cjs/loadable-68a22656.js +0 -97
  678. package/dist/cjs/locale-708985a1.js +0 -91
  679. package/dist/cjs/locale-898d043a.js +0 -152
  680. package/dist/cjs/locale-cfa79214.js +0 -585
  681. package/dist/cjs/lodash-7587da9f.js +0 -18030
  682. package/dist/cjs/lt-0508a01d.js +0 -98
  683. package/dist/cjs/lv-d8f83e7a.js +0 -67
  684. package/dist/cjs/map-card.cjs.entry.js +0 -231
  685. package/dist/cjs/map-draw-tools.cjs.entry.js +0 -358
  686. package/dist/cjs/map-fullscreen.cjs.entry.js +0 -116
  687. package/dist/cjs/map-layer-picker.cjs.entry.js +0 -346
  688. package/dist/cjs/map-legend.cjs.entry.js +0 -109
  689. package/dist/cjs/map-picker.cjs.entry.js +0 -174
  690. package/dist/cjs/map-search.cjs.entry.js +0 -184
  691. package/dist/cjs/map-select-tools.cjs.entry.js +0 -798
  692. package/dist/cjs/map-tools.cjs.entry.js +0 -375
  693. package/dist/cjs/mapViewUtils-83bc7d78.js +0 -295
  694. package/dist/cjs/mk-475a7a99.js +0 -67
  695. package/dist/cjs/mode-a52277fc.js +0 -27
  696. package/dist/cjs/nb-92a9acc8.js +0 -68
  697. package/dist/cjs/nl-ea0f033c.js +0 -68
  698. package/dist/cjs/observers-682136dc.js +0 -58
  699. package/dist/cjs/openCloseComponent-2fdcb310.js +0 -140
  700. package/dist/cjs/parser-08a36734.js +0 -1648
  701. package/dist/cjs/pdf-download.cjs.entry.js +0 -359
  702. package/dist/cjs/pl-05a4b5a1.js +0 -115
  703. package/dist/cjs/popupUtils-e6a2131f.js +0 -111
  704. package/dist/cjs/pt-8fe24b18.js +0 -68
  705. package/dist/cjs/pt-br-eba3aab9.js +0 -66
  706. package/dist/cjs/publicNotificationStore-ce215887.js +0 -47
  707. package/dist/cjs/purify-d00d4598.js +0 -1719
  708. package/dist/cjs/queryUtils-ad516c97.js +0 -283
  709. package/dist/cjs/refine-selection.cjs.entry.js +0 -412
  710. package/dist/cjs/resources-09a78a36.js +0 -30
  711. package/dist/cjs/resources-13ca5745.js +0 -116
  712. package/dist/cjs/resources-3855f743.js +0 -53
  713. package/dist/cjs/resources-921affcb.js +0 -49
  714. package/dist/cjs/resources-c241718f.js +0 -29
  715. package/dist/cjs/ro-c92cb77e.js +0 -67
  716. package/dist/cjs/ru-273dc1dc.js +0 -127
  717. package/dist/cjs/shadow-css-64ff22a6.js +0 -363
  718. package/dist/cjs/shared-list-render-a3a4e5db.js +0 -370
  719. package/dist/cjs/sk-f0fb5cd7.js +0 -149
  720. package/dist/cjs/sl-3bc46f93.js +0 -169
  721. package/dist/cjs/solution-contents.cjs.entry.js +0 -84
  722. package/dist/cjs/solution-item-details.cjs.entry.js +0 -199
  723. package/dist/cjs/solution-item-sharing.cjs.entry.js +0 -139
  724. package/dist/cjs/solution-item.cjs.entry.js +0 -106
  725. package/dist/cjs/solution-organization-variables.cjs.entry.js +0 -95
  726. package/dist/cjs/solution-resource-item.cjs.entry.js +0 -284
  727. package/dist/cjs/solution-spatial-ref.cjs.entry.js +0 -168
  728. package/dist/cjs/solution-store-cef42401.js +0 -587
  729. package/dist/cjs/solution-template-data.cjs.entry.js +0 -119
  730. package/dist/cjs/solution-variables.cjs.entry.js +0 -107
  731. package/dist/cjs/sortableComponent-b1be22c5.js +0 -3444
  732. package/dist/cjs/sr-ae040dc3.js +0 -102
  733. package/dist/cjs/store-3ba88099.js +0 -91
  734. package/dist/cjs/sv-769838ef.js +0 -72
  735. package/dist/cjs/t9n-0f4446d0.js +0 -103
  736. package/dist/cjs/templates-19d0e370.js +0 -442
  737. package/dist/cjs/th-9b569ee1.js +0 -66
  738. package/dist/cjs/time-5eec06fe.js +0 -289
  739. package/dist/cjs/tr-9cc6c813.js +0 -67
  740. package/dist/cjs/uk-c549303a.js +0 -105
  741. package/dist/cjs/utils-05355ba0.js +0 -64
  742. package/dist/cjs/utils-3128e748.js +0 -226
  743. package/dist/cjs/utils-4ad2f4f2.js +0 -68
  744. package/dist/cjs/utils-589c9301.js +0 -142
  745. package/dist/cjs/utils-70b0604a.js +0 -52
  746. package/dist/cjs/vi-e4806300.js +0 -71
  747. package/dist/cjs/zh-cn-e13c7902.js +0 -95
  748. package/dist/cjs/zh-hk-2d4440e3.js +0 -72
  749. package/dist/cjs/zh-tw-d9c5da28.js +0 -93
  750. package/dist/components/InitiativeUiSchemaEdit.js +0 -26
  751. package/dist/components/ProjectUiSchemaCreate.js +0 -122
  752. package/dist/components/ProjectUiSchemaEdit.js +0 -176
  753. package/dist/components/index7.js +0 -71
  754. package/dist/components/lodash.js +0 -18025
  755. package/dist/components/parser.js +0 -1646
  756. package/dist/esm/ExpandToggle-cb895a2c.js +0 -110
  757. package/dist/esm/FloatingArrow-636ce2ee.js +0 -48
  758. package/dist/esm/Heading-baf4a991.js +0 -22
  759. package/dist/esm/InitiativeUiSchemaEdit-8ddacfe8.js +0 -26
  760. package/dist/esm/ProjectUiSchemaCreate-9fb110ea.js +0 -124
  761. package/dist/esm/ProjectUiSchemaEdit-fbfdf6e4.js +0 -176
  762. package/dist/esm/Validation-b3331c79.js +0 -18
  763. package/dist/esm/_commonjsHelpers-9cd17aec.js +0 -39
  764. package/dist/esm/app-globals-97f5814f.js +0 -67
  765. package/dist/esm/ar-6236d364.js +0 -103
  766. package/dist/esm/basemap-gallery.entry.js +0 -117
  767. package/dist/esm/bg-498492ff.js +0 -81
  768. package/dist/esm/browser-920df963.js +0 -26
  769. package/dist/esm/bs-60412b06.js +0 -50
  770. package/dist/esm/buffer-tools.entry.js +0 -253
  771. package/dist/esm/ca-7844b785.js +0 -70
  772. package/dist/esm/calcite-action-menu.entry.js +0 -288
  773. package/dist/esm/calcite-action-pad.entry.js +0 -165
  774. package/dist/esm/calcite-action.entry.js +0 -187
  775. package/dist/esm/calcite-alert.entry.js +0 -318
  776. package/dist/esm/calcite-avatar.entry.js +0 -146
  777. package/dist/esm/calcite-block.entry.js +0 -210
  778. package/dist/esm/calcite-chip.entry.js +0 -278
  779. package/dist/esm/calcite-color-picker-hex-input.entry.js +0 -270
  780. package/dist/esm/calcite-color-picker-swatch.entry.js +0 -95
  781. package/dist/esm/calcite-combobox-item.entry.js +0 -141
  782. package/dist/esm/calcite-combobox.entry.js +0 -1137
  783. package/dist/esm/calcite-date-picker-day.entry.js +0 -108
  784. package/dist/esm/calcite-date-picker-month-header.entry.js +0 -203
  785. package/dist/esm/calcite-date-picker-month.entry.js +0 -355
  786. package/dist/esm/calcite-date-picker.entry.js +0 -455
  787. package/dist/esm/calcite-dropdown-group.entry.js +0 -81
  788. package/dist/esm/calcite-dropdown-item.entry.js +0 -184
  789. package/dist/esm/calcite-dropdown.entry.js +0 -422
  790. package/dist/esm/calcite-filter.entry.js +0 -178
  791. package/dist/esm/calcite-flow-item.entry.js +0 -194
  792. package/dist/esm/calcite-flow.entry.js +0 -149
  793. package/dist/esm/calcite-graph.entry.js +0 -222
  794. package/dist/esm/calcite-handle.entry.js +0 -202
  795. package/dist/esm/calcite-input-date-picker.entry.js +0 -753
  796. package/dist/esm/calcite-input-message.entry.js +0 -65
  797. package/dist/esm/calcite-input-time-picker-c336a83c.js +0 -1864
  798. package/dist/esm/calcite-input.entry.js +0 -705
  799. package/dist/esm/calcite-list-item.entry.js +0 -452
  800. package/dist/esm/calcite-list.entry.js +0 -556
  801. package/dist/esm/calcite-loader.entry.js +0 -76
  802. package/dist/esm/calcite-navigation-user.entry.js +0 -68
  803. package/dist/esm/calcite-option.entry.js +0 -84
  804. package/dist/esm/calcite-panel.entry.js +0 -266
  805. package/dist/esm/calcite-popover.entry.js +0 -415
  806. package/dist/esm/calcite-progress.entry.js +0 -37
  807. package/dist/esm/calcite-scrim.entry.js +0 -121
  808. package/dist/esm/calcite-segmented-control-item.entry.js +0 -66
  809. package/dist/esm/calcite-segmented-control.entry.js +0 -254
  810. package/dist/esm/calcite-select.entry.js +0 -244
  811. package/dist/esm/calcite-shell-panel.entry.js +0 -410
  812. package/dist/esm/calcite-shell.entry.js +0 -170
  813. package/dist/esm/calcite-slider.entry.js +0 -870
  814. package/dist/esm/calcite-stack.entry.js +0 -70
  815. package/dist/esm/calcite-tab-nav.entry.js +0 -466
  816. package/dist/esm/calcite-tab-title.entry.js +0 -287
  817. package/dist/esm/calcite-tab.entry.js +0 -108
  818. package/dist/esm/calcite-table-cell.entry.js +0 -162
  819. package/dist/esm/calcite-table-header.entry.js +0 -179
  820. package/dist/esm/calcite-tabs.entry.js +0 -174
  821. package/dist/esm/calcite-tree-item.entry.js +0 -294
  822. package/dist/esm/calcite-tree.entry.js +0 -311
  823. package/dist/esm/calcite-value-list-item.entry.js +0 -153
  824. package/dist/esm/calcite-value-list.entry.js +0 -321
  825. package/dist/esm/card-manager.entry.js +0 -103
  826. package/dist/esm/common-17d5568a.js +0 -295
  827. package/dist/esm/conditionalSlot-937057aa.js +0 -51
  828. package/dist/esm/core-a0d3cc0e.js +0 -324
  829. package/dist/esm/create-feature.entry.js +0 -407
  830. package/dist/esm/create-related-feature.entry.js +0 -284
  831. package/dist/esm/cs-be3aa1ae.js +0 -146
  832. package/dist/esm/da-5a58f3f2.js +0 -65
  833. package/dist/esm/date-a63e8e28.js +0 -245
  834. package/dist/esm/de-at-780d22a4.js +0 -89
  835. package/dist/esm/de-ch-5cf4813a.js +0 -89
  836. package/dist/esm/de-d041f0a0.js +0 -90
  837. package/dist/esm/delete-button.entry.js +0 -146
  838. package/dist/esm/dom-1f06a111.js +0 -1141
  839. package/dist/esm/downloadUtils-238038d2.js +0 -4240
  840. package/dist/esm/edit-card.entry.js +0 -224
  841. package/dist/esm/el-7c6af41a.js +0 -65
  842. package/dist/esm/en-au-dd7a3ee4.js +0 -65
  843. package/dist/esm/en-ca-4b21b3cd.js +0 -64
  844. package/dist/esm/en-gb-6ab000e3.js +0 -68
  845. package/dist/esm/es-1fd84773.js +0 -65
  846. package/dist/esm/es-mx-b82367c3.js +0 -64
  847. package/dist/esm/esri-loader-5bf2f164.js +0 -308
  848. package/dist/esm/et-08a0e4a8.js +0 -91
  849. package/dist/esm/feature-details.entry.js +0 -381
  850. package/dist/esm/fi-fe995ecb.js +0 -114
  851. package/dist/esm/filter-e3e2b01f.js +0 -46
  852. package/dist/esm/floating-ui-112e26aa.js +0 -2369
  853. package/dist/esm/floor-filter.entry.js +0 -149
  854. package/dist/esm/focusTrapComponent-fb975f9c.js +0 -1023
  855. package/dist/esm/form-cd789357.js +0 -372
  856. package/dist/esm/fr-aed06af0.js +0 -67
  857. package/dist/esm/fr-ch-a9d10a0f.js +0 -65
  858. package/dist/esm/he-a0a1731e.js +0 -104
  859. package/dist/esm/helpers-457bbf66.js +0 -840
  860. package/dist/esm/hi-ae48041a.js +0 -64
  861. package/dist/esm/hr-2ae1f998.js +0 -79
  862. package/dist/esm/html2canvas-88d6eded.js +0 -7850
  863. package/dist/esm/hu-2615f261.js +0 -87
  864. package/dist/esm/id-598e1355.js +0 -65
  865. package/dist/esm/index-0eecd45f.js +0 -2998
  866. package/dist/esm/index-8b8db9ba.js +0 -1970
  867. package/dist/esm/index-a879e1d6.js +0 -41699
  868. package/dist/esm/index-b1418e2a.js +0 -199
  869. package/dist/esm/index.es-e2310dbf.js +0 -11591
  870. package/dist/esm/info-card.entry.js +0 -363
  871. package/dist/esm/instant-apps-ckeditor-wrapper.entry.js +0 -121
  872. package/dist/esm/instant-apps-filter-list.entry.js +0 -1063
  873. package/dist/esm/instant-apps-interactive-legend-count.entry.js +0 -100
  874. package/dist/esm/instant-apps-interactive-legend-group-legend-element.entry.js +0 -52
  875. package/dist/esm/instant-apps-interactive-legend-layer-element-caption.entry.js +0 -51
  876. package/dist/esm/instant-apps-interactive-legend-layer-element.entry.js +0 -53
  877. package/dist/esm/instant-apps-interactive-legend-legend-element-caption.entry.js +0 -100
  878. package/dist/esm/instant-apps-interactive-legend-legend-element.entry.js +0 -61
  879. package/dist/esm/instant-apps-interactive-legend-relationship.entry.js +0 -548
  880. package/dist/esm/instant-apps-language-translator-item.entry.js +0 -380
  881. package/dist/esm/instant-apps-language-translator-search.entry.js +0 -101
  882. package/dist/esm/instant-apps-measurement-tool.entry.js +0 -135
  883. package/dist/esm/instant-apps-social-share.entry.js +0 -516
  884. package/dist/esm/interactive-179483f5.js +0 -149
  885. package/dist/esm/it-56a44209.js +0 -65
  886. package/dist/esm/it-ch-8fd9abf4.js +0 -65
  887. package/dist/esm/ja-66007f4d.js +0 -71
  888. package/dist/esm/json-editor.entry.js +0 -402
  889. package/dist/esm/key-15222297.js +0 -44
  890. package/dist/esm/ko-2e3b9aa8.js +0 -71
  891. package/dist/esm/label-c34ec0cf.js +0 -179
  892. package/dist/esm/languageSwitcher-35db9d61.js +0 -57
  893. package/dist/esm/languageSwitcher-b665499d.js +0 -57
  894. package/dist/esm/languageUtil-83ed2742.js +0 -87
  895. package/dist/esm/layer-list.entry.js +0 -193
  896. package/dist/esm/layer-table.entry.js +0 -1558
  897. package/dist/esm/loadModules-18662c29.js +0 -28
  898. package/dist/esm/loadModules-4d6cf31f.js +0 -21
  899. package/dist/esm/loadModules-9c062d08.js +0 -21
  900. package/dist/esm/loadable-5f2ac40f.js +0 -92
  901. package/dist/esm/locale-1b4d548e.js +0 -572
  902. package/dist/esm/locale-448ea937.js +0 -148
  903. package/dist/esm/locale-f1dd2532.js +0 -86
  904. package/dist/esm/lodash-98e4b7d0.js +0 -18025
  905. package/dist/esm/lt-2a6a8e94.js +0 -96
  906. package/dist/esm/lv-8b3c01bb.js +0 -65
  907. package/dist/esm/map-card.entry.js +0 -227
  908. package/dist/esm/map-draw-tools.entry.js +0 -354
  909. package/dist/esm/map-fullscreen.entry.js +0 -112
  910. package/dist/esm/map-layer-picker.entry.js +0 -342
  911. package/dist/esm/map-legend.entry.js +0 -105
  912. package/dist/esm/map-picker.entry.js +0 -170
  913. package/dist/esm/map-search.entry.js +0 -180
  914. package/dist/esm/map-select-tools.entry.js +0 -794
  915. package/dist/esm/map-tools.entry.js +0 -371
  916. package/dist/esm/mapViewUtils-d4946a31.js +0 -284
  917. package/dist/esm/mk-428c21bd.js +0 -65
  918. package/dist/esm/mode-e7b9fabb.js +0 -25
  919. package/dist/esm/nb-67929ffe.js +0 -66
  920. package/dist/esm/nl-954b9062.js +0 -66
  921. package/dist/esm/observers-81ed4977.js +0 -56
  922. package/dist/esm/openCloseComponent-739f40b7.js +0 -138
  923. package/dist/esm/parser-a682fcdf.js +0 -1646
  924. package/dist/esm/pdf-download.entry.js +0 -355
  925. package/dist/esm/pl-eba736c7.js +0 -113
  926. package/dist/esm/popupUtils-c60ca656.js +0 -109
  927. package/dist/esm/pt-br-ed6f0302.js +0 -64
  928. package/dist/esm/pt-e6518f49.js +0 -66
  929. package/dist/esm/publicNotificationStore-59732134.js +0 -45
  930. package/dist/esm/purify-ed095e80.js +0 -1717
  931. package/dist/esm/queryUtils-2ee0f383.js +0 -274
  932. package/dist/esm/refine-selection.entry.js +0 -408
  933. package/dist/esm/resources-092fef68.js +0 -106
  934. package/dist/esm/resources-66978311.js +0 -26
  935. package/dist/esm/resources-be0262db.js +0 -45
  936. package/dist/esm/resources-be5a6557.js +0 -26
  937. package/dist/esm/resources-ec5198da.js +0 -49
  938. package/dist/esm/ro-cb3c8995.js +0 -65
  939. package/dist/esm/ru-dd440634.js +0 -125
  940. package/dist/esm/shadow-css-15628d22.js +0 -361
  941. package/dist/esm/shared-list-render-a787615a.js +0 -348
  942. package/dist/esm/sk-a8db2217.js +0 -147
  943. package/dist/esm/sl-f798a76e.js +0 -167
  944. package/dist/esm/solution-contents.entry.js +0 -80
  945. package/dist/esm/solution-item-details.entry.js +0 -195
  946. package/dist/esm/solution-item-sharing.entry.js +0 -135
  947. package/dist/esm/solution-item.entry.js +0 -102
  948. package/dist/esm/solution-organization-variables.entry.js +0 -91
  949. package/dist/esm/solution-resource-item.entry.js +0 -280
  950. package/dist/esm/solution-spatial-ref.entry.js +0 -164
  951. package/dist/esm/solution-store-5a6cf181.js +0 -585
  952. package/dist/esm/solution-template-data.entry.js +0 -115
  953. package/dist/esm/solution-variables.entry.js +0 -103
  954. package/dist/esm/sortableComponent-ee74aef6.js +0 -3440
  955. package/dist/esm/sr-342a663a.js +0 -100
  956. package/dist/esm/store-b2b2565a.js +0 -87
  957. package/dist/esm/sv-84670dbd.js +0 -70
  958. package/dist/esm/t9n-2df2d559.js +0 -98
  959. package/dist/esm/templates-335c6b6f.js +0 -436
  960. package/dist/esm/th-a9c8533d.js +0 -64
  961. package/dist/esm/time-d753f161.js +0 -274
  962. package/dist/esm/tr-c2cc2873.js +0 -65
  963. package/dist/esm/uk-906a1eb0.js +0 -103
  964. package/dist/esm/utils-2c8108af.js +0 -133
  965. package/dist/esm/utils-580e77c3.js +0 -208
  966. package/dist/esm/utils-9aa96070.js +0 -61
  967. package/dist/esm/utils-ab48a0d6.js +0 -47
  968. package/dist/esm/utils-f96adae4.js +0 -57
  969. package/dist/esm/vi-7b43fafd.js +0 -69
  970. package/dist/esm/zh-cn-c19f2858.js +0 -93
  971. package/dist/esm/zh-hk-f212412d.js +0 -70
  972. package/dist/esm/zh-tw-be3a4302.js +0 -91
  973. package/dist/solutions-components/ExpandToggle-cb895a2c.js +0 -110
  974. package/dist/solutions-components/FloatingArrow-636ce2ee.js +0 -48
  975. package/dist/solutions-components/Heading-baf4a991.js +0 -22
  976. package/dist/solutions-components/InitiativeUiSchemaEdit-8ddacfe8.js +0 -26
  977. package/dist/solutions-components/ProjectUiSchemaCreate-9fb110ea.js +0 -124
  978. package/dist/solutions-components/ProjectUiSchemaEdit-fbfdf6e4.js +0 -176
  979. package/dist/solutions-components/Validation-b3331c79.js +0 -18
  980. package/dist/solutions-components/_commonjsHelpers-9cd17aec.js +0 -39
  981. package/dist/solutions-components/app-globals-97f5814f.js +0 -67
  982. package/dist/solutions-components/ar-6236d364.js +0 -103
  983. package/dist/solutions-components/arcgis-login.entry.js +0 -56
  984. package/dist/solutions-components/array-2604a55d.js +0 -15
  985. package/dist/solutions-components/basemap-gallery.entry.js +0 -117
  986. package/dist/solutions-components/bg-498492ff.js +0 -81
  987. package/dist/solutions-components/breakpoints-3afa0fd9.js +0 -15
  988. package/dist/solutions-components/browser-920df963.js +0 -26
  989. package/dist/solutions-components/bs-60412b06.js +0 -50
  990. package/dist/solutions-components/buffer-tools.entry.js +0 -253
  991. package/dist/solutions-components/ca-7844b785.js +0 -70
  992. package/dist/solutions-components/calcite-accordion-item.entry.js +0 -176
  993. package/dist/solutions-components/calcite-accordion.entry.js +0 -81
  994. package/dist/solutions-components/calcite-action-bar.entry.js +0 -252
  995. package/dist/solutions-components/calcite-action-group.entry.js +0 -112
  996. package/dist/solutions-components/calcite-action-menu.entry.js +0 -288
  997. package/dist/solutions-components/calcite-action-pad.entry.js +0 -165
  998. package/dist/solutions-components/calcite-action.entry.js +0 -187
  999. package/dist/solutions-components/calcite-alert.entry.js +0 -318
  1000. package/dist/solutions-components/calcite-avatar.entry.js +0 -146
  1001. package/dist/solutions-components/calcite-block-section.entry.js +0 -162
  1002. package/dist/solutions-components/calcite-block.entry.js +0 -210
  1003. package/dist/solutions-components/calcite-button.entry.js +0 -230
  1004. package/dist/solutions-components/calcite-card-group.entry.js +0 -164
  1005. package/dist/solutions-components/calcite-card.entry.js +0 -227
  1006. package/dist/solutions-components/calcite-carousel-item.entry.js +0 -41
  1007. package/dist/solutions-components/calcite-carousel.entry.js +0 -462
  1008. package/dist/solutions-components/calcite-checkbox.entry.js +0 -147
  1009. package/dist/solutions-components/calcite-chip-group.entry.js +0 -197
  1010. package/dist/solutions-components/calcite-chip.entry.js +0 -278
  1011. package/dist/solutions-components/calcite-color-picker-hex-input.entry.js +0 -270
  1012. package/dist/solutions-components/calcite-color-picker-swatch.entry.js +0 -95
  1013. package/dist/solutions-components/calcite-color-picker.entry.js +0 -923
  1014. package/dist/solutions-components/calcite-combobox-item-group.entry.js +0 -56
  1015. package/dist/solutions-components/calcite-combobox-item.entry.js +0 -141
  1016. package/dist/solutions-components/calcite-combobox.entry.js +0 -1137
  1017. package/dist/solutions-components/calcite-date-picker-day.entry.js +0 -108
  1018. package/dist/solutions-components/calcite-date-picker-month-header.entry.js +0 -203
  1019. package/dist/solutions-components/calcite-date-picker-month.entry.js +0 -355
  1020. package/dist/solutions-components/calcite-date-picker.entry.js +0 -455
  1021. package/dist/solutions-components/calcite-dropdown-group.entry.js +0 -81
  1022. package/dist/solutions-components/calcite-dropdown-item.entry.js +0 -184
  1023. package/dist/solutions-components/calcite-dropdown.entry.js +0 -422
  1024. package/dist/solutions-components/calcite-fab.entry.js +0 -90
  1025. package/dist/solutions-components/calcite-filter.entry.js +0 -178
  1026. package/dist/solutions-components/calcite-flow-item.entry.js +0 -194
  1027. package/dist/solutions-components/calcite-flow.entry.js +0 -149
  1028. package/dist/solutions-components/calcite-graph.entry.js +0 -222
  1029. package/dist/solutions-components/calcite-handle.entry.js +0 -202
  1030. package/dist/solutions-components/calcite-icon.entry.js +0 -179
  1031. package/dist/solutions-components/calcite-inline-editable.entry.js +0 -253
  1032. package/dist/solutions-components/calcite-input-date-picker.entry.js +0 -753
  1033. package/dist/solutions-components/calcite-input-message.entry.js +0 -65
  1034. package/dist/solutions-components/calcite-input-number.entry.js +0 -632
  1035. package/dist/solutions-components/calcite-input-text.entry.js +0 -369
  1036. package/dist/solutions-components/calcite-input-time-picker-c336a83c.js +0 -1864
  1037. package/dist/solutions-components/calcite-input-time-picker.entry.js +0 -25
  1038. package/dist/solutions-components/calcite-input-time-zone.entry.js +0 -373
  1039. package/dist/solutions-components/calcite-input.entry.js +0 -705
  1040. package/dist/solutions-components/calcite-label.entry.js +0 -67
  1041. package/dist/solutions-components/calcite-link.entry.js +0 -108
  1042. package/dist/solutions-components/calcite-list-item-group.entry.js +0 -66
  1043. package/dist/solutions-components/calcite-list-item.entry.js +0 -452
  1044. package/dist/solutions-components/calcite-list.entry.js +0 -556
  1045. package/dist/solutions-components/calcite-loader.entry.js +0 -76
  1046. package/dist/solutions-components/calcite-menu-item.entry.js +0 -284
  1047. package/dist/solutions-components/calcite-menu.entry.js +0 -180
  1048. package/dist/solutions-components/calcite-meter.entry.js +0 -332
  1049. package/dist/solutions-components/calcite-modal.entry.js +0 -394
  1050. package/dist/solutions-components/calcite-navigation-logo.entry.js +0 -92
  1051. package/dist/solutions-components/calcite-navigation-user.entry.js +0 -68
  1052. package/dist/solutions-components/calcite-navigation.entry.js +0 -166
  1053. package/dist/solutions-components/calcite-notice.entry.js +0 -163
  1054. package/dist/solutions-components/calcite-option-group.entry.js +0 -35
  1055. package/dist/solutions-components/calcite-option.entry.js +0 -84
  1056. package/dist/solutions-components/calcite-pagination.entry.js +0 -580
  1057. package/dist/solutions-components/calcite-panel.entry.js +0 -266
  1058. package/dist/solutions-components/calcite-pick-list-group.entry.js +0 -57
  1059. package/dist/solutions-components/calcite-pick-list-item.entry.js +0 -193
  1060. package/dist/solutions-components/calcite-pick-list.entry.js +0 -142
  1061. package/dist/solutions-components/calcite-popover.entry.js +0 -415
  1062. package/dist/solutions-components/calcite-progress.entry.js +0 -37
  1063. package/dist/solutions-components/calcite-radio-button-group.entry.js +0 -141
  1064. package/dist/solutions-components/calcite-radio-button.entry.js +0 -318
  1065. package/dist/solutions-components/calcite-rating.entry.js +0 -261
  1066. package/dist/solutions-components/calcite-scrim.entry.js +0 -121
  1067. package/dist/solutions-components/calcite-segmented-control-item.entry.js +0 -66
  1068. package/dist/solutions-components/calcite-segmented-control.entry.js +0 -254
  1069. package/dist/solutions-components/calcite-select.entry.js +0 -244
  1070. package/dist/solutions-components/calcite-sheet.entry.js +0 -223
  1071. package/dist/solutions-components/calcite-shell-center-row.entry.js +0 -66
  1072. package/dist/solutions-components/calcite-shell-panel.entry.js +0 -410
  1073. package/dist/solutions-components/calcite-shell.entry.js +0 -170
  1074. package/dist/solutions-components/calcite-slider.entry.js +0 -870
  1075. package/dist/solutions-components/calcite-sortable-list.entry.js +0 -166
  1076. package/dist/solutions-components/calcite-split-button.entry.js +0 -112
  1077. package/dist/solutions-components/calcite-stack.entry.js +0 -70
  1078. package/dist/solutions-components/calcite-stepper-item.entry.js +0 -237
  1079. package/dist/solutions-components/calcite-stepper.entry.js +0 -336
  1080. package/dist/solutions-components/calcite-switch.entry.js +0 -113
  1081. package/dist/solutions-components/calcite-tab-nav.entry.js +0 -466
  1082. package/dist/solutions-components/calcite-tab-title.entry.js +0 -287
  1083. package/dist/solutions-components/calcite-tab.entry.js +0 -108
  1084. package/dist/solutions-components/calcite-table-cell.entry.js +0 -162
  1085. package/dist/solutions-components/calcite-table-header.entry.js +0 -179
  1086. package/dist/solutions-components/calcite-table-row.entry.js +0 -259
  1087. package/dist/solutions-components/calcite-table.entry.js +0 -323
  1088. package/dist/solutions-components/calcite-tabs.entry.js +0 -174
  1089. package/dist/solutions-components/calcite-text-area.entry.js +0 -302
  1090. package/dist/solutions-components/calcite-tile-group.entry.js +0 -170
  1091. package/dist/solutions-components/calcite-tile-select-group.entry.js +0 -39
  1092. package/dist/solutions-components/calcite-tile-select.entry.js +0 -225
  1093. package/dist/solutions-components/calcite-tile.entry.js +0 -197
  1094. package/dist/solutions-components/calcite-time-picker.entry.js +0 -839
  1095. package/dist/solutions-components/calcite-tip-group.entry.js +0 -21
  1096. package/dist/solutions-components/calcite-tip-manager.entry.js +0 -227
  1097. package/dist/solutions-components/calcite-tip.entry.js +0 -126
  1098. package/dist/solutions-components/calcite-tooltip.entry.js +0 -431
  1099. package/dist/solutions-components/calcite-tree-item.entry.js +0 -294
  1100. package/dist/solutions-components/calcite-tree.entry.js +0 -311
  1101. package/dist/solutions-components/calcite-value-list-item.entry.js +0 -153
  1102. package/dist/solutions-components/calcite-value-list.entry.js +0 -321
  1103. package/dist/solutions-components/card-manager.entry.js +0 -103
  1104. package/dist/solutions-components/common-17d5568a.js +0 -295
  1105. package/dist/solutions-components/component-960ddabf.js +0 -30
  1106. package/dist/solutions-components/conditionalSlot-937057aa.js +0 -51
  1107. package/dist/solutions-components/consent-manager.entry.js +0 -1099
  1108. package/dist/solutions-components/core-a0d3cc0e.js +0 -324
  1109. package/dist/solutions-components/create-feature.entry.js +0 -407
  1110. package/dist/solutions-components/create-related-feature.entry.js +0 -284
  1111. package/dist/solutions-components/crowdsource-manager.entry.js +0 -539
  1112. package/dist/solutions-components/crowdsource-reporter.entry.js +0 -913
  1113. package/dist/solutions-components/cs-be3aa1ae.js +0 -146
  1114. package/dist/solutions-components/da-5a58f3f2.js +0 -65
  1115. package/dist/solutions-components/date-a63e8e28.js +0 -245
  1116. package/dist/solutions-components/de-at-780d22a4.js +0 -89
  1117. package/dist/solutions-components/de-ch-5cf4813a.js +0 -89
  1118. package/dist/solutions-components/de-d041f0a0.js +0 -90
  1119. package/dist/solutions-components/deduct-calculator.entry.js +0 -101
  1120. package/dist/solutions-components/delete-button.entry.js +0 -146
  1121. package/dist/solutions-components/dom-1f06a111.js +0 -1141
  1122. package/dist/solutions-components/downloadUtils-238038d2.js +0 -4240
  1123. package/dist/solutions-components/edit-card.entry.js +0 -224
  1124. package/dist/solutions-components/el-7c6af41a.js +0 -65
  1125. package/dist/solutions-components/en-au-dd7a3ee4.js +0 -65
  1126. package/dist/solutions-components/en-ca-4b21b3cd.js +0 -64
  1127. package/dist/solutions-components/en-gb-6ab000e3.js +0 -68
  1128. package/dist/solutions-components/es-1fd84773.js +0 -65
  1129. package/dist/solutions-components/es-mx-b82367c3.js +0 -64
  1130. package/dist/solutions-components/esri-loader-5bf2f164.js +0 -308
  1131. package/dist/solutions-components/et-08a0e4a8.js +0 -91
  1132. package/dist/solutions-components/feature-comments.entry.js +0 -56
  1133. package/dist/solutions-components/feature-details.entry.js +0 -381
  1134. package/dist/solutions-components/feature-form-flow-item.entry.js +0 -56
  1135. package/dist/solutions-components/feature-list.entry.js +0 -301
  1136. package/dist/solutions-components/features-flow-item.entry.js +0 -56
  1137. package/dist/solutions-components/fi-fe995ecb.js +0 -114
  1138. package/dist/solutions-components/filter-e3e2b01f.js +0 -46
  1139. package/dist/solutions-components/floating-ui-112e26aa.js +0 -2369
  1140. package/dist/solutions-components/floor-filter.entry.js +0 -149
  1141. package/dist/solutions-components/focusTrapComponent-fb975f9c.js +0 -1023
  1142. package/dist/solutions-components/form-cd789357.js +0 -372
  1143. package/dist/solutions-components/fr-aed06af0.js +0 -67
  1144. package/dist/solutions-components/fr-ch-a9d10a0f.js +0 -65
  1145. package/dist/solutions-components/guid-f05d01d5.js +0 -24
  1146. package/dist/solutions-components/he-a0a1731e.js +0 -104
  1147. package/dist/solutions-components/helpers-457bbf66.js +0 -840
  1148. package/dist/solutions-components/hi-ae48041a.js +0 -64
  1149. package/dist/solutions-components/hr-2ae1f998.js +0 -79
  1150. package/dist/solutions-components/html2canvas-88d6eded.js +0 -7850
  1151. package/dist/solutions-components/hu-2615f261.js +0 -87
  1152. package/dist/solutions-components/id-598e1355.js +0 -65
  1153. package/dist/solutions-components/index-0eecd45f.js +0 -2998
  1154. package/dist/solutions-components/index-5110a27a.js +0 -71
  1155. package/dist/solutions-components/index-8b8db9ba.js +0 -1970
  1156. package/dist/solutions-components/index-a1e91462.js +0 -2105
  1157. package/dist/solutions-components/index-a879e1d6.js +0 -41699
  1158. package/dist/solutions-components/index-b1418e2a.js +0 -199
  1159. package/dist/solutions-components/index-d8ff08ed.js +0 -204
  1160. package/dist/solutions-components/index.es-e2310dbf.js +0 -11591
  1161. package/dist/solutions-components/info-card.entry.js +0 -363
  1162. package/dist/solutions-components/input-96cf61a2.js +0 -58
  1163. package/dist/solutions-components/instant-apps-ckeditor-wrapper.entry.js +0 -121
  1164. package/dist/solutions-components/instant-apps-control-panel.entry.js +0 -92
  1165. package/dist/solutions-components/instant-apps-create.entry.js +0 -264
  1166. package/dist/solutions-components/instant-apps-export-views.entry.js +0 -722
  1167. package/dist/solutions-components/instant-apps-export.entry.js +0 -903
  1168. package/dist/solutions-components/instant-apps-filter-list.entry.js +0 -1063
  1169. package/dist/solutions-components/instant-apps-header.entry.js +0 -125
  1170. package/dist/solutions-components/instant-apps-interactive-legend-classic.entry.js +0 -1616
  1171. package/dist/solutions-components/instant-apps-interactive-legend-count.entry.js +0 -100
  1172. package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element-caption.entry.js +0 -53
  1173. package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element.entry.js +0 -52
  1174. package/dist/solutions-components/instant-apps-interactive-legend-layer-element-caption.entry.js +0 -51
  1175. package/dist/solutions-components/instant-apps-interactive-legend-layer-element.entry.js +0 -53
  1176. package/dist/solutions-components/instant-apps-interactive-legend-legend-element-caption.entry.js +0 -100
  1177. package/dist/solutions-components/instant-apps-interactive-legend-legend-element.entry.js +0 -61
  1178. package/dist/solutions-components/instant-apps-interactive-legend-relationship.entry.js +0 -548
  1179. package/dist/solutions-components/instant-apps-interactive-legend.entry.js +0 -112
  1180. package/dist/solutions-components/instant-apps-keyboard-shortcuts.entry.js +0 -139
  1181. package/dist/solutions-components/instant-apps-landing-page.entry.js +0 -150
  1182. package/dist/solutions-components/instant-apps-language-switcher.entry.js +0 -173
  1183. package/dist/solutions-components/instant-apps-language-translator-item.entry.js +0 -380
  1184. package/dist/solutions-components/instant-apps-language-translator-search.entry.js +0 -101
  1185. package/dist/solutions-components/instant-apps-language-translator.entry.js +0 -286
  1186. package/dist/solutions-components/instant-apps-measurement-tool.entry.js +0 -135
  1187. package/dist/solutions-components/instant-apps-measurement.entry.js +0 -66
  1188. package/dist/solutions-components/instant-apps-popover.entry.js +0 -74
  1189. package/dist/solutions-components/instant-apps-popovers.entry.js +0 -88
  1190. package/dist/solutions-components/instant-apps-scoreboard.entry.js +0 -463
  1191. package/dist/solutions-components/instant-apps-sign-in.entry.js +0 -164
  1192. package/dist/solutions-components/instant-apps-social-share.entry.js +0 -516
  1193. package/dist/solutions-components/instant-apps-splash.entry.js +0 -144
  1194. package/dist/solutions-components/interactive-179483f5.js +0 -149
  1195. package/dist/solutions-components/interfaces-586e863c.js +0 -80
  1196. package/dist/solutions-components/it-56a44209.js +0 -65
  1197. package/dist/solutions-components/it-ch-8fd9abf4.js +0 -65
  1198. package/dist/solutions-components/ja-66007f4d.js +0 -71
  1199. package/dist/solutions-components/json-editor.entry.js +0 -402
  1200. package/dist/solutions-components/key-15222297.js +0 -44
  1201. package/dist/solutions-components/ko-2e3b9aa8.js +0 -71
  1202. package/dist/solutions-components/label-c34ec0cf.js +0 -179
  1203. package/dist/solutions-components/languageUtil-83ed2742.js +0 -87
  1204. package/dist/solutions-components/layer-list.entry.js +0 -193
  1205. package/dist/solutions-components/layer-table.entry.js +0 -1558
  1206. package/dist/solutions-components/layout-manager.entry.js +0 -91
  1207. package/dist/solutions-components/list-flow-item.entry.js +0 -56
  1208. package/dist/solutions-components/loadModules-18662c29.js +0 -28
  1209. package/dist/solutions-components/loadable-5f2ac40f.js +0 -92
  1210. package/dist/solutions-components/locale-1b4d548e.js +0 -572
  1211. package/dist/solutions-components/locale-448ea937.js +0 -148
  1212. package/dist/solutions-components/locale-f1dd2532.js +0 -86
  1213. package/dist/solutions-components/location-flow-item.entry.js +0 -56
  1214. package/dist/solutions-components/lodash-98e4b7d0.js +0 -18025
  1215. package/dist/solutions-components/lt-2a6a8e94.js +0 -96
  1216. package/dist/solutions-components/lv-8b3c01bb.js +0 -65
  1217. package/dist/solutions-components/map-card.entry.js +0 -227
  1218. package/dist/solutions-components/map-draw-tools.entry.js +0 -354
  1219. package/dist/solutions-components/map-fullscreen.entry.js +0 -112
  1220. package/dist/solutions-components/map-layer-picker.entry.js +0 -342
  1221. package/dist/solutions-components/map-legend.entry.js +0 -105
  1222. package/dist/solutions-components/map-picker.entry.js +0 -170
  1223. package/dist/solutions-components/map-search.entry.js +0 -180
  1224. package/dist/solutions-components/map-select-tools.entry.js +0 -794
  1225. package/dist/solutions-components/map-tools.entry.js +0 -371
  1226. package/dist/solutions-components/mapViewUtils-d4946a31.js +0 -284
  1227. package/dist/solutions-components/math-81650811.js +0 -54
  1228. package/dist/solutions-components/mk-428c21bd.js +0 -65
  1229. package/dist/solutions-components/mode-e7b9fabb.js +0 -25
  1230. package/dist/solutions-components/nb-67929ffe.js +0 -66
  1231. package/dist/solutions-components/nl-954b9062.js +0 -66
  1232. package/dist/solutions-components/observers-81ed4977.js +0 -56
  1233. package/dist/solutions-components/openCloseComponent-739f40b7.js +0 -138
  1234. package/dist/solutions-components/p-1a12761f.entry.js +0 -6
  1235. package/dist/solutions-components/parser-a682fcdf.js +0 -1646
  1236. package/dist/solutions-components/pci-calculator.entry.js +0 -113
  1237. package/dist/solutions-components/pciUtils-986ddad9.js +0 -844
  1238. package/dist/solutions-components/pdf-download.entry.js +0 -355
  1239. package/dist/solutions-components/pl-eba736c7.js +0 -113
  1240. package/dist/solutions-components/popupUtils-c60ca656.js +0 -109
  1241. package/dist/solutions-components/pt-br-ed6f0302.js +0 -64
  1242. package/dist/solutions-components/pt-e6518f49.js +0 -66
  1243. package/dist/solutions-components/public-notification.entry.js +0 -1005
  1244. package/dist/solutions-components/publicNotificationStore-59732134.js +0 -45
  1245. package/dist/solutions-components/purify-ed095e80.js +0 -1717
  1246. package/dist/solutions-components/queryUtils-2ee0f383.js +0 -274
  1247. package/dist/solutions-components/refine-results-flow-item.entry.js +0 -56
  1248. package/dist/solutions-components/refine-selection.entry.js +0 -408
  1249. package/dist/solutions-components/resources-092fef68.js +0 -106
  1250. package/dist/solutions-components/resources-16800cce.js +0 -24
  1251. package/dist/solutions-components/resources-3587e9a5.js +0 -20
  1252. package/dist/solutions-components/resources-66978311.js +0 -26
  1253. package/dist/solutions-components/resources-7c4efc5e.js +0 -22
  1254. package/dist/solutions-components/resources-7c61fbec.js +0 -62
  1255. package/dist/solutions-components/resources-7d202c09.js +0 -24
  1256. package/dist/solutions-components/resources-ae36eaff.js +0 -19
  1257. package/dist/solutions-components/resources-be0262db.js +0 -45
  1258. package/dist/solutions-components/resources-be5a6557.js +0 -26
  1259. package/dist/solutions-components/resources-dd68a4aa.js +0 -35
  1260. package/dist/solutions-components/resources-ec5198da.js +0 -49
  1261. package/dist/solutions-components/ro-cb3c8995.js +0 -65
  1262. package/dist/solutions-components/ru-dd440634.js +0 -125
  1263. package/dist/solutions-components/shadow-css-15628d22.js +0 -361
  1264. package/dist/solutions-components/share-item.entry.js +0 -56
  1265. package/dist/solutions-components/shared-list-render-a787615a.js +0 -348
  1266. package/dist/solutions-components/sk-a8db2217.js +0 -147
  1267. package/dist/solutions-components/sl-f798a76e.js +0 -167
  1268. package/dist/solutions-components/solution-configuration.entry.js +0 -565
  1269. package/dist/solutions-components/solution-contents.entry.js +0 -80
  1270. package/dist/solutions-components/solution-item-details.entry.js +0 -195
  1271. package/dist/solutions-components/solution-item-icon.entry.js +0 -323
  1272. package/dist/solutions-components/solution-item-sharing.entry.js +0 -135
  1273. package/dist/solutions-components/solution-item.entry.js +0 -102
  1274. package/dist/solutions-components/solution-organization-variables.entry.js +0 -91
  1275. package/dist/solutions-components/solution-resource-item.entry.js +0 -280
  1276. package/dist/solutions-components/solution-spatial-ref.entry.js +0 -164
  1277. package/dist/solutions-components/solution-store-5a6cf181.js +0 -585
  1278. package/dist/solutions-components/solution-template-data.entry.js +0 -115
  1279. package/dist/solutions-components/solution-variables.entry.js +0 -103
  1280. package/dist/solutions-components/sortableComponent-ee74aef6.js +0 -3440
  1281. package/dist/solutions-components/spatial-ref.entry.js +0 -21296
  1282. package/dist/solutions-components/sr-342a663a.js +0 -100
  1283. package/dist/solutions-components/store-b2b2565a.js +0 -87
  1284. package/dist/solutions-components/store-manager.entry.js +0 -75
  1285. package/dist/solutions-components/styles-b3492d9f.js +0 -11
  1286. package/dist/solutions-components/sv-84670dbd.js +0 -70
  1287. package/dist/solutions-components/t9n-2df2d559.js +0 -98
  1288. package/dist/solutions-components/templates-335c6b6f.js +0 -436
  1289. package/dist/solutions-components/th-a9c8533d.js +0 -64
  1290. package/dist/solutions-components/time-d753f161.js +0 -274
  1291. package/dist/solutions-components/tr-c2cc2873.js +0 -65
  1292. package/dist/solutions-components/uk-906a1eb0.js +0 -103
  1293. package/dist/solutions-components/utils-2c8108af.js +0 -133
  1294. package/dist/solutions-components/utils-580e77c3.js +0 -208
  1295. package/dist/solutions-components/utils-9aa96070.js +0 -61
  1296. package/dist/solutions-components/utils-ab48a0d6.js +0 -47
  1297. package/dist/solutions-components/utils-f96adae4.js +0 -57
  1298. package/dist/solutions-components/vi-7b43fafd.js +0 -69
  1299. package/dist/solutions-components/zh-cn-c19f2858.js +0 -93
  1300. package/dist/solutions-components/zh-hk-f212412d.js +0 -70
  1301. package/dist/solutions-components/zh-tw-be3a4302.js +0 -91
  1302. /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
  1303. /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
  1304. /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
@@ -1,2998 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- const NAMESPACE = 'solutions-components';
7
- const BUILD = /* solutions-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: true, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: true, isTesting: true, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: true, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
8
- const Env = /* solutions-components */ {};
9
-
10
- /*
11
- Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
12
- */
13
- var __defProp = Object.defineProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var Build = {
19
- isDev: BUILD.isDev ? true : false,
20
- isBrowser: true,
21
- isServer: false,
22
- isTesting: BUILD.isTesting ? true : false
23
- };
24
- var hostRefs = BUILD.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
25
- var getHostRef = (ref) => hostRefs.get(ref);
26
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
27
- var registerHost = (hostElement, cmpMeta) => {
28
- const hostRef = {
29
- $flags$: 0,
30
- $hostElement$: hostElement,
31
- $cmpMeta$: cmpMeta,
32
- $instanceValues$: /* @__PURE__ */ new Map()
33
- };
34
- if (BUILD.isDev) {
35
- hostRef.$renderCount$ = 0;
36
- }
37
- if (BUILD.method && BUILD.lazyLoad) {
38
- hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
39
- }
40
- if (BUILD.asyncLoading) {
41
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
42
- hostElement["s-p"] = [];
43
- hostElement["s-rc"] = [];
44
- }
45
- return hostRefs.set(hostElement, hostRef);
46
- };
47
- var isMemberInElement = (elm, memberName) => memberName in elm;
48
- var customError;
49
- var consoleError = (e, el) => (customError || console.error)(e, el);
50
- var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
51
- "%cstencil",
52
- "color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
53
- ];
54
- var consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);
55
- var consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);
56
- var consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);
57
- var setErrorHandler = (handler) => customError = handler;
58
-
59
- // src/client/client-load-module.ts
60
- var cmpModules = /* @__PURE__ */ new Map();
61
- var MODULE_IMPORT_PREFIX = "./";
62
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
63
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
64
- const bundleId = cmpMeta.$lazyBundleId$;
65
- if (BUILD.isDev && typeof bundleId !== "string") {
66
- consoleDevError(
67
- `Trying to lazily load component <${cmpMeta.$tagName$}> with style mode "${hostRef.$modeName$}", but it does not exist.`
68
- );
69
- return void 0;
70
- } else if (!bundleId) {
71
- return void 0;
72
- }
73
- const module = !BUILD.hotModuleReplacement ? cmpModules.get(bundleId) : false;
74
- if (module) {
75
- return module[exportName];
76
- }
77
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
78
- return import(
79
- /* @vite-ignore */
80
- /* webpackInclude: /\.entry\.js$/ */
81
- /* webpackExclude: /\.system\.entry\.js$/ */
82
- /* webpackMode: "lazy" */
83
- `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? "?s-hmr=" + hmrVersionId : ""}`
84
- ).then((importedModule) => {
85
- if (!BUILD.hotModuleReplacement) {
86
- cmpModules.set(bundleId, importedModule);
87
- }
88
- return importedModule[exportName];
89
- }, consoleError);
90
- };
91
-
92
- // src/client/client-style.ts
93
- var styles = /* @__PURE__ */ new Map();
94
- var modeResolutionChain = [];
95
-
96
- // src/runtime/runtime-constants.ts
97
- var CONTENT_REF_ID = "r";
98
- var ORG_LOCATION_ID = "o";
99
- var SLOT_NODE_ID = "s";
100
- var TEXT_NODE_ID = "t";
101
- var HYDRATE_ID = "s-id";
102
- var HYDRATED_STYLE_ID = "sty-id";
103
- var HYDRATE_CHILD_ID = "c-id";
104
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
105
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
106
- var XLINK_NS = "http://www.w3.org/1999/xlink";
107
- var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
108
- "formAssociatedCallback",
109
- "formResetCallback",
110
- "formDisabledCallback",
111
- "formStateRestoreCallback"
112
- ];
113
- var win = typeof window !== "undefined" ? window : {};
114
- var doc = win.document || { head: {} };
115
- var H = win.HTMLElement || class {
116
- };
117
- var plt = {
118
- $flags$: 0,
119
- $resourcesUrl$: "",
120
- jmp: (h2) => h2(),
121
- raf: (h2) => requestAnimationFrame(h2),
122
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
123
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
124
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
125
- };
126
- var setPlatformHelpers = (helpers) => {
127
- Object.assign(plt, helpers);
128
- };
129
- var supportsShadow = BUILD.shadowDom;
130
- var supportsListenerOptions = /* @__PURE__ */ (() => {
131
- let supportsListenerOptions2 = false;
132
- try {
133
- doc.addEventListener(
134
- "e",
135
- null,
136
- Object.defineProperty({}, "passive", {
137
- get() {
138
- supportsListenerOptions2 = true;
139
- }
140
- })
141
- );
142
- } catch (e) {
143
- }
144
- return supportsListenerOptions2;
145
- })();
146
- var promiseResolve = (v) => Promise.resolve(v);
147
- var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
148
- try {
149
- new CSSStyleSheet();
150
- return typeof new CSSStyleSheet().replaceSync === "function";
151
- } catch (e) {
152
- }
153
- return false;
154
- })() : false;
155
-
156
- // src/client/client-task-queue.ts
157
- var queueCongestion = 0;
158
- var queuePending = false;
159
- var queueDomReads = [];
160
- var queueDomWrites = [];
161
- var queueDomWritesLow = [];
162
- var queueTask = (queue, write) => (cb) => {
163
- queue.push(cb);
164
- if (!queuePending) {
165
- queuePending = true;
166
- if (write && plt.$flags$ & 4 /* queueSync */) {
167
- nextTick(flush);
168
- } else {
169
- plt.raf(flush);
170
- }
171
- }
172
- };
173
- var consume = (queue) => {
174
- for (let i2 = 0; i2 < queue.length; i2++) {
175
- try {
176
- queue[i2](performance.now());
177
- } catch (e) {
178
- consoleError(e);
179
- }
180
- }
181
- queue.length = 0;
182
- };
183
- var consumeTimeout = (queue, timeout) => {
184
- let i2 = 0;
185
- let ts = 0;
186
- while (i2 < queue.length && (ts = performance.now()) < timeout) {
187
- try {
188
- queue[i2++](ts);
189
- } catch (e) {
190
- consoleError(e);
191
- }
192
- }
193
- if (i2 === queue.length) {
194
- queue.length = 0;
195
- } else if (i2 !== 0) {
196
- queue.splice(0, i2);
197
- }
198
- };
199
- var flush = () => {
200
- if (BUILD.asyncQueue) {
201
- queueCongestion++;
202
- }
203
- consume(queueDomReads);
204
- if (BUILD.asyncQueue) {
205
- const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */ ? performance.now() + 14 * Math.ceil(queueCongestion * (1 / 10)) : Infinity;
206
- consumeTimeout(queueDomWrites, timeout);
207
- consumeTimeout(queueDomWritesLow, timeout);
208
- if (queueDomWrites.length > 0) {
209
- queueDomWritesLow.push(...queueDomWrites);
210
- queueDomWrites.length = 0;
211
- }
212
- if (queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0) {
213
- plt.raf(flush);
214
- } else {
215
- queueCongestion = 0;
216
- }
217
- } else {
218
- consume(queueDomWrites);
219
- if (queuePending = queueDomReads.length > 0) {
220
- plt.raf(flush);
221
- }
222
- }
223
- };
224
- var nextTick = (cb) => promiseResolve().then(cb);
225
- var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
226
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
227
-
228
- // src/runtime/asset-path.ts
229
- var getAssetPath = (path) => {
230
- const assetUrl = new URL(path, plt.$resourcesUrl$);
231
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
232
- };
233
- var setAssetPath = (path) => plt.$resourcesUrl$ = path;
234
-
235
- // src/utils/constants.ts
236
- var EMPTY_OBJ = {};
237
- var SVG_NS = "http://www.w3.org/2000/svg";
238
- var HTML_NS = "http://www.w3.org/1999/xhtml";
239
-
240
- // src/utils/helpers.ts
241
- var isDef = (v) => v != null;
242
- var isComplexType = (o) => {
243
- o = typeof o;
244
- return o === "object" || o === "function";
245
- };
246
-
247
- // src/utils/query-nonce-meta-tag-content.ts
248
- function queryNonceMetaTagContent(doc2) {
249
- var _a, _b, _c;
250
- return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
251
- }
252
-
253
- // src/utils/result.ts
254
- var result_exports = {};
255
- __export(result_exports, {
256
- err: () => err,
257
- map: () => map,
258
- ok: () => ok,
259
- unwrap: () => unwrap,
260
- unwrapErr: () => unwrapErr
261
- });
262
- var ok = (value) => ({
263
- isOk: true,
264
- isErr: false,
265
- value
266
- });
267
- var err = (value) => ({
268
- isOk: false,
269
- isErr: true,
270
- value
271
- });
272
- function map(result, fn) {
273
- if (result.isOk) {
274
- const val = fn(result.value);
275
- if (val instanceof Promise) {
276
- return val.then((newVal) => ok(newVal));
277
- } else {
278
- return ok(val);
279
- }
280
- }
281
- if (result.isErr) {
282
- const value = result.value;
283
- return err(value);
284
- }
285
- throw "should never get here";
286
- }
287
- var unwrap = (result) => {
288
- if (result.isOk) {
289
- return result.value;
290
- } else {
291
- throw result.value;
292
- }
293
- };
294
- var unwrapErr = (result) => {
295
- if (result.isErr) {
296
- return result.value;
297
- } else {
298
- throw result.value;
299
- }
300
- };
301
- var i = 0;
302
- var createTime = (fnName, tagName = "") => {
303
- if (BUILD.profile && performance.mark) {
304
- const key = `st:${fnName}:${tagName}:${i++}`;
305
- performance.mark(key);
306
- return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);
307
- } else {
308
- return () => {
309
- return;
310
- };
311
- }
312
- };
313
- var uniqueTime = (key, measureText) => {
314
- if (BUILD.profile && performance.mark) {
315
- if (performance.getEntriesByName(key, "mark").length === 0) {
316
- performance.mark(key);
317
- }
318
- return () => {
319
- if (performance.getEntriesByName(measureText, "measure").length === 0) {
320
- performance.measure(measureText, key);
321
- }
322
- };
323
- } else {
324
- return () => {
325
- return;
326
- };
327
- }
328
- };
329
- var inspect = (ref) => {
330
- const hostRef = getHostRef(ref);
331
- if (!hostRef) {
332
- return void 0;
333
- }
334
- const flags = hostRef.$flags$;
335
- const hostElement = hostRef.$hostElement$;
336
- return {
337
- renderCount: hostRef.$renderCount$,
338
- flags: {
339
- hasRendered: !!(flags & 2 /* hasRendered */),
340
- hasConnected: !!(flags & 1 /* hasConnected */),
341
- isWaitingForChildren: !!(flags & 4 /* isWaitingForChildren */),
342
- isConstructingInstance: !!(flags & 8 /* isConstructingInstance */),
343
- isQueuedForUpdate: !!(flags & 16 /* isQueuedForUpdate */),
344
- hasInitializedComponent: !!(flags & 32 /* hasInitializedComponent */),
345
- hasLoadedComponent: !!(flags & 64 /* hasLoadedComponent */),
346
- isWatchReady: !!(flags & 128 /* isWatchReady */),
347
- isListenReady: !!(flags & 256 /* isListenReady */),
348
- needsRerender: !!(flags & 512 /* needsRerender */)
349
- },
350
- instanceValues: hostRef.$instanceValues$,
351
- ancestorComponent: hostRef.$ancestorComponent$,
352
- hostElement,
353
- lazyInstance: hostRef.$lazyInstance$,
354
- vnode: hostRef.$vnode$,
355
- modeName: hostRef.$modeName$,
356
- onReadyPromise: hostRef.$onReadyPromise$,
357
- onReadyResolve: hostRef.$onReadyResolve$,
358
- onInstancePromise: hostRef.$onInstancePromise$,
359
- onInstanceResolve: hostRef.$onInstanceResolve$,
360
- onRenderResolve: hostRef.$onRenderResolve$,
361
- queuedListeners: hostRef.$queuedListeners$,
362
- rmListeners: hostRef.$rmListeners$,
363
- ["s-id"]: hostElement["s-id"],
364
- ["s-cr"]: hostElement["s-cr"],
365
- ["s-lr"]: hostElement["s-lr"],
366
- ["s-p"]: hostElement["s-p"],
367
- ["s-rc"]: hostElement["s-rc"],
368
- ["s-sc"]: hostElement["s-sc"]
369
- };
370
- };
371
- var installDevTools = () => {
372
- if (BUILD.devTools) {
373
- const stencil = win.stencil = win.stencil || {};
374
- const originalInspect = stencil.inspect;
375
- stencil.inspect = (ref) => {
376
- let result = inspect(ref);
377
- if (!result && typeof originalInspect === "function") {
378
- result = originalInspect(ref);
379
- }
380
- return result;
381
- };
382
- }
383
- };
384
- var h = (nodeName, vnodeData, ...children) => {
385
- let child = null;
386
- let key = null;
387
- let slotName = null;
388
- let simple = false;
389
- let lastSimple = false;
390
- const vNodeChildren = [];
391
- const walk = (c) => {
392
- for (let i2 = 0; i2 < c.length; i2++) {
393
- child = c[i2];
394
- if (Array.isArray(child)) {
395
- walk(child);
396
- } else if (child != null && typeof child !== "boolean") {
397
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
398
- child = String(child);
399
- } else if (BUILD.isDev && typeof nodeName !== "function" && child.$flags$ === void 0) {
400
- consoleDevError(`vNode passed as children has unexpected type.
401
- Make sure it's using the correct h() function.
402
- Empty objects can also be the cause, look for JSX comments that became objects.`);
403
- }
404
- if (simple && lastSimple) {
405
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
406
- } else {
407
- vNodeChildren.push(simple ? newVNode(null, child) : child);
408
- }
409
- lastSimple = simple;
410
- }
411
- }
412
- };
413
- walk(children);
414
- if (vnodeData) {
415
- if (BUILD.isDev && nodeName === "input") {
416
- validateInputProperties(vnodeData);
417
- }
418
- if (BUILD.vdomKey && vnodeData.key) {
419
- key = vnodeData.key;
420
- }
421
- if (BUILD.slotRelocation && vnodeData.name) {
422
- slotName = vnodeData.name;
423
- }
424
- if (BUILD.vdomClass) {
425
- const classData = vnodeData.className || vnodeData.class;
426
- if (classData) {
427
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
428
- }
429
- }
430
- }
431
- if (BUILD.isDev && vNodeChildren.some(isHost)) {
432
- consoleDevError(`The <Host> must be the single root component. Make sure:
433
- - You are NOT using hostData() and <Host> in the same component.
434
- - <Host> is used once, and it's the single root component of the render() function.`);
435
- }
436
- if (BUILD.vdomFunctional && typeof nodeName === "function") {
437
- return nodeName(
438
- vnodeData === null ? {} : vnodeData,
439
- vNodeChildren,
440
- vdomFnUtils
441
- );
442
- }
443
- const vnode = newVNode(nodeName, null);
444
- vnode.$attrs$ = vnodeData;
445
- if (vNodeChildren.length > 0) {
446
- vnode.$children$ = vNodeChildren;
447
- }
448
- if (BUILD.vdomKey) {
449
- vnode.$key$ = key;
450
- }
451
- if (BUILD.slotRelocation) {
452
- vnode.$name$ = slotName;
453
- }
454
- return vnode;
455
- };
456
- var newVNode = (tag, text) => {
457
- const vnode = {
458
- $flags$: 0,
459
- $tag$: tag,
460
- $text$: text,
461
- $elm$: null,
462
- $children$: null
463
- };
464
- if (BUILD.vdomAttribute) {
465
- vnode.$attrs$ = null;
466
- }
467
- if (BUILD.vdomKey) {
468
- vnode.$key$ = null;
469
- }
470
- if (BUILD.slotRelocation) {
471
- vnode.$name$ = null;
472
- }
473
- return vnode;
474
- };
475
- var Host = {};
476
- var isHost = (node) => node && node.$tag$ === Host;
477
- var vdomFnUtils = {
478
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
479
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
480
- };
481
- var convertToPublic = (node) => ({
482
- vattrs: node.$attrs$,
483
- vchildren: node.$children$,
484
- vkey: node.$key$,
485
- vname: node.$name$,
486
- vtag: node.$tag$,
487
- vtext: node.$text$
488
- });
489
- var convertToPrivate = (node) => {
490
- if (typeof node.vtag === "function") {
491
- const vnodeData = { ...node.vattrs };
492
- if (node.vkey) {
493
- vnodeData.key = node.vkey;
494
- }
495
- if (node.vname) {
496
- vnodeData.name = node.vname;
497
- }
498
- return h(node.vtag, vnodeData, ...node.vchildren || []);
499
- }
500
- const vnode = newVNode(node.vtag, node.vtext);
501
- vnode.$attrs$ = node.vattrs;
502
- vnode.$children$ = node.vchildren;
503
- vnode.$key$ = node.vkey;
504
- vnode.$name$ = node.vname;
505
- return vnode;
506
- };
507
- var validateInputProperties = (inputElm) => {
508
- const props = Object.keys(inputElm);
509
- const value = props.indexOf("value");
510
- if (value === -1) {
511
- return;
512
- }
513
- const typeIndex = props.indexOf("type");
514
- const minIndex = props.indexOf("min");
515
- const maxIndex = props.indexOf("max");
516
- const stepIndex = props.indexOf("step");
517
- if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {
518
- consoleDevWarn(`The "value" prop of <input> should be set after "min", "max", "type" and "step"`);
519
- }
520
- };
521
-
522
- // src/runtime/client-hydrate.ts
523
- var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
524
- const endHydrate = createTime("hydrateClient", tagName);
525
- const shadowRoot = hostElm.shadowRoot;
526
- const childRenderNodes = [];
527
- const slotNodes = [];
528
- const shadowRootNodes = BUILD.shadowDom && shadowRoot ? [] : null;
529
- const vnode = hostRef.$vnode$ = newVNode(tagName, null);
530
- if (!plt.$orgLocNodes$) {
531
- initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
532
- }
533
- hostElm[HYDRATE_ID] = hostId;
534
- hostElm.removeAttribute(HYDRATE_ID);
535
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
536
- childRenderNodes.map((c) => {
537
- const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
538
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
539
- const node = c.$elm$;
540
- if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
541
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
542
- }
543
- if (!shadowRoot) {
544
- node["s-hn"] = tagName;
545
- if (orgLocationNode) {
546
- node["s-ol"] = orgLocationNode;
547
- node["s-ol"]["s-nr"] = node;
548
- }
549
- }
550
- plt.$orgLocNodes$.delete(orgLocationId);
551
- });
552
- if (BUILD.shadowDom && shadowRoot) {
553
- shadowRootNodes.map((shadowRootNode) => {
554
- if (shadowRootNode) {
555
- shadowRoot.appendChild(shadowRootNode);
556
- }
557
- });
558
- }
559
- endHydrate();
560
- };
561
- var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
562
- let childNodeType;
563
- let childIdSplt;
564
- let childVNode;
565
- let i2;
566
- if (node.nodeType === 1 /* ElementNode */) {
567
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
568
- if (childNodeType) {
569
- childIdSplt = childNodeType.split(".");
570
- if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
571
- childVNode = {
572
- $flags$: 0,
573
- $hostId$: childIdSplt[0],
574
- $nodeId$: childIdSplt[1],
575
- $depth$: childIdSplt[2],
576
- $index$: childIdSplt[3],
577
- $tag$: node.tagName.toLowerCase(),
578
- $elm$: node,
579
- $attrs$: null,
580
- $children$: null,
581
- $key$: null,
582
- $name$: null,
583
- $text$: null
584
- };
585
- childRenderNodes.push(childVNode);
586
- node.removeAttribute(HYDRATE_CHILD_ID);
587
- if (!parentVNode.$children$) {
588
- parentVNode.$children$ = [];
589
- }
590
- parentVNode.$children$[childVNode.$index$] = childVNode;
591
- parentVNode = childVNode;
592
- if (shadowRootNodes && childVNode.$depth$ === "0") {
593
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
594
- }
595
- }
596
- }
597
- for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
598
- clientHydrate(
599
- parentVNode,
600
- childRenderNodes,
601
- slotNodes,
602
- shadowRootNodes,
603
- hostElm,
604
- node.childNodes[i2],
605
- hostId
606
- );
607
- }
608
- if (node.shadowRoot) {
609
- for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
610
- clientHydrate(
611
- parentVNode,
612
- childRenderNodes,
613
- slotNodes,
614
- shadowRootNodes,
615
- hostElm,
616
- node.shadowRoot.childNodes[i2],
617
- hostId
618
- );
619
- }
620
- }
621
- } else if (node.nodeType === 8 /* CommentNode */) {
622
- childIdSplt = node.nodeValue.split(".");
623
- if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
624
- childNodeType = childIdSplt[0];
625
- childVNode = {
626
- $flags$: 0,
627
- $hostId$: childIdSplt[1],
628
- $nodeId$: childIdSplt[2],
629
- $depth$: childIdSplt[3],
630
- $index$: childIdSplt[4],
631
- $elm$: node,
632
- $attrs$: null,
633
- $children$: null,
634
- $key$: null,
635
- $name$: null,
636
- $tag$: null,
637
- $text$: null
638
- };
639
- if (childNodeType === TEXT_NODE_ID) {
640
- childVNode.$elm$ = node.nextSibling;
641
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
642
- childVNode.$text$ = childVNode.$elm$.textContent;
643
- childRenderNodes.push(childVNode);
644
- node.remove();
645
- if (!parentVNode.$children$) {
646
- parentVNode.$children$ = [];
647
- }
648
- parentVNode.$children$[childVNode.$index$] = childVNode;
649
- if (shadowRootNodes && childVNode.$depth$ === "0") {
650
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
651
- }
652
- }
653
- } else if (childVNode.$hostId$ === hostId) {
654
- if (childNodeType === SLOT_NODE_ID) {
655
- childVNode.$tag$ = "slot";
656
- if (childIdSplt[5]) {
657
- node["s-sn"] = childVNode.$name$ = childIdSplt[5];
658
- } else {
659
- node["s-sn"] = "";
660
- }
661
- node["s-sr"] = true;
662
- if (BUILD.shadowDom && shadowRootNodes) {
663
- childVNode.$elm$ = doc.createElement(childVNode.$tag$);
664
- if (childVNode.$name$) {
665
- childVNode.$elm$.setAttribute("name", childVNode.$name$);
666
- }
667
- node.parentNode.insertBefore(childVNode.$elm$, node);
668
- node.remove();
669
- if (childVNode.$depth$ === "0") {
670
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
671
- }
672
- }
673
- slotNodes.push(childVNode);
674
- if (!parentVNode.$children$) {
675
- parentVNode.$children$ = [];
676
- }
677
- parentVNode.$children$[childVNode.$index$] = childVNode;
678
- } else if (childNodeType === CONTENT_REF_ID) {
679
- if (BUILD.shadowDom && shadowRootNodes) {
680
- node.remove();
681
- } else if (BUILD.slotRelocation) {
682
- hostElm["s-cr"] = node;
683
- node["s-cn"] = true;
684
- }
685
- }
686
- }
687
- }
688
- } else if (parentVNode && parentVNode.$tag$ === "style") {
689
- const vnode = newVNode(null, node.textContent);
690
- vnode.$elm$ = node;
691
- vnode.$index$ = "0";
692
- parentVNode.$children$ = [vnode];
693
- }
694
- };
695
- var initializeDocumentHydrate = (node, orgLocNodes) => {
696
- if (node.nodeType === 1 /* ElementNode */) {
697
- let i2 = 0;
698
- for (; i2 < node.childNodes.length; i2++) {
699
- initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
700
- }
701
- if (node.shadowRoot) {
702
- for (i2 = 0; i2 < node.shadowRoot.childNodes.length; i2++) {
703
- initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
704
- }
705
- }
706
- } else if (node.nodeType === 8 /* CommentNode */) {
707
- const childIdSplt = node.nodeValue.split(".");
708
- if (childIdSplt[0] === ORG_LOCATION_ID) {
709
- orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
710
- node.nodeValue = "";
711
- node["s-en"] = childIdSplt[3];
712
- }
713
- }
714
- };
715
-
716
- // src/runtime/mode.ts
717
- var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
718
- var setMode = (handler) => modeResolutionChain.push(handler);
719
- var getMode = (ref) => getHostRef(ref).$modeName$;
720
- var parsePropertyValue = (propValue, propType) => {
721
- if (propValue != null && !isComplexType(propValue)) {
722
- if (BUILD.propBoolean && propType & 4 /* Boolean */) {
723
- return propValue === "false" ? false : propValue === "" || !!propValue;
724
- }
725
- if (BUILD.propNumber && propType & 2 /* Number */) {
726
- return parseFloat(propValue);
727
- }
728
- if (BUILD.propString && propType & 1 /* String */) {
729
- return String(propValue);
730
- }
731
- return propValue;
732
- }
733
- return propValue;
734
- };
735
- var getElement = (ref) => BUILD.lazyLoad ? getHostRef(ref).$hostElement$ : ref;
736
-
737
- // src/runtime/event-emitter.ts
738
- var createEvent = (ref, name, flags) => {
739
- const elm = getElement(ref);
740
- return {
741
- emit: (detail) => {
742
- if (BUILD.isDev && !elm.isConnected) {
743
- consoleDevWarn(`The "${name}" event was emitted, but the dispatcher node is no longer connected to the dom.`);
744
- }
745
- return emitEvent(elm, name, {
746
- bubbles: !!(flags & 4 /* Bubbles */),
747
- composed: !!(flags & 2 /* Composed */),
748
- cancelable: !!(flags & 1 /* Cancellable */),
749
- detail
750
- });
751
- }
752
- };
753
- };
754
- var emitEvent = (elm, name, opts) => {
755
- const ev = plt.ce(name, opts);
756
- elm.dispatchEvent(ev);
757
- return ev;
758
- };
759
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
760
- var registerStyle = (scopeId2, cssText, allowCS) => {
761
- let style = styles.get(scopeId2);
762
- if (supportsConstructableStylesheets && allowCS) {
763
- style = style || new CSSStyleSheet();
764
- if (typeof style === "string") {
765
- style = cssText;
766
- } else {
767
- style.replaceSync(cssText);
768
- }
769
- } else {
770
- style = cssText;
771
- }
772
- styles.set(scopeId2, style);
773
- };
774
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
775
- var _a;
776
- const scopeId2 = getScopeId(cmpMeta, mode);
777
- const style = styles.get(scopeId2);
778
- if (!BUILD.attachStyles) {
779
- return scopeId2;
780
- }
781
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
782
- if (style) {
783
- if (typeof style === "string") {
784
- styleContainerNode = styleContainerNode.head || styleContainerNode;
785
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
786
- let styleElm;
787
- if (!appliedStyles) {
788
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
789
- }
790
- if (!appliedStyles.has(scopeId2)) {
791
- if (BUILD.hydrateClientSide && styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
792
- styleElm.innerHTML = style;
793
- } else {
794
- styleElm = doc.createElement("style");
795
- styleElm.innerHTML = style;
796
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
797
- if (nonce != null) {
798
- styleElm.setAttribute("nonce", nonce);
799
- }
800
- if (BUILD.hydrateServerSide || BUILD.hotModuleReplacement) {
801
- styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
802
- }
803
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
804
- }
805
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
806
- styleElm.innerHTML += SLOT_FB_CSS;
807
- }
808
- if (appliedStyles) {
809
- appliedStyles.add(scopeId2);
810
- }
811
- }
812
- } else if (BUILD.constructableCSS && !styleContainerNode.adoptedStyleSheets.includes(style)) {
813
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
814
- }
815
- }
816
- return scopeId2;
817
- };
818
- var attachStyles = (hostRef) => {
819
- const cmpMeta = hostRef.$cmpMeta$;
820
- const elm = hostRef.$hostElement$;
821
- const flags = cmpMeta.$flags$;
822
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
823
- const scopeId2 = addStyle(
824
- BUILD.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
825
- cmpMeta,
826
- hostRef.$modeName$
827
- );
828
- if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
829
- elm["s-sc"] = scopeId2;
830
- elm.classList.add(scopeId2 + "-h");
831
- if (BUILD.scoped && flags & 2 /* scopedCssEncapsulation */) {
832
- elm.classList.add(scopeId2 + "-s");
833
- }
834
- }
835
- endAttachStyles();
836
- };
837
- var getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
838
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
839
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
840
- if (oldValue !== newValue) {
841
- let isProp = isMemberInElement(elm, memberName);
842
- let ln = memberName.toLowerCase();
843
- if (BUILD.vdomClass && memberName === "class") {
844
- const classList = elm.classList;
845
- const oldClasses = parseClassList(oldValue);
846
- const newClasses = parseClassList(newValue);
847
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
848
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
849
- } else if (BUILD.vdomStyle && memberName === "style") {
850
- if (BUILD.updatable) {
851
- for (const prop in oldValue) {
852
- if (!newValue || newValue[prop] == null) {
853
- if (!BUILD.hydrateServerSide && prop.includes("-")) {
854
- elm.style.removeProperty(prop);
855
- } else {
856
- elm.style[prop] = "";
857
- }
858
- }
859
- }
860
- }
861
- for (const prop in newValue) {
862
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
863
- if (!BUILD.hydrateServerSide && prop.includes("-")) {
864
- elm.style.setProperty(prop, newValue[prop]);
865
- } else {
866
- elm.style[prop] = newValue[prop];
867
- }
868
- }
869
- }
870
- } else if (BUILD.vdomKey && memberName === "key") {
871
- } else if (BUILD.vdomRef && memberName === "ref") {
872
- if (newValue) {
873
- newValue(elm);
874
- }
875
- } else if (BUILD.vdomListener && (BUILD.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
876
- if (memberName[2] === "-") {
877
- memberName = memberName.slice(3);
878
- } else if (isMemberInElement(win, ln)) {
879
- memberName = ln.slice(2);
880
- } else {
881
- memberName = ln[2] + memberName.slice(3);
882
- }
883
- if (oldValue || newValue) {
884
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
885
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
886
- if (oldValue) {
887
- plt.rel(elm, memberName, oldValue, capture);
888
- }
889
- if (newValue) {
890
- plt.ael(elm, memberName, newValue, capture);
891
- }
892
- }
893
- } else if (BUILD.vdomPropOrAttr) {
894
- const isComplex = isComplexType(newValue);
895
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
896
- try {
897
- if (!elm.tagName.includes("-")) {
898
- const n = newValue == null ? "" : newValue;
899
- if (memberName === "list") {
900
- isProp = false;
901
- } else if (oldValue == null || elm[memberName] != n) {
902
- elm[memberName] = n;
903
- }
904
- } else {
905
- elm[memberName] = newValue;
906
- }
907
- } catch (e) {
908
- }
909
- }
910
- let xlink = false;
911
- if (BUILD.vdomXlink) {
912
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
913
- memberName = ln;
914
- xlink = true;
915
- }
916
- }
917
- if (newValue == null || newValue === false) {
918
- if (newValue !== false || elm.getAttribute(memberName) === "") {
919
- if (BUILD.vdomXlink && xlink) {
920
- elm.removeAttributeNS(XLINK_NS, memberName);
921
- } else {
922
- elm.removeAttribute(memberName);
923
- }
924
- }
925
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
926
- newValue = newValue === true ? "" : newValue;
927
- if (BUILD.vdomXlink && xlink) {
928
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
929
- } else {
930
- elm.setAttribute(memberName, newValue);
931
- }
932
- }
933
- }
934
- }
935
- };
936
- var parseClassListRegex = /\s/;
937
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
938
- var CAPTURE_EVENT_SUFFIX = "Capture";
939
- var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
940
-
941
- // src/runtime/vdom/update-element.ts
942
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
943
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
944
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
945
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
946
- if (BUILD.updatable) {
947
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
948
- if (!(memberName in newVnodeAttrs)) {
949
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
950
- }
951
- }
952
- }
953
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
954
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
955
- }
956
- };
957
- function sortedAttrNames(attrNames) {
958
- return attrNames.includes("ref") ? (
959
- // we need to sort these to ensure that `'ref'` is the last attr
960
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
961
- ) : (
962
- // no need to sort, return the original array
963
- attrNames
964
- );
965
- }
966
-
967
- // src/runtime/vdom/vdom-render.ts
968
- var scopeId;
969
- var contentRef;
970
- var hostTagName;
971
- var useNativeShadowDom = false;
972
- var checkSlotFallbackVisibility = false;
973
- var checkSlotRelocate = false;
974
- var isSvgMode = false;
975
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
976
- var _a;
977
- const newVNode2 = newParentVNode.$children$[childIndex];
978
- let i2 = 0;
979
- let elm;
980
- let childNode;
981
- let oldVNode;
982
- if (BUILD.slotRelocation && !useNativeShadowDom) {
983
- checkSlotRelocate = true;
984
- if (newVNode2.$tag$ === "slot") {
985
- if (scopeId) {
986
- parentElm.classList.add(scopeId + "-s");
987
- }
988
- newVNode2.$flags$ |= newVNode2.$children$ ? (
989
- // slot element has fallback content
990
- // still create an element that "mocks" the slot element
991
- 2 /* isSlotFallback */
992
- ) : (
993
- // slot element does not have fallback content
994
- // create an html comment we'll use to always reference
995
- // where actual slot content should sit next to
996
- 1 /* isSlotReference */
997
- );
998
- }
999
- }
1000
- if (BUILD.isDev && newVNode2.$elm$) {
1001
- consoleDevError(
1002
- `The JSX ${newVNode2.$text$ !== null ? `"${newVNode2.$text$}" text` : `"${newVNode2.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`
1003
- );
1004
- }
1005
- if (BUILD.vdomText && newVNode2.$text$ !== null) {
1006
- elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
1007
- } else if (BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
1008
- elm = newVNode2.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : doc.createTextNode("");
1009
- } else {
1010
- if (BUILD.svg && !isSvgMode) {
1011
- isSvgMode = newVNode2.$tag$ === "svg";
1012
- }
1013
- elm = newVNode2.$elm$ = BUILD.svg ? doc.createElementNS(
1014
- isSvgMode ? SVG_NS : HTML_NS,
1015
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1016
- ) : doc.createElement(
1017
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1018
- );
1019
- if (BUILD.svg && isSvgMode && newVNode2.$tag$ === "foreignObject") {
1020
- isSvgMode = false;
1021
- }
1022
- if (BUILD.vdomAttribute) {
1023
- updateElement(null, newVNode2, isSvgMode);
1024
- }
1025
- if ((BUILD.shadowDom || BUILD.scoped) && isDef(scopeId) && elm["s-si"] !== scopeId) {
1026
- elm.classList.add(elm["s-si"] = scopeId);
1027
- }
1028
- if (BUILD.scoped) {
1029
- updateElementScopeIds(elm, parentElm);
1030
- }
1031
- if (newVNode2.$children$) {
1032
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1033
- childNode = createElm(oldParentVNode, newVNode2, i2, elm);
1034
- if (childNode) {
1035
- elm.appendChild(childNode);
1036
- }
1037
- }
1038
- }
1039
- if (BUILD.svg) {
1040
- if (newVNode2.$tag$ === "svg") {
1041
- isSvgMode = false;
1042
- } else if (elm.tagName === "foreignObject") {
1043
- isSvgMode = true;
1044
- }
1045
- }
1046
- }
1047
- elm["s-hn"] = hostTagName;
1048
- if (BUILD.slotRelocation) {
1049
- if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
1050
- elm["s-sr"] = true;
1051
- elm["s-cr"] = contentRef;
1052
- elm["s-sn"] = newVNode2.$name$ || "";
1053
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
1054
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
1055
- if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
1056
- if (BUILD.experimentalSlotFixes) {
1057
- relocateToHostRoot(oldParentVNode.$elm$);
1058
- } else {
1059
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
1060
- }
1061
- }
1062
- }
1063
- }
1064
- return elm;
1065
- };
1066
- var relocateToHostRoot = (parentElm) => {
1067
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1068
- const host = parentElm.closest(hostTagName.toLowerCase());
1069
- if (host != null) {
1070
- const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
1071
- const childNodeArray = Array.from(parentElm.childNodes);
1072
- for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
1073
- if (childNode["s-sh"] != null) {
1074
- insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
1075
- childNode["s-sh"] = void 0;
1076
- checkSlotRelocate = true;
1077
- }
1078
- }
1079
- }
1080
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1081
- };
1082
- var putBackInOriginalLocation = (parentElm, recursive) => {
1083
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1084
- const oldSlotChildNodes = Array.from(parentElm.childNodes);
1085
- if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
1086
- let node = parentElm;
1087
- while (node = node.nextSibling) {
1088
- if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
1089
- oldSlotChildNodes.push(node);
1090
- }
1091
- }
1092
- }
1093
- for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1094
- const childNode = oldSlotChildNodes[i2];
1095
- if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1096
- insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
1097
- childNode["s-ol"].remove();
1098
- childNode["s-ol"] = void 0;
1099
- childNode["s-sh"] = void 0;
1100
- checkSlotRelocate = true;
1101
- }
1102
- if (recursive) {
1103
- putBackInOriginalLocation(childNode, recursive);
1104
- }
1105
- }
1106
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1107
- };
1108
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1109
- let containerElm = BUILD.slotRelocation && parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1110
- let childNode;
1111
- if (BUILD.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1112
- containerElm = containerElm.shadowRoot;
1113
- }
1114
- for (; startIdx <= endIdx; ++startIdx) {
1115
- if (vnodes[startIdx]) {
1116
- childNode = createElm(null, parentVNode, startIdx, parentElm);
1117
- if (childNode) {
1118
- vnodes[startIdx].$elm$ = childNode;
1119
- insertBefore(containerElm, childNode, BUILD.slotRelocation ? referenceNode(before) : before);
1120
- }
1121
- }
1122
- }
1123
- };
1124
- var removeVnodes = (vnodes, startIdx, endIdx) => {
1125
- for (let index = startIdx; index <= endIdx; ++index) {
1126
- const vnode = vnodes[index];
1127
- if (vnode) {
1128
- const elm = vnode.$elm$;
1129
- nullifyVNodeRefs(vnode);
1130
- if (elm) {
1131
- if (BUILD.slotRelocation) {
1132
- checkSlotFallbackVisibility = true;
1133
- if (elm["s-ol"]) {
1134
- elm["s-ol"].remove();
1135
- } else {
1136
- putBackInOriginalLocation(elm, true);
1137
- }
1138
- }
1139
- elm.remove();
1140
- }
1141
- }
1142
- }
1143
- };
1144
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1145
- let oldStartIdx = 0;
1146
- let newStartIdx = 0;
1147
- let idxInOld = 0;
1148
- let i2 = 0;
1149
- let oldEndIdx = oldCh.length - 1;
1150
- let oldStartVnode = oldCh[0];
1151
- let oldEndVnode = oldCh[oldEndIdx];
1152
- let newEndIdx = newCh.length - 1;
1153
- let newStartVnode = newCh[0];
1154
- let newEndVnode = newCh[newEndIdx];
1155
- let node;
1156
- let elmToMove;
1157
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1158
- if (oldStartVnode == null) {
1159
- oldStartVnode = oldCh[++oldStartIdx];
1160
- } else if (oldEndVnode == null) {
1161
- oldEndVnode = oldCh[--oldEndIdx];
1162
- } else if (newStartVnode == null) {
1163
- newStartVnode = newCh[++newStartIdx];
1164
- } else if (newEndVnode == null) {
1165
- newEndVnode = newCh[--newEndIdx];
1166
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1167
- patch(oldStartVnode, newStartVnode, isInitialRender);
1168
- oldStartVnode = oldCh[++oldStartIdx];
1169
- newStartVnode = newCh[++newStartIdx];
1170
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1171
- patch(oldEndVnode, newEndVnode, isInitialRender);
1172
- oldEndVnode = oldCh[--oldEndIdx];
1173
- newEndVnode = newCh[--newEndIdx];
1174
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1175
- if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1176
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1177
- }
1178
- patch(oldStartVnode, newEndVnode, isInitialRender);
1179
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1180
- oldStartVnode = oldCh[++oldStartIdx];
1181
- newEndVnode = newCh[--newEndIdx];
1182
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1183
- if (BUILD.slotRelocation && (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1184
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1185
- }
1186
- patch(oldEndVnode, newStartVnode, isInitialRender);
1187
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1188
- oldEndVnode = oldCh[--oldEndIdx];
1189
- newStartVnode = newCh[++newStartIdx];
1190
- } else {
1191
- idxInOld = -1;
1192
- if (BUILD.vdomKey) {
1193
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1194
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1195
- idxInOld = i2;
1196
- break;
1197
- }
1198
- }
1199
- }
1200
- if (BUILD.vdomKey && idxInOld >= 0) {
1201
- elmToMove = oldCh[idxInOld];
1202
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1203
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
1204
- } else {
1205
- patch(elmToMove, newStartVnode, isInitialRender);
1206
- oldCh[idxInOld] = void 0;
1207
- node = elmToMove.$elm$;
1208
- }
1209
- newStartVnode = newCh[++newStartIdx];
1210
- } else {
1211
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
1212
- newStartVnode = newCh[++newStartIdx];
1213
- }
1214
- if (node) {
1215
- if (BUILD.slotRelocation) {
1216
- insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
1217
- } else {
1218
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
1219
- }
1220
- }
1221
- }
1222
- }
1223
- if (oldStartIdx > oldEndIdx) {
1224
- addVnodes(
1225
- parentElm,
1226
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
1227
- newVNode2,
1228
- newCh,
1229
- newStartIdx,
1230
- newEndIdx
1231
- );
1232
- } else if (BUILD.updatable && newStartIdx > newEndIdx) {
1233
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1234
- }
1235
- };
1236
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1237
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1238
- if (BUILD.slotRelocation && leftVNode.$tag$ === "slot") {
1239
- return leftVNode.$name$ === rightVNode.$name$;
1240
- }
1241
- if (BUILD.vdomKey && !isInitialRender) {
1242
- return leftVNode.$key$ === rightVNode.$key$;
1243
- }
1244
- return true;
1245
- }
1246
- return false;
1247
- };
1248
- var referenceNode = (node) => {
1249
- return node && node["s-ol"] || node;
1250
- };
1251
- var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
1252
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1253
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
1254
- const oldChildren = oldVNode.$children$;
1255
- const newChildren = newVNode2.$children$;
1256
- const tag = newVNode2.$tag$;
1257
- const text = newVNode2.$text$;
1258
- let defaultHolder;
1259
- if (!BUILD.vdomText || text === null) {
1260
- if (BUILD.svg) {
1261
- isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1262
- }
1263
- if (BUILD.vdomAttribute || BUILD.reflect) {
1264
- if (BUILD.slot && tag === "slot" && !useNativeShadowDom) {
1265
- if (BUILD.experimentalSlotFixes && oldVNode.$name$ !== newVNode2.$name$) {
1266
- newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1267
- relocateToHostRoot(newVNode2.$elm$.parentElement);
1268
- }
1269
- } else {
1270
- updateElement(oldVNode, newVNode2, isSvgMode);
1271
- }
1272
- }
1273
- if (BUILD.updatable && oldChildren !== null && newChildren !== null) {
1274
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1275
- } else if (newChildren !== null) {
1276
- if (BUILD.updatable && BUILD.vdomText && oldVNode.$text$ !== null) {
1277
- elm.textContent = "";
1278
- }
1279
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1280
- } else if (BUILD.updatable && oldChildren !== null) {
1281
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1282
- }
1283
- if (BUILD.svg && isSvgMode && tag === "svg") {
1284
- isSvgMode = false;
1285
- }
1286
- } else if (BUILD.vdomText && BUILD.slotRelocation && (defaultHolder = elm["s-cr"])) {
1287
- defaultHolder.parentNode.textContent = text;
1288
- } else if (BUILD.vdomText && oldVNode.$text$ !== text) {
1289
- elm.data = text;
1290
- }
1291
- };
1292
- var updateFallbackSlotVisibility = (elm) => {
1293
- const childNodes = elm.childNodes;
1294
- for (const childNode of childNodes) {
1295
- if (childNode.nodeType === 1 /* ElementNode */) {
1296
- if (childNode["s-sr"]) {
1297
- const slotName = childNode["s-sn"];
1298
- childNode.hidden = false;
1299
- for (const siblingNode of childNodes) {
1300
- if (siblingNode !== childNode) {
1301
- if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
1302
- if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
1303
- childNode.hidden = true;
1304
- break;
1305
- }
1306
- } else {
1307
- if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1308
- childNode.hidden = true;
1309
- break;
1310
- }
1311
- }
1312
- }
1313
- }
1314
- }
1315
- updateFallbackSlotVisibility(childNode);
1316
- }
1317
- }
1318
- };
1319
- var relocateNodes = [];
1320
- var markSlotContentForRelocation = (elm) => {
1321
- let node;
1322
- let hostContentNodes;
1323
- let j;
1324
- for (const childNode of elm.childNodes) {
1325
- if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1326
- hostContentNodes = node.parentNode.childNodes;
1327
- const slotName = childNode["s-sn"];
1328
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1329
- node = hostContentNodes[j];
1330
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes || !node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
1331
- if (isNodeLocatedInSlot(node, slotName)) {
1332
- let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1333
- checkSlotFallbackVisibility = true;
1334
- node["s-sn"] = node["s-sn"] || slotName;
1335
- if (relocateNodeData) {
1336
- relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1337
- relocateNodeData.$slotRefNode$ = childNode;
1338
- } else {
1339
- node["s-sh"] = childNode["s-hn"];
1340
- relocateNodes.push({
1341
- $slotRefNode$: childNode,
1342
- $nodeToRelocate$: node
1343
- });
1344
- }
1345
- if (node["s-sr"]) {
1346
- relocateNodes.map((relocateNode) => {
1347
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1348
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1349
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1350
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1351
- }
1352
- }
1353
- });
1354
- }
1355
- } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1356
- relocateNodes.push({
1357
- $nodeToRelocate$: node
1358
- });
1359
- }
1360
- }
1361
- }
1362
- }
1363
- if (childNode.nodeType === 1 /* ElementNode */) {
1364
- markSlotContentForRelocation(childNode);
1365
- }
1366
- }
1367
- };
1368
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1369
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1370
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
1371
- return true;
1372
- }
1373
- if (nodeToRelocate.getAttribute("slot") === slotName) {
1374
- return true;
1375
- }
1376
- return false;
1377
- }
1378
- if (nodeToRelocate["s-sn"] === slotName) {
1379
- return true;
1380
- }
1381
- return slotName === "";
1382
- };
1383
- var nullifyVNodeRefs = (vNode) => {
1384
- if (BUILD.vdomRef) {
1385
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1386
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1387
- }
1388
- };
1389
- var insertBefore = (parent, newNode, reference) => {
1390
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
1391
- if (BUILD.scoped) {
1392
- updateElementScopeIds(newNode, parent);
1393
- }
1394
- return inserted;
1395
- };
1396
- var findScopeIds = (element) => {
1397
- const scopeIds = [];
1398
- if (element) {
1399
- scopeIds.push(
1400
- ...element["s-scs"] || [],
1401
- element["s-si"],
1402
- element["s-sc"],
1403
- ...findScopeIds(element.parentElement)
1404
- );
1405
- }
1406
- return scopeIds;
1407
- };
1408
- var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
1409
- var _a;
1410
- if (element && parent && element.nodeType === 1 /* ElementNode */) {
1411
- const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
1412
- if (scopeIds.size) {
1413
- (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
1414
- if (element["s-ol"] || iterateChildNodes) {
1415
- for (const childNode of Array.from(element.childNodes)) {
1416
- updateElementScopeIds(childNode, element, true);
1417
- }
1418
- }
1419
- }
1420
- }
1421
- };
1422
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1423
- var _a, _b, _c, _d, _e;
1424
- const hostElm = hostRef.$hostElement$;
1425
- const cmpMeta = hostRef.$cmpMeta$;
1426
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1427
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1428
- hostTagName = hostElm.tagName;
1429
- if (BUILD.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {
1430
- throw new Error(`The <Host> must be the single root component.
1431
- Looks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.
1432
-
1433
- The render() function should look like this instead:
1434
-
1435
- render() {
1436
- // Do not return an array
1437
- return (
1438
- <Host>{content}</Host>
1439
- );
1440
- }
1441
- `);
1442
- }
1443
- if (BUILD.reflect && cmpMeta.$attrsToReflect$) {
1444
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1445
- cmpMeta.$attrsToReflect$.map(
1446
- ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
1447
- );
1448
- }
1449
- if (isInitialLoad && rootVnode.$attrs$) {
1450
- for (const key of Object.keys(rootVnode.$attrs$)) {
1451
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1452
- rootVnode.$attrs$[key] = hostElm[key];
1453
- }
1454
- }
1455
- }
1456
- rootVnode.$tag$ = null;
1457
- rootVnode.$flags$ |= 4 /* isHost */;
1458
- hostRef.$vnode$ = rootVnode;
1459
- rootVnode.$elm$ = oldVNode.$elm$ = BUILD.shadowDom ? hostElm.shadowRoot || hostElm : hostElm;
1460
- if (BUILD.scoped || BUILD.shadowDom) {
1461
- scopeId = hostElm["s-sc"];
1462
- }
1463
- useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1464
- if (BUILD.slotRelocation) {
1465
- contentRef = hostElm["s-cr"];
1466
- checkSlotFallbackVisibility = false;
1467
- }
1468
- patch(oldVNode, rootVnode, isInitialLoad);
1469
- if (BUILD.slotRelocation) {
1470
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1471
- if (checkSlotRelocate) {
1472
- markSlotContentForRelocation(rootVnode.$elm$);
1473
- for (const relocateData of relocateNodes) {
1474
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1475
- if (!nodeToRelocate["s-ol"]) {
1476
- const orgLocationNode = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : doc.createTextNode("");
1477
- orgLocationNode["s-nr"] = nodeToRelocate;
1478
- insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1479
- }
1480
- }
1481
- for (const relocateData of relocateNodes) {
1482
- const nodeToRelocate = relocateData.$nodeToRelocate$;
1483
- const slotRefNode = relocateData.$slotRefNode$;
1484
- if (slotRefNode) {
1485
- const parentNodeRef = slotRefNode.parentNode;
1486
- let insertBeforeNode = slotRefNode.nextSibling;
1487
- if (!BUILD.experimentalSlotFixes || insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {
1488
- let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1489
- while (orgLocationNode) {
1490
- let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1491
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
1492
- refNode = refNode.nextSibling;
1493
- while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1494
- refNode = refNode == null ? void 0 : refNode.nextSibling;
1495
- }
1496
- if (!refNode || !refNode["s-nr"]) {
1497
- insertBeforeNode = refNode;
1498
- break;
1499
- }
1500
- }
1501
- orgLocationNode = orgLocationNode.previousSibling;
1502
- }
1503
- }
1504
- if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1505
- if (nodeToRelocate !== insertBeforeNode) {
1506
- if (!BUILD.experimentalSlotFixes && !nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1507
- nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1508
- }
1509
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1510
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1511
- nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1512
- }
1513
- }
1514
- }
1515
- nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
1516
- } else {
1517
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1518
- if (isInitialLoad) {
1519
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1520
- }
1521
- nodeToRelocate.hidden = true;
1522
- }
1523
- }
1524
- }
1525
- }
1526
- if (checkSlotFallbackVisibility) {
1527
- updateFallbackSlotVisibility(rootVnode.$elm$);
1528
- }
1529
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1530
- relocateNodes.length = 0;
1531
- }
1532
- if (BUILD.experimentalScopedSlotChanges && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1533
- for (const childNode of rootVnode.$elm$.childNodes) {
1534
- if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1535
- if (isInitialLoad && childNode["s-ih"] == null) {
1536
- childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1537
- }
1538
- childNode.hidden = true;
1539
- }
1540
- }
1541
- }
1542
- contentRef = void 0;
1543
- };
1544
- var slotReferenceDebugNode = (slotVNode) => doc.createComment(
1545
- `<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
1546
- );
1547
- var originalLocationDebugNode = (nodeToRelocate) => doc.createComment(
1548
- `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
1549
- );
1550
-
1551
- // src/runtime/update-component.ts
1552
- var attachToAncestor = (hostRef, ancestorComponent) => {
1553
- if (BUILD.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1554
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1555
- }
1556
- };
1557
- var scheduleUpdate = (hostRef, isInitialLoad) => {
1558
- if (BUILD.taskQueue && BUILD.updatable) {
1559
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1560
- }
1561
- if (BUILD.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1562
- hostRef.$flags$ |= 512 /* needsRerender */;
1563
- return;
1564
- }
1565
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1566
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1567
- return BUILD.taskQueue ? writeTask(dispatch) : dispatch();
1568
- };
1569
- var dispatchHooks = (hostRef, isInitialLoad) => {
1570
- const elm = hostRef.$hostElement$;
1571
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1572
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1573
- if (!instance) {
1574
- throw new Error(
1575
- `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
1576
- );
1577
- }
1578
- let maybePromise;
1579
- if (isInitialLoad) {
1580
- if (BUILD.lazyLoad && BUILD.hostListener) {
1581
- hostRef.$flags$ |= 256 /* isListenReady */;
1582
- if (hostRef.$queuedListeners$) {
1583
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1584
- hostRef.$queuedListeners$ = void 0;
1585
- }
1586
- }
1587
- emitLifecycleEvent(elm, "componentWillLoad");
1588
- if (BUILD.cmpWillLoad) {
1589
- maybePromise = safeCall(instance, "componentWillLoad");
1590
- }
1591
- } else {
1592
- emitLifecycleEvent(elm, "componentWillUpdate");
1593
- if (BUILD.cmpWillUpdate) {
1594
- maybePromise = safeCall(instance, "componentWillUpdate");
1595
- }
1596
- }
1597
- emitLifecycleEvent(elm, "componentWillRender");
1598
- if (BUILD.cmpWillRender) {
1599
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
1600
- }
1601
- endSchedule();
1602
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1603
- };
1604
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1605
- console.error(err2);
1606
- fn();
1607
- }) : fn();
1608
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1609
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
1610
- var _a;
1611
- const elm = hostRef.$hostElement$;
1612
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1613
- const rc = elm["s-rc"];
1614
- if (BUILD.style && isInitialLoad) {
1615
- attachStyles(hostRef);
1616
- }
1617
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1618
- if (BUILD.isDev) {
1619
- hostRef.$flags$ |= 1024 /* devOnRender */;
1620
- }
1621
- if (BUILD.hydrateServerSide) {
1622
- await callRender(hostRef, instance, elm, isInitialLoad);
1623
- } else {
1624
- callRender(hostRef, instance, elm, isInitialLoad);
1625
- }
1626
- if (BUILD.isDev) {
1627
- hostRef.$renderCount$ = hostRef.$renderCount$ === void 0 ? 1 : hostRef.$renderCount$ + 1;
1628
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1629
- }
1630
- if (BUILD.hydrateServerSide) {
1631
- try {
1632
- serverSideConnected(elm);
1633
- if (isInitialLoad) {
1634
- if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
1635
- elm["s-en"] = "";
1636
- } else if (hostRef.$cmpMeta$.$flags$ & 2 /* scopedCssEncapsulation */) {
1637
- elm["s-en"] = "c";
1638
- }
1639
- }
1640
- } catch (e) {
1641
- consoleError(e, elm);
1642
- }
1643
- }
1644
- if (BUILD.asyncLoading && rc) {
1645
- rc.map((cb) => cb());
1646
- elm["s-rc"] = void 0;
1647
- }
1648
- endRender();
1649
- endUpdate();
1650
- if (BUILD.asyncLoading) {
1651
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1652
- const postUpdate = () => postUpdateComponent(hostRef);
1653
- if (childrenPromises.length === 0) {
1654
- postUpdate();
1655
- } else {
1656
- Promise.all(childrenPromises).then(postUpdate);
1657
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1658
- childrenPromises.length = 0;
1659
- }
1660
- } else {
1661
- postUpdateComponent(hostRef);
1662
- }
1663
- };
1664
- var renderingRef = null;
1665
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
1666
- const allRenderFn = BUILD.allRenderFn ? true : false;
1667
- const lazyLoad = BUILD.lazyLoad ? true : false;
1668
- const taskQueue = BUILD.taskQueue ? true : false;
1669
- const updatable = BUILD.updatable ? true : false;
1670
- try {
1671
- renderingRef = instance;
1672
- instance = allRenderFn ? instance.render() : instance.render && instance.render();
1673
- if (updatable && taskQueue) {
1674
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1675
- }
1676
- if (updatable || lazyLoad) {
1677
- hostRef.$flags$ |= 2 /* hasRendered */;
1678
- }
1679
- if (BUILD.hasRenderFn || BUILD.reflect) {
1680
- if (BUILD.vdomRender || BUILD.reflect) {
1681
- if (BUILD.hydrateServerSide) {
1682
- return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));
1683
- } else {
1684
- renderVdom(hostRef, instance, isInitialLoad);
1685
- }
1686
- } else {
1687
- const shadowRoot = elm.shadowRoot;
1688
- if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
1689
- shadowRoot.textContent = instance;
1690
- } else {
1691
- elm.textContent = instance;
1692
- }
1693
- }
1694
- }
1695
- } catch (e) {
1696
- consoleError(e, hostRef.$hostElement$);
1697
- }
1698
- renderingRef = null;
1699
- return null;
1700
- };
1701
- var getRenderingRef = () => renderingRef;
1702
- var postUpdateComponent = (hostRef) => {
1703
- const tagName = hostRef.$cmpMeta$.$tagName$;
1704
- const elm = hostRef.$hostElement$;
1705
- const endPostUpdate = createTime("postUpdate", tagName);
1706
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1707
- const ancestorComponent = hostRef.$ancestorComponent$;
1708
- if (BUILD.cmpDidRender) {
1709
- if (BUILD.isDev) {
1710
- hostRef.$flags$ |= 1024 /* devOnRender */;
1711
- }
1712
- safeCall(instance, "componentDidRender");
1713
- if (BUILD.isDev) {
1714
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1715
- }
1716
- }
1717
- emitLifecycleEvent(elm, "componentDidRender");
1718
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1719
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1720
- if (BUILD.asyncLoading && BUILD.cssAnnotations) {
1721
- addHydratedFlag(elm);
1722
- }
1723
- if (BUILD.cmpDidLoad) {
1724
- if (BUILD.isDev) {
1725
- hostRef.$flags$ |= 2048 /* devOnDidLoad */;
1726
- }
1727
- safeCall(instance, "componentDidLoad");
1728
- if (BUILD.isDev) {
1729
- hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
1730
- }
1731
- }
1732
- emitLifecycleEvent(elm, "componentDidLoad");
1733
- endPostUpdate();
1734
- if (BUILD.asyncLoading) {
1735
- hostRef.$onReadyResolve$(elm);
1736
- if (!ancestorComponent) {
1737
- appDidLoad(tagName);
1738
- }
1739
- }
1740
- } else {
1741
- if (BUILD.cmpDidUpdate) {
1742
- if (BUILD.isDev) {
1743
- hostRef.$flags$ |= 1024 /* devOnRender */;
1744
- }
1745
- safeCall(instance, "componentDidUpdate");
1746
- if (BUILD.isDev) {
1747
- hostRef.$flags$ &= ~1024 /* devOnRender */;
1748
- }
1749
- }
1750
- emitLifecycleEvent(elm, "componentDidUpdate");
1751
- endPostUpdate();
1752
- }
1753
- if (BUILD.method && BUILD.lazyLoad) {
1754
- hostRef.$onInstanceResolve$(elm);
1755
- }
1756
- if (BUILD.asyncLoading) {
1757
- if (hostRef.$onRenderResolve$) {
1758
- hostRef.$onRenderResolve$();
1759
- hostRef.$onRenderResolve$ = void 0;
1760
- }
1761
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1762
- nextTick(() => scheduleUpdate(hostRef, false));
1763
- }
1764
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1765
- }
1766
- };
1767
- var forceUpdate = (ref) => {
1768
- if (BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
1769
- const hostRef = getHostRef(ref);
1770
- const isConnected = hostRef.$hostElement$.isConnected;
1771
- if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1772
- scheduleUpdate(hostRef, false);
1773
- }
1774
- return isConnected;
1775
- }
1776
- return false;
1777
- };
1778
- var appDidLoad = (who) => {
1779
- if (BUILD.cssAnnotations) {
1780
- addHydratedFlag(doc.documentElement);
1781
- }
1782
- if (BUILD.asyncQueue) {
1783
- plt.$flags$ |= 2 /* appLoaded */;
1784
- }
1785
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1786
- if (BUILD.profile && performance.measure) {
1787
- performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, "st:app:start");
1788
- }
1789
- };
1790
- var safeCall = (instance, method, arg) => {
1791
- if (instance && instance[method]) {
1792
- try {
1793
- return instance[method](arg);
1794
- } catch (e) {
1795
- consoleError(e);
1796
- }
1797
- }
1798
- return void 0;
1799
- };
1800
- var emitLifecycleEvent = (elm, lifecycleName) => {
1801
- if (BUILD.lifecycleDOMEvents) {
1802
- emitEvent(elm, "stencil_" + lifecycleName, {
1803
- bubbles: true,
1804
- composed: true,
1805
- detail: {
1806
- namespace: NAMESPACE
1807
- }
1808
- });
1809
- }
1810
- };
1811
- var addHydratedFlag = (elm) => {
1812
- var _a, _b;
1813
- return BUILD.hydratedClass ? elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") : BUILD.hydratedAttribute ? elm.setAttribute((_b = BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") : void 0;
1814
- };
1815
- var serverSideConnected = (elm) => {
1816
- const children = elm.children;
1817
- if (children != null) {
1818
- for (let i2 = 0, ii = children.length; i2 < ii; i2++) {
1819
- const childElm = children[i2];
1820
- if (typeof childElm.connectedCallback === "function") {
1821
- childElm.connectedCallback();
1822
- }
1823
- serverSideConnected(childElm);
1824
- }
1825
- }
1826
- };
1827
-
1828
- // src/runtime/set-value.ts
1829
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1830
- var setValue = (ref, propName, newVal, cmpMeta) => {
1831
- const hostRef = getHostRef(ref);
1832
- if (BUILD.lazyLoad && !hostRef) {
1833
- throw new Error(
1834
- `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
1835
- );
1836
- }
1837
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : ref;
1838
- const oldVal = hostRef.$instanceValues$.get(propName);
1839
- const flags = hostRef.$flags$;
1840
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1841
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1842
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1843
- const didValueChange = newVal !== oldVal && !areBothNaN;
1844
- if ((!BUILD.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1845
- hostRef.$instanceValues$.set(propName, newVal);
1846
- if (BUILD.isDev) {
1847
- if (hostRef.$flags$ & 1024 /* devOnRender */) {
1848
- consoleDevWarn(
1849
- `The state/prop "${propName}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,
1850
- "\nElement",
1851
- elm,
1852
- "\nNew value",
1853
- newVal,
1854
- "\nOld value",
1855
- oldVal
1856
- );
1857
- } else if (hostRef.$flags$ & 2048 /* devOnDidLoad */) {
1858
- consoleDevWarn(
1859
- `The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,
1860
- "\nElement",
1861
- elm,
1862
- "\nNew value",
1863
- newVal,
1864
- "\nOld value",
1865
- oldVal
1866
- );
1867
- }
1868
- }
1869
- if (!BUILD.lazyLoad || instance) {
1870
- if (BUILD.watchCallback && cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1871
- const watchMethods = cmpMeta.$watchers$[propName];
1872
- if (watchMethods) {
1873
- watchMethods.map((watchMethodName) => {
1874
- try {
1875
- instance[watchMethodName](newVal, oldVal, propName);
1876
- } catch (e) {
1877
- consoleError(e, elm);
1878
- }
1879
- });
1880
- }
1881
- }
1882
- if (BUILD.updatable && (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1883
- if (BUILD.cmpShouldUpdate && instance.componentShouldUpdate) {
1884
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1885
- return;
1886
- }
1887
- }
1888
- scheduleUpdate(hostRef, false);
1889
- }
1890
- }
1891
- }
1892
- };
1893
-
1894
- // src/runtime/proxy-component.ts
1895
- var proxyComponent = (Cstr, cmpMeta, flags) => {
1896
- var _a, _b;
1897
- const prototype = Cstr.prototype;
1898
- if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
1899
- FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach(
1900
- (cbName) => Object.defineProperty(prototype, cbName, {
1901
- value(...args) {
1902
- const hostRef = getHostRef(this);
1903
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
1904
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1905
- if (!instance) {
1906
- hostRef.$onReadyPromise$.then((instance2) => {
1907
- const cb = instance2[cbName];
1908
- typeof cb === "function" && cb.call(instance2, ...args);
1909
- });
1910
- } else {
1911
- const cb = instance[cbName];
1912
- typeof cb === "function" && cb.call(instance, ...args);
1913
- }
1914
- }
1915
- })
1916
- );
1917
- }
1918
- if (BUILD.member && cmpMeta.$members$ || BUILD.watchCallback && (cmpMeta.$watchers$ || Cstr.watchers)) {
1919
- if (BUILD.watchCallback && Cstr.watchers && !cmpMeta.$watchers$) {
1920
- cmpMeta.$watchers$ = Cstr.watchers;
1921
- }
1922
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1923
- members.map(([memberName, [memberFlags]]) => {
1924
- if ((BUILD.prop || BUILD.state) && (memberFlags & 31 /* Prop */ || (!BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1925
- Object.defineProperty(prototype, memberName, {
1926
- get() {
1927
- return getValue(this, memberName);
1928
- },
1929
- set(newValue) {
1930
- if (BUILD.isDev) {
1931
- const ref = getHostRef(this);
1932
- if (
1933
- // we are proxying the instance (not element)
1934
- (flags & 1 /* isElementConstructor */) === 0 && // the element is not constructing
1935
- (ref && ref.$flags$ & 8 /* isConstructingInstance */) === 0 && // the member is a prop
1936
- (memberFlags & 31 /* Prop */) !== 0 && // the member is not mutable
1937
- (memberFlags & 1024 /* Mutable */) === 0
1938
- ) {
1939
- consoleDevWarn(
1940
- `@Prop() "${memberName}" on <${cmpMeta.$tagName$}> is immutable but was modified from within the component.
1941
- More information: https://stenciljs.com/docs/properties#prop-mutability`
1942
- );
1943
- }
1944
- }
1945
- setValue(this, memberName, newValue, cmpMeta);
1946
- },
1947
- configurable: true,
1948
- enumerable: true
1949
- });
1950
- } else if (BUILD.lazyLoad && BUILD.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1951
- Object.defineProperty(prototype, memberName, {
1952
- value(...args) {
1953
- var _a2;
1954
- const ref = getHostRef(this);
1955
- return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1956
- var _a3;
1957
- return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1958
- });
1959
- }
1960
- });
1961
- }
1962
- });
1963
- if (BUILD.observeAttribute && (!BUILD.lazyLoad || flags & 1 /* isElementConstructor */)) {
1964
- const attrNameToPropName = /* @__PURE__ */ new Map();
1965
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1966
- plt.jmp(() => {
1967
- var _a2;
1968
- const propName = attrNameToPropName.get(attrName);
1969
- if (this.hasOwnProperty(propName)) {
1970
- newValue = this[propName];
1971
- delete this[propName];
1972
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1973
- return;
1974
- } else if (propName == null) {
1975
- const hostRef = getHostRef(this);
1976
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1977
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1978
- const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;
1979
- const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
1980
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1981
- entry == null ? void 0 : entry.forEach((callbackName) => {
1982
- if (instance[callbackName] != null) {
1983
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1984
- }
1985
- });
1986
- }
1987
- return;
1988
- }
1989
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1990
- });
1991
- };
1992
- Cstr.observedAttributes = Array.from(
1993
- /* @__PURE__ */ new Set([
1994
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1995
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1996
- var _a2;
1997
- const attrName = m[1] || propName;
1998
- attrNameToPropName.set(attrName, propName);
1999
- if (BUILD.reflect && m[0] & 512 /* ReflectAttr */) {
2000
- (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2001
- }
2002
- return attrName;
2003
- })
2004
- ])
2005
- );
2006
- }
2007
- }
2008
- return Cstr;
2009
- };
2010
-
2011
- // src/runtime/initialize-component.ts
2012
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2013
- let Cstr;
2014
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2015
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2016
- const bundleId = cmpMeta.$lazyBundleId$;
2017
- if ((BUILD.lazyLoad || BUILD.hydrateClientSide) && bundleId) {
2018
- const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
2019
- if (CstrImport && "then" in CstrImport) {
2020
- const endLoad = uniqueTime(
2021
- `st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
2022
- `[Stencil] Load module for <${cmpMeta.$tagName$}>`
2023
- );
2024
- Cstr = await CstrImport;
2025
- endLoad();
2026
- } else {
2027
- Cstr = CstrImport;
2028
- }
2029
- if (!Cstr) {
2030
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2031
- }
2032
- if (BUILD.member && !Cstr.isProxied) {
2033
- if (BUILD.watchCallback) {
2034
- cmpMeta.$watchers$ = Cstr.watchers;
2035
- }
2036
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2037
- Cstr.isProxied = true;
2038
- }
2039
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2040
- if (BUILD.member) {
2041
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
2042
- }
2043
- try {
2044
- new Cstr(hostRef);
2045
- } catch (e) {
2046
- consoleError(e);
2047
- }
2048
- if (BUILD.member) {
2049
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
2050
- }
2051
- if (BUILD.watchCallback) {
2052
- hostRef.$flags$ |= 128 /* isWatchReady */;
2053
- }
2054
- endNewInstance();
2055
- fireConnectedCallback(hostRef.$lazyInstance$);
2056
- } else {
2057
- Cstr = elm.constructor;
2058
- const cmpTag = elm.localName;
2059
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2060
- }
2061
- if (BUILD.style && Cstr && Cstr.style) {
2062
- let style;
2063
- if (typeof Cstr.style === "string") {
2064
- style = Cstr.style;
2065
- } else if (BUILD.mode && typeof Cstr.style !== "string") {
2066
- hostRef.$modeName$ = computeMode(elm);
2067
- if (hostRef.$modeName$) {
2068
- style = Cstr.style[hostRef.$modeName$];
2069
- }
2070
- if (BUILD.hydrateServerSide && hostRef.$modeName$) {
2071
- elm.setAttribute("s-mode", hostRef.$modeName$);
2072
- }
2073
- }
2074
- const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
2075
- if (!styles.has(scopeId2)) {
2076
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2077
- if (!BUILD.hydrateServerSide && BUILD.shadowDom && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2078
- BUILD.shadowDomShim && cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2079
- style = await import('./shadow-css-15628d22.js').then((m) => m.scopeCss(style, scopeId2, false));
2080
- }
2081
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2082
- endRegisterStyles();
2083
- }
2084
- }
2085
- }
2086
- const ancestorComponent = hostRef.$ancestorComponent$;
2087
- const schedule = () => scheduleUpdate(hostRef, true);
2088
- if (BUILD.asyncLoading && ancestorComponent && ancestorComponent["s-rc"]) {
2089
- ancestorComponent["s-rc"].push(schedule);
2090
- } else {
2091
- schedule();
2092
- }
2093
- };
2094
- var fireConnectedCallback = (instance) => {
2095
- if (BUILD.lazyLoad && BUILD.connectedCallback) {
2096
- safeCall(instance, "connectedCallback");
2097
- }
2098
- };
2099
-
2100
- // src/runtime/connected-callback.ts
2101
- var connectedCallback = (elm) => {
2102
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2103
- const hostRef = getHostRef(elm);
2104
- const cmpMeta = hostRef.$cmpMeta$;
2105
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2106
- if (BUILD.hostListenerTargetParent) {
2107
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
2108
- }
2109
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2110
- hostRef.$flags$ |= 1 /* hasConnected */;
2111
- let hostId;
2112
- if (BUILD.hydrateClientSide) {
2113
- hostId = elm.getAttribute(HYDRATE_ID);
2114
- if (hostId) {
2115
- if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2116
- const scopeId2 = BUILD.mode ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode")) : addStyle(elm.shadowRoot, cmpMeta);
2117
- elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
2118
- }
2119
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2120
- }
2121
- }
2122
- if (BUILD.slotRelocation && !hostId) {
2123
- if (BUILD.hydrateServerSide || (BUILD.slot || BUILD.shadowDom) && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2124
- cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2125
- setContentReference(elm);
2126
- }
2127
- }
2128
- if (BUILD.asyncLoading) {
2129
- let ancestorComponent = elm;
2130
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2131
- if (BUILD.hydrateClientSide && ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
2132
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2133
- break;
2134
- }
2135
- }
2136
- }
2137
- if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {
2138
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2139
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
2140
- const value = elm[memberName];
2141
- delete elm[memberName];
2142
- elm[memberName] = value;
2143
- }
2144
- });
2145
- }
2146
- if (BUILD.initializeNextTick) {
2147
- nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
2148
- } else {
2149
- initializeComponent(elm, hostRef, cmpMeta);
2150
- }
2151
- } else {
2152
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
2153
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2154
- fireConnectedCallback(hostRef.$lazyInstance$);
2155
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2156
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
2157
- }
2158
- }
2159
- endConnected();
2160
- }
2161
- };
2162
- var setContentReference = (elm) => {
2163
- const contentRefElm = elm["s-cr"] = doc.createComment(
2164
- BUILD.isDebug ? `content-ref (host=${elm.localName})` : ""
2165
- );
2166
- contentRefElm["s-cn"] = true;
2167
- insertBefore(elm, contentRefElm, elm.firstChild);
2168
- };
2169
- var disconnectInstance = (instance) => {
2170
- if (BUILD.lazyLoad && BUILD.disconnectedCallback) {
2171
- safeCall(instance, "disconnectedCallback");
2172
- }
2173
- if (BUILD.cmpDidUnload) {
2174
- safeCall(instance, "componentDidUnload");
2175
- }
2176
- };
2177
- var disconnectedCallback = async (elm) => {
2178
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2179
- const hostRef = getHostRef(elm);
2180
- if (BUILD.hostListener) {
2181
- if (hostRef.$rmListeners$) {
2182
- hostRef.$rmListeners$.map((rmListener) => rmListener());
2183
- hostRef.$rmListeners$ = void 0;
2184
- }
2185
- }
2186
- if (!BUILD.lazyLoad) {
2187
- disconnectInstance(elm);
2188
- } else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2189
- disconnectInstance(hostRef.$lazyInstance$);
2190
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2191
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2192
- }
2193
- }
2194
- };
2195
- var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
2196
- patchCloneNode(hostElementPrototype);
2197
- patchSlotAppendChild(hostElementPrototype);
2198
- patchSlotAppend(hostElementPrototype);
2199
- patchSlotPrepend(hostElementPrototype);
2200
- patchSlotInsertAdjacentElement(hostElementPrototype);
2201
- patchSlotInsertAdjacentHTML(hostElementPrototype);
2202
- patchSlotInsertAdjacentText(hostElementPrototype);
2203
- patchTextContent(hostElementPrototype);
2204
- patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
2205
- patchSlotRemoveChild(hostElementPrototype);
2206
- };
2207
- var patchCloneNode = (HostElementPrototype) => {
2208
- const orgCloneNode = HostElementPrototype.cloneNode;
2209
- HostElementPrototype.cloneNode = function(deep) {
2210
- const srcNode = this;
2211
- const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;
2212
- const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
2213
- if (BUILD.slot && !isShadowDom && deep) {
2214
- let i2 = 0;
2215
- let slotted, nonStencilNode;
2216
- const stencilPrivates = [
2217
- "s-id",
2218
- "s-cr",
2219
- "s-lr",
2220
- "s-rc",
2221
- "s-sc",
2222
- "s-p",
2223
- "s-cn",
2224
- "s-sr",
2225
- "s-sn",
2226
- "s-hn",
2227
- "s-ol",
2228
- "s-nr",
2229
- "s-si",
2230
- "s-rf",
2231
- "s-scs"
2232
- ];
2233
- for (; i2 < srcNode.childNodes.length; i2++) {
2234
- slotted = srcNode.childNodes[i2]["s-nr"];
2235
- nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
2236
- if (slotted) {
2237
- if (BUILD.appendChildSlotFix && clonedNode.__appendChild) {
2238
- clonedNode.__appendChild(slotted.cloneNode(true));
2239
- } else {
2240
- clonedNode.appendChild(slotted.cloneNode(true));
2241
- }
2242
- }
2243
- if (nonStencilNode) {
2244
- clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
2245
- }
2246
- }
2247
- }
2248
- return clonedNode;
2249
- };
2250
- };
2251
- var patchSlotAppendChild = (HostElementPrototype) => {
2252
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
2253
- HostElementPrototype.appendChild = function(newChild) {
2254
- const slotName = newChild["s-sn"] = getSlotName(newChild);
2255
- const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
2256
- if (slotNode) {
2257
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
2258
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
2259
- const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
2260
- updateFallbackSlotVisibility(this);
2261
- return insertedNode;
2262
- }
2263
- return this.__appendChild(newChild);
2264
- };
2265
- };
2266
- var patchSlotRemoveChild = (ElementPrototype) => {
2267
- ElementPrototype.__removeChild = ElementPrototype.removeChild;
2268
- ElementPrototype.removeChild = function(toRemove) {
2269
- if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
2270
- const slotNode = getHostSlotNode(this.childNodes, toRemove["s-sn"], this.tagName);
2271
- if (slotNode) {
2272
- const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove["s-sn"]);
2273
- const existingNode = slotChildNodes.find((n) => n === toRemove);
2274
- if (existingNode) {
2275
- existingNode.remove();
2276
- updateFallbackSlotVisibility(this);
2277
- return;
2278
- }
2279
- }
2280
- }
2281
- return this.__removeChild(toRemove);
2282
- };
2283
- };
2284
- var patchSlotPrepend = (HostElementPrototype) => {
2285
- const originalPrepend = HostElementPrototype.prepend;
2286
- HostElementPrototype.prepend = function(...newChildren) {
2287
- newChildren.forEach((newChild) => {
2288
- if (typeof newChild === "string") {
2289
- newChild = this.ownerDocument.createTextNode(newChild);
2290
- }
2291
- const slotName = newChild["s-sn"] = getSlotName(newChild);
2292
- const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
2293
- if (slotNode) {
2294
- const slotPlaceholder = document.createTextNode("");
2295
- slotPlaceholder["s-nr"] = newChild;
2296
- slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
2297
- newChild["s-ol"] = slotPlaceholder;
2298
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
2299
- const appendAfter = slotChildNodes[0];
2300
- return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
2301
- }
2302
- if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
2303
- newChild.hidden = true;
2304
- }
2305
- return originalPrepend.call(this, newChild);
2306
- });
2307
- };
2308
- };
2309
- var patchSlotAppend = (HostElementPrototype) => {
2310
- HostElementPrototype.append = function(...newChildren) {
2311
- newChildren.forEach((newChild) => {
2312
- if (typeof newChild === "string") {
2313
- newChild = this.ownerDocument.createTextNode(newChild);
2314
- }
2315
- this.appendChild(newChild);
2316
- });
2317
- };
2318
- };
2319
- var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
2320
- const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
2321
- HostElementPrototype.insertAdjacentHTML = function(position, text) {
2322
- if (position !== "afterbegin" && position !== "beforeend") {
2323
- return originalInsertAdjacentHtml.call(this, position, text);
2324
- }
2325
- const container = this.ownerDocument.createElement("_");
2326
- let node;
2327
- container.innerHTML = text;
2328
- if (position === "afterbegin") {
2329
- while (node = container.firstChild) {
2330
- this.prepend(node);
2331
- }
2332
- } else if (position === "beforeend") {
2333
- while (node = container.firstChild) {
2334
- this.append(node);
2335
- }
2336
- }
2337
- };
2338
- };
2339
- var patchSlotInsertAdjacentText = (HostElementPrototype) => {
2340
- HostElementPrototype.insertAdjacentText = function(position, text) {
2341
- this.insertAdjacentHTML(position, text);
2342
- };
2343
- };
2344
- var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
2345
- const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
2346
- HostElementPrototype.insertAdjacentElement = function(position, element) {
2347
- if (position !== "afterbegin" && position !== "beforeend") {
2348
- return originalInsertAdjacentElement.call(this, position, element);
2349
- }
2350
- if (position === "afterbegin") {
2351
- this.prepend(element);
2352
- return element;
2353
- } else if (position === "beforeend") {
2354
- this.append(element);
2355
- return element;
2356
- }
2357
- return element;
2358
- };
2359
- };
2360
- var patchTextContent = (hostElementPrototype) => {
2361
- const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
2362
- Object.defineProperty(hostElementPrototype, "__textContent", descriptor);
2363
- if (BUILD.experimentalScopedSlotChanges) {
2364
- Object.defineProperty(hostElementPrototype, "textContent", {
2365
- // To mimic shadow root behavior, we need to return the text content of all
2366
- // nodes in a slot reference node
2367
- get() {
2368
- const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2369
- const textContent = slotRefNodes.map((node) => {
2370
- var _a, _b;
2371
- const text = [];
2372
- let slotContent = node.nextSibling;
2373
- while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2374
- if (slotContent.nodeType === 3 /* TEXT_NODE */ || slotContent.nodeType === 1 /* ELEMENT_NODE */) {
2375
- text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
2376
- }
2377
- slotContent = slotContent.nextSibling;
2378
- }
2379
- return text.filter((ref) => ref !== "").join(" ");
2380
- }).filter((text) => text !== "").join(" ");
2381
- return " " + textContent + " ";
2382
- },
2383
- // To mimic shadow root behavior, we need to overwrite all nodes in a slot
2384
- // reference node. If a default slot reference node exists, the text content will be
2385
- // placed there. Otherwise, the new text node will be hidden
2386
- set(value) {
2387
- const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2388
- slotRefNodes.forEach((node) => {
2389
- let slotContent = node.nextSibling;
2390
- while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2391
- const tmp = slotContent;
2392
- slotContent = slotContent.nextSibling;
2393
- tmp.remove();
2394
- }
2395
- if (node["s-sn"] === "") {
2396
- const textNode = this.ownerDocument.createTextNode(value);
2397
- textNode["s-sn"] = "";
2398
- insertBefore(node.parentElement, textNode, node.nextSibling);
2399
- } else {
2400
- node.remove();
2401
- }
2402
- });
2403
- }
2404
- });
2405
- } else {
2406
- Object.defineProperty(hostElementPrototype, "textContent", {
2407
- get() {
2408
- var _a;
2409
- const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
2410
- if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
2411
- return slotNode.nextSibling.textContent;
2412
- } else if (slotNode) {
2413
- return slotNode.textContent;
2414
- } else {
2415
- return this.__textContent;
2416
- }
2417
- },
2418
- set(value) {
2419
- var _a;
2420
- const slotNode = getHostSlotNode(this.childNodes, "", this.tagName);
2421
- if (((_a = slotNode == null ? void 0 : slotNode.nextSibling) == null ? void 0 : _a.nodeType) === 3 /* TEXT_NODE */) {
2422
- slotNode.nextSibling.textContent = value;
2423
- } else if (slotNode) {
2424
- slotNode.textContent = value;
2425
- } else {
2426
- this.__textContent = value;
2427
- const contentRefElm = this["s-cr"];
2428
- if (contentRefElm) {
2429
- insertBefore(this, contentRefElm, this.firstChild);
2430
- }
2431
- }
2432
- }
2433
- });
2434
- }
2435
- };
2436
- var patchChildSlotNodes = (elm, cmpMeta) => {
2437
- class FakeNodeList extends Array {
2438
- item(n) {
2439
- return this[n];
2440
- }
2441
- }
2442
- if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2443
- const childNodesFn = elm.__lookupGetter__("childNodes");
2444
- Object.defineProperty(elm, "children", {
2445
- get() {
2446
- return this.childNodes.map((n) => n.nodeType === 1);
2447
- }
2448
- });
2449
- Object.defineProperty(elm, "childElementCount", {
2450
- get() {
2451
- return elm.children.length;
2452
- }
2453
- });
2454
- Object.defineProperty(elm, "childNodes", {
2455
- get() {
2456
- const childNodes = childNodesFn.call(this);
2457
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0 && getHostRef(this).$flags$ & 2 /* hasRendered */) {
2458
- const result = new FakeNodeList();
2459
- for (let i2 = 0; i2 < childNodes.length; i2++) {
2460
- const slot = childNodes[i2]["s-nr"];
2461
- if (slot) {
2462
- result.push(slot);
2463
- }
2464
- }
2465
- return result;
2466
- }
2467
- return FakeNodeList.from(childNodes);
2468
- }
2469
- });
2470
- }
2471
- };
2472
- var getAllChildSlotNodes = (childNodes) => {
2473
- const slotRefNodes = [];
2474
- for (const childNode of Array.from(childNodes)) {
2475
- if (childNode["s-sr"]) {
2476
- slotRefNodes.push(childNode);
2477
- }
2478
- slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
2479
- }
2480
- return slotRefNodes;
2481
- };
2482
- var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
2483
- var getHostSlotNode = (childNodes, slotName, hostName) => {
2484
- let i2 = 0;
2485
- let childNode;
2486
- for (; i2 < childNodes.length; i2++) {
2487
- childNode = childNodes[i2];
2488
- if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
2489
- return childNode;
2490
- }
2491
- childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
2492
- if (childNode) {
2493
- return childNode;
2494
- }
2495
- }
2496
- return null;
2497
- };
2498
- var getHostSlotChildNodes = (n, slotName) => {
2499
- const childNodes = [n];
2500
- while ((n = n.nextSibling) && n["s-sn"] === slotName) {
2501
- childNodes.push(n);
2502
- }
2503
- return childNodes;
2504
- };
2505
-
2506
- // src/runtime/bootstrap-custom-element.ts
2507
- var defineCustomElement = (Cstr, compactMeta) => {
2508
- customElements.define(compactMeta[1], proxyCustomElement(Cstr, compactMeta));
2509
- };
2510
- var proxyCustomElement = (Cstr, compactMeta) => {
2511
- const cmpMeta = {
2512
- $flags$: compactMeta[0],
2513
- $tagName$: compactMeta[1]
2514
- };
2515
- if (BUILD.member) {
2516
- cmpMeta.$members$ = compactMeta[2];
2517
- }
2518
- if (BUILD.hostListener) {
2519
- cmpMeta.$listeners$ = compactMeta[3];
2520
- }
2521
- if (BUILD.watchCallback) {
2522
- cmpMeta.$watchers$ = Cstr.$watchers$;
2523
- }
2524
- if (BUILD.reflect) {
2525
- cmpMeta.$attrsToReflect$ = [];
2526
- }
2527
- if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2528
- cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
2529
- }
2530
- if (BUILD.experimentalSlotFixes) {
2531
- if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2532
- patchPseudoShadowDom(Cstr.prototype, cmpMeta);
2533
- }
2534
- } else {
2535
- if (BUILD.slotChildNodesFix) {
2536
- patchChildSlotNodes(Cstr.prototype, cmpMeta);
2537
- }
2538
- if (BUILD.cloneNodeFix) {
2539
- patchCloneNode(Cstr.prototype);
2540
- }
2541
- if (BUILD.appendChildSlotFix) {
2542
- patchSlotAppendChild(Cstr.prototype);
2543
- }
2544
- if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2545
- patchTextContent(Cstr.prototype);
2546
- }
2547
- }
2548
- const originalConnectedCallback = Cstr.prototype.connectedCallback;
2549
- const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
2550
- Object.assign(Cstr.prototype, {
2551
- __registerHost() {
2552
- registerHost(this, cmpMeta);
2553
- },
2554
- connectedCallback() {
2555
- const hostRef = getHostRef(this);
2556
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
2557
- connectedCallback(this);
2558
- if (BUILD.connectedCallback && originalConnectedCallback) {
2559
- originalConnectedCallback.call(this);
2560
- }
2561
- },
2562
- disconnectedCallback() {
2563
- disconnectedCallback(this);
2564
- if (BUILD.disconnectedCallback && originalDisconnectedCallback) {
2565
- originalDisconnectedCallback.call(this);
2566
- }
2567
- },
2568
- __attachShadow() {
2569
- if (supportsShadow) {
2570
- if (!this.shadowRoot) {
2571
- if (BUILD.shadowDelegatesFocus) {
2572
- this.attachShadow({
2573
- mode: "open",
2574
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
2575
- });
2576
- } else {
2577
- this.attachShadow({ mode: "open" });
2578
- }
2579
- } else {
2580
- if (this.shadowRoot.mode !== "open") {
2581
- throw new Error(
2582
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
2583
- );
2584
- }
2585
- }
2586
- } else {
2587
- this.shadowRoot = this;
2588
- }
2589
- }
2590
- });
2591
- Cstr.is = cmpMeta.$tagName$;
2592
- return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
2593
- };
2594
- var forceModeUpdate = (elm) => {
2595
- if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
2596
- const mode = computeMode(elm);
2597
- const hostRef = getHostRef(elm);
2598
- if (hostRef.$modeName$ !== mode) {
2599
- const cmpMeta = hostRef.$cmpMeta$;
2600
- const oldScopeId = elm["s-sc"];
2601
- const scopeId2 = getScopeId(cmpMeta, mode);
2602
- const style = elm.constructor.style[mode];
2603
- const flags = cmpMeta.$flags$;
2604
- if (style) {
2605
- if (!styles.has(scopeId2)) {
2606
- registerStyle(scopeId2, style, !!(flags & 1 /* shadowDomEncapsulation */));
2607
- }
2608
- hostRef.$modeName$ = mode;
2609
- elm.classList.remove(oldScopeId + "-h", oldScopeId + "-s");
2610
- attachStyles(hostRef);
2611
- forceUpdate(elm);
2612
- }
2613
- }
2614
- }
2615
- };
2616
-
2617
- // src/runtime/hmr-component.ts
2618
- var hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
2619
- const hostRef = getHostRef(hostElement);
2620
- hostRef.$flags$ = 1 /* hasConnected */;
2621
- initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);
2622
- };
2623
-
2624
- // src/runtime/bootstrap-lazy.ts
2625
- var bootstrapLazy = (lazyBundles, options = {}) => {
2626
- var _a;
2627
- if (BUILD.profile && performance.mark) {
2628
- performance.mark("st:app:start");
2629
- }
2630
- installDevTools();
2631
- const endBootstrap = createTime("bootstrapLazy");
2632
- const cmpTags = [];
2633
- const exclude = options.exclude || [];
2634
- const customElements2 = win.customElements;
2635
- const head = doc.head;
2636
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2637
- const dataStyles = /* @__PURE__ */ doc.createElement("style");
2638
- const deferredConnectedCallbacks = [];
2639
- const styles2 = /* @__PURE__ */ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
2640
- let appLoadFallback;
2641
- let isBootstrapping = true;
2642
- let i2 = 0;
2643
- Object.assign(plt, options);
2644
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
2645
- if (BUILD.asyncQueue) {
2646
- if (options.syncQueue) {
2647
- plt.$flags$ |= 4 /* queueSync */;
2648
- }
2649
- }
2650
- if (BUILD.hydrateClientSide) {
2651
- plt.$flags$ |= 2 /* appLoaded */;
2652
- }
2653
- if (BUILD.hydrateClientSide && BUILD.shadowDom) {
2654
- for (; i2 < styles2.length; i2++) {
2655
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
2656
- }
2657
- }
2658
- let hasSlotRelocation = false;
2659
- lazyBundles.map((lazyBundle) => {
2660
- lazyBundle[1].map((compactMeta) => {
2661
- var _a2;
2662
- const cmpMeta = {
2663
- $flags$: compactMeta[0],
2664
- $tagName$: compactMeta[1],
2665
- $members$: compactMeta[2],
2666
- $listeners$: compactMeta[3]
2667
- };
2668
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2669
- hasSlotRelocation = true;
2670
- }
2671
- if (BUILD.member) {
2672
- cmpMeta.$members$ = compactMeta[2];
2673
- }
2674
- if (BUILD.hostListener) {
2675
- cmpMeta.$listeners$ = compactMeta[3];
2676
- }
2677
- if (BUILD.reflect) {
2678
- cmpMeta.$attrsToReflect$ = [];
2679
- }
2680
- if (BUILD.watchCallback) {
2681
- cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2682
- }
2683
- if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2684
- cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
2685
- }
2686
- const tagName = BUILD.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : cmpMeta.$tagName$;
2687
- const HostElement = class extends HTMLElement {
2688
- // StencilLazyHost
2689
- constructor(self) {
2690
- super(self);
2691
- this.hasRegisteredEventListeners = false;
2692
- self = this;
2693
- registerHost(self, cmpMeta);
2694
- if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2695
- if (supportsShadow) {
2696
- if (!self.shadowRoot) {
2697
- if (BUILD.shadowDelegatesFocus) {
2698
- self.attachShadow({
2699
- mode: "open",
2700
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
2701
- });
2702
- } else {
2703
- self.attachShadow({ mode: "open" });
2704
- }
2705
- } else {
2706
- if (self.shadowRoot.mode !== "open") {
2707
- throw new Error(
2708
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2709
- );
2710
- }
2711
- }
2712
- } else if (!BUILD.hydrateServerSide && !("shadowRoot" in self)) {
2713
- self.shadowRoot = self;
2714
- }
2715
- }
2716
- }
2717
- connectedCallback() {
2718
- const hostRef = getHostRef(this);
2719
- if (!this.hasRegisteredEventListeners) {
2720
- this.hasRegisteredEventListeners = true;
2721
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
2722
- }
2723
- if (appLoadFallback) {
2724
- clearTimeout(appLoadFallback);
2725
- appLoadFallback = null;
2726
- }
2727
- if (isBootstrapping) {
2728
- deferredConnectedCallbacks.push(this);
2729
- } else {
2730
- plt.jmp(() => connectedCallback(this));
2731
- }
2732
- }
2733
- disconnectedCallback() {
2734
- plt.jmp(() => disconnectedCallback(this));
2735
- }
2736
- componentOnReady() {
2737
- return getHostRef(this).$onReadyPromise$;
2738
- }
2739
- };
2740
- if (BUILD.experimentalSlotFixes) {
2741
- if (BUILD.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2742
- patchPseudoShadowDom(HostElement.prototype, cmpMeta);
2743
- }
2744
- } else {
2745
- if (BUILD.slotChildNodesFix) {
2746
- patchChildSlotNodes(HostElement.prototype, cmpMeta);
2747
- }
2748
- if (BUILD.cloneNodeFix) {
2749
- patchCloneNode(HostElement.prototype);
2750
- }
2751
- if (BUILD.appendChildSlotFix) {
2752
- patchSlotAppendChild(HostElement.prototype);
2753
- }
2754
- if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
2755
- patchTextContent(HostElement.prototype);
2756
- }
2757
- }
2758
- if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */) {
2759
- HostElement.formAssociated = true;
2760
- }
2761
- if (BUILD.hotModuleReplacement) {
2762
- HostElement.prototype["s-hmr"] = function(hmrVersionId) {
2763
- hmrStart(this, cmpMeta, hmrVersionId);
2764
- };
2765
- }
2766
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
2767
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2768
- cmpTags.push(tagName);
2769
- customElements2.define(
2770
- tagName,
2771
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2772
- );
2773
- }
2774
- });
2775
- });
2776
- if (cmpTags.length > 0) {
2777
- if (hasSlotRelocation) {
2778
- dataStyles.textContent += SLOT_FB_CSS;
2779
- }
2780
- if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
2781
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2782
- }
2783
- if (dataStyles.innerHTML.length) {
2784
- dataStyles.setAttribute("data-styles", "");
2785
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
2786
- if (nonce != null) {
2787
- dataStyles.setAttribute("nonce", nonce);
2788
- }
2789
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2790
- }
2791
- }
2792
- isBootstrapping = false;
2793
- if (deferredConnectedCallbacks.length) {
2794
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2795
- } else {
2796
- if (BUILD.profile) {
2797
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30, "timeout"));
2798
- } else {
2799
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2800
- }
2801
- }
2802
- endBootstrap();
2803
- };
2804
-
2805
- // src/runtime/fragment.ts
2806
- var Fragment = (_, children) => children;
2807
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2808
- if (BUILD.hostListener && listeners) {
2809
- if (BUILD.hostListenerTargetParent) {
2810
- if (attachParentListeners) {
2811
- listeners = listeners.filter(([flags]) => flags & 32 /* TargetParent */);
2812
- } else {
2813
- listeners = listeners.filter(([flags]) => !(flags & 32 /* TargetParent */));
2814
- }
2815
- }
2816
- listeners.map(([flags, name, method]) => {
2817
- const target = BUILD.hostListenerTarget ? getHostListenerTarget(elm, flags) : elm;
2818
- const handler = hostListenerProxy(hostRef, method);
2819
- const opts = hostListenerOpts(flags);
2820
- plt.ael(target, name, handler, opts);
2821
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2822
- });
2823
- }
2824
- };
2825
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
2826
- var _a;
2827
- try {
2828
- if (BUILD.lazyLoad) {
2829
- if (hostRef.$flags$ & 256 /* isListenReady */) {
2830
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2831
- } else {
2832
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2833
- }
2834
- } else {
2835
- hostRef.$hostElement$[methodName](ev);
2836
- }
2837
- } catch (e) {
2838
- consoleError(e);
2839
- }
2840
- };
2841
- var getHostListenerTarget = (elm, flags) => {
2842
- if (BUILD.hostListenerTargetDocument && flags & 4 /* TargetDocument */) return doc;
2843
- if (BUILD.hostListenerTargetWindow && flags & 8 /* TargetWindow */) return win;
2844
- if (BUILD.hostListenerTargetBody && flags & 16 /* TargetBody */) return doc.body;
2845
- if (BUILD.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement)
2846
- return elm.parentElement;
2847
- return elm;
2848
- };
2849
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
2850
- passive: (flags & 1 /* Passive */) !== 0,
2851
- capture: (flags & 2 /* Capture */) !== 0
2852
- } : (flags & 2 /* Capture */) !== 0;
2853
-
2854
- // src/runtime/nonce.ts
2855
- var setNonce = (nonce) => plt.$nonce$ = nonce;
2856
-
2857
- // src/runtime/platform-options.ts
2858
- var setPlatformOptions = (opts) => Object.assign(plt, opts);
2859
-
2860
- // src/runtime/vdom/vdom-annotations.ts
2861
- var insertVdomAnnotations = (doc2, staticComponents) => {
2862
- if (doc2 != null) {
2863
- const docData = {
2864
- hostIds: 0,
2865
- rootLevelIds: 0,
2866
- staticComponents: new Set(staticComponents)
2867
- };
2868
- const orgLocationNodes = [];
2869
- parseVNodeAnnotations(doc2, doc2.body, docData, orgLocationNodes);
2870
- orgLocationNodes.forEach((orgLocationNode) => {
2871
- var _a;
2872
- if (orgLocationNode != null && orgLocationNode["s-nr"]) {
2873
- const nodeRef = orgLocationNode["s-nr"];
2874
- let hostId = nodeRef["s-host-id"];
2875
- let nodeId = nodeRef["s-node-id"];
2876
- let childId = `${hostId}.${nodeId}`;
2877
- if (hostId == null) {
2878
- hostId = 0;
2879
- docData.rootLevelIds++;
2880
- nodeId = docData.rootLevelIds;
2881
- childId = `${hostId}.${nodeId}`;
2882
- if (nodeRef.nodeType === 1 /* ElementNode */) {
2883
- nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);
2884
- } else if (nodeRef.nodeType === 3 /* TextNode */) {
2885
- if (hostId === 0) {
2886
- const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();
2887
- if (textContent === "") {
2888
- orgLocationNode.remove();
2889
- return;
2890
- }
2891
- }
2892
- const commentBeforeTextNode = doc2.createComment(childId);
2893
- commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;
2894
- insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);
2895
- }
2896
- }
2897
- let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;
2898
- const orgLocationParentNode = orgLocationNode.parentElement;
2899
- if (orgLocationParentNode) {
2900
- if (orgLocationParentNode["s-en"] === "") {
2901
- orgLocationNodeId += `.`;
2902
- } else if (orgLocationParentNode["s-en"] === "c") {
2903
- orgLocationNodeId += `.c`;
2904
- }
2905
- }
2906
- orgLocationNode.nodeValue = orgLocationNodeId;
2907
- }
2908
- });
2909
- }
2910
- };
2911
- var parseVNodeAnnotations = (doc2, node, docData, orgLocationNodes) => {
2912
- var _a;
2913
- if (node == null) {
2914
- return;
2915
- }
2916
- if (node["s-nr"] != null) {
2917
- orgLocationNodes.push(node);
2918
- }
2919
- if (node.nodeType === 1 /* ElementNode */) {
2920
- const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];
2921
- childNodes.forEach((childNode) => {
2922
- const hostRef = getHostRef(childNode);
2923
- if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
2924
- const cmpData = {
2925
- nodeIds: 0
2926
- };
2927
- insertVNodeAnnotations(doc2, childNode, hostRef.$vnode$, docData, cmpData);
2928
- }
2929
- parseVNodeAnnotations(doc2, childNode, docData, orgLocationNodes);
2930
- });
2931
- }
2932
- };
2933
- var insertVNodeAnnotations = (doc2, hostElm, vnode, docData, cmpData) => {
2934
- if (vnode != null) {
2935
- const hostId = ++docData.hostIds;
2936
- hostElm.setAttribute(HYDRATE_ID, hostId);
2937
- if (hostElm["s-cr"] != null) {
2938
- hostElm["s-cr"].nodeValue = `${CONTENT_REF_ID}.${hostId}`;
2939
- }
2940
- if (vnode.$children$ != null) {
2941
- const depth = 0;
2942
- vnode.$children$.forEach((vnodeChild, index) => {
2943
- insertChildVNodeAnnotations(doc2, vnodeChild, cmpData, hostId, depth, index);
2944
- });
2945
- }
2946
- if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {
2947
- const parent = hostElm.parentElement;
2948
- if (parent && parent.childNodes) {
2949
- const parentChildNodes = Array.from(parent.childNodes);
2950
- const comment = parentChildNodes.find(
2951
- (node) => node.nodeType === 8 /* CommentNode */ && node["s-sr"]
2952
- );
2953
- if (comment) {
2954
- const index = parentChildNodes.indexOf(hostElm) - 1;
2955
- vnode.$elm$.setAttribute(
2956
- HYDRATE_CHILD_ID,
2957
- `${comment["s-host-id"]}.${comment["s-node-id"]}.0.${index}`
2958
- );
2959
- }
2960
- }
2961
- }
2962
- }
2963
- };
2964
- var insertChildVNodeAnnotations = (doc2, vnodeChild, cmpData, hostId, depth, index) => {
2965
- const childElm = vnodeChild.$elm$;
2966
- if (childElm == null) {
2967
- return;
2968
- }
2969
- const nodeId = cmpData.nodeIds++;
2970
- const childId = `${hostId}.${nodeId}.${depth}.${index}`;
2971
- childElm["s-host-id"] = hostId;
2972
- childElm["s-node-id"] = nodeId;
2973
- if (childElm.nodeType === 1 /* ElementNode */) {
2974
- childElm.setAttribute(HYDRATE_CHILD_ID, childId);
2975
- } else if (childElm.nodeType === 3 /* TextNode */) {
2976
- const parentNode = childElm.parentNode;
2977
- const nodeName = parentNode == null ? void 0 : parentNode.nodeName;
2978
- if (nodeName !== "STYLE" && nodeName !== "SCRIPT") {
2979
- const textNodeId = `${TEXT_NODE_ID}.${childId}`;
2980
- const commentBeforeTextNode = doc2.createComment(textNodeId);
2981
- insertBefore(parentNode, commentBeforeTextNode, childElm);
2982
- }
2983
- } else if (childElm.nodeType === 8 /* CommentNode */) {
2984
- if (childElm["s-sr"]) {
2985
- const slotName = childElm["s-sn"] || "";
2986
- const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;
2987
- childElm.nodeValue = slotNodeId;
2988
- }
2989
- }
2990
- if (vnodeChild.$children$ != null) {
2991
- const childDepth = depth + 1;
2992
- vnodeChild.$children$.forEach((vnode, index2) => {
2993
- insertChildVNodeAnnotations(doc2, vnode, cmpData, hostId, childDepth, index2);
2994
- });
2995
- }
2996
- };
2997
-
2998
- export { BUILD as B, Fragment as F, H, NAMESPACE as N, Host as a, bootstrapLazy as b, consoleDevInfo as c, doc as d, createEvent as e, Build as f, getElement as g, h, forceUpdate as i, getAssetPath as j, readTask as k, getRenderingRef as l, promiseResolve as p, registerInstance as r, setNonce as s };