@everymatrix/cashier-spinner 1.87.26 → 1.87.28

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,63 +1,63 @@
1
- var F = Object.defineProperty, J = Object.defineProperties;
1
+ var G = Object.defineProperty, J = Object.defineProperties;
2
2
  var V = Object.getOwnPropertyDescriptors;
3
- var M = Object.getOwnPropertySymbols;
4
- var q = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
- 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) => {
3
+ var N = Object.getOwnPropertySymbols;
4
+ var K = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
5
+ var x = (e, t, n) => t in e ? G(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, B = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- q.call(t, n) && x(e, n, t[n]);
8
- if (M)
9
- for (var n of M(t))
10
- G.call(t, n) && x(e, n, t[n]);
7
+ K.call(t, n) && x(e, n, t[n]);
8
+ if (N)
9
+ for (var n of N(t))
10
+ W.call(t, n) && x(e, n, t[n]);
11
11
  return e;
12
- }, B = (e, t) => J(e, V(t));
12
+ }, T = (e, t) => J(e, V(t));
13
13
  var f = (e, t, n) => (x(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var P = (e, t, n) => new Promise((s, r) => {
15
- var i = (c) => {
14
+ var R = (e, t, n) => new Promise((s, i) => {
15
+ var r = (l) => {
16
16
  try {
17
- l(n.next(c));
18
- } catch (u) {
19
- r(u);
17
+ u(n.next(l));
18
+ } catch (c) {
19
+ i(c);
20
20
  }
21
- }, o = (c) => {
21
+ }, o = (l) => {
22
22
  try {
23
- l(n.throw(c));
24
- } catch (u) {
25
- r(u);
23
+ u(n.throw(l));
24
+ } catch (c) {
25
+ i(c);
26
26
  }
27
- }, l = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(i, o);
28
- l((n = n.apply(e, t)).next());
27
+ }, u = (l) => l.done ? s(l.value) : Promise.resolve(l.value).then(r, o);
28
+ u((n = n.apply(e, t)).next());
29
29
  });
30
- function d() {
30
+ function _() {
31
31
  }
32
- function H(e) {
32
+ function U(e) {
33
33
  return e();
34
34
  }
35
- function R() {
35
+ function P() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function w(e) {
39
- e.forEach(H);
38
+ function S(e) {
39
+ e.forEach(U);
40
40
  }
41
41
  function z(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function K(e, t) {
44
+ function Y(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function Q(e) {
47
+ function q(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function W(e, t) {
50
+ function Q(e, t) {
51
51
  e.appendChild(t);
52
52
  }
53
53
  function X(e, t, n) {
54
- const s = Y(e);
54
+ const s = Z(e);
55
55
  if (!s.getElementById(t)) {
56
- const r = j("style");
57
- r.id = t, r.textContent = n, Z(s, r);
56
+ const i = O("style");
57
+ i.id = t, i.textContent = n, tt(s, i);
58
58
  }
59
59
  }
60
- function Y(e) {
60
+ function Z(e) {
61
61
  if (!e)
62
62
  return document;
63
63
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -67,29 +67,29 @@ function Y(e) {
67
67
  t
68
68
  ) : e.ownerDocument;
69
69
  }
70
- function Z(e, t) {
71
- return W(
70
+ function tt(e, t) {
71
+ return Q(
72
72
  /** @type {Document} */
73
73
  e.head || e,
74
74
  t
75
75
  ), t.sheet;
76
76
  }
77
- function I(e, t, n) {
77
+ function D(e, t, n) {
78
78
  e.insertBefore(t, n || null);
79
79
  }
80
- function L(e) {
80
+ function j(e) {
81
81
  e.parentNode && e.parentNode.removeChild(e);
82
82
  }
83
- function j(e) {
83
+ function O(e) {
84
84
  return document.createElement(e);
85
85
  }
86
- function U(e, t, n) {
86
+ function I(e, t, n) {
87
87
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
88
88
  }
89
- function tt(e) {
89
+ function et(e) {
90
90
  return Array.from(e.childNodes);
91
91
  }
92
- function et(e) {
92
+ function nt(e) {
93
93
  const t = {};
94
94
  return e.childNodes.forEach(
95
95
  /** @param {Element} node */
@@ -99,124 +99,124 @@ function et(e) {
99
99
  ), t;
100
100
  }
101
101
  let g;
102
- function m(e) {
102
+ function y(e) {
103
103
  g = e;
104
104
  }
105
- function nt() {
105
+ function st() {
106
106
  if (!g)
107
107
  throw new Error("Function called outside component initialization");
108
108
  return g;
109
109
  }
110
- function st(e) {
111
- nt().$$.on_mount.push(e);
110
+ function rt(e) {
111
+ st().$$.on_mount.push(e);
112
112
  }
113
- const h = [], E = [];
114
- let _ = [];
115
- const T = [], it = /* @__PURE__ */ Promise.resolve();
116
- let S = !1;
117
- function rt() {
118
- S || (S = !0, it.then(p));
113
+ const d = [], C = [];
114
+ let p = [];
115
+ const H = [], it = /* @__PURE__ */ Promise.resolve();
116
+ let E = !1;
117
+ function ot() {
118
+ E || (E = !0, it.then(m));
119
119
  }
120
- function C(e) {
121
- _.push(e);
120
+ function L(e) {
121
+ p.push(e);
122
122
  }
123
123
  const k = /* @__PURE__ */ new Set();
124
- let $ = 0;
125
- function p() {
126
- if ($ !== 0)
124
+ let h = 0;
125
+ function m() {
126
+ if (h !== 0)
127
127
  return;
128
128
  const e = g;
129
129
  do {
130
130
  try {
131
- for (; $ < h.length; ) {
132
- const t = h[$];
133
- $++, m(t), ot(t.$$);
131
+ for (; h < d.length; ) {
132
+ const t = d[h];
133
+ h++, y(t), ct(t.$$);
134
134
  }
135
135
  } catch (t) {
136
- throw h.length = 0, $ = 0, t;
136
+ throw d.length = 0, h = 0, t;
137
137
  }
138
- for (m(null), h.length = 0, $ = 0; E.length; )
139
- E.pop()();
140
- for (let t = 0; t < _.length; t += 1) {
141
- const n = _[t];
138
+ for (y(null), d.length = 0, h = 0; C.length; )
139
+ C.pop()();
140
+ for (let t = 0; t < p.length; t += 1) {
141
+ const n = p[t];
142
142
  k.has(n) || (k.add(n), n());
143
143
  }
144
- _.length = 0;
145
- } while (h.length);
146
- for (; T.length; )
147
- T.pop()();
148
- S = !1, k.clear(), m(e);
144
+ p.length = 0;
145
+ } while (d.length);
146
+ for (; H.length; )
147
+ H.pop()();
148
+ E = !1, k.clear(), y(e);
149
149
  }
150
- function ot(e) {
150
+ function ct(e) {
151
151
  if (e.fragment !== null) {
152
- e.update(), w(e.before_update);
152
+ e.update(), S(e.before_update);
153
153
  const t = e.dirty;
154
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(C);
154
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(L);
155
155
  }
156
156
  }
157
- function ct(e) {
157
+ function ut(e) {
158
158
  const t = [], n = [];
159
- _.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), _ = t;
159
+ p.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), p = t;
160
160
  }
161
- const ut = /* @__PURE__ */ new Set();
162
- function lt(e, t) {
163
- e && e.i && (ut.delete(e), e.i(t));
161
+ const lt = /* @__PURE__ */ new Set();
162
+ function ft(e, t) {
163
+ e && e.i && (lt.delete(e), e.i(t));
164
164
  }
165
- function ft(e, t, n) {
166
- const { fragment: s, after_update: r } = e.$$;
167
- s && s.m(t, n), C(() => {
168
- const i = e.$$.on_mount.map(H).filter(z);
169
- e.$$.on_destroy ? e.$$.on_destroy.push(...i) : w(i), e.$$.on_mount = [];
170
- }), r.forEach(C);
165
+ function at(e, t, n) {
166
+ const { fragment: s, after_update: i } = e.$$;
167
+ s && s.m(t, n), L(() => {
168
+ const r = e.$$.on_mount.map(U).filter(z);
169
+ e.$$.on_destroy ? e.$$.on_destroy.push(...r) : S(r), e.$$.on_mount = [];
170
+ }), i.forEach(L);
171
171
  }
172
- function at(e, t) {
172
+ function ht(e, t) {
173
173
  const n = e.$$;
174
- n.fragment !== null && (ct(n.after_update), w(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
174
+ n.fragment !== null && (ut(n.after_update), S(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
175
175
  }
176
- function $t(e, t) {
177
- e.$$.dirty[0] === -1 && (h.push(e), rt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
176
+ function dt(e, t) {
177
+ e.$$.dirty[0] === -1 && (d.push(e), ot(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
178
178
  }
179
- function ht(e, t, n, s, r, i, o = null, l = [-1]) {
180
- const c = g;
181
- m(e);
182
- const u = e.$$ = {
179
+ function $t(e, t, n, s, i, r, o = null, u = [-1]) {
180
+ const l = g;
181
+ y(e);
182
+ const c = e.$$ = {
183
183
  fragment: null,
184
184
  ctx: [],
185
185
  // state
186
- props: i,
187
- update: d,
188
- not_equal: r,
189
- bound: R(),
186
+ props: r,
187
+ update: _,
188
+ not_equal: i,
189
+ bound: P(),
190
190
  // lifecycle
191
191
  on_mount: [],
192
192
  on_destroy: [],
193
193
  on_disconnect: [],
194
194
  before_update: [],
195
195
  after_update: [],
196
- context: new Map(t.context || (c ? c.$$.context : [])),
196
+ context: new Map(t.context || (l ? l.$$.context : [])),
197
197
  // everything else
198
- callbacks: R(),
199
- dirty: l,
198
+ callbacks: P(),
199
+ dirty: u,
200
200
  skip_bound: !1,
201
- root: t.target || c.$$.root
201
+ root: t.target || l.$$.root
202
202
  };
203
- o && o(u.root);
204
- let y = !1;
205
- if (u.ctx = n ? n(e, t.props || {}, (a, O, ...v) => {
206
- const A = v.length ? v[0] : O;
207
- return u.ctx && r(u.ctx[a], u.ctx[a] = A) && (!u.skip_bound && u.bound[a] && u.bound[a](A), y && $t(e, a)), O;
208
- }) : [], u.update(), y = !0, w(u.before_update), u.fragment = s ? s(u.ctx) : !1, t.target) {
203
+ o && o(c.root);
204
+ let b = !1;
205
+ if (c.ctx = n ? n(e, t.props || {}, (a, A, ...v) => {
206
+ const M = v.length ? v[0] : A;
207
+ return c.ctx && i(c.ctx[a], c.ctx[a] = M) && (!c.skip_bound && c.bound[a] && c.bound[a](M), b && dt(e, a)), A;
208
+ }) : [], c.update(), b = !0, S(c.before_update), c.fragment = s ? s(c.ctx) : !1, t.target) {
209
209
  if (t.hydrate) {
210
- const a = tt(t.target);
211
- u.fragment && u.fragment.l(a), a.forEach(L);
210
+ const a = et(t.target);
211
+ c.fragment && c.fragment.l(a), a.forEach(j);
212
212
  } else
213
- u.fragment && u.fragment.c();
214
- t.intro && lt(e.$$.fragment), ft(e, t.target, t.anchor), p();
213
+ c.fragment && c.fragment.c();
214
+ t.intro && ft(e.$$.fragment), at(e, t.target, t.anchor), m();
215
215
  }
216
- m(c);
216
+ y(l);
217
217
  }
218
- let D;
219
- typeof HTMLElement == "function" && (D = class extends HTMLElement {
218
+ let F;
219
+ typeof HTMLElement == "function" && (F = class extends HTMLElement {
220
220
  constructor(t, n, s) {
221
221
  super();
222
222
  /** The Svelte component constructor */
@@ -241,79 +241,79 @@ typeof HTMLElement == "function" && (D = class extends HTMLElement {
241
241
  }
242
242
  addEventListener(t, n, s) {
243
243
  if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
244
- const r = this.$$c.$on(t, n);
245
- this.$$l_u.set(n, r);
244
+ const i = this.$$c.$on(t, n);
245
+ this.$$l_u.set(n, i);
246
246
  }
247
247
  super.addEventListener(t, n, s);
248
248
  }
249
249
  removeEventListener(t, n, s) {
250
250
  if (super.removeEventListener(t, n, s), this.$$c) {
251
- const r = this.$$l_u.get(n);
252
- r && (r(), this.$$l_u.delete(n));
251
+ const i = this.$$l_u.get(n);
252
+ i && (i(), this.$$l_u.delete(n));
253
253
  }
254
254
  }
255
255
  connectedCallback() {
256
- return P(this, null, function* () {
256
+ return R(this, null, function* () {
257
257
  if (this.$$cn = !0, !this.$$c) {
258
- let t = function(i) {
258
+ let t = function(r) {
259
259
  return () => {
260
260
  let o;
261
261
  return {
262
262
  c: function() {
263
- o = j("slot"), i !== "default" && U(o, "name", i);
263
+ o = O("slot"), r !== "default" && I(o, "name", r);
264
264
  },
265
265
  /**
266
266
  * @param {HTMLElement} target
267
267
  * @param {HTMLElement} [anchor]
268
268
  */
269
- m: function(u, y) {
270
- I(u, o, y);
269
+ m: function(c, b) {
270
+ D(c, o, b);
271
271
  },
272
- d: function(u) {
273
- u && L(o);
272
+ d: function(c) {
273
+ c && j(o);
274
274
  }
275
275
  };
276
276
  };
277
277
  };
278
278
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
279
279
  return;
280
- const n = {}, s = et(this);
281
- for (const i of this.$$s)
282
- i in s && (n[i] = [t(i)]);
283
- for (const i of this.attributes) {
284
- const o = this.$$g_p(i.name);
285
- o in this.$$d || (this.$$d[o] = b(o, i.value, this.$$p_d, "toProp"));
280
+ const n = {}, s = nt(this);
281
+ for (const r of this.$$s)
282
+ r in s && (n[r] = [t(r)]);
283
+ for (const r of this.attributes) {
284
+ const o = this.$$g_p(r.name);
285
+ o in this.$$d || (this.$$d[o] = w(o, r.value, this.$$p_d, "toProp"));
286
286
  }
287
- for (const i in this.$$p_d)
288
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
287
+ for (const r in this.$$p_d)
288
+ !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
289
289
  this.$$c = new this.$$ctor({
290
290
  target: this.shadowRoot || this,
291
- props: B(N({}, this.$$d), {
291
+ props: T(B({}, this.$$d), {
292
292
  $$slots: n,
293
293
  $$scope: {
294
294
  ctx: []
295
295
  }
296
296
  })
297
297
  });
298
- const r = () => {
298
+ const i = () => {
299
299
  this.$$r = !0;
300
- for (const i in this.$$p_d)
301
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
302
- const o = b(
303
- i,
304
- this.$$d[i],
300
+ for (const r in this.$$p_d)
301
+ if (this.$$d[r] = this.$$c.$$.ctx[this.$$c.$$.props[r]], this.$$p_d[r].reflect) {
302
+ const o = w(
303
+ r,
304
+ this.$$d[r],
305
305
  this.$$p_d,
306
306
  "toAttribute"
307
307
  );
308
- o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
308
+ o == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, o);
309
309
  }
310
310
  this.$$r = !1;
311
311
  };
312
- this.$$c.$$.after_update.push(r), r();
313
- for (const i in this.$$l)
314
- for (const o of this.$$l[i]) {
315
- const l = this.$$c.$on(i, o);
316
- this.$$l_u.set(o, l);
312
+ this.$$c.$$.after_update.push(i), i();
313
+ for (const r in this.$$l)
314
+ for (const o of this.$$l[r]) {
315
+ const u = this.$$c.$on(r, o);
316
+ this.$$l_u.set(o, u);
317
317
  }
318
318
  this.$$l = {};
319
319
  }
@@ -322,8 +322,8 @@ typeof HTMLElement == "function" && (D = class extends HTMLElement {
322
322
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
323
323
  // and setting attributes through setAttribute etc, this is helpful
324
324
  attributeChangedCallback(t, n, s) {
325
- var r;
326
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = b(t, s, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
325
+ var i;
326
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = w(t, s, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
327
327
  }
328
328
  disconnectedCallback() {
329
329
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -336,13 +336,13 @@ typeof HTMLElement == "function" && (D = class extends HTMLElement {
336
336
  ) || t;
337
337
  }
338
338
  });
339
- function b(e, t, n, s) {
340
- var i;
341
- const r = (i = n[e]) == null ? void 0 : i.type;
342
- if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !n[e])
339
+ function w(e, t, n, s) {
340
+ var r;
341
+ const i = (r = n[e]) == null ? void 0 : r.type;
342
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !n[e])
343
343
  return t;
344
344
  if (s === "toAttribute")
345
- switch (r) {
345
+ switch (i) {
346
346
  case "Object":
347
347
  case "Array":
348
348
  return t == null ? null : JSON.stringify(t);
@@ -354,7 +354,7 @@ function b(e, t, n, s) {
354
354
  return t;
355
355
  }
356
356
  else
357
- switch (r) {
357
+ switch (i) {
358
358
  case "Object":
359
359
  case "Array":
360
360
  return t && JSON.parse(t);
@@ -366,38 +366,38 @@ function b(e, t, n, s) {
366
366
  return t;
367
367
  }
368
368
  }
369
- function dt(e, t, n, s, r, i) {
370
- let o = class extends D {
369
+ function _t(e, t, n, s, i, r) {
370
+ let o = class extends F {
371
371
  constructor() {
372
- super(e, n, r), this.$$p_d = t;
372
+ super(e, n, i), this.$$p_d = t;
373
373
  }
374
374
  static get observedAttributes() {
375
375
  return Object.keys(t).map(
376
- (l) => (t[l].attribute || l).toLowerCase()
376
+ (u) => (t[u].attribute || u).toLowerCase()
377
377
  );
378
378
  }
379
379
  };
380
- return Object.keys(t).forEach((l) => {
381
- Object.defineProperty(o.prototype, l, {
380
+ return Object.keys(t).forEach((u) => {
381
+ Object.defineProperty(o.prototype, u, {
382
382
  get() {
383
- return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
383
+ return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
384
384
  },
385
- set(c) {
386
- var u;
387
- c = b(l, c, t), this.$$d[l] = c, (u = this.$$c) == null || u.$set({ [l]: c });
385
+ set(l) {
386
+ var c;
387
+ l = w(u, l, t), this.$$d[u] = l, (c = this.$$c) == null || c.$set({ [u]: l });
388
388
  }
389
389
  });
390
- }), s.forEach((l) => {
391
- Object.defineProperty(o.prototype, l, {
390
+ }), s.forEach((u) => {
391
+ Object.defineProperty(o.prototype, u, {
392
392
  get() {
393
- var c;
394
- return (c = this.$$c) == null ? void 0 : c[l];
393
+ var l;
394
+ return (l = this.$$c) == null ? void 0 : l[u];
395
395
  }
396
396
  });
397
397
  }), e.element = /** @type {any} */
398
398
  o, o;
399
399
  }
400
- class _t {
400
+ class pt {
401
401
  constructor() {
402
402
  /**
403
403
  * ### PRIVATE API
@@ -418,7 +418,7 @@ class _t {
418
418
  }
419
419
  /** @returns {void} */
420
420
  $destroy() {
421
- at(this, 1), this.$destroy = d;
421
+ ht(this, 1), this.$destroy = _;
422
422
  }
423
423
  /**
424
424
  * @template {Extract<keyof Events, string>} K
@@ -428,11 +428,11 @@ class _t {
428
428
  */
429
429
  $on(t, n) {
430
430
  if (!z(n))
431
- return d;
431
+ return _;
432
432
  const s = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
433
433
  return s.push(n), () => {
434
- const r = s.indexOf(n);
435
- r !== -1 && s.splice(r, 1);
434
+ const i = s.indexOf(n);
435
+ i !== -1 && s.splice(i, 1);
436
436
  };
437
437
  }
438
438
  /**
@@ -440,12 +440,13 @@ class _t {
440
440
  * @returns {void}
441
441
  */
442
442
  $set(t) {
443
- this.$$set && !Q(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
443
+ this.$$set && !q(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
444
444
  }
445
445
  }
446
- const mt = "4";
447
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mt);
448
- function pt(e, t) {
446
+ const yt = "4";
447
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yt);
448
+ const $ = "__WIDGET_GLOBAL_STYLE_CACHE__";
449
+ function mt(e, t) {
449
450
  if (e) {
450
451
  const n = document.createElement("style");
451
452
  n.innerHTML = t, e.appendChild(n);
@@ -456,94 +457,122 @@ function gt(e, t) {
456
457
  return;
457
458
  const n = new URL(t);
458
459
  fetch(n.href).then((s) => s.text()).then((s) => {
459
- const r = document.createElement("style");
460
- r.innerHTML = s, e && e.appendChild(r);
460
+ const i = document.createElement("style");
461
+ i.innerHTML = s, e && e.appendChild(i);
461
462
  }).catch((s) => {
462
463
  console.error("There was an error while trying to load client styling from URL", s);
463
464
  });
464
465
  }
465
- function yt(e, t, n) {
466
- if (window.emMessageBus) {
467
- const s = document.createElement("style");
468
- window.emMessageBus.subscribe(t, (r) => {
469
- s.innerHTML = r, e && e.appendChild(s);
466
+ function bt(e, t, n, s = !1) {
467
+ if (!window.emMessageBus)
468
+ return;
469
+ if (!("adoptedStyleSheets" in Document.prototype) || !s)
470
+ return n = wt(e, t), n;
471
+ window[$] || (window[$] = {}), n = St(e, t);
472
+ const r = n.unsubscribe.bind(n), o = () => {
473
+ if (window[$][t]) {
474
+ const u = window[$][t];
475
+ u.refCount > 1 ? u.refCount = u.refCount - 1 : delete window[$][t];
476
+ }
477
+ r();
478
+ };
479
+ return n.unsubscribe = o, n;
480
+ }
481
+ function wt(e, t) {
482
+ const n = document.createElement("style");
483
+ return window.emMessageBus.subscribe(t, (s) => {
484
+ e && (n.innerHTML = s, e.appendChild(n));
485
+ });
486
+ }
487
+ function St(e, t) {
488
+ return window.emMessageBus.subscribe(t, (n) => {
489
+ var u;
490
+ if (!e)
491
+ return;
492
+ const s = e.getRootNode(), i = window[$];
493
+ let r = (u = i[t]) == null ? void 0 : u.sheet;
494
+ r ? i[t].refCount = i[t].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(n), i[t] = {
495
+ sheet: r,
496
+ refCount: 1
470
497
  });
471
- }
498
+ const o = s.adoptedStyleSheets || [];
499
+ o.includes(r) || (s.adoptedStyleSheets = [...o, r]);
500
+ });
472
501
  }
473
- function bt(e) {
502
+ function xt(e) {
474
503
  X(e, "svelte-sjjtuo", ".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 50%);transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
475
504
  }
476
- function wt(e) {
505
+ function kt(e) {
477
506
  let t;
478
507
  return {
479
508
  c() {
480
- t = j("div"), t.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"></circle></svg>', U(t, "class", "CashierSpinner");
509
+ t = O("div"), t.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"></circle></svg>', I(t, "class", "CashierSpinner");
481
510
  },
482
511
  m(n, s) {
483
- I(n, t, s), e[4](t);
512
+ D(n, t, s), e[4](t);
484
513
  },
485
- p: d,
486
- i: d,
487
- o: d,
514
+ p: _,
515
+ i: _,
516
+ o: _,
488
517
  d(n) {
489
- n && L(t), e[4](null);
518
+ n && j(t), e[4](null);
490
519
  }
491
520
  };
492
521
  }
493
- function xt(e, t, n) {
494
- let { clientstyling: s = "" } = t, { clientstylingurl: r = "" } = t, { mbsource: i = "" } = t, o;
495
- st(() => () => {
522
+ function Ct(e, t, n) {
523
+ let { clientstyling: s = "" } = t, { clientstylingurl: i = "" } = t, { mbsource: r = "" } = t, o, u;
524
+ rt(() => () => {
496
525
  });
497
526
  function l(c) {
498
- E[c ? "unshift" : "push"](() => {
527
+ C[c ? "unshift" : "push"](() => {
499
528
  o = c, n(0, o);
500
529
  });
501
530
  }
502
531
  return e.$$set = (c) => {
503
- "clientstyling" in c && n(1, s = c.clientstyling), "clientstylingurl" in c && n(2, r = c.clientstylingurl), "mbsource" in c && n(3, i = c.mbsource);
532
+ "clientstyling" in c && n(1, s = c.clientstyling), "clientstylingurl" in c && n(2, i = c.clientstylingurl), "mbsource" in c && n(3, r = c.mbsource);
504
533
  }, e.$$.update = () => {
505
534
  e.$$.dirty & /*clientstyling, customStylingContainer*/
506
- 3 && s && o && pt(o, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
507
- 5 && r && o && gt(o, r), e.$$.dirty & /*mbsource, customStylingContainer*/
508
- 9 && i && o && yt(o, `${i}.Style`);
509
- }, [o, s, r, i, l];
535
+ 3 && s && o && mt(o, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
536
+ 5 && i && o && gt(o, i), e.$$.dirty & /*mbsource, customStylingContainer*/
537
+ 9 && r && o && bt(o, `${r}.Style`, u);
538
+ }, [o, s, i, r, l];
510
539
  }
511
- class kt extends _t {
540
+ class Et extends pt {
512
541
  constructor(t) {
513
- super(), ht(
542
+ super(), $t(
514
543
  this,
515
544
  t,
516
- xt,
517
- wt,
518
- K,
545
+ Ct,
546
+ kt,
547
+ Y,
519
548
  {
520
549
  clientstyling: 1,
521
550
  clientstylingurl: 2,
522
551
  mbsource: 3
523
552
  },
524
- bt
553
+ xt
525
554
  );
526
555
  }
527
556
  get clientstyling() {
528
557
  return this.$$.ctx[1];
529
558
  }
530
559
  set clientstyling(t) {
531
- this.$$set({ clientstyling: t }), p();
560
+ this.$$set({ clientstyling: t }), m();
532
561
  }
533
562
  get clientstylingurl() {
534
563
  return this.$$.ctx[2];
535
564
  }
536
565
  set clientstylingurl(t) {
537
- this.$$set({ clientstylingurl: t }), p();
566
+ this.$$set({ clientstylingurl: t }), m();
538
567
  }
539
568
  get mbsource() {
540
569
  return this.$$.ctx[3];
541
570
  }
542
571
  set mbsource(t) {
543
- this.$$set({ mbsource: t }), p();
572
+ this.$$set({ mbsource: t }), m();
544
573
  }
545
574
  }
546
- dt(kt, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
575
+ _t(Et, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
547
576
  export {
548
- kt as default
577
+ Et as default
549
578
  };