stencil-quill
Version:
Native web component for quill editor
3 lines • 22.6 kB
JavaScript
const e="quill-components";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,constructableCSS:true,cssAnnotations:true,devTools:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:false,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:false,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:false,propNumber:false,propString:true,reflect:false,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:false,slotRelocation:true,state:false,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:false,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:false,vdomText:false,vdomXlink:false,watchCallback:true};var n=Object.defineProperty;var r=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var l=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var s=(e,t)=>{e.__stencil__getHostRef=()=>t;t.t=e};var o=(e,t)=>{const n={l:0,$hostElement$:e,o:t,i:new Map};{n.u=new Promise((e=>n.v=e));e["s-p"]=[];e["s-rc"]=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var i=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var a=new Map;var c=(e,t,n)=>{const r=e.h.replace(/-/g,"_");const l=e.p;if(!l){return void 0}const s=a.get(l);if(s){return s[r]}
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((e=>{{a.set(l,e)}return e[r]}),(e=>{f(e,t.$hostElement$)}))};var u=new Map;var v="sty-id";var d="{visibility:hidden}.hydrated{visibility:inherit}";var h="slot-fb{display:contents}slot-fb[hidden]{display:none}";var p=typeof window!=="undefined"?window:{};var m={l:0,m:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var y=t.shadowDom;var b=e=>Promise.resolve(e);var w=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var S=false;var g=[];var $=[];var k=(e,t)=>n=>{e.push(n);if(!S){S=true;if(t&&m.l&4){j(C)}else{m.raf(C)}}};var O=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var C=()=>{O(g);{O($);if(S=g.length>0){m.raf(C)}}};var j=e=>b().then(e);var T=k($,true);var L=e=>e!=null&&e!==void 0;var x=e=>{e=typeof e;return e==="object"||e==="function"};function F(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var N={};r(N,{err:()=>R,map:()=>E,ok:()=>D,unwrap:()=>M,unwrapErr:()=>A});var D=e=>({isOk:true,isErr:false,value:e});var R=e=>({isOk:false,isErr:true,value:e});function E(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>D(e)))}else{return D(n)}}if(e.isErr){const t=e.value;return R(t)}throw"should never get here"}var M=e=>{if(e.isOk){return e.value}else{throw e.value}};var A=e=>{if(e.isErr){return e.value}else{throw e.value}};var P=e=>{const t=I(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){W(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(B(e,z(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&I(e,"childNodes").length){P(e)}}};var U=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};function W(e,t,n){let r=0;let l=[];let s;for(;r<e.length;r++){s=e[r];if(s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||z(s)===n)){l.push(s);if(typeof n!=="undefined")return l}l=[...l,...W(s.childNodes,t,n)]}return l}var B=(e,t,n=true)=>{const r=[];if(n&&e["s-sr"]||!e["s-sr"])r.push(e);let l=e;while(l=l.nextSibling){if(z(l)===t&&(n||!l["s-sr"]))r.push(l)}return r};var _=(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 z=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function H(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?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 l=this["s-cr"].parentElement;const s=l.__childNodes?l.childNodes:U(l.childNodes);s.forEach((e=>{if(r===z(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function I(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var q=(e,t="")=>{{return()=>{}}};var Q=(e,t)=>{{return()=>{}}};var V=(e,t,...n)=>{let r=null;let l=null;let s=null;let o=false;let i=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(o=typeof e!=="function"&&!x(r)){r=String(r)}if(o&&i){f[f.length-1].S+=r}else{f.push(o?Y(null,r):r)}i=o}}};a(n);if(t){if(t.key){l=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const c=Y(e,null);c.$=t;if(f.length>0){c.k=f}{c.O=l}{c.C=s}return c};var Y=(e,t)=>{const n={l:0,j:e,S:t,T:null,k:null};{n.$=null}{n.O=null}{n.C=null}return n};var G={};var K=e=>e&&e.j===G;var X=(e,t)=>{if(e!=null&&!x(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&1){return String(e)}return e}return e};var J=e=>l(e).$hostElement$;var Z=(e,t,n)=>{const r=J(e);return{emit:e=>ee(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var ee=(e,t,n)=>{const r=m.ce(t,n);e.dispatchEvent(r);return r};var te=new WeakMap;var ne=(e,t,n)=>{let r=u.get(e);if(w&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}u.set(e,r)};var re=(e,t,n)=>{var r;const l=se(t);const s=u.get(l);if(!p.document){return l}e=e.nodeType===11?e:p.document;if(s){if(typeof s==="string"){e=e.head||e;let n=te.get(e);let o;if(!n){te.set(e,n=new Set)}if(!n.has(l)){{o=document.querySelector(`[${v}="${l}"]`)||p.document.createElement("style");o.innerHTML=s;const n=(r=m.L)!=null?r:F(p.document);if(n!=null){o.setAttribute("nonce",n)}if(!(t.l&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(o,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(w){const t=new CSSStyleSheet;t.replaceSync(s);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=s+t.innerHTML}else{e.prepend(o)}}}else{e.append(o)}}if(t.l&1){e.insertBefore(o,null)}}if(t.l&4){o.innerHTML+=h}if(n){n.add(l)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return l};var le=e=>{const t=e.o;const n=e.$hostElement$;const r=t.l;const l=q("attachStyles",t.h);const s=re(n.getRootNode(),t);if(r&10&&r&2||r&128){n["s-sc"]=s;n.classList.add(s+"-h")}l()};var se=(e,t)=>"sc-"+e.h;var oe=(e,t,n,r,l,s,o)=>{if(n===r){return}let f=i(e,t);t.toLowerCase();if(t==="class"){const t=e.classList;const l=fe(n);let s=fe(r);{t.remove(...l.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!l.includes(e))))}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else{const o=x(r);if((f||o&&r!==null)&&!l){try{if(!e.tagName.includes("-")){const l=r==null?"":r;if(t==="list"){f=false}else if(n==null||e[t]!=l){if(typeof e.__lookupSetter__(t)==="function"){e[t]=l}else{e.setAttribute(t,l)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!f||s&4||l)&&!o&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var ie=/\s/;var fe=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(ie)};var ae=(e,t,n,r)=>{const l=t.T.nodeType===11&&t.T.host?t.T.host:t.T;const s=e&&e.$||{};const o=t.$||{};{for(const e of ce(Object.keys(s))){if(!(e in o)){oe(l,e,s[e],void 0,n,t.l)}}}for(const e of ce(Object.keys(o))){oe(l,e,s[e],o[e],n,t.l)}};function ce(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ue;var ve;var de;var he=false;var pe=false;var me=false;var ye=false;var be=(e,n,r)=>{var l;const s=n.k[r];let o=0;let i;let f;let a;if(!he){me=true;if(s.j==="slot"){s.l|=s.k?2:1}}if(s.l&1){i=s.T=p.document.createTextNode("");{ae(null,s,ye)}}else{if(!p.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}i=s.T=p.document.createElement(!he&&t.slotRelocation&&s.l&2?"slot-fb":s.j);{ae(null,s,ye)}if(L(ue)&&i["s-si"]!==ue){i.classList.add(i["s-si"]=ue)}if(s.k){for(o=0;o<s.k.length;++o){f=be(e,s,o);if(f){i.appendChild(f)}}}}i["s-hn"]=de;{if(s.l&(2|1)){i["s-sr"]=true;i["s-cr"]=ve;i["s-sn"]=s.C||"";i["s-rf"]=(l=s.$)==null?void 0:l.ref;H(i);a=e&&e.k&&e.k[r];if(a&&a.j===s.j&&e.T){{we(e.T,false)}}{Fe(ve,i,n.T,e==null?void 0:e.T)}}}return i};var we=(e,n)=>{m.l|=1;const r=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===de){r.push(t)}}}for(let e=r.length-1;e>=0;e--){const t=r[e];if(t["s-hn"]!==de&&t["s-ol"]){xe(Oe(t).parentNode,t,Oe(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;me=true}if(n){we(t,n)}}m.l&=~1};var Se=(e,t,n,r,l,s)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e;let i;for(;l<=s;++l){if(r[l]){i=be(null,n,l);if(i){r[l].T=i;xe(o,i,Oe(t))}}}};var ge=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.T;Le(t);if(e){{pe=true;if(e["s-ol"]){e["s-ol"].remove()}else{we(e,true)}}e.remove()}}}};var $e=(e,t,n,r,l=false)=>{let s=0;let o=0;let i=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let h=r[v];let p;let m;while(s<=a&&o<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--a]}else if(d==null){d=r[++o]}else if(h==null){h=r[--v]}else if(ke(c,d,l)){Ce(c,d,l);c=t[++s];d=r[++o]}else if(ke(u,h,l)){Ce(u,h,l);u=t[--a];h=r[--v]}else if(ke(c,h,l)){if(c.j==="slot"||h.j==="slot"){we(c.T.parentNode,false)}Ce(c,h,l);xe(e,c.T,u.T.nextSibling);c=t[++s];h=r[--v]}else if(ke(u,d,l)){if(c.j==="slot"||h.j==="slot"){we(u.T.parentNode,false)}Ce(u,d,l);xe(e,u.T,c.T);u=t[--a];d=r[++o]}else{i=-1;{for(f=s;f<=a;++f){if(t[f]&&t[f].O!==null&&t[f].O===d.O){i=f;break}}}if(i>=0){m=t[i];if(m.j!==d.j){p=be(t&&t[o],n,i)}else{Ce(m,d,l);t[i]=void 0;p=m.T}d=r[++o]}else{p=be(t&&t[o],n,o);d=r[++o]}if(p){{xe(Oe(c.T).parentNode,p,Oe(c.T))}}}}if(s>a){Se(e,r[v+1]==null?null:r[v+1].T,n,r,o,v)}else if(o>v){ge(t,s,a)}};var ke=(e,t,n=false)=>{if(e.j===t.j){if(e.j==="slot"){return e.C===t.C}if(!n){return e.O===t.O}if(n&&!e.O&&t.O){e.O=t.O}return true}return false};var Oe=e=>e&&e["s-ol"]||e;var Ce=(e,n,r=false)=>{const l=n.T=e.T;const s=e.k;const o=n.k;{{ae(e,n,ye)}if(s!==null&&o!==null){$e(l,s,n,o,r)}else if(o!==null){Se(l,null,n,o,0,o.length-1)}else if(!r&&t.updatable&&s!==null){ge(s,0,s.length-1)}}};var je=[];var Te=e=>{let n;let r;let l;const s=e.__childNodes||e.childNodes;for(const e of s){if(e["s-sr"]&&(n=e["s-cr"])&&n.parentNode){r=n.parentNode.__childNodes||n.parentNode.childNodes;const s=e["s-sn"];for(l=r.length-1;l>=0;l--){n=r[l];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==e["s-hn"]&&!t.experimentalSlotFixes){if(_(n,s)){let t=je.find((e=>e.F===n));pe=true;n["s-sn"]=n["s-sn"]||s;if(t){t.F["s-sh"]=e["s-hn"];t.N=e}else{n["s-sh"]=e["s-hn"];je.push({N:e,F:n})}if(n["s-sr"]){je.map((e=>{if(_(e.F,n["s-sn"])){t=je.find((e=>e.F===n));if(t&&!e.N){e.N=t.N}}}))}}else if(!je.some((e=>e.F===n))){je.push({F:n})}}}}if(e.nodeType===1){Te(e)}}};var Le=e=>{{e.$&&e.$.ref&&e.$.ref(null);e.k&&e.k.map(Le)}};var xe=(e,t,n)=>{if(typeof t["s-sn"]==="string"&&!!t["s-sr"]&&!!t["s-cr"]){Fe(t["s-cr"],t,e,t.parentElement)}{return e==null?void 0:e.insertBefore(t,n)}};function Fe(e,t,n,r){var l,s;let o;if(e&&typeof t["s-sn"]==="string"&&!!t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(o=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"];const i=t["s-hn"];(l=n.classList)==null?void 0:l.add(o+"-s");if(r&&((s=r.classList)==null?void 0:s.contains(o+"-s"))){let t=(r.__childNodes||r.childNodes)[0];let n=false;while(t){if(t["s-sn"]!==e&&t["s-hn"]===i&&!!t["s-sr"]){n=true;break}t=t.nextSibling}if(!n)r.classList.remove(o+"-s")}}}var Ne=(e,t,n=false)=>{var r,l,s,o;const i=e.$hostElement$;const f=e.D||Y(null,null);const a=K(t)?t:V(null,null,t);de=i.tagName;if(n&&a.$){for(const e of Object.keys(a.$)){if(i.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){a.$[e]=i[e]}}}a.j=null;a.l|=4;e.D=a;a.T=f.T=i;{ue=i["s-sc"]}he=y;{ve=i["s-cr"];pe=false}Ce(f,a,n);{m.l|=1;if(me){Te(a.T);for(const e of je){const t=e.F;if(!t["s-ol"]&&p.document){const e=p.document.createTextNode("");e["s-nr"]=t;xe(t.parentNode,t["s-ol"]=e,t)}}for(const e of je){const t=e.F;const i=e.N;if(i){const e=i.parentNode;let n=i.nextSibling;{let s=(r=t["s-ol"])==null?void 0:r.previousSibling;while(s){let r=(l=s["s-nr"])!=null?l:null;if(r&&r["s-sn"]===t["s-sn"]&&e===(r.__parentNode||r.parentNode)){r=r.nextSibling;while(r===t||(r==null?void 0:r["s-sr"])){r=r==null?void 0:r.nextSibling}if(!r||!r["s-nr"]){n=r;break}}s=s.previousSibling}}const o=t.__parentNode||t.parentNode;const f=t.__nextSibling||t.nextSibling;if(!n&&e!==o||f!==n){if(t!==n){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}xe(e,t,n);if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof i["s-rf"]==="function"&&i["s-rf"](i)}else{if(t.nodeType===1){if(n){t["s-ih"]=(o=t.hidden)!=null?o:false}t.hidden=true}}}}if(pe){P(a.T)}m.l&=~1;je.length=0}ve=void 0};var De=(e,t)=>{if(t&&!e.R&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.R=()=>{t["s-p"].splice(n-1,1);r()})))}};var Re=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}De(e,e.M);const n=()=>Ee(e,t);return T(n)};var Ee=(e,t)=>{const n=e.$hostElement$;const r=q("scheduleUpdate",e.o.h);const l=e.t;if(!l){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 s;if(t){s=_e(l,"componentWillLoad",void 0,n)}else{s=_e(l,"componentWillUpdate",void 0,n)}s=Me(s,(()=>_e(l,"componentWillRender",void 0,n)));r();return Me(s,(()=>Pe(e,l,t)))};var Me=(e,t)=>Ae(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Ae=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Pe=async(e,t,n)=>{var r;const l=e.$hostElement$;const s=q("update",e.o.h);const o=l["s-rc"];if(n){le(e)}const i=q("render",e.o.h);{Ue(e,t,l,n)}if(o){o.map((e=>e()));l["s-rc"]=void 0}i();s();{const t=(r=l["s-p"])!=null?r:[];const n=()=>We(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.l|=4;t.length=0}}};var Ue=(e,t,n,r)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{Ne(e,t,r)}}}}catch(t){f(t,e.$hostElement$)}return null};var We=e=>{const t=e.o.h;const n=e.$hostElement$;const r=q("postUpdate",t);const l=e.t;const s=e.M;_e(l,"componentDidRender",void 0,n);if(!(e.l&64)){e.l|=64;{ze(n)}_e(l,"componentDidLoad",void 0,n);r();{e.v(n);if(!s){Be()}}}else{_e(l,"componentDidUpdate",void 0,n);r()}{if(e.R){e.R();e.R=void 0}if(e.l&512){j((()=>Re(e,false)))}e.l&=~(4|512)}};var Be=t=>{j((()=>ee(p,"appload",{detail:{namespace:e}})))};var _e=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){f(e,r)}}return void 0};var ze=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var He=(e,t)=>l(e).i.get(t);var Ie=(e,t,n,r)=>{const s=l(e);if(!s){throw new Error(`Couldn't find host element for "${r.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const o=s.$hostElement$;const i=s.i.get(t);const a=s.l;const c=s.t;n=X(n,r.A[t][0]);const u=Number.isNaN(i)&&Number.isNaN(n);const v=n!==i&&!u;if((!(a&8)||i===void 0)&&v){s.i.set(t,n);if(c){if(r.P&&a&128){const e=r.P[t];if(e){e.map((e=>{try{c[e](n,i,t)}catch(e){f(e,o)}}))}}if((a&(2|16))===2){if(c.componentShouldUpdate){if(c.componentShouldUpdate(n,i,t)===false){return}}Re(s,false)}}}};var qe=(e,n,r)=>{var s,o;const i=e.prototype;if(n.A||(n.P||e.watchers)){if(e.watchers&&!n.P){n.P=e.watchers}const f=Object.entries((s=n.A)!=null?s:{});f.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:s,set:o}=Object.getOwnPropertyDescriptor(i,e)||{};if(s)n.A[e][0]|=2048;if(o)n.A[e][0]|=4096;if(r&1||!s){Object.defineProperty(i,e,{get(){{if((n.A[e][0]&2048)===0){return He(this,e)}const t=l(this);const r=t?t.t:i;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(i,e,{set(s){const i=l(this);if(o){const r=t&32?this[e]:i.$hostElement$[e];if(typeof r==="undefined"&&i.i.get(e)){s=i.i.get(e)}else if(!i.i.get(e)&&r){i.i.set(e,r)}o.apply(this,[X(s,t)]);s=t&32?this[e]:i.$hostElement$[e];Ie(this,e,s,n);return}{if((r&1)===0||(n.A[e][0]&4096)===0){Ie(this,e,s,n);if(r&1&&!i.t){i.u.then((()=>{if(n.A[e][0]&4096&&i.t[e]!==i.i.get(e)){i.t[e]=s}}))}return}const l=()=>{const r=i.t[e];if(!i.i.get(e)&&r){i.i.set(e,r)}i.t[e]=X(s,t);Ie(this,e,i.t[e],n)};if(i.t){l()}else{i.u.then((()=>l()))}}}})}}));if(r&1){const r=new Map;i.attributeChangedCallback=function(e,s,o){m.jmp((()=>{var f;const a=r.get(e);if(this.hasOwnProperty(a)&&t.lazyLoad){o=this[a];delete this[a]}else if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==o){return}else if(a==null){const t=l(this);const r=t==null?void 0:t.l;if(r&&!(r&8)&&r&128&&o!==s){const r=t.t;const l=(f=n.P)==null?void 0:f[e];l==null?void 0:l.forEach((t=>{if(r[t]!=null){r[t].call(r,o,s,e)}}))}return}const c=Object.getOwnPropertyDescriptor(i,a);o=o===null&&typeof this[a]==="boolean"?false:o;if(o!==this[a]&&(!c.get||!!c.set)){this[a]=o}}))};e.observedAttributes=Array.from(new Set([...Object.keys((o=n.P)!=null?o:{}),...f.filter((([e,t])=>t[0]&15)).map((([e,t])=>{const n=t[1]||e;r.set(n,e);return n}))]))}}return e};var Qe=async(e,t,n,r)=>{let l;if((t.l&32)===0){t.l|=32;const r=n.p;if(r){const r=c(n,t);if(r&&"then"in r){const e=Q();l=await r;e()}else{l=r}if(!l){throw new Error(`Constructor for "${n.h}#${t.U}" was not found`)}if(!l.isProxied){{n.P=l.watchers}qe(l,n,2);l.isProxied=true}const s=q("createInstance",n.h);{t.l|=8}try{new l(t)}catch(t){f(t,e)}{t.l&=~8}{t.l|=128}s();Ve(t.t,e)}else{l=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.l|=128))}if(l&&l.style){let e;if(typeof l.style==="string"){e=l.style}const t=se(n);if(!u.has(t)){const r=q("registerStyles",n.h);ne(t,e,!!(n.l&1));r()}}}const s=t.M;const o=()=>Re(t,true);if(s&&s["s-rc"]){s["s-rc"].push(o)}else{o()}};var Ve=(e,t)=>{{_e(e,"connectedCallback",void 0,t)}};var Ye=e=>{if((m.l&1)===0){const t=l(e);const n=t.o;const r=q("connectedCallback",n.h);if(!(t.l&1)){t.l|=1;{if(n.l&(4|8)){Ge(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){De(t,t.M=n);break}}}if(n.A){Object.entries(n.A).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{Qe(e,t,n)}}else{if(t==null?void 0:t.t){Ve(t.t,e)}else if(t==null?void 0:t.u){t.u.then((()=>Ve(t.t,e)))}}r()}};var Ge=e=>{if(!p.document){return}const t=e["s-cr"]=p.document.createComment("");t["s-cn"]=true;xe(e,t,e.firstChild)};var Ke=(e,t)=>{{_e(e,"disconnectedCallback",void 0,t||e)}};var Xe=async e=>{if((m.l&1)===0){const t=l(e);if(t==null?void 0:t.t){Ke(t.t,e)}else if(t==null?void 0:t.u){t.u.then((()=>Ke(t.t,e)))}}if(te.has(e)){te.delete(e)}if(e.shadowRoot&&te.has(e.shadowRoot)){te.delete(e.shadowRoot)}};var Je=(e,t={})=>{var n;if(!p.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=q();const s=[];const i=t.exclude||[];const f=p.customElements;const a=p.document.head;const c=a.querySelector("meta[charset]");const u=p.document.createElement("style");const v=[];let y;let b=true;Object.assign(m,t);m.m=new URL(t.resourcesUrl||"./",p.document.baseURI).href;let w=false;e.map((e=>{e[1].map((t=>{var n;const r={l:t[0],h:t[1],A:t[2],W:t[3]};if(r.l&4){w=true}{r.A=t[2]}{r.P=(n=t[4])!=null?n:{}}const a=r.h;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;o(e,r)}connectedCallback(){l(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(y){clearTimeout(y);y=null}if(b){v.push(this)}else{m.jmp((()=>Ye(this)))}}disconnectedCallback(){m.jmp((()=>Xe(this)));m.raf((()=>{var e;const t=l(this);const n=v.findIndex((e=>e===this));if(n>-1){v.splice(n,1)}if(((e=t==null?void 0:t.D)==null?void 0:e.T)instanceof Node&&!t.D.T.isConnected){delete t.D.T}}))}componentOnReady(){return l(this).u}};r.p=e[0];if(!i.includes(a)&&!f.get(a)){s.push(a);f.define(a,qe(c,r,1))}}))}));if(s.length>0){if(w){u.textContent+=h}{u.textContent+=s.sort()+d}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=m.L)!=null?n:F(p.document);if(e!=null){u.setAttribute("nonce",e)}a.insertBefore(u,c?c.nextSibling:a.firstChild)}}b=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{m.jmp((()=>y=setTimeout(Be,30)))}}r()};var Ze=e=>m.L=e;export{G as H,Je as b,Z as c,J as g,V as h,b as p,s as r,Ze as s};
//# sourceMappingURL=p-d874274f.js.map