@alleninstitute/cortex-ui 0.1.0 → 0.3.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 (76) hide show
  1. package/README.md +101 -79
  2. package/dist/cjs/cortex-ui.cjs.js +3 -3
  3. package/dist/cjs/cui-divider.cjs.entry.js +49 -0
  4. package/dist/cjs/cui-icon.cjs.entry.js +100 -0
  5. package/dist/cjs/cui-progress.cjs.entry.js +46 -0
  6. package/dist/cjs/cui-tag.cjs.entry.js +4 -4
  7. package/dist/cjs/index-RBrlguTk.js +1565 -0
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/collection/collection-manifest.json +4 -1
  10. package/dist/collection/components/cui-divider/cui-divider.css +100 -0
  11. package/dist/collection/components/cui-divider/cui-divider.js +150 -0
  12. package/dist/collection/components/cui-icon/cui-icon.css +134 -0
  13. package/dist/collection/components/cui-icon/cui-icon.js +239 -0
  14. package/dist/collection/components/cui-progress/cui-progress.css +102 -0
  15. package/dist/collection/components/cui-progress/cui-progress.js +187 -0
  16. package/dist/collection/components/cui-tag/cui-tag.css +19 -19
  17. package/dist/collection/components/cui-tag/cui-tag.js +5 -5
  18. package/dist/components/cui-divider.d.ts +11 -0
  19. package/dist/components/cui-divider.js +1 -0
  20. package/dist/components/cui-icon.d.ts +11 -0
  21. package/dist/components/cui-icon.js +1 -0
  22. package/dist/components/cui-progress.d.ts +11 -0
  23. package/dist/components/cui-progress.js +1 -0
  24. package/dist/components/cui-tag.js +1 -1
  25. package/dist/components/index.js +1 -1
  26. package/dist/cortex-ui/cortex-ui.css +1 -1
  27. package/dist/cortex-ui/cortex-ui.esm.js +1 -1
  28. package/dist/cortex-ui/p-0e66a721.entry.js +1 -0
  29. package/dist/cortex-ui/p-1af73c5a.entry.js +1 -0
  30. package/dist/cortex-ui/p-2d2004f0.entry.js +1 -0
  31. package/dist/cortex-ui/p-8925abbe.entry.js +1 -0
  32. package/dist/cortex-ui/p-BZmInLSX.js +3 -0
  33. package/dist/esm/cortex-ui.js +4 -4
  34. package/dist/esm/cui-divider.entry.js +47 -0
  35. package/dist/esm/cui-icon.entry.js +98 -0
  36. package/dist/esm/cui-progress.entry.js +44 -0
  37. package/dist/esm/cui-tag.entry.js +4 -4
  38. package/dist/esm/index-BZmInLSX.js +1557 -0
  39. package/dist/esm/loader.js +3 -3
  40. package/dist/fonts/AllenInstituteHeadline-Bold.woff2 +0 -0
  41. package/dist/fonts/AllenInstituteHeadline-BoldItalic.woff2 +0 -0
  42. package/dist/fonts/AllenInstituteHeadline-Italic.woff2 +0 -0
  43. package/dist/fonts/AllenInstituteHeadline-Light.woff2 +0 -0
  44. package/dist/fonts/AllenInstituteHeadline-LightItalic.woff2 +0 -0
  45. package/dist/fonts/AllenInstituteHeadline-Medium.woff2 +0 -0
  46. package/dist/fonts/AllenInstituteHeadline-MediumItalic.woff2 +0 -0
  47. package/dist/fonts/AllenInstituteHeadline-Regular.woff2 +0 -0
  48. package/dist/fonts/AllenInstituteHeadline-Semibold.woff2 +0 -0
  49. package/dist/fonts/AllenInstituteHeadline-SemiboldItalic.woff2 +0 -0
  50. package/dist/fonts/AllenInstituteText-Bold.woff2 +0 -0
  51. package/dist/fonts/AllenInstituteText-BoldItalic.woff2 +0 -0
  52. package/dist/fonts/AllenInstituteText-Italic.woff2 +0 -0
  53. package/dist/fonts/AllenInstituteText-Light.woff2 +0 -0
  54. package/dist/fonts/AllenInstituteText-LightItalic.woff2 +0 -0
  55. package/dist/fonts/AllenInstituteText-Medium.woff2 +0 -0
  56. package/dist/fonts/AllenInstituteText-MediumItalic.woff2 +0 -0
  57. package/dist/fonts/AllenInstituteText-Regular.woff2 +0 -0
  58. package/dist/fonts/AllenInstituteText-Semibold.woff2 +0 -0
  59. package/dist/fonts/AllenInstituteText-SemiboldItalic.woff2 +0 -0
  60. package/dist/fonts.css +186 -0
  61. package/dist/types/components/cui-divider/cui-divider.d.ts +38 -0
  62. package/dist/types/components/cui-icon/cui-icon.d.ts +76 -0
  63. package/dist/types/components/cui-progress/cui-progress.d.ts +40 -0
  64. package/dist/types/components/cui-tag/cui-tag.d.ts +1 -1
  65. package/dist/types/components.d.ts +343 -5
  66. package/dist/types/stencil-public-runtime.d.ts +11 -0
  67. package/package.json +31 -22
  68. package/dist/cjs/index-Rxdz0vyq.js +0 -1337
  69. package/dist/collection/stories/assets/accessibility.svg +0 -1
  70. package/dist/collection/stories/assets/discord.svg +0 -1
  71. package/dist/collection/stories/assets/github.svg +0 -1
  72. package/dist/collection/stories/assets/tutorials.svg +0 -1
  73. package/dist/collection/stories/assets/youtube.svg +0 -1
  74. package/dist/cortex-ui/p-054ebfa8.entry.js +0 -1
  75. package/dist/cortex-ui/p-C70YK15K.js +0 -2
  76. package/dist/esm/index-C70YK15K.js +0 -1330
