@everymatrix/casino-game-page 1.77.11 → 1.77.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var ro=Object.defineProperty,no=Object.defineProperties;var io=Object.getOwnPropertyDescriptors;var Gr=Object.getOwnPropertySymbols;var oo=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable;var Jt=(e,t,r)=>t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jr=(e,t)=>{for(var r in t||(t={}))oo.call(t,r)&&Jt(e,r,t[r]);if(Gr)for(var r of Gr(t))ao.call(t,r)&&Jt(e,r,t[r]);return e},Wr=(e,t)=>no(e,io(t));var ae=(e,t,r)=>(Jt(e,typeof t!="symbol"?t+"":t,r),r);var Qt=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(u){i(u)}},a=l=>{try{s(r.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-image-DB-cMaV6.cjs");function Z(){}function Sn(e){return e()}function zr(){return Object.create(null)}function he(e){e.forEach(Sn)}function Tr(e){return typeof e=="function"}function Pn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let wt;function se(e,t){return e===t?!0:(wt||(wt=document.createElement("a")),wt.href=t,e===wt.href)}function so(e){return Object.keys(e).length===0}function Cn(e,...t){if(e==null){for(const n of t)n(void 0);return Z}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function uo(e,t,r){e.$$.on_destroy.push(Cn(t,r))}function m(e,t){e.appendChild(t)}function lo(e,t,r){const n=co(e);if(!n.getElementById(t)){const i=y("style");i.id=t,i.textContent=r,ho(n,i)}}function co(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ho(e,t){return m(e.head||e,t),t.sheet}function j(e,t,r){e.insertBefore(t,r||null)}function G(e){e.parentNode&&e.parentNode.removeChild(e)}function y(e){return document.createElement(e)}function Ct(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function U(e){return document.createTextNode(e)}function D(){return U(" ")}function at(){return U("")}function J(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function p(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function q(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:p(e,t,r)}function fo(e){return Array.from(e.childNodes)}function z(e,t){t=""+t,e.data!==t&&(e.data=t)}function $(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function Ee(e,t,r){e.classList.toggle(t,!!r)}function mo(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let nt;function rt(e){nt=e}function Fn(){if(!nt)throw new Error("Function called outside component initialization");return nt}function po(e){Fn().$$.before_update.push(e)}function go(e){Fn().$$.on_mount.push(e)}const Ae=[],Q=[];let Ne=[];const Vr=[],bo=Promise.resolve();let sr=!1;function vo(){sr||(sr=!0,bo.then(W))}function ur(e){Ne.push(e)}const Zt=new Set;let Me=0;function W(){if(Me!==0)return;const e=nt;do{try{for(;Me<Ae.length;){const t=Ae[Me];Me++,rt(t),yo(t.$$)}}catch(t){throw Ae.length=0,Me=0,t}for(rt(null),Ae.length=0,Me=0;Q.length;)Q.pop()();for(let t=0;t<Ne.length;t+=1){const r=Ne[t];Zt.has(r)||(Zt.add(r),r())}Ne.length=0}while(Ae.length);for(;Vr.length;)Vr.pop()();sr=!1,Zt.clear(),rt(e)}function yo(e){if(e.fragment!==null){e.update(),he(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ur)}}function wo(e){const t=[],r=[];Ne.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Ne=t}const _o=new Set;function Eo(e,t){e&&e.i&&(_o.delete(e),e.i(t))}function xo(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),ur(()=>{const o=e.$$.on_mount.map(Sn).filter(Tr);e.$$.on_destroy?e.$$.on_destroy.push(...o):he(o),e.$$.on_mount=[]}),i.forEach(ur)}function To(e,t){const r=e.$$;r.fragment!==null&&(wo(r.after_update),he(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function So(e,t){e.$$.dirty[0]===-1&&(Ae.push(e),vo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Po(e,t,r,n,i,o,a=null,s=[-1]){const l=nt;rt(e);const u=e.$$={fragment:null,ctx:[],props:o,update:Z,not_equal:i,bound:zr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:zr(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};a&&a(u.root);let h=!1;if(u.ctx=r?r(e,t.props||{},(f,d,...g)=>{const b=g.length?g[0]:d;return u.ctx&&i(u.ctx[f],u.ctx[f]=b)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](b),h&&So(e,f)),d}):[],u.update(),h=!0,he(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const f=fo(t.target);u.fragment&&u.fragment.l(f),f.forEach(G)}else u.fragment&&u.fragment.c();t.intro&&Eo(e.$$.fragment),xo(e,t.target,t.anchor),W()}rt(l)}let On;typeof HTMLElement=="function"&&(On=class extends HTMLElement{constructor(t,r,n){super();ae(this,"$$ctor");ae(this,"$$s");ae(this,"$$c");ae(this,"$$cn",!1);ae(this,"$$d",{});ae(this,"$$r",!1);ae(this,"$$p_d",{});ae(this,"$$l",{});ae(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Qt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let a;return{c:function(){a=y("slot"),o!=="default"&&p(a,"name",o)},m:function(u,h){j(u,a,h)},d:function(u){u&&G(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=mo(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=xt(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Wr(jr({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=xt(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const s=this.$$c.$on(o,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=xt(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function xt(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Co(e,t,r,n,i,o){let a=class extends On{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){var u;l=xt(s,l,t),this.$$d[s]=l,(u=this.$$c)==null||u.$set({[s]:l})}})}),n.forEach(s=>{Object.defineProperty(a.prototype,s,{get(){var l;return(l=this.$$c)==null?void 0:l[s]}})}),e.element=a,a}class Fo{constructor(){ae(this,"$$");ae(this,"$$set")}$destroy(){To(this,1),this.$destroy=Z}$on(t,r){if(!Tr(r))return Z;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!so(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Oo="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oo);/*! *****************************************************************************
1
+ "use strict";var ro=Object.defineProperty,no=Object.defineProperties;var io=Object.getOwnPropertyDescriptors;var Gr=Object.getOwnPropertySymbols;var oo=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable;var Jt=(e,t,r)=>t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jr=(e,t)=>{for(var r in t||(t={}))oo.call(t,r)&&Jt(e,r,t[r]);if(Gr)for(var r of Gr(t))ao.call(t,r)&&Jt(e,r,t[r]);return e},Wr=(e,t)=>no(e,io(t));var ae=(e,t,r)=>(Jt(e,typeof t!="symbol"?t+"":t,r),r);var Qt=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(u){i(u)}},a=l=>{try{s(r.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-image-j5OhrDS4.cjs");function Z(){}function Sn(e){return e()}function zr(){return Object.create(null)}function he(e){e.forEach(Sn)}function Tr(e){return typeof e=="function"}function Pn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let wt;function se(e,t){return e===t?!0:(wt||(wt=document.createElement("a")),wt.href=t,e===wt.href)}function so(e){return Object.keys(e).length===0}function Cn(e,...t){if(e==null){for(const n of t)n(void 0);return Z}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function uo(e,t,r){e.$$.on_destroy.push(Cn(t,r))}function m(e,t){e.appendChild(t)}function lo(e,t,r){const n=co(e);if(!n.getElementById(t)){const i=y("style");i.id=t,i.textContent=r,ho(n,i)}}function co(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ho(e,t){return m(e.head||e,t),t.sheet}function j(e,t,r){e.insertBefore(t,r||null)}function G(e){e.parentNode&&e.parentNode.removeChild(e)}function y(e){return document.createElement(e)}function Ct(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function U(e){return document.createTextNode(e)}function D(){return U(" ")}function at(){return U("")}function J(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function p(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function q(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:p(e,t,r)}function fo(e){return Array.from(e.childNodes)}function z(e,t){t=""+t,e.data!==t&&(e.data=t)}function $(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function Ee(e,t,r){e.classList.toggle(t,!!r)}function mo(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let nt;function rt(e){nt=e}function Fn(){if(!nt)throw new Error("Function called outside component initialization");return nt}function po(e){Fn().$$.before_update.push(e)}function go(e){Fn().$$.on_mount.push(e)}const Ae=[],Q=[];let Ne=[];const Vr=[],bo=Promise.resolve();let sr=!1;function vo(){sr||(sr=!0,bo.then(W))}function ur(e){Ne.push(e)}const Zt=new Set;let Me=0;function W(){if(Me!==0)return;const e=nt;do{try{for(;Me<Ae.length;){const t=Ae[Me];Me++,rt(t),yo(t.$$)}}catch(t){throw Ae.length=0,Me=0,t}for(rt(null),Ae.length=0,Me=0;Q.length;)Q.pop()();for(let t=0;t<Ne.length;t+=1){const r=Ne[t];Zt.has(r)||(Zt.add(r),r())}Ne.length=0}while(Ae.length);for(;Vr.length;)Vr.pop()();sr=!1,Zt.clear(),rt(e)}function yo(e){if(e.fragment!==null){e.update(),he(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ur)}}function wo(e){const t=[],r=[];Ne.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Ne=t}const _o=new Set;function Eo(e,t){e&&e.i&&(_o.delete(e),e.i(t))}function xo(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),ur(()=>{const o=e.$$.on_mount.map(Sn).filter(Tr);e.$$.on_destroy?e.$$.on_destroy.push(...o):he(o),e.$$.on_mount=[]}),i.forEach(ur)}function To(e,t){const r=e.$$;r.fragment!==null&&(wo(r.after_update),he(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function So(e,t){e.$$.dirty[0]===-1&&(Ae.push(e),vo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Po(e,t,r,n,i,o,a=null,s=[-1]){const l=nt;rt(e);const u=e.$$={fragment:null,ctx:[],props:o,update:Z,not_equal:i,bound:zr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:zr(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};a&&a(u.root);let h=!1;if(u.ctx=r?r(e,t.props||{},(f,d,...g)=>{const b=g.length?g[0]:d;return u.ctx&&i(u.ctx[f],u.ctx[f]=b)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](b),h&&So(e,f)),d}):[],u.update(),h=!0,he(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const f=fo(t.target);u.fragment&&u.fragment.l(f),f.forEach(G)}else u.fragment&&u.fragment.c();t.intro&&Eo(e.$$.fragment),xo(e,t.target,t.anchor),W()}rt(l)}let On;typeof HTMLElement=="function"&&(On=class extends HTMLElement{constructor(t,r,n){super();ae(this,"$$ctor");ae(this,"$$s");ae(this,"$$c");ae(this,"$$cn",!1);ae(this,"$$d",{});ae(this,"$$r",!1);ae(this,"$$p_d",{});ae(this,"$$l",{});ae(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Qt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let a;return{c:function(){a=y("slot"),o!=="default"&&p(a,"name",o)},m:function(u,h){j(u,a,h)},d:function(u){u&&G(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=mo(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=xt(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Wr(jr({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=xt(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const s=this.$$c.$on(o,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=xt(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function xt(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Co(e,t,r,n,i,o){let a=class extends On{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){var u;l=xt(s,l,t),this.$$d[s]=l,(u=this.$$c)==null||u.$set({[s]:l})}})}),n.forEach(s=>{Object.defineProperty(a.prototype,s,{get(){var l;return(l=this.$$c)==null?void 0:l[s]}})}),e.element=a,a}class Fo{constructor(){ae(this,"$$");ae(this,"$$set")}$destroy(){To(this,1),this.$destroy=Z}$on(t,r){if(!Tr(r))return Z;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!so(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Oo="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oo);/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1,4 +1,4 @@
1
- import "../stencil/ui-image-Bn9a7Spu.js";
1
+ import "../stencil/ui-image-Buu9LDKy.js";
2
2
  function Q() {
3
3
  }
4
4
  function yn(e) {
@@ -27,7 +27,7 @@ var Qt = (e, t, r) => new Promise((n, i) => {
27
27
  }, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, a);
28
28
  s((r = r.apply(e, t)).next());
29
29
  });
30
- import "../stencil/ui-image-CfDP8dmz.js";
30
+ import "../stencil/ui-image-BvxFHaEs.js";
31
31
  function Z() {
32
32
  }
33
33
  function Sn(e) {
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoGamePage-C1TmFoSt.cjs")).then(({default:t})=>{!customElements.get("casino-game-page")&&customElements.define("casino-game-page",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoGamePage-B9Azx_Hm.cjs")).then(({default:t})=>{!customElements.get("casino-game-page")&&customElements.define("casino-game-page",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoGamePage-CDBJbLDL.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoGamePage-BU-Riyfp.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-game-page") && customElements.define("casino-game-page", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoGamePage-Dl9GKsd1.js";
1
+ import { C as s } from "../components/CasinoGamePage-BHYEOfXo.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-game-page",
3
- "version": "1.77.11",
3
+ "version": "1.77.13",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-game-page.cjs",
6
6
  "module": "esnext/casino-game-page.js",
@@ -42,7 +42,7 @@ var pe = Object.defineProperty, he = (e, t) => {
42
42
  case "ui-image_2":
43
43
  return import(
44
44
  /* webpackMode: "lazy" */
45
- "./ui-image_2-DwuycSdC.js"
45
+ "./ui-image_2-D4c_LX5r.js"
46
46
  ).then(l, k);
47
47
  }
