@ionic/core
Version:
Base components for Ionic
5 lines • 38.5 kB
JavaScript
import{__assign,__awaiter,__extends,__generator,__spreadArray}from"tslib";
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/var NAMESPACE="ionic";var BUILD={allRenderFn:false,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:true,experimentalSlotFixes:true,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,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:true,mode:true,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:true,scriptDataOpts:false,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var __defProp=Object.defineProperty;var __export=function(e,t){for(var r in t)__defProp(e,r,{get:t[r],enumerable:true})};var Build={isDev:false,isBrowser:true,isServer:false,isTesting:false};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.t=e,t)};var registerHost=function(e,t){var r={i:0,$hostElement$:e,o:t,l:new Map};{r.u=new Promise((function(e){return r.v=e}))}{r.p=new Promise((function(e){return r.h=e}));e["s-p"]=[];e["s-rc"]=[]}return hostRefs.set(e,r)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,r){var n=e.m.replace(/-/g,"_");var a=e.S;if(!a){return void 0}var i=cmpModules.get(a);if(i){return i[n]}
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[n]}),consoleError)};var styles=new Map;var modeResolutionChain=[];var CONTENT_REF_ID="r";var ORG_LOCATION_ID="o";var SLOT_NODE_ID="s";var TEXT_NODE_ID="t";var HYDRATE_ID="s-id";var HYDRATED_STYLE_ID="sty-id";var HYDRATE_CHILD_ID="c-id";var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var XLINK_NS="http://www.w3.org/1999/xlink";var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var H=win.HTMLElement||function(){function e(){}return e}();var plt={i:0,_:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var supportsShadow=BUILD.shadowDom;var supportsListenerOptions=function(){var e=false;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(e){}return e}();var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(r){e.push(r);if(!queuePending){queuePending=true;if(t&&plt.i&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var readTask=queueTask(queueDomReads,false);var writeTask=queueTask(queueDomWrites,true);var getAssetPath=function(e){var t=new URL(e,plt._);return t.origin!==win.location.origin?t.href:t.pathname};var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var t,r,n;return(n=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?n:void 0}var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,t){if(e.isOk){var r=t(e.value);if(r instanceof Promise){return r.then((function(e){return ok(e)}))}else{return ok(r)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var h=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var i=null;var o=null;var l=false;var s=false;var u=[];var f=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(l&&s){u[u.length-1].C+=a}else{u.push(l?newVNode(null,a):a)}s=l}}};f(r);if(t){if(t.key){i=t.key}if(t.name){o=t.name}{var c=t.className||t.class;if(c){t.class=typeof c!=="object"?c:Object.keys(c).filter((function(e){return c[e]})).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,u,vdomFnUtils)}var v=newVNode(e,null);v.T=t;if(u.length>0){v.N=u}{v.R=i}{v.$=o}return v};var newVNode=function(e,t){var r={i:0,D:e,C:t,k:null,N:null};{r.T=null}{r.R=null}{r.$=null}return r};var Host={};var isHost=function(e){return e&&e.D===Host};var vdomFnUtils={forEach:function(e,t){return e.map(convertToPublic).forEach(t)},map:function(e,t){return e.map(convertToPublic).map(t).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.T,vchildren:e.N,vkey:e.R,vname:e.$,vtag:e.D,vtext:e.C}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var t=__assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[],false))}var r=newVNode(e.vtag,e.vtext);r.T=e.vattrs;r.N=e.vchildren;r.R=e.vkey;r.$=e.vname;return r};var initializeClientHydrate=function(e,t,r,n){var a=createTime("hydrateClient",t);var i=e.shadowRoot;var o=[];var l=[];var s=i?[]:null;var u=n.I=newVNode(t,null);if(!plt.A){initializeDocumentHydrate(doc.body,plt.A=new Map)}e[HYDRATE_ID]=r;e.removeAttribute(HYDRATE_ID);clientHydrate(u,o,l,s,e,e,r);o.map((function(e){var r=e.H+"."+e.L;var n=plt.A.get(r);var a=e.k;if(n&&supportsShadow&&n["s-en"]===""){n.parentNode.insertBefore(a,n.nextSibling)}if(!i){a["s-hn"]=t;if(n){a["s-ol"]=n;a["s-ol"]["s-nr"]=a}}plt.A.delete(r)}));if(i){s.map((function(e){if(e){i.appendChild(e)}}))}a()};var clientHydrate=function(e,t,r,n,a,i,o){var l;var s;var u;var f;if(i.nodeType===1){l=i.getAttribute(HYDRATE_CHILD_ID);if(l){s=l.split(".");if(s[0]===o||s[0]==="0"){u={i:0,H:s[0],L:s[1],O:s[2],M:s[3],D:i.tagName.toLowerCase(),k:i,T:null,N:null,R:null,$:null,C:null};t.push(u);i.removeAttribute(HYDRATE_CHILD_ID);if(!e.N){e.N=[]}e.N[u.M]=u;e=u;if(n&&u.O==="0"){n[u.M]=u.k}}}if(i.shadowRoot){for(f=i.shadowRoot.childNodes.length-1;f>=0;f--){clientHydrate(e,t,r,n,a,i.shadowRoot.childNodes[f],o)}}for(f=i.childNodes.length-1;f>=0;f--){clientHydrate(e,t,r,n,a,i.childNodes[f],o)}}else if(i.nodeType===8){s=i.nodeValue.split(".");if(s[1]===o||s[1]==="0"){l=s[0];u={i:0,H:s[1],L:s[2],O:s[3],M:s[4],k:i,T:null,N:null,R:null,$:null,D:null,C:null};if(l===TEXT_NODE_ID){u.k=i.nextSibling;if(u.k&&u.k.nodeType===3){u.C=u.k.textContent;t.push(u);i.remove();if(!e.N){e.N=[]}e.N[u.M]=u;if(n&&u.O==="0"){n[u.M]=u.k}}}else if(u.H===o){if(l===SLOT_NODE_ID){u.D="slot";if(s[5]){i["s-sn"]=u.$=s[5]}else{i["s-sn"]=""}i["s-sr"]=true;if(n){u.k=doc.createElement(u.D);if(u.$){u.k.setAttribute("name",u.$)}i.parentNode.insertBefore(u.k,i);i.remove();if(u.O==="0"){n[u.M]=u.k}}r.push(u);if(!e.N){e.N=[]}e.N[u.M]=u}else if(l===CONTENT_REF_ID){if(n){i.remove()}else{a["s-cr"]=i;i["s-cn"]=true}}}}}else if(e&&e.D==="style"){var c=newVNode(null,i.textContent);c.k=i;c.M="0";e.N=[c]}};var initializeDocumentHydrate=function(e,t){if(e.nodeType===1){var r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){initializeDocumentHydrate(e.shadowRoot.childNodes[r],t)}}for(r=0;r<e.childNodes.length;r++){initializeDocumentHydrate(e.childNodes[r],t)}}else if(e.nodeType===8){var n=e.nodeValue.split(".");if(n[0]===ORG_LOCATION_ID){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var computeMode=function(e){return modeResolutionChain.map((function(t){return t(e)})).find((function(e){return!!e}))};var setMode=function(e){return modeResolutionChain.push(e)};var getMode=function(e){return getHostRef(e).V};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(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 getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,r){var n=getElement(e);return{emit:function(e){return emitEvent(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}};var emitEvent=function(e,t,r){var n=plt.ce(t,r);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,r){var n=styles.get(e);if(supportsConstructableStylesheets&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}styles.set(e,n)};var addStyle=function(e,t,r){var n;var a=getScopeId(t,r);var i=styles.get(a);e=e.nodeType===11?e:doc;if(i){if(typeof i==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var l=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(a)){if(e.host&&(l=e.querySelector("[".concat(HYDRATED_STYLE_ID,'="').concat(a,'"]')))){l.innerHTML=i}else{l=doc.createElement("style");l.innerHTML=i;var s=(n=plt.P)!=null?n:queryNonceMetaTagContent(doc);if(s!=null){l.setAttribute("nonce",s)}var u=!(t.i&1)||t.i&1&&e.nodeName!=="HEAD";if(u){e.insertBefore(l,e.querySelector("link"))}}if(t.i&4){l.innerHTML+=SLOT_FB_CSS}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var attachStyles=function(e){var t=e.o;var r=e.$hostElement$;var n=t.i;var a=createTime("attachStyles",t.m);var i=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),t,e.V);if(n&10&&n&2){r["s-sc"]=i;r.classList.add(i+"-h");if(n&2){r.classList.add(i+"-s")}}a()};var getScopeId=function(e,t){return"sc-"+(t&&e.i&32?e.m+"-"+t:e.m)};var setAccessor=function(e,t,r,n,a,i){if(r!==n){var o=isMemberInElement(e,t);var l=t.toLowerCase();if(t==="class"){var s=e.classList;var u=parseClassList(r);var f=parseClassList(n);s.remove.apply(s,u.filter((function(e){return e&&!f.includes(e)})));s.add.apply(s,f.filter((function(e){return e&&!u.includes(e)})))}else if(t==="style"){{for(var c in r){if(!n||n[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in n){if(!r||n[c]!==r[c]){if(c.includes("-")){e.style.setProperty(c,n[c])}else{e.style[c]=n[c]}}}}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,l)){t=l.slice(2)}else{t=l[2]+t.slice(3)}if(r||n){var v=t.endsWith(CAPTURE_EVENT_SUFFIX);t=t.replace(CAPTURE_EVENT_REGEX,"");if(r){plt.rel(e,t,r,v)}if(n){plt.ael(e,t,n,v)}}}else{var d=isComplexType(n);if((o||d&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var p=n==null?"":n;if(t==="list"){o=false}else if(r==null||e[t]!=p){e[t]=p}}else{e[t]=n}}catch(e){}}var h=false;{if(l!==(l=l.replace(/^xlink\:?/,""))){t=l;h=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(h){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!o||i&4||a)&&!d){n=n===true?"":n;if(h){e.setAttributeNS(XLINK_NS,t,n)}else{e.setAttribute(t,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,t,r){var n=t.k.nodeType===11&&t.k.host?t.k.host:t.k;var a=e&&e.T||EMPTY_OBJ;var i=t.T||EMPTY_OBJ;{for(var o=0,l=sortedAttrNames(Object.keys(a));o<l.length;o++){var s=l[o];if(!(s in i)){setAccessor(n,s,a[s],void 0,r,t.i)}}}for(var u=0,f=sortedAttrNames(Object.keys(i));u<f.length;u++){var s=f[u];setAccessor(n,s,a[s],i[s],r,t.i)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var scopeId;var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var createElm=function(e,t,r,n){var a;var i=t.N[r];var o=0;var l;var s;var u;if(!useNativeShadowDom){checkSlotRelocate=true;if(i.D==="slot"){if(scopeId){n.classList.add(scopeId+"-s")}i.i|=i.N?2:1}}if(i.C!==null){l=i.k=doc.createTextNode(i.C)}else if(i.i&1){l=i.k=doc.createTextNode("")}else{if(!isSvgMode){isSvgMode=i.D==="svg"}l=i.k=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,!useNativeShadowDom&&BUILD.slotRelocation&&i.i&2?"slot-fb":i.D);if(isSvgMode&&i.D==="foreignObject"){isSvgMode=false}{updateElement(null,i,isSvgMode)}var f=l.getRootNode();var c=!f.querySelector("body");if(!c&&BUILD.scoped&&isDef(scopeId)&&l["s-si"]!==scopeId){l.classList.add(l["s-si"]=scopeId)}{updateElementScopeIds(l,n)}if(i.N){for(o=0;o<i.N.length;++o){s=createElm(e,i,o,l);if(s){l.appendChild(s)}}}{if(i.D==="svg"){isSvgMode=false}else if(l.tagName==="foreignObject"){isSvgMode=true}}}l["s-hn"]=hostTagName;{if(i.i&(2|1)){l["s-sr"]=true;l["s-cr"]=contentRef;l["s-sn"]=i.$||"";l["s-rf"]=(a=i.T)==null?void 0:a.ref;u=e&&e.N&&e.N[r];if(u&&u.D===i.D&&e.k){{relocateToHostRoot(e.k)}}}}return l};var relocateToHostRoot=function(e){plt.i|=1;var t=e.closest(hostTagName.toLowerCase());if(t!=null){var r=Array.from(t.childNodes).find((function(e){return e["s-cr"]}));var n=Array.from(e.childNodes);for(var a=0,i=r?n.reverse():n;a<i.length;a++){var o=i[a];if(o["s-sh"]!=null){insertBefore(t,o,r!=null?r:null);o["s-sh"]=void 0;checkSlotRelocate=true}}}plt.i&=~1};var putBackInOriginalLocation=function(e,t){plt.i|=1;var r=Array.from(e.childNodes);if(e["s-sr"]&&BUILD.experimentalSlotFixes){var n=e;while(n=n.nextSibling){if(n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===hostTagName){r.push(n)}}}for(var a=r.length-1;a>=0;a--){var i=r[a];if(i["s-hn"]!==hostTagName&&i["s-ol"]){insertBefore(parentReferenceNode(i),i,referenceNode(i));i["s-ol"].remove();i["s-ol"]=void 0;i["s-sh"]=void 0;checkSlotRelocate=true}if(t){putBackInOriginalLocation(i,t)}}plt.i&=~1};var addVnodes=function(e,t,r,n,a,i){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var l;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;a<=i;++a){if(n[a]){l=createElm(null,r,a,e);if(l){n[a].k=l;insertBefore(o,l,referenceNode(t))}}}};var removeVnodes=function(e,t,r){for(var n=t;n<=r;++n){var a=e[n];if(a){var i=a.k;nullifyVNodeRefs(a);if(i){{checkSlotFallbackVisibility=true;if(i["s-ol"]){i["s-ol"].remove()}else{putBackInOriginalLocation(i,true)}}i.remove()}}}};var updateChildren=function(e,t,r,n,a){if(a===void 0){a=false}var i=0;var o=0;var l=0;var s=0;var u=t.length-1;var f=t[0];var c=t[u];var v=n.length-1;var d=n[0];var p=n[v];var h;var m;while(i<=u&&o<=v){if(f==null){f=t[++i]}else if(c==null){c=t[--u]}else if(d==null){d=n[++o]}else if(p==null){p=n[--v]}else if(isSameVnode(f,d,a)){patch(f,d,a);f=t[++i];d=n[++o]}else if(isSameVnode(c,p,a)){patch(c,p,a);c=t[--u];p=n[--v]}else if(isSameVnode(f,p,a)){if(f.D==="slot"||p.D==="slot"){putBackInOriginalLocation(f.k.parentNode,false)}patch(f,p,a);insertBefore(e,f.k,c.k.nextSibling);f=t[++i];p=n[--v]}else if(isSameVnode(c,d,a)){if(f.D==="slot"||p.D==="slot"){putBackInOriginalLocation(c.k.parentNode,false)}patch(c,d,a);insertBefore(e,c.k,f.k);c=t[--u];d=n[++o]}else{l=-1;{for(s=i;s<=u;++s){if(t[s]&&t[s].R!==null&&t[s].R===d.R){l=s;break}}}if(l>=0){m=t[l];if(m.D!==d.D){h=createElm(t&&t[o],r,l,e)}else{patch(m,d,a);t[l]=void 0;h=m.k}d=n[++o]}else{h=createElm(t&&t[o],r,o,e);d=n[++o]}if(h){{insertBefore(parentReferenceNode(f.k),h,referenceNode(f.k))}}}}if(i>u){addVnodes(e,n[v+1]==null?null:n[v+1].k,r,n,o,v)}else if(o>v){removeVnodes(t,i,u)}};var isSameVnode=function(e,t,r){if(r===void 0){r=false}if(e.D===t.D){if(e.D==="slot"){if("L"in e&&r&&e.k.nodeType!==8){return false}return e.$===t.$}if(!r){return e.R===t.R}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var parentReferenceNode=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var patch=function(e,t,r){if(r===void 0){r=false}var n=t.k=e.k;var a=e.N;var i=t.N;var o=t.D;var l=t.C;var s;if(l===null){{isSvgMode=o==="svg"?true:o==="foreignObject"?false:isSvgMode}{if(o==="slot"&&!useNativeShadowDom){if(e.$!==t.$){t.k["s-sn"]=t.$||"";relocateToHostRoot(t.k.parentElement)}}else{updateElement(e,t,isSvgMode)}}if(a!==null&&i!==null){updateChildren(n,a,t,i,r)}else if(i!==null){if(e.C!==null){n.textContent=""}addVnodes(n,null,t,i,0,i.length-1)}else if(!r&&BUILD.updatable&&a!==null){removeVnodes(a,0,a.length-1)}if(isSvgMode&&o==="svg"){isSvgMode=false}}else if(s=n["s-cr"]){s.parentNode.textContent=l}else if(e.C!==l){n.data=l}};var updateFallbackSlotVisibility=function(e){var t=e.childNodes;for(var r=0,n=t;r<n.length;r++){var a=n[r];if(a.nodeType===1){if(a["s-sr"]){var i=a["s-sn"];a.hidden=false;for(var o=0,l=t;o<l.length;o++){var s=l[o];if(s!==a){if(s["s-hn"]!==a["s-hn"]||i!==""){if(s.nodeType===1&&(i===s.getAttribute("slot")||i===s["s-sn"])||s.nodeType===3&&i===s["s-sn"]){a.hidden=true;break}}else{if(s.nodeType===1||s.nodeType===3&&s.textContent.trim()!==""){a.hidden=true;break}}}}}updateFallbackSlotVisibility(a)}}};var relocateNodes=[];var markSlotContentForRelocation=function(e){var t;var r;var n;for(var a=0,i=e.childNodes;a<i.length;a++){var o=i[a];if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){r=t.parentNode.childNodes;var l=o["s-sn"];var s=function(){t=r[n];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==o["s-hn"])){if(isNodeLocatedInSlot(t,l)){var e=relocateNodes.find((function(e){return e.F===t}));checkSlotFallbackVisibility=true;t["s-sn"]=t["s-sn"]||l;if(e){e.F["s-sh"]=o["s-hn"];e.B=o}else{t["s-sh"]=o["s-hn"];relocateNodes.push({B:o,F:t})}if(t["s-sr"]){relocateNodes.map((function(r){if(isNodeLocatedInSlot(r.F,t["s-sn"])){e=relocateNodes.find((function(e){return e.F===t}));if(e&&!r.B){r.B=e.B}}}))}}else if(!relocateNodes.some((function(e){return e.F===t}))){relocateNodes.push({F:t})}}};for(n=r.length-1;n>=0;n--){s()}}if(o.nodeType===1){markSlotContentForRelocation(o)}}};var isNodeLocatedInSlot=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var nullifyVNodeRefs=function(e){{e.T&&e.T.ref&&e.T.ref(null);e.N&&e.N.map(nullifyVNodeRefs)}};var insertBefore=function(e,t,r){var n=e==null?void 0:e.insertBefore(t,r);{updateElementScopeIds(t,e)}return n};var findScopeIds=function(e){var t=[];if(e){t.push.apply(t,__spreadArray(__spreadArray(__spreadArray([],e["s-scs"]||[],false),[e["s-si"],e["s-sc"]],false),findScopeIds(e.parentElement),false))}return t};var updateElementScopeIds=function(e,t,r){if(r===void 0){r=false}var n;if(e&&t&&e.nodeType===1){var a=new Set(findScopeIds(t).filter(Boolean));if(a.size){(n=e.classList)==null?void 0:n.add.apply(n,e["s-scs"]=__spreadArray([],a,true));if(e["s-ol"]||r){for(var i=0,o=Array.from(e.childNodes);i<o.length;i++){var l=o[i];updateElementScopeIds(l,e,true)}}}}};var renderVdom=function(e,t,r){if(r===void 0){r=false}var n,a,i,o,l;var s=e.$hostElement$;var u=e.o;var f=e.I||newVNode(null,null);var c=isHost(t)?t:h(null,null,t);hostTagName=s.tagName;if(u.U){c.T=c.T||{};u.U.map((function(e){var t=e[0],r=e[1];return c.T[r]=s[t]}))}if(r&&c.T){for(var v=0,d=Object.keys(c.T);v<d.length;v++){var p=d[v];if(s.hasAttribute(p)&&!["key","ref","style","class"].includes(p)){c.T[p]=s[p]}}}c.D=null;c.i|=4;e.I=c;c.k=f.k=s.shadowRoot||s;{scopeId=s["s-sc"]}useNativeShadowDom=(u.i&1)!==0;{contentRef=s["s-cr"];checkSlotFallbackVisibility=false}patch(f,c,r);{plt.i|=1;if(checkSlotRelocate){markSlotContentForRelocation(c.k);for(var m=0,S=relocateNodes;m<S.length;m++){var g=S[m];var y=g.F;if(!y["s-ol"]){var _=doc.createTextNode("");_["s-nr"]=y;insertBefore(y.parentNode,y["s-ol"]=_,y)}}for(var C=0,T=relocateNodes;C<T.length;C++){var g=T[C];var y=g.F;var b=g.B;if(b){var w=b.parentNode;var N=b.nextSibling;if(N&&N.nodeType===1){var _=(n=y["s-ol"])==null?void 0:n.previousSibling;while(_){var E=(a=_["s-nr"])!=null?a:null;if(E&&E["s-sn"]===y["s-sn"]&&w===E.parentNode){E=E.nextSibling;while(E===y||(E==null?void 0:E["s-sr"])){E=E==null?void 0:E.nextSibling}if(!E||!E["s-nr"]){N=E;break}}_=_.previousSibling}}if(!N&&w!==y.parentNode||y.nextSibling!==N){if(y!==N){insertBefore(w,y,N);if(y.nodeType===1){y.hidden=(i=y["s-ih"])!=null?i:false}}}y&&typeof b["s-rf"]==="function"&&b["s-rf"](y)}else{if(y.nodeType===1){if(r){y["s-ih"]=(o=y.hidden)!=null?o:false}y.hidden=true}}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(c.k)}plt.i&=~1;relocateNodes.length=0}if(u.i&2){for(var R=0,$=c.k.childNodes;R<$.length;R++){var D=$[R];if(D["s-hn"]!==hostTagName&&!D["s-sh"]){if(r&&D["s-ih"]==null){D["s-ih"]=(l=D.hidden)!=null?l:false}D.hidden=true}}}contentRef=void 0};var attachToAncestor=function(e,t){if(t&&!e.j&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.j=t})))}};var scheduleUpdate=function(e,t){{e.i|=16}if(e.i&4){e.i|=512;return}attachToAncestor(e,e.q);var r=function(){return dispatchHooks(e,t)};return writeTask(r)};var dispatchHooks=function(e,t){var r=e.$hostElement$;var n=createTime("scheduleUpdate",e.o.m);var a=e.t;if(!a){throw new Error("Can't render component <".concat(r.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"))}var i;if(t){{e.i|=256;if(e.Y){e.Y.map((function(e){var t=e[0],r=e[1];return safeCall(a,t,r)}));e.Y=void 0}}{i=safeCall(a,"componentWillLoad")}}{i=enqueue(i,(function(){return safeCall(a,"componentWillRender")}))}n();return enqueue(i,(function(){return updateComponent(e,a,t)}))};var enqueue=function(e,t){return isPromisey(e)?e.then(t).catch((function(e){console.error(e);t()})):t()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,a,i,o,l,s,u;return __generator(this,(function(f){a=e.$hostElement$;i=createTime("update",e.o.m);o=a["s-rc"];if(r){attachStyles(e)}l=createTime("render",e.o.m);{callRender(e,t,a,r)}if(o){o.map((function(e){return e()}));a["s-rc"]=void 0}l();i();{s=(n=a["s-p"])!=null?n:[];u=function(){return postUpdateComponent(e)};if(s.length===0){u()}else{Promise.all(s).then(u);e.i|=4;s.length=0}}return[2]}))}))};var callRender=function(e,t,r,n){try{t=t.render&&t.render();{e.i&=~16}{e.i|=2}{{{renderVdom(e,t,n)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.o.m;var r=e.$hostElement$;var n=createTime("postUpdate",t);var a=e.t;var i=e.q;{safeCall(a,"componentDidRender")}if(!(e.i&64)){e.i|=64;{addHydratedFlag(r)}{safeCall(a,"componentDidLoad")}n();{e.h(r);if(!i){appDidLoad()}}}else{{safeCall(a,"componentDidUpdate")}n()}{e.v(r)}{if(e.j){e.j();e.j=void 0}if(e.i&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.i&=~(4|512)}};var forceUpdate=function(e){{var t=getHostRef(e);var r=t.$hostElement$.isConnected;if(r&&(t.i&(2|16))===2){scheduleUpdate(t,false)}return r}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e)}}return void 0};var addHydratedFlag=function(e){var t;return e.classList.add((t=BUILD.hydratedSelectorName)!=null?t:"hydrated")};var getValue=function(e,t){return getHostRef(e).l.get(t)};var setValue=function(e,t,r,n){var a=getHostRef(e);if(!a){throw new Error("Couldn't find host element for \"".concat(n.m,'" 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).'))}var i=a.$hostElement$;var o=a.l.get(t);var l=a.i;var s=a.t;r=parsePropertyValue(r,n.W[t][0]);var u=Number.isNaN(o)&&Number.isNaN(r);var f=r!==o&&!u;if((!(l&8)||o===void 0)&&f){a.l.set(t,r);if(s){if(n.X&&l&128){var c=n.X[t];if(c){c.map((function(e){try{s[e](r,o,t)}catch(e){consoleError(e,i)}}))}}if((l&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,r){var n,a;var i=e.prototype;if(t.W||(t.X||e.watchers)){if(e.watchers&&!t.X){t.X=e.watchers}var o=Object.entries((n=t.W)!=null?n:{});o.map((function(e){var n=e[0],a=e[1][0];if(a&31||r&2&&a&32){Object.defineProperty(i,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,t)},configurable:true,enumerable:true})}else if(r&1&&a&64){Object.defineProperty(i,n,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r;var a=getHostRef(this);return(r=a==null?void 0:a.u)==null?void 0:r.then((function(){var t;return(t=a.t)==null?void 0:t[n].apply(t,e)}))}})}}));if(r&1){var l=new Map;i.attributeChangedCallback=function(e,r,n){var a=this;plt.jmp((function(){var o;var s=l.get(e);if(a.hasOwnProperty(s)){n=a[s];delete a[s]}else if(i.hasOwnProperty(s)&&typeof a[s]==="number"&&a[s]==n){return}else if(s==null){var u=getHostRef(a);var f=u==null?void 0:u.i;if(f&&!(f&8)&&f&128&&n!==r){var c=u.t;var v=(o=t.X)==null?void 0:o[e];v==null?void 0:v.forEach((function(t){if(c[t]!=null){c[t].call(c,n,r,e)}}))}return}a[s]=n===null&&typeof a[s]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((a=t.X)!=null?a:{}),true),o.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a;var i=n[1]||r;l.set(i,r);if(n[0]&512){(a=t.U)==null?void 0:a.push([r,i])}return i})),true)))}}return e};var initializeComponent=function(e,t,r,n){return __awaiter(void 0,void 0,void 0,(function(){var n,a,i,o,l,s,u,f,c,v,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((t.i&32)===0))return[3,6];t.i|=32;a=r.S;if(!a)return[3,4];i=loadModule(r);if(!(i&&"then"in i))return[3,2];o=uniqueTime();return[4,i];case 1:n=p.sent();o();return[3,3];case 2:n=i;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(r.m,"#").concat(t.V,'" was not found'))}if(!n.isProxied){{r.X=n.watchers}proxyComponent(n,r,2);n.isProxied=true}l=createTime("createInstance",r.m);{t.i|=8}try{new n(t)}catch(e){consoleError(e)}{t.i&=~8}{t.i|=128}l();fireConnectedCallback(t.t);return[3,5];case 4:n=e.constructor;s=e.localName;customElements.whenDefined(s).then((function(){return t.i|=128}));p.label=5;case 5:if(n&&n.style){u=void 0;if(typeof n.style==="string"){u=n.style}else if(typeof n.style!=="string"){t.V=computeMode(e);if(t.V){u=n.style[t.V]}}f=getScopeId(r,t.V);if(!styles.has(f)){c=createTime("registerStyles",r.m);registerStyle(f,u,!!(r.i&1));c()}}p.label=6;case 6:v=t.q;d=function(){return scheduleUpdate(t,true)};if(v&&v["s-rc"]){v["s-rc"].push(d)}else{d()}return[2]}}))}))};var fireConnectedCallback=function(e){{safeCall(e,"connectedCallback")}};var connectedCallback=function(e){if((plt.i&1)===0){var t=getHostRef(e);var r=t.o;var n=createTime("connectedCallback",r.m);if(!(t.i&1)){t.i|=1;var a=void 0;{a=e.getAttribute(HYDRATE_ID);if(a){if(r.i&1){var i=addStyle(e.shadowRoot,r,e.getAttribute("s-mode"));e.classList.remove(i+"-h",i+"-s")}initializeClientHydrate(e,r.m,a,t)}}if(!a){if(r.i&(4|8)){setContentReference(e)}}{var o=e;while(o=o.parentNode||o.host){if(o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){attachToAncestor(t,t.q=o);break}}}if(r.W){Object.entries(r.W).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{initializeComponent(e,t,r)}}else{addHostEventListeners(e,t,r.G);if(t==null?void 0:t.t){fireConnectedCallback(t.t)}else if(t==null?void 0:t.p){t.p.then((function(){return fireConnectedCallback(t.t)}))}}n()}};var setContentReference=function(e){var t=e["s-cr"]=doc.createComment("");t["s-cn"]=true;insertBefore(e,t,e.firstChild)};var disconnectInstance=function(e){{safeCall(e,"disconnectedCallback")}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t;return __generator(this,(function(r){if((plt.i&1)===0){t=getHostRef(e);{if(t.K){t.K.map((function(e){return e()}));t.K=void 0}}if(t==null?void 0:t.t){disconnectInstance(t.t)}else if(t==null?void 0:t.p){t.p.then((function(){return disconnectInstance(t.t)}))}}return[2]}))}))};var patchPseudoShadowDom=function(e,t){patchCloneNode(e);patchSlotAppendChild(e);patchSlotAppend(e);patchSlotPrepend(e);patchSlotInsertAdjacentElement(e);patchSlotInsertAdjacentHTML(e);patchSlotInsertAdjacentText(e);patchTextContent(e);patchChildSlotNodes(e,t);patchSlotRemoveChild(e)};var patchCloneNode=function(e){var t=e.cloneNode;e.cloneNode=function(e){var r=this;var n=r.shadowRoot&&supportsShadow;var a=t.call(r,n?e:false);if(!n&&e){var i=0;var o=void 0,l=void 0;var s=["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"];for(;i<r.childNodes.length;i++){o=r.childNodes[i]["s-nr"];l=s.every((function(e){return!r.childNodes[i][e]}));if(o){if(a.__appendChild){a.__appendChild(o.cloneNode(true))}else{a.appendChild(o.cloneNode(true))}}if(l){a.appendChild(r.childNodes[i].cloneNode(true))}}}return a}};var patchSlotAppendChild=function(e){e.__appendChild=e.appendChild;e.appendChild=function(e){var t=e["s-sn"]=getSlotName(e);var r=getHostSlotNode(this.childNodes,t,this.tagName);if(r){var n=getHostSlotChildNodes(r,t);var a=n[n.length-1];var i=insertBefore(a.parentNode,e,a.nextSibling);updateFallbackSlotVisibility(this);return i}return this.__appendChild(e)}};var patchSlotRemoveChild=function(e){e.__removeChild=e.removeChild;e.removeChild=function(e){if(e&&typeof e["s-sn"]!=="undefined"){var t=getHostSlotNode(this.childNodes,e["s-sn"],this.tagName);if(t){var r=getHostSlotChildNodes(t,e["s-sn"]);var n=r.find((function(t){return t===e}));if(n){n.remove();updateFallbackSlotVisibility(this);return}}}return this.__removeChild(e)}};var patchSlotPrepend=function(e){var t=e.prepend;e.prepend=function(){var e=this;var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}r.forEach((function(r){if(typeof r==="string"){r=e.ownerDocument.createTextNode(r)}var n=r["s-sn"]=getSlotName(r);var a=getHostSlotNode(e.childNodes,n,e.tagName);if(a){var i=document.createTextNode("");i["s-nr"]=r;a["s-cr"].parentNode.__appendChild(i);r["s-ol"]=i;var o=getHostSlotChildNodes(a,n);var l=o[0];return insertBefore(l.parentNode,r,l.nextSibling)}if(r.nodeType===1&&!!r.getAttribute("slot")){r.hidden=true}return t.call(e,r)}))}};var patchSlotAppend=function(e){e.append=function(){var e=this;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}t.forEach((function(t){if(typeof t==="string"){t=e.ownerDocument.createTextNode(t)}e.appendChild(t)}))}};var patchSlotInsertAdjacentHTML=function(e){var t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,r){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,r)}var n=this.ownerDocument.createElement("_");var a;n.innerHTML=r;if(e==="afterbegin"){while(a=n.firstChild){this.prepend(a)}}else if(e==="beforeend"){while(a=n.firstChild){this.append(a)}}}};var patchSlotInsertAdjacentText=function(e){e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}};var patchSlotInsertAdjacentElement=function(e){var t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,r){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,r)}if(e==="afterbegin"){this.prepend(r);return r}else if(e==="beforeend"){this.append(r);return r}return r}};var patchTextContent=function(e){var t=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",t);{Object.defineProperty(e,"textContent",{get:function(){var e=getAllChildSlotNodes(this.childNodes);var t=e.map((function(e){var t,r;var n=[];var a=e.nextSibling;while(a&&a["s-sn"]===e["s-sn"]){if(a.nodeType===3||a.nodeType===1){n.push((r=(t=a.textContent)==null?void 0:t.trim())!=null?r:"")}a=a.nextSibling}return n.filter((function(e){return e!==""})).join(" ")})).filter((function(e){return e!==""})).join(" ");return" "+t+" "},set:function(e){var t=this;var r=getAllChildSlotNodes(this.childNodes);r.forEach((function(r){var n=r.nextSibling;while(n&&n["s-sn"]===r["s-sn"]){var a=n;n=n.nextSibling;a.remove()}if(r["s-sn"]===""){var i=t.ownerDocument.createTextNode(e);i["s-sn"]="";insertBefore(r.parentElement,i,r.nextSibling)}else{r.remove()}}))}})}};var patchChildSlotNodes=function(e,t){var r=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.item=function(e){return this[e]};return t}(Array);if(t.i&8){var n=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get:function(){return this.childNodes.map((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return e.children.length}});Object.defineProperty(e,"childNodes",{get:function(){var e=n.call(this);if((plt.i&1)===0&&getHostRef(this).i&2){var t=new r;for(var a=0;a<e.length;a++){var i=e[a]["s-nr"];if(i){t.push(i)}}return t}return r.from(e)}})}};var getAllChildSlotNodes=function(e){var t=[];for(var r=0,n=Array.from(e);r<n.length;r++){var a=n[r];if(a["s-sr"]){t.push(a)}t.push.apply(t,getAllChildSlotNodes(a.childNodes))}return t};var getSlotName=function(e){return e["s-sn"]||e.nodeType===1&&e.getAttribute("slot")||""};var getHostSlotNode=function(e,t,r){var n=0;var a;for(;n<e.length;n++){a=e[n];if(a["s-sr"]&&a["s-sn"]===t&&a["s-hn"]===r){return a}a=getHostSlotNode(a.childNodes,t,r);if(a){return a}}return null};var getHostSlotChildNodes=function(e,t){var r=[e];while((e=e.nextSibling)&&e["s-sn"]===t){r.push(e)}return r};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r;var n=createTime();var a=[];var i=t.exclude||[];var o=win.customElements;var l=doc.head;var s=l.querySelector("meta[charset]");var u=doc.createElement("style");var f=[];var c;var v=true;Object.assign(plt,t);plt._=new URL(t.resourcesUrl||"./",doc.baseURI).href;{plt.i|=2}var d=false;e.map((function(e){e[1].map((function(t){var r;var n={i:t[0],m:t[1],W:t[2],G:t[3]};if(n.i&4){d=true}{n.W=t[2]}{n.G=t[3]}{n.U=[]}{n.X=(r=t[4])!=null?r:{}}var l=n.m;var s=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;r.hasRegisteredEventListeners=false;t=r;registerHost(t,n);if(n.i&1){{if(!t.shadowRoot){{t.attachShadow({mode:"open",delegatesFocus:!!(n.i&16)})}}else{if(t.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(n.m,"! Mode is set to ").concat(t.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return r}t.prototype.connectedCallback=function(){var e=this;var t=getHostRef(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;addHostEventListeners(this,t,n.G)}if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).p};return t}(HTMLElement);{if(n.i&2){patchPseudoShadowDom(s.prototype,n)}}n.S=e[0];if(!i.includes(l)&&!o.get(l)){a.push(l);o.define(l,proxyComponent(s,n,1))}}))}));if(a.length>0){if(d){u.textContent+=SLOT_FB_CSS}{u.textContent+=a.sort()+HYDRATED_CSS}if(u.innerHTML.length){u.setAttribute("data-styles","");var p=(r=plt.P)!=null?r:queryNonceMetaTagContent(doc);if(p!=null){u.setAttribute("nonce",p)}l.insertBefore(u,s?s.nextSibling:l.firstChild)}}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var addHostEventListeners=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],i=r[2];var o=getHostListenerTarget(e,n);var l=hostListenerProxy(t,i);var s=hostListenerOpts(n);plt.ael(o,a,l,s);(t.K=t.K||[]).push((function(){return plt.rel(o,a,l,s)}))}))}};var hostListenerProxy=function(e,t){return function(r){var n;try{{if(e.i&256){(n=e.t)==null?void 0:n[t](r)}else{(e.Y=e.Y||[]).push([t,r])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,t){if(t&4)return doc;if(t&8)return win;if(t&16)return doc.body;return e};var hostListenerOpts=function(e){return supportsListenerOptions?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var setNonce=function(e){return plt.P=e};export{Build as B,H,setMode as a,bootstrapLazy as b,createEvent as c,readTask as d,Host as e,getElement as f,getMode as g,h,forceUpdate as i,getAssetPath as j,promiseResolve as p,registerInstance as r,setNonce as s,writeTask as w};