@penn-libraries/web 1.1.0-dev.7 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/cjs/{index-C0A2bnrZ.js → index-4ixBJUwu.js} +284 -191
  2. package/dist/cjs/index-4ixBJUwu.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +1 -3
  4. package/dist/cjs/loader.cjs.js +3 -6
  5. package/dist/cjs/loader.cjs.js.map +1 -1
  6. package/dist/cjs/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.cjs.js.map +1 -1
  7. package/dist/cjs/pennlibs-autocomplete_3.cjs.entry.js +25 -36
  8. package/dist/cjs/pennlibs-banner.cjs.entry.js +1 -3
  9. package/dist/cjs/pennlibs-chat.cjs.entry.js +1 -3
  10. package/dist/cjs/pennlibs-fallback-img.cjs.entry.js +1 -3
  11. package/dist/cjs/pennlibs-feedback.cjs.entry.js +1 -3
  12. package/dist/cjs/pennlibs-hero.cjs.entry.js +1 -3
  13. package/dist/cjs/web.cjs.js +4 -7
  14. package/dist/cjs/web.cjs.js.map +1 -1
  15. package/dist/collection/collection-manifest.json +2 -2
  16. package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js +40 -23
  17. package/dist/collection/components/pennlibs-autocomplete/pennlibs-autocomplete.js.map +1 -1
  18. package/dist/collection/components/pennlibs-header/pennlibs-header.js +6 -6
  19. package/dist/components/index.js +1 -1
  20. package/dist/components/pennlibs-autocomplete.js +28 -20
  21. package/dist/components/pennlibs-autocomplete.js.map +1 -1
  22. package/dist/components/pennlibs-banner.js +5 -3
  23. package/dist/components/pennlibs-banner.js.map +1 -1
  24. package/dist/components/pennlibs-chat.js +5 -3
  25. package/dist/components/pennlibs-chat.js.map +1 -1
  26. package/dist/components/pennlibs-fallback-img.js +5 -3
  27. package/dist/components/pennlibs-fallback-img.js.map +1 -1
  28. package/dist/components/pennlibs-feedback.js +5 -3
  29. package/dist/components/pennlibs-feedback.js.map +1 -1
  30. package/dist/components/pennlibs-footer.js +5 -3
  31. package/dist/components/pennlibs-footer.js.map +1 -1
  32. package/dist/components/pennlibs-header.js +6 -19
  33. package/dist/components/pennlibs-header.js.map +1 -1
  34. package/dist/components/pennlibs-hero.js +5 -3
  35. package/dist/components/pennlibs-hero.js.map +1 -1
  36. package/dist/docs.json +30 -10
  37. package/dist/esm/{index-CE_ILdTo.js → index-Di48-Vtw.js} +284 -192
  38. package/dist/esm/index-Di48-Vtw.js.map +1 -0
  39. package/dist/esm/index.js +1 -3
  40. package/dist/esm/loader.js +3 -6
  41. package/dist/esm/loader.js.map +1 -1
  42. package/dist/esm/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.js.map +1 -1
  43. package/dist/esm/pennlibs-autocomplete_3.entry.js +25 -36
  44. package/dist/esm/pennlibs-banner.entry.js +1 -3
  45. package/dist/esm/pennlibs-chat.entry.js +1 -3
  46. package/dist/esm/pennlibs-fallback-img.entry.js +1 -3
  47. package/dist/esm/pennlibs-feedback.entry.js +1 -3
  48. package/dist/esm/pennlibs-hero.entry.js +1 -3
  49. package/dist/esm/web.js +4 -7
  50. package/dist/esm/web.js.map +1 -1
  51. package/dist/types/components/pennlibs-autocomplete/pennlibs-autocomplete.d.ts +17 -1
  52. package/dist/types/components.d.ts +24 -0
  53. package/dist/types/stencil-public-runtime.d.ts +73 -9
  54. package/dist/web/index.esm.js +1 -3
  55. package/dist/web/loader.esm.js.map +1 -1
  56. package/dist/web/{p-5e385536.entry.js → p-09e4a02c.entry.js} +1 -3
  57. package/dist/web/{p-e1215158.entry.js → p-269363bf.entry.js} +25 -36
  58. package/dist/web/{p-370e32b1.entry.js → p-56b9f10c.entry.js} +1 -3
  59. package/dist/web/{p-07ad051f.entry.js → p-6503bb09.entry.js} +1 -3
  60. package/dist/web/{p-cbae5952.entry.js → p-783e2a87.entry.js} +1 -3
  61. package/dist/web/{p-20c0bd7a.entry.js → p-7cbd16c0.entry.js} +1 -3
  62. package/dist/web/{p-CE_ILdTo.js → p-Di48-Vtw.js} +284 -192
  63. package/dist/web/p-Di48-Vtw.js.map +1 -0
  64. package/dist/web/pennlibs-autocomplete.pennlibs-footer.pennlibs-header.entry.esm.js.map +1 -1
  65. package/dist/web/web.esm.js +4 -7
  66. package/dist/web/web.esm.js.map +1 -1
  67. package/hydrate/index.d.ts +28 -24
  68. package/hydrate/index.js +447 -241
  69. package/hydrate/index.mjs +447 -241
  70. package/package.json +3 -9
  71. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  72. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  73. package/dist/cjs/index-C0A2bnrZ.js.map +0 -1
  74. package/dist/cjs/pennlibs-autocomplete_3.cjs.entry.js.map +0 -1
  75. package/dist/cjs/pennlibs-banner.cjs.entry.js.map +0 -1
  76. package/dist/cjs/pennlibs-chat.cjs.entry.js.map +0 -1
  77. package/dist/cjs/pennlibs-fallback-img.cjs.entry.js.map +0 -1
  78. package/dist/cjs/pennlibs-feedback.cjs.entry.js.map +0 -1
  79. package/dist/cjs/pennlibs-hero.cjs.entry.js.map +0 -1
  80. package/dist/collection/utils/utils.js +0 -4
  81. package/dist/collection/utils/utils.js.map +0 -1
  82. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  83. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  84. package/dist/esm/index-CE_ILdTo.js.map +0 -1
  85. package/dist/esm/pennlibs-autocomplete_3.entry.js.map +0 -1
  86. package/dist/types/utils/utils.d.ts +0 -1
  87. package/dist/web/p-07ad051f.entry.js.map +0 -1
  88. package/dist/web/p-20c0bd7a.entry.js.map +0 -1
  89. package/dist/web/p-370e32b1.entry.js.map +0 -1
  90. package/dist/web/p-5e385536.entry.js.map +0 -1
  91. package/dist/web/p-CE_ILdTo.js.map +0 -1
  92. package/dist/web/p-DQuL1Twl.js +0 -6
  93. package/dist/web/p-DQuL1Twl.js.map +0 -1
  94. package/dist/web/p-cbae5952.entry.js.map +0 -1
  95. package/dist/web/p-e1215158.entry.js.map +0 -1
