@maggioli-design-system/mds-accordion-timer 3.3.0 → 3.4.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 (55) hide show
  1. package/dist/cjs/{index-b99075ba.js → index-0863c401.js} +152 -35
  2. package/dist/cjs/loader.cjs.js +2 -11
  3. package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
  4. package/dist/cjs/mds-accordion-timer.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +3 -3
  6. package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +4 -1
  7. package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.e2e.js +10 -0
  8. package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +2 -2
  9. package/dist/collection/dictionary/icon.js +2 -2
  10. package/dist/components/index.d.ts +5 -3
  11. package/dist/components/index.js +1 -2
  12. package/dist/components/mds-accordion-timer.js +1 -1
  13. package/dist/documentation.d.ts +361 -88
  14. package/dist/documentation.json +28 -7
  15. package/dist/esm/{index-bd689d6a.js → index-3fd8fd3d.js} +152 -35
  16. package/dist/esm/loader.js +3 -12
  17. package/dist/esm/mds-accordion-timer.entry.js +1 -1
  18. package/dist/esm/mds-accordion-timer.js +3 -3
  19. package/dist/esm-es5/index-3fd8fd3d.js +2 -0
  20. package/dist/esm-es5/loader.js +1 -1
  21. package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
  22. package/dist/esm-es5/mds-accordion-timer.js +1 -1
  23. package/dist/mds-accordion-timer/mds-accordion-timer.esm.js +1 -1
  24. package/dist/mds-accordion-timer/mds-accordion-timer.js +2 -6
  25. package/dist/mds-accordion-timer/p-0cc9df19.system.js +2 -0
  26. package/dist/mds-accordion-timer/p-1bc788d2.system.js +1 -0
  27. package/dist/mds-accordion-timer/{p-778834a9.entry.js → p-5046d553.entry.js} +1 -1
  28. package/dist/mds-accordion-timer/{p-2a65b768.system.entry.js → p-65172843.system.entry.js} +1 -1
  29. package/dist/mds-accordion-timer/p-d1be03fa.js +2 -0
  30. package/dist/stats.json +41 -33
  31. package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +3 -0
  32. package/dist/types/stencil-public-runtime.d.ts +32 -17
  33. package/documentation.json +369 -7
  34. package/loader/index.d.ts +2 -2
  35. package/package.json +4 -4
  36. package/readme.md +7 -0
  37. package/src/components/mds-accordion-timer/mds-accordion-timer.tsx +4 -0
  38. package/src/components/mds-accordion-timer/readme.md +7 -0
  39. package/src/fixtures/icons.json +20 -0
  40. package/src/fixtures/iconsauce.json +19 -0
  41. package/www/build/mds-accordion-timer.esm.js +1 -1
  42. package/www/build/mds-accordion-timer.js +2 -6
  43. package/www/build/p-0cc9df19.system.js +2 -0
  44. package/www/build/p-1bc788d2.system.js +1 -0
  45. package/www/build/{p-778834a9.entry.js → p-5046d553.entry.js} +1 -1
  46. package/www/build/{p-2a65b768.system.entry.js → p-65172843.system.entry.js} +1 -1
  47. package/www/build/p-d1be03fa.js +2 -0
  48. package/dist/esm/polyfills/css-shim.js +0 -1
  49. package/dist/esm-es5/index-bd689d6a.js +0 -2
  50. package/dist/mds-accordion-timer/p-5029b85d.system.js +0 -2
  51. package/dist/mds-accordion-timer/p-5e09eed0.system.js +0 -1
  52. package/dist/mds-accordion-timer/p-a7b74010.js +0 -2
  53. package/www/build/p-5029b85d.system.js +0 -2
  54. package/www/build/p-5e09eed0.system.js +0 -1
  55. package/www/build/p-a7b74010.js +0 -2
@@ -27,6 +27,13 @@ const uniqueTime = (key, measureText) => {
27
27
  };
28
28
  const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
29
29
  const isDef = (v) => v != null;
30
+ /**
31
+ * Check whether a value is a 'complex type', defined here as an object or a
32
+ * function.
33
+ *
34
+ * @param o the value to check
35
+ * @returns whether it's a complex type or not
36
+ */
30
37
  const isComplexType = (o) => {
31
38
  // https://jsperf.com/typeof-fn-object/5
32
39
  o = typeof o;
@@ -195,9 +202,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
195
202
  }
196
203
  styles.set(scopeId, style);
197
204
  };
198
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
205
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
199
206
  var _a;
200
- let scopeId = getScopeId(cmpMeta);
207
+ const scopeId = getScopeId(cmpMeta);
201
208
  const style = styles.get(scopeId);
202
209
  // if an element is NOT connected then getRootNode() will return the wrong root node
203
210
  // so the fallback is to always use the document for the root node in those cases
@@ -212,10 +219,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
212
219
  }
