funnel-gfx-wc 0.1.129 → 0.1.133
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.
- package/dist/cjs/funnel-app.cjs.entry.js +90 -21
- package/dist/cjs/funnel-gfx-wc.cjs.js +29 -2
- package/dist/cjs/index-BFBRUSYG.js +4470 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/esm/funnel-app.entry.js +90 -21
- package/dist/esm/funnel-gfx-wc.js +30 -3
- package/dist/esm/index-CQ7_4qF8.js +4458 -0
- package/dist/esm/loader.js +2 -2
- package/dist/funnel-gfx-wc/funnel-gfx-wc.esm.js +1 -1
- package/dist/funnel-gfx-wc/p-CQ7_4qF8.js +2 -0
- package/dist/funnel-gfx-wc/{p-89dee5fa.entry.js → p-cf9914a1.entry.js} +33 -33
- package/package.json +2 -2
- package/dist/cjs/index-CJmmK8iX.js +0 -1493
- package/dist/esm/index-Tnvcatci.js +0 -1485
- package/dist/funnel-gfx-wc/p-Tnvcatci.js +0 -2
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-CQ7_4qF8.js';
|
|
2
|
+
export { s as setNonce } from './index-CQ7_4qF8.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,b as
|
|
1
|
+
import{p as t,B as n,c as a,w as e,N as r,H as i,b as o}from"./p-CQ7_4qF8.js";export{s as setNonce}from"./p-CQ7_4qF8.js";import{g as p}from"./p-DQuL1Twl.js";var c=s=>{const t=s.cloneNode;s.cloneNode=function(s){if("TEMPLATE"===this.nodeName)return t.call(this,s);const n=t.call(this,!1),a=this.childNodes;if(s)for(let s=0;s<a.length;s++)2!==a[s].nodeType&&n.appendChild(a[s].cloneNode(!0));return n}};(()=>{n.isDev&&!n.isTesting&&a("Running in development mode."),n.cloneNodeFix&&c(i.prototype);const s=n.scriptDataOpts?e.document&&Array.from(e.document.querySelectorAll("script")).find((s=>new RegExp(`/${r}(\\.esm)?\\.js($|\\?|#)`).test(s.src)||s.getAttribute("data-stencil-namespace")===r)):null,o=import.meta.url,p=n.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==o&&(p.resourcesUrl=new URL(".",o).href),t(p)})().then((async s=>(await p(),o([["p-cf9914a1",[[257,"funnel-app",{tag:[1]}]]]],s))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e="funnel-gfx-wc",t={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,constructableCSS:!0,cssAnnotations:!0,deserializer:!1,devTools:!1,element:!1,event:!1,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!1,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!1,propChangeCallback:!1,propMutable:!1,propNumber:!1,propString:!0,reflect:!1,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,serializer:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!1,slotChildNodesFix:!1,slotRelocation:!1,state:!1,style:!0,svg:!0,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!1,vdomText:!0,vdomXlink:!1};var n,o=Object.defineProperty,s={isDev:!!t.isDev,isBrowser:!0,isServer:!1,isTesting:!!t.isTesting},r=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(r||{}),i=(e=>(e.Array="array",e.Date="date",e.Map="map",e.Object="object",e.RegularExpression="regexp",e.Set="set",e.Channel="channel",e.Symbol="symbol",e))(i||{}),l="type",c="value",a="serialized:",u=(e,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[s]])=>{if((t.state||t.prop)&&(31&s||32&s)){const t=e[o],s=function(e,t){for(;e;){const n=Object.getOwnPropertyDescriptor(e,t);if(null==n?void 0:n.get)return n;e=Object.getPrototypeOf(e)}}(Object.getPrototypeOf(e),o)||Object.getOwnPropertyDescriptor(e,o);s&&Object.defineProperty(e,o,{get(){return s.get.call(this)},set(e){s.set.call(this,e)},configurable:!0,enumerable:!0}),e[o]=n.i.has(o)?n.i.get(o):t}}))},f=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},d=(e,n)=>{n&&(e.__stencil__getHostRef=()=>n,n.l=e,512&n.o.u&&(t.state||t.prop)&&u(e,n))},h=(e,n)=>{const o={u:0,$hostElement$:e,o:n,i:new Map,p:new Map};t.isDev&&(o.m=0),t.method&&t.lazyLoad&&(o.v=new Promise((e=>o.$=e))),t.asyncLoading&&(o.S=new Promise((e=>o.O=e)),e["s-p"]=[],e["s-rc"]=[]),t.lazyLoad&&(o.j=[]);const s=o;return e.__stencil__getHostRef=()=>s,!t.lazyLoad&&512&n.u&&(t.state||t.prop)&&u(e,o),s},p=(e,t)=>t in e,m=(e,t)=>(n||console.error)(e,t),v=t.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],g=(...e)=>console.error(...v,...e),$=(...e)=>console.warn(...v,...e),b=(...e)=>console.info(...v,...e),y=new Map,w=(e,n,o)=>{const s=e.C.replace(/-/g,"_"),r=e._;if(t.isDev&&"string"!=typeof r)return void g(`Trying to lazily load component <${e.C}> with style mode "${n.N}", but it does not exist.`);if(!r)return;const i=!t.hotModuleReplacement&&y.get(r);return i?i[s]:import(`./${r}.entry.js${t.hotModuleReplacement&&o?"?s-hmr="+o:""}`).then((e=>(t.hotModuleReplacement||y.set(r,e),e[s])),(e=>{m(e,n.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},S=new Map,x=[],O="s-id",j="sty-id",C="c-id",_="_stencilDocData",E={hostIds:0,rootLevelIds:0,staticComponents:new Set},N="slot-fb{display:contents}slot-fb[hidden]{display:none}",k="http://www.w3.org/1999/xlink",T=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],R="undefined"!=typeof window?window:{},L=R.HTMLElement||class{},M={u:0,k:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},D=t.shadowDom,A=e=>Promise.resolve(e),I=!!t.constructableCSS&&(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),P=!!I&&(()=>!!R.document&&Object.getOwnPropertyDescriptor(R.document.adoptedStyleSheets,"length").writable)(),H=0,F=!1,U=[],B=[],z=[],V=(e,t)=>n=>{e.push(n),F||(F=!0,t&&4&M.u?X(J):M.raf(J))},W=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){m(e)}e.length=0},Y=(e,t)=>{let n=0,o=0;for(;n<e.length&&(o=performance.now())<t;)try{e[n++](o)}catch(e){m(e)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},J=()=>{if(t.asyncQueue&&H++,W(U),t.asyncQueue){const e=2==(6&M.u)?performance.now()+14*Math.ceil(.1*H):1/0;Y(B,e),Y(z,e),B.length>0&&(z.push(...B),B.length=0),(F=U.length+B.length+z.length>0)?M.raf(J):H=0}else W(B),(F=U.length>0)&&M.raf(J)},X=e=>A().then(e),q=V(U,!1),K=V(B,!0),Q=e=>"object"==(e=typeof e)||"function"===e;function G(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var Z=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),ee=class e{static fromLocalValue(t){const n=t[l],o=c in t?t[c]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((t=>e.fromLocalValue(t)));case"date":return new Date(o);case"map":const t=new Map;for(const[n,s]of o){const o="object"==typeof n&&null!==n?e.fromLocalValue(n):n,r=e.fromLocalValue(s);t.set(o,r)}return t;case"object":const s={};for(const[t,n]of o)s[t]=e.fromLocalValue(n);return s;case"regexp":const{pattern:r,flags:i}=o;return RegExp(r,i);case"set":const l=new Set;for(const t of o)l.add(e.fromLocalValue(t));return l;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(t){return t.map((t=>e.fromLocalValue(t)))}static isLocalValueObject(e){if("object"!=typeof e||null===e)return!1;if(!e.hasOwnProperty(l))return!1;const t=e[l];return!!Object.values({...r,...i}).includes(t)&&("null"===t||"undefined"===t||e.hasOwnProperty(c))}};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})({},{err:()=>ne,map:()=>oe,ok:()=>te,unwrap:()=>re,unwrapErr:()=>ie});var te=e=>({isOk:!0,isErr:!1,value:e}),ne=e=>({isOk:!1,isErr:!0,value:e});function oe(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>te(e))):te(n)}if(e.isErr)return ne(e.value);throw"should never get here"}var se,re=e=>{if(e.isOk)return e.value;throw e.value},ie=e=>{if(e.isErr)return e.value;throw e.value};function le(e){const n=this.attachShadow(t.shadowDelegatesFocus?{mode:"open",delegatesFocus:!!(16&e.u)}:{mode:"open"});void 0===se&&(se=null),se&&(P?n.adoptedStyleSheets.push(se):n.adoptedStyleSheets=[...n.adoptedStyleSheets,se])}var ce=e=>{const t=He(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&"SLOT-FB"!==e.tagName&&ue(t,e.tagName).forEach((e=>{1===e.nodeType&&"SLOT-FB"===e.tagName&&(e.hidden=!!fe(e,pe(e),!1).length)}));let n=0;for(n=0;n<t.length;n++){const e=t[n];1===e.nodeType&&He(e,"childNodes").length&&ce(e)}},ae=e=>{const t=[];for(let n=0;n<e.length;n++){const o=e[n]["s-nr"]||void 0;o&&o.isConnected&&t.push(o)}return t};function ue(e,t,n){let o,s=0,r=[];for(;s<e.length;s++){if(o=e[s],o["s-sr"]&&(!t||o["s-hn"]===t)&&(void 0===n||pe(o)===n)&&(r.push(o),void 0!==n))return r;r=[...r,...ue(o.childNodes,t,n)]}return r}var fe=(e,t,n=!0)=>{const o=[];(n&&e["s-sr"]||!e["s-sr"])&&o.push(e);let s=e;for(;s=s.nextSibling;)pe(s)!==t||!n&&s["s-sr"]||o.push(s);return o},de=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,he=(e,n,o,s)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const r=document.createTextNode("");if(r["s-nr"]=e,!n["s-cr"]||!n["s-cr"].parentNode)return;const i=n["s-cr"].parentNode,l=He(i,o?"prepend":"appendChild");if(t.hydrateClientSide&&void 0!==s){r["s-oo"]=s;const e=He(i,"childNodes"),t=[r];e.forEach((e=>{e["s-nr"]&&t.push(e)})),t.sort(((e,t)=>!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0)?-1:!t["s-oo"]||t["s-oo"]<e["s-oo"]?1:0)),t.forEach((e=>l.call(i,e)))}else l.call(i,r);e["s-ol"]=r,e["s-sh"]=n["s-hn"]},pe=e=>"string"==typeof e["s-sn"]?e["s-sn"]:1===e.nodeType&&e.getAttribute("slot")||void 0;function me(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[],o=this["s-sn"];(null==e?void 0:e.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:ae(s.childNodes)).forEach((e=>{o===pe(e)&&n.push(e)})),t?n.filter((e=>1===e.nodeType)):n}.bind(e);e.assignedElements=t(!0),e.assignedNodes=t(!1)}function ve(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function ge(e,t){var n;if(!(t=t||(null==(n=e["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=e["s-sn"]=pe(e)||"";return{slotNode:ue(He(t,"childNodes"),t.tagName,o)[0],slotName:o}}var $e=e=>{be(e),ye(e),xe(e),Se(e),_e(e),Oe(e),je(e),Ce(e),Ee(e),Ne(e),we(e)},be=e=>{const n=e.cloneNode;e.cloneNode=function(e){const o=!!t.shadowDom&&this.shadowRoot&&D,s=n.call(this,!!o&&e);if(t.slot&&!o&&e){let e,n,o=0;const r=["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"],i=this.__childNodes||this.childNodes;for(;o<i.length;o++)e=i[o]["s-nr"],n=r.every((e=>!i[o][e])),e&&(t.appendChildSlotFix&&s.__appendChild?s.__appendChild(e.cloneNode(!0)):s.appendChild(e.cloneNode(!0))),n&&s.appendChild(i[o].cloneNode(!0))}return s}},ye=e=>{e.__appendChild=e.appendChild,e.appendChild=function(e){const{slotName:t,slotNode:n}=ge(e,this);if(n){he(e,n);const o=fe(n,t),s=o[o.length-1],r=He(s,"parentNode"),i=He(r,"insertBefore")(e,s.nextSibling);return ve(n),ce(this),i}return this.__appendChild(e)}},we=e=>{e.__removeChild=e.removeChild,e.removeChild=function(e){return e&&void 0!==e["s-sn"]&&ue(this.__childNodes||this.childNodes,this.tagName,e["s-sn"])&&e.isConnected?(e.remove(),void ce(this)):this.__removeChild(e)}},Se=e=>{e.__prepend=e.prepend,e.prepend=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t));const n=(t["s-sn"]=pe(t))||"",o=ue(He(this,"childNodes"),this.tagName,n)[0];if(o){he(t,o,!0);const e=fe(o,n)[0],s=He(e,"parentNode"),r=He(s,"insertBefore")(t,He(e,"nextSibling"));return ve(o),r}return 1===t.nodeType&&t.getAttribute("slot")&&(t.hidden=!0),e.__prepend(t)}))}},xe=e=>{e.__append=e.append,e.append=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e)),this.appendChild(e)}))}},Oe=e=>{const t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,n){if("afterbegin"!==e&&"beforeend"!==e)return t.call(this,e,n);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=n,"afterbegin"===e)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===e)for(;s=o.firstChild;)this.append(s)}},je=e=>{e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}},Ce=e=>{e.__insertBefore||(e.__insertBefore=e.insertBefore,e.insertBefore=function(e,t){const{slotName:n,slotNode:o}=ge(e,this),s=this.__childNodes?this.childNodes:ae(this.childNodes);if(o){let r=!1;if(s.forEach((s=>{if(s!==t&&null!==t);else{if(r=!0,null===t||n!==t["s-sn"])return void this.appendChild(e);if(n===t["s-sn"]){he(e,o);const n=He(t,"parentNode");He(n,"insertBefore")(e,t),ve(o)}}})),r)return e}const r=null==t?void 0:t.__parentNode;return r&&!this.isSameNode(r)?this.appendChild(e):this.__insertBefore(e,t)})},_e=e=>{const t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,n){return"afterbegin"!==e&&"beforeend"!==e?t.call(this,e,n):"afterbegin"===e?(this.prepend(n),n):"beforeend"===e?(this.append(n),n):n}},Ee=e=>{Pe("textContent",e),Object.defineProperty(e,"textContent",{get:function(){let e="";return(this.__childNodes?this.childNodes:ae(this.childNodes)).forEach((t=>e+=t.textContent||"")),e},set:function(e){(this.__childNodes?this.childNodes:ae(this.childNodes)).forEach((e=>{e["s-ol"]&&e["s-ol"].remove(),e.remove()})),this.insertAdjacentHTML("beforeend",e)}})},Ne=e=>{class t extends Array{item(e){return this[e]}}Pe("children",e),Object.defineProperty(e,"children",{get(){return this.childNodes.filter((e=>1===e.nodeType))}}),Object.defineProperty(e,"childElementCount",{get(){return this.children.length}}),Pe("firstChild",e),Object.defineProperty(e,"firstChild",{get(){return this.childNodes[0]}}),Pe("lastChild",e),Object.defineProperty(e,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),Pe("childNodes",e),Object.defineProperty(e,"childNodes",{get(){const e=new t;return e.push(...ae(this.__childNodes)),e}})},ke=e=>{e&&void 0===e.__nextSibling&&globalThis.Node&&(Te(e),Le(e),De(e),e.nodeType===Node.ELEMENT_NODE&&(Re(e),Me(e)))},Te=e=>{e&&!e.__nextSibling&&(Pe("nextSibling",e),Object.defineProperty(e,"nextSibling",{get:function(){var e;const t=null==(e=this["s-ol"])?void 0:e.parentNode.childNodes,n=null==t?void 0:t.indexOf(this);return t&&n>-1?t[n+1]:this.__nextSibling}}))},Re=e=>{e&&!e.__nextElementSibling&&(Pe("nextElementSibling",e),Object.defineProperty(e,"nextElementSibling",{get:function(){var e;const t=null==(e=this["s-ol"])?void 0:e.parentNode.children,n=null==t?void 0:t.indexOf(this);return t&&n>-1?t[n+1]:this.__nextElementSibling}}))},Le=e=>{e&&!e.__previousSibling&&(Pe("previousSibling",e),Object.defineProperty(e,"previousSibling",{get:function(){var e;const t=null==(e=this["s-ol"])?void 0:e.parentNode.childNodes,n=null==t?void 0:t.indexOf(this);return t&&n>-1?t[n-1]:this.__previousSibling}}))},Me=e=>{e&&!e.__previousElementSibling&&(Pe("previousElementSibling",e),Object.defineProperty(e,"previousElementSibling",{get:function(){var e;const t=null==(e=this["s-ol"])?void 0:e.parentNode.children,n=null==t?void 0:t.indexOf(this);return t&&n>-1?t[n-1]:this.__previousElementSibling}}))},De=e=>{e&&!e.__parentNode&&(Pe("parentNode",e),Object.defineProperty(e,"parentNode",{get:function(){var e;return(null==(e=this["s-ol"])?void 0:e.parentNode)||this.__parentNode},set:function(e){this.__parentNode=e}}))},Ae=["children","nextElementSibling","previousElementSibling"],Ie=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Pe(e,t){if(!globalThis.Node||!globalThis.Element)return;let n;Ae.includes(e)?n=Object.getOwnPropertyDescriptor(Element.prototype,e):Ie.includes(e)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,e)),n||(n=Object.getOwnPropertyDescriptor(t,e)),n&&Object.defineProperty(t,"__"+e,n)}function He(e,t){if("__"+t in e){const n=e["__"+t];return"function"!=typeof n?n:n.bind(e)}return"function"!=typeof e[t]?e[t]:e[t].bind(e)}var Fe=0,Ue=(e,n="")=>{if(t.profile&&performance.mark){const t=`st:${e}:${n}:${Fe++}`;return performance.mark(t),()=>performance.measure(`[Stencil] ${e}() <${n}>`,t)}return()=>{}},Be=new WeakMap,ze=(e,t,n)=>{let o=S.get(e);I&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,S.set(e,o)},Ve=(e,n,o)=>{var s;const r=Ye(n,o),i=S.get(r);if(!t.attachStyles||!R.document)return r;if(e=11===e.nodeType?e:R.document,i)if("string"==typeof i){let o,l=Be.get(e=e.head||e);if(l||Be.set(e,l=new Set),!l.has(r)){if(t.hydrateClientSide&&e.host&&(o=e.querySelector(`[${j}="${r}"]`)))o.innerHTML=i;else{o=R.document.createElement("style"),o.innerHTML=i;const l=null!=(s=M.T)?s:G(R.document);if(null!=l&&o.setAttribute("nonce",l),(t.hydrateServerSide||t.hotModuleReplacement)&&(2&n.u||128&n.u)&&o.setAttribute(j,r),!(1&n.u))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(o,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(I){const t=new CSSStyleSheet;t.replaceSync(i),P?e.adoptedStyleSheets.unshift(t):e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=i+t.innerHTML:e.prepend(o)}else e.append(o);1&n.u&&e.insertBefore(o,null)}4&n.u&&(o.innerHTML+=N),l&&l.add(r)}}else t.constructableCSS&&!e.adoptedStyleSheets.includes(i)&&(P?e.adoptedStyleSheets.push(i):e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},We=e=>{const n=e.o,o=e.$hostElement$,s=n.u,r=Ue("attachStyles",n.C),i=Ve(t.shadowDom&&D&&o.shadowRoot?o.shadowRoot:o.getRootNode(),n,e.N);(t.shadowDom||t.scoped)&&t.cssAnnotations&&10&s&&(o["s-sc"]=i,o.classList.add(i+"-h")),r()},Ye=(e,n)=>"sc-"+(t.mode&&n&&32&e.u?e.C+"-"+n:e.C),Je=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Xe=()=>{if(!R.document)return;const e=R.document.querySelectorAll(`[${j}]`);let t=0;for(;t<e.length;t++)ze(e[t].getAttribute(j),Je(e[t].innerHTML),!0)},qe=(e,n,...o)=>{"string"==typeof e&&(e=eo(e));let s=null,r=null,i=null,l=!1,c=!1;const a=[],u=n=>{for(let o=0;o<n.length;o++)s=n[o],Array.isArray(s)?u(s):null!=s&&"boolean"!=typeof s&&((l="function"!=typeof e&&!Q(s))?s+="":t.isDev&&"function"!=typeof e&&void 0===s.u&&g("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),l&&c?a[a.length-1].R+=s:a.push(l?Ke(null,s):s),c=l)};if(u(o),n&&(t.isDev&&"input"===e&&nt(n),t.vdomKey&&n.key&&(r=n.key),t.slotRelocation&&n.name&&(i=n.name),t.vdomClass)){const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}if(t.isDev&&a.some(Ge)&&g("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),t.vdomFunctional&&"function"==typeof e)return e(null===n?{}:n,a,Ze);const f=Ke(e,null);return f.L=n,a.length>0&&(f.M=a),t.vdomKey&&(f.D=r),t.slotRelocation&&(f.A=i),f},Ke=(e,n)=>{const o={u:0,I:e,R:n,P:null,M:null};return t.vdomAttribute&&(o.L=null),t.vdomKey&&(o.D=null),t.slotRelocation&&(o.A=null),o},Qe={},Ge=e=>e&&e.I===Qe,Ze={forEach:(e,t)=>e.map(et).forEach(t),map:(e,t)=>e.map(et).map(t).map(tt)},et=e=>({vattrs:e.L,vchildren:e.M,vkey:e.D,vname:e.A,vtag:e.I,vtext:e.R}),tt=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),qe(e.vtag,t,...e.vchildren||[])}const t=Ke(e.vtag,e.vtext);return t.L=e.vattrs,t.M=e.vchildren,t.D=e.vkey,t.A=e.vname,t},nt=e=>{const t=Object.keys(e),n=t.indexOf("value");if(-1===n)return;const o=t.indexOf("type"),s=t.indexOf("min"),r=t.indexOf("max"),i=t.indexOf("step");(n<o||n<s||n<r||n<i)&&$('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},ot=(e,n,o,s,r,i,l,c=[])=>{let a,u,f,d;const h=r["s-sc"];if(1===i.nodeType){if(a=i.getAttribute(C),a&&(u=a.split("."),u[0]===l||"0"===u[0])){f=rt({u:0,F:u[0],U:u[1],B:u[2],V:u[3],I:i.tagName.toLowerCase(),P:i,L:{class:i.className||""}}),n.push(f),i.removeAttribute(C),e.M||(e.M=[]),t.scoped&&h&&u[0]===l&&(i["s-si"]=h,f.L.class+=" "+h);const r=f.P.getAttribute("s-sn");"string"==typeof r&&("slot-fb"===f.I&&(it(r,u[2],f,i,e,n,o,s,c),t.scoped&&h&&i.classList.add(h)),f.P["s-sn"]=r,f.P.removeAttribute("s-sn")),void 0!==f.V&&(e.M[f.V]=f),e=f,s&&"0"===f.B&&(s[f.V]=f.P)}if(i.shadowRoot)for(d=i.shadowRoot.childNodes.length-1;d>=0;d--)ot(e,n,o,s,r,i.shadowRoot.childNodes[d],l,c);const p=i.__childNodes||i.childNodes;for(d=p.length-1;d>=0;d--)ot(e,n,o,s,r,p[d],l,c)}else if(8===i.nodeType)u=i.nodeValue.split("."),(u[1]===l||"0"===u[1])&&(a=u[0],f=rt({F:u[1],U:u[2],B:u[3],V:u[4]||"0",P:i,L:null,M:null,D:null,A:null,I:null,R:null}),"t"===a?(f.P=ft(i,3),f.P&&3===f.P.nodeType&&(f.R=f.P.textContent,n.push(f),i.remove(),l===f.F&&(e.M||(e.M=[]),e.M[f.V]=f),s&&"0"===f.B&&(s[f.V]=f.P))):"c"===a?(f.P=ft(i,8),f.P&&8===f.P.nodeType&&(n.push(f),i.remove())):f.F===l&&("s"===a?it(i["s-sn"]=u[5]||"",u[2],f,i,e,n,o,s,c):"r"===a&&(t.shadowDom&&s?i.remove():t.slotRelocation&&(r["s-cr"]=i,i["s-cn"]=!0))));else if(e&&"style"===e.I){const t=Ke(null,i.textContent);t.P=i,t.V="0",e.M=[t]}else 3!==i.nodeType||i.wholeText.trim()||i["s-nr"]||i.remove();return e},st=(e,t)=>{if(1===e.nodeType){const n=e[O]||e.getAttribute(O);n&&t.set(n,e);let o=0;if(e.shadowRoot)for(;o<e.shadowRoot.childNodes.length;o++)st(e.shadowRoot.childNodes[o],t);const s=e.__childNodes||e.childNodes;for(o=0;o<s.length;o++)st(s[o],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},rt=e=>({u:0,F:null,U:null,B:null,V:"0",P:null,L:null,M:null,D:null,A:null,I:null,R:null,...e});function it(e,n,o,s,r,i,l,c,a){s["s-sr"]=!0,o.A=e||null,o.I="slot";const u=(null==r?void 0:r.P)?r.P["s-id"]||r.P.getAttribute("s-id"):"";if(t.shadowDom&&c&&R.document){const t=o.P=R.document.createElement(o.I);o.A&&o.P.setAttribute("name",e),r.P.shadowRoot&&u&&u!==o.F?He(r.P,"insertBefore")(t,He(r.P,"children")[0]):He(He(s,"parentNode"),"insertBefore")(t,s),ut(a,n,e,s,o.F),s.remove(),"0"===o.B&&(c[o.V]=o.P)}else{const t=o.P,i=u&&u!==o.F&&r.P.shadowRoot;ut(a,n,e,s,i?u:o.F),me(s),i&&r.P.insertBefore(t,r.P.children[0])}i.push(o),l.push(o),r.M||(r.M=[]),r.M[o.V]=o}var lt,ct,at,ut=(e,t,n,o,s)=>{var r,i;let l=o.nextSibling;if(e[t]=e[t]||[],l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==n&&(""!==n||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=n,e[t].push({slot:o,node:l,hostId:s})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(i=l.nodeValue)?void 0:i.startsWith("s.")))},ft=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n},dt="-shadowcsshost",ht="-shadowcssslotted",pt="-shadowcsscontext",mt=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",vt=RegExp("("+dt+mt,"gim"),gt=RegExp("("+pt+mt,"gim"),$t=RegExp("("+ht+mt,"gim"),bt=dt+"-no-combinator",yt=/-shadowcsshost-no-combinator([^\s]*)/,wt=[/::shadow/g,/::content/g],St=/__part-(\d+)__/g,xt=/-shadowcsshost/gim,Ot=e=>{const t=Z(e);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")},jt=Ot("::slotted"),Ct=Ot(":host"),_t=Ot(":host-context"),Et=/\/\*\s*[\s\S]*?\*\//g,Nt=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,kt=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Tt=/([{}])/g,Rt=/(^.*?[^\\])??((:+)(.*)|$)/,Lt="%BLOCK%",Mt=(e,t)=>{const n=Dt(e);let o=0;return n.escapedString.replace(kt,((...e)=>{const s=e[2];let r="",i=e[4],l="";i&&i.startsWith("{"+Lt)&&(r=n.blocks[o++],i=i.substring(8),l="{");const c=t({selector:s,content:r});return`${e[1]}${c.selector}${e[3]}${l}${c.content}${i}`}))},Dt=e=>{const t=e.split(Tt),n=[],o=[];let s=0,r=[];for(let e=0;e<t.length;e++){const i=t[e];"}"===i&&s--,s>0?r.push(i):(r.length>0&&(o.push(r.join("")),n.push(Lt),r=[]),n.push(i)),"{"===i&&s++}return r.length>0&&(o.push(r.join("")),n.push(Lt)),{escapedString:n.join(""),blocks:o}},At=(e,t,n)=>e.replace(t,((...e)=>{if(e[2]){const t=e[2].split(","),o=[];for(let s=0;s<t.length;s++){const r=t[s].trim();if(!r)break;o.push(n(bt,r,e[3]))}return o.join(",")}return bt+e[3]})),It=(e,t,n)=>e+t.replace(dt,"")+n,Pt=(e,t,n)=>t.indexOf(dt)>-1?It(e,t,n):e+t+n+", "+t+" "+e+n,Ht=(e,t)=>e.replace(Rt,((e,n="",o,s="",r="")=>n+t+s+r)),Ft=(e,t,n,o)=>Mt(e,(e=>{let s=e.selector,r=e.content;return"@"!==e.selector[0]?s=((e,t,n,o)=>e.split(",").map((e=>o&&e.indexOf("."+o)>-1?e.trim():((e,t)=>!(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t).test(e))(e,t)?((e,t,n)=>{const o="."+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0]))),s=e=>{let s=e.trim();if(!s)return"";if(e.indexOf(bt)>-1)s=((e,t,n)=>{if(xt.lastIndex=0,xt.test(e)){const t="."+n;return e.replace(yt,((e,n)=>Ht(n,t))).replace(xt,t+" ")}return t+" "+e})(e,t,n);else{const t=e.replace(xt,"");t.length>0&&(s=Ht(t,o))}return s},r=(e=>{const t=[];let n=0;return{content:(e=(e=e.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g,((e,o)=>{const s=`__part-${n}__`;return t.push(o),n++,s}))).replace(/(\[[^\]]*\])/g,((e,o)=>{const s=`__ph-${n}__`;return t.push(o),n++,s}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,o,s)=>{const r=`__ph-${n}__`;return t.push(s),n++,o+r})),placeholders:t}})(e);let i,l="",c=0;const a=/( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;let u=!((e=r.content).indexOf(bt)>-1);for(;null!==(i=a.exec(e));){const t=i[1],n=e.slice(c,i.index).trim();u=u||n.indexOf(bt)>-1,l+=`${u?s(n):n} ${t} `,c=a.lastIndex}const f=e.substring(c);return u=!f.match(St)&&(u||f.indexOf(bt)>-1),l+=u?s(f):f,((e,t)=>(t=t.replace(/__part-(\d+)__/g,((t,n)=>e[+n]))).replace(/__ph-(\d+)__/g,((t,n)=>e[+n])))(r.placeholders,l)})(e,t,n).trim():e.trim())).join(", "))(e.selector,t,n,o):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(r=Ft(e.content,t,n,o)),{selector:s.replace(/\s{2,}/g," ").trim(),content:r}})),Ut=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,"."+t),Bt=(e,t)=>{const n=t+"-h",o=t+"-s",s=(e=>e.match(Nt)||[])(e);e=(e=>e.replace(Et,""))(e);const r=[];{const t=e=>{const t=`/*!@___${r.length}___*/`;return r.push({placeholder:t,comment:`/*!@${e.selector}*/`}),e.selector=t+e.selector,e};e=Mt(e,(e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=Mt(e.content,t),e):e))}const i=((e,t,n,o)=>{const s=((e,t)=>{const n="."+t+" > ",o=[];return e=e.replace($t,((...e)=>{if(e[2]){const t=e[2].trim(),s=n+t+e[3];let r="";for(let t=e[4]-1;t>=0;t--){const n=e[5][t];if("}"===n||","===n)break;r=n+r}const i=(r+s).trim(),l=`${r.trimEnd()}${s.trim()}`.trim();return i!==l&&o.push({orgSelector:i,updatedSelector:`${l}, ${i}`}),s}return bt+e[3]})),{selectors:o,cssText:e}})(e=(e=>At(e,gt,Pt))(e=(e=>At(e,vt,It))(e=(e=>{const t=[];return e=(e=e.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g,((e,n)=>{const o=`__supports_${t.length}__`;return t.push(n),`@supports selector(${o})`}))).replace(_t,"$1"+pt).replace(Ct,"$1"+dt).replace(jt,"$1"+ht),t.forEach(((t,n)=>{e=e.replace(`__supports_${n}__`,t)})),e})(e))),o);return e=(e=>wt.reduce(((e,t)=>e.replace(t," ")),e))(e=s.cssText),t&&(e=Ft(e,t,n,o)),{cssText:(e=(e=Ut(e,n)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:s.selectors.map((e=>({orgSelector:Ut(e.orgSelector,n),updatedSelector:Ut(e.updatedSelector,n)})))}})(e,t,n,o);return e=[i.cssText,...s].join("\n"),r.forEach((({placeholder:t,comment:n})=>{e=e.replace(t,n)})),i.slottedSelectors.forEach((t=>{const n=RegExp(Z(t.orgSelector),"g");e=e.replace(n,t.updatedSelector)})),e=(e=>{const t=/([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;return Mt(e,(e=>{if("@"===e.selector[0])return e;const n=e.selector.split(",").map((n=>{const o=[n.trim()];let s;for(;null!==(s=t.exec(n));){const t=s[1].trimEnd(),r=s[2].trim().split(/\s+/),i=s[3]||"",l=r.flatMap((t=>e.selector.includes(`[part~="${t}"]`)?[]:[`[part~="${t}"]`])).join(""),c=`${t} ${l}${i}`;l&&c!==n.trim()&&o.push(c)}return o.join(", ")}));return e.selector=n.join(", "),e}))})(e)},zt=e=>x.map((t=>t(e))).find((e=>!!e)),Vt=(e,n,o)=>(t.hydrateClientSide||t.hydrateServerSide)&&"string"==typeof e&&e.startsWith(a)?e=function(e){return"string"==typeof e&&e.startsWith(a)?ee.fromLocalValue(JSON.parse(atob(e.slice(11)))):e}(e):null==e||Q(e)?e:t.propBoolean&&4&n?(t.formAssociated&&o&&"string"==typeof e||"false"!==e)&&(""===e||!!e):t.propNumber&&2&n?"string"==typeof e?parseFloat(e):"number"==typeof e?e:NaN:t.propString&&1&n?e+"":e,Wt=e=>{var n;return t.lazyLoad?null==(n=f(e))?void 0:n.$hostElement$:e},Yt=(e,t,n)=>{const o=M.ce(t,n);return e.dispatchEvent(o),o},Jt=(e,n,o,s,r,i,l)=>{if(o===s)return;let c=p(e,n),a=n.toLowerCase();if(t.vdomClass&&"class"===n){const n=e.classList,r=qt(o);let i=qt(s);if(t.hydrateClientSide&&(e["s-si"]||e["s-sc"])&&l){const t=e["s-sc"]||e["s-si"];i.push(t),r.forEach((e=>{e.startsWith(t)&&i.push(e)})),i=[...new Set(i)].filter((e=>e)),n.add(...i)}else n.remove(...r.filter((e=>e&&!i.includes(e)))),n.add(...i.filter((e=>e&&!r.includes(e))))}else if(t.vdomStyle&&"style"===n){if(t.updatable)for(const n in o)s&&null!=s[n]||(!t.hydrateServerSide&&n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in s)o&&s[n]===o[n]||(!t.hydrateServerSide&&n.includes("-")?e.style.setProperty(n,s[n]):e.style[n]=s[n])}else if(t.vdomKey&&"key"===n);else if(t.vdomRef&&"ref"===n)s&&s(e);else if(!t.vdomListener||(t.lazyLoad?c:e.__lookupSetter__(n))||"o"!==n[0]||"n"!==n[1]){if(t.vdomPropOrAttr){const l=Q(s);if((c||l&&null!==s)&&!r)try{if(e.tagName.includes("-"))e[n]!==s&&(e[n]=s);else{const t=null==s?"":s;"list"===n?c=!1:null!=o&&e[n]==t||("function"==typeof e.__lookupSetter__(n)?e[n]=t:e.setAttribute(n,t))}}catch(e){}let u=!1;t.vdomXlink&&a!==(a=a.replace(/^xlink\:?/,""))&&(n=a,u=!0),null==s||!1===s?!1===s&&""!==e.getAttribute(n)||(t.vdomXlink&&u?e.removeAttributeNS(k,n):e.removeAttribute(n)):(!c||4&i||r)&&!l&&1===e.nodeType&&(s=!0===s?"":s,t.vdomXlink&&u?e.setAttributeNS(k,n,s):e.setAttribute(n,s))}}else if(n="-"===n[2]?n.slice(3):p(R,a)?a.slice(2):a[2]+n.slice(3),o||s){const t=n.endsWith(Kt);n=n.replace(Qt,""),o&&M.rel(e,n,o,t),s&&M.ael(e,n,s,t)}},Xt=/\s/,qt=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(Xt):[]),Kt="Capture",Qt=RegExp(Kt+"$"),Gt=(e,n,o,s)=>{const r=11===n.P.nodeType&&n.P.host?n.P.host:n.P,i=e&&e.L||{},l=n.L||{};if(t.updatable)for(const e of Zt(Object.keys(i)))e in l||Jt(r,e,i[e],void 0,o,n.u,s);for(const e of Zt(Object.keys(l)))Jt(r,e,i[e],l[e],o,n.u,s)};function Zt(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var en=!1,tn=!1,nn=!1,on=!1,sn=(e,n,o)=>{var s;const r=n.M[o];let i,l,c,a=0;if(t.slotRelocation&&!en&&(nn=!0,"slot"===r.I&&(r.u|=r.M?2:1)),t.isDev&&r.P&&g(`The JSX ${null!==r.R?`"${r.R}" text`:`"${r.I}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),t.vdomText&&null!==r.R)i=r.P=R.document.createTextNode(r.R);else if(t.slotRelocation&&1&r.u)i=r.P=t.isDebug||t.hydrateServerSide?bn(r):R.document.createTextNode(""),t.vdomAttribute&&Gt(null,r,on);else{if(t.svg&&!on&&(on="svg"===r.I),!R.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(i=r.P=t.svg?R.document.createElementNS(on?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!en&&t.slotRelocation&&2&r.u?"slot-fb":r.I):R.document.createElement(!en&&t.slotRelocation&&2&r.u?"slot-fb":r.I),t.svg&&on&&"foreignObject"===r.I&&(on=!1),t.vdomAttribute&&Gt(null,r,on),(t.scoped||t.hydrateServerSide)&&null!=lt&&void 0!==lt&&i["s-si"]!==lt&&i.classList.add(i["s-si"]=lt),r.M)for(a=0;a<r.M.length;++a)l=sn(e,r,a),l&&i.appendChild(l);t.svg&&("svg"===r.I?on=!1:"foreignObject"===i.tagName&&(on=!0))}return i["s-hn"]=at,t.slotRelocation&&3&r.u&&(i["s-sr"]=!0,i["s-cr"]=ct,i["s-sn"]=r.A||"",i["s-rf"]=null==(s=r.L)?void 0:s.ref,me(i),c=e&&e.M&&e.M[o],c&&c.I===r.I&&e.P&&(t.experimentalSlotFixes?rn(e.P):ln(e.P,!1)),(t.scoped||t.hydrateServerSide)&&gn(ct,i,n.P,null==e?void 0:e.P)),i},rn=e=>{M.u|=1;const t=e.closest(at.toLowerCase());if(null!=t){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const e of n?o.reverse():o)null!=e["s-sh"]&&(vn(t,e,null!=n?n:null),e["s-sh"]=void 0,nn=!0)}M.u&=-2},ln=(e,n)=>{M.u|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;for(;t=t.nextSibling;)t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===at&&o.push(t)}for(let e=o.length-1;e>=0;e--){const t=o[e];t["s-hn"]!==at&&t["s-ol"]&&(vn(fn(t).parentNode,t,fn(t)),t["s-ol"].remove(),t["s-ol"]=void 0,t["s-sh"]=void 0,nn=!0),n&&ln(t,n)}M.u&=-2},cn=(e,n,o,s,r,i)=>{let l,c=t.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;for(t.shadowDom&&c.shadowRoot&&c.tagName===at&&(c=c.shadowRoot);r<=i;++r)s[r]&&(l=sn(null,o,r),l&&(s[r].P=l,vn(c,l,t.slotRelocation?fn(n):n)))},an=(e,n,o)=>{for(let s=n;s<=o;++s){const n=e[s];if(n){const e=n.P;mn(n),e&&(t.slotRelocation&&(tn=!0,e["s-ol"]?e["s-ol"].remove():ln(e,!0)),e.remove())}}},un=(e,n,o=!1)=>e.I===n.I&&(t.slotRelocation&&"slot"===e.I?e.A===n.A:t.vdomKey&&!o?e.D===n.D:(o&&!e.D&&n.D&&(e.D=n.D),!0)),fn=e=>e&&e["s-ol"]||e,dn=(e,n,o=!1)=>{const s=n.P=e.P,r=e.M,i=n.M,l=n.I,c=n.R;let a;t.vdomText&&null!==c?t.vdomText&&t.slotRelocation&&(a=s["s-cr"])?a.parentNode.textContent=c:t.vdomText&&e.R!==c&&(s.data=c):(t.svg&&(on="svg"===l||"foreignObject"!==l&&on),(t.vdomAttribute||t.reflect)&&(t.slot&&"slot"===l&&!en&&t.experimentalSlotFixes&&e.A!==n.A&&(n.P["s-sn"]=n.A||"",rn(n.P.parentElement)),Gt(e,n,on,o)),t.updatable&&null!==r&&null!==i?((e,n,o,s,r=!1)=>{let i,l,c=0,a=0,u=0,f=0,d=n.length-1,h=n[0],p=n[d],m=s.length-1,v=s[0],g=s[m];for(;c<=d&&a<=m;)if(null==h)h=n[++c];else if(null==p)p=n[--d];else if(null==v)v=s[++a];else if(null==g)g=s[--m];else if(un(h,v,r))dn(h,v,r),h=n[++c],v=s[++a];else if(un(p,g,r))dn(p,g,r),p=n[--d],g=s[--m];else if(un(h,g,r))!t.slotRelocation||"slot"!==h.I&&"slot"!==g.I||ln(h.P.parentNode,!1),dn(h,g,r),vn(e,h.P,p.P.nextSibling),h=n[++c],g=s[--m];else if(un(p,v,r))!t.slotRelocation||"slot"!==h.I&&"slot"!==g.I||ln(p.P.parentNode,!1),dn(p,v,r),vn(e,p.P,h.P),p=n[--d],v=s[++a];else{if(u=-1,t.vdomKey)for(f=c;f<=d;++f)if(n[f]&&null!==n[f].D&&n[f].D===v.D){u=f;break}t.vdomKey&&u>=0?(l=n[u],l.I!==v.I?i=sn(n&&n[a],o,u):(dn(l,v,r),n[u]=void 0,i=l.P),v=s[++a]):(i=sn(n&&n[a],o,a),v=s[++a]),i&&(t.slotRelocation?vn(fn(h.P).parentNode,i,fn(h.P)):vn(h.P.parentNode,i,h.P))}c>d?cn(e,null==s[m+1]?null:s[m+1].P,o,s,a,m):t.updatable&&a>m&&an(n,c,d)})(s,r,n,i,o):null!==i?(t.updatable&&t.vdomText&&null!==e.R&&(s.textContent=""),cn(s,null,n,i,0,i.length-1)):!o&&t.updatable&&null!==r?an(r,0,r.length-1):t.hydrateClientSide&&o&&t.updatable&&null!==r&&null===i&&(n.M=r),t.svg&&on&&"svg"===l&&(on=!1))},hn=[],pn=e=>{let n,o,s;const r=e.__childNodes||e.childNodes;for(const e of r){if(e["s-sr"]&&(n=e["s-cr"])&&n.parentNode){o=n.parentNode.__childNodes||n.parentNode.childNodes;const r=e["s-sn"];for(s=o.length-1;s>=0;s--)if(n=o[s],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||t.experimentalSlotFixes&&n["s-sh"]&&n["s-sh"]===e["s-hn"]))if(de(n,r)){let t=hn.find((e=>e.W===n));tn=!0,n["s-sn"]=n["s-sn"]||r,t?(t.W["s-sh"]=e["s-hn"],t.Y=e):(n["s-sh"]=e["s-hn"],hn.push({Y:e,W:n})),n["s-sr"]&&hn.map((e=>{de(e.W,n["s-sn"])&&(t=hn.find((e=>e.W===n)),t&&!e.Y&&(e.Y=t.Y))}))}else hn.some((e=>e.W===n))||hn.push({W:n})}1===e.nodeType&&pn(e)}},mn=e=>{t.vdomRef&&(e.L&&e.L.ref&&e.L.ref(null),e.M&&e.M.map(mn))},vn=(e,n,o)=>{if(t.scoped&&"string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])gn(n["s-cr"],n,e,n.parentElement);else if(t.experimentalSlotFixes&&"string"==typeof n["s-sn"]){11!==e.getRootNode().nodeType&&De(n),e.insertBefore(n,o);const{slotNode:t}=ge(n);return t&&ve(t),n}return t.experimentalSlotFixes&&e.__insertBefore?e.__insertBefore(n,o):null==e?void 0:e.insertBefore(n,o)};function gn(e,t,n,o){var s,r;let i;if(e&&"string"==typeof t["s-sn"]&&t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(i=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"],l=t["s-hn"];if(null==(s=n.classList)||s.add(i+"-s"),o&&(null==(r=o.classList)?void 0:r.contains(i+"-s"))){let t=(o.__childNodes||o.childNodes)[0],n=!1;for(;t;){if(t["s-sn"]!==e&&t["s-hn"]===l&&t["s-sr"]){n=!0;break}t=t.nextSibling}n||o.classList.remove(i+"-s")}}}var $n=(e,n,o=!1)=>{var s,r,i,l,c;const a=e.$hostElement$,u=e.o,f=e.J||Ke(null,null),d=Ge(n)?n:qe(null,null,n);if(at=a.tagName,t.isDev&&Array.isArray(n)&&n.some(Ge))throw Error(`The <Host> must be the single root component.\nLooks like the render() function of "${at.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);if(t.reflect&&u.X&&(d.L=d.L||{},u.X.forEach((([n,o])=>{d.L[o]=t.serializer&&e.p.has(n)?e.p.get(n):a[n]}))),o&&d.L)for(const e of Object.keys(d.L))a.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(d.L[e]=a[e]);if(d.I=null,d.u|=4,e.J=d,d.P=f.P=t.shadowDom&&a.shadowRoot||a,(t.scoped||t.shadowDom)&&(lt=a["s-sc"]),en=D&&!!(1&u.u)&&!(128&u.u),t.slotRelocation&&(ct=a["s-cr"],tn=!1),dn(f,d,o),t.slotRelocation){if(M.u|=1,nn){pn(d.P);for(const e of hn){const n=e.W;if(!n["s-ol"]&&R.document){const e=t.isDebug||t.hydrateServerSide?yn(n):R.document.createTextNode("");e["s-nr"]=n,vn(n.parentNode,n["s-ol"]=e,n)}}for(const e of hn){const n=e.W,c=e.Y;if(c){const e=c.parentNode;let o=c.nextSibling;if(!t.hydrateServerSide&&(!t.experimentalSlotFixes||o&&1===o.nodeType)){let t=null==(s=n["s-ol"])?void 0:s.previousSibling;for(;t;){let s=null!=(r=t["s-nr"])?r:null;if(s&&s["s-sn"]===n["s-sn"]&&e===(s.__parentNode||s.parentNode)){for(s=s.nextSibling;s===n||(null==s?void 0:s["s-sr"]);)s=null==s?void 0:s.nextSibling;if(!s||!s["s-nr"]){o=s;break}}t=t.previousSibling}}(!o&&e!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o&&(t.experimentalSlotFixes||n["s-hn"]||!n["s-ol"]||(n["s-hn"]=n["s-ol"].parentNode.nodeName),vn(e,n,o),1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(i=n["s-ih"])&&i)),n&&"function"==typeof c["s-rf"]&&c["s-rf"](c)}else 1===n.nodeType&&(o&&(n["s-ih"]=null!=(l=n.hidden)&&l),n.hidden=!0)}}tn&&ce(d.P),M.u&=-2,hn.length=0}if(t.experimentalScopedSlotChanges&&2&u.u){const e=d.P.__childNodes||d.P.childNodes;for(const t of e)t["s-hn"]===at||t["s-sh"]||1!==t.nodeType||(o&&null==t["s-ih"]&&(t["s-ih"]=null!=(c=t.hidden)&&c),t.hidden=!0)}ct=void 0},bn=e=>{var t;return null==(t=R.document)?void 0:t.createComment(`<slot${e.A?' name="'+e.A+'"':""}> (host=${at.toLowerCase()})`)},yn=e=>{var t;return null==(t=R.document)?void 0:t.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`))},wn=(e,n)=>{if(t.asyncLoading&&n&&!e.q&&n["s-p"]){const t=n["s-p"].push(new Promise((o=>e.q=()=>{n["s-p"].splice(t-1,1),o()})))}},Sn=(e,n)=>{if(t.taskQueue&&t.updatable&&(e.u|=16),t.asyncLoading&&4&e.u)return void(e.u|=512);wn(e,e.K);const o=()=>xn(e,n);if(!n)return t.taskQueue?K(o):o();queueMicrotask((()=>{o()}))},xn=(e,n)=>{const o=e.$hostElement$,s=Ue("scheduleUpdate",e.o.C),r=t.lazyLoad?e.l:o;if(!r)throw Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return n?(t.lazyLoad&&(t.hostListener&&(e.u|=256,e.G&&(e.G.map((([e,t])=>Rn(r,e,t,o))),e.G=void 0)),e.j.length&&e.j.forEach((e=>e(o)))),Ln(o,"componentWillLoad"),i=Rn(r,"componentWillLoad",void 0,o)):(Ln(o,"componentWillUpdate"),i=Rn(r,"componentWillUpdate",void 0,o)),Ln(o,"componentWillRender"),i=On(i,(()=>Rn(r,"componentWillRender",void 0,o))),s(),On(i,(()=>Cn(e,r,n)))},On=(e,t)=>jn(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),jn=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Cn=async(e,n,o)=>{var s;const r=e.$hostElement$,i=Ue("update",e.o.C),l=r["s-rc"];t.style&&o&&We(e);const c=Ue("render",e.o.C);if(t.isDev&&(e.u|=1024),t.hydrateServerSide?await En(e,n,r,o):En(e,n,r,o),t.isDev&&(e.m=void 0===e.m?1:e.m+1,e.u&=-1025),t.hydrateServerSide)try{Dn(r),o&&(1&e.o.u?r["s-en"]="":2&e.o.u&&(r["s-en"]="c"))}catch(e){m(e,r)}if(t.asyncLoading&&l&&(l.map((e=>e())),r["s-rc"]=void 0),c(),i(),t.asyncLoading){const t=null!=(s=r["s-p"])?s:[],n=()=>Nn(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}else Nn(e)},_n=null,En=(e,n,o,s)=>{const r=!!t.allRenderFn,i=!!t.lazyLoad,l=!!t.taskQueue,c=!!t.updatable;try{if(_n=n,n=(r||n.render)&&n.render(),c&&l&&(e.u&=-17),(c||i)&&(e.u|=2),t.hasRenderFn||t.reflect)if(t.vdomRender||t.reflect){if(t.hydrateServerSide)return Promise.resolve(n).then((t=>$n(e,t,s)));$n(e,n,s)}else 1&e.o.u?o.shadowRoot.textContent=n:o.textContent=n}catch(t){m(t,e.$hostElement$)}return _n=null,null},Nn=e=>{const n=e.o.C,o=e.$hostElement$,s=Ue("postUpdate",n),r=t.lazyLoad?e.l:o,i=e.K;t.isDev&&(e.u|=1024),Rn(r,"componentDidRender",void 0,o),t.isDev&&(e.u&=-1025),Ln(o,"componentDidRender"),64&e.u?(t.isDev&&(e.u|=1024),Rn(r,"componentDidUpdate",void 0,o),t.isDev&&(e.u&=-1025),Ln(o,"componentDidUpdate"),s()):(e.u|=64,t.asyncLoading&&t.cssAnnotations&&Mn(o),t.isDev&&(e.u|=2048),Rn(r,"componentDidLoad",void 0,o),t.isDev&&(e.u&=-2049),Ln(o,"componentDidLoad"),s(),t.asyncLoading&&(e.O(o),i||Tn(n))),t.method&&t.lazyLoad&&e.$(o),t.asyncLoading&&(e.q&&(e.q(),e.q=void 0),512&e.u&&X((()=>Sn(e,!1))),e.u&=-517)},kn=e=>{var n;if(t.updatable&&(s.isBrowser||s.isTesting)){const t=f(e),o=null==(n=null==t?void 0:t.$hostElement$)?void 0:n.isConnected;return o&&2==(18&t.u)&&Sn(t,!1),o}return!1},Tn=n=>{var o;t.asyncQueue&&(M.u|=2),X((()=>Yt(R,"appload",{detail:{namespace:e}}))),t.hydrateClientSide&&(null==(o=M.Z)?void 0:o.size)&&M.Z.clear(),t.profile&&performance.measure&&performance.measure(`[Stencil] ${e} initial load (by ${n})`,"st:app:start")},Rn=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){m(e,o)}},Ln=(n,o)=>{t.lifecycleDOMEvents&&Yt(n,"stencil_"+o,{bubbles:!0,composed:!0,detail:{namespace:e}})},Mn=e=>{var n,o;return t.hydratedClass?e.classList.add(null!=(n=t.hydratedSelectorName)?n:"hydrated"):t.hydratedAttribute?e.setAttribute(null!=(o=t.hydratedSelectorName)?o:"hydrated",""):void 0},Dn=e=>{const t=e.children;if(null!=t)for(let e=0,n=t.length;e<n;e++){const n=t[e];"function"==typeof n.connectedCallback&&n.connectedCallback(),Dn(n)}},An=(e,t)=>f(e).i.get(t),In=(e,n,o,s)=>{const r=f(e);if(!r)return;if(t.lazyLoad&&!r)throw Error(`Couldn't find host element for "${s.C}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);if(t.serializer&&r.p.has(n)&&r.p.get(n)===o)return;const i=t.lazyLoad?r.$hostElement$:e,l=r.i.get(n),c=r.u,a=t.lazyLoad?r.l:i;if(o=Vt(o,s.t[n][0],t.formAssociated&&!!(64&s.u)),!(t.lazyLoad&&8&c&&void 0!==l||o===l||Number.isNaN(l)&&Number.isNaN(o))){if(r.i.set(n,o),t.serializer&&t.reflect&&s.X&&a&&s.ee&&s.ee[n]){let e=o;for(const t of s.ee[n])e=a[t](e,n);r.p.set(n,e)}if(t.isDev&&(1024&r.u?$(`The state/prop "${n}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",i,"\nNew value",o,"\nOld value",l):2048&r.u&&$(`The state/prop "${n}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",i,"\nNew value",o,"\nOld value",l)),!t.lazyLoad||a){if(t.propChangeCallback&&s.te&&128&c){const e=s.te[n];e&&e.map((e=>{try{a[e](o,l,n)}catch(e){m(e,i)}}))}if(t.updatable&&2==(18&c)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,l,n))return;Sn(r,!1)}}}},Pn=(e,n,o)=>{var s,r;const i=e.prototype;if(t.isTesting){if(i.__stencilAugmented)return;i.__stencilAugmented=!0}if(t.formAssociated&&64&n.u&&1&o&&T.forEach((e=>{const n=i[e];Object.defineProperty(i,e,{value(...o){var s;const r=f(this),i=t.lazyLoad?null==r?void 0:r.l:this;if(i){const s=t.lazyLoad?i[e]:n;"function"==typeof s&&s.call(i,...o)}else null==(s=null==r?void 0:r.S)||s.then((t=>{const n=t[e];"function"==typeof n&&n.call(t,...o)}))}})})),t.member&&n.t||t.propChangeCallback){t.propChangeCallback&&(e.watchers&&!n.te&&(n.te=e.watchers),e.deserializers&&!n.ne&&(n.ne=e.deserializers),e.serializers&&!n.ee&&(n.ee=e.serializers));const l=Object.entries(null!=(s=n.t)?s:{});if(l.map((([e,[s]])=>{if((t.prop||t.state)&&(31&s||(!t.lazyLoad||2&o)&&32&s)){const{get:r,set:l}=Object.getOwnPropertyDescriptor(i,e)||{};r&&(n.t[e][0]|=2048),l&&(n.t[e][0]|=4096),(1&o||!r)&&Object.defineProperty(i,e,{get(){if(t.lazyLoad){if(!(2048&n.t[e][0]))return An(this,e);const t=f(this),o=t?t.l:i;if(!o)return;return o[e]}if(!t.lazyLoad)return r?r.apply(this):An(this,e)},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(r){const i=f(this);if(i){if(t.isDev&&(1&o||4096&n.t[e][0]||0!==(i&&8&i.u)||!(31&s)||1024&s||$(`@Prop() "${e}" on <${n.C}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)),l)return void 0===(32&s?this[e]:i.$hostElement$[e])&&i.i.get(e)&&(r=i.i.get(e)),l.call(this,Vt(r,s,t.formAssociated&&!!(64&n.u))),void In(this,e,r=32&s?this[e]:i.$hostElement$[e],n);if(t.lazyLoad){if(t.lazyLoad){if(!(1&o&&4096&n.t[e][0]))return In(this,e,r,n),void(1&o&&!i.l&&i.j.push((()=>{4096&n.t[e][0]&&i.l[e]!==i.i.get(e)&&(i.l[e]=r)})));const l=()=>{const o=i.l[e];!i.i.get(e)&&o&&i.i.set(e,o),i.l[e]=Vt(r,s,t.formAssociated&&!!(64&n.u)),In(this,e,i.l[e],n)};i.l?l():i.j.push((()=>{l()}))}}else In(this,e,r,n)}}})}else t.lazyLoad&&t.method&&1&o&&64&s&&Object.defineProperty(i,e,{value(...t){var n;const o=f(this);return null==(n=null==o?void 0:o.v)?void 0:n.then((()=>{var n;return null==(n=o.l)?void 0:n[e](...t)}))}})})),t.observeAttribute&&(!t.lazyLoad||1&o)){const o=new Map;i.attributeChangedCallback=function(e,s,r){M.jmp((()=>{var c;const a=o.get(e),u=f(this);if(t.serializer&&u.p.has(a)&&u.p.get(a)===r)return;if(this.hasOwnProperty(a)&&t.lazyLoad&&(r=this[a],delete this[a]),t.deserializer&&n.ne&&n.ne[a]){const e=(e,t)=>{const n=null==t?void 0:t[e](r,a);n!==this[a]&&(this[a]=n)};for(const o of n.ne[a])t.lazyLoad?u.l?e(o,u.l):u.j.push((()=>{e(o,u.l)})):e(o,this);return}if(i.hasOwnProperty(a)&&"number"==typeof this[a]&&this[a]==r)return;if(null==a){const o=null==u?void 0:u.u;if(u&&o&&!(8&o)&&128&o&&r!==s){const o=t.lazyLoad?u.l:t.lazyLoad?u.$hostElement$:this,i=null==(c=n.te)?void 0:c[e];null==i||i.forEach((t=>{null!=o[t]&&o[t].call(o,r,s,e)}))}return}const d=l.find((([e])=>e===a));d&&4&d[1][0]&&(r=null!==r&&"false"!==r);const h=Object.getOwnPropertyDescriptor(i,a);r==this[a]||h.get&&!h.set||(this[a]=r)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=n.te)?r:{}),...l.filter((([e,t])=>31&t[0])).map((([e,s])=>{var r;const i=s[1]||e;return o.set(i,e),t.reflect&&512&s[0]&&(null==(r=n.X)||r.push([e,i])),i}))]))}}return e},Hn=async(e,n,o,s)=>{let r;if(!(32&n.u)){if(n.u|=32,t.lazyLoad&&o._){const i=w(o,n,s);if(i&&"then"in i){const e=((e,n)=>t.profile&&performance.mark?(0===performance.getEntriesByName(e,"mark").length&&performance.mark(e),()=>{0===performance.getEntriesByName(n,"measure").length&&performance.measure(n,e)}):()=>{})(`st:load:${o.C}:${n.N}`,`[Stencil] Load module for <${o.C}>`);r=await i,e()}else r=i;if(!r)throw Error(`Constructor for "${o.C}#${n.N}" was not found`);t.member&&!r.isProxied&&(t.propChangeCallback&&(o.te=r.watchers,o.ee=r.serializers,o.ne=r.deserializers),Pn(r,o,2),r.isProxied=!0);const l=Ue("createInstance",o.C);t.member&&(n.u|=8);try{new r(n)}catch(t){m(t,e)}t.member&&(n.u&=-9),t.propChangeCallback&&(n.u|=128),l(),Fn(n.l,e)}else r=e.constructor,customElements.whenDefined(e.localName).then((()=>n.u|=128));if(t.style&&r&&r.style){let s;"string"==typeof r.style?s=r.style:t.mode&&"string"!=typeof r.style&&(n.N=zt(e),n.N&&(s=r.style[n.N]),t.hydrateServerSide&&n.N&&e.setAttribute("s-mode",n.N));const i=Ye(o,n.N);if(!S.has(i)){const e=Ue("registerStyles",o.C);t.hydrateServerSide&&t.shadowDom&&128&o.u&&(s=Bt(s,i)),ze(i,s,!!(1&o.u)),e()}}}const i=n.K,l=()=>Sn(n,!0);t.asyncLoading&&i&&i["s-rc"]?i["s-rc"].push(l):l()},Fn=(e,n)=>{t.lazyLoad&&Rn(e,"connectedCallback",void 0,n)},Un=e=>{if(!(1&M.u)){const n=f(e);if(!n)return;const o=n.o,s=Ue("connectedCallback",o.C);if(t.hostListenerTargetParent&&Jn(e,n,o.oe,!0),1&n.u)Jn(e,n,o.oe,!1),(null==n?void 0:n.l)?Fn(n.l,e):(null==n?void 0:n.S)&&n.S.then((()=>Fn(n.l,e)));else{let s;if(n.u|=1,t.hydrateClientSide&&(s=e.getAttribute(O),s)){if(t.shadowDom&&D&&1&o.u){const n=t.mode?Ve(e.shadowRoot,o,e.getAttribute("s-mode")):Ve(e.shadowRoot,o);e.classList.remove(n+"-h",n+"-s")}else if(t.scoped&&2&o.u){const n=Ye(o,t.mode?e.getAttribute("s-mode"):void 0);e["s-sc"]=n}((e,n,o,s)=>{var r,i;const l=Ue("hydrateClient",n),c=e.shadowRoot,a=[],u=[],d=[],h=t.shadowDom&&c?[]:null,p=Ke(n,null);let m;if(p.P=e,t.scoped){const t=s.o;t&&10&t.u&&e["s-sc"]?(m=e["s-sc"],e.classList.add(m+"-h")):e["s-sc"]&&delete e["s-sc"]}!R.document||M.Z&&M.Z.size||st(R.document.body,M.Z=new Map),e[O]=o,e.removeAttribute(O),s.J=ot(p,a,u,h,e,e,o,d);let v=0;const g=a.length;let $;for(;v<g;v++){$=a[v];const o=$.F+"."+$.U,s=M.Z.get(o),i=$.P;if(c){if((null==(r=$.I)?void 0:(""+r).includes("-"))&&"slot-fb"!==$.I&&!$.P.shadowRoot){const n=f($.P);if(n){const o=Ye(n.o,t.mode?$.P.getAttribute("s-mode"):void 0),s=R.document.querySelector(`style[sty-id="${o}"]`);s&&e.shadowRoot.append(s.cloneNode(!0))}}}else i["s-hn"]=eo(n).toUpperCase(),"slot"===$.I&&(i["s-cr"]=e["s-cr"]);"slot"===$.I&&($.A=$.P["s-sn"]||$.P.name||null,$.M?($.u|=2,$.P.childNodes.length||$.M.forEach((e=>{$.P.appendChild(e.P)}))):$.u|=1),s&&s.isConnected&&(s.parentElement.shadowRoot&&""===s["s-en"]&&s.parentNode.insertBefore(i,s.nextSibling),s.parentNode.removeChild(s),c||(i["s-oo"]=parseInt($.U))),s&&!s["s-id"]&&M.Z.delete(o)}const b=[],y=d.length;let w,S,x,j,C=0;for(;C<y;C++)if(w=d[C],w&&w.length)for(x=w.length,S=0;S<x;S++){if(j=w[S],b[j.hostId]||(b[j.hostId]=M.Z.get(j.hostId)),!b[j.hostId])continue;const e=b[j.hostId];e.shadowRoot&&j.node.parentElement!==e&&e.appendChild(j.node),e.shadowRoot&&c||(j.slot["s-cr"]||(j.slot["s-cr"]=e["s-cr"],j.slot["s-cr"]=!j.slot["s-cr"]&&e.shadowRoot?e:(e.__childNodes||e.childNodes)[0]),he(j.node,j.slot,!1,j.node["s-oo"]),(null==(i=j.node.parentElement)?void 0:i.shadowRoot)&&j.node.getAttribute&&j.node.getAttribute("slot")&&j.node.removeAttribute("slot"),t.experimentalSlotFixes&&ke(j.node))}if(t.scoped&&m&&u.length&&u.forEach((e=>{e.P.parentElement.classList.add(m+"-s")})),t.shadowDom&&c){let t=0;const n=h.length;if(n){for(;t<n;t++){const e=h[t];e&&c.appendChild(e)}Array.from(e.childNodes).forEach((e=>{"string"!=typeof e["s-en"]&&"string"!=typeof e["s-sn"]&&(1===e.nodeType&&e.slot&&e.hidden?e.removeAttribute("hidden"):(8===e.nodeType&&!e.nodeValue||3===e.nodeType&&!e.wholeText.trim())&&e.parentNode.removeChild(e))}))}}s.$hostElement$=e,l()})(e,o.C,s,n)}if(t.slotRelocation&&!s&&(t.hydrateServerSide||(t.slot||t.shadowDom)&&12&o.u)&&Bn(e),t.asyncLoading){let o=e;for(;o=o.parentNode||o.host;)if(t.hydrateClientSide&&1===o.nodeType&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){wn(n,n.K=o);break}}t.prop&&!t.hydrateServerSide&&o.t&&Object.entries(o.t).map((([t,[n]])=>{if(31&n&&t in e&&e[t]!==Object.prototype[t]){const n=e[t];delete e[t],e[t]=n}})),t.initializeNextTick?X((()=>Hn(e,n,o))):Hn(e,n,o)}s()}},Bn=e=>{if(!R.document)return;const n=e["s-cr"]=R.document.createComment(t.isDebug?`content-ref (host=${e.localName})`:"");n["s-cn"]=!0,vn(e,n,e.firstChild)},zn=(e,n)=>{t.lazyLoad&&Rn(e,"disconnectedCallback",void 0,n||e)},Vn=async e=>{if(!(1&M.u)){const n=f(e);t.hostListener&&(null==n?void 0:n.se)&&(n.se.map((e=>e())),n.se=void 0),t.lazyLoad?(null==n?void 0:n.l)?zn(n.l,e):(null==n?void 0:n.S)&&n.S.then((()=>zn(n.l,e))):zn(e)}Be.has(e)&&Be.delete(e),e.shadowRoot&&Be.has(e.shadowRoot)&&Be.delete(e.shadowRoot)},Wn=(e,n)=>{const o={u:n[0],C:n[1]};t.member&&(o.t=n[2]),t.hostListener&&(o.oe=n[3]),t.propChangeCallback&&(o.te=e.te,o.ne=e.ne,o.ee=e.ee),t.reflect&&(o.X=[]),t.shadowDom&&!D&&1&o.u&&(o.u|=8),!(1&o.u)&&256&o.u&&(t.experimentalSlotFixes?$e(e.prototype):(t.slotChildNodesFix&&Ne(e.prototype),t.cloneNodeFix&&be(e.prototype),t.appendChildSlotFix&&ye(e.prototype),t.scopedSlotTextContentFix&&2&o.u&&Ee(e.prototype))),t.hydrateClientSide&&t.shadowDom&&Xe();const s=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){h(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const e=f(this);if(!e)return;Jn(this,e,o.oe,!1),this.__hasHostListenerAttached=!0}Un(this),s&&s.call(this)},disconnectedCallback(){Vn(this),r&&r.call(this)},__attachShadow(){if(D)if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.C}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else le.call(this,o);else this.shadowRoot=this}}),e.is=o.C,Pn(e,o,3)},Yn=(e,n={})=>{var o;if(t.profile&&performance.mark&&performance.mark("st:app:start"),(()=>{if(t.devTools){const e=R.stencil=R.stencil||{},t=e.inspect;e.inspect=e=>{let n=(e=>{const t=f(e);if(!t)return;const n=t.u,o=t.$hostElement$;return{renderCount:t.m,flags:{hasRendered:!!(2&n),hasConnected:!!(1&n),isWaitingForChildren:!!(4&n),isConstructingInstance:!!(8&n),isQueuedForUpdate:!!(16&n),hasInitializedComponent:!!(32&n),hasLoadedComponent:!!(64&n),isWatchReady:!!(128&n),isListenReady:!!(256&n),needsRerender:!!(512&n)},instanceValues:t.i,serializerValues:t.p,ancestorComponent:t.K,hostElement:o,lazyInstance:t.l,vnode:t.J,modeName:t.N,fetchedCbList:t.j,onReadyPromise:t.S,onReadyResolve:t.O,onInstancePromise:t.v,onInstanceResolve:t.$,onRenderResolve:t.q,queuedListeners:t.G,rmListeners:t.se,"s-id":o["s-id"],"s-cr":o["s-cr"],"s-lr":o["s-lr"],"s-p":o["s-p"],"s-rc":o["s-rc"],"s-sc":o["s-sc"]}})(e);return n||"function"!=typeof t||(n=t(e)),n}}})(),!R.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const s=Ue("bootstrapLazy"),r=[],i=n.exclude||[],l=R.customElements,c=R.document.head,a=c.querySelector("meta[charset]"),u=R.document.createElement("style"),d=[];let p,m=!0;Object.assign(M,n),M.k=new URL(n.resourcesUrl||"./",R.document.baseURI).href,t.asyncQueue&&n.syncQueue&&(M.u|=4),t.hydrateClientSide&&(M.u|=2),t.hydrateClientSide&&t.shadowDom&&Xe();let v=!1;if(e.map((e=>{e[1].map((o=>{var s,c,a;const u={u:o[0],C:o[1],t:o[2],oe:o[3]};4&u.u&&(v=!0),t.member&&(u.t=o[2]),t.hostListener&&(u.oe=o[3]),t.reflect&&(u.X=[]),t.propChangeCallback&&(u.te=null!=(s=o[4])?s:{},u.ee=null!=(c=o[5])?c:{},u.ne=null!=(a=o[6])?a:{}),t.shadowDom&&!D&&1&u.u&&(u.u|=8);const g=t.transformTagName&&n.transformTagName?n.transformTagName(u.C):eo(u.C),$=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,h(e=this,u),t.shadowDom&&1&u.u)if(D)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${u.C}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else le.call(e,u);else t.hydrateServerSide||"shadowRoot"in e||(e.shadowRoot=e)}connectedCallback(){const e=f(this);e&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Jn(this,e,u.oe,!1)),p&&(clearTimeout(p),p=null),m?d.push(this):M.jmp((()=>Un(this))))}disconnectedCallback(){M.jmp((()=>Vn(this))),M.raf((()=>{var e;const t=f(this);if(!t)return;const n=d.findIndex((e=>e===this));n>-1&&d.splice(n,1),(null==(e=null==t?void 0:t.J)?void 0:e.P)instanceof Node&&!t.J.P.isConnected&&delete t.J.P}))}componentOnReady(){var e;return null==(e=f(this))?void 0:e.S}};!(1&u.u)&&256&u.u&&(t.experimentalSlotFixes?$e($.prototype):(t.slotChildNodesFix&&Ne($.prototype),t.cloneNodeFix&&be($.prototype),t.appendChildSlotFix&&ye($.prototype),t.scopedSlotTextContentFix&&2&u.u&&Ee($.prototype))),t.formAssociated&&64&u.u&&($.formAssociated=!0),t.hotModuleReplacement&&($.prototype["s-hmr"]=function(e){((e,t,n)=>{const o=f(e);o&&(o.u=1,Hn(e,o,t,n))})(this,u,e)}),u._=e[0],i.includes(g)||l.get(g)||(r.push(g),l.define(g,Pn($,u,1)))}))})),r.length>0&&(v&&(u.textContent+=N),t.invisiblePrehydration&&(t.hydratedClass||t.hydratedAttribute)&&(u.textContent+=r.sort()+"{visibility:hidden}.hydrated{visibility:inherit}"),u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!=(o=M.T)?o:G(R.document);null!=e&&u.setAttribute("nonce",e),c.insertBefore(u,a?a.nextSibling:c.firstChild)}m=!1,d.length?d.map((e=>e.connectedCallback())):M.jmp(t.profile?()=>p=setTimeout(Tn,30,"timeout"):()=>p=setTimeout(Tn,30)),s()},Jn=(e,n,o,s)=>{t.hostListener&&o&&R.document&&(t.hostListenerTargetParent&&(o=o.filter(s?([e])=>32&e:([e])=>!(32&e))),o.map((([o,s,r])=>{const i=t.hostListenerTarget?qn(R.document,e,o):e,l=Xn(n,r),c=Kn(o);M.ael(i,s,l,c),(n.se=n.se||[]).push((()=>M.rel(i,s,l,c)))})))},Xn=(e,n)=>o=>{var s;try{t.lazyLoad?256&e.u?null==(s=e.l)||s[n](o):(e.G=e.G||[]).push([n,o]):e.$hostElement$[n](o)}catch(t){m(t,e.$hostElement$)}},qn=(e,n,o)=>t.hostListenerTargetDocument&&4&o?e:t.hostListenerTargetWindow&&8&o?R:t.hostListenerTargetBody&&16&o?e.body:t.hostListenerTargetParent&&32&o&&n.parentElement?n.parentElement:n,Kn=e=>({passive:!!(1&e),capture:!!(2&e)}),Qn=t.lazyLoad?class{}:globalThis.HTMLElement||class{},Gn=e=>M.T=e,Zn=void 0;function eo(e){return Zn?Zn(e):e}var to=(e,t,n,o)=>{var s;null!=t&&(null!=t["s-nr"]&&o.push(t),1===t.nodeType)&&[...Array.from(t.childNodes),...Array.from((null==(s=t.shadowRoot)?void 0:s.childNodes)||[])].forEach((t=>{const s=f(t);null==s||n.staticComponents.has(t.nodeName.toLowerCase())||no(e,t,s.J,n,{nodeIds:0}),to(e,t,n,o)}))},no=(e,t,n,o,s)=>{if(null!=n){const r=++o.hostIds;if(t.setAttribute(O,r),null!=t["s-cr"]&&(t["s-cr"].nodeValue="r."+r),null!=n.M){const t=0;n.M.forEach(((n,o)=>{oo(e,n,s,r,t,o)}))}if(t&&n&&n.P&&!t.hasAttribute(C)){const e=t.parentElement;if(e&&e.childNodes){const o=Array.from(e.childNodes),s=o.find((e=>8===e.nodeType&&e["s-sr"]));if(s){const e=o.indexOf(t)-1;n.P.setAttribute(C,`${s["s-host-id"]}.${s["s-node-id"]}.0.${e}`)}}}}},oo=(e,t,n,o,s,r)=>{const i=t.P;if(null==i)return;const l=n.nodeIds++,c=`${o}.${l}.${s}.${r}`;if(i["s-host-id"]=o,i["s-node-id"]=l,1===i.nodeType)i.setAttribute(C,c),"string"!=typeof i["s-sn"]||i.getAttribute("slot")||i.setAttribute("s-sn",i["s-sn"]);else if(3===i.nodeType){const t=i.parentNode,n=null==t?void 0:t.nodeName;if("STYLE"!==n&&"SCRIPT"!==n){const n=e.createComment("t."+c);vn(t,n,i)}}else 8===i.nodeType&&i["s-sr"]&&(i.nodeValue=`s.${c}.${i["s-sn"]||""}`);if(null!=t.M){const r=s+1;t.M.forEach(((t,s)=>{oo(e,t,n,o,r,s)}))}},so=Object.freeze({__proto__:null,BUILD:t,Build:s,Env:{},Fragment:(e,t)=>t,H:L,HTMLElement:L,HYDRATED_STYLE_ID:j,Host:Qe,Mixin:function(...e){return e.reduceRight(((e,t)=>t(e)),Qn)},NAMESPACE:e,STENCIL_DEV_MODE:v,addHostEventListeners:Jn,bootstrapLazy:Yn,cmpModules:y,connectedCallback:Un,consoleDevError:g,consoleDevInfo:b,consoleDevWarn:$,consoleError:m,createEvent:(e,n,o)=>{const s=Wt(e);return{emit:e=>(t.isDev&&!s.isConnected&&$(`The "${n}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Yt(s,n,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:e}))}},defineCustomElement:(e,t)=>{customElements.define(eo(t[1]),Wn(e,t))},disconnectedCallback:Vn,forceModeUpdate:e=>{if(t.style&&t.mode&&!t.lazyLoad){const t=zt(e),n=f(e);if(n&&n.N!==t){const o=n.o,s=e["s-sc"],r=Ye(o,t),i=e.constructor.style[t],l=o.u;i&&(S.has(r)||ze(r,i,!!(1&l)),n.N=t,e.classList.remove(s+"-h",s+"-s"),We(n),kn(e))}}},forceUpdate:kn,getAssetPath:e=>{const t=new URL(e,M.k);return t.origin!==R.location.origin?t.href:t.pathname},getElement:Wt,getHostRef:f,getMode:e=>{var t;return null==(t=f(e))?void 0:t.N},getRenderingRef:()=>_n,getValue:An,h:qe,insertVdomAnnotations:(e,t)=>{if(null!=e){const n=_ in e?e[_]:{...E};n.staticComponents=new Set(t);const o=[];to(e,e.body,n,o),o.forEach((t=>{var o;if(null!=t&&t["s-nr"]){const s=t["s-nr"];let r=s["s-host-id"],i=s["s-node-id"],l=`${r}.${i}`;if(null==r)if(r=0,n.rootLevelIds++,i=n.rootLevelIds,l=`${r}.${i}`,1===s.nodeType)s.setAttribute(C,l),"string"!=typeof s["s-sn"]||s.getAttribute("slot")||s.setAttribute("s-sn",s["s-sn"]);else if(3===s.nodeType){if(0===r&&""===(null==(o=s.nodeValue)?void 0:o.trim()))return void t.remove();const n=e.createComment(l);n.nodeValue="t."+l,vn(s.parentNode,n,s)}else if(8===s.nodeType){const t=e.createComment(l);t.nodeValue="c."+l,s.parentNode.insertBefore(t,s)}let c="o."+l;const a=t.parentElement;a&&(""===a["s-en"]?c+=".":"c"===a["s-en"]&&(c+=".c")),t.nodeValue=c}}))}},isMemberInElement:p,loadModule:w,modeResolutionChain:x,needsScopedSSR:()=>!1,nextTick:X,parsePropertyValue:Vt,plt:M,postUpdateComponent:Nn,promiseResolve:A,proxyComponent:Pn,proxyCustomElement:Wn,readTask:q,registerHost:h,registerInstance:d,render:function(e,t){$n({o:{u:0,C:t.tagName},$hostElement$:t},e)},renderVdom:$n,setAssetPath:e=>M.k=e,setErrorHandler:e=>n=e,setMode:e=>x.push(e),setNonce:Gn,setPlatformHelpers:e=>{Object.assign(M,e)},setPlatformOptions:e=>Object.assign(M,e),setScopedSSR:()=>{},setTagTransformer:function(e){Zn&&console.warn("\n A tagTransformer has already been set. \n Overwriting it may lead to error and unexpected results if your components have already been defined.\n "),Zn=e},setValue:In,styles:S,supportsConstructableStylesheets:I,supportsListenerOptions:!0,supportsMutableAdoptedStyleSheets:P,supportsShadow:D,transformTag:eo,win:R,writeTask:K});export{t as B,L as H,e as N,so as S,Yn as b,b as c,qe as h,A as p,d as r,Gn as s,R as w}
|