@@ -1,10 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  const NAMESPACE = 'web';
4
- const BUILD = /* web */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
4
+ const BUILD = /* web */ { hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: false, updatable: true};
5
+
6
+ const globalScripts = () => {};
7
+ const globalStyles = "@import url(\"https://use.typekit.net/gbh8cmg.css\");\n\n:root {\n --pl-color-penn-red: #990000;\n --pl-color-penn-blue: #011F5B;\n --pl-color-gray-dark: #2D3545;\n --pl-color-gray: #595F6A;\n --pl-color-gray-light: #F5F5F6;\n --pl-color-gray-blue-light: #EEEEF4;\n --pl-color-white: #FFFFFF;\n --pl-color-blue: #0E5696;\n --pl-color-blue-light: #D4E4F2;\n --pl-color-green: #267434;\n --pl-color-green-light: #F1F7E1;\n --pl-color-orange: #BD4718;\n --pl-color-orange-light: #FEEDDD;\n --pl-color-purple: #80317F;\n --pl-color-purple-light: #F2DFED;\n --pl-color-bg-gradient-1: linear-gradient(45deg, rgba(200, 219, 232, 0.8), rgba(239, 210, 215, 0.8));\n --pl-color-bg-gradient-2: linear-gradient(45deg, #dbe9f5, #feefdf);\n --pl-font-size: 16px;\n --pl-font-sans-serif: proxima-nova, system-ui, sans-serif;\n --pl-font-serif: cormorant-garamond, serif;\n --pl-link-text-underline-offset: 0.2em;\n --pl-link-text-decoration-thickness: 1px;\n --pl-link-hover-text-decoration-thickness: 2px;\n --pl-viewport-margins-max-width: 1440px;\n --pl-viewport-margins-gutter: 1em;\n --pl-color-fg-default: var(--pl-color-gray-dark);\n --pl-color-fg-subtle: var(--pl-color-gray);\n --pl-color-fg-subtle-on-emphasis: var(--pl-color-gray-light);\n --pl-color-fg-on-emphasis: var(--pl-color-white);\n --pl-color-fg-accent: var(--pl-color-blue);\n --pl-color-fg-success: var(--pl-color-green);\n --pl-color-fg-attention: var(--pl-color-orange);\n --pl-color-fg-info: var(--pl-color-purple);\n --pl-color-bg-default: var(--pl-color-white);\n --pl-color-bg-subtle: var(--pl-color-gray-light);\n --pl-color-bg-subtle-brand: var(--pl-color-gray-blue-light);\n --pl-color-bg-emphasis: var(--pl-color-gray-dark);\n --pl-color-bg-accent: var(--pl-color-blue-light);\n --pl-color-bg-success: var(--pl-color-green-light);\n --pl-color-bg-attention: var(--pl-color-orange-light);\n --pl-color-bg-info: var(--pl-color-purple-light);\n --pl-color-bg-accent-emphasis: var(--pl-color-blue);\n --pl-color-bg-success-emphasis: var(--pl-color-green);\n --pl-color-bg-attention-emphasis: var(--pl-color-orange);\n --pl-color-bg-info-emphasis: var(--pl-color-purple);\n --pl-font-family: var(--pl-font-sans-serif);\n --pl-link-text-underline-offset: 0.2em;\n --pl-link-text-decoration-thickness: 1px;\n --pl-link-hover-text-decoration-thickness: 2px;\n\n /* Font size tokens */\n --pl-font-size-5xl: 3rem;\n --pl-font-size-4xl: 2.75rem;\n --pl-font-size-3xl: 2.25rem;\n --pl-font-size-2xl: 1.5rem;\n --pl-font-size-xl: 1.25rem;\n --pl-font-size-l: 1.125rem;\n --pl-font-size-m: 1rem;\n --pl-font-size-s: 0.875rem;\n --pl-font-size-xs: 0.75rem;\n \n /* Spacing tokens */\n --pl-space-3xs: 0.125rem;\n --pl-space-2xs: 0.25rem;\n --pl-space-xs: 0.5rem;\n --pl-space-s: 0.75rem;\n --pl-space-m: 1rem;\n --pl-space-l: 1.5rem;\n --pl-space-xl: 2rem;\n --pl-space-2xl: 3rem;\n --pl-space-3xl: 4rem;\n\n /* Border radius tokens */\n --pl-border-radius-subtle: 0.25rem;\n --pl-border-radius: 1rem;\n\n /* Focus box shadow tokens */\n --pl-focus-box-shadow: 0 0 0 2px var(--pl-color-bg-accent), 0 0 0 4px var(--pl-color-fg-default);\n}\n\n@media (min-width: 768px) {\n :root {\n --pl-viewport-margins-gutter: 3em;\n }\n}\n\n@media print {\n body {\n zoom: 80%;\n }\n}\n\n.pl-viewport-margins {\n max-width: var(--pl-viewport-margins-max-width);\n margin: 0 auto;\n padding: 0 var(--pl-viewport-margins-gutter, 1rem);\n width: 100%;\n}\n\n/*\n Prevents a flash of unstyled content (FOUC) while custom elements are loading.\n Ensures that elements are only visible once they're fully defined and ready to be displayed.\n*/\n:not(:defined) {\n visibility: hidden;\n}\n\n/*\n Reset\n*/\n\n:where(.pl-reset) {\n font-weight: 400;\n line-height: 1.4;\n color: var(--pl-color-fg-default);\n accent-color: var(--pl-color-fg-accent);\n\n /* Use a more-intuitive box-sizing model */\n & :is(*, *::before, *::after) {\n box-sizing: border-box;\n margin: 0;\n }\n\n /* Improve media defaults */\n & :is(img, picture, video, canvas, svg) {\n display: block;\n max-width: 100%;\n }\n\n /* Inherit fonts for form controls */\n & :is(input, button, textarea, select) {\n font: var(--pl-font-family);\n }\n\n /* Avoid text overflows */\n & :is(p, h1, h2, h3, h4, h5, h6) {\n overflow-wrap: break-word;\n }\n\n /* Improve line wrapping */\n & p {\n text-wrap: pretty;\n }\n & :is(h1, h2, h3, h4, h5, h6) {\n text-wrap: balance;\n }\n\n /* Link styles */\n & a {\n color: var(--pl-color-fg-accent);\n text-decoration: underline;\n text-underline-offset: var(--pl-link-text-underline-offset);\n text-decoration-thickness: var(--pl-link-text-decoration-thickness);\n font-weight: 500;\n\n &:hover {\n text-decoration-thickness: 3px;\n }\n }\n}\n\n/*\n Typeset\n*/\n\n:where(.pl-typeset) {\n font-family: var(--pl-font-family);\n \n & :is(p, .pl-p) {\n font-family: var(--pl-font-family);\n }\n\n & :is(h1, .pl-h1, h2, .pl-h2) {\n font-family: var(--pl-font-serif);\n }\n\n & :is(h1, .pl-h1, h2, .pl-h2, h3, .pl-h3, h4, .pl-h4, h5, .pl-h5, h6, .pl-h6) {\n font-weight: 600;\n }\n\n & *+:is(h2,h3,h4,h5,h6) {\n margin-block-start: var(--pl-space-xl);\n }\n\n & :is(h1, .pl-h1, h2, .pl-h2) {\n font-weight: 600;\n line-height: 1.125;\n font-family: var(--pl-font-serif);\n color: var(--pl-color-penn-blue);\n position: relative;\n\n &::after {\n bottom: -0.25rem;\n content: \"\";\n display: block;\n height: 4px;\n opacity: 1;\n position: absolute;\n }\n }\n\n & :is(h1, .pl-h1) {\n font-size: var(--pl-font-size-5xl);\n margin-bottom: 0.5em;\n margin-top: 0;\n\n &::after {\n background: var(--pl-color-penn-red);\n width: 2.25rem;\n }\n }\n\n & :is(h2, .pl-h2) {\n font-size: var(--pl-font-size-3xl);\n margin-bottom: 0.5em;\n\n &::after {\n background: #d6d6dc;\n width: 2.25rem;\n }\n }\n\n & :is(h3, .pl-h3) {\n font-size: var(--pl-font-size-xl);\n font-family: var(--pl-font-sans-serif);\n color: var(--pl-color-fg-default);\n margin-bottom: var(--pl-space-m);\n\n &:after {\n content: none;\n }\n }\n\n & :is(h4, .pl-h4) {\n font-size: var(--pl-font-size-m);\n margin-bottom: var(--pl-space-s);\n\n &:after {\n content: none;\n }\n }\n}\n\n/* \n Display\n*/\n.pl-block { display: block; }\n.pl-inline { display: inline; }\n.pl-inline-block { display: inline-block; }\n.pl-flex { display: flex; }\n.pl-inline-flex { display: inline-flex; }\n.pl-grid { display: grid; }\n.pl-inline-grid { display: inline-grid; }\n.pl-none { display: none; }\n\n/* \n Flex direction utilities\n*/\n.pl-flex-row { flex-direction: row; }\n.pl-flex-col { flex-direction: column; }\n\n/* \n Spacing\n*/\n\n/* Margin utilities */\n.pl-margin-0 { margin: 0; }\n.pl-margin-2xs { margin: var(--pl-space-2xs); }\n.pl-margin-xs { margin: var(--pl-space-xs); }\n.pl-margin-s { margin: var(--pl-space-s); }\n.pl-margin-m { margin: var(--pl-space-m); }\n.pl-margin-l { margin: var(--pl-space-l); }\n.pl-margin-xl { margin: var(--pl-space-xl); }\n.pl-margin-2xl { margin: var(--pl-space-2xl); }\n.pl-margin-3xl { margin: var(--pl-space-3xl); }\n\n/* Margin top */\n.pl-margin-t-0 { margin-top: 0; }\n.pl-margin-t-2xs { margin-top: var(--pl-space-2xs); }\n.pl-margin-t-xs { margin-top: var(--pl-space-xs); }\n.pl-margin-t-s { margin-top: var(--pl-space-s); }\n.pl-margin-t-m { margin-top: var(--pl-space-m); }\n.pl-margin-t-l { margin-top: var(--pl-space-l); }\n.pl-margin-t-xl { margin-top: var(--pl-space-xl); }\n.pl-margin-t-2xl { margin-top: var(--pl-space-2xl); }\n.pl-margin-t-3xl { margin-top: var(--pl-space-3xl); }\n\n/* Margin bottom */\n.pl-margin-b-0 { margin-bottom: 0; }\n.pl-margin-b-2xs { margin-bottom: var(--pl-space-2xs); }\n.pl-margin-b-xs { margin-bottom: var(--pl-space-xs); }\n.pl-margin-b-s { margin-bottom: var(--pl-space-s); }\n.pl-margin-b-m { margin-bottom: var(--pl-space-m); }\n.pl-margin-b-l { margin-bottom: var(--pl-space-l); }\n.pl-margin-b-xl { margin-bottom: var(--pl-space-xl); }\n.pl-margin-b-2xl { margin-bottom: var(--pl-space-2xl); }\n.pl-margin-b-3xl { margin-bottom: var(--pl-space-3xl); }\n\n/* Margin left */\n.pl-margin-l-0 { margin-left: 0; }\n.pl-margin-l-2xs { margin-left: var(--pl-space-2xs); }\n.pl-margin-l-xs { margin-left: var(--pl-space-xs); }\n.pl-margin-l-s { margin-left: var(--pl-space-s); }\n.pl-margin-l-m { margin-left: var(--pl-space-m); }\n.pl-margin-l-l { margin-left: var(--pl-space-l); }\n.pl-margin-l-xl { margin-left: var(--pl-space-xl); }\n.pl-margin-l-2xl { margin-left: var(--pl-space-2xl); }\n.pl-margin-l-3xl { margin-left: var(--pl-space-3xl); }\n\n/* Margin right */\n.pl-margin-r-0 { margin-right: 0; }\n.pl-margin-r-2xs { margin-right: var(--pl-space-2xs); }\n.pl-margin-r-xs { margin-right: var(--pl-space-xs); }\n.pl-margin-r-s { margin-right: var(--pl-space-s); }\n.pl-margin-r-m { margin-right: var(--pl-space-m); }\n.pl-margin-r-l { margin-right: var(--pl-space-l); }\n.pl-margin-r-xl { margin-right: var(--pl-space-xl); }\n.pl-margin-r-2xl { margin-right: var(--pl-space-2xl); }\n.pl-margin-r-3xl { margin-right: var(--pl-space-3xl); }\n\n/* Margin x (left and right) */\n.pl-margin-x-0 { margin-left: 0; margin-right: 0; }\n.pl-margin-x-2xs { margin-left: var(--pl-space-2xs); margin-right: var(--pl-space-2xs); }\n.pl-margin-x-xs { margin-left: var(--pl-space-xs); margin-right: var(--pl-space-xs); }\n.pl-margin-x-s { margin-left: var(--pl-space-s); margin-right: var(--pl-space-s); }\n.pl-margin-x-m { margin-left: var(--pl-space-m); margin-right: var(--pl-space-m); }\n.pl-margin-x-l { margin-left: var(--pl-space-l); margin-right: var(--pl-space-l); }\n.pl-margin-x-xl { margin-left: var(--pl-space-xl); margin-right: var(--pl-space-xl); }\n.pl-margin-x-2xl { margin-left: var(--pl-space-2xl); margin-right: var(--pl-space-2xl); }\n.pl-margin-x-3xl { margin-left: var(--pl-space-3xl); margin-right: var(--pl-space-3xl); }\n\n/* Margin y (top and bottom) */\n.pl-margin-y-0 { margin-top: 0; margin-bottom: 0; }\n.pl-margin-y-2xs { margin-top: var(--pl-space-2xs); margin-bottom: var(--pl-space-2xs); }\n.pl-margin-y-xs { margin-top: var(--pl-space-xs); margin-bottom: var(--pl-space-xs); }\n.pl-margin-y-s { margin-top: var(--pl-space-s); margin-bottom: var(--pl-space-s); }\n.pl-margin-y-m { margin-top: var(--pl-space-m); margin-bottom: var(--pl-space-m); }\n.pl-margin-y-l { margin-top: var(--pl-space-l); margin-bottom: var(--pl-space-l); }\n.pl-margin-y-xl { margin-top: var(--pl-space-xl); margin-bottom: var(--pl-space-xl); }\n.pl-margin-y-2xl { margin-top: var(--pl-space-2xl); margin-bottom: var(--pl-space-2xl); }\n.pl-margin-y-3xl { margin-top: var(--pl-space-3xl); margin-bottom: var(--pl-space-3xl); }\n\n/* Padding utilities */\n.pl-padding-0 { padding: 0; }\n.pl-padding-2xs { padding: var(--pl-space-2xs); }\n.pl-padding-xs { padding: var(--pl-space-xs); }\n.pl-padding-s { padding: var(--pl-space-s); }\n.pl-padding-m { padding: var(--pl-space-m); }\n.pl-padding-l { padding: var(--pl-space-l); }\n.pl-padding-xl { padding: var(--pl-space-xl); }\n.pl-padding-2xl { padding: var(--pl-space-2xl); }\n.pl-padding-3xl { padding: var(--pl-space-3xl); }\n\n/* Padding top */\n.pl-padding-t-0 { padding-top: 0; }\n.pl-padding-t-2xs { padding-top: var(--pl-space-2xs); }\n.pl-padding-t-xs { padding-top: var(--pl-space-xs); }\n.pl-padding-t-s { padding-top: var(--pl-space-s); }\n.pl-padding-t-m { padding-top: var(--pl-space-m); }\n.pl-padding-t-l { padding-top: var(--pl-space-l); }\n.pl-padding-t-xl { padding-top: var(--pl-space-xl); }\n.pl-padding-t-2xl { padding-top: var(--pl-space-2xl); }\n.pl-padding-t-3xl { padding-top: var(--pl-space-3xl); }\n\n/* Padding bottom */\n.pl-padding-b-0 { padding-bottom: 0; }\n.pl-padding-b-2xs { padding-bottom: var(--pl-space-2xs); }\n.pl-padding-b-xs { padding-bottom: var(--pl-space-xs); }\n.pl-padding-b-s { padding-bottom: var(--pl-space-s); }\n.pl-padding-b-m { padding-bottom: var(--pl-space-m); }\n.pl-padding-b-l { padding-bottom: var(--pl-space-l); }\n.pl-padding-b-xl { padding-bottom: var(--pl-space-xl); }\n.pl-padding-b-2xl { padding-bottom: var(--pl-space-2xl); }\n.pl-padding-b-3xl { padding-bottom: var(--pl-space-3xl); }\n\n/* Padding left */\n.pl-padding-l-0 { padding-left: 0; }\n.pl-padding-l-2xs { padding-left: var(--pl-space-2xs); }\n.pl-padding-l-xs { padding-left: var(--pl-space-xs); }\n.pl-padding-l-s { padding-left: var(--pl-space-s); }\n.pl-padding-l-m { padding-left: var(--pl-space-m); }\n.pl-padding-l-l { padding-left: var(--pl-space-l); }\n.pl-padding-l-xl { padding-left: var(--pl-space-xl); }\n.pl-padding-l-2xl { padding-left: var(--pl-space-2xl); }\n.pl-padding-l-3xl { padding-left: var(--pl-space-3xl); }\n\n/* Padding right */\n.pl-padding-r-0 { padding-right: 0; }\n.pl-padding-r-2xs { padding-right: var(--pl-space-2xs); }\n.pl-padding-r-xs { padding-right: var(--pl-space-xs); }\n.pl-padding-r-s { padding-right: var(--pl-space-s); }\n.pl-padding-r-m { padding-right: var(--pl-space-m); }\n.pl-padding-r-l { padding-right: var(--pl-space-l); }\n.pl-padding-r-xl { padding-right: var(--pl-space-xl); }\n.pl-padding-r-2xl { padding-right: var(--pl-space-2xl); }\n.pl-padding-r-3xl { padding-right: var(--pl-space-3xl); }\n\n/* Padding x (left and right) */\n.pl-padding-x-0 { padding-left: 0; padding-right: 0; }\n.pl-padding-x-2xs { padding-left: var(--pl-space-2xs); padding-right: var(--pl-space-2xs); }\n.pl-padding-x-xs { padding-left: var(--pl-space-xs); padding-right: var(--pl-space-xs); }\n.pl-padding-x-s { padding-left: var(--pl-space-s); padding-right: var(--pl-space-s); }\n.pl-padding-x-m { padding-left: var(--pl-space-m); padding-right: var(--pl-space-m); }\n.pl-padding-x-l { padding-left: var(--pl-space-l); padding-right: var(--pl-space-l); }\n.pl-padding-x-xl { padding-left: var(--pl-space-xl); padding-right: var(--pl-space-xl); }\n.pl-padding-x-2xl { padding-left: var(--pl-space-2xl); padding-right: var(--pl-space-2xl); }\n.pl-padding-x-3xl { padding-left: var(--pl-space-3xl); padding-right: var(--pl-space-3xl); }\n\n/* Padding y (top and bottom) */\n.pl-padding-y-0 { padding-top: 0; padding-bottom: 0; }\n.pl-padding-y-2xs { padding-top: var(--pl-space-2xs); padding-bottom: var(--pl-space-2xs); }\n.pl-padding-y-xs { padding-top: var(--pl-space-xs); padding-bottom: var(--pl-space-xs); }\n.pl-padding-y-s { padding-top: var(--pl-space-s); padding-bottom: var(--pl-space-s); }\n.pl-padding-y-m { padding-top: var(--pl-space-m); padding-bottom: var(--pl-space-m); }\n.pl-padding-y-l { padding-top: var(--pl-space-l); padding-bottom: var(--pl-space-l); }\n.pl-padding-y-xl { padding-top: var(--pl-space-xl); padding-bottom: var(--pl-space-xl); }\n.pl-padding-y-2xl { padding-top: var(--pl-space-2xl); padding-bottom: var(--pl-space-2xl); }\n.pl-padding-y-3xl { padding-top: var(--pl-space-3xl); padding-bottom: var(--pl-space-3xl); }\n\n/* Gap utilities for flexbox and grid */\n.pl-gap-0 { gap: 0; }\n.pl-gap-2xs { gap: var(--pl-space-2xs); }\n.pl-gap-xs { gap: var(--pl-space-xs); }\n.pl-gap-s { gap: var(--pl-space-s); }\n.pl-gap-m { gap: var(--pl-space-m); }\n.pl-gap-l { gap: var(--pl-space-l); }\n.pl-gap-xl { gap: var(--pl-space-xl); }\n.pl-gap-2xl { gap: var(--pl-space-2xl); }\n.pl-gap-3xl { gap: var(--pl-space-3xl); } \n\n/*\n Font size\n*/\n\n.pl-font-size-xs {\n font-size: var(--pl-font-size-xs);\n}\n\n.pl-font-size-s {\n font-size: var(--pl-font-size-s);\n}\n\n.pl-font-size-m {\n font-size: var(--pl-font-size-m);\n}\n\n.pl-font-size-l {\n font-size: var(--pl-font-size-l);\n}\n\n.pl-font-size-xl {\n font-size: var(--pl-font-size-xl);\n}\n\n.pl-font-size-2xl {\n font-size: var(--pl-font-size-2xl);\n}\n\n.pl-font-size-3xl {\n font-size: var(--pl-font-size-3xl);\n}\n\n.pl-font-size-4xl {\n font-size: var(--pl-font-size-4xl);\n}\n\n.pl-font-size-5xl {\n font-size: var(--pl-font-size-5xl);\n}\n\n/*\n Line length\n*/\n\n.pl-line-length {\n max-width: 60ch;\n}\n\n/*\n Border radius\n*/\n\n.pl-border-radius-subtle {\n border-radius: var(--pl-border-radius-subtle);\n}\n\n.pl-border-radius {\n border-radius: var(--pl-border-radius);\n}\n\n/*\n Definition list\n*/\n\n.pl-dl:not(.pl-dl--inline) {\n display: grid;\n grid-row-gap: 0.25rem;\n \n & dt {\n font-weight: 600;\n margin-top: 0.5rem;\n }\n}\n\n@media (min-width: 720px) {\n .pl-dl:not(.pl-dl--inline) {\n grid-template-columns: 12rem 1fr;\n\n & dt {\n grid-column: 1 / 2;\n margin-top: 0;\n padding-right: 1rem;\n }\n\n & dd {\n grid-column: 2 / 3;\n margin-bottom: 0;\n }\n }\n}\n\n@media (min-width: 720px) {\n .pl-dl:not(.pl-dl--inline) dt:not(:first-of-type),\n .pl-dl:not(.pl-dl--inline) dt:not(:first-of-type) + dd {\n padding-top: 0.75rem;\n margin-top: 0.5rem;\n border-top: solid 1px var(--pl-color-bg-subtle-brand);\n }\n}\n\n.pl-dl--inline {\n display: block;\n \n & dt,\n & dd {\n display: inline;\n padding-right: 0.5rem;\n margin-bottom: 0;\n }\n \n & dt {\n font-weight: 600;\n }\n \n & dt:not(:first-of-type)::before {\n content: \"\";\n display: block;\n margin-bottom: 0.5rem;\n }\n \n & a {\n color: var(--pl-color-fg-default);\n text-decoration-style: dotted;\n font-weight: 400;\n\n &:hover {\n text-decoration-style: solid;\n text-decoration-thickness: 2px;\n }\n }\n}\n\n";
5
8
 