213
220
  if (!appliedStyles.has(scopeId)) {
214
221
  {
215
- {
216
- styleElm = doc.createElement('style');
217
- styleElm.innerHTML = style;
218
- }
222
+ styleElm = doc.createElement('style');
223
+ styleElm.innerHTML = style;
219
224
  // Apply CSP nonce to the style tag if it exists
220
225
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
221
226
  if (nonce != null) {
@@ -333,15 +338,16 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
333
338
  * @param vnodes a list of virtual DOM nodes to remove
334
339
  * @param startIdx the index at which to start removing nodes (inclusive)
335
340
  * @param endIdx the index at which to stop removing nodes (inclusive)
336
- * @param vnode a VNode
337
- * @param elm an element
338
341
  */
339
- const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
340
- for (; startIdx <= endIdx; ++startIdx) {
341
- if ((vnode = vnodes[startIdx])) {
342
- elm = vnode.$elm$;
343
- // remove the vnode's element from the dom
344
- elm.remove();
342
+ const removeVnodes = (vnodes, startIdx, endIdx) => {
343
+ for (let index = startIdx; index <= endIdx; ++index) {
344
+ const vnode = vnodes[index];
345
+ if (vnode) {
346
+ const elm = vnode.$elm$;
347
+ if (elm) {
348
+ // remove the vnode's element from the dom
349
+ elm.remove();
350
+ }
345
351
  }
346
352
  }
347
353
  };
@@ -581,12 +587,39 @@ const patch = (oldVNode, newVNode) => {
581
587
  * @param hostRef data needed to root and render the virtual DOM tree, such as
582
588
  * the DOM node into which it should be rendered.
583
589
  * @param renderFnResults the virtual DOM nodes to be rendered
590
+ * @param isInitialLoad whether or not this is the first call after page load
584
591
  */
585
- const renderVdom = (hostRef, renderFnResults) => {
592
+ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
586
593
  const hostElm = hostRef.$hostElement$;
587
594
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
595
+ // if `renderFnResults` is a Host node then we can use it directly. If not,
596
+ // we need to call `h` again to wrap the children of our component in a
597
+ // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
598
+ // implicitly that the top-level vdom node is 1) an only child and 2)
599
+ // contains attrs that need to be set on the host element.
588
600
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
589
601
  hostTagName = hostElm.tagName;
602
+ // On the first render and *only* on the first render we want to check for
603
+ // any attributes set on the host element which are also set on the vdom
604
+ // node. If we find them, we override the value on the VDom node attrs with
605
+ // the value from the host element, which allows developers building apps
606
+ // with Stencil components to override e.g. the `role` attribute on a
607
+ // component even if it's already set on the `Host`.
608
+ if (isInitialLoad && rootVnode.$attrs$) {
609
+ for (const key of Object.keys(rootVnode.$attrs$)) {
610
+ // We have a special implementation in `setAccessor` for `style` and
611
+ // `class` which reconciles values coming from the VDom with values
612
+ // already present on the DOM element, so we don't want to override those
613
+ // attributes on the VDom tree with values from the host element if they
614
+ // are present.
615
+ //
616
+ // Likewise, `ref` and `key` are special internal values for the Stencil
617
+ // runtime and we don't want to override those either.
618
+ if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
619
+ rootVnode.$attrs$[key] = hostElm[key];
620
+ }
621
+ }
622
+ }
590
623
  rootVnode.$tag$ = null;
591
624
  rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
592
625
  hostRef.$vnode$ = rootVnode;
@@ -617,24 +650,85 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
617
650
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
618
651
  return writeTask(dispatch) ;
619
652
  };
653
+ /**
654
+ * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
655
+ * component lifecycle methods like `componentWillLoad` as well as
656
+ * {@link updateComponent}, which will kick off the virtual DOM re-render.
657
+ *
658
+ * @param hostRef a reference to a host DOM node
659
+ * @param isInitialLoad whether we're on the initial load or not
660
+ * @returns an empty Promise which is used to enqueue a series of operations for
661
+ * the component
662
+ */
620
663
  const dispatchHooks = (hostRef, isInitialLoad) => {
621
664
  const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
622
665
  const instance = hostRef.$lazyInstance$ ;
623
- let promise;
666
+ // We're going to use this variable together with `enqueue` to implement a
667
+ // little promise-based queue. We start out with it `undefined`. When we add
668
+ // the first function to the queue we'll set this variable to be that
669
+ // function's return value. When we attempt to add subsequent values to the
670
+ // queue we'll check that value and, if it was a `Promise`, we'll then chain
671
+ // the new function off of that `Promise` using `.then()`. This will give our
672
+ // queue two nice properties:
673
+ //
674
+ // 1. If all functions added to the queue are synchronous they'll be called
675
+ // synchronously right away.
676
+ // 2. If all functions added to the queue are asynchronous they'll all be
677
+ // called in order after `dispatchHooks` exits.
678
+ let maybePromise;
624
679
  if (isInitialLoad) {
625
680
  {
626
681
  hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
627
682
  if (hostRef.$queuedListeners$) {
628
683
  hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
629
- hostRef.$queuedListeners$ = null;
684
+ hostRef.$queuedListeners$ = undefined;
630
685
  }
631
686
  }
632
687
  }
633
688
  endSchedule();
634
- return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
689
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
635
690
  };
691
+ /**
692
+ * This function uses a Promise to implement a simple first-in, first-out queue
693
+ * of functions to be called.
694
+ *
695
+ * The queue is ordered on the basis of the first argument. If it's
696
+ * `undefined`, then nothing is on the queue yet, so the provided function can
697
+ * be called synchronously (although note that this function may return a
698
+ * `Promise`). The idea is that then the return value of that enqueueing
699
+ * operation is kept around, so that if it was a `Promise` then subsequent
700
+ * functions can be enqueued by calling this function again with that `Promise`
701
+ * as the first argument.
702
+ *
703
+ * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
704
+ * @param fn a function to enqueue
705
+ * @returns either a `Promise` or the return value of the provided function
706
+ */
707
+ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
708
+ /**
709
+ * Check that a value is a `Promise`. To check, we first see if the value is an
710
+ * instance of the `Promise` global. In a few circumstances, in particular if
711
+ * the global has been overwritten, this is could be misleading, so we also do
712
+ * a little 'duck typing' check to see if the `.then` property of the value is
713
+ * defined and a function.
714
+ *
715
+ * @param maybePromise it might be a promise!
716
+ * @returns whether it is or not
717
+ */
718
+ const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
719
+ (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
720
+ /**
721
+ * Update a component given reference to its host elements and so on.
722
+ *
723
+ * @param hostRef an object containing references to the element's host node,
724
+ * VDom nodes, and other metadata
725
+ * @param instance a reference to the underlying host element where it will be
726
+ * rendered
727
+ * @param isInitialLoad whether or not this function is being called as part of
728
+ * the first render cycle
729
+ */
636
730
  const updateComponent = async (hostRef, instance, isInitialLoad) => {
637
- // updateComponent
731
+ var _a;
638
732
  const elm = hostRef.$hostElement$;
639
733
  const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
640
734
  const rc = elm['s-rc'];
@@ -644,7 +738,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
644
738
  }
645
739
  const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
646
740
  {
647
- callRender(hostRef, instance);
741
+ callRender(hostRef, instance, elm, isInitialLoad);
648
742
  }
649
743
  if (rc) {
650
744
  // ok, so turns out there are some child host elements
@@ -656,7 +750,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
656
750
  endRender();
657
751
  endUpdate();
658
752
  {
659
- const childrenPromises = elm['s-p'];
753
+ const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
660
754
  const postUpdate = () => postUpdateComponent(hostRef);
661
755
  if (childrenPromises.length === 0) {
662
756
  postUpdate();
@@ -668,7 +762,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
668
762
  }
669
763
  }
670
764
  };
671
- const callRender = (hostRef, instance, elm) => {
765
+ /**
766
+ * Handle making the call to the VDom renderer with the proper context given
767
+ * various build variables
768
+ *
769
+ * @param hostRef an object containing references to the element's host node,
770
+ * VDom nodes, and other metadata
771
+ * @param instance a reference to the underlying host element where it will be
772
+ * rendered
773
+ * @param elm the Host element for the component
774
+ * @param isInitialLoad whether or not this function is being called as part of
775
+ * @returns an empty promise
776
+ */
777
+ const callRender = (hostRef, instance, elm, isInitialLoad) => {
672
778
  try {
673
779
  instance = instance.render() ;
674
780
  {
@@ -683,7 +789,7 @@ const callRender = (hostRef, instance, elm) => {
683
789
  // or we need to update the css class/attrs on the host element
684
790
  // DOM WRITE!
685
791
  {
686
- renderVdom(hostRef, instance);
792
+ renderVdom(hostRef, instance, isInitialLoad);
687
793
  }
688
794
  }
689
795
  }
@@ -754,9 +860,6 @@ const safeCall = (instance, method, arg) => {
754
860
  }
755
861
  return undefined;
756
862
  };
757
- const then = (promise, thenFn) => {
758
- return promise && promise.then ? promise.then(thenFn) : thenFn();
759
- };
760
863
  const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
761
864
  ;
762
865
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
@@ -843,12 +946,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
843
946
  // customElements.define('my-component', MyComponent);
844
947
  // </script>
845
948
  // ```
846
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
949
+ // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
847
950
  // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
848
951
  // to the value that was set inline i.e. "some-value" from above example. When
849
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
952
+ // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
850
953
  //
851
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
954
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
852
955
  // by connectedCallback as this attributeChangedCallback will not fire.
853
956
  //
854
957
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
@@ -887,9 +990,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
887
990
  const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
888
991
  // initializeComponent
889
992
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
993
+ // Let the runtime know that the component has been initialized
994
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
890
995
  {
891
- // we haven't initialized this element yet
892
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
893
996
  // lazy loaded components
894
997
  // request the component's implementation to be
895
998
  // wired up with the host element
@@ -953,6 +1056,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
953
1056
  schedule();
954
1057
  }
955
1058
  };
1059
+ const fireConnectedCallback = (instance) => {
1060
+ };
956
1061
  const connectedCallback = (elm) => {
957
1062
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
958
1063
  const hostRef = getHostRef(elm);
@@ -996,22 +1101,34 @@ const connectedCallback = (elm) => {
996
1101
  // reattach any event listeners to the host
997
1102
  // since they would have been removed when disconnected
998
1103
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1104
+ // fire off connectedCallback() on component instance
1105
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1106
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1107
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1108
+ }
999
1109
  }
1000
1110
  endConnected();
1001
1111
  }
1002
1112
  };
1003
- const disconnectedCallback = (elm) => {
1113
+ const disconnectInstance = (instance) => {
1114
+ {
1115
+ safeCall(instance, 'disconnectedCallback');
1116
+ }
1117
+ };
1118
+ const disconnectedCallback = async (elm) => {
1004
1119
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1005
1120
  const hostRef = getHostRef(elm);
1006
- const instance = hostRef.$lazyInstance$ ;
1007
1121
  {
1008
1122
  if (hostRef.$rmListeners$) {
1009
1123
  hostRef.$rmListeners$.map((rmListener) => rmListener());
1010
1124
  hostRef.$rmListeners$ = undefined;
1011
1125
  }
1012
1126
  }
1013
- {
1014
- safeCall(instance, 'disconnectedCallback');
1127
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1128
+ disconnectInstance(hostRef.$lazyInstance$);
1129
+ }
1130
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1131
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1015
1132
  }
1016
1133
  }
1017
1134
  };
@@ -1,18 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-bd689d6a.js';
2
- export { s as setNonce } from './index-bd689d6a.js';
3
-
4
- /*
5
- Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
6
- */
7
- const patchEsm = () => {
8
- return promiseResolve();
9
- };
1
+ import { b as bootstrapLazy } from './index-3fd8fd3d.js';
2
+ export { s as setNonce } from './index-3fd8fd3d.js';
10
3
 
11
4
  const defineCustomElements = (win, options) => {
12
- if (typeof window === 'undefined') return Promise.resolve();
13
- return patchEsm().then(() => {
5
+ if (typeof window === 'undefined') return undefined;
14
6
  return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]], options);
15
- });
16
7
  };
17
8
 
18
9
  export { defineCustomElements };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-bd689d6a.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-3fd8fd3d.js';
2
2
 
3
3
  const mdsAccordionTimerCss = ":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";
4
4
 
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-bd689d6a.js';
2
- export { s as setNonce } from './index-bd689d6a.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-3fd8fd3d.js';
2
+ export { s as setNonce } from './index-3fd8fd3d.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.2.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -0,0 +1,2 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):a(e.value).then(i,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(n=0)),n)try{if(r=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];a=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};var NAMESPACE="mds-accordion-timer";var scopeId;var hostTagName;var queuePending=false;var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var t,n,r;return(r=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&r!==void 0?r:undefined}var h=function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var a=null;var o=false;var i=false;var s=[];var l=function(t){for(var n=0;n<t.length;n++){a=t[n];if(Array.isArray(a)){l(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(o&&i){s[s.length-1].$text$+=a}else{s.push(o?newVNode(null,a):a)}i=o}}};l(n);var u=newVNode(e,null);u.$attrs$=t;if(s.length>0){u.$children$=s}return u};var newVNode=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&2){return parseFloat(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,n){var r=getElement(e);return{emit:function(e){return emitEvent(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}};var emitEvent=function(e,t,n){var r=plt.ce(t,n);e.dispatchEvent(r);return r};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,n){var r=styles.get(e);if(supportsConstructableStylesheets&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}styles.set(e,r)};var addStyle=function(e,t,n){var r;var a=getScopeId(t);var o=styles.get(a);e=e.nodeType===11?e:doc;if(o){if(typeof o==="string"){e=e.head||e;var i=rootAppliedStyles.get(e);var s=void 0;if(!i){rootAppliedStyles.set(e,i=new Set)}if(!i.has(a)){{s=doc.createElement("style");s.innerHTML=o;var l=(r=plt.$nonce$)!==null&&r!==void 0?r:queryNonceMetaTagContent(doc);if(l!=null){s.setAttribute("nonce",l)}e.insertBefore(s,e.querySelector("link"))}if(i){i.add(a)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var o=addStyle(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=o;n.classList.add(o+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var createElm=function(e,t,n,r){var a=t.$children$[n];var o=0;var i;var s;{i=a.$elm$=doc.createElement(a.$tag$);if(isDef(scopeId)&&i["s-si"]!==scopeId){i.classList.add(i["s-si"]=scopeId)}if(a.$children$){for(o=0;o<a.$children$.length;++o){s=createElm(e,a,o);if(s){i.appendChild(s)}}}}return i};var addVnodes=function(e,t,n,r,a,o){var i=e;var s;if(i.shadowRoot&&i.tagName===hostTagName){i=i.shadowRoot}for(;a<=o;++a){if(r[a]){s=createElm(null,n,a);if(s){r[a].$elm$=s;i.insertBefore(s,t)}}}};var removeVnodes=function(e,t,n){for(var r=t;r<=n;++r){var a=e[r];if(a){var o=a.$elm$;if(o){o.remove()}}}};var updateChildren=function(e,t,n,r){var a=0;var o=0;var i=t.length-1;var s=t[0];var l=t[i];var u=r.length-1;var c=r[0];var f=r[u];var $;while(a<=i&&o<=u){if(s==null){s=t[++a]}else if(l==null){l=t[--i]}else if(c==null){c=r[++o]}else if(f==null){f=r[--u]}else if(isSameVnode(s,c)){patch(s,c);s=t[++a];c=r[++o]}else if(isSameVnode(l,f)){patch(l,f);l=t[--i];f=r[--u]}else if(isSameVnode(s,f)){patch(s,f);e.insertBefore(s.$elm$,l.$elm$.nextSibling);s=t[++a];f=r[--u]}else if(isSameVnode(l,c)){patch(l,c);e.insertBefore(l.$elm$,s.$elm$);l=t[--i];c=r[++o]}else{{$=createElm(t&&t[o],n,o);c=r[++o]}if($){{s.$elm$.parentNode.insertBefore($,s.$elm$)}}}}if(a>i){addVnodes(e,r[u+1]==null?null:r[u+1].$elm$,n,r,o,u)}else if(o>u){removeVnodes(t,a,i)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){return true}return false};var patch=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var a=t.$children$;{if(r!==null&&a!==null){updateChildren(n,r,t,a)}else if(a!==null){addVnodes(n,null,t,a,0,a.length-1)}else if(r!==null){removeVnodes(r,0,r.length-1)}}};var renderVdom=function(e,t,n){if(n===void 0){n=false}var r=e.$hostElement$;var a=e.$vnode$||newVNode(null,null);var o=isHost(t)?t:h(null,null,t);hostTagName=r.tagName;if(n&&o.$attrs$){for(var i=0,s=Object.keys(o.$attrs$);i<s.length;i++){var l=s[i];if(r.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){o.$attrs$[l]=r[l]}}}o.$tag$=null;o.$flags$|=4;e.$vnode$=o;o.$elm$=a.$elm$=r.shadowRoot||r;{scopeId=r["s-sc"]}patch(a,o)};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var n=function(){return dispatchHooks(e,t)};return writeTask(n)};var dispatchHooks=function(e,t){var n=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var r=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return safeCall(r,t,n)}));e.$queuedListeners$=undefined}}}n();return enqueue(a,(function(){return updateComponent(e,r,t)}))};var enqueue=function(e,t){return isPromisey(e)?e.then(t):t()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){var r,a,o,i,s,l,u;return __generator(this,(function(c){a=e.$hostElement$;o=createTime("update",e.$cmpMeta$.$tagName$);i=a["s-rc"];if(n){attachStyles(e)}s=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t,a,n)}if(i){i.map((function(e){return e()}));a["s-rc"]=undefined}s();o();{l=(r=a["s-p"])!==null&&r!==void 0?r:[];u=function(){return postUpdateComponent(e)};if(l.length===0){u()}else{Promise.all(l).then(u);e.$flags$|=4;l.length=0}}return[2]}))}))};var callRender=function(e,t,n,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t,r)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=createTime("postUpdate",t);var a=e.$lazyInstance$;var o=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(n)}{safeCall(a,"componentDidLoad")}r();{e.$onReadyResolve$(n);if(!o){appDidLoad()}}}else{r()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,n){if(e&&e[t]){try{return e[t](n)}catch(e){consoleError(e)}}return undefined};var addHydratedFlag=function(e){return e.setAttribute("hydrated","")};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,n,r){var a=getHostRef(e);var o=a.$instanceValues$.get(t);var i=a.$flags$;var s=a.$lazyInstance$;n=parsePropertyValue(n,r.$members$[t][0]);var l=Number.isNaN(o)&&Number.isNaN(n);var u=n!==o&&!l;if((!(i&8)||o===undefined)&&u){a.$instanceValues$.set(t,n);if(s){if((i&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,n){if(t.$members$){var r=Object.entries(t.$members$);var a=e.prototype;r.map((function(e){var r=e[0],o=e[1][0];if(o&31||n&2&&o&32){Object.defineProperty(a,r,{get:function(){return getValue(this,r)},set:function(e){setValue(this,r,e,t)},configurable:true,enumerable:true})}}));if(n&1){var o=new Map;a.attributeChangedCallback=function(e,t,n){var r=this;plt.jmp((function(){var t=o.get(e);if(r.hasOwnProperty(t)){n=r[t];delete r[t]}else if(a.hasOwnProperty(t)&&typeof r[t]==="number"&&r[t]==n){return}r[t]=n===null&&typeof r[t]==="boolean"?false:n}))};e.observedAttributes=r.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var t=e[0],n=e[1];var r=n[1]||t;o.set(r,t);return r}))}}return e};var initializeComponent=function(e,t,n,r,a){return __awaiter(void 0,void 0,void 0,(function(){var e,r,o,i,s,l,u;return __generator(this,(function(c){switch(c.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;a=loadModule(n);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=c.sent();e();c.label=2;case 2:if(!a.isProxied){proxyComponent(a,n,2);a.isProxied=true}r=createTime("createInstance",n.$tagName$);{t.$flags$|=8}try{new a(t)}catch(e){consoleError(e)}{t.$flags$&=~8}r();if(a.style){o=a.style;i=getScopeId(n);if(!styles.has(i)){s=createTime("registerStyles",n.$tagName$);registerStyle(i,o,!!(n.$flags$&1));s()}}c.label=3;case 3:l=t.$ancestorComponent$;u=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(u)}else{u()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=t.$cmpMeta$;var r=createTime("connectedCallback",n.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{initializeComponent(e,t,n)}}else{addHostEventListeners(e,t,n.$listeners$);if(t===null||t===void 0?void 0:t.$lazyInstance$);else if(t===null||t===void 0?void 0:t.$onReadyPromise$){t.$onReadyPromise$.then((function(){return fireConnectedCallback()}))}}r()}};var disconnectInstance=function(e){{safeCall(e,"disconnectedCallback")}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t;return __generator(this,(function(n){if((plt.$flags$&1)===0){t=getHostRef(e);{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}if(t===null||t===void 0?void 0:t.$lazyInstance$){disconnectInstance(t.$lazyInstance$)}else if(t===null||t===void 0?void 0:t.$onReadyPromise$){t.$onReadyPromise$.then((function(){return disconnectInstance(t.$lazyInstance$)}))}}return[2]}))}))};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var n;var r=createTime();var a=[];var o=t.exclude||[];var i=win.customElements;var s=doc.head;var l=s.querySelector("meta[charset]");var u=doc.createElement("style");var c=[];var f;var $=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(t){var n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{n.$members$=t[2]}{n.$listeners$=t[3]}var r=n.$tagName$;var s=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;t=r;registerHost(t,n);if(n.$flags$&1){{{t.attachShadow({mode:"open"})}}}return r}t.prototype.connectedCallback=function(){var e=this;if(f){clearTimeout(f);f=null}if($){c.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);n.$lazyBundleId$=e[0];if(!o.includes(r)&&!i.get(r)){a.push(r);i.define(r,proxyComponent(s,n,1))}}))}));{u.innerHTML=a+HYDRATED_CSS;u.setAttribute("data-styles","");var d=(n=plt.$nonce$)!==null&&n!==void 0?n:queryNonceMetaTagContent(doc);if(d!=null){u.setAttribute("nonce",d)}s.insertBefore(u,l?l.nextSibling:s.firstChild)}$=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return f=setTimeout(appDidLoad,30)}))}}r()};var addHostEventListeners=function(e,t,n,r){if(n){n.map((function(n){var r=n[0],a=n[1],o=n[2];var i=e;var s=hostListenerProxy(t,o);var l=hostListenerOpts(r);plt.ael(i,a,s,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return plt.rel(i,a,s,l)}))}))}};var hostListenerProxy=function(e,t){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[t](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}}}catch(e){consoleError(e)}}};var hostListenerOpts=function(e){return(e&2)!==0};var setNonce=function(e){return plt.$nonce$=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,n,t.$listeners$);return hostRefs.set(e,n)};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var o=cmpModules.get(a);if(o){return o[r]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[r]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(n){e.push(n);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,bootstrapLazy as b,createEvent as c,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-bd689d6a.js";export{s as setNonce}from"./index-bd689d6a.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,o){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]],o)}))};export{defineCustomElements};
1
+ import{b as bootstrapLazy}from"./index-3fd8fd3d.js";export{s as setNonce}from"./index-3fd8fd3d.js";var defineCustomElements=function(e,o){if(typeof window==="undefined")return undefined;return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]],o)};export{defineCustomElements};
@@ -1 +1 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-bd689d6a.js";var mdsAccordionTimerCss=":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";var MdsAccordionTimer=function(){function e(e){var t=this;registerInstance(this,e);this.changeEvent=createEvent(this,"mdsAccordionTimerChange",7);this.clearIntervals=function(){window.clearInterval(t.timer);window.clearInterval(t.timeChecker);t.timeChecker=0};this.progress=function(){return Math.abs(t.remainingTime()/t.duration-1)};this.addTimeListener=function(){t.timeChecker=window.setInterval((function(){var e=t.progress();if(t.selectedItem!==undefined){t.selectedItem.progress=e}if(e===1){t.selectedItem.progress=0;t.startNext()}}),100)};this.beginningTime=function(){t.timeStarted=(new Date).getTime();return t.timeStarted};this.remainingTime=function(){var e=t.selectedItemDurationTime-((new Date).getTime()-t.timeStarted);return e>=0?e:0};this.setSelectedItem=function(e){t.children.forEach((function(i,r){if(r===e){i.selected=true;t.selectedItem=i;t.changeEvent.emit()}else{i.selected=false}}))};this.startNext=function(){var e=t.selectedItem.uuid+1>t.children.length-1?0:t.selectedItem.uuid+1;t.setSelectedItem(e);t.startTimer()};this.startTimer=function(){t.clearIntervals();t.time=t.beginningTime();t.selectedItemDurationTime=t.duration;t.addTimeListener()};this.playTimer=function(){t.beginningTime();t.addTimeListener()};this.pauseTimer=function(){t.clearIntervals();t.selectedItemDurationTime=t.remainingTime()};this.stopTimer=function(){t.clearIntervals()};this.time=0;this.duration=1e4}e.prototype.componentDidLoad=function(){var e=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(t,i){t.uuid=i;if(t.selected){e.selectedItem=t}}));if(this.selectedItem!==undefined){this.startTimer()}};e.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};e.prototype.onClickActive=function(e){if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(e.detail.uuid);this.startTimer();this.pauseTimer()};e.prototype.onMouseEnterSelect=function(){this.pauseTimer()};e.prototype.onMouseLeaveSelect=function(){if(this.timeChecker===0){this.playTimer()}};e.prototype.render=function(){return h(Host,null,h("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsAccordionTimer.style=mdsAccordionTimerCss;export{MdsAccordionTimer as mds_accordion_timer};
1
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-3fd8fd3d.js";var mdsAccordionTimerCss=":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";var MdsAccordionTimer=function(){function e(e){var t=this;registerInstance(this,e);this.changeEvent=createEvent(this,"mdsAccordionTimerChange",7);this.clearIntervals=function(){window.clearInterval(t.timer);window.clearInterval(t.timeChecker);t.timeChecker=0};this.progress=function(){return Math.abs(t.remainingTime()/t.duration-1)};this.addTimeListener=function(){t.timeChecker=window.setInterval((function(){var e=t.progress();if(t.selectedItem!==undefined){t.selectedItem.progress=e}if(e===1){t.selectedItem.progress=0;t.startNext()}}),100)};this.beginningTime=function(){t.timeStarted=(new Date).getTime();return t.timeStarted};this.remainingTime=function(){var e=t.selectedItemDurationTime-((new Date).getTime()-t.timeStarted);return e>=0?e:0};this.setSelectedItem=function(e){t.children.forEach((function(i,r){if(r===e){i.selected=true;t.selectedItem=i;t.changeEvent.emit()}else{i.selected=false}}))};this.startNext=function(){var e=t.selectedItem.uuid+1>t.children.length-1?0:t.selectedItem.uuid+1;t.setSelectedItem(e);t.startTimer()};this.startTimer=function(){t.clearIntervals();t.time=t.beginningTime();t.selectedItemDurationTime=t.duration;t.addTimeListener()};this.playTimer=function(){t.beginningTime();t.addTimeListener()};this.pauseTimer=function(){t.clearIntervals();t.selectedItemDurationTime=t.remainingTime()};this.stopTimer=function(){t.clearIntervals()};this.time=0;this.duration=1e4}e.prototype.componentDidLoad=function(){var e=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(t,i){t.uuid=i;if(t.selected){e.selectedItem=t}}));if(this.selectedItem!==undefined){this.startTimer()}};e.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};e.prototype.onClickActive=function(e){if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(e.detail.uuid);this.startTimer();this.pauseTimer()};e.prototype.onMouseEnterSelect=function(){this.pauseTimer()};e.prototype.onMouseLeaveSelect=function(){if(this.timeChecker===0){this.playTimer()}};e.prototype.render=function(){return h(Host,null,h("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsAccordionTimer.style=mdsAccordionTimerCss;export{MdsAccordionTimer as mds_accordion_timer};
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-bd689d6a.js";export{s as setNonce}from"./index-bd689d6a.js";var patchBrowser=function(){var e=import.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return promiseResolve(r)};patchBrowser().then((function(e){return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]],e)}));
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-3fd8fd3d.js";export{s as setNonce}from"./index-3fd8fd3d.js";var patchBrowser=function(){var e=import.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return promiseResolve(r)};patchBrowser().then((function(e){return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]],e)}));
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-a7b74010.js";export{s as setNonce}from"./p-a7b74010.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-778834a9",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]],e)));
1
+ import{p as e,b as o}from"./p-d1be03fa.js";export{s as setNonce}from"./p-d1be03fa.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-5046d553",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]],e)));
@@ -115,15 +115,11 @@ DOMTokenList
115
115
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
116
  var start = function() {
117
117
  // if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
118
- var url = new URL('./p-5e09eed0.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
118
+ var url = new URL('./p-1bc788d2.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
119
119
  System.import(url.href);
120
120
  };
121
121
 
122
- if (window.__cssshim) {
123
- window.__cssshim.i().then(start);
124
- } else {
125
- start();
126
- }
122
+ start();
127
123
 
128
124
  // Note: using .call(window) here because the self-executing function needs
129
125
  // to be scoped to the window object for the ES6Promise polyfill to work
@@ -0,0 +1,2 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(n,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r))e[r]=n[r]};return e(n,r)};return function(n,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,n,r,t){function a(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{l(t.next(e))}catch(e){i(e)}}function u(e){try{l(t["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,u)}l((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,a,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(n){return l([e,n])}}function l(u){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(r=0)),r)try{if(t=1,a&&(i=u[0]&2?a["return"]:u[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;if(a=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;a=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1];i=u;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(u);break}if(i[2])r.ops.pop();r.trys.pop();continue}u=n.call(e,r)}catch(e){u=[6,e];a=0}finally{t=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,n,r){if(r||arguments.length===2)for(var t=0,a=n.length,i;t<a;t++){if(i||!(t in n)){if(!i)i=Array.prototype.slice.call(n,0,t);i[t]=n[t]}}return e.concat(i||Array.prototype.slice.call(n))};System.register([],(function(e,n){"use strict";return{execute:function(){var r=this;var t="mds-accordion-timer";var a;var i;var o=false;var u=function(e,n){if(n===void 0){n=""}{return function(){return}}};var l=function(e,n){{return function(){return}}};var s="{visibility:hidden}[hydrated]{visibility:inherit}";var f=function(e){return e!=null};var c=function(e){e=typeof e;return e==="object"||e==="function"};function $(e){var n,r,t;return(t=(r=(n=e.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&t!==void 0?t:undefined}var v=e("h",(function(e,n){var r=[];for(var t=2;t<arguments.length;t++){r[t-2]=arguments[t]}var a=null;var i=false;var o=false;var u=[];var l=function(n){for(var r=0;r<n.length;r++){a=n[r];if(Array.isArray(a)){l(a)}else if(a!=null&&typeof a!=="boolean"){if(i=typeof e!=="function"&&!c(a)){a=String(a)}if(i&&o){u[u.length-1].$text$+=a}else{u.push(i?d(null,a):a)}o=i}}};l(r);var s=d(e,null);s.$attrs$=n;if(u.length>0){s.$children$=u}return s}));var d=function(e,n){var r={$flags$:0,$tag$:e,$text$:n,$elm$:null,$children$:null};return r};var h=e("H",{});var p=function(e){return e&&e.$tag$===h};var m=function(e,n){if(e!=null&&!c(e)){if(n&2){return parseFloat(e)}return e}return e};var y=e("g",(function(e){return ae(e).$hostElement$}));var g=e("c",(function(e,n,r){var t=y(e);return{emit:function(e){return b(t,n,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}}));var b=function(e,n,r){var t=ve.ce(n,r);e.dispatchEvent(t);return t};var w=new WeakMap;var _=function(e,n,r){var t=fe.get(e);if(he&&r){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}fe.set(e,t)};var S=function(e,n,r){var t;var a=N(n);var i=fe.get(a);e=e.nodeType===11?e:$e;if(i){if(typeof i==="string"){e=e.head||e;var o=w.get(e);var u=void 0;if(!o){w.set(e,o=new Set)}if(!o.has(a)){{u=$e.createElement("style");u.innerHTML=i;var l=(t=ve.$nonce$)!==null&&t!==void 0?t:$($e);if(l!=null){u.setAttribute("nonce",l)}e.insertBefore(u,e.querySelector("link"))}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var R=function(e){var n=e.$cmpMeta$;var r=e.$hostElement$;var t=n.$flags$;var a=u("attachStyles",n.$tagName$);var i=S(r.shadowRoot?r.shadowRoot:r.getRootNode(),n);if(t&10){r["s-sc"]=i;r.classList.add(i+"-h")}a()};var N=function(e,n){return"sc-"+e.$tagName$};var P=function(e,n,r,t){var i=n.$children$[r];var o=0;var u;var l;{u=i.$elm$=$e.createElement(i.$tag$);if(f(a)&&u["s-si"]!==a){u.classList.add(u["s-si"]=a)}if(i.$children$){for(o=0;o<i.$children$.length;++o){l=P(e,i,o);if(l){u.appendChild(l)}}}}return u};var E=function(e,n,r,t,a,o){var u=e;var l;if(u.shadowRoot&&u.tagName===i){u=u.shadowRoot}for(;a<=o;++a){if(t[a]){l=P(null,r,a);if(l){t[a].$elm$=l;u.insertBefore(l,n)}}}};var L=function(e,n,r){for(var t=n;t<=r;++t){var a=e[t];if(a){var i=a.$elm$;if(i){i.remove()}}}};var C=function(e,n,r,t){var a=0;var i=0;var o=n.length-1;var u=n[0];var l=n[o];var s=t.length-1;var f=t[0];var c=t[s];var $;while(a<=o&&i<=s){if(u==null){u=n[++a]}else if(l==null){l=n[--o]}else if(f==null){f=t[++i]}else if(c==null){c=t[--s]}else if(x(u,f)){A(u,f);u=n[++a];f=t[++i]}else if(x(l,c)){A(l,c);l=n[--o];c=t[--s]}else if(x(u,c)){A(u,c);e.insertBefore(u.$elm$,l.$elm$.nextSibling);u=n[++a];c=t[--s]}else if(x(l,f)){A(l,f);e.insertBefore(l.$elm$,u.$elm$);l=n[--o];f=t[++i]}else{{$=P(n&&n[i],r,i);f=t[++i]}if($){{u.$elm$.parentNode.insertBefore($,u.$elm$)}}}}if(a>o){E(e,t[s+1]==null?null:t[s+1].$elm$,r,t,i,s)}else if(i>s){L(n,a,o)}};var x=function(e,n){if(e.$tag$===n.$tag$){return true}return false};var A=function(e,n){var r=n.$elm$=e.$elm$;var t=e.$children$;var a=n.$children$;{if(t!==null&&a!==null){C(r,t,n,a)}else if(a!==null){E(r,null,n,a,0,a.length-1)}else if(t!==null){L(t,0,t.length-1)}}};var k=function(e,n,r){if(r===void 0){r=false}var t=e.$hostElement$;var o=e.$vnode$||d(null,null);var u=p(n)?n:v(null,null,n);i=t.tagName;if(r&&u.$attrs$){for(var l=0,s=Object.keys(u.$attrs$);l<s.length;l++){var f=s[l];if(t.hasAttribute(f)&&!["key","ref","style","class"].includes(f)){u.$attrs$[f]=t[f]}}}u.$tag$=null;u.$flags$|=4;e.$vnode$=u;u.$elm$=o.$elm$=t.shadowRoot||t;{a=t["s-sc"]}A(o,u)};var M=function(e,n){if(n&&!e.$onRenderResolve$&&n["s-p"]){n["s-p"].push(new Promise((function(n){return e.$onRenderResolve$=n})))}};var j=function(e,n){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}M(e,e.$ancestorComponent$);var r=function(){return O(e,n)};return _e(r)};var O=function(e,n){var r=u("scheduleUpdate",e.$cmpMeta$.$tagName$);var t=e.$lazyInstance$;var a;if(n){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var n=e[0],r=e[1];return H(t,n,r)}));e.$queuedListeners$=undefined}}}r();return I(a,(function(){return q(e,t,n)}))};var I=function(e,n){return z(e)?e.then(n):n()};var z=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var q=function(e,n,t){return __awaiter(r,void 0,void 0,(function(){var r,a,i,o,l,s,f;return __generator(this,(function(c){a=e.$hostElement$;i=u("update",e.$cmpMeta$.$tagName$);o=a["s-rc"];if(t){R(e)}l=u("render",e.$cmpMeta$.$tagName$);{B(e,n,a,t)}if(o){o.map((function(e){return e()}));a["s-rc"]=undefined}l();i();{s=(r=a["s-p"])!==null&&r!==void 0?r:[];f=function(){return T(e)};if(s.length===0){f()}else{Promise.all(s).then(f);e.$flags$|=4;s.length=0}}return[2]}))}))};var B=function(e,n,r,t){try{n=n.render();{e.$flags$&=~16}{e.$flags$|=2}{{{k(e,n,t)}}}}catch(n){ue(n,e.$hostElement$)}return null};var T=function(e){var n=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var t=u("postUpdate",n);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{V(r)}{H(a,"componentDidLoad")}t();{e.$onReadyResolve$(r);if(!i){U()}}}else{t()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){we((function(){return j(e,false)}))}e.$flags$&=~(4|512)}};var U=function(e){{V($e.documentElement)}we((function(){return b(ce,"appload",{detail:{namespace:t}})}))};var H=function(e,n,r){if(e&&e[n]){try{return e[n](r)}catch(e){ue(e)}}return undefined};var V=function(e){return e.setAttribute("hydrated","")};var F=function(e,n){return ae(e).$instanceValues$.get(n)};var W=function(e,n,r,t){var a=ae(e);var i=a.$instanceValues$.get(n);var o=a.$flags$;var u=a.$lazyInstance$;r=m(r,t.$members$[n][0]);var l=Number.isNaN(i)&&Number.isNaN(r);var s=r!==i&&!l;if((!(o&8)||i===undefined)&&s){a.$instanceValues$.set(n,r);if(u){if((o&(2|16))===2){j(a,false)}}}};var D=function(e,n,r){if(n.$members$){var t=Object.entries(n.$members$);var a=e.prototype;t.map((function(e){var t=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,t,{get:function(){return F(this,t)},set:function(e){W(this,t,e,n)},configurable:true,enumerable:true})}}));if(r&1){var i=new Map;a.attributeChangedCallback=function(e,n,r){var t=this;ve.jmp((function(){var n=i.get(e);if(t.hasOwnProperty(n)){r=t[n];delete t[n]}else if(a.hasOwnProperty(n)&&typeof t[n]==="number"&&t[n]==r){return}t[n]=r===null&&typeof t[n]==="boolean"?false:r}))};e.observedAttributes=t.filter((function(e){var n=e[0],r=e[1];return r[0]&15})).map((function(e){var n=e[0],r=e[1];var t=r[1]||n;i.set(t,n);return t}))}}return e};var G=function(e,n,t,a,i){return __awaiter(r,void 0,void 0,(function(){var e,r,a,o,s,f,c;return __generator(this,(function($){switch($.label){case 0:if(!((n.$flags$&32)===0))return[3,3];n.$flags$|=32;i=se(t);if(!i.then)return[3,2];e=l();return[4,i];case 1:i=$.sent();e();$.label=2;case 2:if(!i.isProxied){D(i,t,2);i.isProxied=true}r=u("createInstance",t.$tagName$);{n.$flags$|=8}try{new i(n)}catch(e){ue(e)}{n.$flags$&=~8}r();if(i.style){a=i.style;o=N(t);if(!fe.has(o)){s=u("registerStyles",t.$tagName$);_(o,a,!!(t.$flags$&1));s()}}$.label=3;case 3:f=n.$ancestorComponent$;c=function(){return j(n,true)};if(f&&f["s-rc"]){f["s-rc"].push(c)}else{c()}return[2]}}))}))};var J=function(e){};var K=function(e){if((ve.$flags$&1)===0){var n=ae(e);var r=n.$cmpMeta$;var t=u("connectedCallback",r.$tagName$);if(!(n.$flags$&1)){n.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){M(n,n.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(n){var r=n[0],t=n[1][0];if(t&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{G(e,n,r)}}else{Z(e,n,r.$listeners$);if(n===null||n===void 0?void 0:n.$lazyInstance$);else if(n===null||n===void 0?void 0:n.$onReadyPromise$){n.$onReadyPromise$.then((function(){return J()}))}}t()}};var Q=function(e){{H(e,"disconnectedCallback")}};var X=function(e){return __awaiter(r,void 0,void 0,(function(){var n;return __generator(this,(function(r){if((ve.$flags$&1)===0){n=ae(e);{if(n.$rmListeners$){n.$rmListeners$.map((function(e){return e()}));n.$rmListeners$=undefined}}if(n===null||n===void 0?void 0:n.$lazyInstance$){Q(n.$lazyInstance$)}else if(n===null||n===void 0?void 0:n.$onReadyPromise$){n.$onReadyPromise$.then((function(){return Q(n.$lazyInstance$)}))}}return[2]}))}))};var Y=e("b",(function(e,n){if(n===void 0){n={}}var r;var t=u();var a=[];var i=n.exclude||[];var o=ce.customElements;var l=$e.head;var f=l.querySelector("meta[charset]");var c=$e.createElement("style");var v=[];var d;var h=true;Object.assign(ve,n);ve.$resourcesUrl$=new URL(n.resourcesUrl||"./",$e.baseURI).href;e.map((function(e){e[1].map((function(n){var r={$flags$:n[0],$tagName$:n[1],$members$:n[2],$listeners$:n[3]};{r.$members$=n[2]}{r.$listeners$=n[3]}var t=r.$tagName$;var u=function(e){__extends(n,e);function n(n){var t=e.call(this,n)||this;n=t;oe(n,r);if(r.$flags$&1){{{n.attachShadow({mode:"open"})}}}return t}n.prototype.connectedCallback=function(){var e=this;if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{ve.jmp((function(){return K(e)}))}};n.prototype.disconnectedCallback=function(){var e=this;ve.jmp((function(){return X(e)}))};n.prototype.componentOnReady=function(){return ae(this).$onReadyPromise$};return n}(HTMLElement);r.$lazyBundleId$=e[0];if(!i.includes(t)&&!o.get(t)){a.push(t);o.define(t,D(u,r,1))}}))}));{c.innerHTML=a+s;c.setAttribute("data-styles","");var p=(r=ve.$nonce$)!==null&&r!==void 0?r:$($e);if(p!=null){c.setAttribute("nonce",p)}l.insertBefore(c,f?f.nextSibling:l.firstChild)}h=false;if(v.length){v.map((function(e){return e.connectedCallback()}))}else{{ve.jmp((function(){return d=setTimeout(U,30)}))}}t()}));var Z=function(e,n,r,t){if(r){r.map((function(r){var t=r[0],a=r[1],i=r[2];var o=e;var u=ee(n,i);var l=ne(t);ve.ael(o,a,u,l);(n.$rmListeners$=n.$rmListeners$||[]).push((function(){return ve.rel(o,a,u,l)}))}))}};var ee=function(e,n){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[n](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([n,r])}}}catch(e){ue(e)}}};var ne=function(e){return(e&2)!==0};var re=e("s",(function(e){return ve.$nonce$=e}));var te=new WeakMap;var ae=function(e){return te.get(e)};var ie=e("r",(function(e,n){return te.set(n.$lazyInstance$=e,n)}));var oe=function(e,n){var r={$flags$:0,$hostElement$:e,$cmpMeta$:n,$instanceValues$:new Map};{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}Z(e,r,n.$listeners$);return te.set(e,r)};var ue=function(e,n){return(0,console.error)(e,n)};var le=new Map;var se=function(e,r,t){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var o=le.get(i);if(o){return o[a]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return n.import("./".concat(i,".entry.js").concat("")).then((function(e){{le.set(i,e)}return e[a]}),ue)};var fe=new Map;var ce=typeof window!=="undefined"?window:{};var $e=ce.document||{head:{}};var ve={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,n,r,t){return e.addEventListener(n,r,t)},rel:function(e,n,r,t){return e.removeEventListener(n,r,t)},ce:function(e,n){return new CustomEvent(e,n)}};var de=e("p",(function(e){return Promise.resolve(e)}));var he=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var pe=[];var me=[];var ye=function(e,n){return function(r){e.push(r);if(!o){o=true;if(n&&ve.$flags$&4){we(be)}else{ve.raf(be)}}}};var ge=function(e){for(var n=0;n<e.length;n++){try{e[n](performance.now())}catch(e){ue(e)}}e.length=0};var be=function(){ge(pe);{ge(me);if(o=pe.length>0){ve.raf(be)}}};var we=function(e){return de().then(e)};var _e=ye(me,true)}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-0cc9df19.system.js"],(function(e,t){"use strict";var r,c;return{setters:[function(t){r=t.p;c=t.b;e("setNonce",t.s)}],execute:function(){var e=function(){var e=t.meta.url;var c={};if(e!==""){c.resourcesUrl=new URL(".",e).href}return r(c)};e().then((function(e){return c([["p-65172843.system",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]],e)}))}}}));
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as h,g as o}from"./p-a7b74010.js";const r=class{constructor(i){t(this,i),this.changeEvent=s(this,"mdsAccordionTimerChange",7),this.clearIntervals=()=>{window.clearInterval(this.timer),window.clearInterval(this.timeChecker),this.timeChecker=0},this.progress=()=>Math.abs(this.remainingTime()/this.duration-1),this.addTimeListener=()=>{this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.selectedItem&&(this.selectedItem.progress=t),1===t&&(this.selectedItem.progress=0,this.startNext())}),100)},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.remainingTime=()=>{const t=this.selectedItemDurationTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.setSelectedItem=t=>{this.children.forEach(((s,i)=>{i===t?(s.selected=!0,this.selectedItem=s,this.changeEvent.emit()):s.selected=!1}))},this.startNext=()=>{this.setSelectedItem(this.selectedItem.uuid+1>this.children.length-1?0:this.selectedItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.selectedItemDurationTime=this.duration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.selectedItemDurationTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals()},this.time=0,this.duration=1e4}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,s)=>{t.uuid=s,t.selected&&(this.selectedItem=t)})),void 0!==this.selectedItem&&this.startTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickActive(t){this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer(),this.pauseTimer()}onMouseEnterSelect(){this.pauseTimer()}onMouseLeaveSelect(){0===this.timeChecker&&this.playTimer()}render(){return i(h,null,i("slot",null))}get element(){return o(this)}};r.style=":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";export{r as mds_accordion_timer}
1
+ import{r as t,c as s,h as i,H as h,g as o}from"./p-d1be03fa.js";const r=class{constructor(i){t(this,i),this.changeEvent=s(this,"mdsAccordionTimerChange",7),this.clearIntervals=()=>{window.clearInterval(this.timer),window.clearInterval(this.timeChecker),this.timeChecker=0},this.progress=()=>Math.abs(this.remainingTime()/this.duration-1),this.addTimeListener=()=>{this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.selectedItem&&(this.selectedItem.progress=t),1===t&&(this.selectedItem.progress=0,this.startNext())}),100)},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.remainingTime=()=>{const t=this.selectedItemDurationTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.setSelectedItem=t=>{this.children.forEach(((s,i)=>{i===t?(s.selected=!0,this.selectedItem=s,this.changeEvent.emit()):s.selected=!1}))},this.startNext=()=>{this.setSelectedItem(this.selectedItem.uuid+1>this.children.length-1?0:this.selectedItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.selectedItemDurationTime=this.duration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.selectedItemDurationTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals()},this.time=0,this.duration=1e4}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,s)=>{t.uuid=s,t.selected&&(this.selectedItem=t)})),void 0!==this.selectedItem&&this.startTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickActive(t){this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer(),this.pauseTimer()}onMouseEnterSelect(){this.pauseTimer()}onMouseLeaveSelect(){0===this.timeChecker&&this.playTimer()}render(){return i(h,null,i("slot",null))}get element(){return o(this)}};r.style=":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";export{r as mds_accordion_timer}
@@ -1 +1 @@
1
- System.register(["./p-5029b85d.system.js"],(function(e){"use strict";var t,i,r,n,s;return{setters:[function(e){t=e.r;i=e.c;r=e.h;n=e.H;s=e.g}],execute:function(){var c=":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";var o=e("mds_accordion_timer",function(){function e(e){var r=this;t(this,e);this.changeEvent=i(this,"mdsAccordionTimerChange",7);this.clearIntervals=function(){window.clearInterval(r.timer);window.clearInterval(r.timeChecker);r.timeChecker=0};this.progress=function(){return Math.abs(r.remainingTime()/r.duration-1)};this.addTimeListener=function(){r.timeChecker=window.setInterval((function(){var e=r.progress();if(r.selectedItem!==undefined){r.selectedItem.progress=e}if(e===1){r.selectedItem.progress=0;r.startNext()}}),100)};this.beginningTime=function(){r.timeStarted=(new Date).getTime();return r.timeStarted};this.remainingTime=function(){var e=r.selectedItemDurationTime-((new Date).getTime()-r.timeStarted);return e>=0?e:0};this.setSelectedItem=function(e){r.children.forEach((function(t,i){if(i===e){t.selected=true;r.selectedItem=t;r.changeEvent.emit()}else{t.selected=false}}))};this.startNext=function(){var e=r.selectedItem.uuid+1>r.children.length-1?0:r.selectedItem.uuid+1;r.setSelectedItem(e);r.startTimer()};this.startTimer=function(){r.clearIntervals();r.time=r.beginningTime();r.selectedItemDurationTime=r.duration;r.addTimeListener()};this.playTimer=function(){r.beginningTime();r.addTimeListener()};this.pauseTimer=function(){r.clearIntervals();r.selectedItemDurationTime=r.remainingTime()};this.stopTimer=function(){r.clearIntervals()};this.time=0;this.duration=1e4}e.prototype.componentDidLoad=function(){var e=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(t,i){t.uuid=i;if(t.selected){e.selectedItem=t}}));if(this.selectedItem!==undefined){this.startTimer()}};e.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};e.prototype.onClickActive=function(e){if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(e.detail.uuid);this.startTimer();this.pauseTimer()};e.prototype.onMouseEnterSelect=function(){this.pauseTimer()};e.prototype.onMouseLeaveSelect=function(){if(this.timeChecker===0){this.playTimer()}};e.prototype.render=function(){return r(n,null,r("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());o.style=c}}}));
1
+ System.register(["./p-0cc9df19.system.js"],(function(e){"use strict";var t,i,r,n,s;return{setters:[function(e){t=e.r;i=e.c;r=e.h;n=e.H;s=e.g}],execute:function(){var c=":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";var o=e("mds_accordion_timer",function(){function e(e){var r=this;t(this,e);this.changeEvent=i(this,"mdsAccordionTimerChange",7);this.clearIntervals=function(){window.clearInterval(r.timer);window.clearInterval(r.timeChecker);r.timeChecker=0};this.progress=function(){return Math.abs(r.remainingTime()/r.duration-1)};this.addTimeListener=function(){r.timeChecker=window.setInterval((function(){var e=r.progress();if(r.selectedItem!==undefined){r.selectedItem.progress=e}if(e===1){r.selectedItem.progress=0;r.startNext()}}),100)};this.beginningTime=function(){r.timeStarted=(new Date).getTime();return r.timeStarted};this.remainingTime=function(){var e=r.selectedItemDurationTime-((new Date).getTime()-r.timeStarted);return e>=0?e:0};this.setSelectedItem=function(e){r.children.forEach((function(t,i){if(i===e){t.selected=true;r.selectedItem=t;r.changeEvent.emit()}else{t.selected=false}}))};this.startNext=function(){var e=r.selectedItem.uuid+1>r.children.length-1?0:r.selectedItem.uuid+1;r.setSelectedItem(e);r.startTimer()};this.startTimer=function(){r.clearIntervals();r.time=r.beginningTime();r.selectedItemDurationTime=r.duration;r.addTimeListener()};this.playTimer=function(){r.beginningTime();r.addTimeListener()};this.pauseTimer=function(){r.clearIntervals();r.selectedItemDurationTime=r.remainingTime()};this.stopTimer=function(){r.clearIntervals()};this.time=0;this.duration=1e4}e.prototype.componentDidLoad=function(){var e=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(t,i){t.uuid=i;if(t.selected){e.selectedItem=t}}));if(this.selectedItem!==undefined){this.startTimer()}};e.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};e.prototype.onClickActive=function(e){if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(e.detail.uuid);this.startTimer();this.pauseTimer()};e.prototype.onMouseEnterSelect=function(){this.pauseTimer()};e.prototype.onMouseLeaveSelect=function(){if(this.timeChecker===0){this.playTimer()}};e.prototype.render=function(){return r(n,null,r("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());o.style=c}}}));
@@ -0,0 +1,2 @@
1
+ let e,n,t=!1;const l=e=>"object"==(e=typeof e)||"function"===e;function o(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const s=(e,n,...t)=>{let o=null,s=!1,i=!1;const r=[],a=n=>{for(let t=0;t<n.length;t++)o=n[t],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!l(o))&&(o+=""),s&&i?r[r.length-1].t+=o:r.push(s?c(null,o):o),i=s)};a(t);const u=c(e,null);return u.l=n,r.length>0&&(u.o=r),u},c=(e,n)=>({i:0,u:e,t:n,m:null,o:null}),i={},r=e=>R(e).h,a=(e,n,t)=>{const l=r(e);return{emit:e=>u(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},u=(e,n,t)=>{const l=G.ce(n,t);return e.dispatchEvent(l),l},f=new WeakMap,d=e=>"sc-"+e.p,m=(n,t,l)=>{const o=t.o[l];let s,c,i=0;if(s=o.m=B.createElement(o.u),null!=e&&s["s-si"]!==e&&s.classList.add(s["s-si"]=e),o.o)for(i=0;i<o.o.length;++i)c=m(n,o,i),c&&s.appendChild(c);return s},y=(e,t,l,o,s,c)=>{let i,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=m(null,l,s),i&&(o[s].m=i,r.insertBefore(i,t)))},h=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.m;e&&e.remove()}}},p=(e,n)=>e.u===n.u,$=(e,n)=>{const t=n.m=e.m,l=e.o,o=n.o;null!==l&&null!==o?((e,n,t,l)=>{let o,s=0,c=0,i=n.length-1,r=n[0],a=n[i],u=l.length-1,f=l[0],d=l[u];for(;s<=i&&c<=u;)null==r?r=n[++s]:null==a?a=n[--i]:null==f?f=l[++c]:null==d?d=l[--u]:p(r,f)?($(r,f),r=n[++s],f=l[++c]):p(a,d)?($(a,d),a=n[--i],d=l[--u]):p(r,d)?($(r,d),e.insertBefore(r.m,a.m.nextSibling),r=n[++s],d=l[--u]):p(a,f)?($(a,f),e.insertBefore(a.m,r.m),a=n[--i],f=l[++c]):(o=m(n&&n[c],t,c),f=l[++c],o&&r.m.parentNode.insertBefore(o,r.m));s>i?y(e,null==l[u+1]?null:l[u+1].m,t,l,c,u):c>u&&h(n,s,i)})(t,l,n,o):null!==o?y(t,null,n,o,0,o.length-1):null!==l&&h(l,0,l.length-1)},v=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},b=(e,n)=>{if(e.i|=16,!(4&e.i))return v(e,e.v),ne((()=>w(e,n)));e.i|=512},w=(e,n)=>{const t=e.S;return n&&(e.i|=256,e.g&&(e.g.map((([e,n])=>O(t,e,n))),e.g=void 0)),S(void 0,(()=>j(e,t,n)))},S=(e,n)=>g(e)?e.then(n):n(),g=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,j=async(e,n,t)=>{var l;const s=e.h,c=s["s-rc"];t&&(e=>{const n=e.j,t=e.h,l=n.i,s=((e,n)=>{var t;const l=d(n),s=_.get(l);if(e=11===e.nodeType?e:B,s)if("string"==typeof s){let n,c=f.get(e=e.head||e);if(c||f.set(e,c=new Set),!c.has(l)){{n=B.createElement("style"),n.innerHTML=s;const l=null!==(t=G.k)&&void 0!==t?t:o(B);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}c&&c.add(l)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);k(e,n,s,t),c&&(c.map((e=>e())),s["s-rc"]=void 0);{const n=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>M(e);0===n.length?t():(Promise.all(n).then(t),e.i|=4,n.length=0)}},k=(t,l,o,r)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l,o=!1)=>{const r=t.h,a=t.M||c(null,null),u=(e=>e&&e.u===i)(l)?l:s(null,null,l);if(n=r.tagName,o&&u.l)for(const e of Object.keys(u.l))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(u.l[e]=r[e]);u.u=null,u.i|=4,t.M=u,u.m=a.m=r.shadowRoot||r,e=r["s-sc"],$(a,u)})(t,l,r)}catch(e){q(e,t.h)}return null},M=e=>{const n=e.h,t=e.S,l=e.v;64&e.i||(e.i|=64,P(n),O(t,"componentDidLoad"),e.C(n),l||C()),e.$&&(e.$(),e.$=void 0),512&e.i&&ee((()=>b(e,!1))),e.i&=-517},C=()=>{P(B.documentElement),ee((()=>u(z,"appload",{detail:{namespace:"mds-accordion-timer"}})))},O=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){q(e)}},P=e=>e.setAttribute("hydrated",""),x=(e,n,t)=>{if(n.O){const o=Object.entries(n.O),s=e.prototype;if(o.map((([e,[o]])=>{(31&o||2&t&&32&o)&&Object.defineProperty(s,e,{get(){return((e,n)=>R(this).P.get(n))(0,e)},set(t){((e,n,t,o)=>{const s=R(e),c=s.P.get(n),i=s.i,r=s.S;t=((e,n)=>null==e||l(e)?e:2&n?parseFloat(e):e)(t,o.O[n][0]),8&i&&void 0!==c||t===c||Number.isNaN(c)&&Number.isNaN(t)||(s.P.set(n,t),r&&2==(18&i)&&b(s,!1))})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const n=new Map;s.attributeChangedCallback=function(e,t,l){G.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=o.filter((([e,n])=>15&n[0])).map((([e,t])=>{const l=t[1]||e;return n.set(l,e),l}))}}return e},E=e=>{O(e,"disconnectedCallback")},L=(e,n={})=>{var t;const l=[],s=n.exclude||[],c=z.customElements,i=B.head,r=i.querySelector("meta[charset]"),a=B.createElement("style"),u=[];let f,m=!0;Object.assign(G,n),G.L=new URL(n.resourcesUrl||"./",B.baseURI).href,e.map((e=>{e[1].map((n=>{const t={i:n[0],p:n[1],O:n[2],N:n[3]};t.O=n[2],t.N=n[3];const o=t.p,i=class extends HTMLElement{constructor(e){super(e),W(e=this,t),1&t.i&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),m?u.push(this):G.jmp((()=>(e=>{if(0==(1&G.i)){const n=R(e),t=n.j,l=()=>{};if(1&n.i)N(e,n,t.N),(null==n?void 0:n.S)||(null==n?void 0:n.T)&&n.T.then((()=>{}));else{n.i|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){v(n,n.v=t);break}}t.O&&Object.entries(t.O).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,o)=>{if(0==(32&n.i)){n.i|=32;{if((o=V(t)).then){const e=()=>{};o=await o,e()}o.isProxied||(x(o,t,2),o.isProxied=!0);const e=()=>{};n.i|=8;try{new o(n)}catch(e){q(e)}n.i&=-9,e()}if(o.style){let e=o.style;const n=d(t);if(!_.has(n)){const l=()=>{};((e,n,t)=>{let l=_.get(e);J&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,_.set(e,l)})(n,e,!!(1&t.i)),l()}}}const s=n.v,c=()=>b(n,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,n,t)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>(async()=>{if(0==(1&G.i)){const e=R(this);e.A&&(e.A.map((e=>e())),e.A=void 0),(null==e?void 0:e.S)?E(e.S):(null==e?void 0:e.T)&&e.T.then((()=>E(e.S)))}})()))}componentOnReady(){return R(this).T}};t.F=e[0],s.includes(o)||c.get(o)||(l.push(o),c.define(o,x(i,t,1)))}))}));{a.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",a.setAttribute("data-styles","");const e=null!==(t=G.k)&&void 0!==t?t:o(B);null!=e&&a.setAttribute("nonce",e),i.insertBefore(a,r?r.nextSibling:i.firstChild)}m=!1,u.length?u.map((e=>e.connectedCallback())):G.jmp((()=>f=setTimeout(C,30)))},N=(e,n,t)=>{t&&t.map((([t,l,o])=>{const s=e,c=T(n,o),i=A(t);G.ael(s,l,c,i),(n.A=n.A||[]).push((()=>G.rel(s,l,c,i)))}))},T=(e,n)=>t=>{try{256&e.i?e.S[n](t):(e.g=e.g||[]).push([n,t])}catch(e){q(e)}},A=e=>0!=(2&e),F=e=>G.k=e,H=new WeakMap,R=e=>H.get(e),U=(e,n)=>H.set(n.S=e,n),W=(e,n)=>{const t={i:0,h:e,j:n,P:new Map};return t.T=new Promise((e=>t.C=e)),e["s-p"]=[],e["s-rc"]=[],N(e,t,n.N),H.set(e,t)},q=(e,n)=>(0,console.error)(e,n),D=new Map,V=e=>{const n=e.p.replace(/-/g,"_"),t=e.F,l=D.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(D.set(t,e),e[n])),q)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z="undefined"!=typeof window?window:{},B=z.document||{head:{}},G={i:0,L:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},I=e=>Promise.resolve(e),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),K=[],Q=[],X=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&G.i?ee(Z):G.raf(Z))},Y=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){q(e)}e.length=0},Z=()=>{Y(K),Y(Q),(t=K.length>0)&&G.raf(Z)},ee=e=>I().then(e),ne=X(Q,!0);export{i as H,L as b,a as c,r as g,s as h,I as p,U as r,F as s}