@everymatrix/player-sms-verification 1.52.6 → 1.53.10

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.
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'player-sms-verification';
2
- const BUILD = /* player-sms-verification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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: false, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, 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: false, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* player-sms-verification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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: false, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, 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: false, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.1 | 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
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -128,12 +139,6 @@ var flush = () => {
128
139
  };
129
140
  var nextTick = (cb) => promiseResolve().then(cb);
130
141
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
-
132
- // src/utils/constants.ts
133
- var EMPTY_OBJ = {};
134
-
135
- // src/utils/helpers.ts
136
- var isDef = (v) => v != null;
137
142
  var isComplexType = (o) => {
138
143
  o = typeof o;
139
144
  return o === "object" || o === "function";
@@ -315,7 +320,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
315
320
  }
316
321
  if (!appliedStyles.has(scopeId2)) {
317
322
  {
318
- styleElm = doc.createElement("style");
323
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
319
324
  styleElm.innerHTML = style;
320
325
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
321
326
  if (nonce != null) {
@@ -325,7 +330,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
325
330
  if (styleContainerNode.nodeName === "HEAD") {
326
331
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
327
332
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
328
- styleContainerNode.insertBefore(styleElm, referenceNode2);
333
+ styleContainerNode.insertBefore(
334
+ styleElm,
335
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
336
+ );
329
337
  } else if ("host" in styleContainerNode) {
330
338
  if (supportsConstructableStylesheets) {
331
339
  const stylesheet = new CSSStyleSheet();
@@ -375,16 +383,18 @@ var attachStyles = (hostRef) => {
375
383
  endAttachStyles();
376
384
  };
377
385
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
378
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
386
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
379
387
  if (oldValue !== newValue) {
380
388
  let isProp = isMemberInElement(elm, memberName);
381
389
  let ln = memberName.toLowerCase();
382
390
  if (memberName === "class") {
383
391
  const classList = elm.classList;
384
392
  const oldClasses = parseClassList(oldValue);
385
- const newClasses = parseClassList(newValue);
386
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
387
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
393
+ let newClasses = parseClassList(newValue);
394
+ {
395
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
396
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
397
+ }
388
398
  } else if (memberName === "key") ; else if (memberName === "ref") {
389
399
  if (newValue) {
390
400
  newValue(elm);
@@ -422,7 +432,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
422
432
  elm.setAttribute(memberName, n);
423
433
  }
424
434
  }
425
- } else {
435
+ } else if (elm[memberName] !== newValue) {
426
436
  elm[memberName] = newValue;
427
437
  }
428
438
  } catch (e) {
@@ -444,24 +454,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
444
454
  }
445
455
  };
446
456
  var parseClassListRegex = /\s/;
447
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
457
+ var parseClassList = (value) => {
458
+ if (typeof value === "object" && value && "baseVal" in value) {
459
+ value = value.baseVal;
460
+ }
461
+ if (!value || typeof value !== "string") {
462
+ return [];
463
+ }
464
+ return value.split(parseClassListRegex);
465
+ };
448
466
  var CAPTURE_EVENT_SUFFIX = "Capture";
449
467
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
450
468
 
451
469
  // src/runtime/vdom/update-element.ts
452
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
470
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
453
471
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
454
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
455
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
472
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
473
+ const newVnodeAttrs = newVnode.$attrs$ || {};
456
474
  {
457
475
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
458
476
  if (!(memberName in newVnodeAttrs)) {
459
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
477
+ setAccessor(
478
+ elm,
479
+ memberName,
480
+ oldVnodeAttrs[memberName],
481
+ void 0,
482
+ isSvgMode2,
483
+ newVnode.$flags$);
460
484
  }
461
485
  }
462
486
  }
463
487
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
464
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
488
+ setAccessor(
489
+ elm,
490
+ memberName,
491
+ oldVnodeAttrs[memberName],
492
+ newVnodeAttrs[memberName],
493
+ isSvgMode2,
494
+ newVnode.$flags$);
465
495
  }
466
496
  };
467
497
  function sortedAttrNames(attrNames) {
@@ -473,13 +503,10 @@ function sortedAttrNames(attrNames) {
473
503
  attrNames
474
504
  );
475
505
  }
476
-
477
- // src/runtime/vdom/vdom-render.ts
478
- var scopeId;
479
506
  var hostTagName;
480
507
  var useNativeShadowDom = false;
481
508
  var isSvgMode = false;
482
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
509
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
483
510
  const newVNode2 = newParentVNode.$children$[childIndex];
484
511
  let i2 = 0;
485
512
  let elm;
@@ -493,11 +520,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
493
520
  {
494
521
  updateElement(null, newVNode2, isSvgMode);
495
522
  }
496
- const rootNode = elm.getRootNode();
497
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
498
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
499
- elm.classList.add(elm["s-si"] = scopeId);
500
- }
501
523
  if (newVNode2.$children$) {
502
524
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
503
525
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -627,6 +649,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
627
649
  if (!isInitialRender) {
628
650
  return leftVNode.$key$ === rightVNode.$key$;
629
651
  }
652
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
653
+ leftVNode.$key$ = rightVNode.$key$;
654
+ }
630
655
  return true;
631
656
  }
632
657
  return false;
@@ -666,8 +691,9 @@ var nullifyVNodeRefs = (vNode) => {
666
691
  }
667
692
  };
668
693
  var insertBefore = (parent, newNode, reference) => {
669
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
670
- return inserted;
694
+ {
695
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
696
+ }
671
697
  };
672
698
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
673
699
  const hostElm = hostRef.$hostElement$;
@@ -692,9 +718,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
692
718
  rootVnode.$flags$ |= 4 /* isHost */;