6
9
  /*
7
- Stencil Client Platform v4.29.3 | MIT Licensed | https://stenciljs.com
10
+ Stencil Client Platform v4.38.1 | MIT Licensed | https://stenciljs.com
8
11
  */
9
12
  var __defProp = Object.defineProperty;
10
13
  var __export = (target, all) => {
@@ -48,6 +51,7 @@ var getHostRef = (ref) => {
48
51
  return void 0;
49
52
  };
50
53
  var registerInstance = (lazyInstance, hostRef) => {
54
+ if (!hostRef) return;
51
55
  lazyInstance.__stencil__getHostRef = () => hostRef;
52
56
  hostRef.$lazyInstance$ = lazyInstance;
53
57
  };
@@ -56,13 +60,17 @@ var registerHost = (hostElement, cmpMeta) => {
56
60
  $flags$: 0,
57
61
  $hostElement$: hostElement,
58
62
  $cmpMeta$: cmpMeta,
59
- $instanceValues$: /* @__PURE__ */ new Map()
63
+ $instanceValues$: /* @__PURE__ */ new Map(),
64
+ $serializerValues$: /* @__PURE__ */ new Map()
60
65
  };
61
66
  {
62
67
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
63
68
  hostElement["s-p"] = [];
64
69
  hostElement["s-rc"] = [];
65
70
  }
71
+ {
72
+ hostRef.$fetchedCbList$ = [];
73
+ }
66
74
  const ref = hostRef;
67
75
  hostElement.__stencil__getHostRef = () => ref;
68
76
  return ref;
@@ -152,6 +160,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
152
160
  }
