@senx/discovery-code
Version:
Discovery Code Editor
2 lines • 25.3 kB
JavaScript
var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function f(r){try{o(t.next(r))}catch(r){a(r)}}function u(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(f,u)}o((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(r){return function(e){return o([r,e])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=e.call(r,n)}catch(r){u=[6,r];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t="discovery-code";var i={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,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: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:true,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:false,watchCallback:true};var a=Object.defineProperty;var f=function(r,e){for(var n in e)a(r,n,{get:e[n],enumerable:true})};var u=new WeakMap;var o=function(r){return u.get(r)};var l=r("r",(function(r,e){return u.set(e.t=r,e)}));var s=function(r,e){var n={i:0,$hostElement$:r,u:e,o:new Map};{n.l=new Promise((function(r){return n.v=r}))}{n.h=new Promise((function(r){return n.p=r}));r["s-p"]=[];r["s-rc"]=[]}return u.set(r,n)};var v=function(r,e){return e in r};var c=function(r,e){return(0,console.error)(r,e)};var d=new Map;var h=function(r,n,t){var i=r.m.replace(/-/g,"_");var a=r.S;if(!a){return void 0}var f=d.get(a);if(f){return f[i]}
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{d.set(a,r)}return r[i]}),c)};var p=new Map;var m="{visibility:hidden}.hydrated{visibility:inherit}";var y="slot-fb{display:contents}slot-fb[hidden]{display:none}";var w=typeof window!=="undefined"?window:{};var b=w.document||{head:{}};var S={i:0,_:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var g=function(){var r=false;try{b.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){r=true}}))}catch(r){}return r}();var _=r("p",(function(r){return Promise.resolve(r)}));var $=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var k=false;var A=[];var C=[];var j=function(r,e){return function(n){r.push(n);if(!k){k=true;if(e&&S.i&4){T(O)}else{S.raf(O)}}}};var x=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){c(r)}}r.length=0};var O=function(){x(A);{x(C);if(k=A.length>0){S.raf(O)}}};var T=function(r){return _().then(r)};var E=j(C,true);var D={};var L=function(r){return r!=null};var R=function(r){r=typeof r;return r==="object"||r==="function"};function M(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var F={};f(F,{err:function(){return N},map:function(){return U},ok:function(){return P},unwrap:function(){return W},unwrapErr:function(){return H}});var P=function(r){return{isOk:true,isErr:false,value:r}};var N=function(r){return{isOk:false,isErr:true,value:r}};function U(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return P(r)}))}else{return P(n)}}if(r.isErr){var t=r.value;return N(t)}throw"should never get here"}var W=function(r){if(r.isOk){return r.value}else{throw r.value}};var H=function(r){if(r.isErr){return r.value}else{throw r.value}};var z=function(r,e){if(e===void 0){e=""}{return function(){return}}};var B=function(r,e){{return function(){return}}};var G=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var f=null;var u=false;var o=false;var l=[];var s=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){s(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!R(i)){i=String(i)}if(u&&o){l[l.length-1].$+=i}else{l.push(u?I(null,i):i)}o=u}}};s(n);if(e){if(e.key){a=e.key}if(e.name){f=e.name}{var v=e.className||e.class;if(v){e.class=typeof v!=="object"?v:Object.keys(v).filter((function(r){return v[r]})).join(" ")}}}var c=I(r,null);c.k=e;if(l.length>0){c.A=l}{c.C=a}{c.j=f}return c}));var I=function(r,e){var n={i:0,O:r,$:e,T:null,A:null};{n.k=null}{n.C=null}{n.j=null}return n};var Q={};var q=function(r){return r&&r.O===Q};var K=function(r,e){if(r!=null&&!R(r)){if(e&4){return r==="false"?false:r===""||!!r}if(e&2){return parseFloat(r)}if(e&1){return String(r)}return r}return r};var V=r("g",(function(r){return o(r).$hostElement$}));var X=r("c",(function(r,e,n){var t=V(r);return{emit:function(r){return J(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var J=function(r,e,n){var t=S.ce(e,n);r.dispatchEvent(t);return t};var Y=new WeakMap;var Z=function(r,e,n){var t=p.get(r);if($&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}p.set(r,t)};var rr=function(r,e,n){var t;var i=nr(e);var a=p.get(i);r=r.nodeType===11?r:b;if(a){if(typeof a==="string"){r=r.head||r;var f=Y.get(r);var u=void 0;if(!f){Y.set(r,f=new Set)}if(!f.has(i)){{u=b.createElement("style");u.innerHTML=a;var o=(t=S.D)!=null?t:M(b);if(o!=null){u.setAttribute("nonce",o)}if(!(e.i&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var s=l.length>0?l[l.length-1].nextSibling:r.querySelector("style");r.insertBefore(u,s)}else if("host"in r){if($){var v=new CSSStyleSheet;v.replaceSync(a);r.adoptedStyleSheets=__spreadArray([v],r.adoptedStyleSheets,true)}else{var c=r.querySelector("style");if(c){c.innerHTML=a+c.innerHTML}else{r.prepend(u)}}}else{r.append(u)}}if(e.i&1&&r.nodeName!=="HEAD"){r.insertBefore(u,null)}}if(e.i&4){u.innerHTML+=y}if(f){f.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var er=function(r){var e=r.u;var n=r.$hostElement$;var t=e.i;var i=z("attachStyles",e.m);var a=rr(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10&&t&2){n["s-sc"]=a;n.classList.add(a+"-h")}i()};var nr=function(r,e){return"sc-"+r.m};var tr=function(r,e,n,t,i,a){if(n!==t){var f=v(r,e);var u=e.toLowerCase();if(e==="class"){var o=r.classList;var l=ar(n);var s=ar(t);o.remove.apply(o,l.filter((function(r){return r&&!s.includes(r)})));o.add.apply(o,s.filter((function(r){return r&&!l.includes(r)})))}else if(e==="style"){{for(var c in n){if(!t||t[c]==null){if(c.includes("-")){r.style.removeProperty(c)}else{r.style[c]=""}}}}for(var c in t){if(!n||t[c]!==n[c]){if(c.includes("-")){r.style.setProperty(c,t[c])}else{r.style[c]=t[c]}}}}else if(e==="key");else if(e==="ref"){if(t){t(r)}}else if(!f&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(v(w,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var d=e.endsWith(fr);e=e.replace(ur,"");if(n){S.rel(r,e,n,d)}if(t){S.ael(r,e,t,d)}}}else{var h=R(t);if((f||h&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var p=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=p){if(typeof r.__lookupSetter__(e)==="function"){r[e]=p}else{r.setAttribute(e,p)}}}else{r[e]=t}}catch(r){}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!h){t=t===true?"":t;{r.setAttribute(e,t)}}}}};var ir=/\s/;var ar=function(r){return!r?[]:r.split(ir)};var fr="Capture";var ur=new RegExp(fr+"$");var or=function(r,e,n){var t=e.T.nodeType===11&&e.T.host?e.T.host:e.T;var i=r&&r.k||D;var a=e.k||D;{for(var f=0,u=lr(Object.keys(i));f<u.length;f++){var o=u[f];if(!(o in a)){tr(t,o,i[o],void 0,n,e.i)}}}for(var l=0,s=lr(Object.keys(a));l<s.length;l++){var o=s[l];tr(t,o,i[o],a[o],n,e.i)}};function lr(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var sr;var vr;var cr;var dr=false;var hr=false;var pr=false;var mr=false;var yr=function(r,e,n,t){var a;var f=e.A[n];var u=0;var o;var l;var s;if(!dr){pr=true;if(f.O==="slot"){if(sr){t.classList.add(sr+"-s")}f.i|=f.A?2:1}}if(f.$!==null){o=f.T=b.createTextNode(f.$)}else if(f.i&1){o=f.T=b.createTextNode("")}else{o=f.T=b.createElement(!dr&&i.slotRelocation&&f.i&2?"slot-fb":f.O);{or(null,f,mr)}var v=o.getRootNode();var c=!v.querySelector("body");if(!c&&i.scoped&&L(sr)&&o["s-si"]!==sr){o.classList.add(o["s-si"]=sr)}if(f.A){for(u=0;u<f.A.length;++u){l=yr(r,f,u,o);if(l){o.appendChild(l)}}}}o["s-hn"]=cr;{if(f.i&(2|1)){o["s-sr"]=true;o["s-cr"]=vr;o["s-sn"]=f.j||"";o["s-rf"]=(a=f.k)==null?void 0:a.ref;s=r&&r.A&&r.A[n];if(s&&s.O===f.O&&r.T){{wr(r.T,false)}}}}return o};var wr=function(r,e){S.i|=1;var n=Array.from(r.childNodes);if(r["s-sr"]&&i.experimentalSlotFixes){var t=r;while(t=t.nextSibling){if(t&&t["s-sn"]===r["s-sn"]&&t["s-sh"]===cr){n.push(t)}}}for(var a=n.length-1;a>=0;a--){var f=n[a];if(f["s-hn"]!==cr&&f["s-ol"]){Er(kr(f),f,$r(f));f["s-ol"].remove();f["s-ol"]=void 0;f["s-sh"]=void 0;pr=true}if(e){wr(f,e)}}S.i&=~1};var br=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(f.shadowRoot&&f.tagName===cr){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=yr(null,n,i,r);if(u){t[i].T=u;Er(f,u,$r(e))}}}};var Sr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.T;Tr(i);if(a){{hr=true;if(a["s-ol"]){a["s-ol"].remove()}else{wr(a,true)}}a.remove()}}}};var gr=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var l=e.length-1;var s=e[0];var v=e[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var m;while(a<=l&&f<=c){if(s==null){s=e[++a]}else if(v==null){v=e[--l]}else if(d==null){d=t[++f]}else if(h==null){h=t[--c]}else if(_r(s,d,i)){Ar(s,d,i);s=e[++a];d=t[++f]}else if(_r(v,h,i)){Ar(v,h,i);v=e[--l];h=t[--c]}else if(_r(s,h,i)){if(s.O==="slot"||h.O==="slot"){wr(s.T.parentNode,false)}Ar(s,h,i);Er(r,s.T,v.T.nextSibling);s=e[++a];h=t[--c]}else if(_r(v,d,i)){if(s.O==="slot"||h.O==="slot"){wr(v.T.parentNode,false)}Ar(v,d,i);Er(r,v.T,s.T);v=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].C!==null&&e[o].C===d.C){u=o;break}}}if(u>=0){m=e[u];if(m.O!==d.O){p=yr(e&&e[f],n,u,r)}else{Ar(m,d,i);e[u]=void 0;p=m.T}d=t[++f]}else{p=yr(e&&e[f],n,f,r);d=t[++f]}if(p){{Er(kr(s.T),p,$r(s.T))}}}}if(a>l){br(r,t[c+1]==null?null:t[c+1].T,n,t,f,c)}else if(f>c){Sr(e,a,l)}};var _r=function(r,e,n){if(n===void 0){n=false}if(r.O===e.O){if(r.O==="slot"){if("L"in r&&n&&r.T.nodeType!==8){return false}return r.j===e.j}if(!n){return r.C===e.C}return true}return false};var $r=function(r){return r&&r["s-ol"]||r};var kr=function(r){return(r["s-ol"]?r["s-ol"]:r).parentNode};var Ar=function(r,e,n){if(n===void 0){n=false}var t=e.T=r.T;var a=r.A;var f=e.A;var u=e.O;var o=e.$;var l;if(o===null){{if(u==="slot"&&!dr);else{or(r,e,mr)}}if(a!==null&&f!==null){gr(t,a,e,f,n)}else if(f!==null){if(r.$!==null){t.textContent=""}br(t,null,e,f,0,f.length-1)}else if(!n&&i.updatable&&a!==null){Sr(a,0,a.length-1)}}else if(l=t["s-cr"]){l.parentNode.textContent=o}else if(r.$!==o){t.data=o}};var Cr=function(r){var e=r.childNodes;for(var n=0,t=e;n<t.length;n++){var i=t[n];if(i.nodeType===1){if(i["s-sr"]){var a=i["s-sn"];i.hidden=false;for(var f=0,u=e;f<u.length;f++){var o=u[f];if(o!==i){if(o["s-hn"]!==i["s-hn"]||a!==""){if(o.nodeType===1&&(a===o.getAttribute("slot")||a===o["s-sn"])||o.nodeType===3&&a===o["s-sn"]){i.hidden=true;break}}else{if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){i.hidden=true;break}}}}}Cr(i)}}};var jr=[];var xr=function(r){var e;var n;var t;for(var a=0,f=r.childNodes;a<f.length;a++){var u=f[a];if(u["s-sr"]&&(e=u["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;var o=u["s-sn"];var l=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==u["s-hn"]&&!i.experimentalSlotFixes){if(Or(e,o)){var r=jr.find((function(r){return r.R===e}));hr=true;e["s-sn"]=e["s-sn"]||o;if(r){r.R["s-sh"]=u["s-hn"];r.M=u}else{e["s-sh"]=u["s-hn"];jr.push({M:u,R:e})}if(e["s-sr"]){jr.map((function(n){if(Or(n.R,e["s-sn"])){r=jr.find((function(r){return r.R===e}));if(r&&!n.M){n.M=r.M}}}))}}else if(!jr.some((function(r){return r.R===e}))){jr.push({R:e})}}};for(t=n.length-1;t>=0;t--){l()}}if(u.nodeType===1){xr(u)}}};var Or=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var Tr=function(r){{r.k&&r.k.ref&&r.k.ref(null);r.A&&r.A.map(Tr)}};var Er=function(r,e,n){var t=r==null?void 0:r.insertBefore(e,n);return t};var Dr=function(r,e,n){if(n===void 0){n=false}var t,i,a,f;var u=r.$hostElement$;var o=r.u;var l=r.F||I(null,null);var s=q(e)?e:G(null,null,e);cr=u.tagName;if(n&&s.k){for(var v=0,c=Object.keys(s.k);v<c.length;v++){var d=c[v];if(u.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){s.k[d]=u[d]}}}s.O=null;s.i|=4;r.F=s;s.T=l.T=u.shadowRoot||u;{sr=u["s-sc"]}dr=(o.i&1)!==0;{vr=u["s-cr"];hr=false}Ar(l,s,n);{S.i|=1;if(pr){xr(s.T);for(var h=0,p=jr;h<p.length;h++){var m=p[h];var y=m.R;if(!y["s-ol"]){var w=b.createTextNode("");w["s-nr"]=y;Er(y.parentNode,y["s-ol"]=w,y)}}for(var g=0,_=jr;g<_.length;g++){var m=_[g];var y=m.R;var $=m.M;if($){var k=$.parentNode;var A=$.nextSibling;{var w=(t=y["s-ol"])==null?void 0:t.previousSibling;while(w){var C=(i=w["s-nr"])!=null?i:null;if(C&&C["s-sn"]===y["s-sn"]&&k===C.parentNode){C=C.nextSibling;while(C===y||(C==null?void 0:C["s-sr"])){C=C==null?void 0:C.nextSibling}if(!C||!C["s-nr"]){A=C;break}}w=w.previousSibling}}if(!A&&k!==y.parentNode||y.nextSibling!==A){if(y!==A){if(!y["s-hn"]&&y["s-ol"]){y["s-hn"]=y["s-ol"].parentNode.nodeName}Er(k,y,A);if(y.nodeType===1){y.hidden=(a=y["s-ih"])!=null?a:false}}}y&&typeof $["s-rf"]==="function"&&$["s-rf"](y)}else{if(y.nodeType===1){if(n){y["s-ih"]=(f=y.hidden)!=null?f:false}y.hidden=true}}}}if(hr){Cr(s.T)}S.i&=~1;jr.length=0}vr=void 0};var Lr=function(r,e){if(e&&!r.P&&e["s-p"]){e["s-p"].push(new Promise((function(e){return r.P=e})))}};var Rr=function(r,e){{r.i|=16}if(r.i&4){r.i|=512;return}Lr(r,r.N);var n=function(){return Mr(r,e)};return E(n)};var Mr=function(r,e){var n=r.$hostElement$;var t=z("scheduleUpdate",r.u.m);var i=r.t;if(!i){throw new Error("Can't render component <".concat(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"))}var a;if(e){{r.i|=256;if(r.U){r.U.map((function(r){var e=r[0],n=r[1];return zr(i,e,n)}));r.U=void 0}}{a=zr(i,"componentWillLoad")}}t();return Fr(a,(function(){return Nr(r,i,e)}))};var Fr=function(r,e){return Pr(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var Pr=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var Nr=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l;return __generator(this,(function(s){i=r.$hostElement$;a=z("update",r.u.m);f=i["s-rc"];if(t){er(r)}u=z("render",r.u.m);{Ur(r,e,i,t)}if(f){f.map((function(r){return r()}));i["s-rc"]=void 0}u();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return Wr(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.i|=4;o.length=0}}return[2]}))}))};var Ur=function(r,e,n,t){try{e=e.render();{r.i&=~16}{r.i|=2}{{{Dr(r,e,t)}}}}catch(e){c(e,r.$hostElement$)}return null};var Wr=function(r){var e=r.u.m;var n=r.$hostElement$;var t=z("postUpdate",e);var i=r.t;var a=r.N;if(!(r.i&64)){r.i|=64;{Br(n)}{zr(i,"componentDidLoad")}t();{r.p(n);if(!a){Hr()}}}else{t()}{r.v(n)}{if(r.P){r.P();r.P=void 0}if(r.i&512){T((function(){return Rr(r,false)}))}r.i&=~(4|512)}};var Hr=function(r){{Br(b.documentElement)}T((function(){return J(w,"appload",{detail:{namespace:t}})}))};var zr=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){c(r)}}return void 0};var Br=function(r){var e;return r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated")};var Gr=function(r,e){return o(r).o.get(e)};var Ir=function(r,e,n,t){var i=o(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.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 a=i.$hostElement$;var f=i.o.get(e);var u=i.i;var l=i.t;n=K(n,t.W[e][0]);var s=Number.isNaN(f)&&Number.isNaN(n);var v=n!==f&&!s;if((!(u&8)||f===void 0)&&v){i.o.set(e,n);if(l){if(t.H&&u&128){var d=t.H[e];if(d){d.map((function(r){try{l[r](n,f,e)}catch(r){c(r,a)}}))}}if((u&(2|16))===2){Rr(i,false)}}}};var Qr=function(r,e,n){var t,i;var a=r.prototype;if(e.W||(e.H||r.watchers)){if(r.watchers&&!e.H){e.H=r.watchers}var f=Object.entries((t=e.W)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,t,{get:function(){return Gr(this,t)},set:function(r){Ir(this,t,r,e)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}var n;var i=o(this);return(n=i==null?void 0:i.l)==null?void 0:n.then((function(){var e;return(e=i.t)==null?void 0:e[t].apply(e,r)}))}})}}));if(n&1){var u=new Map;a.attributeChangedCallback=function(r,n,t){var i=this;S.jmp((function(){var f;var l=u.get(r);if(i.hasOwnProperty(l)){t=i[l];delete i[l]}else if(a.hasOwnProperty(l)&&typeof i[l]==="number"&&i[l]==t){return}else if(l==null){var s=o(i);var v=s==null?void 0:s.i;if(v&&!(v&8)&&v&128&&t!==n){var c=s.t;var d=(f=e.H)==null?void 0:f[r];d==null?void 0:d.forEach((function(e){if(c[e]!=null){c[e].call(c,t,n,r)}}))}return}i[l]=t===null&&typeof i[l]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=e.H)!=null?i:{}),true),f.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).map((function(r){var e=r[0],n=r[1];var t=n[1]||e;u.set(t,e);return t})),true)))}}return r};var qr=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l,s,v,d,m;return __generator(this,(function(y){switch(y.label){case 0:if(!((e.i&32)===0))return[3,6];e.i|=32;i=t.S;if(!i)return[3,4];a=h(t);if(!(a&&"then"in a))return[3,2];f=B();return[4,a];case 1:n=y.sent();f();return[3,3];case 2:n=a;y.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.m,"#").concat(e.B,'" was not found'))}if(!n.isProxied){{t.H=n.watchers}Qr(n,t,2);n.isProxied=true}u=z("createInstance",t.m);{e.i|=8}try{new n(e)}catch(r){c(r)}{e.i&=~8}{e.i|=128}u();return[3,5];case 4:n=r.constructor;o=r.localName;customElements.whenDefined(o).then((function(){return e.i|=128}));y.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}s=nr(t);if(!p.has(s)){v=z("registerStyles",t.m);Z(s,l,!!(t.i&1));v()}}y.label=6;case 6:d=e.N;m=function(){return Rr(e,true)};if(d&&d["s-rc"]){d["s-rc"].push(m)}else{m()}return[2]}}))}))};var Kr=function(r){};var Vr=function(r){if((S.i&1)===0){var e=o(r);var n=e.u;var t=z("connectedCallback",n.m);if(!(e.i&1)){e.i|=1;{if(n.i&(4|8)){Xr(r)}}{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){Lr(e,e.N=i);break}}}if(n.W){Object.entries(n.W).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}{qr(r,e,n)}}else{re(r,e,n.G);if(e==null?void 0:e.t);else if(e==null?void 0:e.h){e.h.then((function(){return Kr()}))}}t()}};var Xr=function(r){var e=r["s-cr"]=b.createComment("");e["s-cn"]=true;Er(r,e,r.firstChild)};var Jr=function(r){{zr(r,"disconnectedCallback")}};var Yr=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((S.i&1)===0){e=o(r);{if(e.I){e.I.map((function(r){return r()}));e.I=void 0}}if(e==null?void 0:e.t){Jr(e.t)}else if(e==null?void 0:e.h){e.h.then((function(){return Jr(e.t)}))}}return[2]}))}))};var Zr=r("b",(function(r,e){if(e===void 0){e={}}var n;var t=z();var i=[];var a=e.exclude||[];var f=w.customElements;var u=b.head;var l=u.querySelector("meta[charset]");var v=b.createElement("style");var c=[];var d;var h=true;Object.assign(S,e);S._=new URL(e.resourcesUrl||"./",b.baseURI).href;var p=false;r.map((function(r){r[1].map((function(e){var n;var t={i:e[0],m:e[1],W:e[2],G:e[3]};if(t.i&4){p=true}{t.W=e[2]}{t.G=e[3]}{t.H=(n=e[4])!=null?n:{}}var u=t.m;var l=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;s(e,t);if(t.i&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.m,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}e.prototype.connectedCallback=function(){var r=this;var e=o(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;re(this,e,t.G)}if(d){clearTimeout(d);d=null}if(h){c.push(this)}else{S.jmp((function(){return Vr(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;S.jmp((function(){return Yr(r)}))};e.prototype.componentOnReady=function(){return o(this).h};return e}(HTMLElement);t.S=r[0];if(!a.includes(u)&&!f.get(u)){i.push(u);f.define(u,Qr(l,t,1))}}))}));if(i.length>0){if(p){v.textContent+=y}{v.textContent+=i.sort()+m}if(v.innerHTML.length){v.setAttribute("data-styles","");var g=(n=S.D)!=null?n:M(b);if(g!=null){v.setAttribute("nonce",g)}u.insertBefore(v,l?l.nextSibling:u.firstChild)}}h=false;if(c.length){c.map((function(r){return r.connectedCallback()}))}else{{S.jmp((function(){return d=setTimeout(Hr,30)}))}}t()}));var re=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=r;var u=ee(e,a);var o=ne(t);S.ael(f,i,u,o);(e.I=e.I||[]).push((function(){return S.rel(f,i,u,o)}))}))}};var ee=function(r,e){return function(n){var t;try{{if(r.i&256){(t=r.t)==null?void 0:t[e](n)}else{(r.U=r.U||[]).push([e,n])}}}catch(r){c(r)}}};var ne=function(r){return g?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var te=r("s",(function(r){return S.D=r}))}}}));