@everymatrix/lottery-ticket-controller 1.56.0 → 1.56.3

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 (24) hide show
  1. package/dist/cjs/helper-accordion_5.cjs.entry.js +96 -331
  2. package/dist/cjs/{index-ce57b34d.js → index-1fc68b7c.js} +72 -207
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/lottery-ticket-controller.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/lottery-ticket-controller/lottery-ticket-controller.js +15 -83
  7. package/dist/esm/helper-accordion_5.entry.js +96 -331
  8. package/dist/esm/{index-30728886.js → index-bf542936.js} +72 -207
  9. package/dist/esm/loader.js +2 -2
  10. package/dist/esm/lottery-ticket-controller.js +3 -3
  11. package/dist/lottery-ticket-controller/lottery-ticket-controller.esm.js +1 -1
  12. package/dist/lottery-ticket-controller/p-6880be75.js +2 -0
  13. package/dist/lottery-ticket-controller/{p-6262cd49.entry.js → p-82d50d23.entry.js} +130 -132
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/lottery-ticket-controller/p-44ec1b95.js +0 -2
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'lottery-ticket-controller';
2
- const BUILD = /* lottery-ticket-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* lottery-ticket-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
-
13
- // src/client/client-host-ref.ts
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -155,6 +144,12 @@ var flush = () => {
155
144
  };
156
145
  var nextTick = (cb) => promiseResolve().then(cb);
157
146
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
+
148
+ // src/utils/constants.ts
149
+ var EMPTY_OBJ = {};
150
+
151
+ // src/utils/helpers.ts
152
+ var isDef = (v) => v != null;
158
153
  var isComplexType = (o) => {
159
154
  o = typeof o;
160
155
  return o === "object" || o === "function";
@@ -358,40 +353,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
358
353
  }
359
354
  if (!appliedStyles.has(scopeId2)) {
360
355
  {
361
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
356
+ styleElm = doc.createElement("style");
362
357
  styleElm.innerHTML = style;
363
358
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
364
359
  if (nonce != null) {
365
360
  styleElm.setAttribute("nonce", nonce);
366
361
  }
367
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
368
- if (styleContainerNode.nodeName === "HEAD") {
369
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
370
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
371
- styleContainerNode.insertBefore(
372
- styleElm,
373
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
374
- );
375
- } else if ("host" in styleContainerNode) {
376
- if (supportsConstructableStylesheets) {
377
- const stylesheet = new CSSStyleSheet();
378
- stylesheet.replaceSync(style);
379
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
380
- } else {
381
- const existingStyleContainer = styleContainerNode.querySelector("style");
382
- if (existingStyleContainer) {
383
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
384
- } else {
385
- styleContainerNode.prepend(styleElm);
386
- }
387
- }
388
- } else {
389
- styleContainerNode.append(styleElm);
390
- }
391
- }
392
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
393
- styleContainerNode.insertBefore(styleElm, null);
394
- }
362
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
395
363
  }
396
364
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
397
365
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -414,25 +382,23 @@ var attachStyles = (hostRef) => {
414
382
  const scopeId2 = addStyle(
415
383
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
416
384
  cmpMeta);
417
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
385
+ if (flags & 10 /* needsScopedEncapsulation */) {
418
386
  elm["s-sc"] = scopeId2;
419
387
  elm.classList.add(scopeId2 + "-h");
420
388
  }
421
389
  endAttachStyles();
422
390
  };