153
161
  return false;
154
162
  })() ;
163
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
155
164
  var queuePending = false;
156
165
  var queueDomReads = [];
157
166
  var queueDomWrites = [];
@@ -361,6 +370,29 @@ function deserializeProperty(value) {
361
370
  }
362
371
  return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
363
372
  }
373
+
374
+ // src/utils/style.ts
375
+ function createStyleSheetIfNeededAndSupported(styles2) {
376
+ if (!supportsConstructableStylesheets) return void 0;
377
+ const sheet = new CSSStyleSheet();
378
+ sheet.replaceSync(styles2);
379
+ return sheet;
380
+ }
381
+
382
+ // src/utils/shadow-root.ts
383
+ var globalStyleSheet;
384
+ function createShadowRoot(cmpMeta) {
385
+ var _a;
386
+ const shadowRoot = this.attachShadow({ mode: "open" });
387
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
388
+ if (globalStyleSheet) {
389
+ if (supportsMutableAdoptedStyleSheets) {
390
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
391
+ } else {
392
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
393
+ }
394
+ }
395
+ }
364
396
  var getSlottedChildNodes = (childNodes) => {
365
397
  const result = [];
366
398
  for (let i2 = 0; i2 < childNodes.length; i2++) {
@@ -407,7 +439,7 @@ function patchSlotNode(node) {
407
439
  const slotName = this["s-sn"];
408
440
  if (opts == null ? void 0 : opts.flatten) {
409
441
  console.error(`
410
- Flattening is not supported for Stencil non-shadow slots.
442
+ Flattening is not supported for Stencil non-shadow slots.
411
443
  You can use \`.childNodes\` to nested slot fallback content.
412
444
  If you have a particular use case, please open an issue on the Stencil repo.
413
445
  `);
@@ -451,6 +483,123 @@ var uniqueTime = (key, measureText) => {
451
483
  };
452
484
  }
453
485
  };
486
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
487
+ var registerStyle = (scopeId2, cssText, allowCS) => {
488
+ let style = styles.get(scopeId2);
489
+ if (supportsConstructableStylesheets && allowCS) {
490
+ style = style || new CSSStyleSheet();
491
+ if (typeof style === "string") {
492
+ style = cssText;
493
+ } else {
494
+ style.replaceSync(cssText);
495
+ }
496
+ } else {
497
+ style = cssText;
498
+ }
499
+ styles.set(scopeId2, style);
500
+ };
501
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
502
+ var _a;
503
+ const scopeId2 = getScopeId(cmpMeta);
504
+ const style = styles.get(scopeId2);
505
+ if (!win.document) {
506
+ return scopeId2;
507
+ }
508
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
509
+ if (style) {
510
+ if (typeof style === "string") {
511
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
512
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
513
+ let styleElm;
514
+ if (!appliedStyles) {
515
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
516
+ }
517
+ if (!appliedStyles.has(scopeId2)) {
518
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
519
+ styleElm.innerHTML = style;
520
+ } else {
521
+ styleElm = win.document.createElement("style");
522
+ styleElm.innerHTML = style;
523
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
524
+ if (nonce != null) {
525
+ styleElm.setAttribute("nonce", nonce);
526
+ }
527
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
528
+ if (styleContainerNode.nodeName === "HEAD") {
529
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
530
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
531
+ styleContainerNode.insertBefore(
532
+ styleElm,
533
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
534
+ );
535
+ } else if ("host" in styleContainerNode) {
536
+ if (supportsConstructableStylesheets) {
537
+ const stylesheet = new CSSStyleSheet();
538
+ stylesheet.replaceSync(style);
539
+ if (supportsMutableAdoptedStyleSheets) {
540
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
541
+ } else {
542
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
543
+ }
544
+ } else {
545
+ const existingStyleContainer = styleContainerNode.querySelector("style");
546
+ if (existingStyleContainer) {
547
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
548
+ } else {
549
+ styleContainerNode.prepend(styleElm);
550
+ }
551
+ }
552
+ } else {
553
+ styleContainerNode.append(styleElm);
554
+ }
555
+ }
556
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
557
+ styleContainerNode.insertBefore(styleElm, null);
558
+ }
559
+ }
560
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
561
+ styleElm.innerHTML += SLOT_FB_CSS;
562
+ }
563
+ if (appliedStyles) {
564
+ appliedStyles.add(scopeId2);
565
+ }
566
+ }
567
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
568
+ if (supportsMutableAdoptedStyleSheets) {
569
+ styleContainerNode.adoptedStyleSheets.push(style);
570
+ } else {
571
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
572
+ }
573
+ }
574
+ }
575
+ return scopeId2;
576
+ };
577
+ var attachStyles = (hostRef) => {
578
+ const cmpMeta = hostRef.$cmpMeta$;
579
+ const elm = hostRef.$hostElement$;
580
+ const flags = cmpMeta.$flags$;
581
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
582
+ const scopeId2 = addStyle(
583
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
584
+ cmpMeta);
585
+ if (flags & 10 /* needsScopedEncapsulation */) {
586
+ elm["s-sc"] = scopeId2;
587
+ elm.classList.add(scopeId2 + "-h");
588
+ }
589
+ endAttachStyles();
590
+ };
591
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
592
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
593
+ var hydrateScopedToShadow = () => {
594
+ if (!win.document) {
595
+ return;
596
+ }
597
+ const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
598
+ let i2 = 0;
599
+ for (; i2 < styles2.length; i2++) {
600
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
601
+ }
602
+ };
454
603
  var h = (nodeName, vnodeData, ...children) => {
455
604
  let child = null;
456
605
  let key = null;
@@ -555,7 +704,7 @@ var convertToPrivate = (node) => {
555
704
 
556
705
  // src/runtime/client-hydrate.ts
557
706
  var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
558
- var _a;
707
+ var _a, _b;
559
708
  const endHydrate = createTime("hydrateClient", tagName);
560
709
  const shadowRoot = hostElm.shadowRoot;
561
710
  const childRenderNodes = [];
@@ -564,19 +713,6 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
564
713
  const shadowRootNodes = shadowRoot ? [] : null;
565
714
  const vnode = newVNode(tagName, null);
566
715
  vnode.$elm$ = hostElm;
567
- const members = Object.entries(((_a = hostRef.$cmpMeta$) == null ? void 0 : _a.$members$) || {});
568
- members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
569
- var _a2;
570
- if (!(memberFlags & 31 /* Prop */)) {
571
- return;
572
- }
573
- const attributeName = metaAttributeName || memberName;
574
- const attrVal = hostElm.getAttribute(attributeName);
575
- if (attrVal !== null) {
576
- const attrPropVal = parsePropertyValue(attrVal, memberFlags);
577
- (_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.set(memberName, attrPropVal);
578
- }
579
- });
580
716
  if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
581
717
  initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
582
718
  }