@@ -0,0 +1,1565 @@
1
+ 'use strict';
2
+
3
+ const NAMESPACE = 'cortex-ui';
4
+ const BUILD = /* cortex-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, prop: true, propChangeCallback: true, updatable: true};
5
+
6
+ const globalScripts = () => {};
7
+ const globalStyles = ":root{--cui-color-brand-maroon-25:#fff5f9;--cui-color-brand-maroon-50:#feebf2;--cui-color-brand-maroon-75:#fcdfe9;--cui-color-brand-maroon-100:#fbd6e3;--cui-color-brand-maroon-150:#f2c5d5;--cui-color-brand-maroon-200:#efb8cc;--cui-color-brand-maroon-250:#eaa3be;--cui-color-brand-maroon-300:#e38cac;--cui-color-brand-maroon-400:#dc7098;--cui-color-brand-maroon-500:#dc427a;--cui-color-brand-maroon-600:#cd2563;--cui-color-brand-maroon-700:#b50d4b;--cui-color-brand-maroon-750:#9b0b40;--cui-color-brand-maroon-800:#770831;--cui-color-brand-maroon-850:#5f0727;--cui-color-brand-maroon-900:#4c051f;--cui-color-brand-maroon-925:#3e0419;--cui-color-brand-maroon-950:#2b0312;--cui-color-brand-maroon-975:#18010a;--cui-color-brand-maroon-official:#cd0f55;--cui-color-brand-orange-25:#fff9f5;--cui-color-brand-orange-50:#ffeee0;--cui-color-brand-orange-75:#ffe2cc;--cui-color-brand-orange-100:#ffd9bd;--cui-color-brand-orange-150:#ffcba3;--cui-color-brand-orange-200:#ffbf8f;--cui-color-brand-orange-250:#ffae70;--cui-color-brand-orange-300:#ff913d;--cui-color-brand-orange-400:#ff7d1a;--cui-color-brand-orange-500:#d65c00;--cui-color-brand-orange-600:#a84900;--cui-color-brand-orange-700:#803700;--cui-color-brand-orange-750:#6b2e00;--cui-color-brand-orange-800:#522300;--cui-color-brand-orange-850:#421d00;--cui-color-brand-orange-900:#331600;--cui-color-brand-orange-925:#2e1400;--cui-color-brand-orange-950:#1f0d00;--cui-color-brand-orange-975:#140a00;--cui-color-brand-orange-official:#ff6e00;--cui-color-brand-ochre-25:#fffcf5;--cui-color-brand-ochre-50:#fff4db;--cui-color-brand-ochre-75:#ffe5ad;--cui-color-brand-ochre-100:#ffdf99;--cui-color-brand-ochre-150:#ffd270;--cui-color-brand-ochre-200:#ffc852;--cui-color-brand-ochre-250:#ffbe33;--cui-color-brand-ochre-300:#f5a700;--cui-color-brand-ochre-400:#d69200;--cui-color-brand-ochre-500:#ad7600;--cui-color-brand-ochre-600:#855a00;--cui-color-brand-ochre-700:#664600;--cui-color-brand-ochre-750:#573b00;--cui-color-brand-ochre-800:#422d00;--cui-color-brand-ochre-850:#382600;--cui-color-brand-ochre-900:#291c00;--cui-color-brand-ochre-925:#241800;--cui-color-brand-ochre-950:#1a1100;--cui-color-brand-ochre-975:#140e00;--cui-color-brand-ochre-official:#dc9600;--cui-color-brand-yellow-25:#fffef5;--cui-color-brand-yellow-50:#fffacc;--cui-color-brand-yellow-75:#fff380;--cui-color-brand-yellow-100:#ffee47;--cui-color-brand-yellow-150:#ffe800;--cui-color-brand-yellow-200:#f5df00;--cui-color-brand-yellow-250:#e5d100;--cui-color-brand-yellow-300:#d1be00;--cui-color-brand-yellow-400:#b8a700;--cui-color-brand-yellow-500:#948600;--cui-color-brand-yellow-600:#756b00;--cui-color-brand-yellow-700:#574f00;--cui-color-brand-yellow-750:#474100;--cui-color-brand-yellow-800:#383300;--cui-color-brand-yellow-850:#2e2a00;--cui-color-brand-yellow-900:#242000;--cui-color-brand-yellow-925:#1f1c00;--cui-color-brand-yellow-950:#1a1700;--cui-color-brand-yellow-975:#141300;--cui-color-brand-yellow-official:#ffeb23;--cui-color-brand-green-25:#fcffe6;--cui-color-brand-green-50:#f5feb3;--cui-color-brand-green-75:#ecfd68;--cui-color-brand-green-100:#e5fc36;--cui-color-brand-green-150:#dffc03;--cui-color-brand-green-200:#d6f203;--cui-color-brand-green-250:#c9e303;--cui-color-brand-green-300:#b7ce03;--cui-color-brand-green-400:#a1b502;--cui-color-brand-green-500:#7d8d02;--cui-color-brand-green-600:#626f01;--cui-color-brand-green-700:#4c5601;--cui-color-brand-green-750:#3e4701;--cui-color-brand-green-800:#313701;--cui-color-brand-green-850:#282d01;--cui-color-brand-green-900:#1f2300;--cui-color-brand-green-925:#1b1e00;--cui-color-brand-green-950:#161900;--cui-color-brand-green-975:#121400;--cui-color-brand-green-official:#d1ec03;--cui-color-brand-teal-25:#f6fefd;--cui-color-brand-teal-50:#e3fcfa;--cui-color-brand-teal-75:#cdf9f6;--cui-color-brand-teal-100:#b8eeeb;--cui-color-brand-teal-150:#a9eae6;--cui-color-brand-teal-200:#98e6e2;--cui-color-brand-teal-250:#7de0da;--cui-color-brand-teal-300:#5ed9d2;--cui-color-brand-teal-400:#39d0c7;--cui-color-brand-teal-500:#02b1a7;--cui-color-brand-teal-600:#01867e;--cui-color-brand-teal-700:#016a64;--cui-color-brand-teal-750:#015752;--cui-color-brand-teal-800:#01423e;--cui-color-brand-teal-850:#013734;--cui-color-brand-teal-900:#042826;--cui-color-brand-teal-925:#042523;--cui-color-brand-teal-950:#011918;--cui-color-brand-teal-975:#011312;--cui-color-brand-teal-official:#00a59b;--cui-color-brand-blue-25:#fafaff;--cui-color-brand-blue-50:#f0f0ff;--cui-color-brand-blue-75:#e6e6fe;--cui-color-brand-blue-100:#ddddfe;--cui-color-brand-blue-150:#d2d2fe;--cui-color-brand-blue-200:#c8c8fe;--cui-color-brand-blue-250:#bcbcfe;--cui-color-brand-blue-300:#ababfd;--cui-color-brand-blue-400:#9898fc;--cui-color-brand-blue-500:#7070ff;--cui-color-brand-blue-600:#4c4cd9;--cui-color-brand-blue-700:#3b3bc4;--cui-color-brand-blue-750:#30309f;--cui-color-brand-blue-800:#26267d;--cui-color-brand-blue-850:#1f1f66;--cui-color-brand-blue-900:#16164a;--cui-color-brand-blue-925:#141443;--cui-color-brand-blue-950:#0e0e2f;--cui-color-brand-blue-975:#070718;--cui-color-brand-blue-official:#6464ff;--cui-color-brand-violet-25:#fff5fe;--cui-color-brand-violet-50:#f6f1fe;--cui-color-brand-violet-75:#ede4fc;--cui-color-brand-violet-100:#e5d7fa;--cui-color-brand-violet-150:#decff7;--cui-color-brand-violet-200:#d6c2f4;--cui-color-brand-violet-250:#ccb4f2;--cui-color-brand-violet-300:#c1a2f1;--cui-color-brand-violet-400:#b28cee;--cui-color-brand-violet-500:#9766e6;--cui-color-brand-violet-600:#753fca;--cui-color-brand-violet-700:#622bbb;--cui-color-brand-violet-750:#4e2294;--cui-color-brand-violet-800:#3f1c78;--cui-color-brand-violet-850:#341764;--cui-color-brand-violet-900:#27114b;--cui-color-brand-violet-925:#210e3e;--cui-color-brand-violet-950:#180a2e;--cui-color-brand-violet-975:#0f071d;--cui-color-brand-violet-official:#8246e1;--cui-color-brand-rose-25:#fff5fe;--cui-color-brand-rose-50:#ffebfc;--cui-color-brand-rose-75:#ffdbfb;--cui-color-brand-rose-100:#ffd1f9;--cui-color-brand-rose-150:#ffc2f7;--cui-color-brand-rose-200:#ffadf5;--cui-color-brand-rose-250:#ff99f2;--cui-color-brand-rose-300:#ff80ef;--cui-color-brand-rose-400:#ff61eb;--cui-color-brand-rose-500:#ff2ee5;--cui-color-brand-rose-600:#eb00cd;--cui-color-brand-rose-700:#bd00a5;--cui-color-brand-rose-750:#940081;--cui-color-brand-rose-800:#7a006b;--cui-color-brand-rose-850:#660059;--cui-color-brand-rose-900:#4d0043;--cui-color-brand-rose-925:#3d0036;--cui-color-brand-rose-950:#2e0028;--cui-color-brand-rose-975:#1a0016;--cui-color-brand-rose-official:#ff00df;--cui-color-gray-0:#ffffff;--cui-color-gray-25:#f8f8f8;--cui-color-gray-50:#f1f1f1;--cui-color-gray-75:#e9e9e9;--cui-color-gray-100:#e2e2e2;--cui-color-gray-150:#d4d4d4;--cui-color-gray-200:#c6c6c6;--cui-color-gray-250:#b9b9b9;--cui-color-gray-300:#ababab;--cui-color-gray-400:#919191;--cui-color-gray-500:#777777;--cui-color-gray-600:#5e5e5e;--cui-color-gray-700:#474747;--cui-color-gray-750:#3b3b3b;--cui-color-gray-800:#303030;--cui-color-gray-850:#262626;--cui-color-gray-900:#1b1b1b;--cui-color-gray-925:#171717;--cui-color-gray-950:#111111;--cui-color-gray-975:#090909;--cui-color-gray-1000:#000000;--cui-color-red-25:#fef6f6;--cui-color-red-50:#fcedee;--cui-color-red-75:#fae0e1;--cui-color-red-100:#f8d3d4;--cui-color-red-150:#f7cacb;--cui-color-red-200:#f4b8b9;--cui-color-red-250:#f1a7a8;--cui-color-red-300:#ee9192;--cui-color-red-400:#ea7678;--cui-color-red-500:#e34f51;--cui-color-red-600:#dc2326;--cui-color-red-700:#b91d20;--cui-color-red-750:#8d1618;--cui-color-red-800:#731214;--cui-color-red-850:#610f11;--cui-color-red-900:#470b0c;--cui-color-red-925:#39090a;--cui-color-red-950:#2c0708;--cui-color-red-975:#160304;--cui-color-green-25:#f6fefa;--cui-color-green-50:#e5fbef;--cui-color-green-75:#d3f8e4;--cui-color-green-100:#bdf5d6;--cui-color-green-150:#a2f0c6;--cui-color-green-200:#88ecb5;--cui-color-green-250:#6de8a5;--cui-color-green-300:#4fe392;--cui-color-green-400:#23dc76;--cui-color-green-500:#1cb05f;--cui-color-green-600:#158447;--cui-color-green-700:#116e3b;--cui-color-green-750:#0e582f;--cui-color-green-800:#0a4223;--cui-color-green-850:#09391f;--cui-color-green-900:#072c18;--cui-color-green-925:#062313;--cui-color-green-950:#041a0e;--cui-color-green-975:#020d07;--cui-color-blue-25:#f6fafe;--cui-color-blue-50:#edf5fc;--cui-color-blue-75:#dcebf9;--cui-color-blue-100:#cee4f7;--cui-color-blue-150:#b8d7f4;--cui-color-blue-200:#9ec8f0;--cui-color-blue-250:#8cbeed;--cui-color-blue-300:#76b2ea;--cui-color-blue-400:#57a0e5;--cui-color-blue-500:#348ddf;--cui-color-blue-600:#1c68b0;--cui-color-blue-700:#175692;--cui-color-blue-750:#124473;--cui-color-blue-800:#0f375d;--cui-color-blue-850:#0c2c4b;--cui-color-blue-900:#092239;--cui-color-blue-925:#081d31;--cui-color-blue-950:#061523;--cui-color-blue-975:#030d16;--cui-shadow-color-50:rgba(0, 0, 0, 0.05);--cui-shadow-color-100:rgba(0, 0, 0, 0.1);--cui-shadow-color-150:rgba(0, 0, 0, 0.15);--cui-shadow-color-800:rgba(0, 0, 0, 0.8);--cui-shadow-color-900:rgba(0, 0, 0, 0.9);--cui-shadow-color-1000:rgba(0, 0, 0, 1);--cui-base-bg-main:var(--cui-color-gray-0);--cui-base-bg-level-1:var(--cui-base-bg-main);--cui-base-bg-level-2:var(--cui-color-gray-25);--cui-base-bg-level-3:var(--cui-color-gray-50);--cui-base-divider-primary:var(--cui-color-gray-150);--cui-base-divider-secondary:var(--cui-color-gray-100);--cui-base-text-primary:var(--cui-color-gray-850);--cui-base-text-secondary:var(--cui-color-gray-750);--cui-base-border-primary:var(--cui-color-gray-500);--cui-base-border-secondary:var(--cui-color-gray-400);--cui-accent-surface-primary-default:var(--cui-color-brand-blue-600);--cui-accent-surface-primary-hover:var(--cui-color-brand-blue-700);--cui-accent-surface-primary-active:var(--cui-color-brand-blue-800);--cui-accent-surface-primary-selected:var(--cui-color-brand-blue-750);--cui-accent-surface-primary-disabled:var(--cui-color-brand-blue-75);--cui-accent-surface-secondary-default:var(--cui-color-brand-blue-100);--cui-accent-surface-secondary-hover:var(--cui-color-brand-blue-150);--cui-accent-surface-secondary-active:var(--cui-color-brand-blue-250);--cui-accent-surface-secondary-selected:var(--cui-color-brand-blue-200);--cui-accent-surface-secondary-disabled:var(--cui-color-brand-blue-50);--cui-accent-text-primary-default:var(--cui-color-gray-0);--cui-accent-text-primary-hover:var(--cui-color-gray-0);--cui-accent-text-primary-active:var(--cui-color-gray-0);--cui-accent-text-primary-selected:var(--cui-color-gray-0);--cui-accent-text-primary-disabled:var(--cui-color-brand-blue-500);--cui-accent-text-secondary-default:var(--cui-color-brand-blue-800);--cui-accent-text-secondary-hover:var(--cui-color-brand-blue-850);--cui-accent-text-secondary-active:var(--cui-color-brand-blue-900);--cui-accent-text-secondary-selected:var(--cui-color-brand-blue-900);--cui-accent-text-secondary-disabled:var(--cui-color-brand-blue-500);--cui-accent-border-primary-default:var(--cui-color-brand-blue-700);--cui-accent-border-primary-hover:var(--cui-color-brand-blue-750);--cui-accent-border-primary-active:var(--cui-accent-surface-primary-active);--cui-accent-border-primary-selected:var(--cui-accent-surface-primary-selected);--cui-accent-border-primary-disabled:var(--cui-accent-surface-primary-disabled);--cui-accent-border-secondary-default:var(--cui-color-brand-blue-600);--cui-accent-border-secondary-hover:var(--cui-color-brand-blue-700);--cui-accent-border-secondary-active:var(--cui-accent-surface-secondary-active);--cui-accent-border-secondary-selected:var(--cui-accent-surface-secondary-selected);--cui-accent-border-secondary-disabled:var(--cui-accent-surface-secondary-disabled);--cui-accent-divider-primary-default:var(--cui-color-brand-blue-300);--cui-accent-divider-primary-hover:var(--cui-color-brand-blue-250);--cui-accent-divider-primary-active:var(--cui-color-brand-blue-200);--cui-accent-divider-primary-selected:var(--cui-color-brand-blue-200);--cui-accent-divider-primary-disabled:var(--cui-color-brand-blue-700);--cui-accent-divider-secondary-default:var(--cui-color-brand-blue-400);--cui-accent-divider-secondary-hover:var(--cui-color-brand-blue-500);--cui-accent-divider-secondary-active:var(--cui-color-brand-blue-600);--cui-accent-divider-secondary-selected:var(--cui-color-brand-blue-500);--cui-accent-divider-secondary-disabled:var(--cui-color-brand-blue-150);--cui-positive-surface-primary-default:var(--cui-color-brand-teal-700);--cui-positive-surface-primary-hover:var(--cui-color-brand-teal-750);--cui-positive-surface-primary-active:var(--cui-color-brand-teal-850);--cui-positive-surface-primary-selected:var(--cui-color-brand-teal-800);--cui-positive-surface-primary-disabled:var(--cui-color-brand-teal-75);--cui-positive-surface-secondary-default:var(--cui-color-brand-teal-100);--cui-positive-surface-secondary-hover:var(--cui-color-brand-teal-150);--cui-positive-surface-secondary-active:var(--cui-color-brand-teal-250);--cui-positive-surface-secondary-selected:var(--cui-color-brand-teal-200);--cui-positive-surface-secondary-disabled:var(--cui-color-brand-teal-50);--cui-positive-text-primary-default:var(--cui-color-gray-0);--cui-positive-text-primary-hover:var(--cui-color-gray-0);--cui-positive-text-primary-active:var(--cui-color-gray-0);--cui-positive-text-primary-selected:var(--cui-color-gray-0);--cui-positive-text-primary-disabled:var(--cui-color-brand-teal-500);--cui-positive-text-secondary-default:var(--cui-color-brand-teal-800);--cui-positive-text-secondary-hover:var(--cui-color-brand-teal-850);--cui-positive-text-secondary-active:var(--cui-color-brand-teal-900);--cui-positive-text-secondary-selected:var(--cui-color-brand-teal-900);--cui-positive-text-secondary-disabled:var(--cui-color-brand-teal-500);--cui-positive-border-primary-default:var(--cui-color-brand-teal-700);--cui-positive-border-primary-hover:var(--cui-color-brand-teal-750);--cui-positive-border-primary-active:var(--cui-positive-surface-primary-active);--cui-positive-border-primary-selected:var(--cui-positive-surface-primary-selected);--cui-positive-border-primary-disabled:var(--cui-positive-surface-primary-disabled);--cui-positive-border-secondary-default:var(--cui-color-brand-teal-600);--cui-positive-border-secondary-hover:var(--cui-color-brand-teal-700);--cui-positive-border-secondary-active:var(--cui-positive-surface-secondary-active);--cui-positive-border-secondary-selected:var(--cui-positive-surface-secondary-selected);--cui-positive-border-secondary-disabled:var(--cui-positive-surface-secondary-disabled);--cui-positive-divider-primary-default:var(--cui-color-brand-teal-300);--cui-positive-divider-primary-hover:var(--cui-color-brand-teal-250);--cui-positive-divider-primary-active:var(--cui-color-brand-teal-200);--cui-positive-divider-primary-selected:var(--cui-color-brand-teal-200);--cui-positive-divider-primary-disabled:var(--cui-color-brand-teal-700);--cui-positive-divider-secondary-default:var(--cui-color-brand-teal-400);--cui-positive-divider-secondary-hover:var(--cui-color-brand-teal-500);--cui-positive-divider-secondary-active:var(--cui-color-brand-teal-600);--cui-positive-divider-secondary-selected:var(--cui-color-brand-teal-500);--cui-positive-divider-secondary-disabled:var(--cui-color-brand-teal-150);--cui-negative-surface-primary-default:var(--cui-color-brand-maroon-official);--cui-negative-surface-primary-hover:var(--cui-color-brand-maroon-700);--cui-negative-surface-primary-active:var(--cui-color-brand-maroon-800);--cui-negative-surface-primary-selected:var(--cui-color-brand-maroon-750);--cui-negative-surface-primary-disabled:var(--cui-color-brand-maroon-75);--cui-negative-surface-secondary-default:var(--cui-color-brand-maroon-100);--cui-negative-surface-secondary-hover:var(--cui-color-brand-maroon-150);--cui-negative-surface-secondary-active:var(--cui-color-brand-maroon-250);--cui-negative-surface-secondary-selected:var(--cui-color-brand-maroon-200);--cui-negative-surface-secondary-disabled:var(--cui-color-brand-maroon-50);--cui-negative-text-primary-default:var(--cui-color-gray-0);--cui-negative-text-primary-hover:var(--cui-color-gray-0);--cui-negative-text-primary-active:var(--cui-color-gray-0);--cui-negative-text-primary-selected:var(--cui-color-gray-0);--cui-negative-text-primary-disabled:var(--cui-color-brand-maroon-500);--cui-negative-text-secondary-default:var(--cui-color-brand-maroon-800);--cui-negative-text-secondary-hover:var(--cui-color-brand-maroon-850);--cui-negative-text-secondary-active:var(--cui-color-brand-maroon-900);--cui-negative-text-secondary-selected:var(--cui-color-brand-maroon-900);--cui-negative-text-secondary-disabled:var(--cui-color-brand-maroon-500);--cui-negative-border-primary-default:var(--cui-color-brand-maroon-700);--cui-negative-border-primary-hover:var(--cui-color-brand-maroon-750);--cui-negative-border-primary-active:var(--cui-negative-surface-primary-active);--cui-negative-border-primary-selected:var(--cui-negative-surface-primary-selected);--cui-negative-border-primary-disabled:var(--cui-negative-surface-primary-disabled);--cui-negative-border-secondary-default:var(--cui-color-brand-maroon-600);--cui-negative-border-secondary-hover:var(--cui-color-brand-maroon-700);--cui-negative-border-secondary-active:var(--cui-negative-surface-secondary-active);--cui-negative-border-secondary-selected:var(--cui-negative-surface-secondary-selected);--cui-negative-border-secondary-disabled:var(--cui-negative-surface-secondary-disabled);--cui-negative-divider-primary-default:var(--cui-color-brand-maroon-300);--cui-negative-divider-primary-hover:var(--cui-color-brand-maroon-250);--cui-negative-divider-primary-active:var(--cui-color-brand-maroon-200);--cui-negative-divider-primary-selected:var(--cui-color-brand-maroon-200);--cui-negative-divider-primary-disabled:var(--cui-color-brand-maroon-700);--cui-negative-divider-secondary-default:var(--cui-color-brand-maroon-400);--cui-negative-divider-secondary-hover:var(--cui-color-brand-maroon-500);--cui-negative-divider-secondary-active:var(--cui-color-brand-maroon-600);--cui-negative-divider-secondary-selected:var(--cui-color-brand-maroon-500);--cui-negative-divider-secondary-disabled:var(--cui-color-brand-maroon-150);--cui-warning-surface-primary-default:var(--cui-color-brand-ochre-official);--cui-warning-surface-primary-hover:var(--cui-color-brand-ochre-300);--cui-warning-surface-primary-active:var(--cui-color-brand-ochre-200);--cui-warning-surface-primary-selected:var(--cui-color-brand-ochre-250);--cui-warning-surface-primary-disabled:var(--cui-color-brand-ochre-75);--cui-warning-surface-secondary-default:var(--cui-color-brand-ochre-100);--cui-warning-surface-secondary-hover:var(--cui-color-brand-ochre-150);--cui-warning-surface-secondary-active:var(--cui-color-brand-ochre-250);--cui-warning-surface-secondary-selected:var(--cui-color-brand-ochre-200);--cui-warning-surface-secondary-disabled:var(--cui-color-brand-ochre-50);--cui-warning-text-primary-default:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-hover:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-active:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-selected:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-disabled:var(--cui-color-brand-ochre-500);--cui-warning-text-secondary-default:var(--cui-color-brand-ochre-800);--cui-warning-text-secondary-hover:var(--cui-color-brand-ochre-850);--cui-warning-text-secondary-active:var(--cui-color-brand-ochre-900);--cui-warning-text-secondary-selected:var(--cui-color-brand-ochre-900);--cui-warning-text-secondary-disabled:var(--cui-color-brand-ochre-500);--cui-warning-border-primary-default:var(--cui-color-brand-ochre-700);--cui-warning-border-primary-hover:var(--cui-color-brand-ochre-750);--cui-warning-border-primary-active:var(--cui-warning-surface-primary-active);--cui-warning-border-primary-selected:var(--cui-warning-surface-primary-selected);--cui-warning-border-primary-disabled:var(--cui-warning-surface-primary-disabled);--cui-warning-border-secondary-default:var(--cui-color-brand-ochre-600);--cui-warning-border-secondary-hover:var(--cui-color-brand-ochre-700);--cui-warning-border-secondary-active:var(--cui-warning-surface-secondary-active);--cui-warning-border-secondary-selected:var(--cui-warning-surface-secondary-selected);--cui-warning-border-secondary-disabled:var(--cui-warning-surface-secondary-disabled);--cui-warning-divider-primary-default:var(--cui-color-brand-ochre-700);--cui-warning-divider-primary-hover:var(--cui-color-brand-ochre-750);--cui-warning-divider-primary-active:var(--cui-color-brand-ochre-800);--cui-warning-divider-primary-selected:var(--cui-color-brand-ochre-750);--cui-warning-divider-primary-disabled:var(--cui-color-brand-ochre-300);--cui-warning-divider-secondary-default:var(--cui-color-brand-ochre-400);--cui-warning-divider-secondary-hover:var(--cui-color-brand-ochre-500);--cui-warning-divider-secondary-active:var(--cui-color-brand-ochre-600);--cui-warning-divider-secondary-selected:var(--cui-color-brand-ochre-500);--cui-warning-divider-secondary-disabled:var(--cui-color-brand-ochre-150);--cui-info-surface-primary-default:var(--cui-color-blue-600);--cui-info-surface-primary-hover:var(--cui-color-blue-700);--cui-info-surface-primary-active:var(--cui-color-blue-800);--cui-info-surface-primary-selected:var(--cui-color-blue-750);--cui-info-surface-primary-disabled:var(--cui-color-blue-75);--cui-info-surface-secondary-default:var(--cui-color-blue-100);--cui-info-surface-secondary-hover:var(--cui-color-blue-150);--cui-info-surface-secondary-active:var(--cui-color-blue-250);--cui-info-surface-secondary-selected:var(--cui-color-blue-200);--cui-info-surface-secondary-disabled:var(--cui-color-blue-50);--cui-info-text-primary-default:var(--cui-color-gray-0);--cui-info-text-primary-hover:var(--cui-color-gray-0);--cui-info-text-primary-active:var(--cui-color-gray-0);--cui-info-text-primary-selected:var(--cui-color-gray-0);--cui-info-text-primary-disabled:var(--cui-color-blue-500);--cui-info-text-secondary-default:var(--cui-color-blue-800);--cui-info-text-secondary-hover:var(--cui-color-blue-850);--cui-info-text-secondary-active:var(--cui-color-blue-900);--cui-info-text-secondary-selected:var(--cui-color-blue-900);--cui-info-text-secondary-disabled:var(--cui-color-blue-500);--cui-info-border-primary-default:var(--cui-color-blue-700);--cui-info-border-primary-hover:var(--cui-color-blue-750);--cui-info-border-primary-active:var(--cui-info-surface-primary-active);--cui-info-border-primary-selected:var(--cui-info-surface-primary-selected);--cui-info-border-primary-disabled:var(--cui-info-surface-primary-disabled);--cui-info-border-secondary-default:var(--cui-color-blue-600);--cui-info-border-secondary-hover:var(--cui-color-blue-700);--cui-info-border-secondary-active:var(--cui-info-surface-secondary-active);--cui-info-border-secondary-selected:var(--cui-info-surface-secondary-selected);--cui-info-border-secondary-disabled:var(--cui-info-surface-secondary-disabled);--cui-info-divider-primary-default:var(--cui-color-blue-300);--cui-info-divider-primary-hover:var(--cui-color-blue-250);--cui-info-divider-primary-active:var(--cui-color-blue-200);--cui-info-divider-primary-selected:var(--cui-color-blue-200);--cui-info-divider-primary-disabled:var(--cui-color-blue-700);--cui-info-divider-secondary-default:var(--cui-color-blue-400);--cui-info-divider-secondary-hover:var(--cui-color-blue-500);--cui-info-divider-secondary-active:var(--cui-color-blue-600);--cui-info-divider-secondary-selected:var(--cui-color-blue-500);--cui-info-divider-secondary-disabled:var(--cui-color-blue-150);--cui-neutral-surface-primary-default:var(--cui-color-gray-600);--cui-neutral-surface-primary-hover:var(--cui-color-gray-700);--cui-neutral-surface-primary-active:var(--cui-color-gray-800);--cui-neutral-surface-primary-selected:var(--cui-color-gray-750);--cui-neutral-surface-primary-disabled:var(--cui-color-gray-75);--cui-neutral-surface-secondary-default:var(--cui-color-gray-100);--cui-neutral-surface-secondary-hover:var(--cui-color-gray-150);--cui-neutral-surface-secondary-active:var(--cui-color-gray-250);--cui-neutral-surface-secondary-selected:var(--cui-color-gray-200);--cui-neutral-surface-secondary-disabled:var(--cui-color-gray-50);--cui-neutral-text-primary-default:var(--cui-color-gray-0);--cui-neutral-text-primary-hover:var(--cui-color-gray-0);--cui-neutral-text-primary-active:var(--cui-color-gray-0);--cui-neutral-text-primary-selected:var(--cui-color-gray-0);--cui-neutral-text-primary-disabled:var(--cui-color-gray-500);--cui-neutral-text-secondary-default:var(--cui-color-gray-800);--cui-neutral-text-secondary-hover:var(--cui-color-gray-850);--cui-neutral-text-secondary-active:var(--cui-color-gray-900);--cui-neutral-text-secondary-selected:var(--cui-color-gray-900);--cui-neutral-text-secondary-disabled:var(--cui-color-gray-500);--cui-neutral-border-primary-default:var(--cui-color-gray-700);--cui-neutral-border-primary-hover:var(--cui-color-gray-750);--cui-neutral-border-primary-active:var(--cui-neutral-surface-primary-active);--cui-neutral-border-primary-selected:var(--cui-neutral-surface-primary-selected);--cui-neutral-border-primary-disabled:var(--cui-neutral-surface-primary-disabled);--cui-neutral-border-secondary-default:var(--cui-color-gray-600);--cui-neutral-border-secondary-hover:var(--cui-color-gray-700);--cui-neutral-border-secondary-active:var(--cui-neutral-surface-secondary-active);--cui-neutral-border-secondary-selected:var(--cui-neutral-surface-secondary-selected);--cui-neutral-border-secondary-disabled:var(--cui-neutral-surface-secondary-disabled);--cui-neutral-divider-primary-default:var(--cui-color-gray-300);--cui-neutral-divider-primary-hover:var(--cui-color-gray-250);--cui-neutral-divider-primary-active:var(--cui-color-gray-200);--cui-neutral-divider-primary-selected:var(--cui-color-gray-200);--cui-neutral-divider-primary-disabled:var(--cui-color-gray-700);--cui-neutral-divider-secondary-default:var(--cui-color-gray-400);--cui-neutral-divider-secondary-hover:var(--cui-color-gray-500);--cui-neutral-divider-secondary-active:var(--cui-color-gray-600);--cui-neutral-divider-secondary-selected:var(--cui-color-gray-500);--cui-neutral-divider-secondary-disabled:var(--cui-color-gray-150);--cui-highlight-surface-primary-default:var(--cui-color-brand-violet-official);--cui-highlight-surface-primary-hover:var(--cui-color-brand-violet-600);--cui-highlight-surface-primary-active:var(--cui-color-brand-violet-750);--cui-highlight-surface-primary-selected:var(--cui-color-brand-violet-700);--cui-highlight-surface-primary-disabled:var(--cui-color-brand-violet-75);--cui-highlight-surface-secondary-default:var(--cui-color-brand-violet-100);--cui-highlight-surface-secondary-hover:var(--cui-color-brand-violet-150);--cui-highlight-surface-secondary-active:var(--cui-color-brand-violet-250);--cui-highlight-surface-secondary-selected:var(--cui-color-brand-violet-200);--cui-highlight-surface-secondary-disabled:var(--cui-color-brand-violet-50);--cui-highlight-text-primary-default:var(--cui-color-gray-0);--cui-highlight-text-primary-hover:var(--cui-color-gray-0);--cui-highlight-text-primary-active:var(--cui-color-gray-0);--cui-highlight-text-primary-selected:var(--cui-color-gray-0);--cui-highlight-text-primary-disabled:var(--cui-color-brand-violet-500);--cui-highlight-text-secondary-default:var(--cui-color-brand-violet-800);--cui-highlight-text-secondary-hover:var(--cui-color-brand-violet-850);--cui-highlight-text-secondary-active:var(--cui-color-brand-violet-900);--cui-highlight-text-secondary-selected:var(--cui-color-brand-violet-900);--cui-highlight-text-secondary-disabled:var(--cui-color-brand-violet-500);--cui-highlight-border-primary-default:var(--cui-color-brand-violet-700);--cui-highlight-border-primary-hover:var(--cui-color-brand-violet-750);--cui-highlight-border-primary-active:var(--cui-highlight-surface-primary-active);--cui-highlight-border-primary-selected:var(--cui-highlight-surface-primary-selected);--cui-highlight-border-primary-disabled:var(--cui-highlight-surface-primary-disabled);--cui-highlight-border-secondary-default:var(--cui-color-brand-violet-600);--cui-highlight-border-secondary-hover:var(--cui-color-brand-violet-700);--cui-highlight-border-secondary-active:var(--cui-highlight-surface-secondary-active);--cui-highlight-border-secondary-selected:var(--cui-highlight-surface-secondary-selected);--cui-highlight-border-secondary-disabled:var(--cui-highlight-surface-secondary-disabled);--cui-highlight-divider-primary-default:var(--cui-color-brand-violet-300);--cui-highlight-divider-primary-hover:var(--cui-color-brand-violet-250);--cui-highlight-divider-primary-active:var(--cui-color-brand-violet-200);--cui-highlight-divider-primary-selected:var(--cui-color-brand-violet-200);--cui-highlight-divider-primary-disabled:var(--cui-color-brand-violet-700);--cui-highlight-divider-secondary-default:var(--cui-color-brand-violet-400);--cui-highlight-divider-secondary-hover:var(--cui-color-brand-violet-500);--cui-highlight-divider-secondary-active:var(--cui-color-brand-violet-600);--cui-highlight-divider-secondary-selected:var(--cui-color-brand-violet-500);--cui-highlight-divider-secondary-disabled:var(--cui-color-brand-violet-150);--cui-focus-ring:var(--cui-color-blue-600);--cui-focus-ring-width:2px;--cui-focus-ring-offset:2px;--cui-font-family-base:'Allen Institute Text', system-ui, sans-serif;--cui-font-family-headline:'Allen Institute Headline', 'Allen Institute Text', system-ui, sans-serif;--cui-font-family-mono:'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;--cui-font-size-xxs:10px;--cui-font-size-xs:11px;--cui-font-size-s:12px;--cui-font-size-m:14px;--cui-font-size-l:18px;--cui-font-size-xl:24px;--cui-font-size-xxl:32px;--cui-font-size-display-s:40px;--cui-font-size-display-m:48px;--cui-font-size-display-l:60px;--cui-font-weight-light:300;--cui-font-weight-normal:400;--cui-font-weight-medium:500;--cui-font-weight-semibold:600;--cui-font-weight-bold:700;--cui-line-height-tight:1.2;--cui-line-height-base:1.4;--cui-line-height-loose:1.6;--cui-letter-spacing-tight:-0.02em;--cui-letter-spacing-base:0;--cui-letter-spacing-wide:0.04em;--cui-spacing-xxxs:1px;--cui-spacing-xxs:2px;--cui-spacing-xs:4px;--cui-spacing-s:8px;--cui-spacing-m:12px;--cui-spacing-l:16px;--cui-spacing-xl:24px;--cui-spacing-xxl:32px;--cui-spacing-xxxl:48px;--cui-border-radius-none:0;--cui-border-radius-s:2px;--cui-border-radius-m:4px;--cui-border-radius-l:6px;--cui-border-radius-xl:8px;--cui-border-radius-full:9999px;--cui-border-width-xs:0.5px;--cui-border-width-s:1px;--cui-border-width-m:2px;--cui-border-width-l:4px;--cui-border-width-xl:8px;--cui-control-height-xs:16px;--cui-control-height-s:20px;--cui-control-height-m:24px;--cui-control-height-l:36px;--cui-control-height-xl:48px;--cui-control-padding-xs:var(--cui-spacing-xxxs) var(--cui-spacing-xxs);--cui-control-padding-s:var(--cui-spacing-xxs) var(--cui-spacing-xs);--cui-control-padding-m:var(--cui-spacing-xs) var(--cui-spacing-s);--cui-control-padding-l:var(--cui-spacing-s) var(--cui-spacing-m);--cui-control-padding-xl:var(--cui-spacing-m) var(--cui-spacing-l);--cui-shadow-s:0 1px 2px var(--cui-shadow-color-50);--cui-shadow-m:0 2px 4px var(--cui-shadow-color-100);--cui-shadow-l:0 4px 12px var(--cui-shadow-color-150);--cui-transition-fast:160ms ease;--cui-transition-base:240ms ease;--cui-transition-slow:320ms ease}:root[data-theme=dark]{--cui-base-bg-main:var(--cui-color-gray-950);--cui-base-bg-level-1:var(--cui-base-bg-main);--cui-base-bg-level-2:var(--cui-color-gray-925);--cui-base-bg-level-3:var(--cui-color-gray-900);--cui-base-divider-primary:var(--cui-color-gray-700);--cui-base-divider-secondary:var(--cui-color-gray-800);--cui-base-text-primary:var(--cui-color-gray-150);--cui-base-text-secondary:var(--cui-color-gray-400);--cui-base-border-primary:var(--cui-color-gray-400);--cui-base-border-secondary:var(--cui-color-gray-500);--cui-accent-surface-primary-default:var(--cui-color-brand-blue-400);--cui-accent-surface-primary-hover:var(--cui-color-brand-blue-300);--cui-accent-surface-primary-active:var(--cui-color-brand-blue-200);--cui-accent-surface-primary-selected:var(--cui-color-brand-blue-250);--cui-accent-surface-primary-disabled:var(--cui-color-brand-blue-850);--cui-accent-surface-secondary-default:var(--cui-color-brand-blue-900);--cui-accent-surface-secondary-hover:var(--cui-color-brand-blue-850);--cui-accent-surface-secondary-active:var(--cui-color-brand-blue-750);--cui-accent-surface-secondary-selected:var(--cui-color-brand-blue-800);--cui-accent-surface-secondary-disabled:var(--cui-color-brand-blue-950);--cui-accent-text-primary-default:var(--cui-color-brand-blue-975);--cui-accent-text-primary-hover:var(--cui-color-brand-blue-975);--cui-accent-text-primary-active:var(--cui-color-brand-blue-975);--cui-accent-text-primary-selected:var(--cui-color-brand-blue-975);--cui-accent-text-primary-disabled:var(--cui-color-brand-blue-500);--cui-accent-text-secondary-default:var(--cui-color-brand-blue-200);--cui-accent-text-secondary-hover:var(--cui-color-brand-blue-150);--cui-accent-text-secondary-active:var(--cui-color-brand-blue-100);--cui-accent-text-secondary-selected:var(--cui-color-brand-blue-100);--cui-accent-text-secondary-disabled:var(--cui-color-brand-blue-600);--cui-accent-border-primary-default:var(--cui-color-brand-blue-300);--cui-accent-border-primary-hover:var(--cui-color-brand-blue-250);--cui-accent-border-primary-active:var(--cui-accent-surface-primary-active);--cui-accent-border-primary-selected:var(--cui-accent-surface-primary-selected);--cui-accent-border-primary-disabled:var(--cui-accent-surface-primary-disabled);--cui-accent-border-secondary-default:var(--cui-color-brand-blue-500);--cui-accent-border-secondary-hover:var(--cui-color-brand-blue-400);--cui-accent-border-secondary-active:var(--cui-accent-surface-secondary-active);--cui-accent-border-secondary-selected:var(--cui-accent-surface-secondary-selected);--cui-accent-border-secondary-disabled:var(--cui-accent-surface-secondary-disabled);--cui-accent-divider-primary-default:var(--cui-color-brand-blue-700);--cui-accent-divider-primary-hover:var(--cui-color-brand-blue-750);--cui-accent-divider-primary-active:var(--cui-color-brand-blue-800);--cui-accent-divider-primary-selected:var(--cui-color-brand-blue-750);--cui-accent-divider-primary-disabled:var(--cui-color-brand-blue-300);--cui-accent-divider-secondary-default:var(--cui-color-brand-blue-700);--cui-accent-divider-secondary-hover:var(--cui-color-brand-blue-600);--cui-accent-divider-secondary-active:var(--cui-color-brand-blue-500);--cui-accent-divider-secondary-selected:var(--cui-color-brand-blue-600);--cui-accent-divider-secondary-disabled:var(--cui-color-brand-blue-850);--cui-positive-surface-primary-default:var(--cui-color-brand-teal-400);--cui-positive-surface-primary-hover:var(--cui-color-brand-teal-300);--cui-positive-surface-primary-active:var(--cui-color-brand-teal-200);--cui-positive-surface-primary-selected:var(--cui-color-brand-teal-250);--cui-positive-surface-primary-disabled:var(--cui-color-brand-teal-850);--cui-positive-surface-secondary-default:var(--cui-color-brand-teal-900);--cui-positive-surface-secondary-hover:var(--cui-color-brand-teal-850);--cui-positive-surface-secondary-active:var(--cui-color-brand-teal-750);--cui-positive-surface-secondary-selected:var(--cui-color-brand-teal-800);--cui-positive-surface-secondary-disabled:var(--cui-color-brand-teal-950);--cui-positive-text-primary-default:var(--cui-color-brand-teal-975);--cui-positive-text-primary-hover:var(--cui-color-brand-teal-975);--cui-positive-text-primary-active:var(--cui-color-brand-teal-975);--cui-positive-text-primary-selected:var(--cui-color-brand-teal-975);--cui-positive-text-primary-disabled:var(--cui-color-brand-teal-500);--cui-positive-text-secondary-default:var(--cui-color-brand-teal-200);--cui-positive-text-secondary-hover:var(--cui-color-brand-teal-150);--cui-positive-text-secondary-active:var(--cui-color-brand-teal-100);--cui-positive-text-secondary-selected:var(--cui-color-brand-teal-100);--cui-positive-text-secondary-disabled:var(--cui-color-brand-teal-600);--cui-positive-border-primary-default:var(--cui-color-brand-teal-300);--cui-positive-border-primary-hover:var(--cui-color-brand-teal-250);--cui-positive-border-primary-active:var(--cui-positive-surface-primary-active);--cui-positive-border-primary-selected:var(--cui-positive-surface-primary-selected);--cui-positive-border-primary-disabled:var(--cui-positive-surface-primary-disabled);--cui-positive-border-secondary-default:var(--cui-color-brand-teal-500);--cui-positive-border-secondary-hover:var(--cui-color-brand-teal-400);--cui-positive-border-secondary-active:var(--cui-positive-surface-secondary-active);--cui-positive-border-secondary-selected:var(--cui-positive-surface-secondary-selected);--cui-positive-border-secondary-disabled:var(--cui-positive-surface-secondary-disabled);--cui-positive-divider-primary-default:var(--cui-color-brand-teal-700);--cui-positive-divider-primary-hover:var(--cui-color-brand-teal-750);--cui-positive-divider-primary-active:var(--cui-color-brand-teal-800);--cui-positive-divider-primary-selected:var(--cui-color-brand-teal-750);--cui-positive-divider-primary-disabled:var(--cui-color-brand-teal-300);--cui-positive-divider-secondary-default:var(--cui-color-brand-teal-700);--cui-positive-divider-secondary-hover:var(--cui-color-brand-teal-600);--cui-positive-divider-secondary-active:var(--cui-color-brand-teal-500);--cui-positive-divider-secondary-selected:var(--cui-color-brand-teal-600);--cui-positive-divider-secondary-disabled:var(--cui-color-brand-teal-850);--cui-negative-surface-primary-default:var(--cui-color-brand-maroon-400);--cui-negative-surface-primary-hover:var(--cui-color-brand-maroon-300);--cui-negative-surface-primary-active:var(--cui-color-brand-maroon-200);--cui-negative-surface-primary-selected:var(--cui-color-brand-maroon-250);--cui-negative-surface-primary-disabled:var(--cui-color-brand-maroon-850);--cui-negative-surface-secondary-default:var(--cui-color-brand-maroon-900);--cui-negative-surface-secondary-hover:var(--cui-color-brand-maroon-850);--cui-negative-surface-secondary-active:var(--cui-color-brand-maroon-750);--cui-negative-surface-secondary-selected:var(--cui-color-brand-maroon-800);--cui-negative-surface-secondary-disabled:var(--cui-color-brand-maroon-950);--cui-negative-text-primary-default:var(--cui-color-brand-maroon-975);--cui-negative-text-primary-hover:var(--cui-color-brand-maroon-975);--cui-negative-text-primary-active:var(--cui-color-brand-maroon-975);--cui-negative-text-primary-selected:var(--cui-color-brand-maroon-975);--cui-negative-text-primary-disabled:var(--cui-color-brand-maroon-500);--cui-negative-text-secondary-default:var(--cui-color-brand-maroon-200);--cui-negative-text-secondary-hover:var(--cui-color-brand-maroon-150);--cui-negative-text-secondary-active:var(--cui-color-brand-maroon-100);--cui-negative-text-secondary-selected:var(--cui-color-brand-maroon-100);--cui-negative-text-secondary-disabled:var(--cui-color-brand-maroon-600);--cui-negative-border-primary-default:var(--cui-color-brand-maroon-300);--cui-negative-border-primary-hover:var(--cui-color-brand-maroon-250);--cui-negative-border-primary-active:var(--cui-negative-surface-primary-active);--cui-negative-border-primary-selected:var(--cui-negative-surface-primary-selected);--cui-negative-border-primary-disabled:var(--cui-negative-surface-primary-disabled);--cui-negative-border-secondary-default:var(--cui-color-brand-maroon-500);--cui-negative-border-secondary-hover:var(--cui-color-brand-maroon-400);--cui-negative-border-secondary-active:var(--cui-negative-surface-secondary-active);--cui-negative-border-secondary-selected:var(--cui-negative-surface-secondary-selected);--cui-negative-border-secondary-disabled:var(--cui-negative-surface-secondary-disabled);--cui-negative-divider-primary-default:var(--cui-color-brand-maroon-700);--cui-negative-divider-primary-hover:var(--cui-color-brand-maroon-750);--cui-negative-divider-primary-active:var(--cui-color-brand-maroon-800);--cui-negative-divider-primary-selected:var(--cui-color-brand-maroon-750);--cui-negative-divider-primary-disabled:var(--cui-color-brand-maroon-300);--cui-negative-divider-secondary-default:var(--cui-color-brand-maroon-700);--cui-negative-divider-secondary-hover:var(--cui-color-brand-maroon-600);--cui-negative-divider-secondary-active:var(--cui-color-brand-maroon-500);--cui-negative-divider-secondary-selected:var(--cui-color-brand-maroon-600);--cui-negative-divider-secondary-disabled:var(--cui-color-brand-maroon-850);--cui-warning-surface-primary-default:var(--cui-color-brand-ochre-400);--cui-warning-surface-primary-hover:var(--cui-color-brand-ochre-300);--cui-warning-surface-primary-active:var(--cui-color-brand-ochre-200);--cui-warning-surface-primary-selected:var(--cui-color-brand-ochre-250);--cui-warning-surface-primary-disabled:var(--cui-color-brand-ochre-850);--cui-warning-surface-secondary-default:var(--cui-color-brand-ochre-900);--cui-warning-surface-secondary-hover:var(--cui-color-brand-ochre-850);--cui-warning-surface-secondary-active:var(--cui-color-brand-ochre-750);--cui-warning-surface-secondary-selected:var(--cui-color-brand-ochre-800);--cui-warning-surface-secondary-disabled:var(--cui-color-brand-ochre-950);--cui-warning-text-primary-default:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-hover:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-active:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-selected:var(--cui-color-brand-ochre-975);--cui-warning-text-primary-disabled:var(--cui-color-brand-ochre-500);--cui-warning-text-secondary-default:var(--cui-color-brand-ochre-200);--cui-warning-text-secondary-hover:var(--cui-color-brand-ochre-150);--cui-warning-text-secondary-active:var(--cui-color-brand-ochre-100);--cui-warning-text-secondary-selected:var(--cui-color-brand-ochre-100);--cui-warning-text-secondary-disabled:var(--cui-color-brand-ochre-600);--cui-warning-border-primary-default:var(--cui-color-brand-ochre-300);--cui-warning-border-primary-hover:var(--cui-color-brand-ochre-250);--cui-warning-border-primary-active:var(--cui-warning-surface-primary-active);--cui-warning-border-primary-selected:var(--cui-warning-surface-primary-selected);--cui-warning-border-primary-disabled:var(--cui-warning-surface-primary-disabled);--cui-warning-border-secondary-default:var(--cui-color-brand-ochre-500);--cui-warning-border-secondary-hover:var(--cui-color-brand-ochre-400);--cui-warning-border-secondary-active:var(--cui-warning-surface-secondary-active);--cui-warning-border-secondary-selected:var(--cui-warning-surface-secondary-selected);--cui-warning-border-secondary-disabled:var(--cui-warning-surface-secondary-disabled);--cui-warning-divider-primary-default:var(--cui-color-brand-ochre-700);--cui-warning-divider-primary-hover:var(--cui-color-brand-ochre-750);--cui-warning-divider-primary-active:var(--cui-color-brand-ochre-800);--cui-warning-divider-primary-selected:var(--cui-color-brand-ochre-750);--cui-warning-divider-primary-disabled:var(--cui-color-brand-ochre-300);--cui-warning-divider-secondary-default:var(--cui-color-brand-ochre-700);--cui-warning-divider-secondary-hover:var(--cui-color-brand-ochre-600);--cui-warning-divider-secondary-active:var(--cui-color-brand-ochre-500);--cui-warning-divider-secondary-selected:var(--cui-color-brand-ochre-600);--cui-warning-divider-secondary-disabled:var(--cui-color-brand-ochre-850);--cui-info-surface-primary-default:var(--cui-color-blue-400);--cui-info-surface-primary-hover:var(--cui-color-blue-300);--cui-info-surface-primary-active:var(--cui-color-blue-200);--cui-info-surface-primary-selected:var(--cui-color-blue-250);--cui-info-surface-primary-disabled:var(--cui-color-blue-850);--cui-info-surface-secondary-default:var(--cui-color-blue-900);--cui-info-surface-secondary-hover:var(--cui-color-blue-850);--cui-info-surface-secondary-active:var(--cui-color-blue-750);--cui-info-surface-secondary-selected:var(--cui-color-blue-800);--cui-info-surface-secondary-disabled:var(--cui-color-blue-950);--cui-info-text-primary-default:var(--cui-color-blue-975);--cui-info-text-primary-hover:var(--cui-color-blue-975);--cui-info-text-primary-active:var(--cui-color-blue-975);--cui-info-text-primary-selected:var(--cui-color-blue-975);--cui-info-text-primary-disabled:var(--cui-color-blue-500);--cui-info-text-secondary-default:var(--cui-color-blue-200);--cui-info-text-secondary-hover:var(--cui-color-blue-150);--cui-info-text-secondary-active:var(--cui-color-blue-100);--cui-info-text-secondary-selected:var(--cui-color-blue-100);--cui-info-text-secondary-disabled:var(--cui-color-blue-600);--cui-info-border-primary-default:var(--cui-color-blue-300);--cui-info-border-primary-hover:var(--cui-color-blue-250);--cui-info-border-primary-active:var(--cui-info-surface-primary-active);--cui-info-border-primary-selected:var(--cui-info-surface-primary-selected);--cui-info-border-primary-disabled:var(--cui-info-surface-primary-disabled);--cui-info-border-secondary-default:var(--cui-color-blue-500);--cui-info-border-secondary-hover:var(--cui-color-blue-400);--cui-info-border-secondary-active:var(--cui-info-surface-secondary-active);--cui-info-border-secondary-selected:var(--cui-info-surface-secondary-selected);--cui-info-border-secondary-disabled:var(--cui-info-surface-secondary-disabled);--cui-info-divider-primary-default:var(--cui-color-blue-700);--cui-info-divider-primary-hover:var(--cui-color-blue-750);--cui-info-divider-primary-active:var(--cui-color-blue-800);--cui-info-divider-primary-selected:var(--cui-color-blue-750);--cui-info-divider-primary-disabled:var(--cui-color-blue-300);--cui-info-divider-secondary-default:var(--cui-color-blue-700);--cui-info-divider-secondary-hover:var(--cui-color-blue-600);--cui-info-divider-secondary-active:var(--cui-color-blue-500);--cui-info-divider-secondary-selected:var(--cui-color-blue-600);--cui-info-divider-secondary-disabled:var(--cui-color-blue-850);--cui-neutral-surface-primary-default:var(--cui-color-gray-400);--cui-neutral-surface-primary-hover:var(--cui-color-gray-300);--cui-neutral-surface-primary-active:var(--cui-color-gray-200);--cui-neutral-surface-primary-selected:var(--cui-color-gray-250);--cui-neutral-surface-primary-disabled:var(--cui-color-gray-850);--cui-neutral-surface-secondary-default:var(--cui-color-gray-900);--cui-neutral-surface-secondary-hover:var(--cui-color-gray-850);--cui-neutral-surface-secondary-active:var(--cui-color-gray-750);--cui-neutral-surface-secondary-selected:var(--cui-color-gray-800);--cui-neutral-surface-secondary-disabled:var(--cui-color-gray-950);--cui-neutral-text-primary-default:var(--cui-color-gray-975);--cui-neutral-text-primary-hover:var(--cui-color-gray-975);--cui-neutral-text-primary-active:var(--cui-color-gray-975);--cui-neutral-text-primary-selected:var(--cui-color-gray-975);--cui-neutral-text-primary-disabled:var(--cui-color-gray-500);--cui-neutral-text-secondary-default:var(--cui-color-gray-200);--cui-neutral-text-secondary-hover:var(--cui-color-gray-150);--cui-neutral-text-secondary-active:var(--cui-color-gray-100);--cui-neutral-text-secondary-selected:var(--cui-color-gray-100);--cui-neutral-text-secondary-disabled:var(--cui-color-gray-600);--cui-neutral-border-primary-default:var(--cui-color-gray-300);--cui-neutral-border-primary-hover:var(--cui-color-gray-250);--cui-neutral-border-primary-active:var(--cui-neutral-surface-primary-active);--cui-neutral-border-primary-selected:var(--cui-neutral-surface-primary-selected);--cui-neutral-border-primary-disabled:var(--cui-neutral-surface-primary-disabled);--cui-neutral-border-secondary-default:var(--cui-color-gray-500);--cui-neutral-border-secondary-hover:var(--cui-color-gray-400);--cui-neutral-border-secondary-active:var(--cui-neutral-surface-secondary-active);--cui-neutral-border-secondary-selected:var(--cui-neutral-surface-secondary-selected);--cui-neutral-border-secondary-disabled:var(--cui-neutral-surface-secondary-disabled);--cui-neutral-divider-primary-default:var(--cui-color-gray-700);--cui-neutral-divider-primary-hover:var(--cui-color-gray-750);--cui-neutral-divider-primary-active:var(--cui-color-gray-800);--cui-neutral-divider-primary-selected:var(--cui-color-gray-750);--cui-neutral-divider-primary-disabled:var(--cui-color-gray-300);--cui-neutral-divider-secondary-default:var(--cui-color-gray-700);--cui-neutral-divider-secondary-hover:var(--cui-color-gray-600);--cui-neutral-divider-secondary-active:var(--cui-color-gray-500);--cui-neutral-divider-secondary-selected:var(--cui-color-gray-600);--cui-neutral-divider-secondary-disabled:var(--cui-color-gray-850);--cui-highlight-surface-primary-default:var(--cui-color-brand-violet-400);--cui-highlight-surface-primary-hover:var(--cui-color-brand-violet-300);--cui-highlight-surface-primary-active:var(--cui-color-brand-violet-200);--cui-highlight-surface-primary-selected:var(--cui-color-brand-violet-250);--cui-highlight-surface-primary-disabled:var(--cui-color-brand-violet-850);--cui-highlight-surface-secondary-default:var(--cui-color-brand-violet-900);--cui-highlight-surface-secondary-hover:var(--cui-color-brand-violet-850);--cui-highlight-surface-secondary-active:var(--cui-color-brand-violet-750);--cui-highlight-surface-secondary-selected:var(--cui-color-brand-violet-800);--cui-highlight-surface-secondary-disabled:var(--cui-color-brand-violet-950);--cui-highlight-text-primary-default:var(--cui-color-brand-violet-975);--cui-highlight-text-primary-hover:var(--cui-color-brand-violet-975);--cui-highlight-text-primary-active:var(--cui-color-brand-violet-975);--cui-highlight-text-primary-selected:var(--cui-color-brand-violet-975);--cui-highlight-text-primary-disabled:var(--cui-color-brand-violet-500);--cui-highlight-text-secondary-default:var(--cui-color-brand-violet-200);--cui-highlight-text-secondary-hover:var(--cui-color-brand-violet-150);--cui-highlight-text-secondary-active:var(--cui-color-brand-violet-100);--cui-highlight-text-secondary-selected:var(--cui-color-brand-violet-100);--cui-highlight-text-secondary-disabled:var(--cui-color-brand-violet-600);--cui-highlight-border-primary-default:var(--cui-color-brand-violet-300);--cui-highlight-border-primary-hover:var(--cui-color-brand-violet-250);--cui-highlight-border-primary-active:var(--cui-highlight-surface-primary-active);--cui-highlight-border-primary-selected:var(--cui-highlight-surface-primary-selected);--cui-highlight-border-primary-disabled:var(--cui-highlight-surface-primary-disabled);--cui-highlight-border-secondary-default:var(--cui-color-brand-violet-500);--cui-highlight-border-secondary-hover:var(--cui-color-brand-violet-400);--cui-highlight-border-secondary-active:var(--cui-highlight-surface-secondary-active);--cui-highlight-border-secondary-selected:var(--cui-highlight-surface-secondary-selected);--cui-highlight-border-secondary-disabled:var(--cui-highlight-surface-secondary-disabled);--cui-highlight-divider-primary-default:var(--cui-color-brand-violet-700);--cui-highlight-divider-primary-hover:var(--cui-color-brand-violet-750);--cui-highlight-divider-primary-active:var(--cui-color-brand-violet-800);--cui-highlight-divider-primary-selected:var(--cui-color-brand-violet-750);--cui-highlight-divider-primary-disabled:var(--cui-color-brand-violet-300);--cui-highlight-divider-secondary-default:var(--cui-color-brand-violet-700);--cui-highlight-divider-secondary-hover:var(--cui-color-brand-violet-600);--cui-highlight-divider-secondary-active:var(--cui-color-brand-violet-500);--cui-highlight-divider-secondary-selected:var(--cui-color-brand-violet-600);--cui-highlight-divider-secondary-disabled:var(--cui-color-brand-violet-850);--cui-focus-ring:var(--cui-color-blue-500);--cui-shadow-s:0 0 0 var(--cui-border-width-s) var(--cui-color-gray-400), 0 1px 2px var(--cui-shadow-color-800);--cui-shadow-m:0 0 0 var(--cui-border-width-s) var(--cui-color-gray-400), 0 2px 4px var(--cui-shadow-color-900);--cui-shadow-l:0 0 0 var(--cui-border-width-s) var(--cui-color-gray-400), 0 4px 12px var(--cui-shadow-color-1000)}*,*::before,*::after{box-sizing:border-box}html{font-family:var(--cui-font-family-base);font-size:var(--cui-font-size-m);line-height:var(--cui-line-height-base);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;padding:0;color:var(--cui-base-text-secondary);background:var(--cui-base-bg-main)}a{color:var(--cui-accent-text-secondary-default)}";
8
+
9
+ /*
10
+ Stencil Client Platform v4.44.0 | MIT Licensed | https://stenciljs.com
11
+ */
12
+
13
+
14
+ // src/utils/get-prop-descriptor.ts
15
+ function getPropertyDescriptor(obj, memberName, getOnly) {
16
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
17
+ while (obj && obj !== stopAt) {
18
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
19
+ if (desc && (!getOnly || desc.get)) return desc;
20
+ obj = Object.getPrototypeOf(obj);
21
+ }
22
+ return void 0;
23
+ }
24
+
25
+ // src/utils/es2022-rewire-class-members.ts
26
+ var reWireGetterSetter = (instance, hostRef) => {
27
+ var _a;
28
+ const cmpMeta = hostRef.$cmpMeta$;
29
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
30
+ members.map(([memberName, [memberFlags]]) => {
31
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
32
+ const ogValue = instance[memberName];
33
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
34
+ if (ogDescriptor) {
35
+ Object.defineProperty(instance, memberName, {
36
+ get() {
37
+ return ogDescriptor.get.call(this);
38
+ },
39
+ set(newValue) {
40
+ ogDescriptor.set.call(this, newValue);
41
+ },
42
+ configurable: true,
43
+ enumerable: true
44
+ });
45
+ }
46
+ if (hostRef.$instanceValues$.has(memberName)) {
47
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
48
+ } else if (ogValue !== void 0) {
49
+ instance[memberName] = ogValue;
50
+ }
51
+ }
52
+ });
53
+ };
54
+
55
+ // src/client/client-host-ref.ts
56
+ var getHostRef = (ref) => {
57
+ if (ref.__stencil__getHostRef) {
58
+ return ref.__stencil__getHostRef();
59
+ }
60
+ return void 0;
61
+ };
62
+ var registerInstance = (lazyInstance, hostRef) => {
63
+ if (!hostRef) return;
64
+ lazyInstance.__stencil__getHostRef = () => hostRef;
65
+ hostRef.$lazyInstance$ = lazyInstance;
66
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.prop)) {
67
+ reWireGetterSetter(lazyInstance, hostRef);
68
+ }
69
+ };
70
+ var registerHost = (hostElement, cmpMeta) => {
71
+ const hostRef = {
72
+ $flags$: 0,
73
+ $hostElement$: hostElement,
74
+ $cmpMeta$: cmpMeta,
75
+ $instanceValues$: /* @__PURE__ */ new Map(),
76
+ $serializerValues$: /* @__PURE__ */ new Map()
77
+ };
78
+ {
79
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
80
+ hostElement["s-p"] = [];
81
+ hostElement["s-rc"] = [];
82
+ }
83
+ {
84
+ hostRef.$fetchedCbList$ = [];
85
+ }
86
+ const ref = hostRef;
87
+ hostElement.__stencil__getHostRef = () => ref;
88
+ return ref;
89
+ };
90
+ var isMemberInElement = (elm, memberName) => memberName in elm;
91
+ var consoleError = (e, el) => (0, console.error)(e, el);
92
+
93
+ // src/client/client-load-module.ts
94
+ var cmpModules = /* @__PURE__ */ new Map();
95
+ var failedLoadAttempts = /* @__PURE__ */ new Map();
96
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
97
+ var _a;
98
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
99
+ const bundleId = cmpMeta.$lazyBundleId$;
100
+ if (!bundleId) {
101
+ return void 0;
102
+ }
103
+ const module = cmpModules.get(bundleId) ;
104
+ if (module) {
105
+ return module[exportName];
106
+ }
107
+ const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
108
+ const cacheBustParams = [
109
+ retryCount > 0 ? `s-retry=${retryCount}` : "",
110
+ ""
111
+ ].filter(Boolean).join("&");
112
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
113
+ return import(
114
+ /* @vite-ignore */
115
+ /* webpackInclude: /\.entry\.js$/ */
116
+ /* webpackExclude: /\.system\.entry\.js$/ */
117
+ /* webpackMode: "lazy" */
118
+ `./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
119
+ ).then(
120
+ (importedModule) => {
121
+ {
122
+ failedLoadAttempts.delete(bundleId);
123
+ cmpModules.set(bundleId, importedModule);
124
+ }
125
+ return importedModule[exportName];
126
+ },
127
+ (e) => {
128
+ failedLoadAttempts.set(bundleId, retryCount + 1);
129
+ consoleError(e, hostRef.$hostElement$);
130
+ }
131
+ );
132
+ };
133
+
134
+ // src/client/client-style.ts
135
+ var styles = /* @__PURE__ */ new Map();
136
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
137
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
138
+ var MAX_LAZY_LOAD_RETRIES = 3;
139
+ var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
140
+ var win = typeof window !== "undefined" ? window : {};
141
+ var plt = {
142
+ $flags$: 0,
143
+ $resourcesUrl$: "",
144
+ jmp: (h2) => h2(),
145
+ raf: (h2) => requestAnimationFrame(h2),
146
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
147
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
148
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
149
+ };
150
+ var promiseResolve = (v) => Promise.resolve(v);
151
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
152
+ try {
153
+ if (!win.document.adoptedStyleSheets) {
154
+ return false;
155
+ }
156
+ new CSSStyleSheet();
157
+ return typeof new CSSStyleSheet().replaceSync === "function";
158
+ } catch (e) {
159
+ }
160
+ return false;
161
+ })() ;
162
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
163
+ var queuePending = false;
164
+ var queueDomReads = [];
165
+ var queueDomWrites = [];
166
+ var scheduleFlush = () => {
167
+ var _a;
168
+ return ((_a = win.document) == null ? void 0 : _a.hidden) ? nextTick(flush) : plt.raf(flush);
169
+ };
170
+ var queueTask = (queue, write) => (cb) => {
171
+ queue.push(cb);
172
+ if (!queuePending) {
173
+ queuePending = true;
174
+ if (write && plt.$flags$ & 4 /* queueSync */) {
175
+ nextTick(flush);
176
+ } else {
177
+ scheduleFlush();
178
+ }
179
+ }
180
+ };
181
+ var consume = (queue) => {
182
+ for (let i2 = 0; i2 < queue.length; i2++) {
183
+ try {
184
+ queue[i2](performance.now());
185
+ } catch (e) {
186
+ consoleError(e);
187
+ }
188
+ }
189
+ queue.length = 0;
190
+ };
191
+ var flush = () => {
192
+ consume(queueDomReads);
193
+ {
194
+ consume(queueDomWrites);
195
+ if (queuePending = queueDomReads.length > 0) {
196
+ scheduleFlush();
197
+ }
198
+ }
199
+ };
200
+ var nextTick = (cb) => promiseResolve().then(cb);
201
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
202
+
203
+ // src/utils/style.ts
204
+ function createStyleSheetIfNeededAndSupported(styles2) {
205
+ if (!supportsConstructableStylesheets) return void 0;
206
+ const sheet = new CSSStyleSheet();
207
+ sheet.replaceSync(styles2);
208
+ return sheet;
209
+ }
210
+
211
+ // src/utils/shadow-root.ts
212
+ var globalStyleSheet;
213
+ function createShadowRoot(cmpMeta) {
214
+ var _a;
215
+ const opts = { mode: "open" };
216
+ const shadowRoot = this.attachShadow(opts);
217
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
218
+ if (globalStyleSheet) {
219
+ if (supportsMutableAdoptedStyleSheets) {
220
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
221
+ } else {
222
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
223
+ }
224
+ } else if (!supportsConstructableStylesheets) {
225
+ const styleElm = document.createElement("style");
226
+ styleElm.innerHTML = globalStyles;
227
+ shadowRoot.prepend(styleElm);
228
+ }
229
+ }
230
+ var createTime = (fnName, tagName = "") => {
231
+ {
232
+ return () => {
233
+ return;
234
+ };
235
+ }
236
+ };
237
+ var uniqueTime = (key, measureText) => {
238
+ {
239
+ return () => {
240
+ return;
241
+ };
242
+ }
243
+ };
244
+
245
+ // src/utils/query-nonce-meta-tag-content.ts
246
+ function queryNonceMetaTagContent(doc) {
247
+ var _a, _b, _c;
248
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
249
+ }
250
+
251
+ // src/runtime/styles.ts
252
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
253
+ var registerStyle = (scopeId2, cssText, allowCS) => {
254
+ let style = styles.get(scopeId2);
255
+ if (supportsConstructableStylesheets && allowCS) {
256
+ style = style || new CSSStyleSheet();
257
+ if (typeof style === "string") {
258
+ style = cssText;
259
+ } else {
260
+ style.replaceSync(cssText);
261
+ }
262
+ } else {
263
+ style = cssText;
264
+ }
265
+ styles.set(scopeId2, style);
266
+ };
267
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
268
+ var _a, _b, _c;
269
+ const scopeId2 = getScopeId(cmpMeta);
270
+ const style = styles.get(scopeId2);
271
+ if (!win.document) {
272
+ return scopeId2;
273
+ }
274
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
275
+ if (style) {
276
+ if (typeof style === "string") {
277
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
278
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
279
+ let styleElm;
280
+ if (!appliedStyles) {
281
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
282
+ }
283
+ if (!appliedStyles.has(scopeId2)) {
284
+ styleElm = win.document.createElement("style");
285
+ styleElm.textContent = style;
286
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
287
+ if (nonce != null) {
288
+ styleElm.setAttribute("nonce", nonce);
289
+ }
290
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
291
+ if (styleContainerNode.nodeName === "HEAD") {
292
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
293
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
294
+ styleContainerNode.insertBefore(
295
+ styleElm,
296
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
297
+ );
298
+ } else if ("host" in styleContainerNode) {
299
+ if (supportsConstructableStylesheets) {
300
+ const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
301
+ const stylesheet = new currentWindow.CSSStyleSheet();
302
+ stylesheet.replaceSync(style);
303
+ if (supportsMutableAdoptedStyleSheets) {
304
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
305
+ } else {
306
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
307
+ }
308
+ } else {
309
+ const existingStyleContainer = styleContainerNode.querySelector("style");
310
+ if (existingStyleContainer && true) {
311
+ existingStyleContainer.textContent = style + existingStyleContainer.textContent;
312
+ } else {
313
+ styleContainerNode.prepend(styleElm);
314
+ }
315
+ }
316
+ } else {
317
+ styleContainerNode.append(styleElm);
318
+ }
319
+ }
320
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
321
+ styleContainerNode.insertBefore(styleElm, null);
322
+ }
323
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
324
+ styleElm.textContent += SLOT_FB_CSS;
325
+ }
326
+ if (appliedStyles) {
327
+ appliedStyles.add(scopeId2);
328
+ }
329
+ }
330
+ } else {
331
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
332
+ if (!appliedStyles) {
333
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
334
+ }
335
+ if (!appliedStyles.has(scopeId2)) {
336
+ const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
337
+ let stylesheet;
338
+ if (style.constructor === currentWindow.CSSStyleSheet) {
339
+ stylesheet = style;
340
+ } else {
341
+ stylesheet = new currentWindow.CSSStyleSheet();
342
+ for (let i2 = 0; i2 < style.cssRules.length; i2++) {
343
+ stylesheet.insertRule(style.cssRules[i2].cssText, i2);
344
+ }
345
+ }
346
+ if (supportsMutableAdoptedStyleSheets) {
347
+ styleContainerNode.adoptedStyleSheets.push(stylesheet);
348
+ } else {
349
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
350
+ }
351
+ appliedStyles.add(scopeId2);
352
+ }
353
+ }
354
+ }
355
+ return scopeId2;
356
+ };
357
+ var attachStyles = (hostRef) => {
358
+ const cmpMeta = hostRef.$cmpMeta$;
359
+ const elm = hostRef.$hostElement$;
360
+ const flags = cmpMeta.$flags$;
361
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
362
+ const scopeId2 = addStyle(
363
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
364
+ cmpMeta);
365
+ if (flags & 10 /* needsScopedEncapsulation */) {
366
+ elm["s-sc"] = scopeId2;
367
+ elm.classList.add(scopeId2 + "-h");
368
+ }
369
+ endAttachStyles();
370
+ };
371
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
372
+ var isComplexType = (o) => {
373
+ o = typeof o;
374
+ return o === "object" || o === "function";
375
+ };
376
+
377
+ // src/runtime/vdom/h.ts
378
+ var h = (nodeName, vnodeData, ...children) => {
379
+ if (typeof nodeName === "string") {
380
+ nodeName = transformTag(nodeName);
381
+ }
382
+ let child = null;
383
+ let key = null;
384
+ let simple = false;
385
+ let lastSimple = false;
386
+ const vNodeChildren = [];
387
+ const walk = (c) => {
388
+ for (let i2 = 0; i2 < c.length; i2++) {
389
+ child = c[i2];
390
+ if (Array.isArray(child)) {
391
+ walk(child);
392
+ } else if (child != null && typeof child !== "boolean") {
393
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
394
+ child = String(child);
395
+ } else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
396
+ {
397
+ consoleError("Invalid vNode child");
398
+ }
399
+ continue;
400
+ }
401
+ if (simple && lastSimple) {
402
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
403
+ } else {
404
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
405
+ }
406
+ lastSimple = simple;
407
+ }
408
+ }
409
+ };
410
+ walk(children);
411
+ if (vnodeData) {
412
+ if (vnodeData.key) {
413
+ key = vnodeData.key;
414
+ }
415
+ {
416
+ const classData = vnodeData.className || vnodeData.class;
417
+ if (classData) {
418
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
419
+ }
420
+ }
421
+ }
422
+ const vnode = newVNode(nodeName, null);
423
+ vnode.$attrs$ = vnodeData;
424
+ if (vNodeChildren.length > 0) {
425
+ vnode.$children$ = vNodeChildren;
426
+ }
427
+ {
428
+ vnode.$key$ = key;
429
+ }
430
+ return vnode;
431
+ };
432
+ var newVNode = (tag, text) => {
433
+ const vnode = {
434
+ $flags$: 0,
435
+ $tag$: tag,
436
+ // Normalize undefined to null to prevent rendering "undefined" as text
437
+ $text$: text != null ? text : null,
438
+ $elm$: null,
439
+ $children$: null
440
+ };
441
+ {
442
+ vnode.$attrs$ = null;
443
+ }
444
+ {
445
+ vnode.$key$ = null;
446
+ }
447
+ return vnode;
448
+ };
449
+ var Host = {};
450
+ var isHost = (node) => node && node.$tag$ === Host;
451
+
452
+ // src/runtime/normalize-watchers.ts
453
+ var normalizeWatchers = (raw) => {
454
+ if (!raw) return void 0;
455
+ const keys = Object.keys(raw);
456
+ if (keys.length === 0) return void 0;
457
+ let hasLegacy = false;
458
+ for (const propName of keys) {
459
+ if (hasLegacy) break;
460
+ for (const h2 of raw[propName]) {
461
+ if (typeof h2 === "string") {
462
+ hasLegacy = true;
463
+ break;
464
+ }
465
+ }
466
+ }
467
+ if (!hasLegacy) return raw;
468
+ const out = {};
469
+ for (const propName of keys) {
470
+ out[propName] = raw[propName].map(
471
+ (h2) => typeof h2 === "string" ? { [h2]: 0 } : h2
472
+ );
473
+ }
474
+ return out;
475
+ };
476
+
477
+ // src/runtime/parse-property-value.ts
478
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
479
+ if (propValue != null && !isComplexType(propValue)) {
480
+ if (propType & 4 /* Boolean */) {
481
+ {
482
+ return propValue === "false" ? false : propValue === "" || !!propValue;
483
+ }
484
+ }
485
+ if (propType & 2 /* Number */) {
486
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
487
+ }
488
+ if (propType & 1 /* String */) {
489
+ return String(propValue);
490
+ }
491
+ return propValue;
492
+ }
493
+ return propValue;
494
+ };
495
+ var getElement = (ref) => {
496
+ var _a;
497
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
498
+ };
499
+ var emitEvent = (elm, name, opts) => {
500
+ const ev = plt.ce(name, opts);
501
+ elm.dispatchEvent(ev);
502
+ return ev;
503
+ };
504
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
505
+ if (oldValue === newValue) {
506
+ return;
507
+ }
508
+ let isProp = isMemberInElement(elm, memberName);
509
+ memberName.toLowerCase();
510
+ if (memberName === "class") {
511
+ const classList = elm.classList;
512
+ const oldClasses = parseClassList(oldValue);
513
+ let newClasses = parseClassList(newValue);
514
+ {
515
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
516
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
517
+ }
518
+ } else if (memberName === "key") ; else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
519
+ const propName = memberName.slice(5);
520
+ let attrName;
521
+ {
522
+ const hostRef = getHostRef(elm);
523
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
524
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
525
+ if (memberMeta && memberMeta[1]) {
526
+ attrName = memberMeta[1];
527
+ }
528
+ }
529
+ }
530
+ if (!attrName) {
531
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
532
+ }
533
+ if (newValue == null || newValue === false) {
534
+ if (newValue !== false || elm.getAttribute(attrName) === "") {
535
+ elm.removeAttribute(attrName);
536
+ }
537
+ } else {
538
+ elm.setAttribute(attrName, newValue === true ? "" : newValue);
539
+ }
540
+ return;
541
+ } else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
542
+ const propName = memberName.slice(5);
543
+ try {
544
+ elm[propName] = newValue;
545
+ } catch (e) {
546
+ }
547
+ return;
548
+ } else {
549
+ const isComplex = isComplexType(newValue);
550
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
551
+ try {
552
+ if (!elm.tagName.includes("-")) {
553
+ const n = newValue == null ? "" : newValue;
554
+ if (memberName === "list") {
555
+ isProp = false;
556
+ } else if (oldValue == null || elm[memberName] !== n) {
557
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
558
+ elm[memberName] = n;
559
+ } else {
560
+ elm.setAttribute(memberName, n);
561
+ }
562
+ }
563
+ } else if (elm[memberName] !== newValue) {
564
+ elm[memberName] = newValue;
565
+ }
566
+ } catch (e) {
567
+ }
568
+ }
569
+ if (newValue == null || newValue === false) {
570
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
571
+ {
572
+ elm.removeAttribute(memberName);
573
+ }
574
+ }
575
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
576
+ newValue = newValue === true ? "" : newValue;
577
+ {
578
+ elm.setAttribute(memberName, newValue);
579
+ }
580
+ }
581
+ }
582
+ };
583
+ var parseClassListRegex = /\s/;
584
+ var parseClassList = (value) => {
585
+ if (typeof value === "object" && value && "baseVal" in value) {
586
+ value = value.baseVal;
587
+ }
588
+ if (!value || typeof value !== "string") {
589
+ return [];
590
+ }
591
+ return value.split(parseClassListRegex);
592
+ };
593
+
594
+ // src/runtime/vdom/update-element.ts
595
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
596
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
597
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
598
+ const newVnodeAttrs = newVnode.$attrs$ || {};
599
+ {
600
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
601
+ if (!(memberName in newVnodeAttrs)) {
602
+ setAccessor(
603
+ elm,
604
+ memberName,
605
+ oldVnodeAttrs[memberName],
606
+ void 0,
607
+ isSvgMode2,
608
+ newVnode.$flags$);
609
+ }
610
+ }
611
+ }
612
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
613
+ setAccessor(
614
+ elm,
615
+ memberName,
616
+ oldVnodeAttrs[memberName],
617
+ newVnodeAttrs[memberName],
618
+ isSvgMode2,
619
+ newVnode.$flags$);
620
+ }
621
+ };
622
+ function sortedAttrNames(attrNames) {
623
+ return attrNames.includes("ref") ? (
624
+ // we need to sort these to ensure that `'ref'` is the last attr
625
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
626
+ ) : (
627
+ // no need to sort, return the original array
628
+ attrNames
629
+ );
630
+ }
631
+ var hostTagName;
632
+ var useNativeShadowDom = false;
633
+ var isSvgMode = false;
634
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
635
+ const newVNode2 = newParentVNode.$children$[childIndex];
636
+ let i2 = 0;
637
+ let elm;
638
+ let childNode;
639
+ if (newVNode2.$text$ != null) {
640
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
641
+ } else {
642
+ if (!win.document) {
643
+ throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
644
+ }
645
+ elm = newVNode2.$elm$ = win.document.createElement(
646
+ newVNode2.$tag$
647
+ );
648
+ {
649
+ updateElement(null, newVNode2, isSvgMode);
650
+ }
651
+ if (newVNode2.$children$) {
652
+ const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
653
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
654
+ childNode = createElm(oldParentVNode, newVNode2, i2);
655
+ if (childNode) {
656
+ appendTarget.appendChild(childNode);
657
+ }
658
+ }
659
+ }
660
+ }
661
+ elm["s-hn"] = hostTagName;
662
+ return elm;
663
+ };
664
+ var relocateToHostRoot = (parentElm) => {
665
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
666
+ const host = parentElm.closest(hostTagName.toLowerCase());
667
+ if (host != null) {
668
+ const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(
669
+ (ref) => ref["s-cr"]
670
+ );
671
+ const childNodeArray = Array.from(
672
+ parentElm.__childNodes || parentElm.childNodes
673
+ );
674
+ for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
675
+ if (childNode["s-sh"] != null) {
676
+ insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
677
+ childNode["s-sh"] = void 0;
678
+ }
679
+ }
680
+ }
681
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
682
+ };
683
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
684
+ let containerElm = parentElm;
685
+ let childNode;
686
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
687
+ containerElm = containerElm.shadowRoot;
688
+ }
689
+ if (parentVNode.$tag$ === "template") {
690
+ containerElm = containerElm.content;
691
+ }
692
+ for (; startIdx <= endIdx; ++startIdx) {
693
+ if (vnodes[startIdx]) {
694
+ childNode = createElm(null, parentVNode, startIdx);
695
+ if (childNode) {
696
+ vnodes[startIdx].$elm$ = childNode;
697
+ insertBefore(containerElm, childNode, before);
698
+ }
699
+ }
700
+ }
701
+ };
702
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
703
+ for (let index = startIdx; index <= endIdx; ++index) {
704
+ const vnode = vnodes[index];
705
+ if (vnode) {
706
+ const elm = vnode.$elm$;
707
+ if (elm) {
708
+ elm.remove();
709
+ }
710
+ }
711
+ }
712
+ };
713
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
714
+ let oldStartIdx = 0;
715
+ let newStartIdx = 0;
716
+ let idxInOld = 0;
717
+ let i2 = 0;
718
+ let oldEndIdx = oldCh.length - 1;
719
+ let oldStartVnode = oldCh[0];
720
+ let oldEndVnode = oldCh[oldEndIdx];
721
+ let newEndIdx = newCh.length - 1;
722
+ let newStartVnode = newCh[0];
723
+ let newEndVnode = newCh[newEndIdx];
724
+ let node;
725
+ let elmToMove;
726
+ const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
727
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
728
+ if (oldStartVnode == null) {
729
+ oldStartVnode = oldCh[++oldStartIdx];
730
+ } else if (oldEndVnode == null) {
731
+ oldEndVnode = oldCh[--oldEndIdx];
732
+ } else if (newStartVnode == null) {
733
+ newStartVnode = newCh[++newStartIdx];
734
+ } else if (newEndVnode == null) {
735
+ newEndVnode = newCh[--newEndIdx];
736
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
737
+ patch(oldStartVnode, newStartVnode, isInitialRender);
738
+ oldStartVnode = oldCh[++oldStartIdx];
739
+ newStartVnode = newCh[++newStartIdx];
740
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
741
+ patch(oldEndVnode, newEndVnode, isInitialRender);
742
+ oldEndVnode = oldCh[--oldEndIdx];
743
+ newEndVnode = newCh[--newEndIdx];
744
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
745
+ patch(oldStartVnode, newEndVnode, isInitialRender);
746
+ insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
747
+ oldStartVnode = oldCh[++oldStartIdx];
748
+ newEndVnode = newCh[--newEndIdx];
749
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
750
+ patch(oldEndVnode, newStartVnode, isInitialRender);
751
+ insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
752
+ oldEndVnode = oldCh[--oldEndIdx];
753
+ newStartVnode = newCh[++newStartIdx];
754
+ } else {
755
+ idxInOld = -1;
756
+ {
757
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
758
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
759
+ idxInOld = i2;
760
+ break;
761
+ }
762
+ }
763
+ }
764
+ if (idxInOld >= 0) {
765
+ elmToMove = oldCh[idxInOld];
766
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
767
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
768
+ } else {
769
+ patch(elmToMove, newStartVnode, isInitialRender);
770
+ oldCh[idxInOld] = void 0;
771
+ node = elmToMove.$elm$;
772
+ }
773
+ newStartVnode = newCh[++newStartIdx];
774
+ } else {
775
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
776
+ newStartVnode = newCh[++newStartIdx];
777
+ }
778
+ if (node) {
779
+ {
780
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
781
+ }
782
+ }
783
+ }
784
+ }
785
+ if (oldStartIdx > oldEndIdx) {
786
+ addVnodes(
787
+ parentElm,
788
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
789
+ newVNode2,
790
+ newCh,
791
+ newStartIdx,
792
+ newEndIdx
793
+ );
794
+ } else if (newStartIdx > newEndIdx) {
795
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
796
+ }
797
+ };
798
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
799
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
800
+ if (!isInitialRender) {
801
+ return leftVNode.$key$ === rightVNode.$key$;
802
+ }
803
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
804
+ leftVNode.$key$ = rightVNode.$key$;
805
+ }
806
+ return true;
807
+ }
808
+ return false;
809
+ };
810
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
811
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
812
+ const oldChildren = oldVNode.$children$;
813
+ const newChildren = newVNode2.$children$;
814
+ const tag = newVNode2.$tag$;
815
+ const text = newVNode2.$text$;
816
+ if (text == null) {
817
+ {
818
+ if (tag === "slot" && !useNativeShadowDom) {
819
+ if (oldVNode.$name$ !== newVNode2.$name$) {
820
+ newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
821
+ relocateToHostRoot(newVNode2.$elm$.parentElement);
822
+ }
823
+ }
824
+ updateElement(oldVNode, newVNode2, isSvgMode);
825
+ }
826
+ if (oldChildren !== null && newChildren !== null) {
827
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
828
+ } else if (newChildren !== null) {
829
+ if (oldVNode.$text$ !== null) {
830
+ elm.textContent = "";
831
+ }
832
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
833
+ } else if (
834
+ // don't do this on initial render as it can cause non-hydrated content to be removed
835
+ !isInitialRender && BUILD.updatable && oldChildren !== null
836
+ ) {
837
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
838
+ } else ;
839
+ } else if (oldVNode.$text$ !== text) {
840
+ elm.data = text;
841
+ }
842
+ };
843
+ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
844
+ if (parent.__insertBefore) {
845
+ return parent.__insertBefore(newNode, reference);
846
+ } else {
847
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
848
+ }
849
+ };
850
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
851
+ const hostElm = hostRef.$hostElement$;
852
+ const cmpMeta = hostRef.$cmpMeta$;
853
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
854
+ const isHostElement = isHost(renderFnResults);
855
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
856
+ hostTagName = hostElm.tagName;
857
+ if (cmpMeta.$attrsToReflect$) {
858
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
859
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
860
+ {
861
+ rootVnode.$attrs$[attribute] = hostElm[propName];
862
+ }
863
+ });
864
+ }
865
+ if (isInitialLoad && rootVnode.$attrs$) {
866
+ for (const key of Object.keys(rootVnode.$attrs$)) {
867
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
868
+ rootVnode.$attrs$[key] = hostElm[key];
869
+ }
870
+ }
871
+ }
872
+ rootVnode.$tag$ = null;
873
+ rootVnode.$flags$ |= 4 /* isHost */;
874
+ hostRef.$vnode$ = rootVnode;
875
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
876
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
877
+ patch(oldVNode, rootVnode, isInitialLoad);
878
+ };
879
+
880
+ // src/runtime/update-component.ts
881
+ var attachToAncestor = (hostRef, ancestorComponent) => {
882
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
883
+ const index = ancestorComponent["s-p"].push(
884
+ new Promise(
885
+ (r) => hostRef.$onRenderResolve$ = () => {
886
+ ancestorComponent["s-p"].splice(index - 1, 1);
887
+ r();
888
+ }
889
+ )
890
+ );
891
+ }
892
+ };
893
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
894
+ {
895
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
896
+ }
897
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
898
+ hostRef.$flags$ |= 512 /* needsRerender */;
899
+ return;
900
+ }
901
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
902
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
903
+ if (isInitialLoad) {
904
+ queueMicrotask(() => {
905
+ dispatch();
906
+ });
907
+ return;
908
+ }
909
+ return writeTask(dispatch) ;
910
+ };
911
+ var dispatchHooks = (hostRef, isInitialLoad) => {
912
+ const elm = hostRef.$hostElement$;
913
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
914
+ const instance = hostRef.$lazyInstance$ ;
915
+ if (!instance) {
916
+ throw new Error(
917
+ `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`
918
+ );
919
+ }
920
+ let maybePromise;
921
+ if (isInitialLoad) {
922
+ {
923
+ if (hostRef.$fetchedCbList$.length) {
924
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
925
+ }
926
+ }
927
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
928
+ } else {
929
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
930
+ }
931
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
932
+ endSchedule();
933
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
934
+ };
935
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
936
+ console.error(err);
937
+ fn();
938
+ }) : fn();
939
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
940
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
941
+ var _a;
942
+ const elm = hostRef.$hostElement$;
943
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
944
+ const rc = elm["s-rc"];
945
+ if (isInitialLoad) {
946
+ attachStyles(hostRef);
947
+ }
948
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
949
+ {
950
+ callRender(hostRef, instance, elm, isInitialLoad);
951
+ }
952
+ if (rc) {
953
+ rc.map((cb) => cb());
954
+ elm["s-rc"] = void 0;
955
+ }
956
+ endRender();
957
+ endUpdate();
958
+ {
959
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
960
+ const postUpdate = () => postUpdateComponent(hostRef);
961
+ if (childrenPromises.length === 0) {
962
+ postUpdate();
963
+ } else {
964
+ Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
965
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
966
+ childrenPromises.length = 0;
967
+ }
968
+ }
969
+ };
970
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
971
+ try {
972
+ instance = instance.render() ;
973
+ {
974
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
975
+ }
976
+ {
977
+ hostRef.$flags$ |= 2 /* hasRendered */;
978
+ }
979
+ {
980
+ {
981
+ {
982
+ renderVdom(hostRef, instance, isInitialLoad);
983
+ }
984
+ }
985
+ }
986
+ } catch (e) {
987
+ consoleError(e, hostRef.$hostElement$);
988
+ }
989
+ return null;
990
+ };
991
+ var postUpdateComponent = (hostRef) => {
992
+ const tagName = hostRef.$cmpMeta$.$tagName$;
993
+ const elm = hostRef.$hostElement$;
994
+ const endPostUpdate = createTime("postUpdate", tagName);
995
+ const instance = hostRef.$lazyInstance$ ;
996
+ const ancestorComponent = hostRef.$ancestorComponent$;
997
+ safeCall(instance, "componentDidRender", void 0, elm);
998
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
999
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1000
+ {
1001
+ addHydratedFlag(elm);
1002
+ }
1003
+ safeCall(instance, "componentDidLoad", void 0, elm);
1004
+ endPostUpdate();
1005
+ {
1006
+ hostRef.$onReadyResolve$(elm);
1007
+ if (!ancestorComponent) {
1008
+ appDidLoad();
1009
+ }
1010
+ }
1011
+ } else {
1012
+ safeCall(instance, "componentDidUpdate", void 0, elm);
1013
+ endPostUpdate();
1014
+ }
1015
+ {
1016
+ if (hostRef.$onRenderResolve$) {
1017
+ hostRef.$onRenderResolve$();
1018
+ hostRef.$onRenderResolve$ = void 0;
1019
+ }
1020
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1021
+ nextTick(() => scheduleUpdate(hostRef, false));
1022
+ }
1023
+ hostRef.$flags$ &= -517;
1024
+ }
1025
+ };
1026
+ var appDidLoad = (who) => {
1027
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1028
+ };
1029
+ var safeCall = (instance, method, arg, elm) => {
1030
+ if (instance && instance[method]) {
1031
+ try {
1032
+ return instance[method](arg);
1033
+ } catch (e) {
1034
+ consoleError(e, elm);
1035
+ }
1036
+ }
1037
+ return void 0;
1038
+ };
1039
+ var addHydratedFlag = (elm) => {
1040
+ var _a;
1041
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1042
+ };
1043
+
1044
+ // src/runtime/set-value.ts
1045
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1046
+ var setValue = (ref, propName, newVal, cmpMeta) => {
1047
+ const hostRef = getHostRef(ref);
1048
+ if (!hostRef) {
1049
+ return;
1050
+ }
1051
+ if (!hostRef) {
1052
+ throw new Error(
1053
+ `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).`
1054
+ );
1055
+ }
1056
+ const elm = hostRef.$hostElement$ ;
1057
+ const oldVal = hostRef.$instanceValues$.get(propName);
1058
+ const flags = hostRef.$flags$;
1059
+ const instance = hostRef.$lazyInstance$ ;
1060
+ newVal = parsePropertyValue(
1061
+ newVal,
1062
+ cmpMeta.$members$[propName][0]);
1063
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1064
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1065
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1066
+ hostRef.$instanceValues$.set(propName, newVal);
1067
+ if (cmpMeta.$watchers$) {
1068
+ const watchMethods = cmpMeta.$watchers$[propName];
1069
+ if (watchMethods) {
1070
+ watchMethods.map((watcher) => {
1071
+ try {
1072
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1073
+ if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {
1074
+ if (!instance) {
1075
+ hostRef.$fetchedCbList$.push(() => {
1076
+ hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);
1077
+ });
1078
+ } else {
1079
+ instance[watchMethodName](newVal, oldVal, propName);
1080
+ }
1081
+ }
1082
+ } catch (e) {
1083
+ consoleError(e, elm);
1084
+ }
1085
+ });
1086
+ }
1087
+ }
1088
+ if (flags & 2 /* hasRendered */) {
1089
+ if (instance.componentShouldUpdate) {
1090
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
1091
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
1092
+ return;
1093
+ }
1094
+ }
1095
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
1096
+ scheduleUpdate(hostRef, false);
1097
+ }
1098
+ }
1099
+ }
1100
+ };
1101
+
1102
+ // src/runtime/proxy-component.ts
1103
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
1104
+ var _a, _b;
1105
+ const prototype = Cstr.prototype;
1106
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1107
+ {
1108
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1109
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1110
+ }
1111
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1112
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1113
+ }
1114
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1115
+ cmpMeta.$serializers$ = Cstr.serializers;
1116
+ }
1117
+ }
1118
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1119
+ members.map(([memberName, [memberFlags]]) => {
1120
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1121
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
1122
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1123
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1124
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1125
+ Object.defineProperty(prototype, memberName, {
1126
+ get() {
1127
+ {
1128
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1129
+ return getValue(this, memberName);
1130
+ }
1131
+ const ref = getHostRef(this);
1132
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1133
+ if (!instance) return;
1134
+ return instance[memberName];
1135
+ }
1136
+ },
1137
+ configurable: true,
1138
+ enumerable: true
1139
+ });
1140
+ }
1141
+ Object.defineProperty(prototype, memberName, {
1142
+ set(newValue) {
1143
+ const ref = getHostRef(this);
1144
+ if (!ref) {
1145
+ return;
1146
+ }
1147
+ if (origSetter) {
1148
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1149
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1150
+ newValue = ref.$instanceValues$.get(memberName);
1151
+ }
1152
+ origSetter.apply(this, [
1153
+ parsePropertyValue(
1154
+ newValue,
1155
+ memberFlags)
1156
+ ]);
1157
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1158
+ setValue(this, memberName, newValue, cmpMeta);
1159
+ return;
1160
+ }
1161
+ {
1162
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1163
+ setValue(this, memberName, newValue, cmpMeta);
1164
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1165
+ ref.$fetchedCbList$.push(() => {
1166
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1167
+ ref.$lazyInstance$[memberName] = newValue;
1168
+ }
1169
+ });
1170
+ }
1171
+ return;
1172
+ }
1173
+ const setterSetVal = () => {
1174
+ const currentValue = ref.$lazyInstance$[memberName];
1175
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1176
+ ref.$instanceValues$.set(memberName, currentValue);
1177
+ }
1178
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1179
+ newValue,
1180
+ memberFlags);
1181
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1182
+ };
1183
+ if (ref.$lazyInstance$) {
1184
+ setterSetVal();
1185
+ } else {
1186
+ ref.$fetchedCbList$.push(() => {
1187
+ setterSetVal();
1188
+ });
1189
+ }
1190
+ }
1191
+ }
1192
+ });
1193
+ }
1194
+ });
1195
+ if ((flags & 1 /* isElementConstructor */)) {
1196
+ const attrNameToPropName = /* @__PURE__ */ new Map();
1197
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1198
+ plt.jmp(() => {
1199
+ var _a2;
1200
+ const propName = attrNameToPropName.get(attrName);
1201
+ const hostRef = getHostRef(this);
1202
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1203
+ newValue = this[propName];
1204
+ delete this[propName];
1205
+ }
1206
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1207
+ this[propName] == newValue) {
1208
+ return;
1209
+ } else if (propName == null) {
1210
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1211
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
1212
+ const instance = hostRef.$lazyInstance$ ;
1213
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1214
+ entry == null ? void 0 : entry.forEach((watcher) => {
1215
+ const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
1216
+ if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
1217
+ instance[watchMethodName].call(instance, newValue, oldValue, attrName);
1218
+ }
1219
+ });
1220
+ }
1221
+ return;
1222
+ }
1223
+ const propFlags = members.find(([m]) => m === propName);
1224
+ const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
1225
+ const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1226
+ if (isBooleanTarget) {
1227
+ newValue = newValue === null || newValue === "false" ? false : true;
1228
+ }
1229
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1230
+ if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1231
+ this[propName] = newValue;
1232
+ }
1233
+ });
1234
+ };
1235
+ Cstr.observedAttributes = Array.from(
1236
+ /* @__PURE__ */ new Set([
1237
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1238
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1239
+ var _a2;
1240
+ const attrName = m[1] || propName;
1241
+ attrNameToPropName.set(attrName, propName);
1242
+ if (m[0] & 512 /* ReflectAttr */) {
1243
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1244
+ }
1245
+ return attrName;
1246
+ })
1247
+ ])
1248
+ );
1249
+ }
1250
+ }
1251
+ return Cstr;
1252
+ };
1253
+
1254
+ // src/runtime/initialize-component.ts
1255
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1256
+ var _a;
1257
+ let Cstr;
1258
+ try {
1259
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1260
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1261
+ hostRef.$flags$ &= -1025 /* hasFailedLoad */;
1262
+ const bundleId = cmpMeta.$lazyBundleId$;
1263
+ if (bundleId) {
1264
+ const CstrImport = loadModule(cmpMeta, hostRef);
1265
+ if (CstrImport && "then" in CstrImport) {
1266
+ const endLoad = uniqueTime();
1267
+ Cstr = await CstrImport;
1268
+ endLoad();
1269
+ } else {
1270
+ Cstr = CstrImport;
1271
+ }
1272
+ if (!Cstr) {
1273
+ hostRef.$flags$ &= -33 /* hasInitializedComponent */;
1274
+ hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
1275
+ if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
1276
+ hostRef.$flags$ |= 1024 /* hasFailedLoad */;
1277
+ }
1278
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1279
+ }
1280
+ if (!Cstr.isProxied) {
1281
+ {
1282
+ cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);
1283
+ cmpMeta.$serializers$ = Cstr.serializers;
1284
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1285
+ }
1286
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1287
+ Cstr.isProxied = true;
1288
+ }
1289
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1290
+ {
1291
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1292
+ }
1293
+ try {
1294
+ new Cstr(hostRef);
1295
+ } catch (e) {
1296
+ consoleError(e, elm);
1297
+ }
1298
+ {
1299
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
1300
+ }
1301
+ {
1302
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1303
+ }
1304
+ endNewInstance();
1305
+ {
1306
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1307
+ }
1308
+ } else {
1309
+ Cstr = elm.constructor;
1310
+ const cmpTag = elm.localName;
1311
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1312
+ }
1313
+ if (Cstr && Cstr.style) {
1314
+ let style;
1315
+ if (typeof Cstr.style === "string") {
1316
+ style = Cstr.style;
1317
+ }
1318
+ const scopeId2 = getScopeId(cmpMeta);
1319
+ if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
1320
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1321
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1322
+ endRegisterStyles();
1323
+ }
1324
+ }
1325
+ }
1326
+ const ancestorComponent = hostRef.$ancestorComponent$;
1327
+ const schedule = () => scheduleUpdate(hostRef, true);
1328
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
1329
+ ancestorComponent["s-rc"].push(schedule);
1330
+ } else {
1331
+ schedule();
1332
+ }
1333
+ } catch (e) {
1334
+ consoleError(e, elm);
1335
+ if (hostRef.$onRenderResolve$) {
1336
+ hostRef.$onRenderResolve$();
1337
+ hostRef.$onRenderResolve$ = void 0;
1338
+ }
1339
+ if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
1340
+ hostRef.$onReadyResolve$(elm);
1341
+ }
1342
+ }
1343
+ };
1344
+ var fireConnectedCallback = (instance, elm) => {
1345
+ {
1346
+ safeCall(instance, "connectedCallback", void 0, elm);
1347
+ }
1348
+ };
1349
+
1350
+ // src/runtime/connected-callback.ts
1351
+ var connectedCallback = (elm) => {
1352
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1353
+ const hostRef = getHostRef(elm);
1354
+ if (!hostRef) {
1355
+ return;
1356
+ }
1357
+ const cmpMeta = hostRef.$cmpMeta$;
1358
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1359
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1360
+ hostRef.$flags$ |= 1 /* hasConnected */;
1361
+ {
1362
+ let ancestorComponent = elm;
1363
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1364
+ if (ancestorComponent["s-p"]) {
1365
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1366
+ break;
1367
+ }
1368
+ }
1369
+ }
1370
+ if (cmpMeta.$members$) {
1371
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1372
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
1373
+ const value = elm[memberName];
1374
+ delete elm[memberName];
1375
+ elm[memberName] = value;
1376
+ }
1377
+ });
1378
+ }
1379
+ {
1380
+ initializeComponent(elm, hostRef, cmpMeta);
1381
+ }
1382
+ } else {
1383
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1384
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1385
+ } else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
1386
+ setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
1387
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1388
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1389
+ }
1390
+ }
1391
+ endConnected();
1392
+ }
1393
+ };
1394
+ var disconnectInstance = (instance, elm) => {
1395
+ {
1396
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1397
+ }
1398
+ };
1399
+ var disconnectedCallback = async (elm) => {
1400
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1401
+ const hostRef = getHostRef(elm);
1402
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1403
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1404
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1405
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1406
+ }
1407
+ }
1408
+ if (rootAppliedStyles.has(elm)) {
1409
+ rootAppliedStyles.delete(elm);
1410
+ }
1411
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1412
+ rootAppliedStyles.delete(elm.shadowRoot);
1413
+ }
1414
+ };
1415
+
1416
+ // src/runtime/bootstrap-lazy.ts
1417
+ var bootstrapLazy = (lazyBundles, options = {}) => {
1418
+ var _a;
1419
+ if (!win.document) {
1420
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1421
+ return;
1422
+ }
1423
+ const endBootstrap = createTime();
1424
+ const cmpTags = [];
1425
+ const exclude = options.exclude || [];
1426
+ const customElements2 = win.customElements;
1427
+ const head = win.document.head;
1428
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1429
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1430
+ const deferredConnectedCallbacks = [];
1431
+ let appLoadFallback;
1432
+ let isBootstrapping = true;
1433
+ Object.assign(plt, options);
1434
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1435
+ lazyBundles.map((lazyBundle) => {
1436
+ lazyBundle[1].map((compactMeta) => {
1437
+ var _a2, _b;
1438
+ const cmpMeta = {
1439
+ $flags$: compactMeta[0],
1440
+ $tagName$: compactMeta[1],
1441
+ $members$: compactMeta[2],
1442
+ $listeners$: compactMeta[3]
1443
+ };
1444
+ {
1445
+ cmpMeta.$members$ = compactMeta[2];
1446
+ }
1447
+ {
1448
+ cmpMeta.$attrsToReflect$ = [];
1449
+ }
1450
+ {
1451
+ cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
1452
+ cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
1453
+ cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};
1454
+ }
1455
+ const tagName = transformTag(cmpMeta.$tagName$);
1456
+ const HostElement = class extends HTMLElement {
1457
+ ["s-p"];
1458
+ ["s-rc"];
1459
+ hasRegisteredEventListeners = false;
1460
+ // StencilLazyHost
1461
+ constructor(self) {
1462
+ super(self);
1463
+ self = this;
1464
+ registerHost(self, cmpMeta);
1465
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1466
+ {
1467
+ if (!self.shadowRoot) {
1468
+ createShadowRoot.call(self, cmpMeta);
1469
+ } else {
1470
+ if (self.shadowRoot.mode !== "open") {
1471
+ throw new Error(
1472
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1473
+ );
1474
+ }
1475
+ }
1476
+ }
1477
+ }
1478
+ }
1479
+ connectedCallback() {
1480
+ const hostRef = getHostRef(this);
1481
+ if (!hostRef) {
1482
+ return;
1483
+ }
1484
+ if (!this.hasRegisteredEventListeners) {
1485
+ this.hasRegisteredEventListeners = true;
1486
+ }
1487
+ if (appLoadFallback) {
1488
+ clearTimeout(appLoadFallback);
1489
+ appLoadFallback = null;
1490
+ }
1491
+ if (isBootstrapping) {
1492
+ deferredConnectedCallbacks.push(this);
1493
+ } else {
1494
+ plt.jmp(() => connectedCallback(this));
1495
+ }
1496
+ }
1497
+ disconnectedCallback() {
1498
+ plt.jmp(() => disconnectedCallback(this));
1499
+ nextTick(() => {
1500
+ var _a3;
1501
+ const hostRef = getHostRef(this);
1502
+ if (!hostRef) {
1503
+ return;
1504
+ }
1505
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1506
+ if (i2 > -1) {
1507
+ deferredConnectedCallbacks.splice(i2, 1);
1508
+ }
1509
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1510
+ delete hostRef.$vnode$.$elm$;
1511
+ }
1512
+ });
1513
+ }
1514
+ componentOnReady() {
1515
+ var _a3;
1516
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1517
+ }
1518
+ };
1519
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1520
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1521
+ cmpTags.push(tagName);
1522
+ customElements2.define(
1523
+ tagName,
1524
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
1525
+ );
1526
+ }
1527
+ });
1528
+ });
1529
+ if (cmpTags.length > 0) {
1530
+ {
1531
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1532
+ }
1533
+ if (dataStyles.innerHTML.length) {
1534
+ dataStyles.setAttribute("data-styles", "");
1535
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1536
+ if (nonce != null) {
1537
+ dataStyles.setAttribute("nonce", nonce);
1538
+ }
1539
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1540
+ }
1541
+ }
1542
+ isBootstrapping = false;
1543
+ if (deferredConnectedCallbacks.length) {
1544
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1545
+ } else {
1546
+ {
1547
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1548
+ }
1549
+ }
1550
+ endBootstrap();
1551
+ };
1552
+
1553
+ // src/runtime/nonce.ts
1554
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
1555
+ function transformTag(tag) {
1556
+ return tag;
1557
+ }
1558
+
1559
+ exports.bootstrapLazy = bootstrapLazy;
1560
+ exports.getElement = getElement;
1561
+ exports.globalScripts = globalScripts;
1562
+ exports.h = h;
1563
+ exports.promiseResolve = promiseResolve;
1564
+ exports.registerInstance = registerInstance;
1565
+ exports.setNonce = setNonce;