UNPKG

@kit-data-manager/pid-component

Version:

The PID-Component is a web component that can be used to evaluate and display FAIR Digital Objects, PIDs, ORCiDs, and possibly other identifiers in a user-friendly way. It is easily extensible to support other identifier types.

20 lines 22.4 kB
/*! * * Copyright 2024 Karlsruhe Institute of Technology. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ const e="pid-component";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:false,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:false,element:false,event:false,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:false,propNumber:true,propString:true,reflect:false,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:false,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:false,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:false,watchCallback:true};var n=Object.defineProperty;var l=(e,t)=>{for(var l in t)n(e,l,{get:t[l],enumerable:true})};var s="http://www.w3.org/2000/svg";var r="http://www.w3.org/1999/xhtml";var i=new WeakMap;var o=e=>i.get(e);var f=(e,t)=>{i.set(t.t=e,t)};var a=(e,t)=>{const n={l:0,$hostElement$:e,i:t,o:new Map};{n.u=new Promise((e=>n.v=e));e["s-p"]=[];e["s-rc"]=[]}const l=i.set(e,n);return l};var c=(e,t)=>t in e;var u=(e,t)=>(0,console.error)(e,t);var d=new Map;var v=(e,t,n)=>{const l=e.h.replace(/-/g,"_");const s=e.p;if(!s){return void 0}const r=d.get(s);if(r){return r[l]} /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${s}.entry.js${""}`).then((e=>{{d.set(s,e)}return e[l]}),(e=>{u(e,t.$hostElement$)}))};var h=new Map;var p="o";var m="s";var $="t";var y="c";var w="s-id";var b="sty-id";var g="c-id";var S="{visibility:hidden}.hydrated{visibility:inherit}";var C="slot-fb{display:contents}slot-fb[hidden]{display:none}";var j=typeof window!=="undefined"?window:{};var k=j.document||{head:{}};var x={l:0,m:"",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)};var O=t.shadowDom;var T=e=>Promise.resolve(e);var D=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var L=false;var E=[];var M=[];var F=(e,t)=>n=>{e.push(n);if(!L){L=true;if(t&&x.l&4){A(P)}else{x.raf(P)}}};var R=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){u(e)}}e.length=0};var P=()=>{R(E);{R(M);if(L=E.length>0){x.raf(P)}}};var A=e=>T().then(e);var N=F(M,true);var I=e=>{e=typeof e;return e==="object"||e==="function"};function U(e){var t,n,l;return(l=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?l:void 0}var W={};l(W,{err:()=>z,map:()=>B,ok:()=>H,unwrap:()=>Q,unwrapErr:()=>V});var H=e=>({isOk:true,isErr:false,value:e});var z=e=>({isOk:false,isErr:true,value:e});function B(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>H(e)))}else{return H(n)}}if(e.isErr){const t=e.value;return z(t)}throw"should never get here"}var Q=e=>{if(e.isOk){return e.value}else{throw e.value}};var V=e=>{if(e.isErr){return e.value}else{throw e.value}};var q=(e,t,n,l)=>{let s;if(e["s-ol"]&&e["s-ol"].isConnected){s=e["s-ol"]}else{s=document.createTextNode("");s["s-nr"]=e}if(!t["s-cr"]||!t["s-cr"].parentNode)return;const r=t["s-cr"].parentNode;const i=n?r.__prepend||r.prepend:r.__appendChild||r.appendChild;if(typeof l!=="undefined"){{s["s-oo"]=l;const e=r.__childNodes||r.childNodes;const t=[s];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<t["s-oo"])return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>i.call(r,e)))}}else{i.call(r,s)}e["s-ol"]=s;e["s-sh"]=t["s-hn"]};var G=(e,t="")=>{{return()=>{}}};var K=(e,t)=>{{return()=>{}}};var X=(e,t,...n)=>{let l=null;let s=null;let r=false;let i=false;const o=[];const f=t=>{for(let n=0;n<t.length;n++){l=t[n];if(Array.isArray(l)){f(l)}else if(l!=null&&typeof l!=="boolean"){if(r=typeof e!=="function"&&!I(l)){l=String(l)}if(r&&i){o[o.length-1].$+=l}else{o.push(r?_(null,l):l)}i=r}}};f(n);if(t){if(t.key){s=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const a=_(e,null);a.S=t;if(o.length>0){a.C=o}{a.j=s}return a};var _=(e,t)=>{const n={l:0,k:e,$:t,O:null,C:null};{n.S=null}{n.j=null}return n};var J={};var Y=e=>e&&e.k===J;var Z=(e,t,n,l)=>{const s=G("hydrateClient",t);const r=e.shadowRoot;const i=[];const o=[];const f=[];const a=null;const c=_(t,null);c.O=e;if(!x.T||!x.T.size){te(k.body,x.T=new Map)}e[w]=n;e.removeAttribute(w);l.D=ee(c,i,o,a,e,e,n,f);let u=0;const d=i.length;let v;for(u;u<d;u++){v=i[u];const n=v.L+"."+v.M;const l=x.T.get(n);const s=v.O;if(!r){s["s-hn"]=t.toUpperCase();if(v.k==="slot"){s["s-cr"]=e["s-cr"]}}if(v.k==="slot"){v.F=v.O["s-sn"]||v.O["name"]||null;if(v.C){v.l|=2;if(!v.O.childNodes.length){v.C.forEach((e=>{v.O.appendChild(e.O)}))}}else{v.l|=1}}if(l&&l.isConnected){if(r&&l["s-en"]===""){l.parentNode.insertBefore(s,l.nextSibling)}l.parentNode.removeChild(l);if(!r){s["s-oo"]=parseInt(v.M)}}x.T.delete(n)}const h=[];const p=f.length;let m=0;let $;let y;let b;let g;for(m;m<p;m++){$=f[m];if(!$||!$.length)continue;b=$.length;y=0;for(y;y<b;y++){g=$[y];if(!h[g.hostId]){h[g.hostId]=x.T.get(g.hostId)}if(!h[g.hostId])continue;const e=h[g.hostId];if(!e.shadowRoot||!r){g.slot["s-cr"]=e["s-cr"];if(!g.slot["s-cr"]&&e.shadowRoot){g.slot["s-cr"]=e}else{g.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}q(g.node,g.slot,false,g.node["s-oo"])}if(e.shadowRoot&&g.node.parentElement!==e){e.appendChild(g.node)}}}x.T.delete(e["s-id"]);l.$hostElement$=e;s()};var ee=(e,t,n,l,s,r,i,o=[])=>{let f;let a;let c;let u;if(r.nodeType===1){f=r.getAttribute(g);if(f){a=f.split(".");if(a[0]===i||a[0]==="0"){c=ne({l:0,L:a[0],M:a[1],R:a[2],P:a[3],k:r.tagName.toLowerCase(),O:r,S:{class:r.className||""}});t.push(c);r.removeAttribute(g);if(!e.C){e.C=[]}const s=c.O.getAttribute("s-sn");if(typeof s==="string"){if(c.k==="slot-fb"){le(s,a[2],c,r,e,t,n,l,o)}c.O["s-sn"]=s;c.O.removeAttribute("s-sn")}if(c.P!==void 0){e.C[c.P]=c}e=c;if(l&&c.R==="0"){l[c.P]=c.O}}}if(r.shadowRoot){for(u=r.shadowRoot.childNodes.length-1;u>=0;u--){ee(e,t,n,l,s,r.shadowRoot.childNodes[u],i,o)}}const d=r.__childNodes||r.childNodes;for(u=d.length-1;u>=0;u--){ee(e,t,n,l,s,d[u],i,o)}}else if(r.nodeType===8){a=r.nodeValue.split(".");if(a[1]===i||a[1]==="0"){f=a[0];c=ne({L:a[1],M:a[2],R:a[3],P:a[4]||"0",O:r,S:null,C:null,j:null,F:null,k:null,$:null});if(f===$){c.O=re(r,3);if(c.O&&c.O.nodeType===3){c.$=c.O.textContent;t.push(c);r.remove();if(i===c.L){if(!e.C){e.C=[]}e.C[c.P]=c}if(l&&c.R==="0"){l[c.P]=c.O}}}else if(f===y){c.O=re(r,8);if(c.O&&c.O.nodeType===8){t.push(c);r.remove()}}else if(c.L===i){if(f===m){const s=r["s-sn"]=a[5]||"";le(s,a[2],c,r,e,t,n,l,o)}}}}else if(e&&e.k==="style"){const t=_(null,r.textContent);t.O=r;t.P="0";e.C=[t]}else{if(r.nodeType===3&&!r.wholeText.trim()){r.remove()}}return e};var te=(e,t)=>{if(e.nodeType===1){const n=e[w]||e.getAttribute(w);if(n){t.set(n,e)}let l=0;if(e.shadowRoot){for(;l<e.shadowRoot.childNodes.length;l++){te(e.shadowRoot.childNodes[l],t)}}const s=e.__childNodes||e.childNodes;for(l=0;l<s.length;l++){te(s[l],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===p){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var ne=e=>{const t={l:0,L:null,M:null,R:null,P:"0",O:null,S:null,C:null,j:null,F:null,k:null,$:null};return{...t,...e}};function le(e,t,n,l,s,r,i,o,f){l["s-sr"]=true;n.F=e||null;n.k="slot";const a=(s==null?void 0:s.O)?s.O["s-id"]||s.O.getAttribute("s-id"):"";{const i=n.O;const o=a&&a!==n.L&&s.O.shadowRoot;se(f,t,e,l,o?a:n.L);if(o){s.O.insertBefore(i,s.O.children[0])}r.push(n)}i.push(n);if(!s.C){s.C=[]}s.C[n.P]=n}var se=(e,t,n,l,s)=>{let r=l.nextSibling;e[t]=e[t]||[];while(r&&((r["getAttribute"]&&r.getAttribute("slot")||r["s-sn"])===n||n===""&&!r["s-sn"]&&(r.nodeType===8&&r.nodeValue.indexOf(".")!==1||r.nodeType===3))){r["s-sn"]=n;e[t].push({slot:l,node:r,hostId:s});r=r.nextSibling}};var re=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var ie=(e,t)=>{if(e!=null&&!I(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var oe=(e,t,n)=>{const l=x.ce(t,n);e.dispatchEvent(l);return l};var fe=new WeakMap;var ae=(e,t,n)=>{let l=h.get(e);if(D&&n){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}h.set(e,l)};var ce=(e,t,n)=>{var l;const s=de(t);const r=h.get(s);e=e.nodeType===11?e:k;if(r){if(typeof r==="string"){e=e.head||e;let n=fe.get(e);let i;if(!n){fe.set(e,n=new Set)}if(!n.has(s)){if(e.host&&(i=e.querySelector(`[${b}="${s}"]`))){i.innerHTML=r}else{i=document.querySelector(`[${b}="${s}"]`)||k.createElement("style");i.innerHTML=r;const n=(l=x.A)!=null?l:U(k);if(n!=null){i.setAttribute("nonce",n)}if(!(t.l&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(D){const t=new CSSStyleSheet;t.replaceSync(r);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=r+t.innerHTML}else{e.prepend(i)}}}else{e.append(i)}}if(t.l&1){e.insertBefore(i,null)}}if(t.l&4){i.innerHTML+=C}if(n){n.add(s)}}}else if(!e.adoptedStyleSheets.includes(r)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}}return s};var ue=e=>{const t=e.i;const n=e.$hostElement$;const l=G("attachStyles",t.h);ce(n.getRootNode(),t);l()};var de=(e,t)=>"sc-"+e.h;var ve=(e,t,n,l,s,r,i)=>{if(n!==l){let o=c(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const s=pe(n);let r=pe(l);if(e["s-si"]&&i){r.push(e["s-si"]);s.forEach((t=>{if(t.startsWith(e["s-si"]))r.push(t)}));r=[...new Set(r)];t.add(...r)}else{t.remove(...s.filter((e=>e&&!r.includes(e))));t.add(...r.filter((e=>e&&!s.includes(e))))}}else if(t==="style"){{for(const t in n){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!n||l[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(c(j,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||l){const s=t.endsWith(me);t=t.replace($e,"");if(n){x.rel(e,t,n,s)}if(l){x.ael(e,t,l,s)}}}else{const i=I(l);if((o||i&&l!==null)&&!s){try{if(!e.tagName.includes("-")){const s=l==null?"":l;if(t==="list"){o=false}else if(n==null||e[t]!=s){if(typeof e.__lookupSetter__(t)==="function"){e[t]=s}else{e.setAttribute(t,s)}}}else if(e[t]!==l){e[t]=l}}catch(e){}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!o||r&4||s)&&!i){l=l===true?"":l;{e.setAttribute(t,l)}}}}};var he=/\s/;var pe=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(he)};var me="Capture";var $e=new RegExp(me+"$");var ye=(e,t,n,l)=>{const s=t.O.nodeType===11&&t.O.host?t.O.host:t.O;const r=e&&e.S||{};const i=t.S||{};{for(const e of we(Object.keys(r))){if(!(e in i)){ve(s,e,r[e],void 0,n,t.l,l)}}}for(const e of we(Object.keys(i))){ve(s,e,r[e],i[e],n,t.l,l)}};function we(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var be;var ge=false;var Se=false;var Ce=(e,n,l)=>{const i=n.C[l];let o=0;let f;let a;if(i.$!==null){f=i.O=k.createTextNode(i.$)}else{if(!Se){Se=i.k==="svg"}f=i.O=k.createElementNS(Se?s:r,!ge&&t.slotRelocation&&i.l&2?"slot-fb":i.k);if(Se&&i.k==="foreignObject"){Se=false}{ye(null,i,Se)}if(i.C){for(o=0;o<i.C.length;++o){a=Ce(e,i,o);if(a){f.appendChild(a)}}}{if(i.k==="svg"){Se=false}else if(f.tagName==="foreignObject"){Se=true}}}f["s-hn"]=be;return f};var je=(e,t,n,l,s,r)=>{let i=e;let o;for(;s<=r;++s){if(l[s]){o=Ce(null,n,s);if(o){l[s].O=o;De(i,o,t)}}}};var ke=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.O;if(e){e.remove()}}}};var xe=(e,t,n,l,s=false)=>{let r=0;let i=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let d=l.length-1;let v=l[0];let h=l[d];let p;let m;while(r<=a&&i<=d){if(c==null){c=t[++r]}else if(u==null){u=t[--a]}else if(v==null){v=l[++i]}else if(h==null){h=l[--d]}else if(Oe(c,v,s)){Te(c,v,s);c=t[++r];v=l[++i]}else if(Oe(u,h,s)){Te(u,h,s);u=t[--a];h=l[--d]}else if(Oe(c,h,s)){Te(c,h,s);De(e,c.O,u.O.nextSibling);c=t[++r];h=l[--d]}else if(Oe(u,v,s)){Te(u,v,s);De(e,u.O,c.O);u=t[--a];v=l[++i]}else{o=-1;{for(f=r;f<=a;++f){if(t[f]&&t[f].j!==null&&t[f].j===v.j){o=f;break}}}if(o>=0){m=t[o];if(m.k!==v.k){p=Ce(t&&t[i],n,o)}else{Te(m,v,s);t[o]=void 0;p=m.O}v=l[++i]}else{p=Ce(t&&t[i],n,i);v=l[++i]}if(p){{De(c.O.parentNode,p,c.O)}}}}if(r>a){je(e,l[d+1]==null?null:l[d+1].O,n,l,i,d)}else if(i>d){ke(t,r,a)}};var Oe=(e,t,n=false)=>{if(e.k===t.k){if(!n){return e.j===t.j}if(n&&!e.j&&t.j){e.j=t.j}return true}return false};var Te=(e,n,l=false)=>{const s=n.O=e.O;const r=e.C;const i=n.C;const o=n.k;const f=n.$;if(f===null){{Se=o==="svg"?true:o==="foreignObject"?false:Se}{{ye(e,n,Se,l)}}if(r!==null&&i!==null){xe(s,r,n,i,l)}else if(i!==null){if(e.$!==null){s.textContent=""}je(s,null,n,i,0,i.length-1)}else if(!l&&t.updatable&&r!==null){ke(r,0,r.length-1)}if(Se&&o==="svg"){Se=false}}else if(e.$!==f){s.data=f}};var De=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var Le=(e,t,n=false)=>{const l=e.$hostElement$;const s=e.D||_(null,null);const r=Y(t)?t:X(null,null,t);be=l.tagName;if(n&&r.S){for(const e of Object.keys(r.S)){if(l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){r.S[e]=l[e]}}}r.k=null;r.l|=4;e.D=r;r.O=s.O=l;ge=O;Te(s,r,n)};var Ee=(e,t)=>{if(t&&!e.N&&t["s-p"]){const n=t["s-p"].push(new Promise((l=>e.N=()=>{t["s-p"].splice(n-1,1);l()})))}};var Me=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}Ee(e,e.I);const n=()=>Fe(e,t);return N(n)};var Fe=(e,t)=>{const n=e.$hostElement$;const l=G("scheduleUpdate",e.i.h);const s=e.t;if(!s){throw new 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 r;if(t){{r=We(s,"componentWillLoad",void 0,n)}}l();return Re(r,(()=>Ae(e,s,t)))};var Re=(e,t)=>Pe(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Pe=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Ae=async(e,t,n)=>{var l;const s=e.$hostElement$;const r=G("update",e.i.h);const i=s["s-rc"];if(n){ue(e)}const o=G("render",e.i.h);{Ne(e,t,s,n)}if(i){i.map((e=>e()));s["s-rc"]=void 0}o();r();{const t=(l=s["s-p"])!=null?l:[];const n=()=>Ie(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.l|=4;t.length=0}}};var Ne=(e,t,n,l)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{Le(e,t,l)}}}}catch(t){u(t,e.$hostElement$)}return null};var Ie=e=>{const t=e.i.h;const n=e.$hostElement$;const l=G("postUpdate",t);const s=e.I;if(!(e.l&64)){e.l|=64;{He(n)}l();{e.v(n);if(!s){Ue()}}}else{l()}{if(e.N){e.N();e.N=void 0}if(e.l&512){A((()=>Me(e,false)))}e.l&=~(4|512)}};var Ue=t=>{A((()=>oe(j,"appload",{detail:{namespace:e}})))};var We=(e,t,n,l)=>{if(e&&e[t]){try{return e[t](n)}catch(e){u(e,l)}}return void 0};var He=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var ze=(e,t)=>o(e).o.get(t);var Be=(e,t,n,l)=>{const s=o(e);if(!s){throw new Error(`Couldn't find host element for "${l.h}" 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/ionic-team/stencil/issues/5457).`)}const r=s.$hostElement$;const i=s.o.get(t);const f=s.l;const a=s.t;n=ie(n,l.U[t][0]);const c=Number.isNaN(i)&&Number.isNaN(n);const d=n!==i&&!c;if((!(f&8)||i===void 0)&&d){s.o.set(t,n);if(a){if(l.W&&f&128){const e=l.W[t];if(e){e.map((e=>{try{a[e](n,i,t)}catch(e){u(e,r)}}))}}if((f&(2|16))===2){Me(s,false)}}}};var Qe=(e,n,l)=>{var s,r;const i=e.prototype;if(n.U||(n.W||e.watchers)){if(e.watchers&&!n.W){n.W=e.watchers}const f=Object.entries((s=n.U)!=null?s:{});f.map((([e,[t]])=>{if(t&31||l&2&&t&32){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};if(s)n.U[e][0]|=2048;if(r)n.U[e][0]|=4096;if(l&1||!s){Object.defineProperty(i,e,{get(){{if((n.U[e][0]&2048)===0){return ze(this,e)}const t=o(this);const l=t?t.t:i;if(!l)return;return l[e]}},configurable:true,enumerable:true})}Object.defineProperty(i,e,{set(s){const i=o(this);if(r){const l=t&32?this[e]:i.$hostElement$[e];if(typeof l==="undefined"&&i.o.get(e)){s=i.o.get(e)}else if(!i.o.get(e)&&l){i.o.set(e,l)}r.apply(this,[ie(s,t)]);s=t&32?this[e]:i.$hostElement$[e];Be(this,e,s,n);return}{if((l&1)===0||(n.U[e][0]&4096)===0){Be(this,e,s,n);if(l&1&&!i.t){i.u.then((()=>{if(n.U[e][0]&4096&&i.t[e]!==i.o.get(e)){i.t[e]=s}}))}return}const r=()=>{const l=i.t[e];if(!i.o.get(e)&&l){i.o.set(e,l)}i.t[e]=ie(s,t);Be(this,e,i.t[e],n)};if(i.t){r()}else{i.u.then((()=>r()))}}}})}}));if(l&1){const l=new Map;i.attributeChangedCallback=function(e,s,r){x.jmp((()=>{var f;const a=l.get(e);if(this.hasOwnProperty(a)&&t.lazyLoad){r=this[a];delete this[a]}else if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==r){return}else if(a==null){const t=o(this);const l=t==null?void 0:t.l;if(l&&!(l&8)&&l&128&&r!==s){const l=t.t;const i=(f=n.W)==null?void 0:f[e];i==null?void 0:i.forEach((t=>{if(l[t]!=null){l[t].call(l,r,s,e)}}))}return}const c=Object.getOwnPropertyDescriptor(i,a);r=r===null&&typeof this[a]==="boolean"?false:r;if(r!==this[a]&&(!c.get||!!c.set)){this[a]=r}}))};e.observedAttributes=Array.from(new Set([...Object.keys((r=n.W)!=null?r:{}),...f.filter((([e,t])=>t[0]&15)).map((([e,t])=>{const n=t[1]||e;l.set(n,e);return n}))]))}}return e};var Ve=async(e,t,n,l)=>{let s;if((t.l&32)===0){t.l|=32;const l=n.p;if(l){const l=v(n,t);if(l&&"then"in l){const e=K();s=await l;e()}else{s=l}if(!s){throw new Error(`Constructor for "${n.h}#${t.H}" was not found`)}if(!s.isProxied){{n.W=s.watchers}Qe(s,n,2);s.isProxied=true}const r=G("createInstance",n.h);{t.l|=8}try{new s(t)}catch(t){u(t,e)}{t.l&=~8}{t.l|=128}r()}else{s=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.l|=128))}if(s&&s.style){let e;if(typeof s.style==="string"){e=s.style}const t=de(n);if(!h.has(t)){const l=G("registerStyles",n.h);ae(t,e,!!(n.l&1));l()}}}const r=t.I;const i=()=>Me(t,true);if(r&&r["s-rc"]){r["s-rc"].push(i)}else{i()}};var qe=(e,t)=>{};var Ge=e=>{if((x.l&1)===0){const t=o(e);const n=t.i;const l=G("connectedCallback",n.h);if(!(t.l&1)){t.l|=1;let l;{l=e.getAttribute(w);if(l){Z(e,n.h,l,t)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ee(t,t.I=n);break}}}if(n.U){Object.entries(n.U).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{Ve(e,t,n)}}else{if(t==null?void 0:t.t);else if(t==null?void 0:t.u){t.u.then((()=>qe()))}}l()}};var Ke=(e,t)=>{};var Xe=async e=>{if((x.l&1)===0){const t=o(e);if(t==null?void 0:t.t);else if(t==null?void 0:t.u){t.u.then((()=>Ke()))}}if(fe.has(e)){fe.delete(e)}if(e.shadowRoot&&fe.has(e.shadowRoot)){fe.delete(e.shadowRoot)}};var _e=(e,t={})=>{var n;const l=G();const s=[];const r=t.exclude||[];const i=j.customElements;const f=k.head;const c=f.querySelector("meta[charset]");const u=k.createElement("style");const d=[];let v;let h=true;Object.assign(x,t);x.m=new URL(t.resourcesUrl||"./",k.baseURI).href;{x.l|=2}let p=false;e.map((e=>{e[1].map((t=>{var n;const l={l:t[0],h:t[1],U:t[2],B:t[3]};if(l.l&4){p=true}{l.U=t[2]}{l.W=(n=t[4])!=null?n:{}}const f=l.h;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;a(e,l)}connectedCallback(){o(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(v){clearTimeout(v);v=null}if(h){d.push(this)}else{x.jmp((()=>Ge(this)))}}disconnectedCallback(){x.jmp((()=>Xe(this)));x.raf((()=>{var e;const t=o(this);const n=d.findIndex((e=>e===this));if(n>-1){d.splice(n,1)}if(((e=t==null?void 0:t.D)==null?void 0:e.O)instanceof Node&&!t.D.O.isConnected){delete t.D.O}}))}componentOnReady(){return o(this).u}};l.p=e[0];if(!r.includes(f)&&!i.get(f)){s.push(f);i.define(f,Qe(c,l,1))}}))}));if(s.length>0){if(p){u.textContent+=C}{u.textContent+=s.sort()+S}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=x.A)!=null?n:U(k);if(e!=null){u.setAttribute("nonce",e)}f.insertBefore(u,c?c.nextSibling:f.firstChild)}}h=false;if(d.length){d.map((e=>e.connectedCallback()))}else{{x.jmp((()=>v=setTimeout(Ue,30)))}}l()};var Je=e=>x.A=e;export{J as H,_e as b,X as h,T as p,f as r,Je as s}; //# sourceMappingURL=p-19958745.js.map