693
719
  hostRef.$vnode$ = rootVnode;
694
720
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
695
- {
696
- scopeId = hostElm["s-sc"];
697
- }
698
721
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
699
722
  patch(oldVNode, rootVnode, isInitialLoad);
700
723
  };
@@ -702,7 +725,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
702
725
  // src/runtime/update-component.ts
703
726
  var attachToAncestor = (hostRef, ancestorComponent) => {
704
727
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
705
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
728
+ const index = ancestorComponent["s-p"].push(
729
+ new Promise(
730
+ (r) => hostRef.$onRenderResolve$ = () => {
731
+ ancestorComponent["s-p"].splice(index - 1, 1);
732
+ r();
733
+ }
734
+ )
735
+ );
706
736
  }
707
737
  };
708
738
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -729,7 +759,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
729
759
  let maybePromise;
730
760
  if (isInitialLoad) {
731
761
  {
732
- maybePromise = safeCall(instance, "componentWillLoad");
762
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
733
763
  }
734
764
  }
735
765
  endSchedule();
@@ -803,7 +833,7 @@ var postUpdateComponent = (hostRef) => {
803
833
  addHydratedFlag(elm);
804
834
  }
805
835
  {
806
- safeCall(instance, "componentDidLoad");
836
+ safeCall(instance, "componentDidLoad", void 0, elm);
807
837
  }
808
838
  endPostUpdate();
809
839
  {
@@ -832,12 +862,12 @@ var appDidLoad = (who) => {
832
862
  }
833
863
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
834
864
  };
835
- var safeCall = (instance, method, arg) => {
865
+ var safeCall = (instance, method, arg, elm) => {
836
866
  if (instance && instance[method]) {
837
867
  try {
838
868
  return instance[method](arg);
839
869
  } catch (e) {
840
- consoleError(e);
870
+ consoleError(e, elm);
841
871
  }
842
872
  }
843
873
  return void 0;
@@ -896,15 +926,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
896
926
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
897
927
  members.map(([memberName, [memberFlags]]) => {
898
928
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
929
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
930
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
931
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
932
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
933
+ Object.defineProperty(prototype, memberName, {
934
+ get() {
935
+ {
936
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
937
+ return getValue(this, memberName);
938
+ }
939
+ const ref = getHostRef(this);
940
+ const instance = ref ? ref.$lazyInstance$ : prototype;
941
+ if (!instance) return;
942
+ return instance[memberName];
943
+ }
944
+ },
945
+ configurable: true,
946
+ enumerable: true
947
+ });
948
+ }
899
949
  Object.defineProperty(prototype, memberName, {
900
- get() {
901
- return getValue(this, memberName);
902
- },
903
950
  set(newValue) {
904
- setValue(this, memberName, newValue, cmpMeta);
905
- },
906
- configurable: true,
907
- enumerable: true
951
+ const ref = getHostRef(this);
952
+ if (origSetter) {
953
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
954
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
955
+ newValue = ref.$instanceValues$.get(memberName);
956
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
957
+ ref.$instanceValues$.set(memberName, currentValue);
958
+ }
959
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
960
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
961
+ setValue(this, memberName, newValue, cmpMeta);
962
+ return;
963
+ }
964
+ {
965
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
966
+ setValue(this, memberName, newValue, cmpMeta);
967
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
968
+ ref.$onReadyPromise$.then(() => {
969
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
970
+ ref.$lazyInstance$[memberName] = newValue;
971
+ }
972
+ });
973
+ }
974
+ return;
975
+ }
976
+ const setterSetVal = () => {
977
+ const currentValue = ref.$lazyInstance$[memberName];
978
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
979
+ ref.$instanceValues$.set(memberName, currentValue);
980
+ }
981
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
982
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
983
+ };
984
+ if (ref.$lazyInstance$) {
985
+ setterSetVal();
986
+ } else {
987
+ ref.$onReadyPromise$.then(() => setterSetVal());
988
+ }
989
+ }
990
+ }
908
991
  });