48
48
  }
@@ -26,7 +26,7 @@ var ge = Object.defineProperty, pe = (e, t) => {
26
26
  case "ui-image_2":
27
27
  return import(
28
28
  /* webpackMode: "lazy" */
29
- "./ui-image_2-rhY_9uoo.js"
29
+ "./ui-image_2-hEBXfomA.js"
30
30
  ).then(l, k);
31
31
  }
32
32
  }
@@ -1 +1 @@
1
- "use strict";var x=(e,t,n)=>new Promise((s,r)=>{var i=a=>{try{$(n.next(a))}catch(o){r(o)}},l=a=>{try{$(n.throw(a))}catch(o){r(o)}},$=a=>a.done?s(a.value):Promise.resolve(a.value).then(i,l);$((n=n.apply(e,t)).next())});const pe="ui-image",ye={hydratedSelectorName:"hydrated"};var me=Object.defineProperty,Se=(e,t)=>{for(var n in t)me(e,n,{get:t[n],enumerable:!0})},B=new WeakMap,E=e=>B.get(e),Ee=(e,t)=>B.set(t.$lazyInstance$=e,t),ke=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],B.set(e,n)},D=(e,t)=>t in e,k=(e,t)=>(0,console.error)(e,t),w=new Map,be=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const i=w.get(r);if(i)return i[s];{const l=$=>(w.set(r,$),$[s]);switch(r){case"ui-image_2":return Promise.resolve().then(()=>require("./ui-image_2-CXGY1IY3.cjs")).then(l,k)}}return import(`./${r}.entry.js`).then(l=>(w.set(r,l),l[s]),k)},A=new Map,Pe="{visibility:hidden}.hydrated{visibility:inherit}",Z="slot-fb{display:contents}slot-fb[hidden]{display:none}",j=typeof window!="undefined"?window:{},m=j.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},R=e=>Promise.resolve(e),xe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),I=!1,W=[],N=[],Te=(e,t)=>n=>{e.push(n),I||(I=!0,h.$flags$&4?C(U):h.raf(U))},M=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){k(n)}e.length=0},U=()=>{M(W),M(N),(I=W.length>0)&&h.raf(U)},C=e=>R().then(e),_e=Te(N),G={},q=e=>(e=typeof e,e==="object"||e==="function");function V(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Ae={};Se(Ae,{err:()=>ee,map:()=>Le,ok:()=>z,unwrap:()=>je,unwrapErr:()=>Oe});var z=e=>({isOk:!0,isErr:!1,value:e}),ee=e=>({isOk:!1,isErr:!0,value:e});function Le(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>z(s)):z(n)}if(e.isErr){const n=e.value;return ee(n)}throw"should never get here"}var je=e=>{if(e.isOk)return e.value;throw e.value},Oe=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},we=(e,t)=>()=>{},te=(e,t,...n)=>{let s=null,r=null,i=!1,l=!1;const $=[],a=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!q(s))&&(s=String(s)),i&&l?$[$.length-1].$text$+=s:$.push(i?H(null,s):s),l=i)};if(a(n),t){t.key&&(r=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const o=H(e,null);return o.$attrs$=t,$.length>0&&(o.$children$=$),o.$key$=r,o},H=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},se={},Ie=e=>e&&e.$tag$===se,Ue=(e,t)=>e!=null&&!q(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ze=e=>E(e).$hostElement$,He=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},X=new WeakMap,Be=(e,t,n)=>{let s=A.get(e);xe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,A.set(e,s)},Ce=(e,t,n)=>{var s;const r=ne(t),i=A.get(r);if(e=e.nodeType===11?e:m,i)if(typeof i=="string"){e=e.head||e;let l=X.get(e),$;if(l||X.set(e,l=new Set),!l.has(r)){{$=m.createElement("style"),$.innerHTML=i;const a=(s=h.$nonce$)!=null?s:V(m);a!=null&&$.setAttribute("nonce",a),e.insertBefore($,e.querySelector("link"))}t.$flags$&4&&($.innerHTML+=Z),l&&l.add(r)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},qe=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=S("attachStyles",t.$tagName$);Ce(n.getRootNode(),t),s()},ne=(e,t)=>"sc-"+e.$tagName$,Y=(e,t,n,s,r,i)=>{if(n!==s){let l=D(e,t),$=t.toLowerCase();if(t==="class"){const a=e.classList,o=J(n),c=J(s);a.remove(...o.filter(f=>f&&!c.includes(f))),a.add(...c.filter(f=>f&&!o.includes(f)))}else if(t==="style"){for(const a in n)(!s||s[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in s)(!n||s[a]!==n[a])&&(a.includes("-")?e.style.setProperty(a,s[a]):e.style[a]=s[a])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):D(j,$)?t=$.slice(2):t=$[2]+t.slice(3),n||s){const a=t.endsWith(re);t=t.replace(De,""),n&&h.rel(e,t,n,a),s&&h.ael(e,t,s,a)}}else{const a=q(s);if((l||a&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const o=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=o)&&(e[t]=o)}}catch(o){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||i&4||r)&&!a&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Fe=/\s/,J=e=>e?e.split(Fe):[],re="Capture",De=new RegExp(re+"$"),le=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||G,i=t.$attrs$||G;for(const l of K(Object.keys(r)))l in i||Y(s,l,r[l],void 0,n,t.$flags$);for(const l of K(Object.keys(i)))Y(s,l,r[l],i[l],n,t.$flags$)};function K(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var ae,ie=!1,L=(e,t,n,s)=>{const r=t.$children$[n];let i=0,l,$;if(r.$text$!==null)l=r.$elm$=m.createTextNode(r.$text$);else if(l=r.$elm$=m.createElement(r.$tag$),le(null,r,ie),r.$children$)for(i=0;i<r.$children$.length;++i)$=L(e,r,i),$&&l.appendChild($);return l["s-hn"]=ae,l},$e=(e,t,n,s,r,i)=>{let l=e,$;for(;r<=i;++r)s[r]&&($=L(null,n,r),$&&(s[r].$elm$=$,_(l,$,t)))},oe=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const i=r.$elm$;ce(r),i&&i.remove()}}},We=(e,t,n,s,r=!1)=>{let i=0,l=0,$=0,a=0,o=t.length-1,c=t[0],f=t[o],u=s.length-1,d=s[0],v=s[u],g,p;for(;i<=o&&l<=u;)if(c==null)c=t[++i];else if(f==null)f=t[--o];else if(d==null)d=s[++l];else if(v==null)v=s[--u];else if(T(c,d,r))b(c,d,r),c=t[++i],d=s[++l];else if(T(f,v,r))b(f,v,r),f=t[--o],v=s[--u];else if(T(c,v,r))b(c,v,r),_(e,c.$elm$,f.$elm$.nextSibling),c=t[++i],v=s[--u];else if(T(f,d,r))b(f,d,r),_(e,f.$elm$,c.$elm$),f=t[--o],d=s[++l];else{for($=-1,a=i;a<=o;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){$=a;break}$>=0?(p=t[$],p.$tag$!==d.$tag$?g=L(t&&t[l],n,$):(b(p,d,r),t[$]=void 0,g=p.$elm$),d=s[++l]):(g=L(t&&t[l],n,l),d=s[++l]),g&&_(c.$elm$.parentNode,g,c.$elm$)}i>o?$e(e,s[u+1]==null?null:s[u+1].$elm$,n,s,l,u):l>u&&oe(t,i,o)},T=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,b=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,l=t.$text$;l===null?(le(e,t,ie),r!==null&&i!==null?We(s,r,t,i,n):i!==null?(e.$text$!==null&&(s.textContent=""),$e(s,null,t,i,0,i.length-1)):r!==null&&oe(r,0,r.length-1)):e.$text$!==l&&(s.data=l)},ce=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ce)},_=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Me=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$vnode$||H(null,null),i=Ie(t)?t:te(null,null,t);if(ae=s.tagName,n&&i.$attrs$)for(const l of Object.keys(i.$attrs$))s.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(i.$attrs$[l]=s[l]);i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=r.$elm$=s,b(r,i,n)},fe=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},F=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return fe(e,e.$ancestorComponent$),_e(()=>Ge(e,t))},Ge=(e,t)=>{const n=e.$hostElement$,s=S("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)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 i;return s(),Xe(i,()=>Je(e,r,t))},Xe=(e,t)=>Ye(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ye=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Je=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,i=S("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&qe(e);const $=S("render",e.$cmpMeta$.$tagName$);Ke(e,t,r,n),l&&(l.map(a=>a()),r["s-rc"]=void 0),$(),i();{const a=(s=r["s-p"])!=null?s:[],o=()=>Qe(e);a.length===0?o():(Promise.all(a).then(o),e.$flags$|=4,a.length=0)}}),Ke=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Me(e,t,s)}catch(r){k(r,e.$hostElement$)}return null},Qe=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=S("postUpdate",t),r=e.$lazyInstance$,i=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ve(n),de(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),i||ue()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&C(()=>F(e,!1)),e.$flags$&=-517},ue=e=>{ve(m.documentElement),C(()=>He(j,"appload",{detail:{namespace:pe}}))},de=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){k(s)}},ve=e=>{var t;return e.classList.add((t=ye.hydratedSelectorName)!=null?t:"hydrated")},Ze=(e,t)=>E(e).$instanceValues$.get(t),Re=(e,t,n,s)=>{const r=E(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,l=r.$instanceValues$.get(t),$=r.$flags$,a=r.$lazyInstance$;n=Ue(n,s.$members$[t][0]);const o=Number.isNaN(l)&&Number.isNaN(n),c=n!==l&&!o;if((!($&8)||l===void 0)&&c&&(r.$instanceValues$.set(t,n),a)){if(s.$watchers$&&$&128){const f=s.$watchers$[t];f&&f.map(u=>{try{a[u](n,l,t)}catch(d){k(d,i)}})}($&18)===2&&F(r,!1)}},ge=(e,t,n)=>{var s,r;const i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([$,[a]])=>{(a&31||n&2&&a&32)&&Object.defineProperty(i,$,{get(){return Ze(this,$)},set(o){Re(this,$,o,t)},configurable:!0,enumerable:!0})}),n&1){const $=new Map;i.attributeChangedCallback=function(a,o,c){h.jmp(()=>{var f;const u=$.get(a);if(this.hasOwnProperty(u))c=this[u],delete this[u];else{if(i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const d=E(this),v=d==null?void 0:d.$flags$;if(v&&!(v&8)&&v&128&&c!==o){const g=d.$lazyInstance$,p=(f=t.$watchers$)==null?void 0:f[a];p==null||p.forEach(y=>{g[y]!=null&&g[y].call(g,c,o,a)})}return}}this[u]=c===null&&typeof this[u]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([a,o])=>o[0]&15).map(([a,o])=>{const c=o[1]||a;return $.set(c,a),c})]))}}return e},Ne=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const a=be(n);if(a&&"then"in a){const c=we();r=yield a,c()}else r=a;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,ge(r,n,2),r.isProxied=!0);const o=S("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(c){k(c)}t.$flags$&=-9,t.$flags$|=128,o()}else{r=e.constructor;const a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(r&&r.style){let a;typeof r.style=="string"&&(a=r.style);const o=ne(n);if(!A.has(o)){const c=S("registerStyles",n.$tagName$);Be(o,a,!!(n.$flags$&1)),c()}}}const i=t.$ancestorComponent$,l=()=>F(t,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}),Ve=e=>{},et=e=>{if(!(h.$flags$&1)){const t=E(e),n=t.$cmpMeta$,s=S("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ve());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){fe(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[i]])=>{if(i&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),Ne(e,t,n)}s()}},Q=e=>{de(e,"disconnectedCallback")},tt=e=>x(exports,null,function*(){if(!(h.$flags$&1)){const t=E(e);t!=null&&t.$lazyInstance$?Q(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Q(t.$lazyInstance$))}}),st=(e,t={})=>{var n;const s=S(),r=[],i=t.exclude||[],l=j.customElements,$=m.head,a=$.querySelector("meta[charset]"),o=m.createElement("style"),c=[];let f,u=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let d=!1;if(e.map(v=>{v[1].map(g=>{var p;const y={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};y.$flags$&4&&(d=!0),y.$members$=g[2],y.$watchers$=(p=g[4])!=null?p:{};const P=y.$tagName$,he=class extends HTMLElement{constructor(O){super(O),this.hasRegisteredEventListeners=!1,O=this,ke(O,y)}connectedCallback(){E(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),u?c.push(this):h.jmp(()=>et(this))}disconnectedCallback(){h.jmp(()=>tt(this))}componentOnReady(){return E(this).$onReadyPromise$}};y.$lazyBundleId$=v[0],!i.includes(P)&&!l.get(P)&&(r.push(P),l.define(P,ge(he,y,1)))})}),r.length>0&&(d&&(o.textContent+=Z),o.textContent+=r.sort()+Pe,o.innerHTML.length)){o.setAttribute("data-styles","");const v=(n=h.$nonce$)!=null?n:V(m);v!=null&&o.setAttribute("nonce",v),$.insertBefore(o,a?a.nextSibling:$.firstChild)}u=!1,c.length?c.map(v=>v.connectedCallback()):h.jmp(()=>f=setTimeout(ue,30)),s()};exports.Host=se;exports.bootstrapLazy=st;exports.getElement=ze;exports.h=te;exports.promiseResolve=R;exports.registerInstance=Ee;
1
+ "use strict";var x=(e,t,n)=>new Promise((s,r)=>{var i=a=>{try{$(n.next(a))}catch(o){r(o)}},l=a=>{try{$(n.throw(a))}catch(o){r(o)}},$=a=>a.done?s(a.value):Promise.resolve(a.value).then(i,l);$((n=n.apply(e,t)).next())});const pe="ui-image",ye={hydratedSelectorName:"hydrated"};var me=Object.defineProperty,Se=(e,t)=>{for(var n in t)me(e,n,{get:t[n],enumerable:!0})},B=new WeakMap,E=e=>B.get(e),Ee=(e,t)=>B.set(t.$lazyInstance$=e,t),ke=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],B.set(e,n)},D=(e,t)=>t in e,k=(e,t)=>(0,console.error)(e,t),w=new Map,be=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const i=w.get(r);if(i)return i[s];{const l=$=>(w.set(r,$),$[s]);switch(r){case"ui-image_2":return Promise.resolve().then(()=>require("./ui-image_2-C-3C7pxb.cjs")).then(l,k)}}return import(`./${r}.entry.js`).then(l=>(w.set(r,l),l[s]),k)},A=new Map,Pe="{visibility:hidden}.hydrated{visibility:inherit}",Z="slot-fb{display:contents}slot-fb[hidden]{display:none}",j=typeof window!="undefined"?window:{},m=j.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},R=e=>Promise.resolve(e),xe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),I=!1,W=[],N=[],Te=(e,t)=>n=>{e.push(n),I||(I=!0,h.$flags$&4?C(U):h.raf(U))},M=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){k(n)}e.length=0},U=()=>{M(W),M(N),(I=W.length>0)&&h.raf(U)},C=e=>R().then(e),_e=Te(N),G={},q=e=>(e=typeof e,e==="object"||e==="function");function V(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Ae={};Se(Ae,{err:()=>ee,map:()=>Le,ok:()=>z,unwrap:()=>je,unwrapErr:()=>Oe});var z=e=>({isOk:!0,isErr:!1,value:e}),ee=e=>({isOk:!1,isErr:!0,value:e});function Le(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>z(s)):z(n)}if(e.isErr){const n=e.value;return ee(n)}throw"should never get here"}var je=e=>{if(e.isOk)return e.value;throw e.value},Oe=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},we=(e,t)=>()=>{},te=(e,t,...n)=>{let s=null,r=null,i=!1,l=!1;const $=[],a=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!q(s))&&(s=String(s)),i&&l?$[$.length-1].$text$+=s:$.push(i?H(null,s):s),l=i)};if(a(n),t){t.key&&(r=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const o=H(e,null);return o.$attrs$=t,$.length>0&&(o.$children$=$),o.$key$=r,o},H=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},se={},Ie=e=>e&&e.$tag$===se,Ue=(e,t)=>e!=null&&!q(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ze=e=>E(e).$hostElement$,He=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},X=new WeakMap,Be=(e,t,n)=>{let s=A.get(e);xe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,A.set(e,s)},Ce=(e,t,n)=>{var s;const r=ne(t),i=A.get(r);if(e=e.nodeType===11?e:m,i)if(typeof i=="string"){e=e.head||e;let l=X.get(e),$;if(l||X.set(e,l=new Set),!l.has(r)){{$=m.createElement("style"),$.innerHTML=i;const a=(s=h.$nonce$)!=null?s:V(m);a!=null&&$.setAttribute("nonce",a),e.insertBefore($,e.querySelector("link"))}t.$flags$&4&&($.innerHTML+=Z),l&&l.add(r)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},qe=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=S("attachStyles",t.$tagName$);Ce(n.getRootNode(),t),s()},ne=(e,t)=>"sc-"+e.$tagName$,Y=(e,t,n,s,r,i)=>{if(n!==s){let l=D(e,t),$=t.toLowerCase();if(t==="class"){const a=e.classList,o=J(n),c=J(s);a.remove(...o.filter(f=>f&&!c.includes(f))),a.add(...c.filter(f=>f&&!o.includes(f)))}else if(t==="style"){for(const a in n)(!s||s[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in s)(!n||s[a]!==n[a])&&(a.includes("-")?e.style.setProperty(a,s[a]):e.style[a]=s[a])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):D(j,$)?t=$.slice(2):t=$[2]+t.slice(3),n||s){const a=t.endsWith(re);t=t.replace(De,""),n&&h.rel(e,t,n,a),s&&h.ael(e,t,s,a)}}else{const a=q(s);if((l||a&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const o=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=o)&&(e[t]=o)}}catch(o){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||i&4||r)&&!a&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Fe=/\s/,J=e=>e?e.split(Fe):[],re="Capture",De=new RegExp(re+"$"),le=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||G,i=t.$attrs$||G;for(const l of K(Object.keys(r)))l in i||Y(s,l,r[l],void 0,n,t.$flags$);for(const l of K(Object.keys(i)))Y(s,l,r[l],i[l],n,t.$flags$)};function K(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var ae,ie=!1,L=(e,t,n,s)=>{const r=t.$children$[n];let i=0,l,$;if(r.$text$!==null)l=r.$elm$=m.createTextNode(r.$text$);else if(l=r.$elm$=m.createElement(r.$tag$),le(null,r,ie),r.$children$)for(i=0;i<r.$children$.length;++i)$=L(e,r,i),$&&l.appendChild($);return l["s-hn"]=ae,l},$e=(e,t,n,s,r,i)=>{let l=e,$;for(;r<=i;++r)s[r]&&($=L(null,n,r),$&&(s[r].$elm$=$,_(l,$,t)))},oe=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const i=r.$elm$;ce(r),i&&i.remove()}}},We=(e,t,n,s,r=!1)=>{let i=0,l=0,$=0,a=0,o=t.length-1,c=t[0],f=t[o],u=s.length-1,d=s[0],v=s[u],g,p;for(;i<=o&&l<=u;)if(c==null)c=t[++i];else if(f==null)f=t[--o];else if(d==null)d=s[++l];else if(v==null)v=s[--u];else if(T(c,d,r))b(c,d,r),c=t[++i],d=s[++l];else if(T(f,v,r))b(f,v,r),f=t[--o],v=s[--u];else if(T(c,v,r))b(c,v,r),_(e,c.$elm$,f.$elm$.nextSibling),c=t[++i],v=s[--u];else if(T(f,d,r))b(f,d,r),_(e,f.$elm$,c.$elm$),f=t[--o],d=s[++l];else{for($=-1,a=i;a<=o;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){$=a;break}$>=0?(p=t[$],p.$tag$!==d.$tag$?g=L(t&&t[l],n,$):(b(p,d,r),t[$]=void 0,g=p.$elm$),d=s[++l]):(g=L(t&&t[l],n,l),d=s[++l]),g&&_(c.$elm$.parentNode,g,c.$elm$)}i>o?$e(e,s[u+1]==null?null:s[u+1].$elm$,n,s,l,u):l>u&&oe(t,i,o)},T=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,b=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,l=t.$text$;l===null?(le(e,t,ie),r!==null&&i!==null?We(s,r,t,i,n):i!==null?(e.$text$!==null&&(s.textContent=""),$e(s,null,t,i,0,i.length-1)):r!==null&&oe(r,0,r.length-1)):e.$text$!==l&&(s.data=l)},ce=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ce)},_=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Me=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$vnode$||H(null,null),i=Ie(t)?t:te(null,null,t);if(ae=s.tagName,n&&i.$attrs$)for(const l of Object.keys(i.$attrs$))s.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(i.$attrs$[l]=s[l]);i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=r.$elm$=s,b(r,i,n)},fe=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},F=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return fe(e,e.$ancestorComponent$),_e(()=>Ge(e,t))},Ge=(e,t)=>{const n=e.$hostElement$,s=S("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)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 i;return s(),Xe(i,()=>Je(e,r,t))},Xe=(e,t)=>Ye(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ye=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Je=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,i=S("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&qe(e);const $=S("render",e.$cmpMeta$.$tagName$);Ke(e,t,r,n),l&&(l.map(a=>a()),r["s-rc"]=void 0),$(),i();{const a=(s=r["s-p"])!=null?s:[],o=()=>Qe(e);a.length===0?o():(Promise.all(a).then(o),e.$flags$|=4,a.length=0)}}),Ke=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Me(e,t,s)}catch(r){k(r,e.$hostElement$)}return null},Qe=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=S("postUpdate",t),r=e.$lazyInstance$,i=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ve(n),de(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),i||ue()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&C(()=>F(e,!1)),e.$flags$&=-517},ue=e=>{ve(m.documentElement),C(()=>He(j,"appload",{detail:{namespace:pe}}))},de=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){k(s)}},ve=e=>{var t;return e.classList.add((t=ye.hydratedSelectorName)!=null?t:"hydrated")},Ze=(e,t)=>E(e).$instanceValues$.get(t),Re=(e,t,n,s)=>{const r=E(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,l=r.$instanceValues$.get(t),$=r.$flags$,a=r.$lazyInstance$;n=Ue(n,s.$members$[t][0]);const o=Number.isNaN(l)&&Number.isNaN(n),c=n!==l&&!o;if((!($&8)||l===void 0)&&c&&(r.$instanceValues$.set(t,n),a)){if(s.$watchers$&&$&128){const f=s.$watchers$[t];f&&f.map(u=>{try{a[u](n,l,t)}catch(d){k(d,i)}})}($&18)===2&&F(r,!1)}},ge=(e,t,n)=>{var s,r;const i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([$,[a]])=>{(a&31||n&2&&a&32)&&Object.defineProperty(i,$,{get(){return Ze(this,$)},set(o){Re(this,$,o,t)},configurable:!0,enumerable:!0})}),n&1){const $=new Map;i.attributeChangedCallback=function(a,o,c){h.jmp(()=>{var f;const u=$.get(a);if(this.hasOwnProperty(u))c=this[u],delete this[u];else{if(i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const d=E(this),v=d==null?void 0:d.$flags$;if(v&&!(v&8)&&v&128&&c!==o){const g=d.$lazyInstance$,p=(f=t.$watchers$)==null?void 0:f[a];p==null||p.forEach(y=>{g[y]!=null&&g[y].call(g,c,o,a)})}return}}this[u]=c===null&&typeof this[u]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([a,o])=>o[0]&15).map(([a,o])=>{const c=o[1]||a;return $.set(c,a),c})]))}}return e},Ne=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const a=be(n);if(a&&"then"in a){const c=we();r=yield a,c()}else r=a;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,ge(r,n,2),r.isProxied=!0);const o=S("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(c){k(c)}t.$flags$&=-9,t.$flags$|=128,o()}else{r=e.constructor;const a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(r&&r.style){let a;typeof r.style=="string"&&(a=r.style);const o=ne(n);if(!A.has(o)){const c=S("registerStyles",n.$tagName$);Be(o,a,!!(n.$flags$&1)),c()}}}const i=t.$ancestorComponent$,l=()=>F(t,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}),Ve=e=>{},et=e=>{if(!(h.$flags$&1)){const t=E(e),n=t.$cmpMeta$,s=S("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ve());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){fe(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[i]])=>{if(i&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),Ne(e,t,n)}s()}},Q=e=>{de(e,"disconnectedCallback")},tt=e=>x(exports,null,function*(){if(!(h.$flags$&1)){const t=E(e);t!=null&&t.$lazyInstance$?Q(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Q(t.$lazyInstance$))}}),st=(e,t={})=>{var n;const s=S(),r=[],i=t.exclude||[],l=j.customElements,$=m.head,a=$.querySelector("meta[charset]"),o=m.createElement("style"),c=[];let f,u=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let d=!1;if(e.map(v=>{v[1].map(g=>{var p;const y={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};y.$flags$&4&&(d=!0),y.$members$=g[2],y.$watchers$=(p=g[4])!=null?p:{};const P=y.$tagName$,he=class extends HTMLElement{constructor(O){super(O),this.hasRegisteredEventListeners=!1,O=this,ke(O,y)}connectedCallback(){E(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),u?c.push(this):h.jmp(()=>et(this))}disconnectedCallback(){h.jmp(()=>tt(this))}componentOnReady(){return E(this).$onReadyPromise$}};y.$lazyBundleId$=v[0],!i.includes(P)&&!l.get(P)&&(r.push(P),l.define(P,ge(he,y,1)))})}),r.length>0&&(d&&(o.textContent+=Z),o.textContent+=r.sort()+Pe,o.innerHTML.length)){o.setAttribute("data-styles","");const v=(n=h.$nonce$)!=null?n:V(m);v!=null&&o.setAttribute("nonce",v),$.insertBefore(o,a?a.nextSibling:$.firstChild)}u=!1,c.length?c.map(v=>v.connectedCallback()):h.jmp(()=>f=setTimeout(ue,30)),s()};exports.Host=se;exports.bootstrapLazy=st;exports.getElement=ze;exports.h=te;exports.promiseResolve=R;exports.registerInstance=Ee;
@@ -1,4 +1,4 @@
1
- import { b as e, p as a } from "./index-256b7d4e-7jcaQ7rC.js";
1
+ import { b as e, p as a } from "./index-256b7d4e-DrOXnq3q.js";
2
2
  import { g as i } from "./app-globals-0f993ce5-D-kw1sls.js";
