var e=Object.defineProperty,t={},n=e=>"object"==(e=typeof e)||"function"===e;function l(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>r,map:()=>s,ok:()=>o,unwrap:()=>c,unwrapErr:()=>u});var o=e=>({isOk:!0,isErr:!1,value:e}),r=e=>({isOk:!1,isErr:!0,value:e});function s(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>o(e))):o(n)}if(e.isErr)return r(e.value);throw"should never get here"}var i,c=e=>{if(e.isOk)return e.value;throw e.value},u=e=>{if(e.isErr)return e.value;throw e.value},a="slot-fb{display:contents}slot-fb[hidden]{display:none}",f=(e,t,...l)=>{let o=null,r=null,s=!1,i=!1;const c=[],u=t=>{for(let l=0;le[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,m);const a=h(e,null);return a.l=t,c.length>0&&(a.o=c),a.i=r,a},h=(e,t)=>({u:0,h:e,t,m:null,o:null,l:null,i:null}),d={},m={forEach:(e,t)=>e.map(p).forEach(t),map:(e,t)=>e.map(p).map(t).map(v)},p=e=>({vattrs:e.l,vchildren:e.o,vkey:e.i,vname:e.p,vtag:e.h,vtext:e.t}),v=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),f(e.vtag,t,...e.vchildren||[])}const t=h(e.vtag,e.vtext);return t.l=e.vattrs,t.o=e.vchildren,t.i=e.vkey,t.p=e.vname,t},y=e=>ne(e).$hostElement$,w=(e,t,n)=>{const l=y(e);return{emit:e=>b(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},b=(e,t,n)=>{const l=he.ce(t,n);return e.dispatchEvent(l),l},$=new WeakMap,g=e=>"sc-"+e.v,j=(e,t,l,o,r,s)=>{if(l!==o){let i=re(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,n=O(l),r=O(o);t.remove(...n.filter((e=>e&&!r.includes(e)))),t.add(...r.filter((e=>e&&!n.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const c=n(o);if((i||c&&null!==o)&&!r)try{if(e.tagName.includes("-"))e[t]=o;else{const n=null==o?"":o;"list"===t?i=!1:null!=l&&e[t]==n||(e[t]=n)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||r)&&!c&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):re(ae,c)?c.slice(2):c[2]+t.slice(3),l||o){const n=t.endsWith(k);t=t.replace(E,""),l&&he.rel(e,t,l,n),o&&he.ael(e,t,o,n)}}},S=/\s/,O=e=>e?e.split(S):[],k="Capture",E=RegExp(k+"$"),C=(e,n,l)=>{const o=11===n.m.nodeType&&n.m.host?n.m.host:n.m,r=e&&e.l||t,s=n.l||t;for(const e of M(Object.keys(r)))e in s||j(o,e,r[e],void 0,l,n.u);for(const e of M(Object.keys(s)))j(o,e,r[e],s[e],l,n.u)};function M(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var x=!1,P=(e,t,n)=>{const l=t.o[n];let o,r,s=0;if(null!==l.t)o=l.m=fe.createTextNode(l.t);else{if(x||(x="svg"===l.h),o=l.m=fe.createElementNS(x?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.h),x&&"foreignObject"===l.h&&(x=!1),C(null,l,x),l.o)for(s=0;s{let s,i=e;for(;o<=r;++o)l[o]&&(s=P(null,n,o),s&&(l[o].m=s,A(i,s,t)))},F=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.m;e&&e.remove()}}},L=(e,t,n=!1)=>e.h===t.h&&(!!n||e.i===t.i),T=(e,t,n=!1)=>{const l=t.m=e.m,o=e.o,r=t.o,s=t.h,i=t.t;null===i?(C(e,t,x="svg"===s||"foreignObject"!==s&&x),null!==o&&null!==r?((e,t,n,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],m=l.length-1,p=l[0],v=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==p)p=l[++c];else if(null==v)v=l[--m];else if(L(h,p,o))T(h,p,o),h=t[++i],p=l[++c];else if(L(d,v,o))T(d,v,o),d=t[--f],v=l[--m];else if(L(h,v,o))T(h,v,o),A(e,h.m,d.m.nextSibling),h=t[++i],v=l[--m];else if(L(d,p,o))T(d,p,o),A(e,d.m,h.m),d=t[--f],p=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].i&&t[a].i===p.i){u=a;break}u>=0?(s=t[u],s.h!==p.h?r=P(t&&t[c],n,u):(T(s,p,o),t[u]=void 0,r=s.m),p=l[++c]):(r=P(t&&t[c],n,c),p=l[++c]),r&&A(h.m.parentNode,r,h.m)}i>f?R(e,null==l[m+1]?null:l[m+1].m,n,l,c,m):c>m&&F(t,i,f)})(l,o,t,r,n):null!==r?(null!==e.t&&(l.textContent=""),R(l,null,t,r,0,r.length-1)):null!==o&&F(o,0,o.length-1),x&&"svg"===s&&(x=!1)):e.t!==i&&(l.data=i)},A=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),D=(e,t)=>{t&&!e.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$=t)))},N=(e,t)=>{if(e.u|=16,!(4&e.u))return D(e,e.j),je((()=>W(e,t)));e.u|=512},W=(e,t)=>{const n=e.S;if(!n)throw Error(`Can't render component <${e.$hostElement$.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.u|=256,e.O&&(e.O.map((([e,t])=>z(n,e,t))),e.O=void 0),l=z(n,"componentWillLoad")),H(l,(()=>q(e,n,t)))},H=(e,t)=>U(e)?e.then(t):t(),U=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,q=async(e,t,n)=>{var o;const r=e.$hostElement$,s=r["s-rc"];n&&(e=>{const t=e.k;((e,t)=>{var n;const o=g(t),r=ue.get(o);if(e=11===e.nodeType?e:fe,r)if("string"==typeof r){let s,i=$.get(e=e.head||e);if(i||$.set(e,i=new Set),!i.has(o)){{s=fe.createElement("style"),s.innerHTML=r;const t=null!=(n=he.C)?n:l(fe);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.u&&(s.innerHTML+=a),i&&i.add(o)}}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r])})(e.$hostElement$.getRootNode(),t)})(e);G(e,t,r,n),s&&(s.map((e=>e())),r["s-rc"]=void 0);{const t=null!=(o=r["s-p"])?o:[],n=()=>V(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}},G=(e,t,n,l)=>{try{t=t.render(),e.u&=-17,e.u|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.M||h(null,null),r=(e=>e&&e.h===d)(t)?t:f(null,null,t);if(i=l.tagName,n&&r.l)for(const e of Object.keys(r.l))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.l[e]=l[e]);r.h=null,r.u|=4,e.M=r,r.m=o.m=l,T(o,r,n)})(e,t,l)}catch(t){se(t,e.$hostElement$)}return null},V=e=>{const t=e.$hostElement$,n=e.S,l=e.j;z(n,"componentDidRender"),64&e.u||(e.u|=64,B(t),z(n,"componentDidLoad"),e.P(t),l||_()),e.R(t),e.$&&(e.$(),e.$=void 0),512&e.u&&ge((()=>N(e,!1))),e.u&=-517},_=()=>{B(fe.documentElement),ge((()=>b(ae,"appload",{detail:{namespace:"lb-upsell-components"}})))},z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){se(e)}},B=e=>e.classList.add(("hydrated","hydrated")),I=(e,t,l)=>{var o;const r=e.prototype;if(t.F){e.watchers&&(t.L=e.watchers);const s=Object.entries(t.F);if(s.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(r,e,{get(){return((e,t)=>ne(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=ne(e);if(!r)throw Error(`Couldn't find host element for "${o.v}" 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 s=r.$hostElement$,i=r.T.get(t),c=r.u,u=r.S;if(l=((e,t)=>null==e||n(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.F[t][0]),(!(8&c)||void 0===i)&&l!==i&&(!Number.isNaN(i)||!Number.isNaN(l))&&(r.T.set(t,l),u)){if(o.L&&128&c){const e=o.L[t];e&&e.map((e=>{try{u[e](l,i,t)}catch(e){se(e,s)}}))}2==(18&c)&&N(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(r,e,{value(...t){var n;const l=ne(this);return null==(n=null==l?void 0:l.A)?void 0:n.then((()=>{var n;return null==(n=l.S)?void 0:n[e](...t)}))}})})),1&l){const n=new Map;r.attributeChangedCallback=function(e,l,o){he.jmp((()=>{var s;const i=n.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(r.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const n=ne(this),r=null==n?void 0:n.u;if(r&&!(8&r)&&128&r&&o!==l){const r=n.S,i=null==(s=t.L)?void 0:s[e];null==i||i.forEach((t=>{null!=r[t]&&r[t].call(r,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=t.L)?o:{}),...s.filter((([e,t])=>15&t[0])).map((([e,t])=>{const l=t[1]||e;return n.set(l,e),l}))]))}}return e},J=(e,t={})=>{var n;const o=[],r=t.exclude||[],s=ae.customElements,i=fe.head,c=i.querySelector("meta[charset]"),u=fe.createElement("style"),f=[];let h,d=!0;Object.assign(he,t),he.D=new URL(t.resourcesUrl||"./",fe.baseURI).href;let m=!1;if(e.map((e=>{e[1].map((t=>{var n;const l={u:t[0],v:t[1],F:t[2],N:t[3]};4&l.u&&(m=!0),l.F=t[2],l.N=t[3],l.L=null!=(n=t[4])?n:{};const i=l.v,c=class extends HTMLElement{constructor(e){super(e),oe(e=this,l)}connectedCallback(){h&&(clearTimeout(h),h=null),d?f.push(this):he.jmp((()=>(e=>{if(!(1&he.u)){const t=ne(e),n=t.k,l=()=>{};if(1&t.u)Q(e,t,n.N),(null==t?void 0:t.S)||(null==t?void 0:t.W)&&t.W.then((()=>{}));else{t.u|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){D(t,t.j=n);break}}n.F&&Object.entries(n.F).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.u)){if(t.u|=32,n.H){const e=ce(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.U}" was not found`);l.isProxied||(n.L=l.watchers,I(l,n,2),l.isProxied=!0);const o=()=>{};t.u|=8;try{new l(t)}catch(e){se(e)}t.u&=-9,t.u|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.u|=128));if(l&&l.style){let e=l.style;const t=g(n);if(!ue.has(t)){const l=()=>{};((e,t,n)=>{let l=ue.get(e);me&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,ue.set(e,l)})(t,e,!!(1&n.u)),l()}}}const o=t.j,r=()=>N(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(e,t,n)}l()}})(this)))}disconnectedCallback(){he.jmp((()=>(async()=>{if(!(1&he.u)){const e=ne(this);e.q&&(e.q.map((e=>e())),e.q=void 0),(null==e?void 0:e.S)||(null==e?void 0:e.W)&&e.W.then((()=>{}))}})()))}componentOnReady(){return ne(this).W}};l.H=e[0],r.includes(i)||s.get(i)||(o.push(i),s.define(i,I(c,l,1)))}))})),o.length>0&&(m&&(u.textContent+=a),u.textContent+=o+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!=(n=he.C)?n:l(fe);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}d=!1,f.length?f.map((e=>e.connectedCallback())):he.jmp((()=>h=setTimeout(_,30)))},K=(e,t)=>t,Q=(e,t,n)=>{n&&n.map((([n,l,o])=>{const r=Y(e,n),s=X(t,o),i=Z(n);he.ael(r,l,s,i),(t.q=t.q||[]).push((()=>he.rel(r,l,s,i)))}))},X=(e,t)=>n=>{var l;try{256&e.u?null==(l=e.S)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){se(e)}},Y=(e,t)=>8&t?ae:e,Z=e=>({passive:!!(1&e),capture:!!(2&e)}),ee=e=>he.C=e,te=new WeakMap,ne=e=>te.get(e),le=(e,t)=>te.set(t.S=e,t),oe=(e,t)=>{const n={u:0,$hostElement$:e,k:t,T:new Map};return n.A=new Promise((e=>n.R=e)),n.W=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],Q(e,n,t.N),te.set(e,n)},re=(e,t)=>t in e,se=(e,t)=>(0,console.error)(e,t),ie=new Map,ce=e=>{const t=e.v.replace(/-/g,"_"),n=e.H;if(!n)return;const l=ie.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ie.set(n,e),e[t])),se) /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ue=new Map,ae="undefined"!=typeof window?window:{},fe=ae.document||{head:{}},he={u:0,D:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},de=e=>Promise.resolve(e),me=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),pe=!1,ve=[],ye=[],we=(e,t)=>n=>{e.push(n),pe||(pe=!0,t&&4&he.u?ge($e):he.raf($e))},be=e=>{for(let t=0;t{be(ve),be(ye),(pe=ve.length>0)&&he.raf($e)},ge=e=>de().then(e),je=we(ye,!0);export{K as F,J as b,w as c,y as g,f as h,de as p,le as r,ee as s}