909
992
  }
910
993
  });
@@ -914,7 +997,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
914
997
  plt.jmp(() => {
915
998
  var _a2;
916
999
  const propName = attrNameToPropName.get(attrName);
917
- if (this.hasOwnProperty(propName)) {
1000
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
918
1001
  newValue = this[propName];
919
1002
  delete this[propName];
920
1003
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -934,7 +1017,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
934
1017
  }
935
1018
  return;
936
1019
  }
937
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1020
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1021
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1022
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1023
+ this[propName] = newValue;
1024
+ }
938
1025
  });
939
1026
  };
940
1027
  Cstr.observedAttributes = Array.from(
@@ -961,9 +1048,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
961
1048
  let Cstr;
962
1049
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
963
1050
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
964
- const bundleId = cmpMeta.$lazyBundleId$;
965
- if (bundleId) {
966
- const CstrImport = loadModule(cmpMeta);
1051
+ {
1052
+ const CstrImport = loadModule(cmpMeta, hostRef);
967
1053
  if (CstrImport && "then" in CstrImport) {
968
1054
  const endLoad = uniqueTime();
969
1055
  Cstr = await CstrImport;
@@ -988,7 +1074,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
988
1074
  try {
989
1075
  new Cstr(hostRef);
990
1076
  } catch (e) {
991
- consoleError(e);
1077
+ consoleError(e, elm);
992
1078
  }
993
1079
  {
994
1080
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -997,10 +1083,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
997
1083
  hostRef.$flags$ |= 128 /* isWatchReady */;
998
1084
  }
999
1085
  endNewInstance();
1000
- } else {
1001
- Cstr = elm.constructor;
1002
- const cmpTag = elm.localName;
1003
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1004
1086
  }
1005
1087
  if (Cstr && Cstr.style) {
1006
1088
  let style;
@@ -1023,7 +1105,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1023
1105
  schedule();
1024
1106
  }
1025
1107
  };
1026
- var fireConnectedCallback = (instance) => {
1108
+ var fireConnectedCallback = (instance, elm) => {
1027
1109
  };
1028
1110
 
1029
1111
  // src/runtime/connected-callback.ts
@@ -1063,7 +1145,7 @@ var connectedCallback = (elm) => {
1063
1145
  endConnected();
1064
1146
  }
1065
1147
  };
1066
- var disconnectInstance = (instance) => {
1148
+ var disconnectInstance = (instance, elm) => {
1067
1149
  };
1068
1150
  var disconnectedCallback = async (elm) => {
1069
1151
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1072,6 +1154,12 @@ var disconnectedCallback = async (elm) => {
1072
1154
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1073
1155
  }
1074
1156
  }
1157
+ if (rootAppliedStyles.has(elm)) {
1158
+ rootAppliedStyles.delete(elm);
1159
+ }
1160
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1161
+ rootAppliedStyles.delete(elm.shadowRoot);
1162
+ }
1075
1163
  };
1076
1164
 
1077
1165
  // src/runtime/bootstrap-lazy.ts
@@ -1152,6 +1240,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1152
1240
  }
1153
1241
  disconnectedCallback() {
1154
1242
  plt.jmp(() => disconnectedCallback(this));
1243
+ plt.raf(() => {
1244
+ var _a3;
1245
+ const hostRef = getHostRef(this);
1246
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1247
+ delete hostRef.$vnode$.$elm$;
1248
+ }
1249
+ });
1155
1250
  }
1156
1251
  componentOnReady() {
1157
1252
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-2261775b.js';
2
- export { s as setNonce } from './index-2261775b.js';
1
+ import { b as bootstrapLazy } from './index-b1576640.js';
2
+ export { s as setNonce } from './index-b1576640.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {