UNPKG

@kelvininc/ui-components

Version:
2 lines 20.5 kB
var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},o=(t,e)=>e in t,l=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r=[],c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",f="undefined"!=typeof window?window:{},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},d=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),h=!1,v=[],m=[],y=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&a.o?$(b):a.raf(b))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},b=()=>{w(v),w(m),(h=v.length>0)&&a.raf(b)},$=t=>d().then(t),g=y(m,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>C,unwrapErr:()=>x});var k=t=>({isOk:!0,isErr:!1,value:t}),O=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>k(t))):k(n)}if(t.isErr)return O(t.value);throw"should never get here"}var C=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},M=t=>{const e=F(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&N(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!P(t,T(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&F(t,"childNodes").length&&M(t)}};function N(t,e,n){let o,l=0,s=[];for(;l<t.length;l++)o=t[l],!o["s-sr"]||e&&o["s-hn"]!==e||void 0!==n||s.push(o),s=[...s,...N(o.childNodes,e,n)];return s}var P=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)T(l)!==e||!n&&l["s-sr"]||o.push(l);return o},R=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,T=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function F(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var L,A,D=(t,e,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!S(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?U(null,o):o),r=i)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,_);const f=U(t,null);return f.u=e,c.length>0&&(f.p=c),f.h=l,f.v=s,f},U=(t,e)=>({o:0,m:t,i:e,$:null,p:null,u:null,h:null,v:null}),W={},_={forEach:(t,e)=>t.map(H).forEach(e),map:(t,e)=>t.map(H).map(e).map(B)},H=t=>({vattrs:t.u,vchildren:t.p,vkey:t.h,vname:t.v,vtag:t.m,vtext:t.i}),B=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),D(t.vtag,e,...t.vchildren||[])}const e=U(t.vtag,t.vtext);return e.u=t.vattrs,e.p=t.vchildren,e.h=t.vkey,e.v=t.vname,e},z=t=>r.push(t),I=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,V=t=>e(t).$hostElement$,Y=(t,e,n)=>{const o=V(t);return{emit:t=>q(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},q=(t,e,n)=>{const o=a.ce(e,n);return t.dispatchEvent(o),o},G=new WeakMap,J=(t,e)=>"sc-"+(e&&32&t.o?t.S+"-"+e:t.S),K=(t,e,n,l,s,i)=>{if(n===l)return;let r=o(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=X(n);let s=X(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(t);else if(r||"o"!==e[0]||"n"!==e[1]){const o=S(l);if((r||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(u,e):t.removeAttribute(e)):(!r||4&i||s)&&!o&&1===t.nodeType&&(l=!0===l?"":l,f?t.setAttributeNS(u,e,l):t.setAttribute(e,l))}else if(e="-"===e[2]?e.slice(3):o(f,c)?c.slice(2):c[2]+e.slice(3),n||l){const o=e.endsWith(Z);e=e.replace(tt,""),n&&a.rel(t,e,n,o),l&&a.ael(t,e,l,o)}},Q=/\s/,X=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Q):[]),Z="Capture",tt=RegExp(Z+"$"),et=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||{},s=e.u||{};for(const t of nt(Object.keys(l)))t in s||K(o,t,l[t],void 0,n,e.o);for(const t of nt(Object.keys(s)))K(o,t,l[t],s[t],n,e.o)};function nt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ot=!1,lt=!1,st=!1,it=!1,rt=(t,e,n)=>{var o;const l=e.p[n];let s,i,r,c=0;if(ot||(st=!0,"slot"===l.m&&(l.o|=l.p?2:1)),null!==l.i)s=l.$=f.document.createTextNode(l.i);else if(1&l.o)s=l.$=f.document.createTextNode(""),et(null,l,it);else{if(it||(it="svg"===l.m),!f.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(s=l.$=f.document.createElementNS(it?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ot&&2&l.o?"slot-fb":l.m),it&&"foreignObject"===l.m&&(it=!1),et(null,l,it),l.p)for(c=0;c<l.p.length;++c)i=rt(t,l,c),i&&s.appendChild(i);"svg"===l.m?it=!1:"foreignObject"===s.tagName&&(it=!0)}return s["s-hn"]=A,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=L,s["s-sn"]=l.v||"",s["s-rf"]=null==(o=l.u)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],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 l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e})(l.childNodes)).forEach((t=>{o===T(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(s),r=t&&t.p&&t.p[n],r&&r.m===l.m&&t.$&&ct(t.$,!1)),s},ct=(t,e)=>{a.o|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==A&&o["s-ol"]&&(yt(dt(o).parentNode,o,dt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,st=!0),e&&ct(o,e)}a.o&=-2},ut=(t,e,n,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===A&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=rt(null,n,l),i&&(o[l].$=i,yt(r,i,dt(e))))},ft=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;mt(e),t&&(lt=!0,t["s-ol"]?t["s-ol"].remove():ct(t,!0),t.remove())}}},at=(t,e,n=!1)=>t.m===e.m&&("slot"===t.m?t.v===e.v:n?(n&&!t.h&&e.h&&(t.h=e.h),!0):t.h===e.h),dt=t=>t&&t["s-ol"]||t,pt=(t,e,n=!1)=>{const o=e.$=t.$,l=t.p,s=e.p,i=e.m,r=e.i;let c;null===r?(et(t,e,it="svg"===i||"foreignObject"!==i&&it),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],p=e[a],h=o.length-1,v=o[0],m=o[h];for(;r<=a&&c<=h;)if(null==d)d=e[++r];else if(null==p)p=e[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--h];else if(at(d,v,l))pt(d,v,l),d=e[++r],v=o[++c];else if(at(p,m,l))pt(p,m,l),p=e[--a],m=o[--h];else if(at(d,m,l))"slot"!==d.m&&"slot"!==m.m||ct(d.$.parentNode,!1),pt(d,m,l),yt(t,d.$,p.$.nextSibling),d=e[++r],m=o[--h];else if(at(p,v,l))"slot"!==d.m&&"slot"!==m.m||ct(p.$.parentNode,!1),pt(p,v,l),yt(t,p.$,d.$),p=e[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].h&&e[f].h===v.h){u=f;break}u>=0?(i=e[u],i.m!==v.m?s=rt(e&&e[c],n,u):(pt(i,v,l),e[u]=void 0,s=i.$),v=o[++c]):(s=rt(e&&e[c],n,c),v=o[++c]),s&&yt(dt(d.$).parentNode,s,dt(d.$))}r>a?ut(t,null==o[h+1]?null:o[h+1].$,n,o,c,h):c>h&&ft(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),ut(o,null,e,s,0,s.length-1)):!n&&null!==l&&ft(l,0,l.length-1),it&&"svg"===i&&(it=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.i!==r&&(o.data=r)},ht=[],vt=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(R(e,l)){let n=ht.find((t=>t.j===e));lt=!0,e["s-sn"]=e["s-sn"]||l,n?(n.j["s-sh"]=t["s-hn"],n.k=t):(e["s-sh"]=t["s-hn"],ht.push({k:t,j:e})),e["s-sr"]&&ht.map((t=>{R(t.j,e["s-sn"])&&(n=ht.find((t=>t.j===e)),n&&!t.k&&(t.k=n.k))}))}else ht.some((t=>t.j===e))||ht.push({j:e})}1===t.nodeType&&vt(t)}},mt=t=>{t.u&&t.u.ref&&t.u.ref(null),t.p&&t.p.map(mt)},yt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),wt=(t,e)=>{if(e&&!t.O&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.O=()=>{e["s-p"].splice(n-1,1),o()})))}},bt=(t,e)=>{if(t.o|=16,!(4&t.o))return wt(t,t.C),g((()=>$t(t,e)));t.o|=512},$t=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.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 l;return e?(t.o|=256,t.M&&(t.M.map((([t,e])=>Ct(o,t,e,n))),t.M=void 0),l=Ct(o,"componentWillLoad",void 0,n)):l=Ct(o,"componentWillUpdate",void 0,n),l=gt(l,(()=>Ct(o,"componentWillRender",void 0,n))),gt(l,(()=>jt(t,o,e)))},gt=(t,e)=>St(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),St=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,jt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.N,n=t.$hostElement$,o=e.o,l=((t,e,n)=>{var o;const l=J(e,n),s=i.get(l);if(!f.document)return l;if(t=11===t.nodeType?t:f.document,s)if("string"==typeof s){let n,i=G.get(t=t.head||t);if(i||G.set(t,i=new Set),!i.has(l)){{n=document.querySelector(`[sty-id="${l}"]`)||f.document.createElement("style"),n.innerHTML=s;const i=null!=(o=a.P)?o:j(f.document);if(null!=i&&n.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),o=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(n,(null==o?void 0:o.parentNode)===t?o:null)}else if("host"in t)if(p){const e=new CSSStyleSheet;e.replaceSync(s),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=s+e.innerHTML:t.prepend(n)}else t.append(n);1&e.o&&t.insertBefore(n,null)}4&e.o&&(n.innerHTML+=c),i&&i.add(l)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e,t.R);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);kt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Ot(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},kt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,i;const r=t.$hostElement$,c=t.N,u=t.T||U(null,null),d=(t=>t&&t.m===W)(e)?e:D(null,null,e);if(A=r.tagName,c.F&&(d.u=d.u||{},c.F.map((([t,e])=>d.u[e]=r[t]))),n&&d.u)for(const t of Object.keys(d.u))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.u[t]=r[t]);if(d.m=null,d.o|=4,t.T=d,d.$=u.$=r.shadowRoot||r,ot=!(!(1&c.o)||128&c.o),L=r["s-cr"],lt=!1,pt(u,d,n),a.o|=1,st){vt(d.$);for(const t of ht){const e=t.j;if(!e["s-ol"]&&f.document){const t=f.document.createTextNode("");t["s-nr"]=e,yt(e.parentNode,e["s-ol"]=t,e)}}for(const t of ht){const e=t.j,r=t.k;if(r){const t=r.parentNode;let n=r.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),yt(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}lt&&M(d.$),a.o&=-2,ht.length=0,L=void 0})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},Ot=t=>{const e=t.$hostElement$,n=t.t,o=t.C;Ct(n,"componentDidRender",void 0,e),64&t.o?Ct(n,"componentDidUpdate",void 0,e):(t.o|=64,xt(e),Ct(n,"componentDidLoad",void 0,e),t.L(e),o||Et()),t.A(e),t.O&&(t.O(),t.O=void 0),512&t.o&&$((()=>bt(t,!1))),t.o&=-517},Et=()=>{$((()=>q(f,"appload",{detail:{namespace:"peacock-ui"}})))},Ct=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},xt=t=>t.classList.add("hydrated"),Mt=(t,n,o,s)=>{const i=e(t);if(!i)throw Error(`Couldn't find host element for "${s.S}" 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 r=i.$hostElement$,c=i.D.get(n),u=i.o,f=i.t;if(o=I(o,s.U[n][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.D.set(n,o),f)){if(s.W&&128&u){const t=s.W[n];t&&t.map((t=>{try{f[t](o,c,n)}catch(t){l(t,r)}}))}if(2==(18&u)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(o,c,n))return;bt(i,!1)}}},Nt=(t,n,o)=>{var l,s;const i=t.prototype;if(n.U||n.W||t.watchers){t.watchers&&!n.W&&(n.W=t.watchers);const r=Object.entries(null!=(l=n.U)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(n.U[t][0]|=2048),r&&(n.U[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.U[t][0]))return((t,n)=>e(this).D.get(n))(0,t);const o=e(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=e(this);if(r){const e=32&l?this[t]:i.$hostElement$[t];return void 0===e&&i.D.get(t)?s=i.D.get(t):!i.D.get(t)&&e&&i.D.set(t,e),r.call(this,I(s,l)),void Mt(this,t,s=32&l?this[t]:i.$hostElement$[t],n)}{if(!(1&o&&4096&n.U[t][0]))return Mt(this,t,s,n),void(1&o&&!i.t&&i._.then((()=>{4096&n.U[t][0]&&i.t[t]!==i.D.get(t)&&(i.t[t]=s)})));const e=()=>{const e=i.t[t];!i.D.get(t)&&e&&i.D.set(t,e),i.t[t]=I(s,l),Mt(this,t,i.t[t],n)};i.t?e():i._.then((()=>e()))}}})}else 1&o&&64&l&&Object.defineProperty(i,t,{value(...n){var o;const l=e(this);return null==(o=null==l?void 0:l.H)?void 0:o.then((()=>{var e;return null==(e=l.t)?void 0:e[t](...n)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=e(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const e=o.t,i=null==(r=n.W)?void 0:r[t];null==i||i.forEach((n=>{null!=e[n]&&e[n].call(e,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.W)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{var l;const s=e[1]||t;return o.set(s,t),512&e[0]&&(null==(l=n.F)||l.push([t,s])),s}))]))}}return t},Pt=(t,e)=>{Ct(t,"connectedCallback",void 0,e)},Rt=(t,e)=>{Ct(t,"disconnectedCallback",void 0,e||t)},Tt=(t,n={})=>{var o;if(!f.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const u=[],d=n.exclude||[],h=f.customElements,v=f.document.head,m=v.querySelector("meta[charset]"),y=f.document.createElement("style"),w=[];let b,$=!0;Object.assign(a,n),a.l=new URL(n.resourcesUrl||"./",f.document.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((n=>{var o;const c={o:n[0],S:n[1],U:n[2],B:n[3]};4&c.o&&(g=!0),c.U=n[2],c.B=n[3],c.F=[],c.W=null!=(o=n[4])?o:{};const v=c.S,m=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,N:e,D:new Map};n.H=new Promise((t=>n.A=t)),n._=new Promise((t=>n.L=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=e(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Lt(this,t,c.B)),b&&(clearTimeout(b),b=null),$?w.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const n=e(t),o=n.N,c=()=>{};if(1&n.o)Lt(t,n,o.B),(null==n?void 0:n.t)?Pt(n.t,t):(null==n?void 0:n._)&&n._.then((()=>Pt(n.t,t)));else{n.o|=1,12&o.o&&(t=>{if(!f.document)return;const e=t["s-cr"]=f.document.createComment("");e["s-cn"]=!0,yt(t,e,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){wt(n,n.C=e);break}}o.U&&Object.entries(o.U).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.I){const i=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.I;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)})) /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.S}#${e.R}" was not found`);o.isProxied||(n.W=o.watchers,Nt(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,e.o|=128,r(),Pt(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let l;"string"==typeof o.style?l=o.style:"string"!=typeof o.style&&(e.R=(t=>r.map((e=>e(t))).find((t=>!!t)))(t),e.R&&(l=o.style[e.R]));const s=J(n,e.R);if(!i.has(s)){const t=()=>{};((t,e,n)=>{let o=i.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(s,l,!!(1&n.o)),t()}}}const c=e.C,u=()=>bt(e,!0);c&&c["s-rc"]?c["s-rc"].push(u):u()})(t,n,o)}c()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const n=e(t);n.V&&(n.V.map((t=>t())),n.V=void 0),(null==n?void 0:n.t)?Rt(n.t,t):(null==n?void 0:n._)&&n._.then((()=>Rt(n.t,t)))}G.has(t)&&G.delete(t),t.shadowRoot&&G.has(t.shadowRoot)&&G.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const n=e(this),o=w.findIndex((t=>t===this));o>-1&&w.splice(o,1),(null==(t=null==n?void 0:n.T)?void 0:t.$)instanceof Node&&!n.T.$.isConnected&&delete n.T.$}))}componentOnReady(){return e(this)._}};c.I=t[0],d.includes(v)||h.get(v)||(u.push(v),h.define(v,Nt(m,c,1)))}))})),u.length>0&&(g&&(y.textContent+=c),y.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",y.innerHTML.length)){y.setAttribute("data-styles","");const t=null!=(o=a.P)?o:j(f.document);null!=t&&y.setAttribute("nonce",t),v.insertBefore(y,m?m.nextSibling:v.firstChild)}$=!1,w.length?w.map((t=>t.connectedCallback())):a.jmp((()=>b=setTimeout(Et,30)))},Ft=(t,e)=>e,Lt=(t,e,n)=>{n&&f.document&&n.map((([n,o,l])=>{const s=Dt(f.document,t,n),i=At(e,l),r=Ut(n);a.ael(s,o,i,r),(e.V=e.V||[]).push((()=>a.rel(s,o,i,r)))}))},At=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.M=t.M||[]).push([e,n])}catch(e){l(e,t.$hostElement$)}},Dt=(t,e,n)=>4&n?t:8&n?f:e,Ut=t=>({passive:!!(1&t),capture:!!(2&t)}),Wt=t=>a.P=t;export{Ft as F,W as H,z as a,Tt as b,Y as c,V as g,D as h,d as p,n as r,Wt as s}