423
391
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
424
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
392
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
425
393
  if (oldValue !== newValue) {
426
394
  let isProp = isMemberInElement(elm, memberName);
427
395
  let ln = memberName.toLowerCase();
428
396
  if (memberName === "class") {
429
397
  const classList = elm.classList;
430
398
  const oldClasses = parseClassList(oldValue);
431
- let newClasses = parseClassList(newValue);
432
- {
433
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
434
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
435
- }
399
+ const newClasses = parseClassList(newValue);
400
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
401
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
436
402
  } else if (memberName === "style") {
437
403
  {
438
404
  for (const prop in oldValue) {
@@ -485,13 +451,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
485
451
  if (memberName === "list") {
486
452
  isProp = false;
487
453
  } else if (oldValue == null || elm[memberName] != n) {
488
- if (typeof elm.__lookupSetter__(memberName) === "function") {
489
- elm[memberName] = n;
490
- } else {
491
- elm.setAttribute(memberName, n);
492
- }
454
+ elm[memberName] = n;
493
455
  }
494
- } else if (elm[memberName] !== newValue) {
456
+ } else {
495
457
  elm[memberName] = newValue;
496
458
  }
497
459
  } catch (e) {
@@ -513,44 +475,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
513
475
  }
514
476
  };
515
477
  var parseClassListRegex = /\s/;
516
- var parseClassList = (value) => {
517
- if (typeof value === "object" && value && "baseVal" in value) {
518
- value = value.baseVal;
519
- }
520
- if (!value || typeof value !== "string") {
521
- return [];
522
- }
523
- return value.split(parseClassListRegex);
524
- };
478
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
525
479
  var CAPTURE_EVENT_SUFFIX = "Capture";
526
480
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
527
481
 
528
482
  // src/runtime/vdom/update-element.ts
529
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
483
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
530
484
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
531
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
532
- const newVnodeAttrs = newVnode.$attrs$ || {};
485
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
486
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
533
487
  {
534
488
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
535
489
  if (!(memberName in newVnodeAttrs)) {
536
- setAccessor(
537
- elm,
538
- memberName,
539
- oldVnodeAttrs[memberName],
540
- void 0,
541
- isSvgMode2,
542
- newVnode.$flags$);
490
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
543
491
  }
544
492
  }
545
493
  }
546
494
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
547
- setAccessor(
548
- elm,
549
- memberName,
550
- oldVnodeAttrs[memberName],
551
- newVnodeAttrs[memberName],
552
- isSvgMode2,
553
- newVnode.$flags$);
495
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
554
496
  }
555
497
  };
556
498
  function sortedAttrNames(attrNames) {
@@ -562,10 +504,13 @@ function sortedAttrNames(attrNames) {
562
504
  attrNames
563
505
  );
564
506
  }
507
+
508
+ // src/runtime/vdom/vdom-render.ts
509
+ var scopeId;
565
510
  var hostTagName;
566
511
  var useNativeShadowDom = false;
567
512
  var isSvgMode = false;
568
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
513
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
569
514
  const newVNode2 = newParentVNode.$children$[childIndex];
570
515
  let i2 = 0;
571
516
  let elm;
@@ -579,6 +524,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
579
524
  {
580
525
  updateElement(null, newVNode2, isSvgMode);
581
526
  }
527
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
528
+ elm.classList.add(elm["s-si"] = scopeId);
529
+ }
582
530
  if (newVNode2.$children$) {
583
531
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
584
532
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -708,9 +656,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
708
656
  if (!isInitialRender) {
709
657
  return leftVNode.$key$ === rightVNode.$key$;
710
658
  }
711
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
712
- leftVNode.$key$ = rightVNode.$key$;
713
- }
714
659
  return true;
715
660
  }
716
661
  return false;
@@ -734,10 +679,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
734
679
  elm.textContent = "";
735
680
  }
736
681
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
737
- } else if (
738
- // don't do this on initial render as it can cause non-hydrated content to be removed
739
- !isInitialRender && BUILD.updatable && oldChildren !== null
740
- ) {
682
+ } else if (oldChildren !== null) {
741
683
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
742
684
  }
743
685
  } else if (oldVNode.$text$ !== text) {
@@ -751,9 +693,8 @@ var nullifyVNodeRefs = (vNode) => {
751
693
  }
752
694
  };
753
695
  var insertBefore = (parent, newNode, reference) => {
754
- {
755
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
756
- }
696
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
697
+ return inserted;
757
698
  };