3
3
  var o = () => {
4
4
  const t = import.meta.url, r = {};
@@ -14,7 +14,7 @@ var s = (r, e, a) => new Promise((g, n) => {
14
14
  }, i = (t) => t.done ? g(t.value) : Promise.resolve(t.value).then(m, u);
15
15
  i((a = a.apply(r, e)).next());
16
16
  });
17
- import { b as c, p as l } from "./index-256b7d4e-CSg5Fmgt.js";
17
+ import { b as c, p as l } from "./index-256b7d4e-B27ydHcs.js";
18
18
  import { g as d } from "./app-globals-0f993ce5-D-kw1sls.js";
19
19
  var h = () => {
20
20
  const r = import.meta.url, e = {};
@@ -1,15 +1,15 @@
1
- import { r as n, h as t, H as r, g as a } from "./index-256b7d4e-7jcaQ7rC.js";
2
- const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", o = h, d = class {
1
+ import { r as n, h as t, H as r, g as a } from "./index-256b7d4e-DrOXnq3q.js";
2
+ const o = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", d = o, h = class {
3
3
  constructor(i) {
4
- n(this, i), this.hasStarted = !1, this._onLoad = () => {
4
+ n(this, i), this._onLoad = () => {
5
5
  this.imgLoaded = !0;
6
6
  }, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
7
7
  }
8
8
  onSrcChange() {
9
- this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window > "u" || !("IntersectionObserver" in window)) && this.beginLoad());
9
+ this.loading !== "eager" && (this.imgLoaded = !1, (typeof window > "u" || !("IntersectionObserver" in window)) && this.beginLoad());
10
10
  }
