UNPKG

graphdb-workbench

Version:
2 lines 38.1 kB
/*! For license information please see index-CGqARDX4.js.LICENSE.txt */ const NAMESPACE="shared-components",BUILD={hotModuleReplacement:!1,hydratedSelectorName:"hydrated",lazyLoad:!0,propChangeCallback:!0,shadowDom:!0,slotRelocation:!0,state:!0,updatable:!0};var reWireGetterSetter=(e,t)=>{var n;const s=t.$cmpMeta$;Object.entries(null!=(n=s.$members$)?n:{}).map(([n,[s]])=>{if(31&s||32&s){const s=e[n],o=getPropertyDescriptor(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);o&&Object.defineProperty(e,n,{get(){return o.get.call(this)},set(e){o.set.call(this,e)},configurable:!0,enumerable:!0}),e[n]=t.$instanceValues$.has(n)?t.$instanceValues$.get(n):s}})};function getPropertyDescriptor(e,t){for(;e;){const n=Object.getOwnPropertyDescriptor(e,t);if(null==n?void 0:n.get)return n;e=Object.getPrototypeOf(e)}}var globalStyleSheet,getHostRef=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},registerInstance=(e,t)=>{t&&(e.__stencil__getHostRef=()=>t,t.$lazyInstance$=e,512&t.$cmpMeta$.$flags$&&BUILD.state&&reWireGetterSetter(e,t))},registerHost=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map,$serializerValues$:new Map};n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],n.$fetchedCbList$=[];const s=n;return e.__stencil__getHostRef=()=>s,s},isMemberInElement=(e,t)=>t in e,consoleError=(e,t)=>(0,console.error)(e,t),cmpModules=new Map,loadModule=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$;if(!o)return;const l=cmpModules.get(o);return l?l[s]:import(`./${o}.entry.js`).then(e=>(cmpModules.set(o,e),e[s]),e=>{consoleError(e,t.$hostElement$)})},styles=new Map,HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}",SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}",XLINK_NS="http://www.w3.org/1999/xlink",win="undefined"!=typeof window?window:{},H=win.HTMLElement||class{},plt={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},supportsShadow=BUILD.shadowDom,supportsListenerOptions=(()=>{var e;let t=!1;try{null==(e=win.document)||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch(e){}return t})(),promiseResolve=e=>Promise.resolve(e),supportsConstructableStylesheets=(()=>{try{return!!win.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(e){}return!1})(),supportsMutableAdoptedStyleSheets=!!supportsConstructableStylesheets&&(()=>!!win.document&&Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets,"length").writable)(),queuePending=!1,queueDomReads=[],queueDomWrites=[],queueTask=(e,t)=>n=>{e.push(n),queuePending||(queuePending=!0,t&&4&plt.$flags$?nextTick(flush):plt.raf(flush))},consume=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){consoleError(e)}e.length=0},flush=()=>{consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush)},nextTick=e=>promiseResolve().then(e),writeTask=queueTask(queueDomWrites,!0);function createStyleSheetIfNeededAndSupported(e){}function createShadowRoot(e){var t;const n=this.attachShadow({mode:"open"});void 0===globalStyleSheet&&(globalStyleSheet=null!=(t=createStyleSheetIfNeededAndSupported())?t:null),globalStyleSheet&&(supportsMutableAdoptedStyleSheets?n.adoptedStyleSheets.push(globalStyleSheet):n.adoptedStyleSheets=[...n.adoptedStyleSheets,globalStyleSheet])}var updateFallbackSlotVisibility=e=>{const t=internalCall(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&"SLOT-FB"!==e.tagName&&getHostSlotNodes(t,e.tagName).forEach(e=>{1===e.nodeType&&"SLOT-FB"===e.tagName&&(getSlotChildSiblings(e,getSlotName(e),!1).length?e.hidden=!0:e.hidden=!1)});let n=0;for(n=0;n<t.length;n++){const e=t[n];1===e.nodeType&&internalCall(e,"childNodes").length&&updateFallbackSlotVisibility(e)}},getSlottedChildNodes=e=>{const t=[];for(let n=0;n<e.length;n++){const s=e[n]["s-nr"]||void 0;s&&s.isConnected&&t.push(s)}return t};function getHostSlotNodes(e,t,n){let s,o=0,l=[];for(;o<e.length;o++){if(s=e[o],s["s-sr"]&&(!t||s["s-hn"]===t)&&(void 0===n||getSlotName(s)===n)&&(l.push(s),void 0!==n))return l;l=[...l,...getHostSlotNodes(s.childNodes,t,n)]}return l}var getSlotChildSiblings=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let o=e;for(;o=o.nextSibling;)getSlotName(o)!==t||!n&&o["s-sr"]||s.push(o);return s},isNodeLocatedInSlot=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,addSlotRelocateNode=(e,t,n,s)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=e,!t["s-cr"]||!t["s-cr"].parentNode)return;const l=t["s-cr"].parentNode;internalCall(l,n?"prepend":"appendChild").call(l,o),e["s-ol"]=o,e["s-sh"]=t["s-hn"]},getSlotName=e=>"string"==typeof e["s-sn"]?e["s-sn"]:1===e.nodeType&&e.getAttribute("slot")||void 0;function patchSlotNode(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[],s=this["s-sn"];(null==e?void 0:e.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 o=this["s-cr"].parentElement;return(o.__childNodes?o.childNodes:getSlottedChildNodes(o.childNodes)).forEach(e=>{s===getSlotName(e)&&n.push(e)}),t?n.filter(e=>1===e.nodeType):n}.bind(e);e.assignedElements=t(!0),e.assignedNodes=t(!1)}function dispatchSlotChangeEvent(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function findSlotFromSlottedNode(e,t){var n;if(!(t=t||(null==(n=e["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const s=e["s-sn"]=getSlotName(e)||"";return{slotNode:getHostSlotNodes(internalCall(t,"childNodes"),t.tagName,s)[0],slotName:s}}var patchPseudoShadowDom=e=>{patchCloneNode(e),patchSlotAppendChild(e),patchSlotAppend(e),patchSlotPrepend(e),patchSlotInsertAdjacentElement(e),patchSlotInsertAdjacentHTML(e),patchSlotInsertAdjacentText(e),patchInsertBefore(e),patchTextContent(e),patchChildSlotNodes(e),patchSlotRemoveChild(e)},patchCloneNode=e=>{if(e.__cloneNode)return;const t=e.__cloneNode=e.cloneNode;e.cloneNode=function(e){const n=this.shadowRoot&&supportsShadow,s=t.call(this,!!n&&e);if(!n&&e){let e,t,n=0;const o=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],l=this.__childNodes||this.childNodes;for(;n<l.length;n++)e=l[n]["s-nr"],t=o.every(e=>!l[n][e]),e&&(s.__appendChild?s.__appendChild(e.cloneNode(!0)):s.appendChild(e.cloneNode(!0))),t&&s.appendChild(l[n].cloneNode(!0))}return s}},patchSlotAppendChild=e=>{e.__appendChild||(e.__appendChild=e.appendChild,e.appendChild=function(e){const{slotName:t,slotNode:n}=findSlotFromSlottedNode(e,this);if(n){addSlotRelocateNode(e,n);const s=getSlotChildSiblings(n,t),o=s[s.length-1],l=internalCall(o,"parentNode"),r=internalCall(l,"insertBefore")(e,o.nextSibling);return dispatchSlotChangeEvent(n),updateFallbackSlotVisibility(this),r}return this.__appendChild(e)})},patchSlotRemoveChild=e=>{e.__removeChild||(e.__removeChild=e.removeChild,e.removeChild=function(e){return e&&void 0!==e["s-sn"]&&getHostSlotNodes(this.__childNodes||this.childNodes,this.tagName,e["s-sn"])&&e.isConnected?(e.remove(),void updateFallbackSlotVisibility(this)):this.__removeChild(e)})},patchSlotPrepend=e=>{e.__prepend||(e.__prepend=e.prepend,e.prepend=function(...t){t.forEach(t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t));const n=(t["s-sn"]=getSlotName(t))||"",s=getHostSlotNodes(internalCall(this,"childNodes"),this.tagName,n)[0];if(s){addSlotRelocateNode(t,s,!0);const e=getSlotChildSiblings(s,n)[0],o=internalCall(e,"parentNode"),l=internalCall(o,"insertBefore")(t,internalCall(e,"nextSibling"));return dispatchSlotChangeEvent(s),l}return 1===t.nodeType&&t.getAttribute("slot")&&(t.hidden=!0),e.__prepend(t)})})},patchSlotAppend=e=>{e.__append||(e.__append=e.append,e.append=function(...e){e.forEach(e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e)),this.appendChild(e)})})},patchSlotInsertAdjacentHTML=e=>{if(e.__insertAdjacentHTML)return;const t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,n){if("afterbegin"!==e&&"beforeend"!==e)return t.call(this,e,n);const s=this.ownerDocument.createElement("_");let o;if(s.innerHTML=n,"afterbegin"===e)for(;o=s.firstChild;)this.prepend(o);else if("beforeend"===e)for(;o=s.firstChild;)this.append(o)}},patchSlotInsertAdjacentText=e=>{e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}},patchInsertBefore=e=>{if(e.__insertBefore)return;const t=e;t.__insertBefore||(t.__insertBefore=e.insertBefore,e.insertBefore=function(e,t){const{slotName:n,slotNode:s}=findSlotFromSlottedNode(e,this),o=this.__childNodes?this.childNodes:getSlottedChildNodes(this.childNodes);if(s){let l=!1;if(o.forEach(o=>{if(o!==t&&null!==t);else{if(l=!0,null===t||n!==t["s-sn"])return void this.appendChild(e);if(n===t["s-sn"]){addSlotRelocateNode(e,s);const n=internalCall(t,"parentNode");internalCall(n,"insertBefore")(e,t),dispatchSlotChangeEvent(s)}}}),l)return e}const l=null==t?void 0:t.__parentNode;return l&&!this.isSameNode(l)?this.appendChild(e):this.__insertBefore(e,t)})},patchSlotInsertAdjacentElement=e=>{if(e.__insertAdjacentElement)return;const t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,n){return"afterbegin"!==e&&"beforeend"!==e?t.call(this,e,n):"afterbegin"===e?(this.prepend(n),n):"beforeend"===e?(this.append(n),n):n}},patchTextContent=e=>{patchHostOriginalAccessor("textContent",e),Object.defineProperty(e,"textContent",{get:function(){let e="";return(this.__childNodes?this.childNodes:getSlottedChildNodes(this.childNodes)).forEach(t=>e+=t.textContent||""),e},set:function(e){(this.__childNodes?this.childNodes:getSlottedChildNodes(this.childNodes)).forEach(e=>{e["s-ol"]&&e["s-ol"].remove(),e.remove()}),this.insertAdjacentHTML("beforeend",e)}})},patchChildSlotNodes=e=>{class t extends Array{item(e){return this[e]}}patchHostOriginalAccessor("children",e),Object.defineProperty(e,"children",{get(){return this.childNodes.filter(e=>1===e.nodeType)}}),Object.defineProperty(e,"childElementCount",{get(){return this.children.length}}),patchHostOriginalAccessor("firstChild",e),Object.defineProperty(e,"firstChild",{get(){return this.childNodes[0]}}),patchHostOriginalAccessor("lastChild",e),Object.defineProperty(e,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),patchHostOriginalAccessor("childNodes",e),Object.defineProperty(e,"childNodes",{get(){const e=new t;return e.push(...getSlottedChildNodes(this.__childNodes)),e}})},patchParentNode=e=>{e&&!e.__parentNode&&(patchHostOriginalAccessor("parentNode",e),Object.defineProperty(e,"parentNode",{get:function(){var e;return(null==(e=this["s-ol"])?void 0:e.parentNode)||this.__parentNode},set:function(e){this.__parentNode=e}}))},validElementPatches=["children","nextElementSibling","previousElementSibling"],validNodesPatches=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function patchHostOriginalAccessor(e,t){if(!globalThis.Node||!globalThis.Element)return;let n;validElementPatches.includes(e)?n=Object.getOwnPropertyDescriptor(Element.prototype,e):validNodesPatches.includes(e)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,e)),n||(n=Object.getOwnPropertyDescriptor(t,e)),n&&Object.defineProperty(t,"__"+e,n)}function internalCall(e,t){if("__"+t in e){const n=e["__"+t];return"function"!=typeof n?n:n.bind(e)}return"function"!=typeof e[t]?e[t]:e[t].bind(e)}var createTime=(e,t="")=>()=>{},uniqueTime=(e,t)=>()=>{};function queryNonceMetaTagContent(e){var t,n,s;return null!=(s=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?s:void 0}var contentRef,hostTagName,rootAppliedStyles=new WeakMap,registerStyle=(e,t,n)=>{let s=styles.get(e);supportsConstructableStylesheets&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=t:s.replaceSync(t)):s=t,styles.set(e,s)},addStyle=(e,t,n)=>{var s,o,l;const r=getScopeId(t),a=styles.get(r);if(!win.document)return r;if(e=11===e.nodeType?e:win.document,a)if("string"==typeof a){e=e.head||e;let n,l=rootAppliedStyles.get(e);if(l||rootAppliedStyles.set(e,l=new Set),!l.has(r)){n=win.document.createElement("style"),n.textContent=a;const i=null!=(s=plt.$nonce$)?s:queryNonceMetaTagContent(win.document);if(null!=i&&n.setAttribute("nonce",i),!(1&t.$flags$))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),s=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(n,(null==s?void 0:s.parentNode)===e?s:null)}else if("host"in e)if(supportsConstructableStylesheets){const t=new(null!=(o=e.defaultView)?o:e.ownerDocument.defaultView).CSSStyleSheet;t.replaceSync(a),supportsMutableAdoptedStyleSheets?e.adoptedStyleSheets.unshift(t):e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.textContent=a+t.textContent:e.prepend(n)}else e.append(n);1&t.$flags$&&e.insertBefore(n,null),4&t.$flags$&&(n.textContent+=SLOT_FB_CSS),l&&l.add(r)}}else{let t=rootAppliedStyles.get(e);if(t||rootAppliedStyles.set(e,t=new Set),!t.has(r)){const n=null!=(l=e.defaultView)?l:e.ownerDocument.defaultView;let s;if(a.constructor===n.CSSStyleSheet)s=a;else{s=new n.CSSStyleSheet;for(let e=0;e<a.cssRules.length;e++)s.insertRule(a.cssRules[e].cssText,e)}supportsMutableAdoptedStyleSheets?e.adoptedStyleSheets.push(s):e.adoptedStyleSheets=[...e.adoptedStyleSheets,s],t.add(r)}}return r},attachStyles=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,o=createTime("attachStyles",t.$tagName$),l=addStyle(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&s&&(n["s-sc"]=l,n.classList.add(l+"-h")),o()},getScopeId=(e,t)=>"sc-"+e.$tagName$,isComplexType=e=>"object"==(e=typeof e)||"function"===e,h=(e,t,...n)=>{"string"==typeof e&&(e=transformTag(e));let s=null,o=null,l=null,r=!1,a=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)s=t[n],Array.isArray(s)?c(s):null!=s&&"boolean"!=typeof s&&((r="function"!=typeof e&&!isComplexType(s))&&(s=String(s)),r&&a?i[i.length-1].$text$+=s:i.push(r?newVNode(null,s):s),a=r)};if(c(n),t){t.key&&(o=t.key),t.name&&(l=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,i,vdomFnUtils);const d=newVNode(e,null);return d.$attrs$=t,i.length>0&&(d.$children$=i),d.$key$=o,d.$name$=l,d},newVNode=(e,t)=>({$flags$:0,$tag$:e,$text$:null!=t?t:null,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Host={},isHost=e=>e&&e.$tag$===Host,vdomFnUtils={forEach:(e,t)=>e.map(convertToPublic).forEach(t),map:(e,t)=>e.map(convertToPublic).map(t).map(convertToPrivate)},convertToPublic=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),convertToPrivate=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),h(e.vtag,t,...e.vchildren||[])}const t=newVNode(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},parsePropertyValue=(e,t,n)=>null==e||isComplexType(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?"string"==typeof e?parseFloat(e):"number"==typeof e?e:NaN:1&t?String(e):e,getElement=e=>{var t;return null==(t=getHostRef(e))?void 0:t.$hostElement$},createEvent=(e,t,n)=>{const s=getElement(e);return{emit:e=>emitEvent(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}},emitEvent=(e,t,n)=>{const s=plt.ce(t,n);return e.dispatchEvent(s),s},setAccessor=(e,t,n,s,o,l,r)=>{if(n===s)return;let a=isMemberInElement(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=parseClassList(n);let l=parseClassList(s);t.remove(...o.filter(e=>e&&!l.includes(e))),t.add(...l.filter(e=>e&&!o.includes(e)))}else if("style"===t){for(const t in n)s&&null!=s[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in s)n&&s[t]===n[t]||(t.includes("-")?e.style.setProperty(t,s[t]):e.style[t]=s[t])}else if("key"===t);else if("ref"===t)s&&queueRefAttachment(s,e);else if(a||"o"!==t[0]||"n"!==t[1]){const r=isComplexType(s);if(a||r&&null!==s)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const o=null==s?"":s;"list"===t?a=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}let c=!1;i!==(i=i.replace(/^xlink\:?/,""))&&(t=i,c=!0),null==s||!1===s?!1===s&&""!==e.getAttribute(t)||(c?e.removeAttributeNS(XLINK_NS,t):e.removeAttribute(t)):(!a||4&l||o)&&!r&&1===e.nodeType&&(s=!0===s?"":s,c?e.setAttributeNS(XLINK_NS,t,s):e.setAttribute(t,s))}else if(t="-"===t[2]?t.slice(3):isMemberInElement(win,i)?i.slice(2):i[2]+t.slice(3),n||s){const o=t.endsWith(CAPTURE_EVENT_SUFFIX);t=t.replace(CAPTURE_EVENT_REGEX,""),n&&plt.rel(e,t,n,o),s&&plt.ael(e,t,s,o)}},parseClassListRegex=/\s/,parseClassList=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(parseClassListRegex):[]),CAPTURE_EVENT_SUFFIX="Capture",CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$"),updateElement=(e,t,n,s)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,l=e&&e.$attrs$||{},r=t.$attrs$||{};for(const e of sortedAttrNames(Object.keys(l)))e in r||setAccessor(o,e,l[e],void 0,n,t.$flags$);for(const e of sortedAttrNames(Object.keys(r)))setAccessor(o,e,l[e],r[e],n,t.$flags$)};function sortedAttrNames(e){return e.includes("ref")?[...e.filter(e=>"ref"!==e),"ref"]:e}var useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,refCallbacksToRemove=[],refCallbacksToAttach=[],createElm=(e,t,n)=>{var s;const o=t.$children$[n];let l,r,a,i=0;if(useNativeShadowDom||(checkSlotRelocate=!0,"slot"===o.$tag$&&(o.$flags$|=o.$children$?2:1)),null!=o.$text$)l=o.$elm$=win.document.createTextNode(o.$text$);else if(1&o.$flags$)l=o.$elm$=win.document.createTextNode(""),updateElement(null,o,isSvgMode);else{if(!win.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.$elm$=win.document.createElement(!useNativeShadowDom&&BUILD.slotRelocation&&2&o.$flags$?"slot-fb":o.$tag$),updateElement(null,o,isSvgMode),o.$children$){const t="template"===o.$tag$?l.content:l;for(i=0;i<o.$children$.length;++i)r=createElm(e,o,i),r&&t.appendChild(r)}}return l["s-hn"]=hostTagName,3&o.$flags$&&(l["s-sr"]=!0,l["s-cr"]=contentRef,l["s-sn"]=o.$name$||"",l["s-rf"]=null==(s=o.$attrs$)?void 0:s.ref,patchSlotNode(l),a=e&&e.$children$&&e.$children$[n],a&&a.$tag$===o.$tag$&&e.$elm$&&relocateToHostRoot(e.$elm$)),l},relocateToHostRoot=e=>{plt.$flags$|=1;const t=e.closest(hostTagName.toLowerCase());if(null!=t){const n=Array.from(t.__childNodes||t.childNodes).find(e=>e["s-cr"]),s=Array.from(e.__childNodes||e.childNodes);for(const e of n?s.reverse():s)null!=e["s-sh"]&&(insertBefore(t,e,null!=n?n:null),e["s-sh"]=void 0,checkSlotRelocate=!0)}plt.$flags$&=-2},putBackInOriginalLocation=(e,t)=>{plt.$flags$|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let t=e;for(;t=t.nextSibling;)t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===hostTagName&&n.push(t)}for(let e=n.length-1;e>=0;e--){const s=n[e];s["s-hn"]!==hostTagName&&s["s-ol"]&&(insertBefore(referenceNode(s).parentNode,s,referenceNode(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,checkSlotRelocate=!0),t&&putBackInOriginalLocation(s,t)}plt.$flags$&=-2},addVnodes=(e,t,n,s,o,l)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===hostTagName&&(a=a.shadowRoot),"template"===n.$tag$&&(a=a.content);o<=l;++o)s[o]&&(r=createElm(null,n,o),r&&(s[o].$elm$=r,insertBefore(a,r,referenceNode(t))))},removeVnodes=(e,t,n)=>{for(let s=t;s<=n;++s){const t=e[s];if(t){const e=t.$elm$;nullifyVNodeRefs(t),e&&(checkSlotFallbackVisibility=!0,e["s-ol"]?e["s-ol"].remove():putBackInOriginalLocation(e,!0),e.remove())}}},updateChildren=(e,t,n,s,o=!1)=>{let l,r,a=0,i=0,c=0,d=0,$=t.length-1,h=t[0],p=t[$],u=s.length-1,f=s[0],m=s[u];const g="template"===n.$tag$?e.content:e;for(;a<=$&&i<=u;)if(null==h)h=t[++a];else if(null==p)p=t[--$];else if(null==f)f=s[++i];else if(null==m)m=s[--u];else if(isSameVnode(h,f,o))patch(h,f,o),h=t[++a],f=s[++i];else if(isSameVnode(p,m,o))patch(p,m,o),p=t[--$],m=s[--u];else if(isSameVnode(h,m,o))"slot"!==h.$tag$&&"slot"!==m.$tag$||putBackInOriginalLocation(h.$elm$.parentNode,!1),patch(h,m,o),insertBefore(g,h.$elm$,p.$elm$.nextSibling),h=t[++a],m=s[--u];else if(isSameVnode(p,f,o))"slot"!==h.$tag$&&"slot"!==m.$tag$||putBackInOriginalLocation(p.$elm$.parentNode,!1),patch(p,f,o),insertBefore(g,p.$elm$,h.$elm$),p=t[--$],f=s[++i];else{for(c=-1,d=a;d<=$;++d)if(t[d]&&null!==t[d].$key$&&t[d].$key$===f.$key$){c=d;break}c>=0?(r=t[c],r.$tag$!==f.$tag$?l=createElm(t&&t[i],n,c):(patch(r,f,o),t[c]=void 0,l=r.$elm$),f=s[++i]):(l=createElm(t&&t[i],n,i),f=s[++i]),l&&insertBefore(referenceNode(h.$elm$).parentNode,l,referenceNode(h.$elm$))}a>$?addVnodes(e,null==s[u+1]?null:s[u+1].$elm$,n,s,i,u):i>u&&removeVnodes(t,a,$)},isSameVnode=(e,t,n=!1)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:n?(n&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$),referenceNode=e=>e&&e["s-ol"]||e,patch=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,o=e.$children$,l=t.$children$,r=t.$tag$,a=t.$text$;let i;null==a?("slot"!==r||useNativeShadowDom||e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",relocateToHostRoot(t.$elm$.parentElement)),updateElement(e,t,isSvgMode),null!==o&&null!==l?updateChildren(s,o,t,l,n):null!==l?(null!==e.$text$&&(s.textContent=""),addVnodes(s,null,t,l,0,l.length-1)):!n&&BUILD.updatable&&null!==o&&removeVnodes(o,0,o.length-1)):(i=s["s-cr"])?i.parentNode.textContent=a:e.$text$!==a&&(s.data=a)},relocateNodes=[],markSlotContentForRelocation=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const e of o){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const o=e["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===e["s-hn"]||t["s-sh"]&&t["s-sh"]===e["s-hn"]))if(isNodeLocatedInSlot(t,o)){let n=relocateNodes.find(e=>e.$nodeToRelocate$===t);checkSlotFallbackVisibility=!0,t["s-sn"]=t["s-sn"]||o,n?(n.$nodeToRelocate$["s-sh"]=e["s-hn"],n.$slotRefNode$=e):(t["s-sh"]=e["s-hn"],relocateNodes.push({$slotRefNode$:e,$nodeToRelocate$:t})),t["s-sr"]&&relocateNodes.map(e=>{isNodeLocatedInSlot(e.$nodeToRelocate$,t["s-sn"])&&(n=relocateNodes.find(e=>e.$nodeToRelocate$===t),n&&!e.$slotRefNode$&&(e.$slotRefNode$=n.$slotRefNode$))})}else relocateNodes.some(e=>e.$nodeToRelocate$===t)||relocateNodes.push({$nodeToRelocate$:t})}1===e.nodeType&&markSlotContentForRelocation(e)}},nullifyVNodeRefs=e=>{e.$attrs$&&e.$attrs$.ref&&refCallbacksToRemove.push(()=>e.$attrs$.ref(null)),e.$children$&&e.$children$.map(nullifyVNodeRefs)},queueRefAttachment=(e,t)=>{refCallbacksToAttach.push(()=>e(t))},flushQueuedRefCallbacks=()=>{refCallbacksToRemove.forEach(e=>e()),refCallbacksToRemove.length=0,refCallbacksToAttach.forEach(e=>e()),refCallbacksToAttach.length=0},insertBefore=(e,t,n,s)=>{if("string"==typeof t["s-sn"]){11!==e.getRootNode().nodeType&&patchParentNode(t),e.insertBefore(t,n);const{slotNode:o}=findSlotFromSlottedNode(t);return o&&!s&&dispatchSlotChangeEvent(o),t}return e.__insertBefore?e.__insertBefore(t,n):null==e?void 0:e.insertBefore(t,n)},renderVdom=(e,t,n=!1)=>{var s,o,l,r,a;const i=e.$hostElement$,c=e.$cmpMeta$,d=e.$vnode$||newVNode(null,null),$=isHost(t)?t:h(null,null,t);if(hostTagName=i.tagName,n&&$.$attrs$)for(const e of Object.keys($.$attrs$))i.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&($.$attrs$[e]=i[e]);if($.$tag$=null,$.$flags$|=4,e.$vnode$=$,$.$elm$=d.$elm$=i.shadowRoot||i,useNativeShadowDom=!(!(1&c.$flags$)||128&c.$flags$),contentRef=i["s-cr"],checkSlotFallbackVisibility=!1,patch(d,$,n),plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation($.$elm$);for(const e of relocateNodes){const t=e.$nodeToRelocate$;if(!t["s-ol"]&&win.document){const e=win.document.createTextNode("");e["s-nr"]=t,insertBefore(t.parentNode,t["s-ol"]=e,t,n)}}for(const e of relocateNodes){const t=e.$nodeToRelocate$,a=e.$slotRefNode$;if(1===t.nodeType&&n&&(t["s-ih"]=null!=(s=t.hidden)&&s),a){const e=a.parentNode;let s=a.nextSibling;if(s&&1===s.nodeType){let n=null==(o=t["s-ol"])?void 0:o.previousSibling;for(;n;){let o=null!=(l=n["s-nr"])?l:null;if(o&&o["s-sn"]===t["s-sn"]&&e===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===t||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){s=o;break}}n=n.previousSibling}}const i=t.__parentNode||t.parentNode,c=t.__nextSibling||t.nextSibling;if((!s&&e!==i||c!==s)&&t!==s){if(insertBefore(e,t,s,n),8===t.nodeType&&t.nodeValue.startsWith("s-nt-")){const e=win.document.createTextNode(t.nodeValue.replace(/^s-nt-/,""));e["s-hn"]=t["s-hn"],e["s-sn"]=t["s-sn"],e["s-sh"]=t["s-sh"],e["s-sr"]=t["s-sr"],e["s-ol"]=t["s-ol"],e["s-ol"]["s-nr"]=e,insertBefore(t.parentNode,e,t,n),t.parentNode.removeChild(t)}1===t.nodeType&&"SLOT-FB"!==t.tagName&&(t.hidden=null!=(r=t["s-ih"])&&r)}t&&"function"==typeof a["s-rf"]&&a["s-rf"](a)}else 1===t.nodeType&&(t.hidden=!0)}}if(checkSlotFallbackVisibility&&updateFallbackSlotVisibility($.$elm$),plt.$flags$&=-2,relocateNodes.length=0,!useNativeShadowDom&&!(1&c.$flags$)&&i["s-cr"]){const e=$.$elm$.__childNodes||$.$elm$.childNodes;for(const t of e)if(t["s-hn"]!==hostTagName&&!t["s-sh"])if(n&&null==t["s-ih"]&&(t["s-ih"]=null!=(a=t.hidden)&&a),1===t.nodeType)t.hidden=!0;else if(3===t.nodeType&&t.nodeValue.trim()){const e=win.document.createComment("s-nt-"+t.nodeValue);e["s-sn"]=t["s-sn"],insertBefore(t.parentNode,e,t,n),t.parentNode.removeChild(t)}}contentRef=void 0,flushQueuedRefCallbacks()},attachToAncestor=(e,t)=>{if(t&&!e.$onRenderResolve$&&t["s-p"]){const n=t["s-p"].push(new Promise(s=>e.$onRenderResolve$=()=>{t["s-p"].splice(n-1,1),s()}))}},scheduleUpdate=(e,t)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);attachToAncestor(e,e.$ancestorComponent$);const n=()=>dispatchHooks(e,t);if(!t)return writeTask(n);queueMicrotask(()=>{n()})},dispatchHooks=(e,t)=>{const n=e.$hostElement$,s=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$),o=e.$lazyInstance$;if(!o)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 l;return t?(e.$deferredConnectedCallback$&&(e.$deferredConnectedCallback$=!1,safeCall(o,"connectedCallback",void 0,n)),e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>safeCall(o,e,t,n)),e.$queuedListeners$=void 0),e.$fetchedCbList$.length&&e.$fetchedCbList$.forEach(e=>e(n)),l=safeCall(o,"componentWillLoad",void 0,n)):l=safeCall(o,"componentWillUpdate",void 0,n),l=enqueue(l,()=>safeCall(o,"componentWillRender",void 0,n)),s(),enqueue(l,()=>updateComponent(e,o,t))},enqueue=(e,t)=>isPromisey(e)?e.then(t).catch(e=>{console.error(e),t()}):t(),isPromisey=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,updateComponent=async(e,t,n)=>{var s;const o=e.$hostElement$,l=createTime("update",e.$cmpMeta$.$tagName$),r=o["s-rc"];n&&attachStyles(e);const a=createTime("render",e.$cmpMeta$.$tagName$);callRender(e,t,o,n),r&&(r.map(e=>e()),o["s-rc"]=void 0),a(),l();{const t=null!=(s=o["s-p"])?s:[],n=()=>postUpdateComponent(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},callRender=(e,t,n,s)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,renderVdom(e,t,s)}catch(t){consoleError(t,e.$hostElement$)}return null},postUpdateComponent=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=createTime("postUpdate",t),o=e.$lazyInstance$,l=e.$ancestorComponent$;safeCall(o,"componentDidRender",void 0,n),64&e.$flags$?(safeCall(o,"componentDidUpdate",void 0,n),s()):(e.$flags$|=64,addHydratedFlag(n),safeCall(o,"componentDidLoad",void 0,n),s(),e.$onReadyResolve$(n),l||appDidLoad()),e.$onInstanceResolve$(n),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&nextTick(()=>scheduleUpdate(e,!1)),e.$flags$&=-517},appDidLoad=e=>{nextTick(()=>emitEvent(win,"appload",{detail:{namespace:NAMESPACE}}))},safeCall=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(e){consoleError(e,s)}},addHydratedFlag=e=>{var t;return e.classList.add(null!=(t=BUILD.hydratedSelectorName)?t:"hydrated")},getValue=(e,t)=>getHostRef(e).$instanceValues$.get(t),setValue=(e,t,n,s)=>{const o=getHostRef(e);if(!o)return;if(!o)throw new Error(`Couldn't find host element for "${s.$tagName$}" 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 l=o.$hostElement$,r=o.$instanceValues$.get(t),a=o.$flags$,i=o.$lazyInstance$;n=parsePropertyValue(n,s.$members$[t][0]);const c=Number.isNaN(r)&&Number.isNaN(n);if(!(8&a&&void 0!==r||n===r||c)){if(o.$instanceValues$.set(t,n),s.$watchers$){const e=s.$watchers$[t];e&&e.map(e=>{try{const[[s,l]]=Object.entries(e);(128&a||1&l)&&(i?i[s](n,r,t):o.$fetchedCbList$.push(()=>{o.$lazyInstance$[s](n,r,t)}))}catch(e){consoleError(e,l)}})}if(2==(18&a)){if(i.componentShouldUpdate&&!1===i.componentShouldUpdate(n,r,t))return;scheduleUpdate(o,!1)}}},proxyComponent=(e,t,n)=>{var s,o;const l=e.prototype;if(t.$members$||BUILD.propChangeCallback){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers),e.deserializers&&!t.$deserializers$&&(t.$deserializers$=e.deserializers),e.serializers&&!t.$serializers$&&(t.$serializers$=e.serializers);const r=Object.entries(null!=(s=t.$members$)?s:{});if(r.map(([e,[s]])=>{if(31&s||2&n&&32&s){const{get:o,set:r}=Object.getOwnPropertyDescriptor(l,e)||{};o&&(t.$members$[e][0]|=2048),r&&(t.$members$[e][0]|=4096),(1&n||!o)&&Object.defineProperty(l,e,{get(){{if(!(2048&t.$members$[e][0]))return getValue(this,e);const n=getHostRef(this),s=n?n.$lazyInstance$:l;if(!s)return;return s[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(l,e,{set(o){const l=getHostRef(this);if(l){if(r)return void 0===(32&s?this[e]:l.$hostElement$[e])&&l.$instanceValues$.get(e)&&(o=l.$instanceValues$.get(e)),r.apply(this,[parsePropertyValue(o,s)]),o=32&s?this[e]:l.$hostElement$[e],void setValue(this,e,o,t);{if(!(1&n&&4096&t.$members$[e][0]))return setValue(this,e,o,t),void(1&n&&!l.$lazyInstance$&&l.$fetchedCbList$.push(()=>{4096&t.$members$[e][0]&&l.$lazyInstance$[e]!==l.$instanceValues$.get(e)&&(l.$lazyInstance$[e]=o)}));const r=()=>{const n=l.$lazyInstance$[e];!l.$instanceValues$.get(e)&&n&&l.$instanceValues$.set(e,n),l.$lazyInstance$[e]=parsePropertyValue(o,s),setValue(this,e,l.$lazyInstance$[e],t)};l.$lazyInstance$?r():l.$fetchedCbList$.push(()=>{r()})}}}})}else 1&n&&64&s&&Object.defineProperty(l,e,{value(...t){var n;const s=getHostRef(this);return null==(n=null==s?void 0:s.$onInstancePromise$)?void 0:n.then(()=>{var n;return null==(n=s.$lazyInstance$)?void 0:n[e](...t)})}})}),1&n){const n=new Map;l.attributeChangedCallback=function(e,s,o){plt.jmp(()=>{var a;const i=n.get(e),c=getHostRef(this);if(this.hasOwnProperty(i)&&BUILD.lazyLoad&&(o=this[i],delete this[i]),l.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const n=null==c?void 0:c.$flags$;if(c&&n&&!(8&n)&&o!==s){const l=c.$lazyInstance$,r=null==(a=t.$watchers$)?void 0:a[e];null==r||r.forEach(t=>{const[[r,a]]=Object.entries(t);null!=l[r]&&(128&n||1&a)&&l[r].call(l,o,s,e)})}return}const d=r.find(([e])=>e===i);d&&4&d[1][0]&&(o=null!==o&&"false"!==o);const $=Object.getOwnPropertyDescriptor(l,i);o==this[i]||$.get&&!$.set||(this[i]=o)})},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=t.$watchers$)?o:{}),...r.filter(([e,t])=>31&t[0]).map(([e,t])=>{const s=t[1]||e;return n.set(s,e),s})]))}}return e},initializeComponent=async(e,t,n,s)=>{let o;if(!(32&t.$flags$)){if(t.$flags$|=32,n.$lazyBundleId$){const s=loadModule(n,t);if(s&&"then"in s){const e=uniqueTime();o=await s,e()}else o=s;if(!o)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);o.isProxied||(n.$watchers$=o.watchers,n.$serializers$=o.serializers,n.$deserializers$=o.deserializers,proxyComponent(o,n,2),o.isProxied=!0);const l=createTime("createInstance",n.$tagName$);t.$flags$|=8;try{new o(t)}catch(t){consoleError(t,e)}t.$flags$&=-9,t.$flags$|=128,l(),4&n.$flags$?t.$deferredConnectedCallback$=!0:fireConnectedCallback(t.$lazyInstance$,e)}else{o=e.constructor;const n=e.localName;customElements.whenDefined(n).then(()=>t.$flags$|=128)}if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=getScopeId(n);if(!styles.has(t)||BUILD.hotModuleReplacement){const s=createTime("registerStyles",n.$tagName$);registerStyle(t,e,!!(1&n.$flags$)),s()}}}const l=t.$ancestorComponent$,r=()=>scheduleUpdate(t,!0);l&&l["s-rc"]?l["s-rc"].push(r):r()},fireConnectedCallback=(e,t)=>{safeCall(e,"connectedCallback",void 0,t)},connectedCallback=e=>{if(!(1&plt.$flags$)){const t=getHostRef(e);if(!t)return;const n=t.$cmpMeta$,s=createTime("connectedCallback",n.$tagName$);if(1&t.$flags$)addHostEventListeners(e,t,n.$listeners$),(null==t?void 0:t.$lazyInstance$)?fireConnectedCallback(t.$lazyInstance$,e):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>fireConnectedCallback(t.$lazyInstance$,e));else{t.$flags$|=1,12&n.$flags$&&setContentReference(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){attachToAncestor(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&t in e&&e[t]!==Object.prototype[t]){const n=e[t];delete e[t],e[t]=n}}),initializeComponent(e,t,n)}s()}},setContentReference=e=>{if(!win.document)return;const t=e["s-cr"]=win.document.createComment("");t["s-cn"]=!0,insertBefore(e,t,e.firstChild)},disconnectInstance=(e,t)=>{safeCall(e,"disconnectedCallback",void 0,t||e)},disconnectedCallback=async e=>{if(!(1&plt.$flags$)){const t=getHostRef(e);(null==t?void 0:t.$rmListeners$)&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),(null==t?void 0:t.$lazyInstance$)?disconnectInstance(t.$lazyInstance$,e):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>disconnectInstance(t.$lazyInstance$,e))}rootAppliedStyles.has(e)&&rootAppliedStyles.delete(e),e.shadowRoot&&rootAppliedStyles.has(e.shadowRoot)&&rootAppliedStyles.delete(e.shadowRoot)},bootstrapLazy=(e,t={})=>{var n;if(!win.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const s=createTime(),o=[],l=t.exclude||[],r=win.customElements,a=win.document.head,i=a.querySelector("meta[charset]"),c=win.document.createElement("style"),d=[];let $,h=!0;Object.assign(plt,t),plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",win.document.baseURI).href;let p=!1;if(e.map(e=>{e[1].map(t=>{var n,s,a;const i={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};4&i.$flags$&&(p=!0),i.$members$=t[2],i.$listeners$=t[3],i.$watchers$=null!=(n=t[4])?n:{},i.$serializers$=null!=(s=t[5])?s:{},i.$deserializers$=null!=(a=t[6])?a:{};const c=transformTag(i.$tagName$),u=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(e){if(super(e),registerHost(e=this,i),1&i.$flags$)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${i.$tagName$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else createShadowRoot.call(e,i)}connectedCallback(){const e=getHostRef(this);e&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,addHostEventListeners(this,e,i.$listeners$)),$&&(clearTimeout($),$=null),h?d.push(this):plt.jmp(()=>connectedCallback(this)))}disconnectedCallback(){plt.jmp(()=>disconnectedCallback(this)),plt.raf(()=>{var e;const t=getHostRef(this);if(!t)return;const n=d.findIndex(e=>e===this);n>-1&&d.splice(n,1),(null==(e=null==t?void 0:t.$vnode$)?void 0:e.$elm$)instanceof Node&&!t.$vnode$.$elm$.isConnected&&delete t.$vnode$.$elm$})}componentOnReady(){var e;return null==(e=getHostRef(this))?void 0:e.$onReadyPromise$}};!(1&i.$flags$)&&256&i.$flags$?patchPseudoShadowDom(u.prototype):patchCloneNode(u.prototype),i.$lazyBundleId$=e[0],l.includes(c)||r.get(c)||(o.push(c),r.define(c,proxyComponent(u,i,1)))})}),o.length>0&&(p&&(c.textContent+=SLOT_FB_CSS),c.textContent+=o.sort()+HYDRATED_CSS,c.innerHTML.length)){c.setAttribute("data-styles","");const e=null!=(n=plt.$nonce$)?n:queryNonceMetaTagContent(win.document);null!=e&&c.setAttribute("nonce",e),a.insertBefore(c,i?i.nextSibling:a.firstChild)}h=!1,d.length?d.map(e=>e.connectedCallback()):plt.jmp(()=>$=setTimeout(appDidLoad,30)),s()},Fragment=(e,t)=>t,addHostEventListeners=(e,t,n,s)=>{n&&win.document&&n.map(([n,s,o])=>{const l=getHostListenerTarget(win.document,e,n),r=hostListenerProxy(t,o),a=hostListenerOpts(n);plt.ael(l,s,r,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>plt.rel(l,s,r,a))})},hostListenerProxy=(e,t)=>n=>{var s;try{256&e.$flags$?null==(s=e.$lazyInstance$)||s[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(t){consoleError(t,e.$hostElement$)}},getHostListenerTarget=(e,t,n)=>4&n?e:8&n?win:16&n?e.body:t,hostListenerOpts=e=>supportsListenerOptions?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e),setNonce=e=>plt.$nonce$=e;function transformTag(e){return e}export{Fragment as F,H,Host as a,bootstrapLazy as b,createEvent as c,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};