@cimulate/copilot-widget 1.33.0 → 1.33.2
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 +8 -0
- package/dist/cimulate-copilot-widget.es.js +1 -1
- package/dist/cimulate-copilot-widget.umd.js +1 -1
- package/dist/copilot.es.js +1 -1
- package/dist/copilot.umd.js +1 -1
- package/dist/messaging.d.ts +4 -0
- package/dist/messaging.es.js +607 -607
- package/dist/messaging.umd.js +13 -13
- package/package.json +1 -1
package/dist/messaging.es.js
CHANGED
|
@@ -76,8 +76,8 @@ function yA() {
|
|
|
76
76
|
if (V1) return et;
|
|
77
77
|
V1 = 1;
|
|
78
78
|
var e = /* @__PURE__ */ Symbol.for("react.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), s = /* @__PURE__ */ Symbol.for("react.profiler"), a = /* @__PURE__ */ Symbol.for("react.provider"), u = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), f = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), p = Symbol.iterator;
|
|
79
|
-
function _(
|
|
80
|
-
return
|
|
79
|
+
function _(D) {
|
|
80
|
+
return D === null || typeof D != "object" ? null : (D = p && D[p] || D["@@iterator"], typeof D == "function" ? D : null);
|
|
81
81
|
}
|
|
82
82
|
var y = { isMounted: function() {
|
|
83
83
|
return !1;
|
|
@@ -85,183 +85,183 @@ function yA() {
|
|
|
85
85
|
}, enqueueReplaceState: function() {
|
|
86
86
|
}, enqueueSetState: function() {
|
|
87
87
|
} }, S = Object.assign, x = {};
|
|
88
|
-
function w(
|
|
89
|
-
this.props =
|
|
90
|
-
}
|
|
91
|
-
w.prototype.isReactComponent = {}, w.prototype.setState = function(
|
|
92
|
-
if (typeof
|
|
93
|
-
this.updater.enqueueSetState(this,
|
|
94
|
-
}, w.prototype.forceUpdate = function(
|
|
95
|
-
this.updater.enqueueForceUpdate(this,
|
|
88
|
+
function w(D, Z, P) {
|
|
89
|
+
this.props = D, this.context = Z, this.refs = x, this.updater = P || y;
|
|
90
|
+
}
|
|
91
|
+
w.prototype.isReactComponent = {}, w.prototype.setState = function(D, Z) {
|
|
92
|
+
if (typeof D != "object" && typeof D != "function" && D != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
93
|
+
this.updater.enqueueSetState(this, D, Z, "setState");
|
|
94
|
+
}, w.prototype.forceUpdate = function(D) {
|
|
95
|
+
this.updater.enqueueForceUpdate(this, D, "forceUpdate");
|
|
96
96
|
};
|
|
97
97
|
function v() {
|
|
98
98
|
}
|
|
99
99
|
v.prototype = w.prototype;
|
|
100
|
-
function N(
|
|
101
|
-
this.props =
|
|
100
|
+
function N(D, Z, P) {
|
|
101
|
+
this.props = D, this.context = Z, this.refs = x, this.updater = P || y;
|
|
102
102
|
}
|
|
103
103
|
var O = N.prototype = new v();
|
|
104
104
|
O.constructor = N, S(O, w.prototype), O.isPureReactComponent = !0;
|
|
105
|
-
var $ = Array.isArray, G = Object.prototype.hasOwnProperty,
|
|
106
|
-
function J(
|
|
107
|
-
var xe,
|
|
108
|
-
if (Z != null) for (xe in Z.ref !== void 0 && (
|
|
105
|
+
var $ = Array.isArray, G = Object.prototype.hasOwnProperty, M = { current: null }, V = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
106
|
+
function J(D, Z, P) {
|
|
107
|
+
var xe, ke = {}, he = null, Ae = null;
|
|
108
|
+
if (Z != null) for (xe in Z.ref !== void 0 && (Ae = Z.ref), Z.key !== void 0 && (he = "" + Z.key), Z) G.call(Z, xe) && !V.hasOwnProperty(xe) && (ke[xe] = Z[xe]);
|
|
109
109
|
var Fe = arguments.length - 2;
|
|
110
|
-
if (Fe === 1)
|
|
110
|
+
if (Fe === 1) ke.children = P;
|
|
111
111
|
else if (1 < Fe) {
|
|
112
|
-
for (var qe = Array(Fe),
|
|
113
|
-
|
|
112
|
+
for (var qe = Array(Fe), Qe = 0; Qe < Fe; Qe++) qe[Qe] = arguments[Qe + 2];
|
|
113
|
+
ke.children = qe;
|
|
114
114
|
}
|
|
115
|
-
if (
|
|
116
|
-
return { $$typeof: e, type:
|
|
115
|
+
if (D && D.defaultProps) for (xe in Fe = D.defaultProps, Fe) ke[xe] === void 0 && (ke[xe] = Fe[xe]);
|
|
116
|
+
return { $$typeof: e, type: D, key: he, ref: Ae, props: ke, _owner: M.current };
|
|
117
117
|
}
|
|
118
|
-
function se(
|
|
119
|
-
return { $$typeof: e, type:
|
|
118
|
+
function se(D, Z) {
|
|
119
|
+
return { $$typeof: e, type: D.type, key: Z, ref: D.ref, props: D.props, _owner: D._owner };
|
|
120
120
|
}
|
|
121
|
-
function H(
|
|
122
|
-
return typeof
|
|
121
|
+
function H(D) {
|
|
122
|
+
return typeof D == "object" && D !== null && D.$$typeof === e;
|
|
123
123
|
}
|
|
124
|
-
function ie(
|
|
124
|
+
function ie(D) {
|
|
125
125
|
var Z = { "=": "=0", ":": "=2" };
|
|
126
|
-
return "$" +
|
|
126
|
+
return "$" + D.replace(/[=:]/g, function(P) {
|
|
127
127
|
return Z[P];
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
var te = /\/+/g;
|
|
131
|
-
function le(
|
|
132
|
-
return typeof
|
|
133
|
-
}
|
|
134
|
-
function fe(
|
|
135
|
-
var
|
|
136
|
-
(
|
|
137
|
-
var
|
|
138
|
-
if (
|
|
139
|
-
else switch (
|
|
131
|
+
function le(D, Z) {
|
|
132
|
+
return typeof D == "object" && D !== null && D.key != null ? ie("" + D.key) : Z.toString(36);
|
|
133
|
+
}
|
|
134
|
+
function fe(D, Z, P, xe, ke) {
|
|
135
|
+
var he = typeof D;
|
|
136
|
+
(he === "undefined" || he === "boolean") && (D = null);
|
|
137
|
+
var Ae = !1;
|
|
138
|
+
if (D === null) Ae = !0;
|
|
139
|
+
else switch (he) {
|
|
140
140
|
case "string":
|
|
141
141
|
case "number":
|
|
142
|
-
|
|
142
|
+
Ae = !0;
|
|
143
143
|
break;
|
|
144
144
|
case "object":
|
|
145
|
-
switch (
|
|
145
|
+
switch (D.$$typeof) {
|
|
146
146
|
case e:
|
|
147
147
|
case t:
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
if (
|
|
152
|
-
return
|
|
153
|
-
})) :
|
|
154
|
-
if (
|
|
155
|
-
|
|
156
|
-
var qe = xe + le(
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
else if (qe = _(
|
|
160
|
-
else if (
|
|
161
|
-
return
|
|
162
|
-
}
|
|
163
|
-
function ue(
|
|
164
|
-
if (
|
|
165
|
-
var xe = [],
|
|
166
|
-
return fe(
|
|
167
|
-
return Z.call(P,
|
|
148
|
+
Ae = !0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
if (Ae) return Ae = D, ke = ke(Ae), D = xe === "" ? "." + le(Ae, 0) : xe, $(ke) ? (P = "", D != null && (P = D.replace(te, "$&/") + "/"), fe(ke, Z, P, "", function(Qe) {
|
|
152
|
+
return Qe;
|
|
153
|
+
})) : ke != null && (H(ke) && (ke = se(ke, P + (!ke.key || Ae && Ae.key === ke.key ? "" : ("" + ke.key).replace(te, "$&/") + "/") + D)), Z.push(ke)), 1;
|
|
154
|
+
if (Ae = 0, xe = xe === "" ? "." : xe + ":", $(D)) for (var Fe = 0; Fe < D.length; Fe++) {
|
|
155
|
+
he = D[Fe];
|
|
156
|
+
var qe = xe + le(he, Fe);
|
|
157
|
+
Ae += fe(he, Z, P, qe, ke);
|
|
158
|
+
}
|
|
159
|
+
else if (qe = _(D), typeof qe == "function") for (D = qe.call(D), Fe = 0; !(he = D.next()).done; ) he = he.value, qe = xe + le(he, Fe++), Ae += fe(he, Z, P, qe, ke);
|
|
160
|
+
else if (he === "object") throw Z = String(D), Error("Objects are not valid as a React child (found: " + (Z === "[object Object]" ? "object with keys {" + Object.keys(D).join(", ") + "}" : Z) + "). If you meant to render a collection of children, use an array instead.");
|
|
161
|
+
return Ae;
|
|
162
|
+
}
|
|
163
|
+
function ue(D, Z, P) {
|
|
164
|
+
if (D == null) return D;
|
|
165
|
+
var xe = [], ke = 0;
|
|
166
|
+
return fe(D, xe, "", "", function(he) {
|
|
167
|
+
return Z.call(P, he, ke++);
|
|
168
168
|
}), xe;
|
|
169
169
|
}
|
|
170
|
-
function ve(
|
|
171
|
-
if (
|
|
172
|
-
var Z =
|
|
170
|
+
function ve(D) {
|
|
171
|
+
if (D._status === -1) {
|
|
172
|
+
var Z = D._result;
|
|
173
173
|
Z = Z(), Z.then(function(P) {
|
|
174
|
-
(
|
|
174
|
+
(D._status === 0 || D._status === -1) && (D._status = 1, D._result = P);
|
|
175
175
|
}, function(P) {
|
|
176
|
-
(
|
|
177
|
-
}),
|
|
176
|
+
(D._status === 0 || D._status === -1) && (D._status = 2, D._result = P);
|
|
177
|
+
}), D._status === -1 && (D._status = 0, D._result = Z);
|
|
178
178
|
}
|
|
179
|
-
if (
|
|
180
|
-
throw
|
|
179
|
+
if (D._status === 1) return D._result.default;
|
|
180
|
+
throw D._result;
|
|
181
181
|
}
|
|
182
|
-
var de = { current: null }, W = { transition: null }, oe = { ReactCurrentDispatcher: de, ReactCurrentBatchConfig: W, ReactCurrentOwner:
|
|
182
|
+
var de = { current: null }, W = { transition: null }, oe = { ReactCurrentDispatcher: de, ReactCurrentBatchConfig: W, ReactCurrentOwner: M };
|
|
183
183
|
function C() {
|
|
184
184
|
throw Error("act(...) is not supported in production builds of React.");
|
|
185
185
|
}
|
|
186
|
-
return et.Children = { map: ue, forEach: function(
|
|
187
|
-
ue(
|
|
186
|
+
return et.Children = { map: ue, forEach: function(D, Z, P) {
|
|
187
|
+
ue(D, function() {
|
|
188
188
|
Z.apply(this, arguments);
|
|
189
189
|
}, P);
|
|
190
|
-
}, count: function(
|
|
190
|
+
}, count: function(D) {
|
|
191
191
|
var Z = 0;
|
|
192
|
-
return ue(
|
|
192
|
+
return ue(D, function() {
|
|
193
193
|
Z++;
|
|
194
194
|
}), Z;
|
|
195
|
-
}, toArray: function(
|
|
196
|
-
return ue(
|
|
195
|
+
}, toArray: function(D) {
|
|
196
|
+
return ue(D, function(Z) {
|
|
197
197
|
return Z;
|
|
198
198
|
}) || [];
|
|
199
|
-
}, only: function(
|
|
200
|
-
if (!H(
|
|
201
|
-
return
|
|
202
|
-
} }, et.Component = w, et.Fragment = n, et.Profiler = s, et.PureComponent = N, et.StrictMode = r, et.Suspense = d, et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = oe, et.act = C, et.cloneElement = function(
|
|
203
|
-
if (
|
|
204
|
-
var xe = S({},
|
|
199
|
+
}, only: function(D) {
|
|
200
|
+
if (!H(D)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
201
|
+
return D;
|
|
202
|
+
} }, et.Component = w, et.Fragment = n, et.Profiler = s, et.PureComponent = N, et.StrictMode = r, et.Suspense = d, et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = oe, et.act = C, et.cloneElement = function(D, Z, P) {
|
|
203
|
+
if (D == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + D + ".");
|
|
204
|
+
var xe = S({}, D.props), ke = D.key, he = D.ref, Ae = D._owner;
|
|
205
205
|
if (Z != null) {
|
|
206
|
-
if (Z.ref !== void 0 && (
|
|
206
|
+
if (Z.ref !== void 0 && (he = Z.ref, Ae = M.current), Z.key !== void 0 && (ke = "" + Z.key), D.type && D.type.defaultProps) var Fe = D.type.defaultProps;
|
|
207
207
|
for (qe in Z) G.call(Z, qe) && !V.hasOwnProperty(qe) && (xe[qe] = Z[qe] === void 0 && Fe !== void 0 ? Fe[qe] : Z[qe]);
|
|
208
208
|
}
|
|
209
209
|
var qe = arguments.length - 2;
|
|
210
210
|
if (qe === 1) xe.children = P;
|
|
211
211
|
else if (1 < qe) {
|
|
212
212
|
Fe = Array(qe);
|
|
213
|
-
for (var
|
|
213
|
+
for (var Qe = 0; Qe < qe; Qe++) Fe[Qe] = arguments[Qe + 2];
|
|
214
214
|
xe.children = Fe;
|
|
215
215
|
}
|
|
216
|
-
return { $$typeof: e, type:
|
|
217
|
-
}, et.createContext = function(
|
|
218
|
-
return
|
|
219
|
-
}, et.createElement = J, et.createFactory = function(
|
|
220
|
-
var Z = J.bind(null,
|
|
221
|
-
return Z.type =
|
|
216
|
+
return { $$typeof: e, type: D.type, key: ke, ref: he, props: xe, _owner: Ae };
|
|
217
|
+
}, et.createContext = function(D) {
|
|
218
|
+
return D = { $$typeof: u, _currentValue: D, _currentValue2: D, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, D.Provider = { $$typeof: a, _context: D }, D.Consumer = D;
|
|
219
|
+
}, et.createElement = J, et.createFactory = function(D) {
|
|
220
|
+
var Z = J.bind(null, D);
|
|
221
|
+
return Z.type = D, Z;
|
|
222
222
|
}, et.createRef = function() {
|
|
223
223
|
return { current: null };
|
|
224
|
-
}, et.forwardRef = function(
|
|
225
|
-
return { $$typeof: l, render:
|
|
226
|
-
}, et.isValidElement = H, et.lazy = function(
|
|
227
|
-
return { $$typeof: m, _payload: { _status: -1, _result:
|
|
228
|
-
}, et.memo = function(
|
|
229
|
-
return { $$typeof: f, type:
|
|
230
|
-
}, et.startTransition = function(
|
|
224
|
+
}, et.forwardRef = function(D) {
|
|
225
|
+
return { $$typeof: l, render: D };
|
|
226
|
+
}, et.isValidElement = H, et.lazy = function(D) {
|
|
227
|
+
return { $$typeof: m, _payload: { _status: -1, _result: D }, _init: ve };
|
|
228
|
+
}, et.memo = function(D, Z) {
|
|
229
|
+
return { $$typeof: f, type: D, compare: Z === void 0 ? null : Z };
|
|
230
|
+
}, et.startTransition = function(D) {
|
|
231
231
|
var Z = W.transition;
|
|
232
232
|
W.transition = {};
|
|
233
233
|
try {
|
|
234
|
-
|
|
234
|
+
D();
|
|
235
235
|
} finally {
|
|
236
236
|
W.transition = Z;
|
|
237
237
|
}
|
|
238
|
-
}, et.unstable_act = C, et.useCallback = function(
|
|
239
|
-
return de.current.useCallback(
|
|
240
|
-
}, et.useContext = function(
|
|
241
|
-
return de.current.useContext(
|
|
238
|
+
}, et.unstable_act = C, et.useCallback = function(D, Z) {
|
|
239
|
+
return de.current.useCallback(D, Z);
|
|
240
|
+
}, et.useContext = function(D) {
|
|
241
|
+
return de.current.useContext(D);
|
|
242
242
|
}, et.useDebugValue = function() {
|
|
243
|
-
}, et.useDeferredValue = function(
|
|
244
|
-
return de.current.useDeferredValue(
|
|
245
|
-
}, et.useEffect = function(
|
|
246
|
-
return de.current.useEffect(
|
|
243
|
+
}, et.useDeferredValue = function(D) {
|
|
244
|
+
return de.current.useDeferredValue(D);
|
|
245
|
+
}, et.useEffect = function(D, Z) {
|
|
246
|
+
return de.current.useEffect(D, Z);
|
|
247
247
|
}, et.useId = function() {
|
|
248
248
|
return de.current.useId();
|
|
249
|
-
}, et.useImperativeHandle = function(
|
|
250
|
-
return de.current.useImperativeHandle(
|
|
251
|
-
}, et.useInsertionEffect = function(
|
|
252
|
-
return de.current.useInsertionEffect(
|
|
253
|
-
}, et.useLayoutEffect = function(
|
|
254
|
-
return de.current.useLayoutEffect(
|
|
255
|
-
}, et.useMemo = function(
|
|
256
|
-
return de.current.useMemo(
|
|
257
|
-
}, et.useReducer = function(
|
|
258
|
-
return de.current.useReducer(
|
|
259
|
-
}, et.useRef = function(
|
|
260
|
-
return de.current.useRef(
|
|
261
|
-
}, et.useState = function(
|
|
262
|
-
return de.current.useState(
|
|
263
|
-
}, et.useSyncExternalStore = function(
|
|
264
|
-
return de.current.useSyncExternalStore(
|
|
249
|
+
}, et.useImperativeHandle = function(D, Z, P) {
|
|
250
|
+
return de.current.useImperativeHandle(D, Z, P);
|
|
251
|
+
}, et.useInsertionEffect = function(D, Z) {
|
|
252
|
+
return de.current.useInsertionEffect(D, Z);
|
|
253
|
+
}, et.useLayoutEffect = function(D, Z) {
|
|
254
|
+
return de.current.useLayoutEffect(D, Z);
|
|
255
|
+
}, et.useMemo = function(D, Z) {
|
|
256
|
+
return de.current.useMemo(D, Z);
|
|
257
|
+
}, et.useReducer = function(D, Z, P) {
|
|
258
|
+
return de.current.useReducer(D, Z, P);
|
|
259
|
+
}, et.useRef = function(D) {
|
|
260
|
+
return de.current.useRef(D);
|
|
261
|
+
}, et.useState = function(D) {
|
|
262
|
+
return de.current.useState(D);
|
|
263
|
+
}, et.useSyncExternalStore = function(D, Z, P) {
|
|
264
|
+
return de.current.useSyncExternalStore(D, Z, P);
|
|
265
265
|
}, et.useTransition = function() {
|
|
266
266
|
return de.current.useTransition();
|
|
267
267
|
}, et.version = "18.3.1", et;
|
|
@@ -3471,8 +3471,8 @@ const i_ = R.createContext({
|
|
|
3471
3471
|
isMinimized: t && "isMinimized" in t ? !!t.isMinimized : ut.statusProxy.isMinimized
|
|
3472
3472
|
}), [m, p] = R.useState(ut.dialogProxy.position), [_, y] = R.useState(ut.dialogProxy.isFullHeight), [S, x] = R.useState(ut.dialogProxy.width), [w, v] = R.useState(ut.modalProxy.isFullscreen), N = R.useRef(!1), O = jw(d.type);
|
|
3473
3473
|
R.useEffect(() => {
|
|
3474
|
-
const G = (
|
|
3475
|
-
const { property: V, value: J } =
|
|
3474
|
+
const G = (M) => {
|
|
3475
|
+
const { property: V, value: J } = M.detail || {};
|
|
3476
3476
|
if (!(!V || J === void 0)) {
|
|
3477
3477
|
if (V === "mode") {
|
|
3478
3478
|
l(J);
|
|
@@ -3522,8 +3522,8 @@ const i_ = R.createContext({
|
|
|
3522
3522
|
N.current = !0;
|
|
3523
3523
|
const G = n || (t == null ? void 0 : t.type);
|
|
3524
3524
|
G && vc(G);
|
|
3525
|
-
const
|
|
3526
|
-
t && "isOpen" in t && Yr(!!t.isOpen), t && "isMinimized" in t && io(!!t.isMinimized),
|
|
3525
|
+
const M = Ow();
|
|
3526
|
+
t && "isOpen" in t && Yr(!!t.isOpen), t && "isMinimized" in t && io(!!t.isMinimized), M && io(!0);
|
|
3527
3527
|
}), zl(() => {
|
|
3528
3528
|
if (!(t != null && t.options)) return;
|
|
3529
3529
|
const { dialogPosition: G } = t.options;
|
|
@@ -4301,12 +4301,12 @@ function wc(e, t, n) {
|
|
|
4301
4301
|
if (d === 1 / 0)
|
|
4302
4302
|
return JSON.stringify(v);
|
|
4303
4303
|
const O = [];
|
|
4304
|
-
return JSON.stringify(v, function(G,
|
|
4305
|
-
if (!Y.isObject(
|
|
4306
|
-
return
|
|
4304
|
+
return JSON.stringify(v, function(G, M) {
|
|
4305
|
+
if (!Y.isObject(M))
|
|
4306
|
+
return M;
|
|
4307
4307
|
for (; O.length && O[O.length - 1] !== this; )
|
|
4308
4308
|
O.pop();
|
|
4309
|
-
return O.push(
|
|
4309
|
+
return O.push(M), _(N + O.length - 1), M;
|
|
4310
4310
|
});
|
|
4311
4311
|
}
|
|
4312
4312
|
function S(v, N, O) {
|
|
@@ -4317,11 +4317,11 @@ function wc(e, t, n) {
|
|
|
4317
4317
|
if (Y.endsWith(N, "{}"))
|
|
4318
4318
|
N = r ? N : N.slice(0, -2), v = y(v, 1);
|
|
4319
4319
|
else if (Y.isArray(v) && XC(v) || (Y.isFileList(v) || Y.endsWith(N, "[]")) && ($ = Y.toArray(v)))
|
|
4320
|
-
return N = y_(N), $.forEach(function(
|
|
4321
|
-
!(Y.isUndefined(
|
|
4320
|
+
return N = y_(N), $.forEach(function(M, V) {
|
|
4321
|
+
!(Y.isUndefined(M) || M === null) && t.append(
|
|
4322
4322
|
// eslint-disable-next-line no-nested-ternary
|
|
4323
4323
|
u === !0 ? eh([N], V, a) : u === null ? N : N + "[]",
|
|
4324
|
-
p(
|
|
4324
|
+
p(M)
|
|
4325
4325
|
);
|
|
4326
4326
|
}), !1;
|
|
4327
4327
|
}
|
|
@@ -4336,8 +4336,8 @@ function wc(e, t, n) {
|
|
|
4336
4336
|
if (!Y.isUndefined(v)) {
|
|
4337
4337
|
if (_(O), m.indexOf(v) !== -1)
|
|
4338
4338
|
throw new Error("Circular reference detected in " + N.join("."));
|
|
4339
|
-
m.push(v), Y.forEach(v, function(G,
|
|
4340
|
-
(!(Y.isUndefined(G) || G === null) && s.call(t, G, Y.isString(
|
|
4339
|
+
m.push(v), Y.forEach(v, function(G, M) {
|
|
4340
|
+
(!(Y.isUndefined(G) || G === null) && s.call(t, G, Y.isString(M) ? M.trim() : M, N, x)) === !0 && w(G, N ? N.concat(M) : [M], O + 1);
|
|
4341
4341
|
}), m.pop();
|
|
4342
4342
|
}
|
|
4343
4343
|
}
|
|
@@ -4934,8 +4934,8 @@ const vN = typeof XMLHttpRequest != "undefined", AN = vN && function(e) {
|
|
|
4934
4934
|
}, w.onabort = function() {
|
|
4935
4935
|
w && (r(new Ie("Request aborted", Ie.ECONNABORTED, e, w)), x(), w = null);
|
|
4936
4936
|
}, w.onerror = function($) {
|
|
4937
|
-
const G = $ && $.message ? $.message : "Network Error",
|
|
4938
|
-
|
|
4937
|
+
const G = $ && $.message ? $.message : "Network Error", M = new Ie(G, Ie.ERR_NETWORK, e, w);
|
|
4938
|
+
M.event = $ || null, r(M), x(), w = null;
|
|
4939
4939
|
}, w.ontimeout = function() {
|
|
4940
4940
|
let $ = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
4941
4941
|
const G = s.transitional || Yp;
|
|
@@ -5195,7 +5195,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5195
5195
|
method: O,
|
|
5196
5196
|
data: $,
|
|
5197
5197
|
signal: G,
|
|
5198
|
-
cancelToken:
|
|
5198
|
+
cancelToken: M,
|
|
5199
5199
|
timeout: V,
|
|
5200
5200
|
onDownloadProgress: J,
|
|
5201
5201
|
onUploadProgress: se,
|
|
@@ -5206,65 +5206,65 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5206
5206
|
maxContentLength: fe,
|
|
5207
5207
|
maxBodyLength: ue
|
|
5208
5208
|
} = w_(v);
|
|
5209
|
-
const ve = Y.isNumber(fe) && fe > -1, de = Y.isNumber(ue) && ue > -1, W = (
|
|
5209
|
+
const ve = Y.isNumber(fe) && fe > -1, de = Y.isNumber(ue) && ue > -1, W = (he) => Y.hasOwnProp(v, he) ? v[he] : void 0;
|
|
5210
5210
|
let oe = s || fetch;
|
|
5211
5211
|
H = H ? (H + "").toLowerCase() : "text";
|
|
5212
5212
|
let C = wN(
|
|
5213
|
-
[G,
|
|
5213
|
+
[G, M && M.toAbortSignal()],
|
|
5214
5214
|
V
|
|
5215
|
-
),
|
|
5215
|
+
), D = null;
|
|
5216
5216
|
const Z = C && C.unsubscribe && (() => {
|
|
5217
5217
|
C.unsubscribe();
|
|
5218
5218
|
});
|
|
5219
5219
|
let P, xe = null;
|
|
5220
|
-
const
|
|
5220
|
+
const ke = () => new Ie(
|
|
5221
5221
|
"Request body larger than maxBodyLength limit",
|
|
5222
5222
|
Ie.ERR_BAD_REQUEST,
|
|
5223
5223
|
v,
|
|
5224
|
-
|
|
5224
|
+
D
|
|
5225
5225
|
);
|
|
5226
5226
|
try {
|
|
5227
|
-
let
|
|
5228
|
-
const
|
|
5229
|
-
if (
|
|
5230
|
-
const He = Y.getSafeProp(
|
|
5231
|
-
|
|
5227
|
+
let he;
|
|
5228
|
+
const Ae = W("auth");
|
|
5229
|
+
if (Ae) {
|
|
5230
|
+
const He = Y.getSafeProp(Ae, "username") || "", Ne = Y.getSafeProp(Ae, "password") || "";
|
|
5231
|
+
he = {
|
|
5232
5232
|
username: He,
|
|
5233
5233
|
password: Ne
|
|
5234
5234
|
};
|
|
5235
5235
|
}
|
|
5236
5236
|
if (RN(N)) {
|
|
5237
5237
|
const He = new URL(N, Jt.origin);
|
|
5238
|
-
if (!
|
|
5238
|
+
if (!he && (He.username || He.password)) {
|
|
5239
5239
|
const Ne = mE(He.username), Ye = mE(He.password);
|
|
5240
|
-
|
|
5240
|
+
he = {
|
|
5241
5241
|
username: Ne,
|
|
5242
5242
|
password: Ye
|
|
5243
5243
|
};
|
|
5244
5244
|
}
|
|
5245
5245
|
(He.username || He.password) && (He.username = "", He.password = "", N = He.href);
|
|
5246
5246
|
}
|
|
5247
|
-
if (
|
|
5247
|
+
if (he && (ie.delete("authorization"), ie.set(
|
|
5248
5248
|
"Authorization",
|
|
5249
|
-
"Basic " + btoa(PN((
|
|
5249
|
+
"Basic " + btoa(PN((he.username || "") + ":" + (he.password || "")))
|
|
5250
5250
|
)), ve && typeof N == "string" && N.startsWith("data:") && kN(N) > fe)
|
|
5251
5251
|
throw new Ie(
|
|
5252
5252
|
"maxContentLength size of " + fe + " exceeded",
|
|
5253
5253
|
Ie.ERR_BAD_RESPONSE,
|
|
5254
5254
|
v,
|
|
5255
|
-
|
|
5255
|
+
D
|
|
5256
5256
|
);
|
|
5257
5257
|
if (de && O !== "get" && O !== "head") {
|
|
5258
5258
|
const He = yield x($);
|
|
5259
5259
|
if (typeof He == "number" && isFinite(He) && (P = He, He > ue))
|
|
5260
|
-
throw
|
|
5260
|
+
throw ke();
|
|
5261
5261
|
}
|
|
5262
5262
|
const Fe = de && (Y.isReadableStream($) || Y.isStream($)), qe = (He, Ne, Ye) => hE(
|
|
5263
5263
|
He,
|
|
5264
5264
|
pE,
|
|
5265
5265
|
(Ze) => {
|
|
5266
5266
|
if (de && Ze > ue)
|
|
5267
|
-
throw xe =
|
|
5267
|
+
throw xe = ke();
|
|
5268
5268
|
Ne && Ne(Ze);
|
|
5269
5269
|
},
|
|
5270
5270
|
Ye
|
|
@@ -5291,10 +5291,10 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5291
5291
|
"Stream request bodies are not supported by the current fetch implementation",
|
|
5292
5292
|
Ie.ERR_NOT_SUPPORT,
|
|
5293
5293
|
v,
|
|
5294
|
-
|
|
5294
|
+
D
|
|
5295
5295
|
);
|
|
5296
5296
|
Y.isString(te) || (te = te ? "include" : "omit");
|
|
5297
|
-
const
|
|
5297
|
+
const Qe = d && "credentials" in a.prototype;
|
|
5298
5298
|
if (Y.isFormData($)) {
|
|
5299
5299
|
const He = ie.getContentType();
|
|
5300
5300
|
He && /^multipart\/form-data/i.test(He) && !/boundary=/i.test(He) && ie.delete("content-type");
|
|
@@ -5306,10 +5306,10 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5306
5306
|
headers: m_(ie.normalize()),
|
|
5307
5307
|
body: $,
|
|
5308
5308
|
duplex: "half",
|
|
5309
|
-
credentials:
|
|
5309
|
+
credentials: Qe ? te : void 0
|
|
5310
5310
|
});
|
|
5311
|
-
|
|
5312
|
-
let Ct = yield d ? oe(
|
|
5311
|
+
D = d && new a(N, ft);
|
|
5312
|
+
let Ct = yield d ? oe(D, le) : oe(N, ft);
|
|
5313
5313
|
const Zt = an.from(Ct.headers);
|
|
5314
5314
|
if (ve) {
|
|
5315
5315
|
const He = Y.toFiniteNumber(Zt.getContentLength());
|
|
@@ -5318,7 +5318,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5318
5318
|
"maxContentLength size of " + fe + " exceeded",
|
|
5319
5319
|
Ie.ERR_BAD_RESPONSE,
|
|
5320
5320
|
v,
|
|
5321
|
-
|
|
5321
|
+
D
|
|
5322
5322
|
);
|
|
5323
5323
|
}
|
|
5324
5324
|
const dn = y && (H === "stream" || H === "response");
|
|
@@ -5338,7 +5338,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5338
5338
|
"maxContentLength size of " + fe + " exceeded",
|
|
5339
5339
|
Ie.ERR_BAD_RESPONSE,
|
|
5340
5340
|
v,
|
|
5341
|
-
|
|
5341
|
+
D
|
|
5342
5342
|
);
|
|
5343
5343
|
Ye && Ye(gn);
|
|
5344
5344
|
};
|
|
@@ -5361,7 +5361,7 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5361
5361
|
"maxContentLength size of " + fe + " exceeded",
|
|
5362
5362
|
Ie.ERR_BAD_RESPONSE,
|
|
5363
5363
|
v,
|
|
5364
|
-
|
|
5364
|
+
D
|
|
5365
5365
|
);
|
|
5366
5366
|
}
|
|
5367
5367
|
return !dn && Z && Z(), yield new Promise((He, Ne) => {
|
|
@@ -5371,41 +5371,41 @@ const Gp = "1.18.1", pE = 64 * 1024, { isFunction: Al } = Y, PN = (e) => encodeU
|
|
|
5371
5371
|
status: Ct.status,
|
|
5372
5372
|
statusText: Ct.statusText,
|
|
5373
5373
|
config: v,
|
|
5374
|
-
request:
|
|
5374
|
+
request: D
|
|
5375
5375
|
});
|
|
5376
5376
|
});
|
|
5377
|
-
} catch (
|
|
5377
|
+
} catch (he) {
|
|
5378
5378
|
if (Z && Z(), C && C.aborted && C.reason instanceof Ie) {
|
|
5379
|
-
const
|
|
5380
|
-
throw
|
|
5379
|
+
const Ae = C.reason;
|
|
5380
|
+
throw Ae.config = v, D && (Ae.request = D), he !== Ae && Object.defineProperty(Ae, "cause", {
|
|
5381
5381
|
__proto__: null,
|
|
5382
|
-
value:
|
|
5382
|
+
value: he,
|
|
5383
5383
|
writable: !0,
|
|
5384
5384
|
enumerable: !1,
|
|
5385
5385
|
configurable: !0
|
|
5386
|
-
}),
|
|
5386
|
+
}), Ae;
|
|
5387
5387
|
}
|
|
5388
5388
|
if (xe)
|
|
5389
|
-
throw
|
|
5390
|
-
if (
|
|
5391
|
-
throw
|
|
5392
|
-
if (
|
|
5393
|
-
const
|
|
5389
|
+
throw D && !xe.request && (xe.request = D), xe;
|
|
5390
|
+
if (he instanceof Ie)
|
|
5391
|
+
throw D && !he.request && (he.request = D), he;
|
|
5392
|
+
if (he && he.name === "TypeError" && /Load failed|fetch/i.test(he.message)) {
|
|
5393
|
+
const Ae = new Ie(
|
|
5394
5394
|
"Network Error",
|
|
5395
5395
|
Ie.ERR_NETWORK,
|
|
5396
5396
|
v,
|
|
5397
|
-
|
|
5398
|
-
|
|
5397
|
+
D,
|
|
5398
|
+
he && he.response
|
|
5399
5399
|
);
|
|
5400
|
-
throw Object.defineProperty(
|
|
5400
|
+
throw Object.defineProperty(Ae, "cause", {
|
|
5401
5401
|
__proto__: null,
|
|
5402
|
-
value:
|
|
5402
|
+
value: he.cause || he,
|
|
5403
5403
|
writable: !0,
|
|
5404
5404
|
enumerable: !1,
|
|
5405
5405
|
configurable: !0
|
|
5406
|
-
}),
|
|
5406
|
+
}), Ae;
|
|
5407
5407
|
}
|
|
5408
|
-
throw Ie.from(
|
|
5408
|
+
throw Ie.from(he, he && he.code, v, D, he && he.response);
|
|
5409
5409
|
}
|
|
5410
5410
|
});
|
|
5411
5411
|
}, DN = /* @__PURE__ */ new Map(), C_ = (e) => {
|
|
@@ -6026,7 +6026,7 @@ const VN = {
|
|
|
6026
6026
|
componentConfig: O,
|
|
6027
6027
|
conversationHistory: $,
|
|
6028
6028
|
resetConversationMessage: G = "",
|
|
6029
|
-
apiKey:
|
|
6029
|
+
apiKey: M,
|
|
6030
6030
|
apiToken: V,
|
|
6031
6031
|
baseUrl: J,
|
|
6032
6032
|
customerId: se,
|
|
@@ -6042,29 +6042,29 @@ const VN = {
|
|
|
6042
6042
|
staticQuestionsStrategy: oe = "append",
|
|
6043
6043
|
children: C
|
|
6044
6044
|
}) => {
|
|
6045
|
-
const
|
|
6045
|
+
const D = e === "messaging", Z = R.useMemo(() => {
|
|
6046
6046
|
const qe = fe == null ? void 0 : fe.isCartMgmtSupported;
|
|
6047
6047
|
return qe === !0 || qe === "true";
|
|
6048
|
-
}, [fe]), P = R.useMemo(() =>
|
|
6048
|
+
}, [fe]), P = R.useMemo(() => D ? { config: null } : new zN(J, M, V, te, se, H), [D, J, M, V, te, se, H]), xe = R.useMemo(() => new yw(te), [te]);
|
|
6049
6049
|
R.useEffect(() => {
|
|
6050
|
-
|
|
6051
|
-
}, [P,
|
|
6052
|
-
const
|
|
6053
|
-
const qe = (y == null ? void 0 : y.placeholder) || p,
|
|
6050
|
+
D || !P || P.config || P.getConfig();
|
|
6051
|
+
}, [P, D]);
|
|
6052
|
+
const ke = R.useMemo(() => ww(ie), [ie]), he = R.useMemo(() => {
|
|
6053
|
+
const qe = (y == null ? void 0 : y.placeholder) || p, Qe = (y == null ? void 0 : y.buttonLabel) || _;
|
|
6054
6054
|
let ft = "icon";
|
|
6055
6055
|
return y != null && y.buttonType ? ft = y.buttonType : _ && (ft = "text"), ce(j({}, y || {}), {
|
|
6056
6056
|
placeholder: qe,
|
|
6057
|
-
buttonLabel:
|
|
6057
|
+
buttonLabel: Qe,
|
|
6058
6058
|
buttonType: ft
|
|
6059
6059
|
});
|
|
6060
|
-
}, [y, p, _]),
|
|
6060
|
+
}, [y, p, _]), Ae = R.useMemo(() => ce(j({}, r || {}), {
|
|
6061
6061
|
logoUrl: t || (r == null ? void 0 : r.logoUrl),
|
|
6062
6062
|
headerText: (r == null ? void 0 : r.headerText) || n || VN[e != null ? e : "copilot"]
|
|
6063
6063
|
}), [r, t, n, e]), Fe = R.useMemo(
|
|
6064
6064
|
() => ({
|
|
6065
6065
|
configModule: P,
|
|
6066
6066
|
mode: e != null ? e : "copilot",
|
|
6067
|
-
headerConfig:
|
|
6067
|
+
headerConfig: Ae,
|
|
6068
6068
|
entryMessage: a,
|
|
6069
6069
|
staticQuestions: W || [],
|
|
6070
6070
|
staticQuestionsStrategy: oe,
|
|
@@ -6074,9 +6074,9 @@ const VN = {
|
|
|
6074
6074
|
disclaimerMarkdown: d,
|
|
6075
6075
|
clientContext: f,
|
|
6076
6076
|
baseCatalogParams: m,
|
|
6077
|
-
themeVariables:
|
|
6077
|
+
themeVariables: ke,
|
|
6078
6078
|
logger: xe,
|
|
6079
|
-
searchConfig:
|
|
6079
|
+
searchConfig: he,
|
|
6080
6080
|
suggestionButtonConfig: S,
|
|
6081
6081
|
progressStepsLimit: x,
|
|
6082
6082
|
messageAlignment: w,
|
|
@@ -6088,7 +6088,7 @@ const VN = {
|
|
|
6088
6088
|
showProductCaptions: !!de,
|
|
6089
6089
|
resetConversationMessage: G,
|
|
6090
6090
|
conversationHistory: {
|
|
6091
|
-
sinceHours: typeof ($ == null ? void 0 : $.sinceHours) == "number" ? $.sinceHours : 1,
|
|
6091
|
+
sinceHours: typeof ($ == null ? void 0 : $.sinceHours) == "number" ? $.sinceHours : D ? 24 : 1,
|
|
6092
6092
|
limit: $ == null ? void 0 : $.limit
|
|
6093
6093
|
},
|
|
6094
6094
|
features: le,
|
|
@@ -6097,7 +6097,7 @@ const VN = {
|
|
|
6097
6097
|
[
|
|
6098
6098
|
P,
|
|
6099
6099
|
e,
|
|
6100
|
-
|
|
6100
|
+
Ae,
|
|
6101
6101
|
a,
|
|
6102
6102
|
W,
|
|
6103
6103
|
oe,
|
|
@@ -6107,7 +6107,7 @@ const VN = {
|
|
|
6107
6107
|
l,
|
|
6108
6108
|
d,
|
|
6109
6109
|
u,
|
|
6110
|
-
|
|
6110
|
+
he,
|
|
6111
6111
|
S,
|
|
6112
6112
|
w,
|
|
6113
6113
|
v,
|
|
@@ -6119,7 +6119,7 @@ const VN = {
|
|
|
6119
6119
|
de,
|
|
6120
6120
|
G,
|
|
6121
6121
|
xe,
|
|
6122
|
-
|
|
6122
|
+
ke,
|
|
6123
6123
|
$,
|
|
6124
6124
|
le,
|
|
6125
6125
|
Z
|
|
@@ -6666,8 +6666,8 @@ function yO(e) {
|
|
|
6666
6666
|
}, [t, n]);
|
|
6667
6667
|
const p = R.useCallback(
|
|
6668
6668
|
(v, N) => Be(null, null, function* () {
|
|
6669
|
-
var
|
|
6670
|
-
const O = (
|
|
6669
|
+
var M, V, J;
|
|
6670
|
+
const O = (M = N == null ? void 0 : N.createIfMissing) != null ? M : !0, $ = (V = N == null ? void 0 : N.isCurrent) != null ? V : (() => !0);
|
|
6671
6671
|
let G = ZN(t, n, f);
|
|
6672
6672
|
if (!G) {
|
|
6673
6673
|
const se = yield m();
|
|
@@ -6876,7 +6876,7 @@ function CO({
|
|
|
6876
6876
|
const $ = a || x.current > 0;
|
|
6877
6877
|
if (!(s && $ && e === "connected" && !r && !w.current))
|
|
6878
6878
|
return;
|
|
6879
|
-
const
|
|
6879
|
+
const M = setTimeout(() => {
|
|
6880
6880
|
Be(null, null, function* () {
|
|
6881
6881
|
var H, ie;
|
|
6882
6882
|
if ((H = S.current) != null && H.call(S)) {
|
|
@@ -6910,7 +6910,7 @@ function CO({
|
|
|
6910
6910
|
});
|
|
6911
6911
|
}, d);
|
|
6912
6912
|
return () => {
|
|
6913
|
-
clearTimeout(
|
|
6913
|
+
clearTimeout(M);
|
|
6914
6914
|
};
|
|
6915
6915
|
}, [
|
|
6916
6916
|
e,
|
|
@@ -6997,25 +6997,25 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
6997
6997
|
}) => {
|
|
6998
6998
|
const { logger: p, conversationHistory: _ } = lt(), {
|
|
6999
6999
|
status: { isOpen: y }
|
|
7000
|
-
} = Xr(), [S, x] = R.useReducer(QN, F_), [w, v] = R.useState(!1), [N, O] = R.useState(!1), [$, G] = R.useState(!1),
|
|
7001
|
-
|
|
7000
|
+
} = Xr(), [S, x] = R.useReducer(QN, F_), [w, v] = R.useState(!1), [N, O] = R.useState(!1), [$, G] = R.useState(!1), M = R.useRef(S);
|
|
7001
|
+
M.current = S;
|
|
7002
7002
|
const V = yO({
|
|
7003
7003
|
orgId: t,
|
|
7004
7004
|
esDeveloperName: n,
|
|
7005
7005
|
routingAttributes: r,
|
|
7006
7006
|
conversationHistory: _
|
|
7007
|
-
}), J = R.useRef(null), se = R.useRef(l), H = R.useRef(d), ie = R.useRef(u), te = R.useRef(f), le = R.useRef(!1), fe = R.useRef(!1), ue = R.useRef(!1), ve = R.useRef(0), de = R.useRef(0), W = R.useRef(0), oe = R.useRef(null), C = R.useRef(null),
|
|
7007
|
+
}), J = R.useRef(null), se = R.useRef(l), H = R.useRef(d), ie = R.useRef(u), te = R.useRef(f), le = R.useRef(!1), fe = R.useRef(!1), ue = R.useRef(!1), ve = R.useRef(0), de = R.useRef(0), W = R.useRef(0), oe = R.useRef(null), C = R.useRef(null), D = R.useRef(null), Z = R.useRef(0), P = R.useRef(!1), xe = R.useRef(0), ke = R.useRef(0), he = R.useRef(
|
|
7008
7008
|
() => Promise.reject(new Error("Messaging is unavailable"))
|
|
7009
|
-
),
|
|
7009
|
+
), Ae = R.useRef([]), Fe = R.useRef(null), qe = R.useCallback(() => {
|
|
7010
7010
|
x({
|
|
7011
7011
|
type: "SET_CART_UPDATING",
|
|
7012
|
-
isUpdating:
|
|
7012
|
+
isUpdating: Ae.current.some(AO)
|
|
7013
7013
|
});
|
|
7014
|
-
}, []),
|
|
7014
|
+
}, []), Qe = R.useCallback(
|
|
7015
7015
|
(re, we) => {
|
|
7016
|
-
we.outcome === "timeout" ? (re.timedOut = !0,
|
|
7016
|
+
we.outcome === "timeout" ? (re.timedOut = !0, Ae.current = Ae.current.filter(
|
|
7017
7017
|
(Ce) => Ce === re || !Ce.timedOut
|
|
7018
|
-
)) :
|
|
7018
|
+
)) : Ae.current = Ae.current.filter((Ce) => Ce !== re), clearTimeout(re.timeoutId), qe(), re.resolve(we);
|
|
7019
7019
|
},
|
|
7020
7020
|
[qe]
|
|
7021
7021
|
);
|
|
@@ -7051,8 +7051,8 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7051
7051
|
tokensBeforeFlush: ve.current,
|
|
7052
7052
|
streamedFinalOnly: ve.current === 0
|
|
7053
7053
|
}), ve.current = 0;
|
|
7054
|
-
const
|
|
7055
|
-
x({ type: "FLUSH_STREAMING", message: Le, replaceMessageId: vt }), (kr = se.current) == null || kr.call(se, Le),
|
|
7054
|
+
const Je = Ta(Ae.current), vt = Je == null ? void 0 : Je.options.reconcileMessageId;
|
|
7055
|
+
x({ type: "FLUSH_STREAMING", message: Le, replaceMessageId: vt }), (kr = se.current) == null || kr.call(se, Le), Je && Qe(Je, { outcome: "success" });
|
|
7056
7056
|
const { messagingSessionId: Bt } = Ee, dr = Bt ? XN(Ee.content) : null;
|
|
7057
7057
|
Bt && dr && ((Pr = te.current) == null || Pr.call(te, {
|
|
7058
7058
|
agentSessionId: Bt,
|
|
@@ -7061,15 +7061,15 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7061
7061
|
}));
|
|
7062
7062
|
}), re.on("streaming_token", (Ee) => {
|
|
7063
7063
|
var Le;
|
|
7064
|
-
if (!((Le = Ta(
|
|
7064
|
+
if (!((Le = Ta(Ae.current)) != null && Le.options.silent)) {
|
|
7065
7065
|
if (ve.current += 1, p != null && p.isDevelopment) {
|
|
7066
|
-
const
|
|
7067
|
-
|
|
7066
|
+
const Je = L_(Ee.token);
|
|
7067
|
+
Je ? Je.index === Ai ? p.debug("🦜 streaming_token → markdown fallback", {
|
|
7068
7068
|
token: Ee.token
|
|
7069
7069
|
}) : p.debug("🦜 streaming_token parsed", {
|
|
7070
|
-
type:
|
|
7071
|
-
index:
|
|
7072
|
-
outputName:
|
|
7070
|
+
type: Je.type,
|
|
7071
|
+
index: Je.index,
|
|
7072
|
+
outputName: Je.type === "tool_results" ? Je.output_name : void 0
|
|
7073
7073
|
}) : p.debug("🦜 streaming_token dropped (empty or unrecognized payload shape)", {
|
|
7074
7074
|
token: Ee.token
|
|
7075
7075
|
});
|
|
@@ -7078,23 +7078,23 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7078
7078
|
}
|
|
7079
7079
|
}), re.on("typing_started", () => {
|
|
7080
7080
|
var Ee;
|
|
7081
|
-
(Ee = Ta(
|
|
7081
|
+
(Ee = Ta(Ae.current)) != null && Ee.options.silent || x({ type: "SET_AGENT_TYPING", isTyping: !0 });
|
|
7082
7082
|
}), re.on("typing_stopped", () => {
|
|
7083
7083
|
var Ee;
|
|
7084
|
-
(Ee = Ta(
|
|
7084
|
+
(Ee = Ta(Ae.current)) != null && Ee.options.silent || x({ type: "SET_AGENT_TYPING", isTyping: !1 });
|
|
7085
7085
|
}), re.on("progress_indicator", (Ee) => {
|
|
7086
7086
|
var Le;
|
|
7087
|
-
(Le = Ta(
|
|
7087
|
+
(Le = Ta(Ae.current)) != null && Le.options.silent || x({ type: "ADD_PROGRESS_STEP", message: Ee.message });
|
|
7088
7088
|
}), re.on("routing_result", (Ee) => {
|
|
7089
7089
|
var Le;
|
|
7090
7090
|
if (x({ type: "SET_ROUTING_RESULT", result: Ee }), !Ee.isSuccessful) {
|
|
7091
|
-
const
|
|
7091
|
+
const Je = `Routing failed: ${Ee.failureType || "unknown"}`;
|
|
7092
7092
|
x({
|
|
7093
7093
|
type: "SET_ERROR",
|
|
7094
7094
|
error: xE({
|
|
7095
7095
|
code: "ROUTING_FAILED"
|
|
7096
7096
|
})
|
|
7097
|
-
}), x({ type: "SET_CONNECTION_STATUS", status: "error" }), (Le = H.current) == null || Le.call(H,
|
|
7097
|
+
}), x({ type: "SET_CONNECTION_STATUS", status: "error" }), (Le = H.current) == null || Le.call(H, Je);
|
|
7098
7098
|
}
|
|
7099
7099
|
}), re.on("participant_changed", (Ee) => {
|
|
7100
7100
|
if (Ee.participant.name === "Automated Process") return;
|
|
@@ -7129,8 +7129,8 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7129
7129
|
throw _a;
|
|
7130
7130
|
}, Ce = (Ee) => Ee === xe.current, Oe = (Ee) => Be(null, null, function* () {
|
|
7131
7131
|
v(!1);
|
|
7132
|
-
let Le = V.getStoredConnectOptions(),
|
|
7133
|
-
Le || (Le = yield V.getPeerConnectOptions(), we(Ee),
|
|
7132
|
+
let Le = V.getStoredConnectOptions(), Je = !1;
|
|
7133
|
+
Le || (Le = yield V.getPeerConnectOptions(), we(Ee), Je = !!Le);
|
|
7134
7134
|
let vt = !1;
|
|
7135
7135
|
try {
|
|
7136
7136
|
if (yield re.connect(Le != null ? Le : void 0), !Ce(Ee))
|
|
@@ -7138,7 +7138,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7138
7138
|
vt = !!(Le != null && Le.lastEventId);
|
|
7139
7139
|
} catch (dr) {
|
|
7140
7140
|
if (we(Ee), Le && ih(dr)) {
|
|
7141
|
-
if (p == null || p.log("Stored token expired on connect — falling back to fresh connect"),
|
|
7141
|
+
if (p == null || p.log("Stored token expired on connect — falling back to fresh connect"), Je || V.clearPersistedConversation(), yield re.connect(), !Ce(Ee))
|
|
7142
7142
|
throw re.disconnect(), _a;
|
|
7143
7143
|
vt = !1;
|
|
7144
7144
|
} else
|
|
@@ -7160,15 +7160,15 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7160
7160
|
x({ type: "SET_CONVERSATION_ID", id: Bt.conversationId }), Bt.resumed && x({ type: "LOAD_HISTORY", messages: Bt.restoredMessages }), v(!0), x({ type: "SET_LOADING", isLoading: !1 });
|
|
7161
7161
|
});
|
|
7162
7162
|
return C.current = Oe, () => {
|
|
7163
|
-
xe.current += 1,
|
|
7163
|
+
xe.current += 1, ke.current += 1, re.disconnect(), re.off(), J.current = null, C.current = null, D.current = null, P.current = !1;
|
|
7164
7164
|
};
|
|
7165
|
-
}, [e, t, n, s,
|
|
7165
|
+
}, [e, t, n, s, Qe]);
|
|
7166
7166
|
const ft = R.useCallback(() => {
|
|
7167
7167
|
if (P.current) return Promise.resolve();
|
|
7168
|
-
if (
|
|
7169
|
-
return Z.current === xe.current ?
|
|
7168
|
+
if (D.current)
|
|
7169
|
+
return Z.current === xe.current ? D.current : D.current.catch((Oe) => {
|
|
7170
7170
|
if (Oe !== _a) throw Oe;
|
|
7171
|
-
}).then(() =>
|
|
7171
|
+
}).then(() => he.current());
|
|
7172
7172
|
const re = C.current;
|
|
7173
7173
|
if (!re) return Promise.reject(new Error("Messaging is unavailable"));
|
|
7174
7174
|
x({ type: "SET_LOADING", isLoading: !0 }), x({ type: "SET_CONNECTION_STATUS", status: "connecting" });
|
|
@@ -7183,11 +7183,11 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7183
7183
|
const Ee = Oe instanceof Error ? Oe.message : String(Oe);
|
|
7184
7184
|
throw x({ type: "SET_CONNECTION_STATUS", status: "error" }), x({ type: "SET_ERROR", error: Ei(Oe) }), (Le = H.current) == null || Le.call(H, Ee), Oe;
|
|
7185
7185
|
}).finally(() => {
|
|
7186
|
-
|
|
7186
|
+
D.current === Ce && (D.current = null);
|
|
7187
7187
|
});
|
|
7188
|
-
return
|
|
7188
|
+
return D.current = Ce, Ce;
|
|
7189
7189
|
}, []);
|
|
7190
|
-
|
|
7190
|
+
he.current = ft, R.useEffect(() => {
|
|
7191
7191
|
y && ft().catch(() => {
|
|
7192
7192
|
});
|
|
7193
7193
|
}, [y, e, t, n, s, ft]);
|
|
@@ -7239,11 +7239,11 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7239
7239
|
options: re.options,
|
|
7240
7240
|
message: Ee
|
|
7241
7241
|
}
|
|
7242
|
-
}), (Ce = H.current) == null || Ce.call(H, Oe instanceof Error ? Oe.message : String(Oe)),
|
|
7242
|
+
}), (Ce = H.current) == null || Ce.call(H, Oe instanceof Error ? Oe.message : String(Oe)), Qe(re, { outcome: "failure", message: Ee });
|
|
7243
7243
|
}
|
|
7244
7244
|
}
|
|
7245
7245
|
}),
|
|
7246
|
-
[
|
|
7246
|
+
[Qe]
|
|
7247
7247
|
), dn = R.useCallback(
|
|
7248
7248
|
(re) => Be(null, null, function* () {
|
|
7249
7249
|
var Ce;
|
|
@@ -7272,19 +7272,19 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7272
7272
|
p == null || p.log("🦜 recoverExpiredSession: new conversation created", { conversationId: Oe }), x({ type: "SET_CONVERSATION_ID", id: Oe }), x({ type: "SET_CONNECTION_STATUS", status: "connected" }), V.persistConversationId(Oe), re && (yield Zt(re));
|
|
7273
7273
|
} catch (Oe) {
|
|
7274
7274
|
const Ee = Oe instanceof Error ? Oe.message : String(Oe);
|
|
7275
|
-
x({ type: "SET_ERROR", error: Ei(Oe) }), x({ type: "SET_CONNECTION_STATUS", status: "error" }), (Ce = H.current) == null || Ce.call(H, Ee), re &&
|
|
7275
|
+
x({ type: "SET_ERROR", error: Ei(Oe) }), x({ type: "SET_CONNECTION_STATUS", status: "error" }), (Ce = H.current) == null || Ce.call(H, Ee), re && Qe(re, { outcome: "failure", message: Ei(Oe) });
|
|
7276
7276
|
} finally {
|
|
7277
7277
|
le.current = !1, fe.current = !1;
|
|
7278
7278
|
}
|
|
7279
7279
|
}
|
|
7280
7280
|
}),
|
|
7281
|
-
[r, V, Ct, Zt, p,
|
|
7281
|
+
[r, V, Ct, Zt, p, Qe]
|
|
7282
7282
|
), Nt = R.useRef(dn);
|
|
7283
7283
|
Nt.current = dn;
|
|
7284
7284
|
const He = R.useCallback(() => Be(null, null, function* () {
|
|
7285
7285
|
const re = J.current;
|
|
7286
7286
|
if (!re || !P.current || le.current) return;
|
|
7287
|
-
if (!
|
|
7287
|
+
if (!M.current.conversationId && !ue.current) {
|
|
7288
7288
|
re.reconnect();
|
|
7289
7289
|
return;
|
|
7290
7290
|
}
|
|
@@ -7309,7 +7309,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7309
7309
|
le.current = !0;
|
|
7310
7310
|
try {
|
|
7311
7311
|
re.disconnect(), yield re.connect({ continuationToken: Ce }), yield V.persistContinuationToken(re);
|
|
7312
|
-
const Oe =
|
|
7312
|
+
const Oe = M.current.conversationId;
|
|
7313
7313
|
Oe && re.resumeConversation(Oe);
|
|
7314
7314
|
} catch (Oe) {
|
|
7315
7315
|
if (ih(Oe)) {
|
|
@@ -7326,19 +7326,19 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7326
7326
|
}), [V, p]);
|
|
7327
7327
|
R.useEffect(() => {
|
|
7328
7328
|
const re = () => {
|
|
7329
|
-
const
|
|
7330
|
-
|
|
7329
|
+
const Je = Date.now();
|
|
7330
|
+
Je - W.current < SO || (W.current = Je, Ne.current());
|
|
7331
7331
|
}, we = () => {
|
|
7332
7332
|
if (document.visibilityState === "hidden") {
|
|
7333
7333
|
de.current = Date.now();
|
|
7334
7334
|
return;
|
|
7335
7335
|
}
|
|
7336
|
-
const
|
|
7337
|
-
if (!
|
|
7336
|
+
const Je = J.current;
|
|
7337
|
+
if (!Je) return;
|
|
7338
7338
|
const vt = de.current ? Date.now() - de.current : 0;
|
|
7339
|
-
de.current = 0, (ue.current || !
|
|
7340
|
-
}, Ce = (
|
|
7341
|
-
|
|
7339
|
+
de.current = 0, (ue.current || !Je.isConnected || vt > _O) && re();
|
|
7340
|
+
}, Ce = (Je) => {
|
|
7341
|
+
Je.persisted && re();
|
|
7342
7342
|
}, Oe = () => {
|
|
7343
7343
|
de.current = Date.now();
|
|
7344
7344
|
}, Ee = () => re(), Le = () => re();
|
|
@@ -7351,7 +7351,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7351
7351
|
var Oe;
|
|
7352
7352
|
const Ce = J.current;
|
|
7353
7353
|
if (!Ce) {
|
|
7354
|
-
|
|
7354
|
+
Qe(re, { outcome: "failure", message: "Messaging is unavailable" });
|
|
7355
7355
|
return;
|
|
7356
7356
|
}
|
|
7357
7357
|
if (ue.current) {
|
|
@@ -7366,10 +7366,10 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7366
7366
|
return;
|
|
7367
7367
|
}
|
|
7368
7368
|
const Le = Ei(Ee);
|
|
7369
|
-
x({ type: "SET_SEND_ERROR", error: we(Le) }), (Oe = H.current) == null || Oe.call(H, Ee instanceof Error ? Ee.message : String(Ee)),
|
|
7369
|
+
x({ type: "SET_SEND_ERROR", error: we(Le) }), (Oe = H.current) == null || Oe.call(H, Ee instanceof Error ? Ee.message : String(Ee)), Qe(re, { outcome: "failure", message: Le });
|
|
7370
7370
|
}
|
|
7371
7371
|
}),
|
|
7372
|
-
[
|
|
7372
|
+
[Qe]
|
|
7373
7373
|
), ct = R.useCallback((re) => Be(null, null, function* () {
|
|
7374
7374
|
const we = oe.current;
|
|
7375
7375
|
we && (yield we), yield re();
|
|
@@ -7386,9 +7386,9 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7386
7386
|
options: Ce,
|
|
7387
7387
|
resolve: Oe,
|
|
7388
7388
|
timeoutId: setTimeout(() => {
|
|
7389
|
-
x({ type: "SET_LOADING", isLoading: !1 }),
|
|
7389
|
+
x({ type: "SET_LOADING", isLoading: !1 }), Qe(Le, { outcome: "timeout" });
|
|
7390
7390
|
}, bO)
|
|
7391
|
-
}),
|
|
7391
|
+
}), Ae.current.push(Le), qe(), x({ type: "CLEAR_SEND_ERROR" }), Ce.silent || (x({
|
|
7392
7392
|
type: "ADD_MESSAGE",
|
|
7393
7393
|
message: {
|
|
7394
7394
|
id: crypto.randomUUID(),
|
|
@@ -7397,20 +7397,20 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7397
7397
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
7398
7398
|
}
|
|
7399
7399
|
}), x({ type: "SET_LOADING", isLoading: !0 }), x({ type: "SET_PROGRESS_MESSAGE", message: "" })), ct(
|
|
7400
|
-
() => Ze(Le, (
|
|
7400
|
+
() => Ze(Le, (Je) => ({ text: re, displayContent: we, options: Ce, message: Je }))
|
|
7401
7401
|
);
|
|
7402
7402
|
}),
|
|
7403
|
-
[Ze, ct,
|
|
7403
|
+
[Ze, ct, Qe, qe]
|
|
7404
7404
|
), gn = R.useCallback(
|
|
7405
7405
|
(re, we) => {
|
|
7406
7406
|
if (!re.trim()) return Promise.resolve({ outcome: "failure", message: "Message is empty" });
|
|
7407
|
-
const Ce =
|
|
7408
|
-
const
|
|
7407
|
+
const Ce = ke.current, Oe = () => {
|
|
7408
|
+
const Je = () => Ce !== ke.current ? Promise.resolve({
|
|
7409
7409
|
outcome: "failure",
|
|
7410
7410
|
message: "Message cancelled"
|
|
7411
7411
|
}) : Ot(re, we == null ? void 0 : we.displayContent, we);
|
|
7412
|
-
return P.current ?
|
|
7413
|
-
|
|
7412
|
+
return P.current ? Je() : ft().then(
|
|
7413
|
+
Je,
|
|
7414
7414
|
(vt) => ({ outcome: "failure", message: Ei(vt) })
|
|
7415
7415
|
);
|
|
7416
7416
|
}, Ee = Fe.current ? Fe.current.then(Oe) : Oe(), Le = Ee.then(() => {
|
|
@@ -7423,16 +7423,16 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7423
7423
|
), ki = R.useCallback(
|
|
7424
7424
|
(re) => {
|
|
7425
7425
|
if (!J.current) return;
|
|
7426
|
-
const we =
|
|
7426
|
+
const we = ke.current, { prompt: Ce, display: Oe } = wO(re);
|
|
7427
7427
|
ft().then(() => {
|
|
7428
|
-
if (we ===
|
|
7428
|
+
if (we === ke.current)
|
|
7429
7429
|
return Ot(Ce, Oe);
|
|
7430
7430
|
}).catch(() => {
|
|
7431
7431
|
});
|
|
7432
7432
|
},
|
|
7433
7433
|
[Ot, ft]
|
|
7434
7434
|
), Pi = R.useCallback(() => {
|
|
7435
|
-
const re = J.current, we =
|
|
7435
|
+
const re = J.current, we = M.current.sendError;
|
|
7436
7436
|
if (!re || !we) return;
|
|
7437
7437
|
const Ce = () => fe.current ? Promise.resolve({
|
|
7438
7438
|
outcome: "failure",
|
|
@@ -7444,24 +7444,24 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7444
7444
|
}), Oe;
|
|
7445
7445
|
}, [Ot]), Ri = R.useCallback(() => {
|
|
7446
7446
|
const re = J.current;
|
|
7447
|
-
re && (
|
|
7447
|
+
re && (D.current || (ue.current = !1, P.current = !1, G(!1), re.disconnect(), x({ type: "SET_CONNECTION_STATUS", status: "connecting" }), ft().catch(() => {
|
|
7448
7448
|
})));
|
|
7449
7449
|
}, [ft]), ae = R.useCallback(() => {
|
|
7450
7450
|
const re = J.current;
|
|
7451
7451
|
if (!re) return Promise.resolve();
|
|
7452
7452
|
if (!P.current)
|
|
7453
|
-
return xe.current += 1,
|
|
7454
|
-
const we = ++
|
|
7455
|
-
return ue.current = !1, O(!1), V.clearPersistedConversation(), x({ type: "RESET" }), x({ type: "SET_LOADING", isLoading: !0 }), x({ type: "SET_CONNECTION_STATUS", status: "connecting" }), re.endConversation().then(() => we !==
|
|
7456
|
-
return !Ce || we !==
|
|
7453
|
+
return xe.current += 1, ke.current += 1, re.disconnect(), V.clearPersistedConversation(), x({ type: "RESET" }), Promise.resolve();
|
|
7454
|
+
const we = ++ke.current;
|
|
7455
|
+
return ue.current = !1, O(!1), V.clearPersistedConversation(), x({ type: "RESET" }), x({ type: "SET_LOADING", isLoading: !0 }), x({ type: "SET_CONNECTION_STATUS", status: "connecting" }), re.endConversation().then(() => we !== ke.current || J.current !== re ? null : (re.disconnect(), re.connect().then(() => re))).then((Ce) => Be(null, null, function* () {
|
|
7456
|
+
return !Ce || we !== ke.current || (yield V.persistContinuationToken(
|
|
7457
7457
|
Ce,
|
|
7458
|
-
() => we ===
|
|
7459
|
-
), we !==
|
|
7458
|
+
() => we === ke.current && J.current === Ce
|
|
7459
|
+
), we !== ke.current || J.current !== Ce) ? null : re.createConversation(yield ic({ routingAttributes: r }));
|
|
7460
7460
|
})).then((Ce) => {
|
|
7461
|
-
!Ce || we !==
|
|
7461
|
+
!Ce || we !== ke.current || J.current !== re || (x({ type: "SET_CONVERSATION_ID", id: Ce }), x({ type: "SET_CONNECTION_STATUS", status: "connected" }), V.persistConversationId(Ce));
|
|
7462
7462
|
}).catch((Ce) => {
|
|
7463
7463
|
var Oe;
|
|
7464
|
-
we !==
|
|
7464
|
+
we !== ke.current || J.current !== re || (x({ type: "SET_ERROR", error: Ei(Ce) }), x({ type: "SET_CONNECTION_STATUS", status: "error" }), (Oe = H.current) == null || Oe.call(H, Ce.message));
|
|
7465
7465
|
});
|
|
7466
7466
|
}, [r, V]);
|
|
7467
7467
|
CO({
|
|
@@ -7483,7 +7483,7 @@ const _a = /* @__PURE__ */ Symbol("initialization-cancelled"), PO = ({
|
|
|
7483
7483
|
const be = R.useCallback(() => Be(null, null, function* () {
|
|
7484
7484
|
var Oe;
|
|
7485
7485
|
const re = J.current;
|
|
7486
|
-
if (!re || !
|
|
7486
|
+
if (!re || !M.current.conversationId) return;
|
|
7487
7487
|
const we = yield re.retrieveConversationTranscript(), Ce = URL.createObjectURL(we);
|
|
7488
7488
|
try {
|
|
7489
7489
|
const Ee = document.createElement("a");
|
|
@@ -8258,7 +8258,7 @@ const qO = (e) => Array.from(new Set((e != null ? e : []).map((t) => t.trim()).f
|
|
|
8258
8258
|
searchPlaceholder: O,
|
|
8259
8259
|
searchButtonLabel: $,
|
|
8260
8260
|
searchConfig: G,
|
|
8261
|
-
suggestionButtonConfig:
|
|
8261
|
+
suggestionButtonConfig: M,
|
|
8262
8262
|
messageAlignment: V,
|
|
8263
8263
|
autoScroll: J,
|
|
8264
8264
|
promptsConfig: se,
|
|
@@ -8290,7 +8290,7 @@ const qO = (e) => Array.from(new Set((e != null ? e : []).map((t) => t.trim()).f
|
|
|
8290
8290
|
searchPlaceholder: O,
|
|
8291
8291
|
searchButtonLabel: $,
|
|
8292
8292
|
searchConfig: G,
|
|
8293
|
-
suggestionButtonConfig:
|
|
8293
|
+
suggestionButtonConfig: M,
|
|
8294
8294
|
messageAlignment: V,
|
|
8295
8295
|
autoScroll: J,
|
|
8296
8296
|
showProductDescription: H,
|
|
@@ -8346,8 +8346,8 @@ function eI() {
|
|
|
8346
8346
|
var C = W.length;
|
|
8347
8347
|
W.push(oe);
|
|
8348
8348
|
e: for (; 0 < C; ) {
|
|
8349
|
-
var
|
|
8350
|
-
if (0 < s(Z, oe)) W[
|
|
8349
|
+
var D = C - 1 >>> 1, Z = W[D];
|
|
8350
|
+
if (0 < s(Z, oe)) W[D] = oe, W[C] = Z, C = D;
|
|
8351
8351
|
else break e;
|
|
8352
8352
|
}
|
|
8353
8353
|
}
|
|
@@ -8359,10 +8359,10 @@ function eI() {
|
|
|
8359
8359
|
var oe = W[0], C = W.pop();
|
|
8360
8360
|
if (C !== oe) {
|
|
8361
8361
|
W[0] = C;
|
|
8362
|
-
e: for (var
|
|
8363
|
-
var xe = 2 * (
|
|
8364
|
-
if (0 > s(
|
|
8365
|
-
else if (
|
|
8362
|
+
e: for (var D = 0, Z = W.length, P = Z >>> 1; D < P; ) {
|
|
8363
|
+
var xe = 2 * (D + 1) - 1, ke = W[xe], he = xe + 1, Ae = W[he];
|
|
8364
|
+
if (0 > s(ke, C)) he < Z && 0 > s(Ae, ke) ? (W[D] = Ae, W[he] = C, D = he) : (W[D] = ke, W[xe] = C, D = xe);
|
|
8365
|
+
else if (he < Z && 0 > s(Ae, C)) W[D] = Ae, W[he] = C, D = he;
|
|
8366
8366
|
else break e;
|
|
8367
8367
|
}
|
|
8368
8368
|
}
|
|
@@ -8405,10 +8405,10 @@ function eI() {
|
|
|
8405
8405
|
var C = _;
|
|
8406
8406
|
try {
|
|
8407
8407
|
for (O(oe), p = n(d); p !== null && (!(p.expirationTime > oe) || W && !ie()); ) {
|
|
8408
|
-
var
|
|
8409
|
-
if (typeof
|
|
8408
|
+
var D = p.callback;
|
|
8409
|
+
if (typeof D == "function") {
|
|
8410
8410
|
p.callback = null, _ = p.priorityLevel;
|
|
8411
|
-
var Z =
|
|
8411
|
+
var Z = D(p.expirationTime <= oe);
|
|
8412
8412
|
oe = e.unstable_now(), typeof Z == "function" ? p.callback = Z : p === n(d) && r(d), O(oe);
|
|
8413
8413
|
} else r(d);
|
|
8414
8414
|
p = n(d);
|
|
@@ -8423,7 +8423,7 @@ function eI() {
|
|
|
8423
8423
|
p = null, _ = C, y = !1;
|
|
8424
8424
|
}
|
|
8425
8425
|
}
|
|
8426
|
-
var
|
|
8426
|
+
var M = !1, V = null, J = -1, se = 5, H = -1;
|
|
8427
8427
|
function ie() {
|
|
8428
8428
|
return !(e.unstable_now() - H < se);
|
|
8429
8429
|
}
|
|
@@ -8435,9 +8435,9 @@ function eI() {
|
|
|
8435
8435
|
try {
|
|
8436
8436
|
oe = V(!0, W);
|
|
8437
8437
|
} finally {
|
|
8438
|
-
oe ? le() : (
|
|
8438
|
+
oe ? le() : (M = !1, V = null);
|
|
8439
8439
|
}
|
|
8440
|
-
} else
|
|
8440
|
+
} else M = !1;
|
|
8441
8441
|
}
|
|
8442
8442
|
var le;
|
|
8443
8443
|
if (typeof N == "function") le = function() {
|
|
@@ -8452,7 +8452,7 @@ function eI() {
|
|
|
8452
8452
|
w(te, 0);
|
|
8453
8453
|
};
|
|
8454
8454
|
function ve(W) {
|
|
8455
|
-
V = W,
|
|
8455
|
+
V = W, M || (M = !0, le());
|
|
8456
8456
|
}
|
|
8457
8457
|
function de(W, oe) {
|
|
8458
8458
|
J = w(function() {
|
|
@@ -8507,8 +8507,8 @@ function eI() {
|
|
|
8507
8507
|
_ = C;
|
|
8508
8508
|
}
|
|
8509
8509
|
}, e.unstable_scheduleCallback = function(W, oe, C) {
|
|
8510
|
-
var
|
|
8511
|
-
switch (typeof C == "object" && C !== null ? (C = C.delay, C = typeof C == "number" && 0 < C ?
|
|
8510
|
+
var D = e.unstable_now();
|
|
8511
|
+
switch (typeof C == "object" && C !== null ? (C = C.delay, C = typeof C == "number" && 0 < C ? D + C : D) : C = D, W) {
|
|
8512
8512
|
case 1:
|
|
8513
8513
|
var Z = -1;
|
|
8514
8514
|
break;
|
|
@@ -8524,7 +8524,7 @@ function eI() {
|
|
|
8524
8524
|
default:
|
|
8525
8525
|
Z = 5e3;
|
|
8526
8526
|
}
|
|
8527
|
-
return Z = C + Z, W = { id: m++, callback: oe, priorityLevel: W, startTime: C, expirationTime: Z, sortIndex: -1 }, C >
|
|
8527
|
+
return Z = C + Z, W = { id: m++, callback: oe, priorityLevel: W, startTime: C, expirationTime: Z, sortIndex: -1 }, C > D ? (W.sortIndex = C, t(f, W), n(d) === null && W === n(f) && (x ? (v(J), J = -1) : x = !0, de($, C - D))) : (W.sortIndex = Z, t(d, W), S || y || (S = !0, ve(G))), W;
|
|
8528
8528
|
}, e.unstable_shouldYield = ie, e.unstable_wrapCallback = function(W) {
|
|
8529
8529
|
var oe = _;
|
|
8530
8530
|
return function() {
|
|
@@ -8639,20 +8639,20 @@ function nI() {
|
|
|
8639
8639
|
var E = w.hasOwnProperty(o) ? w[o] : null;
|
|
8640
8640
|
(E !== null ? E.type !== 0 : h || !(2 < o.length) || o[0] !== "o" && o[0] !== "O" || o[1] !== "n" && o[1] !== "N") && (S(o, c, E, h) && (c = null), h || E === null ? _(o) && (c === null ? i.removeAttribute(o) : i.setAttribute(o, "" + c)) : E.mustUseProperty ? i[E.propertyName] = c === null ? E.type === 3 ? !1 : "" : c : (o = E.attributeName, h = E.attributeNamespace, c === null ? i.removeAttribute(o) : (E = E.type, c = E === 3 || E === 4 && c === !0 ? "" : "" + c, h ? i.setAttributeNS(h, o, c) : i.setAttribute(o, c))));
|
|
8641
8641
|
}
|
|
8642
|
-
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, G = /* @__PURE__ */ Symbol.for("react.element"),
|
|
8642
|
+
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, G = /* @__PURE__ */ Symbol.for("react.element"), M = /* @__PURE__ */ Symbol.for("react.portal"), V = /* @__PURE__ */ Symbol.for("react.fragment"), J = /* @__PURE__ */ Symbol.for("react.strict_mode"), se = /* @__PURE__ */ Symbol.for("react.profiler"), H = /* @__PURE__ */ Symbol.for("react.provider"), ie = /* @__PURE__ */ Symbol.for("react.context"), te = /* @__PURE__ */ Symbol.for("react.forward_ref"), le = /* @__PURE__ */ Symbol.for("react.suspense"), fe = /* @__PURE__ */ Symbol.for("react.suspense_list"), ue = /* @__PURE__ */ Symbol.for("react.memo"), ve = /* @__PURE__ */ Symbol.for("react.lazy"), de = /* @__PURE__ */ Symbol.for("react.offscreen"), W = Symbol.iterator;
|
|
8643
8643
|
function oe(i) {
|
|
8644
8644
|
return i === null || typeof i != "object" ? null : (i = W && i[W] || i["@@iterator"], typeof i == "function" ? i : null);
|
|
8645
8645
|
}
|
|
8646
|
-
var C = Object.assign,
|
|
8646
|
+
var C = Object.assign, D;
|
|
8647
8647
|
function Z(i) {
|
|
8648
|
-
if (
|
|
8648
|
+
if (D === void 0) try {
|
|
8649
8649
|
throw Error();
|
|
8650
8650
|
} catch (c) {
|
|
8651
8651
|
var o = c.stack.trim().match(/\n( *(at )?)/);
|
|
8652
|
-
|
|
8652
|
+
D = o && o[1] || "";
|
|
8653
8653
|
}
|
|
8654
8654
|
return `
|
|
8655
|
-
` +
|
|
8655
|
+
` + D + i;
|
|
8656
8656
|
}
|
|
8657
8657
|
var P = !1;
|
|
8658
8658
|
function xe(i, o) {
|
|
@@ -8710,7 +8710,7 @@ function nI() {
|
|
|
8710
8710
|
}
|
|
8711
8711
|
return (i = i ? i.displayName || i.name : "") ? Z(i) : "";
|
|
8712
8712
|
}
|
|
8713
|
-
function
|
|
8713
|
+
function ke(i) {
|
|
8714
8714
|
switch (i.tag) {
|
|
8715
8715
|
case 5:
|
|
8716
8716
|
return Z(i.type);
|
|
@@ -8732,14 +8732,14 @@ function nI() {
|
|
|
8732
8732
|
return "";
|
|
8733
8733
|
}
|
|
8734
8734
|
}
|
|
8735
|
-
function
|
|
8735
|
+
function he(i) {
|
|
8736
8736
|
if (i == null) return null;
|
|
8737
8737
|
if (typeof i == "function") return i.displayName || i.name || null;
|
|
8738
8738
|
if (typeof i == "string") return i;
|
|
8739
8739
|
switch (i) {
|
|
8740
8740
|
case V:
|
|
8741
8741
|
return "Fragment";
|
|
8742
|
-
case
|
|
8742
|
+
case M:
|
|
8743
8743
|
return "Portal";
|
|
8744
8744
|
case se:
|
|
8745
8745
|
return "Profiler";
|
|
@@ -8759,17 +8759,17 @@ function nI() {
|
|
|
8759
8759
|
var o = i.render;
|
|
8760
8760
|
return i = i.displayName, i || (i = o.displayName || o.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
8761
8761
|
case ue:
|
|
8762
|
-
return o = i.displayName || null, o !== null ? o :
|
|
8762
|
+
return o = i.displayName || null, o !== null ? o : he(i.type) || "Memo";
|
|
8763
8763
|
case ve:
|
|
8764
8764
|
o = i._payload, i = i._init;
|
|
8765
8765
|
try {
|
|
8766
|
-
return
|
|
8766
|
+
return he(i(o));
|
|
8767
8767
|
} catch (c) {
|
|
8768
8768
|
}
|
|
8769
8769
|
}
|
|
8770
8770
|
return null;
|
|
8771
8771
|
}
|
|
8772
|
-
function
|
|
8772
|
+
function Ae(i) {
|
|
8773
8773
|
var o = i.type;
|
|
8774
8774
|
switch (i.tag) {
|
|
8775
8775
|
case 24:
|
|
@@ -8793,7 +8793,7 @@ function nI() {
|
|
|
8793
8793
|
case 6:
|
|
8794
8794
|
return "Text";
|
|
8795
8795
|
case 16:
|
|
8796
|
-
return
|
|
8796
|
+
return he(o);
|
|
8797
8797
|
case 8:
|
|
8798
8798
|
return o === J ? "StrictMode" : "Mode";
|
|
8799
8799
|
case 22:
|
|
@@ -8836,7 +8836,7 @@ function nI() {
|
|
|
8836
8836
|
var o = i.type;
|
|
8837
8837
|
return (i = i.nodeName) && i.toLowerCase() === "input" && (o === "checkbox" || o === "radio");
|
|
8838
8838
|
}
|
|
8839
|
-
function
|
|
8839
|
+
function Qe(i) {
|
|
8840
8840
|
var o = qe(i) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(i.constructor.prototype, o), h = "" + i[o];
|
|
8841
8841
|
if (!i.hasOwnProperty(o) && typeof c != "undefined" && typeof c.get == "function" && typeof c.set == "function") {
|
|
8842
8842
|
var E = c.get, T = c.set;
|
|
@@ -8854,7 +8854,7 @@ function nI() {
|
|
|
8854
8854
|
}
|
|
8855
8855
|
}
|
|
8856
8856
|
function ft(i) {
|
|
8857
|
-
i._valueTracker || (i._valueTracker =
|
|
8857
|
+
i._valueTracker || (i._valueTracker = Qe(i));
|
|
8858
8858
|
}
|
|
8859
8859
|
function Ct(i) {
|
|
8860
8860
|
if (!i) return !1;
|
|
@@ -9054,7 +9054,7 @@ function nI() {
|
|
|
9054
9054
|
if (o.style != null && typeof o.style != "object") throw Error(n(62));
|
|
9055
9055
|
}
|
|
9056
9056
|
}
|
|
9057
|
-
function
|
|
9057
|
+
function Je(i, o) {
|
|
9058
9058
|
if (i.indexOf("-") === -1) return typeof o.is == "string";
|
|
9059
9059
|
switch (i) {
|
|
9060
9060
|
case "annotation-xml":
|
|
@@ -10067,25 +10067,25 @@ function nI() {
|
|
|
10067
10067
|
l0(function() {
|
|
10068
10068
|
var ee = T, ge = Bt(c), ye = [];
|
|
10069
10069
|
e: {
|
|
10070
|
-
var
|
|
10071
|
-
if (
|
|
10072
|
-
var
|
|
10070
|
+
var pe = eg.get(i);
|
|
10071
|
+
if (pe !== void 0) {
|
|
10072
|
+
var Pe = gd, De = i;
|
|
10073
10073
|
switch (i) {
|
|
10074
10074
|
case "keypress":
|
|
10075
10075
|
if (wu(c) === 0) break e;
|
|
10076
10076
|
case "keydown":
|
|
10077
10077
|
case "keyup":
|
|
10078
|
-
|
|
10078
|
+
Pe = tv;
|
|
10079
10079
|
break;
|
|
10080
10080
|
case "focusin":
|
|
10081
|
-
De = "focus",
|
|
10081
|
+
De = "focus", Pe = Td;
|
|
10082
10082
|
break;
|
|
10083
10083
|
case "focusout":
|
|
10084
|
-
De = "blur",
|
|
10084
|
+
De = "blur", Pe = Td;
|
|
10085
10085
|
break;
|
|
10086
10086
|
case "beforeblur":
|
|
10087
10087
|
case "afterblur":
|
|
10088
|
-
|
|
10088
|
+
Pe = Td;
|
|
10089
10089
|
break;
|
|
10090
10090
|
case "click":
|
|
10091
10091
|
if (c.button === 2) break e;
|
|
@@ -10097,7 +10097,7 @@ function nI() {
|
|
|
10097
10097
|
case "mouseout":
|
|
10098
10098
|
case "mouseover":
|
|
10099
10099
|
case "contextmenu":
|
|
10100
|
-
|
|
10100
|
+
Pe = I0;
|
|
10101
10101
|
break;
|
|
10102
10102
|
case "drag":
|
|
10103
10103
|
case "dragend":
|
|
@@ -10107,32 +10107,32 @@ function nI() {
|
|
|
10107
10107
|
case "dragover":
|
|
10108
10108
|
case "dragstart":
|
|
10109
10109
|
case "drop":
|
|
10110
|
-
|
|
10110
|
+
Pe = zx;
|
|
10111
10111
|
break;
|
|
10112
10112
|
case "touchcancel":
|
|
10113
10113
|
case "touchend":
|
|
10114
10114
|
case "touchmove":
|
|
10115
10115
|
case "touchstart":
|
|
10116
|
-
|
|
10116
|
+
Pe = iv;
|
|
10117
10117
|
break;
|
|
10118
10118
|
case K0:
|
|
10119
10119
|
case Q0:
|
|
10120
10120
|
case J0:
|
|
10121
|
-
|
|
10121
|
+
Pe = Yx;
|
|
10122
10122
|
break;
|
|
10123
10123
|
case Z0:
|
|
10124
|
-
|
|
10124
|
+
Pe = ov;
|
|
10125
10125
|
break;
|
|
10126
10126
|
case "scroll":
|
|
10127
|
-
|
|
10127
|
+
Pe = jx;
|
|
10128
10128
|
break;
|
|
10129
10129
|
case "wheel":
|
|
10130
|
-
|
|
10130
|
+
Pe = uv;
|
|
10131
10131
|
break;
|
|
10132
10132
|
case "copy":
|
|
10133
10133
|
case "cut":
|
|
10134
10134
|
case "paste":
|
|
10135
|
-
|
|
10135
|
+
Pe = Gx;
|
|
10136
10136
|
break;
|
|
10137
10137
|
case "gotpointercapture":
|
|
10138
10138
|
case "lostpointercapture":
|
|
@@ -10142,9 +10142,9 @@ function nI() {
|
|
|
10142
10142
|
case "pointerout":
|
|
10143
10143
|
case "pointerover":
|
|
10144
10144
|
case "pointerup":
|
|
10145
|
-
|
|
10145
|
+
Pe = P0;
|
|
10146
10146
|
}
|
|
10147
|
-
var Me = (o & 4) !== 0, Pt = !Me && i === "scroll", X = Me ?
|
|
10147
|
+
var Me = (o & 4) !== 0, Pt = !Me && i === "scroll", X = Me ? pe !== null ? pe + "Capture" : null : pe;
|
|
10148
10148
|
Me = [];
|
|
10149
10149
|
for (var q = ee, Q; q !== null; ) {
|
|
10150
10150
|
Q = q;
|
|
@@ -10152,15 +10152,15 @@ function nI() {
|
|
|
10152
10152
|
if (Q.tag === 5 && Se !== null && (Q = Se, X !== null && (Se = Lo(q, X), Se != null && Me.push(Zo(q, Se, Q)))), Pt) break;
|
|
10153
10153
|
q = q.return;
|
|
10154
10154
|
}
|
|
10155
|
-
0 < Me.length && (
|
|
10155
|
+
0 < Me.length && (pe = new Pe(pe, De, null, c, ge), ye.push({ event: pe, listeners: Me }));
|
|
10156
10156
|
}
|
|
10157
10157
|
}
|
|
10158
10158
|
if ((o & 7) === 0) {
|
|
10159
10159
|
e: {
|
|
10160
|
-
if (
|
|
10161
|
-
if ((
|
|
10162
|
-
if (Me = I0, Se = "onMouseLeave", X = "onMouseEnter", q = "mouse", (i === "pointerout" || i === "pointerover") && (Me = P0, Se = "onPointerLeave", X = "onPointerEnter", q = "pointer"), Pt =
|
|
10163
|
-
for (Me =
|
|
10160
|
+
if (pe = i === "mouseover" || i === "pointerover", Pe = i === "mouseout" || i === "pointerout", pe && c !== vt && (De = c.relatedTarget || c.fromElement) && (Di(De) || De[Rr])) break e;
|
|
10161
|
+
if ((Pe || pe) && (pe = ge.window === ge ? ge : (pe = ge.ownerDocument) ? pe.defaultView || pe.parentWindow : window, Pe ? (De = c.relatedTarget || c.toElement, Pe = ee, De = De ? Di(De) : null, De !== null && (Pt = Li(De), De !== Pt || De.tag !== 5 && De.tag !== 6) && (De = null)) : (Pe = null, De = ee), Pe !== De)) {
|
|
10162
|
+
if (Me = I0, Se = "onMouseLeave", X = "onMouseEnter", q = "mouse", (i === "pointerout" || i === "pointerover") && (Me = P0, Se = "onPointerLeave", X = "onPointerEnter", q = "pointer"), Pt = Pe == null ? pe : Ns(Pe), Q = De == null ? pe : Ns(De), pe = new Me(Se, q + "leave", Pe, c, ge), pe.target = Pt, pe.relatedTarget = Q, Se = null, Di(ge) === ee && (Me = new Me(X, q + "enter", De, c, ge), Me.target = Q, Me.relatedTarget = Pt, Se = Me), Pt = Se, Pe && De) t: {
|
|
10163
|
+
for (Me = Pe, X = De, q = 0, Q = Me; Q; Q = ws(Q)) q++;
|
|
10164
10164
|
for (Q = 0, Se = X; Se; Se = ws(Se)) Q++;
|
|
10165
10165
|
for (; 0 < q - Q; ) Me = ws(Me), q--;
|
|
10166
10166
|
for (; 0 < Q - q; ) X = ws(X), Q--;
|
|
@@ -10171,22 +10171,22 @@ function nI() {
|
|
|
10171
10171
|
Me = null;
|
|
10172
10172
|
}
|
|
10173
10173
|
else Me = null;
|
|
10174
|
-
|
|
10174
|
+
Pe !== null && sg(ye, pe, Pe, Me, !1), De !== null && Pt !== null && sg(ye, Pt, De, Me, !0);
|
|
10175
10175
|
}
|
|
10176
10176
|
}
|
|
10177
10177
|
e: {
|
|
10178
|
-
if (
|
|
10179
|
-
else if (B0(
|
|
10178
|
+
if (pe = ee ? Ns(ee) : window, Pe = pe.nodeName && pe.nodeName.toLowerCase(), Pe === "select" || Pe === "input" && pe.type === "file") var Ue = mv;
|
|
10179
|
+
else if (B0(pe)) if (H0) Ue = Tv;
|
|
10180
10180
|
else {
|
|
10181
10181
|
Ue = Ev;
|
|
10182
10182
|
var $e = gv;
|
|
10183
10183
|
}
|
|
10184
|
-
else (
|
|
10184
|
+
else (Pe = pe.nodeName) && Pe.toLowerCase() === "input" && (pe.type === "checkbox" || pe.type === "radio") && (Ue = yv);
|
|
10185
10185
|
if (Ue && (Ue = Ue(i, ee))) {
|
|
10186
10186
|
U0(ye, Ue, c, ge);
|
|
10187
10187
|
break e;
|
|
10188
10188
|
}
|
|
10189
|
-
$e && $e(i,
|
|
10189
|
+
$e && $e(i, pe, ee), i === "focusout" && ($e = pe._wrapperState) && $e.controlled && pe.type === "number" && Ze(pe, "number", pe.value);
|
|
10190
10190
|
}
|
|
10191
10191
|
switch ($e = ee ? Ns(ee) : window, i) {
|
|
10192
10192
|
case "focusin":
|
|
@@ -10377,7 +10377,7 @@ function nI() {
|
|
|
10377
10377
|
var h = i.stateNode;
|
|
10378
10378
|
if (o = o.childContextTypes, typeof h.getChildContext != "function") return c;
|
|
10379
10379
|
h = h.getChildContext();
|
|
10380
|
-
for (var E in h) if (!(E in o)) throw Error(n(108,
|
|
10380
|
+
for (var E in h) if (!(E in o)) throw Error(n(108, Ae(i) || "Unknown", E));
|
|
10381
10381
|
return C({}, c, h);
|
|
10382
10382
|
}
|
|
10383
10383
|
function Bu(i) {
|
|
@@ -10590,7 +10590,7 @@ function nI() {
|
|
|
10590
10590
|
switch (q.$$typeof) {
|
|
10591
10591
|
case G:
|
|
10592
10592
|
return Q = hl(q.type, q.key, q.props, null, X.mode, Q), Q.ref = na(X, null, q), Q.return = X, Q;
|
|
10593
|
-
case
|
|
10593
|
+
case M:
|
|
10594
10594
|
return q = Ff(q, X.mode, Q), q.return = X, q;
|
|
10595
10595
|
case ve:
|
|
10596
10596
|
var Se = q._init;
|
|
@@ -10601,17 +10601,17 @@ function nI() {
|
|
|
10601
10601
|
}
|
|
10602
10602
|
return null;
|
|
10603
10603
|
}
|
|
10604
|
-
function
|
|
10604
|
+
function pe(X, q, Q, Se) {
|
|
10605
10605
|
var Ue = q !== null ? q.key : null;
|
|
10606
10606
|
if (typeof Q == "string" && Q !== "" || typeof Q == "number") return Ue !== null ? null : F(X, q, "" + Q, Se);
|
|
10607
10607
|
if (typeof Q == "object" && Q !== null) {
|
|
10608
10608
|
switch (Q.$$typeof) {
|
|
10609
10609
|
case G:
|
|
10610
10610
|
return Q.key === Ue ? z(X, q, Q, Se) : null;
|
|
10611
|
-
case
|
|
10611
|
+
case M:
|
|
10612
10612
|
return Q.key === Ue ? ee(X, q, Q, Se) : null;
|
|
10613
10613
|
case ve:
|
|
10614
|
-
return Ue = Q._init,
|
|
10614
|
+
return Ue = Q._init, pe(
|
|
10615
10615
|
X,
|
|
10616
10616
|
q,
|
|
10617
10617
|
Ue(Q._payload),
|
|
@@ -10623,17 +10623,17 @@ function nI() {
|
|
|
10623
10623
|
}
|
|
10624
10624
|
return null;
|
|
10625
10625
|
}
|
|
10626
|
-
function
|
|
10626
|
+
function Pe(X, q, Q, Se, Ue) {
|
|
10627
10627
|
if (typeof Se == "string" && Se !== "" || typeof Se == "number") return X = X.get(Q) || null, F(q, X, "" + Se, Ue);
|
|
10628
10628
|
if (typeof Se == "object" && Se !== null) {
|
|
10629
10629
|
switch (Se.$$typeof) {
|
|
10630
10630
|
case G:
|
|
10631
10631
|
return X = X.get(Se.key === null ? Q : Se.key) || null, z(q, X, Se, Ue);
|
|
10632
|
-
case
|
|
10632
|
+
case M:
|
|
10633
10633
|
return X = X.get(Se.key === null ? Q : Se.key) || null, ee(q, X, Se, Ue);
|
|
10634
10634
|
case ve:
|
|
10635
10635
|
var $e = Se._init;
|
|
10636
|
-
return
|
|
10636
|
+
return Pe(X, q, Q, $e(Se._payload), Ue);
|
|
10637
10637
|
}
|
|
10638
10638
|
if (ct(Se) || oe(Se)) return X = X.get(Q) || null, ge(q, X, Se, Ue, null);
|
|
10639
10639
|
zu(q, Se);
|
|
@@ -10643,7 +10643,7 @@ function nI() {
|
|
|
10643
10643
|
function De(X, q, Q, Se) {
|
|
10644
10644
|
for (var Ue = null, $e = null, ze = q, We = q = 0, qt = null; ze !== null && We < Q.length; We++) {
|
|
10645
10645
|
ze.index > We ? (qt = ze, ze = null) : qt = ze.sibling;
|
|
10646
|
-
var at =
|
|
10646
|
+
var at = pe(X, ze, Q[We], Se);
|
|
10647
10647
|
if (at === null) {
|
|
10648
10648
|
ze === null && (ze = qt);
|
|
10649
10649
|
break;
|
|
@@ -10655,7 +10655,7 @@ function nI() {
|
|
|
10655
10655
|
for (; We < Q.length; We++) ze = ye(X, Q[We], Se), ze !== null && (q = T(ze, q, We), $e === null ? Ue = ze : $e.sibling = ze, $e = ze);
|
|
10656
10656
|
return St && Bi(X, We), Ue;
|
|
10657
10657
|
}
|
|
10658
|
-
for (ze = h(X, ze); We < Q.length; We++) qt =
|
|
10658
|
+
for (ze = h(X, ze); We < Q.length; We++) qt = Pe(ze, X, We, Q[We], Se), qt !== null && (i && qt.alternate !== null && ze.delete(qt.key === null ? We : qt.key), q = T(qt, q, We), $e === null ? Ue = qt : $e.sibling = qt, $e = qt);
|
|
10659
10659
|
return i && ze.forEach(function(mi) {
|
|
10660
10660
|
return o(X, mi);
|
|
10661
10661
|
}), St && Bi(X, We), Ue;
|
|
@@ -10666,7 +10666,7 @@ function nI() {
|
|
|
10666
10666
|
if (Q = Ue.call(Q), Q == null) throw Error(n(151));
|
|
10667
10667
|
for (var $e = Ue = null, ze = q, We = q = 0, qt = null, at = Q.next(); ze !== null && !at.done; We++, at = Q.next()) {
|
|
10668
10668
|
ze.index > We ? (qt = ze, ze = null) : qt = ze.sibling;
|
|
10669
|
-
var mi =
|
|
10669
|
+
var mi = pe(X, ze, at.value, Se);
|
|
10670
10670
|
if (mi === null) {
|
|
10671
10671
|
ze === null && (ze = qt);
|
|
10672
10672
|
break;
|
|
@@ -10681,7 +10681,7 @@ function nI() {
|
|
|
10681
10681
|
for (; !at.done; We++, at = Q.next()) at = ye(X, at.value, Se), at !== null && (q = T(at, q, We), $e === null ? Ue = at : $e.sibling = at, $e = at);
|
|
10682
10682
|
return St && Bi(X, We), Ue;
|
|
10683
10683
|
}
|
|
10684
|
-
for (ze = h(X, ze); !at.done; We++, at = Q.next()) at =
|
|
10684
|
+
for (ze = h(X, ze); !at.done; We++, at = Q.next()) at = Pe(ze, X, We, at.value, Se), at !== null && (i && at.alternate !== null && ze.delete(at.key === null ? We : at.key), q = T(at, q, We), $e === null ? Ue = at : $e.sibling = at, $e = at);
|
|
10685
10685
|
return i && ze.forEach(function(hA) {
|
|
10686
10686
|
return o(X, hA);
|
|
10687
10687
|
}), St && Bi(X, We), Ue;
|
|
@@ -10710,7 +10710,7 @@ function nI() {
|
|
|
10710
10710
|
Q.type === V ? (q = Yi(Q.props.children, X.mode, Se, Q.key), q.return = X, X = q) : (Se = hl(Q.type, Q.key, Q.props, null, X.mode, Se), Se.ref = na(X, q, Q), Se.return = X, X = Se);
|
|
10711
10711
|
}
|
|
10712
10712
|
return A(X);
|
|
10713
|
-
case
|
|
10713
|
+
case M:
|
|
10714
10714
|
e: {
|
|
10715
10715
|
for ($e = Q.key; q !== null; ) {
|
|
10716
10716
|
if (q.key === $e) if (q.tag === 4 && q.stateNode.containerInfo === Q.containerInfo && q.stateNode.implementation === Q.implementation) {
|
|
@@ -10833,10 +10833,10 @@ function nI() {
|
|
|
10833
10833
|
var ye = E.baseState;
|
|
10834
10834
|
A = 0, ge = ee = z = null, F = T;
|
|
10835
10835
|
do {
|
|
10836
|
-
var
|
|
10837
|
-
if ((h &
|
|
10836
|
+
var pe = F.lane, Pe = F.eventTime;
|
|
10837
|
+
if ((h & pe) === pe) {
|
|
10838
10838
|
ge !== null && (ge = ge.next = {
|
|
10839
|
-
eventTime:
|
|
10839
|
+
eventTime: Pe,
|
|
10840
10840
|
lane: 0,
|
|
10841
10841
|
tag: F.tag,
|
|
10842
10842
|
payload: F.payload,
|
|
@@ -10845,10 +10845,10 @@ function nI() {
|
|
|
10845
10845
|
});
|
|
10846
10846
|
e: {
|
|
10847
10847
|
var De = i, Me = F;
|
|
10848
|
-
switch (
|
|
10848
|
+
switch (pe = o, Pe = c, Me.tag) {
|
|
10849
10849
|
case 1:
|
|
10850
10850
|
if (De = Me.payload, typeof De == "function") {
|
|
10851
|
-
ye = De.call(
|
|
10851
|
+
ye = De.call(Pe, ye, pe);
|
|
10852
10852
|
break e;
|
|
10853
10853
|
}
|
|
10854
10854
|
ye = De;
|
|
@@ -10856,18 +10856,18 @@ function nI() {
|
|
|
10856
10856
|
case 3:
|
|
10857
10857
|
De.flags = De.flags & -65537 | 128;
|
|
10858
10858
|
case 0:
|
|
10859
|
-
if (De = Me.payload,
|
|
10860
|
-
ye = C({}, ye,
|
|
10859
|
+
if (De = Me.payload, pe = typeof De == "function" ? De.call(Pe, ye, pe) : De, pe == null) break e;
|
|
10860
|
+
ye = C({}, ye, pe);
|
|
10861
10861
|
break e;
|
|
10862
10862
|
case 2:
|
|
10863
10863
|
ai = !0;
|
|
10864
10864
|
}
|
|
10865
10865
|
}
|
|
10866
|
-
F.callback !== null && F.lane !== 0 && (i.flags |= 64,
|
|
10867
|
-
} else
|
|
10866
|
+
F.callback !== null && F.lane !== 0 && (i.flags |= 64, pe = E.effects, pe === null ? E.effects = [F] : pe.push(F));
|
|
10867
|
+
} else Pe = { eventTime: Pe, lane: pe, tag: F.tag, payload: F.payload, callback: F.callback, next: null }, ge === null ? (ee = ge = Pe, z = ye) : ge = ge.next = Pe, A |= pe;
|
|
10868
10868
|
if (F = F.next, F === null) {
|
|
10869
10869
|
if (F = E.shared.pending, F === null) break;
|
|
10870
|
-
|
|
10870
|
+
pe = F, F = pe.next, pe.next = null, E.lastBaseUpdate = pe, E.shared.pending = null;
|
|
10871
10871
|
}
|
|
10872
10872
|
} while (!0);
|
|
10873
10873
|
if (ge === null && (z = ye), E.baseState = z, E.firstBaseUpdate = ee, E.lastBaseUpdate = ge, o = E.shared.interleaved, o !== null) {
|
|
@@ -11330,7 +11330,7 @@ function nI() {
|
|
|
11330
11330
|
try {
|
|
11331
11331
|
var c = "", h = o;
|
|
11332
11332
|
do
|
|
11333
|
-
c +=
|
|
11333
|
+
c += ke(h), h = h.return;
|
|
11334
11334
|
while (h);
|
|
11335
11335
|
var E = c;
|
|
11336
11336
|
} catch (T) {
|
|
@@ -11457,14 +11457,14 @@ Error generating stack: ` + T.message + `
|
|
|
11457
11457
|
typeof ee == "object" && ee !== null ? ee = jn(ee) : (ee = yn(c) ? Mi : en.current, ee = Is(o, ee));
|
|
11458
11458
|
var ge = c.getDerivedStateFromProps, ye = typeof ge == "function" || typeof A.getSnapshotBeforeUpdate == "function";
|
|
11459
11459
|
ye || typeof A.UNSAFE_componentWillReceiveProps != "function" && typeof A.componentWillReceiveProps != "function" || (F !== h || z !== ee) && Xg(o, A, h, ee), ai = !1;
|
|
11460
|
-
var
|
|
11461
|
-
A.state =
|
|
11460
|
+
var pe = o.memoizedState;
|
|
11461
|
+
A.state = pe, Wu(o, h, A, E), z = o.memoizedState, F !== h || pe !== z || En.current || ai ? (typeof ge == "function" && (cf(o, c, ge, h), z = o.memoizedState), (F = ai || Wg(o, c, F, h, pe, z, ee)) ? (ye || typeof A.UNSAFE_componentWillMount != "function" && typeof A.componentWillMount != "function" || (typeof A.componentWillMount == "function" && A.componentWillMount(), typeof A.UNSAFE_componentWillMount == "function" && A.UNSAFE_componentWillMount()), typeof A.componentDidMount == "function" && (o.flags |= 4194308)) : (typeof A.componentDidMount == "function" && (o.flags |= 4194308), o.memoizedProps = h, o.memoizedState = z), A.props = h, A.state = z, A.context = ee, h = F) : (typeof A.componentDidMount == "function" && (o.flags |= 4194308), h = !1);
|
|
11462
11462
|
} else {
|
|
11463
|
-
A = o.stateNode, bg(i, o), F = o.memoizedProps, ee = o.type === o.elementType ? F : Jn(o.type, F), A.props = ee, ye = o.pendingProps,
|
|
11464
|
-
var
|
|
11465
|
-
(ge = typeof
|
|
11463
|
+
A = o.stateNode, bg(i, o), F = o.memoizedProps, ee = o.type === o.elementType ? F : Jn(o.type, F), A.props = ee, ye = o.pendingProps, pe = A.context, z = c.contextType, typeof z == "object" && z !== null ? z = jn(z) : (z = yn(c) ? Mi : en.current, z = Is(o, z));
|
|
11464
|
+
var Pe = c.getDerivedStateFromProps;
|
|
11465
|
+
(ge = typeof Pe == "function" || typeof A.getSnapshotBeforeUpdate == "function") || typeof A.UNSAFE_componentWillReceiveProps != "function" && typeof A.componentWillReceiveProps != "function" || (F !== ye || pe !== z) && Xg(o, A, h, z), ai = !1, pe = o.memoizedState, A.state = pe, Wu(o, h, A, E);
|
|
11466
11466
|
var De = o.memoizedState;
|
|
11467
|
-
F !== ye ||
|
|
11467
|
+
F !== ye || pe !== De || En.current || ai ? (typeof Pe == "function" && (cf(o, c, Pe, h), De = o.memoizedState), (ee = ai || Wg(o, c, ee, h, pe, De, z) || !1) ? (ge || typeof A.UNSAFE_componentWillUpdate != "function" && typeof A.componentWillUpdate != "function" || (typeof A.componentWillUpdate == "function" && A.componentWillUpdate(h, De, z), typeof A.UNSAFE_componentWillUpdate == "function" && A.UNSAFE_componentWillUpdate(h, De, z)), typeof A.componentDidUpdate == "function" && (o.flags |= 4), typeof A.getSnapshotBeforeUpdate == "function" && (o.flags |= 1024)) : (typeof A.componentDidUpdate != "function" || F === i.memoizedProps && pe === i.memoizedState || (o.flags |= 4), typeof A.getSnapshotBeforeUpdate != "function" || F === i.memoizedProps && pe === i.memoizedState || (o.flags |= 1024), o.memoizedProps = h, o.memoizedState = De), A.props = h, A.state = De, A.context = z, h = ee) : (typeof A.componentDidUpdate != "function" || F === i.memoizedProps && pe === i.memoizedState || (o.flags |= 4), typeof A.getSnapshotBeforeUpdate != "function" || F === i.memoizedProps && pe === i.memoizedState || (o.flags |= 1024), h = !1);
|
|
11468
11468
|
}
|
|
11469
11469
|
return mf(i, o, c, h, T, E);
|
|
11470
11470
|
}
|
|
@@ -11828,7 +11828,7 @@ Error generating stack: ` + T.message + `
|
|
|
11828
11828
|
} else {
|
|
11829
11829
|
A = E.nodeType === 9 ? E : E.ownerDocument, i === "http://www.w3.org/1999/xhtml" && (i = ae(c)), i === "http://www.w3.org/1999/xhtml" ? c === "script" ? (i = A.createElement("div"), i.innerHTML = "<script><\/script>", i = i.removeChild(i.firstChild)) : typeof h.is == "string" ? i = A.createElement(c, { is: h.is }) : (i = A.createElement(c), c === "select" && (A = i, h.multiple ? A.multiple = !0 : h.size && (A.size = h.size))) : i = A.createElementNS(i, c), i[hr] = o, i[ea] = h, f1(i, o, !1, !1), o.stateNode = i;
|
|
11830
11830
|
e: {
|
|
11831
|
-
switch (A =
|
|
11831
|
+
switch (A = Je(c, h), c) {
|
|
11832
11832
|
case "dialog":
|
|
11833
11833
|
yt("cancel", i), yt("close", i), E = h;
|
|
11834
11834
|
break;
|
|
@@ -12045,16 +12045,16 @@ Error generating stack: ` + T.message + `
|
|
|
12045
12045
|
c = null;
|
|
12046
12046
|
break e;
|
|
12047
12047
|
}
|
|
12048
|
-
var A = 0, F = -1, z = -1, ee = 0, ge = 0, ye = i,
|
|
12048
|
+
var A = 0, F = -1, z = -1, ee = 0, ge = 0, ye = i, pe = null;
|
|
12049
12049
|
t: for (; ; ) {
|
|
12050
|
-
for (var
|
|
12051
|
-
|
|
12050
|
+
for (var Pe; ye !== c || E !== 0 && ye.nodeType !== 3 || (F = A + E), ye !== T || h !== 0 && ye.nodeType !== 3 || (z = A + h), ye.nodeType === 3 && (A += ye.nodeValue.length), (Pe = ye.firstChild) !== null; )
|
|
12051
|
+
pe = ye, ye = Pe;
|
|
12052
12052
|
for (; ; ) {
|
|
12053
12053
|
if (ye === i) break t;
|
|
12054
|
-
if (
|
|
12055
|
-
ye =
|
|
12054
|
+
if (pe === c && ++ee === E && (F = A), pe === T && ++ge === h && (z = A), (Pe = ye.nextSibling) !== null) break;
|
|
12055
|
+
ye = pe, pe = ye.parentNode;
|
|
12056
12056
|
}
|
|
12057
|
-
ye =
|
|
12057
|
+
ye = Pe;
|
|
12058
12058
|
}
|
|
12059
12059
|
c = F === -1 || z === -1 ? null : { start: F, end: z };
|
|
12060
12060
|
} else c = null;
|
|
@@ -12291,8 +12291,8 @@ Error generating stack: ` + T.message + `
|
|
|
12291
12291
|
if (h & 4 && (E = i.stateNode, E != null)) {
|
|
12292
12292
|
var T = i.memoizedProps, A = c !== null ? c.memoizedProps : T, F = i.type, z = i.updateQueue;
|
|
12293
12293
|
if (i.updateQueue = null, z !== null) try {
|
|
12294
|
-
F === "input" && T.type === "radio" && T.name != null && He(E, T),
|
|
12295
|
-
var ee =
|
|
12294
|
+
F === "input" && T.type === "radio" && T.name != null && He(E, T), Je(F, A);
|
|
12295
|
+
var ee = Je(F, T);
|
|
12296
12296
|
for (A = 0; A < z.length; A += 2) {
|
|
12297
12297
|
var ge = z[A], ye = z[A + 1];
|
|
12298
12298
|
ge === "style" ? Oe(E, ye) : ge === "dangerouslySetInnerHTML" ? Ke(E, ye) : ge === "children" ? rt(E, ye) : O(E, ge, ye, ee);
|
|
@@ -12305,10 +12305,10 @@ Error generating stack: ` + T.message + `
|
|
|
12305
12305
|
Pi(E, T);
|
|
12306
12306
|
break;
|
|
12307
12307
|
case "select":
|
|
12308
|
-
var
|
|
12308
|
+
var pe = E._wrapperState.wasMultiple;
|
|
12309
12309
|
E._wrapperState.wasMultiple = !!T.multiple;
|
|
12310
|
-
var
|
|
12311
|
-
|
|
12310
|
+
var Pe = T.value;
|
|
12311
|
+
Pe != null ? Ot(E, !!T.multiple, Pe, !1) : pe !== !!T.multiple && (T.defaultValue != null ? Ot(
|
|
12312
12312
|
E,
|
|
12313
12313
|
!!T.multiple,
|
|
12314
12314
|
T.defaultValue,
|
|
@@ -12349,18 +12349,18 @@ Error generating stack: ` + T.message + `
|
|
|
12349
12349
|
if (ge = c !== null && c.memoizedState !== null, i.mode & 1 ? (rn = (ee = rn) || ge, er(o, i), rn = ee) : er(o, i), gr(i), h & 8192) {
|
|
12350
12350
|
if (ee = i.memoizedState !== null, (i.stateNode.isHidden = ee) && !ge && (i.mode & 1) !== 0) for (Re = i, ge = i.child; ge !== null; ) {
|
|
12351
12351
|
for (ye = Re = ge; Re !== null; ) {
|
|
12352
|
-
switch (
|
|
12352
|
+
switch (pe = Re, Pe = pe.child, pe.tag) {
|
|
12353
12353
|
case 0:
|
|
12354
12354
|
case 11:
|
|
12355
12355
|
case 14:
|
|
12356
12356
|
case 15:
|
|
12357
|
-
da(4,
|
|
12357
|
+
da(4, pe, pe.return);
|
|
12358
12358
|
break;
|
|
12359
12359
|
case 1:
|
|
12360
|
-
Us(
|
|
12361
|
-
var De =
|
|
12360
|
+
Us(pe, pe.return);
|
|
12361
|
+
var De = pe.stateNode;
|
|
12362
12362
|
if (typeof De.componentWillUnmount == "function") {
|
|
12363
|
-
h =
|
|
12363
|
+
h = pe, c = pe.return;
|
|
12364
12364
|
try {
|
|
12365
12365
|
o = h, De.props = o.memoizedProps, De.state = o.memoizedState, De.componentWillUnmount();
|
|
12366
12366
|
} catch (Me) {
|
|
@@ -12369,15 +12369,15 @@ Error generating stack: ` + T.message + `
|
|
|
12369
12369
|
}
|
|
12370
12370
|
break;
|
|
12371
12371
|
case 5:
|
|
12372
|
-
Us(
|
|
12372
|
+
Us(pe, pe.return);
|
|
12373
12373
|
break;
|
|
12374
12374
|
case 22:
|
|
12375
|
-
if (
|
|
12375
|
+
if (pe.memoizedState !== null) {
|
|
12376
12376
|
v1(ye);
|
|
12377
12377
|
continue;
|
|
12378
12378
|
}
|
|
12379
12379
|
}
|
|
12380
|
-
|
|
12380
|
+
Pe !== null ? (Pe.return = pe, Re = Pe) : v1(ye);
|
|
12381
12381
|
}
|
|
12382
12382
|
ge = ge.sibling;
|
|
12383
12383
|
}
|
|
@@ -12559,8 +12559,8 @@ Error generating stack: ` + T.message + `
|
|
|
12559
12559
|
throw Error(n(163));
|
|
12560
12560
|
}
|
|
12561
12561
|
rn || o.flags & 512 && bf(o);
|
|
12562
|
-
} catch (
|
|
12563
|
-
It(o, o.return,
|
|
12562
|
+
} catch (pe) {
|
|
12563
|
+
It(o, o.return, pe);
|
|
12564
12564
|
}
|
|
12565
12565
|
}
|
|
12566
12566
|
if (o === i) {
|
|
@@ -12898,12 +12898,12 @@ Error generating stack: ` + T.message + `
|
|
|
12898
12898
|
if (o = Qt, F.flags |= 32768, z !== null && typeof z == "object" && typeof z.then == "function") {
|
|
12899
12899
|
var ee = z, ge = F, ye = ge.tag;
|
|
12900
12900
|
if ((ge.mode & 1) === 0 && (ye === 0 || ye === 11 || ye === 15)) {
|
|
12901
|
-
var
|
|
12902
|
-
|
|
12901
|
+
var pe = ge.alternate;
|
|
12902
|
+
pe ? (ge.updateQueue = pe.updateQueue, ge.memoizedState = pe.memoizedState, ge.lanes = pe.lanes) : (ge.updateQueue = null, ge.memoizedState = null);
|
|
12903
12903
|
}
|
|
12904
|
-
var
|
|
12905
|
-
if (
|
|
12906
|
-
|
|
12904
|
+
var Pe = Zg(A);
|
|
12905
|
+
if (Pe !== null) {
|
|
12906
|
+
Pe.flags &= -257, e1(Pe, A, F, T, o), Pe.mode & 1 && Jg(T, ee, o), o = Pe, z = ee;
|
|
12907
12907
|
var De = o.updateQueue;
|
|
12908
12908
|
if (De === null) {
|
|
12909
12909
|
var Me = /* @__PURE__ */ new Set();
|
|
@@ -13074,16 +13074,16 @@ Error generating stack: ` + T.message + `
|
|
|
13074
13074
|
if (ye !== null) ye.return = ge, Re = ye;
|
|
13075
13075
|
else for (; Re !== null; ) {
|
|
13076
13076
|
ge = Re;
|
|
13077
|
-
var
|
|
13077
|
+
var pe = ge.sibling, Pe = ge.return;
|
|
13078
13078
|
if (g1(ge), ge === ee) {
|
|
13079
13079
|
Re = null;
|
|
13080
13080
|
break;
|
|
13081
13081
|
}
|
|
13082
|
-
if (
|
|
13083
|
-
|
|
13082
|
+
if (pe !== null) {
|
|
13083
|
+
pe.return = Pe, Re = pe;
|
|
13084
13084
|
break;
|
|
13085
13085
|
}
|
|
13086
|
-
Re =
|
|
13086
|
+
Re = Pe;
|
|
13087
13087
|
}
|
|
13088
13088
|
}
|
|
13089
13089
|
}
|
|
@@ -13439,7 +13439,7 @@ Error generating stack: ` + T.message + `
|
|
|
13439
13439
|
}
|
|
13440
13440
|
function uA(i, o, c) {
|
|
13441
13441
|
var h = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
13442
|
-
return { $$typeof:
|
|
13442
|
+
return { $$typeof: M, key: h == null ? null : "" + h, children: i, containerInfo: o, implementation: c };
|
|
13443
13443
|
}
|
|
13444
13444
|
function M1(i) {
|
|
13445
13445
|
if (!i) return si;
|
|
@@ -15256,13 +15256,13 @@ function jI() {
|
|
|
15256
15256
|
function G() {
|
|
15257
15257
|
var fe = { line: N, column: O };
|
|
15258
15258
|
return function(ue) {
|
|
15259
|
-
return ue.position = new
|
|
15259
|
+
return ue.position = new M(fe), se(), ue;
|
|
15260
15260
|
};
|
|
15261
15261
|
}
|
|
15262
|
-
function
|
|
15262
|
+
function M(fe) {
|
|
15263
15263
|
this.start = fe, this.end = { line: N, column: O }, this.source = v.source;
|
|
15264
15264
|
}
|
|
15265
|
-
|
|
15265
|
+
M.prototype.content = w;
|
|
15266
15266
|
function V(fe) {
|
|
15267
15267
|
var ue = new Error(
|
|
15268
15268
|
v.source + ":" + N + ":" + O + ": " + fe
|
|
@@ -16006,16 +16006,16 @@ function xk(e) {
|
|
|
16006
16006
|
if (r++, t.containerState._closeFlow) {
|
|
16007
16007
|
t.containerState._closeFlow = void 0, s && N();
|
|
16008
16008
|
const $ = t.events.length;
|
|
16009
|
-
let G = $,
|
|
16009
|
+
let G = $, M;
|
|
16010
16010
|
for (; G--; )
|
|
16011
16011
|
if (t.events[G][0] === "exit" && t.events[G][1].type === "chunkFlow") {
|
|
16012
|
-
|
|
16012
|
+
M = t.events[G][1].end;
|
|
16013
16013
|
break;
|
|
16014
16014
|
}
|
|
16015
16015
|
v(r);
|
|
16016
16016
|
let V = $;
|
|
16017
16017
|
for (; V < t.events.length; )
|
|
16018
|
-
t.events[V][1].end = j({},
|
|
16018
|
+
t.events[V][1].end = j({}, M), V++;
|
|
16019
16019
|
return Dn(t.events, G + 1, 0, t.events.slice($)), t.events.length = V, f(O);
|
|
16020
16020
|
}
|
|
16021
16021
|
return l(O);
|
|
@@ -16063,13 +16063,13 @@ function xk(e) {
|
|
|
16063
16063
|
function w(O, $) {
|
|
16064
16064
|
const G = t.sliceStream(O);
|
|
16065
16065
|
if ($ && G.push(null), O.previous = a, a && (a.next = O), a = O, s.defineSkip(O.start), s.write(G), t.parser.lazy[O.start.line]) {
|
|
16066
|
-
let
|
|
16067
|
-
for (;
|
|
16066
|
+
let M = s.events.length;
|
|
16067
|
+
for (; M--; )
|
|
16068
16068
|
if (
|
|
16069
16069
|
// The token starts before the line ending…
|
|
16070
|
-
s.events[
|
|
16071
|
-
(!s.events[
|
|
16072
|
-
s.events[
|
|
16070
|
+
s.events[M][1].start.offset < u && // …and either is not ended yet…
|
|
16071
|
+
(!s.events[M][1].end || // …or ends after it.
|
|
16072
|
+
s.events[M][1].end.offset > u)
|
|
16073
16073
|
)
|
|
16074
16074
|
return;
|
|
16075
16075
|
const V = t.events.length;
|
|
@@ -16082,9 +16082,9 @@ function xk(e) {
|
|
|
16082
16082
|
}
|
|
16083
16083
|
se = !0;
|
|
16084
16084
|
}
|
|
16085
|
-
for (v(r),
|
|
16086
|
-
t.events[
|
|
16087
|
-
Dn(t.events, J + 1, 0, t.events.slice(V)), t.events.length =
|
|
16085
|
+
for (v(r), M = V; M < t.events.length; )
|
|
16086
|
+
t.events[M][1].end = j({}, H), M++;
|
|
16087
|
+
Dn(t.events, J + 1, 0, t.events.slice(V)), t.events.length = M;
|
|
16088
16088
|
}
|
|
16089
16089
|
}
|
|
16090
16090
|
function v(O) {
|
|
@@ -16316,67 +16316,67 @@ function Dk(e, t, n) {
|
|
|
16316
16316
|
};
|
|
16317
16317
|
let a = 0, u = 0, l;
|
|
16318
16318
|
return d;
|
|
16319
|
-
function d(
|
|
16320
|
-
return f(
|
|
16319
|
+
function d(M) {
|
|
16320
|
+
return f(M);
|
|
16321
16321
|
}
|
|
16322
|
-
function f(
|
|
16322
|
+
function f(M) {
|
|
16323
16323
|
const V = r.events[r.events.length - 1];
|
|
16324
|
-
return a = V && V[1].type === "linePrefix" ? V[2].sliceSerialize(V[1], !0).length : 0, l =
|
|
16324
|
+
return a = V && V[1].type === "linePrefix" ? V[2].sliceSerialize(V[1], !0).length : 0, l = M, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), m(M);
|
|
16325
16325
|
}
|
|
16326
|
-
function m(
|
|
16327
|
-
return
|
|
16326
|
+
function m(M) {
|
|
16327
|
+
return M === l ? (u++, e.consume(M), m) : u < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), nt(M) ? st(e, p, "whitespace")(M) : p(M));
|
|
16328
16328
|
}
|
|
16329
|
-
function p(
|
|
16330
|
-
return
|
|
16329
|
+
function p(M) {
|
|
16330
|
+
return M === null || Ve(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(ZE, x, $)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
16331
16331
|
contentType: "string"
|
|
16332
|
-
}), _(
|
|
16332
|
+
}), _(M));
|
|
16333
16333
|
}
|
|
16334
|
-
function _(
|
|
16335
|
-
return
|
|
16334
|
+
function _(M) {
|
|
16335
|
+
return M === null || Ve(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(M)) : nt(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), st(e, y, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), _);
|
|
16336
16336
|
}
|
|
16337
|
-
function y(
|
|
16338
|
-
return
|
|
16337
|
+
function y(M) {
|
|
16338
|
+
return M === null || Ve(M) ? p(M) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
16339
16339
|
contentType: "string"
|
|
16340
|
-
}), S(
|
|
16340
|
+
}), S(M));
|
|
16341
16341
|
}
|
|
16342
|
-
function S(
|
|
16343
|
-
return
|
|
16342
|
+
function S(M) {
|
|
16343
|
+
return M === null || Ve(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(M)) : M === 96 && M === l ? n(M) : (e.consume(M), S);
|
|
16344
16344
|
}
|
|
16345
|
-
function x(
|
|
16346
|
-
return e.attempt(s, $, w)(
|
|
16345
|
+
function x(M) {
|
|
16346
|
+
return e.attempt(s, $, w)(M);
|
|
16347
16347
|
}
|
|
16348
|
-
function w(
|
|
16349
|
-
return e.enter("lineEnding"), e.consume(
|
|
16348
|
+
function w(M) {
|
|
16349
|
+
return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), v;
|
|
16350
16350
|
}
|
|
16351
|
-
function v(
|
|
16352
|
-
return a > 0 && nt(
|
|
16351
|
+
function v(M) {
|
|
16352
|
+
return a > 0 && nt(M) ? st(e, N, "linePrefix", a + 1)(M) : N(M);
|
|
16353
16353
|
}
|
|
16354
|
-
function N(
|
|
16355
|
-
return
|
|
16354
|
+
function N(M) {
|
|
16355
|
+
return M === null || Ve(M) ? e.check(ZE, x, $)(M) : (e.enter("codeFlowValue"), O(M));
|
|
16356
16356
|
}
|
|
16357
|
-
function O(
|
|
16358
|
-
return
|
|
16357
|
+
function O(M) {
|
|
16358
|
+
return M === null || Ve(M) ? (e.exit("codeFlowValue"), N(M)) : (e.consume(M), O);
|
|
16359
16359
|
}
|
|
16360
|
-
function $(
|
|
16361
|
-
return e.exit("codeFenced"), t(
|
|
16360
|
+
function $(M) {
|
|
16361
|
+
return e.exit("codeFenced"), t(M);
|
|
16362
16362
|
}
|
|
16363
|
-
function G(
|
|
16363
|
+
function G(M, V, J) {
|
|
16364
16364
|
let se = 0;
|
|
16365
16365
|
return H;
|
|
16366
16366
|
function H(ue) {
|
|
16367
|
-
return
|
|
16367
|
+
return M.enter("lineEnding"), M.consume(ue), M.exit("lineEnding"), ie;
|
|
16368
16368
|
}
|
|
16369
16369
|
function ie(ue) {
|
|
16370
|
-
return
|
|
16370
|
+
return M.enter("codeFencedFence"), nt(ue) ? st(M, te, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(ue) : te(ue);
|
|
16371
16371
|
}
|
|
16372
16372
|
function te(ue) {
|
|
16373
|
-
return ue === l ? (
|
|
16373
|
+
return ue === l ? (M.enter("codeFencedFenceSequence"), le(ue)) : J(ue);
|
|
16374
16374
|
}
|
|
16375
16375
|
function le(ue) {
|
|
16376
|
-
return ue === l ? (se++,
|
|
16376
|
+
return ue === l ? (se++, M.consume(ue), le) : se >= u ? (M.exit("codeFencedFenceSequence"), nt(ue) ? st(M, fe, "whitespace")(ue) : fe(ue)) : J(ue);
|
|
16377
16377
|
}
|
|
16378
16378
|
function fe(ue) {
|
|
16379
|
-
return ue === null || Ve(ue) ? (
|
|
16379
|
+
return ue === null || Ve(ue) ? (M.exit("codeFencedFence"), V(ue)) : J(ue);
|
|
16380
16380
|
}
|
|
16381
16381
|
}
|
|
16382
16382
|
}
|
|
@@ -17043,8 +17043,8 @@ function d3(e, t, n) {
|
|
|
17043
17043
|
}
|
|
17044
17044
|
function w(P) {
|
|
17045
17045
|
if (P === null || P === 47 || P === 62 || mt(P)) {
|
|
17046
|
-
const xe = P === 47,
|
|
17047
|
-
return !xe && !a && ty.includes(
|
|
17046
|
+
const xe = P === 47, ke = u.toLowerCase();
|
|
17047
|
+
return !xe && !a && ty.includes(ke) ? (s = 1, r.interrupt ? t(P) : te(P)) : o3.includes(u.toLowerCase()) ? (s = 6, xe ? (e.consume(P), v) : r.interrupt ? t(P) : te(P)) : (s = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(P) : a ? N(P) : O(P));
|
|
17048
17048
|
}
|
|
17049
17049
|
return P === 45 || on(P) ? (e.consume(P), u += String.fromCharCode(P), w) : n(P);
|
|
17050
17050
|
}
|
|
@@ -17061,10 +17061,10 @@ function d3(e, t, n) {
|
|
|
17061
17061
|
return P === 45 || P === 46 || P === 58 || P === 95 || on(P) ? (e.consume(P), $) : G(P);
|
|
17062
17062
|
}
|
|
17063
17063
|
function G(P) {
|
|
17064
|
-
return P === 61 ? (e.consume(P),
|
|
17064
|
+
return P === 61 ? (e.consume(P), M) : nt(P) ? (e.consume(P), G) : O(P);
|
|
17065
17065
|
}
|
|
17066
|
-
function
|
|
17067
|
-
return P === null || P === 60 || P === 61 || P === 62 || P === 96 ? n(P) : P === 34 || P === 39 ? (e.consume(P), d = P, V) : nt(P) ? (e.consume(P),
|
|
17066
|
+
function M(P) {
|
|
17067
|
+
return P === null || P === 60 || P === 61 || P === 62 || P === 96 ? n(P) : P === 34 || P === 39 ? (e.consume(P), d = P, V) : nt(P) ? (e.consume(P), M) : J(P);
|
|
17068
17068
|
}
|
|
17069
17069
|
function V(P) {
|
|
17070
17070
|
return P === d ? (e.consume(P), d = null, se) : P === null || Ve(P) ? n(P) : (e.consume(P), V);
|
|
@@ -17082,7 +17082,7 @@ function d3(e, t, n) {
|
|
|
17082
17082
|
return P === null || Ve(P) ? te(P) : nt(P) ? (e.consume(P), ie) : n(P);
|
|
17083
17083
|
}
|
|
17084
17084
|
function te(P) {
|
|
17085
|
-
return P === 45 && s === 2 ? (e.consume(P), ve) : P === 60 && s === 1 ? (e.consume(P), de) : P === 62 && s === 4 ? (e.consume(P),
|
|
17085
|
+
return P === 45 && s === 2 ? (e.consume(P), ve) : P === 60 && s === 1 ? (e.consume(P), de) : P === 62 && s === 4 ? (e.consume(P), D) : P === 63 && s === 3 ? (e.consume(P), C) : P === 93 && s === 5 ? (e.consume(P), oe) : Ve(P) && (s === 6 || s === 7) ? (e.exit("htmlFlowData"), e.check(u3, Z, le)(P)) : P === null || Ve(P) ? (e.exit("htmlFlowData"), le(P)) : (e.consume(P), te);
|
|
17086
17086
|
}
|
|
17087
17087
|
function le(P) {
|
|
17088
17088
|
return e.check(l3, fe, Z)(P);
|
|
@@ -17102,7 +17102,7 @@ function d3(e, t, n) {
|
|
|
17102
17102
|
function W(P) {
|
|
17103
17103
|
if (P === 62) {
|
|
17104
17104
|
const xe = u.toLowerCase();
|
|
17105
|
-
return ty.includes(xe) ? (e.consume(P),
|
|
17105
|
+
return ty.includes(xe) ? (e.consume(P), D) : te(P);
|
|
17106
17106
|
}
|
|
17107
17107
|
return mn(P) && u.length < 8 ? (e.consume(P), u += String.fromCharCode(P), W) : te(P);
|
|
17108
17108
|
}
|
|
@@ -17110,10 +17110,10 @@ function d3(e, t, n) {
|
|
|
17110
17110
|
return P === 93 ? (e.consume(P), C) : te(P);
|
|
17111
17111
|
}
|
|
17112
17112
|
function C(P) {
|
|
17113
|
-
return P === 62 ? (e.consume(P),
|
|
17113
|
+
return P === 62 ? (e.consume(P), D) : P === 45 && s === 2 ? (e.consume(P), C) : te(P);
|
|
17114
17114
|
}
|
|
17115
|
-
function
|
|
17116
|
-
return P === null || Ve(P) ? (e.exit("htmlFlowData"), Z(P)) : (e.consume(P),
|
|
17115
|
+
function D(P) {
|
|
17116
|
+
return P === null || Ve(P) ? (e.exit("htmlFlowData"), Z(P)) : (e.consume(P), D);
|
|
17117
17117
|
}
|
|
17118
17118
|
function Z(P) {
|
|
17119
17119
|
return e.exit("htmlFlow"), t(P);
|
|
@@ -17165,8 +17165,8 @@ function m3(e, t, n) {
|
|
|
17165
17165
|
return C === 62 ? ve(C) : C === 45 ? _(C) : p(C);
|
|
17166
17166
|
}
|
|
17167
17167
|
function S(C) {
|
|
17168
|
-
const
|
|
17169
|
-
return C ===
|
|
17168
|
+
const D = "CDATA[";
|
|
17169
|
+
return C === D.charCodeAt(a++) ? (e.consume(C), a === D.length ? x : S) : n(C);
|
|
17170
17170
|
}
|
|
17171
17171
|
function x(C) {
|
|
17172
17172
|
return C === null ? n(C) : C === 93 ? (e.consume(C), w) : Ve(C) ? (u = x, de(C)) : (e.consume(C), x);
|
|
@@ -17187,10 +17187,10 @@ function m3(e, t, n) {
|
|
|
17187
17187
|
return C === 62 ? ve(C) : O(C);
|
|
17188
17188
|
}
|
|
17189
17189
|
function G(C) {
|
|
17190
|
-
return mn(C) ? (e.consume(C),
|
|
17190
|
+
return mn(C) ? (e.consume(C), M) : n(C);
|
|
17191
17191
|
}
|
|
17192
|
-
function
|
|
17193
|
-
return C === 45 || on(C) ? (e.consume(C),
|
|
17192
|
+
function M(C) {
|
|
17193
|
+
return C === 45 || on(C) ? (e.consume(C), M) : V(C);
|
|
17194
17194
|
}
|
|
17195
17195
|
function V(C) {
|
|
17196
17196
|
return Ve(C) ? (u = V, de(C)) : nt(C) ? (e.consume(C), V) : ve(C);
|
|
@@ -17742,11 +17742,11 @@ function nP(e, t, n) {
|
|
|
17742
17742
|
let u = [], l = [];
|
|
17743
17743
|
const d = {
|
|
17744
17744
|
attempt: V(G),
|
|
17745
|
-
check: V(
|
|
17745
|
+
check: V(M),
|
|
17746
17746
|
consume: N,
|
|
17747
17747
|
enter: O,
|
|
17748
17748
|
exit: $,
|
|
17749
|
-
interrupt: V(
|
|
17749
|
+
interrupt: V(M, {
|
|
17750
17750
|
interrupt: !0
|
|
17751
17751
|
})
|
|
17752
17752
|
}, f = {
|
|
@@ -17822,7 +17822,7 @@ function nP(e, t, n) {
|
|
|
17822
17822
|
function G(ie, te) {
|
|
17823
17823
|
J(ie, te.from);
|
|
17824
17824
|
}
|
|
17825
|
-
function
|
|
17825
|
+
function M(ie, te) {
|
|
17826
17826
|
te.restore();
|
|
17827
17827
|
}
|
|
17828
17828
|
function V(ie, te) {
|
|
@@ -17838,40 +17838,40 @@ function nP(e, t, n) {
|
|
|
17838
17838
|
/** @type {Construct} */
|
|
17839
17839
|
fe
|
|
17840
17840
|
])
|
|
17841
|
-
) :
|
|
17842
|
-
function
|
|
17843
|
-
return
|
|
17844
|
-
function
|
|
17845
|
-
const qe = Fe !== null &&
|
|
17841
|
+
) : D(fe);
|
|
17842
|
+
function D(he) {
|
|
17843
|
+
return Ae;
|
|
17844
|
+
function Ae(Fe) {
|
|
17845
|
+
const qe = Fe !== null && he[Fe], Qe = Fe !== null && he.null, ft = [
|
|
17846
17846
|
// To do: add more extension tests.
|
|
17847
17847
|
/* c8 ignore next 2 */
|
|
17848
17848
|
...Array.isArray(qe) ? qe : qe ? [qe] : [],
|
|
17849
|
-
...Array.isArray(
|
|
17849
|
+
...Array.isArray(Qe) ? Qe : Qe ? [Qe] : []
|
|
17850
17850
|
];
|
|
17851
17851
|
return Z(ft)(Fe);
|
|
17852
17852
|
}
|
|
17853
17853
|
}
|
|
17854
|
-
function Z(
|
|
17855
|
-
return de =
|
|
17854
|
+
function Z(he) {
|
|
17855
|
+
return de = he, W = 0, he.length === 0 ? ve : P(he[W]);
|
|
17856
17856
|
}
|
|
17857
|
-
function P(
|
|
17858
|
-
return
|
|
17859
|
-
function
|
|
17860
|
-
return C = se(), oe =
|
|
17857
|
+
function P(he) {
|
|
17858
|
+
return Ae;
|
|
17859
|
+
function Ae(Fe) {
|
|
17860
|
+
return C = se(), oe = he, he.partial || (f.currentConstruct = he), he.name && f.parser.constructs.disable.null.includes(he.name) ? ke() : he.tokenize.call(
|
|
17861
17861
|
// If we do have fields, create an object w/ `context` as its
|
|
17862
17862
|
// prototype.
|
|
17863
17863
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
17864
17864
|
te ? Object.assign(Object.create(f), te) : f,
|
|
17865
17865
|
d,
|
|
17866
17866
|
xe,
|
|
17867
|
-
|
|
17867
|
+
ke
|
|
17868
17868
|
)(Fe);
|
|
17869
17869
|
}
|
|
17870
17870
|
}
|
|
17871
|
-
function xe(
|
|
17871
|
+
function xe(he) {
|
|
17872
17872
|
return ie(oe, C), ue;
|
|
17873
17873
|
}
|
|
17874
|
-
function
|
|
17874
|
+
function ke(he) {
|
|
17875
17875
|
return C.restore(), ++W < de.length ? P(de[W]) : ve;
|
|
17876
17876
|
}
|
|
17877
17877
|
}
|
|
@@ -18036,7 +18036,7 @@ function fP(e) {
|
|
|
18036
18036
|
autolinkProtocol: se,
|
|
18037
18037
|
autolinkEmail: se,
|
|
18038
18038
|
atxHeading: a(Nt),
|
|
18039
|
-
blockQuote: a(
|
|
18039
|
+
blockQuote: a(Qe),
|
|
18040
18040
|
characterEscape: se,
|
|
18041
18041
|
characterReference: se,
|
|
18042
18042
|
codeFenced: a(ft),
|
|
@@ -18082,10 +18082,10 @@ function fP(e) {
|
|
|
18082
18082
|
autolinkProtocol: Fe,
|
|
18083
18083
|
blockQuote: d(),
|
|
18084
18084
|
characterEscapeValue: H,
|
|
18085
|
-
characterReferenceMarkerHexadecimal:
|
|
18086
|
-
characterReferenceMarkerNumeric:
|
|
18087
|
-
characterReferenceValue:
|
|
18088
|
-
characterReference:
|
|
18085
|
+
characterReferenceMarkerHexadecimal: ke,
|
|
18086
|
+
characterReferenceMarkerNumeric: ke,
|
|
18087
|
+
characterReferenceValue: he,
|
|
18088
|
+
characterReference: Ae,
|
|
18089
18089
|
codeFenced: d(w),
|
|
18090
18090
|
codeFencedFence: x,
|
|
18091
18091
|
codeFencedFenceInfo: y,
|
|
@@ -18117,11 +18117,11 @@ function fP(e) {
|
|
|
18117
18117
|
paragraph: d(),
|
|
18118
18118
|
referenceString: xe,
|
|
18119
18119
|
resourceDestinationString: C,
|
|
18120
|
-
resourceTitleString:
|
|
18120
|
+
resourceTitleString: D,
|
|
18121
18121
|
resource: Z,
|
|
18122
18122
|
setextHeading: d(J),
|
|
18123
18123
|
setextHeadingLineSequence: V,
|
|
18124
|
-
setextHeadingText:
|
|
18124
|
+
setextHeadingText: M,
|
|
18125
18125
|
strong: d(),
|
|
18126
18126
|
thematicBreak: d()
|
|
18127
18127
|
}
|
|
@@ -18204,25 +18204,25 @@ function fP(e) {
|
|
|
18204
18204
|
}
|
|
18205
18205
|
if (!rt && Le[0] === "enter" && Le[1].type === "listItemPrefix" || rt === -1 && Le[0] === "exit" && (Le[1].type === "listUnordered" || Le[1].type === "listOrdered")) {
|
|
18206
18206
|
if (we) {
|
|
18207
|
-
let
|
|
18208
|
-
for (Ce = void 0;
|
|
18209
|
-
const vt = ae[
|
|
18207
|
+
let Je = Ke;
|
|
18208
|
+
for (Ce = void 0; Je--; ) {
|
|
18209
|
+
const vt = ae[Je];
|
|
18210
18210
|
if (vt[1].type === "lineEnding" || vt[1].type === "lineEndingBlank") {
|
|
18211
18211
|
if (vt[0] === "exit") continue;
|
|
18212
|
-
Ce && (ae[Ce][1].type = "lineEndingBlank", re = !0), vt[1].type = "lineEnding", Ce =
|
|
18212
|
+
Ce && (ae[Ce][1].type = "lineEndingBlank", re = !0), vt[1].type = "lineEnding", Ce = Je;
|
|
18213
18213
|
} else if (!(vt[1].type === "linePrefix" || vt[1].type === "blockQuotePrefix" || vt[1].type === "blockQuotePrefixWhitespace" || vt[1].type === "blockQuoteMarker" || vt[1].type === "listItemIndent")) break;
|
|
18214
18214
|
}
|
|
18215
18215
|
Oe && (!Ce || Oe < Ce) && (we._spread = !0), we.end = Object.assign({}, Ce ? ae[Ce][1].start : Le[1].end), ae.splice(Ce || Ke, 0, ["exit", we, Le[2]]), Ke++, je++;
|
|
18216
18216
|
}
|
|
18217
18217
|
if (Le[1].type === "listItemPrefix") {
|
|
18218
|
-
const
|
|
18218
|
+
const Je = {
|
|
18219
18219
|
type: "listItem",
|
|
18220
18220
|
_spread: !1,
|
|
18221
18221
|
start: Object.assign({}, Le[1].start),
|
|
18222
18222
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
18223
18223
|
end: void 0
|
|
18224
18224
|
};
|
|
18225
|
-
we =
|
|
18225
|
+
we = Je, ae.splice(Ke, 0, ["enter", Je, Le[2]]), Ke++, je++, Oe = void 0, Ee = !0;
|
|
18226
18226
|
}
|
|
18227
18227
|
}
|
|
18228
18228
|
}
|
|
@@ -18313,7 +18313,7 @@ function fP(e) {
|
|
|
18313
18313
|
be.depth = je;
|
|
18314
18314
|
}
|
|
18315
18315
|
}
|
|
18316
|
-
function
|
|
18316
|
+
function M() {
|
|
18317
18317
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
18318
18318
|
}
|
|
18319
18319
|
function V(ae) {
|
|
@@ -18394,7 +18394,7 @@ function fP(e) {
|
|
|
18394
18394
|
const ae = this.resume(), be = this.stack[this.stack.length - 1];
|
|
18395
18395
|
be.url = ae;
|
|
18396
18396
|
}
|
|
18397
|
-
function
|
|
18397
|
+
function D() {
|
|
18398
18398
|
const ae = this.resume(), be = this.stack[this.stack.length - 1];
|
|
18399
18399
|
be.title = ae;
|
|
18400
18400
|
}
|
|
@@ -18408,17 +18408,17 @@ function fP(e) {
|
|
|
18408
18408
|
const be = this.resume(), je = this.stack[this.stack.length - 1];
|
|
18409
18409
|
je.label = be, je.identifier = sr(this.sliceSerialize(ae)).toLowerCase(), this.data.referenceType = "full";
|
|
18410
18410
|
}
|
|
18411
|
-
function
|
|
18411
|
+
function ke(ae) {
|
|
18412
18412
|
this.data.characterReferenceType = ae.type;
|
|
18413
18413
|
}
|
|
18414
|
-
function
|
|
18414
|
+
function he(ae) {
|
|
18415
18415
|
const be = this.sliceSerialize(ae), je = this.data.characterReferenceType;
|
|
18416
18416
|
let Ke;
|
|
18417
18417
|
je ? (Ke = SS(be, je === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Ke = am(be);
|
|
18418
18418
|
const rt = this.stack[this.stack.length - 1];
|
|
18419
18419
|
rt.value += Ke;
|
|
18420
18420
|
}
|
|
18421
|
-
function
|
|
18421
|
+
function Ae(ae) {
|
|
18422
18422
|
const be = this.stack.pop();
|
|
18423
18423
|
be.position.end = yi(ae.end);
|
|
18424
18424
|
}
|
|
@@ -18432,7 +18432,7 @@ function fP(e) {
|
|
|
18432
18432
|
const be = this.stack[this.stack.length - 1];
|
|
18433
18433
|
be.url = "mailto:" + this.sliceSerialize(ae);
|
|
18434
18434
|
}
|
|
18435
|
-
function
|
|
18435
|
+
function Qe() {
|
|
18436
18436
|
return {
|
|
18437
18437
|
type: "blockquote",
|
|
18438
18438
|
children: []
|
|
@@ -27539,10 +27539,10 @@ const Ob = ({
|
|
|
27539
27539
|
v.preventDefault();
|
|
27540
27540
|
const N = (((O = p.current) == null ? void 0 : O.value) || "").trim();
|
|
27541
27541
|
if (N) {
|
|
27542
|
-
const G = !s && !a && u === !0,
|
|
27542
|
+
const G = !s && !a && u === !0, M = _.current.length;
|
|
27543
27543
|
p.current.value = "";
|
|
27544
27544
|
const V = yield r(N);
|
|
27545
|
-
G && V.outcome !== "success" && _.current.length ===
|
|
27545
|
+
G && V.outcome !== "success" && _.current.length === M && (($ = p.current) == null ? void 0 : $.value) === "" && (p.current.value = N, p.current.disabled || p.current.focus({ preventScroll: !0 }));
|
|
27546
27546
|
}
|
|
27547
27547
|
}), w = () => {
|
|
27548
27548
|
r("Can you connect me to a human?");
|
|
@@ -28384,13 +28384,13 @@ function Gc(e, t = {}) {
|
|
|
28384
28384
|
previous() {
|
|
28385
28385
|
return p.current;
|
|
28386
28386
|
}
|
|
28387
|
-
}), S = () => ce(j({},
|
|
28387
|
+
}), S = () => ce(j({}, M), {
|
|
28388
28388
|
matches(...de) {
|
|
28389
|
-
return de.includes(
|
|
28389
|
+
return de.includes(M.ref.current);
|
|
28390
28390
|
},
|
|
28391
28391
|
hasTag(de) {
|
|
28392
28392
|
var W, oe;
|
|
28393
|
-
return !!((oe = (W = e.states[
|
|
28393
|
+
return !!((oe = (W = e.states[M.ref.current]) == null ? void 0 : W.tags) != null && oe.includes(de));
|
|
28394
28394
|
}
|
|
28395
28395
|
}), x = R5((ue = (fe = e.refs) == null ? void 0 : fe.call(e, { prop: a, context: d })) != null ? ue : {}), w = () => ({
|
|
28396
28396
|
state: S(),
|
|
@@ -28411,8 +28411,8 @@ function Gc(e, t = {}) {
|
|
|
28411
28411
|
if (!W) return;
|
|
28412
28412
|
const oe = W.map((C) => {
|
|
28413
28413
|
var Z, P;
|
|
28414
|
-
const
|
|
28415
|
-
return
|
|
28414
|
+
const D = (P = (Z = e.implementations) == null ? void 0 : Z.actions) == null ? void 0 : P[C];
|
|
28415
|
+
return D || mp(`[zag-js] No implementation found for action "${JSON.stringify(C)}"`), D;
|
|
28416
28416
|
});
|
|
28417
28417
|
for (const C of oe)
|
|
28418
28418
|
C == null || C(w());
|
|
@@ -28422,16 +28422,16 @@ function Gc(e, t = {}) {
|
|
|
28422
28422
|
}, O = (de) => {
|
|
28423
28423
|
const W = eo(de) ? de(w()) : de;
|
|
28424
28424
|
if (!W) return;
|
|
28425
|
-
const oe = W.map((
|
|
28425
|
+
const oe = W.map((D) => {
|
|
28426
28426
|
var P, xe;
|
|
28427
|
-
const Z = (xe = (P = e.implementations) == null ? void 0 : P.effects) == null ? void 0 : xe[
|
|
28428
|
-
return Z || mp(`[zag-js] No implementation found for effect "${JSON.stringify(
|
|
28427
|
+
const Z = (xe = (P = e.implementations) == null ? void 0 : P.effects) == null ? void 0 : xe[D];
|
|
28428
|
+
return Z || mp(`[zag-js] No implementation found for effect "${JSON.stringify(D)}"`), Z;
|
|
28429
28429
|
}), C = [];
|
|
28430
|
-
for (const
|
|
28431
|
-
const Z =
|
|
28430
|
+
for (const D of oe) {
|
|
28431
|
+
const Z = D == null ? void 0 : D(w());
|
|
28432
28432
|
Z && C.push(Z);
|
|
28433
28433
|
}
|
|
28434
|
-
return () => C.forEach((
|
|
28434
|
+
return () => C.forEach((D) => D == null ? void 0 : D());
|
|
28435
28435
|
}, $ = (de) => aD(de).find((W) => {
|
|
28436
28436
|
let oe = !W.guard;
|
|
28437
28437
|
return Kl(W.guard) ? oe = !!N(W.guard) : eo(W.guard) && (oe = W.guard(w())), oe;
|
|
@@ -28446,15 +28446,15 @@ function Gc(e, t = {}) {
|
|
|
28446
28446
|
scope: n,
|
|
28447
28447
|
computed: G
|
|
28448
28448
|
});
|
|
28449
|
-
},
|
|
28449
|
+
}, M = gc(() => ({
|
|
28450
28450
|
defaultValue: e.initialState({ prop: a }),
|
|
28451
28451
|
onChange(de, W) {
|
|
28452
|
-
var C,
|
|
28452
|
+
var C, D, Z, P;
|
|
28453
28453
|
if (W) {
|
|
28454
28454
|
const xe = f.current.get(W);
|
|
28455
28455
|
xe == null || xe(), f.current.delete(W);
|
|
28456
28456
|
}
|
|
28457
|
-
W && v((C = e.states[W]) == null ? void 0 : C.exit), v((
|
|
28457
|
+
W && v((C = e.states[W]) == null ? void 0 : C.exit), v((D = m.current) == null ? void 0 : D.actions);
|
|
28458
28458
|
const oe = O((Z = e.states[de]) == null ? void 0 : Z.effects);
|
|
28459
28459
|
if (oe && f.current.set(de, oe), W === Ch) {
|
|
28460
28460
|
v(e.entry);
|
|
@@ -28466,38 +28466,38 @@ function Gc(e, t = {}) {
|
|
|
28466
28466
|
})), V = R.useRef(void 0), J = R.useRef(Qs.NotStarted);
|
|
28467
28467
|
Kb(() => {
|
|
28468
28468
|
queueMicrotask(() => {
|
|
28469
|
-
var
|
|
28469
|
+
var D;
|
|
28470
28470
|
const oe = J.current === Qs.Started;
|
|
28471
28471
|
J.current = Qs.Started, r(oe ? "rehydrating..." : "initializing...");
|
|
28472
|
-
const C = (
|
|
28473
|
-
|
|
28472
|
+
const C = (D = V.current) != null ? D : M.initial;
|
|
28473
|
+
M.invoke(C, oe ? M.get() : Ch);
|
|
28474
28474
|
});
|
|
28475
|
-
const de = f.current, W =
|
|
28475
|
+
const de = f.current, W = M.ref.current;
|
|
28476
28476
|
return () => {
|
|
28477
28477
|
r("unmounting..."), V.current = W, J.current = Qs.Stopped, de.forEach((oe) => oe == null ? void 0 : oe()), f.current = /* @__PURE__ */ new Map(), m.current = null, queueMicrotask(() => {
|
|
28478
28478
|
v(e.exit);
|
|
28479
28479
|
});
|
|
28480
28480
|
};
|
|
28481
28481
|
}, []);
|
|
28482
|
-
const se = () => "ref" in
|
|
28482
|
+
const se = () => "ref" in M ? M.ref.current : M.get(), H = (de) => {
|
|
28483
28483
|
queueMicrotask(() => {
|
|
28484
|
-
var P, xe,
|
|
28484
|
+
var P, xe, ke, he, Ae;
|
|
28485
28485
|
if (J.current !== Qs.Started) return;
|
|
28486
28486
|
p.current = _.current, _.current = de;
|
|
28487
28487
|
let W = se();
|
|
28488
28488
|
const oe = (
|
|
28489
28489
|
// @ts-ignore
|
|
28490
|
-
(
|
|
28490
|
+
(ke = (P = e.states[W].on) == null ? void 0 : P[de.type]) != null ? ke : (
|
|
28491
28491
|
// @ts-ignore
|
|
28492
28492
|
(xe = e.on) == null ? void 0 : xe[de.type]
|
|
28493
28493
|
)
|
|
28494
28494
|
), C = $(oe);
|
|
28495
28495
|
if (!C) return;
|
|
28496
28496
|
m.current = C;
|
|
28497
|
-
const
|
|
28497
|
+
const D = (he = C.target) != null ? he : W;
|
|
28498
28498
|
r("transition", de.type, C.target || W, `(${C.actions})`);
|
|
28499
|
-
const Z =
|
|
28500
|
-
Z ? Eo.flushSync(() =>
|
|
28499
|
+
const Z = D !== W;
|
|
28500
|
+
Z ? Eo.flushSync(() => M.set(D)) : C.reenter && !Z ? M.invoke(W, W) : v((Ae = C.actions) != null ? Ae : []);
|
|
28501
28501
|
});
|
|
28502
28502
|
};
|
|
28503
28503
|
return (ve = e.watch) == null || ve.call(e, w()), {
|
|
@@ -29057,7 +29057,7 @@ const tM = 50, nM = (e, t, n) => Be(null, null, function* () {
|
|
|
29057
29057
|
x: O,
|
|
29058
29058
|
y: $,
|
|
29059
29059
|
data: G,
|
|
29060
|
-
reset:
|
|
29060
|
+
reset: M
|
|
29061
29061
|
} = yield N({
|
|
29062
29062
|
x: m,
|
|
29063
29063
|
y: p,
|
|
@@ -29072,11 +29072,11 @@ const tM = 50, nM = (e, t, n) => Be(null, null, function* () {
|
|
|
29072
29072
|
floating: t
|
|
29073
29073
|
}
|
|
29074
29074
|
});
|
|
29075
|
-
m = O != null ? O : m, p = $ != null ? $ : p, S[v] = j(j({}, S[v]), G),
|
|
29075
|
+
m = O != null ? O : m, p = $ != null ? $ : p, S[v] = j(j({}, S[v]), G), M && y < tM && (y++, typeof M == "object" && (M.placement && (_ = M.placement), M.rects && (f = M.rects === !0 ? yield u.getElementRects({
|
|
29076
29076
|
reference: e,
|
|
29077
29077
|
floating: t,
|
|
29078
29078
|
strategy: s
|
|
29079
|
-
}) :
|
|
29079
|
+
}) : M.rects), {
|
|
29080
29080
|
x: m,
|
|
29081
29081
|
y: p
|
|
29082
29082
|
} = Ky(f, _, d)), x = -1);
|
|
@@ -29110,10 +29110,10 @@ const tM = 50, nM = (e, t, n) => Be(null, null, function* () {
|
|
|
29110
29110
|
const _ = r2(p), y = {
|
|
29111
29111
|
x: r,
|
|
29112
29112
|
y: s
|
|
29113
|
-
}, S = Rm(a), x = Pm(S), w = yield l.getDimensions(m), v = S === "y", N = v ? "top" : "left", O = v ? "bottom" : "right", $ = v ? "clientHeight" : "clientWidth", G = u.reference[x] + u.reference[S] - y[S] - u.floating[x],
|
|
29113
|
+
}, S = Rm(a), x = Pm(S), w = yield l.getDimensions(m), v = S === "y", N = v ? "top" : "left", O = v ? "bottom" : "right", $ = v ? "clientHeight" : "clientWidth", G = u.reference[x] + u.reference[S] - y[S] - u.floating[x], M = y[S] - u.reference[S], V = yield l.getOffsetParent == null ? void 0 : l.getOffsetParent(m);
|
|
29114
29114
|
let J = V ? V[$] : 0;
|
|
29115
29115
|
(!J || !(yield l.isElement == null ? void 0 : l.isElement(V))) && (J = d.floating[$] || u.floating[x]);
|
|
29116
|
-
const se = G / 2 -
|
|
29116
|
+
const se = G / 2 - M / 2, H = J / 2 - w[x] / 2 - 1, ie = wi(_[N], H), te = wi(_[O], H), le = J - w[x] - te, fe = J / 2 - w[x] / 2 + se, ue = n2(ie, fe, le), ve = !f.arrow && No(a) != null && fe !== ue && u.reference[x] / 2 - (fe < ie ? ie : te) - w[x] / 2 < 0, de = ve ? fe < ie ? fe - ie : fe - le : 0;
|
|
29117
29117
|
return {
|
|
29118
29118
|
[S]: y[S] + de,
|
|
29119
29119
|
data: j({
|
|
@@ -29157,9 +29157,9 @@ const tM = 50, nM = (e, t, n) => Be(null, null, function* () {
|
|
|
29157
29157
|
]);
|
|
29158
29158
|
if ((r = u.arrow) != null && r.alignmentOffset)
|
|
29159
29159
|
return {};
|
|
29160
|
-
const N = Ci(a), O = Sr(d), $ = Ci(d) === d, G = yield f.isRTL == null ? void 0 : f.isRTL(m.floating),
|
|
29161
|
-
!y && V &&
|
|
29162
|
-
const J = [d, ...
|
|
29160
|
+
const N = Ci(a), O = Sr(d), $ = Ci(d) === d, G = yield f.isRTL == null ? void 0 : f.isRTL(m.floating), M = y || ($ || !w ? [yc(d)] : G5(d)), V = x !== "none";
|
|
29161
|
+
!y && V && M.push(...J5(d, w, x, G));
|
|
29162
|
+
const J = [d, ...M], se = yield f.detectOverflow(n, v), H = [];
|
|
29163
29163
|
let ie = ((s = u.flip) == null ? void 0 : s.overflows) || [];
|
|
29164
29164
|
if (p && H.push(se[N]), _) {
|
|
29165
29165
|
const ve = W5(a, l, G);
|
|
@@ -29190,13 +29190,13 @@ const tM = 50, nM = (e, t, n) => Be(null, null, function* () {
|
|
|
29190
29190
|
var fe;
|
|
29191
29191
|
const oe = (fe = ie.filter((C) => {
|
|
29192
29192
|
if (V) {
|
|
29193
|
-
const
|
|
29194
|
-
return
|
|
29193
|
+
const D = Sr(C.placement);
|
|
29194
|
+
return D === O || // Create a bias to the `y` side axis due to horizontal
|
|
29195
29195
|
// reading directions favoring greater width.
|
|
29196
|
-
|
|
29196
|
+
D === "y";
|
|
29197
29197
|
}
|
|
29198
29198
|
return !0;
|
|
29199
|
-
}).map((C) => [C.placement, C.overflows.filter((
|
|
29199
|
+
}).map((C) => [C.placement, C.overflows.filter((D) => D > 0).reduce((D, Z) => D + Z, 0)]).sort((C, D) => C[1] - D[1])[0]) == null ? void 0 : fe[0];
|
|
29200
29200
|
oe && (W = oe);
|
|
29201
29201
|
break;
|
|
29202
29202
|
}
|
|
@@ -29341,11 +29341,11 @@ const aM = function(e) {
|
|
|
29341
29341
|
fn: ($) => {
|
|
29342
29342
|
let {
|
|
29343
29343
|
x: G,
|
|
29344
|
-
y:
|
|
29344
|
+
y: M
|
|
29345
29345
|
} = $;
|
|
29346
29346
|
return {
|
|
29347
29347
|
x: G,
|
|
29348
|
-
y:
|
|
29348
|
+
y: M
|
|
29349
29349
|
};
|
|
29350
29350
|
}
|
|
29351
29351
|
}
|
|
@@ -29405,12 +29405,12 @@ const aM = function(e) {
|
|
|
29405
29405
|
crossAxis: (r = v.crossAxis) != null ? r : 0
|
|
29406
29406
|
};
|
|
29407
29407
|
if (m) {
|
|
29408
|
-
const G = S === "y" ? "height" : "width",
|
|
29409
|
-
x <
|
|
29408
|
+
const G = S === "y" ? "height" : "width", M = l.reference[S] - l.floating[G] + N.mainAxis, V = l.reference[S] + l.reference[G] - N.mainAxis;
|
|
29409
|
+
x < M ? x = M : x > V && (x = V);
|
|
29410
29410
|
}
|
|
29411
29411
|
if (p) {
|
|
29412
29412
|
var O, $;
|
|
29413
|
-
const G = S === "y" ? "width" : "height",
|
|
29413
|
+
const G = S === "y" ? "width" : "height", M = i2.has(Ci(u)), V = l.reference[y] - l.floating[G] + (M && ((O = d.offset) == null ? void 0 : O[y]) || 0) + (M ? 0 : N.crossAxis), J = l.reference[y] + l.reference[G] + (M ? 0 : (($ = d.offset) == null ? void 0 : $[y]) || 0) - (M ? N.crossAxis : 0);
|
|
29414
29414
|
w < V ? w = V : w > J && (w = J);
|
|
29415
29415
|
}
|
|
29416
29416
|
return {
|
|
@@ -29441,9 +29441,9 @@ const aM = function(e) {
|
|
|
29441
29441
|
} = s.floating;
|
|
29442
29442
|
let x, w;
|
|
29443
29443
|
m === "top" || m === "bottom" ? (x = m, w = p === ((yield a.isRTL == null ? void 0 : a.isRTL(u.floating)) ? "start" : "end") ? "left" : "right") : (w = m, x = p === "end" ? "top" : "bottom");
|
|
29444
|
-
const v = S - f.top - f.bottom, N = y - f.left - f.right, O = wi(S - f[x], v), $ = wi(y - f[w], N), G = n.middlewareData.shift,
|
|
29444
|
+
const v = S - f.top - f.bottom, N = y - f.left - f.right, O = wi(S - f[x], v), $ = wi(y - f[w], N), G = n.middlewareData.shift, M = !G;
|
|
29445
29445
|
let V = O, J = $;
|
|
29446
|
-
G != null && G.enabled.x && (J = N), G != null && G.enabled.y && (V = v),
|
|
29446
|
+
G != null && G.enabled.x && (J = N), G != null && G.enabled.y && (V = v), M && !p && (_ ? J = y - 2 * qr(f.left, f.right) : V = S - 2 * qr(f.top, f.bottom)), yield l(ce(j({}, n), {
|
|
29447
29447
|
availableWidth: J,
|
|
29448
29448
|
availableHeight: V
|
|
29449
29449
|
}));
|
|
@@ -29886,8 +29886,8 @@ function IM(e, t) {
|
|
|
29886
29886
|
threshold: qr(0, wi(1, d)) || 1
|
|
29887
29887
|
};
|
|
29888
29888
|
let $ = !0;
|
|
29889
|
-
function G(
|
|
29890
|
-
const V =
|
|
29889
|
+
function G(M) {
|
|
29890
|
+
const V = M[0].intersectionRatio;
|
|
29891
29891
|
if (V !== d) {
|
|
29892
29892
|
if (!$)
|
|
29893
29893
|
return u();
|
|
@@ -29902,7 +29902,7 @@ function IM(e, t) {
|
|
|
29902
29902
|
// Handle <iframe>s
|
|
29903
29903
|
root: s.ownerDocument
|
|
29904
29904
|
}));
|
|
29905
|
-
} catch (
|
|
29905
|
+
} catch (M) {
|
|
29906
29906
|
n = new IntersectionObserver(G, O);
|
|
29907
29907
|
}
|
|
29908
29908
|
n.observe(e);
|
|
@@ -29996,7 +29996,7 @@ function zM(e, t) {
|
|
|
29996
29996
|
name: "transformOrigin",
|
|
29997
29997
|
fn(n) {
|
|
29998
29998
|
var se, H, ie, te, le;
|
|
29999
|
-
const { elements: r, middlewareData: s, placement: a, rects: u, y: l } = n, d = a.split("-")[0], f = $M(d), m = ((se = s.arrow) == null ? void 0 : se.x) || 0, p = ((H = s.arrow) == null ? void 0 : H.y) || 0, _ = (t == null ? void 0 : t.clientWidth) || 0, y = (t == null ? void 0 : t.clientHeight) || 0, S = m + _ / 2, x = p + y / 2, w = Math.abs(((ie = s.shift) == null ? void 0 : ie.y) || 0), v = u.reference.height / 2, N = y / 2, O = (le = (te = e.offset) == null ? void 0 : te.mainAxis) != null ? le : e.gutter, $ = typeof O == "number" ? O + N : O != null ? O : N, G = w > $,
|
|
29999
|
+
const { elements: r, middlewareData: s, placement: a, rects: u, y: l } = n, d = a.split("-")[0], f = $M(d), m = ((se = s.arrow) == null ? void 0 : se.x) || 0, p = ((H = s.arrow) == null ? void 0 : H.y) || 0, _ = (t == null ? void 0 : t.clientWidth) || 0, y = (t == null ? void 0 : t.clientHeight) || 0, S = m + _ / 2, x = p + y / 2, w = Math.abs(((ie = s.shift) == null ? void 0 : ie.y) || 0), v = u.reference.height / 2, N = y / 2, O = (le = (te = e.offset) == null ? void 0 : te.mainAxis) != null ? le : e.gutter, $ = typeof O == "number" ? O + N : O != null ? O : N, G = w > $, M = {
|
|
30000
30000
|
top: `${S}px calc(100% + ${$}px)`,
|
|
30001
30001
|
bottom: `${S}px ${-$}px`,
|
|
30002
30002
|
left: `calc(100% + ${$}px) ${x}px`,
|
|
@@ -30004,10 +30004,10 @@ function zM(e, t) {
|
|
|
30004
30004
|
}[d], V = `${S}px ${u.reference.y + v - l}px`, J = !!e.overlap && f === "y" && G;
|
|
30005
30005
|
return r.floating.style.setProperty(
|
|
30006
30006
|
$r.transformOrigin.variable,
|
|
30007
|
-
J ? V :
|
|
30007
|
+
J ? V : M
|
|
30008
30008
|
), {
|
|
30009
30009
|
data: {
|
|
30010
|
-
transformOrigin: J ? V :
|
|
30010
|
+
transformOrigin: J ? V : M
|
|
30011
30011
|
}
|
|
30012
30012
|
};
|
|
30013
30013
|
}
|
|
@@ -30364,15 +30364,15 @@ function g8(e, t) {
|
|
|
30364
30364
|
const V = gp(G);
|
|
30365
30365
|
if (uT(O, V)) return !1;
|
|
30366
30366
|
}
|
|
30367
|
-
const
|
|
30368
|
-
return uT(O,
|
|
30367
|
+
const M = gp(e);
|
|
30368
|
+
return uT(O, M) ? !1 : !(n != null && n($));
|
|
30369
30369
|
}
|
|
30370
30370
|
const y = /* @__PURE__ */ new Set(), S = ms(e == null ? void 0 : e.getRootNode());
|
|
30371
30371
|
function x(O) {
|
|
30372
30372
|
function $(G) {
|
|
30373
30373
|
var se, H;
|
|
30374
|
-
const
|
|
30375
|
-
|
|
30374
|
+
const M = u && !$y() ? jt : (ie) => ie(), V = G != null ? G : O, J = (H = (se = V == null ? void 0 : V.composedPath) == null ? void 0 : se.call(V)) != null ? H : [V == null ? void 0 : V.target];
|
|
30375
|
+
M(() => {
|
|
30376
30376
|
const ie = S ? J[0] : ir(O);
|
|
30377
30377
|
if (!(!e || !_(O, ie))) {
|
|
30378
30378
|
if (s || a) {
|
|
@@ -30400,8 +30400,8 @@ function g8(e, t) {
|
|
|
30400
30400
|
function N(O) {
|
|
30401
30401
|
(u ? jt : (G) => G())(() => {
|
|
30402
30402
|
var V, J;
|
|
30403
|
-
const G = (J = (V = O == null ? void 0 : O.composedPath) == null ? void 0 : V.call(O)) != null ? J : [O == null ? void 0 : O.target],
|
|
30404
|
-
if (!(!e || !_(O,
|
|
30403
|
+
const G = (J = (V = O == null ? void 0 : O.composedPath) == null ? void 0 : V.call(O)) != null ? J : [O == null ? void 0 : O.target], M = S ? G[0] : ir(O);
|
|
30404
|
+
if (!(!e || !_(O, M))) {
|
|
30405
30405
|
if (r || a) {
|
|
30406
30406
|
const se = pp(r, a);
|
|
30407
30407
|
e.addEventListener(aT, se, { once: !0 });
|
|
@@ -30412,8 +30412,8 @@ function g8(e, t) {
|
|
|
30412
30412
|
detail: {
|
|
30413
30413
|
originalEvent: O,
|
|
30414
30414
|
contextmenu: !1,
|
|
30415
|
-
focusable: xr(
|
|
30416
|
-
target:
|
|
30415
|
+
focusable: xr(M),
|
|
30416
|
+
target: M
|
|
30417
30417
|
}
|
|
30418
30418
|
});
|
|
30419
30419
|
}
|
|
@@ -30992,8 +30992,8 @@ function y2(e) {
|
|
|
30992
30992
|
};
|
|
30993
30993
|
return !u && l > 0 && (S[f] = `${l}px`), mc(s, S);
|
|
30994
30994
|
}, p = () => {
|
|
30995
|
-
var G,
|
|
30996
|
-
const { scrollX: S, scrollY: x, visualViewport: w } = n, v = (G = w == null ? void 0 : w.offsetLeft) != null ? G : 0, N = (
|
|
30995
|
+
var G, M;
|
|
30996
|
+
const { scrollX: S, scrollY: x, visualViewport: w } = n, v = (G = w == null ? void 0 : w.offsetLeft) != null ? G : 0, N = (M = w == null ? void 0 : w.offsetTop) != null ? M : 0, O = {
|
|
30997
30997
|
position: "fixed",
|
|
30998
30998
|
overflow: "hidden",
|
|
30999
30999
|
top: `${-(x - Math.floor(N))}px`,
|
|
@@ -31772,8 +31772,8 @@ function n9(e, t) {
|
|
|
31772
31772
|
style: {
|
|
31773
31773
|
scrollSnapAlign: (() => {
|
|
31774
31774
|
var J;
|
|
31775
|
-
const $ = (J = N.snapAlign) != null ? J : "start", G = l("slidesPerMove"),
|
|
31776
|
-
return (N.index +
|
|
31775
|
+
const $ = (J = N.snapAlign) != null ? J : "start", G = l("slidesPerMove"), M = G === "auto" ? Math.floor(l("slidesPerPage")) : G;
|
|
31776
|
+
return (N.index + M) % M === 0 ? $ : void 0;
|
|
31777
31777
|
})()
|
|
31778
31778
|
}
|
|
31779
31779
|
}));
|
|
@@ -31840,8 +31840,8 @@ function n9(e, t) {
|
|
|
31840
31840
|
}, G = a5(N, {
|
|
31841
31841
|
dir: l("dir"),
|
|
31842
31842
|
orientation: l("orientation")
|
|
31843
|
-
}),
|
|
31844
|
-
|
|
31843
|
+
}), M = $[G];
|
|
31844
|
+
M == null || M(N);
|
|
31845
31845
|
}
|
|
31846
31846
|
}));
|
|
31847
31847
|
},
|
|
@@ -32362,7 +32362,7 @@ const o9 = 180, a9 = (e) => {
|
|
|
32362
32362
|
}, [w, _]);
|
|
32363
32363
|
const v = a9(r), N = n + v, O = S > 0 ? (S + v) / N : 1, $ = Math.max(1, Math.floor(O));
|
|
32364
32364
|
if (_ === 0) return null;
|
|
32365
|
-
const G = _ > $,
|
|
32365
|
+
const G = _ > $, M = Math.ceil(_ / $), V = G ? Math.max(1, O) : $;
|
|
32366
32366
|
return /* @__PURE__ */ b.jsxs(
|
|
32367
32367
|
Wm,
|
|
32368
32368
|
{
|
|
@@ -32422,7 +32422,7 @@ const o9 = 180, a9 = (e) => {
|
|
|
32422
32422
|
$m,
|
|
32423
32423
|
{
|
|
32424
32424
|
className: B(e, `${I}-carousel__indicator-group`),
|
|
32425
|
-
children: Array.from({ length:
|
|
32425
|
+
children: Array.from({ length: M }, (J, se) => /* @__PURE__ */ b.jsx(
|
|
32426
32426
|
jm,
|
|
32427
32427
|
{
|
|
32428
32428
|
index: se,
|
|
@@ -33466,11 +33466,11 @@ function Q9(e, t, n) {
|
|
|
33466
33466
|
input: O.input,
|
|
33467
33467
|
stack: [...m, f]
|
|
33468
33468
|
};
|
|
33469
|
-
let
|
|
33470
|
-
if (typeof
|
|
33469
|
+
let M = y(...O, G);
|
|
33470
|
+
if (typeof M == "string" && (M = M.length > 0 ? { type: "text", value: M } : void 0), M === !1 ? _.lastIndex = $ + 1 : (S !== $ && N.push({
|
|
33471
33471
|
type: "text",
|
|
33472
33472
|
value: f.value.slice(S, $)
|
|
33473
|
-
}), Array.isArray(
|
|
33473
|
+
}), Array.isArray(M) ? N.push(...M) : M && N.push(M), S = $ + O[0].length, v = !0), !_.global)
|
|
33474
33474
|
break;
|
|
33475
33475
|
O = _.exec(f.value);
|
|
33476
33476
|
}
|
|
@@ -33804,8 +33804,8 @@ function PF(e, t) {
|
|
|
33804
33804
|
const N = x[p] || "";
|
|
33805
33805
|
let O = "", $ = "";
|
|
33806
33806
|
if (n.alignDelimiters !== !1) {
|
|
33807
|
-
const G = d[p] - (w[p] || 0),
|
|
33808
|
-
|
|
33807
|
+
const G = d[p] - (w[p] || 0), M = a[p];
|
|
33808
|
+
M === 114 ? O = " ".repeat(G) : M === 99 ? G % 2 ? (O = " ".repeat(G / 2 + 0.5), $ = " ".repeat(G / 2 - 0.5)) : (O = " ".repeat(G / 2), $ = O) : $ = " ".repeat(G);
|
|
33809
33809
|
}
|
|
33810
33810
|
n.delimiterStart !== !1 && !p && v.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
33811
33811
|
// empty: there will be a closing space.
|
|
@@ -35144,8 +35144,8 @@ function KB(e, t, n) {
|
|
|
35144
35144
|
fe === "linePrefix") ie--;
|
|
35145
35145
|
else break;
|
|
35146
35146
|
}
|
|
35147
|
-
const te = ie > -1 ? r.events[ie][1].type : null, le = te === "tableHead" || te === "tableRow" ?
|
|
35148
|
-
return le ===
|
|
35147
|
+
const te = ie > -1 ? r.events[ie][1].type : null, le = te === "tableHead" || te === "tableRow" ? M : d;
|
|
35148
|
+
return le === M && r.parser.lazy[r.now().line] ? n(H) : le(H);
|
|
35149
35149
|
}
|
|
35150
35150
|
function d(H) {
|
|
35151
35151
|
return e.enter("tableHead"), e.enter("tableRow"), f(H);
|
|
@@ -35189,7 +35189,7 @@ function KB(e, t, n) {
|
|
|
35189
35189
|
function G(H) {
|
|
35190
35190
|
return n(H);
|
|
35191
35191
|
}
|
|
35192
|
-
function
|
|
35192
|
+
function M(H) {
|
|
35193
35193
|
return e.enter("tableRow"), V(H);
|
|
35194
35194
|
}
|
|
35195
35195
|
function V(H) {
|
|
@@ -35587,7 +35587,7 @@ const d7 = ({
|
|
|
35587
35587
|
discountPrice: O,
|
|
35588
35588
|
listPrice: $,
|
|
35589
35589
|
currencyCode: G
|
|
35590
|
-
} = e,
|
|
35590
|
+
} = e, M = O != null ? O : v, V = H9({ priceBreakdown: N, currencyCode: G }), J = () => {
|
|
35591
35591
|
if (f) return;
|
|
35592
35592
|
const H = y || "this product", ie = _ ? ` [SKU: ${_}]` : "";
|
|
35593
35593
|
d(`Show me details for ${H}${ie}`);
|
|
@@ -35657,7 +35657,7 @@ const d7 = ({
|
|
|
35657
35657
|
{
|
|
35658
35658
|
globalClassName: t,
|
|
35659
35659
|
retailPrice: $,
|
|
35660
|
-
discountPrice:
|
|
35660
|
+
discountPrice: M,
|
|
35661
35661
|
currencyCode: G
|
|
35662
35662
|
}
|
|
35663
35663
|
)
|
|
@@ -36051,7 +36051,7 @@ const x7 = ({
|
|
|
36051
36051
|
shippingCost: O,
|
|
36052
36052
|
shippingDiscount: $,
|
|
36053
36053
|
shippingPromotions: G = [],
|
|
36054
|
-
promotionsDiscount:
|
|
36054
|
+
promotionsDiscount: M,
|
|
36055
36055
|
promotions: V = [],
|
|
36056
36056
|
couponsDiscount: J,
|
|
36057
36057
|
bodyMessage: se,
|
|
@@ -36170,7 +36170,7 @@ const x7 = ({
|
|
|
36170
36170
|
{
|
|
36171
36171
|
label: "Promotions",
|
|
36172
36172
|
badge: V[0],
|
|
36173
|
-
value:
|
|
36173
|
+
value: M,
|
|
36174
36174
|
currencyCode: x,
|
|
36175
36175
|
globalClassName: n,
|
|
36176
36176
|
isDiscount: !0,
|
|
@@ -36691,12 +36691,12 @@ const x7 = ({
|
|
|
36691
36691
|
openLinksInNewTab: n,
|
|
36692
36692
|
isCartMgmtSupported: r = !1
|
|
36693
36693
|
}) => {
|
|
36694
|
-
var
|
|
36695
|
-
const { addToCart: s, sendMessage: a, loading: u } = Bn(), { overrides: l, isInitialized: d } = ko(), f = Po(), m = e.data, p = (
|
|
36694
|
+
var Qe, ft, Ct, Zt, dn, Nt, He;
|
|
36695
|
+
const { addToCart: s, sendMessage: a, loading: u } = Bn(), { overrides: l, isInitialized: d } = ko(), f = Po(), m = e.data, p = (Qe = m.vattr) != null ? Qe : [], [_, y] = R.useState(
|
|
36696
36696
|
() => F7(m)
|
|
36697
|
-
), S = L7(m.vmat, _), x = (Ct = (ft = m.quantity) == null ? void 0 : ft.minQuantity) != null ? Ct : 1, w = (dn = (Zt = m.quantity) == null ? void 0 : Zt.maxQuantity) != null ? dn : Number.POSITIVE_INFINITY, v = (He = (Nt = m.quantity) == null ? void 0 : Nt.increment) != null ? He : 1, [N, O] = R.useState(x), [$, G] = R.useState(!1),
|
|
36697
|
+
), S = L7(m.vmat, _), x = (Ct = (ft = m.quantity) == null ? void 0 : ft.minQuantity) != null ? Ct : 1, w = (dn = (Zt = m.quantity) == null ? void 0 : Zt.maxQuantity) != null ? dn : Number.POSITIVE_INFINITY, v = (He = (Nt = m.quantity) == null ? void 0 : Nt.increment) != null ? He : 1, [N, O] = R.useState(x), [$, G] = R.useState(!1), M = R.useRef(!1);
|
|
36698
36698
|
R.useEffect(() => {
|
|
36699
|
-
$ && (u ?
|
|
36699
|
+
$ && (u ? M.current = !0 : M.current && (M.current = !1, G(!1)));
|
|
36700
36700
|
}, [$, u]);
|
|
36701
36701
|
const V = _[La], J = R.useMemo(() => P7(m, V), [m, V]), se = R.useMemo(
|
|
36702
36702
|
() => M7(m, _),
|
|
@@ -36741,7 +36741,7 @@ const x7 = ({
|
|
|
36741
36741
|
}
|
|
36742
36742
|
);
|
|
36743
36743
|
}
|
|
36744
|
-
const
|
|
36744
|
+
const D = (Ne, Ye) => () => {
|
|
36745
36745
|
y((Ze) => {
|
|
36746
36746
|
const ct = !Zl(m.vmat, Ne, Ye, Ze);
|
|
36747
36747
|
return Ne === La || ct ? D7(m.vmat, p, Ne, Ye, Ze) : ce(j({}, Ze), { [Ne]: Ye });
|
|
@@ -36760,11 +36760,11 @@ const x7 = ({
|
|
|
36760
36760
|
quantity: N,
|
|
36761
36761
|
variants: Ye
|
|
36762
36762
|
});
|
|
36763
|
-
}, P = !S || N - v < x, xe = !S || N + v > w,
|
|
36763
|
+
}, P = !S || N - v < x, xe = !S || N + v > w, ke = (Ne) => {
|
|
36764
36764
|
var Ze;
|
|
36765
36765
|
const Ye = _[Ne.id];
|
|
36766
36766
|
return (Ze = Ne.opts.find((ct) => ct.val === Ye)) == null ? void 0 : Ze.name;
|
|
36767
|
-
},
|
|
36767
|
+
}, he = () => O((Ne) => Math.max(x, Ne - v)), Ae = () => O((Ne) => Math.min(w, Ne + v)), Fe = (Ne) => /* @__PURE__ */ b.jsxs(
|
|
36768
36768
|
"div",
|
|
36769
36769
|
{
|
|
36770
36770
|
className: B(t, `${I}-msg-pdp__variant`),
|
|
@@ -36778,7 +36778,7 @@ const x7 = ({
|
|
|
36778
36778
|
children: Ne.lbl || Ne.id
|
|
36779
36779
|
}
|
|
36780
36780
|
),
|
|
36781
|
-
|
|
36781
|
+
ke(Ne) && /* @__PURE__ */ b.jsx("span", { className: B(t, `${I}-msg-pdp__variant-value`), children: ke(Ne) })
|
|
36782
36782
|
] }),
|
|
36783
36783
|
/* @__PURE__ */ b.jsx(
|
|
36784
36784
|
"div",
|
|
@@ -36804,7 +36804,7 @@ const x7 = ({
|
|
|
36804
36804
|
value: Ye.val,
|
|
36805
36805
|
checked: ct,
|
|
36806
36806
|
"aria-description": Ze ? void 0 : "unavailable",
|
|
36807
|
-
onChange:
|
|
36807
|
+
onChange: D(Ne.id, Ye.val),
|
|
36808
36808
|
className: `${I}-msg-pdp__radio-input`
|
|
36809
36809
|
}
|
|
36810
36810
|
),
|
|
@@ -36829,7 +36829,7 @@ const x7 = ({
|
|
|
36829
36829
|
children: Ne.lbl || "Color"
|
|
36830
36830
|
}
|
|
36831
36831
|
),
|
|
36832
|
-
|
|
36832
|
+
ke(Ne) && /* @__PURE__ */ b.jsx("span", { className: B(t, `${I}-msg-pdp__variant-value`), children: ke(Ne) })
|
|
36833
36833
|
] }),
|
|
36834
36834
|
/* @__PURE__ */ b.jsx(
|
|
36835
36835
|
"div",
|
|
@@ -36856,7 +36856,7 @@ const x7 = ({
|
|
|
36856
36856
|
checked: ct,
|
|
36857
36857
|
"aria-label": Ye.name || Ye.val,
|
|
36858
36858
|
"aria-description": Ze ? void 0 : "unavailable",
|
|
36859
|
-
onChange:
|
|
36859
|
+
onChange: D(Ne.id, Ye.val),
|
|
36860
36860
|
className: `${I}-msg-pdp__radio-input`
|
|
36861
36861
|
}
|
|
36862
36862
|
),
|
|
@@ -36888,7 +36888,7 @@ const x7 = ({
|
|
|
36888
36888
|
value: Ye.val,
|
|
36889
36889
|
checked: ct,
|
|
36890
36890
|
"aria-description": Ze ? void 0 : "unavailable",
|
|
36891
|
-
onChange:
|
|
36891
|
+
onChange: D(Ne.id, Ye.val),
|
|
36892
36892
|
className: `${I}-msg-pdp__radio-input`
|
|
36893
36893
|
}
|
|
36894
36894
|
),
|
|
@@ -36975,7 +36975,7 @@ const x7 = ({
|
|
|
36975
36975
|
ariaLabel: "Decrease quantity",
|
|
36976
36976
|
icon: /* @__PURE__ */ b.jsx(cI, {}),
|
|
36977
36977
|
disabled: P,
|
|
36978
|
-
onClick:
|
|
36978
|
+
onClick: he
|
|
36979
36979
|
}
|
|
36980
36980
|
),
|
|
36981
36981
|
/* @__PURE__ */ b.jsx(
|
|
@@ -36992,7 +36992,7 @@ const x7 = ({
|
|
|
36992
36992
|
ariaLabel: "Increase quantity",
|
|
36993
36993
|
icon: /* @__PURE__ */ b.jsx(dI, {}),
|
|
36994
36994
|
disabled: xe,
|
|
36995
|
-
onClick:
|
|
36995
|
+
onClick: Ae
|
|
36996
36996
|
}
|
|
36997
36997
|
)
|
|
36998
36998
|
] })
|
|
@@ -37159,14 +37159,14 @@ const x7 = ({
|
|
|
37159
37159
|
[e.response]
|
|
37160
37160
|
);
|
|
37161
37161
|
return /* @__PURE__ */ b.jsx(b.Fragment, { children: y.map((S, x) => {
|
|
37162
|
-
var w, v, N, O, $, G,
|
|
37162
|
+
var w, v, N, O, $, G, M, V, J, se, H, ie, te, le, fe, ue, ve, de, W, oe, C, D, Z, P, xe, ke;
|
|
37163
37163
|
switch (S.type) {
|
|
37164
37164
|
case "markdown": {
|
|
37165
|
-
const
|
|
37166
|
-
return S.index === Ai && M_(
|
|
37165
|
+
const he = (v = (w = S.data) == null ? void 0 : w.content) != null ? v : "";
|
|
37166
|
+
return S.index === Ai && M_(he) ? null : /* @__PURE__ */ b.jsx(
|
|
37167
37167
|
Io,
|
|
37168
37168
|
{
|
|
37169
|
-
text:
|
|
37169
|
+
text: he,
|
|
37170
37170
|
globalClassName: n,
|
|
37171
37171
|
openLinksInNewTab: r,
|
|
37172
37172
|
showIsLoading: !1
|
|
@@ -37179,7 +37179,7 @@ const x7 = ({
|
|
|
37179
37179
|
m7,
|
|
37180
37180
|
{
|
|
37181
37181
|
title: ($ = (O = S.data) == null ? void 0 : O.title) != null ? $ : "",
|
|
37182
|
-
products: (
|
|
37182
|
+
products: (M = (G = S.data) == null ? void 0 : G.products) != null ? M : [],
|
|
37183
37183
|
globalClassName: n,
|
|
37184
37184
|
openLinksInNewTab: r,
|
|
37185
37185
|
isWidgetStandalone: s,
|
|
@@ -37212,11 +37212,11 @@ const x7 = ({
|
|
|
37212
37212
|
`${S.type}-${(le = S.index) != null ? le : x}`
|
|
37213
37213
|
);
|
|
37214
37214
|
case "cart": {
|
|
37215
|
-
const
|
|
37216
|
-
return
|
|
37215
|
+
const he = (ve = (ue = (fe = S.data) == null ? void 0 : fe.cart) == null ? void 0 : ue.cartSummary) == null ? void 0 : ve.cartDetails;
|
|
37216
|
+
return he ? /* @__PURE__ */ b.jsx(
|
|
37217
37217
|
A7,
|
|
37218
37218
|
{
|
|
37219
|
-
cart:
|
|
37219
|
+
cart: he,
|
|
37220
37220
|
messageId: t,
|
|
37221
37221
|
productsToHighlight: S.data.products_to_highlight,
|
|
37222
37222
|
globalClassName: n,
|
|
@@ -37226,7 +37226,7 @@ const x7 = ({
|
|
|
37226
37226
|
) : null;
|
|
37227
37227
|
}
|
|
37228
37228
|
case "order_confirmation": {
|
|
37229
|
-
const Ae = (
|
|
37229
|
+
const he = S.data, Ae = (C = (W = he == null ? void 0 : he.order) == null ? void 0 : W.orderDetails) != null ? C : (oe = he == null ? void 0 : he.data) == null ? void 0 : oe.orderConfirmation;
|
|
37230
37230
|
return Ae ? /* @__PURE__ */ b.jsx(
|
|
37231
37231
|
N7,
|
|
37232
37232
|
{
|
|
@@ -37235,30 +37235,30 @@ const x7 = ({
|
|
|
37235
37235
|
openLinksInNewTab: r,
|
|
37236
37236
|
isWidgetStandalone: s
|
|
37237
37237
|
},
|
|
37238
|
-
`${S.type}-${(
|
|
37238
|
+
`${S.type}-${(D = S.index) != null ? D : x}`
|
|
37239
37239
|
) : null;
|
|
37240
37240
|
}
|
|
37241
37241
|
case "tool_results": {
|
|
37242
|
-
const
|
|
37243
|
-
if (!
|
|
37244
|
-
return f != null && f.isDevelopment && (
|
|
37245
|
-
`🦜 tool_results "${
|
|
37246
|
-
{ registeredKeys: Object.keys(m), payload:
|
|
37242
|
+
const he = S.data, Ae = S.output_name, Fe = p && Ae && Object.prototype.hasOwnProperty.call(m, Ae) ? m[Ae] : void 0, qe = typeof Fe == "string" ? Fe : void 0;
|
|
37243
|
+
if (!qe || !Ae)
|
|
37244
|
+
return f != null && f.isDevelopment && (Ae ? f.warn(
|
|
37245
|
+
`🦜 tool_results "${Ae}" rendered nothing — no override registered for that key. Register one in the overrides map: { "${Ae}": "<your-tag-name>" }.`,
|
|
37246
|
+
{ registeredKeys: Object.keys(m), payload: he }
|
|
37247
37247
|
) : f.warn("🦜 tool_results block has no output_name — nothing to route on", {
|
|
37248
|
-
payload:
|
|
37248
|
+
payload: he
|
|
37249
37249
|
})), null;
|
|
37250
|
-
const
|
|
37251
|
-
name:
|
|
37252
|
-
payload:
|
|
37250
|
+
const Qe = {
|
|
37251
|
+
name: Ae,
|
|
37252
|
+
payload: he,
|
|
37253
37253
|
api: _
|
|
37254
37254
|
};
|
|
37255
37255
|
return /* @__PURE__ */ b.jsx(
|
|
37256
37256
|
a7,
|
|
37257
37257
|
{
|
|
37258
|
-
overrideName:
|
|
37259
|
-
children: /* @__PURE__ */ b.jsx(Ro, { tagName:
|
|
37258
|
+
overrideName: Ae,
|
|
37259
|
+
children: /* @__PURE__ */ b.jsx(Ro, { tagName: qe, props: Qe, label: `toolResult:${Ae}` })
|
|
37260
37260
|
},
|
|
37261
|
-
`${S.type}-${
|
|
37261
|
+
`${S.type}-${Ae}-${(Z = S.index) != null ? Z : x}`
|
|
37262
37262
|
);
|
|
37263
37263
|
}
|
|
37264
37264
|
case "suggestions":
|
|
@@ -37266,12 +37266,12 @@ const x7 = ({
|
|
|
37266
37266
|
$9,
|
|
37267
37267
|
{
|
|
37268
37268
|
disabled: u || l,
|
|
37269
|
-
suggestions: (
|
|
37269
|
+
suggestions: (xe = (P = S.data) == null ? void 0 : P.display_text) != null ? xe : [],
|
|
37270
37270
|
globalClassName: n,
|
|
37271
37271
|
isWidgetStandalone: s,
|
|
37272
37272
|
onSuggestionClick: a
|
|
37273
37273
|
}
|
|
37274
|
-
) }, `${S.type}-${(
|
|
37274
|
+
) }, `${S.type}-${(ke = S.index) != null ? ke : x}`);
|
|
37275
37275
|
default:
|
|
37276
37276
|
return null;
|
|
37277
37277
|
}
|
|
@@ -37469,9 +37469,9 @@ const $7 = ({
|
|
|
37469
37469
|
sendError: _,
|
|
37470
37470
|
retryLastMessage: y,
|
|
37471
37471
|
retryConnection: S
|
|
37472
|
-
} = Bn(), x = R.useRef(null), w = a.length > 0, v = u.some(GN), N = a[a.length - 1], O = N ? WN(N.content, "suggestions") : !1, $ = w && (d || l) && !v && !O, G = m === "reconnecting" && !$,
|
|
37472
|
+
} = Bn(), x = R.useRef(null), w = a.length > 0, v = u.some(GN), N = a[a.length - 1], O = N ? WN(N.content, "suggestions") : !1, $ = w && (d || l) && !v && !O, G = m === "reconnecting" && !$, M = m === "error";
|
|
37473
37473
|
let V = null;
|
|
37474
|
-
|
|
37474
|
+
M ? V = {
|
|
37475
37475
|
message: p != null ? p : V7,
|
|
37476
37476
|
kind: "connection",
|
|
37477
37477
|
onRetry: S
|