758
699
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
759
700
  const hostElm = hostRef.$hostElement$;
@@ -778,21 +719,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
778
719
  rootVnode.$flags$ |= 4 /* isHost */;
779
720
  hostRef.$vnode$ = rootVnode;
780
721
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
781
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
722
+ {
723
+ scopeId = hostElm["s-sc"];
724
+ }
725
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
782
726
  patch(oldVNode, rootVnode, isInitialLoad);
783
727
  };
784
728
 
785
729
  // src/runtime/update-component.ts
786
730
  var attachToAncestor = (hostRef, ancestorComponent) => {
787
731
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
788
- const index = ancestorComponent["s-p"].push(
789
- new Promise(
790
- (r) => hostRef.$onRenderResolve$ = () => {
791
- ancestorComponent["s-p"].splice(index - 1, 1);
792
- r();
793
- }
794
- )
795
- );
732
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
796
733
  }
797
734
  };
798
735
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -821,12 +758,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
821
758
  {
822
759
  hostRef.$flags$ |= 256 /* isListenReady */;
823
760
  if (hostRef.$queuedListeners$) {
824
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
761
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
825
762
  hostRef.$queuedListeners$ = void 0;
826
763
  }
827
764
  }
828
765
  {
829
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
766
+ maybePromise = safeCall(instance, "componentWillLoad");
830
767
  }
831
768
  }
832
769
  endSchedule();
@@ -895,7 +832,7 @@ var postUpdateComponent = (hostRef) => {
895
832
  const instance = hostRef.$lazyInstance$ ;
896
833
  const ancestorComponent = hostRef.$ancestorComponent$;
897
834
  {
898
- safeCall(instance, "componentDidRender", void 0, elm);
835
+ safeCall(instance, "componentDidRender");
899
836
  }
900
837
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
901
838
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -924,14 +861,17 @@ var postUpdateComponent = (hostRef) => {
924
861
  }
925
862
  };
926
863
  var appDidLoad = (who) => {
864
+ {
865
+ addHydratedFlag(doc.documentElement);
866
+ }
927
867
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
928
868
  };
929
- var safeCall = (instance, method, arg, elm) => {
869
+ var safeCall = (instance, method, arg) => {
930
870
  if (instance && instance[method]) {
931
871
  try {
932
872
  return instance[method](arg);
933
873
  } catch (e) {
934
- consoleError(e, elm);
874
+ consoleError(e);
935
875
  }
936
876
  }
937
877
  return void 0;
@@ -990,68 +930,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
990
930
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
991
931
  members.map(([memberName, [memberFlags]]) => {
992
932
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
993
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
994
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
995
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
996
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
997
- Object.defineProperty(prototype, memberName, {
998
- get() {
999
- {
1000
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1001
- return getValue(this, memberName);
1002
- }
1003
- const ref = getHostRef(this);
1004
- const instance = ref ? ref.$lazyInstance$ : prototype;
1005
- if (!instance) return;
1006
- return instance[memberName];
1007
- }
1008
- },
1009
- configurable: true,
1010
- enumerable: true
1011
- });
1012
- }
1013
933
  Object.defineProperty(prototype, memberName, {
934
+ get() {
935
+ return getValue(this, memberName);
936
+ },
1014
937
  set(newValue) {
1015
- const ref = getHostRef(this);
1016
- if (origSetter) {
1017
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1018
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1019
- newValue = ref.$instanceValues$.get(memberName);
1020
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1021
- ref.$instanceValues$.set(memberName, currentValue);
1022
- }
1023
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1024
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1025
- setValue(this, memberName, newValue, cmpMeta);
1026
- return;
1027
- }
1028
- {
1029
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1030
- setValue(this, memberName, newValue, cmpMeta);
1031
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1032
- ref.$onReadyPromise$.then(() => {
1033
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1034
- ref.$lazyInstance$[memberName] = newValue;
1035
- }
1036
- });
1037
- }
1038
- return;
1039
- }
1040
- const setterSetVal = () => {
1041
- const currentValue = ref.$lazyInstance$[memberName];
1042
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1043
- ref.$instanceValues$.set(memberName, currentValue);
1044
- }
1045
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1046
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1047
- };
1048
- if (ref.$lazyInstance$) {
1049
- setterSetVal();
1050
- } else {
1051
- ref.$onReadyPromise$.then(() => setterSetVal());
1052
- }
1053
- }
1054
- }
938
+ setValue(this, memberName, newValue, cmpMeta);
939
+ },
940
+ configurable: true,
941
+ enumerable: true
1055
942
  });
