let e,t,n=!1,l=!1;const o={},s=e=>"object"==(e=typeof e)||"function"===e;function c(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const i=(e,t,...n)=>{let l=null,o=!1,c=!1;const i=[],u=t=>{for(let n=0;ne[t])).join(" "))}const a=r(e,null);return a.l=t,i.length>0&&(a.o=i),a},r=(e,t)=>({i:0,u:e,t,h:null,o:null,l:null}),u={},a=e=>B(e).m,f=(e,t,n)=>{const l=a(e);return{emit:e=>d(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},d=(e,t,n)=>{const l=te.ce(t,n);return e.dispatchEvent(l),l},h=new WeakMap,m=e=>"sc-"+e.p,p=(e,t,n,l,o,c)=>{if(n!==l){let i=J(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,o=$(n),s=$(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const r=s(l);if((i||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&c||o)&&!r&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):J(Z,r)?r.slice(2):r[2]+t.slice(3),n&&te.rel(e,t,n,!1),l&&te.ael(e,t,l,!1)}},y=/\s/,$=e=>e?e.split(y):[],b=(e,t,n,l)=>{const s=11===t.h.nodeType&&t.h.host?t.h.host:t.h,c=e&&e.l||o,i=t.l||o;for(l in c)l in i||p(s,l,c[l],void 0,n,t.i);for(l in i)p(s,l,c[l],i[l],n,t.i)},w=(t,l,o)=>{const s=l.o[o];let c,i,r=0;if(null!==s.t)c=s.h=ee.createTextNode(s.t);else{if(n||(n="svg"===s.u),c=s.h=ee.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),n&&"foreignObject"===s.u&&(n=!1),b(null,s,n),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),s.o)for(r=0;r{let i,r=e;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=c;++s)o[s]&&(i=w(null,l,s),i&&(o[s].h=i,r.insertBefore(i,n)))},g=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.h;O(t),e&&e.remove()}}},j=(e,t)=>e.u===t.u,S=(e,t)=>{const l=t.h=e.h,o=e.o,s=t.o,c=t.u,i=t.t;null===i?(n="svg"===c||"foreignObject"!==c&&n,b(e,t,n),null!==o&&null!==s?((e,t,n,l)=>{let o,s=0,c=0,i=t.length-1,r=t[0],u=t[i],a=l.length-1,f=l[0],d=l[a];for(;s<=i&&c<=a;)null==r?r=t[++s]:null==u?u=t[--i]:null==f?f=l[++c]:null==d?d=l[--a]:j(r,f)?(S(r,f),r=t[++s],f=l[++c]):j(u,d)?(S(u,d),u=t[--i],d=l[--a]):j(r,d)?(S(r,d),e.insertBefore(r.h,u.h.nextSibling),r=t[++s],d=l[--a]):j(u,f)?(S(u,f),e.insertBefore(u.h,r.h),u=t[--i],f=l[++c]):(o=w(t&&t[c],n,c),f=l[++c],o&&r.h.parentNode.insertBefore(o,r.h));s>i?v(e,null==l[a+1]?null:l[a+1].h,n,l,c,a):c>a&&g(t,s,i)})(l,o,t,s):null!==s?(null!==e.t&&(l.textContent=""),v(l,null,t,s,0,s.length-1)):null!==o&&g(o,0,o.length-1),n&&"svg"===c&&(n=!1)):e.t!==i&&(l.data=i)},O=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(O)},M=(e,t)=>{t&&!e.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$=t)))},k=(e,t)=>{if(e.i|=16,!(4&e.i))return M(e,e.v),ae((()=>C(e,t)));e.i|=512},C=(e,t)=>{const n=e.g;return t&&(e.i|=256,e.j&&(e.j.map((([e,t])=>F(n,e,t))),e.j=void 0)),P(void 0,(()=>E(e,n,t)))},P=(e,t)=>x(e)?e.then(t):t(),x=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,E=async(e,t,n)=>{var l;const o=e.m,s=o["s-rc"];n&&(e=>{const t=e.S,n=e.m,l=t.i,o=((e,t)=>{var n;let l=m(t);const o=Y.get(l);if(e=11===e.nodeType?e:ee,o)if("string"==typeof o){let t,s=h.get(e=e.head||e);if(s||h.set(e,s=new Set),!s.has(l)){{t=ee.createElement("style"),t.innerHTML=o;const l=null!==(n=te.O)&&void 0!==n?n:c(ee);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);L(e,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],n=()=>N(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},L=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const o=n.m,s=n.M||r(null,null),c=(e=>e&&e.u===u)(l)?l:i(null,null,l);t=o.tagName,c.u=null,c.i|=4,n.M=c,c.h=s.h=o.shadowRoot||o,e=o["s-sc"],S(s,c)})(n,l)}catch(e){K(e,n.m)}return null},N=e=>{const t=e.m,n=e.g,l=e.v;64&e.i||(e.i|=64,H(t),F(n,"componentDidLoad"),e.k(t),l||A()),e.C(t),e.$&&(e.$(),e.$=void 0),512&e.i&&ue((()=>k(e,!1))),e.i&=-517},T=e=>{{const t=B(e),n=t.m.isConnected;return n&&2==(18&t.i)&&k(t,!1),n}},A=()=>{H(ee.documentElement),ue((()=>d(Z,"appload",{detail:{namespace:"ionicpwaelements"}})))},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){K(e)}},H=e=>e.classList.add("hydrated"),R=(e,t,n)=>{if(t.P){const l=Object.entries(t.P),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>B(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=B(e),c=o.L.get(t),i=o.i,r=o.g;n=((e,t)=>null==e||s(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.P[t][0]),8&i&&void 0!==c||n===c||Number.isNaN(c)&&Number.isNaN(n)||(o.L.set(t,n),r&&2==(18&i)&&k(o,!1))})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=B(this);return n.N.then((()=>n.g[e](...t)))}})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){te.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},U=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=Z.customElements,i=ee.head,r=i.querySelector("meta[charset]"),u=ee.createElement("style"),a=[];let f,d=!0;Object.assign(te,t),te.T=new URL(t.resourcesUrl||"./",ee.baseURI).href,e.map((e=>{e[1].map((t=>{const n={i:t[0],p:t[1],P:t[2],A:t[3]};n.P=t[2],n.A=t[3];const c=n.p,i=class extends HTMLElement{constructor(e){super(e),I(e=this,n),1&n.i&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):te.jmp((()=>(e=>{if(0==(1&te.i)){const t=B(e),n=t.S,l=()=>{};if(1&t.i)W(e,t,n.A);else{t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){M(t,t.v=n);break}}n.P&&Object.entries(n.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.i)){t.i|=32;{if((o=X(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(R(o,n,2),o.isProxied=!0);const e=()=>{};t.i|=8;try{new o(t)}catch(e){K(e)}t.i&=-9,e()}if(o.style){let e=o.style;const t=m(n);if(!Y.has(t)){const l=()=>{};((e,t,n)=>{let l=Y.get(e);le&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,Y.set(e,l)})(t,e,!!(1&n.i)),l()}}}const s=t.v,c=()=>k(t,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){te.jmp((()=>(()=>{if(0==(1&te.i)){const e=B(this),t=e.g;e.F&&(e.F.map((e=>e())),e.F=void 0),F(t,"disconnectedCallback")}})()))}componentOnReady(){return B(this).H}};n.R=e[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,R(i,n,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(n=te.O)&&void 0!==n?n:c(ee);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,r?r.nextSibling:i.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):te.jmp((()=>f=setTimeout(A,30)))},W=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=D(e,n),c=q(t,o),i=V(n);te.ael(s,l,c,i),(t.F=t.F||[]).push((()=>te.rel(s,l,c,i)))}))},q=(e,t)=>n=>{try{256&e.i?e.g[t](n):(e.j=e.j||[]).push([t,n])}catch(e){K(e)}},D=(e,t)=>16&t?ee.body:e,V=e=>0!=(2&e),_=e=>te.O=e,z=new WeakMap,B=e=>z.get(e),G=(e,t)=>z.set(t.g=e,t),I=(e,t)=>{const n={i:0,m:e,S:t,L:new Map};return n.N=new Promise((e=>n.C=e)),n.H=new Promise((e=>n.k=e)),e["s-p"]=[],e["s-rc"]=[],W(e,n,t.A),z.set(e,n)},J=(e,t)=>t in e,K=(e,t)=>(0,console.error)(e,t),Q=new Map,X=e=>{const t=e.p.replace(/-/g,"_"),n=e.R,l=Q.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(Q.set(n,e),e[t])),K) /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Y=new Map,Z="undefined"!=typeof window?window:{},ee=Z.document||{head:{}},te={i:0,T:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},ne=e=>Promise.resolve(e),le=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),oe=[],se=[],ce=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&te.i?ue(re):te.raf(re))},ie=e=>{for(let t=0;t{ie(oe),ie(se),(l=oe.length>0)&&te.raf(re)},ue=e=>ne().then(e),ae=ce(se,!0);export{u as H,U as b,f as c,T as f,a as g,i as h,ne as p,G as r,_ as s}