PageSourceSearch

https://stridenavigation.com/chunk-SRPSML5O.js

js stridenavigation.com collected 2026-09-24 14:55:12 UTC 79,984 bytes, 2,342 lines download raw bytes

1import {
2  __async,
3  __glob,
4  __spreadValues
5} from "./chunk-CO64IJQE.js";
6
7// import("./**/*.entry.js") in node_modules/@ionic/core/dist/esm/index-527b9e34.js
8var globImport_entry_js = __glob({
9  
9"./ion-accordion_2.entry.js": () => import("./chunk-R656JIFI.js"),
10  
10"./ion-action-sheet.entry.js": () => import("./chunk-2QT3G7YI.js"),
11  
11"./ion-alert.entry.js": () => import("./chunk-GBBVSQTL.js"),
12  
12"./ion-app_8.entry.js": () => import("./chunk-D24N6IG2.js"),
13  
13"./ion-avatar_3.entry.js": () => import("./chunk-3DI5S6GA.js"),
14  
14"./ion-back-button.entry.js": () => import("./chunk-6ITHJOQT.js"),
15  
15"./ion-backdrop.entry.js": () => import("./chunk-GKBUBGDE.js"),
16  
16"./ion-breadcrumb_2.entry.js": () => import("./chunk-KMWJ2BRB.js"),
17  
17"./ion-button_2.entry.js": () => import("./chunk-CYWVPZI4.js"),
18  
18"./ion-card_5.entry.js": () => import("./chunk-UVHCF4LZ.js"),
19  
19"./ion-checkbox.entry.js": () => import("./chunk-SDTA2TOJ.js"),
20  
20"./ion-chip.entry.js": () => import("./chunk-P6UKCSB6.js"),
21  
21"./ion-col_3.entry.js": () => import("./chunk-L46B43MT.js"),
22  
22"./ion-datetime-button.entry.js": () => import("./chunk-VHS3DLTY.js"),
23  
23"./ion-datetime_3.entry.js": () => import("./chunk-MP4NCYEJ.js"),
24  
24"./ion-fab_3.entry.js": () => import("./chunk-EKAA3P4E.js"),
25  
25"./ion-img.entry.js": () => import("./chunk-2DPW73MT.js"),
26  
26"./ion-infinite-scroll_2.entry.js": () => import("./chunk-A4XXMIB6.js"),
27  
27"./ion-input-password-toggle.entry.js": () => import("./chunk-C4YGWTQF.js"),
28  
28"./ion-input.entry.js": () => import("./chunk-GG63NK7J.js"),
29  
29"./ion-item-option_3.entry.js": () => import("./chunk-J5EU7YAW.js"),
30  
30"./ion-item_8.entry.js": () => import("./chunk-QSBGGV2H.js"),
31  
31"./ion-loading.entry.js": () => import("./chunk-QWYFZXDP.js"),
32  
32"./ion-menu_3.entry.js": () => import("./chunk-EOOEAKY6.js"),
33  
33"./ion-modal.entry.js": () => import("./chunk-LTMSQMDX.js"),
34  
34"./ion-nav_2.entry.js": () => import("./chunk-D7MFDMWE.js"),
35  
35"./ion-picker-column-option.entry.js": () => import("./chunk-FOSI3CJ2.js"),
36  
36"./ion-picker-column.entry.js": () => import("./chunk-SHLWOF4G.js"),
37  
37"./ion-picker.entry.js": () => import("./chunk-U52ZOWA5.js"),
38  
38"./ion-popover.entry.js": () => import("./chunk-XZUW3FAG.js"),
39  
39"./ion-progress-bar.entry.js": () => import("./chunk-USMOLPK3.js"),
40  
40"./ion-radio_2.entry.js": () => import("./chunk-S4XGUXKP.js"),
41  
41"./ion-range.entry.js": () => import("./chunk-IWNQGYL7.js"),
42  
42"./ion-refresher_2.entry.js": () => import("./chunk-WTZJBA7C.js"),
43  
43"./ion-reorder_2.entry.js": () => import("./chunk-BW4733IZ.js"),
44  
44"./ion-ripple-effect.entry.js": () => import("./chunk-YCK67IX6.js"),
45  
45"./ion-route_4.entry.js": () => import("./chunk-QFUDMAMU.js"),
46  
46"./ion-searchbar.entry.js": () => import("./chunk-2XFFHONW.js"),
47  
47"./ion-segment-content.entry.js": () => import("./chunk-W4QJFQPP.js"),
48  
48"./ion-segment-view.entry.js": () => import("./chunk-VHYIHVBA.js"),
49  
49"./ion-segment_2.entry.js": () => import("./chunk-Q5J6TR6X.js"),
50  
50"./ion-select-modal.entry.js": () => import("./chunk-NHMZXFOL.js"),
51  
51"./ion-select_3.entry.js": () => import("./chunk-2ONGVEPK.js"),
52  
52"./ion-spinner.entry.js": () => import("./chunk-6HPIMFXY.js"),
53  
53"./ion-split-pane.entry.js": () => import("./chunk-7CG5KNLL.js"),
54  
54"./ion-tab-bar_2.entry.js": () => import("./chunk-X5CIINCH.js"),
55  
55"./ion-tab_2.entry.js": () => import("./chunk-VNAQHPPC.js"),
56  
56"./ion-text.entry.js": () => import("./chunk-NIOD6FQH.js"),
57  
57"./ion-textarea.entry.js": () => import("./chunk-SWZD2YH2.js"),
58  
58"./ion-toast.entry.js": () => import("./chunk-YSI3POUI.js"),
59  
59"./ion-toggle.entry.js": () => import("./chunk-QW72YKF3.js")
59
60});
61
62// node_modules/@ionic/core/dist/esm/index-527b9e34.js
63var NAMESPACE = "ionic";
64var BUILD = (
65  /* ionic */
66  {
67    allRenderFn: false,
68    appendChildSlotFix: true,
69    asyncLoading: true,
70    asyncQueue: false,
71    attachStyles: true,
72    cloneNodeFix: true,
73    cmpDidLoad: true,
74    cmpDidRender: true,
75    cmpDidUnload: false,
76    cmpDidUpdate: true,
77    cmpShouldUpdate: false,
78    cmpWillLoad: true,
79    cmpWillRender: true,
80    cmpWillUpdate: false,
81    connectedCallback: true,
82    constructableCSS: true,
83    cssAnnotations: true,
84    devTools: false,
85    disconnectedCallback: true,
86    element: false,
87    event: true,
88    experimentalScopedSlotChanges: true,
89    experimentalSlotFixes: true,
90    formAssociated: false,
91    hasRenderFn: true,
92    hostListener: true,
93    hostListenerTarget: true,
94    hostListenerTargetBody: true,
95    hostListenerTargetDocument: true,
96    hostListenerTargetParent: false,
97    hostListenerTargetWindow: true,
98    hotModuleReplacement: false,
99    hydrateClientSide: true,
100    hydrateServerSide: false,
101    hydratedAttribute: false,
102    hydratedClass: true,
103    hydratedSelectorName: "hydrated",
104    initializeNextTick: false,
105    invisiblePrehydration: true,
106    isDebug: false,
107    isDev: false,
108    isTesting: false,
109    lazyLoad: true,
110    lifecycle: true,
111    lifecycleDOMEvents: false,
112    member: true,
113    method: true,
114    mode: true,
115    observeAttribute: true,
116    profile: false,
117    prop: true,
118    propBoolean: true,
119    propMutable: true,
120    propNumber: true,
121    propString: true,
122    reflect: true,
123    scoped: true,
124    scopedSlotTextContentFix: true,
125    scriptDataOpts: false,
126    shadowDelegatesFocus: true,
127    shadowDom: true,
128    slot: true,
129    slotChildNodesFix: true,
130    slotRelocation: true,
131    state: true,
132    style: true,
133    svg: true,
134    taskQueue: true,
135    transformTagName: false,
136    updatable: true,
137    vdomAttribute: true,
138    vdomClass: true,
139    vdomFunctional: true,
140    vdomKey: true,
141    vdomListener: true,
142    vdomPropOrAttr: true,
143    vdomRef: true,
144    vdomRender: true,
145    vdomStyle: true,
146    vdomText: true,
147    vdomXlink: true,
148    watchCallback: true
149  }
150);
151var __defProp = Object.defineProperty;
152var __export = (target, all) => {
153  for (var name in all) __defProp(target, name, {
154    get: all[name],
155    enumerable: true
156  });
157};
158var Build = {
159  isDev: false,
160  isBrowser: true,
161  isServer: false,
162  isTesting: false
163};
164var hostRefs = /* @__PURE__ */ new WeakMap();
165var getHostRef = (ref) => hostRefs.get(ref);
166var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
167var registerHost = (hostElement, cmpMeta) => {
168  const hostRef = {
169    $flags$: 0,
170    $hostElement$: hostElement,
171    $cmpMeta$: cmpMeta,
172    $instanceValues$: /* @__PURE__ */ new Map()
173  };
174  {
175    hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
176  }
177  {
178    hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
179    hostElement["s-p"] = [];
180    hostElement["s-rc"] = [];
181  }
182  return hostRefs.set(hostElement, hostRef);
183};
184var isMemberInElement = (elm, memberName) => memberName in elm;
185var consoleError = (e, el) => (0, console.error)(e, el);
186var cmpModules = /* @__PURE__ */ new Map();
187var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
188  const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
189  const bundleId = cmpMeta.$lazyBundleId$;
190  if (!bundleId) {
191    return void 0;
192  }
193  const module = cmpModules.get(bundleId);
194  if (module) {
195    return module[exportName];
196  }
197  return /* @vite-ignore */ /* webpackInclude: /\.entry\.js$/ */ /* webpackExclude: /\.system\.entry\.js$/ */ /* webpackMode: "lazy" */ globImport_entry_js(`./${bundleId}.entry.js${""}`).then((importedModule) => {
198    {
199      cmpModules.set(bundleId, importedModule);
200    }
201    return importedModule[exportName];
202  }, consoleError);
203};
204var styles = /* @__PURE__ */ new Map();
205var modeResolutionChain = [];
206var CONTENT_REF_ID = "r";
207var ORG_LOCATION_ID = "o";
208var SLOT_NODE_ID = "s";
209var TEXT_NODE_ID = "t";
210var HYDRATE_ID = "s-id";
211var HYDRATED_STYLE_ID = "sty-id";
212var HYDRATE_CHILD_ID = "c-id";
213var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
214var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
215var XLINK_NS = "http://www.w3.org/1999/xlink";
216var win = typeof window !== "undefined" ? window : {};
217var doc = win.document || {
218  head: {}
219};
220var H = win.HTMLElement || class {
221};
222var plt = {
223  $flags$: 0,
224  $resourcesUrl$: "",
225  jmp: (h2) => h2(),
226  raf: (h2) => requestAnimationFrame(h2),
227  ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
228  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
229  ce: (eventName, opts) => new CustomEvent(eventName, opts)
230};
231var supportsShadow = BUILD.shadowDom;
232var supportsListenerOptions = /* @__PURE__ */ (() => {
233  let supportsListenerOptions2 = false;
vendor: 4,882 bytes, lines 234-444
234  try {
235    doc.addEventListener("e", null, Object.defineProperty({}, "passive", {
236      get() {
237        supportsListenerOptions2 = true;
238      }
239    }));
240  } catch (e) {
241  }
242  return supportsListenerOptions2;
243})();
244var promiseResolve = (v) => Promise.resolve(v);
245var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
246  try {
247    new CSSStyleSheet();
248    return typeof new CSSStyleSheet().replaceSync === "function";
249  } catch (e) {
250  }
251  return false;
252})();
253var queuePending = false;
254var queueDomReads = [];
255var queueDomWrites = [];
256var queueTask = (queue, write) => (cb) => {
257  queue.push(cb);
258  if (!queuePending) {
259    queuePending = true;
260    if (write && plt.$flags$ & 4) {
261      nextTick(flush);
262    } else {
263      plt.raf(flush);
264    }
265  }
266};
267var consume = (queue) => {
268  for (let i2 = 0; i2 < queue.length; i2++) {
269    try {
270      queue[i2](performance.now());
271    } catch (e) {
272      consoleError(e);
273    }
274  }
275  queue.length = 0;
276};
277var flush = () => {
278  consume(queueDomReads);
279  {
280    consume(queueDomWrites);
281    if (queuePending = queueDomReads.length > 0) {
282      plt.raf(flush);
283    }
284  }
285};
286var nextTick = (cb) => promiseResolve().then(cb);
287var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
288var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
289var getAssetPath = (path) => {
290  const assetUrl = new URL(path, plt.$resourcesUrl$);
291  return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
292};
293var EMPTY_OBJ = {};
294var SVG_NS = "http://www.w3.org/2000/svg";
295var HTML_NS = "http://www.w3.org/1999/xhtml";
296var isDef = (v) => v != null;
297var isComplexType = (o) => {
298  o = typeof o;
299  return o === "object" || o === "function";
300};
301function queryNonceMetaTagContent(doc2) {
302  var _a, _b, _c;
303  return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
304}
305var result_exports = {};
306__export(result_exports, {
307  err: () => err,
308  map: () => map,
309  ok: () => ok,
310  unwrap: () => unwrap,
311  unwrapErr: () => unwrapErr
312});
313var ok = (value) => ({
314  isOk: true,
315  isErr: false,
316  value
317});
318var err = (value) => ({
319  isOk: false,
320  isErr: true,
321  value
322});
323function map(result, fn) {
324  if (result.isOk) {
325    const val = fn(result.value);
326    if (val instanceof Promise) {
327      return val.then((newVal) => ok(newVal));
328    } else {
329      return ok(val);
330    }
331  }
332  if (result.isErr) {
333    const value = result.value;
334    return err(value);
335  }
336  throw "should never get here";
337}
338var unwrap = (result) => {
339  if (result.isOk) {
340    return result.value;
341  } else {
342    throw result.value;
343  }
344};
345var unwrapErr = (result) => {
346  if (result.isErr) {
347    return result.value;
348  } else {
349    throw result.value;
350  }
351};
352var createTime = (fnName, tagName = "") => {
353  {
354    return () => {
355      return;
356    };
357  }
358};
359var uniqueTime = (key, measureText) => {
360  {
361    return () => {
362      return;
363    };
364  }
365};
366var h = (nodeName, vnodeData, ...children) => {
367  let child = null;
368  let key = null;
369  let slotName = null;
370  let simple = false;
371  let lastSimple = false;
372  const vNodeChildren = [];
373  const walk = (c) => {
374    for (let i2 = 0; i2 < c.length; i2++) {
375      child = c[i2];
376      if (Array.isArray(child)) {
377        walk(child);
378      } else if (child != null && typeof child !== "boolean") {
379        if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
380          child = String(child);
381        }
382        if (simple && lastSimple) {
383          vNodeChildren[vNodeChildren.length - 1].$text$ += child;
384        } else {
385          vNodeChildren.push(simple ? newVNode(null, child) : child);
386        }
387        lastSimple = simple;
388      }
389    }
390  };
391  walk(children);
392  if (vnodeData) {
393    if (vnodeData.key) {
394      key = vnodeData.key;
395    }
396    if (vnodeData.name) {
397      slotName = vnodeData.name;
398    }
399    {
400      const classData = vnodeData.className || vnodeData.class;
401      if (classData) {
402        vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
403      }
404    }
405  }
406  if (typeof nodeName === "function") {
407    return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
408  }
409  const vnode = newVNode(nodeName, null);
410  vnode.$attrs$ = vnodeData;
411  if (vNodeChildren.length > 0) {
412    vnode.$children$ = vNodeChildren;
413  }
414  {
415    vnode.$key$ = key;
416  }
417  {
418    vnode.$name$ = slotName;
419  }
420  return vnode;
421};
422var newVNode = (tag, text) => {
423  const vnode = {
424    $flags$: 0,
425    $tag$: tag,
426    $text$: text,
427    $elm$: null,
428    $children$: null
429  };
430  {
431    vnode.$attrs$ = null;
432  }
433  {
434    vnode.$key$ = null;
435  }
436  {
437    vnode.$name$ = null;
438  }
439  return vnode;
440};
441var Host = {};
442var isHost = (node) => node && node.$tag$ === Host;
443var vdomFnUtils = {
444  forEach: (children, cb) =>
444 children.map(convertToPublic).forEach(cb),
445  map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
446};
447var convertToPublic = (node) => ({
448  vattrs: node.$attrs$,
449  vchildren: node.$children$,
450  vkey: node.$key$,
451  vname: node.$name$,
452  vtag: node.$tag$,
453  vtext: node.$text$
454});
455var convertToPrivate = (node) => {
456  if (typeof node.vtag === "function") {
457    const vnodeData = __spreadValues({}, node.vattrs);
458    if (node.vkey) {
459      vnodeData.key = node.vkey;
460    }
461    if (node.vname) {
462      vnodeData.name = node.vname;
463    }
464    return h(node.vtag, vnodeData, ...node.vchildren || []);
465  }
466  const vnode = newVNode(node.vtag, node.vtext);
467  vnode.$attrs$ = node.vattrs;
468  vnode.$children$ = node.vchildren;
469  vnode.$key$ = node.vkey;
470  vnode.$name$ = node.vname;
471  return vnode;
472};
473var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
474  const endHydrate = createTime("hydrateClient", tagName);
475  const shadowRoot = hostElm.shadowRoot;
476  const childRenderNodes = [];
477  const slotNodes = [];
478  const shadowRootNodes = shadowRoot ? [] : null;
479  const vnode = hostRef.$vnode$ = newVNode(tagName, null);
480  if (!plt.$orgLocNodes$) {
481    initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
482  }
483  hostElm[HYDRATE_ID] = hostId;
484  hostElm.removeAttribute(HYDRATE_ID);
485  clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
486  childRenderNodes.map((c) => {
487    const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
488    const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
489    const node = c.$elm$;
490    if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
491      orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
492    }
493    if (!shadowRoot) {
494      node["s-hn"] = tagName;
495      if (orgLocationNode) {
496        node["s-ol"] = orgLocationNode;
497        node["s-ol"]["s-nr"] = node;
498      }
499    }
500    plt.$orgLocNodes$.delete(orgLocationId);
501  });
502  if (shadowRoot) {
503    shadowRootNodes.map((shadowRootNode) => {
504      if (shadowRootNode) {
505        shadowRoot.appendChild(shadowRootNode);
506      }
507    });
508  }
509  endHydrate();
510};
511var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
512  let childNodeType;
513  let childIdSplt;
514  let childVNode;
515  let i2;
516  if (node.nodeType === 1) {
517    childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
518    if (childNodeType) {
519      childIdSplt = childNodeType.split(".");
520      if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
521        childVNode = {
522          $flags$: 0,
523          $hostId$: childIdSplt[0],
524          $nodeId$: childIdSplt[1],
525          $depth$: childIdSplt[2],
526          $index$: childIdSplt[3],
527          $tag$: node.tagName.toLowerCase(),
528          $elm$: node,
529          $attrs$: null,
530          $children$: null,
531          $key$: null,
532          $name$: null,
533          $text$: null
534        };
535        childRenderNodes.push(childVNode);
536        node.removeAttribute(HYDRATE_CHILD_ID);
537        if (!parentVNode.$children$) {
538          parentVNode.$children$ = [];
539        }
540        parentVNode.$children$[childVNode.$index$] = childVNode;
541        parentVNode = childVNode;
542        if (shadowRootNodes && childVNode.$depth$ === "0") {
543          shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
544        }
545      }
546    }
547    if (node.shadowRoot) {
548      for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
549        clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i2], hostId);
550      }
551    }
552    for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
553      clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i2], hostId);
554    }
555  } else if (node.nodeType === 8) {
556    childIdSplt = node.nodeValue.split(".");
557    if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
558      childNodeType = childIdSplt[0];
559      childVNode = {
560        $flags$: 0,
561        $hostId$: childIdSplt[1],
562        $nodeId$: childIdSplt[2],
563        $depth$: childIdSplt[3],
564        $index$: childIdSplt[4],
565        $elm$: node,
566        $attrs$: null,
567        $children$: null,
568        $key$: null,
569        $name$: null,
570        $tag$: null,
571        $text$: null
572      };
573      if (childNodeType === TEXT_NODE_ID) {
574        childVNode.$elm$ = node.nextSibling;
575        if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3) {
576          childVNode.$text$ = childVNode.$elm$.textContent;
577          childRenderNodes.push(childVNode);
578          node.remove();
579          if (!parentVNode.$children$) {
580            parentVNode.$children$ = [];
581          }
582          parentVNode.$children$[childVNode.$index$] = childVNode;
583          if (shadowRootNodes && childVNode.$depth$ === "0") {
584            shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
585          }
586        }
587      } else if (childVNode.$hostId$ === hostId) {
588        if (childNodeType === SLOT_NODE_ID) {
589          childVNode.$tag$ = "slot";
590          if (childIdSplt[5]) {
591            node["s-sn"] = childVNode.$name$ = childIdSplt[5];
592          } else {
593            node["s-sn"] = "";
594          }
595          node["s-sr"] = true;
596          if (shadowRootNodes) {
597            childVNode.$elm$ = doc.createElement(childVNode.$tag$);
598            if (childVNode.$name$) {
599              childVNode.$elm$.setAttribute("name", childVNode.$name$);
600            }
601            node.parentNode.insertBefore(childVNode.$elm$, node);
602            node.remove();
603            if (childVNode.$depth$ === "0") {
604              shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
605            }
606          }
607          slotNodes.push(childVNode);
608          if (!parentVNode.$children$) {
609            parentVNode.$children$ = [];
610          }
611          parentVNode.$children$[childVNode.$index$] = childVNode;
612        } else if (childNodeType === CONTENT_REF_ID) {
613          if (shadowRootNodes) {
614            node.remove();
615          } else {
616            hostElm["s-cr"] = node;
617            node["s-cn"] = true;
618          }
619        }
620      }
621    }
622  } else if (parentVNode && parentVNode.$tag$ === "style") {
623    const vnode = newVNode(null, node.textContent);
624    vnode.$elm$ = node;
625    vnode.$index$ = "0";
626    parentVNode.$children$ = [vnode];
627  }
628};
629var initializeDocumentHydrate = (node, orgLocNodes) => {
630  if (node.nodeType === 1) {
631    let i2 = 0;
632    if (node.shadowRoot) {
633      for (; i2 < node.shadowRoot.childNodes.length; i2++) {
634        initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
635      }
636    }
637    for (i2 = 0; i2 < node.childNodes.length; i2++) {
638      initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
639    }
640  } else if (node.nodeType === 8) {
641    const childIdSplt = node.nodeValue.split(".");
642    if (childIdSplt[0] === ORG_LOCATION_ID) {
643      orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
644      node.nodeValue = "";
645      node["s-en"] = childIdSplt[3];
646    }
647  }
648};
649var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
650var setMode = (handler) => modeResolutionChain.push(handler);
651var getMode = (ref) => getHostRef(ref).$modeName$;
652var parsePropertyValue = (propValue, propType) => {
653  if (propValue != null && !isComplexType(propValue)) {
654    if (propType & 4) {
655      return propValue === "false" ? false : propValue === "" || !!propValue;
656    }
657    if (propType & 2) {
658      return parseFloat(propValue);
659    }
660    if (propType & 1) {
661      return String(propValue);
662    }
663    return propValue;
664  }
665  return propValue;
666};
667var getElement = (ref) => getHostRef(ref).$hostElement$;
668var createEvent = (ref, name, flags) => {
669  const elm = getElement(ref);
670  return {
671    emit: (detail) => {
672      return emitEvent(elm, name, {
673        bubbles: !!(flags & 4),
674        composed: !!(flags & 2),
675        cancelable: !!(flags & 1),
676        detail
677      });
678    }
679  };
680};
681var emitEvent = (elm, name, opts) => {
682  const ev = plt.ce(name, opts);
683  elm.dispatchEvent(ev);
684  return ev;
685};
686var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
687var registerStyle = (scopeId2, cssText, allowCS) => {
688  let style = styles.get(scopeId2);
689  if (supportsConstructableStylesheets && allowCS) {
690    style = style || new CSSStyleSheet();
691    if (typeof style === "string") {
692      style = cssText;
693    } else {
694      style.replaceSync(cssText);
695    }
696  } else {
697    style = cssText;
698  }
699  styles.set(scopeId2, style);
700};
701var addStyle = (styleContainerNode, cmpMeta, mode) => {
702  var _a;
703  const scopeId2 = getScopeId(cmpMeta, mode);
704  const style = styles.get(scopeId2);
705  styleContainerNode = styleContainerNode.nodeType === 11 ? styleContainerNode : doc;
706  if (style) {
707    if (typeof style === "string") {
708      styleContainerNode = styleContainerNode.head || styleContainerNode;
709      let appliedStyles = rootAppliedStyles.get(styleContainerNode);
710      let styleElm;
711      if (!appliedStyles) {
712        rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
713      }
714      if (!appliedStyles.has(scopeId2)) {
715        if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
716          styleElm.innerHTML = style;
717        } else {
718          styleElm = doc.createElement("style");
719          styleElm.innerHTML = style;
720          const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
721          if (nonce != null) {
722            styleElm.setAttribute("nonce", nonce);
723          }
724          const injectStyle = (
725            /**
726             * we render a scoped component
727             */
728            !(cmpMeta.$flags$ & 1) || /**
729            * we are using shadow dom and render the style tag within the shadowRoot
730            */
731            cmpMeta.$flags$ & 1 && styleContainerNode.nodeName !== "HEAD"
732          );
733          if (injectStyle) {
734            styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
735          }
736        }
737        if (cmpMeta.$flags$ & 4) {
738          styleElm.innerHTML += SLOT_FB_CSS;
739        }
740        if (appliedStyles) {
741          appliedStyles.add(scopeId2);
742        }
743      }
744    } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
745      styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
746    }
747  }
748  return scopeId2;
749};
750var attachStyles = (hostRef) => {
751  const cmpMeta = hostRef.$cmpMeta$;
752  const elm = hostRef.$hostElement$;
753  const flags = cmpMeta.$flags$;
754  const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
755  const scopeId2 = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$);
756  if (flags & 10 && flags & 2) {
757    elm["s-sc"] = scopeId2;
758    elm.classList.add(scopeId2 + "-h");
759    if (flags & 2) {
760      elm.classList.add(scopeId2 + "-s");
761    }
762  }
763  endAttachStyles();
764};
765var getScopeId = (cmp, mode) => "sc-" + (mode && cmp.$flags$ & 32 ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
766var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
767  if (oldValue !== newValue) {
768    let isProp = isMemberInElement(elm, memberName);
769    let ln = memberName.toLowerCase();
770    if (memberName === "class") {
771      const classList = elm.classList;
772      const oldClasses = parseClassList(oldValue);
773      const newClasses = parseClassList(newValue);
774      classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
775      classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
776    } else if (memberName === "style") {
777      {
778        for (const prop in oldValue) {
779          if (!newValue || newValue[prop] == null) {
780            if (prop.includes("-")) {
781              elm.style.removeProperty(prop);
782            } else {
783              elm.style[prop] = "";
784            }
785          }
786        }
787      }
788      for (const prop in newValue) {
789        if (!oldValue || newValue[prop] !== oldValue[prop]) {
790          if (prop.includes("-")) {
791            elm.style.setProperty(prop, newValue[prop]);
792          } else {
793            elm.style[prop] = newValue[prop];
794          }
795        }
796      }
797    } else if (memberName === "key") ;
798    else if (memberName === "ref") {
799      if (newValue) {
800        newValue(elm);
801      }
802    } else if (!isProp && memberName[0] === "o" && memberName[1] === "n") {
803      if (memberName[2] === "-") {
804        memberName = memberName.slice(3);
805      } else if (isMemberInElement(win, ln)) {
806        memberName = ln.slice(2);
807      } else {
808        memberName = ln[2] + memberName.slice(3);
809      }
810      if (oldValue || newValue) {
811        const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
812        memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
813        if (oldValue) {
814          plt.rel(elm, memberName, oldValue, capture);
815        }
816        if (newValue) {
817          plt.ael(elm, memberName, newValue, capture);
818        }
819      }
820    } else {
821      const isComplex = isComplexType(newValue);
822      if ((isProp || isComplex && newValue !== null) && !isSvg) {
823        try {
824          if (!elm.tagName.includes("-")) {
825            const n = newValue == null ? "" : newValue;
826            if (memberName === "list") {
827              isProp = false;
828            } else if (oldValue == null || elm[memberName] != n) {
829              elm[memberName] = n;
830            }
831          } else {
832            elm[memberName] = newValue;
833          }
834        } catch (e) {
835        }
836      }
837      let xlink = false;
838      {
839        if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
840          memberName = ln;
841          xlink = true;
842        }
843      }
844      if (newValue == null || newValue === false) {
845        if (newValue !== false || elm.getAttribute(memberName) === "") {
846          if (xlink) {
847            elm.removeAttributeNS(XLINK_NS, memberName);
848          } else {
849            elm.removeAttribute(memberName);
850          }
851        }
852      } else if ((!isProp || flags & 4 || isSvg) && !isComplex) {
853        newValue = newValue === true ? "" : newValue;
854        if (xlink) {
855          elm.setAttributeNS(XLINK_NS, memberName, newValue);
856        } else {
857          elm.setAttribute(memberName, newValue);
858        }
859      }
860    }
861  }
862};
863var parseClassListRegex = /\s/;
864var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
865var CAPTURE_EVENT_SUFFIX = "Capture";
866var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
867var updateElement = (oldVnode, newVnode, isSvgMode2) => {
868  const elm = newVnode.$elm$.nodeType === 11 && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
869  const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
870  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
871  {
872    for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
873      if (!(memberName in newVnodeAttrs)) {
874        setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
875      }
876    }
877  }
878  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
879    setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
880  }
881};
882function sortedAttrNames(attrNames) {
883  return attrNames.includes("ref") ? (
884    // we need to sort these to ensure that `'ref'` is the last attr
885    [...attrNames.filter((attr) => attr !== "ref"), "ref"]
886  ) : (
887    // no need to sort, return the original array
888    attrNames
889  );
890}
891var scopeId;
892var contentRef;
893var hostTagName;
894var useNativeShadowDom = false;
vendor: 11,787 bytes, lines 895-1218
895var checkSlotFallbackVisibility = false;
896var checkSlotRelocate = false;
897var isSvgMode = false;
898var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
899  var _a;
900  const newVNode2 = newParentVNode.$children$[childIndex];
901  let i2 = 0;
902  let elm;
903  let childNode;
904  let oldVNode;
905  if (!useNativeShadowDom) {
906    checkSlotRelocate = true;
907    if (newVNode2.$tag$ === "slot") {
908      if (scopeId) {
909        parentElm.classList.add(scopeId + "-s");
910      }
911      newVNode2.$flags$ |= newVNode2.$children$ ? (
912        // slot element has fallback content
913        // still create an element that "mocks" the slot element
914        2
915      ) : (
916        // slot element does not have fallback content
917        // create an html comment we'll use to always reference
918        // where actual slot content should sit next to
919        1
920      );
921    }
922  }
923  if (newVNode2.$text$ !== null) {
924    elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
925  } else if (newVNode2.$flags$ & 1) {
926    elm = newVNode2.$elm$ = doc.createTextNode("");
927  } else {
928    if (!isSvgMode) {
929      isSvgMode = newVNode2.$tag$ === "svg";
930    }
931    elm = newVNode2.$elm$ = doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 ? "slot-fb" : newVNode2.$tag$);
932    if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
933      isSvgMode = false;
934    }
935    {
936      updateElement(null, newVNode2, isSvgMode);
937    }
938    const rootNode = elm.getRootNode();
939    const isElementWithinShadowRoot = !rootNode.querySelector("body");
940    if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
941      elm.classList.add(elm["s-si"] = scopeId);
942    }
943    {
944      updateElementScopeIds(elm, parentElm);
945    }
946    if (newVNode2.$children$) {
947      for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
948        childNode = createElm(oldParentVNode, newVNode2, i2, elm);
949        if (childNode) {
950          elm.appendChild(childNode);
951        }
952      }
953    }
954    {
955      if (newVNode2.$tag$ === "svg") {
956        isSvgMode = false;
957      } else if (elm.tagName === "foreignObject") {
958        isSvgMode = true;
959      }
960    }
961  }
962  elm["s-hn"] = hostTagName;
963  {
964    if (newVNode2.$flags$ & (2 | 1)) {
965      elm["s-sr"] = true;
966      elm["s-cr"] = contentRef;
967      elm["s-sn"] = newVNode2.$name$ || "";
968      elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
969      oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
970      if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
971        {
972          relocateToHostRoot(oldParentVNode.$elm$);
973        }
974      }
975    }
976  }
977  return elm;
978};
979var relocateToHostRoot = (parentElm) => {
980  plt.$flags$ |= 1;
981  const host = parentElm.closest(hostTagName.toLowerCase());
982  if (host != null) {
983    const contentRefNode = Array.from(host.childNodes).find((ref) => ref["s-cr"]);
984    const childNodeArray = Array.from(parentElm.childNodes);
985    for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {
986      if (childNode["s-sh"] != null) {
987        insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);
988        childNode["s-sh"] = void 0;
989        checkSlotRelocate = true;
990      }
991    }
992  }
993  plt.$flags$ &= ~1;
994};
995var putBackInOriginalLocation = (parentElm, recursive) => {
996  plt.$flags$ |= 1;
997  const oldSlotChildNodes = Array.from(parentElm.childNodes);
998  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
999    let node = parentElm;
1000    while (node = node.nextSibling) {
1001      if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
1002        oldSlotChildNodes.push(node);
1003      }
1004    }
1005  }
1006  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1007    const childNode = oldSlotChildNodes[i2];
1008    if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1009      insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
1010      childNode["s-ol"].remove();
1011      childNode["s-ol"] = void 0;
1012      childNode["s-sh"] = void 0;
1013      checkSlotRelocate = true;
1014    }
1015    if (recursive) {
1016      putBackInOriginalLocation(childNode, recursive);
1017    }
1018  }
1019  plt.$flags$ &= ~1;
1020};
1021var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1022  let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1023  let childNode;
1024  if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1025    containerElm = containerElm.shadowRoot;
1026  }
1027  for (; startIdx <= endIdx; ++startIdx) {
1028    if (vnodes[startIdx]) {
1029      childNode = createElm(null, parentVNode, startIdx, parentElm);
1030      if (childNode) {
1031        vnodes[startIdx].$elm$ = childNode;
1032        insertBefore(containerElm, childNode, referenceNode(before));
1033      }
1034    }
1035  }
1036};
1037var removeVnodes = (vnodes, startIdx, endIdx) => {
1038  for (let index = startIdx; index <= endIdx; ++index) {
1039    const vnode = vnodes[index];
1040    if (vnode) {
1041      const elm = vnode.$elm$;
1042      nullifyVNodeRefs(vnode);
1043      if (elm) {
1044        {
1045          checkSlotFallbackVisibility = true;
1046          if (elm["s-ol"]) {
1047            elm["s-ol"].remove();
1048          } else {
1049            putBackInOriginalLocation(elm, true);
1050          }
1051        }
1052        elm.remove();
1053      }
1054    }
1055  }
1056};
1057var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1058  let oldStartIdx = 0;
1059  let newStartIdx = 0;
1060  let idxInOld = 0;
1061  let i2 = 0;
1062  let oldEndIdx = oldCh.length - 1;
1063  let oldStartVnode = oldCh[0];
1064  let oldEndVnode = oldCh[oldEndIdx];
1065  let newEndIdx = newCh.length - 1;
1066  let newStartVnode = newCh[0];
1067  let newEndVnode = newCh[newEndIdx];
1068  let node;
1069  let elmToMove;
1070  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1071    if (oldStartVnode == null) {
1072      oldStartVnode = oldCh[++oldStartIdx];
1073    } else if (oldEndVnode == null) {
1074      oldEndVnode = oldCh[--oldEndIdx];
1075    } else if (newStartVnode == null) {
1076      newStartVnode = newCh[++newStartIdx];
1077    } else if (newEndVnode == null) {
1078      newEndVnode = newCh[--newEndIdx];
1079    } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1080      patch(oldStartVnode, newStartVnode, isInitialRender);
1081      oldStartVnode = oldCh[++oldStartIdx];
1082      newStartVnode = newCh[++newStartIdx];
1083    } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1084      patch(oldEndVnode, newEndVnode, isInitialRender);
1085      oldEndVnode = oldCh[--oldEndIdx];
1086      newEndVnode = newCh[--newEndIdx];
1087    } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1088      if (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot") {
1089        putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1090      }
1091      patch(oldStartVnode, newEndVnode, isInitialRender);
1092      insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1093      oldStartVnode = oldCh[++oldStartIdx];
1094      newEndVnode = newCh[--newEndIdx];
1095    } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1096      if (oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot") {
1097        putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1098      }
1099      patch(oldEndVnode, newStartVnode, isInitialRender);
1100      insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
1101      oldEndVnode = oldCh[--oldEndIdx];
1102      newStartVnode = newCh[++newStartIdx];
1103    } else {
1104      idxInOld = -1;
1105      {
1106        for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
1107          if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
1108            idxInOld = i2;
1109            break;
1110          }
1111        }
1112      }
1113      if (idxInOld >= 0) {
1114        elmToMove = oldCh[idxInOld];
1115        if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1116          node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
1117        } else {
1118          patch(elmToMove, newStartVnode, isInitialRender);
1119          oldCh[idxInOld] = void 0;
1120          node = elmToMove.$elm$;
1121        }
1122        newStartVnode = newCh[++newStartIdx];
1123      } else {
1124        node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
1125        newStartVnode = newCh[++newStartIdx];
1126      }
1127      if (node) {
1128        {
1129          insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
1130        }
1131      }
1132    }
1133  }
1134  if (oldStartIdx > oldEndIdx) {
1135    addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode2, newCh, newStartIdx, newEndIdx);
1136  } else if (newStartIdx > newEndIdx) {
1137    removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1138  }
1139};
1140var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1141  if (leftVNode.$tag$ === rightVNode.$tag$) {
1142    if (leftVNode.$tag$ === "slot") {
1143      if (
1144        // The component gets hydrated and no VDOM has been initialized.
1145        // Here the comparison can't happen as $name$ property is not set for `leftNode`.
1146        "$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
1147        // hydration comments to be removed
1148        leftVNode.$elm$.nodeType !== 8
1149      ) {
1150        return false;
1151      }
1152      return leftVNode.$name$ === rightVNode.$name$;
1153    }
1154    if (!isInitialRender) {
1155      return leftVNode.$key$ === rightVNode.$key$;
1156    }
1157    return true;
1158  }
1159  return false;
1160};
1161var referenceNode = (node) => {
1162  return node && node["s-ol"] || node;
1163};
1164var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
1165var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1166  const elm = newVNode2.$elm$ = oldVNode.$elm$;
1167  const oldChildren = oldVNode.$children$;
1168  const newChildren = newVNode2.$children$;
1169  const tag = newVNode2.$tag$;
1170  const text = newVNode2.$text$;
1171  let defaultHolder;
1172  if (text === null) {
1173    {
1174      isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1175    }
1176    {
1177      if (tag === "slot" && !useNativeShadowDom) {
1178        if (oldVNode.$name$ !== newVNode2.$name$) {
1179          newVNode2.$elm$["s-sn"] = newVNode2.$name$ || "";
1180          relocateToHostRoot(newVNode2.$elm$.parentElement);
1181        }
1182      } else {
1183        updateElement(oldVNode, newVNode2, isSvgMode);
1184      }
1185    }
1186    if (oldChildren !== null && newChildren !== null) {
1187      updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
1188    } else if (newChildren !== null) {
1189      if (oldVNode.$text$ !== null) {
1190        elm.textContent = "";
1191      }
1192      addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
1193    } else if (
1194      // don't do this on initial render as it can cause non-hydrated content to be removed
1195      !isInitialRender && BUILD.updatable && oldChildren !== null
1196    ) {
1197      removeVnodes(oldChildren, 0, oldChildren.length - 1);
1198    }
1199    if (isSvgMode && tag === "svg") {
1200      isSvgMode = false;
1201    }
1202  } else if (defaultHolder = elm["s-cr"]) {
1203    defaultHolder.parentNode.textContent = text;
1204  } else if (oldVNode.$text$ !== text) {
1205    elm.data = text;
1206  }
1207};
1208var updateFallbackSlotVisibility = (elm) => {
1209  const childNodes = elm.childNodes;
1210  for (const childNode of childNodes) {
1211    if (childNode.nodeType === 1) {
1212      if (childNode["s-sr"]) {
1213        const slotName = childNode["s-sn"];
1214        childNode.hidden = false;
1215        for (const siblingNode of childNodes) {
1216          if (siblingNode !== childNode) {
1217            if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
1218              if (siblingNode.nodeType === 1 && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["
1218s-sn"]) || siblingNode.nodeType === 3 && slotName === siblingNode["s-sn"]) {
1219                childNode.hidden = true;
1220                break;
1221              }
1222            } else {
1223              if (siblingNode.nodeType === 1 || siblingNode.nodeType === 3 && siblingNode.textContent.trim() !== "") {
1224                childNode.hidden = true;
1225                break;
1226              }
1227            }
1228          }
1229        }
1230      }
1231      updateFallbackSlotVisibility(childNode);
1232    }
1233  }
1234};
1235var relocateNodes = [];
1236var markSlotContentForRelocation = (elm) => {
1237  let node;
1238  let hostContentNodes;
1239  let j;
1240  for (const childNode of elm.childNodes) {
1241    if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1242      hostContentNodes = node.parentNode.childNodes;
1243      const slotName = childNode["s-sn"];
1244      for (j = hostContentNodes.length - 1; j >= 0; j--) {
1245        node = hostContentNodes[j];
1246        if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
1247          if (isNodeLocatedInSlot(node, slotName)) {
1248            let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1249            checkSlotFallbackVisibility = true;
1250            node["s-sn"] = node["s-sn"] || slotName;
1251            if (relocateNodeData) {
1252              relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
1253              relocateNodeData.$slotRefNode$ = childNode;
1254            } else {
1255              node["s-sh"] = childNode["s-hn"];
1256              relocateNodes.push({
1257                $slotRefNode$: childNode,
1258                $nodeToRelocate$: node
1259              });
1260            }
1261            if (node["s-sr"]) {
1262              relocateNodes.map((relocateNode) => {
1263                if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
1264                  relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1265                  if (relocateNodeData && !relocateNode.$slotRefNode$) {
1266                    relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1267                  }
1268                }
1269              });
1270            }
1271          } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1272            relocateNodes.push({
1273              $nodeToRelocate$: node
1274            });
1275          }
1276        }
1277      }
1278    }
1279    if (childNode.nodeType === 1) {
1280      markSlotContentForRelocation(childNode);
1281    }
1282  }
1283};
1284var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1285  if (nodeToRelocate.nodeType === 1) {
1286    if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
1287      return true;
1288    }
1289    if (nodeToRelocate.getAttribute("slot") === slotName) {
1290      return true;
1291    }
1292    return false;
1293  }
1294  if (nodeToRelocate["s-sn"] === slotName) {
1295    return true;
1296  }
1297  return slotName === "";
1298};
1299var nullifyVNodeRefs = (vNode) => {
1300  {
1301    vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1302    vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1303  }
1304};
1305var insertBefore = (parent, newNode, reference) => {
1306  const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
1307  {
1308    updateElementScopeIds(newNode, parent);
1309  }
1310  return inserted;
1311};
1312var findScopeIds = (element) => {
1313  const scopeIds = [];
1314  if (element) {
1315    scopeIds.push(...element["s-scs"] || [], element["s-si"], element["s-sc"], ...findScopeIds(element.parentElement));
1316  }
1317  return scopeIds;
1318};
1319var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
1320  var _a;
1321  if (element && parent && element.nodeType === 1) {
1322    const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
1323    if (scopeIds.size) {
1324      (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
1325      if (element["s-ol"] || iterateChildNodes) {
1326        for (const childNode of Array.from(element.childNodes)) {
1327          updateElementScopeIds(childNode, element, true);
1328        }
1329      }
1330    }
1331  }
1332};
1333var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1334  var _a, _b, _c, _d, _e;
1335  const hostElm = hostRef.$hostElement$;
1336  const cmpMeta = hostRef.$cmpMeta$;
1337  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1338  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1339  hostTagName = hostElm.tagName;
1340  if (cmpMeta.$attrsToReflect$) {
1341    rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1342    cmpMeta.$attrsToReflect$.map(([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]);
1343  }
1344  if (isInitialLoad && rootVnode.$attrs$) {
1345    for (const key of Object.keys(rootVnode.$attrs$)) {
1346      if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
1347        rootVnode.$attrs$[key] = hostElm[key];
1348      }
1349    }
1350  }
1351  rootVnode.$tag$ = null;
1352  rootVnode.$flags$ |= 4;
1353  hostRef.$vnode$ = rootVnode;
1354  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm;
1355  {
1356    scopeId = hostElm["s-sc"];
1357  }
1358  useNativeShadowDom = (cmpMeta.$flags$ & 1) !== 0;
1359  {
1360    contentRef = hostElm["s-cr"];
1361    checkSlotFallbackVisibility = false;
1362  }
1363  patch(oldVNode, rootVnode, isInitialLoad);
1364  {
1365    plt.$flags$ |= 1;
1366    if (checkSlotRelocate) {
1367      markSlotContentForRelocation(rootVnode.$elm$);
1368      for (const relocateData of relocateNodes) {
1369        const nodeToRelocate = relocateData.$nodeToRelocate$;
1370        if (!nodeToRelocate["s-ol"]) {
1371          const orgLocationNode = doc.createTextNode("");
1372          orgLocationNode["s-nr"] = nodeToRelocate;
1373          insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1374        }
1375      }
1376      for (const relocateData of relocateNodes) {
1377        const nodeToRelocate = relocateData.$nodeToRelocate$;
1378        const slotRefNode = relocateData.$slotRefNode$;
1379        if (slotRefNode) {
1380          const parentNodeRef = slotRefNode.parentNode;
1381          let insertBeforeNode = slotRefNode.nextSibling;
1382          if (insertBeforeNode && insertBeforeNode.nodeType === 1) {
1383            let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1384            while (orgLocationNode) {
1385              let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1386              if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
1387                refNode = refNode.nextSibling;
1388                while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1389                  refNode = refNode == null ? void 0 : refNode.nextSibling;
1390                }
1391                if (!refNode || !refNode["s-nr"]) {
1392                  insertBeforeNode = refNode;
1393                  break;
1394                }
1395              }
1396              orgLocationNode = orgLocationNode.previousSibling;
1397            }
1398          }
1399          if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1400            if (nodeToRelocate !== insertBeforeNode) {
1401              insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1402              if (nodeToRelocate.nodeType === 1) {
1403                nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1404              }
1405            }
1406          }
1407          nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
1408        } else {
1409          if (nodeToRelocate.nodeType === 1) {
1410            if (isInitialLoad) {
1411              nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1412            }
1413            nodeToRelocate.hidden = true;
1414          }
1415        }
1416      }
1417    }
1418    if (checkSlotFallbackVisibility) {
1419      updateFallbackSlotVisibility(rootVnode.$elm$);
1420    }
1421    plt.$flags$ &= ~1;
1422    relocateNodes.length = 0;
1423  }
1424  if (cmpMeta.$flags$ & 2) {
1425    for (const childNode of rootVnode.$elm$.childNodes) {
1426      if (childNode["s-hn"] !== hostTagName && !childNode["s-sh"]) {
1427        if (isInitialLoad && childNode["s-ih"] == null) {
1428          childNode["s-ih"] = (_e = childNode.hidden) != null ? _e : false;
1429        }
1430        childNode.hidden = true;
1431      }
1432    }
1433  }
1434  contentRef = void 0;
1435};
1436var attachToAncestor = (hostRef, ancestorComponent) => {
1437  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1438    ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1439  }
1440};
1441var scheduleUpdate = (hostRef, isInitialLoad) => {
1442  {
1443    hostRef.$flags$ |= 16;
1444  }
1445  if (hostRef.$flags$ & 4) {
1446    hostRef.$flags$ |= 512;
1447    return;
1448  }
1449  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1450  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1451  return writeTask(dispatch);
1452};
1453var dispatchHooks = (hostRef, isInitialLoad) => {
1454  const elm = hostRef.$hostElement$;
1455  const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
1456  const instance = hostRef.$lazyInstance$;
1457  if (!instance) {
1458    throw new Error(`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);
1459  }
1460  let maybePromise;
1461  if (isInitialLoad) {
1462    {
1463      hostRef.$flags$ |= 256;
1464      if (hostRef.$queuedListeners$) {
1465        hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1466        hostRef.$queuedListeners$ = void 0;
1467      }
1468    }
1469    {
1470      maybePromise = safeCall(instance, "componentWillLoad");
1471    }
1472  }
1473  {
1474    maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
1475  }
1476  endSchedule();
1477  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1478};
1479var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
1480  console.error(err2);
1481  fn();
1482}) : fn();
1483var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
1484var updateComponent = (hostRef, instance, isInitialLoad) => __async(void 0, null, function* () {
1485  var _a;
1486  const elm = hostRef.$hostElement$;
1487  const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
1488  const rc = elm["s-rc"];
1489  if (isInitialLoad) {
1490    attachStyles(hostRef);
1491  }
1492  const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
1493  {
1494    callRender(hostRef, instance, elm, isInitialLoad);
1495  }
1496  if (rc) {
1497    rc.map((cb) => cb());
1498    elm["s-rc"] = void 0;
1499  }
1500  endRender();
1501  endUpdate();
1502  {
1503    const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
1504    const postUpdate = () => postUpdateComponent(hostRef);
1505    if (childrenPromises.length === 0) {
1506      postUpdate();
1507    } else {
1508      Promise.all(childrenPromises).then(postUpdate);
1509      hostRef.$flags$ |= 4;
1510      childrenPromises.length = 0;
1511    }
1512  }
1513});
1514var callRender = (hostRef, instance, elm, isInitialLoad) => {
1515  try {
1516    instance = instance.render && instance.render();
1517    {
1518      hostRef.$flags$ &= ~16;
1519    }
1520    {
1521      hostRef.$flags$ |= 2;
1522    }
1523    {
1524      {
1525        {
1526          renderVdom(hostRef, instance, isInitialLoad);
1527        }
1528      }
1529    }
1530  } catch (e) {
1531    consoleError(e, hostRef.$hostElement$);
1532  }
1533  return null;
1534};
1535var postUpdateComponent = (hostRef) => {
1536  const tagName = hostRef.$cmpMeta$.$tagName$;
1537  const elm = hostRef.$hostElement$;
1538  const endPostUpdate = createTime("postUpdate", tagName);
1539  const instance = hostRef.$lazyInstance$;
1540  const ancestorComponent = hostRef.$ancestorComponent$;
1541  {
1542    safeCall(instance, "componentDidRender");
1543  }
1544  if (!(hostRef.$flags$ & 64)) {
1545    hostRef.$flags$ |= 64;
1546    {
1547      addHydratedFlag(elm);
1548    }
1549    {
1550      safeCall(instance, "componentDidLoad");
1551    }
1552    endPostUpdate();
1553    {
1554      hostRef.$onReadyResolve$(elm);
1555      if (!ancestorComponent) {
1556        appDidLoad();
1557      }
1558    }
1559  } else {
1560    {
1561      safeCall(instance, "componentDidUpdate");
1562    }
1563    endPostUpdate();
1564  }
1565  {
1566    hostRef.$onInstanceResolve$(elm);
1567  }
1568  {
1569    if (hostRef.$onRenderResolve$) {
1570      hostRef.$onRenderResolve$();
1571      hostRef.$onRenderResolve$ = void 0;
1572    }
1573    if (hostRef.$flags$ & 512) {
1574      nextTick(() => scheduleUpdate(hostRef, false));
1575    }
1576    hostRef.$flags$ &= ~(4 | 512);
1577  }
1578};
1579var forceUpdate = (ref) => {
1580  {
1581    const hostRef = getHostRef(ref);
1582    const isConnected = hostRef.$hostElement$.isConnected;
1583    if (isConnected && (hostRef.$flags$ & (2 | 16)) === 2) {
1584      scheduleUpdate(hostRef, false);
1585    }
1586    return isConnected;
1587  }
1588};
1589var appDidLoad = (who) => {
1590  {
1591    addHydratedFlag(doc.documentElement);
1592  }
1593  nextTick(() => emitEvent(win, "appload", {
1594    detail: {
1595      namespace: NAMESPACE
1596    }
1597  }));
1598};
1599var safeCall = (instance, method, arg) => {
1600  if (instance && instance[method]) {
1601    try {
1602      return instance[method](arg);
1603    } catch (e) {
1604      consoleError(e);
1605    }
1606  }
1607  return void 0;
1608};
1609var addHydratedFlag = (elm) => {
1610  var _a;
1611  return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated");
1612};
1613var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1614var setValue = (ref, propName, newVal, cmpMeta) => {
1615  const hostRef = getHostRef(ref);
1616  if (!hostRef) {
1617    throw new Error(`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);
1618  }
1619  const elm = hostRef.$hostElement$;
1620  const oldVal = hostRef.$instanceValues$.get(propName);
1621  const flags = hostRef.$flags$;
1622  const instance = hostRef.$lazyInstance$;
1623  newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1624  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1625  const didValueChange = newVal !== oldVal && !areBothNaN;
1626  if ((!(flags & 8) || oldVal === void 0) && didValueChange) {
1627    hostRef.$instanceValues$.set(propName, newVal);
1628    if (instance) {
1629      if (cmpMeta.$watchers$ && flags & 128) {
1630        const watchMethods = cmpMeta.$watchers$[propName];
1631        if (watchMethods) {
1632          watchMethods.map((watchMethodName) => {
1633            try {
1634              instance[watchMethodName](newVal, oldVal, propName);
1635            } catch (e) {
1636              consoleError(e, elm);
1637            }
1638          });
1639        }
1640      }
1641      if ((flags & (2 | 16)) === 2) {
1642        scheduleUpdate(hostRef, false);
1643      }
1644    }
1645  }
1646};
1647var proxyComponent = (Cstr, cmpMeta, flags) => {
1648  var _a, _b;
1649  const prototype = Cstr.prototype;
1650  if (cmpMeta.$members$ || cmpMeta.$watchers$ || Cstr.watchers) {
1651    if (Cstr.watchers && !cmpMeta.$watchers$) {
1652      cmpMeta.$watchers$ = Cstr.watchers;
1653    }
1654    const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1655    members.map(([memberName, [memberFlags]]) => {
1656      if (memberFlags & 31 || flags & 2 && memberFlags & 32) {
1657        Object.defineProperty(prototype, memberName, {
1658          get() {
1659            return getValue(this, memberName);
1660          },
1661          set(newValue) {
1662            setValue(this, memberName, newValue, cmpMeta);
1663          },
1664          configurable: true,
1665          enumerable: true
1666        });
1667      } else if (flags & 1 && memberFlags & 64) {
1668        Object.defineProperty(prototype, memberName, {
1669          value(...args) {
1670            var _a2;
1671            const ref = getHostRef(this);
1672            return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1673              var _a3;
1674              return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1675            });
1676          }
1677        });
1678      }
1679    });
1680    if (flags & 1) {
1681      const attrNameToPropName = /* @__PURE__ */ new Map();
1682      prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1683        plt.jmp(() => {
1684          var _a2;
1685          const propName = attrNameToPropName.get(attrName);
1686          if (this.hasOwnProperty(propName)) {
1687            newValue = this[propName];
1688            delete this[propName];
1689          } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1690          this[propName] == newValue) {
1691            return;
1692          } else if (propName == null) {
1693            const hostRef = getHostRef(this);
1694            const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1695            if (flags2 && !(flags2 & 8) && flags2 & 128 && newValue !== oldValue) {
1696              const instance = hostRef.$lazyInstance$;
1697              const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1698              entry == null ? void 0 : entry.forEach((callbackName) => {
1699                if (instance[callbackName] != null) {
1700                  instance[callbackName].call(instance, newValue, oldValue, attrName);
1701                }
1702              });
1703            }
1704            return;
1705          }
1706          this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1707        });
1708      };
1709      Cstr.observedAttributes = Array.from(/* @__PURE__ */ new Set([...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}), ...members.filter(
1710        ([_, m]) => m[0] & 15
1711        /* HasAttribute */
1712      ).map(([propName, m]) => {
1713        var _a2;
1714        const attrName = m[1] || propName;
1715        attrNameToPropName.set(attrName, propName);
1716        if (m[0] & 512) {
1717          (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
1718        }
1719        return attrName;
1720      })]));
1721    }
1722  }
1723  return Cstr;
1724};
1725var initializeComponent = (elm, hostRef, cmpMeta, hmrVersionId) => __async(void 0, null, function* () {
1726  let Cstr;
1727  if ((hostRef.$flags$ & 32) === 0) {
1728    hostRef.$flags$ |= 32;
1729    const bundleId = cmpMeta.$lazyBundleId$;
1730    if (bundleId) {
1731      const CstrImport = loadModule(cmpMeta);
1732      if (CstrImport && "then" in CstrImport) {
1733        const endLoad = uniqueTime();
1734        Cstr = yield CstrImport;
1735        endLoad();
1736      } else {
1737        Cstr = CstrImport;
1738      }
1739      if (!Cstr) {
1740        throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1741      }
1742      if (!Cstr.isProxied) {
1743        {
1744          cmpMeta.$watchers$ = Cstr.watchers;
1745        }
1746        proxyComponent(
1747          Cstr,
1748          cmpMeta,
1749          2
1750          /* proxyState */
1751        );
1752        Cstr.isProxied = true;
1753      }
1754      const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1755      {
1756        hostRef.$flags$ |= 8;
1757      }
1758      try {
1759        new Cstr(hostRef);
1760      } catch (e) {
1761        consoleError(e);
1762      }
1763      {
1764        hostRef.$flags$ &= ~8;
1765      }
1766      {
1767        hostRef.$flags$ |= 128;
1768      }
1769      endNewInstance();
1770      fireConnectedCallback(hostRef.$lazyInstance$);
1771    } else {
1772      Cstr = elm.constructor;
1773      const cmpTag = elm.localName;
1774      customElements.whenDefined(cmpTag).then(
1775        () => hostRef.$flags$ |= 128
1776        /* isWatchReady */
1777      );
1778    }
1779    if (Cstr && Cstr.style) {
1780      let style;
1781      if (typeof Cstr.style === "string") {
1782        style = Cstr.style;
1783      } else if (typeof Cstr.style !== "string") {
1784        hostRef.$modeName$ = computeMode(elm);
1785        if (hostRef.$modeName$) {
1786          style = Cstr.style[hostRef.$modeName$];
1787        }
1788      }
1789      const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
1790      if (!styles.has(scopeId2)) {
1791        const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1792        registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1));
1793        endRegisterStyles();
1794      }
1795    }
1796  }
1797  const ancestorComponent = hostRef.$ancestorComponent$;
1798  const schedule = () => scheduleUpdate(hostRef, true);
1799  if (ancestorComponent && ancestorComponent["s-rc"]) {
1800    ancestorComponent["s-rc"].push(schedule);
1801  } else {
1802    schedule();
1803  }
1804});
1805var fireConnectedCallback = (instance) => {
1806  {
1807    safeCall(instance, "connectedCallback");
1808  }
1809};
1810var connectedCallback = (elm) => {
1811  if ((plt.$flags$ & 1) === 0) {
1812    const hostRef = getHostRef(elm);
1813    const cmpMeta = hostRef.$cmpMeta$;
1814    const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1815    if (!(hostRef.$flags$ & 1)) {
1816      hostRef.$flags$ |= 1;
1817      let hostId;
1818      {
1819        hostId = elm.getAttribute(HYDRATE_ID);
1820        if (hostId) {
1821          if (cmpMeta.$flags$ & 1) {
1822            const scopeId2 = addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute("s-mode"));
1823            elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
1824          }
1825          initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
1826        }
1827      }
1828      if (!hostId) {
1829        if (
1830          // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1831          cmpMeta.$flags$ & (4 | 8)
1832        ) {
1833          setContentReference(elm);
1834        }
1835      }
1836      {
1837        let ancestorComponent = elm;
1838        while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1839          if (ancestorComponent.nodeType === 1 && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
1840            attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1841            break;
1842          }
1843        }
1844      }
1845      if (cmpMeta.$members$) {
1846        Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1847          if (memberFlags & 31 && elm.hasOwnProperty(memberName)) {
1848            const value = elm[memberName];
1849            delete elm[memberName];
1850            elm[memberName] = value;
1851          }
1852        });
1853      }
1854      {
1855        initializeComponent(elm, hostRef, cmpMeta);
1856      }
1857    } else {
1858      addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1859      if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1860        fireConnectedCallback(hostRef.$lazyInstance$);
1861      } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1862        hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1863      }
1864    }
1865    endConnected();
1866  }
1867};
1868var setContentReference = (elm) => {
1869  const contentRefElm = elm["s-cr"] = doc.createComment("");
1870  contentRefElm["s-cn"] = true;
1871  insertBefore(elm, contentRefElm, elm.firstChild);
1872};
1873var disconnectInstance = (instance) => {
1874  {
1875    safeCall(instance, "disconnectedCallback");
1876  }
1877};
1878var disconnectedCallback = (elm) => __async(void 0, null, function* () {
1879  if ((plt.$flags$ & 1) === 0) {
1880    const hostRef = getHostRef(elm);
1881    {
1882      if (hostRef.$rmListeners$) {
1883        hostRef.$rmListeners$.map((rmListener) => rmListener());
1884        hostRef.$rmListeners$ = void 0;
1885      }
1886    }
1887    if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1888      disconnectInstance(hostRef.$lazyInstance$);
1889    } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1890      hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1891    }
1892  }
1893});
1894var patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {
1895  patchCloneNode(hostElementPrototype);
1896  patchSlotAppendChild(hostElementPrototype);
1897  patchSlotAppend(hostElementPrototype);
1898  patchSlotPrepend(hostElementPrototype);
1899  patchSlotInsertAdjacentElement(hostElementPrototype);
1900  patchSlotInsertAdjacentHTML(hostElementPrototype);
1901  patchSlotInsertAdjacentText(hostElementPrototype);
1902  patchTextContent(hostElementPrototype);
1903  patchChildSlotNodes(hostElementPrototype, descriptorPrototype);
1904  patchSlotRemoveChild(hostElementPrototype);
1905};
1906var patchCloneNode = (HostElementPrototype) => {
1907  const orgCloneNode = HostElementPrototype.cloneNode;
1908  HostElementPrototype.cloneNode = function(deep) {
1909    const srcNode = this;
1910    const isShadowDom = srcNode.shadowRoot && supportsShadow;
1911    const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);
1912    if (!isShadowDom && deep) {
1913      let i2 = 0;
1914      let slotted, nonStencilNode;
1915      const stencilPrivates = ["s-id", "s-cr", "s-lr", "s-rc", "s-sc", "s-p", "s-cn", "s-sr", "s-sn", "s-hn", "s-ol", "s-nr", "s-si", "s-rf", "s-scs"];
1916      for (; i2 < srcNode.childNodes.length; i2++) {
1917        slotted = srcNode.childNodes[i2]["s-nr"];
1918        nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i2][privateField]);
1919        if (slotted) {
1920          if (clonedNode.__appendChild) {
1921            clonedNode.__appendChild(slotted.cloneNode(true));
1922          } else {
1923            clonedNode.appendChild(slotted.cloneNode(true));
1924          }
1925        }
1926        if (nonStencilNode) {
1927          clonedNode.appendChild(srcNode.childNodes[i2].cloneNode(true));
1928        }
1929      }
1930    }
1931    return clonedNode;
1932  };
1933};
1934var patchSlotAppendChild = (HostElementPrototype) => {
1935  HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
1936  HostElementPrototype.appendChild = function(newChild) {
1937    const slotName = newChild["s-sn"] = getSlotName(newChild);
1938    const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
1939    if (slotNode) {
1940      const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1941      const appendAfter = slotChildNodes[slotChildNodes.length - 1];
1942      const insertedNode = insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1943      updateFallbackSlotVisibility(this);
1944      return insertedNode;
1945    }
1946    return this.__appendChild(newChild);
1947  };
1948};
1949var patchSlotRemoveChild = (ElementPrototype) => {
1950  ElementPrototype.__removeChild = ElementPrototype.removeChild;
1951  ElementPrototype.removeChild = function(toRemove) {
1952    if (toRemove && typeof toRemove["s-sn"] !== "undefined") {
1953      const slotNode = getHostSlotNode(this.childNodes, toRemove["s-sn"], this.tagName);
1954      if (slotNode) {
1955        const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove["s-sn"]);
1956        const existingNode = slotChildNodes.find((n) => n === toRemove);
1957        if (existingNode) {
1958          existingNode.remove();
1959          updateFallbackSlotVisibility(this);
1960          return;
1961        }
1962      }
1963    }
1964    return this.__removeChild(toRemove);
1965  };
1966};
1967var patchSlotPrepend = (HostElementPrototype) => {
1968  const originalPrepend = HostElementPrototype.prepend;
1969  HostElementPrototype.prepend = function(...newChildren) {
1970    newChildren.forEach((newChild) => {
1971      if (typeof newChild === "string") {
1972        newChild = this.ownerDocument.createTextNode(newChild);
1973      }
1974      const slotName = newChild["s-sn"] = getSlotName(newChild);
1975      const slotNode = getHostSlotNode(this.childNodes, slotName, this.tagName);
1976      if (slotNode) {
1977        const slotPlaceholder = document.createTextNode("");
1978        slotPlaceholder["s-nr"] = newChild;
1979        slotNode["s-cr"].parentNode.__appendChild(slotPlaceholder);
1980        newChild["s-ol"] = slotPlaceholder;
1981        const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
1982        const appendAfter = slotChildNodes[0];
1983        return insertBefore(appendAfter.parentNode, newChild, appendAfter.nextSibling);
1984      }
1985      if (newChild.nodeType === 1 && !!newChild.getAttribute("slot")) {
1986        newChild.hidden = true;
1987      }
1988      return originalPrepend.call(this, newChild);
1989    });
1990  };
1991};
1992var patchSlotAppend = (HostElementPrototype) => {
1993  HostElementPrototype.append = function(...newChildren) {
1994    newChildren.forEach((newChild) => {
1995      if (typeof newChild === "string") {
1996        newChild = this.ownerDocument.createTextNode(newChild);
1997      }
1998      this.appendChild(newChild);
1999    });
2000  };
2001};
2002var patchSlotInsertAdjacentHTML = (HostElementPrototype) => {
2003  const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;
2004  HostElementPrototype.insertAdjacentHTML = function(position, text) {
2005    if (position !== "afterbegin" && position !== "beforeend") {
2006      return originalInsertAdjacentHtml.call(this, position, text);
2007    }
2008    const container = this.ownerDocument.createElement("_");
2009    let node;
2010    container.innerHTML = text;
2011    if (position === "afterbegin") {
2012      while (node = container.firstChild) {
2013        this.prepend(node);
2014      }
2015    } else if (position === "beforeend") {
2016      while (node = container.firstChild) {
2017        this.append(node);
2018      }
2019    }
2020  };
2021};
2022var patchSlotInsertAdjacentText = (HostElementPrototype) => {
2023  HostElementPrototype.insertAdjacentText = function(position, text) {
2024    this.insertAdjacentHTML(position, text);
2025  };
2026};
2027var patchSlotInsertAdjacentElement = (HostElementPrototype) => {
2028  const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;
2029  HostElementPrototype.insertAdjacentElement = function(position, element) {
2030    if (position !== "afterbegin" && position !== "beforeend") {
2031      return originalInsertAdjacentElement.call(this, position, element);
2032    }
2033    if (position === "afterbegin") {
2034      this.prepend(element);
2035      return element;
2036    } else if (position === "beforeend") {
2037      this.append(element);
2038      return element;
2039    }
2040    return element;
2041  };
2042};
2043var patchTextContent = (hostElementPrototype) => {
2044  const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
2045  Object.defineProperty(hostElementPrototype, "__textContent", descriptor);
2046  {
2047    Object.defineProperty(hostElementPrototype, "textContent", {
2048      // To mimic shadow root behavior, we need to return the text content of all
2049      // nodes in a slot reference node
2050      get() {
2051        const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2052        const textContent = slotRefNodes.map((node) => {
2053          var _a, _b;
2054          const text = [];
2055          let slotContent = node.nextSibling;
2056          while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2057            if (slotContent.nodeType === 3 || slotContent.nodeType === 1) {
2058              text.push((_b = (_a = slotContent.textContent) == null ? void 0 : _a.trim()) != null ? _b : "");
2059            }
2060            slotContent = slotContent.nextSibling;
2061          }
2062          return text.filter((ref) => ref !== "").join(" ");
2063        }).filter((text) => text !== "").join(" ");
2064        return " " + textContent + " ";
2065      },
2066      // To mimic shadow root behavior, we need to overwrite all nodes in a slot
2067      // reference node. If a default slot reference node exists, the text content will be
2068      // placed there. Otherwise, the new text node will be hidden
2069      set(value) {
2070        const slotRefNodes = getAllChildSlotNodes(this.childNodes);
2071        slotRefNodes.forEach((node) => {
2072          let slotContent = node.nextSibling;
2073          while (slotContent && slotContent["s-sn"] === node["s-sn"]) {
2074            const tmp = slotContent;
2075            slotContent = slotContent.nextSibling;
2076            tmp.remove();
2077          }
2078          if (node["s-sn"] === "") {
2079            const textNode = this.ownerDocument.createTextNode(value);
2080            textNode["s-sn"] = "";
2081            insertBefore(node.parentElement, textNode, node.nextSibling);
2082          } else {
2083            node.remove();
2084          }
2085        });
2086      }
2087    });
2088  }
2089};
2090var patchChildSlotNodes = (elm, cmpMeta) => {
2091  class FakeNodeList extends Array {
2092    item(n) {
2093      return this[n];
2094    }
2095  }
2096  if (cmpMeta.$flags$ & 8) {
2097    const childNodesFn = elm.__lookupGetter__("childNodes");
2098    Object.defineProperty(elm, "children", {
2099      get() {
2100        return this.childNodes.map((n) => n.nodeType === 1);
2101      }
2102    });
2103    Object.defineProperty(elm, "childElementCount", {
2104      get() {
2105        return elm.children.length;
2106      }
2107    });
2108    Object.defineProperty(elm, "childNodes", {
2109      get() {
2110        const childNodes = childNodesFn.call(this);
2111        if ((plt.$flags$ & 1) === 0 && getHostRef(this).$flags$ & 2) {
2112          const result = new FakeNodeList();
2113          for (let i2 = 0; i2 < childNodes.length; i2++) {
2114            const slot = childNodes[i2]["s-nr"];
2115            if (slot) {
2116              result.push(slot);
2117            }
2118          }
2119          return result;
2120        }
2121        return FakeNodeList.from(childNodes);
2122      }
2123    });
2124  }
2125};
2126var getAllChildSlotNodes = (childNodes) => {
2127  const slotRefNodes = [];
2128  for (const childNode of Array.from(childNodes)) {
2129    if (childNode["s-sr"]) {
2130      slotRefNodes.push(childNode);
2131    }
2132    slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));
2133  }
2134  return slotRefNodes;
2135};
2136var getSlotName = (node) => node["s-sn"] || node.nodeType === 1 && node.getAttribute("slot") || "";
2137var getHostSlotNode = (childNodes, slotName, hostName) => {
2138  let i2 = 0;
2139  let childNode;
2140  for (; i2 < childNodes.length; i2++) {
2141    childNode = childNodes[i2];
2142    if (childNode["s-sr"] && childNode["s-sn"] === slotName && childNode["s-hn"] === hostName) {
2143      return childNode;
2144    }
2145    childNode = getHostSlotNode(childNode.childNodes, slotName, hostName);
2146    if (childNode) {
2147      return childNode;
2148    }
2149  }
2150  return null;
2151};
2152var getHostSlotChildNodes = (n, slotName) => {
2153  const childNodes = [n];
2154  while ((n = n.nextSibling) && n["s-sn"] === slotName) {
2155    childNodes.push(n);
2156  }
2157  return childNodes;
2158};
2159var bootstrapLazy = (lazyBundles, options = {}) => {
2160  var _a;
2161  const endBootstrap = createTime();
2162  const cmpTags = [];
2163  const exclude = options.exclude || [];
2164  const customElements2 = win.customElements;
2165  const head = doc.head;
2166  const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2167  const dataStyles = /* @__PURE__ */ doc.createElement("style");
2168  const deferredConnectedCallbacks = [];
2169  let appLoadFallback;
2170  let isBootstrapping = true;
2171  Object.assign(plt, options);
2172  plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
2173  {
2174    plt.$flags$ |= 2;
2175  }
2176  let hasSlotRelocation = false;
2177  lazyBundles.map((lazyBundle) => {
2178    lazyBundle[1].map((compactMeta) => {
2179      var _a2;
2180      const cmpMeta = {
2181        $flags$: compactMeta[0],
2182        $tagName$: compactMeta[1],
2183        $members$: compactMeta[2],
2184        $listeners$: compactMeta[3]
2185      };
2186      if (cmpMeta.$flags$ & 4) {
2187        hasSlotRelocation = true;
2188      }
2189      {
2190        cmpMeta.$members$ = compactMeta[2];
2191      }
2192      {
2193        cmpMeta.$listeners$ = compactMeta[3];
2194      }
2195      {
2196        cmpMeta.$attrsToReflect$ = [];
2197      }
2198      {
2199        cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2200      }
2201      const tagName = cmpMeta.$tagName$;
2202      const HostElement = class extends HTMLElement {
2203        // StencilLazyHost
2204        constructor(self) {
2205          super(self);
2206          this.hasRegisteredEventListeners = false;
2207          self = this;
2208          registerHost(self, cmpMeta);
2209          if (cmpMeta.$flags$ & 1) {
2210            {
2211              if (!self.shadowRoot) {
2212                {
2213                  self.attachShadow({
2214                    mode: "open",
2215                    delegatesFocus: !!(cmpMeta.$flags$ & 16)
2216                  });
2217                }
2218              } else {
2219                if (self.shadowRoot.mode !== "open") {
2220                  throw new Error(`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`);
2221                }
2222              }
2223            }
2224          }
2225        }
2226        connectedCallback() {
2227          const hostRef = getHostRef(this);
2228          if (!this.hasRegisteredEventListeners) {
2229            this.hasRegisteredEventListeners = true;
2230            addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2231          }
2232          if (appLoadFallback) {
2233            clearTimeout(appLoadFallback);
2234            appLoadFallback = null;
2235          }
2236          if (isBootstrapping) {
2237            deferredConnectedCallbacks.push(this);
2238          } else {
2239            plt.jmp(() => connectedCallback(this));
2240          }
2241        }
2242        disconnectedCallback() {
2243          plt.jmp(() => disconnectedCallback(this));
2244        }
2245        componentOnReady() {
2246          return getHostRef(this).$onReadyPromise$;
2247        }
2248      };
2249      {
2250        if (cmpMeta.$flags$ & 2) {
2251          patchPseudoShadowDom(HostElement.prototype, cmpMeta);
2252        }
2253      }
2254      cmpMeta.$lazyBundleId$ = lazyBundle[0];
2255      if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2256        cmpTags.push(tagName);
2257        customElements2.define(tagName, proxyComponent(
2258          HostElement,
2259          cmpMeta,
2260          1
2261          /* isElementConstructor */
2262        ));
2263      }
2264    });
2265  });
2266  if (cmpTags.length > 0) {
2267    if (hasSlotRelocation) {
2268      dataStyles.textContent += SLOT_FB_CSS;
2269    }
2270    {
2271      dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2272    }
2273    if (dataStyles.innerHTML.length) {
2274      dataStyles.setAttribute("data-styles", "");
2275      const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
2276      if (nonce != null) {
2277        dataStyles.setAttribute("nonce", nonce);
2278      }
2279      head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2280    }
2281  }
2282  isBootstrapping = false;
2283  if (deferredConnectedCallbacks.length) {
2284    deferredConnectedCallbacks.map((host) => host.connectedCallback());
2285  } else {
2286    {
2287      plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2288    }
2289  }
2290  endBootstrap();
2291};
2292var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2293  if (listeners) {
2294    listeners.map(([flags, name, method]) => {
2295      const target = getHostListenerTarget(elm, flags);
2296      const handler = hostListenerProxy(hostRef, method);
2297      const opts = hostListenerOpts(flags);
2298      plt.ael(target, name, handler, opts);
2299      (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2300    });
2301  }
2302};
2303var hostListenerProxy = (hostRef, methodName) => (ev) => {
2304  var _a;
2305  try {
2306    {
2307      if (hostRef.$flags$ & 256) {
2308        (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2309      } else {
2310        (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2311      }
2312    }
2313  } catch (e) {
2314    consoleError(e);
2315  }
2316};
2317var getHostListenerTarget = (elm, flags) => {
2318  if (flags & 4) return doc;
2319  if (flags & 8) return win;
2320  if (flags & 16) return doc.body;
2321  return elm;
2322};
2323var hostListenerOpts = (flags) => supportsListenerOptions ? {
2324  passive: (flags & 1) !== 0,
2325  capture: (flags & 2) !== 0
2326} : (flags & 2) !== 0;
2327
2328export {
2329  Build,
2330  registerInstance,
2331  readTask,
2332  writeTask,
2333  getAssetPath,
2334  h,
2335  Host,
2336  setMode,
2337  getMode,
2338  getElement,
2339  createEvent,
2340  forceUpdate,
2341  bootstrapLazy
2342};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.