@@ -605,6 +741,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
605
741
  if (childRenderNode.$tag$ === "slot") {
606
742
  node["s-cr"] = hostElm["s-cr"];
607
743
  }
744
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
745
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
746
+ if (cmpMeta) {
747
+ const scopeId3 = getScopeId(
748
+ cmpMeta.$cmpMeta$);
749
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
750
+ if (styleSheet) {
751
+ hostElm.shadowRoot.append(styleSheet.cloneNode(true));
752
+ }
753
+ }
608
754
  }
609
755
  if (childRenderNode.$tag$ === "slot") {
610
756
  childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
@@ -620,7 +766,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
620
766
  }
621
767
  }
622
768
  if (orgLocationNode && orgLocationNode.isConnected) {
623
- if (shadowRoot && orgLocationNode["s-en"] === "") {
769
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
624
770
  orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
625
771
  }
626
772
  orgLocationNode.parentNode.removeChild(orgLocationNode);
@@ -628,7 +774,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
628
774
  node["s-oo"] = parseInt(childRenderNode.$nodeId$);
629
775
  }
630
776
  }
631
- plt.$orgLocNodes$.delete(orgLocationId);
777
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
778
+ plt.$orgLocNodes$.delete(orgLocationId);
779
+ }
632
780
  }
633
781
  const hosts = [];
634
782
  const snLen = slottedNodes.length;
@@ -649,39 +797,46 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
649
797
  }
650
798
  if (!hosts[slottedItem.hostId]) continue;
651
799
  const hostEle = hosts[slottedItem.hostId];
800
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
801
+ hostEle.appendChild(slottedItem.node);
802
+ }
652
803
  if (!hostEle.shadowRoot || !shadowRoot) {
653
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
654
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
655
- slottedItem.slot["s-cr"] = hostEle;
656
- } else {
657
- slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
804
+ if (!slottedItem.slot["s-cr"]) {
805
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
806
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
807
+ slottedItem.slot["s-cr"] = hostEle;
808
+ } else {
809
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
810
+ }
658
811
  }
659
812
  addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
660
- }
661
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
662
- hostEle.appendChild(slottedItem.node);
813
+ if (((_b = slottedItem.node.parentElement) == null ? void 0 : _b.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
814
+ slottedItem.node.removeAttribute("slot");
815
+ }
663
816
  }
664
817
  }
665
818
  }
666
- if (shadowRoot && !shadowRoot.childNodes.length) {
819
+ if (shadowRoot) {
667
820
  let rnIdex = 0;
668
821
  const rnLen = shadowRootNodes.length;
669
822
  if (rnLen) {
670
823
  for (rnIdex; rnIdex < rnLen; rnIdex++) {
671
- shadowRoot.appendChild(shadowRootNodes[rnIdex]);
824
+ const node = shadowRootNodes[rnIdex];
825
+ if (node) {
826
+ shadowRoot.appendChild(node);
827
+ }
672
828
  }
673
829
  Array.from(hostElm.childNodes).forEach((node) => {
674
- if (typeof node["s-sn"] !== "string") {
830
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
675
831
  if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
676
832
  node.removeAttribute("hidden");
677
- } else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
833
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
678
834
  node.parentNode.removeChild(node);
679
835
  }
680
836
  }
681
837
  });
682
838
  }
683
839
  }
684
- plt.$orgLocNodes$.delete(hostElm["s-id"]);
685
840
  hostRef.$hostElement$ = hostElm;
686
841
  endHydrate();
687
842
  };
@@ -832,7 +987,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
832
987
  vnode.$index$ = "0";
833
988
  parentVNode.$children$ = [vnode];
834
989
  } else {
835
- if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
990
+ if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
836
991
  node.remove();
837
992
  }
838
993
  }
@@ -890,10 +1045,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
890
1045
  if (childVNode.$name$) {
891
1046
  childVNode.$elm$.setAttribute("name", slotName);
892
1047
  }
893
- if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
894
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1048
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1049
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
895
1050
  } else {
896
- node.parentNode.insertBefore(childVNode.$elm$, node);
1051
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
897
1052
  }
898
1053
  addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
899
1054
  node.remove();
@@ -908,8 +1063,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
908
1063
  if (shouldMove) {
909
1064
  parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
910
1065
  }
911
- childRenderNodes.push(childVNode);
912
1066
  }
1067
+ childRenderNodes.push(childVNode);
913
1068
  slotNodes.push(childVNode);
914
1069
  if (!parentVNode.$children$) {
915
1070
  parentVNode.$children$ = [];
@@ -917,13 +1072,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
917
1072
  parentVNode.$children$[childVNode.$index$] = childVNode;
918
1073
  }
919
1074
  var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1075
+ var _a, _b;
920
1076
  let slottedNode = slotNode.nextSibling;
921
1077
  slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
922
- while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
923
- slottedNode["s-sn"] = slotName;
924
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
925
- slottedNode = slottedNode.nextSibling;
926
- }
1078
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1079
+ do {
1080
+ if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1081
+ slottedNode["s-sn"] = slotName;
1082
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1083
+ }
1084
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1085
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
927
1086
  };
