@appcues/web-sdk 7.19.0 → 7.19.3
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.
- package/CHANGELOG.md +18 -0
- package/build/{bootstrap.npm.BcMkXW72.js → bootstrap.npm.CWtEeEZm.js} +10 -10
- package/build/{index.D02rhHq_.js → index.BqYkQb-R.js} +1 -1
- package/build/{index.npm.Bv0Pqt02.js → index.npm.8WJEE3dT.js} +1 -1
- package/build/index.npm.js +1 -1
- package/build/{open-builder.uMCCf8o7.js → open-builder.D3fQGZM7.js} +605 -601
- package/package.json +1 -1
- /package/build/{checklist.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css → checklist.8fca2e8b3108e1b73a11937d767a008c409214cc.css} +0 -0
- /package/build/{container.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css → container.8fca2e8b3108e1b73a11937d767a008c409214cc.css} +0 -0
- /package/build/{debugger.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css → debugger.8fca2e8b3108e1b73a11937d767a008c409214cc.css} +0 -0
- /package/build/{modal-step-legacy-render.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css → modal-step-legacy-render.8fca2e8b3108e1b73a11937d767a008c409214cc.css} +0 -0
- /package/build/{modal.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css → modal.8fca2e8b3108e1b73a11937d767a008c409214cc.css} +0 -0
- /package/build/{satisfaction-survey.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css → satisfaction-survey.8fca2e8b3108e1b73a11937d767a008c409214cc.css} +0 -0
- /package/build/{test-mode.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css → test-mode.8fca2e8b3108e1b73a11937d767a008c409214cc.css} +0 -0
- /package/build/{tooltip.1bd2b1c6e10440abfc34570b8c917b9b2ec7a3a7.css → tooltip.8fca2e8b3108e1b73a11937d767a008c409214cc.css} +0 -0
|
@@ -193,7 +193,7 @@ function ht(t) {
|
|
|
193
193
|
function ta(t) {
|
|
194
194
|
return Ye(t) ? t : [t];
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Bt(t) {
|
|
197
197
|
return t === void 0 ? [] : ta(t);
|
|
198
198
|
}
|
|
199
199
|
function tr(t, e, n) {
|
|
@@ -296,7 +296,7 @@ function Bo(t, e, n, r) {
|
|
|
296
296
|
}, t);
|
|
297
297
|
return o;
|
|
298
298
|
}
|
|
299
|
-
var
|
|
299
|
+
var Cc = function() {
|
|
300
300
|
};
|
|
301
301
|
function Ye(t) {
|
|
302
302
|
return Array.isArray(t);
|
|
@@ -319,7 +319,7 @@ function ra(t, e) {
|
|
|
319
319
|
predicate: t
|
|
320
320
|
} : t;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function Rc(t) {
|
|
323
323
|
try {
|
|
324
324
|
return "subscribe" in t && ct(t.subscribe);
|
|
325
325
|
} catch {
|
|
@@ -351,7 +351,7 @@ function po(t, e) {
|
|
|
351
351
|
type: t
|
|
352
352
|
}, e) : t;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Rt(t, e) {
|
|
355
355
|
if (!rt(t) && "$$type" in t && t.$$type === "scxml")
|
|
356
356
|
return t;
|
|
357
357
|
var n = po(t);
|
|
@@ -375,7 +375,7 @@ function Pe(t, e) {
|
|
|
375
375
|
}
|
|
376
376
|
function Ic(t) {
|
|
377
377
|
if (!(t === void 0 || t === Ec))
|
|
378
|
-
return
|
|
378
|
+
return Bt(t);
|
|
379
379
|
}
|
|
380
380
|
function oa(t, e, n, r, o) {
|
|
381
381
|
var i = t.options.guards, a = {
|
|
@@ -409,7 +409,7 @@ function Jr(t, e, n) {
|
|
|
409
409
|
function Ln(t, e) {
|
|
410
410
|
return "".concat(t, ":invocation[").concat(e, "]");
|
|
411
411
|
}
|
|
412
|
-
var er = /* @__PURE__ */
|
|
412
|
+
var er = /* @__PURE__ */ Rt({
|
|
413
413
|
type: gc
|
|
414
414
|
});
|
|
415
415
|
function Qr(t, e) {
|
|
@@ -468,17 +468,17 @@ function aa(t) {
|
|
|
468
468
|
return rt(t) ? {
|
|
469
469
|
type: gr,
|
|
470
470
|
event: t
|
|
471
|
-
} :
|
|
471
|
+
} : Cn(t, {
|
|
472
472
|
to: qe.Internal
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
function Ac(t) {
|
|
476
476
|
return {
|
|
477
477
|
type: gr,
|
|
478
|
-
_event:
|
|
478
|
+
_event: Rt(t.event)
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Cn(t, e) {
|
|
482
482
|
return {
|
|
483
483
|
to: e ? e.to : void 0,
|
|
484
484
|
type: yr,
|
|
@@ -490,7 +490,7 @@ function Rn(t, e) {
|
|
|
490
490
|
function jc(t, e, n, r) {
|
|
491
491
|
var o = {
|
|
492
492
|
_event: n
|
|
493
|
-
}, i =
|
|
493
|
+
}, i = Rt(ct(t.event) ? t.event(e, n.data, o) : t.event), a;
|
|
494
494
|
if (rt(t.delay)) {
|
|
495
495
|
var s = r && r[t.delay];
|
|
496
496
|
a = ct(s) ? s(e, n.data, o) : s;
|
|
@@ -504,12 +504,12 @@ function jc(t, e, n, r) {
|
|
|
504
504
|
delay: a
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
return
|
|
507
|
+
function Dc(t, e) {
|
|
508
|
+
return Cn(t, L(L({}, e), {
|
|
509
509
|
to: qe.Parent
|
|
510
510
|
}));
|
|
511
511
|
}
|
|
512
|
-
var
|
|
512
|
+
var Pc = function(t, e, n) {
|
|
513
513
|
return L(L({}, t), {
|
|
514
514
|
value: rt(t.expr) ? t.expr : t.expr(e, n.data, {
|
|
515
515
|
_event: n
|
|
@@ -590,7 +590,7 @@ function Vc(t) {
|
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
592
|
function Uc(t, e) {
|
|
593
|
-
return
|
|
593
|
+
return Cn(function(n, r) {
|
|
594
594
|
return r;
|
|
595
595
|
}, L(L({}, e), {
|
|
596
596
|
to: t
|
|
@@ -615,22 +615,22 @@ function Xr(t, e, n, r, o, i) {
|
|
|
615
615
|
var p = jc(u, f, r, t.options.delays);
|
|
616
616
|
return p;
|
|
617
617
|
case Ji:
|
|
618
|
-
return
|
|
618
|
+
return Pc(u, f, r);
|
|
619
619
|
case mc: {
|
|
620
|
-
var v = u, m = (h = v.conds.find(function(
|
|
621
|
-
var $ = ra(
|
|
620
|
+
var v = u, m = (h = v.conds.find(function(D) {
|
|
621
|
+
var $ = ra(D.cond, t.options.guards);
|
|
622
622
|
return !$ || oa(t, $, f, r, e);
|
|
623
623
|
})) === null || h === void 0 ? void 0 : h.actions;
|
|
624
624
|
if (!m)
|
|
625
625
|
return [];
|
|
626
|
-
var E = ot(Xr(t, e, f, r, nr(
|
|
626
|
+
var E = ot(Xr(t, e, f, r, nr(Bt(m), t.options.actions), i), 2), y = E[0], w = E[1];
|
|
627
627
|
return f = w, g?.push(f), y;
|
|
628
628
|
}
|
|
629
629
|
case bc: {
|
|
630
630
|
var m = u.get(f, r.data);
|
|
631
631
|
if (!m)
|
|
632
632
|
return [];
|
|
633
|
-
var k = ot(Xr(t, e, f, r, nr(
|
|
633
|
+
var k = ot(Xr(t, e, f, r, nr(Bt(m), t.options.actions), i), 2), S = k[0], I = k[1];
|
|
634
634
|
return f = I, g?.push(f), S;
|
|
635
635
|
}
|
|
636
636
|
case lo:
|
|
@@ -640,14 +640,14 @@ function Xr(t, e, n, r, o, i) {
|
|
|
640
640
|
break;
|
|
641
641
|
}
|
|
642
642
|
default:
|
|
643
|
-
var O = _n(u, t.options.actions),
|
|
644
|
-
if (
|
|
643
|
+
var O = _n(u, t.options.actions), R = O.exec;
|
|
644
|
+
if (R && g) {
|
|
645
645
|
var A = g.length - 1;
|
|
646
646
|
O = L(L({}, O), {
|
|
647
|
-
exec: function(
|
|
647
|
+
exec: function(D) {
|
|
648
648
|
for (var $ = [], M = 1; M < arguments.length; M++)
|
|
649
649
|
$[M - 1] = arguments[M];
|
|
650
|
-
|
|
650
|
+
R.apply(void 0, yt([g[A]], ot($), !1));
|
|
651
651
|
}
|
|
652
652
|
});
|
|
653
653
|
}
|
|
@@ -744,7 +744,7 @@ function la(t) {
|
|
|
744
744
|
var e = [t];
|
|
745
745
|
return or(t) ? e : e.concat(ht(Ze(t).map(la)));
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Fe(t, e) {
|
|
748
748
|
var n, r, o, i, a, s, c, f, g = new Set(t), l = Yr(g), u = new Set(e);
|
|
749
749
|
try {
|
|
750
750
|
for (var h = nt(u), p = h.next(); !p.done; p = h.next())
|
|
@@ -766,24 +766,24 @@ function Me(t, e) {
|
|
|
766
766
|
for (var y = nt(u), w = y.next(); !w.done; w = y.next()) {
|
|
767
767
|
var v = w.value;
|
|
768
768
|
if (v.type === "compound" && (!E.get(v) || !E.get(v).length))
|
|
769
|
-
l.get(v) ? l.get(v).forEach(function(
|
|
770
|
-
return u.add(
|
|
771
|
-
}) : v.initialStateNodes.forEach(function(
|
|
772
|
-
return u.add(
|
|
769
|
+
l.get(v) ? l.get(v).forEach(function(D) {
|
|
770
|
+
return u.add(D);
|
|
771
|
+
}) : v.initialStateNodes.forEach(function(D) {
|
|
772
|
+
return u.add(D);
|
|
773
773
|
});
|
|
774
774
|
else if (v.type === "parallel")
|
|
775
775
|
try {
|
|
776
776
|
for (var k = (a = void 0, nt(Ze(v))), S = k.next(); !S.done; S = k.next()) {
|
|
777
777
|
var I = S.value;
|
|
778
|
-
u.has(I) || (u.add(I), l.get(I) ? l.get(I).forEach(function(
|
|
779
|
-
return u.add(
|
|
780
|
-
}) : I.initialStateNodes.forEach(function(
|
|
781
|
-
return u.add(
|
|
778
|
+
u.has(I) || (u.add(I), l.get(I) ? l.get(I).forEach(function(D) {
|
|
779
|
+
return u.add(D);
|
|
780
|
+
}) : I.initialStateNodes.forEach(function(D) {
|
|
781
|
+
return u.add(D);
|
|
782
782
|
}));
|
|
783
783
|
}
|
|
784
|
-
} catch (
|
|
784
|
+
} catch (D) {
|
|
785
785
|
a = {
|
|
786
|
-
error:
|
|
786
|
+
error: D
|
|
787
787
|
};
|
|
788
788
|
} finally {
|
|
789
789
|
try {
|
|
@@ -805,8 +805,8 @@ function Me(t, e) {
|
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
807
|
try {
|
|
808
|
-
for (var O = nt(u),
|
|
809
|
-
for (var v =
|
|
808
|
+
for (var O = nt(u), R = O.next(); !R.done; R = O.next())
|
|
809
|
+
for (var v = R.value, m = v.parent; m && !u.has(m); )
|
|
810
810
|
u.add(m), m = m.parent;
|
|
811
811
|
} catch (A) {
|
|
812
812
|
c = {
|
|
@@ -814,7 +814,7 @@ function Me(t, e) {
|
|
|
814
814
|
};
|
|
815
815
|
} finally {
|
|
816
816
|
try {
|
|
817
|
-
|
|
817
|
+
R && !R.done && (f = O.return) && f.call(O);
|
|
818
818
|
} finally {
|
|
819
819
|
if (c) throw c.error;
|
|
820
820
|
}
|
|
@@ -859,7 +859,7 @@ function Yr(t) {
|
|
|
859
859
|
return r;
|
|
860
860
|
}
|
|
861
861
|
function Gc(t, e) {
|
|
862
|
-
var n =
|
|
862
|
+
var n = Fe([t], e);
|
|
863
863
|
return fa(t, Yr(n));
|
|
864
864
|
}
|
|
865
865
|
function Zn(t, e) {
|
|
@@ -1004,7 +1004,7 @@ var ee = (
|
|
|
1004
1004
|
return this.tags.has(e);
|
|
1005
1005
|
}, t.prototype.can = function(e) {
|
|
1006
1006
|
var n;
|
|
1007
|
-
|
|
1007
|
+
Cc(!!this.machine);
|
|
1008
1008
|
var r = (n = this.machine) === null || n === void 0 ? void 0 : n.getTransitionData(this, e);
|
|
1009
1009
|
return !!r?.transitions.length && // Check that at least one transition is not forbidden
|
|
1010
1010
|
r.transitions.some(function(o) {
|
|
@@ -1139,7 +1139,7 @@ var iu = (
|
|
|
1139
1139
|
n === void 0 && (n = t.defaultOptions), this.machine = e, this.delayedEventsMap = {}, this.listeners = /* @__PURE__ */ new Set(), this.contextListeners = /* @__PURE__ */ new Set(), this.stopListeners = /* @__PURE__ */ new Set(), this.doneListeners = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Set(), this.sendListeners = /* @__PURE__ */ new Set(), this.initialized = !1, this.status = Ot.NotStarted, this.children = /* @__PURE__ */ new Map(), this.forwardTo = /* @__PURE__ */ new Set(), this.init = this.start, this.send = function(g, l) {
|
|
1140
1140
|
if (Ye(g))
|
|
1141
1141
|
return r.batch(g), r.state;
|
|
1142
|
-
var u =
|
|
1142
|
+
var u = Rt(po(g, l));
|
|
1143
1143
|
if (r.status === Ot.Stopped)
|
|
1144
1144
|
return r.state;
|
|
1145
1145
|
if (r.status !== Ot.Running && !r.options.deferEvents)
|
|
@@ -1262,8 +1262,8 @@ Event: `
|
|
|
1262
1262
|
return A.type === "final" && A.parent === l.machine;
|
|
1263
1263
|
}), I = S && S.doneData ? tr(S.doneData, e.context, n) : void 0;
|
|
1264
1264
|
try {
|
|
1265
|
-
for (var O = nt(this.doneListeners),
|
|
1266
|
-
var p =
|
|
1265
|
+
for (var O = nt(this.doneListeners), R = O.next(); !R.done; R = O.next()) {
|
|
1266
|
+
var p = R.value;
|
|
1267
1267
|
p(Kn(this.id, I));
|
|
1268
1268
|
}
|
|
1269
1269
|
} catch (A) {
|
|
@@ -1272,7 +1272,7 @@ Event: `
|
|
|
1272
1272
|
};
|
|
1273
1273
|
} finally {
|
|
1274
1274
|
try {
|
|
1275
|
-
|
|
1275
|
+
R && !R.done && (g = O.return) && g.call(O);
|
|
1276
1276
|
} finally {
|
|
1277
1277
|
if (f) throw f.error;
|
|
1278
1278
|
}
|
|
@@ -1324,9 +1324,9 @@ Event: `
|
|
|
1324
1324
|
var p = h.value;
|
|
1325
1325
|
this.listeners.delete(p);
|
|
1326
1326
|
}
|
|
1327
|
-
} catch (
|
|
1327
|
+
} catch (R) {
|
|
1328
1328
|
e = {
|
|
1329
|
-
error:
|
|
1329
|
+
error: R
|
|
1330
1330
|
};
|
|
1331
1331
|
} finally {
|
|
1332
1332
|
try {
|
|
@@ -1340,9 +1340,9 @@ Event: `
|
|
|
1340
1340
|
var p = m.value;
|
|
1341
1341
|
p(), this.stopListeners.delete(p);
|
|
1342
1342
|
}
|
|
1343
|
-
} catch (
|
|
1343
|
+
} catch (R) {
|
|
1344
1344
|
r = {
|
|
1345
|
-
error:
|
|
1345
|
+
error: R
|
|
1346
1346
|
};
|
|
1347
1347
|
} finally {
|
|
1348
1348
|
try {
|
|
@@ -1356,9 +1356,9 @@ Event: `
|
|
|
1356
1356
|
var p = y.value;
|
|
1357
1357
|
this.contextListeners.delete(p);
|
|
1358
1358
|
}
|
|
1359
|
-
} catch (
|
|
1359
|
+
} catch (R) {
|
|
1360
1360
|
i = {
|
|
1361
|
-
error:
|
|
1361
|
+
error: R
|
|
1362
1362
|
};
|
|
1363
1363
|
} finally {
|
|
1364
1364
|
try {
|
|
@@ -1372,9 +1372,9 @@ Event: `
|
|
|
1372
1372
|
var p = k.value;
|
|
1373
1373
|
this.doneListeners.delete(p);
|
|
1374
1374
|
}
|
|
1375
|
-
} catch (
|
|
1375
|
+
} catch (R) {
|
|
1376
1376
|
s = {
|
|
1377
|
-
error:
|
|
1377
|
+
error: R
|
|
1378
1378
|
};
|
|
1379
1379
|
} finally {
|
|
1380
1380
|
try {
|
|
@@ -1385,12 +1385,12 @@ Event: `
|
|
|
1385
1385
|
}
|
|
1386
1386
|
if (!this.initialized)
|
|
1387
1387
|
return this;
|
|
1388
|
-
yt([], ot(this.state.configuration), !1).sort(function(
|
|
1389
|
-
return A.order -
|
|
1390
|
-
}).forEach(function(
|
|
1391
|
-
var A,
|
|
1388
|
+
yt([], ot(this.state.configuration), !1).sort(function(R, A) {
|
|
1389
|
+
return A.order - R.order;
|
|
1390
|
+
}).forEach(function(R) {
|
|
1391
|
+
var A, D;
|
|
1392
1392
|
try {
|
|
1393
|
-
for (var $ = nt(
|
|
1393
|
+
for (var $ = nt(R.definition.exit), M = $.next(); !M.done; M = $.next()) {
|
|
1394
1394
|
var z = M.value;
|
|
1395
1395
|
l.exec(z, l.state);
|
|
1396
1396
|
}
|
|
@@ -1400,22 +1400,22 @@ Event: `
|
|
|
1400
1400
|
};
|
|
1401
1401
|
} finally {
|
|
1402
1402
|
try {
|
|
1403
|
-
M && !M.done && (
|
|
1403
|
+
M && !M.done && (D = $.return) && D.call($);
|
|
1404
1404
|
} finally {
|
|
1405
1405
|
if (A) throw A.error;
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
}), this.children.forEach(function(
|
|
1409
|
-
ct(
|
|
1408
|
+
}), this.children.forEach(function(R) {
|
|
1409
|
+
ct(R.stop) && R.stop();
|
|
1410
1410
|
}), this.children.clear();
|
|
1411
1411
|
try {
|
|
1412
1412
|
for (var S = nt(Object.keys(this.delayedEventsMap)), I = S.next(); !I.done; I = S.next()) {
|
|
1413
1413
|
var O = I.value;
|
|
1414
1414
|
this.clock.clearTimeout(this.delayedEventsMap[O]);
|
|
1415
1415
|
}
|
|
1416
|
-
} catch (
|
|
1416
|
+
} catch (R) {
|
|
1417
1417
|
f = {
|
|
1418
|
-
error:
|
|
1418
|
+
error: R
|
|
1419
1419
|
};
|
|
1420
1420
|
} finally {
|
|
1421
1421
|
try {
|
|
@@ -1436,7 +1436,7 @@ Event: `
|
|
|
1436
1436
|
);
|
|
1437
1437
|
this.scheduler.schedule(function() {
|
|
1438
1438
|
var r, o, i = n.state, a = !1, s = [], c = function(u) {
|
|
1439
|
-
var h =
|
|
1439
|
+
var h = Rt(u);
|
|
1440
1440
|
n.forward(h), i = mn(n, function() {
|
|
1441
1441
|
return n.machine.transition(i, h);
|
|
1442
1442
|
}), s.push.apply(s, yt([], ot(i.actions.map(function(p) {
|
|
@@ -1459,12 +1459,12 @@ Event: `
|
|
|
1459
1459
|
if (r) throw r.error;
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
|
-
i.changed = a, i.actions = s, n.update(i,
|
|
1462
|
+
i.changed = a, i.actions = s, n.update(i, Rt(e[e.length - 1]));
|
|
1463
1463
|
});
|
|
1464
1464
|
}, t.prototype.sender = function(e) {
|
|
1465
1465
|
return this.send.bind(this, e);
|
|
1466
1466
|
}, t.prototype.nextState = function(e) {
|
|
1467
|
-
var n = this, r =
|
|
1467
|
+
var n = this, r = Rt(e);
|
|
1468
1468
|
if (r.name.indexOf(Wo) === 0 && !this.state.nextEvents.some(function(i) {
|
|
1469
1469
|
return i.indexOf(Wo) === 0;
|
|
1470
1470
|
}))
|
|
@@ -1578,7 +1578,7 @@ Event: `
|
|
|
1578
1578
|
return this.spawnCallback(e, n);
|
|
1579
1579
|
if (Kc(e))
|
|
1580
1580
|
return this.spawnActor(e, n);
|
|
1581
|
-
if (
|
|
1581
|
+
if (Rc(e))
|
|
1582
1582
|
return this.spawnObservable(e, n);
|
|
1583
1583
|
if (Ke(e))
|
|
1584
1584
|
return this.spawnMachine(e, L(L({}, r), {
|
|
@@ -1602,7 +1602,7 @@ Event: `
|
|
|
1602
1602
|
});
|
|
1603
1603
|
var a = o;
|
|
1604
1604
|
return this.children.set(o.id, a), i.autoForward && this.forwardTo.add(o.id), o.onDone(function(s) {
|
|
1605
|
-
r.removeChild(o.id), r.send(
|
|
1605
|
+
r.removeChild(o.id), r.send(Rt(s, {
|
|
1606
1606
|
origin: o.id
|
|
1607
1607
|
}));
|
|
1608
1608
|
}).start(), a;
|
|
@@ -1615,7 +1615,7 @@ Event: `
|
|
|
1615
1615
|
}, t.prototype.spawnPromise = function(e, n) {
|
|
1616
1616
|
var r, o = this, i = !1, a;
|
|
1617
1617
|
e.then(function(c) {
|
|
1618
|
-
i || (a = c, o.removeChild(n), o.send(
|
|
1618
|
+
i || (a = c, o.removeChild(n), o.send(Rt(Kn(n, c), {
|
|
1619
1619
|
origin: n
|
|
1620
1620
|
})));
|
|
1621
1621
|
}, function(c) {
|
|
@@ -1623,7 +1623,7 @@ Event: `
|
|
|
1623
1623
|
o.removeChild(n);
|
|
1624
1624
|
var f = yn(n, c);
|
|
1625
1625
|
try {
|
|
1626
|
-
o.send(
|
|
1626
|
+
o.send(Rt(f, {
|
|
1627
1627
|
origin: n
|
|
1628
1628
|
}));
|
|
1629
1629
|
} catch {
|
|
@@ -1666,7 +1666,7 @@ Event: `
|
|
|
1666
1666
|
var r, o = this, i = !1, a = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), c, f = function(u) {
|
|
1667
1667
|
c = u, s.forEach(function(h) {
|
|
1668
1668
|
return h(u);
|
|
1669
|
-
}), !i && o.send(
|
|
1669
|
+
}), !i && o.send(Rt(u, {
|
|
1670
1670
|
origin: n
|
|
1671
1671
|
}));
|
|
1672
1672
|
}, g;
|
|
@@ -1711,15 +1711,15 @@ Event: `
|
|
|
1711
1711
|
return this.children.set(n, l), l;
|
|
1712
1712
|
}, t.prototype.spawnObservable = function(e, n) {
|
|
1713
1713
|
var r, o = this, i, a = e.subscribe(function(c) {
|
|
1714
|
-
i = c, o.send(
|
|
1714
|
+
i = c, o.send(Rt(c, {
|
|
1715
1715
|
origin: n
|
|
1716
1716
|
}));
|
|
1717
1717
|
}, function(c) {
|
|
1718
|
-
o.removeChild(n), o.send(
|
|
1718
|
+
o.removeChild(n), o.send(Rt(yn(n, c), {
|
|
1719
1719
|
origin: n
|
|
1720
1720
|
}));
|
|
1721
1721
|
}, function() {
|
|
1722
|
-
o.removeChild(n), o.send(
|
|
1722
|
+
o.removeChild(n), o.send(Rt(Kn(n), {
|
|
1723
1723
|
origin: n
|
|
1724
1724
|
}));
|
|
1725
1725
|
}), s = (r = {
|
|
@@ -1865,7 +1865,7 @@ function Mn(t) {
|
|
|
1865
1865
|
}
|
|
1866
1866
|
});
|
|
1867
1867
|
}
|
|
1868
|
-
var Fn = "", eo = "#", jr = "*",
|
|
1868
|
+
var Fn = "", eo = "#", jr = "*", Le = {}, He = function(t) {
|
|
1869
1869
|
return t[0] === eo;
|
|
1870
1870
|
}, cu = function() {
|
|
1871
1871
|
return {
|
|
@@ -1897,7 +1897,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
1897
1897
|
key: g
|
|
1898
1898
|
});
|
|
1899
1899
|
return Object.assign(i.idMap, L((l = {}, l[u.id] = u, l), u.idMap)), u;
|
|
1900
|
-
}) :
|
|
1900
|
+
}) : Le;
|
|
1901
1901
|
var s = 0;
|
|
1902
1902
|
function c(f) {
|
|
1903
1903
|
var g, l;
|
|
@@ -1922,11 +1922,11 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
1922
1922
|
c(this), this.history = this.config.history === !0 ? "shallow" : this.config.history || !1, this._transient = !!this.config.always || (this.config.on ? Array.isArray(this.config.on) ? this.config.on.some(function(f) {
|
|
1923
1923
|
var g = f.event;
|
|
1924
1924
|
return g === Fn;
|
|
1925
|
-
}) : Fn in this.config.on : !1), this.strict = !!this.config.strict, this.onEntry =
|
|
1925
|
+
}) : Fn in this.config.on : !1), this.strict = !!this.config.strict, this.onEntry = Bt(this.config.entry || this.config.onEntry).map(function(f) {
|
|
1926
1926
|
return _n(f);
|
|
1927
|
-
}), this.onExit =
|
|
1927
|
+
}), this.onExit = Bt(this.config.exit || this.config.onExit).map(function(f) {
|
|
1928
1928
|
return _n(f);
|
|
1929
|
-
}), this.meta = this.config.meta, this.doneData = this.type === "final" ? this.config.data : void 0, this.invoke =
|
|
1929
|
+
}), this.meta = this.config.meta, this.doneData = this.type === "final" ? this.config.data : void 0, this.invoke = Bt(this.config.invoke).map(function(f, g) {
|
|
1930
1930
|
var l, u;
|
|
1931
1931
|
if (Ke(f)) {
|
|
1932
1932
|
var h = Ln(i.id, g);
|
|
@@ -1955,9 +1955,9 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
1955
1955
|
src: p
|
|
1956
1956
|
}));
|
|
1957
1957
|
}
|
|
1958
|
-
}), this.activities =
|
|
1958
|
+
}), this.activities = Bt(this.config.activities).concat(this.invoke).map(function(f) {
|
|
1959
1959
|
return ho(f);
|
|
1960
|
-
}), this.transition = this.transition.bind(this), this.tags =
|
|
1960
|
+
}), this.transition = this.transition.bind(this), this.tags = Bt(this.config.tags);
|
|
1961
1961
|
}
|
|
1962
1962
|
return t.prototype._init = function() {
|
|
1963
1963
|
this.__cache.transitions || la(this).forEach(function(e) {
|
|
@@ -2056,7 +2056,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2056
2056
|
return [];
|
|
2057
2057
|
var r = function(i, a) {
|
|
2058
2058
|
var s = ct(i) ? "".concat(e.id, ":delay[").concat(a, "]") : i, c = Wc(s, e.id);
|
|
2059
|
-
return e.onEntry.push(
|
|
2059
|
+
return e.onEntry.push(Cn(c, {
|
|
2060
2060
|
delay: i
|
|
2061
2061
|
})), e.onExit.push(Lc(c)), c;
|
|
2062
2062
|
}, o = Ye(n) ? n.map(function(i, a) {
|
|
@@ -2068,7 +2068,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2068
2068
|
var s = n[i], c = rt(s) ? {
|
|
2069
2069
|
target: s
|
|
2070
2070
|
} : s, f = isNaN(+i) ? i : +i, g = r(f, a);
|
|
2071
|
-
return
|
|
2071
|
+
return Bt(c).map(function(l) {
|
|
2072
2072
|
return L(L({}, l), {
|
|
2073
2073
|
event: g,
|
|
2074
2074
|
delay: f
|
|
@@ -2098,7 +2098,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2098
2098
|
var n = Yi(e);
|
|
2099
2099
|
return this.events.includes(n);
|
|
2100
2100
|
}, t.prototype.resolveState = function(e) {
|
|
2101
|
-
var n = e instanceof ee ? e : ee.create(e), r = Array.from(
|
|
2101
|
+
var n = e instanceof ee ? e : ee.create(e), r = Array.from(Fe([], this.getStateNodes(n.value)));
|
|
2102
2102
|
return new ee(L(L({}, n), {
|
|
2103
2103
|
value: this.resolve(n.value),
|
|
2104
2104
|
configuration: r,
|
|
@@ -2162,12 +2162,12 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2162
2162
|
}, t.prototype._transition = function(e, n, r) {
|
|
2163
2163
|
return rt(e) ? this.transitionLeafNode(e, n, r) : Object.keys(e).length === 1 ? this.transitionCompoundNode(e, n, r) : this.transitionParallelNode(e, n, r);
|
|
2164
2164
|
}, t.prototype.getTransitionData = function(e, n) {
|
|
2165
|
-
return this._transition(e.value, e,
|
|
2165
|
+
return this._transition(e.value, e, Rt(n));
|
|
2166
2166
|
}, t.prototype.next = function(e, n) {
|
|
2167
2167
|
var r, o, i = this, a = n.name, s = [], c = [], f;
|
|
2168
2168
|
try {
|
|
2169
2169
|
for (var g = nt(this.getCandidates(a)), l = g.next(); !l.done; l = g.next()) {
|
|
2170
|
-
var u = l.value, h = u.cond, p = u.in, v = e.context, m = p ? rt(p) &&
|
|
2170
|
+
var u = l.value, h = u.cond, p = u.in, v = e.context, m = p ? rt(p) && He(p) ? (
|
|
2171
2171
|
// Check if in state by ID
|
|
2172
2172
|
e.matches(xn(this.getStateNodeById(p).path, this.delimiter))
|
|
2173
2173
|
) : (
|
|
@@ -2236,7 +2236,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2236
2236
|
}
|
|
2237
2237
|
return !0;
|
|
2238
2238
|
}, t.prototype.getActions = function(e, n, r, o) {
|
|
2239
|
-
var i, a, s, c, f =
|
|
2239
|
+
var i, a, s, c, f = Fe([], o ? this.getStateNodes(o.value) : [this]), g = e.configuration.length ? Fe(f, e.configuration) : f;
|
|
2240
2240
|
try {
|
|
2241
2241
|
for (var l = nt(g), u = l.next(); !u.done; u = l.next()) {
|
|
2242
2242
|
var h = u.value;
|
|
@@ -2270,40 +2270,40 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2270
2270
|
}
|
|
2271
2271
|
}
|
|
2272
2272
|
var m = ht(e.entrySet.map(function(O) {
|
|
2273
|
-
var
|
|
2273
|
+
var R = [];
|
|
2274
2274
|
if (O.type !== "final")
|
|
2275
|
-
return
|
|
2275
|
+
return R;
|
|
2276
2276
|
var A = O.parent;
|
|
2277
2277
|
if (!A.parent)
|
|
2278
|
-
return
|
|
2279
|
-
|
|
2278
|
+
return R;
|
|
2279
|
+
R.push(
|
|
2280
2280
|
Hn(O.id, O.doneData),
|
|
2281
2281
|
// TODO: deprecate - final states should not emit done events for their own state.
|
|
2282
2282
|
Hn(A.id, O.doneData ? tr(O.doneData, n, r) : void 0)
|
|
2283
2283
|
);
|
|
2284
|
-
var
|
|
2285
|
-
return
|
|
2284
|
+
var D = A.parent;
|
|
2285
|
+
return D.type === "parallel" && Ze(D).every(function($) {
|
|
2286
2286
|
return wn(e.configuration, $);
|
|
2287
|
-
}) &&
|
|
2287
|
+
}) && R.push(Hn(D.id)), R;
|
|
2288
2288
|
}));
|
|
2289
|
-
e.exitSet.sort(function(O,
|
|
2290
|
-
return
|
|
2291
|
-
}), e.entrySet.sort(function(O,
|
|
2292
|
-
return O.order -
|
|
2289
|
+
e.exitSet.sort(function(O, R) {
|
|
2290
|
+
return R.order - O.order;
|
|
2291
|
+
}), e.entrySet.sort(function(O, R) {
|
|
2292
|
+
return O.order - R.order;
|
|
2293
2293
|
});
|
|
2294
2294
|
var E = new Set(e.entrySet), y = new Set(e.exitSet), w = ot([ht(Array.from(E).map(function(O) {
|
|
2295
|
-
return yt(yt([], ot(O.activities.map(function(
|
|
2296
|
-
return Hc(
|
|
2295
|
+
return yt(yt([], ot(O.activities.map(function(R) {
|
|
2296
|
+
return Hc(R);
|
|
2297
2297
|
})), !1), ot(O.onEntry), !1);
|
|
2298
2298
|
})).concat(m.map(aa)), ht(Array.from(y).map(function(O) {
|
|
2299
|
-
return yt(yt([], ot(O.onExit), !1), ot(O.activities.map(function(
|
|
2300
|
-
return $c(
|
|
2299
|
+
return yt(yt([], ot(O.onExit), !1), ot(O.activities.map(function(R) {
|
|
2300
|
+
return $c(R);
|
|
2301
2301
|
})), !1);
|
|
2302
2302
|
}))], 2), k = w[0], S = w[1], I = nr(S.concat(e.actions).concat(k), this.machine.options.actions);
|
|
2303
2303
|
return I;
|
|
2304
2304
|
}, t.prototype.transition = function(e, n, r) {
|
|
2305
2305
|
e === void 0 && (e = this.initialState);
|
|
2306
|
-
var o =
|
|
2306
|
+
var o = Rt(n), i;
|
|
2307
2307
|
if (e instanceof ee)
|
|
2308
2308
|
i = r === void 0 ? e : this.resolveState(ee.from(e, r));
|
|
2309
2309
|
else {
|
|
@@ -2319,7 +2319,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2319
2319
|
exitSet: [],
|
|
2320
2320
|
source: i,
|
|
2321
2321
|
actions: []
|
|
2322
|
-
}, f =
|
|
2322
|
+
}, f = Fe([], this.getStateNodes(i.value)), g = c.configuration.length ? Fe(f, c.configuration) : f;
|
|
2323
2323
|
return c.configuration = yt([], ot(g), !1), this.resolveTransition(c, i, i.context, o);
|
|
2324
2324
|
}, t.prototype.resolveRaisedTransition = function(e, n, r) {
|
|
2325
2325
|
var o, i = e.actions;
|
|
@@ -2349,9 +2349,9 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2349
2349
|
}), 2), S = k[0], I = k[1], O = y.filter(function(B) {
|
|
2350
2350
|
var q;
|
|
2351
2351
|
return B.type === Br && ((q = B.activity) === null || q === void 0 ? void 0 : q.type) === Kr;
|
|
2352
|
-
}),
|
|
2352
|
+
}), R = O.reduce(function(B, q) {
|
|
2353
2353
|
return B[q.activity.id] = Bc(q.activity, s.machine, w, o), B;
|
|
2354
|
-
}, n ? L({}, n.children) : {}), A = f ? e.configuration : n ? n.configuration : [],
|
|
2354
|
+
}, n ? L({}, n.children) : {}), A = f ? e.configuration : n ? n.configuration : [], D = wn(A, this), $ = new ee({
|
|
2355
2355
|
value: g || n.value,
|
|
2356
2356
|
context: w,
|
|
2357
2357
|
_event: o,
|
|
@@ -2364,21 +2364,21 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2364
2364
|
events: [],
|
|
2365
2365
|
configuration: A,
|
|
2366
2366
|
transitions: e.transitions,
|
|
2367
|
-
children:
|
|
2368
|
-
done:
|
|
2367
|
+
children: R,
|
|
2368
|
+
done: D,
|
|
2369
2369
|
tags: qo(A),
|
|
2370
2370
|
machine: this
|
|
2371
2371
|
}), M = r !== w;
|
|
2372
2372
|
$.changed = o.name === Qi || M;
|
|
2373
2373
|
var z = $.history;
|
|
2374
2374
|
z && delete z.history;
|
|
2375
|
-
var Y = !
|
|
2375
|
+
var Y = !D && (this._transient || c.some(function(B) {
|
|
2376
2376
|
return B._transient;
|
|
2377
2377
|
}));
|
|
2378
2378
|
if (!f && (!Y || o.name === Fn))
|
|
2379
2379
|
return $;
|
|
2380
2380
|
var G = $;
|
|
2381
|
-
if (!
|
|
2381
|
+
if (!D)
|
|
2382
2382
|
for (Y && (G = this.resolveRaisedTransition(G, {
|
|
2383
2383
|
type: vc
|
|
2384
2384
|
}, o)); S.length; ) {
|
|
@@ -2388,7 +2388,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2388
2388
|
var st = G.changed || (z ? !!G.actions.length || M || typeof z.value != typeof G.value || !da(G.value, z.value) : void 0);
|
|
2389
2389
|
return G.changed = st, G.history = z, G;
|
|
2390
2390
|
}, t.prototype.getStateNode = function(e) {
|
|
2391
|
-
if (
|
|
2391
|
+
if (He(e))
|
|
2392
2392
|
return this.machine.getStateNodeById(e);
|
|
2393
2393
|
if (!this.states)
|
|
2394
2394
|
throw new Error("Unable to retrieve child state '".concat(e, "' from '").concat(this.id, "'; no child states exist."));
|
|
@@ -2397,7 +2397,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2397
2397
|
throw new Error("Child state '".concat(e, "' does not exist on '").concat(this.id, "'"));
|
|
2398
2398
|
return n;
|
|
2399
2399
|
}, t.prototype.getStateNodeById = function(e) {
|
|
2400
|
-
var n =
|
|
2400
|
+
var n = He(e) ? e.slice(eo.length) : e;
|
|
2401
2401
|
if (n === this.id)
|
|
2402
2402
|
return this;
|
|
2403
2403
|
var r = this.machine.idMap[n];
|
|
@@ -2405,7 +2405,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2405
2405
|
throw new Error("Child state node '#".concat(n, "' does not exist on machine '").concat(this.id, "'"));
|
|
2406
2406
|
return r;
|
|
2407
2407
|
}, t.prototype.getStateNodeByPath = function(e) {
|
|
2408
|
-
if (typeof e == "string" &&
|
|
2408
|
+
if (typeof e == "string" && He(e))
|
|
2409
2409
|
try {
|
|
2410
2410
|
return this.getStateNodeById(e.slice(1));
|
|
2411
2411
|
} catch {
|
|
@@ -2420,11 +2420,11 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2420
2420
|
}, t.prototype.resolve = function(e) {
|
|
2421
2421
|
var n, r = this;
|
|
2422
2422
|
if (!e)
|
|
2423
|
-
return this.initialStateValue ||
|
|
2423
|
+
return this.initialStateValue || Le;
|
|
2424
2424
|
switch (this.type) {
|
|
2425
2425
|
case "parallel":
|
|
2426
2426
|
return gn(this.initialStateValue, function(i, a) {
|
|
2427
|
-
return i ? r.getStateNode(a).resolve(e[a] || i) :
|
|
2427
|
+
return i ? r.getStateNode(a).resolve(e[a] || i) : Le;
|
|
2428
2428
|
});
|
|
2429
2429
|
case "compound":
|
|
2430
2430
|
if (rt(e)) {
|
|
@@ -2432,13 +2432,13 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2432
2432
|
return o.type === "parallel" || o.type === "compound" ? (n = {}, n[e] = o.initialStateValue, n) : e;
|
|
2433
2433
|
}
|
|
2434
2434
|
return Object.keys(e).length ? gn(e, function(i, a) {
|
|
2435
|
-
return i ? r.getStateNode(a).resolve(i) :
|
|
2435
|
+
return i ? r.getStateNode(a).resolve(i) : Le;
|
|
2436
2436
|
}) : this.initialStateValue || {};
|
|
2437
2437
|
default:
|
|
2438
|
-
return e ||
|
|
2438
|
+
return e || Le;
|
|
2439
2439
|
}
|
|
2440
2440
|
}, t.prototype.getResolvedPath = function(e) {
|
|
2441
|
-
if (
|
|
2441
|
+
if (He(e)) {
|
|
2442
2442
|
var n = this.machine.idMap[e.slice(eo.length)];
|
|
2443
2443
|
if (!n)
|
|
2444
2444
|
throw new Error("Unable to find state node '".concat(e, "'"));
|
|
@@ -2453,7 +2453,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2453
2453
|
var n;
|
|
2454
2454
|
if (this.type === "parallel")
|
|
2455
2455
|
n = Uo(this.states, function(r) {
|
|
2456
|
-
return r.initialStateValue ||
|
|
2456
|
+
return r.initialStateValue || Le;
|
|
2457
2457
|
}, function(r) {
|
|
2458
2458
|
return r.type !== "history";
|
|
2459
2459
|
});
|
|
@@ -2500,7 +2500,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2500
2500
|
var e;
|
|
2501
2501
|
if (this.type === "history") {
|
|
2502
2502
|
var n = this.config;
|
|
2503
|
-
rt(n.target) ? e =
|
|
2503
|
+
rt(n.target) ? e = He(n.target) ? Yn(this.machine.getStateNodeById(n.target).path.slice(this.path.length - 1)) : n.target : e = n.target;
|
|
2504
2504
|
}
|
|
2505
2505
|
return e;
|
|
2506
2506
|
},
|
|
@@ -2661,7 +2661,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2661
2661
|
var n = this, r = Ic(e.target), o = "internal" in e ? e.internal : r ? r.some(function(c) {
|
|
2662
2662
|
return rt(c) && c[0] === n.delimiter;
|
|
2663
2663
|
}) : !0, i = this.machine.options.guards, a = this.resolveTarget(r), s = L(L({}, e), {
|
|
2664
|
-
actions: nr(
|
|
2664
|
+
actions: nr(Bt(e.actions)),
|
|
2665
2665
|
cond: ra(e.cond, i),
|
|
2666
2666
|
target: a,
|
|
2667
2667
|
source: this,
|
|
@@ -2694,7 +2694,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2694
2694
|
var w = [];
|
|
2695
2695
|
return y.onDone && w.push.apply(w, yt([], ot(Pe(String(Kn(y.id)), y.onDone)), !1)), y.onError && w.push.apply(w, yt([], ot(Pe(String(yn(y.id)), y.onError)), !1)), w;
|
|
2696
2696
|
})), h = this.after, p = ht(yt(yt(yt(yt([], ot(l), !1), ot(u), !1), ot(o), !1), ot(g), !1).map(function(y) {
|
|
2697
|
-
return
|
|
2697
|
+
return Bt(y).map(function(w) {
|
|
2698
2698
|
return r.formatTransition(w);
|
|
2699
2699
|
});
|
|
2700
2700
|
}));
|
|
@@ -2721,7 +2721,7 @@ var Fn = "", eo = "#", jr = "*", De = {}, Le = function(t) {
|
|
|
2721
2721
|
function mr(t, e) {
|
|
2722
2722
|
return new uu(t, e);
|
|
2723
2723
|
}
|
|
2724
|
-
var mt = Fc, br =
|
|
2724
|
+
var mt = Fc, br = Cn, Ft = Dc, $e = Uc;
|
|
2725
2725
|
function Zo(t) {
|
|
2726
2726
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
2727
2727
|
}
|
|
@@ -2729,8 +2729,8 @@ function Go(t) {
|
|
|
2729
2729
|
var e, n;
|
|
2730
2730
|
return Zo(t) === !1 ? !1 : (e = t.constructor, e === void 0 ? !0 : (n = e.prototype, !(Zo(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)));
|
|
2731
2731
|
}
|
|
2732
|
-
var
|
|
2733
|
-
function
|
|
2732
|
+
var Wt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2733
|
+
function Ne(t) {
|
|
2734
2734
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2735
2735
|
}
|
|
2736
2736
|
function lu(t) {
|
|
@@ -2903,8 +2903,8 @@ function du() {
|
|
|
2903
2903
|
})(no)), no.exports;
|
|
2904
2904
|
}
|
|
2905
2905
|
var pu = du();
|
|
2906
|
-
const hu = /* @__PURE__ */
|
|
2907
|
-
var
|
|
2906
|
+
const hu = /* @__PURE__ */ Ne(pu);
|
|
2907
|
+
var Ve = Object.prototype.hasOwnProperty;
|
|
2908
2908
|
function Jt(t) {
|
|
2909
2909
|
if (ro(t))
|
|
2910
2910
|
return !1;
|
|
@@ -2912,7 +2912,7 @@ function Jt(t) {
|
|
|
2912
2912
|
return !0;
|
|
2913
2913
|
if (!va(t)) {
|
|
2914
2914
|
for (var e in t)
|
|
2915
|
-
if (
|
|
2915
|
+
if (Ve.call(t, e))
|
|
2916
2916
|
return !1;
|
|
2917
2917
|
return !0;
|
|
2918
2918
|
}
|
|
@@ -2929,7 +2929,7 @@ function Ge(t) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
function oo(t, e) {
|
|
2931
2931
|
for (var n in e)
|
|
2932
|
-
|
|
2932
|
+
Ve.call(e, n) && (t[n] = e[n]);
|
|
2933
2933
|
return t;
|
|
2934
2934
|
}
|
|
2935
2935
|
function vu(t) {
|
|
@@ -2943,9 +2943,9 @@ function ar(t, e) {
|
|
|
2943
2943
|
if (t !== e && Go(t) && Go(e)) {
|
|
2944
2944
|
var n = {};
|
|
2945
2945
|
for (var r in t)
|
|
2946
|
-
|
|
2946
|
+
Ve.call(t, r) && (Ve.call(e, r) ? n[r] = ar(t[r], e[r]) : n[r] = t[r]);
|
|
2947
2947
|
for (r in e)
|
|
2948
|
-
|
|
2948
|
+
Ve.call(e, r) && (n[r] = ar(t[r], e[r]));
|
|
2949
2949
|
return n;
|
|
2950
2950
|
}
|
|
2951
2951
|
return e;
|
|
@@ -2996,7 +2996,7 @@ jt.insert = function(t, e, n, r, o) {
|
|
|
2996
2996
|
jt.del = function(t, e, n) {
|
|
2997
2997
|
if (!Jt(n))
|
|
2998
2998
|
return oe(t, e, n, function(r, o) {
|
|
2999
|
-
return Array.isArray(r) ? r[o] !== void 0 && r.splice(o, 1) :
|
|
2999
|
+
return Array.isArray(r) ? r[o] !== void 0 && r.splice(o, 1) : Ve.call(r, o) && delete r[o], r;
|
|
3000
3000
|
});
|
|
3001
3001
|
};
|
|
3002
3002
|
jt.assign = function(t, e, n, r) {
|
|
@@ -3028,8 +3028,8 @@ function xu(t) {
|
|
|
3028
3028
|
return typeof t == "string" && Eu.test(t);
|
|
3029
3029
|
}
|
|
3030
3030
|
var Tt = [];
|
|
3031
|
-
for (var
|
|
3032
|
-
Tt.push((
|
|
3031
|
+
for (var Dr = 0; Dr < 256; ++Dr)
|
|
3032
|
+
Tt.push((Dr + 256).toString(16).substr(1));
|
|
3033
3033
|
function wu(t) {
|
|
3034
3034
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = (Tt[t[e + 0]] + Tt[t[e + 1]] + Tt[t[e + 2]] + Tt[t[e + 3]] + "-" + Tt[t[e + 4]] + Tt[t[e + 5]] + "-" + Tt[t[e + 6]] + Tt[t[e + 7]] + "-" + Tt[t[e + 8]] + Tt[t[e + 9]] + "-" + Tt[t[e + 10]] + Tt[t[e + 11]] + Tt[t[e + 12]] + Tt[t[e + 13]] + Tt[t[e + 14]] + Tt[t[e + 15]]).toLowerCase();
|
|
3035
3035
|
if (!xu(n))
|
|
@@ -3046,15 +3046,15 @@ Jn.exports;
|
|
|
3046
3046
|
var Qo;
|
|
3047
3047
|
function _u() {
|
|
3048
3048
|
return Qo || (Qo = 1, (function(t, e) {
|
|
3049
|
-
var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, a = 9007199254740991, s = "[object Arguments]", c = "[object Array]", f = "[object AsyncFunction]", g = "[object Boolean]", l = "[object Date]", u = "[object Error]", h = "[object Function]", p = "[object GeneratorFunction]", v = "[object Map]", m = "[object Number]", E = "[object Null]", y = "[object Object]", w = "[object Promise]", k = "[object Proxy]", S = "[object RegExp]", I = "[object Set]", O = "[object String]",
|
|
3050
|
-
F[z] = F[Y] = F[G] = F[et] = F[st] = F[B] = F[q] = F[pt] = F[J] = !0, F[s] = F[c] = F[$] = F[g] = F[M] = F[l] = F[u] = F[h] = F[v] = F[m] = F[y] = F[S] = F[I] = F[O] = F[
|
|
3051
|
-
var It = typeof
|
|
3049
|
+
var n = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, a = 9007199254740991, s = "[object Arguments]", c = "[object Array]", f = "[object AsyncFunction]", g = "[object Boolean]", l = "[object Date]", u = "[object Error]", h = "[object Function]", p = "[object GeneratorFunction]", v = "[object Map]", m = "[object Number]", E = "[object Null]", y = "[object Object]", w = "[object Promise]", k = "[object Proxy]", S = "[object RegExp]", I = "[object Set]", O = "[object String]", R = "[object Symbol]", A = "[object Undefined]", D = "[object WeakMap]", $ = "[object ArrayBuffer]", M = "[object DataView]", z = "[object Float32Array]", Y = "[object Float64Array]", G = "[object Int8Array]", et = "[object Int16Array]", st = "[object Int32Array]", B = "[object Uint8Array]", q = "[object Uint8ClampedArray]", pt = "[object Uint16Array]", J = "[object Uint32Array]", lt = /[\\^$.*+?()[\]{}|]/g, bt = /^\[object .+?Constructor\]$/, K = /^(?:0|[1-9]\d*)$/, F = {};
|
|
3050
|
+
F[z] = F[Y] = F[G] = F[et] = F[st] = F[B] = F[q] = F[pt] = F[J] = !0, F[s] = F[c] = F[$] = F[g] = F[M] = F[l] = F[u] = F[h] = F[v] = F[m] = F[y] = F[S] = F[I] = F[O] = F[D] = !1;
|
|
3051
|
+
var It = typeof Wt == "object" && Wt && Wt.Object === Object && Wt, tt = typeof self == "object" && self && self.Object === Object && self, ft = It || tt || Function("return this")(), Et = e && !e.nodeType && e, Lt = Et && !0 && t && !t.nodeType && t, At = Lt && Lt.exports === Et, Ht = At && It.process, Vt = (function() {
|
|
3052
3052
|
try {
|
|
3053
3053
|
return Ht && Ht.binding && Ht.binding("util");
|
|
3054
3054
|
} catch {
|
|
3055
3055
|
}
|
|
3056
|
-
})(),
|
|
3057
|
-
function
|
|
3056
|
+
})(), Ee = Vt && Vt.isTypedArray;
|
|
3057
|
+
function Ae(b, _) {
|
|
3058
3058
|
for (var j = -1, V = b == null ? 0 : b.length, dt = 0, Q = []; ++j < V; ) {
|
|
3059
3059
|
var gt = b[j];
|
|
3060
3060
|
_(gt, j, b) && (Q[dt++] = gt);
|
|
@@ -3105,13 +3105,13 @@ function _u() {
|
|
|
3105
3105
|
j[++_] = V;
|
|
3106
3106
|
}), j;
|
|
3107
3107
|
}
|
|
3108
|
-
var ln = Array.prototype,
|
|
3108
|
+
var ln = Array.prototype, je = Function.prototype, fe = Object.prototype, Xt = ft["__core-js_shared__"], xe = je.toString, T = fe.hasOwnProperty, H = (function() {
|
|
3109
3109
|
var b = /[^.]+$/.exec(Xt && Xt.keys && Xt.keys.IE_PROTO || "");
|
|
3110
3110
|
return b ? "Symbol(src)_1." + b : "";
|
|
3111
3111
|
})(), d = fe.toString, x = RegExp(
|
|
3112
|
-
"^" +
|
|
3113
|
-
), N = At ? ft.Buffer : void 0,
|
|
3114
|
-
function
|
|
3112
|
+
"^" + xe.call(T).replace(lt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3113
|
+
), N = At ? ft.Buffer : void 0, C = ft.Symbol, P = ft.Uint8Array, W = fe.propertyIsEnumerable, U = ln.splice, Z = C ? C.toStringTag : void 0, X = Object.getOwnPropertySymbols, at = N ? N.isBuffer : void 0, ut = cn(Object.keys, Object), xt = De(ft, "DataView"), kt = De(ft, "Map"), Zt = De(ft, "Promise"), fn = De(ft, "Set"), Rr = De(ft, "WeakMap"), dn = De(Object, "create"), xs = _e(xt), ws = _e(kt), Ss = _e(Zt), _s = _e(fn), Ts = _e(Rr), No = C ? C.prototype : void 0, Or = No ? No.valueOf : void 0;
|
|
3114
|
+
function we(b) {
|
|
3115
3115
|
var _ = -1, j = b == null ? 0 : b.length;
|
|
3116
3116
|
for (this.clear(); ++_ < j; ) {
|
|
3117
3117
|
var V = b[_];
|
|
@@ -3121,11 +3121,11 @@ function _u() {
|
|
|
3121
3121
|
function ks() {
|
|
3122
3122
|
this.__data__ = dn ? dn(null) : {}, this.size = 0;
|
|
3123
3123
|
}
|
|
3124
|
-
function
|
|
3124
|
+
function Cs(b) {
|
|
3125
3125
|
var _ = this.has(b) && delete this.__data__[b];
|
|
3126
3126
|
return this.size -= _ ? 1 : 0, _;
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function Rs(b) {
|
|
3129
3129
|
var _ = this.__data__;
|
|
3130
3130
|
if (dn) {
|
|
3131
3131
|
var j = _[b];
|
|
@@ -3141,7 +3141,7 @@ function _u() {
|
|
|
3141
3141
|
var j = this.__data__;
|
|
3142
3142
|
return this.size += this.has(b) ? 0 : 1, j[b] = dn && _ === void 0 ? r : _, this;
|
|
3143
3143
|
}
|
|
3144
|
-
|
|
3144
|
+
we.prototype.clear = ks, we.prototype.delete = Cs, we.prototype.get = Rs, we.prototype.has = Os, we.prototype.set = Ns;
|
|
3145
3145
|
function Yt(b) {
|
|
3146
3146
|
var _ = -1, j = b == null ? 0 : b.length;
|
|
3147
3147
|
for (this.clear(); ++_ < j; ) {
|
|
@@ -3163,15 +3163,15 @@ function _u() {
|
|
|
3163
3163
|
var _ = this.__data__, j = In(_, b);
|
|
3164
3164
|
return j < 0 ? void 0 : _[j][1];
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function Ds(b) {
|
|
3167
3167
|
return In(this.__data__, b) > -1;
|
|
3168
3168
|
}
|
|
3169
|
-
function
|
|
3169
|
+
function Ps(b, _) {
|
|
3170
3170
|
var j = this.__data__, V = In(j, b);
|
|
3171
3171
|
return V < 0 ? (++this.size, j.push([b, _])) : j[V][1] = _, this;
|
|
3172
3172
|
}
|
|
3173
|
-
Yt.prototype.clear = Is, Yt.prototype.delete = As, Yt.prototype.get = js, Yt.prototype.has =
|
|
3174
|
-
function
|
|
3173
|
+
Yt.prototype.clear = Is, Yt.prototype.delete = As, Yt.prototype.get = js, Yt.prototype.has = Ds, Yt.prototype.set = Ps;
|
|
3174
|
+
function Se(b) {
|
|
3175
3175
|
var _ = -1, j = b == null ? 0 : b.length;
|
|
3176
3176
|
for (this.clear(); ++_ < j; ) {
|
|
3177
3177
|
var V = b[_];
|
|
@@ -3180,9 +3180,9 @@ function _u() {
|
|
|
3180
3180
|
}
|
|
3181
3181
|
function Ls() {
|
|
3182
3182
|
this.size = 0, this.__data__ = {
|
|
3183
|
-
hash: new
|
|
3183
|
+
hash: new we(),
|
|
3184
3184
|
map: new (kt || Yt)(),
|
|
3185
|
-
string: new
|
|
3185
|
+
string: new we()
|
|
3186
3186
|
};
|
|
3187
3187
|
}
|
|
3188
3188
|
function Hs(b) {
|
|
@@ -3199,10 +3199,10 @@ function _u() {
|
|
|
3199
3199
|
var j = An(this, b), V = j.size;
|
|
3200
3200
|
return j.set(b, _), this.size += j.size == V ? 0 : 1, this;
|
|
3201
3201
|
}
|
|
3202
|
-
|
|
3202
|
+
Se.prototype.clear = Ls, Se.prototype.delete = Hs, Se.prototype.get = $s, Se.prototype.has = Ms, Se.prototype.set = Fs;
|
|
3203
3203
|
function Nn(b) {
|
|
3204
3204
|
var _ = -1, j = b == null ? 0 : b.length;
|
|
3205
|
-
for (this.__data__ = new
|
|
3205
|
+
for (this.__data__ = new Se(); ++_ < j; )
|
|
3206
3206
|
this.add(b[_]);
|
|
3207
3207
|
}
|
|
3208
3208
|
function Ws(b) {
|
|
@@ -3235,7 +3235,7 @@ function _u() {
|
|
|
3235
3235
|
var V = j.__data__;
|
|
3236
3236
|
if (!kt || V.length < n - 1)
|
|
3237
3237
|
return V.push([b, _]), this.size = ++j.size, this;
|
|
3238
|
-
j = this.__data__ = new
|
|
3238
|
+
j = this.__data__ = new Se(V);
|
|
3239
3239
|
}
|
|
3240
3240
|
return j.set(b, _), this.size = j.size, this;
|
|
3241
3241
|
}
|
|
@@ -3252,7 +3252,7 @@ function _u() {
|
|
|
3252
3252
|
}
|
|
3253
3253
|
function In(b, _) {
|
|
3254
3254
|
for (var j = b.length; j--; )
|
|
3255
|
-
if (
|
|
3255
|
+
if (Po(b[j][0], _))
|
|
3256
3256
|
return j;
|
|
3257
3257
|
return -1;
|
|
3258
3258
|
}
|
|
@@ -3272,28 +3272,28 @@ function _u() {
|
|
|
3272
3272
|
function Js(b, _, j, V, dt, Q) {
|
|
3273
3273
|
var gt = jn(b), wt = jn(_), _t = gt ? c : pe(b), vt = wt ? c : pe(_);
|
|
3274
3274
|
_t = _t == s ? y : _t, vt = vt == s ? y : vt;
|
|
3275
|
-
var
|
|
3276
|
-
if (
|
|
3275
|
+
var Dt = _t == y, Ut = vt == y, Ct = _t == vt;
|
|
3276
|
+
if (Ct && Nr(b)) {
|
|
3277
3277
|
if (!Nr(_))
|
|
3278
3278
|
return !1;
|
|
3279
|
-
gt = !0,
|
|
3279
|
+
gt = !0, Dt = !1;
|
|
3280
3280
|
}
|
|
3281
|
-
if (
|
|
3281
|
+
if (Ct && !Dt)
|
|
3282
3282
|
return Q || (Q = new de()), gt || Mo(b) ? jo(b, _, j, V, dt, Q) : tc(b, _, _t, j, V, dt, Q);
|
|
3283
3283
|
if (!(j & o)) {
|
|
3284
|
-
var $t =
|
|
3284
|
+
var $t = Dt && T.call(b, "__wrapped__"), Mt = Ut && T.call(_, "__wrapped__");
|
|
3285
3285
|
if ($t || Mt) {
|
|
3286
3286
|
var he = $t ? b.value() : b, te = Mt ? _.value() : _;
|
|
3287
3287
|
return Q || (Q = new de()), dt(he, te, j, V, Q);
|
|
3288
3288
|
}
|
|
3289
3289
|
}
|
|
3290
|
-
return
|
|
3290
|
+
return Ct ? (Q || (Q = new de()), ec(b, _, j, V, dt, Q)) : !1;
|
|
3291
3291
|
}
|
|
3292
3292
|
function Qs(b) {
|
|
3293
3293
|
if (!$o(b) || ac(b))
|
|
3294
3294
|
return !1;
|
|
3295
3295
|
var _ = Lo(b) ? x : bt;
|
|
3296
|
-
return _.test(
|
|
3296
|
+
return _.test(_e(b));
|
|
3297
3297
|
}
|
|
3298
3298
|
function Xs(b) {
|
|
3299
3299
|
return hn(b) && Ho(b.length) && !!F[pn(b)];
|
|
@@ -3313,31 +3313,31 @@ function _u() {
|
|
|
3313
3313
|
var vt = Q.get(b);
|
|
3314
3314
|
if (vt && Q.get(_))
|
|
3315
3315
|
return vt == _;
|
|
3316
|
-
var
|
|
3317
|
-
for (Q.set(b, _), Q.set(_, b); ++
|
|
3318
|
-
var $t = b[
|
|
3316
|
+
var Dt = -1, Ut = !0, Ct = j & i ? new Nn() : void 0;
|
|
3317
|
+
for (Q.set(b, _), Q.set(_, b); ++Dt < wt; ) {
|
|
3318
|
+
var $t = b[Dt], Mt = _[Dt];
|
|
3319
3319
|
if (V)
|
|
3320
|
-
var he = gt ? V(Mt, $t,
|
|
3320
|
+
var he = gt ? V(Mt, $t, Dt, _, b, Q) : V($t, Mt, Dt, b, _, Q);
|
|
3321
3321
|
if (he !== void 0) {
|
|
3322
3322
|
if (he)
|
|
3323
3323
|
continue;
|
|
3324
|
-
|
|
3324
|
+
Ut = !1;
|
|
3325
3325
|
break;
|
|
3326
3326
|
}
|
|
3327
|
-
if (
|
|
3328
|
-
if (!rn(_, function(te,
|
|
3329
|
-
if (!ue(
|
|
3330
|
-
return
|
|
3327
|
+
if (Ct) {
|
|
3328
|
+
if (!rn(_, function(te, Te) {
|
|
3329
|
+
if (!ue(Ct, Te) && ($t === te || dt($t, te, j, V, Q)))
|
|
3330
|
+
return Ct.push(Te);
|
|
3331
3331
|
})) {
|
|
3332
|
-
|
|
3332
|
+
Ut = !1;
|
|
3333
3333
|
break;
|
|
3334
3334
|
}
|
|
3335
3335
|
} else if (!($t === Mt || dt($t, Mt, j, V, Q))) {
|
|
3336
|
-
|
|
3336
|
+
Ut = !1;
|
|
3337
3337
|
break;
|
|
3338
3338
|
}
|
|
3339
3339
|
}
|
|
3340
|
-
return Q.delete(b), Q.delete(_),
|
|
3340
|
+
return Q.delete(b), Q.delete(_), Ut;
|
|
3341
3341
|
}
|
|
3342
3342
|
function tc(b, _, j, V, dt, Q, gt) {
|
|
3343
3343
|
switch (j) {
|
|
@@ -3346,11 +3346,11 @@ function _u() {
|
|
|
3346
3346
|
return !1;
|
|
3347
3347
|
b = b.buffer, _ = _.buffer;
|
|
3348
3348
|
case $:
|
|
3349
|
-
return !(b.byteLength != _.byteLength || !Q(new
|
|
3349
|
+
return !(b.byteLength != _.byteLength || !Q(new P(b), new P(_)));
|
|
3350
3350
|
case g:
|
|
3351
3351
|
case l:
|
|
3352
3352
|
case m:
|
|
3353
|
-
return
|
|
3353
|
+
return Po(+b, +_);
|
|
3354
3354
|
case u:
|
|
3355
3355
|
return b.name == _.name && b.message == _.message;
|
|
3356
3356
|
case S:
|
|
@@ -3366,21 +3366,21 @@ function _u() {
|
|
|
3366
3366
|
if (vt)
|
|
3367
3367
|
return vt == _;
|
|
3368
3368
|
V |= i, gt.set(b, _);
|
|
3369
|
-
var
|
|
3370
|
-
return gt.delete(b),
|
|
3371
|
-
case
|
|
3369
|
+
var Dt = jo(wt(b), wt(_), V, dt, Q, gt);
|
|
3370
|
+
return gt.delete(b), Dt;
|
|
3371
|
+
case R:
|
|
3372
3372
|
if (Or)
|
|
3373
3373
|
return Or.call(b) == Or.call(_);
|
|
3374
3374
|
}
|
|
3375
3375
|
return !1;
|
|
3376
3376
|
}
|
|
3377
3377
|
function ec(b, _, j, V, dt, Q) {
|
|
3378
|
-
var gt = j & o, wt =
|
|
3379
|
-
if (_t !=
|
|
3378
|
+
var gt = j & o, wt = Do(b), _t = wt.length, vt = Do(_), Dt = vt.length;
|
|
3379
|
+
if (_t != Dt && !gt)
|
|
3380
3380
|
return !1;
|
|
3381
|
-
for (var
|
|
3382
|
-
var
|
|
3383
|
-
if (!(gt ?
|
|
3381
|
+
for (var Ut = _t; Ut--; ) {
|
|
3382
|
+
var Ct = wt[Ut];
|
|
3383
|
+
if (!(gt ? Ct in _ : T.call(_, Ct)))
|
|
3384
3384
|
return !1;
|
|
3385
3385
|
}
|
|
3386
3386
|
var $t = Q.get(b);
|
|
@@ -3388,31 +3388,31 @@ function _u() {
|
|
|
3388
3388
|
return $t == _;
|
|
3389
3389
|
var Mt = !0;
|
|
3390
3390
|
Q.set(b, _), Q.set(_, b);
|
|
3391
|
-
for (var he = gt; ++
|
|
3392
|
-
|
|
3393
|
-
var te = b[
|
|
3391
|
+
for (var he = gt; ++Ut < _t; ) {
|
|
3392
|
+
Ct = wt[Ut];
|
|
3393
|
+
var te = b[Ct], Te = _[Ct];
|
|
3394
3394
|
if (V)
|
|
3395
|
-
var Fo = gt ? V(
|
|
3396
|
-
if (!(Fo === void 0 ? te ===
|
|
3395
|
+
var Fo = gt ? V(Te, te, Ct, _, b, Q) : V(te, Te, Ct, b, _, Q);
|
|
3396
|
+
if (!(Fo === void 0 ? te === Te || dt(te, Te, j, V, Q) : Fo)) {
|
|
3397
3397
|
Mt = !1;
|
|
3398
3398
|
break;
|
|
3399
3399
|
}
|
|
3400
|
-
he || (he =
|
|
3400
|
+
he || (he = Ct == "constructor");
|
|
3401
3401
|
}
|
|
3402
3402
|
if (Mt && !he) {
|
|
3403
|
-
var
|
|
3404
|
-
|
|
3403
|
+
var Dn = b.constructor, Pn = _.constructor;
|
|
3404
|
+
Dn != Pn && "constructor" in b && "constructor" in _ && !(typeof Dn == "function" && Dn instanceof Dn && typeof Pn == "function" && Pn instanceof Pn) && (Mt = !1);
|
|
3405
3405
|
}
|
|
3406
3406
|
return Q.delete(b), Q.delete(_), Mt;
|
|
3407
3407
|
}
|
|
3408
|
-
function
|
|
3408
|
+
function Do(b) {
|
|
3409
3409
|
return Gs(b, dc, rc);
|
|
3410
3410
|
}
|
|
3411
3411
|
function An(b, _) {
|
|
3412
3412
|
var j = b.__data__;
|
|
3413
3413
|
return ic(_) ? j[typeof _ == "string" ? "string" : "hash"] : j.map;
|
|
3414
3414
|
}
|
|
3415
|
-
function
|
|
3415
|
+
function De(b, _) {
|
|
3416
3416
|
var j = le(b, _);
|
|
3417
3417
|
return Qs(j) ? j : void 0;
|
|
3418
3418
|
}
|
|
@@ -3427,12 +3427,12 @@ function _u() {
|
|
|
3427
3427
|
return V && (_ ? b[Z] = j : delete b[Z]), dt;
|
|
3428
3428
|
}
|
|
3429
3429
|
var rc = X ? function(b) {
|
|
3430
|
-
return b == null ? [] : (b = Object(b),
|
|
3430
|
+
return b == null ? [] : (b = Object(b), Ae(X(b), function(_) {
|
|
3431
3431
|
return W.call(b, _);
|
|
3432
3432
|
}));
|
|
3433
3433
|
} : pc, pe = pn;
|
|
3434
|
-
(xt && pe(new xt(new ArrayBuffer(1))) != M || kt && pe(new kt()) != v || Zt && pe(Zt.resolve()) != w || fn && pe(new fn()) != I ||
|
|
3435
|
-
var _ = pn(b), j = _ == y ? b.constructor : void 0, V = j ?
|
|
3434
|
+
(xt && pe(new xt(new ArrayBuffer(1))) != M || kt && pe(new kt()) != v || Zt && pe(Zt.resolve()) != w || fn && pe(new fn()) != I || Rr && pe(new Rr()) != D) && (pe = function(b) {
|
|
3435
|
+
var _ = pn(b), j = _ == y ? b.constructor : void 0, V = j ? _e(j) : "";
|
|
3436
3436
|
if (V)
|
|
3437
3437
|
switch (V) {
|
|
3438
3438
|
case xs:
|
|
@@ -3444,7 +3444,7 @@ function _u() {
|
|
|
3444
3444
|
case _s:
|
|
3445
3445
|
return I;
|
|
3446
3446
|
case Ts:
|
|
3447
|
-
return
|
|
3447
|
+
return D;
|
|
3448
3448
|
}
|
|
3449
3449
|
return _;
|
|
3450
3450
|
});
|
|
@@ -3465,10 +3465,10 @@ function _u() {
|
|
|
3465
3465
|
function cc(b) {
|
|
3466
3466
|
return d.call(b);
|
|
3467
3467
|
}
|
|
3468
|
-
function
|
|
3468
|
+
function _e(b) {
|
|
3469
3469
|
if (b != null) {
|
|
3470
3470
|
try {
|
|
3471
|
-
return
|
|
3471
|
+
return xe.call(b);
|
|
3472
3472
|
} catch {
|
|
3473
3473
|
}
|
|
3474
3474
|
try {
|
|
@@ -3478,7 +3478,7 @@ function _u() {
|
|
|
3478
3478
|
}
|
|
3479
3479
|
return "";
|
|
3480
3480
|
}
|
|
3481
|
-
function
|
|
3481
|
+
function Po(b, _) {
|
|
3482
3482
|
return b === _ || b !== b && _ !== _;
|
|
3483
3483
|
}
|
|
3484
3484
|
var uc = Io(/* @__PURE__ */ (function() {
|
|
@@ -3509,7 +3509,7 @@ function _u() {
|
|
|
3509
3509
|
function hn(b) {
|
|
3510
3510
|
return b != null && typeof b == "object";
|
|
3511
3511
|
}
|
|
3512
|
-
var Mo =
|
|
3512
|
+
var Mo = Ee ? an(Ee) : Xs;
|
|
3513
3513
|
function dc(b) {
|
|
3514
3514
|
return lc(b) ? Zs(b) : Ys(b);
|
|
3515
3515
|
}
|
|
@@ -3523,10 +3523,10 @@ function _u() {
|
|
|
3523
3523
|
})(Jn, Jn.exports)), Jn.exports;
|
|
3524
3524
|
}
|
|
3525
3525
|
var Tu = _u();
|
|
3526
|
-
const bn = /* @__PURE__ */
|
|
3526
|
+
const bn = /* @__PURE__ */ Ne(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", ke = "STOP_EXPERIENCE", ye = {
|
|
3527
3527
|
NAVIGATION: "navigation",
|
|
3528
3528
|
DISMISSED: "dismissed"
|
|
3529
|
-
},
|
|
3529
|
+
}, Cu = "EXTENDED_EVENT", ga = "START_STEP", go = "STOP_STEP", ya = "UPDATE_STEP", ma = "SET_STEP_CONTAINER_TARGET", ba = "UPDATE_STEP_CONTENT", Ru = "RECOVER_STEP", Ou = "AUTO_RECOVER_STEP", Nu = "PARENT_RECOVER_STEP", Iu = "ERROR", Au = "STEP_INTERACTION", ju = "STEP_SEEN", Ea = "UPDATE_ROOT_STYLE", Du = "RELOAD", xa = "STEP_STOPPED", Pu = "EXPERIENCE_DISMISSED", Lu = "EXPERIENCE_SNOOZED", Hu = "FORWARD_TO_PARENT", wa = "TRANSITION_TO_END", $u = "ACTIONS_STARTED", Mu = "ACTIONS_FINISHED", Fu = "experience.begin", Wu = "experience.end", yo = "step.begin", Sa = "step.prerender", _a = "step.postrender", sr = "step.end", Ta = "step.error", ka = "step.container_change", Ca = "RUN_HOOKS", Vu = "RUN_HOOKS_DONE", mo = "START_THEME_REMOVAL_LISTENER", Ra = "STOP_THEME_REMOVAL_LISTENER", Uu = "GLOBAL_CONTAINER_REMOVED", bo = "STEP_CONTAINER_REMOVED", Sn = "appcues-experience-container", Er = "APPCUES-EXPERIENCE-CONTAINER", xr = "APPCUES-EXPERIENCE-CONTAINER-BUILDER", Oa = "data-appcues-container-id", Eo = "RUN_TRAITS_DONE", Na = "RUN_TRAITS_ERROR", zu = "BIND_ACTIONS_ERROR", Bu = () => {
|
|
3530
3530
|
const t = /* @__PURE__ */ new Map(), e = (r) => {
|
|
3531
3531
|
const { observerInstance: o } = t.get(r);
|
|
3532
3532
|
if (o) return;
|
|
@@ -3561,7 +3561,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3561
3561
|
callbacks: [...i, o]
|
|
3562
3562
|
}), e(r), () => n(r, o);
|
|
3563
3563
|
};
|
|
3564
|
-
},
|
|
3564
|
+
}, We = Bu(), qu = (t, ...e) => {
|
|
3565
3565
|
e.forEach(
|
|
3566
3566
|
(n) => t.addEventListener(n, (r) => {
|
|
3567
3567
|
r.stopPropagation();
|
|
@@ -3570,7 +3570,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3570
3570
|
}, Yo = "|shadow-root|", ti = "|iframe|", Je = (t, e) => t.includes(Yo) || t.includes(ti) ? t.split(Yo).flatMap((n) => n.split(ti)).reduce((n, r) => n === null ? [...e.querySelectorAll(r)] : n.flatMap((o) => o.shadowRoot ? [...o.shadowRoot.querySelectorAll(r)] : o.tagName === "IFRAME" ? [...o.contentDocument.querySelectorAll(r)] : []), null) ?? [] : e.querySelectorAll(t), Ku = (t, e) => {
|
|
3571
3571
|
const n = Je(t, e);
|
|
3572
3572
|
return n.length > 0 ? n[0] : null;
|
|
3573
|
-
},
|
|
3573
|
+
}, Ie = (t) => `appcues-container-${t}`, ei = (t, e, n) => {
|
|
3574
3574
|
try {
|
|
3575
3575
|
if (t.contentDocument && t.contentDocument.body && t.contentDocument.body.children.length > 0) {
|
|
3576
3576
|
if (n()) return;
|
|
@@ -3614,12 +3614,12 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3614
3614
|
u.some((h) => h.addedNodes.length > 0) && (Zu(u, (h) => {
|
|
3615
3615
|
ei(
|
|
3616
3616
|
h,
|
|
3617
|
-
(p) => o.push(
|
|
3617
|
+
(p) => o.push(We(p, s)),
|
|
3618
3618
|
a
|
|
3619
3619
|
);
|
|
3620
3620
|
}), a());
|
|
3621
3621
|
};
|
|
3622
|
-
o.push(
|
|
3622
|
+
o.push(We(r.body, s));
|
|
3623
3623
|
let c;
|
|
3624
3624
|
const f = r.createNodeIterator(
|
|
3625
3625
|
r.body,
|
|
@@ -3627,7 +3627,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3627
3627
|
(u) => u.shadowRoot && u.nodeName !== Er && u.nodeName !== xr ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT
|
|
3628
3628
|
);
|
|
3629
3629
|
for (; (c = f.nextNode()) !== null; )
|
|
3630
|
-
o.push(
|
|
3630
|
+
o.push(We(c.shadowRoot, s));
|
|
3631
3631
|
let g;
|
|
3632
3632
|
const l = r.createNodeIterator(
|
|
3633
3633
|
r.body,
|
|
@@ -3638,7 +3638,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3638
3638
|
ei(
|
|
3639
3639
|
g,
|
|
3640
3640
|
// eslint-disable-next-line no-loop-func
|
|
3641
|
-
(u) => o.push(
|
|
3641
|
+
(u) => o.push(We(u, s)),
|
|
3642
3642
|
a
|
|
3643
3643
|
);
|
|
3644
3644
|
return () => i();
|
|
@@ -3655,7 +3655,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3655
3655
|
const c = t(), f = o ? c[0] !== o : !1;
|
|
3656
3656
|
[o] = c, (c.length === 0 || f || !o.isConnected) && (e(), i());
|
|
3657
3657
|
};
|
|
3658
|
-
return i = o && o.getRootNode().nodeType === Node.DOCUMENT_FRAGMENT_NODE ?
|
|
3658
|
+
return i = o && o.getRootNode().nodeType === Node.DOCUMENT_FRAGMENT_NODE ? We(o.getRootNode(), a) : We(r.body, a), () => i();
|
|
3659
3659
|
}, Ju = (t) => {
|
|
3660
3660
|
let e = 0;
|
|
3661
3661
|
for (let n = 0; n < t.length && !(t[n].nodeName !== Er || t[n].nodeName !== xr); n++)
|
|
@@ -3682,7 +3682,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3682
3682
|
return [];
|
|
3683
3683
|
}
|
|
3684
3684
|
}, Ia = (t, { step: e, stepContainer: n, checkOutsideContainer: r, getWindowReference: o }) => {
|
|
3685
|
-
const i =
|
|
3685
|
+
const i = Ie(e.id);
|
|
3686
3686
|
let a = [];
|
|
3687
3687
|
if (r) {
|
|
3688
3688
|
const c = o().document, f = Qu(t, c), g = f.length > 0 ? f : Je(t, c.documentElement);
|
|
@@ -3702,7 +3702,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3702
3702
|
getWindowReference: r
|
|
3703
3703
|
}) => {
|
|
3704
3704
|
const o = r().document.createElement(Sn);
|
|
3705
|
-
return n && o.setAttribute("themeId", n), o.setAttribute("accountId", t), o.setAttribute("id",
|
|
3705
|
+
return n && o.setAttribute("themeId", n), o.setAttribute("accountId", t), o.setAttribute("id", Ie(e)), qu(o, "keypress", "keydown", "keyup"), o;
|
|
3706
3706
|
}, Xu = (t) => ({ experience: e }) => {
|
|
3707
3707
|
const { theme: n, themeSystem: r, accountId: o, id: i } = e;
|
|
3708
3708
|
if (!o) return;
|
|
@@ -3715,7 +3715,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3715
3715
|
});
|
|
3716
3716
|
s.body.append(c);
|
|
3717
3717
|
}, Yu = (t) => ({ experience: e }) => {
|
|
3718
|
-
const n = t("getWindowReference")().document, r =
|
|
3718
|
+
const n = t("getWindowReference")().document, r = Ie(e.id);
|
|
3719
3719
|
Je(
|
|
3720
3720
|
`#${r}`,
|
|
3721
3721
|
n.documentElement
|
|
@@ -3735,7 +3735,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3735
3735
|
]), nl = (t) => ({ experience: e }) => (n, r) => {
|
|
3736
3736
|
r(({ type: o }) => {
|
|
3737
3737
|
if (o !== mo) return;
|
|
3738
|
-
const i = t("getWindowReference"), a = i().document, s =
|
|
3738
|
+
const i = t("getWindowReference"), a = i().document, s = Ie(e.id);
|
|
3739
3739
|
xo({
|
|
3740
3740
|
getTarget: () => Je(
|
|
3741
3741
|
`#${s}`,
|
|
@@ -3752,7 +3752,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3752
3752
|
((n, r) => {
|
|
3753
3753
|
let o;
|
|
3754
3754
|
r(({ type: i }) => {
|
|
3755
|
-
if (i ===
|
|
3755
|
+
if (i === Ra && o) {
|
|
3756
3756
|
o();
|
|
3757
3757
|
return;
|
|
3758
3758
|
}
|
|
@@ -3767,7 +3767,7 @@ const bn = /* @__PURE__ */ Oe(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", Ve =
|
|
|
3767
3767
|
})
|
|
3768
3768
|
), ja = br(mo, {
|
|
3769
3769
|
to: "themeRemovalService"
|
|
3770
|
-
}), ol = br(
|
|
3770
|
+
}), ol = br(Ra, {
|
|
3771
3771
|
to: "themeRemovalService"
|
|
3772
3772
|
});
|
|
3773
3773
|
var ni = { exports: {} }, ri;
|
|
@@ -3780,10 +3780,10 @@ function il() {
|
|
|
3780
3780
|
function n(d, x, N) {
|
|
3781
3781
|
if (!d) throw Error();
|
|
3782
3782
|
if (2 < arguments.length) {
|
|
3783
|
-
var
|
|
3783
|
+
var C = Array.prototype.slice.call(arguments, 2);
|
|
3784
3784
|
return function() {
|
|
3785
|
-
var
|
|
3786
|
-
return Array.prototype.unshift.apply(
|
|
3785
|
+
var P = Array.prototype.slice.call(arguments);
|
|
3786
|
+
return Array.prototype.unshift.apply(P, C), d.apply(x, P);
|
|
3787
3787
|
};
|
|
3788
3788
|
}
|
|
3789
3789
|
return function() {
|
|
@@ -3800,9 +3800,9 @@ function il() {
|
|
|
3800
3800
|
this.a = d, this.o = x || d, this.c = this.o.document;
|
|
3801
3801
|
}
|
|
3802
3802
|
var a = !!window.FontFace;
|
|
3803
|
-
function s(d, x, N,
|
|
3804
|
-
if (x = d.c.createElement(x), N) for (var
|
|
3805
|
-
return
|
|
3803
|
+
function s(d, x, N, C) {
|
|
3804
|
+
if (x = d.c.createElement(x), N) for (var P in N) N.hasOwnProperty(P) && (P == "style" ? x.style.cssText = N[P] : x.setAttribute(P, N[P]));
|
|
3805
|
+
return C && x.appendChild(d.c.createTextNode(C)), x;
|
|
3806
3806
|
}
|
|
3807
3807
|
function c(d, x, N) {
|
|
3808
3808
|
d = d.c.getElementsByTagName(x)[0], d || (d = document.documentElement), d.insertBefore(N, d.lastChild);
|
|
@@ -3812,52 +3812,52 @@ function il() {
|
|
|
3812
3812
|
}
|
|
3813
3813
|
function g(d, x, N) {
|
|
3814
3814
|
x = x || [], N = N || [];
|
|
3815
|
-
for (var
|
|
3816
|
-
for (var W = !1, U = 0; U <
|
|
3815
|
+
for (var C = d.className.split(/\s+/), P = 0; P < x.length; P += 1) {
|
|
3816
|
+
for (var W = !1, U = 0; U < C.length; U += 1) if (x[P] === C[U]) {
|
|
3817
3817
|
W = !0;
|
|
3818
3818
|
break;
|
|
3819
3819
|
}
|
|
3820
|
-
W ||
|
|
3820
|
+
W || C.push(x[P]);
|
|
3821
3821
|
}
|
|
3822
|
-
for (x = [],
|
|
3823
|
-
for (W = !1, U = 0; U < N.length; U += 1) if (
|
|
3822
|
+
for (x = [], P = 0; P < C.length; P += 1) {
|
|
3823
|
+
for (W = !1, U = 0; U < N.length; U += 1) if (C[P] === N[U]) {
|
|
3824
3824
|
W = !0;
|
|
3825
3825
|
break;
|
|
3826
3826
|
}
|
|
3827
|
-
W || x.push(
|
|
3827
|
+
W || x.push(C[P]);
|
|
3828
3828
|
}
|
|
3829
3829
|
d.className = x.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "");
|
|
3830
3830
|
}
|
|
3831
3831
|
function l(d, x) {
|
|
3832
|
-
for (var N = d.className.split(/\s+/),
|
|
3832
|
+
for (var N = d.className.split(/\s+/), C = 0, P = N.length; C < P; C++) if (N[C] == x) return !0;
|
|
3833
3833
|
return !1;
|
|
3834
3834
|
}
|
|
3835
3835
|
function u(d) {
|
|
3836
3836
|
return d.o.location.hostname || d.a.location.hostname;
|
|
3837
3837
|
}
|
|
3838
3838
|
function h(d, x, N) {
|
|
3839
|
-
function
|
|
3840
|
-
Z &&
|
|
3839
|
+
function C() {
|
|
3840
|
+
Z && P && W && (Z(U), Z = null);
|
|
3841
3841
|
}
|
|
3842
3842
|
x = s(d, "link", { rel: "stylesheet", href: x, media: "all" });
|
|
3843
|
-
var
|
|
3843
|
+
var P = !1, W = !0, U = null, Z = N || null;
|
|
3844
3844
|
a ? (x.onload = function() {
|
|
3845
|
-
|
|
3845
|
+
P = !0, C();
|
|
3846
3846
|
}, x.onerror = function() {
|
|
3847
|
-
|
|
3847
|
+
P = !0, U = Error("Stylesheet failed to load"), C();
|
|
3848
3848
|
}) : setTimeout(function() {
|
|
3849
|
-
|
|
3849
|
+
P = !0, C();
|
|
3850
3850
|
}, 0), c(d, "head", x);
|
|
3851
3851
|
}
|
|
3852
|
-
function p(d, x, N,
|
|
3853
|
-
var
|
|
3854
|
-
if (
|
|
3852
|
+
function p(d, x, N, C) {
|
|
3853
|
+
var P = d.c.getElementsByTagName("head")[0];
|
|
3854
|
+
if (P) {
|
|
3855
3855
|
var W = s(d, "script", { src: x }), U = !1;
|
|
3856
3856
|
return W.onload = W.onreadystatechange = function() {
|
|
3857
|
-
U || this.readyState && this.readyState != "loaded" && this.readyState != "complete" || (U = !0, N && N(null), W.onload = W.onreadystatechange = null, W.parentNode.tagName == "HEAD" &&
|
|
3858
|
-
},
|
|
3857
|
+
U || this.readyState && this.readyState != "loaded" && this.readyState != "complete" || (U = !0, N && N(null), W.onload = W.onreadystatechange = null, W.parentNode.tagName == "HEAD" && P.removeChild(W));
|
|
3858
|
+
}, P.appendChild(W), setTimeout(function() {
|
|
3859
3859
|
U || (U = !0, N && N(Error("Script load timeout")));
|
|
3860
|
-
},
|
|
3860
|
+
}, C || 5e3), W;
|
|
3861
3861
|
}
|
|
3862
3862
|
return null;
|
|
3863
3863
|
}
|
|
@@ -3888,29 +3888,29 @@ function il() {
|
|
|
3888
3888
|
N && (this.a = N[1], this.f = parseInt(N[2], 10));
|
|
3889
3889
|
}
|
|
3890
3890
|
function S(d) {
|
|
3891
|
-
return
|
|
3891
|
+
return R(d) + " " + (d.f + "00") + " 300px " + I(d.c);
|
|
3892
3892
|
}
|
|
3893
3893
|
function I(d) {
|
|
3894
3894
|
var x = [];
|
|
3895
3895
|
d = d.split(/,\s*/);
|
|
3896
3896
|
for (var N = 0; N < d.length; N++) {
|
|
3897
|
-
var
|
|
3898
|
-
|
|
3897
|
+
var C = d[N].replace(/['"]/g, "");
|
|
3898
|
+
C.indexOf(" ") != -1 || /^\d/.test(C) ? x.push("'" + C + "'") : x.push(C);
|
|
3899
3899
|
}
|
|
3900
3900
|
return x.join(",");
|
|
3901
3901
|
}
|
|
3902
3902
|
function O(d) {
|
|
3903
3903
|
return d.a + d.f;
|
|
3904
3904
|
}
|
|
3905
|
-
function
|
|
3905
|
+
function R(d) {
|
|
3906
3906
|
var x = "normal";
|
|
3907
3907
|
return d.a === "o" ? x = "oblique" : d.a === "i" && (x = "italic"), x;
|
|
3908
3908
|
}
|
|
3909
3909
|
function A(d) {
|
|
3910
|
-
var x = 4, N = "n",
|
|
3911
|
-
return d && ((
|
|
3910
|
+
var x = 4, N = "n", C = null;
|
|
3911
|
+
return d && ((C = d.match(/(normal|oblique|italic)/i)) && C[1] && (N = C[1].substr(0, 1).toLowerCase()), (C = d.match(/([1-9]00|normal|bold)/i)) && C[1] && (/bold/i.test(C[1]) ? x = 7 : /[1-9]00/.test(C[1]) && (x = parseInt(C[1].substr(0, 1), 10)))), N + x;
|
|
3912
3912
|
}
|
|
3913
|
-
function
|
|
3913
|
+
function D(d, x) {
|
|
3914
3914
|
this.c = d, this.f = d.o.document.documentElement, this.h = x, this.a = new w("-"), this.j = x.events !== !1, this.g = x.classes !== !1;
|
|
3915
3915
|
}
|
|
3916
3916
|
function $(d) {
|
|
@@ -3918,8 +3918,8 @@ function il() {
|
|
|
3918
3918
|
}
|
|
3919
3919
|
function M(d) {
|
|
3920
3920
|
if (d.g) {
|
|
3921
|
-
var x = l(d.f, d.a.c("wf", "active")), N = [],
|
|
3922
|
-
x || N.push(d.a.c("wf", "inactive")), g(d.f, N,
|
|
3921
|
+
var x = l(d.f, d.a.c("wf", "active")), N = [], C = [d.a.c("wf", "loading")];
|
|
3922
|
+
x || N.push(d.a.c("wf", "inactive")), g(d.f, N, C);
|
|
3923
3923
|
}
|
|
3924
3924
|
z(d, "inactive");
|
|
3925
3925
|
}
|
|
@@ -3930,12 +3930,12 @@ function il() {
|
|
|
3930
3930
|
this.c = {};
|
|
3931
3931
|
}
|
|
3932
3932
|
function G(d, x, N) {
|
|
3933
|
-
var
|
|
3934
|
-
for (
|
|
3935
|
-
var W = d.c[
|
|
3936
|
-
W &&
|
|
3933
|
+
var C = [], P;
|
|
3934
|
+
for (P in x) if (x.hasOwnProperty(P)) {
|
|
3935
|
+
var W = d.c[P];
|
|
3936
|
+
W && C.push(W(x[P], N));
|
|
3937
3937
|
}
|
|
3938
|
-
return
|
|
3938
|
+
return C;
|
|
3939
3939
|
}
|
|
3940
3940
|
function et(d, x) {
|
|
3941
3941
|
this.c = d, this.f = x, this.a = s(this.c, "span", { "aria-hidden": "true" }, this.f);
|
|
@@ -3944,13 +3944,13 @@ function il() {
|
|
|
3944
3944
|
c(d.c, "body", d.a);
|
|
3945
3945
|
}
|
|
3946
3946
|
function B(d) {
|
|
3947
|
-
return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + I(d.c) + ";" + ("font-style:" +
|
|
3947
|
+
return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + I(d.c) + ";" + ("font-style:" + R(d) + ";font-weight:" + (d.f + "00") + ";");
|
|
3948
3948
|
}
|
|
3949
|
-
function q(d, x, N,
|
|
3950
|
-
this.g = d, this.j = x, this.a =
|
|
3949
|
+
function q(d, x, N, C, P, W) {
|
|
3950
|
+
this.g = d, this.j = x, this.a = C, this.c = N, this.f = P || 3e3, this.h = W || void 0;
|
|
3951
3951
|
}
|
|
3952
3952
|
q.prototype.start = function() {
|
|
3953
|
-
var d = this.c.o.document, x = this, N = o(),
|
|
3953
|
+
var d = this.c.o.document, x = this, N = o(), C = new Promise(function(U, Z) {
|
|
3954
3954
|
function X() {
|
|
3955
3955
|
o() - N >= x.f ? Z() : d.fonts.load(S(x.a), x.h).then(function(at) {
|
|
3956
3956
|
1 <= at.length ? U() : setTimeout(X, 25);
|
|
@@ -3959,17 +3959,17 @@ function il() {
|
|
|
3959
3959
|
});
|
|
3960
3960
|
}
|
|
3961
3961
|
X();
|
|
3962
|
-
}),
|
|
3963
|
-
|
|
3962
|
+
}), P = null, W = new Promise(function(U, Z) {
|
|
3963
|
+
P = setTimeout(Z, x.f);
|
|
3964
3964
|
});
|
|
3965
|
-
Promise.race([W,
|
|
3966
|
-
|
|
3965
|
+
Promise.race([W, C]).then(function() {
|
|
3966
|
+
P && (clearTimeout(P), P = null), x.g(x.a);
|
|
3967
3967
|
}, function() {
|
|
3968
3968
|
x.j(x.a);
|
|
3969
3969
|
});
|
|
3970
3970
|
};
|
|
3971
|
-
function pt(d, x, N,
|
|
3972
|
-
this.v = d, this.B = x, this.c = N, this.a =
|
|
3971
|
+
function pt(d, x, N, C, P, W, U) {
|
|
3972
|
+
this.v = d, this.B = x, this.c = N, this.a = C, this.s = U || "BESbswy", this.f = {}, this.w = P || 3e3, this.u = W || null, this.m = this.j = this.h = this.g = null, this.g = new et(this.c, this.s), this.h = new et(this.c, this.s), this.j = new et(this.c, this.s), this.m = new et(this.c, this.s), d = new k(this.a.c + ",serif", O(this.a)), d = B(d), this.g.a.style.cssText = d, d = new k(this.a.c + ",sans-serif", O(this.a)), d = B(d), this.h.a.style.cssText = d, d = new k("serif", O(this.a)), d = B(d), this.j.a.style.cssText = d, d = new k("sans-serif", O(this.a)), d = B(d), this.m.a.style.cssText = d, st(this.g), st(this.h), st(this.j), st(this.m);
|
|
3973
3973
|
}
|
|
3974
3974
|
var J = { D: "serif", C: "sans-serif" }, lt = null;
|
|
3975
3975
|
function bt() {
|
|
@@ -3983,12 +3983,12 @@ function il() {
|
|
|
3983
3983
|
this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = o(), F(this);
|
|
3984
3984
|
};
|
|
3985
3985
|
function K(d, x, N) {
|
|
3986
|
-
for (var
|
|
3986
|
+
for (var C in J) if (J.hasOwnProperty(C) && x === d.f[J[C]] && N === d.f[J[C]]) return !0;
|
|
3987
3987
|
return !1;
|
|
3988
3988
|
}
|
|
3989
3989
|
function F(d) {
|
|
3990
|
-
var x = d.g.a.offsetWidth, N = d.h.a.offsetWidth,
|
|
3991
|
-
(
|
|
3990
|
+
var x = d.g.a.offsetWidth, N = d.h.a.offsetWidth, C;
|
|
3991
|
+
(C = x === d.f.serif && N === d.f["sans-serif"]) || (C = bt() && K(d, x, N)), C ? o() - d.A >= d.w ? bt() && K(d, x, N) && (d.u === null || d.u.hasOwnProperty(d.a.c)) ? tt(d, d.v) : tt(d, d.B) : It(d) : tt(d, d.v);
|
|
3992
3992
|
}
|
|
3993
3993
|
function It(d) {
|
|
3994
3994
|
setTimeout(r(function() {
|
|
@@ -4010,8 +4010,8 @@ function il() {
|
|
|
4010
4010
|
}, ft.prototype.h = function(d) {
|
|
4011
4011
|
var x = this.a;
|
|
4012
4012
|
if (x.g) {
|
|
4013
|
-
var N = l(x.f, x.a.c("wf", d.c, O(d).toString(), "active")),
|
|
4014
|
-
N ||
|
|
4013
|
+
var N = l(x.f, x.a.c("wf", d.c, O(d).toString(), "active")), C = [], P = [x.a.c("wf", d.c, O(d).toString(), "loading")];
|
|
4014
|
+
N || C.push(x.a.c("wf", d.c, O(d).toString(), "inactive")), g(x.f, C, P);
|
|
4015
4015
|
}
|
|
4016
4016
|
z(x, "fontinactive", d), Lt(this);
|
|
4017
4017
|
};
|
|
@@ -4022,12 +4022,12 @@ function il() {
|
|
|
4022
4022
|
this.j = d, this.a = new Y(), this.h = 0, this.f = this.g = !0;
|
|
4023
4023
|
}
|
|
4024
4024
|
At.prototype.load = function(d) {
|
|
4025
|
-
this.c = new i(this.j, d.context || this.j), this.g = d.events !== !1, this.f = d.classes !== !1,
|
|
4025
|
+
this.c = new i(this.j, d.context || this.j), this.g = d.events !== !1, this.f = d.classes !== !1, Vt(this, new D(this.c, d), d);
|
|
4026
4026
|
};
|
|
4027
|
-
function Ht(d, x, N,
|
|
4027
|
+
function Ht(d, x, N, C, P) {
|
|
4028
4028
|
var W = --d.h == 0;
|
|
4029
4029
|
(d.f || d.g) && setTimeout(function() {
|
|
4030
|
-
var U =
|
|
4030
|
+
var U = P || null, Z = C || null || {};
|
|
4031
4031
|
if (N.length === 0 && W) M(x.a);
|
|
4032
4032
|
else {
|
|
4033
4033
|
x.f += N.length, W && (x.j = W);
|
|
@@ -4044,21 +4044,21 @@ function il() {
|
|
|
4044
4044
|
}
|
|
4045
4045
|
}, 0);
|
|
4046
4046
|
}
|
|
4047
|
-
function
|
|
4048
|
-
var
|
|
4047
|
+
function Vt(d, x, N) {
|
|
4048
|
+
var P = [], C = N.timeout;
|
|
4049
4049
|
$(x);
|
|
4050
|
-
var
|
|
4051
|
-
for (d.h =
|
|
4050
|
+
var P = G(d.a, N, d.c), W = new ft(d.c, x, C);
|
|
4051
|
+
for (d.h = P.length, x = 0, N = P.length; x < N; x++) P[x].load(function(U, Z, X) {
|
|
4052
4052
|
Ht(d, W, U, Z, X);
|
|
4053
4053
|
});
|
|
4054
4054
|
}
|
|
4055
|
-
function
|
|
4055
|
+
function Ee(d, x) {
|
|
4056
4056
|
this.c = d, this.a = x;
|
|
4057
4057
|
}
|
|
4058
|
-
|
|
4058
|
+
Ee.prototype.load = function(d) {
|
|
4059
4059
|
function x() {
|
|
4060
|
-
if (W["__mti_fntLst" +
|
|
4061
|
-
var U = W["__mti_fntLst" +
|
|
4060
|
+
if (W["__mti_fntLst" + C]) {
|
|
4061
|
+
var U = W["__mti_fntLst" + C](), Z = [], X;
|
|
4062
4062
|
if (U) for (var at = 0; at < U.length; at++) {
|
|
4063
4063
|
var ut = U[at].fontfamily;
|
|
4064
4064
|
U[at].fontStyle != null && U[at].fontWeight != null ? (X = U[at].fontStyle + U[at].fontWeight, Z.push(new k(ut, X))) : Z.push(new k(ut));
|
|
@@ -4068,25 +4068,25 @@ function il() {
|
|
|
4068
4068
|
x();
|
|
4069
4069
|
}, 50);
|
|
4070
4070
|
}
|
|
4071
|
-
var N = this,
|
|
4072
|
-
if (
|
|
4071
|
+
var N = this, C = N.a.projectId, P = N.a.version;
|
|
4072
|
+
if (C) {
|
|
4073
4073
|
var W = N.c.o;
|
|
4074
|
-
p(this.c, (N.a.api || "https://fast.fonts.net/jsapi") + "/" +
|
|
4075
|
-
U ? d([]) : (W["__MonotypeConfiguration__" +
|
|
4074
|
+
p(this.c, (N.a.api || "https://fast.fonts.net/jsapi") + "/" + C + ".js" + (P ? "?v=" + P : ""), function(U) {
|
|
4075
|
+
U ? d([]) : (W["__MonotypeConfiguration__" + C] = function() {
|
|
4076
4076
|
return N.a;
|
|
4077
4077
|
}, x());
|
|
4078
|
-
}).id = "__MonotypeAPIScript__" +
|
|
4078
|
+
}).id = "__MonotypeAPIScript__" + C;
|
|
4079
4079
|
} else d([]);
|
|
4080
4080
|
};
|
|
4081
|
-
function
|
|
4081
|
+
function Ae(d, x) {
|
|
4082
4082
|
this.c = d, this.a = x;
|
|
4083
4083
|
}
|
|
4084
|
-
|
|
4085
|
-
var x, N,
|
|
4086
|
-
for (x = 0, N =
|
|
4084
|
+
Ae.prototype.load = function(d) {
|
|
4085
|
+
var x, N, C = this.a.urls || [], P = this.a.families || [], W = this.a.testStrings || {}, U = new v();
|
|
4086
|
+
for (x = 0, N = C.length; x < N; x++) h(this.c, C[x], m(U));
|
|
4087
4087
|
var Z = [];
|
|
4088
|
-
for (x = 0, N =
|
|
4089
|
-
else Z.push(new k(
|
|
4088
|
+
for (x = 0, N = P.length; x < N; x++) if (C = P[x].split(":"), C[1]) for (var X = C[1].split(","), at = 0; at < X.length; at += 1) Z.push(new k(C[0], X[at]));
|
|
4089
|
+
else Z.push(new k(C[0]));
|
|
4090
4090
|
E(U, function() {
|
|
4091
4091
|
d(Z, W);
|
|
4092
4092
|
});
|
|
@@ -4096,17 +4096,17 @@ function il() {
|
|
|
4096
4096
|
}
|
|
4097
4097
|
var rn = "https://fonts.googleapis.com/css";
|
|
4098
4098
|
function on(d, x) {
|
|
4099
|
-
for (var N = x.length,
|
|
4100
|
-
var
|
|
4101
|
-
|
|
4099
|
+
for (var N = x.length, C = 0; C < N; C++) {
|
|
4100
|
+
var P = x[C].split(":");
|
|
4101
|
+
P.length == 3 && d.f.push(P.pop());
|
|
4102
4102
|
var W = "";
|
|
4103
|
-
|
|
4103
|
+
P.length == 2 && P[1] != "" && (W = ":"), d.a.push(P.join(W));
|
|
4104
4104
|
}
|
|
4105
4105
|
}
|
|
4106
4106
|
function an(d) {
|
|
4107
4107
|
if (d.a.length == 0) throw Error("No fonts to load!");
|
|
4108
4108
|
if (d.c.indexOf("kit=") != -1) return d.c;
|
|
4109
|
-
for (var x = d.a.length, N = [],
|
|
4109
|
+
for (var x = d.a.length, N = [], C = 0; C < x; C++) N.push(d.a[C].replace(/ /g, "+"));
|
|
4110
4110
|
return x = d.c + "?family=" + N.join("%7C"), 0 < d.f.length && (x += "&subset=" + d.f.join(",")), 0 < d.g.length && (x += "&text=" + encodeURIComponent(d.g)), x;
|
|
4111
4111
|
}
|
|
4112
4112
|
function ue(d) {
|
|
@@ -4115,9 +4115,9 @@ function il() {
|
|
|
4115
4115
|
var le = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ" }, sn = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7" }, cn = { i: "i", italic: "i", n: "n", normal: "n" }, un = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
|
|
4116
4116
|
function ln(d) {
|
|
4117
4117
|
for (var x = d.f.length, N = 0; N < x; N++) {
|
|
4118
|
-
var
|
|
4119
|
-
if (2 <=
|
|
4120
|
-
var U, Z =
|
|
4118
|
+
var C = d.f[N].split(":"), P = C[0].replace(/\+/g, " "), W = ["n4"];
|
|
4119
|
+
if (2 <= C.length) {
|
|
4120
|
+
var U, Z = C[1];
|
|
4121
4121
|
if (U = [], Z) for (var Z = Z.split(","), X = Z.length, at = 0; at < X; at++) {
|
|
4122
4122
|
var ut;
|
|
4123
4123
|
if (ut = Z[at], ut.match(/^[\w-]+$/)) {
|
|
@@ -4131,20 +4131,20 @@ function il() {
|
|
|
4131
4131
|
} else ut = "";
|
|
4132
4132
|
ut && U.push(ut);
|
|
4133
4133
|
}
|
|
4134
|
-
0 < U.length && (W = U),
|
|
4134
|
+
0 < U.length && (W = U), C.length == 3 && (C = C[2], U = [], C = C ? C.split(",") : U, 0 < C.length && (C = le[C[0]]) && (d.c[P] = C));
|
|
4135
4135
|
}
|
|
4136
|
-
for (d.c[
|
|
4136
|
+
for (d.c[P] || (C = le[P]) && (d.c[P] = C), C = 0; C < W.length; C += 1) d.a.push(new k(P, W[C]));
|
|
4137
4137
|
}
|
|
4138
4138
|
}
|
|
4139
|
-
function
|
|
4139
|
+
function je(d, x) {
|
|
4140
4140
|
this.c = d, this.a = x;
|
|
4141
4141
|
}
|
|
4142
4142
|
var fe = { Arimo: !0, Cousine: !0, Tinos: !0 };
|
|
4143
|
-
|
|
4144
|
-
var x = new v(), N = this.c,
|
|
4145
|
-
on(
|
|
4146
|
-
var W = new ue(
|
|
4147
|
-
ln(W), h(N, an(
|
|
4143
|
+
je.prototype.load = function(d) {
|
|
4144
|
+
var x = new v(), N = this.c, C = new ce(this.a.api, this.a.text), P = this.a.families;
|
|
4145
|
+
on(C, P);
|
|
4146
|
+
var W = new ue(P);
|
|
4147
|
+
ln(W), h(N, an(C), m(x)), E(x, function() {
|
|
4148
4148
|
d(W.a, W.c, fe);
|
|
4149
4149
|
});
|
|
4150
4150
|
};
|
|
@@ -4153,45 +4153,45 @@ function il() {
|
|
|
4153
4153
|
}
|
|
4154
4154
|
Xt.prototype.load = function(d) {
|
|
4155
4155
|
var x = this.a.id, N = this.c.o;
|
|
4156
|
-
x ? p(this.c, (this.a.api || "https://use.typekit.net") + "/" + x + ".js", function(
|
|
4157
|
-
if (
|
|
4156
|
+
x ? p(this.c, (this.a.api || "https://use.typekit.net") + "/" + x + ".js", function(C) {
|
|
4157
|
+
if (C) d([]);
|
|
4158
4158
|
else if (N.Typekit && N.Typekit.config && N.Typekit.config.fn) {
|
|
4159
|
-
|
|
4160
|
-
for (var
|
|
4159
|
+
C = N.Typekit.config.fn;
|
|
4160
|
+
for (var P = [], W = 0; W < C.length; W += 2) for (var U = C[W], Z = C[W + 1], X = 0; X < Z.length; X++) P.push(new k(U, Z[X]));
|
|
4161
4161
|
try {
|
|
4162
4162
|
N.Typekit.load({ events: !1, classes: !1, async: !0 });
|
|
4163
4163
|
} catch {
|
|
4164
4164
|
}
|
|
4165
|
-
d(
|
|
4165
|
+
d(P);
|
|
4166
4166
|
}
|
|
4167
4167
|
}, 2e3) : d([]);
|
|
4168
4168
|
};
|
|
4169
|
-
function
|
|
4169
|
+
function xe(d, x) {
|
|
4170
4170
|
this.c = d, this.f = x, this.a = [];
|
|
4171
4171
|
}
|
|
4172
|
-
|
|
4173
|
-
var x = this.f.id, N = this.c.o,
|
|
4174
|
-
x ? (N.__webfontfontdeckmodule__ || (N.__webfontfontdeckmodule__ = {}), N.__webfontfontdeckmodule__[x] = function(
|
|
4172
|
+
xe.prototype.load = function(d) {
|
|
4173
|
+
var x = this.f.id, N = this.c.o, C = this;
|
|
4174
|
+
x ? (N.__webfontfontdeckmodule__ || (N.__webfontfontdeckmodule__ = {}), N.__webfontfontdeckmodule__[x] = function(P, W) {
|
|
4175
4175
|
for (var U = 0, Z = W.fonts.length; U < Z; ++U) {
|
|
4176
4176
|
var X = W.fonts[U];
|
|
4177
|
-
|
|
4177
|
+
C.a.push(new k(X.name, A("font-weight:" + X.weight + ";font-style:" + X.style)));
|
|
4178
4178
|
}
|
|
4179
|
-
d(
|
|
4180
|
-
}, p(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + u(this.c) + "/" + x + ".js", function(
|
|
4181
|
-
|
|
4179
|
+
d(C.a);
|
|
4180
|
+
}, p(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + u(this.c) + "/" + x + ".js", function(P) {
|
|
4181
|
+
P && d([]);
|
|
4182
4182
|
})) : d([]);
|
|
4183
4183
|
};
|
|
4184
4184
|
var T = new At(window);
|
|
4185
4185
|
T.a.c.custom = function(d, x) {
|
|
4186
|
-
return new
|
|
4186
|
+
return new Ae(x, d);
|
|
4187
4187
|
}, T.a.c.fontdeck = function(d, x) {
|
|
4188
|
-
return new
|
|
4188
|
+
return new xe(x, d);
|
|
4189
4189
|
}, T.a.c.monotype = function(d, x) {
|
|
4190
|
-
return new
|
|
4190
|
+
return new Ee(x, d);
|
|
4191
4191
|
}, T.a.c.typekit = function(d, x) {
|
|
4192
4192
|
return new Xt(x, d);
|
|
4193
4193
|
}, T.a.c.google = function(d, x) {
|
|
4194
|
-
return new
|
|
4194
|
+
return new je(x, d);
|
|
4195
4195
|
};
|
|
4196
4196
|
var H = { load: r(T.load, T) };
|
|
4197
4197
|
t.exports ? t.exports = H : (window.WebFont = H, window.WebFontConfig && T.load(window.WebFontConfig));
|
|
@@ -4199,7 +4199,7 @@ function il() {
|
|
|
4199
4199
|
})(ni)), ni.exports;
|
|
4200
4200
|
}
|
|
4201
4201
|
var al = il();
|
|
4202
|
-
const sl = /* @__PURE__ */
|
|
4202
|
+
const sl = /* @__PURE__ */ Ne(al);
|
|
4203
4203
|
var Vn = { exports: {} }, oi;
|
|
4204
4204
|
function cl() {
|
|
4205
4205
|
if (oi) return Vn.exports;
|
|
@@ -4284,7 +4284,7 @@ function cl() {
|
|
|
4284
4284
|
}, Vn.exports;
|
|
4285
4285
|
}
|
|
4286
4286
|
var ul = cl();
|
|
4287
|
-
const ll = /* @__PURE__ */
|
|
4287
|
+
const ll = /* @__PURE__ */ Ne(ul), fl = window.AppcuesBundleSettings?.VERSION === "dev" ? "https://fast.appcues.com/v1" : window.AppcuesBundleSettings?.GENERIC_BUNDLE_DOMAIN ? `${window.AppcuesBundleSettings.GENERIC_BUNDLE_DOMAIN}/v1` : "https://fast.appcues.com/v1", dl = 9999;
|
|
4288
4288
|
let cr = {
|
|
4289
4289
|
fastBaseUrl: null,
|
|
4290
4290
|
// null means use default
|
|
@@ -4326,7 +4326,7 @@ const gl = ll(
|
|
|
4326
4326
|
if (!t) return;
|
|
4327
4327
|
const r = (n.ownerDocument || document).createElement("style");
|
|
4328
4328
|
r.innerHTML = `${t}`, e && r.classList.add(`theme-${e}`), n.shadowRoot.prepend(r);
|
|
4329
|
-
},
|
|
4329
|
+
}, Da = async (t) => {
|
|
4330
4330
|
const e = t.getAttribute("themeId"), n = t.getAttribute("accountId"), r = await gl(e, n).catch(() => {
|
|
4331
4331
|
}), { globalStyling: o, theme: i, typekitId: a } = r ?? {
|
|
4332
4332
|
globalStyling: "",
|
|
@@ -4335,7 +4335,7 @@ const gl = ll(
|
|
|
4335
4335
|
}, s = i?.json?.typekitId ?? a;
|
|
4336
4336
|
yl(s, i?.json), ai(i?.css, e, t), ai(o, e, t);
|
|
4337
4337
|
}, ml = async (t, e) => {
|
|
4338
|
-
await
|
|
4338
|
+
await Da(t), e && t.shadowRoot.querySelectorAll(
|
|
4339
4339
|
`.theme-${e}`
|
|
4340
4340
|
).forEach((n) => n.remove());
|
|
4341
4341
|
}, bl = mt({
|
|
@@ -4354,7 +4354,7 @@ const gl = ll(
|
|
|
4354
4354
|
...t,
|
|
4355
4355
|
...e.stepConfig
|
|
4356
4356
|
})
|
|
4357
|
-
}), wl =
|
|
4357
|
+
}), wl = Ft(ku), Sl = Ft(({ step: t }) => ({
|
|
4358
4358
|
type: xa,
|
|
4359
4359
|
id: t.id
|
|
4360
4360
|
})), _l = (t, { styles: e, getRoot: n }) => {
|
|
@@ -4366,7 +4366,7 @@ const gl = ll(
|
|
|
4366
4366
|
const { theme: n, themeSystem: r, id: o } = e.experience;
|
|
4367
4367
|
if (r || !n) return;
|
|
4368
4368
|
const i = t("getWindowReference")().document.documentElement.querySelector(
|
|
4369
|
-
`#${
|
|
4369
|
+
`#${Ie(o)}`
|
|
4370
4370
|
), a = i.getAttribute("themeId");
|
|
4371
4371
|
i?.setAttribute("themeId", n), ml(i, a);
|
|
4372
4372
|
}, kl = (t) => mt({
|
|
@@ -4383,7 +4383,7 @@ const gl = ll(
|
|
|
4383
4383
|
})
|
|
4384
4384
|
};
|
|
4385
4385
|
}
|
|
4386
|
-
}),
|
|
4386
|
+
}), Cl = sa([
|
|
4387
4387
|
{
|
|
4388
4388
|
cond: (t, e) => e.errorEvent?.type === bo,
|
|
4389
4389
|
actions: [
|
|
@@ -4393,14 +4393,14 @@ const gl = ll(
|
|
|
4393
4393
|
})
|
|
4394
4394
|
]
|
|
4395
4395
|
}
|
|
4396
|
-
]),
|
|
4396
|
+
]), Rl = mt({
|
|
4397
4397
|
actionsRunning: !0
|
|
4398
4398
|
}), Ol = mt({
|
|
4399
4399
|
actionsRunning: !1
|
|
4400
4400
|
}), Nl = (t, e) => {
|
|
4401
4401
|
const n = e.changedExperienceTraits && e.changedExperienceTraits.changedTraits.length > 0, r = e.changedExperienceTraits && (e.changedExperienceTraits.addedTraits.length > 0 || e.changedExperienceTraits.removedTraits.length > 0), o = e.changedStepTraits && e.changedStepTraits.changedTraits.length > 0, i = e.changedStepTraits && (e.changedStepTraits.addedTraits.length > 0 || e.changedStepTraits.removedTraits.length > 0);
|
|
4402
4402
|
return r || i ? !1 : !!(n || o);
|
|
4403
|
-
}, Il = "Key name should be string and callback a valid function",
|
|
4403
|
+
}, Il = "Key name should be string and callback a valid function", Pa = () => {
|
|
4404
4404
|
const t = /* @__PURE__ */ new Map(), e = (n) => t.get(n);
|
|
4405
4405
|
return {
|
|
4406
4406
|
getCallback: e,
|
|
@@ -4413,7 +4413,7 @@ const gl = ll(
|
|
|
4413
4413
|
}, La = ({ getTrait: t, trait: e, ...n }) => {
|
|
4414
4414
|
const r = t(e.type);
|
|
4415
4415
|
r && r(n, e.config ?? {});
|
|
4416
|
-
}, { getCallback: Ha, registerCallback: St } =
|
|
4416
|
+
}, { getCallback: Ha, registerCallback: St } = Pa();
|
|
4417
4417
|
let Al = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((e, n) => (n &= 63, n < 36 ? e += n.toString(36) : n < 62 ? e += (n - 26).toString(36).toUpperCase() : n > 62 ? e += "-" : e += "_", e), "");
|
|
4418
4418
|
const jl = ({
|
|
4419
4419
|
experience: t,
|
|
@@ -4456,13 +4456,13 @@ const jl = ({
|
|
|
4456
4456
|
},
|
|
4457
4457
|
recover: ({ errorId: l }) => {
|
|
4458
4458
|
g({
|
|
4459
|
-
type:
|
|
4459
|
+
type: Ru,
|
|
4460
4460
|
id: c.id,
|
|
4461
4461
|
errorId: l
|
|
4462
4462
|
});
|
|
4463
4463
|
},
|
|
4464
4464
|
dismissExperience: () => g({
|
|
4465
|
-
type:
|
|
4465
|
+
type: Pu
|
|
4466
4466
|
}),
|
|
4467
4467
|
snoozeExperience: () => g({
|
|
4468
4468
|
type: Lu
|
|
@@ -4479,7 +4479,7 @@ const jl = ({
|
|
|
4479
4479
|
interactionData: u
|
|
4480
4480
|
}),
|
|
4481
4481
|
extendedEvent: (l, u) => g({
|
|
4482
|
-
type:
|
|
4482
|
+
type: Cu,
|
|
4483
4483
|
id: c.id,
|
|
4484
4484
|
name: l,
|
|
4485
4485
|
...u
|
|
@@ -4532,7 +4532,7 @@ const jl = ({
|
|
|
4532
4532
|
onElementInserted: (u) => Gu({ ...u, getWindowReference: f }),
|
|
4533
4533
|
onElementRemoved: (u) => xo({ ...u, getWindowReference: f }),
|
|
4534
4534
|
...g,
|
|
4535
|
-
stopExperience: () => i(
|
|
4535
|
+
stopExperience: () => i(ke),
|
|
4536
4536
|
getExperienceId: () => t.id,
|
|
4537
4537
|
getWindowReference: f,
|
|
4538
4538
|
sendEvent: a("sendEvent"),
|
|
@@ -4558,20 +4558,20 @@ const jl = ({
|
|
|
4558
4558
|
},
|
|
4559
4559
|
...l
|
|
4560
4560
|
} : l;
|
|
4561
|
-
}, si = "formData.",
|
|
4561
|
+
}, si = "formData.", Dl = "a, button, video, input, textarea, select, form", Pl = (t, e) => {
|
|
4562
4562
|
if (e.startsWith(si)) {
|
|
4563
4563
|
const n = e.replace(si, "");
|
|
4564
4564
|
return new FormData(t.target).get(n);
|
|
4565
4565
|
}
|
|
4566
4566
|
return yu(t, e);
|
|
4567
|
-
}, { getCallback: En, registerCallback: ae } =
|
|
4567
|
+
}, { getCallback: En, registerCallback: ae } = Pa(), Ll = (t, e, n) => {
|
|
4568
4568
|
const r = {
|
|
4569
4569
|
target: e.target,
|
|
4570
4570
|
detail: e.detail
|
|
4571
4571
|
};
|
|
4572
4572
|
return Object.entries(t).reduce(
|
|
4573
4573
|
(o, [i, a]) => {
|
|
4574
|
-
const s =
|
|
4574
|
+
const s = Pl(r, i);
|
|
4575
4575
|
return s ? gu(o, a, s) : o;
|
|
4576
4576
|
},
|
|
4577
4577
|
n
|
|
@@ -4602,7 +4602,7 @@ const jl = ({
|
|
|
4602
4602
|
try {
|
|
4603
4603
|
p[y].forEach(([S, I, O]) => {
|
|
4604
4604
|
if (O && w) {
|
|
4605
|
-
const
|
|
4605
|
+
const R = {
|
|
4606
4606
|
...I,
|
|
4607
4607
|
...Ll(
|
|
4608
4608
|
O,
|
|
@@ -4610,7 +4610,7 @@ const jl = ({
|
|
|
4610
4610
|
I
|
|
4611
4611
|
)
|
|
4612
4612
|
};
|
|
4613
|
-
S(
|
|
4613
|
+
S(R, k);
|
|
4614
4614
|
} else
|
|
4615
4615
|
S(I, k);
|
|
4616
4616
|
});
|
|
@@ -4630,20 +4630,20 @@ const jl = ({
|
|
|
4630
4630
|
config: S,
|
|
4631
4631
|
allowedKeys: I,
|
|
4632
4632
|
mapEventToConfig: O,
|
|
4633
|
-
guardInteractiveChildren:
|
|
4633
|
+
guardInteractiveChildren: R
|
|
4634
4634
|
}) => {
|
|
4635
|
-
|
|
4635
|
+
R && (m[w] = !0);
|
|
4636
4636
|
const A = En(`${r.id}.${k}`) ?? En(`${o.id}.${k}`) ?? En(k);
|
|
4637
|
-
return p[w] || (p[w] = []), A && p[w].push([A, S, O]), w.startsWith("hooks/") ? y.hook[w.replace("hooks/", "")] = () => v(w) : y.on[w] = (
|
|
4638
|
-
if (!(I && !I.includes(
|
|
4637
|
+
return p[w] || (p[w] = []), A && p[w].push([A, S, O]), w.startsWith("hooks/") ? y.hook[w.replace("hooks/", "")] = () => v(w) : y.on[w] = (D) => {
|
|
4638
|
+
if (!(I && !I.includes(D.code))) {
|
|
4639
4639
|
if (m[w]) {
|
|
4640
|
-
const $ =
|
|
4641
|
-
|
|
4640
|
+
const $ = D.target.closest(
|
|
4641
|
+
Dl
|
|
4642
4642
|
);
|
|
4643
|
-
if ($ && $ !==
|
|
4643
|
+
if ($ && $ !== D.currentTarget)
|
|
4644
4644
|
return;
|
|
4645
4645
|
}
|
|
4646
|
-
|
|
4646
|
+
D.preventDefault(), D.stopPropagation(), v(w, D);
|
|
4647
4647
|
}
|
|
4648
4648
|
}, y;
|
|
4649
4649
|
},
|
|
@@ -4711,7 +4711,7 @@ function Wl(t, e, n) {
|
|
|
4711
4711
|
return document.createElementNS(t, e, n);
|
|
4712
4712
|
}
|
|
4713
4713
|
function Vl() {
|
|
4714
|
-
return
|
|
4714
|
+
return Ce(document.createDocumentFragment());
|
|
4715
4715
|
}
|
|
4716
4716
|
function Ul(t) {
|
|
4717
4717
|
return document.createTextNode(t);
|
|
@@ -4723,21 +4723,21 @@ function Bl(t, e, n) {
|
|
|
4723
4723
|
if (ne(t)) {
|
|
4724
4724
|
let r = t;
|
|
4725
4725
|
for (; r && ne(r); )
|
|
4726
|
-
r =
|
|
4726
|
+
r = Ce(r).parent;
|
|
4727
4727
|
t = r ?? t;
|
|
4728
4728
|
}
|
|
4729
|
-
ne(e) && (e =
|
|
4729
|
+
ne(e) && (e = Ce(e, t)), n && ne(n) && (n = Ce(n).firstChildNode), t.insertBefore(e, n);
|
|
4730
4730
|
}
|
|
4731
4731
|
function ql(t, e) {
|
|
4732
4732
|
t.removeChild(e);
|
|
4733
4733
|
}
|
|
4734
4734
|
function Kl(t, e) {
|
|
4735
|
-
ne(e) && (e =
|
|
4735
|
+
ne(e) && (e = Ce(e, t)), t.appendChild(e);
|
|
4736
4736
|
}
|
|
4737
4737
|
function Ma(t) {
|
|
4738
4738
|
if (ne(t)) {
|
|
4739
4739
|
for (; t && ne(t); )
|
|
4740
|
-
t =
|
|
4740
|
+
t = Ce(t).parent;
|
|
4741
4741
|
return t ?? null;
|
|
4742
4742
|
}
|
|
4743
4743
|
return t.parentNode;
|
|
@@ -4745,7 +4745,7 @@ function Ma(t) {
|
|
|
4745
4745
|
function Zl(t) {
|
|
4746
4746
|
var e;
|
|
4747
4747
|
if (ne(t)) {
|
|
4748
|
-
const n =
|
|
4748
|
+
const n = Ce(t), r = Ma(n);
|
|
4749
4749
|
if (r && n.lastChildNode) {
|
|
4750
4750
|
const o = Array.from(r.childNodes), i = o.indexOf(n.lastChildNode);
|
|
4751
4751
|
return (e = o[i + 1]) !== null && e !== void 0 ? e : null;
|
|
@@ -4775,7 +4775,7 @@ function tf(t) {
|
|
|
4775
4775
|
function ne(t) {
|
|
4776
4776
|
return t.nodeType === 11;
|
|
4777
4777
|
}
|
|
4778
|
-
function
|
|
4778
|
+
function Ce(t, e) {
|
|
4779
4779
|
var n, r, o;
|
|
4780
4780
|
const i = t;
|
|
4781
4781
|
return (n = i.parent) !== null && n !== void 0 || (i.parent = e ?? null), (r = i.firstChildNode) !== null && r !== void 0 || (i.firstChildNode = t.firstChild), (o = i.lastChildNode) !== null && o !== void 0 || (i.lastChildNode = t.lastChild), i;
|
|
@@ -4804,10 +4804,10 @@ function Nt(t, e, n, r, o) {
|
|
|
4804
4804
|
return { sel: t, data: e, children: n, text: r, elm: o, key: i };
|
|
4805
4805
|
}
|
|
4806
4806
|
const Qe = Array.isArray;
|
|
4807
|
-
function
|
|
4807
|
+
function Re(t) {
|
|
4808
4808
|
return typeof t == "string" || typeof t == "number" || t instanceof String || t instanceof Number;
|
|
4809
4809
|
}
|
|
4810
|
-
const
|
|
4810
|
+
const Pr = Nt("", {}, [], void 0, void 0);
|
|
4811
4811
|
function vn(t, e) {
|
|
4812
4812
|
var n, r;
|
|
4813
4813
|
const o = t.key === e.key, i = ((n = t.data) === null || n === void 0 ? void 0 : n.is) === ((r = e.data) === null || r === void 0 ? void 0 : r.is), a = t.sel === e.sel, s = !t.sel && t.sel === e.sel ? typeof t.text == typeof e.text : !0;
|
|
@@ -4873,27 +4873,27 @@ function Fa(t, e, n) {
|
|
|
4873
4873
|
let S;
|
|
4874
4874
|
const I = p.data, O = I?.hook;
|
|
4875
4875
|
(m = O?.init) === null || m === void 0 || m.call(O, p);
|
|
4876
|
-
const
|
|
4876
|
+
const R = p.children, A = p.sel;
|
|
4877
4877
|
if (A === "!")
|
|
4878
4878
|
(E = p.text) !== null && E !== void 0 || (p.text = ""), p.elm = o.createComment(p.text);
|
|
4879
4879
|
else if (A === "")
|
|
4880
4880
|
p.elm = o.createTextNode(p.text);
|
|
4881
4881
|
else if (A !== void 0) {
|
|
4882
|
-
const
|
|
4882
|
+
const D = A.indexOf("#"), $ = A.indexOf(".", D), M = D > 0 ? D : A.length, z = $ > 0 ? $ : A.length, Y = D !== -1 || $ !== -1 ? A.slice(0, Math.min(M, z)) : A, G = I?.ns, et = G === void 0 ? o.createElement(Y, I) : o.createElementNS(G, Y, I);
|
|
4883
4883
|
for (p.elm = et, M < z && et.setAttribute("id", A.slice(M + 1, z)), $ > 0 && et.setAttribute("class", A.slice(z + 1).replace(/\./g, " ")), S = 0; S < r.create.length; ++S)
|
|
4884
|
-
r.create[S](
|
|
4885
|
-
if (
|
|
4886
|
-
for (S = 0; S <
|
|
4887
|
-
const st =
|
|
4884
|
+
r.create[S](Pr, p);
|
|
4885
|
+
if (Re(p.text) && (!Qe(R) || R.length === 0) && o.appendChild(et, o.createTextNode(p.text)), Qe(R))
|
|
4886
|
+
for (S = 0; S < R.length; ++S) {
|
|
4887
|
+
const st = R[S];
|
|
4888
4888
|
st != null && o.appendChild(et, c(st, v));
|
|
4889
4889
|
}
|
|
4890
|
-
O !== void 0 && ((y = O.create) === null || y === void 0 || y.call(O,
|
|
4890
|
+
O !== void 0 && ((y = O.create) === null || y === void 0 || y.call(O, Pr, p), O.insert !== void 0 && v.push(p));
|
|
4891
4891
|
} else if (!((w = n?.experimental) === null || w === void 0) && w.fragments && p.children) {
|
|
4892
4892
|
for (p.elm = ((k = o.createDocumentFragment) !== null && k !== void 0 ? k : ef)(), S = 0; S < r.create.length; ++S)
|
|
4893
|
-
r.create[S](
|
|
4893
|
+
r.create[S](Pr, p);
|
|
4894
4894
|
for (S = 0; S < p.children.length; ++S) {
|
|
4895
|
-
const
|
|
4896
|
-
|
|
4895
|
+
const D = p.children[S];
|
|
4896
|
+
D != null && o.appendChild(p.elm, c(D, v));
|
|
4897
4897
|
}
|
|
4898
4898
|
} else
|
|
4899
4899
|
p.elm = o.createTextNode(p.text);
|
|
@@ -4927,24 +4927,24 @@ function Fa(t, e, n) {
|
|
|
4927
4927
|
if (S.sel !== void 0) {
|
|
4928
4928
|
g(S), k = r.remove.length + 1;
|
|
4929
4929
|
const I = s(S.elm, k);
|
|
4930
|
-
for (let
|
|
4931
|
-
r.remove[
|
|
4930
|
+
for (let R = 0; R < r.remove.length; ++R)
|
|
4931
|
+
r.remove[R](S, I);
|
|
4932
4932
|
const O = (w = (y = S?.data) === null || y === void 0 ? void 0 : y.hook) === null || w === void 0 ? void 0 : w.remove;
|
|
4933
4933
|
O !== void 0 ? O(S, I) : I();
|
|
4934
4934
|
} else S.children ? (g(S), l(p, S.children, 0, S.children.length - 1)) : o.removeChild(p, S.elm);
|
|
4935
4935
|
}
|
|
4936
4936
|
}
|
|
4937
4937
|
function u(p, v, m, E) {
|
|
4938
|
-
let y = 0, w = 0, k = v.length - 1, S = v[0], I = v[k], O = m.length - 1,
|
|
4938
|
+
let y = 0, w = 0, k = v.length - 1, S = v[0], I = v[k], O = m.length - 1, R = m[0], A = m[O], D, $, M, z;
|
|
4939
4939
|
for (; y <= k && w <= O; )
|
|
4940
|
-
S == null ? S = v[++y] : I == null ? I = v[--k] :
|
|
4940
|
+
S == null ? S = v[++y] : I == null ? I = v[--k] : R == null ? R = m[++w] : A == null ? A = m[--O] : vn(S, R) ? (h(S, R, E), S = v[++y], R = m[++w]) : vn(I, A) ? (h(I, A, E), I = v[--k], A = m[--O]) : vn(S, A) ? (h(S, A, E), o.insertBefore(p, S.elm, o.nextSibling(I.elm)), S = v[++y], A = m[--O]) : vn(I, R) ? (h(I, R, E), o.insertBefore(p, I.elm, S.elm), I = v[--k], R = m[++w]) : (D === void 0 && (D = of(v, y, k)), $ = D[R.key], $ === void 0 ? (o.insertBefore(p, c(R, E), S.elm), R = m[++w]) : D[A.key] === void 0 ? (o.insertBefore(p, c(A, E), o.nextSibling(I.elm)), A = m[--O]) : (M = v[$], M.sel !== R.sel ? o.insertBefore(p, c(R, E), S.elm) : (h(M, R, E), v[$] = void 0, o.insertBefore(p, M.elm, S.elm)), R = m[++w]));
|
|
4941
4941
|
w <= O && (z = m[O + 1] == null ? null : m[O + 1].elm, f(p, z, m, w, O, E)), y <= k && l(p, v, y, k);
|
|
4942
4942
|
}
|
|
4943
4943
|
function h(p, v, m) {
|
|
4944
|
-
var E, y, w, k, S, I, O,
|
|
4944
|
+
var E, y, w, k, S, I, O, R;
|
|
4945
4945
|
const A = (E = v.data) === null || E === void 0 ? void 0 : E.hook;
|
|
4946
4946
|
(y = A?.prepatch) === null || y === void 0 || y.call(A, p, v);
|
|
4947
|
-
const
|
|
4947
|
+
const D = v.elm = p.elm;
|
|
4948
4948
|
if (p === v)
|
|
4949
4949
|
return;
|
|
4950
4950
|
if (v.data !== void 0 || v.text !== void 0 && v.text !== p.text) {
|
|
@@ -4954,7 +4954,7 @@ function Fa(t, e, n) {
|
|
|
4954
4954
|
(O = (I = (S = v.data) === null || S === void 0 ? void 0 : S.hook) === null || I === void 0 ? void 0 : I.update) === null || O === void 0 || O.call(I, p, v);
|
|
4955
4955
|
}
|
|
4956
4956
|
const $ = p.children, M = v.children;
|
|
4957
|
-
v.text === void 0 ? $ !== void 0 && M !== void 0 ? $ !== M && u(
|
|
4957
|
+
v.text === void 0 ? $ !== void 0 && M !== void 0 ? $ !== M && u(D, $, M, m) : M !== void 0 ? (p.text !== void 0 && o.setTextContent(D, ""), f(D, null, M, 0, M.length - 1, m)) : $ !== void 0 ? l(D, $, 0, $.length - 1) : p.text !== void 0 && o.setTextContent(D, "") : p.text !== v.text && ($ !== void 0 && l(D, $, 0, $.length - 1), o.setTextContent(D, v.text)), (R = A?.postpatch) === null || R === void 0 || R.call(A, p, v);
|
|
4958
4958
|
}
|
|
4959
4959
|
return function(p, v) {
|
|
4960
4960
|
let m, E, y;
|
|
@@ -4980,16 +4980,16 @@ function wr(t, e, n) {
|
|
|
4980
4980
|
}
|
|
4981
4981
|
function ie(t, e, n) {
|
|
4982
4982
|
let r = {}, o, i, a;
|
|
4983
|
-
if (n !== void 0 ? (e !== null && (r = e), Qe(n) ? o = n :
|
|
4983
|
+
if (n !== void 0 ? (e !== null && (r = e), Qe(n) ? o = n : Re(n) ? i = n.toString() : n && n.sel && (o = [n])) : e != null && (Qe(e) ? o = e : Re(e) ? i = e.toString() : e && e.sel ? o = [e] : r = e), o !== void 0)
|
|
4984
4984
|
for (a = 0; a < o.length; ++a)
|
|
4985
|
-
|
|
4985
|
+
Re(o[a]) && (o[a] = Nt(void 0, void 0, void 0, o[a], void 0));
|
|
4986
4986
|
return t.startsWith("svg") && (t.length === 3 || t[3] === "." || t[3] === "#") && wr(r, o, t), Nt(t, r, o, i, void 0);
|
|
4987
4987
|
}
|
|
4988
4988
|
function io(t) {
|
|
4989
4989
|
let e, n;
|
|
4990
|
-
if (Qe(t) ? e = t :
|
|
4990
|
+
if (Qe(t) ? e = t : Re(e) ? n = t : e && e.sel && (e = [t]), e !== void 0)
|
|
4991
4991
|
for (let r = 0; r < e.length; ++r)
|
|
4992
|
-
|
|
4992
|
+
Re(e[r]) && (e[r] = Nt(void 0, void 0, void 0, e[r], void 0));
|
|
4993
4993
|
return Nt(void 0, {}, e, n, void 0);
|
|
4994
4994
|
}
|
|
4995
4995
|
function Qn(t, e) {
|
|
@@ -5195,7 +5195,7 @@ function kf(t) {
|
|
|
5195
5195
|
for (n in e)
|
|
5196
5196
|
r.style[n] = e[n];
|
|
5197
5197
|
}
|
|
5198
|
-
function
|
|
5198
|
+
function Cf(t, e) {
|
|
5199
5199
|
const n = t.data.style;
|
|
5200
5200
|
if (!n || !n.remove) {
|
|
5201
5201
|
e();
|
|
@@ -5217,15 +5217,15 @@ function Rf(t, e) {
|
|
|
5217
5217
|
g.target === o && --s, s === 0 && e();
|
|
5218
5218
|
});
|
|
5219
5219
|
}
|
|
5220
|
-
function
|
|
5220
|
+
function Rf() {
|
|
5221
5221
|
ao = !1;
|
|
5222
5222
|
}
|
|
5223
5223
|
const Ka = {
|
|
5224
|
-
pre:
|
|
5224
|
+
pre: Rf,
|
|
5225
5225
|
create: vi,
|
|
5226
5226
|
update: vi,
|
|
5227
5227
|
destroy: kf,
|
|
5228
|
-
remove:
|
|
5228
|
+
remove: Cf
|
|
5229
5229
|
};
|
|
5230
5230
|
function Of(t, ...e) {
|
|
5231
5231
|
const n = So(e, []);
|
|
@@ -5254,7 +5254,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5254
5254
|
htmlDomApi: wo,
|
|
5255
5255
|
init: Fa,
|
|
5256
5256
|
jsx: Nf,
|
|
5257
|
-
primitive:
|
|
5257
|
+
primitive: Re,
|
|
5258
5258
|
propsModule: qa,
|
|
5259
5259
|
styleModule: Ka,
|
|
5260
5260
|
thunk: uf,
|
|
@@ -5272,7 +5272,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5272
5272
|
}) => {
|
|
5273
5273
|
let i = null, a = null;
|
|
5274
5274
|
const s = () => {
|
|
5275
|
-
const l = o().document, u =
|
|
5275
|
+
const l = o().document, u = Ie(t.id);
|
|
5276
5276
|
return l.documentElement.querySelector(`#${u}`);
|
|
5277
5277
|
}, c = () => a ? a.shadowRoot : null, f = () => i ? i.shadowRoot : null, g = Af(
|
|
5278
5278
|
(l) => (f() !== null || c() !== null || (i = s()), l),
|
|
@@ -5306,7 +5306,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5306
5306
|
getRoot: () => a ?? s(),
|
|
5307
5307
|
hasCustomContainer: (l, u) => u.type === Ea && u.options?.forceUpdate || !!c()
|
|
5308
5308
|
};
|
|
5309
|
-
},
|
|
5309
|
+
}, Df = ({ container: t, nodes: e }, n = 0) => t.replace(/<% node %>/, e[n]), Pf = (t) => t.replaceAll("//twemoji.maxcdn.com/2/svg/", "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/"), Lf = (t) => t.split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" "), zt = ({ experience: t, experienceInstanceId: e }, n) => ({
|
|
5310
5310
|
experienceId: t.id,
|
|
5311
5311
|
experienceName: t.name,
|
|
5312
5312
|
experienceType: t.type,
|
|
@@ -5323,47 +5323,47 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5323
5323
|
stepType: t.type
|
|
5324
5324
|
}), Hf = (t, e) => !t.blockedEvents[e.type], Za = (t) => {
|
|
5325
5325
|
const e = (h) => {
|
|
5326
|
-
const p = "experience_started", v =
|
|
5326
|
+
const p = "experience_started", v = zt(h, p);
|
|
5327
5327
|
t("sendEvent")(p, v);
|
|
5328
5328
|
}, n = (h) => {
|
|
5329
|
-
const p = "experience_completed", v =
|
|
5329
|
+
const p = "experience_completed", v = zt(h, p);
|
|
5330
5330
|
t("sendEvent")(p, v);
|
|
5331
5331
|
}, r = (h, { message: p }) => {
|
|
5332
|
-
const v = "experience_error", m =
|
|
5332
|
+
const v = "experience_error", m = zt(h, v);
|
|
5333
5333
|
t("sendEvent")(v, { ...m, message: p });
|
|
5334
5334
|
}, o = (h) => {
|
|
5335
|
-
const p = "experience_dismissed", v =
|
|
5335
|
+
const p = "experience_dismissed", v = zt(h, p), m = ve(h);
|
|
5336
5336
|
t("sendEvent")(p, {
|
|
5337
5337
|
...v,
|
|
5338
5338
|
...m
|
|
5339
5339
|
});
|
|
5340
5340
|
}, i = (h) => {
|
|
5341
|
-
const p = "experience_snoozed", v =
|
|
5341
|
+
const p = "experience_snoozed", v = zt(h, p), m = ve(h);
|
|
5342
5342
|
t("sendEvent")(p, {
|
|
5343
5343
|
...v,
|
|
5344
5344
|
...m
|
|
5345
5345
|
});
|
|
5346
5346
|
}, a = (h) => {
|
|
5347
|
-
const p = "step_seen", v =
|
|
5347
|
+
const p = "step_seen", v = zt(h, p), m = ve(h);
|
|
5348
5348
|
t("sendEvent")(p, {
|
|
5349
5349
|
...v,
|
|
5350
5350
|
...m
|
|
5351
5351
|
});
|
|
5352
5352
|
}, s = (h) => {
|
|
5353
|
-
const p = "step_completed", v =
|
|
5353
|
+
const p = "step_completed", v = zt(h, p), m = ve(h);
|
|
5354
5354
|
t("sendEvent")(p, {
|
|
5355
5355
|
...v,
|
|
5356
5356
|
...m
|
|
5357
5357
|
});
|
|
5358
5358
|
}, c = (h, p) => {
|
|
5359
|
-
const v =
|
|
5359
|
+
const v = zt(h, p.name), m = ve(h), E = t("sendEvent"), { name: y, ...w } = p;
|
|
5360
5360
|
E(y, {
|
|
5361
5361
|
...v,
|
|
5362
5362
|
...m,
|
|
5363
5363
|
...w
|
|
5364
5364
|
});
|
|
5365
5365
|
}, f = (h, { interactionType: p, interactionData: v }) => {
|
|
5366
|
-
const m = "step_interaction", E =
|
|
5366
|
+
const m = "step_interaction", E = zt(h, m), y = ve(h);
|
|
5367
5367
|
t("sendEvent")(m, {
|
|
5368
5368
|
...E,
|
|
5369
5369
|
...y,
|
|
@@ -5371,7 +5371,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5371
5371
|
interactionData: v
|
|
5372
5372
|
});
|
|
5373
5373
|
}, g = (h, { message: p, errorId: v }) => {
|
|
5374
|
-
const m = "step_error", E =
|
|
5374
|
+
const m = "step_error", E = zt(h, m), y = ve(h);
|
|
5375
5375
|
t("sendEvent")(m, {
|
|
5376
5376
|
...E,
|
|
5377
5377
|
...y,
|
|
@@ -5379,7 +5379,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5379
5379
|
errorId: v
|
|
5380
5380
|
});
|
|
5381
5381
|
}, l = (h, { errorId: p }) => {
|
|
5382
|
-
const v = "step_recovered", m =
|
|
5382
|
+
const v = "step_recovered", m = zt(h, v), E = ve(h);
|
|
5383
5383
|
t("sendEvent")(v, {
|
|
5384
5384
|
...m,
|
|
5385
5385
|
...E,
|
|
@@ -5439,7 +5439,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5439
5439
|
{
|
|
5440
5440
|
target: "done",
|
|
5441
5441
|
cond: (t) => t.runHooksDone,
|
|
5442
|
-
actions: [
|
|
5442
|
+
actions: [Ft("RERENDER")]
|
|
5443
5443
|
}
|
|
5444
5444
|
],
|
|
5445
5445
|
on: {
|
|
@@ -5451,7 +5451,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5451
5451
|
mt({
|
|
5452
5452
|
runHooksDone: !0
|
|
5453
5453
|
}),
|
|
5454
|
-
|
|
5454
|
+
Ft("RERENDER")
|
|
5455
5455
|
]
|
|
5456
5456
|
}
|
|
5457
5457
|
}
|
|
@@ -5461,7 +5461,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5461
5461
|
{
|
|
5462
5462
|
target: "done",
|
|
5463
5463
|
cond: (t) => t.runHooksDone,
|
|
5464
|
-
actions: [
|
|
5464
|
+
actions: [Ft("FORCE_ERROR")]
|
|
5465
5465
|
}
|
|
5466
5466
|
],
|
|
5467
5467
|
on: {
|
|
@@ -5473,7 +5473,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5473
5473
|
mt({
|
|
5474
5474
|
runHooksDone: !0
|
|
5475
5475
|
}),
|
|
5476
|
-
|
|
5476
|
+
Ft("FORCE_ERROR")
|
|
5477
5477
|
]
|
|
5478
5478
|
}
|
|
5479
5479
|
}
|
|
@@ -5504,7 +5504,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5504
5504
|
{
|
|
5505
5505
|
target: "done",
|
|
5506
5506
|
cond: (t) => t.runHooksDone,
|
|
5507
|
-
actions: [
|
|
5507
|
+
actions: [Ft("FORCE_RECOVER")]
|
|
5508
5508
|
}
|
|
5509
5509
|
],
|
|
5510
5510
|
on: {
|
|
@@ -5514,7 +5514,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5514
5514
|
mt({
|
|
5515
5515
|
runHooksDone: !0
|
|
5516
5516
|
}),
|
|
5517
|
-
|
|
5517
|
+
Ft("FORCE_RECOVER")
|
|
5518
5518
|
]
|
|
5519
5519
|
}
|
|
5520
5520
|
}
|
|
@@ -5574,12 +5574,15 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5574
5574
|
target: "",
|
|
5575
5575
|
actions: [
|
|
5576
5576
|
"experienceDismissed",
|
|
5577
|
-
|
|
5577
|
+
Ft({ type: ke, reason: ye.DISMISSED })
|
|
5578
5578
|
]
|
|
5579
5579
|
},
|
|
5580
5580
|
EXPERIENCE_SNOOZED: {
|
|
5581
5581
|
target: "",
|
|
5582
|
-
actions: [
|
|
5582
|
+
actions: [
|
|
5583
|
+
"experienceSnoozed",
|
|
5584
|
+
Ft({ type: ke, reason: ye.DISMISSED })
|
|
5585
|
+
]
|
|
5583
5586
|
},
|
|
5584
5587
|
STEP_SEEN: {
|
|
5585
5588
|
target: "",
|
|
@@ -5617,13 +5620,13 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5617
5620
|
cond: "didContentChanged"
|
|
5618
5621
|
}
|
|
5619
5622
|
],
|
|
5620
|
-
[
|
|
5621
|
-
actions: [
|
|
5623
|
+
[ke]: {
|
|
5624
|
+
actions: [Ft(ke)]
|
|
5622
5625
|
},
|
|
5623
5626
|
FORWARD_TO_PARENT: [
|
|
5624
5627
|
{
|
|
5625
5628
|
actions: [
|
|
5626
|
-
|
|
5629
|
+
Ft((t, { eventType: e, ...n }) => ({
|
|
5627
5630
|
...n,
|
|
5628
5631
|
type: e
|
|
5629
5632
|
}))
|
|
@@ -5707,7 +5710,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5707
5710
|
// because traits can register actions.
|
|
5708
5711
|
// so the action service will only do something after receiving
|
|
5709
5712
|
// the confirmation that the traits are done with its execution.
|
|
5710
|
-
actions:
|
|
5713
|
+
actions: $e("actionsService")
|
|
5711
5714
|
},
|
|
5712
5715
|
RUN_TRAITS_ERROR: "destroyed"
|
|
5713
5716
|
}
|
|
@@ -5777,18 +5780,18 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5777
5780
|
RERENDER: "pre-render",
|
|
5778
5781
|
UPDATE_STEP: {
|
|
5779
5782
|
target: "",
|
|
5780
|
-
actions: [
|
|
5783
|
+
actions: [$e("postRenderAsyncEventsHandler")]
|
|
5781
5784
|
},
|
|
5782
5785
|
ERROR: {
|
|
5783
5786
|
target: "",
|
|
5784
|
-
actions: [
|
|
5787
|
+
actions: [$e("postRenderAsyncEventsHandler"), "stepError"]
|
|
5785
5788
|
},
|
|
5786
5789
|
RUN_HOOKS_DONE: {
|
|
5787
5790
|
target: "",
|
|
5788
5791
|
cond: "isHooksDoneEventPostRenderType",
|
|
5789
5792
|
actions: [
|
|
5790
5793
|
"notifyExperienceStarted",
|
|
5791
|
-
|
|
5794
|
+
$e("postRenderAsyncEventsHandler")
|
|
5792
5795
|
]
|
|
5793
5796
|
}
|
|
5794
5797
|
}
|
|
@@ -5844,11 +5847,11 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5844
5847
|
RUN_HOOKS_DONE: {
|
|
5845
5848
|
target: "",
|
|
5846
5849
|
cond: "isHooksDoneEventErrorType",
|
|
5847
|
-
actions: [
|
|
5850
|
+
actions: [$e("errorAsyncEventsHandler"), "autoRecover"]
|
|
5848
5851
|
},
|
|
5849
5852
|
RECOVER_STEP: {
|
|
5850
5853
|
target: "",
|
|
5851
|
-
actions: [
|
|
5854
|
+
actions: [$e("errorAsyncEventsHandler")]
|
|
5852
5855
|
},
|
|
5853
5856
|
FORCE_RECOVER: {
|
|
5854
5857
|
target: "begin",
|
|
@@ -5888,7 +5891,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5888
5891
|
resetRender: S,
|
|
5889
5892
|
getContainer: I,
|
|
5890
5893
|
hasCustomContainer: O,
|
|
5891
|
-
getRoot:
|
|
5894
|
+
getRoot: R
|
|
5892
5895
|
} = jf({
|
|
5893
5896
|
experience: r,
|
|
5894
5897
|
onRender: m,
|
|
@@ -5897,7 +5900,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5897
5900
|
getWindowReference: v
|
|
5898
5901
|
}), {
|
|
5899
5902
|
addHook: A,
|
|
5900
|
-
runStepBeginHooks:
|
|
5903
|
+
runStepBeginHooks: D,
|
|
5901
5904
|
runStepPreRenderHooks: $,
|
|
5902
5905
|
runStepPostRenderHooks: M,
|
|
5903
5906
|
runStepEndHooks: z,
|
|
@@ -5919,13 +5922,13 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5919
5922
|
{
|
|
5920
5923
|
overrideStyle: p,
|
|
5921
5924
|
getContainer: I,
|
|
5922
|
-
getRoot:
|
|
5925
|
+
getRoot: R
|
|
5923
5926
|
},
|
|
5924
5927
|
o
|
|
5925
5928
|
), pt = rl({
|
|
5926
|
-
getRoot:
|
|
5929
|
+
getRoot: R,
|
|
5927
5930
|
getWindowReference: v
|
|
5928
|
-
}), J = Tl(o), lt = Za(o), bt = (K) => K.contentType === "text/html" ? a(Df(
|
|
5931
|
+
}), J = Tl(o), lt = Za(o), bt = (K) => K.contentType === "text/html" ? a(Pf(Df(K.content))) : s(K.content);
|
|
5929
5932
|
return mr(
|
|
5930
5933
|
{
|
|
5931
5934
|
...Ff,
|
|
@@ -5964,7 +5967,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5964
5967
|
updateTheme: J,
|
|
5965
5968
|
resetRender: S,
|
|
5966
5969
|
// injecting action coming from hooks
|
|
5967
|
-
runStepBeginHooks:
|
|
5970
|
+
runStepBeginHooks: D,
|
|
5968
5971
|
runStepPreRenderHooks: $,
|
|
5969
5972
|
runStepPostRenderHooks: M,
|
|
5970
5973
|
runStepEndHooks: z,
|
|
@@ -5981,7 +5984,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5981
5984
|
// injecting actions coming from dom
|
|
5982
5985
|
startThemeRemovalListener: ja,
|
|
5983
5986
|
stopThemeRemovalListener: ol,
|
|
5984
|
-
removeCustomContainer: el({ getRoot:
|
|
5987
|
+
removeCustomContainer: el({ getRoot: R }),
|
|
5985
5988
|
ensuresElementsAreAccessible: kl(
|
|
5986
5989
|
g
|
|
5987
5990
|
),
|
|
@@ -5990,8 +5993,8 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5990
5993
|
// core events
|
|
5991
5994
|
...lt.stepActions,
|
|
5992
5995
|
blockEvent: lt.helpers.blockEvent,
|
|
5993
|
-
autoRecover:
|
|
5994
|
-
setActionsRunning:
|
|
5996
|
+
autoRecover: Cl,
|
|
5997
|
+
setActionsRunning: Rl,
|
|
5995
5998
|
setActionsFinished: Ol,
|
|
5996
5999
|
// stop reason handling
|
|
5997
6000
|
saveStopReason: mt({
|
|
@@ -6034,7 +6037,8 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6034
6037
|
isHooksDoneEventErrorType: (K, F) => F.hookType === Ta,
|
|
6035
6038
|
isHooksDoneEventEndType: (K, F) => F.hookType === sr,
|
|
6036
6039
|
hasPendingActions: (K) => K.actionsRunning,
|
|
6037
|
-
shouldFireStepCompletedEvent: (K, F) => F.hookType === sr &&
|
|
6040
|
+
shouldFireStepCompletedEvent: (K, F) => F.hookType === sr && // Require that the step has been seen, otherwise it cannot be completed
|
|
6041
|
+
K.blockedEvents.STEP_SEEN && K.stopReason !== ye.NAVIGATION && K.stopReason !== ye.DISMISSED
|
|
6038
6042
|
}
|
|
6039
6043
|
}
|
|
6040
6044
|
);
|
|
@@ -6078,20 +6082,20 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6078
6082
|
)
|
|
6079
6083
|
} : o;
|
|
6080
6084
|
}
|
|
6081
|
-
}),
|
|
6085
|
+
}), Rn = (t) => (e, { id: n, ...r }) => {
|
|
6082
6086
|
e.stepMachines[n]?.send({
|
|
6083
6087
|
...r,
|
|
6084
6088
|
type: t
|
|
6085
6089
|
});
|
|
6086
|
-
}, Uf =
|
|
6090
|
+
}, Uf = Rn(ga), zf = (t, e) => {
|
|
6087
6091
|
const n = t.stepMachines[e.id];
|
|
6088
6092
|
n && (n.state.done && e.onStopped ? e.onStopped() : n.send({
|
|
6089
6093
|
...e,
|
|
6090
6094
|
type: go
|
|
6091
6095
|
}));
|
|
6092
|
-
}, Bf =
|
|
6096
|
+
}, Bf = Rn(ya), qf = Rn(
|
|
6093
6097
|
ma
|
|
6094
|
-
), Kf =
|
|
6098
|
+
), Kf = Rn(Nu), Zf = Rn(ba), Gf = (t, e) => {
|
|
6095
6099
|
Object.values(t.stepMachines).forEach((n) => {
|
|
6096
6100
|
n.send({
|
|
6097
6101
|
type: go,
|
|
@@ -6134,7 +6138,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6134
6138
|
a.traits
|
|
6135
6139
|
);
|
|
6136
6140
|
o.send({
|
|
6137
|
-
type:
|
|
6141
|
+
type: Du,
|
|
6138
6142
|
stepConfig: a,
|
|
6139
6143
|
experience: e.experience,
|
|
6140
6144
|
changedExperienceTraits: n,
|
|
@@ -6188,7 +6192,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6188
6192
|
i.get(n) || i.set(n, []);
|
|
6189
6193
|
const a = i.get(n);
|
|
6190
6194
|
e(n, [...a, { callback: r, traitId: o }]);
|
|
6191
|
-
},
|
|
6195
|
+
}, be = (t, e) => br(
|
|
6192
6196
|
(n, r) => {
|
|
6193
6197
|
let o = e;
|
|
6194
6198
|
return r.changedExperienceTraits && (o = {
|
|
@@ -6198,7 +6202,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6198
6202
|
...o,
|
|
6199
6203
|
onlyStepTraits: r.changedStepTraits.changedTraits.filter((i) => i.id != null).map(({ id: i }) => i)
|
|
6200
6204
|
}), {
|
|
6201
|
-
type:
|
|
6205
|
+
type: Ca,
|
|
6202
6206
|
hookType: t,
|
|
6203
6207
|
experience: n.experience,
|
|
6204
6208
|
step: n.step,
|
|
@@ -6206,14 +6210,14 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6206
6210
|
};
|
|
6207
6211
|
},
|
|
6208
6212
|
{ to: "hooksService" }
|
|
6209
|
-
), nd =
|
|
6210
|
-
(t, e) =>
|
|
6211
|
-
), ud =
|
|
6213
|
+
), nd = be(Fu), rd = be(Wu), od = be(yo), id = be(Sa), ad = be(_a), sd = be(sr), cd = Vc(
|
|
6214
|
+
(t, e) => be(Ta, { errorEvent: e })
|
|
6215
|
+
), ud = be(ka), ld = () => {
|
|
6212
6216
|
const t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map(), n = (o = {}, i) => () => (
|
|
6213
6217
|
// eslint-disable-next-line unicorn/consistent-function-scoping
|
|
6214
6218
|
((a, s) => {
|
|
6215
6219
|
s(async ({ type: c, hookType: f, experience: g, step: l, ...u }) => {
|
|
6216
|
-
if (c !==
|
|
6220
|
+
if (c !== Ca) return;
|
|
6217
6221
|
let h = {
|
|
6218
6222
|
experience: g,
|
|
6219
6223
|
step: l,
|
|
@@ -6495,7 +6499,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6495
6499
|
(m) => m.state.done
|
|
6496
6500
|
),
|
|
6497
6501
|
doesStepInstanceExist: (v, m) => v.stepMachines?.[m.id] !== void 0,
|
|
6498
|
-
shouldFireCompletedEvent: (v, m) => m.reason !==
|
|
6502
|
+
shouldFireCompletedEvent: (v, m) => m.reason !== ye.NAVIGATION && m.reason !== ye.DISMISSED
|
|
6499
6503
|
}
|
|
6500
6504
|
}
|
|
6501
6505
|
);
|
|
@@ -6599,12 +6603,12 @@ function yd() {
|
|
|
6599
6603
|
}, $r;
|
|
6600
6604
|
}
|
|
6601
6605
|
const Qa = /* @__PURE__ */ lu(If);
|
|
6602
|
-
var
|
|
6606
|
+
var Me = {}, Si;
|
|
6603
6607
|
function md() {
|
|
6604
|
-
if (Si) return
|
|
6605
|
-
Si = 1, Object.defineProperty(
|
|
6608
|
+
if (Si) return Me;
|
|
6609
|
+
Si = 1, Object.defineProperty(Me, "__esModule", {
|
|
6606
6610
|
value: !0
|
|
6607
|
-
}),
|
|
6611
|
+
}), Me.createTextVNode = e, Me.transformName = n, Me.unescapeEntities = i;
|
|
6608
6612
|
var t = Qa;
|
|
6609
6613
|
function e(a, s) {
|
|
6610
6614
|
return (0, t.vnode)(void 0, void 0, void 0, i(a, s));
|
|
@@ -6622,7 +6626,7 @@ function md() {
|
|
|
6622
6626
|
return o.innerHTML = c, o.textContent;
|
|
6623
6627
|
});
|
|
6624
6628
|
}
|
|
6625
|
-
return
|
|
6629
|
+
return Me;
|
|
6626
6630
|
}
|
|
6627
6631
|
var _i;
|
|
6628
6632
|
function bd() {
|
|
@@ -6702,7 +6706,7 @@ function Ed() {
|
|
|
6702
6706
|
return ki || (ki = 1, Ti = bd()), Ti;
|
|
6703
6707
|
}
|
|
6704
6708
|
var xd = Ed();
|
|
6705
|
-
const wd = /* @__PURE__ */
|
|
6709
|
+
const wd = /* @__PURE__ */ Ne(xd), Xa = "data-interaction-style", Sd = (t) => t.replace(/([A-Z])/g, (e) => `-${e[0].toLowerCase()}`), Ya = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/'/g, "'").replace(/"/g, '"'), ts = ({ nodeId: t, interactionId: e, state: n }) => {
|
|
6706
6710
|
const r = e ? `[${Xa}="${e}"]` : `#${t}`;
|
|
6707
6711
|
return Object.keys(n).map((o) => `${r}:${o} {
|
|
6708
6712
|
${Object.entries(n[o]).map(([i, a]) => {
|
|
@@ -6752,7 +6756,7 @@ const wd = /* @__PURE__ */ Oe(xd), Xa = "data-interaction-style", Sd = (t) => t.
|
|
|
6752
6756
|
)
|
|
6753
6757
|
};
|
|
6754
6758
|
}, _d = ({ step: t }) => {
|
|
6755
|
-
const e =
|
|
6759
|
+
const e = Ie(t.id), n = ie(
|
|
6756
6760
|
"div",
|
|
6757
6761
|
{
|
|
6758
6762
|
attrs: {
|
|
@@ -6789,7 +6793,7 @@ const wd = /* @__PURE__ */ Oe(xd), Xa = "data-interaction-style", Sd = (t) => t.
|
|
|
6789
6793
|
traverseTree: _o,
|
|
6790
6794
|
virtualizeContent: wd,
|
|
6791
6795
|
wrapContent: _d
|
|
6792
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6796
|
+
}, Symbol.toStringTag, { value: "Module" })), Ci = (t, e) => e.includes(t.data?.attrs?.id) && typeof t.data?.attrs?.tabindex != "string" && typeof t.data?.attrs?.tabIndex != "number", Cd = (t) => {
|
|
6793
6797
|
t.data.attrs.tabindex = 0, t.sel = "button", t.data.style = {
|
|
6794
6798
|
...t.data.style,
|
|
6795
6799
|
border: t.data?.style?.border ?? "none",
|
|
@@ -6797,8 +6801,8 @@ const wd = /* @__PURE__ */ Oe(xd), Xa = "data-interaction-style", Sd = (t) => t.
|
|
|
6797
6801
|
backgroundColor: t.data?.style?.backgroundColor ?? "transparent"
|
|
6798
6802
|
}
|
|
6799
6803
|
};
|
|
6800
|
-
},
|
|
6801
|
-
|
|
6804
|
+
}, Rd = ({ virtualizedContent: t, index: e }, { interactiveEls: n = [], focusableEls: r = [] }) => (_o(t, (o) => {
|
|
6805
|
+
Ci(o, n) ? Cd(o) : Ci(o, r) && (o.data.attrs = {
|
|
6802
6806
|
...o.data.attrs,
|
|
6803
6807
|
tabindex: 0,
|
|
6804
6808
|
role: "dialog",
|
|
@@ -6810,10 +6814,10 @@ const wd = /* @__PURE__ */ Oe(xd), Xa = "data-interaction-style", Sd = (t) => t.
|
|
|
6810
6814
|
});
|
|
6811
6815
|
}), t), Od = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6812
6816
|
__proto__: null,
|
|
6813
|
-
makeElementsAccessible:
|
|
6814
|
-
}, Symbol.toStringTag, { value: "Module" })), Nd = "@appcues/close",
|
|
6817
|
+
makeElementsAccessible: Rd
|
|
6818
|
+
}, Symbol.toStringTag, { value: "Module" })), Nd = "@appcues/close", Ri = {
|
|
6815
6819
|
markComplete: !0
|
|
6816
|
-
}, Id = ({ markComplete: t =
|
|
6820
|
+
}, Id = ({ markComplete: t = Ri.markComplete } = Ri, { stopExperience: e, step: n }) => {
|
|
6817
6821
|
t ? e() : n.dismissExperience();
|
|
6818
6822
|
};
|
|
6819
6823
|
ae(Nd, Id);
|
|
@@ -6827,7 +6831,7 @@ function jd(t, e) {
|
|
|
6827
6831
|
return e;
|
|
6828
6832
|
}
|
|
6829
6833
|
}
|
|
6830
|
-
const
|
|
6834
|
+
const Dd = ({ url: t = "", openInNewWindow: e = !1 } = {}, { reportError: n, getWindowReference: r }) => {
|
|
6831
6835
|
if (!t) {
|
|
6832
6836
|
n("Can't redirect to undefined URL");
|
|
6833
6837
|
return;
|
|
@@ -6835,11 +6839,11 @@ const Pd = ({ url: t = "", openInNewWindow: e = !1 } = {}, { reportError: n, get
|
|
|
6835
6839
|
const o = r(), i = jd(o, t);
|
|
6836
6840
|
o.open(i, e ? "_blank" : "_self", "noopener");
|
|
6837
6841
|
};
|
|
6838
|
-
ae(Ad,
|
|
6839
|
-
const
|
|
6842
|
+
ae(Ad, Dd);
|
|
6843
|
+
const Pd = "@appcues/trackEvent", Ld = ({ name: t, properties: e = {} }, { sendCustomEvent: n }) => {
|
|
6840
6844
|
n(t, e);
|
|
6841
6845
|
};
|
|
6842
|
-
ae(
|
|
6846
|
+
ae(Pd, Ld);
|
|
6843
6847
|
const Hd = "@appcues/triggerFlow", $d = ({ flowId: t, url: e, prefetch: n = !1 } = {}, { showFlow: r }) => {
|
|
6844
6848
|
r({ flowId: t, url: e, prefetch: n });
|
|
6845
6849
|
};
|
|
@@ -6866,7 +6870,7 @@ const Bd = "@appcues/toggleActions", qd = ({ actions: t = [], target: e } = {},
|
|
|
6866
6870
|
};
|
|
6867
6871
|
ae(Bd, qd);
|
|
6868
6872
|
const Kd = /([\.\*\+\^\$\[\]\\\(\)\|\{\}\,\-\:\?])/g, Oi = /^([a-zA-Z]{2,3}|[a-zA-Z]{5,8})(-[a-zA-Z]{4})?(-(?:[a-zA-Z]{2}|\d{3}))?(-(?:[a-zA-Z\d]{5,8}|\d[a-zA-Z\d]{3}))?$/;
|
|
6869
|
-
class
|
|
6873
|
+
class Oe {
|
|
6870
6874
|
// eslint-disable-line consistent-this
|
|
6871
6875
|
/**
|
|
6872
6876
|
* @param {string} locale
|
|
@@ -6956,9 +6960,9 @@ class Re {
|
|
|
6956
6960
|
_isRtlLang() {
|
|
6957
6961
|
const { lang: e, script: n } = (
|
|
6958
6962
|
/** @type {LocaleInfo} */
|
|
6959
|
-
|
|
6963
|
+
Oe._parseLocale(this._locale)
|
|
6960
6964
|
);
|
|
6961
|
-
return n ?
|
|
6965
|
+
return n ? Oe._RTL_SCRIPTS.indexOf(n) >= 0 : Oe._BIDI_RTL_LANGS.indexOf(e) >= 0;
|
|
6962
6966
|
}
|
|
6963
6967
|
// Public functions - star
|
|
6964
6968
|
get textInfo() {
|
|
@@ -6966,7 +6970,7 @@ class Re {
|
|
|
6966
6970
|
}
|
|
6967
6971
|
// Public functions - End
|
|
6968
6972
|
}
|
|
6969
|
-
|
|
6973
|
+
Oe._RTL_SCRIPTS = [
|
|
6970
6974
|
"adlm",
|
|
6971
6975
|
"arab",
|
|
6972
6976
|
"armi",
|
|
@@ -7003,7 +7007,7 @@ Re._RTL_SCRIPTS = [
|
|
|
7003
7007
|
"thaa",
|
|
7004
7008
|
"yezi"
|
|
7005
7009
|
];
|
|
7006
|
-
|
|
7010
|
+
Oe._BIDI_RTL_LANGS = [
|
|
7007
7011
|
// Const BIDI_RTL_LANGS Array
|
|
7008
7012
|
// BIDI_RTL_LANGS ref: http://en.wikipedia.org/wiki/Right-to-left
|
|
7009
7013
|
// Table of scripts in Unicode: https://en.wikipedia.org/wiki/Script_(Unicode)
|
|
@@ -7237,7 +7241,7 @@ Re._BIDI_RTL_LANGS = [
|
|
|
7237
7241
|
const Zd = "@appcues/content-direction";
|
|
7238
7242
|
function Gd(t) {
|
|
7239
7243
|
try {
|
|
7240
|
-
return new
|
|
7244
|
+
return new Oe(t).textInfo;
|
|
7241
7245
|
} catch {
|
|
7242
7246
|
return { direction: "ltr" };
|
|
7243
7247
|
}
|
|
@@ -7338,7 +7342,7 @@ function lr(t) {
|
|
|
7338
7342
|
y: n
|
|
7339
7343
|
};
|
|
7340
7344
|
}
|
|
7341
|
-
function
|
|
7345
|
+
function Di(t, e, n) {
|
|
7342
7346
|
let {
|
|
7343
7347
|
reference: r,
|
|
7344
7348
|
floating: o
|
|
@@ -7400,7 +7404,7 @@ const rp = async (t, e, n) => {
|
|
|
7400
7404
|
}), {
|
|
7401
7405
|
x: g,
|
|
7402
7406
|
y: l
|
|
7403
|
-
} =
|
|
7407
|
+
} = Di(f, r, c), u = r, h = {}, p = 0;
|
|
7404
7408
|
for (let v = 0; v < s.length; v++) {
|
|
7405
7409
|
const {
|
|
7406
7410
|
name: m,
|
|
@@ -7437,7 +7441,7 @@ const rp = async (t, e, n) => {
|
|
|
7437
7441
|
}) : S.rects), {
|
|
7438
7442
|
x: g,
|
|
7439
7443
|
y: l
|
|
7440
|
-
} =
|
|
7444
|
+
} = Di(f, u, c)), v = -1);
|
|
7441
7445
|
}
|
|
7442
7446
|
return {
|
|
7443
7447
|
x: g,
|
|
@@ -7516,7 +7520,7 @@ const op = (t) => ({
|
|
|
7516
7520
|
}, h = ko(o), p = To(h), v = await a.getDimensions(f), m = h === "y", E = m ? "top" : "left", y = m ? "bottom" : "right", w = m ? "clientHeight" : "clientWidth", k = i.reference[p] + i.reference[h] - u[h] - i.floating[p], S = u[h] - i.reference[h], I = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(f));
|
|
7517
7521
|
let O = I ? I[w] : 0;
|
|
7518
7522
|
(!O || !await (a.isElement == null ? void 0 : a.isElement(I))) && (O = s.floating[w] || i.floating[p]);
|
|
7519
|
-
const
|
|
7523
|
+
const R = k / 2 - S / 2, A = O / 2 - v[p] / 2 - 1, D = Tn(l[E], A), $ = Tn(l[y], A), M = D, z = O - v[p] - $, Y = O / 2 - v[p] / 2 + R, G = so(M, Y, z), et = !c.arrow && re(o) != null && Y !== G && i.reference[p] / 2 - (Y < M ? D : $) - v[p] / 2 < 0, st = et ? Y < M ? Y - M : Y - z : 0;
|
|
7520
7524
|
return {
|
|
7521
7525
|
[h]: u[h] + st,
|
|
7522
7526
|
data: {
|
|
@@ -7576,33 +7580,33 @@ const ap = function(t) {
|
|
|
7576
7580
|
}
|
|
7577
7581
|
};
|
|
7578
7582
|
const O = S.map((A) => {
|
|
7579
|
-
const
|
|
7580
|
-
return [A.placement,
|
|
7583
|
+
const D = re(A.placement);
|
|
7584
|
+
return [A.placement, D && g ? (
|
|
7581
7585
|
// Check along the mainAxis and main crossAxis side.
|
|
7582
7586
|
A.overflows.slice(0, 2).reduce(($, M) => $ + M, 0)
|
|
7583
7587
|
) : (
|
|
7584
7588
|
// Check only the mainAxis.
|
|
7585
7589
|
A.overflows[0]
|
|
7586
7590
|
), A.overflows];
|
|
7587
|
-
}).sort((A,
|
|
7591
|
+
}).sort((A, D) => A[1] - D[1]), R = ((o = O.filter((A) => A[2].slice(
|
|
7588
7592
|
0,
|
|
7589
7593
|
// Aligned placements should not check their opposite crossAxis
|
|
7590
7594
|
// side.
|
|
7591
7595
|
re(A[0]) ? 2 : 3
|
|
7592
|
-
).every((
|
|
7593
|
-
return
|
|
7596
|
+
).every((D) => D <= 0))[0]) == null ? void 0 : o[0]) || O[0][0];
|
|
7597
|
+
return R !== s ? {
|
|
7594
7598
|
data: {
|
|
7595
7599
|
index: E + 1,
|
|
7596
7600
|
overflows: S
|
|
7597
7601
|
},
|
|
7598
7602
|
reset: {
|
|
7599
|
-
placement:
|
|
7603
|
+
placement: R
|
|
7600
7604
|
}
|
|
7601
7605
|
} : {};
|
|
7602
7606
|
}
|
|
7603
7607
|
};
|
|
7604
7608
|
};
|
|
7605
|
-
function
|
|
7609
|
+
function Pi(t, e) {
|
|
7606
7610
|
return {
|
|
7607
7611
|
top: t.top - e.height,
|
|
7608
7612
|
right: t.right - e.width,
|
|
@@ -7629,7 +7633,7 @@ const sp = function(t) {
|
|
|
7629
7633
|
const i = await fr(e, {
|
|
7630
7634
|
...o,
|
|
7631
7635
|
elementContext: "reference"
|
|
7632
|
-
}), a =
|
|
7636
|
+
}), a = Pi(i, n.reference);
|
|
7633
7637
|
return {
|
|
7634
7638
|
data: {
|
|
7635
7639
|
referenceHiddenOffsets: a,
|
|
@@ -7641,7 +7645,7 @@ const sp = function(t) {
|
|
|
7641
7645
|
const i = await fr(e, {
|
|
7642
7646
|
...o,
|
|
7643
7647
|
altBoundary: !0
|
|
7644
|
-
}), a =
|
|
7648
|
+
}), a = Pi(i, n.floating);
|
|
7645
7649
|
return {
|
|
7646
7650
|
data: {
|
|
7647
7651
|
escapedOffsets: a,
|
|
@@ -7767,7 +7771,7 @@ function _r() {
|
|
|
7767
7771
|
function nn(t) {
|
|
7768
7772
|
return cs(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
7769
7773
|
}
|
|
7770
|
-
function
|
|
7774
|
+
function Pt(t) {
|
|
7771
7775
|
var e;
|
|
7772
7776
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
7773
7777
|
}
|
|
@@ -7776,16 +7780,16 @@ function se(t) {
|
|
|
7776
7780
|
return (e = (cs(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
7777
7781
|
}
|
|
7778
7782
|
function cs(t) {
|
|
7779
|
-
return _r() ? t instanceof Node || t instanceof
|
|
7783
|
+
return _r() ? t instanceof Node || t instanceof Pt(t).Node : !1;
|
|
7780
7784
|
}
|
|
7781
7785
|
function qt(t) {
|
|
7782
|
-
return _r() ? t instanceof Element || t instanceof
|
|
7786
|
+
return _r() ? t instanceof Element || t instanceof Pt(t).Element : !1;
|
|
7783
7787
|
}
|
|
7784
7788
|
function Qt(t) {
|
|
7785
|
-
return _r() ? t instanceof HTMLElement || t instanceof
|
|
7789
|
+
return _r() ? t instanceof HTMLElement || t instanceof Pt(t).HTMLElement : !1;
|
|
7786
7790
|
}
|
|
7787
7791
|
function Hi(t) {
|
|
7788
|
-
return !_r() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof
|
|
7792
|
+
return !_r() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof Pt(t).ShadowRoot;
|
|
7789
7793
|
}
|
|
7790
7794
|
const dp = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
7791
7795
|
function On(t) {
|
|
@@ -7812,22 +7816,22 @@ function Tr(t) {
|
|
|
7812
7816
|
});
|
|
7813
7817
|
}
|
|
7814
7818
|
const gp = ["transform", "translate", "scale", "rotate", "perspective"], yp = ["transform", "translate", "scale", "rotate", "perspective", "filter"], mp = ["paint", "layout", "strict", "content"];
|
|
7815
|
-
function
|
|
7816
|
-
const e =
|
|
7819
|
+
function Co(t) {
|
|
7820
|
+
const e = Ro(), n = qt(t) ? Kt(t) : t;
|
|
7817
7821
|
return gp.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || yp.some((r) => (n.willChange || "").includes(r)) || mp.some((r) => (n.contain || "").includes(r));
|
|
7818
7822
|
}
|
|
7819
7823
|
function bp(t) {
|
|
7820
|
-
let e =
|
|
7824
|
+
let e = me(t);
|
|
7821
7825
|
for (; Qt(e) && !Xe(e); ) {
|
|
7822
|
-
if (
|
|
7826
|
+
if (Co(e))
|
|
7823
7827
|
return e;
|
|
7824
7828
|
if (Tr(e))
|
|
7825
7829
|
return null;
|
|
7826
|
-
e =
|
|
7830
|
+
e = me(e);
|
|
7827
7831
|
}
|
|
7828
7832
|
return null;
|
|
7829
7833
|
}
|
|
7830
|
-
function
|
|
7834
|
+
function Ro() {
|
|
7831
7835
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
7832
7836
|
}
|
|
7833
7837
|
const Ep = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
@@ -7835,7 +7839,7 @@ function Xe(t) {
|
|
|
7835
7839
|
return Ep.has(nn(t));
|
|
7836
7840
|
}
|
|
7837
7841
|
function Kt(t) {
|
|
7838
|
-
return
|
|
7842
|
+
return Pt(t).getComputedStyle(t);
|
|
7839
7843
|
}
|
|
7840
7844
|
function kr(t) {
|
|
7841
7845
|
return qt(t) ? {
|
|
@@ -7846,7 +7850,7 @@ function kr(t) {
|
|
|
7846
7850
|
scrollTop: t.scrollY
|
|
7847
7851
|
};
|
|
7848
7852
|
}
|
|
7849
|
-
function
|
|
7853
|
+
function me(t) {
|
|
7850
7854
|
if (nn(t) === "html")
|
|
7851
7855
|
return t;
|
|
7852
7856
|
const e = (
|
|
@@ -7859,13 +7863,13 @@ function ye(t) {
|
|
|
7859
7863
|
return Hi(e) ? e.host : e;
|
|
7860
7864
|
}
|
|
7861
7865
|
function us(t) {
|
|
7862
|
-
const e =
|
|
7866
|
+
const e = me(t);
|
|
7863
7867
|
return Xe(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Qt(e) && On(e) ? e : us(e);
|
|
7864
7868
|
}
|
|
7865
7869
|
function dr(t, e, n) {
|
|
7866
7870
|
var r;
|
|
7867
7871
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
7868
|
-
const o = us(t), i = o === ((r = t.ownerDocument) == null ? void 0 : r.body), a =
|
|
7872
|
+
const o = us(t), i = o === ((r = t.ownerDocument) == null ? void 0 : r.body), a = Pt(o);
|
|
7869
7873
|
if (i) {
|
|
7870
7874
|
const s = co(a);
|
|
7871
7875
|
return e.concat(a, a.visualViewport || [], On(o) ? o : [], s && n ? dr(s) : []);
|
|
@@ -7905,14 +7909,14 @@ function ze(t) {
|
|
|
7905
7909
|
}
|
|
7906
7910
|
const xp = /* @__PURE__ */ Gt(0);
|
|
7907
7911
|
function ds(t) {
|
|
7908
|
-
const e =
|
|
7909
|
-
return !
|
|
7912
|
+
const e = Pt(t);
|
|
7913
|
+
return !Ro() || !e.visualViewport ? xp : {
|
|
7910
7914
|
x: e.visualViewport.offsetLeft,
|
|
7911
7915
|
y: e.visualViewport.offsetTop
|
|
7912
7916
|
};
|
|
7913
7917
|
}
|
|
7914
7918
|
function wp(t, e, n) {
|
|
7915
|
-
return e === void 0 && (e = !1), !n || e && n !==
|
|
7919
|
+
return e === void 0 && (e = !1), !n || e && n !== Pt(t) ? !1 : e;
|
|
7916
7920
|
}
|
|
7917
7921
|
function kn(t, e, n, r) {
|
|
7918
7922
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
@@ -7922,11 +7926,11 @@ function kn(t, e, n, r) {
|
|
|
7922
7926
|
const s = wp(i, n, r) ? ds(i) : Gt(0);
|
|
7923
7927
|
let c = (o.left + s.x) / a.x, f = (o.top + s.y) / a.y, g = o.width / a.x, l = o.height / a.y;
|
|
7924
7928
|
if (i) {
|
|
7925
|
-
const u =
|
|
7929
|
+
const u = Pt(i), h = r && qt(r) ? Pt(r) : r;
|
|
7926
7930
|
let p = u, v = co(p);
|
|
7927
7931
|
for (; v && r && h !== p; ) {
|
|
7928
7932
|
const m = ze(v), E = v.getBoundingClientRect(), y = Kt(v), w = E.left + (v.clientLeft + parseFloat(y.paddingLeft)) * m.x, k = E.top + (v.clientTop + parseFloat(y.paddingTop)) * m.y;
|
|
7929
|
-
c *= m.x, f *= m.y, g *= m.x, l *= m.y, c += w, f += k, p =
|
|
7933
|
+
c *= m.x, f *= m.y, g *= m.x, l *= m.y, c += w, f += k, p = Pt(v), v = co(p);
|
|
7930
7934
|
}
|
|
7931
7935
|
}
|
|
7932
7936
|
return lr({
|
|
@@ -7936,12 +7940,12 @@ function kn(t, e, n, r) {
|
|
|
7936
7940
|
y: f
|
|
7937
7941
|
});
|
|
7938
7942
|
}
|
|
7939
|
-
function
|
|
7943
|
+
function Cr(t, e) {
|
|
7940
7944
|
const n = kr(t).scrollLeft;
|
|
7941
7945
|
return e ? e.left + n : kn(se(t)).left + n;
|
|
7942
7946
|
}
|
|
7943
7947
|
function ps(t, e) {
|
|
7944
|
-
const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft -
|
|
7948
|
+
const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft - Cr(t, n), o = n.top + e.scrollTop;
|
|
7945
7949
|
return {
|
|
7946
7950
|
x: r,
|
|
7947
7951
|
y: o
|
|
@@ -7979,7 +7983,7 @@ function _p(t) {
|
|
|
7979
7983
|
}
|
|
7980
7984
|
function Tp(t) {
|
|
7981
7985
|
const e = se(t), n = kr(t), r = t.ownerDocument.body, o = Ue(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), i = Ue(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
7982
|
-
let a = -n.scrollLeft +
|
|
7986
|
+
let a = -n.scrollLeft + Cr(t);
|
|
7983
7987
|
const s = -n.scrollTop;
|
|
7984
7988
|
return Kt(r).direction === "rtl" && (a += Ue(e.clientWidth, r.clientWidth) - o), {
|
|
7985
7989
|
width: o,
|
|
@@ -7990,14 +7994,14 @@ function Tp(t) {
|
|
|
7990
7994
|
}
|
|
7991
7995
|
const $i = 25;
|
|
7992
7996
|
function kp(t, e) {
|
|
7993
|
-
const n =
|
|
7997
|
+
const n = Pt(t), r = se(t), o = n.visualViewport;
|
|
7994
7998
|
let i = r.clientWidth, a = r.clientHeight, s = 0, c = 0;
|
|
7995
7999
|
if (o) {
|
|
7996
8000
|
i = o.width, a = o.height;
|
|
7997
|
-
const g =
|
|
8001
|
+
const g = Ro();
|
|
7998
8002
|
(!g || g && e === "fixed") && (s = o.offsetLeft, c = o.offsetTop);
|
|
7999
8003
|
}
|
|
8000
|
-
const f =
|
|
8004
|
+
const f = Cr(r);
|
|
8001
8005
|
if (f <= 0) {
|
|
8002
8006
|
const g = r.ownerDocument, l = g.body, u = getComputedStyle(l), h = g.compatMode === "CSS1Compat" && parseFloat(u.marginLeft) + parseFloat(u.marginRight) || 0, p = Math.abs(r.clientWidth - l.clientWidth - h);
|
|
8003
8007
|
p <= $i && (i -= p);
|
|
@@ -8009,8 +8013,8 @@ function kp(t, e) {
|
|
|
8009
8013
|
y: c
|
|
8010
8014
|
};
|
|
8011
8015
|
}
|
|
8012
|
-
const
|
|
8013
|
-
function
|
|
8016
|
+
const Cp = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
8017
|
+
function Rp(t, e) {
|
|
8014
8018
|
const n = kn(t, !0, e === "fixed"), r = n.top + t.clientTop, o = n.left + t.clientLeft, i = Qt(t) ? ze(t) : Gt(1), a = t.clientWidth * i.x, s = t.clientHeight * i.y, c = o * i.x, f = r * i.y;
|
|
8015
8019
|
return {
|
|
8016
8020
|
width: a,
|
|
@@ -8026,7 +8030,7 @@ function Mi(t, e, n) {
|
|
|
8026
8030
|
else if (e === "document")
|
|
8027
8031
|
r = Tp(se(t));
|
|
8028
8032
|
else if (qt(e))
|
|
8029
|
-
r =
|
|
8033
|
+
r = Rp(e, n);
|
|
8030
8034
|
else {
|
|
8031
8035
|
const o = ds(t);
|
|
8032
8036
|
r = {
|
|
@@ -8039,7 +8043,7 @@ function Mi(t, e, n) {
|
|
|
8039
8043
|
return lr(r);
|
|
8040
8044
|
}
|
|
8041
8045
|
function hs(t, e) {
|
|
8042
|
-
const n =
|
|
8046
|
+
const n = me(t);
|
|
8043
8047
|
return n === e || !qt(n) || Xe(n) ? !1 : Kt(n).position === "fixed" || hs(n, e);
|
|
8044
8048
|
}
|
|
8045
8049
|
function Op(t, e) {
|
|
@@ -8048,10 +8052,10 @@ function Op(t, e) {
|
|
|
8048
8052
|
return n;
|
|
8049
8053
|
let r = dr(t, [], !1).filter((s) => qt(s) && nn(s) !== "body"), o = null;
|
|
8050
8054
|
const i = Kt(t).position === "fixed";
|
|
8051
|
-
let a = i ?
|
|
8055
|
+
let a = i ? me(t) : t;
|
|
8052
8056
|
for (; qt(a) && !Xe(a); ) {
|
|
8053
|
-
const s = Kt(a), c =
|
|
8054
|
-
!c && s.position === "fixed" && (o = null), (i ? !c && !o : !c && s.position === "static" && o &&
|
|
8057
|
+
const s = Kt(a), c = Co(a);
|
|
8058
|
+
!c && s.position === "fixed" && (o = null), (i ? !c && !o : !c && s.position === "static" && o && Cp.has(o.position) || On(a) && !c && hs(t, a)) ? r = r.filter((f) => f !== a) : o = s, a = me(a);
|
|
8055
8059
|
}
|
|
8056
8060
|
return e.set(t, r), r;
|
|
8057
8061
|
}
|
|
@@ -8091,7 +8095,7 @@ function Ap(t, e, n) {
|
|
|
8091
8095
|
};
|
|
8092
8096
|
const c = Gt(0);
|
|
8093
8097
|
function f() {
|
|
8094
|
-
c.x =
|
|
8098
|
+
c.x = Cr(o);
|
|
8095
8099
|
}
|
|
8096
8100
|
if (r || !r && !i)
|
|
8097
8101
|
if ((nn(e) !== "body" || On(o)) && (s = kr(e)), r) {
|
|
@@ -8119,22 +8123,22 @@ function Fi(t, e) {
|
|
|
8119
8123
|
return se(t) === n && (n = n.ownerDocument.body), n;
|
|
8120
8124
|
}
|
|
8121
8125
|
function vs(t, e) {
|
|
8122
|
-
const n =
|
|
8126
|
+
const n = Pt(t);
|
|
8123
8127
|
if (Tr(t))
|
|
8124
8128
|
return n;
|
|
8125
8129
|
if (!Qt(t)) {
|
|
8126
|
-
let o =
|
|
8130
|
+
let o = me(t);
|
|
8127
8131
|
for (; o && !Xe(o); ) {
|
|
8128
8132
|
if (qt(o) && !Mr(o))
|
|
8129
8133
|
return o;
|
|
8130
|
-
o =
|
|
8134
|
+
o = me(o);
|
|
8131
8135
|
}
|
|
8132
8136
|
return n;
|
|
8133
8137
|
}
|
|
8134
8138
|
let r = Fi(t, e);
|
|
8135
8139
|
for (; r && hp(r) && Mr(r); )
|
|
8136
8140
|
r = Fi(r, e);
|
|
8137
|
-
return r && Xe(r) && Mr(r) && !
|
|
8141
|
+
return r && Xe(r) && Mr(r) && !Co(r) ? n : r || bp(t) || n;
|
|
8138
8142
|
}
|
|
8139
8143
|
const jp = async function(t) {
|
|
8140
8144
|
const e = this.getOffsetParent || vs, n = this.getDimensions, r = await n(t.floating);
|
|
@@ -8148,10 +8152,10 @@ const jp = async function(t) {
|
|
|
8148
8152
|
}
|
|
8149
8153
|
};
|
|
8150
8154
|
};
|
|
8151
|
-
function
|
|
8155
|
+
function Dp(t) {
|
|
8152
8156
|
return Kt(t).direction === "rtl";
|
|
8153
8157
|
}
|
|
8154
|
-
const
|
|
8158
|
+
const Pp = {
|
|
8155
8159
|
convertOffsetParentRelativeRectToViewportRelativeRect: Sp,
|
|
8156
8160
|
getDocumentElement: se,
|
|
8157
8161
|
getClippingRect: Np,
|
|
@@ -8161,10 +8165,10 @@ const Dp = {
|
|
|
8161
8165
|
getDimensions: Ip,
|
|
8162
8166
|
getScale: ze,
|
|
8163
8167
|
isElement: qt,
|
|
8164
|
-
isRTL:
|
|
8168
|
+
isRTL: Dp
|
|
8165
8169
|
}, Lp = lp, Hp = ap, $p = fp, Mp = sp, Fp = op, Wp = (t, e, n) => {
|
|
8166
8170
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
8167
|
-
platform:
|
|
8171
|
+
platform: Pp,
|
|
8168
8172
|
...n
|
|
8169
8173
|
}, i = {
|
|
8170
8174
|
...o.platform,
|
|
@@ -8179,28 +8183,28 @@ var Fr, Wi;
|
|
|
8179
8183
|
function Vp() {
|
|
8180
8184
|
if (Wi) return Fr;
|
|
8181
8185
|
Wi = 1;
|
|
8182
|
-
var t = "Expected a function", e = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, a = /^0o[0-7]+$/i, s = parseInt, c = typeof
|
|
8186
|
+
var t = "Expected a function", e = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, a = /^0o[0-7]+$/i, s = parseInt, c = typeof Wt == "object" && Wt && Wt.Object === Object && Wt, f = typeof self == "object" && self && self.Object === Object && self, g = c || f || Function("return this")(), l = Object.prototype, u = l.toString, h = Math.max, p = Math.min, v = function() {
|
|
8183
8187
|
return g.Date.now();
|
|
8184
8188
|
};
|
|
8185
8189
|
function m(S, I, O) {
|
|
8186
|
-
var
|
|
8190
|
+
var R, A, D, $, M, z, Y = 0, G = !1, et = !1, st = !0;
|
|
8187
8191
|
if (typeof S != "function")
|
|
8188
8192
|
throw new TypeError(t);
|
|
8189
|
-
I = k(I) || 0, E(O) && (G = !!O.leading, et = "maxWait" in O,
|
|
8193
|
+
I = k(I) || 0, E(O) && (G = !!O.leading, et = "maxWait" in O, D = et ? h(k(O.maxWait) || 0, I) : D, st = "trailing" in O ? !!O.trailing : st);
|
|
8190
8194
|
function B(tt) {
|
|
8191
|
-
var ft =
|
|
8192
|
-
return
|
|
8195
|
+
var ft = R, Et = A;
|
|
8196
|
+
return R = A = void 0, Y = tt, $ = S.apply(Et, ft), $;
|
|
8193
8197
|
}
|
|
8194
8198
|
function q(tt) {
|
|
8195
8199
|
return Y = tt, M = setTimeout(lt, I), G ? B(tt) : $;
|
|
8196
8200
|
}
|
|
8197
8201
|
function pt(tt) {
|
|
8198
8202
|
var ft = tt - z, Et = tt - Y, Lt = I - ft;
|
|
8199
|
-
return et ? p(Lt,
|
|
8203
|
+
return et ? p(Lt, D - Et) : Lt;
|
|
8200
8204
|
}
|
|
8201
8205
|
function J(tt) {
|
|
8202
8206
|
var ft = tt - z, Et = tt - Y;
|
|
8203
|
-
return z === void 0 || ft >= I || ft < 0 || et && Et >=
|
|
8207
|
+
return z === void 0 || ft >= I || ft < 0 || et && Et >= D;
|
|
8204
8208
|
}
|
|
8205
8209
|
function lt() {
|
|
8206
8210
|
var tt = v();
|
|
@@ -8209,17 +8213,17 @@ function Vp() {
|
|
|
8209
8213
|
M = setTimeout(lt, pt(tt));
|
|
8210
8214
|
}
|
|
8211
8215
|
function bt(tt) {
|
|
8212
|
-
return M = void 0, st &&
|
|
8216
|
+
return M = void 0, st && R ? B(tt) : (R = A = void 0, $);
|
|
8213
8217
|
}
|
|
8214
8218
|
function K() {
|
|
8215
|
-
M !== void 0 && clearTimeout(M), Y = 0,
|
|
8219
|
+
M !== void 0 && clearTimeout(M), Y = 0, R = z = A = M = void 0;
|
|
8216
8220
|
}
|
|
8217
8221
|
function F() {
|
|
8218
8222
|
return M === void 0 ? $ : bt(v());
|
|
8219
8223
|
}
|
|
8220
8224
|
function It() {
|
|
8221
8225
|
var tt = v(), ft = J(tt);
|
|
8222
|
-
if (
|
|
8226
|
+
if (R = arguments, A = this, z = tt, ft) {
|
|
8223
8227
|
if (M === void 0)
|
|
8224
8228
|
return q(z);
|
|
8225
8229
|
if (et)
|
|
@@ -8257,20 +8261,20 @@ function Vp() {
|
|
|
8257
8261
|
return Fr = m, Fr;
|
|
8258
8262
|
}
|
|
8259
8263
|
var Up = Vp();
|
|
8260
|
-
const gs = /* @__PURE__ */
|
|
8264
|
+
const gs = /* @__PURE__ */ Ne(Up);
|
|
8261
8265
|
var Wr, Vi;
|
|
8262
8266
|
function zp() {
|
|
8263
8267
|
if (Vi) return Wr;
|
|
8264
8268
|
Vi = 1;
|
|
8265
|
-
var t = 200, e = "__lodash_hash_undefined__", n = 1 / 0, r = "[object Function]", o = "[object GeneratorFunction]", i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, s = typeof
|
|
8269
|
+
var t = 200, e = "__lodash_hash_undefined__", n = 1 / 0, r = "[object Function]", o = "[object GeneratorFunction]", i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, s = typeof Wt == "object" && Wt && Wt.Object === Object && Wt, c = typeof self == "object" && self && self.Object === Object && self, f = s || c || Function("return this")();
|
|
8266
8270
|
function g(T, H) {
|
|
8267
8271
|
var d = T ? T.length : 0;
|
|
8268
8272
|
return !!d && u(T, H, 0) > -1;
|
|
8269
8273
|
}
|
|
8270
8274
|
function l(T, H, d, x) {
|
|
8271
|
-
for (var N = T.length,
|
|
8272
|
-
if (H(T[
|
|
8273
|
-
return
|
|
8275
|
+
for (var N = T.length, C = d + -1; ++C < N; )
|
|
8276
|
+
if (H(T[C], C, T))
|
|
8277
|
+
return C;
|
|
8274
8278
|
return -1;
|
|
8275
8279
|
}
|
|
8276
8280
|
function u(T, H, d) {
|
|
@@ -8308,8 +8312,8 @@ function zp() {
|
|
|
8308
8312
|
var y = Array.prototype, w = Function.prototype, k = Object.prototype, S = f["__core-js_shared__"], I = (function() {
|
|
8309
8313
|
var T = /[^.]+$/.exec(S && S.keys && S.keys.IE_PROTO || "");
|
|
8310
8314
|
return T ? "Symbol(src)_1." + T : "";
|
|
8311
|
-
})(), O = w.toString,
|
|
8312
|
-
"^" + O.call(
|
|
8315
|
+
})(), O = w.toString, R = k.hasOwnProperty, A = k.toString, D = RegExp(
|
|
8316
|
+
"^" + O.call(R).replace(i, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
8313
8317
|
), $ = y.splice, M = le(f, "Map"), z = le(f, "Set"), Y = le(Object, "create");
|
|
8314
8318
|
function G(T) {
|
|
8315
8319
|
var H = -1, d = T ? T.length : 0;
|
|
@@ -8330,11 +8334,11 @@ function zp() {
|
|
|
8330
8334
|
var d = H[T];
|
|
8331
8335
|
return d === e ? void 0 : d;
|
|
8332
8336
|
}
|
|
8333
|
-
return
|
|
8337
|
+
return R.call(H, T) ? H[T] : void 0;
|
|
8334
8338
|
}
|
|
8335
8339
|
function q(T) {
|
|
8336
8340
|
var H = this.__data__;
|
|
8337
|
-
return Y ? H[T] !== void 0 :
|
|
8341
|
+
return Y ? H[T] !== void 0 : R.call(H, T);
|
|
8338
8342
|
}
|
|
8339
8343
|
function pt(T, H) {
|
|
8340
8344
|
var d = this.__data__;
|
|
@@ -8397,43 +8401,43 @@ function zp() {
|
|
|
8397
8401
|
return ue(this, T).set(T, H), this;
|
|
8398
8402
|
}
|
|
8399
8403
|
tt.prototype.clear = ft, tt.prototype.delete = Et, tt.prototype.get = Lt, tt.prototype.has = At, tt.prototype.set = Ht;
|
|
8400
|
-
function
|
|
8404
|
+
function Vt(T) {
|
|
8401
8405
|
var H = -1, d = T ? T.length : 0;
|
|
8402
8406
|
for (this.__data__ = new tt(); ++H < d; )
|
|
8403
8407
|
this.add(T[H]);
|
|
8404
8408
|
}
|
|
8405
|
-
function
|
|
8409
|
+
function Ee(T) {
|
|
8406
8410
|
return this.__data__.set(T, e), this;
|
|
8407
8411
|
}
|
|
8408
|
-
function
|
|
8412
|
+
function Ae(T) {
|
|
8409
8413
|
return this.__data__.has(T);
|
|
8410
8414
|
}
|
|
8411
|
-
|
|
8415
|
+
Vt.prototype.add = Vt.prototype.push = Ee, Vt.prototype.has = Ae;
|
|
8412
8416
|
function ce(T, H) {
|
|
8413
8417
|
for (var d = T.length; d--; )
|
|
8414
|
-
if (
|
|
8418
|
+
if (je(T[d][0], H))
|
|
8415
8419
|
return d;
|
|
8416
8420
|
return -1;
|
|
8417
8421
|
}
|
|
8418
8422
|
function rn(T) {
|
|
8419
8423
|
if (!Xt(T) || cn(T))
|
|
8420
8424
|
return !1;
|
|
8421
|
-
var H = fe(T) || m(T) ?
|
|
8425
|
+
var H = fe(T) || m(T) ? D : a;
|
|
8422
8426
|
return H.test(un(T));
|
|
8423
8427
|
}
|
|
8424
8428
|
function on(T, H, d) {
|
|
8425
|
-
var x = -1, N = g,
|
|
8426
|
-
if (
|
|
8429
|
+
var x = -1, N = g, C = T.length, P = !0, W = [], U = W;
|
|
8430
|
+
if (C >= t) {
|
|
8427
8431
|
var Z = an(T);
|
|
8428
8432
|
if (Z)
|
|
8429
8433
|
return E(Z);
|
|
8430
|
-
|
|
8434
|
+
P = !1, N = p, U = new Vt();
|
|
8431
8435
|
} else
|
|
8432
8436
|
U = W;
|
|
8433
8437
|
t:
|
|
8434
|
-
for (; ++x <
|
|
8438
|
+
for (; ++x < C; ) {
|
|
8435
8439
|
var X = T[x], at = X;
|
|
8436
|
-
if (X = X !== 0 ? X : 0,
|
|
8440
|
+
if (X = X !== 0 ? X : 0, P && at === at) {
|
|
8437
8441
|
for (var ut = U.length; ut--; )
|
|
8438
8442
|
if (U[ut] === at)
|
|
8439
8443
|
continue t;
|
|
@@ -8444,7 +8448,7 @@ function zp() {
|
|
|
8444
8448
|
}
|
|
8445
8449
|
var an = z && 1 / E(new z([, -0]))[1] == n ? function(T) {
|
|
8446
8450
|
return new z(T);
|
|
8447
|
-
} :
|
|
8451
|
+
} : xe;
|
|
8448
8452
|
function ue(T, H) {
|
|
8449
8453
|
var d = T.__data__;
|
|
8450
8454
|
return sn(H) ? d[typeof H == "string" ? "string" : "hash"] : d.map;
|
|
@@ -8476,7 +8480,7 @@ function zp() {
|
|
|
8476
8480
|
function ln(T) {
|
|
8477
8481
|
return T && T.length ? on(T) : [];
|
|
8478
8482
|
}
|
|
8479
|
-
function
|
|
8483
|
+
function je(T, H) {
|
|
8480
8484
|
return T === H || T !== T && H !== H;
|
|
8481
8485
|
}
|
|
8482
8486
|
function fe(T) {
|
|
@@ -8487,12 +8491,12 @@ function zp() {
|
|
|
8487
8491
|
var H = typeof T;
|
|
8488
8492
|
return !!T && (H == "object" || H == "function");
|
|
8489
8493
|
}
|
|
8490
|
-
function
|
|
8494
|
+
function xe() {
|
|
8491
8495
|
}
|
|
8492
8496
|
return Wr = ln, Wr;
|
|
8493
8497
|
}
|
|
8494
8498
|
var Bp = zp();
|
|
8495
|
-
const qp = /* @__PURE__ */
|
|
8499
|
+
const qp = /* @__PURE__ */ Ne(Bp), ys = 10, Kp = 12, Zp = (t, e, n, r) => {
|
|
8496
8500
|
const { staticSide: o, offset: i, rotation: a, shadowOpacity: s } = {
|
|
8497
8501
|
top: {
|
|
8498
8502
|
staticSide: "bottom",
|
|
@@ -8706,18 +8710,18 @@ const Qp = (t, e) => {
|
|
|
8706
8710
|
}) => {
|
|
8707
8711
|
const { traits: I } = y.getConfig(), {
|
|
8708
8712
|
arrowId: O = "arrow",
|
|
8709
|
-
target:
|
|
8713
|
+
target: R,
|
|
8710
8714
|
rootId: A,
|
|
8711
|
-
placement:
|
|
8715
|
+
placement: D = "auto",
|
|
8712
8716
|
distance: $,
|
|
8713
8717
|
skidding: M,
|
|
8714
8718
|
placementUnit: z = "pixels",
|
|
8715
8719
|
shouldAutoCalculateZIndex: Y = !0
|
|
8716
|
-
} = S(), G = Ui(
|
|
8720
|
+
} = S(), G = Ui(R.selector, I), et = I.find((q) => q.type === "@appcues/toggle")?.config?.startHidden ?? !0;
|
|
8717
8721
|
et || w(A, { position: "absolute" }), s = () => {
|
|
8718
8722
|
const q = y.querySelector(`#${A}`), pt = y.querySelector(`#${O}`), J = Be(
|
|
8719
|
-
m(
|
|
8720
|
-
|
|
8723
|
+
m(R.selector),
|
|
8724
|
+
R.filters
|
|
8721
8725
|
);
|
|
8722
8726
|
return {
|
|
8723
8727
|
matchingElements: J,
|
|
@@ -8731,7 +8735,7 @@ const Qp = (t, e) => {
|
|
|
8731
8735
|
if (!r && q && pt) {
|
|
8732
8736
|
r = !0;
|
|
8733
8737
|
const lt = Jp({
|
|
8734
|
-
placement:
|
|
8738
|
+
placement: D,
|
|
8735
8739
|
targetEl: q,
|
|
8736
8740
|
distance: $,
|
|
8737
8741
|
skidding: M,
|
|
@@ -8742,7 +8746,7 @@ const Qp = (t, e) => {
|
|
|
8742
8746
|
crossAxis: J && /start|end/gm.test(Ht) ? Gp(M, Ht) : lt.crossAxis
|
|
8743
8747
|
}))
|
|
8744
8748
|
];
|
|
8745
|
-
|
|
8749
|
+
D === "auto" && bt.push(
|
|
8746
8750
|
$p(),
|
|
8747
8751
|
Hp({
|
|
8748
8752
|
crossAxis: !0
|
|
@@ -8756,14 +8760,14 @@ const Qp = (t, e) => {
|
|
|
8756
8760
|
placement: ft
|
|
8757
8761
|
} = await Wp(q, pt, {
|
|
8758
8762
|
middleware: bt,
|
|
8759
|
-
placement: rh[
|
|
8763
|
+
placement: rh[D] ?? "auto",
|
|
8760
8764
|
strategy: u
|
|
8761
8765
|
}), { referenceHidden: Et } = K.hide;
|
|
8762
8766
|
if (J) {
|
|
8763
|
-
const { x: Ht, y:
|
|
8767
|
+
const { x: Ht, y: Vt } = K.arrow;
|
|
8764
8768
|
w(
|
|
8765
8769
|
O,
|
|
8766
|
-
Zp(ft, Ht,
|
|
8770
|
+
Zp(ft, Ht, Vt)
|
|
8767
8771
|
);
|
|
8768
8772
|
}
|
|
8769
8773
|
const Lt = {
|
|
@@ -8776,20 +8780,20 @@ const Qp = (t, e) => {
|
|
|
8776
8780
|
shouldAutoCalculateZIndex: Y,
|
|
8777
8781
|
getWindowReference: k
|
|
8778
8782
|
});
|
|
8779
|
-
q.style.visibility === "hidden" && (At.visibility = "hidden", g = q.style.visibility), Et && pt.style.visibility !== "hidden" && (f = pt.style.visibility, l = !0, At.visibility = "hidden"), !Et && l && (At.visibility = f ?? "visible", l = !1), !Et && q.style.visibility !== "hidden" && q.style.visibility !== "" && g === "hidden" && (At.visibility = "visible"),
|
|
8783
|
+
q.style.visibility === "hidden" && (At.visibility = "hidden", g = q.style.visibility), Et && pt.style.visibility !== "hidden" && (f = pt.style.visibility, l = !0, At.visibility = "hidden"), !Et && l && (At.visibility = f ?? "visible", l = !1), !Et && q.style.visibility !== "hidden" && q.style.visibility !== "" && g === "hidden" && (At.visibility = "visible"), D === "center" && (At.transform = "translate(-50%, 50%)"), w(A, At);
|
|
8780
8784
|
}
|
|
8781
8785
|
};
|
|
8782
8786
|
h = () => {
|
|
8783
8787
|
r = !1, st();
|
|
8784
8788
|
}, c = oh(h);
|
|
8785
|
-
const B = () => Be(m(
|
|
8789
|
+
const B = () => Be(m(R.selector), R.filters);
|
|
8786
8790
|
n = async () => {
|
|
8787
8791
|
i && i(), a && a();
|
|
8788
8792
|
const { matchingElements: q, rootEl: pt } = s(), J = q.length === 1, lt = q.length > 1, bt = q.length === 0, K = () => {
|
|
8789
8793
|
G || (a = v({
|
|
8790
8794
|
getTarget: B,
|
|
8791
8795
|
onRemoved: () => {
|
|
8792
|
-
r = !1, p = E(`Target got removed => ${
|
|
8796
|
+
r = !1, p = E(`Target got removed => ${R.selector}`), c.remove();
|
|
8793
8797
|
}
|
|
8794
8798
|
}));
|
|
8795
8799
|
};
|
|
@@ -8813,9 +8817,9 @@ const Qp = (t, e) => {
|
|
|
8813
8817
|
return;
|
|
8814
8818
|
}
|
|
8815
8819
|
lt && E(
|
|
8816
|
-
`Found ${q.length} elements for selector ${
|
|
8820
|
+
`Found ${q.length} elements for selector ${R.selector}.`
|
|
8817
8821
|
), bt && (p = E(
|
|
8818
|
-
`Could not find element for selector ${
|
|
8822
|
+
`Could not find element for selector ${R.selector}.`
|
|
8819
8823
|
));
|
|
8820
8824
|
};
|
|
8821
8825
|
}
|
|
@@ -8897,9 +8901,9 @@ function dh({ addHook: t }) {
|
|
|
8897
8901
|
xOffset: S = 0,
|
|
8898
8902
|
yOffset: I = 0,
|
|
8899
8903
|
distanceUnit: O = "px",
|
|
8900
|
-
sticky:
|
|
8904
|
+
sticky: R = !1,
|
|
8901
8905
|
rootDisplay: A = "inline-block",
|
|
8902
|
-
clearContainer:
|
|
8906
|
+
clearContainer: D = !1
|
|
8903
8907
|
} = l();
|
|
8904
8908
|
e && e(), n && n();
|
|
8905
8909
|
const $ = Be(
|
|
@@ -8907,8 +8911,8 @@ function dh({ addHook: t }) {
|
|
|
8907
8911
|
E.filters
|
|
8908
8912
|
), M = $.length === 1, z = $.length > 1, Y = $.length === 0, G = (B) => {
|
|
8909
8913
|
const q = m().document.createElement("div");
|
|
8910
|
-
if (s && (s.remove(), s = null), f(),
|
|
8911
|
-
if (
|
|
8914
|
+
if (s && (s.remove(), s = null), f(), D && y.includes("inner"))
|
|
8915
|
+
if (D === "hide") {
|
|
8912
8916
|
c(m);
|
|
8913
8917
|
const { document: pt } = m();
|
|
8914
8918
|
Array.from(B.childNodes).forEach((J) => {
|
|
@@ -8955,7 +8959,7 @@ function dh({ addHook: t }) {
|
|
|
8955
8959
|
const J = y.includes("left") ? "right" : "left";
|
|
8956
8960
|
B[`margin-${J}`] = q, B[`margin-${w}`] = pt;
|
|
8957
8961
|
}
|
|
8958
|
-
if (
|
|
8962
|
+
if (R) {
|
|
8959
8963
|
B.position = "sticky";
|
|
8960
8964
|
const J = y.includes("left") ? "top" : "bottom";
|
|
8961
8965
|
B[J] = 0, B.zIndex = dl;
|
|
@@ -9027,8 +9031,8 @@ const ph = (t, e, n) => {
|
|
|
9027
9031
|
i && p(), u?.remove(), u = null;
|
|
9028
9032
|
});
|
|
9029
9033
|
const v = ({ on: E } = {}, y) => {
|
|
9030
|
-
const { reportError: w, step: k, updateStyle: S, getWindowReference: I } = y, O = I().document,
|
|
9031
|
-
if (!Vr(r,
|
|
9034
|
+
const { reportError: w, step: k, updateStyle: S, getWindowReference: I } = y, O = I().document, R = k.querySelector(`#${r}`);
|
|
9035
|
+
if (!Vr(r, R, w)) return;
|
|
9032
9036
|
i && p();
|
|
9033
9037
|
const A = {};
|
|
9034
9038
|
o || (A.visibility = "hidden", A["pointer-events"] = "none"), S(r, {
|
|
@@ -9039,18 +9043,18 @@ const ph = (t, e, n) => {
|
|
|
9039
9043
|
visibility: "hidden",
|
|
9040
9044
|
"pointer-events": "none"
|
|
9041
9045
|
});
|
|
9042
|
-
}, o.duration * 1e3), a && g && (vr(O, "mousemove", s), h.forEach((
|
|
9043
|
-
|
|
9044
|
-
|
|
9046
|
+
}, o.duration * 1e3), a && g && (vr(O, "mousemove", s), h.forEach((D) => {
|
|
9047
|
+
D.contentDocument?.body && vr(
|
|
9048
|
+
D.contentDocument.body,
|
|
9045
9049
|
"mousemove",
|
|
9046
9050
|
s
|
|
9047
9051
|
);
|
|
9048
9052
|
}), g = !1), E?.close?.forEach(
|
|
9049
|
-
(
|
|
9053
|
+
(D) => qi[D.type](D.config, y)
|
|
9050
9054
|
);
|
|
9051
9055
|
}, m = ({ on: E } = {}, y) => {
|
|
9052
|
-
const { reportError: w, step: k, updateStyle: S, getWindowReference: I } = y, O = I().document,
|
|
9053
|
-
if (!Vr(r,
|
|
9056
|
+
const { reportError: w, step: k, updateStyle: S, getWindowReference: I } = y, O = I().document, R = k.querySelector(`#${r}`);
|
|
9057
|
+
if (!Vr(r, R, w)) return;
|
|
9054
9058
|
const A = {};
|
|
9055
9059
|
if (o && (A.transition = `opacity ${o.duration}s ${o.easing}`), S(r, {
|
|
9056
9060
|
...A,
|
|
@@ -9058,11 +9062,11 @@ const ph = (t, e, n) => {
|
|
|
9058
9062
|
opacity: "1",
|
|
9059
9063
|
"pointer-events": "auto"
|
|
9060
9064
|
}), E?.open?.forEach(
|
|
9061
|
-
(
|
|
9065
|
+
(D) => qi[D.type](D.config, y)
|
|
9062
9066
|
), i && l.length === 0) {
|
|
9063
|
-
const
|
|
9067
|
+
const D = k.querySelector(":first-child")[0];
|
|
9064
9068
|
f = (M) => {
|
|
9065
|
-
(vh(M) || gh(M,
|
|
9069
|
+
(vh(M) || gh(M, R[0])) && v({ on: E }, y);
|
|
9066
9070
|
};
|
|
9067
9071
|
const $ = h.map((M) => M.contentDocument?.body ? zn(
|
|
9068
9072
|
M.contentDocument.body,
|
|
@@ -9070,23 +9074,23 @@ const ph = (t, e, n) => {
|
|
|
9070
9074
|
) : null).filter(Boolean);
|
|
9071
9075
|
l.push(
|
|
9072
9076
|
zn(O, f),
|
|
9073
|
-
zn(
|
|
9077
|
+
zn(D, f),
|
|
9074
9078
|
...$
|
|
9075
9079
|
), l.forEach((M) => M.start());
|
|
9076
9080
|
}
|
|
9077
|
-
if (u || (c = (
|
|
9078
|
-
if (
|
|
9081
|
+
if (u || (c = (D) => {
|
|
9082
|
+
if (D.type === "keydown" && !["Enter", " "].includes(D.key))
|
|
9079
9083
|
return;
|
|
9080
|
-
const $ = [...
|
|
9084
|
+
const $ = [...D.composedPath()];
|
|
9081
9085
|
["a", "button"].includes($[0].tagName.toLowerCase()) && v({ on: E }, y);
|
|
9082
|
-
}, u = zn(
|
|
9083
|
-
const
|
|
9086
|
+
}, u = zn(R[0], c), u.start()), a && !g) {
|
|
9087
|
+
const D = hh(R[0], a);
|
|
9084
9088
|
s = gs(($) => {
|
|
9085
9089
|
ph(
|
|
9086
|
-
|
|
9090
|
+
R[0],
|
|
9087
9091
|
$.clientX,
|
|
9088
9092
|
$.clientY
|
|
9089
|
-
) >
|
|
9093
|
+
) > D && v({ on: E }, { reportError: w, step: k, updateStyle: S, getWindowReference: I });
|
|
9090
9094
|
}, 60), hr(O, "mousemove", s), h.forEach(($) => {
|
|
9091
9095
|
$.contentDocument?.body && hr(
|
|
9092
9096
|
$.contentDocument.body,
|
|
@@ -9194,13 +9198,13 @@ const Th = {
|
|
|
9194
9198
|
transform: "scale3d(1, 1, 1)"
|
|
9195
9199
|
}
|
|
9196
9200
|
]
|
|
9197
|
-
}, kh = "@appcues/animate",
|
|
9201
|
+
}, kh = "@appcues/animate", Ch = 500, Rh = "none", Ur = (t, e) => new Promise((n) => {
|
|
9198
9202
|
const {
|
|
9199
9203
|
keyframes: r,
|
|
9200
|
-
duration: o =
|
|
9204
|
+
duration: o = Ch,
|
|
9201
9205
|
iterations: i,
|
|
9202
9206
|
effect: a,
|
|
9203
|
-
fill: s =
|
|
9207
|
+
fill: s = Rh,
|
|
9204
9208
|
easing: c = "linear"
|
|
9205
9209
|
} = e, f = Th[a] || r, g = {
|
|
9206
9210
|
duration: o,
|
|
@@ -9345,11 +9349,11 @@ const Ah = "@appcues/floating", jh = ({ addHook: t }) => {
|
|
|
9345
9349
|
});
|
|
9346
9350
|
};
|
|
9347
9351
|
St(Ah, jh);
|
|
9348
|
-
const
|
|
9352
|
+
const Dh = "@appcues/dismissible";
|
|
9349
9353
|
function Ki(t) {
|
|
9350
9354
|
return `_experience_dismissed_${t}`;
|
|
9351
9355
|
}
|
|
9352
|
-
const
|
|
9356
|
+
const Ph = ({ addHook: t, registerAction: e }, { strategy: n = "permanent" }) => {
|
|
9353
9357
|
function r(o, i) {
|
|
9354
9358
|
return n === "session" ? i().sessionStorage.getItem(Ki(o)) === "1" : !1;
|
|
9355
9359
|
}
|
|
@@ -9366,7 +9370,7 @@ const Dh = ({ addHook: t, registerAction: e }, { strategy: n = "permanent" }) =>
|
|
|
9366
9370
|
}
|
|
9367
9371
|
);
|
|
9368
9372
|
};
|
|
9369
|
-
St(
|
|
9373
|
+
St(Dh, Ph);
|
|
9370
9374
|
const Lh = "@appcues/experienceStyle", Hh = ({ addHook: t }) => {
|
|
9371
9375
|
t("step.begin", ({ updateRootStyle: e, getTraitConfig: n }) => {
|
|
9372
9376
|
const r = n();
|
|
@@ -9575,7 +9579,7 @@ const sv = (t) => class extends t.HTMLElement {
|
|
|
9575
9579
|
`;
|
|
9576
9580
|
}
|
|
9577
9581
|
async connectedCallback() {
|
|
9578
|
-
this.shadowRoot.append(this.hideContentStyles), this.shadowRoot.append(...this.childNodes), this.getAttribute("themeId") && await
|
|
9582
|
+
this.shadowRoot.append(this.hideContentStyles), this.shadowRoot.append(...this.childNodes), this.getAttribute("themeId") && await Da(this), this.shadowRoot.prepend(this.webComponentStyles), this.hideContentStyles.remove();
|
|
9579
9583
|
}
|
|
9580
9584
|
}, zr = /* @__PURE__ */ new WeakMap(), cv = (t = () => window) => {
|
|
9581
9585
|
const e = t();
|
|
@@ -9617,14 +9621,14 @@ function lv({
|
|
|
9617
9621
|
apiOverrides: f
|
|
9618
9622
|
}, u = (v) => v ? l?.[v] ? l[v] : () => {
|
|
9619
9623
|
throw new Error(`can't find external dependency called ${v}`);
|
|
9620
|
-
} : l, h = ({ reason: v =
|
|
9624
|
+
} : l, h = ({ reason: v = ye.NAVIGATION } = {}) => {
|
|
9621
9625
|
t.forEach((m) => {
|
|
9622
|
-
m.experienceService.send({ type:
|
|
9626
|
+
m.experienceService.send({ type: ke, reason: v }), m.experienceService.subscribe((E) => {
|
|
9623
9627
|
E.matches("end-final") && m.experienceService.stop();
|
|
9624
9628
|
});
|
|
9625
9629
|
}), t.clear();
|
|
9626
|
-
}, p = (v, { reason: m =
|
|
9627
|
-
t.has(v) && (t.get(v).experienceService.send({ type:
|
|
9630
|
+
}, p = (v, { reason: m = ye.NAVIGATION } = {}) => {
|
|
9631
|
+
t.has(v) && (t.get(v).experienceService.send({ type: ke, reason: m }), t.delete(v));
|
|
9628
9632
|
};
|
|
9629
9633
|
return {
|
|
9630
9634
|
registerAction: ae,
|