@everymatrix/cashier-verifications 1.74.5 → 1.74.7

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.
@@ -0,0 +1,977 @@
1
+ function E() {
2
+ }
3
+ const ct = (t) => t;
4
+ function _t(t, e) {
5
+ for (const n in e)
6
+ t[n] = e[n];
7
+ return (
8
+ /** @type {T & S} */
9
+ t
10
+ );
11
+ }
12
+ function lt(t) {
13
+ return t();
14
+ }
15
+ function Z() {
16
+ return /* @__PURE__ */ Object.create(null);
17
+ }
18
+ function k(t) {
19
+ t.forEach(lt);
20
+ }
21
+ function K(t) {
22
+ return typeof t == "function";
23
+ }
24
+ function pt(t, e) {
25
+ return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
26
+ }
27
+ function yt(t) {
28
+ return Object.keys(t).length === 0;
29
+ }
30
+ function bt(t, ...e) {
31
+ if (t == null) {
32
+ for (const i of e)
33
+ i(void 0);
34
+ return E;
35
+ }
36
+ const n = t.subscribe(...e);
37
+ return n.unsubscribe ? () => n.unsubscribe() : n;
38
+ }
39
+ function ue(t, e, n) {
40
+ t.$$.on_destroy.push(bt(e, n));
41
+ }
42
+ function wt(t, e, n, i) {
43
+ if (t) {
44
+ const s = ut(t, e, n, i);
45
+ return t[0](s);
46
+ }
47
+ }
48
+ function ut(t, e, n, i) {
49
+ return t[1] && i ? _t(n.ctx.slice(), t[1](i(e))) : n.ctx;
50
+ }
51
+ function xt(t, e, n, i) {
52
+ if (t[2] && i) {
53
+ const s = t[2](i(n));
54
+ if (e.dirty === void 0)
55
+ return s;
56
+ if (typeof s == "object") {
57
+ const r = [], l = Math.max(e.dirty.length, s.length);
58
+ for (let o = 0; o < l; o += 1)
59
+ r[o] = e.dirty[o] | s[o];
60
+ return r;
61
+ }
62
+ return e.dirty | s;
63
+ }
64
+ return e.dirty;
65
+ }
66
+ function vt(t, e, n, i, s, r) {
67
+ if (s) {
68
+ const l = ut(e, n, i, r);
69
+ t.p(l, s);
70
+ }
71
+ }
72
+ function Ct(t) {
73
+ if (t.ctx.length > 32) {
74
+ const e = [], n = t.ctx.length / 32;
75
+ for (let i = 0; i < n; i++)
76
+ e[i] = -1;
77
+ return e;
78
+ }
79
+ return -1;
80
+ }
81
+ const at = typeof window < "u";
82
+ let Et = at ? () => window.performance.now() : () => Date.now(), Q = at ? (t) => requestAnimationFrame(t) : E;
83
+ const v = /* @__PURE__ */ new Set();
84
+ function ft(t) {
85
+ v.forEach((e) => {
86
+ e.c(t) || (v.delete(e), e.f());
87
+ }), v.size !== 0 && Q(ft);
88
+ }
89
+ function Mt(t) {
90
+ let e;
91
+ return v.size === 0 && Q(ft), {
92
+ promise: new Promise((n) => {
93
+ v.add(e = { c: t, f: n });
94
+ }),
95
+ abort() {
96
+ v.delete(e);
97
+ }
98
+ };
99
+ }
100
+ function R(t, e) {
101
+ t.appendChild(e);
102
+ }
103
+ function kt(t, e, n) {
104
+ const i = X(t);
105
+ if (!i.getElementById(e)) {
106
+ const s = b("style");
107
+ s.id = e, s.textContent = n, dt(i, s);
108
+ }
109
+ }
110
+ function X(t) {
111
+ if (!t)
112
+ return document;
113
+ const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
114
+ return e && /** @type {ShadowRoot} */
115
+ e.host ? (
116
+ /** @type {ShadowRoot} */
117
+ e
118
+ ) : t.ownerDocument;
119
+ }
120
+ function jt(t) {
121
+ const e = b("style");
122
+ return e.textContent = "/* empty */", dt(X(t), e), e.sheet;
123
+ }
124
+ function dt(t, e) {
125
+ return R(
126
+ /** @type {Document} */
127
+ t.head || t,
128
+ e
129
+ ), e.sheet;
130
+ }
131
+ function Y(t, e, n) {
132
+ t.insertBefore(e, n || null);
133
+ }
134
+ function j(t) {
135
+ t.parentNode && t.parentNode.removeChild(t);
136
+ }
137
+ function ae(t, e) {
138
+ for (let n = 0; n < t.length; n += 1)
139
+ t[n] && t[n].d(e);
140
+ }
141
+ function b(t) {
142
+ return document.createElement(t);
143
+ }
144
+ function ht(t) {
145
+ return document.createTextNode(t);
146
+ }
147
+ function fe() {
148
+ return ht(" ");
149
+ }
150
+ function St() {
151
+ return ht("");
152
+ }
153
+ function tt(t, e, n, i) {
154
+ return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
155
+ }
156
+ function T(t, e, n) {
157
+ n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
158
+ }
159
+ function de(t, e, n) {
160
+ const i = e.toLowerCase();
161
+ i in t ? t[i] = typeof t[i] == "boolean" && n === "" ? !0 : n : e in t ? t[e] = typeof t[e] == "boolean" && n === "" ? !0 : n : T(t, e, n);
162
+ }
163
+ function Lt(t) {
164
+ return Array.from(t.childNodes);
165
+ }
166
+ function he(t, e) {
167
+ e = "" + e, t.data !== e && (t.data = /** @type {string} */
168
+ e);
169
+ }
170
+ let B;
171
+ function Ot() {
172
+ if (B === void 0) {
173
+ B = !1;
174
+ try {
175
+ typeof window < "u" && window.parent && window.parent.document;
176
+ } catch {
177
+ B = !0;
178
+ }
179
+ }
180
+ return B;
181
+ }
182
+ function zt(t, e) {
183
+ getComputedStyle(t).position === "static" && (t.style.position = "relative");
184
+ const i = b("iframe");
185
+ i.setAttribute(
186
+ "style",
187
+ "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
188
+ ), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
189
+ const s = Ot();
190
+ let r;
191
+ return s ? (i.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", r = tt(
192
+ window,
193
+ "message",
194
+ /** @param {MessageEvent} event */
195
+ (l) => {
196
+ l.source === i.contentWindow && e();
197
+ }
198
+ )) : (i.src = "about:blank", i.onload = () => {
199
+ r = tt(i.contentWindow, "resize", e), e();
200
+ }), R(t, i), () => {
201
+ (s || r && i.contentWindow) && r(), j(i);
202
+ };
203
+ }
204
+ function ge(t, e, n) {
205
+ t.classList.toggle(e, !!n);
206
+ }
207
+ function At(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
208
+ return new CustomEvent(t, { detail: e, bubbles: n, cancelable: i });
209
+ }
210
+ function Bt(t) {
211
+ const e = {};
212
+ return t.childNodes.forEach(
213
+ /** @param {Element} node */
214
+ (n) => {
215
+ e[n.slot || "default"] = !0;
216
+ }
217
+ ), e;
218
+ }
219
+ const H = /* @__PURE__ */ new Map();
220
+ let W = 0;
221
+ function Nt(t) {
222
+ let e = 5381, n = t.length;
223
+ for (; n--; )
224
+ e = (e << 5) - e ^ t.charCodeAt(n);
225
+ return e >>> 0;
226
+ }
227
+ function Pt(t, e) {
228
+ const n = { stylesheet: jt(e), rules: {} };
229
+ return H.set(t, n), n;
230
+ }
231
+ function et(t, e, n, i, s, r, l, o = 0) {
232
+ const u = 16.666 / i;
233
+ let c = `{
234
+ `;
235
+ for (let m = 0; m <= 1; m += u) {
236
+ const a = e + (n - e) * r(m);
237
+ c += m * 100 + `%{${l(a, 1 - a)}}
238
+ `;
239
+ }
240
+ const h = c + `100% {${l(n, 1 - n)}}
241
+ }`, f = `__svelte_${Nt(h)}_${o}`, $ = X(t), { stylesheet: g, rules: d } = H.get($) || Pt($, t);
242
+ d[f] || (d[f] = !0, g.insertRule(`@keyframes ${f} ${h}`, g.cssRules.length));
243
+ const _ = t.style.animation || "";
244
+ return t.style.animation = `${_ ? `${_}, ` : ""}${f} ${i}ms linear ${s}ms 1 both`, W += 1, f;
245
+ }
246
+ function Rt(t, e) {
247
+ const n = (t.style.animation || "").split(", "), i = n.filter(
248
+ e ? (r) => r.indexOf(e) < 0 : (r) => r.indexOf("__svelte") === -1
249
+ // remove all Svelte animations
250
+ ), s = n.length - i.length;
251
+ s && (t.style.animation = i.join(", "), W -= s, W || Tt());
252
+ }
253
+ function Tt() {
254
+ Q(() => {
255
+ W || (H.forEach((t) => {
256
+ const { ownerNode: e } = t.stylesheet;
257
+ e && j(e);
258
+ }), H.clear());
259
+ });
260
+ }
261
+ let z;
262
+ function L(t) {
263
+ z = t;
264
+ }
265
+ function Ht() {
266
+ if (!z)
267
+ throw new Error("Function called outside component initialization");
268
+ return z;
269
+ }
270
+ function Wt(t) {
271
+ Ht().$$.on_mount.push(t);
272
+ }
273
+ const x = [], D = [];
274
+ let C = [];
275
+ const nt = [], Dt = /* @__PURE__ */ Promise.resolve();
276
+ let V = !1;
277
+ function It() {
278
+ V || (V = !0, Dt.then(p));
279
+ }
280
+ function M(t) {
281
+ C.push(t);
282
+ }
283
+ const q = /* @__PURE__ */ new Set();
284
+ let w = 0;
285
+ function p() {
286
+ if (w !== 0)
287
+ return;
288
+ const t = z;
289
+ do {
290
+ try {
291
+ for (; w < x.length; ) {
292
+ const e = x[w];
293
+ w++, L(e), Ut(e.$$);
294
+ }
295
+ } catch (e) {
296
+ throw x.length = 0, w = 0, e;
297
+ }
298
+ for (L(null), x.length = 0, w = 0; D.length; )
299
+ D.pop()();
300
+ for (let e = 0; e < C.length; e += 1) {
301
+ const n = C[e];
302
+ q.has(n) || (q.add(n), n());
303
+ }
304
+ C.length = 0;
305
+ } while (x.length);
306
+ for (; nt.length; )
307
+ nt.pop()();
308
+ V = !1, q.clear(), L(t);
309
+ }
310
+ function Ut(t) {
311
+ if (t.fragment !== null) {
312
+ t.update(), k(t.before_update);
313
+ const e = t.dirty;
314
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(M);
315
+ }
316
+ }
317
+ function Ft(t) {
318
+ const e = [], n = [];
319
+ C.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), C = e;
320
+ }
321
+ let S;
322
+ function qt() {
323
+ return S || (S = Promise.resolve(), S.then(() => {
324
+ S = null;
325
+ })), S;
326
+ }
327
+ function J(t, e, n) {
328
+ t.dispatchEvent(At(`${e ? "intro" : "outro"}${n}`));
329
+ }
330
+ const N = /* @__PURE__ */ new Set();
331
+ let y;
332
+ function Jt() {
333
+ y = {
334
+ r: 0,
335
+ c: [],
336
+ p: y
337
+ // parent group
338
+ };
339
+ }
340
+ function Vt() {
341
+ y.r || k(y.c), y = y.p;
342
+ }
343
+ function O(t, e) {
344
+ t && t.i && (N.delete(t), t.i(e));
345
+ }
346
+ function G(t, e, n, i) {
347
+ if (t && t.o) {
348
+ if (N.has(t))
349
+ return;
350
+ N.add(t), y.c.push(() => {
351
+ N.delete(t), i && (n && t.d(1), i());
352
+ }), t.o(e);
353
+ } else
354
+ i && i();
355
+ }
356
+ const Gt = { duration: 0 };
357
+ function it(t, e, n, i) {
358
+ let r = e(t, n, { direction: "both" }), l = i ? 0 : 1, o = null, u = null, c = null, h;
359
+ function f() {
360
+ c && Rt(t, c);
361
+ }
362
+ function $(d, _) {
363
+ const m = (
364
+ /** @type {Program['d']} */
365
+ d.b - l
366
+ );
367
+ return _ *= Math.abs(m), {
368
+ a: l,
369
+ b: d.b,
370
+ d: m,
371
+ duration: _,
372
+ start: d.start,
373
+ end: d.start + _,
374
+ group: d.group
375
+ };
376
+ }
377
+ function g(d) {
378
+ const {
379
+ delay: _ = 0,
380
+ duration: m = 300,
381
+ easing: a = ct,
382
+ tick: I = E,
383
+ css: U
384
+ } = r || Gt, F = {
385
+ start: Et() + _,
386
+ b: d
387
+ };
388
+ d || (F.group = y, y.r += 1), "inert" in t && (d ? h !== void 0 && (t.inert = h) : (h = /** @type {HTMLElement} */
389
+ t.inert, t.inert = !0)), o || u ? u = F : (U && (f(), c = et(t, l, d, m, _, a, U)), d && I(0, 1), o = $(F, m), M(() => J(t, d, "start")), Mt((A) => {
390
+ if (u && A > u.start && (o = $(u, m), u = null, J(t, o.b, "start"), U && (f(), c = et(
391
+ t,
392
+ l,
393
+ o.b,
394
+ o.duration,
395
+ 0,
396
+ a,
397
+ r.css
398
+ ))), o) {
399
+ if (A >= o.end)
400
+ I(l = o.b, 1 - l), J(t, o.b, "end"), u || (o.b ? f() : --o.group.r || k(o.group.c)), o = null;
401
+ else if (A >= o.start) {
402
+ const $t = A - o.start;
403
+ l = o.a + o.d * a($t / o.duration), I(l, 1 - l);
404
+ }
405
+ }
406
+ return !!(o || u);
407
+ }));
408
+ }
409
+ return {
410
+ run(d) {
411
+ K(r) ? qt().then(() => {
412
+ r = r({ direction: d ? "in" : "out" }), g(d);
413
+ }) : g(d);
414
+ },
415
+ end() {
416
+ f(), o = u = null;
417
+ }
418
+ };
419
+ }
420
+ function me(t) {
421
+ return t?.length !== void 0 ? t : Array.from(t);
422
+ }
423
+ function Kt(t, e, n) {
424
+ const { fragment: i, after_update: s } = t.$$;
425
+ i && i.m(e, n), M(() => {
426
+ const r = t.$$.on_mount.map(lt).filter(K);
427
+ t.$$.on_destroy ? t.$$.on_destroy.push(...r) : k(r), t.$$.on_mount = [];
428
+ }), s.forEach(M);
429
+ }
430
+ function Qt(t, e) {
431
+ const n = t.$$;
432
+ n.fragment !== null && (Ft(n.after_update), k(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
433
+ }
434
+ function Xt(t, e) {
435
+ t.$$.dirty[0] === -1 && (x.push(t), It(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
436
+ }
437
+ function Yt(t, e, n, i, s, r, l = null, o = [-1]) {
438
+ const u = z;
439
+ L(t);
440
+ const c = t.$$ = {
441
+ fragment: null,
442
+ ctx: [],
443
+ // state
444
+ props: r,
445
+ update: E,
446
+ not_equal: s,
447
+ bound: Z(),
448
+ // lifecycle
449
+ on_mount: [],
450
+ on_destroy: [],
451
+ on_disconnect: [],
452
+ before_update: [],
453
+ after_update: [],
454
+ context: new Map(e.context || (u ? u.$$.context : [])),
455
+ // everything else
456
+ callbacks: Z(),
457
+ dirty: o,
458
+ skip_bound: !1,
459
+ root: e.target || u.$$.root
460
+ };
461
+ l && l(c.root);
462
+ let h = !1;
463
+ if (c.ctx = n ? n(t, e.props || {}, (f, $, ...g) => {
464
+ const d = g.length ? g[0] : $;
465
+ return c.ctx && s(c.ctx[f], c.ctx[f] = d) && (!c.skip_bound && c.bound[f] && c.bound[f](d), h && Xt(t, f)), $;
466
+ }) : [], c.update(), h = !0, k(c.before_update), c.fragment = i ? i(c.ctx) : !1, e.target) {
467
+ if (e.hydrate) {
468
+ const f = Lt(e.target);
469
+ c.fragment && c.fragment.l(f), f.forEach(j);
470
+ } else
471
+ c.fragment && c.fragment.c();
472
+ e.intro && O(t.$$.fragment), Kt(t, e.target, e.anchor), p();
473
+ }
474
+ L(u);
475
+ }
476
+ let gt;
477
+ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
478
+ /** The Svelte component constructor */
479
+ $$ctor;
480
+ /** Slots */
481
+ $$s;
482
+ /** The Svelte component instance */
483
+ $$c;
484
+ /** Whether or not the custom element is connected */
485
+ $$cn = !1;
486
+ /** Component props data */
487
+ $$d = {};
488
+ /** `true` if currently in the process of reflecting component props back to attributes */
489
+ $$r = !1;
490
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
491
+ $$p_d = {};
492
+ /** @type {Record<string, Function[]>} Event listeners */
493
+ $$l = {};
494
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
495
+ $$l_u = /* @__PURE__ */ new Map();
496
+ constructor(t, e, n) {
497
+ super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
498
+ }
499
+ addEventListener(t, e, n) {
500
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
501
+ const i = this.$$c.$on(t, e);
502
+ this.$$l_u.set(e, i);
503
+ }
504
+ super.addEventListener(t, e, n);
505
+ }
506
+ removeEventListener(t, e, n) {
507
+ if (super.removeEventListener(t, e, n), this.$$c) {
508
+ const i = this.$$l_u.get(e);
509
+ i && (i(), this.$$l_u.delete(e));
510
+ }
511
+ }
512
+ async connectedCallback() {
513
+ if (this.$$cn = !0, !this.$$c) {
514
+ let t = function(s) {
515
+ return () => {
516
+ let r;
517
+ return {
518
+ c: function() {
519
+ r = b("slot"), s !== "default" && T(r, "name", s);
520
+ },
521
+ /**
522
+ * @param {HTMLElement} target
523
+ * @param {HTMLElement} [anchor]
524
+ */
525
+ m: function(u, c) {
526
+ Y(u, r, c);
527
+ },
528
+ d: function(u) {
529
+ u && j(r);
530
+ }
531
+ };
532
+ };
533
+ };
534
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
535
+ return;
536
+ const e = {}, n = Bt(this);
537
+ for (const s of this.$$s)
538
+ s in n && (e[s] = [t(s)]);
539
+ for (const s of this.attributes) {
540
+ const r = this.$$g_p(s.name);
541
+ r in this.$$d || (this.$$d[r] = P(r, s.value, this.$$p_d, "toProp"));
542
+ }
543
+ for (const s in this.$$p_d)
544
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
545
+ this.$$c = new this.$$ctor({
546
+ target: this.shadowRoot || this,
547
+ props: {
548
+ ...this.$$d,
549
+ $$slots: e,
550
+ $$scope: {
551
+ ctx: []
552
+ }
553
+ }
554
+ });
555
+ const i = () => {
556
+ this.$$r = !0;
557
+ for (const s in this.$$p_d)
558
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
559
+ const r = P(
560
+ s,
561
+ this.$$d[s],
562
+ this.$$p_d,
563
+ "toAttribute"
564
+ );
565
+ r == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, r);
566
+ }
567
+ this.$$r = !1;
568
+ };
569
+ this.$$c.$$.after_update.push(i), i();
570
+ for (const s in this.$$l)
571
+ for (const r of this.$$l[s]) {
572
+ const l = this.$$c.$on(s, r);
573
+ this.$$l_u.set(r, l);
574
+ }
575
+ this.$$l = {};
576
+ }
577
+ }
578
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
579
+ // and setting attributes through setAttribute etc, this is helpful
580
+ attributeChangedCallback(t, e, n) {
581
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = P(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
582
+ }
583
+ disconnectedCallback() {
584
+ this.$$cn = !1, Promise.resolve().then(() => {
585
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
586
+ });
587
+ }
588
+ $$g_p(t) {
589
+ return Object.keys(this.$$p_d).find(
590
+ (e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
591
+ ) || t;
592
+ }
593
+ });
594
+ function P(t, e, n, i) {
595
+ const s = n[t]?.type;
596
+ if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !n[t])
597
+ return e;
598
+ if (i === "toAttribute")
599
+ switch (s) {
600
+ case "Object":
601
+ case "Array":
602
+ return e == null ? null : JSON.stringify(e);
603
+ case "Boolean":
604
+ return e ? "" : null;
605
+ case "Number":
606
+ return e ?? null;
607
+ default:
608
+ return e;
609
+ }
610
+ else
611
+ switch (s) {
612
+ case "Object":
613
+ case "Array":
614
+ return e && JSON.parse(e);
615
+ case "Boolean":
616
+ return e;
617
+ case "Number":
618
+ return e != null ? +e : e;
619
+ default:
620
+ return e;
621
+ }
622
+ }
623
+ function Zt(t, e, n, i, s, r) {
624
+ let l = class extends gt {
625
+ constructor() {
626
+ super(t, n, s), this.$$p_d = e;
627
+ }
628
+ static get observedAttributes() {
629
+ return Object.keys(e).map(
630
+ (o) => (e[o].attribute || o).toLowerCase()
631
+ );
632
+ }
633
+ };
634
+ return Object.keys(e).forEach((o) => {
635
+ Object.defineProperty(l.prototype, o, {
636
+ get() {
637
+ return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
638
+ },
639
+ set(u) {
640
+ u = P(o, u, e), this.$$d[o] = u, this.$$c?.$set({ [o]: u });
641
+ }
642
+ });
643
+ }), i.forEach((o) => {
644
+ Object.defineProperty(l.prototype, o, {
645
+ get() {
646
+ return this.$$c?.[o];
647
+ }
648
+ });
649
+ }), t.element = /** @type {any} */
650
+ l, l;
651
+ }
652
+ class te {
653
+ /**
654
+ * ### PRIVATE API
655
+ *
656
+ * Do not use, may change at any time
657
+ *
658
+ * @type {any}
659
+ */
660
+ $$ = void 0;
661
+ /**
662
+ * ### PRIVATE API
663
+ *
664
+ * Do not use, may change at any time
665
+ *
666
+ * @type {any}
667
+ */
668
+ $$set = void 0;
669
+ /** @returns {void} */
670
+ $destroy() {
671
+ Qt(this, 1), this.$destroy = E;
672
+ }
673
+ /**
674
+ * @template {Extract<keyof Events, string>} K
675
+ * @param {K} type
676
+ * @param {((e: Events[K]) => void) | null | undefined} callback
677
+ * @returns {() => void}
678
+ */
679
+ $on(e, n) {
680
+ if (!K(n))
681
+ return E;
682
+ const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
683
+ return i.push(n), () => {
684
+ const s = i.indexOf(n);
685
+ s !== -1 && i.splice(s, 1);
686
+ };
687
+ }
688
+ /**
689
+ * @param {Partial<Props>} props
690
+ * @returns {void}
691
+ */
692
+ $set(e) {
693
+ this.$$set && !yt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
694
+ }
695
+ }
696
+ const ee = "4";
697
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ee);
698
+ function ne(t, e) {
699
+ if (t) {
700
+ const n = document.createElement("style");
701
+ n.innerHTML = e, t.appendChild(n);
702
+ }
703
+ }
704
+ function ie(t, e) {
705
+ const n = new URL(e);
706
+ fetch(n.href).then((i) => i.text()).then((i) => {
707
+ const s = document.createElement("style");
708
+ s.innerHTML = i, t && t.appendChild(s);
709
+ }).catch((i) => {
710
+ console.error("There was an error while trying to load client styling from URL", i);
711
+ });
712
+ }
713
+ function se(t, e, n) {
714
+ if (window.emMessageBus) {
715
+ const i = document.createElement("style");
716
+ window.emMessageBus.subscribe(e, (s) => {
717
+ i.innerHTML = s, t && t.appendChild(i);
718
+ });
719
+ }
720
+ }
721
+ function st(t, { delay: e = 0, duration: n = 400, easing: i = ct } = {}) {
722
+ const s = +getComputedStyle(t).opacity;
723
+ return {
724
+ delay: e,
725
+ duration: n,
726
+ easing: i,
727
+ css: (r) => `opacity: ${r * s}`
728
+ };
729
+ }
730
+ function re(t) {
731
+ kt(t, "svelte-1cgf4b", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:1}.ModalWindow{display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));container-type:inline-size;container-name:modal-window;border-radius:6px}.ModalContainer{width:500px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:90%}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn .ModalCloseBtn{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);height:inherit;right:0;top:0;cursor:pointer}.ModalCloseBtn .ModalOkButton{color:var(--emw--color-white, #fff);display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;width:100%;border:none;border-radius:50px;line-height:125%;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}@container modal-window (max-width:750px){.ModalWindow .ModalContainer{width:90%;max-width:400px}}");
732
+ }
733
+ const oe = (t) => ({}), rt = (t) => ({});
734
+ function ot(t) {
735
+ let e, n, i, s, r, l;
736
+ const o = (
737
+ /*#slots*/
738
+ t[10].content
739
+ ), u = wt(
740
+ o,
741
+ t,
742
+ /*$$scope*/
743
+ t[9],
744
+ rt
745
+ );
746
+ return {
747
+ c() {
748
+ e = b("div"), n = b("div"), i = b("div"), u && u.c(), T(i, "class", "ModalContainer"), T(n, "id", "Modal"), M(() => (
749
+ /*div1_elementresize_handler*/
750
+ t[12].call(n)
751
+ ));
752
+ },
753
+ m(c, h) {
754
+ Y(c, e, h), R(e, n), R(n, i), u && u.m(i, null), t[11](n), s = zt(
755
+ n,
756
+ /*div1_elementresize_handler*/
757
+ t[12].bind(n)
758
+ ), t[13](e), l = !0;
759
+ },
760
+ p(c, h) {
761
+ t = c, u && u.p && (!l || h & /*$$scope*/
762
+ 512) && vt(
763
+ u,
764
+ o,
765
+ t,
766
+ /*$$scope*/
767
+ t[9],
768
+ l ? xt(
769
+ o,
770
+ /*$$scope*/
771
+ t[9],
772
+ h,
773
+ oe
774
+ ) : Ct(
775
+ /*$$scope*/
776
+ t[9]
777
+ ),
778
+ rt
779
+ );
780
+ },
781
+ i(c) {
782
+ l || (O(u, c), c && M(() => {
783
+ l && (r || (r = it(
784
+ n,
785
+ st,
786
+ /*duration*/
787
+ t[3],
788
+ !0
789
+ )), r.run(1));
790
+ }), l = !0);
791
+ },
792
+ o(c) {
793
+ G(u, c), c && (r || (r = it(
794
+ n,
795
+ st,
796
+ /*duration*/
797
+ t[3],
798
+ !1
799
+ )), r.run(0)), l = !1;
800
+ },
801
+ d(c) {
802
+ c && j(e), u && u.d(c), t[11](null), s(), c && r && r.end(), t[13](null);
803
+ }
804
+ };
805
+ }
806
+ function ce(t) {
807
+ let e, n, i = (
808
+ /*show*/
809
+ t[2] === "true" && ot(t)
810
+ );
811
+ return {
812
+ c() {
813
+ i && i.c(), e = St();
814
+ },
815
+ m(s, r) {
816
+ i && i.m(s, r), Y(s, e, r), n = !0;
817
+ },
818
+ p(s, [r]) {
819
+ /*show*/
820
+ s[2] === "true" ? i ? (i.p(s, r), r & /*show*/
821
+ 4 && O(i, 1)) : (i = ot(s), i.c(), O(i, 1), i.m(e.parentNode, e)) : i && (Jt(), G(i, 1, 1, () => {
822
+ i = null;
823
+ }), Vt());
824
+ },
825
+ i(s) {
826
+ n || (O(i), n = !0);
827
+ },
828
+ o(s) {
829
+ G(i), n = !1;
830
+ },
831
+ d(s) {
832
+ s && j(e), i && i.d(s);
833
+ }
834
+ };
835
+ }
836
+ function le(t, e, n) {
837
+ let { $$slots: i = {}, $$scope: s } = e, { mbsource: r } = e, { clientstyling: l } = e, { clientstylingurl: o } = e, { show: u } = e, { duration: c = 200 } = e, { width: h } = e, { height: f } = e, $, g;
838
+ Wt(() => () => {
839
+ });
840
+ function d(a) {
841
+ D[a ? "unshift" : "push"](() => {
842
+ $ = a, n(5, $);
843
+ });
844
+ }
845
+ function _() {
846
+ h = this.clientWidth, f = this.clientHeight, n(0, h), n(1, f);
847
+ }
848
+ function m(a) {
849
+ D[a ? "unshift" : "push"](() => {
850
+ g = a, n(4, g);
851
+ });
852
+ }
853
+ return t.$$set = (a) => {
854
+ "mbsource" in a && n(6, r = a.mbsource), "clientstyling" in a && n(7, l = a.clientstyling), "clientstylingurl" in a && n(8, o = a.clientstylingurl), "show" in a && n(2, u = a.show), "duration" in a && n(3, c = a.duration), "width" in a && n(0, h = a.width), "height" in a && n(1, f = a.height), "$$scope" in a && n(9, s = a.$$scope);
855
+ }, t.$$.update = () => {
856
+ t.$$.dirty & /*clientstyling, customStylingContainer*/
857
+ 144 && l && g && ne(g, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
858
+ 272 && o && g && ie(g, o), t.$$.dirty & /*mbsource, customStylingContainer*/
859
+ 80 && r && g && se(g, `${r}.Style`);
860
+ }, [
861
+ h,
862
+ f,
863
+ u,
864
+ c,
865
+ g,
866
+ $,
867
+ r,
868
+ l,
869
+ o,
870
+ s,
871
+ i,
872
+ d,
873
+ _,
874
+ m
875
+ ];
876
+ }
877
+ class mt extends te {
878
+ constructor(e) {
879
+ super(), Yt(
880
+ this,
881
+ e,
882
+ le,
883
+ ce,
884
+ pt,
885
+ {
886
+ mbsource: 6,
887
+ clientstyling: 7,
888
+ clientstylingurl: 8,
889
+ show: 2,
890
+ duration: 3,
891
+ width: 0,
892
+ height: 1
893
+ },
894
+ re
895
+ );
896
+ }
897
+ get mbsource() {
898
+ return this.$$.ctx[6];
899
+ }
900
+ set mbsource(e) {
901
+ this.$$set({ mbsource: e }), p();
902
+ }
903
+ get clientstyling() {
904
+ return this.$$.ctx[7];
905
+ }
906
+ set clientstyling(e) {
907
+ this.$$set({ clientstyling: e }), p();
908
+ }
909
+ get clientstylingurl() {
910
+ return this.$$.ctx[8];
911
+ }
912
+ set clientstylingurl(e) {
913
+ this.$$set({ clientstylingurl: e }), p();
914
+ }
915
+ get show() {
916
+ return this.$$.ctx[2];
917
+ }
918
+ set show(e) {
919
+ this.$$set({ show: e }), p();
920
+ }
921
+ get duration() {
922
+ return this.$$.ctx[3];
923
+ }
924
+ set duration(e) {
925
+ this.$$set({ duration: e }), p();
926
+ }
927
+ get width() {
928
+ return this.$$.ctx[0];
929
+ }
930
+ set width(e) {
931
+ this.$$set({ width: e }), p();
932
+ }
933
+ get height() {
934
+ return this.$$.ctx[1];
935
+ }
936
+ set height(e) {
937
+ this.$$set({ height: e }), p();
938
+ }
939
+ }
940
+ Zt(mt, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
941
+ const $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
942
+ __proto__: null,
943
+ default: mt
944
+ }, Symbol.toStringTag, { value: "Module" }));
945
+ export {
946
+ ht as A,
947
+ he as B,
948
+ ne as C,
949
+ $e as D,
950
+ te as S,
951
+ pt as a,
952
+ Yt as b,
953
+ Zt as c,
954
+ kt as d,
955
+ b as e,
956
+ p as f,
957
+ T as g,
958
+ Y as h,
959
+ K as i,
960
+ j,
961
+ ue as k,
962
+ ie as l,
963
+ se as m,
964
+ E as n,
965
+ Wt as o,
966
+ D as p,
967
+ me as q,
968
+ k as r,
969
+ bt as s,
970
+ ge as t,
971
+ fe as u,
972
+ St as v,
973
+ ae as w,
974
+ de as x,
975
+ R as y,
976
+ tt as z
977
+ };