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