@everymatrix/general-animation-loading 1.85.17 → 1.85.18

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.
@@ -3,7 +3,7 @@ function a() {
3
3
  function M(t) {
4
4
  return t();
5
5
  }
6
- function O() {
6
+ function S() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function y(t) {
@@ -21,14 +21,14 @@ function T(t) {
21
21
  function H(t, e) {
22
22
  t.appendChild(e);
23
23
  }
24
- function U(t, e, n) {
25
- const s = I(t);
24
+ function I(t, e, n) {
25
+ const s = U(t);
26
26
  if (!s.getElementById(e)) {
27
27
  const i = v("style");
28
28
  i.id = e, i.textContent = n, z(s, i);
29
29
  }
30
30
  }
31
- function I(t) {
31
+ function U(t) {
32
32
  if (!t)
33
33
  return document;
34
34
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
@@ -157,7 +157,7 @@ function nt(t, e, n, s, i, r, o = null, l = [-1]) {
157
157
  props: r,
158
158
  update: a,
159
159
  not_equal: i,
160
- bound: O(),
160
+ bound: S(),
161
161
  // lifecycle
162
162
  on_mount: [],
163
163
  on_destroy: [],
@@ -166,16 +166,16 @@ function nt(t, e, n, s, i, r, o = null, l = [-1]) {
166
166
  after_update: [],
167
167
  context: new Map(e.context || (c ? c.$$.context : [])),
168
168
  // everything else
169
- callbacks: O(),
169
+ callbacks: S(),
170
170
  dirty: l,
171
171
  skip_bound: !1,
172
172
  root: e.target || c.$$.root
173
173
  };
174
174
  o && o(u.root);
175
175
  let L = !1;
176
- if (u.ctx = n ? n(t, e.props || {}, (d, C, ...S) => {
177
- const j = S.length ? S[0] : C;
178
- return u.ctx && i(u.ctx[d], u.ctx[d] = j) && (!u.skip_bound && u.bound[d] && u.bound[d](j), L && et(t, d)), C;
176
+ if (u.ctx = n ? n(t, e.props || {}, (d, C, ...j) => {
177
+ const O = j.length ? j[0] : C;
178
+ return u.ctx && i(u.ctx[d], u.ctx[d] = O) && (!u.skip_bound && u.bound[d] && u.bound[d](O), L && et(t, d)), C;
179
179
  }) : [], u.update(), L = !0, y(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
180
180
  if (e.hydrate) {
181
181
  const d = F(e.target);
@@ -415,6 +415,8 @@ function ct(t, e) {
415
415
  }
416
416
  }
417
417
  function ot(t, e) {
418
+ if (!t || !e)
419
+ return;
418
420
  const n = new URL(e);
419
421
  fetch(n.href).then((s) => s.text()).then((s) => {
420
422
  const i = document.createElement("style");
@@ -432,7 +434,7 @@ function lt(t, e, n) {
432
434
  }
433
435
  }
434
436
  function ut(t) {
435
- U(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
437
+ I(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
436
438
  }
437
439
  function dt(t) {
438
440
  let e;
@@ -38,7 +38,7 @@ function R() {
38
38
  function w(e) {
39
39
  e.forEach(H);
40
40
  }
41
- function U(e) {
41
+ function I(e) {
42
42
  return typeof e == "function";
43
43
  }
44
44
  function q(e, t) {
@@ -53,7 +53,7 @@ function Q(e, t) {
53
53
  function W(e, t, n) {
54
54
  const i = X(e);
55
55
  if (!i.getElementById(t)) {
56
- const r = S("style");
56
+ const r = j("style");
57
57
  r.id = t, r.textContent = n, Y(i, r);
58
58
  }
59
59
  }
@@ -74,13 +74,13 @@ function Y(e, t) {
74
74
  t
75
75
  ), t.sheet;
76
76
  }
77
- function I(e, t, n) {
77
+ function U(e, t, n) {
78
78
  e.insertBefore(t, n || null);
79
79
  }
80
80
  function C(e) {
81
81
  e.parentNode && e.parentNode.removeChild(e);
82
82
  }
83
- function S(e) {
83
+ function j(e) {
84
84
  return document.createElement(e);
85
85
  }
86
86
  function Z(e, t, n) {
@@ -165,7 +165,7 @@ function ut(e, t) {
165
165
  function dt(e, t, n) {
166
166
  const { fragment: i, after_update: r } = e.$$;
167
167
  i && i.m(t, n), L(() => {
168
- const s = e.$$.on_mount.map(H).filter(U);
168
+ const s = e.$$.on_mount.map(H).filter(I);
169
169
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : w(s), e.$$.on_mount = [];
170
170
  }), r.forEach(L);
171
171
  }
@@ -202,9 +202,9 @@ function at(e, t, n, i, r, s, c = null, u = [-1]) {
202
202
  };
203
203
  c && c(l.root);
204
204
  let y = !1;
205
- if (l.ctx = n ? n(e, t.props || {}, (f, j, ...O) => {
206
- const A = O.length ? O[0] : j;
207
- return l.ctx && r(l.ctx[f], l.ctx[f] = A) && (!l.skip_bound && l.bound[f] && l.bound[f](A), y && $t(e, f)), j;
205
+ if (l.ctx = n ? n(e, t.props || {}, (f, O, ...S) => {
206
+ const A = S.length ? S[0] : O;
207
+ return l.ctx && r(l.ctx[f], l.ctx[f] = A) && (!l.skip_bound && l.bound[f] && l.bound[f](A), y && $t(e, f)), O;
208
208
  }) : [], l.update(), y = !0, w(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
209
209
  if (t.hydrate) {
210
210
  const f = tt(t.target);
@@ -260,14 +260,14 @@ typeof HTMLElement == "function" && (z = class extends HTMLElement {
260
260
  let c;
261
261
  return {
262
262
  c: function() {
263
- c = S("slot"), s !== "default" && Z(c, "name", s);
263
+ c = j("slot"), s !== "default" && Z(c, "name", s);
264
264
  },
265
265
  /**
266
266
  * @param {HTMLElement} target
267
267
  * @param {HTMLElement} [anchor]
268
268
  */
269
269
  m: function(l, y) {
270
- I(l, c, y);
270
+ U(l, c, y);
271
271
  },
272
272
  d: function(l) {
273
273
  l && C(c);
@@ -427,7 +427,7 @@ class _t {
427
427
  * @returns {() => void}
428
428
  */
429
429
  $on(t, n) {
430
- if (!U(n))
430
+ if (!I(n))
431
431
  return h;
432
432
  const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
433
433
  return i.push(n), () => {
@@ -452,6 +452,8 @@ function pt(e, t) {
452
452
  }
453
453
  }
454
454
  function gt(e, t) {
455
+ if (!e || !t)
456
+ return;
455
457
  const n = new URL(t);
456
458
  fetch(n.href).then((i) => i.text()).then((i) => {
457
459
  const r = document.createElement("style");
@@ -475,10 +477,10 @@ function wt(e) {
475
477
  let t;
476
478
  return {
477
479
  c() {
478
- t = S("div"), t.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
480
+ t = j("div"), t.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
479
481
  },
480
482
  m(n, i) {
481
- I(n, t, i), e[4](t);
483
+ U(n, t, i), e[4](t);
482
484
  },
483
485
  p: h,
484
486
  i: h,
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,J=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&x(e,n,t[n]);if(M)for(var n of M(t))q.call(t,n)&&x(e,n,t[n]);return e},P=(e,t)=>J(e,V(t));var d=(e,t,n)=>(x(e,typeof t!="symbol"?t+"":t,n),n);var B=(e,t,n)=>new Promise((i,r)=>{var s=o=>{try{u(n.next(o))}catch(l){r(l)}},c=o=>{try{u(n.throw(o))}catch(l){r(l)}},u=o=>o.done?i(o.value):Promise.resolve(o.value).then(s,c);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function h(){}function H(e){return e()}function T(){return Object.create(null)}function w(e){e.forEach(H)}function U(e){return typeof e=="function"}function K(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Q(e){return Object.keys(e).length===0}function W(e,t){e.appendChild(t)}function X(e,t,n){const i=Y(e);if(!i.getElementById(t)){const r=C("style");r.id=t,r.textContent=n,Z(i,r)}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Z(e,t){return W(e.head||e,t),t.sheet}function I(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function C(e){return document.createElement(e)}function tt(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function et(e){return Array.from(e.childNodes)}function nt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let g;function _(e){g=e}function it(){if(!g)throw new Error("Function called outside component initialization");return g}function st(e){it().$$.on_mount.push(e)}const a=[],E=[];let m=[];const R=[],rt=Promise.resolve();let v=!1;function ct(){v||(v=!0,rt.then(p))}function L(e){m.push(e)}const k=new Set;let $=0;function p(){if($!==0)return;const e=g;do{try{for(;$<a.length;){const t=a[$];$++,_(t),ot(t.$$)}}catch(t){throw a.length=0,$=0,t}for(_(null),a.length=0,$=0;E.length;)E.pop()();for(let t=0;t<m.length;t+=1){const n=m[t];k.has(n)||(k.add(n),n())}m.length=0}while(a.length);for(;R.length;)R.pop()();v=!1,k.clear(),_(e)}function ot(e){if(e.fragment!==null){e.update(),w(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}function lt(e){const t=[],n=[];m.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),m=t}const ut=new Set;function dt(e,t){e&&e.i&&(ut.delete(e),e.i(t))}function ft(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),L(()=>{const s=e.$$.on_mount.map(H).filter(U);e.$$.on_destroy?e.$$.on_destroy.push(...s):w(s),e.$$.on_mount=[]}),r.forEach(L)}function $t(e,t){const n=e.$$;n.fragment!==null&&(lt(n.after_update),w(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function at(e,t){e.$$.dirty[0]===-1&&(a.push(e),ct(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ht(e,t,n,i,r,s,c=null,u=[-1]){const o=g;_(e);const l=e.$$={fragment:null,ctx:[],props:s,update:h,not_equal:r,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:T(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};c&&c(l.root);let y=!1;if(l.ctx=n?n(e,t.props||{},(f,j,...O)=>{const A=O.length?O[0]:j;return l.ctx&&r(l.ctx[f],l.ctx[f]=A)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](A),y&&at(e,f)),j}):[],l.update(),y=!0,w(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const f=et(t.target);l.fragment&&l.fragment.l(f),f.forEach(S)}else l.fragment&&l.fragment.c();t.intro&&dt(e.$$.fragment),ft(e,t.target,t.anchor),p()}_(o)}let z;typeof HTMLElement=="function"&&(z=class extends HTMLElement{constructor(t,n,i){super();d(this,"$$ctor");d(this,"$$s");d(this,"$$c");d(this,"$$cn",!1);d(this,"$$d",{});d(this,"$$r",!1);d(this,"$$p_d",{});d(this,"$$l",{});d(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return B(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let c;return{c:function(){c=C("slot"),s!=="default"&&tt(c,"name",s)},m:function(l,y){I(l,c,y)},d:function(l){l&&S(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=nt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=b(c,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:P(N({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const c=b(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=b(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$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(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function b(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){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(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function mt(e,t,n,i,r,s){let c=class extends z{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var l;o=b(u,o,t),this.$$d[u]=o,(l=this.$$c)==null||l.$set({[u]:o})}})}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var o;return(o=this.$$c)==null?void 0:o[u]}})}),e.element=c,c}class _t{constructor(){d(this,"$$");d(this,"$$set")}$destroy(){$t(this,1),this.$destroy=h}$on(t,n){if(!U(n))return h;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!Q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const pt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(pt);function gt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function yt(e,t){const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function bt(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,r=>{i.innerHTML=r,e&&e.appendChild(i)})}}function wt(e){X(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function xt(e){let t;return{c(){t=C("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(n,i){I(n,t,i),e[4](t)},p:h,i:h,o:h,d(n){n&&S(t),e[4](null)}}}function kt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:r=""}=t,{mbsource:s}=t,c;st(()=>()=>{});function u(o){E[o?"unshift":"push"](()=>{c=o,n(0,c)})}return e.$$set=o=>{"clientstyling"in o&&n(1,i=o.clientstyling),"clientstylingurl"in o&&n(2,r=o.clientstylingurl),"mbsource"in o&&n(3,s=o.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&i&&c&&gt(c,i),e.$$.dirty&5&&r&&c&&yt(c,r),e.$$.dirty&9&&s&&c&&bt(c,`${s}.Style`)},[c,i,r,s,u]}class D extends _t{constructor(t){super(),ht(this,t,kt,xt,K,{clientstyling:1,clientstylingurl:2,mbsource:3},wt)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),p()}}mt(D,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=D;
1
+ "use strict";var F=Object.defineProperty,J=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&x(e,n,t[n]);if(M)for(var n of M(t))q.call(t,n)&&x(e,n,t[n]);return e},P=(e,t)=>J(e,V(t));var d=(e,t,n)=>(x(e,typeof t!="symbol"?t+"":t,n),n);var B=(e,t,n)=>new Promise((i,r)=>{var s=o=>{try{u(n.next(o))}catch(l){r(l)}},c=o=>{try{u(n.throw(o))}catch(l){r(l)}},u=o=>o.done?i(o.value):Promise.resolve(o.value).then(s,c);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function h(){}function H(e){return e()}function T(){return Object.create(null)}function w(e){e.forEach(H)}function I(e){return typeof e=="function"}function K(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Q(e){return Object.keys(e).length===0}function W(e,t){e.appendChild(t)}function X(e,t,n){const i=Y(e);if(!i.getElementById(t)){const r=j("style");r.id=t,r.textContent=n,Z(i,r)}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Z(e,t){return W(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function j(e){return document.createElement(e)}function tt(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function et(e){return Array.from(e.childNodes)}function nt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let g;function _(e){g=e}function it(){if(!g)throw new Error("Function called outside component initialization");return g}function st(e){it().$$.on_mount.push(e)}const a=[],E=[];let m=[];const R=[],rt=Promise.resolve();let v=!1;function ct(){v||(v=!0,rt.then(p))}function L(e){m.push(e)}const k=new Set;let $=0;function p(){if($!==0)return;const e=g;do{try{for(;$<a.length;){const t=a[$];$++,_(t),ot(t.$$)}}catch(t){throw a.length=0,$=0,t}for(_(null),a.length=0,$=0;E.length;)E.pop()();for(let t=0;t<m.length;t+=1){const n=m[t];k.has(n)||(k.add(n),n())}m.length=0}while(a.length);for(;R.length;)R.pop()();v=!1,k.clear(),_(e)}function ot(e){if(e.fragment!==null){e.update(),w(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}function lt(e){const t=[],n=[];m.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),m=t}const ut=new Set;function dt(e,t){e&&e.i&&(ut.delete(e),e.i(t))}function ft(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),L(()=>{const s=e.$$.on_mount.map(H).filter(I);e.$$.on_destroy?e.$$.on_destroy.push(...s):w(s),e.$$.on_mount=[]}),r.forEach(L)}function $t(e,t){const n=e.$$;n.fragment!==null&&(lt(n.after_update),w(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function at(e,t){e.$$.dirty[0]===-1&&(a.push(e),ct(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ht(e,t,n,i,r,s,c=null,u=[-1]){const o=g;_(e);const l=e.$$={fragment:null,ctx:[],props:s,update:h,not_equal:r,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:T(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};c&&c(l.root);let y=!1;if(l.ctx=n?n(e,t.props||{},(f,C,...O)=>{const A=O.length?O[0]:C;return l.ctx&&r(l.ctx[f],l.ctx[f]=A)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](A),y&&at(e,f)),C}):[],l.update(),y=!0,w(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const f=et(t.target);l.fragment&&l.fragment.l(f),f.forEach(S)}else l.fragment&&l.fragment.c();t.intro&&dt(e.$$.fragment),ft(e,t.target,t.anchor),p()}_(o)}let z;typeof HTMLElement=="function"&&(z=class extends HTMLElement{constructor(t,n,i){super();d(this,"$$ctor");d(this,"$$s");d(this,"$$c");d(this,"$$cn",!1);d(this,"$$d",{});d(this,"$$r",!1);d(this,"$$p_d",{});d(this,"$$l",{});d(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return B(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let c;return{c:function(){c=j("slot"),s!=="default"&&tt(c,"name",s)},m:function(l,y){U(l,c,y)},d:function(l){l&&S(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=nt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=b(c,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:P(N({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const c=b(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=b(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$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(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function b(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){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(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function mt(e,t,n,i,r,s){let c=class extends z{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var l;o=b(u,o,t),this.$$d[u]=o,(l=this.$$c)==null||l.$set({[u]:o})}})}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var o;return(o=this.$$c)==null?void 0:o[u]}})}),e.element=c,c}class _t{constructor(){d(this,"$$");d(this,"$$set")}$destroy(){$t(this,1),this.$destroy=h}$on(t,n){if(!I(n))return h;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!Q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const pt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(pt);function gt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function yt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function bt(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,r=>{i.innerHTML=r,e&&e.appendChild(i)})}}function wt(e){X(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function xt(e){let t;return{c(){t=j("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(n,i){U(n,t,i),e[4](t)},p:h,i:h,o:h,d(n){n&&S(t),e[4](null)}}}function kt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:r=""}=t,{mbsource:s}=t,c;st(()=>()=>{});function u(o){E[o?"unshift":"push"](()=>{c=o,n(0,c)})}return e.$$set=o=>{"clientstyling"in o&&n(1,i=o.clientstyling),"clientstylingurl"in o&&n(2,r=o.clientstylingurl),"mbsource"in o&&n(3,s=o.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&i&&c&&gt(c,i),e.$$.dirty&5&&r&&c&&yt(c,r),e.$$.dirty&9&&s&&c&&bt(c,`${s}.Style`)},[c,i,r,s,u]}class D extends _t{constructor(t){super(),ht(this,t,kt,xt,K,{clientstyling:1,clientstylingurl:2,mbsource:3},wt)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),p()}}mt(D,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=D;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}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/GeneralAnimationLoading-CYLqpfzI.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}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/GeneralAnimationLoading-GmRWhoyq.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/GeneralAnimationLoading-Dqt0LPDS.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/GeneralAnimationLoading-CUfTTC1c.js").then(({ default: t }) => {
14
14
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { G as a } from "../components/GeneralAnimationLoading-sbibF0Vm.js";
1
+ import { G as a } from "../components/GeneralAnimationLoading-BtJBChhW.js";
2
2
  function i(n) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-animation-loading",
3
- "version": "1.85.17",
3
+ "version": "1.85.18",
4
4
  "type": "module",
5
5
  "main": "es2015/general-animation-loading.cjs",
6
6
  "module": "esnext/general-animation-loading.js",