var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function f(r){try{o(t.next(r))}catch(r){a(r)}}function u(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(f,u)}o((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(r){return function(e){return o([r,e])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0){c.o=v}{c.v=a}{c.l=f}return c}));var F=function(r,e){var n={h:0,p:r,i:e,m:null,o:null};{n.u=null}{n.v=null}{n.l=null}return n};var M=r("f",{});var N=function(r){return r&&r.p===M};var E={forEach:function(r,e){return r.map(P).forEach(e)},map:function(r,e){return r.map(P).map(e).map(U)}};var P=function(r){return{vattrs:r.u,vchildren:r.o,vkey:r.v,vname:r.l,vtag:r.p,vtext:r.i}};var U=function(r){if(typeof r.vtag==="function"){var e=Object.assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return D.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=F(r.vtag,r.vtext);n.u=r.vattrs;n.o=r.vchildren;n.v=r.vkey;n.l=r.vname;return n};var W=function(r,e,n,t){var i=p("hydrateClient",e);var a=r.shadowRoot;var f=[];var u=[];var o=a?[]:null;var v=t.$=F(e,null);if(!ke._){B(Se.body,ke._=new Map)}r[g]=n;r.removeAttribute(g);I(v,f,u,o,r,r,n);f.map((function(r){var n=r.S+"."+r.k;var t=ke._.get(n);var i=r.m;if(t&&Oe&&t["s-en"]===""){t.parentNode.insertBefore(i,t.nextSibling)}if(!a){i["s-hn"]=e;if(t){i["s-ol"]=t;i["s-ol"]["s-nr"]=i}}ke._.delete(n)}));if(a){o.map((function(r){if(r){a.appendChild(r)}}))}i()};var I=function(r,e,n,t,i,a,f){var u;var o;var v;var l;if(a.nodeType===1){u=a.getAttribute(S);if(u){o=u.split(".");if(o[0]===f||o[0]==="0"){v={h:0,S:o[0],k:o[1],j:o[2],O:o[3],p:a.tagName.toLowerCase(),m:a,u:null,o:null,v:null,l:null,i:null};e.push(v);a.removeAttribute(S);if(!r.o){r.o=[]}r.o[v.O]=v;r=v;if(t&&v.j==="0"){t[v.O]=v.m}}}for(l=a.childNodes.length-1;l>=0;l--){I(r,e,n,t,i,a.childNodes[l],f)}if(a.shadowRoot){for(l=a.shadowRoot.childNodes.length-1;l>=0;l--){I(r,e,n,t,i,a.shadowRoot.childNodes[l],f)}}}else if(a.nodeType===8){o=a.nodeValue.split(".");if(o[1]===f||o[1]==="0"){u=o[0];v={h:0,S:o[1],k:o[2],j:o[3],O:o[4],m:a,u:null,o:null,v:null,l:null,p:null,i:null};if(u===w){v.m=a.nextSibling;if(v.m&&v.m.nodeType===3){v.i=v.m.textContent;e.push(v);a.remove();if(!r.o){r.o=[]}r.o[v.O]=v;if(t&&v.j==="0"){t[v.O]=v.m}}}else if(v.S===f){if(u===b){v.p="slot";if(o[5]){a["s-sn"]=v.l=o[5]}else{a["s-sn"]=""}a["s-sr"]=true;if(t){v.m=Se.createElement(v.p);if(v.l){v.m.setAttribute("name",v.l)}a.parentNode.insertBefore(v.m,a);a.remove();if(v.j==="0"){t[v.O]=v.m}}n.push(v);if(!r.o){r.o=[]}r.o[v.O]=v}else if(u===m){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.p==="style"){var s=F(null,a.textContent);s.m=a;s.O="0";r.o=[s]}};var B=function(r,e){if(r.nodeType===1){var n=0;for(;n=0;a--){var f=n[a];if(f["s-hn"]!==u&&f["s-ol"]){yr(f).insertBefore(f,pr(f));f["s-ol"].remove();f["s-ol"]=undefined;f["s-sh"]=undefined;l=true}if(e){lr(f,e)}}ke.h&=~1};var sr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var o;if(f.shadowRoot&&f.tagName===u){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){o=or(null,n,i,r);if(o){t[i].m=o;f.insertBefore(o,pr(e))}}}};var cr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.m;_r(i);if(a){{v=true;if(a["s-ol"]){a["s-ol"].remove()}else{lr(a,true)}}a.remove()}}}};var dr=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var v=e.length-1;var l=e[0];var s=e[v];var c=t.length-1;var d=t[0];var h=t[c];var p;var y;while(a<=v&&f<=c){if(l==null){l=e[++a]}else if(s==null){s=e[--v]}else if(d==null){d=t[++f]}else if(h==null){h=t[--c]}else if(hr(l,d,i)){mr(l,d,i);l=e[++a];d=t[++f]}else if(hr(s,h,i)){mr(s,h,i);s=e[--v];h=t[--c]}else if(hr(l,h,i)){if(l.p==="slot"||h.p==="slot"){lr(l.m.parentNode,false)}mr(l,h,i);r.insertBefore(l.m,s.m.nextSibling);l=e[++a];h=t[--c]}else if(hr(s,d,i)){if(l.p==="slot"||h.p==="slot"){lr(s.m.parentNode,false)}mr(s,d,i);r.insertBefore(s.m,l.m);s=e[--v];d=t[++f]}else{u=-1;{for(o=a;o<=v;++o){if(e[o]&&e[o].v!==null&&e[o].v===d.v){u=o;break}}}if(u>=0){y=e[u];if(y.p!==d.p){p=or(e&&e[f],n,u,r)}else{mr(y,d,i);e[u]=undefined;p=y.m}d=t[++f]}else{p=or(e&&e[f],n,f,r);d=t[++f]}if(p){{yr(l.m).insertBefore(p,pr(l.m))}}}}if(a>v){sr(r,t[c+1]==null?null:t[c+1].m,n,t,f,c)}else if(f>c){cr(e,a,v)}};var hr=function(r,e,n){if(n===void 0){n=false}if(r.p===e.p){if(r.p==="slot"){return r.l===e.l}if(!n){return r.v===e.v}return true}return false};var pr=function(r){return r&&r["s-ol"]||r};var yr=function(r){return(r["s-ol"]?r["s-ol"]:r).parentNode};var mr=function(r,e,n){if(n===void 0){n=false}var t=e.m=r.m;var i=r.o;var a=e.o;var f=e.p;var u=e.i;var v;if(u===null){{s=f==="svg"?true:f==="foreignObject"?false:s}{if(f==="slot"&&!o){if(r.l!==e.l){e.m["s-sn"]=e.l||"";vr(e.m.parentElement)}}else{ur(r,e,s)}}if(i!==null&&a!==null){dr(t,i,e,a,n)}else if(a!==null){if(r.i!==null){t.textContent=""}sr(t,null,e,a,0,a.length-1)}else if(i!==null){cr(i,0,i.length-1)}if(s&&f==="svg"){s=false}}else if(v=t["s-cr"]){v.parentNode.textContent=u}else if(r.i!==u){t.data=u}};var $r=function(r){var e=r.childNodes;for(var n=0,t=e;n=0;t--){o()}}if(f.nodeType===1){wr(f)}}};var gr=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var _r=function(r){{r.u&&r.u.ref&&r.u.ref(null);r.o&&r.o.map(_r)}};var Sr=function(r,e,n){if(n===void 0){n=false}var t,i,s,c,d;var h=r.$hostElement$;var p=r.T;var y=r.$||F(null,null);var m=N(e)?e:D(null,null,e);u=h.tagName;if(p.F){m.u=m.u||{};p.F.map((function(r){var e=r[0],n=r[1];return m.u[n]=h[e]}))}if(n&&m.u){for(var $=0,b=Object.keys(m.u);$0){if(y){v.textContent+=k}{v.textContent+=i+x}if(v.innerHTML.length){v.setAttribute("data-styles","");var m=(n=ke.A)!==null&&n!==void 0?n:R(Se);if(m!=null){v.setAttribute("nonce",m)}u.insertBefore(v,o?o.nextSibling:u.firstChild)}}d=false;if(l.length){l.map((function(r){return r.connectedCallback()}))}else{{ke.jmp((function(){return c=setTimeout(Dr,30)}))}}t()}));var ue=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=ve(r,t);var u=oe(e,a);var o=le(t);ke.ael(f,i,u,o);(e.J=e.J||[]).push((function(){return ke.rel(f,i,u,o)}))}))}};var oe=function(r,e){return function(n){try{{if(r.h&256){r.P[e](n)}else{(r.U=r.U||[]).push([e,n])}}}catch(r){me(r)}}};var ve=function(r,e){if(e&4)return Se;if(e&8)return _e;if(e&16)return Se.body;return r};var le=function(r){return Ce?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var se=r("s",(function(r){return ke.A=r}));var ce=new WeakMap;var de=function(r){return ce.get(r)};var he=r("r",(function(r,e){return ce.set(e.P=r,e)}));var pe=function(r,e){var n={h:0,$hostElement$:r,T:e,B:new Map};{n.G=new Promise((function(r){return n.I=r}))}{n.X=new Promise((function(r){return n.W=r}));r["s-p"]=[];r["s-rc"]=[]}ue(r,n,e.V);return ce.set(r,n)};var ye=function(r,e){return e in r};var me=function(r,e){return(0,console.error)(r,e)};var $e=new Map;var be=function(r,n,t){var i=r.L.replace(/-/g,"_");var a=r.K;var f=$e.get(a);if(f){return f[i]} /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{$e.set(a,r)}return r[i]}),me)};var we=new Map;var ge=[];var _e=typeof window!=="undefined"?window:{};var Se=_e.document||{head:{}};var xe=r("H",_e.HTMLElement||function(){function r(){}return r}());var ke={h:0,t:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var je=r("a",(function(r){Object.assign(ke,r)}));var Oe=true;var Ce=function(){var r=false;try{Se.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){r=true}}))}catch(r){}return r}();var Ae=r("p",(function(r){return Promise.resolve(r)}));var Te=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var Le=[];var Re=[];var De=function(r,e){return function(n){r.push(n);if(!c){c=true;if(e&&ke.h&4){Ne(Me)}else{ke.raf(Me)}}}};var Fe=function(r){for(var e=0;e0){ke.raf(Me)}}};var Ne=function(r){return Ae().then(r)};var Ee=r("e",De(Le,false));var Pe=r("w",De(Re,true))}}}));