@appcues/web-sdk 7.20.10 → 7.20.11
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 +6 -0
- package/build/{bootstrap.npm.2D6fm_tg.js → bootstrap.npm.BuOq6d5Q.js} +10 -10
- package/build/{index.ChefsKKV.js → index.BU-bEDfq.js} +1 -1
- package/build/{index.npm.CQT52v9E.js → index.npm.DDZN8LID.js} +1 -1
- package/build/index.npm.js +1 -1
- package/build/{open-builder.CuylpKq3.js → open-builder.T7mIrDMO.js} +229 -221
- package/package.json +1 -1
- /package/build/{checklist.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → checklist.552d75634199e931076ec618fb8c32d4353b3676.css} +0 -0
- /package/build/{container.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → container.552d75634199e931076ec618fb8c32d4353b3676.css} +0 -0
- /package/build/{debugger.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → debugger.552d75634199e931076ec618fb8c32d4353b3676.css} +0 -0
- /package/build/{modal-step-legacy-render.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → modal-step-legacy-render.552d75634199e931076ec618fb8c32d4353b3676.css} +0 -0
- /package/build/{modal.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → modal.552d75634199e931076ec618fb8c32d4353b3676.css} +0 -0
- /package/build/{satisfaction-survey.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → satisfaction-survey.552d75634199e931076ec618fb8c32d4353b3676.css} +0 -0
- /package/build/{test-mode.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → test-mode.552d75634199e931076ec618fb8c32d4353b3676.css} +0 -0
- /package/build/{tooltip.31a8708edc6483ec7e5cd9b0fd1c31b3e38360b5.css → tooltip.552d75634199e931076ec618fb8c32d4353b3676.css} +0 -0
|
@@ -55,12 +55,12 @@ var qt;
|
|
|
55
55
|
(function(e) {
|
|
56
56
|
e.Parent = "#_parent", e.Internal = "#_internal";
|
|
57
57
|
})(qt || (qt = {}));
|
|
58
|
-
var Kr = ie.Start, ho = ie.Stop,
|
|
58
|
+
var Kr = ie.Start, ho = ie.Stop, xr = ie.Raise, wr = ie.Send, na = ie.Cancel, Ac = ie.NullEvent, Zr = ie.Assign;
|
|
59
59
|
ie.After;
|
|
60
60
|
ie.DoneState;
|
|
61
61
|
var ra = ie.Log, Nc = ie.Init, Gr = ie.Invoke;
|
|
62
62
|
ie.ErrorExecution;
|
|
63
|
-
var qo = ie.ErrorPlatform, Ic = ie.ErrorCustom, oa = ie.Update, jc = ie.Choose, Pc = ie.Pure, ia = ".", Ko = {}, Jr = "xstate.guard", Dc = "",
|
|
63
|
+
var qo = ie.ErrorPlatform, Ic = ie.ErrorCustom, oa = ie.Update, jc = ie.Choose, Pc = ie.Pure, ia = ".", Ko = {}, Jr = "xstate.guard", Dc = "", Pr;
|
|
64
64
|
function vo(e, t, n) {
|
|
65
65
|
n === void 0 && (n = ia);
|
|
66
66
|
var r = wn(e, n), o = wn(t, n);
|
|
@@ -89,13 +89,13 @@ function wn(e, t) {
|
|
|
89
89
|
if (Lc(e))
|
|
90
90
|
return e.value;
|
|
91
91
|
if (Yt(e))
|
|
92
|
-
return
|
|
92
|
+
return or(e);
|
|
93
93
|
if (typeof e != "string")
|
|
94
94
|
return e;
|
|
95
95
|
var n = Qr(e, t);
|
|
96
|
-
return
|
|
96
|
+
return or(n);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function or(e) {
|
|
99
99
|
if (e.length === 1)
|
|
100
100
|
return e[0];
|
|
101
101
|
for (var t = {}, n = t, r = 0; r < e.length - 1; r++)
|
|
@@ -173,14 +173,14 @@ function $c(e, t) {
|
|
|
173
173
|
return i;
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Qn(e) {
|
|
177
177
|
if (!e)
|
|
178
178
|
return [[]];
|
|
179
179
|
if (re(e))
|
|
180
180
|
return [[e]];
|
|
181
181
|
var t = he(Object.keys(e).map(function(n) {
|
|
182
182
|
var r = e[n];
|
|
183
|
-
return typeof r != "string" && (!r || !Object.keys(r).length) ? [[n]] :
|
|
183
|
+
return typeof r != "string" && (!r || !Object.keys(r).length) ? [[n]] : Qn(e[n]).map(function(o) {
|
|
184
184
|
return [n].concat(o);
|
|
185
185
|
});
|
|
186
186
|
}));
|
|
@@ -196,7 +196,7 @@ function sa(e) {
|
|
|
196
196
|
function Be(e) {
|
|
197
197
|
return e === void 0 ? [] : sa(e);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function ir(e, t, n) {
|
|
200
200
|
var r, o;
|
|
201
201
|
if (ce(e))
|
|
202
202
|
return e(t, n.data);
|
|
@@ -329,9 +329,9 @@ function Vc(e) {
|
|
|
329
329
|
var yt = /* @__PURE__ */ (function() {
|
|
330
330
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
331
331
|
})();
|
|
332
|
-
|
|
332
|
+
Pr = {}, Pr[yt] = function() {
|
|
333
333
|
return this;
|
|
334
|
-
},
|
|
334
|
+
}, Pr[Symbol.observable] = function() {
|
|
335
335
|
return this;
|
|
336
336
|
};
|
|
337
337
|
function Kt(e) {
|
|
@@ -409,7 +409,7 @@ function Xr(e, t, n) {
|
|
|
409
409
|
function Wn(e, t) {
|
|
410
410
|
return "".concat(e, ":invocation[").concat(t, "]");
|
|
411
411
|
}
|
|
412
|
-
var
|
|
412
|
+
var ar = /* @__PURE__ */ Re({
|
|
413
413
|
type: Nc
|
|
414
414
|
});
|
|
415
415
|
function Yr(e, t) {
|
|
@@ -448,7 +448,7 @@ function kn(e, t) {
|
|
|
448
448
|
}
|
|
449
449
|
return n;
|
|
450
450
|
}
|
|
451
|
-
var
|
|
451
|
+
var sr = function(e, t) {
|
|
452
452
|
if (!e)
|
|
453
453
|
return [];
|
|
454
454
|
var n = Yt(e) ? e : [e];
|
|
@@ -466,7 +466,7 @@ function yo(e) {
|
|
|
466
466
|
}
|
|
467
467
|
function pa(e) {
|
|
468
468
|
return re(e) ? {
|
|
469
|
-
type:
|
|
469
|
+
type: xr,
|
|
470
470
|
event: e
|
|
471
471
|
} : On(e, {
|
|
472
472
|
to: qt.Internal
|
|
@@ -474,14 +474,14 @@ function pa(e) {
|
|
|
474
474
|
}
|
|
475
475
|
function Kc(e) {
|
|
476
476
|
return {
|
|
477
|
-
type:
|
|
477
|
+
type: xr,
|
|
478
478
|
_event: Re(e.event)
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
481
|
function On(e, t) {
|
|
482
482
|
return {
|
|
483
483
|
to: t ? t.to : void 0,
|
|
484
|
-
type:
|
|
484
|
+
type: wr,
|
|
485
485
|
event: ce(e) ? e : go(e),
|
|
486
486
|
delay: t ? t.delay : void 0,
|
|
487
487
|
id: t && t.id !== void 0 ? t.id : ce(e) ? e.name : aa(e)
|
|
@@ -565,7 +565,7 @@ function Un(e, t) {
|
|
|
565
565
|
return n;
|
|
566
566
|
}, r;
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Xn(e, t) {
|
|
569
569
|
var n = "".concat(ie.DoneInvoke, ".").concat(e), r = {
|
|
570
570
|
type: n,
|
|
571
571
|
data: t
|
|
@@ -609,9 +609,9 @@ function eo(e, t, n, r, o, i) {
|
|
|
609
609
|
}), 2), s = a[0], l = a[1], d = s.length ? Jo(n, r, s, t) : n, g = i ? [n] : void 0, u = he(l.map(function(c) {
|
|
610
610
|
var h;
|
|
611
611
|
switch (c.type) {
|
|
612
|
-
case Er:
|
|
613
|
-
return Kc(c);
|
|
614
612
|
case xr:
|
|
613
|
+
return Kc(c);
|
|
614
|
+
case wr:
|
|
615
615
|
var f = Zc(c, d, r, e.options.delays);
|
|
616
616
|
return f;
|
|
617
617
|
case ra:
|
|
@@ -623,14 +623,14 @@ function eo(e, t, n, r, o, i) {
|
|
|
623
623
|
})) === null || h === void 0 ? void 0 : h.actions;
|
|
624
624
|
if (!y)
|
|
625
625
|
return [];
|
|
626
|
-
var E = oe(eo(e, t, d, r,
|
|
626
|
+
var E = oe(eo(e, t, d, r, sr(Be(y), e.options.actions), i), 2), m = E[0], w = E[1];
|
|
627
627
|
return d = w, g?.push(d), m;
|
|
628
628
|
}
|
|
629
629
|
case Pc: {
|
|
630
630
|
var y = c.get(d, r.data);
|
|
631
631
|
if (!y)
|
|
632
632
|
return [];
|
|
633
|
-
var k = oe(eo(e, t, d, r,
|
|
633
|
+
var k = oe(eo(e, t, d, r, sr(Be(y), e.options.actions), i), 2), S = k[0], I = k[1];
|
|
634
634
|
return d = I, g?.push(d), S;
|
|
635
635
|
}
|
|
636
636
|
case ho:
|
|
@@ -658,12 +658,12 @@ function eo(e, t, n, r, o, i) {
|
|
|
658
658
|
}));
|
|
659
659
|
return [u, d];
|
|
660
660
|
}
|
|
661
|
-
var
|
|
662
|
-
|
|
661
|
+
var cr = [], En = function(e, t) {
|
|
662
|
+
cr.push(e);
|
|
663
663
|
var n = t(e);
|
|
664
|
-
return
|
|
664
|
+
return cr.pop(), n;
|
|
665
665
|
}, il = function(e) {
|
|
666
|
-
return e(
|
|
666
|
+
return e(cr[cr.length - 1]);
|
|
667
667
|
};
|
|
668
668
|
function va(e) {
|
|
669
669
|
var t;
|
|
@@ -689,7 +689,7 @@ function va(e) {
|
|
|
689
689
|
}, t;
|
|
690
690
|
}
|
|
691
691
|
function al(e, t, n, r) {
|
|
692
|
-
var o, i = fa(e.src), a = (o = t?.options.services) === null || o === void 0 ? void 0 : o[i.type], s = e.data ?
|
|
692
|
+
var o, i = fa(e.src), a = (o = t?.options.services) === null || o === void 0 ? void 0 : o[i.type], s = e.data ? ir(e.data, n, r) : void 0, l = a ? ga(a, e.id, s) : va(e.id);
|
|
693
693
|
return l.meta = e, l;
|
|
694
694
|
}
|
|
695
695
|
function ga(e, t, n) {
|
|
@@ -730,7 +730,7 @@ function ll(e) {
|
|
|
730
730
|
return this;
|
|
731
731
|
}, t), e);
|
|
732
732
|
}
|
|
733
|
-
var
|
|
733
|
+
var lr = function(e) {
|
|
734
734
|
return e.type === "atomic" || e.type === "final";
|
|
735
735
|
};
|
|
736
736
|
function Zt(e) {
|
|
@@ -742,7 +742,7 @@ function Zt(e) {
|
|
|
742
742
|
}
|
|
743
743
|
function ya(e) {
|
|
744
744
|
var t = [e];
|
|
745
|
-
return
|
|
745
|
+
return lr(e) ? t : t.concat(he(Zt(e).map(ya)));
|
|
746
746
|
}
|
|
747
747
|
function Wt(e, t) {
|
|
748
748
|
var n, r, o, i, a, s, l, d, g = new Set(e), u = to(g), c = new Set(t);
|
|
@@ -828,7 +828,7 @@ function ma(e, t) {
|
|
|
828
828
|
if (e.type === "compound") {
|
|
829
829
|
var r = n[0];
|
|
830
830
|
if (r) {
|
|
831
|
-
if (
|
|
831
|
+
if (lr(r))
|
|
832
832
|
return r.key;
|
|
833
833
|
} else
|
|
834
834
|
return {};
|
|
@@ -862,7 +862,7 @@ function ul(e, t) {
|
|
|
862
862
|
var n = Wt([e], t);
|
|
863
863
|
return ma(e, to(n));
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function Yn(e, t) {
|
|
866
866
|
return Array.isArray(e) ? e.some(function(n) {
|
|
867
867
|
return n === t;
|
|
868
868
|
}) : e instanceof Set ? e.has(t) : !1;
|
|
@@ -874,7 +874,7 @@ function dl(e) {
|
|
|
874
874
|
}
|
|
875
875
|
function Sn(e, t) {
|
|
876
876
|
return t.type === "compound" ? Zt(t).some(function(n) {
|
|
877
|
-
return n.type === "final" &&
|
|
877
|
+
return n.type === "final" && Yn(e, n);
|
|
878
878
|
}) : t.type === "parallel" ? Zt(t).every(function(n) {
|
|
879
879
|
return Sn(e, n);
|
|
880
880
|
}) : !1;
|
|
@@ -943,7 +943,7 @@ var tt = (
|
|
|
943
943
|
transitions: [],
|
|
944
944
|
children: {}
|
|
945
945
|
}) : t;
|
|
946
|
-
var r =
|
|
946
|
+
var r = ar;
|
|
947
947
|
return new e({
|
|
948
948
|
value: t,
|
|
949
949
|
context: n,
|
|
@@ -964,7 +964,7 @@ var tt = (
|
|
|
964
964
|
if (t instanceof e) {
|
|
965
965
|
if (!t.actions.length)
|
|
966
966
|
return t;
|
|
967
|
-
var r =
|
|
967
|
+
var r = ar;
|
|
968
968
|
return new e({
|
|
969
969
|
value: t.value,
|
|
970
970
|
context: n,
|
|
@@ -1053,18 +1053,18 @@ var tt = (
|
|
|
1053
1053
|
}
|
|
1054
1054
|
}, e;
|
|
1055
1055
|
})()
|
|
1056
|
-
),
|
|
1056
|
+
), Dr = /* @__PURE__ */ new Map(), gl = 0, zn = {
|
|
1057
1057
|
bookId: function() {
|
|
1058
1058
|
return "x:".concat(gl++);
|
|
1059
1059
|
},
|
|
1060
1060
|
register: function(e, t) {
|
|
1061
|
-
return
|
|
1061
|
+
return Dr.set(e, t), e;
|
|
1062
1062
|
},
|
|
1063
1063
|
get: function(e) {
|
|
1064
|
-
return
|
|
1064
|
+
return Dr.get(e);
|
|
1065
1065
|
},
|
|
1066
1066
|
free: function(e) {
|
|
1067
|
-
|
|
1067
|
+
Dr.delete(e);
|
|
1068
1068
|
}
|
|
1069
1069
|
};
|
|
1070
1070
|
function mo() {
|
|
@@ -1260,11 +1260,11 @@ Event: `
|
|
|
1260
1260
|
if (this.state.configuration && k) {
|
|
1261
1261
|
var S = t.configuration.find(function(N) {
|
|
1262
1262
|
return N.type === "final" && N.parent === u.machine;
|
|
1263
|
-
}), I = S && S.doneData ?
|
|
1263
|
+
}), I = S && S.doneData ? ir(S.doneData, t.context, n) : void 0;
|
|
1264
1264
|
try {
|
|
1265
1265
|
for (var R = ne(this.doneListeners), C = R.next(); !C.done; C = R.next()) {
|
|
1266
1266
|
var f = C.value;
|
|
1267
|
-
f(
|
|
1267
|
+
f(Xn(this.id, I));
|
|
1268
1268
|
}
|
|
1269
1269
|
} catch (N) {
|
|
1270
1270
|
d = {
|
|
@@ -1315,7 +1315,7 @@ Event: `
|
|
|
1315
1315
|
return pl(t) ? n.machine.resolveState(t) : n.machine.resolveState(tt.from(t, n.machine.context));
|
|
1316
1316
|
});
|
|
1317
1317
|
return this.options.devTools && this.attachDev(), this.scheduler.initialize(function() {
|
|
1318
|
-
n.update(r,
|
|
1318
|
+
n.update(r, ar);
|
|
1319
1319
|
}), this;
|
|
1320
1320
|
}, e.prototype.stop = function() {
|
|
1321
1321
|
var t, n, r, o, i, a, s, l, d, g, u = this;
|
|
@@ -1517,7 +1517,7 @@ Event: `
|
|
|
1517
1517
|
}), k;
|
|
1518
1518
|
}
|
|
1519
1519
|
switch (t.type) {
|
|
1520
|
-
case
|
|
1520
|
+
case wr:
|
|
1521
1521
|
var l = t;
|
|
1522
1522
|
if (typeof l.delay == "number") {
|
|
1523
1523
|
this.defer(l);
|
|
@@ -1538,7 +1538,7 @@ Event: `
|
|
|
1538
1538
|
var g = fa(d.src), u = this.machine.options.services ? this.machine.options.services[g.type] : void 0, c = d.id, h = d.data, f = "autoForward" in d ? d.autoForward : !!d.forward;
|
|
1539
1539
|
if (!u)
|
|
1540
1540
|
return;
|
|
1541
|
-
var v = h ?
|
|
1541
|
+
var v = h ? ir(h, o, i) : void 0;
|
|
1542
1542
|
if (typeof u == "string")
|
|
1543
1543
|
return;
|
|
1544
1544
|
var y = ce(u) ? u(o, i.data, {
|
|
@@ -1615,7 +1615,7 @@ Event: `
|
|
|
1615
1615
|
}, e.prototype.spawnPromise = function(t, n) {
|
|
1616
1616
|
var r, o = this, i = !1, a;
|
|
1617
1617
|
t.then(function(l) {
|
|
1618
|
-
i || (a = l, o.removeChild(n), o.send(Re(
|
|
1618
|
+
i || (a = l, o.removeChild(n), o.send(Re(Xn(n, l), {
|
|
1619
1619
|
origin: n
|
|
1620
1620
|
})));
|
|
1621
1621
|
}, function(l) {
|
|
@@ -1719,7 +1719,7 @@ Event: `
|
|
|
1719
1719
|
origin: n
|
|
1720
1720
|
}));
|
|
1721
1721
|
}, function() {
|
|
1722
|
-
o.removeChild(n), o.send(Re(
|
|
1722
|
+
o.removeChild(n), o.send(Re(Xn(n), {
|
|
1723
1723
|
origin: n
|
|
1724
1724
|
}));
|
|
1725
1725
|
}), s = (r = {
|
|
@@ -1865,7 +1865,7 @@ function Vn(e) {
|
|
|
1865
1865
|
}
|
|
1866
1866
|
});
|
|
1867
1867
|
}
|
|
1868
|
-
var Fn = "", ro = "#",
|
|
1868
|
+
var Fn = "", ro = "#", Lr = "*", Ht = {}, $t = function(e) {
|
|
1869
1869
|
return e[0] === ro;
|
|
1870
1870
|
}, Sl = function() {
|
|
1871
1871
|
return {
|
|
@@ -2047,7 +2047,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2047
2047
|
return this.__cache.candidates[t];
|
|
2048
2048
|
var n = t === Fn, r = this.transitions.filter(function(o) {
|
|
2049
2049
|
var i = o.eventType === t;
|
|
2050
|
-
return n ? i : i || o.eventType ===
|
|
2050
|
+
return n ? i : i || o.eventType === Lr;
|
|
2051
2051
|
});
|
|
2052
2052
|
return this.__cache.candidates[t] = r, r;
|
|
2053
2053
|
}, e.prototype.getDelayedTransitions = function() {
|
|
@@ -2240,7 +2240,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2240
2240
|
try {
|
|
2241
2241
|
for (var u = ne(g), c = u.next(); !c.done; c = u.next()) {
|
|
2242
2242
|
var h = c.value;
|
|
2243
|
-
|
|
2243
|
+
Yn(d, h) || t.entrySet.push(h);
|
|
2244
2244
|
}
|
|
2245
2245
|
} catch (R) {
|
|
2246
2246
|
i = {
|
|
@@ -2256,7 +2256,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2256
2256
|
try {
|
|
2257
2257
|
for (var f = ne(d), v = f.next(); !v.done; v = f.next()) {
|
|
2258
2258
|
var h = v.value;
|
|
2259
|
-
(!
|
|
2259
|
+
(!Yn(g, h) || Yn(t.exitSet, h.parent)) && t.exitSet.push(h);
|
|
2260
2260
|
}
|
|
2261
2261
|
} catch (R) {
|
|
2262
2262
|
s = {
|
|
@@ -2279,7 +2279,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2279
2279
|
C.push(
|
|
2280
2280
|
Un(R.id, R.doneData),
|
|
2281
2281
|
// TODO: deprecate - final states should not emit done events for their own state.
|
|
2282
|
-
Un(N.id, R.doneData ?
|
|
2282
|
+
Un(N.id, R.doneData ? ir(R.doneData, n, r) : void 0)
|
|
2283
2283
|
);
|
|
2284
2284
|
var P = N.parent;
|
|
2285
2285
|
return P.type === "parallel" && Zt(P).every(function(D) {
|
|
@@ -2299,7 +2299,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2299
2299
|
return ye(ye([], oe(R.onExit), !1), oe(R.activities.map(function(C) {
|
|
2300
2300
|
return Yc(C);
|
|
2301
2301
|
})), !1);
|
|
2302
|
-
}))], 2), k = w[0], S = w[1], I =
|
|
2302
|
+
}))], 2), k = w[0], S = w[1], I = sr(S.concat(t.actions).concat(k), this.machine.options.actions);
|
|
2303
2303
|
return I;
|
|
2304
2304
|
}, e.prototype.transition = function(t, n, r) {
|
|
2305
2305
|
t === void 0 && (t = this.initialState);
|
|
@@ -2307,7 +2307,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2307
2307
|
if (t instanceof tt)
|
|
2308
2308
|
i = r === void 0 ? t : this.resolveState(tt.from(t, r));
|
|
2309
2309
|
else {
|
|
2310
|
-
var a = re(t) ? this.resolve(
|
|
2310
|
+
var a = re(t) ? this.resolve(or(this.getResolvedPath(t))) : this.resolve(t), s = r ?? this.machine.context;
|
|
2311
2311
|
i = this.resolveState(tt.from(a, s));
|
|
2312
2312
|
}
|
|
2313
2313
|
if (this.strict && !this.events.includes(o.name) && !Mc(o.name))
|
|
@@ -2326,7 +2326,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2326
2326
|
return t = this.transition(t, n), t._event = r, t.event = r.data, (o = t.actions).unshift.apply(o, ye([], oe(i), !1)), t;
|
|
2327
2327
|
}, e.prototype.resolveTransition = function(t, n, r, o) {
|
|
2328
2328
|
var i, a, s = this;
|
|
2329
|
-
o === void 0 && (o =
|
|
2329
|
+
o === void 0 && (o = ar);
|
|
2330
2330
|
var l = t.configuration, d = !n || t.transitions.length > 0, g = d ? ul(this.machine, l) : void 0, u = n ? n.historyValue ? n.historyValue : t.source ? this.machine.historyValue(n.value) : void 0 : void 0, c = this.getActions(t, r, o, n), h = n ? H({}, n.activities) : {};
|
|
2331
2331
|
try {
|
|
2332
2332
|
for (var f = ne(c), v = f.next(); !v.done; v = f.next()) {
|
|
@@ -2345,7 +2345,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2345
2345
|
}
|
|
2346
2346
|
}
|
|
2347
2347
|
var E = oe(eo(this, n, r, o, c, this.machine.config.preserveActionOrder), 2), m = E[0], w = E[1], k = oe(ca(m, function(q) {
|
|
2348
|
-
return q.type ===
|
|
2348
|
+
return q.type === xr || q.type === wr && q.to === qt.Internal;
|
|
2349
2349
|
}), 2), S = k[0], I = k[1], R = m.filter(function(q) {
|
|
2350
2350
|
var K;
|
|
2351
2351
|
return q.type === Kr && ((K = q.activity) === null || K === void 0 ? void 0 : K.type) === Gr;
|
|
@@ -2460,7 +2460,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2460
2460
|
else if (this.initial !== void 0) {
|
|
2461
2461
|
if (!this.states[this.initial])
|
|
2462
2462
|
throw new Error("Initial state '".concat(this.initial, "' not found on '").concat(this.key, "'"));
|
|
2463
|
-
n =
|
|
2463
|
+
n = lr(this.states[this.initial]) ? this.initial : (t = {}, t[this.initial] = this.states[this.initial].initialStateValue, t);
|
|
2464
2464
|
} else
|
|
2465
2465
|
n = {};
|
|
2466
2466
|
return this.__cache.initialStateValue = n, this.__cache.initialStateValue;
|
|
@@ -2500,7 +2500,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2500
2500
|
var t;
|
|
2501
2501
|
if (this.type === "history") {
|
|
2502
2502
|
var n = this.config;
|
|
2503
|
-
re(n.target) ? t = $t(n.target) ?
|
|
2503
|
+
re(n.target) ? t = $t(n.target) ? or(this.machine.getStateNodeById(n.target).path.slice(this.path.length - 1)) : n.target : t = n.target;
|
|
2504
2504
|
}
|
|
2505
2505
|
return t;
|
|
2506
2506
|
},
|
|
@@ -2511,11 +2511,11 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2511
2511
|
}, Object.defineProperty(e.prototype, "initialStateNodes", {
|
|
2512
2512
|
get: function() {
|
|
2513
2513
|
var t = this;
|
|
2514
|
-
if (
|
|
2514
|
+
if (lr(this))
|
|
2515
2515
|
return [this];
|
|
2516
2516
|
if (this.type === "compound" && !this.initial)
|
|
2517
2517
|
return [this];
|
|
2518
|
-
var n =
|
|
2518
|
+
var n = Qn(this.initialStateValue);
|
|
2519
2519
|
return he(n.map(function(r) {
|
|
2520
2520
|
return t.getFromRelativePath(r);
|
|
2521
2521
|
}));
|
|
@@ -2554,12 +2554,12 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2554
2554
|
var r = this.parent;
|
|
2555
2555
|
if (!t) {
|
|
2556
2556
|
var o = this.target;
|
|
2557
|
-
return o ? he(
|
|
2557
|
+
return o ? he(Qn(o).map(function(a) {
|
|
2558
2558
|
return r.getFromRelativePath(a);
|
|
2559
2559
|
})) : r.initialStateNodes;
|
|
2560
2560
|
}
|
|
2561
2561
|
var i = $c(r.path, "states")(t).current;
|
|
2562
|
-
return re(i) ? [r.getStateNode(i)] : he(
|
|
2562
|
+
return re(i) ? [r.getStateNode(i)] : he(Qn(i).map(function(a) {
|
|
2563
2563
|
return n.history === "deep" ? r.getFromRelativePath(a) : [r.states[a[0]]];
|
|
2564
2564
|
}));
|
|
2565
2565
|
}, Object.defineProperty(e.prototype, "stateIds", {
|
|
@@ -2661,7 +2661,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2661
2661
|
var n = this, r = qc(t.target), o = "internal" in t ? t.internal : r ? r.some(function(l) {
|
|
2662
2662
|
return re(l) && l[0] === n.delimiter;
|
|
2663
2663
|
}) : !0, i = this.machine.options.guards, a = this.resolveTarget(r), s = H(H({}, t), {
|
|
2664
|
-
actions:
|
|
2664
|
+
actions: sr(Be(t.actions)),
|
|
2665
2665
|
cond: ua(t.cond, i),
|
|
2666
2666
|
target: a,
|
|
2667
2667
|
source: this,
|
|
@@ -2684,15 +2684,15 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2684
2684
|
else if (Array.isArray(this.config.on))
|
|
2685
2685
|
o = this.config.on;
|
|
2686
2686
|
else {
|
|
2687
|
-
var i = this.config.on, a =
|
|
2687
|
+
var i = this.config.on, a = Lr, s = i[a], l = s === void 0 ? [] : s, d = po(i, [typeof a == "symbol" ? a : a + ""]);
|
|
2688
2688
|
o = he(Object.keys(d).map(function(m) {
|
|
2689
2689
|
var w = Lt(m, d[m]);
|
|
2690
2690
|
return w;
|
|
2691
|
-
}).concat(Lt(
|
|
2691
|
+
}).concat(Lt(Lr, l)));
|
|
2692
2692
|
}
|
|
2693
2693
|
var g = this.config.always ? Lt("", this.config.always) : [], u = this.config.onDone ? Lt(String(Un(this.id)), this.config.onDone) : [], c = he(this.invoke.map(function(m) {
|
|
2694
2694
|
var w = [];
|
|
2695
|
-
return m.onDone && w.push.apply(w, ye([], oe(Lt(String(
|
|
2695
|
+
return m.onDone && w.push.apply(w, ye([], oe(Lt(String(Xn(m.id)), m.onDone)), !1)), m.onError && w.push.apply(w, ye([], oe(Lt(String(bn(m.id)), m.onError)), !1)), w;
|
|
2696
2696
|
})), h = this.after, f = he(ye(ye(ye(ye([], oe(u), !1), oe(c), !1), oe(o), !1), oe(g), !1).map(function(m) {
|
|
2697
2697
|
return Be(m).map(function(w) {
|
|
2698
2698
|
return r.formatTransition(w);
|
|
@@ -2718,7 +2718,7 @@ var Fn = "", ro = "#", Dr = "*", Ht = {}, $t = function(e) {
|
|
|
2718
2718
|
}, e;
|
|
2719
2719
|
})()
|
|
2720
2720
|
);
|
|
2721
|
-
function
|
|
2721
|
+
function Sr(e, t) {
|
|
2722
2722
|
return new _l(e, t);
|
|
2723
2723
|
}
|
|
2724
2724
|
var me = tl, Tn = On, We = Gc, vn = ol;
|
|
@@ -2936,16 +2936,16 @@ function Al(e) {
|
|
|
2936
2936
|
var t = parseInt(e);
|
|
2937
2937
|
return t.toString() === e ? t : e;
|
|
2938
2938
|
}
|
|
2939
|
-
function
|
|
2939
|
+
function ur(e, t, n) {
|
|
2940
2940
|
return e == null ? t ? n ? [] : {} : e : Gt(e) ? e.slice() : ao({}, e);
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function dr(e, t) {
|
|
2943
2943
|
if (e !== t && ei(e) && ei(t)) {
|
|
2944
2944
|
var n = {};
|
|
2945
2945
|
for (var r in e)
|
|
2946
|
-
zt.call(e, r) && (zt.call(t, r) ? n[r] =
|
|
2946
|
+
zt.call(e, r) && (zt.call(t, r) ? n[r] = dr(e[r], t[r]) : n[r] = e[r]);
|
|
2947
2947
|
for (r in t)
|
|
2948
|
-
zt.call(t, r) && (n[r] =
|
|
2948
|
+
zt.call(t, r) && (n[r] = dr(e[r], t[r]));
|
|
2949
2949
|
return n;
|
|
2950
2950
|
}
|
|
2951
2951
|
return t;
|
|
@@ -2956,7 +2956,7 @@ function it(e, t, n, r) {
|
|
|
2956
2956
|
if (wa(n))
|
|
2957
2957
|
return it(e, t, n.split(".").map(Al), r);
|
|
2958
2958
|
var o = n[0];
|
|
2959
|
-
return (!e || e === t) && (e =
|
|
2959
|
+
return (!e || e === t) && (e = ur(t, !0, io(o))), n.length === 1 ? r(e, o) : (t != null && (t = t[o]), e[o] = it(e[o], t, n.slice(1), r), e);
|
|
2960
2960
|
}
|
|
2961
2961
|
var je = {};
|
|
2962
2962
|
je.set = function(e, t, n, r) {
|
|
@@ -2965,7 +2965,7 @@ je.set = function(e, t, n, r) {
|
|
|
2965
2965
|
});
|
|
2966
2966
|
};
|
|
2967
2967
|
je.update = function(e, t, n, r) {
|
|
2968
|
-
return Je(n) ? r(
|
|
2968
|
+
return Je(n) ? r(ur(t)) : it(e, t, n, function(o, i) {
|
|
2969
2969
|
return o[i] = r(o[i]), o;
|
|
2970
2970
|
});
|
|
2971
2971
|
};
|
|
@@ -3000,18 +3000,18 @@ je.del = function(e, t, n) {
|
|
|
3000
3000
|
});
|
|
3001
3001
|
};
|
|
3002
3002
|
je.assign = function(e, t, n, r) {
|
|
3003
|
-
return Je(n) ? Je(r) ? t : ao(
|
|
3003
|
+
return Je(n) ? Je(r) ? t : ao(ur(t), r) : it(e, t, n, function(o, i) {
|
|
3004
3004
|
r = Object(r);
|
|
3005
|
-
var a =
|
|
3005
|
+
var a = ur(o[i], !0);
|
|
3006
3006
|
return ao(a, r), o[i] = a, o;
|
|
3007
3007
|
});
|
|
3008
3008
|
};
|
|
3009
3009
|
je.merge = function(e, t, n, r) {
|
|
3010
|
-
return Je(n) ? Je(r) ? t :
|
|
3011
|
-
return r = Object(r), o[i] =
|
|
3010
|
+
return Je(n) ? Je(r) ? t : dr(t, r) : it(e, t, n, function(o, i) {
|
|
3011
|
+
return r = Object(r), o[i] = dr(o[i], r), o;
|
|
3012
3012
|
});
|
|
3013
3013
|
};
|
|
3014
|
-
var Nl = je.set.bind(null, null),
|
|
3014
|
+
var Nl = je.set.bind(null, null), er = je.update.bind(null, null);
|
|
3015
3015
|
je.push.bind(null, null);
|
|
3016
3016
|
je.insert.bind(null, null);
|
|
3017
3017
|
je.del.bind(null, null);
|
|
@@ -3038,8 +3038,8 @@ function Hl(e, t, n) {
|
|
|
3038
3038
|
throw new Error("Random bytes length must be >= 16");
|
|
3039
3039
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, jl(r);
|
|
3040
3040
|
}
|
|
3041
|
-
var
|
|
3042
|
-
|
|
3041
|
+
var tr = { exports: {} };
|
|
3042
|
+
tr.exports;
|
|
3043
3043
|
var ni;
|
|
3044
3044
|
function $l() {
|
|
3045
3045
|
return ni || (ni = 1, (function(e, t) {
|
|
@@ -3107,7 +3107,7 @@ function $l() {
|
|
|
3107
3107
|
return b ? "Symbol(src)_1." + b : "";
|
|
3108
3108
|
})(), p = ft.toString, x = RegExp(
|
|
3109
3109
|
"^" + wt.call(T).replace(ue, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3110
|
-
), A = Oe ? de.Buffer : void 0, O = de.Symbol, L = de.Uint8Array, U = ft.propertyIsEnumerable, V = un.splice, Z = O ? O.toStringTag : void 0, X = Object.getOwnPropertySymbols, ae = A ? A.isBuffer : void 0, le = cn(Object.keys, Object), xe = Dt(de, "DataView"), Te = Dt(de, "Map"), Ze = Dt(de, "Promise"), dn = Dt(de, "Set"),
|
|
3110
|
+
), A = Oe ? de.Buffer : void 0, O = de.Symbol, L = de.Uint8Array, U = ft.propertyIsEnumerable, V = un.splice, Z = O ? O.toStringTag : void 0, X = Object.getOwnPropertySymbols, ae = A ? A.isBuffer : void 0, le = cn(Object.keys, Object), xe = Dt(de, "DataView"), Te = Dt(de, "Map"), Ze = Dt(de, "Promise"), dn = Dt(de, "Set"), Nr = Dt(de, "WeakMap"), fn = Dt(Object, "create"), Ls = kt(xe), Hs = kt(Te), $s = kt(Ze), Ms = kt(dn), Ws = kt(Nr), Do = O ? O.prototype : void 0, Ir = Do ? Do.valueOf : void 0;
|
|
3111
3111
|
function St(b) {
|
|
3112
3112
|
var _ = -1, j = b == null ? 0 : b.length;
|
|
3113
3113
|
for (this.clear(); ++_ < j; ) {
|
|
@@ -3238,7 +3238,7 @@ function $l() {
|
|
|
3238
3238
|
}
|
|
3239
3239
|
pt.prototype.clear = oc, pt.prototype.delete = ic, pt.prototype.get = ac, pt.prototype.has = sc, pt.prototype.set = cc;
|
|
3240
3240
|
function lc(b, _) {
|
|
3241
|
-
var j = Hn(b), z = !j && _c(b), pe = !j && !z &&
|
|
3241
|
+
var j = Hn(b), z = !j && _c(b), pe = !j && !z && jr(b), Q = !j && !z && !pe && Fo(b), ge = j || z || pe || Q, Se = ge ? on(b.length, String) : [], _e = Se.length;
|
|
3242
3242
|
for (var ve in b)
|
|
3243
3243
|
T.call(b, ve) && !(ge && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
3244
3244
|
(ve == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -3270,8 +3270,8 @@ function $l() {
|
|
|
3270
3270
|
var ge = Hn(b), Se = Hn(_), _e = ge ? l : ht(b), ve = Se ? l : ht(_);
|
|
3271
3271
|
_e = _e == s ? m : _e, ve = ve == s ? m : ve;
|
|
3272
3272
|
var Pe = _e == m, Ve = ve == m, Ce = _e == ve;
|
|
3273
|
-
if (Ce &&
|
|
3274
|
-
if (!
|
|
3273
|
+
if (Ce && jr(b)) {
|
|
3274
|
+
if (!jr(_))
|
|
3275
3275
|
return !1;
|
|
3276
3276
|
ge = !0, Pe = !1;
|
|
3277
3277
|
}
|
|
@@ -3366,8 +3366,8 @@ function $l() {
|
|
|
3366
3366
|
var Pe = $o(Se(b), Se(_), z, pe, Q, ge);
|
|
3367
3367
|
return ge.delete(b), Pe;
|
|
3368
3368
|
case C:
|
|
3369
|
-
if (
|
|
3370
|
-
return
|
|
3369
|
+
if (Ir)
|
|
3370
|
+
return Ir.call(b) == Ir.call(_);
|
|
3371
3371
|
}
|
|
3372
3372
|
return !1;
|
|
3373
3373
|
}
|
|
@@ -3428,7 +3428,7 @@ function $l() {
|
|
|
3428
3428
|
return U.call(b, _);
|
|
3429
3429
|
}));
|
|
3430
3430
|
} : Rc, ht = pn;
|
|
3431
|
-
(xe && ht(new xe(new ArrayBuffer(1))) != $ || Te && ht(new Te()) != v || Ze && ht(Ze.resolve()) != w || dn && ht(new dn()) != I ||
|
|
3431
|
+
(xe && ht(new xe(new ArrayBuffer(1))) != $ || Te && ht(new Te()) != v || Ze && ht(Ze.resolve()) != w || dn && ht(new dn()) != I || Nr && ht(new Nr()) != P) && (ht = function(b) {
|
|
3432
3432
|
var _ = pn(b), j = _ == m ? b.constructor : void 0, z = j ? kt(j) : "";
|
|
3433
3433
|
if (z)
|
|
3434
3434
|
switch (z) {
|
|
@@ -3486,7 +3486,7 @@ function $l() {
|
|
|
3486
3486
|
function kc(b) {
|
|
3487
3487
|
return b != null && zo(b.length) && !Uo(b);
|
|
3488
3488
|
}
|
|
3489
|
-
var
|
|
3489
|
+
var jr = ae || Oc;
|
|
3490
3490
|
function Tc(b, _) {
|
|
3491
3491
|
return Ho(b, _);
|
|
3492
3492
|
}
|
|
@@ -3517,13 +3517,13 @@ function $l() {
|
|
|
3517
3517
|
return !1;
|
|
3518
3518
|
}
|
|
3519
3519
|
e.exports = Tc;
|
|
3520
|
-
})(
|
|
3520
|
+
})(tr, tr.exports)), tr.exports;
|
|
3521
3521
|
}
|
|
3522
3522
|
var Ml = $l();
|
|
3523
3523
|
const xn = /* @__PURE__ */ Nt(Ml), Wl = "EXPERIENCE_STARTED", ri = "SHOW", Ct = "STOP_EXPERIENCE", mt = {
|
|
3524
3524
|
NAVIGATION: "navigation",
|
|
3525
3525
|
DISMISSED: "dismissed"
|
|
3526
|
-
}, Ul = "EXTENDED_EVENT", Sa = "START_STEP", bo = "STOP_STEP", _a = "UPDATE_STEP", ka = "SET_STEP_CONTAINER_TARGET", Ta = "UPDATE_STEP_CONTENT", zl = "RECOVER_STEP", Vl = "AUTO_RECOVER_STEP", Fl = "PARENT_RECOVER_STEP", Bl = "ERROR", ql = "STEP_INTERACTION", Kl = "STEP_SEEN", Ca = "UPDATE_ROOT_STYLE", Zl = "RELOAD", Ra = "STEP_STOPPED", Gl = "EXPERIENCE_DISMISSED", Jl = "EXPERIENCE_SNOOZED", Ql = "FORWARD_TO_PARENT", Oa = "TRANSITION_TO_END", Aa = "ACTIONS_STARTED", Na = "ACTIONS_FINISHED", Xl = "experience.begin", Yl = "experience.end", Eo = "step.begin", Ia = "step.prerender", ja = "step.postrender",
|
|
3526
|
+
}, Ul = "EXTENDED_EVENT", Sa = "START_STEP", bo = "STOP_STEP", _a = "UPDATE_STEP", ka = "SET_STEP_CONTAINER_TARGET", Ta = "UPDATE_STEP_CONTENT", zl = "RECOVER_STEP", Vl = "AUTO_RECOVER_STEP", Fl = "PARENT_RECOVER_STEP", Bl = "ERROR", ql = "STEP_INTERACTION", Kl = "STEP_SEEN", Ca = "UPDATE_ROOT_STYLE", Zl = "RELOAD", Ra = "STEP_STOPPED", Gl = "EXPERIENCE_DISMISSED", Jl = "EXPERIENCE_SNOOZED", Ql = "FORWARD_TO_PARENT", Oa = "TRANSITION_TO_END", Aa = "ACTIONS_STARTED", Na = "ACTIONS_FINISHED", Xl = "experience.begin", Yl = "experience.end", Eo = "step.begin", Ia = "step.prerender", ja = "step.postrender", fr = "step.end", Pa = "step.error", Da = "step.container_change", La = "RUN_HOOKS", eu = "RUN_HOOKS_DONE", xo = "START_THEME_REMOVAL_LISTENER", Ha = "STOP_THEME_REMOVAL_LISTENER", tu = "GLOBAL_CONTAINER_REMOVED", wo = "STEP_CONTAINER_REMOVED", _n = "appcues-experience-container", An = "APPCUES-EXPERIENCE-CONTAINER", Nn = "APPCUES-EXPERIENCE-CONTAINER-BUILDER", $a = "data-appcues-container-id", _r = "RUN_TRAITS_DONE", Ma = "RUN_TRAITS_ERROR", nu = "BIND_ACTIONS_ERROR", ru = () => {
|
|
3527
3527
|
const e = /* @__PURE__ */ new Map(), t = (r) => {
|
|
3528
3528
|
const { observerInstance: o } = e.get(r);
|
|
3529
3529
|
if (o) return;
|
|
@@ -4299,15 +4299,15 @@ function xu() {
|
|
|
4299
4299
|
}
|
|
4300
4300
|
var wu = xu();
|
|
4301
4301
|
const Su = /* @__PURE__ */ Nt(wu), _u = 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", ku = 9999;
|
|
4302
|
-
let
|
|
4302
|
+
let pr = {
|
|
4303
4303
|
fastBaseUrl: null,
|
|
4304
4304
|
// null means use default
|
|
4305
4305
|
useAssetsPath: !1
|
|
4306
4306
|
// when true, use simplified theme path format
|
|
4307
4307
|
};
|
|
4308
4308
|
const Tu = (e = {}) => {
|
|
4309
|
-
|
|
4310
|
-
}, Cu = () =>
|
|
4309
|
+
pr = { ...pr, ...e };
|
|
4310
|
+
}, Cu = () => pr.fastBaseUrl ?? _u, ui = () => pr.useAssetsPath;
|
|
4311
4311
|
function Ru(e) {
|
|
4312
4312
|
return e.replace(/\/+$/, "");
|
|
4313
4313
|
}
|
|
@@ -4670,7 +4670,7 @@ const qu = ({
|
|
|
4670
4670
|
let i = () => {
|
|
4671
4671
|
};
|
|
4672
4672
|
return o(({ type: a, step: s, experience: l }) => {
|
|
4673
|
-
if (a ===
|
|
4673
|
+
if (a === _r) {
|
|
4674
4674
|
i();
|
|
4675
4675
|
try {
|
|
4676
4676
|
const { findId: d, traverseTree: g, injectHandlers: u } = n("vNodeHandlers"), c = JSON.parse(
|
|
@@ -4777,7 +4777,7 @@ const qu = ({
|
|
|
4777
4777
|
},
|
|
4778
4778
|
trait: o
|
|
4779
4779
|
})
|
|
4780
|
-
), n(
|
|
4780
|
+
), n(_r);
|
|
4781
4781
|
} catch {
|
|
4782
4782
|
n(Ma);
|
|
4783
4783
|
}
|
|
@@ -4909,7 +4909,7 @@ const Qt = Array.isArray;
|
|
|
4909
4909
|
function Ot(e) {
|
|
4910
4910
|
return typeof e == "string" || typeof e == "number" || e instanceof String || e instanceof Number;
|
|
4911
4911
|
}
|
|
4912
|
-
const
|
|
4912
|
+
const Hr = Ne("", {}, [], void 0, void 0);
|
|
4913
4913
|
function gn(e, t) {
|
|
4914
4914
|
var n, r;
|
|
4915
4915
|
const o = e.key === t.key, i = ((n = e.data) === null || n === void 0 ? void 0 : n.is) === ((r = t.data) === null || r === void 0 ? void 0 : r.is), a = e.sel === t.sel, s = !e.sel && e.sel === t.sel ? typeof e.text == typeof t.text : !0;
|
|
@@ -4983,16 +4983,16 @@ function Ga(e, t, n) {
|
|
|
4983
4983
|
else if (N !== void 0) {
|
|
4984
4984
|
const P = N.indexOf("#"), D = N.indexOf(".", P), $ = P > 0 ? P : N.length, F = D > 0 ? D : N.length, Y = P !== -1 || D !== -1 ? N.slice(0, Math.min($, F)) : N, G = I?.ns, te = G === void 0 ? o.createElement(Y, I) : o.createElementNS(G, Y, I);
|
|
4985
4985
|
for (f.elm = te, $ < F && te.setAttribute("id", N.slice($ + 1, F)), D > 0 && te.setAttribute("class", N.slice(F + 1).replace(/\./g, " ")), S = 0; S < r.create.length; ++S)
|
|
4986
|
-
r.create[S](
|
|
4986
|
+
r.create[S](Hr, f);
|
|
4987
4987
|
if (Ot(f.text) && (!Qt(C) || C.length === 0) && o.appendChild(te, o.createTextNode(f.text)), Qt(C))
|
|
4988
4988
|
for (S = 0; S < C.length; ++S) {
|
|
4989
4989
|
const se = C[S];
|
|
4990
4990
|
se != null && o.appendChild(te, l(se, v));
|
|
4991
4991
|
}
|
|
4992
|
-
R !== void 0 && ((m = R.create) === null || m === void 0 || m.call(R,
|
|
4992
|
+
R !== void 0 && ((m = R.create) === null || m === void 0 || m.call(R, Hr, f), R.insert !== void 0 && v.push(f));
|
|
4993
4993
|
} else if (!((w = n?.experimental) === null || w === void 0) && w.fragments && f.children) {
|
|
4994
4994
|
for (f.elm = ((k = o.createDocumentFragment) !== null && k !== void 0 ? k : hd)(), S = 0; S < r.create.length; ++S)
|
|
4995
|
-
r.create[S](
|
|
4995
|
+
r.create[S](Hr, f);
|
|
4996
4996
|
for (S = 0; S < f.children.length; ++S) {
|
|
4997
4997
|
const P = f.children[S];
|
|
4998
4998
|
P != null && o.appendChild(f.elm, l(P, v));
|
|
@@ -5070,14 +5070,14 @@ function Ga(e, t, n) {
|
|
|
5070
5070
|
return v;
|
|
5071
5071
|
};
|
|
5072
5072
|
}
|
|
5073
|
-
function
|
|
5073
|
+
function kr(e, t, n) {
|
|
5074
5074
|
if (e.ns = "http://www.w3.org/2000/svg", n !== "foreignObject" && t !== void 0)
|
|
5075
5075
|
for (let r = 0; r < t.length; ++r) {
|
|
5076
5076
|
const o = t[r];
|
|
5077
5077
|
if (typeof o == "string")
|
|
5078
5078
|
continue;
|
|
5079
5079
|
const i = o.data;
|
|
5080
|
-
i !== void 0 &&
|
|
5080
|
+
i !== void 0 && kr(i, o.children, o.sel);
|
|
5081
5081
|
}
|
|
5082
5082
|
}
|
|
5083
5083
|
function at(e, t, n) {
|
|
@@ -5085,7 +5085,7 @@ function at(e, t, n) {
|
|
|
5085
5085
|
if (n !== void 0 ? (t !== null && (r = t), Qt(n) ? o = n : Ot(n) ? i = n.toString() : n && n.sel && (o = [n])) : t != null && (Qt(t) ? o = t : Ot(t) ? i = t.toString() : t && t.sel ? o = [t] : r = t), o !== void 0)
|
|
5086
5086
|
for (a = 0; a < o.length; ++a)
|
|
5087
5087
|
Ot(o[a]) && (o[a] = Ne(void 0, void 0, void 0, o[a], void 0));
|
|
5088
|
-
return e.startsWith("svg") && (e.length === 3 || e[3] === "." || e[3] === "#") &&
|
|
5088
|
+
return e.startsWith("svg") && (e.length === 3 || e[3] === "." || e[3] === "#") && kr(r, o, e), Ne(e, r, o, i, void 0);
|
|
5089
5089
|
}
|
|
5090
5090
|
function so(e) {
|
|
5091
5091
|
let t, n;
|
|
@@ -5094,28 +5094,28 @@ function so(e) {
|
|
|
5094
5094
|
Ot(t[r]) && (t[r] = Ne(void 0, void 0, void 0, t[r], void 0));
|
|
5095
5095
|
return Ne(void 0, {}, t, n, void 0);
|
|
5096
5096
|
}
|
|
5097
|
-
function
|
|
5097
|
+
function nr(e, t) {
|
|
5098
5098
|
var n;
|
|
5099
5099
|
const r = (n = t.data) === null || n === void 0 ? void 0 : n.ns;
|
|
5100
|
-
e.data.fn = t.data.fn, e.data.args = t.data.args, t.data = e.data, t.children = e.children, t.text = e.text, t.elm = e.elm, r &&
|
|
5100
|
+
e.data.fn = t.data.fn, e.data.args = t.data.args, t.data = e.data, t.children = e.children, t.text = e.text, t.elm = e.elm, r && kr(t.data, t.children, t.sel);
|
|
5101
5101
|
}
|
|
5102
5102
|
function bd(e) {
|
|
5103
5103
|
const t = e.data, n = t.fn(...t.args);
|
|
5104
|
-
|
|
5104
|
+
nr(n, e);
|
|
5105
5105
|
}
|
|
5106
5106
|
function Ed(e, t) {
|
|
5107
5107
|
let n;
|
|
5108
5108
|
const r = e.data, o = t.data, i = r.args, a = o.args;
|
|
5109
5109
|
if (r.fn !== o.fn || i.length !== a.length) {
|
|
5110
|
-
|
|
5110
|
+
nr(o.fn(...a), t);
|
|
5111
5111
|
return;
|
|
5112
5112
|
}
|
|
5113
5113
|
for (n = 0; n < a.length; ++n)
|
|
5114
5114
|
if (i[n] !== a[n]) {
|
|
5115
|
-
|
|
5115
|
+
nr(o.fn(...a), t);
|
|
5116
5116
|
return;
|
|
5117
5117
|
}
|
|
5118
|
-
|
|
5118
|
+
nr(e, t);
|
|
5119
5119
|
}
|
|
5120
5120
|
const xd = function(e, t, n, r) {
|
|
5121
5121
|
return r === void 0 && (r = n, n = t, t = void 0), at(e, {
|
|
@@ -5159,7 +5159,7 @@ function Ja(e, t) {
|
|
|
5159
5159
|
h = y[f].nodeName, h.startsWith("data-") ? g[Cd(h)] = y[f].nodeValue || "" : h !== "id" && h !== "class" && (d[h] = y[f].nodeValue);
|
|
5160
5160
|
for (f = 0, v = E.length; f < v; f++)
|
|
5161
5161
|
c.push(Ja(E[f], t));
|
|
5162
|
-
return Object.keys(d).length > 0 && (u.attrs = d), Object.keys(g).length > 0 && (u.dataset = g), l.startsWith("svg") && (l.length === 3 || l[3] === "." || l[3] === "#") &&
|
|
5162
|
+
return Object.keys(d).length > 0 && (u.attrs = d), Object.keys(g).length > 0 && (u.dataset = g), l.startsWith("svg") && (l.length === 3 || l[3] === "." || l[3] === "#") && kr(u, c, l), Ne(l, u, c, void 0, e);
|
|
5163
5163
|
} else return r.isText(e) ? (o = r.getTextContent(e), Ne(void 0, void 0, void 0, o, e)) : r.isComment(e) ? (o = r.getTextContent(e), Ne("!", {}, [], o, e)) : Ne("", {}, [], void 0, e);
|
|
5164
5164
|
}
|
|
5165
5165
|
const Rd = "http://www.w3.org/1999/xlink", Od = "http://www.w3.org/2000/xmlns/", Ad = "http://www.w3.org/XML/1998/namespace", pi = 58, Nd = 120, Id = 109;
|
|
@@ -5226,7 +5226,7 @@ function Dd() {
|
|
|
5226
5226
|
Pd(t, e.vnode);
|
|
5227
5227
|
};
|
|
5228
5228
|
}
|
|
5229
|
-
function
|
|
5229
|
+
function $r(e, t) {
|
|
5230
5230
|
const n = e.data.on, r = e.listener, o = e.elm, i = t && t.data.on, a = t && t.elm;
|
|
5231
5231
|
let s;
|
|
5232
5232
|
if (n !== i) {
|
|
@@ -5249,9 +5249,9 @@ function Hr(e, t) {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
}
|
|
5251
5251
|
const es = {
|
|
5252
|
-
create:
|
|
5253
|
-
update:
|
|
5254
|
-
destroy:
|
|
5252
|
+
create: $r,
|
|
5253
|
+
update: $r,
|
|
5254
|
+
destroy: $r
|
|
5255
5255
|
};
|
|
5256
5256
|
function mi(e, t) {
|
|
5257
5257
|
let n, r, o;
|
|
@@ -5518,7 +5518,7 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5518
5518
|
isEventEnabled: Gd
|
|
5519
5519
|
}
|
|
5520
5520
|
};
|
|
5521
|
-
}, Jd =
|
|
5521
|
+
}, Jd = Sr({
|
|
5522
5522
|
initial: "waitingForAsyncEvents",
|
|
5523
5523
|
context: {
|
|
5524
5524
|
runHooksDone: !1
|
|
@@ -5584,7 +5584,7 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5584
5584
|
type: "final"
|
|
5585
5585
|
}
|
|
5586
5586
|
}
|
|
5587
|
-
}), Qd =
|
|
5587
|
+
}), Qd = Sr({
|
|
5588
5588
|
initial: "waitingForAsyncEvents",
|
|
5589
5589
|
context: {
|
|
5590
5590
|
runHooksDone: !1
|
|
@@ -6035,7 +6035,7 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6035
6035
|
getRoot: C,
|
|
6036
6036
|
getWindowReference: v
|
|
6037
6037
|
}), J = $u(o), ue = rs(o), be = (B) => B.contentType === "text/html" ? a(Kd(qd(B.content))) : s(B.content);
|
|
6038
|
-
return
|
|
6038
|
+
return Sr(
|
|
6039
6039
|
{
|
|
6040
6040
|
...Xd,
|
|
6041
6041
|
context: {
|
|
@@ -6082,7 +6082,7 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6082
6082
|
updateStepContext: Pu,
|
|
6083
6083
|
rebindActions: Tn(
|
|
6084
6084
|
(B) => ({
|
|
6085
|
-
type:
|
|
6085
|
+
type: _r,
|
|
6086
6086
|
step: B.step,
|
|
6087
6087
|
experience: B.experience
|
|
6088
6088
|
}),
|
|
@@ -6149,9 +6149,9 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6149
6149
|
isHooksDoneEventPreRenderType: (B, W) => W.hookType === Ia,
|
|
6150
6150
|
isHooksDoneEventBeginType: (B, W) => W.hookType === Eo,
|
|
6151
6151
|
isHooksDoneEventErrorType: (B, W) => W.hookType === Pa,
|
|
6152
|
-
isHooksDoneEventEndType: (B, W) => W.hookType ===
|
|
6152
|
+
isHooksDoneEventEndType: (B, W) => W.hookType === fr,
|
|
6153
6153
|
hasPendingActions: (B) => B.actionsRunning,
|
|
6154
|
-
shouldFireStepCompletedEvent: (B, W) => W.hookType ===
|
|
6154
|
+
shouldFireStepCompletedEvent: (B, W) => W.hookType === fr && // Require that the step has been seen, otherwise it cannot be completed
|
|
6155
6155
|
B.blockedEvents.STEP_SEEN && B.stopReason !== mt.NAVIGATION && B.stopReason !== mt.DISMISSED
|
|
6156
6156
|
}
|
|
6157
6157
|
}
|
|
@@ -6277,7 +6277,7 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6277
6277
|
}), pf = me({
|
|
6278
6278
|
experience: ({ experience: e }, t) => {
|
|
6279
6279
|
const n = e.steps.findIndex((r) => r.id === t.id);
|
|
6280
|
-
return n === -1 ? e :
|
|
6280
|
+
return n === -1 ? e : er(
|
|
6281
6281
|
e,
|
|
6282
6282
|
`steps.${n}.traits`,
|
|
6283
6283
|
(r) => r.filter(({ once: o = !1 }) => !o)
|
|
@@ -6297,7 +6297,7 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6297
6297
|
i
|
|
6298
6298
|
)
|
|
6299
6299
|
})
|
|
6300
|
-
), n(
|
|
6300
|
+
), n(_r);
|
|
6301
6301
|
} catch {
|
|
6302
6302
|
n(Ma);
|
|
6303
6303
|
}
|
|
@@ -6324,7 +6324,7 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6324
6324
|
};
|
|
6325
6325
|
},
|
|
6326
6326
|
{ to: "hooksService" }
|
|
6327
|
-
), vf = Et(Xl), gf = Et(Yl), yf = Et(Eo), mf = Et(Ia), bf = Et(ja), Ef = Et(
|
|
6327
|
+
), vf = Et(Xl), gf = Et(Yl), yf = Et(Eo), mf = Et(Ia), bf = Et(ja), Ef = Et(fr), xf = rl(
|
|
6328
6328
|
(e, t) => Et(Pa, { errorEvent: t })
|
|
6329
6329
|
), wf = Et(Da), Sf = () => {
|
|
6330
6330
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = (o = {}, i) => () => (
|
|
@@ -6339,7 +6339,7 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6339
6339
|
get: i,
|
|
6340
6340
|
getContainer: o.getContainer
|
|
6341
6341
|
};
|
|
6342
|
-
[Eo, Da,
|
|
6342
|
+
[Eo, Da, fr].includes(d) && (h = { ...h, ...o });
|
|
6343
6343
|
const f = ({ callback: y, trait: E }) => {
|
|
6344
6344
|
const m = {
|
|
6345
6345
|
..._o({
|
|
@@ -6561,7 +6561,7 @@ const Vd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6561
6561
|
}), g = hf({
|
|
6562
6562
|
addHook: n
|
|
6563
6563
|
}), u = rs(t), c = du(t), h = fu(t), f = vu(t);
|
|
6564
|
-
return
|
|
6564
|
+
return Sr(
|
|
6565
6565
|
{
|
|
6566
6566
|
..._f,
|
|
6567
6567
|
context: {
|
|
@@ -6668,12 +6668,12 @@ function Rf() {
|
|
|
6668
6668
|
wbr: !0
|
|
6669
6669
|
}), _i;
|
|
6670
6670
|
}
|
|
6671
|
-
var
|
|
6671
|
+
var Mr, Ti;
|
|
6672
6672
|
function Of() {
|
|
6673
|
-
if (Ti) return
|
|
6673
|
+
if (Ti) return Mr;
|
|
6674
6674
|
Ti = 1;
|
|
6675
6675
|
var e = /([\w-]+)|=|(['"])([.\s\S]*?)\2/g, t = Rf();
|
|
6676
|
-
return
|
|
6676
|
+
return Mr = function(n) {
|
|
6677
6677
|
var r = 0, o, i = !0, a = {
|
|
6678
6678
|
type: "tag",
|
|
6679
6679
|
name: "",
|
|
@@ -6688,11 +6688,11 @@ function Of() {
|
|
|
6688
6688
|
}
|
|
6689
6689
|
i ? r === 0 ? ((t[s] || n.charAt(n.length - 2) === "/") && (a.voidElement = !0), a.name = s) : (a.attrs[o] = s.replace(/^['"]|['"]$/g, ""), o = void 0) : (o && (a.attrs[o] = o), o = s), r++, i = !1;
|
|
6690
6690
|
}), a;
|
|
6691
|
-
},
|
|
6691
|
+
}, Mr;
|
|
6692
6692
|
}
|
|
6693
|
-
var
|
|
6693
|
+
var Wr, Ci;
|
|
6694
6694
|
function Af() {
|
|
6695
|
-
if (Ci) return
|
|
6695
|
+
if (Ci) return Wr;
|
|
6696
6696
|
Ci = 1;
|
|
6697
6697
|
var e = /(?:<!--[\S\s]*?-->|<(?:"[^"]*"|'[^']*'|[^'">])+>)/g, t = Of(), n = Object.create ? /* @__PURE__ */ Object.create(null) : {};
|
|
6698
6698
|
function r(o, i, a, s, l) {
|
|
@@ -6702,7 +6702,7 @@ function Af() {
|
|
|
6702
6702
|
content: g
|
|
6703
6703
|
});
|
|
6704
6704
|
}
|
|
6705
|
-
return
|
|
6705
|
+
return Wr = function(o, i) {
|
|
6706
6706
|
i || (i = {}), i.components || (i.components = n);
|
|
6707
6707
|
var a = [], s, l = -1, d = [], g = {}, u = !1;
|
|
6708
6708
|
return o.replace(e, function(c, h) {
|
|
@@ -6714,7 +6714,7 @@ function Af() {
|
|
|
6714
6714
|
var f = c.charAt(1) !== "/", v = c.indexOf("<!--") === 0, y = h + c.length, E = o.charAt(y), m;
|
|
6715
6715
|
f && !v && (l++, s = t(c), s.type === "tag" && i.components[s.name] && (s.type = "component", u = !0), !s.voidElement && !u && E && E !== "<" && r(s.children, o, l, y, i.ignoreWhitespace), g[s.tagName] = s, l === 0 && a.push(s), m = d[l - 1], m && m.children.push(s), d[l] = s), (v || !f || s.voidElement) && (v || l--, !u && E !== "<" && E && (m = l === -1 ? a : d[l].children, r(m, o, l, y, i.ignoreWhitespace)));
|
|
6716
6716
|
}), !a.length && o.length && r(a, o, 0, 0, i.ignoreWhitespace), a;
|
|
6717
|
-
},
|
|
6717
|
+
}, Wr;
|
|
6718
6718
|
}
|
|
6719
6719
|
const as = /* @__PURE__ */ kl(Vd);
|
|
6720
6720
|
var Mt = {}, Ri;
|
|
@@ -7372,7 +7372,7 @@ const Di = ({ updateRootStyle: e, getTraitConfig: t }) => {
|
|
|
7372
7372
|
e("step.begin", Di), e("step.container_change", Di);
|
|
7373
7373
|
};
|
|
7374
7374
|
we(sp, lp);
|
|
7375
|
-
const hs = ["top", "right", "bottom", "left"], Li = ["start", "end"], Hi = /* @__PURE__ */ hs.reduce((e, t) => e.concat(t, t + "-" + Li[0], t + "-" + Li[1]), []), Cn = Math.min, Vt = Math.max,
|
|
7375
|
+
const hs = ["top", "right", "bottom", "left"], Li = ["start", "end"], Hi = /* @__PURE__ */ hs.reduce((e, t) => e.concat(t, t + "-" + Li[0], t + "-" + Li[1]), []), Cn = Math.min, Vt = Math.max, hr = Math.round, Ge = (e) => ({
|
|
7376
7376
|
x: e,
|
|
7377
7377
|
y: e
|
|
7378
7378
|
}), up = {
|
|
@@ -7403,11 +7403,11 @@ function Ro(e) {
|
|
|
7403
7403
|
return e === "y" ? "height" : "width";
|
|
7404
7404
|
}
|
|
7405
7405
|
const fp = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
7406
|
-
function
|
|
7406
|
+
function Tr(e) {
|
|
7407
7407
|
return fp.has(tn(e)) ? "y" : "x";
|
|
7408
7408
|
}
|
|
7409
7409
|
function Oo(e) {
|
|
7410
|
-
return vs(
|
|
7410
|
+
return vs(Tr(e));
|
|
7411
7411
|
}
|
|
7412
7412
|
function pp(e, t, n) {
|
|
7413
7413
|
n === void 0 && (n = !1);
|
|
@@ -7438,7 +7438,7 @@ function gs(e) {
|
|
|
7438
7438
|
left: e
|
|
7439
7439
|
};
|
|
7440
7440
|
}
|
|
7441
|
-
function
|
|
7441
|
+
function vr(e) {
|
|
7442
7442
|
const {
|
|
7443
7443
|
x: t,
|
|
7444
7444
|
y: n,
|
|
@@ -7461,7 +7461,7 @@ function Mi(e, t, n) {
|
|
|
7461
7461
|
reference: r,
|
|
7462
7462
|
floating: o
|
|
7463
7463
|
} = e;
|
|
7464
|
-
const i =
|
|
7464
|
+
const i = Tr(t), a = Oo(t), s = Ro(a), l = tn(t), d = i === "y", g = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, c = r[s] / 2 - o[s] / 2;
|
|
7465
7465
|
let h;
|
|
7466
7466
|
switch (l) {
|
|
7467
7467
|
case "top":
|
|
@@ -7565,7 +7565,7 @@ const gp = async (e, t, n) => {
|
|
|
7565
7565
|
middlewareData: h
|
|
7566
7566
|
};
|
|
7567
7567
|
};
|
|
7568
|
-
async function
|
|
7568
|
+
async function gr(e, t) {
|
|
7569
7569
|
var n;
|
|
7570
7570
|
t === void 0 && (t = {});
|
|
7571
7571
|
const {
|
|
@@ -7581,7 +7581,7 @@ async function vr(e, t) {
|
|
|
7581
7581
|
elementContext: u = "floating",
|
|
7582
7582
|
altBoundary: c = !1,
|
|
7583
7583
|
padding: h = 0
|
|
7584
|
-
} = en(t, e), f = gs(h), v = s[c ? u === "floating" ? "reference" : "floating" : u], y =
|
|
7584
|
+
} = en(t, e), f = gs(h), v = s[c ? u === "floating" ? "reference" : "floating" : u], y = vr(await i.getClippingRect({
|
|
7585
7585
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
|
|
7586
7586
|
boundary: d,
|
|
7587
7587
|
rootBoundary: g,
|
|
@@ -7597,7 +7597,7 @@ async function vr(e, t) {
|
|
|
7597
7597
|
} : {
|
|
7598
7598
|
x: 1,
|
|
7599
7599
|
y: 1
|
|
7600
|
-
}, k =
|
|
7600
|
+
}, k = vr(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
7601
7601
|
elements: s,
|
|
7602
7602
|
rect: E,
|
|
7603
7603
|
offsetParent: m,
|
|
@@ -7669,7 +7669,7 @@ const bp = function(e) {
|
|
|
7669
7669
|
allowedPlacements: c = Hi,
|
|
7670
7670
|
autoAlignment: h = !0,
|
|
7671
7671
|
...f
|
|
7672
|
-
} = en(e, t), v = u !== void 0 || c === Hi ? mp(u || null, h, c) : c, y = await
|
|
7672
|
+
} = en(e, t), v = u !== void 0 || c === Hi ? mp(u || null, h, c) : c, y = await gr(t, f), E = ((n = a.autoPlacement) == null ? void 0 : n.index) || 0, m = v[E];
|
|
7673
7673
|
if (m == null)
|
|
7674
7674
|
return {};
|
|
7675
7675
|
const w = pp(m, i, await (l.isRTL == null ? void 0 : l.isRTL(d.floating)));
|
|
@@ -7744,7 +7744,7 @@ const Ep = function(e) {
|
|
|
7744
7744
|
} = en(e, t);
|
|
7745
7745
|
switch (r) {
|
|
7746
7746
|
case "referenceHidden": {
|
|
7747
|
-
const i = await
|
|
7747
|
+
const i = await gr(t, {
|
|
7748
7748
|
...o,
|
|
7749
7749
|
elementContext: "reference"
|
|
7750
7750
|
}), a = Wi(i, n.reference);
|
|
@@ -7756,7 +7756,7 @@ const Ep = function(e) {
|
|
|
7756
7756
|
};
|
|
7757
7757
|
}
|
|
7758
7758
|
case "escaped": {
|
|
7759
|
-
const i = await
|
|
7759
|
+
const i = await gr(t, {
|
|
7760
7760
|
...o,
|
|
7761
7761
|
altBoundary: !0
|
|
7762
7762
|
}), a = Wi(i, n.floating);
|
|
@@ -7778,7 +7778,7 @@ async function wp(e, t) {
|
|
|
7778
7778
|
placement: n,
|
|
7779
7779
|
platform: r,
|
|
7780
7780
|
elements: o
|
|
7781
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = tn(n), s = ot(n), l =
|
|
7781
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = tn(n), s = ot(n), l = Tr(n) === "y", d = xp.has(a) ? -1 : 1, g = i && l ? -1 : 1, u = en(t, e);
|
|
7782
7782
|
let {
|
|
7783
7783
|
mainAxis: c,
|
|
7784
7784
|
crossAxis: h,
|
|
@@ -7850,7 +7850,7 @@ const Sp = function(e) {
|
|
|
7850
7850
|
} = en(e, t), d = {
|
|
7851
7851
|
x: n,
|
|
7852
7852
|
y: r
|
|
7853
|
-
}, g = await
|
|
7853
|
+
}, g = await gr(t, l), u = Tr(tn(o)), c = vs(u);
|
|
7854
7854
|
let h = d[c], f = d[u];
|
|
7855
7855
|
if (i) {
|
|
7856
7856
|
const y = c === "y" ? "top" : "left", E = c === "y" ? "bottom" : "right", m = h + g[y], w = h - g[E];
|
|
@@ -7879,7 +7879,7 @@ const Sp = function(e) {
|
|
|
7879
7879
|
}
|
|
7880
7880
|
};
|
|
7881
7881
|
};
|
|
7882
|
-
function
|
|
7882
|
+
function Cr() {
|
|
7883
7883
|
return typeof window < "u";
|
|
7884
7884
|
}
|
|
7885
7885
|
function nn(e) {
|
|
@@ -7894,16 +7894,16 @@ function ct(e) {
|
|
|
7894
7894
|
return (t = (ys(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
7895
7895
|
}
|
|
7896
7896
|
function ys(e) {
|
|
7897
|
-
return
|
|
7897
|
+
return Cr() ? e instanceof Node || e instanceof De(e).Node : !1;
|
|
7898
7898
|
}
|
|
7899
7899
|
function qe(e) {
|
|
7900
|
-
return
|
|
7900
|
+
return Cr() ? e instanceof Element || e instanceof De(e).Element : !1;
|
|
7901
7901
|
}
|
|
7902
7902
|
function Qe(e) {
|
|
7903
|
-
return
|
|
7903
|
+
return Cr() ? e instanceof HTMLElement || e instanceof De(e).HTMLElement : !1;
|
|
7904
7904
|
}
|
|
7905
7905
|
function zi(e) {
|
|
7906
|
-
return !
|
|
7906
|
+
return !Cr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof De(e).ShadowRoot;
|
|
7907
7907
|
}
|
|
7908
7908
|
const kp = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
7909
7909
|
function jn(e) {
|
|
@@ -7920,7 +7920,7 @@ function Cp(e) {
|
|
|
7920
7920
|
return Tp.has(nn(e));
|
|
7921
7921
|
}
|
|
7922
7922
|
const Rp = [":popover-open", ":modal"];
|
|
7923
|
-
function
|
|
7923
|
+
function Rr(e) {
|
|
7924
7924
|
return Rp.some((t) => {
|
|
7925
7925
|
try {
|
|
7926
7926
|
return e.matches(t);
|
|
@@ -7939,7 +7939,7 @@ function Ip(e) {
|
|
|
7939
7939
|
for (; Qe(t) && !Xt(t); ) {
|
|
7940
7940
|
if (Ao(t))
|
|
7941
7941
|
return t;
|
|
7942
|
-
if (
|
|
7942
|
+
if (Rr(t))
|
|
7943
7943
|
return null;
|
|
7944
7944
|
t = bt(t);
|
|
7945
7945
|
}
|
|
@@ -7955,7 +7955,7 @@ function Xt(e) {
|
|
|
7955
7955
|
function Ke(e) {
|
|
7956
7956
|
return De(e).getComputedStyle(e);
|
|
7957
7957
|
}
|
|
7958
|
-
function
|
|
7958
|
+
function Or(e) {
|
|
7959
7959
|
return qe(e) ? {
|
|
7960
7960
|
scrollLeft: e.scrollLeft,
|
|
7961
7961
|
scrollTop: e.scrollTop
|
|
@@ -7980,15 +7980,15 @@ function ms(e) {
|
|
|
7980
7980
|
const t = bt(e);
|
|
7981
7981
|
return Xt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Qe(t) && jn(t) ? t : ms(t);
|
|
7982
7982
|
}
|
|
7983
|
-
function
|
|
7983
|
+
function yr(e, t, n) {
|
|
7984
7984
|
var r;
|
|
7985
7985
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
7986
7986
|
const o = ms(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = De(o);
|
|
7987
7987
|
if (i) {
|
|
7988
7988
|
const s = uo(a);
|
|
7989
|
-
return t.concat(a, a.visualViewport || [], jn(o) ? o : [], s && n ?
|
|
7989
|
+
return t.concat(a, a.visualViewport || [], jn(o) ? o : [], s && n ? yr(s) : []);
|
|
7990
7990
|
}
|
|
7991
|
-
return t.concat(o,
|
|
7991
|
+
return t.concat(o, yr(o, [], n));
|
|
7992
7992
|
}
|
|
7993
7993
|
function uo(e) {
|
|
7994
7994
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -7996,7 +7996,7 @@ function uo(e) {
|
|
|
7996
7996
|
function bs(e) {
|
|
7997
7997
|
const t = Ke(e);
|
|
7998
7998
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
7999
|
-
const o = Qe(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s =
|
|
7999
|
+
const o = Qe(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = hr(n) !== i || hr(r) !== a;
|
|
8000
8000
|
return s && (n = i, r = a), {
|
|
8001
8001
|
width: n,
|
|
8002
8002
|
height: r,
|
|
@@ -8015,7 +8015,7 @@ function Ft(e) {
|
|
|
8015
8015
|
height: o,
|
|
8016
8016
|
$: i
|
|
8017
8017
|
} = bs(t);
|
|
8018
|
-
let a = (i ?
|
|
8018
|
+
let a = (i ? hr(n.width) : n.width) / r, s = (i ? hr(n.height) : n.height) / o;
|
|
8019
8019
|
return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
8020
8020
|
x: a,
|
|
8021
8021
|
y: s
|
|
@@ -8047,19 +8047,19 @@ function Rn(e, t, n, r) {
|
|
|
8047
8047
|
l *= y.x, d *= y.y, g *= y.x, u *= y.y, l += w, d += k, f = De(v), v = uo(f);
|
|
8048
8048
|
}
|
|
8049
8049
|
}
|
|
8050
|
-
return
|
|
8050
|
+
return vr({
|
|
8051
8051
|
width: g,
|
|
8052
8052
|
height: u,
|
|
8053
8053
|
x: l,
|
|
8054
8054
|
y: d
|
|
8055
8055
|
});
|
|
8056
8056
|
}
|
|
8057
|
-
function
|
|
8058
|
-
const n =
|
|
8057
|
+
function Ar(e, t) {
|
|
8058
|
+
const n = Or(e).scrollLeft;
|
|
8059
8059
|
return t ? t.left + n : Rn(ct(e)).left + n;
|
|
8060
8060
|
}
|
|
8061
8061
|
function ws(e, t) {
|
|
8062
|
-
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft -
|
|
8062
|
+
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Ar(e, n), o = n.top + t.scrollTop;
|
|
8063
8063
|
return {
|
|
8064
8064
|
x: r,
|
|
8065
8065
|
y: o
|
|
@@ -8072,7 +8072,7 @@ function Lp(e) {
|
|
|
8072
8072
|
offsetParent: r,
|
|
8073
8073
|
strategy: o
|
|
8074
8074
|
} = e;
|
|
8075
|
-
const i = o === "fixed", a = ct(r), s = t ?
|
|
8075
|
+
const i = o === "fixed", a = ct(r), s = t ? Rr(t.floating) : !1;
|
|
8076
8076
|
if (r === a || s && i)
|
|
8077
8077
|
return n;
|
|
8078
8078
|
let l = {
|
|
@@ -8080,7 +8080,7 @@ function Lp(e) {
|
|
|
8080
8080
|
scrollTop: 0
|
|
8081
8081
|
}, d = Ge(1);
|
|
8082
8082
|
const g = Ge(0), u = Qe(r);
|
|
8083
|
-
if ((u || !u && !i) && ((nn(r) !== "body" || jn(a)) && (l =
|
|
8083
|
+
if ((u || !u && !i) && ((nn(r) !== "body" || jn(a)) && (l = Or(r)), Qe(r))) {
|
|
8084
8084
|
const h = Rn(r);
|
|
8085
8085
|
d = Ft(r), g.x = h.x + r.clientLeft, g.y = h.y + r.clientTop;
|
|
8086
8086
|
}
|
|
@@ -8096,8 +8096,8 @@ function Hp(e) {
|
|
|
8096
8096
|
return Array.from(e.getClientRects());
|
|
8097
8097
|
}
|
|
8098
8098
|
function $p(e) {
|
|
8099
|
-
const t = ct(e), n =
|
|
8100
|
-
let a = -n.scrollLeft +
|
|
8099
|
+
const t = ct(e), n = Or(e), r = e.ownerDocument.body, o = Vt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Vt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
8100
|
+
let a = -n.scrollLeft + Ar(e);
|
|
8101
8101
|
const s = -n.scrollTop;
|
|
8102
8102
|
return Ke(r).direction === "rtl" && (a += Vt(t.clientWidth, r.clientWidth) - o), {
|
|
8103
8103
|
width: o,
|
|
@@ -8115,7 +8115,7 @@ function Mp(e, t) {
|
|
|
8115
8115
|
const g = No();
|
|
8116
8116
|
(!g || g && t === "fixed") && (s = o.offsetLeft, l = o.offsetTop);
|
|
8117
8117
|
}
|
|
8118
|
-
const d =
|
|
8118
|
+
const d = Ar(r);
|
|
8119
8119
|
if (d <= 0) {
|
|
8120
8120
|
const g = r.ownerDocument, u = g.body, c = getComputedStyle(u), h = g.compatMode === "CSS1Compat" && parseFloat(c.marginLeft) + parseFloat(c.marginRight) || 0, f = Math.abs(r.clientWidth - u.clientWidth - h);
|
|
8121
8121
|
f <= Vi && (i -= f);
|
|
@@ -8154,7 +8154,7 @@ function Fi(e, t, n) {
|
|
|
8154
8154
|
height: t.height
|
|
8155
8155
|
};
|
|
8156
8156
|
}
|
|
8157
|
-
return
|
|
8157
|
+
return vr(r);
|
|
8158
8158
|
}
|
|
8159
8159
|
function Ss(e, t) {
|
|
8160
8160
|
const n = bt(e);
|
|
@@ -8164,7 +8164,7 @@ function zp(e, t) {
|
|
|
8164
8164
|
const n = t.get(e);
|
|
8165
8165
|
if (n)
|
|
8166
8166
|
return n;
|
|
8167
|
-
let r =
|
|
8167
|
+
let r = yr(e, [], !1).filter((s) => qe(s) && nn(s) !== "body"), o = null;
|
|
8168
8168
|
const i = Ke(e).position === "fixed";
|
|
8169
8169
|
let a = i ? bt(e) : e;
|
|
8170
8170
|
for (; qe(a) && !Xt(a); ) {
|
|
@@ -8180,7 +8180,7 @@ function Vp(e) {
|
|
|
8180
8180
|
rootBoundary: r,
|
|
8181
8181
|
strategy: o
|
|
8182
8182
|
} = e;
|
|
8183
|
-
const i = [...n === "clippingAncestors" ?
|
|
8183
|
+
const i = [...n === "clippingAncestors" ? Rr(t) ? [] : zp(t, this._c) : [].concat(n), r], a = i[0], s = i.reduce((l, d) => {
|
|
8184
8184
|
const g = Fi(t, d, o);
|
|
8185
8185
|
return l.top = Vt(g.top, l.top), l.right = Cn(g.right, l.right), l.bottom = Cn(g.bottom, l.bottom), l.left = Vt(g.left, l.left), l;
|
|
8186
8186
|
}, Fi(t, a, o));
|
|
@@ -8209,10 +8209,10 @@ function Bp(e, t, n) {
|
|
|
8209
8209
|
};
|
|
8210
8210
|
const l = Ge(0);
|
|
8211
8211
|
function d() {
|
|
8212
|
-
l.x =
|
|
8212
|
+
l.x = Ar(o);
|
|
8213
8213
|
}
|
|
8214
8214
|
if (r || !r && !i)
|
|
8215
|
-
if ((nn(t) !== "body" || jn(o)) && (s =
|
|
8215
|
+
if ((nn(t) !== "body" || jn(o)) && (s = Or(t)), r) {
|
|
8216
8216
|
const h = Rn(t, !0, i, t);
|
|
8217
8217
|
l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
|
|
8218
8218
|
} else o && d();
|
|
@@ -8225,7 +8225,7 @@ function Bp(e, t, n) {
|
|
|
8225
8225
|
height: a.height
|
|
8226
8226
|
};
|
|
8227
8227
|
}
|
|
8228
|
-
function
|
|
8228
|
+
function Ur(e) {
|
|
8229
8229
|
return Ke(e).position === "static";
|
|
8230
8230
|
}
|
|
8231
8231
|
function Bi(e, t) {
|
|
@@ -8238,21 +8238,21 @@ function Bi(e, t) {
|
|
|
8238
8238
|
}
|
|
8239
8239
|
function _s(e, t) {
|
|
8240
8240
|
const n = De(e);
|
|
8241
|
-
if (
|
|
8241
|
+
if (Rr(e))
|
|
8242
8242
|
return n;
|
|
8243
8243
|
if (!Qe(e)) {
|
|
8244
8244
|
let o = bt(e);
|
|
8245
8245
|
for (; o && !Xt(o); ) {
|
|
8246
|
-
if (qe(o) && !
|
|
8246
|
+
if (qe(o) && !Ur(o))
|
|
8247
8247
|
return o;
|
|
8248
8248
|
o = bt(o);
|
|
8249
8249
|
}
|
|
8250
8250
|
return n;
|
|
8251
8251
|
}
|
|
8252
8252
|
let r = Bi(e, t);
|
|
8253
|
-
for (; r && Cp(r) &&
|
|
8253
|
+
for (; r && Cp(r) && Ur(r); )
|
|
8254
8254
|
r = Bi(r, t);
|
|
8255
|
-
return r && Xt(r) &&
|
|
8255
|
+
return r && Xt(r) && Ur(r) && !Ao(r) ? n : r || Ip(e) || n;
|
|
8256
8256
|
}
|
|
8257
8257
|
const qp = async function(e) {
|
|
8258
8258
|
const t = this.getOffsetParent || _s, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -8293,9 +8293,9 @@ const Zp = {
|
|
|
8293
8293
|
platform: i
|
|
8294
8294
|
});
|
|
8295
8295
|
};
|
|
8296
|
-
var
|
|
8296
|
+
var zr, qi;
|
|
8297
8297
|
function th() {
|
|
8298
|
-
if (qi) return
|
|
8298
|
+
if (qi) return zr;
|
|
8299
8299
|
qi = 1;
|
|
8300
8300
|
var e = "Expected a function", t = 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, l = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, d = typeof self == "object" && self && self.Object === Object && self, g = l || d || Function("return this")(), u = Object.prototype, c = u.toString, h = Math.max, f = Math.min, v = function() {
|
|
8301
8301
|
return g.Date.now();
|
|
@@ -8372,13 +8372,13 @@ function th() {
|
|
|
8372
8372
|
var R = i.test(S);
|
|
8373
8373
|
return R || a.test(S) ? s(S.slice(2), R ? 2 : 8) : o.test(S) ? t : +S;
|
|
8374
8374
|
}
|
|
8375
|
-
return
|
|
8375
|
+
return zr = y, zr;
|
|
8376
8376
|
}
|
|
8377
8377
|
var nh = th();
|
|
8378
8378
|
const ks = /* @__PURE__ */ Nt(nh);
|
|
8379
|
-
var
|
|
8379
|
+
var Vr, Ki;
|
|
8380
8380
|
function rh() {
|
|
8381
|
-
if (Ki) return
|
|
8381
|
+
if (Ki) return Vr;
|
|
8382
8382
|
Ki = 1;
|
|
8383
8383
|
var e = 200, t = "__lodash_hash_undefined__", n = 1 / 0, r = "[object Function]", o = "[object GeneratorFunction]", i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, s = typeof Ue == "object" && Ue && Ue.Object === Object && Ue, l = typeof self == "object" && self && self.Object === Object && self, d = s || l || Function("return this")();
|
|
8384
8384
|
function g(T, M) {
|
|
@@ -8607,7 +8607,7 @@ function rh() {
|
|
|
8607
8607
|
}
|
|
8608
8608
|
function wt() {
|
|
8609
8609
|
}
|
|
8610
|
-
return
|
|
8610
|
+
return Vr = un, Vr;
|
|
8611
8611
|
}
|
|
8612
8612
|
var oh = rh();
|
|
8613
8613
|
const ih = /* @__PURE__ */ Nt(oh), Ts = 10, Cs = 15, ah = (e, t, n, r) => {
|
|
@@ -8670,13 +8670,13 @@ const ih = /* @__PURE__ */ Nt(oh), Ts = 10, Cs = 15, ah = (e, t, n, r) => {
|
|
|
8670
8670
|
mainAxis: g,
|
|
8671
8671
|
crossAxis: u
|
|
8672
8672
|
};
|
|
8673
|
-
},
|
|
8673
|
+
}, mr = (e, t) => {
|
|
8674
8674
|
try {
|
|
8675
8675
|
const n = t(), r = n.document, o = n.getComputedStyle(e), { overflow: i, overflowY: a, overflowX: s } = o, l = /* @__PURE__ */ new Set([i, a, s]);
|
|
8676
8676
|
if (o.position === "fixed" || o.position === "sticky" || l.has("auto") || l.has("hidden"))
|
|
8677
8677
|
return !0;
|
|
8678
8678
|
const { host: d = null } = e?.getRootNode() ?? {}, g = d?.tagName?.includes(An) || d?.tagName?.includes(Nn);
|
|
8679
|
-
return e.parentElement === null && d && !g ?
|
|
8679
|
+
return e.parentElement === null && d && !g ? mr(d.parentElement, t) : e.parentElement !== null && e.parentElement !== r.body ? mr(e.parentElement, t) : !1;
|
|
8680
8680
|
} catch {
|
|
8681
8681
|
return !1;
|
|
8682
8682
|
}
|
|
@@ -8736,7 +8736,7 @@ const lh = (e, t) => {
|
|
|
8736
8736
|
i[r] = a, e.set(n, i), i[r].length === 0 && n.removeEventListener(r, t, !0);
|
|
8737
8737
|
}
|
|
8738
8738
|
};
|
|
8739
|
-
}, { addEventListener:
|
|
8739
|
+
}, { addEventListener: br, removeEventListener: Er } = dh(), fh = () => {
|
|
8740
8740
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = (o) => {
|
|
8741
8741
|
if (t.has(o)) return;
|
|
8742
8742
|
const i = setInterval(() => {
|
|
@@ -8796,13 +8796,13 @@ const lh = (e, t) => {
|
|
|
8796
8796
|
return t = u, n = c, r = h, o = [], this;
|
|
8797
8797
|
},
|
|
8798
8798
|
start() {
|
|
8799
|
-
r && (o = ih([...
|
|
8800
|
-
|
|
8799
|
+
r && (o = ih([...yr(r)])), o.forEach((u) => {
|
|
8800
|
+
br(u, "scroll", d), br(u, "resize", d);
|
|
8801
8801
|
}), i = new ResizeObserver(d), i.observe(n), s = t.getBoundingClientRect(), a = ph(g, 200);
|
|
8802
8802
|
},
|
|
8803
8803
|
remove() {
|
|
8804
8804
|
o.forEach((u) => {
|
|
8805
|
-
|
|
8805
|
+
Er(u, "scroll", d), Er(u, "resize", d);
|
|
8806
8806
|
}), i?.unobserve(n), a();
|
|
8807
8807
|
}
|
|
8808
8808
|
};
|
|
@@ -8917,11 +8917,11 @@ const lh = (e, t) => {
|
|
|
8917
8917
|
if (J) {
|
|
8918
8918
|
const W = G ? y(G.config.target.selector) : null;
|
|
8919
8919
|
if (te) {
|
|
8920
|
-
const Ie = W != null ?
|
|
8920
|
+
const Ie = W != null ? mr(
|
|
8921
8921
|
W[0]?.parentElement,
|
|
8922
8922
|
k
|
|
8923
8923
|
) : !1;
|
|
8924
|
-
c =
|
|
8924
|
+
c = mr(
|
|
8925
8925
|
K[0]?.parentElement,
|
|
8926
8926
|
k
|
|
8927
8927
|
) || Ie ? "fixed" : "absolute", w(N, { position: c });
|
|
@@ -8970,7 +8970,7 @@ const Eh = {
|
|
|
8970
8970
|
"inner-left": "afterbegin",
|
|
8971
8971
|
right: "afterend",
|
|
8972
8972
|
"inner-right": "beforeend"
|
|
8973
|
-
}, xh = "@appcues/inline",
|
|
8973
|
+
}, xh = "@appcues/inline", rr = "appcues-hide", wh = `.${rr} { display: none !important; }`, Sh = ({
|
|
8974
8974
|
distanceUnit: e,
|
|
8975
8975
|
yOffset: t,
|
|
8976
8976
|
xOffset: n,
|
|
@@ -8994,7 +8994,7 @@ function _h({ addHook: e }) {
|
|
|
8994
8994
|
const { document: u } = g();
|
|
8995
8995
|
a = u.createElement("style"), a.textContent = wh, u.head.append(a);
|
|
8996
8996
|
}, d = () => {
|
|
8997
|
-
o.forEach((g) => g.classList.remove(
|
|
8997
|
+
o.forEach((g) => g.classList.remove(rr)), o = [], i.forEach((g) => {
|
|
8998
8998
|
const u = g.firstChild;
|
|
8999
8999
|
u && g.replaceWith(u);
|
|
9000
9000
|
}), i = [], a && (a.remove(), a = null);
|
|
@@ -9034,10 +9034,10 @@ function _h({ addHook: e }) {
|
|
|
9034
9034
|
const { document: fe } = y();
|
|
9035
9035
|
Array.from(q.childNodes).forEach((J) => {
|
|
9036
9036
|
if (J.nodeType === Node.ELEMENT_NODE)
|
|
9037
|
-
J.classList.add(
|
|
9037
|
+
J.classList.add(rr), o.push(J);
|
|
9038
9038
|
else if (J.nodeType === Node.TEXT_NODE && J.textContent.trim()) {
|
|
9039
9039
|
const ue = fe.createElement("span");
|
|
9040
|
-
ue.classList.add(
|
|
9040
|
+
ue.classList.add(rr), J.replaceWith(ue), ue.append(J), i.push(ue);
|
|
9041
9041
|
}
|
|
9042
9042
|
});
|
|
9043
9043
|
} else
|
|
@@ -9121,7 +9121,7 @@ const kh = (e, t, n) => {
|
|
|
9121
9121
|
start: () => {
|
|
9122
9122
|
e.addEventListener("click", t, !0), e.addEventListener("keydown", t);
|
|
9123
9123
|
}
|
|
9124
|
-
}),
|
|
9124
|
+
}), Fr = (e, t, n) => t.length === 0 ? (n("Element not found"), !1) : t.length > 1 ? (n(`More than one element found with id: ${e}`), !1) : !0, Oh = "@appcues/toggle.style", Os = ({ targetId: e, styles: t = {} }, { updateStyle: n }) => {
|
|
9125
9125
|
n(e, t);
|
|
9126
9126
|
}, Qi = {
|
|
9127
9127
|
[Oh]: Os
|
|
@@ -9149,7 +9149,7 @@ const kh = (e, t, n) => {
|
|
|
9149
9149
|
});
|
|
9150
9150
|
const v = ({ on: E } = {}, m) => {
|
|
9151
9151
|
const { reportError: w, step: k, updateStyle: S, getWindowReference: I } = m, R = I().document, C = k.querySelector(`#${r}`);
|
|
9152
|
-
if (!
|
|
9152
|
+
if (!Fr(r, C, w)) return;
|
|
9153
9153
|
i && f();
|
|
9154
9154
|
const N = {};
|
|
9155
9155
|
o || (N.visibility = "hidden", N["pointer-events"] = "none"), S(r, {
|
|
@@ -9160,8 +9160,8 @@ const kh = (e, t, n) => {
|
|
|
9160
9160
|
visibility: "hidden",
|
|
9161
9161
|
"pointer-events": "none"
|
|
9162
9162
|
});
|
|
9163
|
-
}, o.duration * 1e3), a && g && (
|
|
9164
|
-
P.contentDocument?.body &&
|
|
9163
|
+
}, o.duration * 1e3), a && g && (Er(R, "mousemove", s), h.forEach((P) => {
|
|
9164
|
+
P.contentDocument?.body && Er(
|
|
9165
9165
|
P.contentDocument.body,
|
|
9166
9166
|
"mousemove",
|
|
9167
9167
|
s
|
|
@@ -9171,7 +9171,7 @@ const kh = (e, t, n) => {
|
|
|
9171
9171
|
);
|
|
9172
9172
|
}, y = ({ on: E } = {}, m) => {
|
|
9173
9173
|
const { reportError: w, step: k, updateStyle: S, getWindowReference: I } = m, R = I().document, C = k.querySelector(`#${r}`);
|
|
9174
|
-
if (!
|
|
9174
|
+
if (!Fr(r, C, w)) return;
|
|
9175
9175
|
const N = {};
|
|
9176
9176
|
if (o && (N.transition = `opacity ${o.duration}s ${o.easing}`), S(r, {
|
|
9177
9177
|
...N,
|
|
@@ -9208,8 +9208,8 @@ const kh = (e, t, n) => {
|
|
|
9208
9208
|
D.clientX,
|
|
9209
9209
|
D.clientY
|
|
9210
9210
|
) > P && v({ on: E }, { reportError: w, step: k, updateStyle: S, getWindowReference: I });
|
|
9211
|
-
}, 60),
|
|
9212
|
-
D.contentDocument?.body &&
|
|
9211
|
+
}, 60), br(R, "mousemove", s), h.forEach((D) => {
|
|
9212
|
+
D.contentDocument?.body && br(
|
|
9213
9213
|
D.contentDocument.body,
|
|
9214
9214
|
"mousemove",
|
|
9215
9215
|
s
|
|
@@ -9219,7 +9219,7 @@ const kh = (e, t, n) => {
|
|
|
9219
9219
|
};
|
|
9220
9220
|
t("run", ({ on: E } = {}, m) => {
|
|
9221
9221
|
const { step: w, reportError: k, getWindowReference: S } = m, I = w.querySelector(`#${r}`);
|
|
9222
|
-
if (
|
|
9222
|
+
if (Fr(r, I, k)) {
|
|
9223
9223
|
if (S().getComputedStyle(I[0]).visibility === "hidden") {
|
|
9224
9224
|
y({ on: E }, m);
|
|
9225
9225
|
return;
|
|
@@ -9320,35 +9320,43 @@ const As = {
|
|
|
9320
9320
|
for (; t?.shadowRoot?.activeElement; )
|
|
9321
9321
|
t = t.shadowRoot.activeElement;
|
|
9322
9322
|
return t;
|
|
9323
|
-
},
|
|
9323
|
+
}, Br = /* @__PURE__ */ new WeakMap(), zh = (e) => {
|
|
9324
9324
|
const t = As[e?.effect] || e?.keyframes, n = Array.isArray(t) ? t[t.length - 1] : null;
|
|
9325
9325
|
return n ? Number(n.opacity) === 0 || n.visibility === "hidden" || n.display === "none" : !1;
|
|
9326
|
-
},
|
|
9326
|
+
}, Zn = (e, t) => new Promise((n) => {
|
|
9327
9327
|
const {
|
|
9328
9328
|
keyframes: r,
|
|
9329
9329
|
duration: o = $h,
|
|
9330
9330
|
iterations: i,
|
|
9331
9331
|
effect: a,
|
|
9332
9332
|
fill: s = Mh,
|
|
9333
|
-
easing: l = "linear"
|
|
9334
|
-
|
|
9333
|
+
easing: l = "linear",
|
|
9334
|
+
composite: d
|
|
9335
|
+
} = t, g = As[a] || r, u = {
|
|
9335
9336
|
duration: o,
|
|
9336
9337
|
iterations: i,
|
|
9337
9338
|
fill: s,
|
|
9338
|
-
easing: l
|
|
9339
|
+
easing: l,
|
|
9340
|
+
...d ? { composite: d } : {}
|
|
9339
9341
|
};
|
|
9340
|
-
if (!
|
|
9342
|
+
if (!g) {
|
|
9341
9343
|
n();
|
|
9342
9344
|
return;
|
|
9343
9345
|
}
|
|
9344
|
-
const
|
|
9345
|
-
|
|
9346
|
+
const c = e.animate(g, u);
|
|
9347
|
+
c?.addEventListener ? c.addEventListener("finish", n, { once: !0 }) : n();
|
|
9346
9348
|
}), Vh = ({ addHook: e, registerAction: t }, n) => {
|
|
9347
|
-
e("step.
|
|
9349
|
+
n.phase === "exit" ? e("step.end", ({ querySelector: r }) => {
|
|
9350
|
+
const { target: o } = n;
|
|
9351
|
+
if (!o) return;
|
|
9352
|
+
const i = r(o.selector);
|
|
9353
|
+
if (i.length !== 0)
|
|
9354
|
+
return Zn(i[0], n);
|
|
9355
|
+
}) : e("step.postrender", ({ querySelector: r }) => {
|
|
9348
9356
|
const { target: o } = n;
|
|
9349
9357
|
if (!o) return;
|
|
9350
9358
|
const i = r(o.selector);
|
|
9351
|
-
i.length !== 0 &&
|
|
9359
|
+
i.length !== 0 && Zn(i[0], n);
|
|
9352
9360
|
}), t(
|
|
9353
9361
|
"toggle",
|
|
9354
9362
|
({ toggleGroupId: r, target: o, animations: i, autoFocus: a = !0 }, { querySelector: s, getWindowReference: l }) => {
|
|
@@ -9358,7 +9366,7 @@ const As = {
|
|
|
9358
9366
|
if (!u) return;
|
|
9359
9367
|
const c = zh(u);
|
|
9360
9368
|
c || (g.inert = !1);
|
|
9361
|
-
const h = a ? Uh(l?.()?.document) : null, f =
|
|
9369
|
+
const h = a ? Uh(l?.()?.document) : null, f = Zn(g, u);
|
|
9362
9370
|
u.id && g.setAttribute(r, u.id);
|
|
9363
9371
|
const v = () => u.id != null && g.getAttribute(r) !== u.id;
|
|
9364
9372
|
if (!a) {
|
|
@@ -9370,10 +9378,10 @@ const As = {
|
|
|
9370
9378
|
f.then(() => {
|
|
9371
9379
|
if (!v())
|
|
9372
9380
|
if (c) {
|
|
9373
|
-
const y =
|
|
9374
|
-
y?.isConnected && y.focus({ preventScroll: !0 }),
|
|
9381
|
+
const y = Br.get(g);
|
|
9382
|
+
y?.isConnected && y.focus({ preventScroll: !0 }), Br.delete(g), g.inert = !0;
|
|
9375
9383
|
} else
|
|
9376
|
-
h &&
|
|
9384
|
+
h && Br.set(g, h), (g.querySelector(Wh) ?? g).focus({ preventScroll: !0 });
|
|
9377
9385
|
});
|
|
9378
9386
|
}
|
|
9379
9387
|
), t("run", async (r, o) => {
|
|
@@ -9388,7 +9396,7 @@ const As = {
|
|
|
9388
9396
|
const c = i(l.selector);
|
|
9389
9397
|
if (c.length === 0) return;
|
|
9390
9398
|
const h = c[0], f = h.getAttribute(s);
|
|
9391
|
-
(!f || f === d.id) && !g || (await
|
|
9399
|
+
(!f || f === d.id) && !g || (await Zn(h, d ?? r), u.forEach((v) => {
|
|
9392
9400
|
a(v.type)(v?.config ?? {}, o);
|
|
9393
9401
|
}), g || h.setAttribute(s, d.id));
|
|
9394
9402
|
});
|
|
@@ -9572,7 +9580,7 @@ const cv = "@appcues/sdk-middleware-events", lv = ({ addHook: e }, { onLaunchpad
|
|
|
9572
9580
|
});
|
|
9573
9581
|
};
|
|
9574
9582
|
we(cv, lv);
|
|
9575
|
-
const uv = "@appcues/knowledge-base-integration",
|
|
9583
|
+
const uv = "@appcues/knowledge-base-integration", Gn = (e, { querySelector: t, reportError: n }) => {
|
|
9576
9584
|
const r = t(e), o = r.length > 1, i = r.length === 0;
|
|
9577
9585
|
return o && n(
|
|
9578
9586
|
"The target element is duplicated, please provide a more specific selector"
|
|
@@ -9598,7 +9606,7 @@ const uv = "@appcues/knowledge-base-integration", Zn = (e, { querySelector: t, r
|
|
|
9598
9606
|
o?.removeEventListener("onSearch", g), o?.removeEventListener("onCancel", d);
|
|
9599
9607
|
}), t("bindListeners", (u, c) => {
|
|
9600
9608
|
const { navigation: h } = n;
|
|
9601
|
-
(!i || !o) && (i =
|
|
9609
|
+
(!i || !o) && (i = Gn(h.selector, c), o = Gn("appcues-search-header", c), a = Gn("appcues-search-results", c), s = Gn("#launchpad-container", c), o?.addEventListener("onSearch", g), o?.addEventListener("onCancel", d));
|
|
9602
9610
|
});
|
|
9603
9611
|
};
|
|
9604
9612
|
we(uv, dv);
|
|
@@ -9719,7 +9727,7 @@ const jo = "appcues-cutout-backdrop", ea = "appcues-custom-backdrop", hv = "hard
|
|
|
9719
9727
|
borderRadius: "0px",
|
|
9720
9728
|
pointerEvents: "none"
|
|
9721
9729
|
});
|
|
9722
|
-
},
|
|
9730
|
+
}, Jn = (e, t, n, r, o) => {
|
|
9723
9731
|
Object.assign(e.style, {
|
|
9724
9732
|
position: "absolute",
|
|
9725
9733
|
top: `${t}px`,
|
|
@@ -9731,7 +9739,7 @@ const jo = "appcues-cutout-backdrop", ea = "appcues-custom-backdrop", hv = "hard
|
|
|
9731
9739
|
});
|
|
9732
9740
|
}, Ds = ([e, t, n, r], o, i) => {
|
|
9733
9741
|
const { top: a, left: s, right: l, bottom: d, width: g } = o, u = i.innerWidth, c = i.innerHeight;
|
|
9734
|
-
|
|
9742
|
+
Jn(e, 0, s, g, Math.max(0, a)), Jn(t, 0, l, Math.max(0, u - l), c), Jn(n, d, s, g, Math.max(0, c - d)), Jn(r, 0, 0, Math.max(0, s), c);
|
|
9735
9743
|
}, _v = ({ document: e, win: t, rect: n, zIndex: r }) => {
|
|
9736
9744
|
const o = e.createElement("div");
|
|
9737
9745
|
o.id = jo, Sv(o), o.style.zIndex = r;
|
|
@@ -9989,8 +9997,8 @@ function Vv({
|
|
|
9989
9997
|
registerTrait: we,
|
|
9990
9998
|
show: async (v) => {
|
|
9991
9999
|
Uv(l), await l().customElements.whenDefined(_n);
|
|
9992
|
-
const y =
|
|
9993
|
-
|
|
10000
|
+
const y = er(
|
|
10001
|
+
er(
|
|
9994
10002
|
v,
|
|
9995
10003
|
"traits",
|
|
9996
10004
|
(m) => (m ?? []).map((w, k) => ({
|
|
@@ -10000,7 +10008,7 @@ function Vv({
|
|
|
10000
10008
|
),
|
|
10001
10009
|
"steps",
|
|
10002
10010
|
(m) => (m ?? []).map(
|
|
10003
|
-
(w) =>
|
|
10011
|
+
(w) => er(
|
|
10004
10012
|
w,
|
|
10005
10013
|
"traits",
|
|
10006
10014
|
(k) => (k ?? []).map((S, I) => ({
|