@lydianpay/sdk-web 3.13.1 → 3.15.0

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,595 @@
1
+ const me = "sdk-install-modal-web", ee = (
2
+ /* sdk-install-modal-web */
3
+ { hydratedSelectorName: "hydrated", updatable: !0 }
4
+ );
5
+ var Se = Object.defineProperty, Ee = (e, t) => {
6
+ for (var n in t)
7
+ Se(e, n, { get: t[n], enumerable: !0 });
8
+ }, C = /* @__PURE__ */ new WeakMap(), E = (e) => C.get(e), ct = (e, t) => C.set(t.$lazyInstance$ = e, t), we = (e, t) => {
9
+ const n = {
10
+ $flags$: 0,
11
+ $hostElement$: e,
12
+ $cmpMeta$: t,
13
+ $instanceValues$: /* @__PURE__ */ new Map()
14
+ };
15
+ return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], C.set(e, n);
16
+ }, W = (e, t) => t in e, b = (e, t) => (0, console.error)(e, t), j = /* @__PURE__ */ new Map(), be = (e, t, n) => {
17
+ const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
18
+ if (!r)
19
+ return;
20
+ const o = j.get(r);
21
+ if (o)
22
+ return o[s];
23
+ {
24
+ const l = (c) => (j.set(r, c), c[s]);
25
+ switch (r) {
26
+ case "mm-install-modal_2":
27
+ return import(
28
+ /* webpackMode: "lazy" */
29
+ "./mm-install-modal_2.entry-Dhx9nDM_.js"
30
+ ).then(l, b);
31
+ }
32
+ }
33
+ return import(
34
+ /* @vite-ignore */
35
+ /* webpackInclude: /\.entry\.js$/ */
36
+ /* webpackExclude: /\.system\.entry\.js$/ */
37
+ /* webpackMode: "lazy" */
38
+ `./${r}.entry.js`
39
+ ).then((l) => (j.set(r, l), l[s]), b);
40
+ }, P = /* @__PURE__ */ new Map(), ke = "{visibility:hidden}.hydrated{visibility:inherit}", te = "slot-fb{display:contents}slot-fb[hidden]{display:none}", O = typeof window < "u" ? window : {}, m = O.document || { head: {} }, u = {
41
+ $flags$: 0,
42
+ $resourcesUrl$: "",
43
+ jmp: (e) => e(),
44
+ raf: (e) => requestAnimationFrame(e),
45
+ ael: (e, t, n, s) => e.addEventListener(t, n, s),
46
+ rel: (e, t, n, s) => e.removeEventListener(t, n, s),
47
+ ce: (e, t) => new CustomEvent(e, t)
48
+ }, xe = (e) => Promise.resolve(e), se = /* @__PURE__ */ (() => {
49
+ try {
50
+ return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
51
+ } catch {
52
+ }
53
+ return !1;
54
+ })(), I = !1, G = [], ne = [], Te = (e, t) => (n) => {
55
+ e.push(n), I || (I = !0, u.$flags$ & 4 ? M(H) : u.raf(H));
56
+ }, X = (e) => {
57
+ for (let t = 0; t < e.length; t++)
58
+ try {
59
+ e[t](performance.now());
60
+ } catch (n) {
61
+ b(n);
62
+ }
63
+ e.length = 0;
64
+ }, H = () => {
65
+ X(G), X(ne), (I = G.length > 0) && u.raf(H);
66
+ }, M = (e) => xe().then(e), _e = /* @__PURE__ */ Te(ne), Y = {}, Le = "http://www.w3.org/2000/svg", Pe = "http://www.w3.org/1999/xhtml", B = (e) => (e = typeof e, e === "object" || e === "function");
67
+ function re(e) {
68
+ var t, n, s;
69
+ 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;
70
+ }
71
+ var Ae = {};
72
+ Ee(Ae, {
73
+ err: () => le,
74
+ map: () => Oe,
75
+ ok: () => U,
76
+ unwrap: () => je,
77
+ unwrapErr: () => Ie
78
+ });
79
+ var U = (e) => ({
80
+ isOk: !0,
81
+ isErr: !1,
82
+ value: e
83
+ }), le = (e) => ({
84
+ isOk: !1,
85
+ isErr: !0,
86
+ value: e
87
+ });
88
+ function Oe(e, t) {
89
+ if (e.isOk) {
90
+ const n = t(e.value);
91
+ return n instanceof Promise ? n.then((s) => U(s)) : U(n);
92
+ }
93
+ if (e.isErr) {
94
+ const n = e.value;
95
+ return le(n);
96
+ }
97
+ throw "should never get here";
98
+ }
99
+ var je = (e) => {
100
+ if (e.isOk)
101
+ return e.value;
102
+ throw e.value;
103
+ }, Ie = (e) => {
104
+ if (e.isErr)
105
+ return e.value;
106
+ throw e.value;
107
+ }, S = (e, t = "") => () => {
108
+ }, He = (e, t) => () => {
109
+ }, ae = (e, t, ...n) => {
110
+ let s = null, r = !1, o = !1;
111
+ const l = [], c = (i) => {
112
+ for (let $ = 0; $ < i.length; $++)
113
+ s = i[$], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((r = typeof e != "function" && !B(s)) && (s = String(s)), r && o ? l[l.length - 1].$text$ += s : l.push(r ? A(null, s) : s), o = r);
114
+ };
115
+ if (c(n), t) {
116
+ const i = t.className || t.class;
117
+ i && (t.class = typeof i != "object" ? i : Object.keys(i).filter(($) => i[$]).join(" "));
118
+ }
119
+ if (typeof e == "function")
120
+ return e(
121
+ t === null ? {} : t,
122
+ l,
123
+ Ce
124
+ );
125
+ const a = A(e, null);
126
+ return a.$attrs$ = t, l.length > 0 && (a.$children$ = l), a;
127
+ }, A = (e, t) => {
128
+ const n = {
129
+ $flags$: 0,
130
+ $tag$: e,
131
+ $text$: t,
132
+ $elm$: null,
133
+ $children$: null
134
+ };
135
+ return n.$attrs$ = null, n;
136
+ }, Ue = {}, ze = (e) => e && e.$tag$ === Ue, Ce = {
137
+ forEach: (e, t) => e.map(J).forEach(t),
138
+ map: (e, t) => e.map(J).map(t).map(Me)
139
+ }, J = (e) => ({
140
+ vattrs: e.$attrs$,
141
+ vchildren: e.$children$,
142
+ vkey: e.$key$,
143
+ vname: e.$name$,
144
+ vtag: e.$tag$,
145
+ vtext: e.$text$
146
+ }), Me = (e) => {
147
+ if (typeof e.vtag == "function") {
148
+ const n = { ...e.vattrs };
149
+ return e.vkey && (n.key = e.vkey), e.vname && (n.name = e.vname), ae(e.vtag, n, ...e.vchildren || []);
150
+ }
151
+ const t = A(e.vtag, e.vtext);
152
+ return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
153
+ }, Be = (e, t) => e != null && !B(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, qe = (e) => E(e).$hostElement$, $t = (e, t, n) => {
154
+ const s = qe(e);
155
+ return {
156
+ emit: (r) => oe(s, t, {
157
+ bubbles: !0,
158
+ composed: !0,
159
+ cancelable: !0,
160
+ detail: r
161
+ })
162
+ };
163
+ }, oe = (e, t, n) => {
164
+ const s = u.ce(t, n);
165
+ return e.dispatchEvent(s), s;
166
+ }, K = /* @__PURE__ */ new WeakMap(), De = (e, t, n) => {
167
+ let s = P.get(e);
168
+ se && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, P.set(e, s);
169
+ }, Fe = (e, t, n) => {
170
+ var s;
171
+ const r = ie(t), o = P.get(r);
172
+ if (e = e.nodeType === 11 ? e : m, o)
173
+ if (typeof o == "string") {
174
+ e = e.head || e;
175
+ let l = K.get(e), c;
176
+ if (l || K.set(e, l = /* @__PURE__ */ new Set()), !l.has(r)) {
177
+ {
178
+ c = m.createElement("style"), c.innerHTML = o;
179
+ const a = (s = u.$nonce$) != null ? s : re(m);
180
+ if (a != null && c.setAttribute("nonce", a), !(t.$flags$ & 1))
181
+ if (e.nodeName === "HEAD") {
182
+ const i = e.querySelectorAll("link[rel=preconnect]"), $ = i.length > 0 ? i[i.length - 1].nextSibling : e.querySelector("style");
183
+ e.insertBefore(c, $);
184
+ } else if ("host" in e)
185
+ if (se) {
186
+ const i = new CSSStyleSheet();
187
+ i.replaceSync(o), e.adoptedStyleSheets = [i, ...e.adoptedStyleSheets];
188
+ } else {
189
+ const i = e.querySelector("style");
190
+ i ? i.innerHTML = o + i.innerHTML : e.prepend(c);
191
+ }
192
+ else
193
+ e.append(c);
194
+ t.$flags$ & 1 && e.nodeName !== "HEAD" && e.insertBefore(c, null);
195
+ }
196
+ t.$flags$ & 4 && (c.innerHTML += te), l && l.add(r);
197
+ }
198
+ } else e.adoptedStyleSheets.includes(o) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, o]);
199
+ return r;
200
+ }, Re = (e) => {
201
+ const t = e.$cmpMeta$, n = e.$hostElement$, s = t.$flags$, r = S("attachStyles", t.$tagName$), o = Fe(
202
+ n.shadowRoot ? n.shadowRoot : n.getRootNode(),
203
+ t
204
+ );
205
+ s & 10 && s & 2 && (n["s-sc"] = o, n.classList.add(o + "-h")), r();
206
+ }, ie = (e, t) => "sc-" + e.$tagName$, Q = (e, t, n, s, r, o) => {
207
+ if (n !== s) {
208
+ let l = W(e, t), c = t.toLowerCase();
209
+ if (t === "class") {
210
+ const a = e.classList, i = Z(n), $ = Z(s);
211
+ a.remove(...i.filter((f) => f && !$.includes(f))), a.add(...$.filter((f) => f && !i.includes(f)));
212
+ } else if (t === "style") {
213
+ for (const a in n)
214
+ (!s || s[a] == null) && (a.includes("-") ? e.style.removeProperty(a) : e.style[a] = "");
215
+ for (const a in s)
216
+ (!n || s[a] !== n[a]) && (a.includes("-") ? e.style.setProperty(a, s[a]) : e.style[a] = s[a]);
217
+ } else if (t === "ref")
218
+ s && s(e);
219
+ else if (!l && t[0] === "o" && t[1] === "n") {
220
+ if (t[2] === "-" ? t = t.slice(3) : W(O, c) ? t = c.slice(2) : t = c[2] + t.slice(3), n || s) {
221
+ const a = t.endsWith(ce);
222
+ t = t.replace(Ge, ""), n && u.rel(e, t, n, a), s && u.ael(e, t, s, a);
223
+ }
224
+ } else {
225
+ const a = B(s);
226
+ if ((l || a && s !== null) && !r)
227
+ try {
228
+ if (e.tagName.includes("-"))
229
+ e[t] = s;
230
+ else {
231
+ const i = s ?? "";
232
+ t === "list" ? l = !1 : (n == null || e[t] != i) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = i : e.setAttribute(t, i));
233
+ }
234
+ } catch {
235
+ }
236
+ s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || o & 4 || r) && !a && (s = s === !0 ? "" : s, e.setAttribute(t, s));
237
+ }
238
+ }
239
+ }, We = /\s/, Z = (e) => e ? e.split(We) : [], ce = "Capture", Ge = new RegExp(ce + "$"), $e = (e, t, n) => {
240
+ const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || Y, o = t.$attrs$ || Y;
241
+ for (const l of N(Object.keys(r)))
242
+ l in o || Q(s, l, r[l], void 0, n, t.$flags$);
243
+ for (const l of N(Object.keys(o)))
244
+ Q(s, l, r[l], o[l], n, t.$flags$);
245
+ };
246
+ function N(e) {
247
+ return e.includes("ref") ? (
248
+ // we need to sort these to ensure that `'ref'` is the last attr
249
+ [...e.filter((t) => t !== "ref"), "ref"]
250
+ ) : (
251
+ // no need to sort, return the original array
252
+ e
253
+ );
254
+ }
255
+ var q, v = !1, D = (e, t, n, s) => {
256
+ const r = t.$children$[n];
257
+ let o = 0, l, c;
258
+ if (r.$text$ !== null)
259
+ l = r.$elm$ = m.createTextNode(r.$text$);
260
+ else {
261
+ if (v || (v = r.$tag$ === "svg"), l = r.$elm$ = m.createElementNS(
262
+ v ? Le : Pe,
263
+ r.$tag$
264
+ ), v && r.$tag$ === "foreignObject" && (v = !1), $e(null, r, v), l.getRootNode().querySelector("body"), r.$children$)
265
+ for (o = 0; o < r.$children$.length; ++o)
266
+ c = D(e, r, o), c && l.appendChild(c);
267
+ r.$tag$ === "svg" ? v = !1 : l.tagName === "foreignObject" && (v = !0);
268
+ }
269
+ return l["s-hn"] = q, l;
270
+ }, fe = (e, t, n, s, r, o) => {
271
+ let l = e, c;
272
+ for (l.shadowRoot && l.tagName === q && (l = l.shadowRoot); r <= o; ++r)
273
+ s[r] && (c = D(null, n, r), c && (s[r].$elm$ = c, L(l, c, t)));
274
+ }, de = (e, t, n) => {
275
+ for (let s = t; s <= n; ++s) {
276
+ const r = e[s];
277
+ if (r) {
278
+ const o = r.$elm$;
279
+ ue(r), o && o.remove();
280
+ }
281
+ }
282
+ }, Xe = (e, t, n, s, r = !1) => {
283
+ let o = 0, l = 0, c = t.length - 1, a = t[0], i = t[c], $ = s.length - 1, f = s[0], d = s[$], p;
284
+ for (; o <= c && l <= $; )
285
+ a == null ? a = t[++o] : i == null ? i = t[--c] : f == null ? f = s[++l] : d == null ? d = s[--$] : _(a, f, r) ? (x(a, f, r), a = t[++o], f = s[++l]) : _(i, d, r) ? (x(i, d, r), i = t[--c], d = s[--$]) : _(a, d, r) ? (x(a, d, r), L(e, a.$elm$, i.$elm$.nextSibling), a = t[++o], d = s[--$]) : _(i, f, r) ? (x(i, f, r), L(e, i.$elm$, a.$elm$), i = t[--c], f = s[++l]) : (p = D(t && t[l], n, l), f = s[++l], p && L(a.$elm$.parentNode, p, a.$elm$));
286
+ o > c ? fe(
287
+ e,
288
+ s[$ + 1] == null ? null : s[$ + 1].$elm$,
289
+ n,
290
+ s,
291
+ l,
292
+ $
293
+ ) : l > $ && de(t, o, c);
294
+ }, _ = (e, t, n = !1) => e.$tag$ === t.$tag$, x = (e, t, n = !1) => {
295
+ const s = t.$elm$ = e.$elm$, r = e.$children$, o = t.$children$, l = t.$tag$, c = t.$text$;
296
+ c === null ? (v = l === "svg" ? !0 : l === "foreignObject" ? !1 : v, $e(e, t, v), r !== null && o !== null ? Xe(s, r, t, o, n) : o !== null ? (e.$text$ !== null && (s.textContent = ""), fe(s, null, t, o, 0, o.length - 1)) : (
297
+ // don't do this on initial render as it can cause non-hydrated content to be removed
298
+ !n && ee.updatable && r !== null && de(r, 0, r.length - 1)
299
+ ), v && l === "svg" && (v = !1)) : e.$text$ !== c && (s.data = c);
300
+ }, ue = (e) => {
301
+ e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ue);
302
+ }, L = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), Ye = (e, t, n = !1) => {
303
+ const s = e.$hostElement$, r = e.$cmpMeta$, o = e.$vnode$ || A(null, null), l = ze(t) ? t : ae(null, null, t);
304
+ if (q = s.tagName, n && l.$attrs$)
305
+ for (const c of Object.keys(l.$attrs$))
306
+ s.hasAttribute(c) && !["key", "ref", "style", "class"].includes(c) && (l.$attrs$[c] = s[c]);
307
+ l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = o.$elm$ = s.shadowRoot || s, s["s-sc"], r.$flags$ & 1, x(o, l, n);
308
+ }, ve = (e, t) => {
309
+ t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
310
+ }, F = (e, t) => {
311
+ if (e.$flags$ |= 16, e.$flags$ & 4) {
312
+ e.$flags$ |= 512;
313
+ return;
314
+ }
315
+ return ve(e, e.$ancestorComponent$), _e(() => Je(e, t));
316
+ }, Je = (e, t) => {
317
+ const n = e.$hostElement$, s = S("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
318
+ if (!r)
319
+ throw new Error(
320
+ `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`
321
+ );
322
+ let o;
323
+ return s(), Ke(o, () => Ze(e, r, t));
324
+ }, Ke = (e, t) => Qe(e) ? e.then(t).catch((n) => {
325
+ console.error(n), t();
326
+ }) : t(), Qe = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Ze = async (e, t, n) => {
327
+ var s;
328
+ const r = e.$hostElement$, o = S("update", e.$cmpMeta$.$tagName$), l = r["s-rc"];
329
+ n && Re(e);
330
+ const c = S("render", e.$cmpMeta$.$tagName$);
331
+ Ne(e, t, r, n), l && (l.map((a) => a()), r["s-rc"] = void 0), c(), o();
332
+ {
333
+ const a = (s = r["s-p"]) != null ? s : [], i = () => Ve(e);
334
+ a.length === 0 ? i() : (Promise.all(a).then(i), e.$flags$ |= 4, a.length = 0);
335
+ }
336
+ }, Ne = (e, t, n, s) => {
337
+ try {
338
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Ye(e, t, s);
339
+ } catch (r) {
340
+ b(r, e.$hostElement$);
341
+ }
342
+ return null;
343
+ }, Ve = (e) => {
344
+ const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = S("postUpdate", t), r = e.$lazyInstance$, o = e.$ancestorComponent$;
345
+ e.$flags$ & 64 ? s() : (e.$flags$ |= 64, he(n), R(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), o || pe()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && M(() => F(e, !1)), e.$flags$ &= -517;
346
+ }, pe = (e) => {
347
+ he(m.documentElement), M(() => oe(O, "appload", { detail: { namespace: me } }));
348
+ }, R = (e, t, n) => {
349
+ if (e && e[t])
350
+ try {
351
+ return e[t](n);
352
+ } catch (s) {
353
+ b(s);
354
+ }
355
+ }, he = (e) => {
356
+ var t;
357
+ return e.classList.add((t = ee.hydratedSelectorName) != null ? t : "hydrated");
358
+ }, et = (e, t) => E(e).$instanceValues$.get(t), tt = (e, t, n, s) => {
359
+ const r = E(e);
360
+ if (!r)
361
+ throw new Error(
362
+ `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).`
363
+ );
364
+ const o = r.$hostElement$, l = r.$instanceValues$.get(t), c = r.$flags$, a = r.$lazyInstance$;
365
+ n = Be(n, s.$members$[t][0]);
366
+ const i = Number.isNaN(l) && Number.isNaN(n), $ = n !== l && !i;
367
+ if ((!(c & 8) || l === void 0) && $ && (r.$instanceValues$.set(t, n), a)) {
368
+ if (s.$watchers$ && c & 128) {
369
+ const f = s.$watchers$[t];
370
+ f && f.map((d) => {
371
+ try {
372
+ a[d](n, l, t);
373
+ } catch (p) {
374
+ b(p, o);
375
+ }
376
+ });
377
+ }
378
+ (c & 18) === 2 && F(r, !1);
379
+ }
380
+ }, ge = (e, t, n) => {
381
+ var s, r;
382
+ const o = e.prototype;
383
+ if (t.$members$ || t.$watchers$ || e.watchers) {
384
+ e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
385
+ const l = Object.entries((s = t.$members$) != null ? s : {});
386
+ if (l.map(([c, [a]]) => {
387
+ (a & 31 || n & 2 && a & 32) && Object.defineProperty(o, c, {
388
+ get() {
389
+ return et(this, c);
390
+ },
391
+ set(i) {
392
+ tt(this, c, i, t);
393
+ },
394
+ configurable: !0,
395
+ enumerable: !0
396
+ });
397
+ }), n & 1) {
398
+ const c = /* @__PURE__ */ new Map();
399
+ o.attributeChangedCallback = function(a, i, $) {
400
+ u.jmp(() => {
401
+ var f;
402
+ const d = c.get(a);
403
+ if (this.hasOwnProperty(d))
404
+ $ = this[d], delete this[d];
405
+ else {
406
+ if (o.hasOwnProperty(d) && typeof this[d] == "number" && // cast type to number to avoid TS compiler issues
407
+ this[d] == $)
408
+ return;
409
+ if (d == null) {
410
+ const p = E(this), g = p == null ? void 0 : p.$flags$;
411
+ if (g && !(g & 8) && g & 128 && $ !== i) {
412
+ const y = p.$lazyInstance$, k = (f = t.$watchers$) == null ? void 0 : f[a];
413
+ k == null || k.forEach((h) => {
414
+ y[h] != null && y[h].call(y, $, i, a);
415
+ });
416
+ }
417
+ return;
418
+ }
419
+ }
420
+ this[d] = $ === null && typeof this[d] == "boolean" ? !1 : $;
421
+ });
422
+ }, e.observedAttributes = Array.from(
423
+ /* @__PURE__ */ new Set([
424
+ ...Object.keys((r = t.$watchers$) != null ? r : {}),
425
+ ...l.filter(
426
+ ([a, i]) => i[0] & 15
427
+ /* HasAttribute */
428
+ ).map(([a, i]) => {
429
+ const $ = i[1] || a;
430
+ return c.set($, a), $;
431
+ })
432
+ ])
433
+ );
434
+ }
435
+ }
436
+ return e;
437
+ }, st = async (e, t, n, s) => {
438
+ let r;
439
+ if ((t.$flags$ & 32) === 0) {
440
+ if (t.$flags$ |= 32, n.$lazyBundleId$) {
441
+ const a = be(n);
442
+ if (a && "then" in a) {
443
+ const $ = He();
444
+ r = await a, $();
445
+ } else
446
+ r = a;
447
+ if (!r)
448
+ throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
449
+ r.isProxied || (n.$watchers$ = r.watchers, ge(
450
+ r,
451
+ n,
452
+ 2
453
+ /* proxyState */
454
+ ), r.isProxied = !0);
455
+ const i = S("createInstance", n.$tagName$);
456
+ t.$flags$ |= 8;
457
+ try {
458
+ new r(t);
459
+ } catch ($) {
460
+ b($);
461
+ }
462
+ t.$flags$ &= -9, t.$flags$ |= 128, i(), z(t.$lazyInstance$);
463
+ } else {
464
+ r = e.constructor;
465
+ const a = e.localName;
466
+ customElements.whenDefined(a).then(
467
+ () => t.$flags$ |= 128
468
+ /* isWatchReady */
469
+ );
470
+ }
471
+ if (r && r.style) {
472
+ let a;
473
+ typeof r.style == "string" && (a = r.style);
474
+ const i = ie(n);
475
+ if (!P.has(i)) {
476
+ const $ = S("registerStyles", n.$tagName$);
477
+ De(i, a, !!(n.$flags$ & 1)), $();
478
+ }
479
+ }
480
+ }
481
+ const o = t.$ancestorComponent$, l = () => F(t, !0);
482
+ o && o["s-rc"] ? o["s-rc"].push(l) : l();
483
+ }, z = (e) => {
484
+ R(e, "connectedCallback");
485
+ }, nt = (e) => {
486
+ if ((u.$flags$ & 1) === 0) {
487
+ const t = E(e), n = t.$cmpMeta$, s = S("connectedCallback", n.$tagName$);
488
+ if (t.$flags$ & 1)
489
+ t != null && t.$lazyInstance$ ? z(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => z(t.$lazyInstance$));
490
+ else {
491
+ t.$flags$ |= 1;
492
+ {
493
+ let r = e;
494
+ for (; r = r.parentNode || r.host; )
495
+ if (r["s-p"]) {
496
+ ve(t, t.$ancestorComponent$ = r);
497
+ break;
498
+ }
499
+ }
500
+ n.$members$ && Object.entries(n.$members$).map(([r, [o]]) => {
501
+ if (o & 31 && e.hasOwnProperty(r)) {
502
+ const l = e[r];
503
+ delete e[r], e[r] = l;
504
+ }
505
+ }), st(e, t, n);
506
+ }
507
+ s();
508
+ }
509
+ }, V = (e) => {
510
+ R(e, "disconnectedCallback");
511
+ }, rt = async (e) => {
512
+ if ((u.$flags$ & 1) === 0) {
513
+ const t = E(e);
514
+ t != null && t.$lazyInstance$ ? V(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => V(t.$lazyInstance$));
515
+ }
516
+ }, lt = (e, t = {}) => {
517
+ var n;
518
+ const s = S(), r = [], o = t.exclude || [], l = O.customElements, c = m.head, a = /* @__PURE__ */ c.querySelector("meta[charset]"), i = /* @__PURE__ */ m.createElement("style"), $ = [];
519
+ let f, d = !0;
520
+ Object.assign(u, t), u.$resourcesUrl$ = new URL(t.resourcesUrl || "./", m.baseURI).href;
521
+ let p = !1;
522
+ if (e.map((g) => {
523
+ g[1].map((y) => {
524
+ var k;
525
+ const h = {
526
+ $flags$: y[0],
527
+ $tagName$: y[1],
528
+ $members$: y[2],
529
+ $listeners$: y[3]
530
+ };
531
+ h.$flags$ & 4 && (p = !0), h.$members$ = y[2], h.$watchers$ = (k = y[4]) != null ? k : {};
532
+ const T = h.$tagName$, ye = class extends HTMLElement {
533
+ // StencilLazyHost
534
+ constructor(w) {
535
+ if (super(w), this.hasRegisteredEventListeners = !1, w = this, we(w, h), h.$flags$ & 1) {
536
+ if (!w.shadowRoot)
537
+ w.attachShadow({ mode: "open" });
538
+ else if (w.shadowRoot.mode !== "open")
539
+ throw new Error(
540
+ `Unable to re-use existing shadow root for ${h.$tagName$}! Mode is set to ${w.shadowRoot.mode} but Stencil only supports open shadow roots.`
541
+ );
542
+ }
543
+ }
544
+ connectedCallback() {
545
+ E(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), d ? $.push(this) : u.jmp(() => nt(this));
546
+ }
547
+ disconnectedCallback() {
548
+ u.jmp(() => rt(this));
549
+ }
550
+ componentOnReady() {
551
+ return E(this).$onReadyPromise$;
552
+ }
553
+ };
554
+ h.$lazyBundleId$ = g[0], !o.includes(T) && !l.get(T) && (r.push(T), l.define(
555
+ T,
556
+ ge(
557
+ ye,
558
+ h,
559
+ 1
560
+ /* isElementConstructor */
561
+ )
562
+ ));
563
+ });
564
+ }), r.length > 0 && (p && (i.textContent += te), i.textContent += r.sort() + ke, i.innerHTML.length)) {
565
+ i.setAttribute("data-styles", "");
566
+ const g = (n = u.$nonce$) != null ? n : re(m);
567
+ g != null && i.setAttribute("nonce", g), c.insertBefore(i, a ? a.nextSibling : c.firstChild);
568
+ }
569
+ d = !1, $.length ? $.map((g) => g.connectedCallback()) : u.jmp(() => f = setTimeout(pe, 30)), s();
570
+ }, at = (e) => u.$nonce$ = e;
571
+ const ot = () => {
572
+ }, it = async (e, t) => {
573
+ if (!(typeof window > "u"))
574
+ return await ot(), lt([["mm-install-modal_2", [[1, "mm-install-modal", { link: [1], expiresIn: [2, "expires-in"], showInstallModal: [4, "show-install-modal"], translationsLoaded: [32] }, null, { link: ["updateLinkHandler"], expiresIn: ["updateExpiresInHandler"] }], [1, "mm-otp-modal", { displayOTP: [4, "display-o-t-p"], otpCode: [1, "otp-code"], translationsLoaded: [32] }]]]], t);
575
+ };
576
+ (function() {
577
+ if (typeof window < "u" && window.Reflect !== void 0 && window.customElements !== void 0) {
578
+ var e = HTMLElement;
579
+ window.HTMLElement = function() {
580
+ return Reflect.construct(e, [], this.constructor);
581
+ }, HTMLElement.prototype = e.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, e);
582
+ }
583
+ })();
584
+ const ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
585
+ __proto__: null,
586
+ defineCustomElements: it,
587
+ setNonce: at
588
+ }, Symbol.toStringTag, { value: "Module" }));
589
+ export {
590
+ $t as c,
591
+ qe as g,
592
+ ae as h,
593
+ ft as i,
594
+ ct as r
595
+ };