928
1087
  var findCorrespondingNode = (node, type) => {
929
1088
  let sibling = node;
@@ -944,14 +1103,7 @@ var createSupportsRuleRe = (selector) => {
944
1103
  createSupportsRuleRe("::slotted");
945
1104
  createSupportsRuleRe(":host");
946
1105
  createSupportsRuleRe(":host-context");
947
- var parsePropertyValue = (propValue, propType) => {
948
- if (typeof propValue === "string" && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
949
- try {
950
- propValue = JSON.parse(propValue);
951
- return propValue;
952
- } catch (e) {
953
- }
954
- }
1106
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
955
1107
  if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
956
1108
  propValue = deserializeProperty(propValue);
957
1109
  return propValue;
@@ -964,7 +1116,10 @@ var parsePropertyValue = (propValue, propType) => {
964
1116
  }
965
1117
  return propValue;
966
1118
  };
967
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1119
+ var getElement = (ref) => {
1120
+ var _a;
1121
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1122
+ };
968
1123
 
969
1124
  // src/runtime/event-emitter.ts
970
1125
  var createEvent = (ref, name, flags) => {
@@ -985,115 +1140,6 @@ var emitEvent = (elm, name, opts) => {
985
1140
  elm.dispatchEvent(ev);
986
1141
  return ev;
987
1142
  };
988
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
989
- var registerStyle = (scopeId2, cssText, allowCS) => {
990
- let style = styles.get(scopeId2);
991
- if (supportsConstructableStylesheets && allowCS) {
992
- style = style || new CSSStyleSheet();
993
- if (typeof style === "string") {
994
- style = cssText;
995
- } else {
996
- style.replaceSync(cssText);
997
- }
998
- } else {
999
- style = cssText;
1000
- }
1001
- styles.set(scopeId2, style);
1002
- };
1003
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
1004
- var _a;
1005
- const scopeId2 = getScopeId(cmpMeta);
1006
- const style = styles.get(scopeId2);
1007
- if (!win.document) {
1008
- return scopeId2;
1009
- }
1010
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1011
- if (style) {
1012
- if (typeof style === "string") {
1013
- styleContainerNode = styleContainerNode.head || styleContainerNode;
1014
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1015
- let styleElm;
1016
- if (!appliedStyles) {
1017
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1018
- }
1019
- if (!appliedStyles.has(scopeId2)) {
1020
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1021
- styleElm.innerHTML = style;
1022
- } else {
1023
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
1024
- styleElm.innerHTML = style;
1025
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1026
- if (nonce != null) {
1027
- styleElm.setAttribute("nonce", nonce);
1028
- }
1029
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1030
- if (styleContainerNode.nodeName === "HEAD") {
1031
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1032
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1033
- styleContainerNode.insertBefore(
1034
- styleElm,
1035
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1036
- );
1037
- } else if ("host" in styleContainerNode) {
1038
- if (supportsConstructableStylesheets) {
1039
- const stylesheet = new CSSStyleSheet();
1040
- stylesheet.replaceSync(style);
1041
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1042
- } else {
1043
- const existingStyleContainer = styleContainerNode.querySelector("style");
1044
- if (existingStyleContainer) {
1045
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1046
- } else {
1047
- styleContainerNode.prepend(styleElm);
1048
- }
1049
- }
1050
- } else {
1051
- styleContainerNode.append(styleElm);
1052
- }
1053
- }
1054
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1055
- styleContainerNode.insertBefore(styleElm, null);
1056
- }
1057
- }
1058
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1059
- styleElm.innerHTML += SLOT_FB_CSS;
1060
- }
1061
- if (appliedStyles) {
1062
- appliedStyles.add(scopeId2);
1063
- }
1064
- }
1065
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1066
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1067
- }
1068
- }
1069
- return scopeId2;
1070
- };
1071
- var attachStyles = (hostRef) => {
1072
- const cmpMeta = hostRef.$cmpMeta$;
1073
- const elm = hostRef.$hostElement$;
1074
- const flags = cmpMeta.$flags$;
1075
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1076
- const scopeId2 = addStyle(
1077
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1078
- cmpMeta);
1079
- if (flags & 10 /* needsScopedEncapsulation */) {
1080
- elm["s-sc"] = scopeId2;
1081
- elm.classList.add(scopeId2 + "-h");
1082
- }
1083
- endAttachStyles();
1084
- };
1085
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1086
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1087
- var hydrateScopedToShadow = () => {
1088
- if (!win.document) {
1089
- return;
1090
- }
1091
- const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1092
- let i2 = 0;
1093
- for (; i2 < styles2.length; i2++) {
1094
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1095
- }
1096
- };
1097
1143
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1098
1144
  if (oldValue === newValue) {
1099
1145
  return;
@@ -1104,12 +1150,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1104
1150
  const classList = elm.classList;
1105
1151
  const oldClasses = parseClassList(oldValue);
1106
1152
  let newClasses = parseClassList(newValue);
1107
- if (elm["s-si"] && initialRender) {
1108
- newClasses.push(elm["s-si"]);
1153
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1154
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
1155
+ newClasses.push(scopeId2);
1109
1156
  oldClasses.forEach((c) => {
1110
- if (c.startsWith(elm["s-si"])) newClasses.push(c);
1157
+ if (c.startsWith(scopeId2)) newClasses.push(c);
1111
1158
  });
1112
- newClasses = [...new Set(newClasses)];
1159
+ newClasses = [...new Set(newClasses)].filter((c) => c);
1113
1160
  classList.add(...newClasses);
1114
1161
  } else {
1115
1162
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
@@ -1443,6 +1490,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1443
1490
  !isInitialRender && BUILD.updatable && oldChildren !== null
1444
1491
  ) {
1445
1492
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
1493
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
1494
+ newVNode2.$children$ = oldChildren;
1446
1495
  }
1447
1496
  if (isSvgMode && tag === "svg") {
1448
1497
  isSvgMode = false;
@@ -1505,6 +1554,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
1505
1554
  }
1506
1555
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1507
1556
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1557
+ if (isInitialLoad) {
1558
+ queueMicrotask(() => {
1559
+ dispatch();
1560
+ });
1561
+ return;
1562
+ }
1508
1563
  return writeTask(dispatch) ;
1509
1564
  };
1510
1565
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -1519,10 +1574,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1519
1574
  let maybePromise;
1520
1575
  if (isInitialLoad) {
1521
1576
  {
1522
- hostRef.$flags$ |= 256 /* isListenReady */;
1523
- if (hostRef.$queuedListeners$) {
1524
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1525
- hostRef.$queuedListeners$ = void 0;
1577
+ {
1578
+ hostRef.$flags$ |= 256 /* isListenReady */;
1579
+ if (hostRef.$queuedListeners$) {
1580
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1581
+ hostRef.$queuedListeners$ = void 0;
1582
+ }
1583
+ }
1584
+ if (hostRef.$fetchedCbList$.length) {
1585
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
1526
1586
  }
1527
1587
  }
1528
1588
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
@@ -1625,7 +1685,13 @@ var postUpdateComponent = (hostRef) => {
1625
1685
  }
1626
1686
  };
1627
1687
  var appDidLoad = (who) => {
1688
+ var _a;
1628
1689
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1690
+ {
1691
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
1692
+ plt.$orgLocNodes$.clear();
1693
+ }
1694
+ }
1629
1695
  };