11
11
  onLoadingChange(i, e) {
12
- i !== e && (this.cleanupObserver(), i === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
12
+ i !== e && (this.cleanupObserver(), i === "eager" ? this.imgEl && this.src && (this.imgEl.src = this.src) : (this.imgLoaded = !1, this.setupObserver()));
13
13
  }
14
14
  componentDidLoad() {
15
15
  this.loading !== "eager" && this.setupObserver();
@@ -41,7 +41,17 @@ const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
41
41
  (i = this.io) === null || i === void 0 || i.disconnect(), this.io = void 0;
42
42
  }
43
43
  beginLoad() {
44
- this.hasStarted || this.imgEl && this.src && (this.hasStarted = !0, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0));
44
+ this.preloadAndSetSrc(), this.imgEl && this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
45
+ }
46
+ preloadAndSetSrc() {
47
+ if (!this.src || !this.imgEl)
48
+ return;
49
+ const i = new Image();
50
+ i.onload = () => {
51
+ this.imgEl && (this.imgEl.src = i.src, this.imgLoaded = !0);
52
+ }, i.onerror = () => {
53
+ this.imgEl && (this.imgEl.src = this.src);
54
+ }, i.src = this.src;
45
55
  }
46
56
  get showSkeleton() {
47
57
  return this.loading !== "eager" && !this.imgLoaded;
@@ -65,7 +75,7 @@ const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
65
75
  };
