UNPKG

@ionic/core

Version:
6 lines • 41.9 kB
/*! * (C) Ionic http://ionicframework.com - MIT License */ const t="hydrated";class n{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,n){const e=this.m.get(t);return void 0!==e?e:n}getBoolean(t,n=!1){const e=this.m.get(t);return void 0===e?n:"string"==typeof e?"true"===e:!!e}getNumber(t,n){const e=parseFloat(this.m.get(t));return isNaN(e)?void 0!==n?n:NaN:e}set(t,n){this.m.set(t,n)}}const e=new n,o=t=>{try{const n=t.sessionStorage.getItem(c);return null!==n?JSON.parse(n):{}}catch{return{}}},s=(t,n)=>{try{t.sessionStorage.setItem(c,JSON.stringify(n))}catch{return}},l=t=>{const n={};return t.location.search.slice(1).split("&").map((t=>t.split("="))).map((([t,n])=>{try{return[decodeURIComponent(t),decodeURIComponent(n)]}catch{return["",""]}})).filter((([t])=>i(t,r))).map((([t,n])=>[t.slice(r.length),n])).forEach((([t,e])=>{n[t]=e})),n},i=(t,n)=>t.substr(0,n.length)===n,r="ionic:",c="ionic-persist-config";var u;!function(t){t.OFF="OFF",t.ERROR="ERROR",t.WARN="WARN",t.DEBUG="DEBUG"}(u||(u={}));const f={[u.OFF]:0,[u.ERROR]:1,[u.WARN]:2,[u.DEBUG]:3},a=t=>{const n=(e.get("logLevel",u.WARN)+"").toUpperCase();return f[n]>=f[t]},d=(t,...n)=>{if(a(u.WARN))return console.warn("[Ionic Warning]: "+t,...n)},h=(t,...n)=>{if(a(u.ERROR))return console.error("[Ionic Error]: "+t,...n)},v=(t,...n)=>console.error(`<${t.tagName.toLowerCase()}> must be used inside ${n.join(" or ")}.`);var p={isBrowser:!0},b=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(b||{}),$=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))($||{}),m="type",g="value",y="serialized:";function w(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var j,O=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],s=w(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);s&&Object.defineProperty(t,e,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(e)?t[e]=n.l.get(e):void 0!==o&&(t[e]=o)}}))},N=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},S=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&O(t,n))},x=(t,n)=>n in t,E=(t,n)=>(0,console.error)(t,n),k=new Map,C=new Map,M=new Map,R=[],I="s-id",T="sty-id",L="c-id",B="slot-fb{display:contents}slot-fb[hidden]{display:none}",A="http://www.w3.org/1999/xlink",F="undefined"!=typeof window?window:{},U=F.HTMLElement||class{},D={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},_=t=>Promise.resolve(t),P=(()=>{try{return!!F.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),V=!!P&&(()=>!!F.document&&Object.getOwnPropertyDescriptor(F.document.adoptedStyleSheets,"length").writable)(),W=!1,H=[],z=[],q=()=>{var t;return(null==(t=F.document)?void 0:t.hidden)?setTimeout(Y,16):D.raf(Y)},J=(t,n)=>e=>{t.push(e),W||(W=!0,n&&4&D.u?Z(Y):q())},G=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){E(t)}t.length=0},Y=()=>{G(H),G(z),(W=H.length>0)&&q()},Z=t=>_().then(t),K=J(H,!1),Q=J(z,!0),X=t=>{const n=new URL(t,D.h);return n.origin!==F.location.origin?n.href:n.pathname};function tt(t){const n={mode:"open"};n.delegatesFocus=!!(16&t.u);const e=this.attachShadow(n);void 0===j&&(j=null),j&&(V?e.adoptedStyleSheets.push(j):e.adoptedStyleSheets=[...e.adoptedStyleSheets,j])}var nt=t=>{const n=Rt(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&ot(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!st(t,rt(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&Rt(t,"childNodes").length&&nt(t)}},et=t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n};function ot(t,n,e){let o,s=0,l=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||rt(o)===e)&&(l.push(o),void 0!==e))return l;l=[...l,...ot(Rt(o,"childNodes"),n,e)]}return l}var st=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)rt(s)!==n||!e&&s["s-sr"]||o.push(s);return o},lt=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,it=(t,n,e,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const s=document.createTextNode("");if(s["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const l=n["s-cr"].parentNode,i=Rt(l,e?"prepend":"appendChild");if(void 0!==o){s["s-oo"]=o;const t=Rt(l,"childNodes"),n=[s];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>i.call(l,t)))}else i.call(l,s);t["s-ol"]=s,t["s-sh"]=n["s-hn"]},rt=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function ct(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.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:et(s.childNodes)).forEach((t=>{o===rt(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}function ut(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function ft(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=rt(t)||"";return{slotNode:ot(Rt(n,"childNodes"),n.tagName,o)[0],slotName:o}}var at=t=>{if(t.__cloneNode)return;const n=t.__cloneNode=t.cloneNode;t.cloneNode=function(t){const e=this.shadowRoot&&true,o=n.call(this,!!e&&t);if(!e&&t){let t,n,e=0;const s=["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"],l=this.__childNodes||this.childNodes;for(;e<l.length;e++)t=l[e]["s-nr"],n=s.every((t=>!l[e][t])),t&&(o.__appendChild?o.__appendChild(t.cloneNode(!0)):o.appendChild(t.cloneNode(!0))),n&&o.appendChild(l[e].cloneNode(!0))}return o}},dt=t=>{t.__appendChild||(t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:n,slotNode:e}=ft(t,this);if(e){it(t,e);const o=st(e,n),s=o[o.length-1],l=Rt(s,"parentNode"),i=Rt(l,"insertBefore")(t,s.nextSibling);return ut(e),nt(this),i}return this.__appendChild(t)})},ht=t=>{t.__removeChild||(t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&ot(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void nt(this)):this.__removeChild(t)})},vt=t=>{t.__prepend||(t.__prepend=t.prepend,t.prepend=function(...n){n.forEach((n=>{"string"==typeof n&&(n=this.ownerDocument.createTextNode(n));const e=(n["s-sn"]=rt(n))||"",o=ot(Rt(this,"childNodes"),this.tagName,e)[0];if(o){it(n,o,!0);const t=st(o,e)[0],s=Rt(t,"parentNode"),l=Rt(s,"insertBefore")(n,Rt(t,"nextSibling"));return ut(o),l}return 1===n.nodeType&&n.getAttribute("slot")&&(n.hidden=!0),t.__prepend(n)}))})},pt=t=>{t.__append||(t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))})},bt=t=>{if(t.__insertAdjacentHTML)return;const n=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,e){if("afterbegin"!==t&&"beforeend"!==t)return n.call(this,t,e);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=e,"afterbegin"===t)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===t)for(;s=o.firstChild;)this.append(s)}},$t=t=>{t.insertAdjacentText=function(t,n){this.insertAdjacentHTML(t,n)}},mt=t=>{t.__insertBefore||t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,n){const{slotName:e,slotNode:o}=ft(t,this),s=this.__childNodes?this.childNodes:et(this.childNodes);if(o){let l=!1;if(s.forEach((s=>{if(s!==n&&null!==n);else{if(l=!0,null===n||e!==n["s-sn"])return void this.appendChild(t);if(e===n["s-sn"]){it(t,o);const e=Rt(n,"parentNode");Rt(e,"insertBefore")(t,n),ut(o)}}})),l)return t}const l=null==n?void 0:n.__parentNode;return l&&!this.isSameNode(l)?this.appendChild(t):this.__insertBefore(t,n)})},gt=t=>{if(t.__insertAdjacentElement)return;const n=t.insertAdjacentElement;t.insertAdjacentElement=function(t,e){return"afterbegin"!==t&&"beforeend"!==t?n.call(this,t,e):"afterbegin"===t?(this.prepend(e),e):"beforeend"===t?(this.append(e),e):e}},yt=t=>{Mt("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:et(this.childNodes)).forEach((n=>t+=n.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:et(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},wt=t=>{class n extends Array{item(t){return this[t]}}Mt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),Mt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]||null}}),Mt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]||null}}),Mt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new n;return t.push(...et(this.__childNodes)),t}})},jt=t=>{t&&void 0===t.__nextSibling&&globalThis.Node&&(Ot(t),St(t),Et(t),t.nodeType===Node.ELEMENT_NODE&&(Nt(t),xt(t)))},Ot=t=>{t&&!t.__nextSibling&&(Mt("nextSibling",t),Object.defineProperty(t,"nextSibling",{get:function(){var t;const n=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,e=null==n?void 0:n.indexOf(this);return n&&e>-1?n[e+1]||null:this.__nextSibling}}))},Nt=t=>{t&&!t.__nextElementSibling&&(Mt("nextElementSibling",t),Object.defineProperty(t,"nextElementSibling",{get:function(){var t;const n=null==(t=this["s-ol"])?void 0:t.parentNode.children,e=null==n?void 0:n.indexOf(this);return n&&e>-1?n[e+1]||null:this.__nextElementSibling}}))},St=t=>{t&&!t.__previousSibling&&(Mt("previousSibling",t),Object.defineProperty(t,"previousSibling",{get:function(){var t;const n=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,e=null==n?void 0:n.indexOf(this);return n&&e>-1?n[e-1]||null:this.__previousSibling}}))},xt=t=>{t&&!t.__previousElementSibling&&(Mt("previousElementSibling",t),Object.defineProperty(t,"previousElementSibling",{get:function(){var t;const n=null==(t=this["s-ol"])?void 0:t.parentNode.children,e=null==n?void 0:n.indexOf(this);return n&&e>-1?n[e-1]||null:this.__previousElementSibling}}))},Et=t=>{t&&!t.__parentNode&&(Mt("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},kt=["children","nextElementSibling","previousElementSibling"],Ct=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Mt(t,n){if(!globalThis.Node||!globalThis.Element)return;let e;kt.includes(t)?e=Object.getOwnPropertyDescriptor(Element.prototype,t):Ct.includes(t)&&(e=Object.getOwnPropertyDescriptor(Node.prototype,t)),e||(e=Object.getOwnPropertyDescriptor(n,t)),e&&Object.defineProperty(n,"__"+t,e)}function Rt(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}function It(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var Tt=new WeakMap,Lt=(t,n,e)=>{let o=M.get(t);P&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,M.set(t,o)},Bt=(t,n,e)=>{var o,s,l;const i=At(n,e),r=M.get(i);if(!F.document)return i;if(t=11===t.nodeType?t:F.document,r)if("string"==typeof r){let e,l=Tt.get(t=t.head||t);l||Tt.set(t,l=new Set);const c=t.querySelector(`[${T}="${i}"]`);if(c)c.textContent=r;else if(!l.has(i)){e=F.document.createElement("style"),e.textContent=r;const c=null!=(o=D.v)?o:It(F.document);if(null!=c&&e.setAttribute("nonce",c),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),o=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(e,(null==o?void 0:o.parentNode)===t?o:null)}else if("host"in t)if(P){const n=new(null!=(s=t.defaultView)?s:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(r),V?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=r+n.textContent:t.prepend(e)}else t.append(e);1&n.u&&t.insertBefore(e,null),4&n.u&&(e.textContent+=B),l&&l.add(i)}}else{let n=Tt.get(t);if(n||Tt.set(t,n=new Set),!n.has(i)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(r.constructor===e.CSSStyleSheet)o=r;else{o=new e.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)o.insertRule(r.cssRules[t].cssText,t)}if(V?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(i),"host"in t){const n=t.querySelector(`[${T}="${i}"]`);n&&Q((()=>n.remove()))}}}return i},At=(t,n)=>"sc-"+(n&&32&t.u?t.p+"-"+n:t.p),Ft=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ut=t=>"object"==(t=typeof t)||"function"===t,Dt=(t,n,...e)=>{let o=null,s=null,l=null,i=!1,r=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)if(o=n[e],Array.isArray(o))u(o);else if(null!=o&&"boolean"!=typeof o){if(i="function"!=typeof t&&!Ut(o))o+="";else if("function"!=typeof t&&void 0===o.u){E("Invalid vNode child");continue}i&&r?c[c.length-1].$+=o:c.push(i?_t(null,o):o),r=i}};if(u(e),n){n.key&&(s=n.key),n.name&&(l=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}if("function"==typeof t)return t(null===n?{}:n,c,Vt);const f=_t(t,null);return f.j=n,c.length>0&&(f.O=c),f.N=s,f.S=l,f},_t=(t,n)=>({u:0,k:t,$:null!=n?n:null,C:null,O:null,j:null,N:null,S:null}),Pt={},Vt={forEach:(t,n)=>t.map(Wt).forEach(n),map:(t,n)=>t.map(Wt).map(n).map(Ht)},Wt=t=>({vattrs:t.j,vchildren:t.O,vkey:t.N,vname:t.S,vtag:t.k,vtext:t.$}),Ht=t=>{if("function"==typeof t.vtag){const n={...t.vattrs};return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),Dt(t.vtag,n,...t.vchildren||[])}const n=_t(t.vtag,t.vtext);return n.j=t.vattrs,n.O=t.vchildren,n.N=t.vkey,n.S=t.vname,n},zt=(t,n,e,o,s,l,i,r=[])=>{let c,u,f,a;const d=s["s-sc"];if(1===l.nodeType){if(c=l.getAttribute(L),c&&(u=c.split("."),u[0]===i||"0"===u[0])){f=Jt({u:0,M:u[0],R:u[1],I:u[2],T:u[3],k:l.tagName.toLowerCase(),C:l,j:{class:l.className||""}}),n.push(f),l.removeAttribute(L),t.O||(t.O=[]),d&&u[0]===i&&(l["s-si"]=d,f.j.class+=" "+d);const s=f.C.getAttribute("s-sn");"string"==typeof s&&("slot-fb"===f.k&&(Gt(s,u[2],f,l,t,n,e,o,r),d&&l.classList.add(d)),f.C["s-sn"]=s,f.C.removeAttribute("s-sn")),void 0!==f.T&&(t.O[f.T]=f),t=f,o&&"0"===f.I&&(o[f.T]=f.C)}if(l.shadowRoot)for(a=l.shadowRoot.childNodes.length-1;a>=0;a--)zt(t,n,e,o,s,l.shadowRoot.childNodes[a],i,r);const h=l.__childNodes||l.childNodes;for(a=h.length-1;a>=0;a--)zt(t,n,e,o,s,h[a],i,r)}else if(8===l.nodeType)u=l.nodeValue.split("."),(u[1]===i||"0"===u[1])&&(c=u[0],f=Jt({M:u[1],R:u[2],I:u[3],T:u[4]||"0",C:l,j:null,O:null,N:null,S:null,k:null,$:null}),"t"===c?(f.C=Zt(l,3),f.C&&3===f.C.nodeType&&(f.$=f.C.textContent,n.push(f),l.remove(),i===f.M&&(t.O||(t.O=[]),t.O[f.T]=f),o&&"0"===f.I&&(o[f.T]=f.C))):"c"===c?(f.C=Zt(l,8),f.C&&8===f.C.nodeType&&(n.push(f),l.remove())):f.M===i&&("s"===c?Gt(l["s-sn"]=u[5]||"",u[2],f,l,t,n,e,o,r):"r"===c&&(o?l.remove():(s["s-cr"]=l,l["s-cn"]=!0))));else if(t&&"style"===t.k){const n=_t(null,l.textContent);n.C=l,n.T="0",t.O=[n]}return t},qt=(t,n)=>{if(1===t.nodeType){const e=t[I]||t.getAttribute(I);e&&n.set(e,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)qt(t.shadowRoot.childNodes[o],n);const s=t.__childNodes||t.childNodes;for(o=0;o<s.length;o++)qt(s[o],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},Jt=t=>({u:0,M:null,R:null,I:null,T:"0",C:null,j:null,O:null,N:null,S:null,k:null,$:null,...t});function Gt(t,n,e,o,s,l,i,r,c){o["s-sr"]=!0,e.S=t||null,e.k="slot";const u=(null==s?void 0:s.C)?s.C["s-id"]||s.C.getAttribute("s-id"):"";if(r&&F.document){const l=e.C=F.document.createElement(e.k);e.S&&e.C.setAttribute("name",t),s.C.shadowRoot&&u&&u!==e.M?Rt(s.C,"insertBefore")(l,Rt(s.C,"children")[0]):Rt(Rt(o,"parentNode"),"insertBefore")(l,o),Yt(c,n,t,o,e.M),o.remove(),"0"===e.I&&(r[e.T]=e.C)}else{const l=e.C,i=u&&u!==e.M&&s.C.shadowRoot;Yt(c,n,t,o,i?u:e.M),ct(o),i&&s.C.insertBefore(l,s.C.children[0])}l.push(e),i.push(e),s.O||(s.O=[]),s.O[e.T]=e}var Yt=(t,n,e,o,s)=>{var l,i;let r=o.nextSibling;if(t[n]=t[n]||[],r&&!(null==(l=r.nodeValue)?void 0:l.startsWith("s.")))do{!r||(r.getAttribute&&r.getAttribute("slot")||r["s-sn"])!==e&&(""!==e||r["s-sn"]||r.getAttribute&&r.getAttribute("slot")||8!==r.nodeType&&3!==r.nodeType)||(r["s-sn"]=e,t[n].push({slot:o,node:r,hostId:s})),r=null==r?void 0:r.nextSibling}while(r&&!(null==(i=r.nodeValue)?void 0:i.startsWith("s.")))},Zt=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},Kt=t=>{R.length=0,R.push(t)},Qt=t=>{var n;return null==(n=N(t))?void 0:n.L},Xt=t=>{if(!t)return;const n=Object.keys(t);if(0===n.length)return;let e=!1;for(const o of n){if(e)break;for(const n of t[o])if("string"==typeof n){e=!0;break}}if(!e)return t;const o={};for(const e of n)o[e]=t[e].map((t=>"string"==typeof t?{[t]:0}:t));return o},tn=class t{static fromLocalValue(n){const e=n[m],o=g in n?n[g]:void 0;switch(e){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((n=>t.fromLocalValue(n)));case"date":return new Date(o);case"map":const n=new Map;for(const[e,s]of o){const o="object"==typeof e&&null!==e?t.fromLocalValue(e):e,l=t.fromLocalValue(s);n.set(o,l)}return n;case"object":const s={};for(const[n,e]of o)s[n]=t.fromLocalValue(e);return s;case"regexp":const{pattern:l,flags:i}=o;return RegExp(l,i);case"set":const r=new Set;for(const n of o)r.add(t.fromLocalValue(n));return r;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+e)}}static fromLocalValueArray(n){return n.map((n=>t.fromLocalValue(n)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(m))return!1;const n=t[m];return!!Object.values({...b,...$}).includes(n)&&("null"===n||"undefined"===n||t.hasOwnProperty(g))}};var nn,en,on,sn=(t,n)=>"string"==typeof t&&t.startsWith(y)?t=function(t){return"string"==typeof t&&t.startsWith(y)?tn.fromLocalValue(JSON.parse(function(t){const n=atob(t),e=new Uint8Array(n.length);for(let t=0;t<n.length;t++)e[t]=n.charCodeAt(t);return(new TextDecoder).decode(e)}(t.slice(11)))):t}(t):null==t||Ut(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?t+"":t,ln=t=>{var n;return null==(n=N(t))?void 0:n.$hostElement$},rn=(t,n,e)=>{const o=ln(t);return{emit:t=>cn(o,n,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:t})}},cn=(t,n,e)=>{const o=D.ce(n,e);return t.dispatchEvent(o),o},un=(t,n,e,o,s,l,i)=>{if(e===o)return;let r=x(t,n),c=n.toLowerCase();if("class"===n){const n=t.classList,s=vn(e);let r=vn(o);if((t["s-si"]||t["s-sc"])&&i){const e=t["s-sc"]||t["s-si"];r.push(e),s.forEach((t=>{t.startsWith(e)&&r.push(t)})),r=[...new Set(r)].filter((t=>t)),n.add(...r)}else{let e=s.filter((t=>t&&!r.includes(t)));if(i&&!(4&l)){const n=hn(t);e=e.filter((t=>!n.includes(t)))}n.remove(...e),n.add(...r.filter((t=>t&&!s.includes(t))))}}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&An(o,t);else if(r||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let s;{const n=N(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(s=t[1])}}return s||(s=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(s)||t.removeAttribute(s):t.setAttribute(s,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const i=Ut(o);if((r||i&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const s=null==o?"":o;"list"===n?r=!1:null!=e&&t[n]===s||("function"==typeof t.__lookupSetter__(n)?t[n]=s:t.setAttribute(n,s))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,u=!0),null==o||!1===o?(!1!==o||""===t.getAttribute(n)||4&l&&!an(n))&&(u?t.removeAttributeNS(A,n):t.removeAttribute(n)):(!r||4&l||s)&&!i&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(A,n,o):t.setAttribute(n,o))}}else if(n="-"===n[2]?n.slice(3):x(F,c)?c.slice(2):c[2]+n.slice(3),e||o){const s=n.endsWith(pn);n=n.replace(bn,""),e&&D.rel(t,n,e,s),o&&D.ael(t,n,o,s)}},fn=new Set(["draggable","contenteditable","spellcheck"]),an=t=>fn.has(t)||t.startsWith("aria-"),dn=/\s/,hn=n=>{var e,o,s;const l=N(n);if(!(l&&2&l.u))return[];const i=vn(null==(o=null==(e=l.B)?void 0:e.j)?void 0:o.class);return i.push(null!=(s=t)?s:"hydrated"),i},vn=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(dn):[]),pn="Capture",bn=RegExp(pn+"$"),$n=(t,n,e,o)=>{const s=11===n.C.nodeType&&n.C.host?n.C.host:n.C,l=t&&t.j||{},i=n.j||{};for(const t of mn(Object.keys(l)))t in i||un(s,t,l[t],void 0,e,n.u,o);for(const t of mn(Object.keys(i)))un(s,t,l[t],i[t],e,n.u,o)};function mn(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var gn=!1,yn=!1,wn=!1,jn=!1,On=[],Nn=[],Sn=(t,n,e)=>{var o;const s=n.O[e];let l,i,r,c=0;if(gn||(wn=!0,"slot"===s.k&&(s.u|=s.O?2:1)),null!=s.$)l=s.C=F.document.createTextNode(s.$);else if(1&s.u)l=s.C=F.document.createTextNode(""),$n(null,s,jn);else{if(jn||(jn="svg"===s.k),!F.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=s.C=F.document.createElementNS(jn?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!gn&&2&s.u?"slot-fb":s.k),jn&&"foreignObject"===s.k&&(jn=!1),$n(null,s,jn),null!=nn&&void 0!==nn&&l["s-si"]!==nn&&l.classList.add(l["s-si"]=nn),s.O){const n="template"===s.k?l.content:l;for(c=0;c<s.O.length;++c)i=Sn(t,s,c),i&&n.appendChild(i)}"svg"===s.k?jn=!1:"foreignObject"===l.tagName&&(jn=!0)}return l["s-hn"]=on,3&s.u&&(l["s-sr"]=!0,l["s-cr"]=en,l["s-sn"]=s.S||"",l["s-rf"]=null==(o=s.j)?void 0:o.ref,ct(l),r=t&&t.O&&t.O[e],r&&r.k===s.k&&t.C&&xn(t.C),Un(en,l,n.C,null==t?void 0:t.C)),l},xn=t=>{D.u|=1;const n=t.closest(on.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(Fn(n,t,null!=e?e:null),t["s-sh"]=void 0,wn=!0)}D.u&=-2},En=(t,n)=>{D.u|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===on&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==on&&o["s-ol"]&&(Fn(Rn(o).parentNode,o,Rn(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,wn=!0),n&&En(o,n)}D.u&=-2},kn=(t,n,e,o,s,l)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===on&&(r=r.shadowRoot),"template"===e.k&&(r=r.content);s<=l;++s)o[s]&&(i=Sn(null,e,s),i&&(o[s].C=i,Fn(r,i,Rn(n))))},Cn=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.C;Bn(n),t&&(yn=!0,t["s-ol"]?t["s-ol"].remove():En(t,!0),t.remove())}}},Mn=(t,n,e=!1)=>t.k===n.k&&("slot"===t.k?t.S===n.S:e?(e&&!t.N&&n.N&&(t.N=n.N),!0):t.N===n.N),Rn=t=>t&&t["s-ol"]||t,In=(t,n,e=!1)=>{const o=n.C=t.C,s=t.O,l=n.O,i=n.k,r=n.$;let c;null==r?(jn="svg"===i||"foreignObject"!==i&&jn,"slot"!==i||gn||t.S!==n.S&&(n.C["s-sn"]=n.S||"",xn(n.C.parentElement)),$n(t,n,jn,e),null!==s&&null!==l?((t,n,e,o,s=!1)=>{let l,i,r=0,c=0,u=0,f=0,a=n.length-1,d=n[0],h=n[a],v=o.length-1,p=o[0],b=o[v];const $="template"===e.k?t.content:t;for(;r<=a&&c<=v;)if(null==d)d=n[++r];else if(null==h)h=n[--a];else if(null==p)p=o[++c];else if(null==b)b=o[--v];else if(Mn(d,p,s))In(d,p,s),d=n[++r],p=o[++c];else if(Mn(h,b,s))In(h,b,s),h=n[--a],b=o[--v];else if(Mn(d,b,s))"slot"!==d.k&&"slot"!==b.k||En(d.C.parentNode,!1),In(d,b,s),Fn($,d.C,h.C.nextSibling),d=n[++r],b=o[--v];else if(Mn(h,p,s))"slot"!==d.k&&"slot"!==b.k||En(h.C.parentNode,!1),In(h,p,s),Fn($,h.C,d.C),h=n[--a],p=o[++c];else{for(u=-1,f=r;f<=a;++f)if(n[f]&&null!==n[f].N&&n[f].N===p.N){u=f;break}u>=0?(i=n[u],i.k!==p.k?l=Sn(n&&n[c],e,c):(In(i,p,s),n[u]=void 0,l=i.C),p=o[++c]):(l=Sn(n&&n[c],e,c),p=o[++c]),l&&Fn(Rn(d.C).parentNode,l,Rn(d.C))}r>a?kn(t,null==o[v+1]?null:o[v+1].C,e,o,c,v):c>v&&Cn(n,r,a)})(o,s,n,l,e):null!==l?(null!==t.$&&(o.textContent=""),kn(o,null,n,l,0,l.length-1)):e||null===s?e&&null!==s&&null===l&&(n.O=s):Cn(s,0,s.length-1),jn&&"svg"===i&&(jn=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.$!==r&&(o.data=r)},Tn=[],Ln=t=>{let n,e,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const s=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(!n["s-sh"]||n["s-sh"]!==t["s-hn"]||""!==s&&rt(n)===s))if(lt(n,s)){let e=Tn.find((t=>t.A===n));yn=!0,n["s-sn"]=n["s-sn"]||s,e?(e.A["s-sh"]=t["s-hn"],e.F=t):(n["s-sh"]=t["s-hn"],Tn.push({F:t,A:n})),n["s-sr"]&&Tn.map((t=>{lt(t.A,n["s-sn"])&&(e=Tn.find((t=>t.A===n)),e&&!t.F&&(t.F=e.F))}))}else Tn.some((t=>t.A===n))||Tn.push({A:n})}1===t.nodeType&&Ln(t)}},Bn=t=>{t.j&&t.j.ref&&On.push((()=>t.j.ref(null))),t.O&&t.O.map(Bn)},An=(t,n)=>{Nn.push((()=>t(n)))},Fn=(t,n,e,o)=>{if("string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])Un(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){11!==t.getRootNode().nodeType&&Et(n),t.insertBefore(n,e);const{slotNode:s}=ft(n);return s&&!o&&ut(s),n}return(null==t?void 0:t.__insertBefore)?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)};function Un(t,n,e,o){var s,l;let i;if(t&&"string"==typeof n["s-sn"]&&n["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(i=n["s-si"]||t.parentNode["s-sc"])){const t=n["s-sn"],r=n["s-hn"];if(null==(s=e.classList)||s.add(i+"-s"),o&&(null==(l=o.classList)?void 0:l.contains(i+"-s"))){let n=(o.__childNodes||o.childNodes)[0],e=!1;for(;n;){if(n["s-sn"]!==t&&n["s-hn"]===r&&n["s-sr"]){e=!0;break}n=n.nextSibling}e||o.classList.remove(i+"-s")}}}var Dn=(t,n)=>{if(n&&!t.U&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.U=()=>{n["s-p"].splice(e-1,1),o()})))}},_n=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);Dn(t,t.D);const e=()=>Pn(t,n);if(!n)return Q(e);queueMicrotask((()=>{e()}))},Pn=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.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 s;return n?(t._&&(t._=!1,Yn(o,"connectedCallback",void 0,e)),t.u|=256,t.P&&(t.P.map((([t,n])=>Yn(o,t,n,e))),t.P=void 0),t.V.length&&t.V.forEach((t=>t(e))),s=Yn(o,"componentWillLoad",void 0,e)):s=Yn(o,"componentWillUpdate",void 0,e),s=Vn(s,(()=>Yn(o,"componentWillRender",void 0,e))),Vn(s,(()=>Hn(t,o,n)))},Vn=(t,n)=>Wn(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Wn=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Hn=async(t,n,e)=>{var o;const s=t.$hostElement$,l=s["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.u,s=Bt(e.shadowRoot?e.shadowRoot:e.getRootNode(),n,t.L);10&o&&(e["s-sc"]=s,e.classList.add(s+"-h"))})(t);zn(t,n,s,e),l&&(l.map((t=>t())),s["s-rc"]=void 0);{const n=null!=(o=s["s-p"])?o:[],e=()=>qn(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.u|=4,n.length=0)}},zn=(t,n,e,o)=>{try{n=n.render&&n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{var o,s,l,i,r;const c=t.$hostElement$,u=t.o,f=t.B||_t(null,null),a=(t=>t&&t.k===Pt)(n)?n:Dt(null,null,n);if(on=c.tagName,u.W&&(a.j=a.j||{},u.W.forEach((([t,n])=>{a.j[n]=c[t]}))),e&&a.j)for(const t of Object.keys(a.j))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.j[t]=c[t]);if(a.k=null,a.u|=4,t.B=a,a.C=f.C=c.shadowRoot||c,nn=c["s-sc"],gn=!(!(1&u.u)||128&u.u),en=c["s-cr"],yn=!1,In(f,a,e),D.u|=1,wn){Ln(a.C);for(const t of Tn){const n=t.A;if(!n["s-ol"]&&F.document){const t=F.document.createTextNode("");t["s-nr"]=n,Fn(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of Tn){const n=t.A,r=t.F;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),r){const t=r.parentNode;let o=r.nextSibling;if(o&&1===o.nodeType){let e=null==(s=n["s-ol"])?void 0:s.previousSibling;for(;e;){let s=null!=(l=e["s-nr"])?l:null;if(s&&s["s-sn"]===n["s-sn"]&&t===(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}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(Fn(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=F.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,Fn(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(i=n["s-ih"])&&i)}n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(n.hidden=!0)}}if(yn&&nt(a.C),D.u&=-2,Tn.length=0,!gn&&!(1&u.u)&&c["s-cr"]){const t=a.C.__childNodes||a.C.childNodes;for(const n of t)if(n["s-hn"]!==on&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(r=n.hidden)&&r),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=F.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],Fn(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}en=void 0,On.forEach((t=>t())),On.length=0,Nn.forEach((t=>t())),Nn.length=0})(t,n,o)}catch(n){E(n,t.$hostElement$)}return null},qn=t=>{const n=t.$hostElement$,e=t.i,o=t.D;Yn(e,"componentDidRender",void 0,n),64&t.u?Yn(e,"componentDidUpdate",void 0,n):(t.u|=64,Zn(n),Yn(e,"componentDidLoad",void 0,n),t.H(n),o||Gn()),t.q(n),t.U&&(t.U(),t.U=void 0),512&t.u&&Z((()=>_n(t,!1))),t.u&=-517},Jn=t=>{var n;{const e=N(t),o=null==(n=null==e?void 0:e.$hostElement$)?void 0:n.isConnected;return o&&2==(18&e.u)&&_n(e,!1),o}},Gn=()=>{var t;Z((()=>cn(F,"appload",{detail:{namespace:"ionic"}}))),(null==(t=D.J)?void 0:t.size)&&D.J.clear()},Yn=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){E(t,o)}},Zn=n=>{var e;return n.classList.add(null!=(e=t)?e:"hydrated")},Kn=(t,n)=>N(t).l.get(n),Qn=(t,n,e,o)=>{const s=N(t);if(!s)return;if(!s)throw Error(`Couldn't find host element for "${o.p}" 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).`);const l=s.$hostElement$,i=s.l.get(n),r=s.u,c=s.i;if(e=sn(e,o.t[n][0]),!(8&r&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e))){if(s.l.set(n,e),o.G){const t=o.G[n];t&&t.map((t=>{try{const[[o,l]]=Object.entries(t);(128&r||1&l)&&(c?c[o](e,i,n):s.V.push((()=>{s.i[o](e,i,n)})))}catch(t){E(t,l)}}))}if(2&r){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(e,i,n)&&!(16&r))return;16&r||_n(s,!1)}}},Xn=(t,n,e)=>{var o,s;const l=t.prototype;{t.watchers&&!n.G&&(n.G=Xt(t.watchers)),t.deserializers&&!n.Y&&(n.Y=t.deserializers),t.serializers&&!n.Z&&(n.Z=t.serializers);const i=Object.entries(null!=(o=n.t)?o:{});if(i.map((([t,[o]])=>{if(31&o||2&e&&32&o){const{get:s,set:i}=w(l,t)||{};s&&(n.t[t][0]|=2048),i&&(n.t[t][0]|=4096),(1&e||!s)&&Object.defineProperty(l,t,{get(){{if(!(2048&n.t[t][0]))return Kn(this,t);const e=N(this);return e?e.i?e.i[t]:Kn(this,t):l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(l,t,{set(s){const l=N(this);if(l){if(i)return void 0===(32&o?this[t]:l.$hostElement$[t])&&l.l.get(t)&&(s=l.l.get(t)),i.call(this,sn(s,o)),void Qn(this,t,s=32&o?this[t]:l.$hostElement$[t],n);{if(!(1&e&&4096&n.t[t][0]))return void Qn(this,t,s,n);const i=sn(s,o);if(l.i){const e=l.i[t];!l.l.get(t)&&e&&l.l.set(t,e),l.i[t]=i,Qn(this,t,l.i[t],n)}else l.l.set(t,i)}}}})}else 1&e&&64&o&&Object.defineProperty(l,t,{value(...n){var e;const o=N(this);return null==(e=null==o?void 0:o.K)?void 0:e.then((()=>{var e;return null==(e=o.i)?void 0:e[t](...n)}))}})})),1&e){const e=new Map;l.attributeChangedCallback=function(t,o,s){D.jmp((()=>{var r;const c=e.get(t),u=N(this);if(this.hasOwnProperty(c)&&(s=this[c],delete this[c]),l.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const e=null==u?void 0:u.u;if(u&&e&&!(8&e)&&s!==o){const l=u.i,i=null==(r=n.G)?void 0:r[t];null==i||i.forEach((n=>{const[[i,r]]=Object.entries(n);null!=l[i]&&(128&e||1&r)&&l[i].call(l,s,o,t)}))}return}const f=i.find((([t])=>t===c)),a=f?f[1][0]:0,d=4&a;if(512&a&&8&a&&!Ut(this[c])&&(t=>null==t||!1===t?null:!0===t?"":t+"")(this[c])===s)return;const h=d&&null===s&&void 0===this[c];d&&(s=null!==s&&"false"!==s);const v=Object.getOwnPropertyDescriptor(l,c);h||s==this[c]||v.get&&!v.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.G)?s:{}),...i.filter((([t,n])=>31&n[0])).map((([t,o])=>{var s;const l=o[1]||t;return e.set(l,t),512&o[0]&&(null==(s=n.W)||s.push([t,l])),l}))]))}}return t},te=async(t,n,e)=>{var o;let s;try{if(!(32&n.u)){if(n.u|=32,n.u&=-1025,e.X){const l=((t,n)=>{var e;const o=t.p.replace(/-/g,"_"),s=t.X;if(!s)return;const l=k.get(s);if(l)return l[o];const i=null!=(e=C.get(s))?e:0,r=[i>0?"s-retry="+i:"",""].filter(Boolean).join("&"); /*!__STENCIL_STATIC_IMPORT_SWITCH__*/ return import(`./${s}.entry.js${r?"?"+r:""}`).then((t=>(C.delete(s),k.set(s,t),t[o])),(t=>{C.set(s,i+1),E(t,n.$hostElement$)}))})(e,n);if(l&&"then"in l){const t=()=>{};s=await l,t()}else s=l;if(!s)throw n.u&=-33,n.tt=(null!=(o=n.tt)?o:0)+1,n.tt<3&&(n.u|=1024),Error(`Constructor for "${e.p}#${n.L}" was not found`);s.isProxied||(e.G=Xt(s.watchers),e.Z=s.serializers,e.Y=s.deserializers,Xn(s,e,2),s.isProxied=!0);const i=()=>{};n.u|=8;try{new s(n)}catch(n){E(n,t)}n.u&=-9,((t,n)=>{var e;const o=t.i;if(o)for(const[s,[l]]of Object.entries(null!=(e=n.t)?e:{}))if(4096&l&&t.l.has(s)){const n=t.l.get(s);o[s]!==n&&(o[s]=n)}})(n,e),n.u|=128,i(),4&e.u?n._=!0:ne(n.i,t)}else s=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(s&&s.style){let o;"string"==typeof s.style?o=s.style:"string"!=typeof s.style&&(n.L=(t=>R.map((n=>n(t))).find((t=>!!t)))(t),n.L&&(o=s.style[n.L]));const l=At(e,n.L);if(!M.has(l)){const t=()=>{};Lt(l,o,!!(1&e.u)),t()}}}const l=n.D,i=()=>_n(n,!0);l&&l["s-rc"]?l["s-rc"].push(i):i()}catch(e){E(e,t),n.U&&(n.U(),n.U=void 0),!n.H||1024&n.u||n.H(t)}},ne=(t,n)=>{Yn(t,"connectedCallback",void 0,n)},ee=t=>{if(!F.document)return;const n=t["s-cr"]=F.document.createComment("");n["s-cn"]=!0,Fn(t,n,t.firstChild)},oe=(t,n)=>{Yn(t,"disconnectedCallback",void 0,n||t)},se=(t,n={})=>{var e;if(!F.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],s=n.exclude||[],l=F.customElements,i=F.document.head,r=i.querySelector("meta[charset]"),c=F.document.createElement("style"),u=[];let f,a=!0;Object.assign(D,n),D.h=new URL(n.resourcesUrl||"./",F.document.baseURI).href,D.u|=2,(()=>{if(!F.document)return;const t=F.document.querySelectorAll(`[${T}]`);let n=0;for(;n<t.length;n++)Lt(t[n].getAttribute(T),Ft(t[n].innerHTML),!0)})();let d=!1;if(t.map((t=>{t[1].map((n=>{var e,i;const r={u:n[0],p:n[1],t:n[2],nt:n[3]};4&r.u&&(d=!0),r.t=n[2],r.nt=n[3],r.W=[],r.G=Xt(n[4]),r.Z=null!=(e=n[5])?e:{},r.Y=null!=(i=n[6])?i:{};const c=r.p,h=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,et:new Map};e.K=new Promise((t=>e.q=t)),e.ot=new Promise((t=>e.H=t)),t["s-p"]=[],t["s-rc"]=[],e.V=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else tt.call(t,r)}connectedCallback(){const t=N(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ie(this,t,r.nt)),f&&(clearTimeout(f),f=null),a?u.push(this):D.jmp((()=>(t=>{if(!(1&D.u)){const n=N(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.u)ie(t,n,e.nt),(null==n?void 0:n.i)?ne(n.i,t):1024&n.u?setTimeout((()=>te(t,n,e)),1e3):(null==n?void 0:n.ot)&&n.ot.then((()=>ne(n.i,t)));else{let o;if(n.u|=1,o=t.getAttribute(I),o){if(1&e.u){const n=Bt(t.shadowRoot,e,t.getAttribute("s-mode"));t.classList.remove(n+"-h",n+"-s")}else if(2&e.u){const n=At(e,t.getAttribute("s-mode"));t["s-sc"]=n}((t,n,e,o)=>{var s,l,i,r;const c=t.shadowRoot,u=[],f=[],a=[],d=c?[]:null,h=_t(n,null);let v;h.C=t;{const n=o.o;n&&10&n.u&&t["s-sc"]?(v=t["s-sc"],t.classList.add(v+"-h")):t["s-sc"]&&delete t["s-sc"]}!F.document||D.J&&D.J.size||qt(F.document.body,D.J=new Map),t[I]=e,t.removeAttribute(I),o.B=zt(h,u,f,d,t,t,e,a);let p=0;const b=u.length;let $;for(;p<b;p++){$=u[p];const e=$.M+"."+$.R,o=D.J.get(e),l=$.C;if(c){if((null==(s=$.k)?void 0:(""+s).includes("-"))&&"slot-fb"!==$.k&&!$.C.shadowRoot){const t=N($.C);if(t){const n=At(t.o,$.C.getAttribute("s-mode")),e=F.document.querySelector(`style[sty-id="${n}"]`);e&&d.unshift(e.cloneNode(!0))}}}else l["s-hn"]=n.toUpperCase(),"slot"===$.k&&(l["s-cr"]=t["s-cr"]);"slot"===$.k&&($.S=$.C["s-sn"]||$.C.name||null,$.O?($.u|=2,$.C.childNodes.length||$.O.forEach((t=>{$.C.appendChild(t.C)}))):$.u|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(l,o.nextSibling),o.parentNode.removeChild(o),c||(l["s-oo"]=parseInt($.R))),o&&!o["s-id"]&&D.J.delete(e)}const m=[],g=a.length;let y,w,j,O,S=0,x=0;for(;S<g;S++)if(y=a[S],y&&y.length)for(j=y.length,w=0;w<j;w++){if(O=y[w],m[O.hostId]||(m[O.hostId]=D.J.get(O.hostId)),!m[O.hostId])continue;const t=m[O.hostId];t.shadowRoot&&O.node.parentElement!==t&&t.insertBefore(O.node,null==(i=null==(l=y[w-1])?void 0:l.node)?void 0:i.nextSibling),t.shadowRoot&&c||(O.slot["s-cr"]||(O.slot["s-cr"]=t["s-cr"],O.slot["s-cr"]=!O.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),it(O.node,O.slot,!1,O.node["s-oo"]||x),(null==(r=O.node.parentElement)?void 0:r.shadowRoot)&&O.node.getAttribute&&O.node.getAttribute("slot")&&O.node.removeAttribute("slot"),jt(O.node)),x=(O.node["s-oo"]||x)+1}if(v&&f.length&&f.forEach((t=>{t.C.parentElement.classList.add(v+"-s")})),c&&!c.childNodes.length){let n=0;const e=d.length;if(e){for(;n<e;n++){const t=d[n];t&&c.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,e.p,o,n)}o||12&e.u&&ee(t);{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){Dn(n,n.D=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),te(t,n,e)}o()}})(this))))}disconnectedCallback(){D.jmp((()=>(async t=>{if(!(1&D.u)){const n=N(t);(null==n?void 0:n.st)&&(n.st.map((t=>t())),n.st=void 0),(null==n?void 0:n.i)?oe(n.i,t):(null==n?void 0:n.ot)&&n.ot.then((()=>oe(n.i,t)))}Tt.has(t)&&Tt.delete(t),t.shadowRoot&&Tt.has(t.shadowRoot)&&Tt.delete(t.shadowRoot)})(this))),Z((()=>{var t;const n=N(this);if(!n)return;const e=u.findIndex((t=>t===this));e>-1&&u.splice(e,1),(null==(t=null==n?void 0:n.B)?void 0:t.C)instanceof Node&&!n.B.C.isConnected&&delete n.B.C}))}componentOnReady(){var t;return null==(t=N(this))?void 0:t.ot}};!(1&r.u)&&256&r.u?(t=>{at(t),dt(t),pt(t),vt(t),gt(t),bt(t),$t(t),mt(t),yt(t),wt(t),ht(t)})(h.prototype):at(h.prototype),r.X=t[0],s.includes(c)||l.get(c)||(o.push(c),l.define(c,Xn(h,r,1)))}))})),o.length>0&&(d&&(c.textContent+=B),c.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(e=D.v)?e:It(F.document);null!=t&&c.setAttribute("nonce",t),i.insertBefore(c,r?r.nextSibling:i.firstChild)}a=!1,u.length?u.map((t=>t.connectedCallback())):D.jmp((()=>f=setTimeout(Gn,30)))},le=(t,n)=>n,ie=(t,n,e)=>{e&&F.document&&e.map((([e,o,s])=>{const l=ce(F.document,t,e),i=re(n,s),r=ue(e);D.ael(l,o,i,r),(n.st=n.st||[]).push((()=>D.rel(l,o,i,r)))}))},re=(t,n)=>e=>{var o;try{256&t.u?null==(o=t.i)||o[n](e):(t.P=t.P||[]).push([n,e])}catch(n){E(n,t.$hostElement$)}},ce=(t,n,e)=>4&e?t:8&e?F:16&e?t.body:n,ue=t=>({passive:!!(1&t),capture:!!(2&t)}),fe=t=>D.v=t;export{p as B,le as F,U as H,u as L,d as a,se as b,h as c,rn as d,K as e,Pt as f,ln as g,Dt as h,e as i,Jn as j,X as k,l,o as m,s as n,Qt as o,_ as p,Kt as q,S as r,fe as s,v as t,Q as w}