@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
1 lines • 16.2 kB
JavaScript
const e="calcite";let t,n,l,s=!1,o=!1,i=!1,r=!1,c=!1;const f="undefined"!=typeof window?window:{},a=f.CSS,u=f.document||{head:{}},$={t:0,l:"",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)},d=(()=>(u.head.attachShadow+"").indexOf("[native")>-1)(),h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),m=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=w(e,n),i=y(t,s),r=b(n);$.ael(o,l,i,r),(t.o=t.o||[]).push((()=>$.rel(o,l,i,r)))}))},y=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(l){_e(l)}},w=(e,t)=>4&t?u:8&t?f:16&t?u.body:e,b=e=>0!=(2&e),g="http://www.w3.org/1999/xlink",v=new WeakMap,k=(e,t,n)=>{let l=Ne.get(e);p&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Ne.set(e,l)},j=(e,t)=>{let n=O(t),l=Ne.get(n);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let t,s=v.get(e=e.head||e);s||v.set(e,s=new Set),s.has(n)||(e.host&&(t=e.querySelector(`[sty-id="${n}"]`))?t.innerHTML=l:(t=u.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link"))),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n},O=e=>"sc-"+e.$,S=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),x={},C=e=>"object"==(e=typeof e)||"function"===e,M=(e,t,...n)=>{let l=null,s=null,o=null,i=!1,r=!1,c=[];const f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!C(l))&&(l+=""),i&&r?c[c.length-1].h+=l:c.push(i?R(null,l):l),r=i)};if(f(n),t){t.key&&(s=t.key),t.name&&(o=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(null===t?{}:t,c,E);const a=R(e,null);return a.p=t,c.length>0&&(a.m=c),a.g=s,a.v=o,a},R=(e,t)=>({t:0,k:e,h:t,j:null,m:null,p:null,g:null,v:null}),_={},E={forEach:(e,t)=>e.map(L).forEach(t),map:(e,t)=>e.map(L).map(t).map(N)},L=e=>({vattrs:e.p,vchildren:e.m,vkey:e.g,vname:e.v,vtag:e.k,vtext:e.h}),N=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),M(e.vtag,t,...e.vchildren||[])}const t=R(e.vtag,e.vtext);return t.p=e.vattrs,t.m=e.vchildren,t.g=e.vkey,t.v=e.vname,t},P=(e,t,n,l,s,o)=>{if(n!==l){let r=Re(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,s=I(n),o=I(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.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("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const f=C(l);if((r||f&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(i){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(g,t):e.removeAttribute(t)):(!r||4&o||s)&&!f&&(l=!0===l?"":l,a?e.setAttributeNS(g,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):Re(f,c)?c.slice(2):c[2]+t.slice(3),n&&$.rel(e,t,n,!1),l&&$.ael(e,t,l,!1)}},T=/\s/,I=e=>e?e.split(T):[],U=(e,t,n,l)=>{const s=11===t.j.nodeType&&t.j.host?t.j.host:t.j,o=e&&e.p||x,i=t.p||x;for(l in o)l in i||P(s,l,o[l],void 0,n,t.t);for(l in i)P(s,l,o[l],i[l],n,t.t)},W=(e,o,c,f)=>{let a,$,d,h=o.m[c],p=0;if(s||(i=!0,"slot"===h.k&&(t&&f.classList.add(t+"-s"),h.t|=h.m?2:1)),null!==h.h)a=h.j=u.createTextNode(h.h);else if(1&h.t)a=h.j=u.createTextNode("");else{if(r||(r="svg"===h.k),a=h.j=u.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&h.t?"slot-fb":h.k),r&&"foreignObject"===h.k&&(r=!1),U(null,h,r),null!=t&&a["s-si"]!==t&&a.classList.add(a["s-si"]=t),h.m)for(p=0;p<h.m.length;++p)$=W(e,h,p,a),$&&a.appendChild($);"svg"===h.k?r=!1:"foreignObject"===a.tagName&&(r=!0)}return a["s-hn"]=l,3&h.t&&(a["s-sr"]=!0,a["s-cr"]=n,a["s-sn"]=h.v||"",d=e&&e.m&&e.m[c],d&&d.k===h.k&&e.j&&A(e.j,!1)),a},A=(e,t)=>{$.t|=1;const n=e.childNodes;for(let s=n.length-1;s>=0;s--){const e=n[s];e["s-hn"]!==l&&e["s-ol"]&&(V(e).insertBefore(e,q(e)),e["s-ol"].remove(),e["s-ol"]=void 0,i=!0),t&&A(e,t)}$.t&=-2},D=(e,t,n,s,o,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===l&&(c=c.shadowRoot);o<=i;++o)s[o]&&(r=W(null,n,o,e),r&&(s[o].j=r,c.insertBefore(r,q(t))))},F=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.j,Q(l),o=!0,s["s-ol"]?s["s-ol"].remove():A(s,!0),s.remove())},H=(e,t)=>e.k===t.k&&("slot"===e.k?e.v===t.v:e.g===t.g),q=e=>e&&e["s-ol"]||e,V=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,z=(e,t)=>{const n=t.j=e.j,l=e.m,s=t.m,o=t.k,i=t.h;let c;null===i?(r="svg"===o||"foreignObject"!==o&&r,"slot"===o||U(e,t,r),null!==l&&null!==s?((e,t,n,l)=>{let s,o,i=0,r=0,c=0,f=0,a=t.length-1,u=t[0],$=t[a],d=l.length-1,h=l[0],p=l[d];for(;i<=a&&r<=d;)if(null==u)u=t[++i];else if(null==$)$=t[--a];else if(null==h)h=l[++r];else if(null==p)p=l[--d];else if(H(u,h))z(u,h),u=t[++i],h=l[++r];else if(H($,p))z($,p),$=t[--a],p=l[--d];else if(H(u,p))"slot"!==u.k&&"slot"!==p.k||A(u.j.parentNode,!1),z(u,p),e.insertBefore(u.j,$.j.nextSibling),u=t[++i],p=l[--d];else if(H($,h))"slot"!==u.k&&"slot"!==p.k||A($.j.parentNode,!1),z($,h),e.insertBefore($.j,u.j),$=t[--a],h=l[++r];else{for(c=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].g&&t[f].g===h.g){c=f;break}c>=0?(o=t[c],o.k!==h.k?s=W(t&&t[r],n,c,e):(z(o,h),t[c]=void 0,s=o.j),h=l[++r]):(s=W(t&&t[r],n,r,e),h=l[++r]),s&&V(u.j).insertBefore(s,q(u.j))}i>a?D(e,null==l[d+1]?null:l[d+1].j,n,l,r,d):r>d&&F(t,i,a)})(n,l,t,s):null!==s?(null!==e.h&&(n.textContent=""),D(n,null,t,s,0,s.length-1)):null!==l&&F(l,0,l.length-1),r&&"svg"===o&&(r=!1)):(c=n["s-cr"])?c.parentNode.textContent=i:e.h!==i&&(n.data=i)},B=e=>{let t,n,l,s,o,i,r=e.childNodes;for(n=0,l=r.length;n<l;n++)if(t=r[n],1===t.nodeType){if(t["s-sr"])for(o=t["s-sn"],t.hidden=!1,s=0;s<l;s++)if(i=r[s].nodeType,r[s]["s-hn"]!==t["s-hn"]||""!==o){if(1===i&&o===r[s].getAttribute("slot")){t.hidden=!0;break}}else if(1===i||3===i&&""!==r[s].textContent.trim()){t.hidden=!0;break}B(t)}},G=[],J=e=>{let t,n,l,s,i,r,c=0,f=e.childNodes,a=f.length;for(;c<a;c++){if(t=f[c],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],r=l.length-1;r>=0;r--)n=l[r],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(K(n,s)?(i=G.find((e=>e.O===n)),o=!0,n["s-sn"]=n["s-sn"]||s,i?i.S=t:G.push({S:t,O:n}),n["s-sr"]&&G.map((e=>{K(e.O,n["s-sn"])&&(i=G.find((e=>e.O===n)),i&&!e.S&&(e.S=i.S))}))):G.some((e=>e.O===n))||G.push({O:n}));1===t.nodeType&&J(t)}},K=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,Q=e=>{e.p&&e.p.ref&&e.p.ref(null),e.m&&e.m.map(Q)},X=e=>xe(e).C,Y=(e,t,n)=>{const l=X(e);return{emit:e=>Z(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},Z=(e,t,n)=>{const l=$.ce(t,n);return e.dispatchEvent(l),l},ee=(e,t)=>{t&&!e.M&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.M=t)))},te=(e,t)=>{if(e.t|=16,!(4&e.t))return ee(e,e.R),De((()=>ne(e,t)));e.t|=512},ne=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>ce(n,e,t))),e.u=null),l=ce(n,"componentWillLoad")),l=fe(l,(()=>ce(n,"componentWillRender"))),fe(l,(()=>le(e,n,t)))},le=async(e,t,n)=>{const l=e.C,s=l["s-rc"];n&&(e=>{const t=e._,n=e.C,l=t.t,s=j(d&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"),2&l&&n.classList.add(s+"-s"))})(e);se(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>oe(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},se=(e,r)=>{try{r=r.render(),e.t&=-17,e.t|=2,((e,r)=>{const c=e.C,f=e._,a=e.L||R(null,null),h=(e=>e&&e.k===_)(r)?r:M(null,null,r);if(l=c.tagName,f.N&&(h.p=h.p||{},f.N.map((([e,t])=>h.p[t]=c[e]))),h.k=null,h.t|=4,e.L=h,h.j=a.j=c.shadowRoot||c,t=c["s-sc"],n=c["s-cr"],s=d&&0!=(1&f.t),o=!1,z(a,h),$.t|=1,i){let e,t,n,l,s,o;J(h.j);let i=0;for(;i<G.length;i++)e=G[i],t=e.O,t["s-ol"]||(n=u.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<G.length;i++)if(e=G[i],t=e.O,e.S){for(l=e.S.parentNode,s=e.S.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===t["s-sn"]&&l===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){s=o;break}(!s&&l!==t.parentNode||t.nextSibling!==s)&&t!==s&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,s))}else 1===t.nodeType&&(t.hidden=!0)}o&&B(h.j),$.t&=-2,G.length=0})(e,r)}catch(c){_e(c,e.C)}return null},oe=e=>{const t=e.C,n=e.i,l=e.R;ce(n,"componentDidRender"),64&e.t?ce(n,"componentDidUpdate"):(e.t|=64,ae(t),ce(n,"componentDidLoad"),e.P(t),l||re()),e.T(t),e.M&&(e.M(),e.M=void 0),512&e.t&&Ae((()=>te(e,!1))),e.t&=-517},ie=e=>{{const t=xe(e),n=t.C.isConnected;return n&&2==(18&t.t)&&te(t,!1),n}},re=()=>{ae(u.documentElement),Ae((()=>Z(f,"appload",{detail:{namespace:"calcite"}})))},ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(l){_e(l)}},fe=(e,t)=>e&&e.then?e.then(t):t(),ae=e=>e.setAttribute("calcite-hydrated",""),ue=(e,t,n,l,s,o,i)=>{let r,c,f,a;if(1===o.nodeType){for(r=o.getAttribute("c-id"),r&&(c=r.split("."),c[0]!==i&&"0"!==c[0]||(f={t:0,I:c[0],U:c[1],W:c[2],A:c[3],k:o.tagName.toLowerCase(),j:o,p:null,m:null,g:null,v:null,h:null},t.push(f),o.removeAttribute("c-id"),e.m||(e.m=[]),e.m[f.A]=f,e=f,l&&"0"===f.W&&(l[f.A]=f.j))),a=o.childNodes.length-1;a>=0;a--)ue(e,t,n,l,s,o.childNodes[a],i);if(o.shadowRoot)for(a=o.shadowRoot.childNodes.length-1;a>=0;a--)ue(e,t,n,l,s,o.shadowRoot.childNodes[a],i)}else if(8===o.nodeType)c=o.nodeValue.split("."),c[1]!==i&&"0"!==c[1]||(r=c[0],f={t:0,I:c[1],U:c[2],W:c[3],A:c[4],j:o,p:null,m:null,g:null,v:null,k:null,h:null},"t"===r?(f.j=o.nextSibling,f.j&&3===f.j.nodeType&&(f.h=f.j.textContent,t.push(f),o.remove(),e.m||(e.m=[]),e.m[f.A]=f,l&&"0"===f.W&&(l[f.A]=f.j))):f.I===i&&("s"===r?(f.k="slot",o["s-sn"]=c[5]?f.v=c[5]:"",o["s-sr"]=!0,l&&(f.j=u.createElement(f.k),f.v&&f.j.setAttribute("name",f.v),o.parentNode.insertBefore(f.j,o),o.remove(),"0"===f.W&&(l[f.A]=f.j)),n.push(f),e.m||(e.m=[]),e.m[f.A]=f):"r"===r&&(l?o.remove():(s["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.k){const t=R(null,o.textContent);t.j=o,t.A="0",e.m=[t]}},$e=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)$e(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)$e(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},de=(e,t,n)=>{if(t.D){e.watchers&&(t.F=e.watchers);const l=Object.entries(t.D),s=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(s,e,{get(){return((e,t)=>xe(this).H.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=xe(e),o=s.C,i=s.H.get(t),r=s.t,c=s.i;if(n=((e,t)=>null==e||C(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.D[t][0]),!(8&r&&void 0!==i||n===i)&&(s.H.set(t,n),c)){if(l.F&&128&r){const e=l.F[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(l){_e(l,o)}}))}if(2==(18&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,i,t))return;te(s,!1)}}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(s,e,{value(...t){const n=xe(this);return n.q.then((()=>n.i[e](...t)))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){$.jmp((()=>{const t=n.get(e);this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.N.push([e,s]),s}))}}return e},he=e=>{ce(e,"connectedCallback")},pe=e=>{if(0==(1&$.t)){const t=xe(e),n=t._,l=()=>{};if(1&t.t)m(e,t,n.V),he(t.i);else{let l;if(t.t|=1,l=e.getAttribute("s-id"),l){if(d&&1&n.t){const t=j(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}((e,t,n,l)=>{const s=e.shadowRoot,o=[],i=s?[]:null,r=l.L=R(t,null);$.B||$e(u.body,$.B=new Map),e["s-id"]=n,e.removeAttribute("s-id"),ue(r,o,[],i,e,e,n),o.map((e=>{const n=e.I+"."+e.U,l=$.B.get(n),o=e.j;l&&d&&""===l["s-en"]&&l.parentNode.insertBefore(o,l.nextSibling),s||(o["s-hn"]=t,l&&(o["s-ol"]=l,o["s-ol"]["s-nr"]=o)),$.B.delete(n)})),s&&i.map((e=>{e&&s.appendChild(e)}))})(e,n.$,l,t)}l||12&n.t&&me(e);{let n=e;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){ee(t,t.R=n);break}}n.D&&Object.entries(n.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=Le(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.F=s.watchers,de(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(r){_e(r)}t.t&=-9,t.t|=128,e(),he(t.i)}if(s.style){let e=s.style;const t=O(n);if(!Ne.has(t)){const l=()=>{};8&n.t&&(e=await __sc_import_calcite("./p-570b9a03.js").then((n=>n.scopeCss(e,t,!1)))),k(t,e,!!(1&n.t)),l()}}}const o=t.R,i=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}},me=e=>{const t=e["s-cr"]=u.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ye=e=>{e.__appendChild=e.appendChild,e.appendChild=function(e){const t=e["s-sn"]=be(e),n=ge(this.childNodes,t);if(n){const l=ve(n,t),s=l[l.length-1];return s.parentNode.insertBefore(e,s.nextSibling)}return this.__appendChild(e)}},we=(e,t)=>{class n extends Array{item(e){return this[e]}}if(8&t.t){const t=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map((e=>1===e.nodeType))}}),Object.defineProperty(e,"childElementCount",{get:()=>e.children.length}),Object.defineProperty(e,"childNodes",{get(){const e=t.call(this);if(0==(1&$.t)&&2&xe(this).t){const t=new n;for(let n=0;n<e.length;n++){const l=e[n]["s-nr"];l&&t.push(l)}return t}return n.from(e)}})}},be=e=>e["s-sn"]||1===e.nodeType&&e.getAttribute("slot")||"",ge=(e,t)=>{let n,l=0;for(;l<e.length;l++){if(n=e[l],n["s-sr"]&&n["s-sn"]===t)return n;if(n=ge(n.childNodes,t),n)return n}return null},ve=(e,t)=>{const n=[e];for(;(e=e.nextSibling)&&e["s-sn"]===t;)n.push(e);return n},ke=(e,t={})=>{const n=[],l=t.exclude||[],s=f.customElements,o=u.head,i=o.querySelector("meta[charset]"),r=u.createElement("style"),c=[],a=u.querySelectorAll("[sty-id]");let h,p=!0,m=0;for(Object.assign($,t),$.l=new URL(t.resourcesUrl||"./",u.baseURI).href,$.t|=2;m<a.length;m++)k(a[m].getAttribute("sty-id"),S(a[m].innerHTML),!0);e.map((e=>e[1].map((t=>{const o={t:t[0],$:t[1],D:t[2],V:t[3]};o.D=t[2],o.V=t[3],o.N=[],o.F={},!d&&1&o.t&&(o.t|=8);const i=o.$,r=class extends HTMLElement{constructor(e){super(e),Me(e=this,o),1&o.t&&(d?e.attachShadow({mode:"open"}):"shadowRoot"in e||(e.shadowRoot=e)),we(e,o)}connectedCallback(){h&&(clearTimeout(h),h=null),p?c.push(this):$.jmp((()=>pe(this)))}disconnectedCallback(){$.jmp((()=>(()=>{if(0==(1&$.t)){const e=xe(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),ce(t,"disconnectedCallback")}})()))}componentOnReady(){return xe(this).G}};ye(r.prototype),o.J=e[0],l.includes(i)||s.get(i)||(n.push(i),s.define(i,de(r,o,1)))})))),r.innerHTML=n+"{visibility:hidden}[calcite-hydrated]{visibility:inherit}",r.setAttribute("data-styles",""),o.insertBefore(r,i?i.nextSibling:o.firstChild),p=!1,c.length?c.map((e=>e.connectedCallback())):$.jmp((()=>h=setTimeout(re,30)))},je=e=>{const t=new URL(e,$.l);return t.origin!==f.location.origin?t.href:t.pathname},Oe=(e,t)=>t,Se=new WeakMap,xe=e=>Se.get(e),Ce=(e,t)=>Se.set(t.i=e,t),Me=(e,t)=>{const n={t:0,C:e,_:t,H:new Map};return n.q=new Promise((e=>n.T=e)),n.G=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],m(e,n,t.V),Se.set(e,n)},Re=(e,t)=>t in e,_e=(e,t)=>(0,console.error)(e,t),Ee=new Map,Le=e=>{const t=e.$.replace(/-/g,"_"),n=e.J,l=Ee.get(n);return l?l[t]:__sc_import_calcite(`./${n}.entry.js`).then((e=>(Ee.set(n,e),e[t])),_e)},Ne=new Map,Pe=[],Te=[],Ie=(e,t)=>n=>{e.push(n),c||(c=!0,t&&4&$.t?Ae(We):$.raf(We))},Ue=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){_e(t)}e.length=0},We=()=>{Ue(Pe),Ue(Te),(c=Pe.length>0)&&$.raf(We)},Ae=e=>h().then(e),De=Ie(Te,!0);export{a as C,Oe as F,_ as H,e as N,h as a,ke as b,Y as c,u as d,je as e,ie as f,X as g,M as h,$ as p,Ce as r,f as w}