66
76
  }
67
77
  };
68
- d.style = o;
78
+ h.style = d;
69
79
  export {
70
- d as U
80
+ h as U
71
81
  };
@@ -1,15 +1,15 @@
1
- import { r as n, h as t, H as r, g as a } from "./index-256b7d4e-CSg5Fmgt.js";
2
- const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", o = h, d = class {
1
+ import { r as n, h as t, H as r, g as a } from "./index-256b7d4e-B27ydHcs.js";
2
+ const o = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", d = o, h = class {
3
3
  constructor(i) {
4
- n(this, i), this.hasStarted = !1, this._onLoad = () => {
4
+ n(this, i), this._onLoad = () => {
5
5
  this.imgLoaded = !0;
6
6
  }, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
7
7
  }
8
8
  onSrcChange() {
9
- this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
9
+ this.loading !== "eager" && (this.imgLoaded = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
10
10
  }
11
11
  onLoadingChange(i, e) {
12
- i !== e && (this.cleanupObserver(), i === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
12
+ i !== e && (this.cleanupObserver(), i === "eager" ? this.imgEl && this.src && (this.imgEl.src = this.src) : (this.imgLoaded = !1, this.setupObserver()));
13
13
  }
14
14
  componentDidLoad() {
15
15
  this.loading !== "eager" && this.setupObserver();
@@ -41,7 +41,17 @@ const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
41
41
  (i = this.io) === null || i === void 0 || i.disconnect(), this.io = void 0;
42
42
  }
43
43
  beginLoad() {
44
- this.hasStarted || this.imgEl && this.src && (this.hasStarted = !0, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0));
44
+ this.preloadAndSetSrc(), this.imgEl && this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
45
+ }
46
+ preloadAndSetSrc() {
47
+ if (!this.src || !this.imgEl)
48
+ return;
49
+ const i = new Image();
50
+ i.onload = () => {
51
+ this.imgEl && (this.imgEl.src = i.src, this.imgLoaded = !0);
52
+ }, i.onerror = () => {
53
+ this.imgEl && (this.imgEl.src = this.src);
54
+ }, i.src = this.src;
45
55
  }
46
56
  get showSkeleton() {
47
57
  return this.loading !== "eager" && !this.imgLoaded;
@@ -65,7 +75,7 @@ const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
65
75
  };
66
76
  }
67
77
  };