1056
943
  }
1057
944
  });
@@ -1061,11 +948,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1061
948
  plt.jmp(() => {
1062
949
  var _a2;
1063
950
  const propName = attrNameToPropName.get(attrName);
1064
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
951
+ if (this.hasOwnProperty(propName)) {
1065
952
  newValue = this[propName];
1066
953
  delete this[propName];
1067
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1068
- this[propName] == newValue) {
954
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1069
955
  return;
1070
956
  } else if (propName == null) {
1071
957
  const hostRef = getHostRef(this);
@@ -1081,11 +967,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1081
967
  }
1082
968
  return;
1083
969
  }
1084
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1085
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1086
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1087
- this[propName] = newValue;
1088
- }
970
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1089
971
  });
1090
972
  };
1091
973
  Cstr.observedAttributes = Array.from(
@@ -1114,7 +996,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1114
996
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1115
997
  const bundleId = cmpMeta.$lazyBundleId$;
1116
998
  if (bundleId) {
1117
- const CstrImport = loadModule(cmpMeta, hostRef);
999
+ const CstrImport = loadModule(cmpMeta);
1118
1000
  if (CstrImport && "then" in CstrImport) {
1119
1001
  const endLoad = uniqueTime();
1120
1002
  Cstr = await CstrImport;
@@ -1139,7 +1021,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1139
1021
  try {
1140
1022
  new Cstr(hostRef);
1141
1023
  } catch (e) {
1142
- consoleError(e, elm);
1024
+ consoleError(e);
1143
1025
  }
1144
1026
  {
1145
1027
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1148,7 +1030,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1148
1030
  hostRef.$flags$ |= 128 /* isWatchReady */;
1149
1031
  }
1150
1032
  endNewInstance();
1151
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1033
+ fireConnectedCallback(hostRef.$lazyInstance$);
1152
1034
  } else {
1153
1035
  Cstr = elm.constructor;
1154
1036
  const cmpTag = elm.localName;
@@ -1175,9 +1057,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1175
1057
  schedule();
1176
1058
  }
1177
1059
  };
1178
- var fireConnectedCallback = (instance, elm) => {
1060
+ var fireConnectedCallback = (instance) => {
1179
1061
  {
1180
- safeCall(instance, "connectedCallback", void 0, elm);
1062
+ safeCall(instance, "connectedCallback");
1181
1063
  }
1182
1064
  };
1183
1065
 
@@ -1213,15 +1095,15 @@ var connectedCallback = (elm) => {
1213
1095
  } else {
1214
1096
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1215
1097
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1216
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1098
+ fireConnectedCallback(hostRef.$lazyInstance$);
1217
1099
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1218
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1100
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1219
1101
  }
1220
1102
  }
1221
1103
  endConnected();
1222
1104
  }
1223
1105
  };
1224
- var disconnectInstance = (instance, elm) => {
1106
+ var disconnectInstance = (instance) => {
1225
1107
  };
1226
1108
  var disconnectedCallback = async (elm) => {
1227
1109
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1236,12 +1118,6 @@ var disconnectedCallback = async (elm) => {
1236
1118
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1237
1119
  }
1238
1120
  }
1239
- if (rootAppliedStyles.has(elm)) {
1240
- rootAppliedStyles.delete(elm);
1241
- }
1242
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1243
- rootAppliedStyles.delete(elm.shadowRoot);
1244
- }
1245
1121
  };
