let e,t,n,o=0,s=!1,r=!1,i=!1,c=!1,a=!1;const l=window,f=document,u={t:0,o:"",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)},d=(()=>!!f.documentElement.attachShadow)(),p=(()=>{try{return new CSSStyleSheet,!0}catch(e){}return!1})(),m={},h=new WeakMap,g=e=>h.get(e),w=(e,t)=>h.set(t.s=e,t),$=(e,t)=>t in e,y=e=>console.error(e),b=new Map,v=new Map,k=[],j=[],_=[],O=(e,t)=>n=>{e.push(n),s||(s=!0,t&&4&u.t?C(S):u.raf(S))},R=(e,t)=>{let n=0,o=0;for(;n<e.length&&(o=performance.now())<t;)try{e[n++](o)}catch(e){y(e)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},S=()=>{o++,(e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){y(e)}e.length=0})(k);const e=2==(6&u.t)?performance.now()+10*Math.ceil(o*(1/22)):1/0;R(j,e),R(_,e),j.length>0&&(_.push(...j),j.length=0),(s=k.length+j.length+_.length>0)?u.raf(S):o=0},C=e=>Promise.resolve().then(e),T=O(k,!1),U=O(j,!0),M={},P=e=>null!=e,E=e=>e.toLowerCase(),N=e=>"object"==(e=typeof e)||"function"===e,x=()=>l.CSS&&l.CSS.supports&&l.CSS.supports("color","var(--c)")?Promise.resolve():__sc_import_app("./p-8178315f.js"),G=async()=>{const e=new RegExp("/app(\\.esm)?\\.js($|\\?|#)"),t=Array.from(f.querySelectorAll("script")).find(t=>e.test(t.src)||"app"===t.getAttribute("data-namespace")),n=t["data-opts"];{const e=new URL(".",new URL(t.getAttribute("data-resources-url")||t.src,l.location.href));return I(e.href),window.customElements||await __sc_import_app("./p-59290340.js"),Object.assign({},n,{resourcesUrl:e.href})}},I=e=>{const t=(()=>`__sc_import_${"app".replace(/\s|-/g,"_")}`)();try{l[t]=new Function("w",`return import(w);//${Math.random()}`)}catch(n){const o=new Map;l[t]=n=>{const s=new URL(n,e).href;let r=o.get(s);if(!r){const e=f.createElement("script");e.type="module",e.src=URL.createObjectURL(new Blob([`import * as m from '${s}'; window.${t}.m = m;`],{type:"application/javascript"})),r=new Promise(n=>{e.onload=()=>{n(l[t].m),e.remove()}}),o.set(s,r),f.head.appendChild(e)}return r}}},L="http://www.w3.org/1999/xlink",F=new WeakMap,D=(e,t)=>"sc-"+(t?e+"-"+t:e),W=(e,t,...n)=>{let o,s,r=null,i=!1,c=!1,a=[];const l=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?l(r):null!=r&&"boolean"!=typeof r&&((i="function"!=typeof e&&!N(r))&&(r=String(r)),i&&c?a[a.length-1].i+=r:a.push(i?{t:0,i:r}:r),c=i)};if(l(n),t){o=t.key||void 0,s=t.name;{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(t,a,A);const f={t:0,l:e,u:a.length>0?a:null,p:void 0,h:t};return f.g=o,f.$=s,f},q={},A={forEach:(e,t)=>e.map(B).forEach(t),map:(e,t)=>e.map(B).map(t).map(J)},B=e=>({vattrs:e.h,vchildren:e.u,vkey:e.g,vname:e.$,vtag:e.l,vtext:e.i}),J=e=>({t:0,h:e.vattrs,u:e.vchildren,g:e.vkey,$:e.vname,l:e.vtag,i:e.vtext}),H=(e,t,n,o,s,r)=>{if(n!==o)if("class"===t){const t=e.classList;z(n).forEach(e=>t.remove(e)),z(o).forEach(e=>t.add(e))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(t.startsWith("on")&&!$(e,t))t=$(e,E(t))?E(t.substring(2)):E(t[2])+t.substring(3),n&&u.rel(e,t,n,!1),o&&u.ael(e,t,o,!1);else{const n=$(e,t),i=N(o);if((n||i&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const n=null==o?"":o;e[t]!==n&&(e[t]=n)}}catch(e){}const c=!(!s||t===(t=t.replace(/^xlink\:?/,"")));null==o||!1===o?c?e.removeAttributeNS(L,E(t)):e.removeAttribute(t):(!n||4&r||s)&&!i&&(o=!0===o?"":o.toString(),c?e.setAttributeNS(L,E(t),o):e.setAttribute(t,o))}},z=e=>e?e.split(/\s+/).filter(e=>e):[],V=(e,t,n,o)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,r=e&&e.h||M,i=t.h||M;for(o in r)o in i||H(s,o,r[o],void 0,n,t.t);for(o in i)H(s,o,r[o],i[o],n,t.t)},X=(o,s,i,l)=>{let u,d,p,m=s.u[i],h=0;if(r||(c=!0,"slot"===m.l&&(e&&l.classList.add(e+"-s"),m.t|=m.u?2:1)),P(m.i))m.p=f.createTextNode(m.i);else if(1&m.t)m.p=f.createTextNode("");else{if(u=m.p=a||"svg"===m.l?f.createElementNS("http://www.w3.org/2000/svg",m.l):f.createElement(2&m.t?"slot-fb":m.l),V(null,m,a="svg"===m.l||"foreignObject"!==m.l&&a),P(e)&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),m.u)for(h=0;h<m.u.length;++h)(d=X(o,m,h,u))&&u.appendChild(d);"svg"===m.l?a=!1:"foreignObject"===m.p.tagName&&(a=!0)}return m.p["s-hn"]=n,3&m.t&&(m.p["s-sr"]=!0,m.p["s-cr"]=t,m.p["s-sn"]=m.$||"",(p=o&&o.u&&o.u[i])&&p.l===m.l&&o.p&&K(o.p,!1)),m.p},K=(e,t)=>{u.t|=1;const o=e.childNodes;for(let e=o.length-1;e>=0;e--){const s=o[e];s["s-hn"]!==n&&s["s-ol"]&&(te(s).insertBefore(s,ee(s)),s["s-ol"].remove(),s["s-ol"]=void 0,c=!0),t&&K(s,t)}u.t&=-2},Q=(e,t,o,s,r,i)=>{let c,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&E(a.tagName)===n&&(a=a.shadowRoot);r<=i;++r)s[r]&&(c=X(null,o,r,e))&&(s[r].p=c,a.insertBefore(c,ee(t)))},Y=(e,t,n,o)=>{for(;t<=n;++t)P(e[t])&&(o=e[t].p,ie(e[t],!0),i=!0,o["s-ol"]?o["s-ol"].remove():K(o,!0),o.remove())},Z=(e,t)=>e.l===t.l&&("slot"===e.l?e.$===t.$:e.g===t.g),ee=e=>e&&e["s-ol"]||e,te=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ne=(e,t)=>{const n=t.p=e.p,o=e.u,s=t.u;let r;a=n&&P(n.parentNode)&&void 0!==n.ownerSVGElement,a="svg"===t.l||"foreignObject"!==t.l&&a,P(t.i)?(r=n["s-cr"])?r.parentNode.textContent=t.i:e.i!==t.i&&(n.textContent=t.i):("slot"===t.l||V(e,t,a),P(o)&&P(s)?((e,t,n,o)=>{let s,r,i=0,c=0,a=0,l=0,f=t.length-1,u=t[0],d=t[f],p=o.length-1,m=o[0],h=o[p];for(;i<=f&&c<=p;)if(null==u)u=t[++i];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==h)h=o[--p];else if(Z(u,m))ne(u,m),u=t[++i],m=o[++c];else if(Z(d,h))ne(d,h),d=t[--f],h=o[--p];else if(Z(u,h))"slot"!==u.l&&"slot"!==h.l||K(u.p.parentNode,!1),ne(u,h),e.insertBefore(u.p,d.p.nextSibling),u=t[++i],h=o[--p];else if(Z(d,m))"slot"!==u.l&&"slot"!==h.l||K(d.p.parentNode,!1),ne(d,m),e.insertBefore(d.p,u.p),d=t[--f],m=o[++c];else{for(a=-1,l=i;l<=f;++l)if(t[l]&&P(t[l].g)&&t[l].g===m.g){a=l;break}a>=0?((r=t[a]).l!==m.l?s=X(t&&t[c],n,a,e):(ne(r,m),t[a]=void 0,s=r.p),m=o[++c]):(s=X(t&&t[c],n,c,e),m=o[++c]),s&&te(u.p).insertBefore(s,ee(u.p))}i>f?Q(e,null==o[p+1]?null:o[p+1].p,n,o,c,p):c>p&&Y(t,i,f)})(n,o,t,s):P(s)?(P(e.i)&&(n.textContent=""),Q(n,null,t,s,0,s.length-1)):P(o)&&Y(o,0,o.length-1)),a&&"svg"===t.l&&(a=!1)},oe=(e,t,n,o,s,r,i,c)=>{for(o=0,s=(n=e.childNodes).length;o<s;o++)if(1===(t=n[o]).nodeType){if(t["s-sr"])for(i=t["s-sn"],t.hidden=!1,r=0;r<s;r++)if(n[r]["s-hn"]!==t["s-hn"])if(c=n[r].nodeType,""!==i){if(1===c&&i===n[r].getAttribute("slot")){t.hidden=!0;break}}else if(1===c||3===c&&""!==n[r].textContent.trim()){t.hidden=!0;break}oe(t)}},se=[],re=e=>{let t,n,o,s,r=e.childNodes,c=r.length,a=0,l=0,f=0;for(c=r.length;a<c;a++){if((t=r[a])["s-sr"]&&(n=t["s-cr"]))for(s=t["s-sn"],l=(o=n.parentNode.childNodes).length-1;l>=0;l--)(n=o[l])["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||((3===(f=n.nodeType)||8===f)&&""===s||1===f&&null===n.getAttribute("slot")&&""===s||1===f&&n.getAttribute("slot")===s)&&(se.some(e=>e.v===n)||(i=!0,n["s-sn"]=s,se.push({k:t,v:n})));1===t.nodeType&&re(t)}},ie=(e,t)=>{e&&(e.h&&e.h.ref&&e.h.ref(t?null:e.p),e.u&&e.u.forEach(e=>{ie(e,t)}))},ce=(e,t,n,o)=>{t.t|=16;const s=t.s,r=()=>ae(e,t,n,s,o);let i;return o?(t.t|=256,t.j&&(t.j.forEach(([e,t])=>ue(s,e,t)),t.j=null),i=ue(s,"componentWillLoad")):i=ue(s,"componentWillUpdate"),i=de(i,()=>ue(s,"componentWillRender")),de(i,()=>U(r))},ae=(o,s,a,l,p)=>{s.t&=-17,o["s-lr"]=!1,p&&((e,t,n)=>{const o=((e,t,n)=>{let o=D(t._,n),s=v.get(o);if(e=11===e.nodeType?e:f,s||(o=D(t._),s=v.get(o)),s)if("string"==typeof s){let t,n=F.get(e=e.head||e);n||F.set(e,n=new Set),n.has(o)||((t=f.createElement("style")).innerHTML=s,e.insertBefore(t,e.querySelector("link")),n&&n.add(o))}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return o})(d&&e.shadowRoot?e.shadowRoot:e.getRootNode(),t,n);10&t.t&&(e["s-sc"]=o,e.classList.add(o+"-h"),2&t.t&&e.classList.add(o+"-s"))})(o,a,s.O),s.t|=4;try{((o,s,a,l)=>{n=E(o.tagName);const p=s.R||{t:0},m=(e=>e&&e.l===q)(l)?l:W(null,null,l);if(a.S&&(m.h=m.h||{},a.S.forEach(([e,t])=>m.h[t]=o[e])),m.l=null,m.t|=4,s.R=m,m.p=p.p=o.shadowRoot||o,e=o["s-sc"],t=o["s-cr"],r=d&&0!=(1&a.t),c=i=!1,ne(p,m),c){re(m.p);for(let e=0;e<se.length;e++){const t=se[e];if(!t.v["s-ol"]){const e=f.createTextNode("");e["s-nr"]=t.v,t.v.parentNode.insertBefore(t.v["s-ol"]=e,t.v)}}u.t|=1;for(let e=0;e<se.length;e++){const t=se[e],n=t.k.parentNode;let o=t.k.nextSibling,s=t.v["s-ol"];for(;s=s.previousSibling;){let e=s["s-nr"];if(e&&e["s-sn"]===t.v["s-sn"]&&n===e.parentNode&&(!(e=e.nextSibling)||!e["s-nr"])){o=e;break}}(!o&&n!==t.v.parentNode||t.v.nextSibling!==o)&&t.v!==o&&n.insertBefore(t.v,o)}u.t&=-2}i&&oe(m.p),se.length=0})(o,s,a,l.render&&l.render())}catch(e){y(e)}s.t&=-5,o["s-lr"]=!0,s.t|=2,o["s-rc"].length>0&&(o["s-rc"].forEach(e=>e()),o["s-rc"].length=0),le(o,s)},le=(e,t,n)=>{if(!e["s-al"]){const o=t.s,s=t.C;64&t.t?ue(o,"componentDidUpdate"):(t.t|=64,e.classList.add("hydrated"),ue(o,"componentDidLoad"),t.T(e),s||fe()),s&&((n=s["s-al"])&&(n.delete(e),0===n.size&&(s["s-al"]=void 0,s["s-init"]())),t.C=void 0)}},fe=()=>{f.documentElement.classList.add("hydrated"),u.t|=2},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){y(e)}},de=(e,t)=>e&&e.then?e.then(t):t(),pe=(e,t,n)=>{if(t.U){e.watchers&&(t.M=e.watchers);const o=Object.entries(t.U),s=e.prototype;if(o.forEach(([e,[o]])=>{31&o||2&n&&32&o?Object.defineProperty(s,e,{get(){return((e,t)=>g(e).P.get(t))(this,e)},set(n){((e,t,n,o)=>{const s=g(this),r=s.N,i=s.P.get(t),c=s.t;if(!((n=((e,t)=>null==e||N(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?String(e):e)(n,o.U[t][0]))===i||8&c&&void 0!==i)&&(s.P.set(t,n),s.s)){if(o.M&&128&c){const e=o.M[t];e&&e.forEach(e=>{try{s.s[e].call(s.s,n,i,t)}catch(e){y(e)}})}2==(22&c)&&ce(r,s,o,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&o&&Object.defineProperty(s,e,{value(...t){const n=g(this);return n.G.then(()=>n.s[e](...t))}})}),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,o){u.jmp(()=>{const t=n.get(e);this[t]=(null!==o||"boolean"!=typeof this[t])&&o})},e.observedAttributes=o.filter(([e,t])=>15&t[0]).map(([e,o])=>{const s=o[1]||e;return n.set(s,e),512&o[0]&&t.S.push([e,s]),s})}}return e},me=[],he=e=>me.push(e),ge=e=>g(e).O,we=e=>{ue(e,"connectedCallback")},$e=(e,t)=>{(t=e["s-cr"]=f.createComment(""))["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ye=(e,t={})=>{const n=[],o=t.exclude||[],s=f.head,r=l.customElements,i=s.querySelector("meta[charset]"),c=f.createElement("style");let a;Object.assign(u,t),u.o=new URL(t.resourcesUrl||"./",f.baseURI).href,t.syncQueue&&(u.t|=4),e.forEach(e=>e[1].forEach(t=>{const s={t:t[0],_:t[1],U:t[2],I:t[3],S:[],M:{}};!d&&1&s.t&&(s.t|=8);const i=s._;s.L=e[0],o.includes(i)||r.get(i)||(n.push(i),r.define(i,pe(class extends HTMLElement{constructor(e){super(e),e=this,this["s-lr"]=!1,this["s-rc"]=[],(e=>{{const t={t:0,N:e,P:new Map};t.G=new Promise(e=>t.T=e),h.set(e,t)}})(e),1&s.t&&(d?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){a&&(clearTimeout(a),a=null),u.jmp(()=>((e,t)=>{if(0==(1&u.t)){const n=g(e);if(t.I&&(n.F=((e,t,n)=>{t.j=t.j||[];const o=n.map(([n,o,s])=>{const r=((e,t)=>4&t?f:8&t?l:32&t?f.body:16&t?e.parentElement:e)(e,n),i=((e,t)=>n=>{256&e.t?e.s[t](n):e.j.push([t,n])})(t,s),c=(e=>({passive:0!=(1&e),capture:0!=(2&e)}))(n);return u.ael(r,o,i,c),()=>u.rel(r,o,i,c)});return()=>o.forEach(e=>e())})(e,n,t.I)),!(1&n.t)){let o;n.t|=1,o||(4&t.t||8&t.t)&&$e(e);{let t=e;for(;t=t.parentNode||t.host;)if(t["s-init"]&&!1===t["s-lr"]){n.C=t,(t["s-al"]=t["s-al"]||new Set).add(e);break}}t.U&&Object.entries(t.U).forEach(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),C(()=>(async(e,t,n,o,s)=>{if(0==(32&t.t)){t.t|=32,null==t.O&&(t.O="string"!=typeof n.L?(e=>me.map(t=>t(e)).find(e=>!!e))(e):""),(s=((e,t)=>{const n=e._.replace(/-/g,"_"),o="string"!=typeof e.L?e.L[t.O]:e.L,s=b.get(o);return s?s[n]:__sc_import_app(`./${o}.entry.js`).then(e=>(b.set(o,e),e[n]),y)})(n,t)).then&&(s=await s),s.isProxied||(n.M=s.watchers,pe(s,n,2),s.isProxied=!0),t.t|=8;try{new s(t)}catch(e){y(e)}t.t&=-9,t.t|=128,we(t.s);const o=D(n._,t.O);if(!v.has(o)&&s.style){let e=s.style;"string"!=typeof e&&(e=e[t.O]),8&n.t&&(e=await __sc_import_app("./p-c68d0961.js").then(t=>t.scopeCss(e,o,!1))),((e,t,n)=>{let o=v.get(e);p&&n?(o=o||new CSSStyleSheet).replace(t):o=t,v.set(e,o)})(o,e,!!(1&n.t))}}const r=t.C,i=()=>ce(e,t,n,!0);r&&!1===r["s-lr"]&&r["s-rc"]?r["s-rc"].push(i):i()})(e,n,t))}we(n.s)}})(this,s))}disconnectedCallback(){u.jmp(()=>(()=>{if(0==(1&u.t)){const e=g(this),t=e.s;e.F&&(e.F(),e.F=void 0),ue(t,"disconnectedCallback"),ue(t,"componentDidUnload")}})())}"s-init"(){const e=g(this);e.s&&le(this,e)}"s-hmr"(e){}forceUpdate(){((e,t)=>{{const n=g(e);2&n.t&&ce(e,n,t,!1)}})(this,s)}componentOnReady(){return g(this).G}},s,1)))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),s.insertBefore(c,i?i.nextSibling:s.firstChild),u.jmp(()=>a=setTimeout(fe,30))},be=(e,t,n)=>{const o=_e(e);return{emit:e=>o.dispatchEvent(new CustomEvent(t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},ve=e=>{const t=new URL(e,u.o);return t.origin!==l.location.origin?t.href:t.pathname},ke=(e,t)=>{const n=()=>{let e=f.querySelector(t);return e||(e=f.createElement(t),f.body.appendChild(e)),"function"==typeof e.componentOnReady?e.componentOnReady():Promise.resolve(e)};return{create:(...e)=>n().then(t=>t.create(...e)),componentOnReady:n}},je=(e,t)=>t in m?m[t]:"window"===t?l:"document"===t?f:"isServer"!==t&&"isPrerender"!==t&&("isClient"===t||("resourcesUrl"===t||"publicPath"===t?ve("."):"queue"===t?{write:U,read:T,tick:{then:e=>C(e)}}:void 0)),_e=e=>g(e).N;m.ApiService=new class{constructor(){this.api_url="https://5degyxu0v5.execute-api.us-east-1.amazonaws.com/dev/"}formSubmit(e={}){return console.log(e),this.request("POST","formdata-trigger",e)}setCSRFToken(){this.request("GET","csrf-token").then(e=>{if(e.ok)return e.json();console.log("Error getting csrf token")}).then(e=>{this.setCookie("_csrf",e,1)})}getMediaFromGalleryId(e){return this.request("GET","gallery-media",{galleryId:e})}getNews(e="",t="",n=4,o=""){return this.request("GET","news",{prefix:e,tag:t,limit:n,category:o})}getWork(e="",t=4,n=""){return this.request("GET","work",{prefix:e,limit:t,category:n})}getBlock(e){return this.request("GET","block",{path:e})}getNav(e){return this.request("GET","nav",{path:e})}getPageData(e){return this.request("GET","page-data",{path:e})}request(e="GET",t,n={}){let o=t,s={};"GET"==e&&(n!={}&&(o+="?"+Object.keys(n).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(n[e])).join("&")),s={}),"POST"==e&&(s={method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json","X-CSRF-Token":this.getCookie("_csrf")}});var r=new Request(this.api_url+o,s);return window.fetch(r)}prefetchPageData(){return window.fetch(this.api_url+"page-prefetch",{mode:"cors"})}getCookie(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),o=0;o<n.length;o++){for(var s=n[o];" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(t))return s.substring(t.length,s.length)}return""}setCookie(e,t,n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var s="expires="+o.toUTCString();document.cookie=e+"="+t+";"+s+";path=/"}},m.PagePrefetch={},m.ApiService.prefetchPageData().then(e=>{if(e.ok)return e.json();console.log("Error getting page data from endpoint",(void 0).dataPath)}).then(e=>{m.PagePrefetch=e});const Oe=(e,t)=>("string"==typeof e&&(t=e,e=void 0),(e=>Re(e))(e).includes(t)),Re=(e=window)=>{e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=Se(e)).forEach(t=>e.document.documentElement.classList.add(`plt-${t}`)),t},Se=e=>Object.keys(Ge).filter(t=>Ge[t](e)),Ce=e=>Ne(e,/iPad/i),Te=e=>Ne(e,/android|sink/i),Ue=e=>xe(e,"(any-pointer:coarse)"),Me=e=>Pe(e)||Ee(e),Pe=e=>!!(e.cordova||e.phonegap||e.PhoneGap),Ee=e=>{const t=e.Capacitor;return!(!t||!t.isNative)},Ne=(e,t)=>t.test(e.navigator.userAgent),xe=(e,t)=>e.matchMedia(t).matches,Ge={ipad:Ce,iphone:e=>Ne(e,/iPhone/i),ios:e=>Ne(e,/iPad|iPhone|iPod/i),android:Te,phablet:e=>{const t=e.innerWidth,n=e.innerHeight,o=Math.min(t,n),s=Math.max(t,n);return o>390&&o<520&&s>620&&s<800},tablet:e=>{const t=e.innerWidth,n=e.innerHeight,o=Math.min(t,n),s=Math.max(t,n);return Ce(e)||(e=>Te(e)&&!Ne(e,/mobile/i))(e)||o>460&&o<820&&s>780&&s<1400},cordova:Pe,capacitor:Ee,electron:e=>Ne(e,/electron/i),pwa:e=>!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone),mobile:Ue,mobileweb:e=>Ue(e)&&!Me(e),desktop:e=>!Ue(e),hybrid:Me};class Ie{constructor(){this.m=new Map}reset(e){this.m=new Map(Object.entries(e))}get(e,t){const n=this.m.get(e);return void 0!==n?n:t}getBoolean(e,t=!1){const n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}getNumber(e,t){const n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}set(e,t){this.m.set(e,t)}}const Le=new Ie;let Fe;const De=e=>e&&ge(e)||Fe,We=()=>{(()=>{const e=document,t=window;m.config=Le;const n=t.Ionic=t.Ionic||{};Re(t);const o=Object.assign({},(e=>{try{const t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(e){return{}}})(t),{persistConfig:!1},n.config,(e=>{const t={};return e.location.search.slice(1).split("&").map(e=>e.split("=")).map(([e,t])=>[decodeURIComponent(e),decodeURIComponent(t)]).filter(([e])=>(e=>"ionic:"===e.substr(0,"ionic:".length))(e)).map(([e,t])=>[e.slice("ionic:".length),t]).forEach(([e,n])=>{t[e]=n}),t})(t));Le.reset(o),Le.getBoolean("persistConfig")&&((e,t)=>{try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(e){return}})(t,o),n.config=Le,n.mode=Fe=Le.get("mode",e.documentElement.getAttribute("mode")||(Oe(t,"ios")?"ios":"md")),Le.set("mode",Fe),e.documentElement.setAttribute("mode",Fe),e.documentElement.classList.add(Fe),Le.getBoolean("_testing")&&Le.set("animated",!1),he(e=>e.mode=e.mode||e.getAttribute("mode")||Fe)})(),he(e=>"ION-ICON"===e.tagName?e.mode||e.getAttribute("mode"):null)};export{q as H,x as a,ye as b,ke as c,De as d,Le as e,_e as f,We as g,W as h,Oe as i,be as j,je as k,T as l,ve as m,ge as n,G as p,w as r,U as w};