1630
1696
  var safeCall = (instance, method, arg, elm) => {
1631
1697
  if (instance && instance[method]) {
@@ -1646,6 +1712,9 @@ var addHydratedFlag = (elm) => {
1646
1712
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1647
1713
  var setValue = (ref, propName, newVal, cmpMeta) => {
1648
1714
  const hostRef = getHostRef(ref);
1715
+ if (!hostRef) {
1716
+ return;
1717
+ }
1649
1718
  if (!hostRef) {
1650
1719
  throw new Error(
1651
1720
  `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/stenciljs/core/issues/5457).`
@@ -1654,7 +1723,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1654
1723
  const oldVal = hostRef.$instanceValues$.get(propName);
1655
1724
  const flags = hostRef.$flags$;
1656
1725
  const instance = hostRef.$lazyInstance$ ;
1657
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1726
+ newVal = parsePropertyValue(
1727
+ newVal,
1728
+ cmpMeta.$members$[propName][0]);
1658
1729
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1659
1730
  const didValueChange = newVal !== oldVal && !areBothNaN;
1660
1731
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -1676,7 +1747,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1676
1747
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1677
1748
  var _a, _b;
1678
1749
  const prototype = Cstr.prototype;
1679
- if (cmpMeta.$members$ || BUILD.watchCallback) {
1750
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1680
1751
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1681
1752
  members.map(([memberName, [memberFlags]]) => {
1682
1753
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1703,14 +1774,19 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1703
1774
  Object.defineProperty(prototype, memberName, {
1704
1775
  set(newValue) {
1705
1776
  const ref = getHostRef(this);
1777
+ if (!ref) {
1778
+ return;
1779
+ }
1706
1780
  if (origSetter) {
1707
1781
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1708
1782
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1709
1783
  newValue = ref.$instanceValues$.get(memberName);
1710
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1711
- ref.$instanceValues$.set(memberName, currentValue);
1712
1784
  }
1713
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1785
+ origSetter.apply(this, [
1786
+ parsePropertyValue(
1787
+ newValue,
1788
+ memberFlags)
1789
+ ]);
1714
1790
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1715
1791
  setValue(this, memberName, newValue, cmpMeta);
1716
1792
  return;
@@ -1719,7 +1795,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1719
1795
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1720
1796
  setValue(this, memberName, newValue, cmpMeta);
1721
1797
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1722
- ref.$onReadyPromise$.then(() => {
1798
+ ref.$fetchedCbList$.push(() => {
1723
1799
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1724
1800
  ref.$lazyInstance$[memberName] = newValue;
1725
1801
  }
@@ -1732,13 +1808,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1732
1808
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
1733
1809
  ref.$instanceValues$.set(memberName, currentValue);
1734
1810
  }
1735
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1811
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1812
+ newValue,
1813
+ memberFlags);
1736
1814
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1737
1815
  };
1738
1816
  if (ref.$lazyInstance$) {
1739
1817
  setterSetVal();
1740
1818
  } else {
1741
- ref.$onReadyPromise$.then(() => setterSetVal());
1819
+ ref.$fetchedCbList$.push(() => {
1820
+ setterSetVal();
1821
+ });
1742
1822
  }
1743
1823
  }
1744
1824
  }
@@ -1751,16 +1831,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1751
1831
  plt.jmp(() => {
1752
1832
  var _a2;
1753
1833
  const propName = attrNameToPropName.get(attrName);
1834
+ const hostRef = getHostRef(this);
1754
1835
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1755
1836
  newValue = this[propName];
1756
1837
  delete this[propName];
1757
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1838
+ }
1839
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1758
1840
  this[propName] == newValue) {
1759
1841
  return;
1760
1842
  } else if (propName == null) {
1761
- const hostRef = getHostRef(this);
1762
1843
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1763
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1844
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1764
1845
  const instance = hostRef.$lazyInstance$ ;
1765
1846
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1766
1847
  entry == null ? void 0 : entry.forEach((callbackName) => {
@@ -1771,9 +1852,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1771
1852
  }
1772
1853
  return;
1773
1854
  }
1855
+ const propFlags = members.find(([m]) => m === propName);
1856
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1857
+ newValue = newValue === null || newValue === "false" ? false : true;
1858
+ }
1774
1859
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1775
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1776
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1860
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1777
1861
  this[propName] = newValue;
1778
1862
  }
1779
1863
  });
@@ -1781,7 +1865,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1781
1865
  Cstr.observedAttributes = Array.from(
1782
1866
  /* @__PURE__ */ new Set([
1783
1867
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1784
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1868
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1785
1869
  const attrName = m[1] || propName;
1786
1870
  attrNameToPropName.set(attrName, propName);
1787
1871
  return attrName;
@@ -1865,6 +1949,9 @@ var fireConnectedCallback = (instance, elm) => {
1865
1949
  var connectedCallback = (elm) => {
1866
1950
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1867
1951
  const hostRef = getHostRef(elm);
1952
+ if (!hostRef) {
1953
+ return;
1954
+ }
1868
1955
  const cmpMeta = hostRef.$cmpMeta$;
1869
1956
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1870
1957
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1891,7 +1978,7 @@ var connectedCallback = (elm) => {
1891
1978
  }
1892
1979
  if (cmpMeta.$members$) {
1893
1980
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1894
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1981
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1895
1982
  const value = elm[memberName];
1896
1983
  delete elm[memberName];
1897
1984
  elm[memberName] = value;
@@ -1921,7 +2008,7 @@ var disconnectedCallback = async (elm) => {
1921
2008
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1922
2009
  const hostRef = getHostRef(elm);
1923
2010
  {
1924
- if (hostRef.$rmListeners$) {
2011
+ if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
1925
2012
  hostRef.$rmListeners$.map((rmListener) => rmListener());
1926
2013
  hostRef.$rmListeners$ = void 0;
1927
2014
  }
@@ -1994,9 +2081,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1994
2081
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1995
2082
  {
1996
2083
  if (!self.shadowRoot) {
1997
- {
1998
- self.attachShadow({ mode: "open" });
1999
- }
2084
+ createShadowRoot.call(self, cmpMeta);
2000
2085
  } else {
2001
2086
  if (self.shadowRoot.mode !== "open") {
2002
2087
  throw new Error(
@@ -2009,6 +2094,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2009
2094
  }
2010
2095
  connectedCallback() {
2011
2096
  const hostRef = getHostRef(this);
2097
+ if (!hostRef) {
2098
+ return;
2099
+ }
2012
2100
  if (!this.hasRegisteredEventListeners) {
2013
2101
  this.hasRegisteredEventListeners = true;
2014
2102
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
@@ -2028,6 +2116,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2028
2116
  plt.raf(() => {
2029
2117
  var _a3;
2030
2118
  const hostRef = getHostRef(this);
2119
+ if (!hostRef) {
2120
+ return;
2121
+ }
2031
2122
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2032
2123
  if (i2 > -1) {
2033
2124
  deferredConnectedCallbacks.splice(i2, 1);
@@ -2038,7 +2129,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2038
2129
  });
2039
2130
  }
2040
2131
  componentOnReady() {
2041
- return getHostRef(this).$onReadyPromise$;
2132
+ var _a3;
2133
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2042
2134
  }
2043
2135
  };
2044
2136
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -2123,11 +2215,12 @@ exports.bootstrapLazy = bootstrapLazy;
2123
2215
  exports.createEvent = createEvent;
2124
2216
  exports.getAssetPath = getAssetPath;
2125
2217
  exports.getElement = getElement;
2218
+ exports.globalScripts = globalScripts;
2126
2219
  exports.h = h;
2127
2220
  exports.promiseResolve = promiseResolve;
2128
2221
  exports.registerInstance = registerInstance;
2129
2222
  exports.setAssetPath = setAssetPath;
2130
2223
  exports.setNonce = setNonce;
2131
- //# sourceMappingURL=index-C0A2bnrZ.js.map
2224
+ //# sourceMappingURL=index-4ixBJUwu.js.map
2132
2225
 
2133
- //# sourceMappingURL=index-C0A2bnrZ.js.map
2226
+ //# sourceMappingURL=index-4ixBJUwu.js.map