1246
1122
 
1247
1123
  // src/runtime/bootstrap-lazy.ts
@@ -1326,17 +1202,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1326
1202
  }
1327
1203
  disconnectedCallback() {
1328
1204
  plt.jmp(() => disconnectedCallback(this));
1329
- plt.raf(() => {
1330
- var _a3;
1331
- const hostRef = getHostRef(this);
1332
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1333
- if (i2 > -1) {
1334
- deferredConnectedCallbacks.splice(i2, 1);
1335
- }
1336
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1337
- delete hostRef.$vnode$.$elm$;
1338
- }
1339
- });
1340
1205
  }
1341
1206
  componentOnReady() {
1342
1207
  return getHostRef(this).$onReadyPromise$;
@@ -1400,7 +1265,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1400
1265
  }
1401
1266
  }
1402
1267
  } catch (e) {
1403
- consoleError(e, hostRef.$hostElement$);
1268
+ consoleError(e);
1404
1269
  }
1405
1270
  };
1406
1271
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-30728886.js';
2
- export { s as setNonce } from './index-30728886.js';
1
+ import { b as bootstrapLazy } from './index-bf542936.js';
2
+ export { s as setNonce } from './index-bf542936.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-30728886.js';
2
- export { s as setNonce } from './index-30728886.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-bf542936.js';
2
+ export { s as setNonce } from './index-bf542936.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-44ec1b95.js";export{s as setNonce}from"./p-44ec1b95.js";import{g as l}from"./p-e1255160.js";(()=>{const t=import.meta.url,l={};return""!==t&&(l.resourcesUrl=new URL(".",t).href),e(l)})().then((async e=>(await l(),t([["p-6262cd49",[[1,"lottery-ticket-controller",{endpoint:[513],ticketId:[514,"ticket-id"],ticketDescription:[513,"ticket-description"],gameId:[513,"game-id"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],numberOfGrids:[514,"number-of-grids"],last:[516],language:[513],autoPick:[516,"auto-pick"],resetButton:[516,"reset-button"],totalControllers:[514,"total-controllers"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],limitStylingAppends:[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{endpoint:[513],gameId:[513,"game-id"],numberOfGrids:[514,"number-of-grids"],multipleDraws:[516,"multiple-draws"],ticketId:[514,"ticket-id"],resetButton:[516,"reset-button"],autoPick:[516,"auto-pick"],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],isLoading:[32],hasErrors:[32],ticketDone:[32],isCustomSelect:[32],amountInfo:[32],limitStylingAppends:[32],stakeMultiplier:[32],lineMultiplier:[32],isCustomSelectStake:[32],isCustomSelectDraw:[32],isCustomSelectLine:[32],drawMultiplier:[32],secondarySelectionAllowed:[32],partialQuickpickAvailable:[32],boardsAllowed:[32],tabIndex:[32],groupType:[32],playType:[32],selectedPlayTypeId:[32],maximumAllowed:[32],numberRange:[32],secondaryNumberRange:[32],secondaryMaximumAllowed:[32],minimumAllowed:[32],secondaryMinimumAllowed:[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{lineMultiplier:["handleLineMultiplierChange"],tabIndex:["handleTabIndexChange"]}],[1,"helper-accordion",{ticketHistoryFlag:[516,"ticket-history-flag"],headerTitle:[513,"header-title"],headerSubtitle:[513,"header-subtitle"],description:[513],footer:[516],deleteTab:[516,"delete-tab"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],showContent:[32],limitStylingAppends:[32]}],[1,"lottery-grid",{ticketId:[514,"ticket-id"],totalNumbers:[514,"total-numbers"],gameId:[513,"game-id"],maximumAllowed:[514,"maximum-allowed"],minimumAllowed:[514,"minimum-allowed"],numberRange:[513,"number-range"],selectable:[516],selectedNumbers:[513,"selected-numbers"],secondaryNumbers:[513,"secondary-numbers"],displaySelected:[516,"display-selected"],language:[513],gridIndex:[514,"grid-index"],gridType:[513,"grid-type"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],highNumber:[514,"high-number"],lowNumber:[514,"low-number"],selectionType:[513,"selection-type"],partialQuickpickAvailable:[516,"partial-quickpick-available"],numbers:[32],bonusNumbers:[32],limitStylingAppends:[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{value:[513],selectable:[516],isSelected:[516,"is-selected"],isBonus:[516,"is-bonus"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]}]]]],e))));
1
+ import{p as e,b as t}from"./p-6880be75.js";export{s as setNonce}from"./p-6880be75.js";import{g as l}from"./p-e1255160.js";(()=>{const t=import.meta.url,l={};return""!==t&&(l.resourcesUrl=new URL(".",t).href),e(l)})().then((async e=>(await l(),t([["p-82d50d23",[[1,"lottery-ticket-controller",{endpoint:[513],ticketId:[514,"ticket-id"],ticketDescription:[513,"ticket-description"],gameId:[513,"game-id"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],numberOfGrids:[514,"number-of-grids"],last:[516],language:[513],autoPick:[516,"auto-pick"],resetButton:[516,"reset-button"],totalControllers:[514,"total-controllers"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],limitStylingAppends:[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{endpoint:[513],gameId:[513,"game-id"],numberOfGrids:[514,"number-of-grids"],multipleDraws:[516,"multiple-draws"],ticketId:[514,"ticket-id"],resetButton:[516,"reset-button"],autoPick:[516,"auto-pick"],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],isLoading:[32],hasErrors:[32],ticketDone:[32],isCustomSelect:[32],amountInfo:[32],limitStylingAppends:[32],stakeMultiplier:[32],lineMultiplier:[32],isCustomSelectStake:[32],isCustomSelectDraw:[32],isCustomSelectLine:[32],drawMultiplier:[32],secondarySelectionAllowed:[32],partialQuickpickAvailable:[32],boardsAllowed:[32],tabIndex:[32],groupType:[32],playType:[32],selectedPlayTypeId:[32],maximumAllowed:[32],numberRange:[32],secondaryNumberRange:[32],secondaryMaximumAllowed:[32],minimumAllowed:[32],secondaryMinimumAllowed:[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{lineMultiplier:["handleLineMultiplierChange"],tabIndex:["handleTabIndexChange"]}],[1,"helper-accordion",{ticketHistoryFlag:[516,"ticket-history-flag"],headerTitle:[513,"header-title"],headerSubtitle:[513,"header-subtitle"],description:[513],footer:[516],deleteTab:[516,"delete-tab"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],showContent:[32],limitStylingAppends:[32]}],[1,"lottery-grid",{ticketId:[514,"ticket-id"],totalNumbers:[514,"total-numbers"],gameId:[513,"game-id"],maximumAllowed:[514,"maximum-allowed"],minimumAllowed:[514,"minimum-allowed"],numberRange:[513,"number-range"],selectable:[516],selectedNumbers:[513,"selected-numbers"],secondaryNumbers:[513,"secondary-numbers"],displaySelected:[516,"display-selected"],language:[513],gridIndex:[514,"grid-index"],gridType:[513,"grid-type"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],highNumber:[514,"high-number"],lowNumber:[514,"low-number"],selectionType:[513,"selection-type"],partialQuickpickAvailable:[516,"partial-quickpick-available"],numbers:[32],bonusNumbers:[32],limitStylingAppends:[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{value:[513],selectable:[516],isSelected:[516,"is-selected"],isBonus:[516,"is-bonus"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]}]]]],e))));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?w(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(d=m.length>0)&&f.raf(b)},w=e=>h().then(e),S=$(y,!0),g={},k=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>R});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},T=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!k(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),F={},L=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>N(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},N=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},U=new WeakMap,W=e=>"sc-"+e.v,D=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=k(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},H=/\s/,q=e=>e?e.split(H):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of z(Object.keys(o)))e in s||D(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))D(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=!1,J=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),_(null,l,I),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=J(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},K=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=J(null,n,o),r&&(l[o].$=r,ee(i,r,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Z(t),e&&e.remove()}}},X=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Y=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.m||B)&&_(e,t,I),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(X(h,m,o))Y(h,m,o),h=t[++i],m=l[++c];else if(X(p,y,o))Y(p,y,o),p=t[--f],y=l[--d];else if(X(h,y,o))Y(h,y,o),ee(e,h.$,p.$.nextSibling),h=t[++i],y=l[--d];else if(X(p,m,o))Y(p,m,o),ee(e,p.$,h.$),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=J(t&&t[c],n,u):(Y(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=J(t&&t[c],n,c),m=l[++c]),s&&ee(h.$.parentNode,s,h.$)}i>f?K(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&Q(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),K(l,null,t,s,0,s.length-1)):null!==o&&Q(o,0,o.length-1)):e.i!==r&&(l.data=r)},Z=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Z)},ee=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),te=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ne=(e,t)=>{if(e.l|=16,!(4&e.l))return te(e,e.k),S((()=>le(e,t)));e.l|=512},le=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.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`);let l;return t&&(e.l|=256,e.j&&(e.j.map((([e,t])=>ae(n,e,t))),e.j=void 0),l=ae(n,"componentWillLoad")),oe(l,(()=>re(e,n,t)))},oe=(e,t)=>se(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),se=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,re=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=W(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=U.get(e=e.head||e);if(r||U.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.C)?n:j(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||A(null,null),r=(e=>e&&e.m===F)(t)?t:T(null,null,t);if(x=l.tagName,o.P&&(r.u=r.u||{},o.P.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],B=!!(1&o.l),Y(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ce=e=>{const t=e.$hostElement$,n=e.k;ae(e.t,"componentDidRender"),64&e.l||(e.l|=64,fe(t),e.R(t),n||ue()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>ne(e,!1))),e.l&=-517},ue=()=>{fe(a.documentElement),w((()=>N(u,"appload",{detail:{namespace:"lottery-ticket-controller"}})))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},fe=e=>e.classList.add("hydrated"),he=(e,t,l)=>{var o,r;const i=e.prototype;if(t.T||t.A||e.watchers){e.watchers&&!t.A&&(t.A=e.watchers);const c=Object.entries(null!=(o=t.T)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).F.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.F.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.T[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.F.set(t,l),a)){if(o.A&&128&u){const e=o.A[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ne(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.A)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.A)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},pe=e=>{ae(e,"connectedCallback")},de=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],T:l[2],L:l[3]};4&c.l&&(g=!0),c.T=l[2],c.L=l[3],c.P=[],c.A=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,F:new Map};l.N=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,me(this,e,c.L)),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)me(e,t,l.L),(null==t?void 0:t.t)?pe(t.t):(null==t?void 0:t.N)&&t.N.then((()=>pe(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){te(t,t.k=n);break}}l.T&&Object.entries(l.T).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.U;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.W}" was not found`);l.isProxied||(n.A=l.watchers,he(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),pe(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=W(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.k,c=()=>ne(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.D&&(e.D.map((e=>e())),e.D=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};c.U=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,he(a,c,1)))}))})),h.length>0&&(g&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:j(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ue,30)))},me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=$e(e,n),r=ye(t,o),i=ve(n);f.ael(s,l,r,i),(t.D=t.D||[]).push((()=>f.rel(s,l,r,i)))}))},ye=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.j=e.j||[]).push([t,n])}catch(e){s(e)}},$e=(e,t)=>4&t?a:8&t?u:e,ve=e=>({passive:!!(1&e),capture:!!(2&e)}),be=e=>f.C=e;export{de as b,L as c,T as h,h as p,l as r,be as s}