68
- d.style = o;
78
+ h.style = d;
69
79
  export {
70
- d as U
80
+ h as U
71
81
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index-256b7d4e-yFNBIexD.cjs"),n=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",a=n,r=class{constructor(i){e.registerInstance(this,i),this._onLoad=()=>{this.imgLoaded=!0},this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.loading="lazy",this.imgLoaded=!1}onSrcChange(){this.loading!=="eager"&&(this.imgLoaded=!1,(typeof window=="undefined"||!("IntersectionObserver"in window))&&this.beginLoad())}onLoadingChange(i,t){i!==t&&(this.cleanupObserver(),i==="eager"?this.imgEl&&this.src&&(this.imgEl.src=this.src):(this.imgLoaded=!1,this.setupObserver()))}componentDidLoad(){this.loading!=="eager"&&this.setupObserver()}disconnectedCallback(){this.cleanupObserver(),this.imgEl&&(this.imgEl.src="")}canUseIO(){return typeof window!="undefined"&&"IntersectionObserver"in window}setupObserver(){if(this.loading!=="eager"){if(!this.canUseIO()){this.beginLoad();return}this.io=new IntersectionObserver(i=>{var t;for(const s of i)if(s.isIntersecting){this.beginLoad(),(t=this.io)===null||t===void 0||t.unobserve(s.target),this.cleanupObserver();break}},{root:null,rootMargin:this.detectDistance,threshold:0}),this.io.observe(this.el)}}cleanupObserver(){var i;(i=this.io)===null||i===void 0||i.disconnect(),this.io=void 0}beginLoad(){this.preloadAndSetSrc(),this.imgEl&&this.imgEl.complete&&this.imgEl.naturalWidth>0&&(this.imgLoaded=!0)}preloadAndSetSrc(){if(!this.src||!this.imgEl)return;const i=new Image;i.onload=()=>{this.imgEl&&(this.imgEl.src=i.src,this.imgLoaded=!0)},i.onerror=()=>{this.imgEl&&(this.imgEl.src=this.src)},i.src=this.src}get showSkeleton(){return this.loading!=="eager"&&!this.imgLoaded}renderEager(){return e.h(e.Host,{class:"HostContainer"},e.h("img",{src:this.src,decoding:"async",style:this.styles,class:"UiContainer Visible",alt:this.alt,width:this.width,height:this.height,loading:"eager"}))}renderLazy(){return e.h(e.Host,{class:"HostContainer","aria-busy":this.imgLoaded?"false":"true"},this.showSkeleton&&e.h("ui-skeleton",{class:"UiContainer",structure:"image",width:"100%",height:"100%"}),e.h("img",{ref:i=>this.imgEl=i,src:void 0,decoding:"async",style:this.styles,onLoad:this._onLoad,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}render(){return this.loading==="eager"?this.renderEager():this.renderLazy()}get el(){return e.getElement(this)}static get watchers(){return{src:["onSrcChange"],loading:["onLoadingChange"]}}};r.style=a;exports.UiImage=r;
@@ -1 +1 @@
1
- "use strict";var c=(t,r,i)=>new Promise((d,s)=>{var g=e=>{try{n(i.next(e))}catch(a){s(a)}},l=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,l);n((i=i.apply(t,r)).next())});const u=require("./index-256b7d4e-BnoVkrXr.cjs"),m=require("./app-globals-0f993ce5-sCt45RkC.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/ui-image-DB-cMaV6.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),u.promiseResolve(r)};h().then(t=>c(exports,null,function*(){return yield m.globalScripts(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],loading:[1],imgLoaded:[32]},null,{src:["onSrcChange"],loading:["onLoadingChange"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],t)}));
1
+ "use strict";var c=(t,r,i)=>new Promise((d,s)=>{var g=e=>{try{n(i.next(e))}catch(a){s(a)}},l=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,l);n((i=i.apply(t,r)).next())});const u=require("./index-256b7d4e-yFNBIexD.cjs"),m=require("./app-globals-0f993ce5-sCt45RkC.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/ui-image-j5OhrDS4.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),u.promiseResolve(r)};h().then(t=>c(exports,null,function*(){return yield m.globalScripts(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],loading:[1],imgLoaded:[32]},null,{src:["onSrcChange"],loading:["onLoadingChange"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],t)}));
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-8975d115-BIwRmPA-.cjs"),t=require("./index-256b7d4e-BnoVkrXr.cjs"),s=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",a=s,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-ae115205-CcwMMc09.cjs"),t=require("./index-256b7d4e-yFNBIexD.cjs"),s=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",a=s,n=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,i){i!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
2
2
  :host {
3
3
  --emw-skeleton-logo-width: ${this.stylingValue.width};
4
4
  --emw-skeleton-logo-height: ${this.stylingValue.height};
@@ -1,5 +1,5 @@
1
- import { U as m } from "./ui-image-8975d115-C8pJTCfZ.js";
2
- import { r, h as t, H as n } from "./index-256b7d4e-CSg5Fmgt.js";
1
+ import { U as m } from "./ui-image-ae115205-C9w0DS-q.js";
2
+ import { r, h as t, H as n } from "./index-256b7d4e-B27ydHcs.js";
3
3
  const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
4
4
  constructor(e) {
5
5
  r(this, e), this.stylingValue = {
@@ -1,5 +1,5 @@
1
- import { U as m } from "./ui-image-8975d115-DxO6YS6C.js";
2
- import { r, h as t, H as n } from "./index-256b7d4e-7jcaQ7rC.js";
1
+ import { U as m } from "./ui-image-ae115205-Bmmit6PH.js";
2
+ import { r, h as t, H as n } from "./index-256b7d4e-DrOXnq3q.js";
3
3
  const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", a = s, l = class {
4
4
  constructor(e) {
5
5
  r(this, e), this.stylingValue = {
@@ -1 +0,0 @@
1
- "use strict";const i=require("./index-256b7d4e-BnoVkrXr.cjs"),n=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",a=n,r=class{constructor(e){i.registerInstance(this,e),this.hasStarted=!1,this._onLoad=()=>{this.imgLoaded=!0},this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.loading="lazy",this.imgLoaded=!1}onSrcChange(){this.loading!=="eager"&&(this.imgLoaded=!1,this.hasStarted=!1,(typeof window=="undefined"||!("IntersectionObserver"in window))&&this.beginLoad())}onLoadingChange(e,t){e!==t&&(this.cleanupObserver(),e==="eager"?(this.imgEl&&this.src&&(this.imgEl.src=this.src),this.hasStarted=!0):(this.imgLoaded=!1,this.hasStarted=!1,this.setupObserver()))}componentDidLoad(){this.loading!=="eager"&&this.setupObserver()}disconnectedCallback(){this.cleanupObserver(),this.imgEl&&(this.imgEl.src="")}canUseIO(){return typeof window!="undefined"&&"IntersectionObserver"in window}setupObserver(){if(this.loading!=="eager"){if(!this.canUseIO()){this.beginLoad();return}this.io=new IntersectionObserver(e=>{var t;for(const s of e)if(s.isIntersecting){this.beginLoad(),(t=this.io)===null||t===void 0||t.unobserve(s.target),this.cleanupObserver();break}},{root:null,rootMargin:this.detectDistance,threshold:0}),this.io.observe(this.el)}}cleanupObserver(){var e;(e=this.io)===null||e===void 0||e.disconnect(),this.io=void 0}beginLoad(){this.hasStarted||this.imgEl&&this.src&&(this.hasStarted=!0,this.imgEl.src=this.src,this.imgEl.complete&&this.imgEl.naturalWidth>0&&(this.imgLoaded=!0))}get showSkeleton(){return this.loading!=="eager"&&!this.imgLoaded}renderEager(){return i.h(i.Host,{class:"HostContainer"},i.h("img",{src:this.src,decoding:"async",style:this.styles,class:"UiContainer Visible",alt:this.alt,width:this.width,height:this.height,loading:"eager"}))}renderLazy(){return i.h(i.Host,{class:"HostContainer","aria-busy":this.imgLoaded?"false":"true"},this.showSkeleton&&i.h("ui-skeleton",{class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{ref:e=>this.imgEl=e,src:void 0,decoding:"async",style:this.styles,onLoad:this._onLoad,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}render(){return this.loading==="eager"?this.renderEager():this.renderLazy()}get el(){return i.getElement(this)}static get watchers(){return{src:["onSrcChange"],loading:["onLoadingChange"]}}};r.style=a;exports.UiImage=r;