@asgard-js/react 0.2.42-canary.1 → 0.2.43-canary.1
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/dist/components/chatbot/chatbot.d.ts +7 -1
- package/dist/components/chatbot/chatbot.d.ts.map +1 -1
- package/dist/components/tool-call-consent/tool-call-consent-modal.d.ts.map +1 -1
- package/dist/context/asgard-service-context.d.ts +7 -1
- package/dist/context/asgard-service-context.d.ts.map +1 -1
- package/dist/index.js +680 -653
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as C, jsxs as U, Fragment as Ja } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import _a, { useRef as yt, useEffect as Oe, useState as we, useMemo as
|
|
2
|
+
import * as xe from "react";
|
|
3
|
+
import _a, { useRef as yt, useEffect as Oe, useState as we, useMemo as be, useCallback as oe, createContext as td, useContext as nd, useImperativeHandle as V7, memo as ot, Fragment as YC, forwardRef as Y7 } from "react";
|
|
4
4
|
import { AsgardServiceClient as X7, EventType as bl, Conversation as r1, Channel as XC, MessageTemplateType as qr, ToolCallConsentResult as hc } from "@asgard-js/core";
|
|
5
5
|
function KC(e) {
|
|
6
6
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
@@ -110,7 +110,7 @@ function eI(e) {
|
|
|
110
110
|
onSseError: c,
|
|
111
111
|
onBeforeSendMessage: f,
|
|
112
112
|
onChannelReady: d
|
|
113
|
-
} = e, h = !t, [p, g] = we(null), [m, y] = we(n ?? !0), [_, b] = we(!1), [v, x] = we(!1), [E, w] = we(null), k =
|
|
113
|
+
} = e, h = !t, [p, g] = we(null), [m, y] = we(n ?? !0), [_, b] = we(!1), [v, x] = we(!1), [E, w] = we(null), k = be(
|
|
114
114
|
() => h ? new r1({ messages: new Map(s?.map(($) => [$.messageId, $])) }) : null,
|
|
115
115
|
[h, s]
|
|
116
116
|
), S = oe(
|
|
@@ -219,7 +219,7 @@ function eI(e) {
|
|
|
219
219
|
const N = yt(null);
|
|
220
220
|
return Oe(() => {
|
|
221
221
|
p && p !== N.current ? (N.current = p, d?.()) : p || (N.current = null);
|
|
222
|
-
}, [p, d]), Oe(() => () => T(), [T]),
|
|
222
|
+
}, [p, d]), Oe(() => () => T(), [T]), be(
|
|
223
223
|
() => h ? {
|
|
224
224
|
isOpen: !0,
|
|
225
225
|
isResetting: !1,
|
|
@@ -705,10 +705,10 @@ function JC(e) {
|
|
|
705
705
|
return l;
|
|
706
706
|
},
|
|
707
707
|
[n, r?.embedConfig?.theme]
|
|
708
|
-
), o =
|
|
708
|
+
), o = be(() => i(), [i]);
|
|
709
709
|
return /* @__PURE__ */ C(iT.Provider, { value: o, children: t });
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function vt() {
|
|
712
712
|
return nd(iT);
|
|
713
713
|
}
|
|
714
714
|
function Kd() {
|
|
@@ -761,8 +761,8 @@ function sI(e) {
|
|
|
761
761
|
} = e, v = yt(null), x = yt(null), [E, w] = we(null), [k, S] = we(!0), A = oe((Le) => {
|
|
762
762
|
S(Le);
|
|
763
763
|
}, []), T = oe((Le) => {
|
|
764
|
-
const
|
|
765
|
-
|
|
764
|
+
const Dt = x.current;
|
|
765
|
+
Dt && Dt.scrollTo({ top: Dt.scrollHeight, behavior: Le });
|
|
766
766
|
}, []), F = oe(
|
|
767
767
|
(Le = "smooth") => {
|
|
768
768
|
T(Le), S(!0);
|
|
@@ -792,24 +792,24 @@ function sI(e) {
|
|
|
792
792
|
onSseError: g,
|
|
793
793
|
onBeforeSendMessage: m,
|
|
794
794
|
onChannelReady: b
|
|
795
|
-
}), fe =
|
|
795
|
+
}), fe = be(() => {
|
|
796
796
|
if (O)
|
|
797
797
|
return async (Le) => {
|
|
798
|
-
const
|
|
798
|
+
const Dt = m ? m(Le) : Le;
|
|
799
799
|
try {
|
|
800
|
-
const
|
|
801
|
-
return y?.(),
|
|
800
|
+
const Jt = await O(Dt);
|
|
801
|
+
return y?.(), Jt;
|
|
802
802
|
} catch {
|
|
803
803
|
return;
|
|
804
804
|
}
|
|
805
805
|
};
|
|
806
|
-
}, [O, m, y]), Be =
|
|
806
|
+
}, [O, m, y]), Be = be(() => {
|
|
807
807
|
if (re)
|
|
808
|
-
return async (Le) => {
|
|
809
|
-
const
|
|
810
|
-
return re(Le,
|
|
808
|
+
return async (Le, Dt) => {
|
|
809
|
+
const Jt = m ? m({ text: "", payload: Dt }) : { payload: Dt };
|
|
810
|
+
return re(Le, Jt.payload);
|
|
811
811
|
};
|
|
812
|
-
}, [re, m]), pe =
|
|
812
|
+
}, [re, m]), pe = be(
|
|
813
813
|
() => ({
|
|
814
814
|
avatar: t,
|
|
815
815
|
title: n,
|
|
@@ -893,7 +893,7 @@ function aI(e) {
|
|
|
893
893
|
onMessageAction: a,
|
|
894
894
|
renderMessageContent: l,
|
|
895
895
|
renderToolCallGroup: u
|
|
896
|
-
} = e, c =
|
|
896
|
+
} = e, c = be(
|
|
897
897
|
() => ({
|
|
898
898
|
onErrorClick: n,
|
|
899
899
|
errorMessageRenderer: r,
|
|
@@ -958,7 +958,7 @@ function ke() {
|
|
|
958
958
|
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = lT(e)) && (r && (r += " "), r += t);
|
|
959
959
|
return r;
|
|
960
960
|
}
|
|
961
|
-
const uI = (e) => /* @__PURE__ */
|
|
961
|
+
const uI = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 33, height: 32, viewBox: "0 0 33 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("g", { clipPath: "url(#clip0_3084_29383)" }, /* @__PURE__ */ xe.createElement("path", { d: "M0.410645 16C0.410645 7.16344 7.57409 0 16.4106 0C25.2472 0 32.4106 7.16344 32.4106 16C32.4106 24.8366 25.2472 32 16.4106 32C7.57409 32 0.410645 24.8366 0.410645 16Z", fill: "#333333" }), /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.5788 6.33398C19.8925 6.33398 22.5788 9.02028 22.5788 12.334C22.5788 14.2211 21.7075 15.9048 20.3453 17.0047C23.6487 18.3735 26.0607 21.6974 26.4106 25.6673H24.4569C24.0206 21.6274 20.9742 18.4911 17.2591 18.3397L16.9776 18.334H16.5788H15.8437C12.0019 18.334 8.81164 21.5258 8.36437 25.6673H6.41064C6.76857 21.607 9.28344 18.2225 12.7029 16.9143C11.4036 15.8137 10.5788 14.1701 10.5788 12.334C10.5788 9.02028 13.265 6.33398 16.5788 6.33398ZM16.5788 16.334C18.7879 16.334 20.5788 14.5431 20.5788 12.334C20.5788 10.1248 18.7879 8.33398 16.5788 8.33398C14.3696 8.33398 12.5788 10.1248 12.5788 12.334C12.5788 14.5431 14.3696 16.334 16.5788 16.334Z", fill: "#8C8C8C" })), /* @__PURE__ */ xe.createElement("defs", null, /* @__PURE__ */ xe.createElement("clipPath", { id: "clip0_3084_29383" }, /* @__PURE__ */ xe.createElement("path", { d: "M0.410645 16C0.410645 7.16344 7.57409 0 16.4106 0C25.2472 0 32.4106 7.16344 32.4106 16C32.4106 24.8366 25.2472 32 16.4106 32C7.57409 32 0.410645 24.8366 0.410645 16Z", fill: "white" }))));
|
|
962
962
|
function yv(e) {
|
|
963
963
|
const { avatar: t } = e;
|
|
964
964
|
return t ? /* @__PURE__ */ C(
|
|
@@ -974,7 +974,7 @@ function yv(e) {
|
|
|
974
974
|
}
|
|
975
975
|
) : /* @__PURE__ */ C(uI, {});
|
|
976
976
|
}
|
|
977
|
-
const cI = (e) => /* @__PURE__ */
|
|
977
|
+
const cI = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ xe.createElement("circle", { cx: 12, cy: 12, r: 3 })), fI = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), /* @__PURE__ */ xe.createElement("line", { x1: 1, y1: 1, x2: 23, y2: 23 })), dI = "_api_key_input_7488d_1", hI = "_api_key_input__header_7488d_18", pI = "_api_key_input__title_7488d_31", gI = "_api_key_input__form_7488d_38", mI = "_api_key_input__label_7488d_45", yI = "_api_key_input__input_wrapper_7488d_52", _I = "_api_key_input__input_7488d_52", bI = "_api_key_input__toggle_button_7488d_93", vI = "_api_key_input__toggle_icon_7488d_118", xI = "_api_key_input__error_message_7488d_123", wI = "_api_key_input__submit_button_7488d_129", Un = {
|
|
978
978
|
api_key_input: dI,
|
|
979
979
|
api_key_input__header: hI,
|
|
980
980
|
api_key_input__title: pI,
|
|
@@ -998,7 +998,7 @@ function QC({
|
|
|
998
998
|
showToggle: o = !0,
|
|
999
999
|
className: s
|
|
1000
1000
|
}) {
|
|
1001
|
-
const [a, l] = we(""), [u, c] = we(!1), { chatbot: f } =
|
|
1001
|
+
const [a, l] = we(""), [u, c] = we(!1), { chatbot: f } = vt(), { avatar: d } = Ft(), h = (m) => {
|
|
1002
1002
|
m.preventDefault(), a.trim() && !t && e(a.trim());
|
|
1003
1003
|
}, p = (m) => {
|
|
1004
1004
|
l(m.target.value);
|
|
@@ -1074,16 +1074,16 @@ const EI = "_chatbot_header_luxt4_1", CI = "_chatbot_header__content_luxt4_4", k
|
|
|
1074
1074
|
chatbot_header__content: CI,
|
|
1075
1075
|
chatbot_header__title: kI,
|
|
1076
1076
|
chatbot_header__extra: SI
|
|
1077
|
-
}, $I = (e) => /* @__PURE__ */
|
|
1077
|
+
}, $I = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.49453 2.3352C6.44049 -0.226723 10.9105 -0.106316 13.7142 2.69633C16.6428 5.62613 16.6428 10.3739 13.7144 13.3035C10.7846 16.2322 6.03581 16.2322 3.1073 13.3036C2.30873 12.505 1.71132 11.5536 1.34188 10.5109L1.78892 10.3525L1.34171 10.5106L1.22791 10.162C1.01752 9.46018 0.910643 8.73159 0.910643 7.9997H2.4542L2.46382 8.33865C2.49584 8.9024 2.60763 9.46037 2.79674 9.99539L2.7968 9.99536L2.90116 10.2683C3.19714 10.9887 3.63414 11.6475 4.19876 12.2121C6.52451 14.5379 10.2961 14.5379 12.6229 12.212C14.9486 9.88539 14.9486 6.11464 12.6227 3.78781C10.3306 1.49653 6.63579 1.46263 4.30292 3.68622L6.68087 3.68698V5.22954H3.49394H1.95141V3.68698V0.5H3.49394L3.49453 2.3352Z", fill: "currentColor" })), uT = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 15, height: 14, viewBox: "0 0 15 14", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3496 0L7.41062 5.938L1.47162 0L0.411621 1.06L6.34962 6.999L0.411621 12.938L1.47162 13.999L7.41062 8.059L13.3496 13.999L14.4096 12.938L8.47162 6.999L14.4096 1.06L13.3496 0Z", fill: "currentColor" }));
|
|
1078
1078
|
function ek(e) {
|
|
1079
|
-
const { title: t, onReset: n, onClose: r, customActions: i, maintainConnectionWhenClosed: o } = e, { chatbot: s } =
|
|
1079
|
+
const { title: t, onReset: n, onClose: r, customActions: i, maintainConnectionWhenClosed: o } = e, { chatbot: s } = vt(), {
|
|
1080
1080
|
data: { annotations: a }
|
|
1081
|
-
} = gv(), { avatar: l, isResetting: u, resetChannel: c, closeChannel: f } = Ft(), d =
|
|
1081
|
+
} = gv(), { avatar: l, isResetting: u, resetChannel: c, closeChannel: f } = Ft(), d = be(
|
|
1082
1082
|
() => ({
|
|
1083
1083
|
maxWidth: s?.contentMaxWidth ?? "1200px"
|
|
1084
1084
|
}),
|
|
1085
1085
|
[s]
|
|
1086
|
-
), h =
|
|
1086
|
+
), h = be(
|
|
1087
1087
|
() => ({
|
|
1088
1088
|
...s?.header?.style,
|
|
1089
1089
|
borderBottomColor: s?.borderColor
|
|
@@ -1124,8 +1124,8 @@ const AI = "_chatbot_body_wrapper_13zns_1", MI = "_chatbot_body_13zns_1", TI = "
|
|
|
1124
1124
|
"template_box--user": "_template_box--user_rjm7y_14",
|
|
1125
1125
|
"template_box--empty": "_template_box--empty_rjm7y_18"
|
|
1126
1126
|
};
|
|
1127
|
-
function
|
|
1128
|
-
const { type: t, children: n, style: r, className: i } = e, o = e.type === "bot" ? e.direction : "horizontal", s = e.type === "bot" ? e.isEmpty : !1, a =
|
|
1127
|
+
function yn(e) {
|
|
1128
|
+
const { type: t, children: n, style: r, className: i } = e, o = e.type === "bot" ? e.direction : "horizontal", s = e.type === "bot" ? e.isEmpty : !1, a = be(() => t === "user" ? ke(Gs.template_box, Gs["template_box--user"]) : ke(
|
|
1129
1129
|
Gs.template_box,
|
|
1130
1130
|
Gs["template_box--bot"],
|
|
1131
1131
|
o === "horizontal" ? Gs["template_box--horizontal"] : Gs["template_box--vertical"],
|
|
@@ -1141,7 +1141,7 @@ const FI = "_template_box_content_fs2wk_1", DI = "_content_fs2wk_8", tk = {
|
|
|
1141
1141
|
quick_reply: OI
|
|
1142
1142
|
};
|
|
1143
1143
|
function LI(e) {
|
|
1144
|
-
const { quickReplies: t } = e, { template: n, botMessage: r } =
|
|
1144
|
+
const { quickReplies: t } = e, { template: n, botMessage: r } = vt(), { sendMessage: i, isConnecting: o } = Ft(), s = oe(
|
|
1145
1145
|
(a) => {
|
|
1146
1146
|
i?.({ text: a });
|
|
1147
1147
|
},
|
|
@@ -1212,7 +1212,7 @@ const KI = "_time_h4puu_1", ZI = {
|
|
|
1212
1212
|
time: KI
|
|
1213
1213
|
};
|
|
1214
1214
|
function Qa(e) {
|
|
1215
|
-
const { time: t, className: n } = e, { template: r } =
|
|
1215
|
+
const { time: t, className: n } = e, { template: r } = vt(), i = be(
|
|
1216
1216
|
() => ({
|
|
1217
1217
|
color: r?.time?.style?.color
|
|
1218
1218
|
}),
|
|
@@ -1221,7 +1221,7 @@ function Qa(e) {
|
|
|
1221
1221
|
return t ? /* @__PURE__ */ C("div", { className: ke("asgard-time", ZI.time, n), style: i, children: Zy(t) }) : null;
|
|
1222
1222
|
}
|
|
1223
1223
|
function JI(e) {
|
|
1224
|
-
const { references: t, time: n } = e, { template: r, botMessage: i, chatbot: o } =
|
|
1224
|
+
const { references: t, time: n } = e, { template: r, botMessage: i, chatbot: o } = vt(), { defaultLinkTarget: s } = Lu(), a = (f) => {
|
|
1225
1225
|
const d = f.currentTarget.dataset.uri;
|
|
1226
1226
|
d && _v(d, s || "_blank");
|
|
1227
1227
|
}, l = {
|
|
@@ -1283,7 +1283,7 @@ function pr(e) {
|
|
|
1283
1283
|
const nP = "_bot_avatar_1ch7m_1", Jd = {
|
|
1284
1284
|
bot_avatar: nP,
|
|
1285
1285
|
"bot_avatar--invisible": "_bot_avatar--invisible_1ch7m_8"
|
|
1286
|
-
}, rP = (e) => /* @__PURE__ */
|
|
1286
|
+
}, rP = (e) => /* @__PURE__ */ xe.createElement("svg", { viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M0.40625 12C0.40625 5.37258 5.77883 0 12.4062 0C19.0337 0 24.4062 5.37258 24.4062 12C24.4062 18.6274 19.0337 24 12.4062 24C5.77883 24 0.40625 18.6274 0.40625 12Z", fill: "#585858" }), /* @__PURE__ */ xe.createElement("path", { d: "M6.40625 18.75V15C6.40625 14.5875 6.55313 14.2344 6.84688 13.9406C7.14063 13.6469 7.49375 13.5 7.90625 13.5H16.9062C17.3188 13.5 17.6719 13.6469 17.9656 13.9406C18.2594 14.2344 18.4062 14.5875 18.4062 15V18.75H6.40625ZM10.1562 12.75C9.11875 12.75 8.23438 12.3844 7.50312 11.6531C6.77187 10.9219 6.40625 10.0375 6.40625 9C6.40625 7.9625 6.77187 7.07812 7.50312 6.34687C8.23438 5.61562 9.11875 5.25 10.1562 5.25H14.6562C15.6938 5.25 16.5781 5.61562 17.3094 6.34687C18.0406 7.07812 18.4062 7.9625 18.4062 9C18.4062 10.0375 18.0406 10.9219 17.3094 11.6531C16.5781 12.3844 15.6938 12.75 14.6562 12.75H10.1562ZM7.90625 17.25H16.9062V15H7.90625V17.25ZM10.1562 11.25H14.6562C15.2812 11.25 15.8125 11.0312 16.25 10.5938C16.6875 10.1562 16.9062 9.625 16.9062 9C16.9062 8.375 16.6875 7.84375 16.25 7.40625C15.8125 6.96875 15.2812 6.75 14.6562 6.75H10.1562C9.53125 6.75 9 6.96875 8.5625 7.40625C8.125 7.84375 7.90625 8.375 7.90625 9C7.90625 9.625 8.125 10.1562 8.5625 10.5938C9 11.0312 9.53125 11.25 10.1562 11.25ZM10.1562 9.75C10.3688 9.75 10.5469 9.67812 10.6906 9.53438C10.8344 9.39062 10.9062 9.2125 10.9062 9C10.9062 8.7875 10.8344 8.60938 10.6906 8.46562C10.5469 8.32187 10.3688 8.25 10.1562 8.25C9.94375 8.25 9.76562 8.32187 9.62187 8.46562C9.47812 8.60938 9.40625 8.7875 9.40625 9C9.40625 9.2125 9.47812 9.39062 9.62187 9.53438C9.76562 9.67812 9.94375 9.75 10.1562 9.75ZM14.6562 9.75C14.8687 9.75 15.0469 9.67812 15.1906 9.53438C15.3344 9.39062 15.4062 9.2125 15.4062 9C15.4062 8.7875 15.3344 8.60938 15.1906 8.46562C15.0469 8.32187 14.8687 8.25 14.6562 8.25C14.4438 8.25 14.2656 8.32187 14.1219 8.46562C13.9781 8.60938 13.9062 8.7875 13.9062 9C13.9062 9.2125 13.9781 9.39062 14.1219 9.53438C14.2656 9.67812 14.4438 9.75 14.6562 9.75Z", fill: "white" })), gr = ot((e) => {
|
|
1287
1287
|
const { avatar: t, invisible: n } = e;
|
|
1288
1288
|
return n ? /* @__PURE__ */ C("div", { className: ke("asgard-avatar", Jd.bot_avatar, Jd["bot_avatar--invisible"]) }) : t ? /* @__PURE__ */ C("img", { src: t, alt: "Bot Avatar", className: ke("asgard-avatar", Jd.bot_avatar) }) : /* @__PURE__ */ C("div", { className: ke("asgard-avatar", Jd.bot_avatar), children: /* @__PURE__ */ C(rP, {}) });
|
|
1289
1289
|
}), iP = "_card_root_1kvwl_1", oP = "_card_content_1kvwl_11", sP = "_card_title_1kvwl_19", aP = "_card_description_1kvwl_25", lP = "_card_actions_1kvwl_40", pc = {
|
|
@@ -1294,7 +1294,7 @@ const nP = "_bot_avatar_1ch7m_1", Jd = {
|
|
|
1294
1294
|
card_actions: lP
|
|
1295
1295
|
};
|
|
1296
1296
|
function cT(e) {
|
|
1297
|
-
const { template: t, raw: n, customStyle: r } = e, { sendMessage: i } = Ft(), { onTemplateBtnClick: o, defaultLinkTarget: s } = Lu(), [a, l] = we(!1), u =
|
|
1297
|
+
const { template: t, raw: n, customStyle: r } = e, { sendMessage: i } = Ft(), { onTemplateBtnClick: o, defaultLinkTarget: s } = Lu(), [a, l] = we(!1), u = be(() => t?.thumbnailImageUrl?.replace(/^http:/, "").replace(/^https:/, "") || "", [t]), c = !!u && !a, f = be(() => t?.imageAspectRatio === "square" ? "1 / 1" : "1.51 / 1", [t]), d = oe(
|
|
1298
1298
|
(h) => function() {
|
|
1299
1299
|
switch (h.type) {
|
|
1300
1300
|
case "message":
|
|
@@ -1338,8 +1338,8 @@ function cT(e) {
|
|
|
1338
1338
|
] });
|
|
1339
1339
|
}
|
|
1340
1340
|
function uP(e) {
|
|
1341
|
-
const { message: t } = e, { template: n } =
|
|
1342
|
-
return /* @__PURE__ */ U(
|
|
1341
|
+
const { message: t } = e, { template: n } = vt(), { avatar: r } = Ft(), i = t.message.template;
|
|
1342
|
+
return /* @__PURE__ */ U(yn, { className: "asgard-button-template", type: "bot", direction: "horizontal", children: [
|
|
1343
1343
|
/* @__PURE__ */ C(gr, { avatar: r }),
|
|
1344
1344
|
/* @__PURE__ */ C(
|
|
1345
1345
|
pr,
|
|
@@ -1495,7 +1495,7 @@ function OT({ children: e }) {
|
|
|
1495
1495
|
}, []), r || !t ? e : /* @__PURE__ */ C(t, { components: LP, children: e });
|
|
1496
1496
|
}
|
|
1497
1497
|
function ok(e) {
|
|
1498
|
-
const { message: t } = e, { avatar: n } = Ft(), r =
|
|
1498
|
+
const { message: t } = e, { avatar: n } = Ft(), r = vt(), { botMessage: i } = r, o = t?.message?.text || "", s = t.type === "bot", a = r?.template?.TextMessageTemplate?.style, l = be(() => {
|
|
1499
1499
|
switch (t.type) {
|
|
1500
1500
|
case "user":
|
|
1501
1501
|
return {
|
|
@@ -1517,7 +1517,7 @@ function ok(e) {
|
|
|
1517
1517
|
if (t.type === "error") return null;
|
|
1518
1518
|
if (t.type === "user")
|
|
1519
1519
|
return /* @__PURE__ */ U(
|
|
1520
|
-
|
|
1520
|
+
yn,
|
|
1521
1521
|
{
|
|
1522
1522
|
className: "asgard-text-template asgard-text-template--user",
|
|
1523
1523
|
type: "user",
|
|
@@ -1531,7 +1531,7 @@ function ok(e) {
|
|
|
1531
1531
|
);
|
|
1532
1532
|
const u = t.type === "bot" ? t : void 0, c = o.trim() !== "", f = u?.message.template?.references, d = u?.message.template?.quickReplies, h = !!f?.length, p = !!d?.length, g = !c;
|
|
1533
1533
|
return g && !h && !p ? null : g ? /* @__PURE__ */ U(
|
|
1534
|
-
|
|
1534
|
+
yn,
|
|
1535
1535
|
{
|
|
1536
1536
|
className: ke("asgard-text-template", "asgard-text-template--bot", "asgard-text-template--empty"),
|
|
1537
1537
|
type: "bot",
|
|
@@ -1553,7 +1553,7 @@ function ok(e) {
|
|
|
1553
1553
|
]
|
|
1554
1554
|
}
|
|
1555
1555
|
) : /* @__PURE__ */ U(
|
|
1556
|
-
|
|
1556
|
+
yn,
|
|
1557
1557
|
{
|
|
1558
1558
|
className: "asgard-text-template asgard-text-template--bot",
|
|
1559
1559
|
type: "bot",
|
|
@@ -1576,19 +1576,19 @@ function ok(e) {
|
|
|
1576
1576
|
);
|
|
1577
1577
|
}
|
|
1578
1578
|
function LT(e) {
|
|
1579
|
-
const { isTyping: t, typingText: n } = e, { avatar: r } = Ft(), i =
|
|
1579
|
+
const { isTyping: t, typingText: n } = e, { avatar: r } = Ft(), i = vt(), o = tI(t, 500), s = be(
|
|
1580
1580
|
() => ({
|
|
1581
1581
|
color: i?.botMessage?.color,
|
|
1582
1582
|
backgroundColor: i?.botMessage?.backgroundColor
|
|
1583
1583
|
}),
|
|
1584
1584
|
[i]
|
|
1585
|
-
), a =
|
|
1585
|
+
), a = be(
|
|
1586
1586
|
() => ({
|
|
1587
1587
|
backgroundColor: i?.botMessage?.color
|
|
1588
1588
|
}),
|
|
1589
1589
|
[i]
|
|
1590
1590
|
);
|
|
1591
|
-
return o ? /* @__PURE__ */ U(
|
|
1591
|
+
return o ? /* @__PURE__ */ U(yn, { className: "asgard-text-template asgard-text-template--bot", type: "bot", direction: "horizontal", children: [
|
|
1592
1592
|
/* @__PURE__ */ C(gr, { avatar: r }),
|
|
1593
1593
|
/* @__PURE__ */ C(pr, { time: /* @__PURE__ */ new Date(), children: /* @__PURE__ */ C("div", { className: ke(Si.text, Si["text--bot"]), style: s, children: /* @__PURE__ */ U("span", { children: [
|
|
1594
1594
|
n ? /* @__PURE__ */ C(OT, { children: n }) : null,
|
|
@@ -1601,7 +1601,7 @@ function LT(e) {
|
|
|
1601
1601
|
] }) : null;
|
|
1602
1602
|
}
|
|
1603
1603
|
function PP(e) {
|
|
1604
|
-
const { placeholder: t } = e, { isConnecting: n, messages: r } = Ft(), i =
|
|
1604
|
+
const { placeholder: t } = e, { isConnecting: n, messages: r } = Ft(), i = be(
|
|
1605
1605
|
() => Array.from(r?.values() ?? []).some((o) => o.type === "bot" && o.isTyping),
|
|
1606
1606
|
[r]
|
|
1607
1607
|
);
|
|
@@ -1612,9 +1612,9 @@ const zP = "_carousel_root_v06v3_1", BP = "_carousel_time_v06v3_13", sk = {
|
|
|
1612
1612
|
carousel_time: BP
|
|
1613
1613
|
};
|
|
1614
1614
|
function UP(e) {
|
|
1615
|
-
const { message: t } = e, { template: n } =
|
|
1615
|
+
const { message: t } = e, { template: n } = vt(), { avatar: r } = Ft(), i = t.message.template;
|
|
1616
1616
|
return /* @__PURE__ */ U(
|
|
1617
|
-
|
|
1617
|
+
yn,
|
|
1618
1618
|
{
|
|
1619
1619
|
className: "asgard-carousel-template",
|
|
1620
1620
|
type: "bot",
|
|
@@ -1655,7 +1655,7 @@ const jP = "_hint_root_1hmle_1", qP = "_error_hint_title_1hmle_17", WP = "_error
|
|
|
1655
1655
|
time: GP
|
|
1656
1656
|
};
|
|
1657
1657
|
function ak(e) {
|
|
1658
|
-
const { message: t } = e, { template: n } =
|
|
1658
|
+
const { message: t } = e, { template: n } = vt(), { onErrorClick: r, errorMessageRenderer: i } = Lu(), o = oe(() => {
|
|
1659
1659
|
r?.(t);
|
|
1660
1660
|
}, [t, r]);
|
|
1661
1661
|
if (t.type === "user") return null;
|
|
@@ -1745,7 +1745,7 @@ function er(e, t, n) {
|
|
|
1745
1745
|
function _t(e) {
|
|
1746
1746
|
return e == null ? null : e.fname;
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function _n(e) {
|
|
1749
1749
|
return e == null ? null : e.fields;
|
|
1750
1750
|
}
|
|
1751
1751
|
function IT(e) {
|
|
@@ -1787,7 +1787,7 @@ function Nr(e, t, n) {
|
|
|
1787
1787
|
const r = Vi(e);
|
|
1788
1788
|
return e = r.length === 1 ? r[0] : e, er((n && n.get || IT)(r), [e], t || e);
|
|
1789
1789
|
}
|
|
1790
|
-
const rd = Nr("id"),
|
|
1790
|
+
const rd = Nr("id"), wn = er((e) => e, [], "identity"), es = er(() => 0, [], "zero"), Iu = er(() => 1, [], "one"), Fr = er(() => !0, [], "true"), Go = er(() => !1, [], "false"), bv = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]);
|
|
1791
1791
|
function KP(e, t, n) {
|
|
1792
1792
|
const r = [t].concat([].slice.call(n));
|
|
1793
1793
|
console[e].apply(console, r);
|
|
@@ -1853,7 +1853,7 @@ function ZP(e, t) {
|
|
|
1853
1853
|
function ze(e) {
|
|
1854
1854
|
return e[e.length - 1];
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function gn(e) {
|
|
1857
1857
|
return e == null || e === "" ? null : +e;
|
|
1858
1858
|
}
|
|
1859
1859
|
const UT = (e) => (t) => e * Math.exp(t), jT = (e) => (t) => Math.log(e * t), qT = (e) => (t) => Math.sign(t) * Math.log1p(Math.abs(t / e)), WT = (e) => (t) => Math.sign(t) * Math.expm1(Math.abs(t)) * e, mp = (e) => (t) => t < 0 ? -Math.pow(-t, e) : Math.pow(t, e);
|
|
@@ -1862,7 +1862,7 @@ function Jg(e, t, n, r) {
|
|
|
1862
1862
|
return [r(i - s), r(o - s)];
|
|
1863
1863
|
}
|
|
1864
1864
|
function HT(e, t) {
|
|
1865
|
-
return Jg(e, t,
|
|
1865
|
+
return Jg(e, t, gn, wn);
|
|
1866
1866
|
}
|
|
1867
1867
|
function GT(e, t) {
|
|
1868
1868
|
var n = Math.sign(e[0]);
|
|
@@ -1879,7 +1879,7 @@ function Qg(e, t, n, r, i) {
|
|
|
1879
1879
|
return [i(a + (o - a) * n), i(a + (s - a) * n)];
|
|
1880
1880
|
}
|
|
1881
1881
|
function wv(e, t, n) {
|
|
1882
|
-
return Qg(e, t, n,
|
|
1882
|
+
return Qg(e, t, n, gn, wn);
|
|
1883
1883
|
}
|
|
1884
1884
|
function Ev(e, t, n) {
|
|
1885
1885
|
const r = Math.sign(e[0]);
|
|
@@ -1912,7 +1912,7 @@ function kv(e, t, n) {
|
|
|
1912
1912
|
n = n || {}, t = ee(t) || [];
|
|
1913
1913
|
const r = [], i = [], o = {}, s = n.comparator || QP;
|
|
1914
1914
|
return ee(e).forEach((a, l) => {
|
|
1915
|
-
a != null && (r.push(t[l] === JP ? -1 : 1), i.push(a = Ee(a) ? a : Nr(a, null, n)), (
|
|
1915
|
+
a != null && (r.push(t[l] === JP ? -1 : 1), i.push(a = Ee(a) ? a : Nr(a, null, n)), (_n(a) || []).forEach((u) => o[u] = 1));
|
|
1916
1916
|
}), i.length === 0 ? null : er(s(i, r), Object.keys(o));
|
|
1917
1917
|
}
|
|
1918
1918
|
const Bu = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == null) && e != null ? 1 : (t = t instanceof Date ? +t : t, (e = e instanceof Date ? +e : e) !== e && t === t ? -1 : t !== t && e === e ? 1 : 0), QP = (e, t) => e.length === 1 ? ez(e[0], t[0]) : tz(e, t, e.length), ez = (e, t) => function(n, r) {
|
|
@@ -1923,7 +1923,7 @@ const Bu = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == nul
|
|
|
1923
1923
|
o = e[a], s = Bu(o(r), o(i));
|
|
1924
1924
|
return s * t[a];
|
|
1925
1925
|
});
|
|
1926
|
-
function
|
|
1926
|
+
function En(e) {
|
|
1927
1927
|
return Ee(e) ? e : () => e;
|
|
1928
1928
|
}
|
|
1929
1929
|
function Sv(e, t) {
|
|
@@ -2901,7 +2901,7 @@ function w5(e, t) {
|
|
|
2901
2901
|
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, Ql(t) - Ql(e)) + 1;
|
|
2902
2902
|
}
|
|
2903
2903
|
const u1 = /* @__PURE__ */ new Date(), c1 = /* @__PURE__ */ new Date();
|
|
2904
|
-
function
|
|
2904
|
+
function Bt(e, t, n, r) {
|
|
2905
2905
|
function i(o) {
|
|
2906
2906
|
return e(o = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+o)), o;
|
|
2907
2907
|
}
|
|
@@ -2916,7 +2916,7 @@ function zt(e, t, n, r) {
|
|
|
2916
2916
|
l.push(u = /* @__PURE__ */ new Date(+o)), t(o, a), e(o);
|
|
2917
2917
|
while (u < o && o < s);
|
|
2918
2918
|
return l;
|
|
2919
|
-
}, i.filter = (o) =>
|
|
2919
|
+
}, i.filter = (o) => Bt((s) => {
|
|
2920
2920
|
if (s >= s) for (; e(s), !o(s); ) s.setTime(s - 1);
|
|
2921
2921
|
}, (s, a) => {
|
|
2922
2922
|
if (s >= s)
|
|
@@ -2928,67 +2928,67 @@ function zt(e, t, n, r) {
|
|
|
2928
2928
|
;
|
|
2929
2929
|
}), n && (i.count = (o, s) => (u1.setTime(+o), c1.setTime(+s), e(u1), e(c1), Math.floor(n(u1, c1))), i.every = (o) => (o = Math.floor(o), !isFinite(o) || !(o > 0) ? null : o > 1 ? i.filter(r ? (s) => r(s) % o === 0 : (s) => i.count(0, s) % o === 0) : i)), i;
|
|
2930
2930
|
}
|
|
2931
|
-
const eu =
|
|
2931
|
+
const eu = Bt(() => {
|
|
2932
2932
|
}, (e, t) => {
|
|
2933
2933
|
e.setTime(+e + t);
|
|
2934
2934
|
}, (e, t) => t - e);
|
|
2935
|
-
eu.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ?
|
|
2935
|
+
eu.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? Bt((t) => {
|
|
2936
2936
|
t.setTime(Math.floor(t / e) * e);
|
|
2937
2937
|
}, (t, n) => {
|
|
2938
2938
|
t.setTime(+t + n * e);
|
|
2939
2939
|
}, (t, n) => (n - t) / e) : eu);
|
|
2940
2940
|
eu.range;
|
|
2941
|
-
const mo = 1e3, kr = mo * 60, yo = kr * 60, To = yo * 24, Rv = To * 7, _k = To * 30, f1 = To * 365, _o =
|
|
2941
|
+
const mo = 1e3, kr = mo * 60, yo = kr * 60, To = yo * 24, Rv = To * 7, _k = To * 30, f1 = To * 365, _o = Bt((e) => {
|
|
2942
2942
|
e.setTime(e - e.getMilliseconds());
|
|
2943
2943
|
}, (e, t) => {
|
|
2944
2944
|
e.setTime(+e + t * mo);
|
|
2945
2945
|
}, (e, t) => (t - e) / mo, (e) => e.getUTCSeconds());
|
|
2946
2946
|
_o.range;
|
|
2947
|
-
const tm =
|
|
2947
|
+
const tm = Bt((e) => {
|
|
2948
2948
|
e.setTime(e - e.getMilliseconds() - e.getSeconds() * mo);
|
|
2949
2949
|
}, (e, t) => {
|
|
2950
2950
|
e.setTime(+e + t * kr);
|
|
2951
2951
|
}, (e, t) => (t - e) / kr, (e) => e.getMinutes());
|
|
2952
2952
|
tm.range;
|
|
2953
|
-
const nm =
|
|
2953
|
+
const nm = Bt((e) => {
|
|
2954
2954
|
e.setUTCSeconds(0, 0);
|
|
2955
2955
|
}, (e, t) => {
|
|
2956
2956
|
e.setTime(+e + t * kr);
|
|
2957
2957
|
}, (e, t) => (t - e) / kr, (e) => e.getUTCMinutes());
|
|
2958
2958
|
nm.range;
|
|
2959
|
-
const rm =
|
|
2959
|
+
const rm = Bt((e) => {
|
|
2960
2960
|
e.setTime(e - e.getMilliseconds() - e.getSeconds() * mo - e.getMinutes() * kr);
|
|
2961
2961
|
}, (e, t) => {
|
|
2962
2962
|
e.setTime(+e + t * yo);
|
|
2963
2963
|
}, (e, t) => (t - e) / yo, (e) => e.getHours());
|
|
2964
2964
|
rm.range;
|
|
2965
|
-
const im =
|
|
2965
|
+
const im = Bt((e) => {
|
|
2966
2966
|
e.setUTCMinutes(0, 0, 0);
|
|
2967
2967
|
}, (e, t) => {
|
|
2968
2968
|
e.setTime(+e + t * yo);
|
|
2969
2969
|
}, (e, t) => (t - e) / yo, (e) => e.getUTCHours());
|
|
2970
2970
|
im.range;
|
|
2971
|
-
const Eo =
|
|
2971
|
+
const Eo = Bt(
|
|
2972
2972
|
(e) => e.setHours(0, 0, 0, 0),
|
|
2973
2973
|
(e, t) => e.setDate(e.getDate() + t),
|
|
2974
2974
|
(e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * kr) / To,
|
|
2975
2975
|
(e) => e.getDate() - 1
|
|
2976
2976
|
);
|
|
2977
2977
|
Eo.range;
|
|
2978
|
-
const fs =
|
|
2978
|
+
const fs = Bt((e) => {
|
|
2979
2979
|
e.setUTCHours(0, 0, 0, 0);
|
|
2980
2980
|
}, (e, t) => {
|
|
2981
2981
|
e.setUTCDate(e.getUTCDate() + t);
|
|
2982
2982
|
}, (e, t) => (t - e) / To, (e) => e.getUTCDate() - 1);
|
|
2983
2983
|
fs.range;
|
|
2984
|
-
const E5 =
|
|
2984
|
+
const E5 = Bt((e) => {
|
|
2985
2985
|
e.setUTCHours(0, 0, 0, 0);
|
|
2986
2986
|
}, (e, t) => {
|
|
2987
2987
|
e.setUTCDate(e.getUTCDate() + t);
|
|
2988
2988
|
}, (e, t) => (t - e) / To, (e) => Math.floor(e / To));
|
|
2989
2989
|
E5.range;
|
|
2990
2990
|
function tl(e) {
|
|
2991
|
-
return
|
|
2991
|
+
return Bt((t) => {
|
|
2992
2992
|
t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
|
|
2993
2993
|
}, (t, n) => {
|
|
2994
2994
|
t.setDate(t.getDate() + n * 7);
|
|
@@ -3003,7 +3003,7 @@ tu.range;
|
|
|
3003
3003
|
Uz.range;
|
|
3004
3004
|
jz.range;
|
|
3005
3005
|
function nl(e) {
|
|
3006
|
-
return
|
|
3006
|
+
return Bt((t) => {
|
|
3007
3007
|
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
|
|
3008
3008
|
}, (t, n) => {
|
|
3009
3009
|
t.setUTCDate(t.getUTCDate() + n * 7);
|
|
@@ -3017,35 +3017,35 @@ Wz.range;
|
|
|
3017
3017
|
nu.range;
|
|
3018
3018
|
Hz.range;
|
|
3019
3019
|
Gz.range;
|
|
3020
|
-
const kf =
|
|
3020
|
+
const kf = Bt((e) => {
|
|
3021
3021
|
e.setDate(1), e.setHours(0, 0, 0, 0);
|
|
3022
3022
|
}, (e, t) => {
|
|
3023
3023
|
e.setMonth(e.getMonth() + t);
|
|
3024
3024
|
}, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
|
|
3025
3025
|
kf.range;
|
|
3026
|
-
const Sf =
|
|
3026
|
+
const Sf = Bt((e) => {
|
|
3027
3027
|
e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
|
|
3028
3028
|
}, (e, t) => {
|
|
3029
3029
|
e.setUTCMonth(e.getUTCMonth() + t);
|
|
3030
3030
|
}, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
|
|
3031
3031
|
Sf.range;
|
|
3032
|
-
const zi =
|
|
3032
|
+
const zi = Bt((e) => {
|
|
3033
3033
|
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
|
|
3034
3034
|
}, (e, t) => {
|
|
3035
3035
|
e.setFullYear(e.getFullYear() + t);
|
|
3036
3036
|
}, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
|
|
3037
|
-
zi.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null :
|
|
3037
|
+
zi.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Bt((t) => {
|
|
3038
3038
|
t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
|
|
3039
3039
|
}, (t, n) => {
|
|
3040
3040
|
t.setFullYear(t.getFullYear() + n * e);
|
|
3041
3041
|
});
|
|
3042
3042
|
zi.range;
|
|
3043
|
-
const Bi =
|
|
3043
|
+
const Bi = Bt((e) => {
|
|
3044
3044
|
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
|
|
3045
3045
|
}, (e, t) => {
|
|
3046
3046
|
e.setUTCFullYear(e.getUTCFullYear() + t);
|
|
3047
3047
|
}, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
|
|
3048
|
-
Bi.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null :
|
|
3048
|
+
Bi.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Bt((t) => {
|
|
3049
3049
|
t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
3050
3050
|
}, (t, n) => {
|
|
3051
3051
|
t.setUTCFullYear(t.getUTCFullYear() + n * e);
|
|
@@ -3087,27 +3087,27 @@ function C5(e, t, n, r, i, o) {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
return [a, l];
|
|
3089
3089
|
}
|
|
3090
|
-
const [Vz, Yz] = C5(Bi, Sf, Wu, E5, im, nm), [Xz, Kz] = C5(zi, kf, qu, Eo, rm, tm),
|
|
3090
|
+
const [Vz, Yz] = C5(Bi, Sf, Wu, E5, im, nm), [Xz, Kz] = C5(zi, kf, qu, Eo, rm, tm), sn = "year", Yn = "quarter", bn = "month", It = "week", Xn = "date", pn = "day", Ui = "dayofyear", mr = "hours", yr = "minutes", Dr = "seconds", oi = "milliseconds", Ov = [sn, Yn, bn, It, Xn, pn, Ui, mr, yr, Dr, oi], d1 = Ov.reduce((e, t, n) => (e[t] = 1 + n, e), {});
|
|
3091
3091
|
function Lv(e) {
|
|
3092
3092
|
const t = ee(e).slice(), n = {};
|
|
3093
3093
|
return t.length || I("Missing time unit."), t.forEach((i) => {
|
|
3094
3094
|
ne(d1, i) ? n[i] = 1 : I(`Invalid time unit: ${i}.`);
|
|
3095
|
-
}), (n[
|
|
3095
|
+
}), (n[It] || n[pn] ? 1 : 0) + (n[Yn] || n[bn] || n[Xn] ? 1 : 0) + (n[Ui] ? 1 : 0) > 1 && I(`Incompatible time units: ${e}`), t.sort((i, o) => d1[i] - d1[o]), t;
|
|
3096
3096
|
}
|
|
3097
3097
|
const Zz = {
|
|
3098
|
-
[
|
|
3098
|
+
[sn]: "%Y ",
|
|
3099
3099
|
[Yn]: "Q%q ",
|
|
3100
|
-
[
|
|
3100
|
+
[bn]: "%b ",
|
|
3101
3101
|
[Xn]: "%d ",
|
|
3102
|
-
[
|
|
3103
|
-
[
|
|
3102
|
+
[It]: "W%U ",
|
|
3103
|
+
[pn]: "%a ",
|
|
3104
3104
|
[Ui]: "%j ",
|
|
3105
3105
|
[mr]: "%H:00",
|
|
3106
3106
|
[yr]: "00:%M",
|
|
3107
3107
|
[Dr]: ":%S",
|
|
3108
3108
|
[oi]: ".%L",
|
|
3109
|
-
[`${
|
|
3110
|
-
[`${
|
|
3109
|
+
[`${sn}-${bn}`]: "%Y-%m ",
|
|
3110
|
+
[`${sn}-${bn}-${Xn}`]: "%Y-%m-%d ",
|
|
3111
3111
|
[`${mr}-${yr}`]: "%H:%M"
|
|
3112
3112
|
};
|
|
3113
3113
|
function k5(e, t) {
|
|
@@ -3172,7 +3172,7 @@ function Qz(e, t, n, r, i, o, s) {
|
|
|
3172
3172
|
return new Date(Date.UTC(e, t, n, r, i, o, s));
|
|
3173
3173
|
}
|
|
3174
3174
|
function F5(e, t, n, r, i) {
|
|
3175
|
-
const o = t || 1, s = ze(e), a = (y, _, b) => (b = b || y, eB(n[b], r[b], y === s && o, _)), l = /* @__PURE__ */ new Date(), u = ii(e), c = u[
|
|
3175
|
+
const o = t || 1, s = ze(e), a = (y, _, b) => (b = b || y, eB(n[b], r[b], y === s && o, _)), l = /* @__PURE__ */ new Date(), u = ii(e), c = u[sn] ? a(sn) : En(2012), f = u[bn] ? a(bn) : u[Yn] ? a(Yn) : es, d = u[It] && u[pn] ? a(pn, 1, It + pn) : u[It] ? a(It, 1) : u[pn] ? a(pn, 1) : u[Xn] ? a(Xn, 1) : u[Ui] ? a(Ui, 1) : Iu, h = u[mr] ? a(mr) : es, p = u[yr] ? a(yr) : es, g = u[Dr] ? a(Dr) : es, m = u[oi] ? a(oi) : es;
|
|
3176
3176
|
return function(y) {
|
|
3177
3177
|
l.setTime(+y);
|
|
3178
3178
|
const _ = c(l);
|
|
@@ -3187,64 +3187,64 @@ function ru(e, t, n) {
|
|
|
3187
3187
|
return t + e * 7 - (n + 6) % 7;
|
|
3188
3188
|
}
|
|
3189
3189
|
const tB = {
|
|
3190
|
-
[
|
|
3190
|
+
[sn]: (e) => e.getFullYear(),
|
|
3191
3191
|
[Yn]: (e) => Math.floor(e.getMonth() / 3),
|
|
3192
|
-
[
|
|
3192
|
+
[bn]: (e) => e.getMonth(),
|
|
3193
3193
|
[Xn]: (e) => e.getDate(),
|
|
3194
3194
|
[mr]: (e) => e.getHours(),
|
|
3195
3195
|
[yr]: (e) => e.getMinutes(),
|
|
3196
3196
|
[Dr]: (e) => e.getSeconds(),
|
|
3197
3197
|
[oi]: (e) => e.getMilliseconds(),
|
|
3198
3198
|
[Ui]: (e) => A5(e),
|
|
3199
|
-
[
|
|
3200
|
-
[
|
|
3201
|
-
[
|
|
3199
|
+
[It]: (e) => r_(e),
|
|
3200
|
+
[It + pn]: (e, t) => ru(r_(e), e.getDay(), i_(t)),
|
|
3201
|
+
[pn]: (e, t) => ru(1, e.getDay(), i_(t))
|
|
3202
3202
|
}, nB = {
|
|
3203
3203
|
[Yn]: (e) => 3 * e,
|
|
3204
|
-
[
|
|
3204
|
+
[It]: (e, t) => ru(e, 0, i_(t))
|
|
3205
3205
|
};
|
|
3206
3206
|
function D5(e, t) {
|
|
3207
3207
|
return F5(e, t || 1, tB, nB, Jz);
|
|
3208
3208
|
}
|
|
3209
3209
|
const rB = {
|
|
3210
|
-
[
|
|
3210
|
+
[sn]: (e) => e.getUTCFullYear(),
|
|
3211
3211
|
[Yn]: (e) => Math.floor(e.getUTCMonth() / 3),
|
|
3212
|
-
[
|
|
3212
|
+
[bn]: (e) => e.getUTCMonth(),
|
|
3213
3213
|
[Xn]: (e) => e.getUTCDate(),
|
|
3214
3214
|
[mr]: (e) => e.getUTCHours(),
|
|
3215
3215
|
[yr]: (e) => e.getUTCMinutes(),
|
|
3216
3216
|
[Dr]: (e) => e.getUTCSeconds(),
|
|
3217
3217
|
[oi]: (e) => e.getUTCMilliseconds(),
|
|
3218
3218
|
[Ui]: (e) => N5(e),
|
|
3219
|
-
[
|
|
3220
|
-
[
|
|
3221
|
-
[
|
|
3219
|
+
[It]: (e) => o_(e),
|
|
3220
|
+
[pn]: (e, t) => ru(1, e.getUTCDay(), s_(t)),
|
|
3221
|
+
[It + pn]: (e, t) => ru(o_(e), e.getUTCDay(), s_(t))
|
|
3222
3222
|
}, iB = {
|
|
3223
3223
|
[Yn]: (e) => 3 * e,
|
|
3224
|
-
[
|
|
3224
|
+
[It]: (e, t) => ru(e, 0, s_(t))
|
|
3225
3225
|
};
|
|
3226
3226
|
function R5(e, t) {
|
|
3227
3227
|
return F5(e, t || 1, rB, iB, Qz);
|
|
3228
3228
|
}
|
|
3229
3229
|
const oB = {
|
|
3230
|
-
[
|
|
3230
|
+
[sn]: zi,
|
|
3231
3231
|
[Yn]: kf.every(3),
|
|
3232
|
-
[
|
|
3233
|
-
[
|
|
3232
|
+
[bn]: kf,
|
|
3233
|
+
[It]: qu,
|
|
3234
3234
|
[Xn]: Eo,
|
|
3235
|
-
[
|
|
3235
|
+
[pn]: Eo,
|
|
3236
3236
|
[Ui]: Eo,
|
|
3237
3237
|
[mr]: rm,
|
|
3238
3238
|
[yr]: tm,
|
|
3239
3239
|
[Dr]: _o,
|
|
3240
3240
|
[oi]: eu
|
|
3241
3241
|
}, sB = {
|
|
3242
|
-
[
|
|
3242
|
+
[sn]: Bi,
|
|
3243
3243
|
[Yn]: Sf.every(3),
|
|
3244
|
-
[
|
|
3245
|
-
[
|
|
3244
|
+
[bn]: Sf,
|
|
3245
|
+
[It]: Wu,
|
|
3246
3246
|
[Xn]: fs,
|
|
3247
|
-
[
|
|
3247
|
+
[pn]: fs,
|
|
3248
3248
|
[Ui]: fs,
|
|
3249
3249
|
[mr]: im,
|
|
3250
3250
|
[yr]: nm,
|
|
@@ -3275,7 +3275,7 @@ function z5(e, t, n, r) {
|
|
|
3275
3275
|
function B5(e, t, n, r) {
|
|
3276
3276
|
return P5(Gu(e), t, n, r);
|
|
3277
3277
|
}
|
|
3278
|
-
const jc = 1e3, qc = jc * 60, Wc = qc * 60, om = Wc * 24, aB = om * 7, bk = om * 30, a_ = om * 365, U5 = [
|
|
3278
|
+
const jc = 1e3, qc = jc * 60, Wc = qc * 60, om = Wc * 24, aB = om * 7, bk = om * 30, a_ = om * 365, U5 = [sn, bn, Xn, mr, yr, Dr, oi], Hc = U5.slice(0, -1), Gc = Hc.slice(0, -1), Vc = Gc.slice(0, -1), lB = Vc.slice(0, -1), uB = [sn, It], vk = [sn, bn], j5 = [sn], yc = [[Hc, 1, jc], [Hc, 5, 5 * jc], [Hc, 15, 15 * jc], [Hc, 30, 30 * jc], [Gc, 1, qc], [Gc, 5, 5 * qc], [Gc, 15, 15 * qc], [Gc, 30, 30 * qc], [Vc, 1, Wc], [Vc, 3, 3 * Wc], [Vc, 6, 6 * Wc], [Vc, 12, 12 * Wc], [lB, 1, om], [uB, 1, aB], [vk, 1, bk], [vk, 3, 3 * bk], [j5, 1, a_]];
|
|
3279
3279
|
function q5(e) {
|
|
3280
3280
|
const t = e.extent, n = e.maxbins || 40, r = Math.abs(id(t)) / n;
|
|
3281
3281
|
let i = ju((a) => a[2]).right(yc, r), o, s;
|
|
@@ -3352,8 +3352,8 @@ function W5(e) {
|
|
|
3352
3352
|
L: V5,
|
|
3353
3353
|
m: KB,
|
|
3354
3354
|
M: ZB,
|
|
3355
|
-
p:
|
|
3356
|
-
q:
|
|
3355
|
+
p: Dt,
|
|
3356
|
+
q: Jt,
|
|
3357
3357
|
Q: Mk,
|
|
3358
3358
|
s: Tk,
|
|
3359
3359
|
S: JB,
|
|
@@ -3405,16 +3405,16 @@ function W5(e) {
|
|
|
3405
3405
|
b.x = E(n, b), b.X = E(r, b), b.c = E(t, b), v.x = E(n, v), v.X = E(r, v), v.c = E(t, v);
|
|
3406
3406
|
function E(te, ge) {
|
|
3407
3407
|
return function(ye) {
|
|
3408
|
-
var j = [],
|
|
3409
|
-
for (ye instanceof Date || (ye = /* @__PURE__ */ new Date(+ye)); ++
|
|
3410
|
-
te.charCodeAt(
|
|
3411
|
-
return j.push(te.slice(Ie,
|
|
3408
|
+
var j = [], xt = -1, Ie = 0, ht = te.length, wt, Rt, jt;
|
|
3409
|
+
for (ye instanceof Date || (ye = /* @__PURE__ */ new Date(+ye)); ++xt < ht; )
|
|
3410
|
+
te.charCodeAt(xt) === 37 && (j.push(te.slice(Ie, xt)), (Rt = xk[wt = te.charAt(++xt)]) != null ? wt = te.charAt(++xt) : Rt = wt === "e" ? " " : "0", (jt = ge[wt]) && (wt = jt(ye, Rt)), j.push(wt), Ie = xt + 1);
|
|
3411
|
+
return j.push(te.slice(Ie, xt)), j.join("");
|
|
3412
3412
|
};
|
|
3413
3413
|
}
|
|
3414
3414
|
function w(te, ge) {
|
|
3415
3415
|
return function(ye) {
|
|
3416
|
-
var j = _c(1900, void 0, 1),
|
|
3417
|
-
if (
|
|
3416
|
+
var j = _c(1900, void 0, 1), xt = k(j, te, ye += "", 0), Ie, ht;
|
|
3417
|
+
if (xt != ye.length) return null;
|
|
3418
3418
|
if ("Q" in j) return new Date(j.Q);
|
|
3419
3419
|
if ("s" in j) return new Date(j.s * 1e3 + ("L" in j ? j.L : 0));
|
|
3420
3420
|
if (ge && !("Z" in j) && (j.Z = 0), "p" in j && (j.H = j.H % 12 + j.p * 12), j.m === void 0 && (j.m = "q" in j ? j.q : 0), "V" in j) {
|
|
@@ -3425,11 +3425,11 @@ function W5(e) {
|
|
|
3425
3425
|
};
|
|
3426
3426
|
}
|
|
3427
3427
|
function k(te, ge, ye, j) {
|
|
3428
|
-
for (var
|
|
3428
|
+
for (var xt = 0, Ie = ge.length, ht = ye.length, wt, Rt; xt < Ie; ) {
|
|
3429
3429
|
if (j >= ht) return -1;
|
|
3430
|
-
if (
|
|
3431
|
-
if (
|
|
3432
|
-
} else if (
|
|
3430
|
+
if (wt = ge.charCodeAt(xt++), wt === 37) {
|
|
3431
|
+
if (wt = ge.charAt(xt++), Rt = x[wt in xk ? ge.charAt(xt++) : wt], !Rt || (j = Rt(te, ye, j)) < 0) return -1;
|
|
3432
|
+
} else if (wt != ye.charCodeAt(j++))
|
|
3433
3433
|
return -1;
|
|
3434
3434
|
}
|
|
3435
3435
|
return j;
|
|
@@ -3493,10 +3493,10 @@ function W5(e) {
|
|
|
3493
3493
|
function Le(te) {
|
|
3494
3494
|
return a[te.getUTCMonth()];
|
|
3495
3495
|
}
|
|
3496
|
-
function
|
|
3496
|
+
function Dt(te) {
|
|
3497
3497
|
return i[+(te.getUTCHours() >= 12)];
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function Jt(te) {
|
|
3500
3500
|
return 1 + ~~(te.getUTCMonth() / 3);
|
|
3501
3501
|
}
|
|
3502
3502
|
return {
|
|
@@ -3860,7 +3860,7 @@ function Cp(e) {
|
|
|
3860
3860
|
}
|
|
3861
3861
|
function Nk(e, t, n) {
|
|
3862
3862
|
n = n || {}, J(n) || I(`Invalid time multi-format specifier: ${n}`);
|
|
3863
|
-
const r = t(Dr), i = t(yr), o = t(mr), s = t(Xn), a = t(
|
|
3863
|
+
const r = t(Dr), i = t(yr), o = t(mr), s = t(Xn), a = t(It), l = t(bn), u = t(Yn), c = t(sn), f = e(n[oi] || ".%L"), d = e(n[Dr] || ":%S"), h = e(n[yr] || "%I:%M"), p = e(n[mr] || "%I %p"), g = e(n[Xn] || n[pn] || "%a %d"), m = e(n[It] || "%b %d"), y = e(n[bn] || "%B"), _ = e(n[Yn] || "%B"), b = e(n[sn] || "%Y");
|
|
3864
3864
|
return (v) => (r(v) < v ? f : i(v) < v ? d : o(v) < v ? h : s(v) < v ? p : l(v) < v ? a(v) < v ? g : m : c(v) < v ? u(v) < v ? y : _ : b)(v);
|
|
3865
3865
|
}
|
|
3866
3866
|
function eN(e) {
|
|
@@ -3940,11 +3940,11 @@ async function xU(e, t) {
|
|
|
3940
3940
|
}
|
|
3941
3941
|
const wU = (e) => e != null && e === e, EU = (e) => e === "true" || e === "false" || e === !0 || e === !1, CU = (e) => !Number.isNaN(Date.parse(e)), iN = (e) => !Number.isNaN(+e) && !(e instanceof Date), kU = (e) => iN(e) && Number.isInteger(+e), f_ = {
|
|
3942
3942
|
boolean: Mv,
|
|
3943
|
-
integer:
|
|
3944
|
-
number:
|
|
3943
|
+
integer: gn,
|
|
3944
|
+
number: gn,
|
|
3945
3945
|
date: Tv,
|
|
3946
3946
|
string: Nv,
|
|
3947
|
-
unknown:
|
|
3947
|
+
unknown: wn
|
|
3948
3948
|
}, th = [EU, kU, iN, CU], SU = ["boolean", "integer", "number", "date"];
|
|
3949
3949
|
function oN(e, t) {
|
|
3950
3950
|
if (!e || !e.length) return "unknown";
|
|
@@ -3976,7 +3976,7 @@ function $U(e) {
|
|
|
3976
3976
|
return typeof Buffer == "function" && Ee(Buffer.isBuffer) ? Buffer.isBuffer(e) : !1;
|
|
3977
3977
|
}
|
|
3978
3978
|
function jv(e, t) {
|
|
3979
|
-
const n = t && t.property ? Nr(t.property) :
|
|
3979
|
+
const n = t && t.property ? Nr(t.property) : wn;
|
|
3980
3980
|
return J(e) && !$U(e) ? AU(n(e), t) : n(JSON.parse(e));
|
|
3981
3981
|
}
|
|
3982
3982
|
jv.responseType = "json";
|
|
@@ -4032,7 +4032,7 @@ function TU(e, t, n, r) {
|
|
|
4032
4032
|
}
|
|
4033
4033
|
const sm = mU();
|
|
4034
4034
|
function am(e) {
|
|
4035
|
-
const t = e ||
|
|
4035
|
+
const t = e || wn, n = [], r = {};
|
|
4036
4036
|
return n.add = (i) => {
|
|
4037
4037
|
const o = t(i);
|
|
4038
4038
|
return r[o] || (r[o] = 1, n.push(i)), n;
|
|
@@ -4104,7 +4104,7 @@ function il() {
|
|
|
4104
4104
|
modify(a, l, u) {
|
|
4105
4105
|
const c = {
|
|
4106
4106
|
field: l,
|
|
4107
|
-
value:
|
|
4107
|
+
value: En(u)
|
|
4108
4108
|
};
|
|
4109
4109
|
return Ee(a) ? (c.filter = a, i.push(c)) : (c.tuple = a, n.push(c)), this;
|
|
4110
4110
|
},
|
|
@@ -4384,7 +4384,7 @@ function Vo(e, t, n) {
|
|
|
4384
4384
|
}
|
|
4385
4385
|
fm.prototype = {
|
|
4386
4386
|
_filter: Fr,
|
|
4387
|
-
_apply:
|
|
4387
|
+
_apply: wn,
|
|
4388
4388
|
targets() {
|
|
4389
4389
|
return this._targets || (this._targets = am(rd));
|
|
4390
4390
|
},
|
|
@@ -4503,7 +4503,7 @@ function VU(e, t, n, r, i) {
|
|
|
4503
4503
|
function YU(e, t, n, r, i, o) {
|
|
4504
4504
|
const s = Se({}, o, GU);
|
|
4505
4505
|
let a, l;
|
|
4506
|
-
Ee(n) || (n =
|
|
4506
|
+
Ee(n) || (n = En(n)), r === void 0 ? a = (u) => e.touch(n(u)) : Ee(r) ? (l = new et(null, r, i, !1), a = (u) => {
|
|
4507
4507
|
l.evaluate(u);
|
|
4508
4508
|
const c = n(u), f = l.value;
|
|
4509
4509
|
hN(f) ? e.pulse(c, f, o) : e.update(c, f, s);
|
|
@@ -4518,7 +4518,7 @@ function XU(e, t, n, r, i, o) {
|
|
|
4518
4518
|
}
|
|
4519
4519
|
}
|
|
4520
4520
|
function KU(e, t) {
|
|
4521
|
-
return t = Ee(t) ? t :
|
|
4521
|
+
return t = Ee(t) ? t : En(t), e ? function(n, r) {
|
|
4522
4522
|
const i = t(n, r);
|
|
4523
4523
|
return e.skip() || (e.skip(i !== this.value).value = i), i;
|
|
4524
4524
|
} : t;
|
|
@@ -5887,7 +5887,7 @@ function Dj(e) {
|
|
|
5887
5887
|
return this._out.forEach((t) => e[t.out] = t.value(this)), e;
|
|
5888
5888
|
}
|
|
5889
5889
|
function RN(e, t) {
|
|
5890
|
-
const n = t ||
|
|
5890
|
+
const n = t || wn, r = Mj(e), i = e.slice().sort(DN);
|
|
5891
5891
|
function o(s) {
|
|
5892
5892
|
this._ops = r, this._out = i, this.cell = s, this.init();
|
|
5893
5893
|
}
|
|
@@ -5896,17 +5896,17 @@ function RN(e, t) {
|
|
|
5896
5896
|
function cx(e) {
|
|
5897
5897
|
this._key = e ? Nr(e) : ue, this.reset();
|
|
5898
5898
|
}
|
|
5899
|
-
const
|
|
5900
|
-
|
|
5899
|
+
const ln = cx.prototype;
|
|
5900
|
+
ln.reset = function() {
|
|
5901
5901
|
this._add = [], this._rem = [], this._ext = null, this._get = null, this._q = null;
|
|
5902
5902
|
};
|
|
5903
|
-
|
|
5903
|
+
ln.add = function(e) {
|
|
5904
5904
|
this._add.push(e);
|
|
5905
5905
|
};
|
|
5906
|
-
|
|
5906
|
+
ln.rem = function(e) {
|
|
5907
5907
|
this._rem.push(e);
|
|
5908
5908
|
};
|
|
5909
|
-
|
|
5909
|
+
ln.values = function() {
|
|
5910
5910
|
if (this._get = null, this._rem.length === 0) return this._add;
|
|
5911
5911
|
const e = this._add, t = this._rem, n = this._key, r = e.length, i = t.length, o = Array(r - i), s = {};
|
|
5912
5912
|
let a, l, u;
|
|
@@ -5916,53 +5916,53 @@ an.values = function() {
|
|
|
5916
5916
|
s[n(u = e[a])] ? s[n(u)] = 0 : o[l++] = u;
|
|
5917
5917
|
return this._rem = [], this._add = o;
|
|
5918
5918
|
};
|
|
5919
|
-
|
|
5919
|
+
ln.distinct = function(e) {
|
|
5920
5920
|
const t = this.values(), n = {};
|
|
5921
5921
|
let r = t.length, i = 0, o;
|
|
5922
5922
|
for (; --r >= 0; )
|
|
5923
5923
|
o = e(t[r]) + "", ne(n, o) || (n[o] = 1, ++i);
|
|
5924
5924
|
return i;
|
|
5925
5925
|
};
|
|
5926
|
-
|
|
5926
|
+
ln.extent = function(e) {
|
|
5927
5927
|
if (this._get !== e || !this._ext) {
|
|
5928
5928
|
const t = this.values(), n = JT(t, e);
|
|
5929
5929
|
this._ext = [t[n[0]], t[n[1]]], this._get = e;
|
|
5930
5930
|
}
|
|
5931
5931
|
return this._ext;
|
|
5932
5932
|
};
|
|
5933
|
-
|
|
5933
|
+
ln.argmin = function(e) {
|
|
5934
5934
|
return this.extent(e)[0] || {};
|
|
5935
5935
|
};
|
|
5936
|
-
|
|
5936
|
+
ln.argmax = function(e) {
|
|
5937
5937
|
return this.extent(e)[1] || {};
|
|
5938
5938
|
};
|
|
5939
|
-
|
|
5939
|
+
ln.min = function(e) {
|
|
5940
5940
|
const t = this.extent(e)[0];
|
|
5941
5941
|
return t != null ? e(t) : void 0;
|
|
5942
5942
|
};
|
|
5943
|
-
|
|
5943
|
+
ln.max = function(e) {
|
|
5944
5944
|
const t = this.extent(e)[1];
|
|
5945
5945
|
return t != null ? e(t) : void 0;
|
|
5946
5946
|
};
|
|
5947
|
-
|
|
5947
|
+
ln.quartile = function(e) {
|
|
5948
5948
|
return (this._get !== e || !this._q) && (this._q = Yv(this.values(), e), this._get = e), this._q;
|
|
5949
5949
|
};
|
|
5950
|
-
|
|
5950
|
+
ln.q1 = function(e) {
|
|
5951
5951
|
return this.quartile(e)[0];
|
|
5952
5952
|
};
|
|
5953
|
-
|
|
5953
|
+
ln.q2 = function(e) {
|
|
5954
5954
|
return this.quartile(e)[1];
|
|
5955
5955
|
};
|
|
5956
|
-
|
|
5956
|
+
ln.q3 = function(e) {
|
|
5957
5957
|
return this.quartile(e)[2];
|
|
5958
5958
|
};
|
|
5959
|
-
|
|
5959
|
+
ln.ci = function(e) {
|
|
5960
5960
|
return (this._get !== e || !this._ci) && (this._ci = vN(this.values(), 1e3, 0.05, e), this._get = e), this._ci;
|
|
5961
5961
|
};
|
|
5962
|
-
|
|
5962
|
+
ln.ci0 = function(e) {
|
|
5963
5963
|
return this.ci(e)[0];
|
|
5964
5964
|
};
|
|
5965
|
-
|
|
5965
|
+
ln.ci1 = function(e) {
|
|
5966
5966
|
return this.ci(e)[1];
|
|
5967
5967
|
};
|
|
5968
5968
|
function _s(e) {
|
|
@@ -6037,7 +6037,7 @@ X(_s, L, {
|
|
|
6037
6037
|
init(e) {
|
|
6038
6038
|
const t = this._inputs = [], n = this._outputs = [], r = {};
|
|
6039
6039
|
function i(_) {
|
|
6040
|
-
const b = ee(
|
|
6040
|
+
const b = ee(_n(_)), v = b.length;
|
|
6041
6041
|
let x = 0, E;
|
|
6042
6042
|
for (; x < v; ++x)
|
|
6043
6043
|
r[E = b[x]] || (r[E] = 1, t.push(E));
|
|
@@ -6204,7 +6204,7 @@ X(fx, L, {
|
|
|
6204
6204
|
transform(e, t) {
|
|
6205
6205
|
const n = e.interval !== !1, r = this._bins(e), i = r.start, o = r.step, s = e.as || ["bin0", "bin1"], a = s[0], l = s[1];
|
|
6206
6206
|
let u;
|
|
6207
|
-
return e.modified() ? (t = t.reflow(!0), u = t.SOURCE) : u = t.modified(
|
|
6207
|
+
return e.modified() ? (t = t.reflow(!0), u = t.SOURCE) : u = t.modified(_n(e.field)) ? t.ADD_MOD : t.ADD, t.visit(u, n ? (c) => {
|
|
6208
6208
|
const f = r(c);
|
|
6209
6209
|
c[a] = f, c[l] = f == null ? null : i + o * (1 + (f - i) / o);
|
|
6210
6210
|
} : (c) => c[a] = r(c)), t.modifies(n ? s : a);
|
|
@@ -6216,10 +6216,10 @@ X(fx, L, {
|
|
|
6216
6216
|
let i = n.start, o = i + Math.ceil((n.stop - i) / r) * r, s, a;
|
|
6217
6217
|
(s = e.anchor) != null && (a = s - (i + r * Math.floor((s - i) / r)), i += a, o += a);
|
|
6218
6218
|
const l = function(u) {
|
|
6219
|
-
let c =
|
|
6219
|
+
let c = gn(t(u));
|
|
6220
6220
|
return c == null ? null : c < i ? -1 / 0 : c > o ? 1 / 0 : (c = Math.max(i, Math.min(c, o - r)), i + r * Math.floor(Rj + (c - i) / r));
|
|
6221
6221
|
};
|
|
6222
|
-
return l.start = i, l.stop = n.stop, l.step = r, this.value = er(l,
|
|
6222
|
+
return l.start = i, l.stop = n.stop, l.step = r, this.value = er(l, _n(t), e.name || "bin_" + _t(t));
|
|
6223
6223
|
}
|
|
6224
6224
|
});
|
|
6225
6225
|
function ON(e, t, n) {
|
|
@@ -6547,7 +6547,7 @@ X(yx, L, {
|
|
|
6547
6547
|
transform(e, t) {
|
|
6548
6548
|
if (this.value && !(e.modified() || t.changed()))
|
|
6549
6549
|
return t;
|
|
6550
|
-
const n = t.materialize(t.SOURCE).source, r = mx(t.source, e.groupby,
|
|
6550
|
+
const n = t.materialize(t.SOURCE).source, r = mx(t.source, e.groupby, wn), i = e.smooth || !1, o = e.field, s = e.step || jj(n, o), a = rl((p, g) => o(p) - o(g)), l = e.as || BN, u = r.length;
|
|
6551
6551
|
let c = 1 / 0, f = -1 / 0, d = 0, h;
|
|
6552
6552
|
for (; d < u; ++d) {
|
|
6553
6553
|
const p = r[d].sort(a);
|
|
@@ -6568,7 +6568,7 @@ function UN(e) {
|
|
|
6568
6568
|
X(UN, et);
|
|
6569
6569
|
function qj(e) {
|
|
6570
6570
|
const t = e.expr;
|
|
6571
|
-
return this.value && !e.modified("expr") ? this.value : er((n) => t(n, e),
|
|
6571
|
+
return this.value && !e.modified("expr") ? this.value : er((n) => t(n, e), _n(t), _t(t));
|
|
6572
6572
|
}
|
|
6573
6573
|
function _x(e) {
|
|
6574
6574
|
L.call(this, [void 0, void 0], e);
|
|
@@ -6587,7 +6587,7 @@ X(_x, L, {
|
|
|
6587
6587
|
const n = this.value, r = e.field, i = t.changed() || t.modified(r.fields) || e.modified("field");
|
|
6588
6588
|
let o = n[0], s = n[1];
|
|
6589
6589
|
if ((i || o == null) && (o = 1 / 0, s = -1 / 0), t.visit(i ? t.SOURCE : t.ADD, (a) => {
|
|
6590
|
-
const l =
|
|
6590
|
+
const l = gn(r(a));
|
|
6591
6591
|
l != null && (l < o && (o = l), l > s && (s = l));
|
|
6592
6592
|
}), !Number.isFinite(o) || !Number.isFinite(s)) {
|
|
6593
6593
|
let a = _t(r);
|
|
@@ -7196,7 +7196,7 @@ X(Ax, _s, {
|
|
|
7196
7196
|
}
|
|
7197
7197
|
});
|
|
7198
7198
|
function Qj(e, t) {
|
|
7199
|
-
const n = e.field, r = e.value, i = (e.op === "count" ? "__count__" : e.op) || "sum", o =
|
|
7199
|
+
const n = e.field, r = e.value, i = (e.op === "count" ? "__count__" : e.op) || "sum", o = _n(n).concat(_n(r)), s = tq(n, e.limit || 0, t);
|
|
7200
7200
|
return t.changed() && e.set("__pivot__", null, null, !0), {
|
|
7201
7201
|
key: e.key,
|
|
7202
7202
|
groupby: e.groupby,
|
|
@@ -7222,7 +7222,7 @@ function XN(e) {
|
|
|
7222
7222
|
X(XN, ym, {
|
|
7223
7223
|
transform(e, t) {
|
|
7224
7224
|
const n = e.subflow, r = e.field, i = (o) => this.subflow(ue(o), n, t, o);
|
|
7225
|
-
return (e.modified("field") || r && t.modified(
|
|
7225
|
+
return (e.modified("field") || r && t.modified(_n(r))) && I("PreFacet does not support field modification."), this.initTargets(), r ? (t.visit(t.MOD, (o) => {
|
|
7226
7226
|
const s = i(o);
|
|
7227
7227
|
r(o).forEach((a) => s.mod(a));
|
|
7228
7228
|
}), t.visit(t.ADD, (o) => {
|
|
@@ -7484,7 +7484,7 @@ X(Dx, L, {
|
|
|
7484
7484
|
transform(e, t) {
|
|
7485
7485
|
const n = e.field, r = e.interval !== !1, i = e.timezone === "utc", o = this._floor(e, t), s = (i ? Gu : Hu)(o.unit).offset, a = e.as || QN, l = a[0], u = a[1], c = o.step;
|
|
7486
7486
|
let f = o.start || 1 / 0, d = o.stop || -1 / 0, h = t.ADD;
|
|
7487
|
-
return (e.modified() || t.changed(t.REM) || t.modified(
|
|
7487
|
+
return (e.modified() || t.changed(t.REM) || t.modified(_n(n))) && (t = t.reflow(!0), h = t.SOURCE, f = 1 / 0, d = -1 / 0), t.visit(h, (p) => {
|
|
7488
7488
|
const g = n(p);
|
|
7489
7489
|
let m, y;
|
|
7490
7490
|
g == null ? (p[l] = null, r && (p[u] = null)) : (p[l] = m = y = o(g), r && (p[u] = y = s(m, c)), m < f && (f = m), y > d && (d = y));
|
|
@@ -7652,7 +7652,7 @@ function n6(e) {
|
|
|
7652
7652
|
const t = ee(e.ops), n = ee(e.fields), r = ee(e.params), i = ee(e.aggregate_params), o = ee(e.as), s = this.outputs = [], a = this.windows = [], l = {}, u = {}, c = [], f = [];
|
|
7653
7653
|
let d = !0;
|
|
7654
7654
|
function h(p) {
|
|
7655
|
-
ee(
|
|
7655
|
+
ee(_n(p)).forEach((g) => l[g] = 1);
|
|
7656
7656
|
}
|
|
7657
7657
|
h(e.sort), t.forEach((p, g) => {
|
|
7658
7658
|
const m = n[g], y = r[g], _ = i[g] || null, b = _t(m), v = NN(p, b, o[g]);
|
|
@@ -7792,7 +7792,7 @@ function lq(e, t, n, r) {
|
|
|
7792
7792
|
p1: 0,
|
|
7793
7793
|
index: 0,
|
|
7794
7794
|
data: a,
|
|
7795
|
-
compare: i ||
|
|
7795
|
+
compare: i || En(-1)
|
|
7796
7796
|
};
|
|
7797
7797
|
t.init();
|
|
7798
7798
|
for (let f = 0; f < l; ++f)
|
|
@@ -7853,7 +7853,7 @@ function Ve(e) {
|
|
|
7853
7853
|
return e;
|
|
7854
7854
|
};
|
|
7855
7855
|
}
|
|
7856
|
-
const Wk = Math.abs,
|
|
7856
|
+
const Wk = Math.abs, un = Math.atan2, Ys = Math.cos, dq = Math.max, _1 = Math.min, bi = Math.sin, pa = Math.sqrt, fn = 1e-12, ou = Math.PI, Sp = ou / 2, i6 = 2 * ou;
|
|
7857
7857
|
function hq(e) {
|
|
7858
7858
|
return e > 1 ? 0 : e < -1 ? ou : Math.acos(e);
|
|
7859
7859
|
}
|
|
@@ -7956,7 +7956,7 @@ function vq(e) {
|
|
|
7956
7956
|
}
|
|
7957
7957
|
function xq(e, t, n, r, i, o, s, a) {
|
|
7958
7958
|
var l = n - e, u = r - t, c = s - i, f = a - o, d = f * l - c * u;
|
|
7959
|
-
if (!(d * d <
|
|
7959
|
+
if (!(d * d < fn))
|
|
7960
7960
|
return d = (c * (t - o) - f * (e - i)) / d, [e + d * l, t + d * u];
|
|
7961
7961
|
}
|
|
7962
7962
|
function ih(e, t, n, r, i, o, s) {
|
|
@@ -7974,26 +7974,26 @@ function wq() {
|
|
|
7974
7974
|
var e = mq, t = yq, n = Ve(0), r = null, i = _q, o = bq, s = vq, a = null, l = bm(u);
|
|
7975
7975
|
function u() {
|
|
7976
7976
|
var c, f, d = +e.apply(this, arguments), h = +t.apply(this, arguments), p = i.apply(this, arguments) - Sp, g = o.apply(this, arguments) - Sp, m = Wk(g - p), y = g > p;
|
|
7977
|
-
if (a || (a = c = l()), h < d && (f = h, h = d, d = f), !(h >
|
|
7978
|
-
else if (m > i6 -
|
|
7979
|
-
a.moveTo(h * Ys(p), h * bi(p)), a.arc(0, 0, h, p, g, !y), d >
|
|
7977
|
+
if (a || (a = c = l()), h < d && (f = h, h = d, d = f), !(h > fn)) a.moveTo(0, 0);
|
|
7978
|
+
else if (m > i6 - fn)
|
|
7979
|
+
a.moveTo(h * Ys(p), h * bi(p)), a.arc(0, 0, h, p, g, !y), d > fn && (a.moveTo(d * Ys(g), d * bi(g)), a.arc(0, 0, d, g, p, y));
|
|
7980
7980
|
else {
|
|
7981
|
-
var _ = p, b = g, v = p, x = g, E = m, w = m, k = s.apply(this, arguments) / 2, S = k >
|
|
7982
|
-
if (S >
|
|
7981
|
+
var _ = p, b = g, v = p, x = g, E = m, w = m, k = s.apply(this, arguments) / 2, S = k > fn && (r ? +r.apply(this, arguments) : pa(d * d + h * h)), A = _1(Wk(h - d) / 2, +n.apply(this, arguments)), T = A, F = A, D, N;
|
|
7982
|
+
if (S > fn) {
|
|
7983
7983
|
var $ = Hk(S / d * bi(k)), M = Hk(S / h * bi(k));
|
|
7984
|
-
(E -= $ * 2) >
|
|
7984
|
+
(E -= $ * 2) > fn ? ($ *= y ? 1 : -1, v += $, x -= $) : (E = 0, v = x = (p + g) / 2), (w -= M * 2) > fn ? (M *= y ? 1 : -1, _ += M, b -= M) : (w = 0, _ = b = (p + g) / 2);
|
|
7985
7985
|
}
|
|
7986
7986
|
var R = h * Ys(_), z = h * bi(_), O = d * Ys(x), V = d * bi(x);
|
|
7987
|
-
if (A >
|
|
7987
|
+
if (A > fn) {
|
|
7988
7988
|
var ae = h * Ys(b), re = h * bi(b), fe = d * Ys(v), Be = d * bi(v), pe;
|
|
7989
7989
|
if (m < ou)
|
|
7990
7990
|
if (pe = xq(R, z, fe, Be, ae, re, O, V)) {
|
|
7991
|
-
var Le = R - pe[0],
|
|
7991
|
+
var Le = R - pe[0], Dt = z - pe[1], Jt = ae - pe[0], te = re - pe[1], ge = 1 / bi(hq((Le * Jt + Dt * te) / (pa(Le * Le + Dt * Dt) * pa(Jt * Jt + te * te))) / 2), ye = pa(pe[0] * pe[0] + pe[1] * pe[1]);
|
|
7992
7992
|
T = _1(A, (d - ye) / (ge - 1)), F = _1(A, (h - ye) / (ge + 1));
|
|
7993
7993
|
} else
|
|
7994
7994
|
T = F = 0;
|
|
7995
7995
|
}
|
|
7996
|
-
w >
|
|
7996
|
+
w > fn ? F > fn ? (D = ih(fe, Be, R, z, h, F, y), N = ih(ae, re, O, V, h, F, y), a.moveTo(D.cx + D.x01, D.cy + D.y01), F < A ? a.arc(D.cx, D.cy, F, un(D.y01, D.x01), un(N.y01, N.x01), !y) : (a.arc(D.cx, D.cy, F, un(D.y01, D.x01), un(D.y11, D.x11), !y), a.arc(0, 0, h, un(D.cy + D.y11, D.cx + D.x11), un(N.cy + N.y11, N.cx + N.x11), !y), a.arc(N.cx, N.cy, F, un(N.y11, N.x11), un(N.y01, N.x01), !y))) : (a.moveTo(R, z), a.arc(0, 0, h, _, b, !y)) : a.moveTo(R, z), !(d > fn) || !(E > fn) ? a.lineTo(O, V) : T > fn ? (D = ih(O, V, ae, re, d, -T, y), N = ih(R, z, fe, Be, d, -T, y), a.lineTo(D.cx + D.x01, D.cy + D.y01), T < A ? a.arc(D.cx, D.cy, T, un(D.y01, D.x01), un(N.y01, N.x01), !y) : (a.arc(D.cx, D.cy, T, un(D.y01, D.x01), un(D.y11, D.x11), !y), a.arc(0, 0, d, un(D.cy + D.y11, D.cx + D.x11), un(N.cy + N.y11, N.cx + N.x11), y), a.arc(N.cx, N.cy, T, un(N.y11, N.x11), un(N.y01, N.x01), !y))) : a.arc(0, 0, d, x, v, y);
|
|
7997
7997
|
}
|
|
7998
7998
|
if (a.closePath(), c) return a = null, c + "" || null;
|
|
7999
7999
|
}
|
|
@@ -8481,11 +8481,11 @@ const Nq = (function e(t) {
|
|
|
8481
8481
|
})(0);
|
|
8482
8482
|
function Bx(e, t, n) {
|
|
8483
8483
|
var r = e._x1, i = e._y1, o = e._x2, s = e._y2;
|
|
8484
|
-
if (e._l01_a >
|
|
8484
|
+
if (e._l01_a > fn) {
|
|
8485
8485
|
var a = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, l = 3 * e._l01_a * (e._l01_a + e._l12_a);
|
|
8486
8486
|
r = (r * a - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / l, i = (i * a - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / l;
|
|
8487
8487
|
}
|
|
8488
|
-
if (e._l23_a >
|
|
8488
|
+
if (e._l23_a > fn) {
|
|
8489
8489
|
var u = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, c = 3 * e._l23_a * (e._l23_a + e._l12_a);
|
|
8490
8490
|
o = (o * u + e._x1 * e._l23_2a - t * e._l12_2a) / c, s = (s * u + e._y1 * e._l23_2a - n * e._l12_2a) / c;
|
|
8491
8491
|
}
|
|
@@ -10123,7 +10123,7 @@ function t2(e, t, n) {
|
|
|
10123
10123
|
const r = e - t + n * 2;
|
|
10124
10124
|
return e ? r > 0 ? r : 1 : 0;
|
|
10125
10125
|
}
|
|
10126
|
-
const nH = "identity", au = "linear", No = "log", fd = "pow", dd = "sqrt", Am = "symlog", Na = "time", Fa = "utc", Ri = "sequential", Xu = "diverging", lu = "quantile", Mm = "quantize", Tm = "threshold", n2 = "ordinal", w_ = "point", uF = "band", r2 = "bin-ordinal",
|
|
10126
|
+
const nH = "identity", au = "linear", No = "log", fd = "pow", dd = "sqrt", Am = "symlog", Na = "time", Fa = "utc", Ri = "sequential", Xu = "diverging", lu = "quantile", Mm = "quantize", Tm = "threshold", n2 = "ordinal", w_ = "point", uF = "band", r2 = "bin-ordinal", Ut = "continuous", hd = "discrete", pd = "discretizing", Pr = "interpolating", i2 = "temporal";
|
|
10127
10127
|
function rH(e) {
|
|
10128
10128
|
return function(t) {
|
|
10129
10129
|
let n = t[0], r = t[1], i;
|
|
@@ -10195,7 +10195,7 @@ function oH() {
|
|
|
10195
10195
|
}
|
|
10196
10196
|
var sH = Array.prototype.map;
|
|
10197
10197
|
function aH(e) {
|
|
10198
|
-
return sH.call(e,
|
|
10198
|
+
return sH.call(e, gn);
|
|
10199
10199
|
}
|
|
10200
10200
|
const lH = Array.prototype.slice;
|
|
10201
10201
|
function fF() {
|
|
@@ -10231,24 +10231,24 @@ function He(e, t, n) {
|
|
|
10231
10231
|
return arguments.length > 1 ? (Op.set(e, uH(e, t, n)), this) : pF(e) ? Op.get(e) : void 0;
|
|
10232
10232
|
}
|
|
10233
10233
|
He(nH, Z6);
|
|
10234
|
-
He(au, K6,
|
|
10235
|
-
He(No, Q6, [
|
|
10236
|
-
He(fd, Kx,
|
|
10237
|
-
He(dd, zW,
|
|
10238
|
-
He(Am, eF,
|
|
10239
|
-
He(Na, jW, [
|
|
10240
|
-
He(Fa, qW, [
|
|
10241
|
-
He(Ri, Jx, [
|
|
10242
|
-
He(`${Ri}-${au}`, Jx, [
|
|
10243
|
-
He(`${Ri}-${No}`, iF, [
|
|
10244
|
-
He(`${Ri}-${fd}`, Qx, [
|
|
10245
|
-
He(`${Ri}-${dd}`, WW, [
|
|
10246
|
-
He(`${Ri}-${Am}`, oF, [
|
|
10247
|
-
He(`${Xu}-${au}`, sF, [
|
|
10248
|
-
He(`${Xu}-${No}`, aF, [
|
|
10249
|
-
He(`${Xu}-${fd}`, e2, [
|
|
10250
|
-
He(`${Xu}-${dd}`, HW, [
|
|
10251
|
-
He(`${Xu}-${Am}`, lF, [
|
|
10234
|
+
He(au, K6, Ut);
|
|
10235
|
+
He(No, Q6, [Ut, No]);
|
|
10236
|
+
He(fd, Kx, Ut);
|
|
10237
|
+
He(dd, zW, Ut);
|
|
10238
|
+
He(Am, eF, Ut);
|
|
10239
|
+
He(Na, jW, [Ut, i2]);
|
|
10240
|
+
He(Fa, qW, [Ut, i2]);
|
|
10241
|
+
He(Ri, Jx, [Ut, Pr]);
|
|
10242
|
+
He(`${Ri}-${au}`, Jx, [Ut, Pr]);
|
|
10243
|
+
He(`${Ri}-${No}`, iF, [Ut, Pr, No]);
|
|
10244
|
+
He(`${Ri}-${fd}`, Qx, [Ut, Pr]);
|
|
10245
|
+
He(`${Ri}-${dd}`, WW, [Ut, Pr]);
|
|
10246
|
+
He(`${Ri}-${Am}`, oF, [Ut, Pr]);
|
|
10247
|
+
He(`${Xu}-${au}`, sF, [Ut, Pr]);
|
|
10248
|
+
He(`${Xu}-${No}`, aF, [Ut, Pr, No]);
|
|
10249
|
+
He(`${Xu}-${fd}`, e2, [Ut, Pr]);
|
|
10250
|
+
He(`${Xu}-${dd}`, HW, [Ut, Pr]);
|
|
10251
|
+
He(`${Xu}-${Am}`, lF, [Ut, Pr]);
|
|
10252
10252
|
He(lu, tF, [pd, lu]);
|
|
10253
10253
|
He(Mm, nF, pd);
|
|
10254
10254
|
He(Tm, rF, pd);
|
|
@@ -10264,7 +10264,7 @@ function sl(e, t) {
|
|
|
10264
10264
|
return n && n.metadata[t];
|
|
10265
10265
|
}
|
|
10266
10266
|
function s2(e) {
|
|
10267
|
-
return sl(e,
|
|
10267
|
+
return sl(e, Ut);
|
|
10268
10268
|
}
|
|
10269
10269
|
function uu(e) {
|
|
10270
10270
|
return sl(e, hd);
|
|
@@ -10302,7 +10302,7 @@ function bF(e, t) {
|
|
|
10302
10302
|
function vF(e, t, n) {
|
|
10303
10303
|
const r = n - t;
|
|
10304
10304
|
let i, o, s;
|
|
10305
|
-
return !r || !Number.isFinite(r) ?
|
|
10305
|
+
return !r || !Number.isFinite(r) ? En(0.5) : (i = (o = e.type).indexOf("-"), o = i < 0 ? o : o.slice(i + 1), s = He(o)().domain([t, n]).range([0, 1]), fH.forEach((a) => e[a] ? s[a](e[a]()) : 0), s);
|
|
10306
10306
|
}
|
|
10307
10307
|
function a2(e, t) {
|
|
10308
10308
|
const n = $W[dH(e)];
|
|
@@ -11966,7 +11966,7 @@ function T2(e, t) {
|
|
|
11966
11966
|
for (var n = e.childNodes, r = 0, i = n.length; r < i; ++r) if (n[r].tagName.toLowerCase() === t)
|
|
11967
11967
|
return n[r];
|
|
11968
11968
|
}
|
|
11969
|
-
function
|
|
11969
|
+
function Lt(e, t, n, r) {
|
|
11970
11970
|
var i = e.childNodes[t], o;
|
|
11971
11971
|
return (!i || i.tagName.toLowerCase() !== n.toLowerCase()) && (o = i || null, i = ns(e.ownerDocument, n, r), e.insertBefore(i, o)), i;
|
|
11972
11972
|
}
|
|
@@ -12620,7 +12620,7 @@ const Vp = {
|
|
|
12620
12620
|
}, b4 = {
|
|
12621
12621
|
fill: "none",
|
|
12622
12622
|
"stroke-miterlimit": 10
|
|
12623
|
-
}, kc = 0, US = "http://www.w3.org/2000/xmlns/",
|
|
12623
|
+
}, kc = 0, US = "http://www.w3.org/2000/xmlns/", Ot = Of.xmlns;
|
|
12624
12624
|
class I2 extends wd {
|
|
12625
12625
|
constructor(t) {
|
|
12626
12626
|
super(t), this._dirtyID = 0, this._dirty = [], this._svg = null, this._root = null, this._defs = null;
|
|
@@ -12637,7 +12637,7 @@ class I2 extends wd {
|
|
|
12637
12637
|
* @return {SVGRenderer} - This renderer instance.
|
|
12638
12638
|
*/
|
|
12639
12639
|
initialize(t, n, r, i, o) {
|
|
12640
|
-
return this._defs = {}, this._clearDefs(), t && (this._svg =
|
|
12640
|
+
return this._defs = {}, this._clearDefs(), t && (this._svg = Lt(t, 0, "svg", Ot), this._svg.setAttributeNS(US, "xmlns", Ot), this._svg.setAttributeNS(US, "xmlns:xlink", Of["xmlns:xlink"]), this._svg.setAttribute("version", Of.version), this._svg.setAttribute("class", "marks"), Er(t, 1), this._root = Lt(this._svg, kc, "g", Ot), rs(this._root, b4), Er(this._svg, kc + 1)), this.background(this._bgcolor), super.initialize(t, n, r, i, o);
|
|
12641
12641
|
}
|
|
12642
12642
|
/**
|
|
12643
12643
|
* Get / set the background color.
|
|
@@ -12677,7 +12677,7 @@ class I2 extends wd {
|
|
|
12677
12677
|
const t = this._svg, n = this._bgcolor;
|
|
12678
12678
|
if (!t) return null;
|
|
12679
12679
|
let r;
|
|
12680
|
-
n && (t.removeAttribute("style"), r =
|
|
12680
|
+
n && (t.removeAttribute("style"), r = Lt(t, kc, "rect", Ot), rs(r, {
|
|
12681
12681
|
width: this._width,
|
|
12682
12682
|
height: this._height,
|
|
12683
12683
|
fill: n
|
|
@@ -12764,7 +12764,7 @@ class I2 extends wd {
|
|
|
12764
12764
|
* @param {Item} item - The mark item.
|
|
12765
12765
|
*/
|
|
12766
12766
|
_update(t, n, r) {
|
|
12767
|
-
vo = n,
|
|
12767
|
+
vo = n, hn = n.__values__, h4(hf, r), t.attr(hf, r, this);
|
|
12768
12768
|
const i = QV[t.type];
|
|
12769
12769
|
i && i.call(this, t, n, r), vo && this.style(vo, r);
|
|
12770
12770
|
}
|
|
@@ -12777,9 +12777,9 @@ class I2 extends wd {
|
|
|
12777
12777
|
if (n != null) {
|
|
12778
12778
|
for (const r in Vp) {
|
|
12779
12779
|
let i = r === "font" ? xd(n) : n[r];
|
|
12780
|
-
if (i ===
|
|
12780
|
+
if (i === hn[r]) continue;
|
|
12781
12781
|
const o = Vp[r];
|
|
12782
|
-
i == null ? t.removeAttribute(o) : (f2(i) && (i = NF(i, this._defs.gradient, v4())), t.setAttribute(o, i + "")),
|
|
12782
|
+
i == null ? t.removeAttribute(o) : (f2(i) && (i = NF(i, this._defs.gradient, v4())), t.setAttribute(o, i + "")), hn[r] = i;
|
|
12783
12783
|
}
|
|
12784
12784
|
for (const r in Yp)
|
|
12785
12785
|
ep(t, Yp[r], n[r]);
|
|
@@ -12794,9 +12794,9 @@ class I2 extends wd {
|
|
|
12794
12794
|
const t = this._svg, n = this._defs;
|
|
12795
12795
|
let r = n.el, i = 0;
|
|
12796
12796
|
for (const o in n.gradient)
|
|
12797
|
-
r || (n.el = r =
|
|
12797
|
+
r || (n.el = r = Lt(t, kc + 1, "defs", Ot)), i = XV(r, n.gradient[o], i);
|
|
12798
12798
|
for (const o in n.clipping)
|
|
12799
|
-
r || (n.el = r =
|
|
12799
|
+
r || (n.el = r = Lt(t, kc + 1, "defs", Ot)), i = KV(r, n.clipping[o], i);
|
|
12800
12800
|
r && (i === 0 ? (t.removeChild(r), n.el = null) : Er(r, i));
|
|
12801
12801
|
}
|
|
12802
12802
|
/**
|
|
@@ -12816,18 +12816,18 @@ function jS(e, t) {
|
|
|
12816
12816
|
function XV(e, t, n) {
|
|
12817
12817
|
let r, i, o;
|
|
12818
12818
|
if (t.gradient === "radial") {
|
|
12819
|
-
let s =
|
|
12819
|
+
let s = Lt(e, n++, "pattern", Ot);
|
|
12820
12820
|
rs(s, {
|
|
12821
12821
|
id: Lp + t.id,
|
|
12822
12822
|
viewBox: "0,0,1,1",
|
|
12823
12823
|
width: "100%",
|
|
12824
12824
|
height: "100%",
|
|
12825
12825
|
preserveAspectRatio: "xMidYMid slice"
|
|
12826
|
-
}), s =
|
|
12826
|
+
}), s = Lt(s, 0, "rect", Ot), rs(s, {
|
|
12827
12827
|
width: 1,
|
|
12828
12828
|
height: 1,
|
|
12829
12829
|
fill: `url(${v4()}#${t.id})`
|
|
12830
|
-
}), e =
|
|
12830
|
+
}), e = Lt(e, n++, "radialGradient", Ot), rs(e, {
|
|
12831
12831
|
id: t.id,
|
|
12832
12832
|
fx: t.x1,
|
|
12833
12833
|
fy: t.y1,
|
|
@@ -12837,7 +12837,7 @@ function XV(e, t, n) {
|
|
|
12837
12837
|
r: t.r2
|
|
12838
12838
|
});
|
|
12839
12839
|
} else
|
|
12840
|
-
e =
|
|
12840
|
+
e = Lt(e, n++, "linearGradient", Ot), rs(e, {
|
|
12841
12841
|
id: t.id,
|
|
12842
12842
|
x1: t.x1,
|
|
12843
12843
|
x2: t.x2,
|
|
@@ -12845,12 +12845,12 @@ function XV(e, t, n) {
|
|
|
12845
12845
|
y2: t.y2
|
|
12846
12846
|
});
|
|
12847
12847
|
for (r = 0, i = t.stops.length; r < i; ++r)
|
|
12848
|
-
o =
|
|
12848
|
+
o = Lt(e, r, "stop", Ot), o.setAttribute("offset", t.stops[r].offset), o.setAttribute("stop-color", t.stops[r].color);
|
|
12849
12849
|
return Er(e, r), n;
|
|
12850
12850
|
}
|
|
12851
12851
|
function KV(e, t, n) {
|
|
12852
12852
|
let r;
|
|
12853
|
-
return e =
|
|
12853
|
+
return e = Lt(e, n, "clipPath", Ot), e.setAttribute("id", t.id), t.path ? (r = Lt(e, 0, "path", Ot), r.setAttribute("d", t.path)) : (r = Lt(e, 0, "rect", Ot), rs(r, {
|
|
12854
12854
|
x: 0,
|
|
12855
12855
|
y: 0,
|
|
12856
12856
|
width: t.width,
|
|
@@ -12866,14 +12866,14 @@ function ZV(e, t, n, r) {
|
|
|
12866
12866
|
}
|
|
12867
12867
|
function qS(e, t, n, r, i) {
|
|
12868
12868
|
let o = e._svg, s;
|
|
12869
|
-
if (!o && (s = t.ownerDocument, o = ns(s, r,
|
|
12869
|
+
if (!o && (s = t.ownerDocument, o = ns(s, r, Ot), e._svg = o, e.mark && (o.__data__ = e, o.__values__ = {
|
|
12870
12870
|
fill: "default"
|
|
12871
12871
|
}, r === "g"))) {
|
|
12872
|
-
const a = ns(s, "path",
|
|
12872
|
+
const a = ns(s, "path", Ot);
|
|
12873
12873
|
o.appendChild(a), a.__data__ = e;
|
|
12874
|
-
const l = ns(s, "g",
|
|
12874
|
+
const l = ns(s, "g", Ot);
|
|
12875
12875
|
o.appendChild(l), l.__data__ = e;
|
|
12876
|
-
const u = ns(s, "path",
|
|
12876
|
+
const u = ns(s, "path", Ot);
|
|
12877
12877
|
o.appendChild(u), u.__data__ = e, u.__values__ = {
|
|
12878
12878
|
fill: "default"
|
|
12879
12879
|
};
|
|
@@ -12883,17 +12883,17 @@ function qS(e, t, n, r, i) {
|
|
|
12883
12883
|
function JV(e, t) {
|
|
12884
12884
|
return e.parentNode && e.parentNode.childNodes.length > 1 && e.previousSibling != t;
|
|
12885
12885
|
}
|
|
12886
|
-
let vo = null,
|
|
12886
|
+
let vo = null, hn = null;
|
|
12887
12887
|
const QV = {
|
|
12888
12888
|
group(e, t, n) {
|
|
12889
12889
|
const r = vo = t.childNodes[2];
|
|
12890
|
-
|
|
12890
|
+
hn = r.__values__, e.foreground(hf, n, this), hn = t.__values__, vo = t.childNodes[1], e.content(hf, n, this);
|
|
12891
12891
|
const i = vo = t.childNodes[0];
|
|
12892
12892
|
e.background(hf, n, this);
|
|
12893
12893
|
const o = n.mark.interactive === !1 ? "none" : null;
|
|
12894
|
-
if (o !==
|
|
12894
|
+
if (o !== hn.events && (Sn(r, "pointer-events", o), Sn(i, "pointer-events", o), hn.events = o), n.strokeForeground && n.stroke) {
|
|
12895
12895
|
const s = n.fill;
|
|
12896
|
-
Sn(r, "display", null), this.style(i, n), Sn(i, "stroke", null), s && (n.fill = null),
|
|
12896
|
+
Sn(r, "display", null), this.style(i, n), Sn(i, "stroke", null), s && (n.fill = null), hn = r.__values__, this.style(r, n), s && (n.fill = s), vo = null;
|
|
12897
12897
|
} else
|
|
12898
12898
|
Sn(r, "display", "none");
|
|
12899
12899
|
},
|
|
@@ -12904,17 +12904,17 @@ const QV = {
|
|
|
12904
12904
|
const r = vd(n);
|
|
12905
12905
|
let i, o, s, a;
|
|
12906
12906
|
B(r) ? (o = r.map((l) => Es(n, l)), i = o.join(`
|
|
12907
|
-
`), i !==
|
|
12908
|
-
const c = ns(s, "tspan",
|
|
12907
|
+
`), i !== hn.text && (Er(t, 0), s = t.ownerDocument, a = ws(n), o.forEach((l, u) => {
|
|
12908
|
+
const c = ns(s, "tspan", Ot);
|
|
12909
12909
|
c.__data__ = n, c.textContent = l, u && (c.setAttribute("x", 0), c.setAttribute("dy", a)), t.appendChild(c);
|
|
12910
|
-
}),
|
|
12910
|
+
}), hn.text = i)) : (o = Es(n, r), o !== hn.text && (t.textContent = o, hn.text = o)), Sn(t, "font-family", xd(n)), Sn(t, "font-size", Ki(n) + "px"), Sn(t, "font-style", n.fontStyle), Sn(t, "font-variant", n.fontVariant), Sn(t, "font-weight", n.fontWeight);
|
|
12911
12911
|
}
|
|
12912
12912
|
};
|
|
12913
12913
|
function hf(e, t, n) {
|
|
12914
|
-
t !==
|
|
12914
|
+
t !== hn[e] && (n ? eY(vo, e, t, n) : Sn(vo, e, t), hn[e] = t);
|
|
12915
12915
|
}
|
|
12916
12916
|
function ep(e, t, n) {
|
|
12917
|
-
n !==
|
|
12917
|
+
n !== hn[t] && (n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n + ""), hn[t] = n);
|
|
12918
12918
|
}
|
|
12919
12919
|
function rs(e, t) {
|
|
12920
12920
|
for (const n in t)
|
|
@@ -13129,8 +13129,8 @@ class R_ extends wd {
|
|
|
13129
13129
|
* @return {HybridRenderer} - This renderer instance.
|
|
13130
13130
|
*/
|
|
13131
13131
|
initialize(t, n, r, i, o) {
|
|
13132
|
-
this._root_el =
|
|
13133
|
-
const s =
|
|
13132
|
+
this._root_el = Lt(t, 0, "div");
|
|
13133
|
+
const s = Lt(this._root_el, 0, "div"), a = Lt(this._root_el, 1, "div");
|
|
13134
13134
|
return this._root_el.style.position = "relative", Gr.debug || (s.style.height = "100%", a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.height = "100%", a.style.width = "100%"), this._svgEl = Gr.svgOnTop ? a : s, this._canvasEl = Gr.svgOnTop ? s : a, this._svgEl.style.pointerEvents = "none", this._canvasRenderer.initialize(this._canvasEl, n, r, i, o), this._svgRenderer.initialize(this._svgEl, n, r, i, o), super.initialize(t, n, r, i, o);
|
|
13135
13135
|
}
|
|
13136
13136
|
/**
|
|
@@ -13172,7 +13172,7 @@ class w4 extends Ed {
|
|
|
13172
13172
|
super(t, n);
|
|
13173
13173
|
}
|
|
13174
13174
|
initialize(t, n, r) {
|
|
13175
|
-
const i =
|
|
13175
|
+
const i = Lt(Lt(t, 0, "div"), Gr.svgOnTop ? 0 : 1, "div");
|
|
13176
13176
|
return super.initialize(i, n, r);
|
|
13177
13177
|
}
|
|
13178
13178
|
}
|
|
@@ -13394,7 +13394,7 @@ X(V4, L, {
|
|
|
13394
13394
|
}
|
|
13395
13395
|
}
|
|
13396
13396
|
});
|
|
13397
|
-
const
|
|
13397
|
+
const dn = new Nt();
|
|
13398
13398
|
function Pl(e, t, n) {
|
|
13399
13399
|
return e[t] === n ? 0 : (e[t] = n, 1);
|
|
13400
13400
|
}
|
|
@@ -13415,7 +13415,7 @@ function EY(e) {
|
|
|
13415
13415
|
}
|
|
13416
13416
|
function CY(e, t, n, r) {
|
|
13417
13417
|
var i = t.items[0], o = i.datum, s = i.translate != null ? i.translate : 0.5, a = i.orient, l = EY(o), u = i.range, c = i.offset, f = i.position, d = i.minExtent, h = i.maxExtent, p = o.title && i.items[l[2]].items[0], g = i.titlePadding, m = i.bounds, y = p && $2(p), _ = 0, b = 0, v, x;
|
|
13418
|
-
switch (
|
|
13418
|
+
switch (dn.clear().union(m), m.clear(), (v = l[0]) > -1 && m.union(i.items[v].bounds), (v = l[1]) > -1 && m.union(i.items[v].bounds), a) {
|
|
13419
13419
|
case hu:
|
|
13420
13420
|
_ = f || 0, b = -c, x = Math.max(d, Math.min(h, -m.y1)), m.add(0, -x).add(u, 0), p && fh(e, p, x, g, y, 0, -1, m);
|
|
13421
13421
|
break;
|
|
@@ -13431,7 +13431,7 @@ function CY(e, t, n, r) {
|
|
|
13431
13431
|
default:
|
|
13432
13432
|
_ = i.x, b = i.y;
|
|
13433
13433
|
}
|
|
13434
|
-
return Lo(m.translate(_, b), i), Pl(i, "x", _ + s) | Pl(i, "y", b + s) && (i.bounds =
|
|
13434
|
+
return Lo(m.translate(_, b), i), Pl(i, "x", _ + s) | Pl(i, "y", b + s) && (i.bounds = dn, e.dirty(i), i.bounds = m, e.dirty(i)), i.mark.bounds.clear().union(m);
|
|
13435
13435
|
}
|
|
13436
13436
|
function fh(e, t, n, r, i, o, s, a) {
|
|
13437
13437
|
const l = t.bounds;
|
|
@@ -13499,7 +13499,7 @@ function ZS(e) {
|
|
|
13499
13499
|
return e < 0 ? Math.ceil(-e) : 0;
|
|
13500
13500
|
}
|
|
13501
13501
|
function Y4(e, t, n) {
|
|
13502
|
-
var r = !n.nodirty, i = n.bounds === W2 ? SY : $Y, o =
|
|
13502
|
+
var r = !n.nodirty, i = n.bounds === W2 ? SY : $Y, o = dn.set(0, 0, 0, 0), s = st(n.align, os), a = st(n.align, ss), l = st(n.padding, os), u = st(n.padding, ss), c = n.columns || t.length, f = c <= 0 ? 1 : Math.ceil(t.length / c), d = t.length, h = Array(d), p = Array(c), g = 0, m = Array(d), y = Array(f), _ = 0, b = Array(d), v = Array(d), x = Array(d), E, w, k, S, A, T, F, D, N, $, M;
|
|
13503
13503
|
for (w = 0; w < c; ++w) p[w] = 0;
|
|
13504
13504
|
for (w = 0; w < f; ++w) y[w] = 0;
|
|
13505
13505
|
for (w = 0; w < d; ++w)
|
|
@@ -13751,18 +13751,18 @@ function PY(e, t, n, r, i) {
|
|
|
13751
13751
|
y = -f.bounds.width() - c;
|
|
13752
13752
|
break;
|
|
13753
13753
|
}
|
|
13754
|
-
|
|
13754
|
+
dn.clear().union(d.bounds), dn.translate(y - (d.x || 0), _ - (d.y || 0)), Pl(d, "x", y) | Pl(d, "y", _) && (e.dirty(d), d.bounds.clear().union(dn), d.mark.bounds.clear().union(dn), e.dirty(d)), dn.clear().union(d.bounds);
|
|
13755
13755
|
} else
|
|
13756
|
-
|
|
13757
|
-
switch (
|
|
13756
|
+
dn.clear();
|
|
13757
|
+
switch (dn.union(f.bounds), a) {
|
|
13758
13758
|
case hu:
|
|
13759
|
-
g = b, m = i.y1 -
|
|
13759
|
+
g = b, m = i.y1 - dn.height() - u;
|
|
13760
13760
|
break;
|
|
13761
13761
|
case Zr:
|
|
13762
|
-
g = i.x1 -
|
|
13762
|
+
g = i.x1 - dn.width() - u, m = b;
|
|
13763
13763
|
break;
|
|
13764
13764
|
case Jr:
|
|
13765
|
-
g = i.x2 +
|
|
13765
|
+
g = i.x2 + dn.width() + u, m = b;
|
|
13766
13766
|
break;
|
|
13767
13767
|
case Cs:
|
|
13768
13768
|
g = b, m = i.y2 + u;
|
|
@@ -13770,7 +13770,7 @@ function PY(e, t, n, r, i) {
|
|
|
13770
13770
|
default:
|
|
13771
13771
|
g = o.x, m = o.y;
|
|
13772
13772
|
}
|
|
13773
|
-
return Pl(o, "x", g) | Pl(o, "y", m) && (
|
|
13773
|
+
return Pl(o, "x", g) | Pl(o, "y", m) && (dn.translate(g, m), e.dirty(o), o.bounds.clear().union(dn), t.bounds.clear().union(dn), e.dirty(o)), o.bounds;
|
|
13774
13774
|
}
|
|
13775
13775
|
function X4(e) {
|
|
13776
13776
|
L.call(this, null, e);
|
|
@@ -13944,7 +13944,7 @@ X(Q4, L, {
|
|
|
13944
13944
|
if (this.value != null && !e.modified())
|
|
13945
13945
|
return t.StopPropagation;
|
|
13946
13946
|
var n = t.dataflow.locale(), r = t.fork(t.NO_SOURCE | t.NO_FIELDS), i = this.value, o = e.type || Gh, s = e.scale, a = +e.limit, l = u2(s, e.count == null ? 5 : e.count, e.minstep), u = !!e.values || o === Gh, c = e.format || AF(n, s, l, o, e.formatSpecifier, e.formatType, u), f = e.values || $F(s, l), d, h, p, g, m;
|
|
13947
|
-
return i && (r.rem = i), o === Gh ? (a && f.length > a ? (t.dataflow.warn("Symbol legend count exceeds limit, filtering items."), i = f.slice(0, a - 1), m = !0) : i = f, Ee(p = e.size) ? (!e.values && s(i[0]) === 0 && (i = i.slice(1)), g = i.reduce((y, _) => Math.max(y, p(_, e)), 0)) : p =
|
|
13947
|
+
return i && (r.rem = i), o === Gh ? (a && f.length > a ? (t.dataflow.warn("Symbol legend count exceeds limit, filtering items."), i = f.slice(0, a - 1), m = !0) : i = f, Ee(p = e.size) ? (!e.values && s(i[0]) === 0 && (i = i.slice(1)), g = i.reduce((y, _) => Math.max(y, p(_, e)), 0)) : p = En(g = p || 8), i = i.map((y, _) => Ge({
|
|
13948
13948
|
index: _,
|
|
13949
13949
|
label: c(y, _, i),
|
|
13950
13950
|
value: y,
|
|
@@ -14274,7 +14274,7 @@ const vX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14274
14274
|
sortitems: sD,
|
|
14275
14275
|
stack: Y2
|
|
14276
14276
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14277
|
-
var de = 1e-6, Xp = 1e-12, De = Math.PI, mt = De / 2, Kp = De / 4, Ln = De * 2,
|
|
14277
|
+
var de = 1e-6, Xp = 1e-12, De = Math.PI, mt = De / 2, Kp = De / 4, Ln = De * 2, Ct = 180 / De, Ne = De / 180, Pe = Math.abs, Zu = Math.atan, Or = Math.atan2, he = Math.cos, hh = Math.ceil, cD = Math.exp, P_ = Math.hypot, Zp = Math.log, D1 = Math.pow, ce = Math.sin, Sr = Math.sign || function(e) {
|
|
14278
14278
|
return e > 0 ? 1 : e < 0 ? -1 : 0;
|
|
14279
14279
|
}, In = Math.sqrt, X2 = Math.tan;
|
|
14280
14280
|
function fD(e) {
|
|
@@ -14283,7 +14283,7 @@ function fD(e) {
|
|
|
14283
14283
|
function Kn(e) {
|
|
14284
14284
|
return e > 1 ? mt : e < -1 ? -mt : Math.asin(e);
|
|
14285
14285
|
}
|
|
14286
|
-
function
|
|
14286
|
+
function rn() {
|
|
14287
14287
|
}
|
|
14288
14288
|
function Jp(e, t) {
|
|
14289
14289
|
e && r$.hasOwnProperty(e.type) && r$[e.type](e, t);
|
|
@@ -14335,15 +14335,15 @@ function po(e, t) {
|
|
|
14335
14335
|
e && n$.hasOwnProperty(e.type) ? n$[e.type](e, t) : Jp(e, t);
|
|
14336
14336
|
}
|
|
14337
14337
|
var Qp = new Rn(), eg = new Rn(), dD, hD, B_, U_, j_, ji = {
|
|
14338
|
-
point:
|
|
14339
|
-
lineStart:
|
|
14340
|
-
lineEnd:
|
|
14338
|
+
point: rn,
|
|
14339
|
+
lineStart: rn,
|
|
14340
|
+
lineEnd: rn,
|
|
14341
14341
|
polygonStart: function() {
|
|
14342
14342
|
Qp = new Rn(), ji.lineStart = xX, ji.lineEnd = wX;
|
|
14343
14343
|
},
|
|
14344
14344
|
polygonEnd: function() {
|
|
14345
14345
|
var e = +Qp;
|
|
14346
|
-
eg.add(e < 0 ? Ln + e : e), this.lineStart = this.lineEnd = this.point =
|
|
14346
|
+
eg.add(e < 0 ? Ln + e : e), this.lineStart = this.lineEnd = this.point = rn;
|
|
14347
14347
|
},
|
|
14348
14348
|
sphere: function() {
|
|
14349
14349
|
eg.add(Ln);
|
|
@@ -14411,8 +14411,8 @@ function yD(e, t) {
|
|
|
14411
14411
|
if (Gl) {
|
|
14412
14412
|
var r = pu(Gl, n), i = [r[1], -r[0], 0], o = pu(i, r);
|
|
14413
14413
|
ng(o), o = tg(o);
|
|
14414
|
-
var s = e - aa, a = s > 0 ? 1 : -1, l = o[0] *
|
|
14415
|
-
c ^ (a * aa < l && l < a * e) ? (u = o[1] *
|
|
14414
|
+
var s = e - aa, a = s > 0 ? 1 : -1, l = o[0] * Ct * a, u, c = Pe(s) > 180;
|
|
14415
|
+
c ^ (a * aa < l && l < a * e) ? (u = o[1] * Ct, u > ir && (ir = u)) : (l = (l + 360) % 360 - 180, c ^ (a * aa < l && l < a * e) ? (u = -o[1] * Ct, u < Wn && (Wn = u)) : (t < Wn && (Wn = t), t > ir && (ir = t))), c ? e < aa ? rr(ft, e) > rr(ft, pt) && (pt = e) : rr(e, pt) > rr(ft, pt) && (ft = e) : pt >= ft ? (e < ft && (ft = e), e > pt && (pt = e)) : e > aa ? rr(ft, e) > rr(ft, pt) && (pt = e) : rr(e, pt) > rr(ft, pt) && (ft = e);
|
|
14416
14416
|
} else
|
|
14417
14417
|
Zo.push(Fo = [ft = e, pt = e]);
|
|
14418
14418
|
t < Wn && (Wn = t), t > ir && (ir = t), Gl = n, aa = e;
|
|
@@ -14457,7 +14457,7 @@ function AX(e) {
|
|
|
14457
14457
|
return Zo = Fo = null, ft === 1 / 0 || Wn === 1 / 0 ? [[NaN, NaN], [NaN, NaN]] : [[ft, Wn], [pt, ir]];
|
|
14458
14458
|
}
|
|
14459
14459
|
var Kc, rg, ig, og, sg, ag, lg, ug, W_, H_, G_, bD, vD, An, Mn, Tn, Qr = {
|
|
14460
|
-
sphere:
|
|
14460
|
+
sphere: rn,
|
|
14461
14461
|
point: K2,
|
|
14462
14462
|
lineStart: l$,
|
|
14463
14463
|
lineEnd: u$,
|
|
@@ -14511,7 +14511,7 @@ function xD(e, t) {
|
|
|
14511
14511
|
function RX(e) {
|
|
14512
14512
|
Kc = rg = ig = og = sg = ag = lg = ug = 0, W_ = new Rn(), H_ = new Rn(), G_ = new Rn(), po(e, Qr);
|
|
14513
14513
|
var t = +W_, n = +H_, r = +G_, i = P_(t, n, r);
|
|
14514
|
-
return i < Xp && (t = ag, n = lg, r = ug, rg < de && (t = ig, n = og, r = sg), i = P_(t, n, r), i < Xp) ? [NaN, NaN] : [Or(n, t) *
|
|
14514
|
+
return i < Xp && (t = ag, n = lg, r = ug, rg < de && (t = ig, n = og, r = sg), i = P_(t, n, r), i < Xp) ? [NaN, NaN] : [Or(n, t) * Ct, Kn(r / i) * Ct];
|
|
14515
14515
|
}
|
|
14516
14516
|
function V_(e, t) {
|
|
14517
14517
|
function n(r, i) {
|
|
@@ -14557,10 +14557,10 @@ function d$(e, t) {
|
|
|
14557
14557
|
function OX(e) {
|
|
14558
14558
|
e = wD(e[0] * Ne, e[1] * Ne, e.length > 2 ? e[2] * Ne : 0);
|
|
14559
14559
|
function t(n) {
|
|
14560
|
-
return n = e(n[0] * Ne, n[1] * Ne), n[0] *=
|
|
14560
|
+
return n = e(n[0] * Ne, n[1] * Ne), n[0] *= Ct, n[1] *= Ct, n;
|
|
14561
14561
|
}
|
|
14562
14562
|
return t.invert = function(n) {
|
|
14563
|
-
return n = e.invert(n[0] * Ne, n[1] * Ne), n[0] *=
|
|
14563
|
+
return n = e.invert(n[0] * Ne, n[1] * Ne), n[0] *= Ct, n[1] *= Ct, n;
|
|
14564
14564
|
}, t;
|
|
14565
14565
|
}
|
|
14566
14566
|
function LX(e, t, n, r, i, o) {
|
|
@@ -14585,7 +14585,7 @@ function ED() {
|
|
|
14585
14585
|
lineStart: function() {
|
|
14586
14586
|
e.push(t = []);
|
|
14587
14587
|
},
|
|
14588
|
-
lineEnd:
|
|
14588
|
+
lineEnd: rn,
|
|
14589
14589
|
rejoin: function() {
|
|
14590
14590
|
e.length > 1 && e.push(e.pop().concat(e.shift()));
|
|
14591
14591
|
},
|
|
@@ -14996,14 +14996,14 @@ function HX() {
|
|
|
14996
14996
|
}
|
|
14997
14997
|
const Lf = (e) => e;
|
|
14998
14998
|
var L1 = new Rn(), X_ = new Rn(), $D, AD, K_, Z_, go = {
|
|
14999
|
-
point:
|
|
15000
|
-
lineStart:
|
|
15001
|
-
lineEnd:
|
|
14999
|
+
point: rn,
|
|
15000
|
+
lineStart: rn,
|
|
15001
|
+
lineEnd: rn,
|
|
15002
15002
|
polygonStart: function() {
|
|
15003
15003
|
go.lineStart = GX, go.lineEnd = YX;
|
|
15004
15004
|
},
|
|
15005
15005
|
polygonEnd: function() {
|
|
15006
|
-
go.lineStart = go.lineEnd = go.point =
|
|
15006
|
+
go.lineStart = go.lineEnd = go.point = rn, L1.add(Pe(X_)), X_ = new Rn();
|
|
15007
15007
|
},
|
|
15008
15008
|
result: function() {
|
|
15009
15009
|
var e = L1 / 2;
|
|
@@ -15024,10 +15024,10 @@ function YX() {
|
|
|
15024
15024
|
}
|
|
15025
15025
|
var gu = 1 / 0, cg = gu, If = -gu, fg = If, dg = {
|
|
15026
15026
|
point: XX,
|
|
15027
|
-
lineStart:
|
|
15028
|
-
lineEnd:
|
|
15029
|
-
polygonStart:
|
|
15030
|
-
polygonEnd:
|
|
15027
|
+
lineStart: rn,
|
|
15028
|
+
lineEnd: rn,
|
|
15029
|
+
polygonStart: rn,
|
|
15030
|
+
polygonEnd: rn,
|
|
15031
15031
|
result: function() {
|
|
15032
15032
|
var e = [[gu, cg], [If, fg]];
|
|
15033
15033
|
return If = fg = -(cg = gu = 1 / 0), e;
|
|
@@ -15116,15 +15116,15 @@ DD.prototype = {
|
|
|
15116
15116
|
}
|
|
15117
15117
|
}
|
|
15118
15118
|
},
|
|
15119
|
-
result:
|
|
15119
|
+
result: rn
|
|
15120
15120
|
};
|
|
15121
15121
|
var nb = new Rn(), I1, RD, OD, ef, tf, Pf = {
|
|
15122
|
-
point:
|
|
15122
|
+
point: rn,
|
|
15123
15123
|
lineStart: function() {
|
|
15124
15124
|
Pf.point = tK;
|
|
15125
15125
|
},
|
|
15126
15126
|
lineEnd: function() {
|
|
15127
|
-
I1 && LD(RD, OD), Pf.point =
|
|
15127
|
+
I1 && LD(RD, OD), Pf.point = rn;
|
|
15128
15128
|
},
|
|
15129
15129
|
polygonStart: function() {
|
|
15130
15130
|
I1 = !0;
|
|
@@ -15392,7 +15392,7 @@ function zD(e) {
|
|
|
15392
15392
|
return k($[0] * Ne, $[1] * Ne);
|
|
15393
15393
|
}
|
|
15394
15394
|
function F($) {
|
|
15395
|
-
return $ = k.invert($[0], $[1]), $ && [$[0] *
|
|
15395
|
+
return $ = k.invert($[0], $[1]), $ && [$[0] * Ct, $[1] * Ct];
|
|
15396
15396
|
}
|
|
15397
15397
|
T.stream = function($) {
|
|
15398
15398
|
return S && A === $ ? S : S = sK(aK(c)(g(E(v(A = $)))));
|
|
@@ -15401,7 +15401,7 @@ function zD(e) {
|
|
|
15401
15401
|
}, T.postclip = function($) {
|
|
15402
15402
|
return arguments.length ? (v = $, m = y = _ = b = null, N()) : v;
|
|
15403
15403
|
}, T.clipAngle = function($) {
|
|
15404
|
-
return arguments.length ? (g = +$ ? qX(p = $ * Ne) : (p = null, g$), N()) : p *
|
|
15404
|
+
return arguments.length ? (g = +$ ? qX(p = $ * Ne) : (p = null, g$), N()) : p * Ct;
|
|
15405
15405
|
}, T.clipExtent = function($) {
|
|
15406
15406
|
return arguments.length ? (v = $ == null ? (m = y = _ = b = null, Lf) : SD(m = +$[0][0], y = +$[0][1], _ = +$[1][0], b = +$[1][1]), N()) : m == null ? null : [[m, y], [_, b]];
|
|
15407
15407
|
}, T.scale = function($) {
|
|
@@ -15409,11 +15409,11 @@ function zD(e) {
|
|
|
15409
15409
|
}, T.translate = function($) {
|
|
15410
15410
|
return arguments.length ? (r = +$[0], i = +$[1], D()) : [r, i];
|
|
15411
15411
|
}, T.center = function($) {
|
|
15412
|
-
return arguments.length ? (o = $[0] % 360 * Ne, s = $[1] % 360 * Ne, D()) : [o *
|
|
15412
|
+
return arguments.length ? (o = $[0] % 360 * Ne, s = $[1] % 360 * Ne, D()) : [o * Ct, s * Ct];
|
|
15413
15413
|
}, T.rotate = function($) {
|
|
15414
|
-
return arguments.length ? (a = $[0] % 360 * Ne, l = $[1] % 360 * Ne, u = $.length > 2 ? $[2] % 360 * Ne : 0, D()) : [a *
|
|
15414
|
+
return arguments.length ? (a = $[0] % 360 * Ne, l = $[1] % 360 * Ne, u = $.length > 2 ? $[2] % 360 * Ne : 0, D()) : [a * Ct, l * Ct, u * Ct];
|
|
15415
15415
|
}, T.angle = function($) {
|
|
15416
|
-
return arguments.length ? (f = $ % 360 * Ne, D()) : f *
|
|
15416
|
+
return arguments.length ? (f = $ % 360 * Ne, D()) : f * Ct;
|
|
15417
15417
|
}, T.reflectX = function($) {
|
|
15418
15418
|
return arguments.length ? (d = $ ? -1 : 1, D()) : d < 0;
|
|
15419
15419
|
}, T.reflectY = function($) {
|
|
@@ -15443,7 +15443,7 @@ function zD(e) {
|
|
|
15443
15443
|
function tw(e) {
|
|
15444
15444
|
var t = 0, n = De / 3, r = zD(e), i = r(t, n);
|
|
15445
15445
|
return i.parallels = function(o) {
|
|
15446
|
-
return arguments.length ? r(t = o[0] * Ne, n = o[1] * Ne) : [t *
|
|
15446
|
+
return arguments.length ? r(t = o[0] * Ne, n = o[1] * Ne) : [t * Ct, n * Ct];
|
|
15447
15447
|
}, i;
|
|
15448
15448
|
}
|
|
15449
15449
|
function uK(e) {
|
|
@@ -15698,7 +15698,7 @@ function CK() {
|
|
|
15698
15698
|
}, b.translate = function(v) {
|
|
15699
15699
|
return arguments.length ? (t = +v[0], n = +v[1], _()) : [t, n];
|
|
15700
15700
|
}, b.angle = function(v) {
|
|
15701
|
-
return arguments.length ? (o = v % 360 * Ne, a = ce(o), s = he(o), _()) : o *
|
|
15701
|
+
return arguments.length ? (o = v % 360 * Ne, a = ce(o), s = he(o), _()) : o * Ct;
|
|
15702
15702
|
}, b.reflectX = function(v) {
|
|
15703
15703
|
return arguments.length ? (r = v ? -1 : 1, _()) : r < 0;
|
|
15704
15704
|
}, b.reflectY = function(v) {
|
|
@@ -16012,7 +16012,7 @@ X(rw, L, {
|
|
|
16012
16012
|
transform(e, t) {
|
|
16013
16013
|
if (this.value && !t.changed() && !e.modified())
|
|
16014
16014
|
return t.StopPropagation;
|
|
16015
|
-
var n = t.fork(t.NO_SOURCE | t.NO_FIELDS), r = t.materialize(t.SOURCE).source, i = e.field ||
|
|
16015
|
+
var n = t.fork(t.NO_SOURCE | t.NO_FIELDS), r = t.materialize(t.SOURCE).source, i = e.field || wn, o = QD().smooth(e.smooth !== !1), s = e.thresholds || HK(r, i, e), a = e.as === null ? null : e.as || "contour", l = [];
|
|
16016
16016
|
return r.forEach((u) => {
|
|
16017
16017
|
const c = i(u), f = o.size([c.width, c.height])(c.values, B(s) ? s : s(c.values));
|
|
16018
16018
|
GK(f, c, u, e), f.forEach((d) => {
|
|
@@ -16053,7 +16053,7 @@ function M$(e, t, n) {
|
|
|
16053
16053
|
return Math.round((Math.sqrt(4 * r * r + 1) - 1) / 2);
|
|
16054
16054
|
}
|
|
16055
16055
|
function P1(e) {
|
|
16056
|
-
return Ee(e) ? e :
|
|
16056
|
+
return Ee(e) ? e : En(+e);
|
|
16057
16057
|
}
|
|
16058
16058
|
function nR() {
|
|
16059
16059
|
var e = (l) => l[0], t = (l) => l[1], n = Iu, r = [-1, -1], i = 960, o = 500, s = 2;
|
|
@@ -16255,8 +16255,8 @@ aw.Definition = {
|
|
|
16255
16255
|
};
|
|
16256
16256
|
X(aw, L, {
|
|
16257
16257
|
transform(e, t) {
|
|
16258
|
-
var n = this._features, r = this._points, i = e.fields, o = i && i[0], s = i && i[1], a = e.geojson || !i &&
|
|
16259
|
-
u = e.modified() || t.changed(t.REM) || t.modified(
|
|
16258
|
+
var n = this._features, r = this._points, i = e.fields, o = i && i[0], s = i && i[1], a = e.geojson || !i && wn, l = t.ADD, u;
|
|
16259
|
+
u = e.modified() || t.changed(t.REM) || t.modified(_n(a)) || o && t.modified(_n(o)) || s && t.modified(_n(s)), (!this.value || u) && (l = t.SOURCE, this._features = n = [], this._points = r = []), a && t.visit(l, (c) => n.push(a(c))), o && s && (t.visit(l, (c) => {
|
|
16260
16260
|
var f = o(c), d = s(c);
|
|
16261
16261
|
f != null && d != null && (f = +f) === f && (d = +d) === d && r.push([f, d]);
|
|
16262
16262
|
}), n = n.concat({
|
|
@@ -16297,8 +16297,8 @@ lw.Definition = {
|
|
|
16297
16297
|
};
|
|
16298
16298
|
X(lw, L, {
|
|
16299
16299
|
transform(e, t) {
|
|
16300
|
-
var n = t.fork(t.ALL), r = this.value, i = e.field ||
|
|
16301
|
-
!r || e.modified() ? (this.value = r = JD(e.projection), n.materialize().reflow()) : s = i ===
|
|
16300
|
+
var n = t.fork(t.ALL), r = this.value, i = e.field || wn, o = e.as || "path", s = n.SOURCE;
|
|
16301
|
+
!r || e.modified() ? (this.value = r = JD(e.projection), n.materialize().reflow()) : s = i === wn || t.modified(i.fields) ? n.ADD_MOD : n.ADD;
|
|
16302
16302
|
const a = KK(r, e.pointRadius);
|
|
16303
16303
|
return n.visit(s, (l) => l[o] = r(i(l))), r.pointRadius(a), n.modifies(o);
|
|
16304
16304
|
}
|
|
@@ -16487,7 +16487,7 @@ X(dw, L, {
|
|
|
16487
16487
|
transform(e, t) {
|
|
16488
16488
|
if (!t.changed() && !e.modified())
|
|
16489
16489
|
return t.StopPropagation;
|
|
16490
|
-
var n = t.materialize(t.SOURCE).source, r = e.resolve === "shared", i = e.field ||
|
|
16490
|
+
var n = t.materialize(t.SOURCE).source, r = e.resolve === "shared", i = e.field || wn, o = QK(e.opacity, e), s = JK(e.color, e), a = e.as || "image", l = {
|
|
16491
16491
|
$x: 0,
|
|
16492
16492
|
$y: 0,
|
|
16493
16493
|
$value: 0,
|
|
@@ -16495,21 +16495,21 @@ X(dw, L, {
|
|
|
16495
16495
|
};
|
|
16496
16496
|
return n.forEach((u) => {
|
|
16497
16497
|
const c = i(u), f = Se({}, u, l);
|
|
16498
|
-
r || (f.$max = ba(c.values || [])), u[a] = eZ(c, f, s.dep ? s :
|
|
16498
|
+
r || (f.$max = ba(c.values || [])), u[a] = eZ(c, f, s.dep ? s : En(s(f)), o.dep ? o : En(o(f)));
|
|
16499
16499
|
}), t.reflow(!0).modifies(a);
|
|
16500
16500
|
}
|
|
16501
16501
|
});
|
|
16502
16502
|
function JK(e, t) {
|
|
16503
16503
|
let n;
|
|
16504
|
-
return Ee(e) ? (n = (r) => vs(e(r, t)), n.dep = iR(e)) : n =
|
|
16504
|
+
return Ee(e) ? (n = (r) => vs(e(r, t)), n.dep = iR(e)) : n = En(vs(e || "#888")), n;
|
|
16505
16505
|
}
|
|
16506
16506
|
function QK(e, t) {
|
|
16507
16507
|
let n;
|
|
16508
|
-
return Ee(e) ? (n = (r) => e(r, t), n.dep = iR(e)) : e ? n =
|
|
16508
|
+
return Ee(e) ? (n = (r) => e(r, t), n.dep = iR(e)) : e ? n = En(e) : (n = (r) => r.$value / r.$max || 0, n.dep = !0), n;
|
|
16509
16509
|
}
|
|
16510
16510
|
function iR(e) {
|
|
16511
16511
|
if (!Ee(e)) return !1;
|
|
16512
|
-
const t = ii(
|
|
16512
|
+
const t = ii(_n(e));
|
|
16513
16513
|
return t.$x || t.$y || t.$value || t.$max;
|
|
16514
16514
|
}
|
|
16515
16515
|
function eZ(e, t, n, r) {
|
|
@@ -17383,7 +17383,7 @@ function dR(e, t, n, r) {
|
|
|
17383
17383
|
function KZ(e, t) {
|
|
17384
17384
|
var n, r;
|
|
17385
17385
|
for (n in e)
|
|
17386
|
-
if (Ee(r = e[n]) && t.modified(
|
|
17386
|
+
if (Ee(r = e[n]) && t.modified(_n(r))) return 1;
|
|
17387
17387
|
return 0;
|
|
17388
17388
|
}
|
|
17389
17389
|
function ZZ(e) {
|
|
@@ -18924,7 +18924,7 @@ const AQ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18924
18924
|
__proto__: null,
|
|
18925
18925
|
loess: Sw,
|
|
18926
18926
|
regression: $w
|
|
18927
|
-
}, Symbol.toStringTag, { value: "Module" })), Co = 11102230246251565e-32,
|
|
18927
|
+
}, Symbol.toStringTag, { value: "Module" })), Co = 11102230246251565e-32, cn = 134217729, MQ = (3 + 8 * Co) * Co;
|
|
18928
18928
|
function J1(e, t, n, r, i) {
|
|
18929
18929
|
let o, s, a, l, u = t[0], c = r[0], f = 0, d = 0;
|
|
18930
18930
|
c > u == c > -u ? (o = u, u = t[++f]) : (o = c, c = r[++d]);
|
|
@@ -18950,14 +18950,14 @@ const NQ = (3 + 16 * Co) * Co, FQ = (2 + 12 * Co) * Co, DQ = (9 + 64 * Co) * Co
|
|
|
18950
18950
|
function RQ(e, t, n, r, i, o, s) {
|
|
18951
18951
|
let a, l, u, c, f, d, h, p, g, m, y, _, b, v, x, E, w, k;
|
|
18952
18952
|
const S = e - i, A = n - i, T = t - o, F = r - o;
|
|
18953
|
-
v = S * F, d =
|
|
18953
|
+
v = S * F, d = cn * S, h = d - (d - S), p = S - h, d = cn * F, g = d - (d - F), m = F - g, x = p * m - (v - h * g - p * g - h * m), E = T * A, d = cn * T, h = d - (d - T), p = T - h, d = cn * A, g = d - (d - A), m = A - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, Sl[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, Sl[1] = b - (y + f) + (f - E), k = _ + y, f = k - _, Sl[2] = _ - (k - f) + (y - f), Sl[3] = k;
|
|
18954
18954
|
let D = TQ(4, Sl), N = FQ * s;
|
|
18955
18955
|
if (D >= N || -D >= N || (f = e - S, a = e - (S + f) + (f - i), f = n - A, u = n - (A + f) + (f - i), f = t - T, l = t - (T + f) + (f - o), f = r - F, c = r - (F + f) + (f - o), a === 0 && l === 0 && u === 0 && c === 0) || (N = DQ * s + MQ * Math.abs(D), D += S * c + F * a - (T * u + A * l), D >= N || -D >= N)) return D;
|
|
18956
|
-
v = a * F, d =
|
|
18956
|
+
v = a * F, d = cn * a, h = d - (d - a), p = a - h, d = cn * F, g = d - (d - F), m = F - g, x = p * m - (v - h * g - p * g - h * m), E = l * A, d = cn * l, h = d - (d - l), p = l - h, d = cn * A, g = d - (d - A), m = A - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, kn[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, kn[1] = b - (y + f) + (f - E), k = _ + y, f = k - _, kn[2] = _ - (k - f) + (y - f), kn[3] = k;
|
|
18957
18957
|
const $ = J1(4, Sl, 4, kn, X$);
|
|
18958
|
-
v = S * c, d =
|
|
18958
|
+
v = S * c, d = cn * S, h = d - (d - S), p = S - h, d = cn * c, g = d - (d - c), m = c - g, x = p * m - (v - h * g - p * g - h * m), E = T * u, d = cn * T, h = d - (d - T), p = T - h, d = cn * u, g = d - (d - u), m = u - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, kn[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, kn[1] = b - (y + f) + (f - E), k = _ + y, f = k - _, kn[2] = _ - (k - f) + (y - f), kn[3] = k;
|
|
18959
18959
|
const M = J1($, X$, 4, kn, K$);
|
|
18960
|
-
v = a * c, d =
|
|
18960
|
+
v = a * c, d = cn * a, h = d - (d - a), p = a - h, d = cn * c, g = d - (d - c), m = c - g, x = p * m - (v - h * g - p * g - h * m), E = l * u, d = cn * l, h = d - (d - l), p = l - h, d = cn * u, g = d - (d - u), m = u - g, w = p * m - (E - h * g - p * g - h * m), y = x - w, f = x - y, kn[0] = x - (y + f) + (f - w), _ = v + y, f = _ - v, b = v - (_ - f) + (y - f), y = b - E, f = b - y, kn[1] = b - (y + f) + (f - E), k = _ + y, f = k - _, kn[2] = _ - (k - f) + (y - f), kn[3] = k;
|
|
18961
18961
|
const R = J1(M, K$, 4, kn, Z$);
|
|
18962
18962
|
return Z$[R - 1];
|
|
18963
18963
|
}
|
|
@@ -19912,7 +19912,7 @@ X(Tw, L, {
|
|
|
19912
19912
|
if (!(r || t.changed(t.ADD_REM) || aee.some(n))) return;
|
|
19913
19913
|
const i = t.materialize(t.SOURCE).source, o = this.value, s = e.as || CR;
|
|
19914
19914
|
let a = e.fontSize || 14, l;
|
|
19915
|
-
if (Ee(a) ? l = e.fontSizeRange : a =
|
|
19915
|
+
if (Ee(a) ? l = e.fontSizeRange : a = En(a), l) {
|
|
19916
19916
|
const p = a, g = He("sqrt")().domain(Pi(i, p)).range(l);
|
|
19917
19917
|
a = (m) => g(p(m));
|
|
19918
19918
|
}
|
|
@@ -20256,7 +20256,7 @@ function See(e) {
|
|
|
20256
20256
|
return [];
|
|
20257
20257
|
}
|
|
20258
20258
|
}
|
|
20259
|
-
var Ji, ie, P,
|
|
20259
|
+
var Ji, ie, P, vn, Ke, Xm = 1, Ad = 2, Pa = 3, Os = 4, Km = 5, al = 6, qn = 7, Md = 8, $ee = 9;
|
|
20260
20260
|
Ji = {};
|
|
20261
20261
|
Ji[Xm] = "Boolean";
|
|
20262
20262
|
Ji[Ad] = "<end>";
|
|
@@ -20267,7 +20267,7 @@ Ji[al] = "Numeric";
|
|
|
20267
20267
|
Ji[qn] = "Punctuator";
|
|
20268
20268
|
Ji[Md] = "String";
|
|
20269
20269
|
Ji[$ee] = "RegularExpression";
|
|
20270
|
-
var Aee = "ArrayExpression", Mee = "BinaryExpression", Tee = "CallExpression", Nee = "ConditionalExpression", SR = "Identifier", Fee = "Literal", Dee = "LogicalExpression", Ree = "MemberExpression", Oee = "ObjectExpression", Lee = "Property", Iee = "UnaryExpression", Gt = "Unexpected token %0", Pee = "Unexpected number", zee = "Unexpected string", Bee = "Unexpected identifier", Uee = "Unexpected reserved word", jee = "Unexpected end of input", bb = "Invalid regular expression", ty = "Invalid regular expression: missing /", $R = "Octal literals are not allowed in strict mode.", qee = "Duplicate data property in object literal not allowed in strict mode", rn = "ILLEGAL", Uf = "Disabled.", Wee = new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), Hee = new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
|
|
20270
|
+
var Aee = "ArrayExpression", Mee = "BinaryExpression", Tee = "CallExpression", Nee = "ConditionalExpression", SR = "Identifier", Fee = "Literal", Dee = "LogicalExpression", Ree = "MemberExpression", Oee = "ObjectExpression", Lee = "Property", Iee = "UnaryExpression", Gt = "Unexpected token %0", Pee = "Unexpected number", zee = "Unexpected string", Bee = "Unexpected identifier", Uee = "Unexpected reserved word", jee = "Unexpected end of input", bb = "Invalid regular expression", ty = "Invalid regular expression: missing /", $R = "Octal literals are not allowed in strict mode.", qee = "Duplicate data property in object literal not allowed in strict mode", on = "ILLEGAL", Uf = "Disabled.", Wee = new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), Hee = new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
|
|
20271
20271
|
function Zm(e, t) {
|
|
20272
20272
|
if (!e)
|
|
20273
20273
|
throw new Error("ASSERT: " + t);
|
|
@@ -20347,7 +20347,7 @@ const Vee = {
|
|
|
20347
20347
|
implements: 1
|
|
20348
20348
|
};
|
|
20349
20349
|
function AR() {
|
|
20350
|
-
for (; P <
|
|
20350
|
+
for (; P < vn; ) {
|
|
20351
20351
|
const e = ie.charCodeAt(P);
|
|
20352
20352
|
if (Gee(e) || jf(e))
|
|
20353
20353
|
++P;
|
|
@@ -20358,24 +20358,24 @@ function AR() {
|
|
|
20358
20358
|
function vb(e) {
|
|
20359
20359
|
var t, n, r, i = 0;
|
|
20360
20360
|
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t)
|
|
20361
|
-
P <
|
|
20361
|
+
P < vn && Dw(ie[P]) ? (r = ie[P++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : je({}, Gt, on);
|
|
20362
20362
|
return String.fromCharCode(i);
|
|
20363
20363
|
}
|
|
20364
20364
|
function Yee() {
|
|
20365
20365
|
var e, t, n, r;
|
|
20366
|
-
for (e = ie[P], t = 0, e === "}" && je({}, Gt,
|
|
20366
|
+
for (e = ie[P], t = 0, e === "}" && je({}, Gt, on); P < vn && (e = ie[P++], !!Dw(e)); )
|
|
20367
20367
|
t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
|
|
20368
|
-
return (t > 1114111 || e !== "}") && je({}, Gt,
|
|
20368
|
+
return (t > 1114111 || e !== "}") && je({}, Gt, on), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
|
|
20369
20369
|
}
|
|
20370
20370
|
function MR() {
|
|
20371
20371
|
var e, t;
|
|
20372
|
-
for (e = ie.charCodeAt(P++), t = String.fromCharCode(e), e === 92 && (ie.charCodeAt(P) !== 117 && je({}, Gt,
|
|
20373
|
-
++P, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), ie.charCodeAt(P) !== 117 && je({}, Gt,
|
|
20372
|
+
for (e = ie.charCodeAt(P++), t = String.fromCharCode(e), e === 92 && (ie.charCodeAt(P) !== 117 && je({}, Gt, on), ++P, e = vb("u"), (!e || e === "\\" || !Td(e.charCodeAt(0))) && je({}, Gt, on), t = e); P < vn && (e = ie.charCodeAt(P), !!Sg(e)); )
|
|
20373
|
+
++P, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), ie.charCodeAt(P) !== 117 && je({}, Gt, on), ++P, e = vb("u"), (!e || e === "\\" || !Sg(e.charCodeAt(0))) && je({}, Gt, on), t += e);
|
|
20374
20374
|
return t;
|
|
20375
20375
|
}
|
|
20376
20376
|
function Xee() {
|
|
20377
20377
|
var e, t;
|
|
20378
|
-
for (e = P++; P <
|
|
20378
|
+
for (e = P++; P < vn; ) {
|
|
20379
20379
|
if (t = ie.charCodeAt(P), t === 92)
|
|
20380
20380
|
return P = e, MR();
|
|
20381
20381
|
if (Sg(t))
|
|
@@ -20487,20 +20487,20 @@ function ny() {
|
|
|
20487
20487
|
start: e,
|
|
20488
20488
|
end: P
|
|
20489
20489
|
};
|
|
20490
|
-
if (i === "//" && je({}, Gt,
|
|
20490
|
+
if (i === "//" && je({}, Gt, on), "<>=!+-*%&|^/".includes(r))
|
|
20491
20491
|
return ++P, {
|
|
20492
20492
|
type: qn,
|
|
20493
20493
|
value: r,
|
|
20494
20494
|
start: e,
|
|
20495
20495
|
end: P
|
|
20496
20496
|
};
|
|
20497
|
-
je({}, Gt,
|
|
20497
|
+
je({}, Gt, on);
|
|
20498
20498
|
}
|
|
20499
20499
|
function Zee(e) {
|
|
20500
20500
|
let t = "";
|
|
20501
|
-
for (; P <
|
|
20501
|
+
for (; P < vn && Dw(ie[P]); )
|
|
20502
20502
|
t += ie[P++];
|
|
20503
|
-
return t.length === 0 && je({}, Gt,
|
|
20503
|
+
return t.length === 0 && je({}, Gt, on), Td(ie.charCodeAt(P)) && je({}, Gt, on), {
|
|
20504
20504
|
type: al,
|
|
20505
20505
|
value: parseInt("0x" + t, 16),
|
|
20506
20506
|
start: e,
|
|
@@ -20509,9 +20509,9 @@ function Zee(e) {
|
|
|
20509
20509
|
}
|
|
20510
20510
|
function Jee(e) {
|
|
20511
20511
|
let t = "0" + ie[P++];
|
|
20512
|
-
for (; P <
|
|
20512
|
+
for (; P < vn && vf(ie[P]); )
|
|
20513
20513
|
t += ie[P++];
|
|
20514
|
-
return (Td(ie.charCodeAt(P)) || ho(ie.charCodeAt(P))) && je({}, Gt,
|
|
20514
|
+
return (Td(ie.charCodeAt(P)) || ho(ie.charCodeAt(P))) && je({}, Gt, on), {
|
|
20515
20515
|
type: al,
|
|
20516
20516
|
value: parseInt(t, 8),
|
|
20517
20517
|
octal: !0,
|
|
@@ -20527,7 +20527,7 @@ function nA() {
|
|
|
20527
20527
|
return ++P, Zee(t);
|
|
20528
20528
|
if (vf(n))
|
|
20529
20529
|
return Jee(t);
|
|
20530
|
-
n && ho(n.charCodeAt(0)) && je({}, Gt,
|
|
20530
|
+
n && ho(n.charCodeAt(0)) && je({}, Gt, on);
|
|
20531
20531
|
}
|
|
20532
20532
|
for (; ho(ie.charCodeAt(P)); )
|
|
20533
20533
|
e += ie[P++];
|
|
@@ -20543,8 +20543,8 @@ function nA() {
|
|
|
20543
20543
|
for (; ho(ie.charCodeAt(P)); )
|
|
20544
20544
|
e += ie[P++];
|
|
20545
20545
|
else
|
|
20546
|
-
je({}, Gt,
|
|
20547
|
-
return Td(ie.charCodeAt(P)) && je({}, Gt,
|
|
20546
|
+
je({}, Gt, on);
|
|
20547
|
+
return Td(ie.charCodeAt(P)) && je({}, Gt, on), {
|
|
20548
20548
|
type: al,
|
|
20549
20549
|
value: parseFloat(e),
|
|
20550
20550
|
start: t,
|
|
@@ -20553,7 +20553,7 @@ function nA() {
|
|
|
20553
20553
|
}
|
|
20554
20554
|
function Qee() {
|
|
20555
20555
|
var e = "", t, n, r, i, o = !1;
|
|
20556
|
-
for (t = ie[P], Zm(t === "'" || t === '"', "String literal must starts with a quote"), n = P, ++P; P <
|
|
20556
|
+
for (t = ie[P], Zm(t === "'" || t === '"', "String literal must starts with a quote"), n = P, ++P; P < vn; )
|
|
20557
20557
|
if (r = ie[P++], r === t) {
|
|
20558
20558
|
t = "";
|
|
20559
20559
|
break;
|
|
@@ -20584,7 +20584,7 @@ function Qee() {
|
|
|
20584
20584
|
e += "\v";
|
|
20585
20585
|
break;
|
|
20586
20586
|
default:
|
|
20587
|
-
vf(r) ? (i = "01234567".indexOf(r), i !== 0 && (o = !0), P <
|
|
20587
|
+
vf(r) ? (i = "01234567".indexOf(r), i !== 0 && (o = !0), P < vn && vf(ie[P]) && (o = !0, i = i * 8 + "01234567".indexOf(ie[P++]), "0123".includes(r) && P < vn && vf(ie[P]) && (i = i * 8 + "01234567".indexOf(ie[P++]))), e += String.fromCharCode(i)) : e += r;
|
|
20588
20588
|
break;
|
|
20589
20589
|
}
|
|
20590
20590
|
else
|
|
@@ -20595,7 +20595,7 @@ function Qee() {
|
|
|
20595
20595
|
break;
|
|
20596
20596
|
e += r;
|
|
20597
20597
|
}
|
|
20598
|
-
return t !== "" && je({}, Gt,
|
|
20598
|
+
return t !== "" && je({}, Gt, on), {
|
|
20599
20599
|
type: Md,
|
|
20600
20600
|
value: e,
|
|
20601
20601
|
octal: o,
|
|
@@ -20623,7 +20623,7 @@ function ete(e, t) {
|
|
|
20623
20623
|
}
|
|
20624
20624
|
function tte() {
|
|
20625
20625
|
var e, t, n, r, i;
|
|
20626
|
-
for (e = ie[P], Zm(e === "/", "Regular expression literal must start with a slash"), t = ie[P++], n = !1, r = !1; P <
|
|
20626
|
+
for (e = ie[P], Zm(e === "/", "Regular expression literal must start with a slash"), t = ie[P++], n = !1, r = !1; P < vn; )
|
|
20627
20627
|
if (e = ie[P++], t += e, e === "\\")
|
|
20628
20628
|
e = ie[P++], jf(e.charCodeAt(0)) && je({}, ty), t += e;
|
|
20629
20629
|
else if (jf(e.charCodeAt(0)))
|
|
@@ -20641,8 +20641,8 @@ function tte() {
|
|
|
20641
20641
|
}
|
|
20642
20642
|
function nte() {
|
|
20643
20643
|
var e, t, n;
|
|
20644
|
-
for (t = "", n = ""; P <
|
|
20645
|
-
++P, e === "\\" && P <
|
|
20644
|
+
for (t = "", n = ""; P < vn && (e = ie[P], !!Sg(e.charCodeAt(0))); )
|
|
20645
|
+
++P, e === "\\" && P < vn ? je({}, Gt, on) : (n += e, t += e);
|
|
20646
20646
|
return n.search(/[^gimuy]/g) >= 0 && je({}, bb, n), {
|
|
20647
20647
|
value: n,
|
|
20648
20648
|
literal: t
|
|
@@ -20665,7 +20665,7 @@ function ite(e) {
|
|
|
20665
20665
|
return e.type === Pa || e.type === Os || e.type === Xm || e.type === Km;
|
|
20666
20666
|
}
|
|
20667
20667
|
function TR() {
|
|
20668
|
-
if (AR(), P >=
|
|
20668
|
+
if (AR(), P >= vn)
|
|
20669
20669
|
return {
|
|
20670
20670
|
type: Ad,
|
|
20671
20671
|
start: P,
|
|
@@ -20729,7 +20729,7 @@ function je(e, t) {
|
|
|
20729
20729
|
function Jm(e) {
|
|
20730
20730
|
e.type === Ad && je(e, jee), e.type === al && je(e, Pee), e.type === Md && je(e, zee), e.type === Pa && je(e, Bee), e.type === Os && je(e, Uee), je(e, Gt, e.value);
|
|
20731
20731
|
}
|
|
20732
|
-
function
|
|
20732
|
+
function xn(e) {
|
|
20733
20733
|
const t = Hn();
|
|
20734
20734
|
(t.type !== qn || t.value !== e) && Jm(t);
|
|
20735
20735
|
}
|
|
@@ -20741,8 +20741,8 @@ function ry(e) {
|
|
|
20741
20741
|
}
|
|
20742
20742
|
function cte() {
|
|
20743
20743
|
const e = [];
|
|
20744
|
-
for (P = Ke.start,
|
|
20745
|
-
rt(",") ? (Hn(), e.push(null)) : (e.push(za()), rt("]") ||
|
|
20744
|
+
for (P = Ke.start, xn("["); !rt("]"); )
|
|
20745
|
+
rt(",") ? (Hn(), e.push(null)) : (e.push(za()), rt("]") || xn(","));
|
|
20746
20746
|
return Hn(), ote(e);
|
|
20747
20747
|
}
|
|
20748
20748
|
function sA() {
|
|
@@ -20753,22 +20753,22 @@ function sA() {
|
|
|
20753
20753
|
function fte() {
|
|
20754
20754
|
var e, t, n, r;
|
|
20755
20755
|
if (P = Ke.start, e = Ke, e.type === Pa)
|
|
20756
|
-
return n = sA(),
|
|
20756
|
+
return n = sA(), xn(":"), r = za(), oA("init", n, r);
|
|
20757
20757
|
if (e.type === Ad || e.type === qn)
|
|
20758
20758
|
Jm(e);
|
|
20759
20759
|
else
|
|
20760
|
-
return t = sA(),
|
|
20760
|
+
return t = sA(), xn(":"), r = za(), oA("init", t, r);
|
|
20761
20761
|
}
|
|
20762
20762
|
function dte() {
|
|
20763
20763
|
var e = [], t, n, r, i = {}, o = String;
|
|
20764
|
-
for (P = Ke.start,
|
|
20765
|
-
t = fte(), t.key.type === SR ? n = t.key.name : n = o(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? je({}, qee) : i[r] = !0, e.push(t), rt("}") ||
|
|
20766
|
-
return
|
|
20764
|
+
for (P = Ke.start, xn("{"); !rt("}"); )
|
|
20765
|
+
t = fte(), t.key.type === SR ? n = t.key.name : n = o(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? je({}, qee) : i[r] = !0, e.push(t), rt("}") || xn(",");
|
|
20766
|
+
return xn("}"), lte(e);
|
|
20767
20767
|
}
|
|
20768
20768
|
function hte() {
|
|
20769
|
-
|
|
20769
|
+
xn("(");
|
|
20770
20770
|
const e = Ow();
|
|
20771
|
-
return
|
|
20771
|
+
return xn(")"), e;
|
|
20772
20772
|
}
|
|
20773
20773
|
const pte = {
|
|
20774
20774
|
if: 1
|
|
@@ -20794,10 +20794,10 @@ function gte() {
|
|
|
20794
20794
|
}
|
|
20795
20795
|
function mte() {
|
|
20796
20796
|
const e = [];
|
|
20797
|
-
if (
|
|
20798
|
-
for (; P <
|
|
20799
|
-
|
|
20800
|
-
return
|
|
20797
|
+
if (xn("("), !rt(")"))
|
|
20798
|
+
for (; P < vn && (e.push(za()), !rt(")")); )
|
|
20799
|
+
xn(",");
|
|
20800
|
+
return xn(")"), e;
|
|
20801
20801
|
}
|
|
20802
20802
|
function yte() {
|
|
20803
20803
|
P = Ke.start;
|
|
@@ -20805,12 +20805,12 @@ function yte() {
|
|
|
20805
20805
|
return ite(e) || Jm(e), Rw(e.value);
|
|
20806
20806
|
}
|
|
20807
20807
|
function _te() {
|
|
20808
|
-
return
|
|
20808
|
+
return xn("."), yte();
|
|
20809
20809
|
}
|
|
20810
20810
|
function bte() {
|
|
20811
|
-
|
|
20811
|
+
xn("[");
|
|
20812
20812
|
const e = Ow();
|
|
20813
|
-
return
|
|
20813
|
+
return xn("]"), e;
|
|
20814
20814
|
}
|
|
20815
20815
|
function vte() {
|
|
20816
20816
|
var e, t, n;
|
|
@@ -20914,7 +20914,7 @@ function xte() {
|
|
|
20914
20914
|
}
|
|
20915
20915
|
function za() {
|
|
20916
20916
|
var e, t, n;
|
|
20917
|
-
return e = xte(), rt("?") && (Hn(), t = za(),
|
|
20917
|
+
return e = xte(), rt("?") && (Hn(), t = za(), xn(":"), n = za(), e = ate(e, t, n)), e;
|
|
20918
20918
|
}
|
|
20919
20919
|
function Ow() {
|
|
20920
20920
|
const e = za();
|
|
@@ -20923,7 +20923,7 @@ function Ow() {
|
|
|
20923
20923
|
return e;
|
|
20924
20924
|
}
|
|
20925
20925
|
function Lw(e) {
|
|
20926
|
-
ie = e, P = 0,
|
|
20926
|
+
ie = e, P = 0, vn = ie.length, Ke = null, NR();
|
|
20927
20927
|
const t = Ow();
|
|
20928
20928
|
if (Ke.type !== Ad)
|
|
20929
20929
|
throw new Error("Unexpect token after expression.");
|
|
@@ -21091,7 +21091,7 @@ function OR(e) {
|
|
|
21091
21091
|
const Iw = "intersect", cA = "union", Ete = "vlMulti", Cte = "vlPoint", fA = "or", kte = "and", $i = "_vgsid_", qf = Nr($i), Ste = "E", $te = "R", Ate = "R-E", Mte = "R-LE", Tte = "R-RE", Nte = "E-LT", Fte = "E-LTE", Dte = "E-GT", Rte = "E-GTE", Ote = "E-VALID", Lte = "E-ONE", $g = "index:unit";
|
|
21092
21092
|
function dA(e, t) {
|
|
21093
21093
|
for (var n = t.fields, r = t.values, i = n.length, o = 0, s, a; o < i; ++o)
|
|
21094
|
-
if (a = n[o], s = OR(a)(e), cs(s) && (s =
|
|
21094
|
+
if (a = n[o], s = OR(a)(e), cs(s) && (s = gn(s)), cs(r[o]) && (r[o] = gn(r[o])), B(r[o]) && cs(r[o][0]) && (r[o] = r[o].map(gn)), a.type === Ste) {
|
|
21095
21095
|
if (B(r[o]) ? !r[o].includes(s) : s !== r[o])
|
|
21096
21096
|
return !1;
|
|
21097
21097
|
} else if (a.type === $te) {
|
|
@@ -21178,11 +21178,11 @@ var iy = {
|
|
|
21178
21178
|
return e.length ? e.filter((n) => t.includes(n)) : t;
|
|
21179
21179
|
},
|
|
21180
21180
|
R_union: function(e, t) {
|
|
21181
|
-
var n =
|
|
21181
|
+
var n = gn(t[0]), r = gn(t[1]);
|
|
21182
21182
|
return n > r && (n = t[1], r = t[0]), e.length ? (e[0] > n && (e[0] = n), e[1] < r && (e[1] = r), e) : [n, r];
|
|
21183
21183
|
},
|
|
21184
21184
|
R_intersect: function(e, t) {
|
|
21185
|
-
var n =
|
|
21185
|
+
var n = gn(t[0]), r = gn(t[1]);
|
|
21186
21186
|
return n > r && (n = t[1], r = t[0]), e.length ? r < e[0] || e[1] < n ? [] : (e[0] < n && (e[0] = n), e[1] > r && (e[1] = r), e) : [n, r];
|
|
21187
21187
|
}
|
|
21188
21188
|
};
|
|
@@ -21436,7 +21436,7 @@ function Rne(e, t, n) {
|
|
|
21436
21436
|
function One(e, t, n, r, i) {
|
|
21437
21437
|
e = Qi(e, (i || this).context);
|
|
21438
21438
|
const o = FF(t, n);
|
|
21439
|
-
let s = e.domain(), a = s[0], l = ze(s), u =
|
|
21439
|
+
let s = e.domain(), a = s[0], l = ze(s), u = wn;
|
|
21440
21440
|
return l - a ? u = vF(e, a, l) : e = (e.interpolator ? He("sequential")().interpolator(e.interpolator()) : He("linear")().interpolate(e.interpolate()).range(e.range())).domain([a = 0, l = 1]), e.ticks && (s = e.ticks(+r || 15), a !== s[0] && s.unshift(a), l !== ze(s) && s.push(l)), s.forEach((c) => o.stop(u(c), e(c))), o;
|
|
21441
21441
|
}
|
|
21442
21442
|
function Lne(e, t, n) {
|
|
@@ -21552,7 +21552,7 @@ const Wf = {
|
|
|
21552
21552
|
return Tv(e);
|
|
21553
21553
|
},
|
|
21554
21554
|
// suppress extra arguments
|
|
21555
|
-
toNumber:
|
|
21555
|
+
toNumber: gn,
|
|
21556
21556
|
toString: Nv,
|
|
21557
21557
|
indexof: wne,
|
|
21558
21558
|
join: xne,
|
|
@@ -22099,8 +22099,8 @@ function Mre(e, t, n) {
|
|
|
22099
22099
|
return a;
|
|
22100
22100
|
}
|
|
22101
22101
|
return {
|
|
22102
|
-
view:
|
|
22103
|
-
item:
|
|
22102
|
+
view: En(e),
|
|
22103
|
+
item: En(t || {}),
|
|
22104
22104
|
group: i,
|
|
22105
22105
|
xy: o,
|
|
22106
22106
|
x: (s) => o(s)[0],
|
|
@@ -22789,7 +22789,7 @@ function AA(e, t, n, r) {
|
|
|
22789
22789
|
value: n
|
|
22790
22790
|
}, 1) : 0;
|
|
22791
22791
|
}
|
|
22792
|
-
function
|
|
22792
|
+
function an(e, t, n) {
|
|
22793
22793
|
for (const r in t)
|
|
22794
22794
|
AA(e, r, t[r]);
|
|
22795
22795
|
for (const r in n)
|
|
@@ -22960,14 +22960,14 @@ function o0(e, t) {
|
|
|
22960
22960
|
return (e && e.signal ? "$" + e.signal : e || "") + (e && t ? "_" : "") + (t && t.signal ? "$" + t.signal : t || "");
|
|
22961
22961
|
}
|
|
22962
22962
|
const Zw = "scope", Ab = "view";
|
|
22963
|
-
function
|
|
22963
|
+
function zt(e) {
|
|
22964
22964
|
return e && e.signal;
|
|
22965
22965
|
}
|
|
22966
22966
|
function ioe(e) {
|
|
22967
22967
|
return e && e.expr;
|
|
22968
22968
|
}
|
|
22969
22969
|
function up(e) {
|
|
22970
|
-
if (
|
|
22970
|
+
if (zt(e)) return !0;
|
|
22971
22971
|
if (J(e)) {
|
|
22972
22972
|
for (const t in e)
|
|
22973
22973
|
if (up(e[t])) return !0;
|
|
@@ -23296,7 +23296,7 @@ function fse(e, t, n, r) {
|
|
|
23296
23296
|
opacity: Ue
|
|
23297
23297
|
}
|
|
23298
23298
|
};
|
|
23299
|
-
return
|
|
23299
|
+
return an(h, {
|
|
23300
23300
|
stroke: i("gradientStrokeColor"),
|
|
23301
23301
|
strokeWidth: i("gradientStrokeWidth")
|
|
23302
23302
|
}, {
|
|
@@ -23335,7 +23335,7 @@ function dse(e, t, n, r, i) {
|
|
|
23335
23335
|
opacity: Ue
|
|
23336
23336
|
}
|
|
23337
23337
|
};
|
|
23338
|
-
return
|
|
23338
|
+
return an(g, {
|
|
23339
23339
|
stroke: o("gradientStrokeColor"),
|
|
23340
23340
|
strokeWidth: o("gradientStrokeWidth")
|
|
23341
23341
|
}, {
|
|
@@ -23367,7 +23367,7 @@ function RA(e, t, n, r) {
|
|
|
23367
23367
|
opacity: Ue
|
|
23368
23368
|
}
|
|
23369
23369
|
};
|
|
23370
|
-
return
|
|
23370
|
+
return an(p, {
|
|
23371
23371
|
fill: i("labelColor"),
|
|
23372
23372
|
fillOpacity: i("labelOpacity"),
|
|
23373
23373
|
font: i("labelFont"),
|
|
@@ -23427,7 +23427,7 @@ function gse(e, t, n, r, i) {
|
|
|
23427
23427
|
}
|
|
23428
23428
|
};
|
|
23429
23429
|
let x = null, E = null;
|
|
23430
|
-
e.fill || (x = t.symbolBaseFillColor, E = t.symbolBaseStrokeColor),
|
|
23430
|
+
e.fill || (x = t.symbolBaseFillColor, E = t.symbolBaseStrokeColor), an(m, {
|
|
23431
23431
|
fill: o("symbolFillColor", x),
|
|
23432
23432
|
shape: o("symbolType"),
|
|
23433
23433
|
size: o("symbolSize"),
|
|
@@ -23472,7 +23472,7 @@ function gse(e, t, n, r, i) {
|
|
|
23472
23472
|
exit: {
|
|
23473
23473
|
opacity: Ue
|
|
23474
23474
|
}
|
|
23475
|
-
},
|
|
23475
|
+
}, an(m, {
|
|
23476
23476
|
align: o("labelAlign"),
|
|
23477
23477
|
baseline: o("labelBaseline"),
|
|
23478
23478
|
fill: o("labelColor"),
|
|
@@ -23571,7 +23571,7 @@ function Cse(e, t, n, r) {
|
|
|
23571
23571
|
opacity: Ue
|
|
23572
23572
|
}
|
|
23573
23573
|
};
|
|
23574
|
-
return
|
|
23574
|
+
return an(o, {
|
|
23575
23575
|
orient: i("titleOrient"),
|
|
23576
23576
|
_anchor: i("titleAnchor"),
|
|
23577
23577
|
anchor: {
|
|
@@ -23658,11 +23658,11 @@ function Ase(e, t, n) {
|
|
|
23658
23658
|
if (r === "projection")
|
|
23659
23659
|
return n.projectionRef(t[e.name]);
|
|
23660
23660
|
}
|
|
23661
|
-
return e.array && !
|
|
23661
|
+
return e.array && !zt(i) ? i.map((o) => LA(e, o, n)) : LA(e, i, n);
|
|
23662
23662
|
}
|
|
23663
23663
|
function LA(e, t, n) {
|
|
23664
23664
|
const r = e.type;
|
|
23665
|
-
if (
|
|
23665
|
+
if (zt(t))
|
|
23666
23666
|
return PA(r) ? I("Expression references can not be signals.") : uy(r) ? n.fieldRef(t) : zA(r) ? n.compareRef(t) : n.signalRef(t.signal);
|
|
23667
23667
|
{
|
|
23668
23668
|
const i = e.expr || uy(r);
|
|
@@ -23866,15 +23866,15 @@ function c0(e, t) {
|
|
|
23866
23866
|
}
|
|
23867
23867
|
function Ise(e, t, n) {
|
|
23868
23868
|
const r = e.method, i = e.bound, o = e.separation, s = {
|
|
23869
|
-
separation:
|
|
23870
|
-
method:
|
|
23869
|
+
separation: zt(o) ? n.signalRef(o.signal) : o,
|
|
23870
|
+
method: zt(r) ? n.signalRef(r.signal) : r,
|
|
23871
23871
|
pulse: t
|
|
23872
23872
|
};
|
|
23873
23873
|
if (e.order && (s.sort = n.compareRef({
|
|
23874
23874
|
field: e.order
|
|
23875
23875
|
})), i) {
|
|
23876
23876
|
const a = i.tolerance;
|
|
23877
|
-
s.boundTolerance =
|
|
23877
|
+
s.boundTolerance = zt(a) ? n.signalRef(a.signal) : +a, s.boundScale = n.scaleRef(i.scale), s.boundOrient = i.orient;
|
|
23878
23878
|
}
|
|
23879
23879
|
return le(n.add(Soe(s)));
|
|
23880
23880
|
}
|
|
@@ -23938,7 +23938,7 @@ function Use(e, t, n) {
|
|
|
23938
23938
|
enter: {},
|
|
23939
23939
|
update: {}
|
|
23940
23940
|
};
|
|
23941
|
-
return
|
|
23941
|
+
return an(r, {
|
|
23942
23942
|
orient: e("orient"),
|
|
23943
23943
|
offset: e("offset"),
|
|
23944
23944
|
padding: e("padding"),
|
|
@@ -23997,7 +23997,7 @@ function Vse(e, t) {
|
|
|
23997
23997
|
enter: {},
|
|
23998
23998
|
update: {}
|
|
23999
23999
|
};
|
|
24000
|
-
return
|
|
24000
|
+
return an(n, {
|
|
24001
24001
|
orient: e("orient"),
|
|
24002
24002
|
anchor: e("anchor"),
|
|
24003
24003
|
align: {
|
|
@@ -24028,7 +24028,7 @@ function Yse(e, t, n, r) {
|
|
|
24028
24028
|
opacity: i
|
|
24029
24029
|
}
|
|
24030
24030
|
};
|
|
24031
|
-
return
|
|
24031
|
+
return an(s, {
|
|
24032
24032
|
text: o,
|
|
24033
24033
|
align: {
|
|
24034
24034
|
signal: "item.mark.group.align"
|
|
@@ -24077,7 +24077,7 @@ function Xse(e, t, n, r) {
|
|
|
24077
24077
|
opacity: i
|
|
24078
24078
|
}
|
|
24079
24079
|
};
|
|
24080
|
-
return
|
|
24080
|
+
return an(s, {
|
|
24081
24081
|
text: o,
|
|
24082
24082
|
align: {
|
|
24083
24083
|
signal: "item.mark.group.align"
|
|
@@ -24121,7 +24121,7 @@ function Kse(e, t) {
|
|
|
24121
24121
|
function Zse(e, t, n) {
|
|
24122
24122
|
const r = [];
|
|
24123
24123
|
let i = null, o = !1, s = !1, a, l, u, c, f;
|
|
24124
|
-
for (e.values ?
|
|
24124
|
+
for (e.values ? zt(e.values) || up(e.format) ? (r.push(jA(t, e)), r.push(i = Ks())) : r.push(i = Ks({
|
|
24125
24125
|
$ingest: e.values,
|
|
24126
24126
|
$format: e.format
|
|
24127
24127
|
})) : e.url ? up(e.url) || up(e.format) ? (r.push(jA(t, e)), r.push(i = Ks())) : r.push(i = Ks({
|
|
@@ -24148,11 +24148,11 @@ function jA(e, t) {
|
|
|
24148
24148
|
format: e.objectProperty(t.format)
|
|
24149
24149
|
});
|
|
24150
24150
|
}
|
|
24151
|
-
const z8 = (e) => e === ks || e === hi, f0 = (e, t, n) =>
|
|
24151
|
+
const z8 = (e) => e === ks || e === hi, f0 = (e, t, n) => zt(e) ? tae(e.signal, t, n) : e === Qu || e === hi ? t : n, Yt = (e, t, n) => zt(e) ? Qse(e.signal, t, n) : z8(e) ? t : n, ni = (e, t, n) => zt(e) ? eae(e.signal, t, n) : z8(e) ? n : t, B8 = (e, t, n) => zt(e) ? nae(e.signal, t, n) : e === hi ? {
|
|
24152
24152
|
value: t
|
|
24153
24153
|
} : {
|
|
24154
24154
|
value: n
|
|
24155
|
-
}, Jse = (e, t, n) =>
|
|
24155
|
+
}, Jse = (e, t, n) => zt(e) ? rae(e.signal, t, n) : e === ec ? {
|
|
24156
24156
|
value: t
|
|
24157
24157
|
} : {
|
|
24158
24158
|
value: n
|
|
@@ -24164,7 +24164,7 @@ const z8 = (e) => e === ks || e === hi, f0 = (e, t, n) => Pt(e) ? tae(e.signal,
|
|
|
24164
24164
|
signal: `${e} ? (${Ul(t)}) : (${Ul(n)})`
|
|
24165
24165
|
}), iae = (e, t, n, r, i) => ({
|
|
24166
24166
|
signal: (r != null ? `${e} === '${Qu}' ? (${Ul(r)}) : ` : "") + (n != null ? `${e} === '${ks}' ? (${Ul(n)}) : ` : "") + (i != null ? `${e} === '${ec}' ? (${Ul(i)}) : ` : "") + (t != null ? `${e} === '${hi}' ? (${Ul(t)}) : ` : "") + "(null)"
|
|
24167
|
-
}), Ul = (e) =>
|
|
24167
|
+
}), Ul = (e) => zt(e) ? e.signal : e == null ? null : Y(e), oae = (e, t) => t === 0 ? 0 : zt(e) ? {
|
|
24168
24168
|
signal: `(${e.signal}) * ${t}`
|
|
24169
24169
|
} : {
|
|
24170
24170
|
value: e * t
|
|
@@ -24213,7 +24213,7 @@ function WA(e) {
|
|
|
24213
24213
|
}
|
|
24214
24214
|
function sae(e, t) {
|
|
24215
24215
|
var n = t.config, r = n.style, i = n.axis, o = t.scaleType(e.scale) === "band" && n.axisBand, s = e.orient, a, l, u;
|
|
24216
|
-
if (
|
|
24216
|
+
if (zt(s)) {
|
|
24217
24217
|
const f = WA([n.axisX, n.axisY]), d = WA([n.axisTop, n.axisBottom, n.axisLeft, n.axisRight]);
|
|
24218
24218
|
a = {};
|
|
24219
24219
|
for (u of f)
|
|
@@ -24239,7 +24239,7 @@ function aae(e, t, n, r) {
|
|
|
24239
24239
|
opacity: Ue
|
|
24240
24240
|
}
|
|
24241
24241
|
};
|
|
24242
|
-
|
|
24242
|
+
an(l, {
|
|
24243
24243
|
stroke: i("domainColor"),
|
|
24244
24244
|
strokeCap: i("domainCap"),
|
|
24245
24245
|
strokeDash: i("domainDash"),
|
|
@@ -24275,7 +24275,7 @@ function lae(e, t, n, r, i) {
|
|
|
24275
24275
|
opacity: Ue
|
|
24276
24276
|
}
|
|
24277
24277
|
};
|
|
24278
|
-
|
|
24278
|
+
an(h, {
|
|
24279
24279
|
stroke: o("gridColor"),
|
|
24280
24280
|
strokeCap: o("gridCap"),
|
|
24281
24281
|
strokeDash: o("gridDash"),
|
|
@@ -24321,7 +24321,7 @@ function lae(e, t, n, r, i) {
|
|
|
24321
24321
|
}
|
|
24322
24322
|
function uae(e, t) {
|
|
24323
24323
|
if (t !== 1) if (!J(e))
|
|
24324
|
-
e =
|
|
24324
|
+
e = zt(t) ? {
|
|
24325
24325
|
signal: `(${t.signal}) * (${e || 0})`
|
|
24326
24326
|
} : t * (e || 0);
|
|
24327
24327
|
else {
|
|
@@ -24330,7 +24330,7 @@ function uae(e, t) {
|
|
|
24330
24330
|
if (J(n.mult))
|
|
24331
24331
|
n = n.mult = Se({}, n.mult);
|
|
24332
24332
|
else
|
|
24333
|
-
return n.mult =
|
|
24333
|
+
return n.mult = zt(t) ? {
|
|
24334
24334
|
signal: `(${n.mult}) * (${t.signal})`
|
|
24335
24335
|
} : n.mult * t, e;
|
|
24336
24336
|
n.mult = t;
|
|
@@ -24351,7 +24351,7 @@ function cae(e, t, n, r, i, o) {
|
|
|
24351
24351
|
opacity: Ue
|
|
24352
24352
|
}
|
|
24353
24353
|
};
|
|
24354
|
-
|
|
24354
|
+
an(d, {
|
|
24355
24355
|
stroke: s("tickColor"),
|
|
24356
24356
|
strokeCap: s("tickCap"),
|
|
24357
24357
|
strokeDash: s("tickDash"),
|
|
@@ -24420,10 +24420,10 @@ function fae(e, t, n, r, i, o) {
|
|
|
24420
24420
|
y: x.y
|
|
24421
24421
|
}
|
|
24422
24422
|
};
|
|
24423
|
-
|
|
24423
|
+
an(E, {
|
|
24424
24424
|
dx: !d && p ? Yt(a, v) : null,
|
|
24425
24425
|
dy: !h && p ? ni(a, v) : null
|
|
24426
|
-
}),
|
|
24426
|
+
}), an(E, {
|
|
24427
24427
|
angle: s("labelAngle"),
|
|
24428
24428
|
fill: s("labelColor"),
|
|
24429
24429
|
fillOpacity: s("labelOpacity"),
|
|
@@ -24481,7 +24481,7 @@ function dae(e, t, n, r) {
|
|
|
24481
24481
|
};
|
|
24482
24482
|
return l.x = Yt(o, c), l.y = ni(o, c), a.angle = Yt(o, Ue, oae(s, 90)), a.baseline = Yt(o, B8(o, ks, hi), {
|
|
24483
24483
|
value: ks
|
|
24484
|
-
}), l.angle = a.angle, l.baseline = a.baseline,
|
|
24484
|
+
}), l.angle = a.angle, l.baseline = a.baseline, an(u, {
|
|
24485
24485
|
fill: i("titleColor"),
|
|
24486
24486
|
fillOpacity: i("titleOpacity"),
|
|
24487
24487
|
font: i("titleFont"),
|
|
@@ -24543,7 +24543,7 @@ function gae(e, t) {
|
|
|
24543
24543
|
enter: {},
|
|
24544
24544
|
update: {}
|
|
24545
24545
|
};
|
|
24546
|
-
return
|
|
24546
|
+
return an(n, {
|
|
24547
24547
|
orient: e("orient"),
|
|
24548
24548
|
offset: e("offset") || 0,
|
|
24549
24549
|
position: Vr(t.position, 0),
|
|
@@ -24725,7 +24725,7 @@ q8.prototype = GA.prototype = {
|
|
|
24725
24725
|
},
|
|
24726
24726
|
compareRef(e) {
|
|
24727
24727
|
let t = !1;
|
|
24728
|
-
const n = (o) =>
|
|
24728
|
+
const n = (o) => zt(o) ? (t = !0, this.signalRef(o.signal)) : ioe(o) ? (t = !0, this.exprRef(o.expr)) : o, r = ee(e.field).map(n), i = ee(e.order).map(n);
|
|
24729
24729
|
return t ? le(this.add(FA({
|
|
24730
24730
|
fields: r,
|
|
24731
24731
|
orders: i
|
|
@@ -24733,7 +24733,7 @@ q8.prototype = GA.prototype = {
|
|
|
24733
24733
|
},
|
|
24734
24734
|
keyRef(e, t) {
|
|
24735
24735
|
let n = !1;
|
|
24736
|
-
const r = (o) =>
|
|
24736
|
+
const r = (o) => zt(o) ? (n = !0, le(i[o.signal])) : o, i = this.signals;
|
|
24737
24737
|
return e = ee(e).map(r), n ? le(this.add(voe({
|
|
24738
24738
|
fields: e,
|
|
24739
24739
|
flat: t
|
|
@@ -25080,7 +25080,7 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
25080
25080
|
CanvasHandler: Ed,
|
|
25081
25081
|
CanvasRenderer: Gp,
|
|
25082
25082
|
DATE: Xn,
|
|
25083
|
-
DAY:
|
|
25083
|
+
DAY: pn,
|
|
25084
25084
|
DAYOFYEAR: Ui,
|
|
25085
25085
|
Dataflow: ql,
|
|
25086
25086
|
Debug: BT,
|
|
@@ -25097,7 +25097,7 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
25097
25097
|
Item: Dm,
|
|
25098
25098
|
MILLISECONDS: oi,
|
|
25099
25099
|
MINUTES: yr,
|
|
25100
|
-
MONTH:
|
|
25100
|
+
MONTH: bn,
|
|
25101
25101
|
Marks: _r,
|
|
25102
25102
|
MultiPulse: Hv,
|
|
25103
25103
|
None: PT,
|
|
@@ -25116,11 +25116,11 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
25116
25116
|
TIME_UNITS: Ov,
|
|
25117
25117
|
Transform: L,
|
|
25118
25118
|
View: a8,
|
|
25119
|
-
WEEK:
|
|
25119
|
+
WEEK: It,
|
|
25120
25120
|
Warn: xv,
|
|
25121
|
-
YEAR:
|
|
25121
|
+
YEAR: sn,
|
|
25122
25122
|
accessor: er,
|
|
25123
|
-
accessorFields:
|
|
25123
|
+
accessorFields: _n,
|
|
25124
25124
|
accessorName: _t,
|
|
25125
25125
|
array: ee,
|
|
25126
25126
|
ascending: Bu,
|
|
@@ -25136,7 +25136,7 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
25136
25136
|
clampRange: ZT,
|
|
25137
25137
|
codegenExpression: RR,
|
|
25138
25138
|
compare: kv,
|
|
25139
|
-
constant:
|
|
25139
|
+
constant: En,
|
|
25140
25140
|
cumulativeLogNormal: tx,
|
|
25141
25141
|
cumulativeNormal: hm,
|
|
25142
25142
|
cumulativeUniform: ox,
|
|
@@ -25147,7 +25147,7 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
25147
25147
|
densityLogNormal: ex,
|
|
25148
25148
|
densityNormal: Kv,
|
|
25149
25149
|
densityUniform: ix,
|
|
25150
|
-
domChild:
|
|
25150
|
+
domChild: Lt,
|
|
25151
25151
|
domClear: Er,
|
|
25152
25152
|
domCreate: ns,
|
|
25153
25153
|
domFind: T2,
|
|
@@ -25169,7 +25169,7 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
25169
25169
|
formats: qv,
|
|
25170
25170
|
hasOwnProperty: ne,
|
|
25171
25171
|
id: rd,
|
|
25172
|
-
identity:
|
|
25172
|
+
identity: wn,
|
|
25173
25173
|
inferType: oN,
|
|
25174
25174
|
inferTypes: sN,
|
|
25175
25175
|
ingest: Ge,
|
|
@@ -25285,7 +25285,7 @@ const Cae = Eae, kae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
25285
25285
|
timeUnits: Lv,
|
|
25286
25286
|
toBoolean: Mv,
|
|
25287
25287
|
toDate: Tv,
|
|
25288
|
-
toNumber:
|
|
25288
|
+
toNumber: gn,
|
|
25289
25289
|
toSet: ii,
|
|
25290
25290
|
toString: Nv,
|
|
25291
25291
|
transform: yN,
|
|
@@ -25718,7 +25718,7 @@ function tc(e) {
|
|
|
25718
25718
|
function wu(e) {
|
|
25719
25719
|
return e ? Vi(e).length : 0;
|
|
25720
25720
|
}
|
|
25721
|
-
function
|
|
25721
|
+
function kt(...e) {
|
|
25722
25722
|
return e.find((t) => t !== void 0);
|
|
25723
25723
|
}
|
|
25724
25724
|
let X8 = 42;
|
|
@@ -26039,7 +26039,7 @@ const Kae = q(yE), {
|
|
|
26039
26039
|
x: 1,
|
|
26040
26040
|
y: 1
|
|
26041
26041
|
}, jo = q(xE);
|
|
26042
|
-
function
|
|
26042
|
+
function St(e) {
|
|
26043
26043
|
return ne(xE, e);
|
|
26044
26044
|
}
|
|
26045
26045
|
const wE = {
|
|
@@ -26334,7 +26334,7 @@ function fO(e) {
|
|
|
26334
26334
|
function nt(e) {
|
|
26335
26335
|
return e === !0 || dl(e) && !e.binned;
|
|
26336
26336
|
}
|
|
26337
|
-
function
|
|
26337
|
+
function Qt(e) {
|
|
26338
26338
|
return e === "binned" || dl(e) && e.binned === !0;
|
|
26339
26339
|
}
|
|
26340
26340
|
function dl(e) {
|
|
@@ -26370,10 +26370,10 @@ function YA(e) {
|
|
|
26370
26370
|
function Pd(e) {
|
|
26371
26371
|
return W(e, "expr");
|
|
26372
26372
|
}
|
|
26373
|
-
function
|
|
26373
|
+
function en(e, { level: t } = { level: 0 }) {
|
|
26374
26374
|
const n = q(e || {}), r = {};
|
|
26375
26375
|
for (const i of n)
|
|
26376
|
-
r[i] = t === 0 ? or(e[i]) :
|
|
26376
|
+
r[i] = t === 0 ? or(e[i]) : en(e[i], { level: t - 1 });
|
|
26377
26377
|
return r;
|
|
26378
26378
|
}
|
|
26379
26379
|
function dO(e) {
|
|
@@ -26576,7 +26576,7 @@ function Ye(e, t, n, r = {}) {
|
|
|
26576
26576
|
}
|
|
26577
26577
|
function Wi(e, t, n, { vgChannel: r } = {}) {
|
|
26578
26578
|
const i = Ib(e, t, n.style);
|
|
26579
|
-
return
|
|
26579
|
+
return kt(
|
|
26580
26580
|
// style config has highest precedence
|
|
26581
26581
|
r ? i : void 0,
|
|
26582
26582
|
i,
|
|
@@ -27155,7 +27155,7 @@ function PO(e, t = !0) {
|
|
|
27155
27155
|
if (Wue(e))
|
|
27156
27156
|
return E0(a, e.valid);
|
|
27157
27157
|
if (IE(e)) {
|
|
27158
|
-
const { range: l } =
|
|
27158
|
+
const { range: l } = en(e), u = se(l) ? { signal: `${l.signal}[0]` } : l[0], c = se(l) ? { signal: `${l.signal}[1]` } : l[1];
|
|
27159
27159
|
if (u !== null && c !== null && t)
|
|
27160
27160
|
return `inrange(${a}, [${wi(u, i)}, ${wi(c, i)}])`;
|
|
27161
27161
|
const f = [];
|
|
@@ -27206,7 +27206,7 @@ function Yue(e) {
|
|
|
27206
27206
|
return "geojson";
|
|
27207
27207
|
}
|
|
27208
27208
|
}
|
|
27209
|
-
const
|
|
27209
|
+
const tn = {
|
|
27210
27210
|
// Continuous - Quantitative
|
|
27211
27211
|
LINEAR: "linear",
|
|
27212
27212
|
LOG: "log",
|
|
@@ -27455,7 +27455,7 @@ function WO(e, t) {
|
|
|
27455
27455
|
}
|
|
27456
27456
|
}
|
|
27457
27457
|
function sce(e, t) {
|
|
27458
|
-
return Re([BE, UE], t) ? e === void 0 || bt(e) : t === Cu ? Re([
|
|
27458
|
+
return Re([BE, UE], t) ? e === void 0 || bt(e) : t === Cu ? Re([tn.TIME, tn.UTC, void 0], e) : t === Ha ? UO(e) || ku(e) || e === void 0 : !0;
|
|
27459
27459
|
}
|
|
27460
27460
|
function ace(e, t, n = !1) {
|
|
27461
27461
|
if (!io(e))
|
|
@@ -27691,7 +27691,7 @@ function Ace({ scaleName: e, fieldDef: t }) {
|
|
|
27691
27691
|
}
|
|
27692
27692
|
function YE({ channel: e, channelDef: t, channel2Def: n, markDef: r, config: i, scaleName: o, scale: s, stack: a, offset: l, defaultRef: u, bandPosition: c }) {
|
|
27693
27693
|
if (t) {
|
|
27694
|
-
if (
|
|
27694
|
+
if (ve(t)) {
|
|
27695
27695
|
const f = s?.get("type");
|
|
27696
27696
|
if (Pn(t)) {
|
|
27697
27697
|
c ??= As({
|
|
@@ -27705,7 +27705,7 @@ function YE({ channel: e, channelDef: t, channel2Def: n, markDef: r, config: i,
|
|
|
27705
27705
|
return a?.impute ? Ca(t, o, { binSuffix: "mid" }, { offset: l }) : c && !bt(f) ? Ig({ scaleName: o, fieldOrDatumDef: t, bandPosition: c, offset: l }) : Ca(t, o, Wd(t, e) ? { binSuffix: "range" } : {}, {
|
|
27706
27706
|
offset: l
|
|
27707
27707
|
});
|
|
27708
|
-
if (
|
|
27708
|
+
if (Qt(d)) {
|
|
27709
27709
|
if (G(n))
|
|
27710
27710
|
return Ig({
|
|
27711
27711
|
scaleName: o,
|
|
@@ -27799,7 +27799,7 @@ function XE({ fieldOrDatumDef: e, format: t, formatType: n, expr: r, normalizeSt
|
|
|
27799
27799
|
format: t,
|
|
27800
27800
|
formatType: o.timeFormatType,
|
|
27801
27801
|
rawTimeFormat: o.timeFormat,
|
|
27802
|
-
isUTCScale: c || ml(e) && e.scale?.type ===
|
|
27802
|
+
isUTCScale: c || ml(e) && e.scale?.type === tn.UTC
|
|
27803
27803
|
});
|
|
27804
27804
|
return f ? { signal: f } : void 0;
|
|
27805
27805
|
}
|
|
@@ -27929,7 +27929,7 @@ function ZE(e) {
|
|
|
27929
27929
|
return W(e, "sort");
|
|
27930
27930
|
}
|
|
27931
27931
|
function As({ fieldDef: e, fieldDef2: t, markDef: n, config: r }) {
|
|
27932
|
-
if (
|
|
27932
|
+
if (ve(e) && e.bandPosition !== void 0)
|
|
27933
27933
|
return e.bandPosition;
|
|
27934
27934
|
if (G(e)) {
|
|
27935
27935
|
const { timeUnit: i, bin: o } = e;
|
|
@@ -27970,7 +27970,7 @@ function T0(e) {
|
|
|
27970
27970
|
}
|
|
27971
27971
|
function qd(e) {
|
|
27972
27972
|
const t = e?.condition;
|
|
27973
|
-
return !!t && !B(t) &&
|
|
27973
|
+
return !!t && !B(t) && ve(t);
|
|
27974
27974
|
}
|
|
27975
27975
|
function Oce(e) {
|
|
27976
27976
|
const t = e?.condition;
|
|
@@ -27994,7 +27994,7 @@ function f3(e) {
|
|
|
27994
27994
|
function Pg(e) {
|
|
27995
27995
|
return oo(e) && qe(e.datum);
|
|
27996
27996
|
}
|
|
27997
|
-
function
|
|
27997
|
+
function ve(e) {
|
|
27998
27998
|
return G(e) || oo(e);
|
|
27999
27999
|
}
|
|
28000
28000
|
function Pn(e) {
|
|
@@ -28104,7 +28104,7 @@ function Kl(e, t, { allowDisabling: n, includeDefault: r = !0 }) {
|
|
|
28104
28104
|
if (!G(e))
|
|
28105
28105
|
return i ?? e.title;
|
|
28106
28106
|
const o = e, s = r ? QE(o, t) : void 0;
|
|
28107
|
-
return n ?
|
|
28107
|
+
return n ? kt(i, o.title, s) : i ?? o.title ?? s;
|
|
28108
28108
|
}
|
|
28109
28109
|
function JE(e) {
|
|
28110
28110
|
if ($u(e) && e.axis)
|
|
@@ -28163,8 +28163,8 @@ function ui(e) {
|
|
|
28163
28163
|
if (T0(e))
|
|
28164
28164
|
return e.condition;
|
|
28165
28165
|
}
|
|
28166
|
-
function
|
|
28167
|
-
if (
|
|
28166
|
+
function Pt(e) {
|
|
28167
|
+
if (ve(e))
|
|
28168
28168
|
return e;
|
|
28169
28169
|
if (qd(e))
|
|
28170
28170
|
return e.condition;
|
|
@@ -28174,7 +28174,7 @@ function d9(e, t, n, r = {}) {
|
|
|
28174
28174
|
const i = Q(e) ? "string" : qe(e) ? "number" : "boolean";
|
|
28175
28175
|
return H(jle(t, i, e)), { value: e };
|
|
28176
28176
|
}
|
|
28177
|
-
return
|
|
28177
|
+
return ve(e) ? Bg(e, t, n, r) : qd(e) ? {
|
|
28178
28178
|
...e,
|
|
28179
28179
|
// Need to cast as normalizeFieldDef normally return FieldDef, but here we know that it is definitely Condition<FieldDef>
|
|
28180
28180
|
condition: Bg(e.condition, t, n, r)
|
|
@@ -28204,7 +28204,7 @@ function Wce(e) {
|
|
|
28204
28204
|
}
|
|
28205
28205
|
function eC(e, t, { compositeMark: n = !1 } = {}) {
|
|
28206
28206
|
const { aggregate: r, timeUnit: i, bin: o, field: s } = e, a = { ...e };
|
|
28207
|
-
if (!n && r && !CE(r) && !qs(r) && !Do(r) && (H(Wle(r)), delete a.aggregate), i && (a.timeUnit = Xt(i)), s && (a.field = `${s}`), nt(o) && (a.bin = N0(o, t)),
|
|
28207
|
+
if (!n && r && !CE(r) && !qs(r) && !Do(r) && (H(Wle(r)), delete a.aggregate), i && (a.timeUnit = Xt(i)), s && (a.field = `${s}`), nt(o) && (a.bin = N0(o, t)), Qt(o) && !St(t) && H(Eue(t)), Pn(a)) {
|
|
28208
28208
|
const { type: l } = a, u = Yue(l);
|
|
28209
28209
|
l !== u && (a.type = u), l !== "quantitative" && b0(r) && (H(qle(l, r)), a.type = "quantitative");
|
|
28210
28210
|
} else if (!oO(t)) {
|
|
@@ -28646,7 +28646,7 @@ function y9(e, t) {
|
|
|
28646
28646
|
return n ? B(n) ? vu(n, (r) => !!r.field) : G(n) || oo(n) || qd(n) : !1;
|
|
28647
28647
|
}
|
|
28648
28648
|
function _9(e, t) {
|
|
28649
|
-
if (
|
|
28649
|
+
if (St(t)) {
|
|
28650
28650
|
const n = e[t];
|
|
28651
28651
|
if ((G(n) || oo(n)) && (zE(n.type) || G(n) && n.timeUnit)) {
|
|
28652
28652
|
const r = bE(t);
|
|
@@ -28694,7 +28694,7 @@ function v9(e, t) {
|
|
|
28694
28694
|
u && (b.field = u), o.push(b);
|
|
28695
28695
|
}
|
|
28696
28696
|
} else if (n.push(m), Pn(a) && nt(f)) {
|
|
28697
|
-
if (r.push({ bin: f, field: u, as: m }), n.push(K(a, { binSuffix: "end" })), Wd(a, l) && n.push(K(a, { binSuffix: "range" })),
|
|
28697
|
+
if (r.push({ bin: f, field: u, as: m }), n.push(K(a, { binSuffix: "end" })), Wd(a, l) && n.push(K(a, { binSuffix: "range" })), St(l)) {
|
|
28698
28698
|
const _ = {
|
|
28699
28699
|
field: `${m}_end`
|
|
28700
28700
|
};
|
|
@@ -28711,7 +28711,7 @@ function v9(e, t) {
|
|
|
28711
28711
|
_ && (l === Od || l === ja ? y.formatType = _ : tle(l) ? y.legend = {
|
|
28712
28712
|
formatType: _,
|
|
28713
28713
|
...y.legend
|
|
28714
|
-
} :
|
|
28714
|
+
} : St(l) && (y.axis = {
|
|
28715
28715
|
formatType: _,
|
|
28716
28716
|
...y.axis
|
|
28717
28717
|
}));
|
|
@@ -28734,7 +28734,7 @@ function Kce(e, t, n) {
|
|
|
28734
28734
|
if (r) {
|
|
28735
28735
|
if (r === "binned") {
|
|
28736
28736
|
const i = e[t === pi ? ut : Zt];
|
|
28737
|
-
return !!(G(i) && G(e[t]) &&
|
|
28737
|
+
return !!(G(i) && G(e[t]) && Qt(i.bin));
|
|
28738
28738
|
}
|
|
28739
28739
|
} else return !1;
|
|
28740
28740
|
return !0;
|
|
@@ -28921,7 +28921,7 @@ function jb(e, t, n, r = !0) {
|
|
|
28921
28921
|
}
|
|
28922
28922
|
function nC(e) {
|
|
28923
28923
|
const { title: t, field: n } = e;
|
|
28924
|
-
return
|
|
28924
|
+
return kt(t, n);
|
|
28925
28925
|
}
|
|
28926
28926
|
function rC(e, t, n, r, i) {
|
|
28927
28927
|
const { scale: o, axis: s } = n;
|
|
@@ -29021,7 +29021,7 @@ function S9(e, { config: t }) {
|
|
|
29021
29021
|
a,
|
|
29022
29022
|
// TODO: https://github.com/vega/vega-lite/issues/6245
|
|
29023
29023
|
t
|
|
29024
|
-
), c = a.invalid, f = k9(l), { bins: d, timeUnits: h, transform: p, continuousAxisChannelDef: g, continuousAxis: m, groupby: y, aggregate: _, encodingWithoutContinuousAxis: b, ticksOrient: v, boxOrient: x, customTooltipWithoutAggregatedField: E } = rfe(e, l, t), w = tc(g.field), { color: k, size: S, ...A } = b, T = (
|
|
29024
|
+
), c = a.invalid, f = k9(l), { bins: d, timeUnits: h, transform: p, continuousAxisChannelDef: g, continuousAxis: m, groupby: y, aggregate: _, encodingWithoutContinuousAxis: b, ticksOrient: v, boxOrient: x, customTooltipWithoutAggregatedField: E } = rfe(e, l, t), w = tc(g.field), { color: k, size: S, ...A } = b, T = (Rt) => rC(a, m, g, Rt, t.boxplot), F = T(A), D = T(b), N = (J(t.boxplot.box) ? t.boxplot.box.color : t.mark.color) || "#4c78a8", $ = T({
|
|
29025
29025
|
...A,
|
|
29026
29026
|
...S ? { size: S } : {},
|
|
29027
29027
|
color: {
|
|
@@ -29104,10 +29104,10 @@ function S9(e, { config: t }) {
|
|
|
29104
29104
|
transform: (s.transform ?? []).concat(p),
|
|
29105
29105
|
layer: V
|
|
29106
29106
|
};
|
|
29107
|
-
const ae = Xe(`lower_box_${g.field}`), re = Xe(`upper_box_${g.field}`), fe = `(${re} - ${ae})`, Be = `${ae} - ${l} * ${fe}`, pe = `${re} + ${l} * ${fe}`, Le = Xe(g.field),
|
|
29107
|
+
const ae = Xe(`lower_box_${g.field}`), re = Xe(`upper_box_${g.field}`), fe = `(${re} - ${ae})`, Be = `${ae} - ${l} * ${fe}`, pe = `${re} + ${l} * ${fe}`, Le = Xe(g.field), Dt = {
|
|
29108
29108
|
joinaggregate: $9(g.field),
|
|
29109
29109
|
groupby: y
|
|
29110
|
-
},
|
|
29110
|
+
}, Jt = {
|
|
29111
29111
|
transform: [
|
|
29112
29112
|
{
|
|
29113
29113
|
filter: `(${Be} <= ${Le}) && (${Le} <= ${pe})`
|
|
@@ -29141,14 +29141,14 @@ function S9(e, { config: t }) {
|
|
|
29141
29141
|
}
|
|
29142
29142
|
],
|
|
29143
29143
|
layer: O
|
|
29144
|
-
}, { tooltip: te, ...ge } = A, { scale: ye, axis: j } = g,
|
|
29144
|
+
}, { tooltip: te, ...ge } = A, { scale: ye, axis: j } = g, xt = nC(g), Ie = w9(a, "outliers", t.boxplot, {
|
|
29145
29145
|
transform: [{ filter: `(${Le} < ${Be}) || (${Le} > ${pe})` }],
|
|
29146
29146
|
mark: "point",
|
|
29147
29147
|
encoding: {
|
|
29148
29148
|
[m]: {
|
|
29149
29149
|
field: g.field,
|
|
29150
29150
|
type: g.type,
|
|
29151
|
-
...
|
|
29151
|
+
...xt !== void 0 ? { title: xt } : {},
|
|
29152
29152
|
...ye !== void 0 ? { scale: ye } : {},
|
|
29153
29153
|
...j !== void 0 ? { axis: j } : {}
|
|
29154
29154
|
},
|
|
@@ -29158,11 +29158,11 @@ function S9(e, { config: t }) {
|
|
|
29158
29158
|
}
|
|
29159
29159
|
})[0];
|
|
29160
29160
|
let ht;
|
|
29161
|
-
const
|
|
29161
|
+
const wt = [...d, ...h, Dt];
|
|
29162
29162
|
return Ie ? ht = {
|
|
29163
|
-
transform:
|
|
29164
|
-
layer: [Ie,
|
|
29165
|
-
} : (ht =
|
|
29163
|
+
transform: wt,
|
|
29164
|
+
layer: [Ie, Jt]
|
|
29165
|
+
} : (ht = Jt, ht.transform.unshift(...wt)), {
|
|
29166
29166
|
...s,
|
|
29167
29167
|
layer: [
|
|
29168
29168
|
ht,
|
|
@@ -29301,13 +29301,13 @@ function sfe(e, t) {
|
|
|
29301
29301
|
if (i)
|
|
29302
29302
|
throw new Error(`${t} cannot be both type aggregated-upper-lower and aggregated-error`);
|
|
29303
29303
|
const a = n.x2, l = n.y2;
|
|
29304
|
-
if (
|
|
29304
|
+
if (ve(a) && ve(l))
|
|
29305
29305
|
throw new Error(`${t} cannot have both x2 and y2`);
|
|
29306
|
-
if (
|
|
29306
|
+
if (ve(a)) {
|
|
29307
29307
|
if (us(o))
|
|
29308
29308
|
return { orient: "horizontal", inputType: "aggregated-upper-lower" };
|
|
29309
29309
|
throw new Error(`Both x and x2 have to be quantitative in ${t}`);
|
|
29310
|
-
} else if (
|
|
29310
|
+
} else if (ve(l)) {
|
|
29311
29311
|
if (us(s))
|
|
29312
29312
|
return { orient: "vertical", inputType: "aggregated-upper-lower" };
|
|
29313
29313
|
throw new Error(`Both y and y2 have to be quantitative in ${t}`);
|
|
@@ -29315,17 +29315,17 @@ function sfe(e, t) {
|
|
|
29315
29315
|
throw new Error("No ranged axis");
|
|
29316
29316
|
} else {
|
|
29317
29317
|
const a = n.xError, l = n.xError2, u = n.yError, c = n.yError2;
|
|
29318
|
-
if (
|
|
29318
|
+
if (ve(l) && !ve(a))
|
|
29319
29319
|
throw new Error(`${t} cannot have xError2 without xError`);
|
|
29320
|
-
if (
|
|
29320
|
+
if (ve(c) && !ve(u))
|
|
29321
29321
|
throw new Error(`${t} cannot have yError2 without yError`);
|
|
29322
|
-
if (
|
|
29322
|
+
if (ve(a) && ve(u))
|
|
29323
29323
|
throw new Error(`${t} cannot have both xError and yError with both are quantiative`);
|
|
29324
|
-
if (
|
|
29324
|
+
if (ve(a)) {
|
|
29325
29325
|
if (us(o))
|
|
29326
29326
|
return { orient: "horizontal", inputType: "aggregated-error" };
|
|
29327
29327
|
throw new Error("All x, xError, and xError2 (if exist) have to be quantitative");
|
|
29328
|
-
} else if (
|
|
29328
|
+
} else if (ve(u)) {
|
|
29329
29329
|
if (us(s))
|
|
29330
29330
|
return { orient: "vertical", inputType: "aggregated-error" };
|
|
29331
29331
|
throw new Error("All y, yError, and yError2 (if exist) have to be quantitative");
|
|
@@ -29334,13 +29334,13 @@ function sfe(e, t) {
|
|
|
29334
29334
|
}
|
|
29335
29335
|
}
|
|
29336
29336
|
function afe(e) {
|
|
29337
|
-
return (
|
|
29337
|
+
return (ve(e.x) || ve(e.y)) && !ve(e.x2) && !ve(e.y2) && !ve(e.xError) && !ve(e.xError2) && !ve(e.yError) && !ve(e.yError2);
|
|
29338
29338
|
}
|
|
29339
29339
|
function lfe(e) {
|
|
29340
|
-
return
|
|
29340
|
+
return ve(e.x2) || ve(e.y2);
|
|
29341
29341
|
}
|
|
29342
29342
|
function ufe(e) {
|
|
29343
|
-
return
|
|
29343
|
+
return ve(e.xError) || ve(e.xError2) || ve(e.yError) || ve(e.yError2);
|
|
29344
29344
|
}
|
|
29345
29345
|
function M9(e, t, n) {
|
|
29346
29346
|
const { mark: r, encoding: i, params: o, projection: s, ...a } = e, l = Hi(r) ? r : { type: r };
|
|
@@ -29725,7 +29725,7 @@ function Wb(e, t) {
|
|
|
29725
29725
|
}
|
|
29726
29726
|
function jg(e, t) {
|
|
29727
29727
|
const n = e[t] ?? e[t === "width" ? "discreteWidth" : "discreteHeight"];
|
|
29728
|
-
return
|
|
29728
|
+
return kt(n, { step: e.step });
|
|
29729
29729
|
}
|
|
29730
29730
|
const P9 = 20, kfe = {
|
|
29731
29731
|
continuousWidth: 300,
|
|
@@ -29954,19 +29954,19 @@ function B9(e = {}) {
|
|
|
29954
29954
|
for (const l of ["background", "lineBreak", "padding"])
|
|
29955
29955
|
s[l] && (a[l] = or(s[l]));
|
|
29956
29956
|
for (const l of YO)
|
|
29957
|
-
s[l] && (a[l] =
|
|
29957
|
+
s[l] && (a[l] = en(s[l]));
|
|
29958
29958
|
for (const l of m9)
|
|
29959
29959
|
s[l] && (a[l] = z9(s[l]));
|
|
29960
29960
|
for (const l of R9)
|
|
29961
|
-
s[l] && (a[l] =
|
|
29962
|
-
if (s.legend && (a.legend =
|
|
29963
|
-
const { invalid: l, ...u } = s.scale, c =
|
|
29961
|
+
s[l] && (a[l] = en(s[l]));
|
|
29962
|
+
if (s.legend && (a.legend = en(s.legend)), s.scale) {
|
|
29963
|
+
const { invalid: l, ...u } = s.scale, c = en(l, { level: 1 });
|
|
29964
29964
|
a.scale = {
|
|
29965
|
-
...
|
|
29965
|
+
...en(u),
|
|
29966
29966
|
...q(c).length > 0 ? { invalid: c } : {}
|
|
29967
29967
|
};
|
|
29968
29968
|
}
|
|
29969
|
-
return s.style && (a.style = Tfe(s.style)), s.title && (a.title =
|
|
29969
|
+
return s.style && (a.style = Tfe(s.style)), s.title && (a.title = en(s.title)), s.view && (a.view = en(s.view)), a;
|
|
29970
29970
|
}
|
|
29971
29971
|
const Ffe = /* @__PURE__ */ new Set(["view", ...dce]), Dfe = [
|
|
29972
29972
|
"color",
|
|
@@ -30201,7 +30201,7 @@ function U9(e, t) {
|
|
|
30201
30201
|
return g;
|
|
30202
30202
|
}, []);
|
|
30203
30203
|
let p;
|
|
30204
|
-
return o.stack !== void 0 ? el(o.stack) ? p = o.stack ? "zero" : null : p = o.stack : qfe.has(r) && (p = "zero"), !p || !Ufe(p) || b9(t) && h.length === 0 ? null : (o?.scale?.type && o?.scale?.type !==
|
|
30204
|
+
return o.stack !== void 0 ? el(o.stack) ? p = o.stack ? "zero" : null : p = o.stack : qfe.has(r) && (p = "zero"), !p || !Ufe(p) || b9(t) && h.length === 0 ? null : (o?.scale?.type && o?.scale?.type !== tn.LINEAR && o?.stack && H(yue(o.scale.type)), ve(t[ro(i)]) ? (o.stack !== void 0 && H(mue(i)), null) : (G(o) && o.aggregate && !cle.has(o.aggregate) && H(_ue(o.aggregate)), {
|
|
30205
30205
|
groupbyChannels: l,
|
|
30206
30206
|
groupbyFields: u,
|
|
30207
30207
|
fieldChannel: i,
|
|
@@ -30211,7 +30211,7 @@ function U9(e, t) {
|
|
|
30211
30211
|
}));
|
|
30212
30212
|
}
|
|
30213
30213
|
function j9(e, t, n) {
|
|
30214
|
-
const r =
|
|
30214
|
+
const r = en(e), i = Ye("orient", r, n);
|
|
30215
30215
|
if (r.orient = Yfe(r.type, t, i), i !== void 0 && i !== r.orient && H(Qle(r.orient, i)), r.type === "bar" && r.orient) {
|
|
30216
30216
|
const l = Ye("cornerRadiusEnd", r, n);
|
|
30217
30217
|
if (l !== void 0) {
|
|
@@ -30236,7 +30236,7 @@ function Vfe(e, t, { graticule: n }) {
|
|
|
30236
30236
|
if (n)
|
|
30237
30237
|
return !1;
|
|
30238
30238
|
const r = Wi("filled", e, t), i = e.type;
|
|
30239
|
-
return
|
|
30239
|
+
return kt(r, i !== $0 && i !== S0 && i !== Lg);
|
|
30240
30240
|
}
|
|
30241
30241
|
function Yfe(e, t, n) {
|
|
30242
30242
|
switch (e) {
|
|
@@ -30251,28 +30251,28 @@ function Yfe(e, t, n) {
|
|
|
30251
30251
|
switch (e) {
|
|
30252
30252
|
case GO:
|
|
30253
30253
|
case k0:
|
|
30254
|
-
if (G(r) && (
|
|
30254
|
+
if (G(r) && (Qt(r.bin) || G(i) && i.aggregate && !r.aggregate))
|
|
30255
30255
|
return "vertical";
|
|
30256
|
-
if (G(i) && (
|
|
30256
|
+
if (G(i) && (Qt(i.bin) || G(r) && r.aggregate && !i.aggregate))
|
|
30257
30257
|
return "horizontal";
|
|
30258
30258
|
if (s || o) {
|
|
30259
30259
|
if (n)
|
|
30260
30260
|
return n;
|
|
30261
30261
|
if (!o)
|
|
30262
|
-
return (G(r) && r.type === Ha && !nt(r.bin) || Pg(r)) && G(i) &&
|
|
30262
|
+
return (G(r) && r.type === Ha && !nt(r.bin) || Pg(r)) && G(i) && Qt(i.bin) ? "horizontal" : "vertical";
|
|
30263
30263
|
if (!s)
|
|
30264
|
-
return (G(i) && i.type === Ha && !nt(i.bin) || Pg(i)) && G(r) &&
|
|
30264
|
+
return (G(i) && i.type === Ha && !nt(i.bin) || Pg(i)) && G(r) && Qt(r.bin) ? "vertical" : "horizontal";
|
|
30265
30265
|
}
|
|
30266
30266
|
// falls through
|
|
30267
30267
|
case Lg:
|
|
30268
|
-
if (o && !(G(r) &&
|
|
30268
|
+
if (o && !(G(r) && Qt(r.bin)) && s && !(G(i) && Qt(i.bin)))
|
|
30269
30269
|
return;
|
|
30270
30270
|
// falls through
|
|
30271
30271
|
case C0:
|
|
30272
30272
|
if (s)
|
|
30273
|
-
return G(i) &&
|
|
30273
|
+
return G(i) && Qt(i.bin) ? "horizontal" : "vertical";
|
|
30274
30274
|
if (o)
|
|
30275
|
-
return G(r) &&
|
|
30275
|
+
return G(r) && Qt(r.bin) ? "vertical" : "horizontal";
|
|
30276
30276
|
if (e === Lg) {
|
|
30277
30277
|
if (r && !i)
|
|
30278
30278
|
return "vertical";
|
|
@@ -30431,7 +30431,7 @@ function x3(e, t) {
|
|
|
30431
30431
|
}
|
|
30432
30432
|
}
|
|
30433
30433
|
function w3(e, t) {
|
|
30434
|
-
if (
|
|
30434
|
+
if (ve(e)) {
|
|
30435
30435
|
const n = x3(e, t);
|
|
30436
30436
|
if (n)
|
|
30437
30437
|
return n;
|
|
@@ -30475,7 +30475,7 @@ class Qfe {
|
|
|
30475
30475
|
if (r === "line" || Hi(r) && r.type === "line")
|
|
30476
30476
|
for (const i of Yae) {
|
|
30477
30477
|
const o = fl(i), s = n[o];
|
|
30478
|
-
if (n[i] && (G(s) && !
|
|
30478
|
+
if (n[i] && (G(s) && !Qt(s.bin) || oo(s)))
|
|
30479
30479
|
return !0;
|
|
30480
30480
|
}
|
|
30481
30481
|
}
|
|
@@ -30650,7 +30650,7 @@ function E3({ parentEncoding: e, encoding: t = {}, layer: n }) {
|
|
|
30650
30650
|
const i = /* @__PURE__ */ new Set([...q(e), ...q(t)]);
|
|
30651
30651
|
for (const o of i) {
|
|
30652
30652
|
const s = t[o], a = e[o];
|
|
30653
|
-
if (
|
|
30653
|
+
if (ve(s)) {
|
|
30654
30654
|
const l = {
|
|
30655
30655
|
...a,
|
|
30656
30656
|
...s
|
|
@@ -30662,7 +30662,7 @@ function E3({ parentEncoding: e, encoding: t = {}, layer: n }) {
|
|
|
30662
30662
|
...a,
|
|
30663
30663
|
...s.condition
|
|
30664
30664
|
}
|
|
30665
|
-
} : s || s === null ? r[o] = s : (n || li(a) || se(a) ||
|
|
30665
|
+
} : s || s === null ? r[o] = s : (n || li(a) || se(a) || ve(a) || B(a)) && (r[o] = a);
|
|
30666
30666
|
}
|
|
30667
30667
|
} else
|
|
30668
30668
|
r = t;
|
|
@@ -30931,7 +30931,7 @@ class Wo {
|
|
|
30931
30931
|
};
|
|
30932
30932
|
}
|
|
30933
30933
|
get(t) {
|
|
30934
|
-
return
|
|
30934
|
+
return kt(this.explicit[t], this.implicit[t]);
|
|
30935
30935
|
}
|
|
30936
30936
|
getWithExplicit(t) {
|
|
30937
30937
|
return this.explicit[t] !== void 0 ? { explicit: !0, value: this.explicit[t] } : this.implicit[t] !== void 0 ? { explicit: !1, value: this.implicit[t] } : { explicit: !1, value: void 0 };
|
|
@@ -31195,7 +31195,7 @@ class Oi extends Je {
|
|
|
31195
31195
|
};
|
|
31196
31196
|
if (at(n)) {
|
|
31197
31197
|
const { mark: c, markDef: f, config: d } = n, h = As({ fieldDef: o, markDef: f, config: d });
|
|
31198
|
-
Xf(c) &&
|
|
31198
|
+
Xf(c) && St(s) && h !== 0.5 && (u.rectBandPosition = h);
|
|
31199
31199
|
}
|
|
31200
31200
|
u && (i[$e(u)] = u);
|
|
31201
31201
|
}
|
|
@@ -31458,7 +31458,7 @@ function sL(e) {
|
|
|
31458
31458
|
const { signals: t, hasLegend: n, index: r, ...i } = e;
|
|
31459
31459
|
return i.field = Lr(i.field), i;
|
|
31460
31460
|
}
|
|
31461
|
-
function Ya(e, t = !0, n =
|
|
31461
|
+
function Ya(e, t = !0, n = wn) {
|
|
31462
31462
|
if (B(e)) {
|
|
31463
31463
|
const r = e.map((i) => Ya(i, t, n));
|
|
31464
31464
|
return t ? `[${r.join(", ")}]` : r;
|
|
@@ -31818,7 +31818,7 @@ function mC(e, t, n = "datum") {
|
|
|
31818
31818
|
if (e) {
|
|
31819
31819
|
if (li(e))
|
|
31820
31820
|
return it(e.value);
|
|
31821
|
-
if (
|
|
31821
|
+
if (ve(e)) {
|
|
31822
31822
|
const { format: r, formatType: i } = Au(e);
|
|
31823
31823
|
return XE({ fieldOrDatumDef: e, format: r, formatType: i, expr: n, config: t });
|
|
31824
31824
|
}
|
|
@@ -31860,14 +31860,14 @@ function fL(e, t, n, { reactiveGeom: r } = {}) {
|
|
|
31860
31860
|
// for secondary field def, copy type from main channel
|
|
31861
31861
|
}, p = h.title || QE(h, i), g = ee(p).join(", ").replaceAll(/"/g, '\\"');
|
|
31862
31862
|
let m;
|
|
31863
|
-
if (
|
|
31863
|
+
if (St(f)) {
|
|
31864
31864
|
const y = f === "x" ? "x2" : "y2", _ = ui(e[y]);
|
|
31865
|
-
if (
|
|
31865
|
+
if (Qt(h.bin) && _) {
|
|
31866
31866
|
const b = K(h, { expr: s }), v = K(_, { expr: s }), { format: x, formatType: E } = Au(h);
|
|
31867
31867
|
m = Bd(b, v, x, E, i), o.add(y);
|
|
31868
31868
|
}
|
|
31869
31869
|
}
|
|
31870
|
-
if ((
|
|
31870
|
+
if ((St(f) || f === zr || f === gi) && t && t.fieldChannel === f && t.offset === "normalize") {
|
|
31871
31871
|
const { format: y, formatType: _ } = Au(h);
|
|
31872
31872
|
m = XE({
|
|
31873
31873
|
fieldOrDatumDef: h,
|
|
@@ -31942,7 +31942,7 @@ function Xde(e) {
|
|
|
31942
31942
|
}
|
|
31943
31943
|
};
|
|
31944
31944
|
}
|
|
31945
|
-
function
|
|
31945
|
+
function nn(e, t, n = {}) {
|
|
31946
31946
|
const { markDef: r, encoding: i, config: o } = t, { vgChannel: s } = n;
|
|
31947
31947
|
let { defaultRef: a, defaultValue: l } = n;
|
|
31948
31948
|
const u = i[e];
|
|
@@ -31988,15 +31988,15 @@ function hL(e, t = { filled: void 0 }) {
|
|
|
31988
31988
|
};
|
|
31989
31989
|
return n.color && (s ? n.fill : n.stroke) && H(EO("property", { fill: "fill" in n, stroke: "stroke" in n })), {
|
|
31990
31990
|
...f,
|
|
31991
|
-
...
|
|
31991
|
+
...nn("color", e, {
|
|
31992
31992
|
vgChannel: c,
|
|
31993
31993
|
defaultValue: s ? l : u
|
|
31994
31994
|
}),
|
|
31995
|
-
...
|
|
31995
|
+
...nn("fill", e, {
|
|
31996
31996
|
// if there is encoding.fill, include default fill just in case we have conditional-only fill encoding
|
|
31997
31997
|
defaultValue: r.fill ? l : void 0
|
|
31998
31998
|
}),
|
|
31999
|
-
...
|
|
31999
|
+
...nn("stroke", e, {
|
|
32000
32000
|
// if there is encoding.stroke, include default fill just in case we have conditional-only stroke encoding
|
|
32001
32001
|
defaultValue: r.stroke ? u : void 0
|
|
32002
32002
|
})
|
|
@@ -32043,7 +32043,7 @@ function Dn(e, t, { defaultPos: n, vgChannel: r }) {
|
|
|
32043
32043
|
channel: e,
|
|
32044
32044
|
scaleName: c,
|
|
32045
32045
|
scale: f
|
|
32046
|
-
}), g = !l &&
|
|
32046
|
+
}), g = !l && St(e) && (i.latitude || i.longitude) ? (
|
|
32047
32047
|
// use geopoint output if there are lat/long and there is no point position overriding lat/long.
|
|
32048
32048
|
{ field: t.getName(e) }
|
|
32049
32049
|
) : Zde({
|
|
@@ -32063,7 +32063,7 @@ function Dn(e, t, { defaultPos: n, vgChannel: r }) {
|
|
|
32063
32063
|
}
|
|
32064
32064
|
function Zde(e) {
|
|
32065
32065
|
const { channel: t, channelDef: n, scaleName: r, stack: i, offset: o, markDef: s } = e;
|
|
32066
|
-
if (
|
|
32066
|
+
if (ve(n) && i && t === i.fieldChannel) {
|
|
32067
32067
|
if (G(n)) {
|
|
32068
32068
|
let a = n.bandPosition;
|
|
32069
32069
|
if (a === void 0 && s.type === "text" && (t === "radius" || t === "theta") && (a = 0.5), a !== void 0)
|
|
@@ -32191,7 +32191,7 @@ function ehe(e, t, n) {
|
|
|
32191
32191
|
};
|
|
32192
32192
|
}
|
|
32193
32193
|
function the({ channel: e, channelDef: t, channel2Def: n, markDef: r, config: i, scaleName: o, scale: s, stack: a, offset: l, defaultRef: u }) {
|
|
32194
|
-
return
|
|
32194
|
+
return ve(t) && a && // If fieldChannel is X and channel is X2 (or Y and Y2)
|
|
32195
32195
|
e.charAt(0) === a.fieldChannel.charAt(0) ? Ca(t, o, { suffix: "start" }, { offset: l }) : VE({
|
|
32196
32196
|
channel: e,
|
|
32197
32197
|
channelDef: n,
|
|
@@ -32220,12 +32220,12 @@ function Mh(e, t) {
|
|
|
32220
32220
|
}
|
|
32221
32221
|
function Ro(e, t) {
|
|
32222
32222
|
const { config: n, encoding: r, markDef: i } = e, o = i.type, s = ro(t), a = Qn(t), l = r[t], u = r[s], c = e.getScaleComponent(t), f = c ? c.get("type") : void 0, d = i.orient, h = r[a] ?? r.size ?? Ye("size", i, n, { vgChannel: a }), p = sO(t), g = o === "bar" && (t === "x" ? d === "vertical" : d === "horizontal") || o === "tick" && (t === "y" ? d === "vertical" : d === "horizontal");
|
|
32223
|
-
return G(l) && (nt(l.bin) ||
|
|
32223
|
+
return G(l) && (nt(l.bin) || Qt(l.bin) || l.timeUnit && !u) && !(h && !Ga(h)) && !r[p] && !bt(f) ? ihe({
|
|
32224
32224
|
fieldDef: l,
|
|
32225
32225
|
fieldDef2: u,
|
|
32226
32226
|
channel: t,
|
|
32227
32227
|
model: e
|
|
32228
|
-
}) : (
|
|
32228
|
+
}) : (ve(l) && bt(f) || g) && !u ? rhe(l, t, e) : gL(t, e, { defaultPos: "zeroOrMax", defaultPos2: "zeroOrMin" });
|
|
32229
32229
|
}
|
|
32230
32230
|
function nhe(e, t, n, r, i, o, s) {
|
|
32231
32231
|
if (Ga(i))
|
|
@@ -32254,7 +32254,7 @@ function nhe(e, t, n, r, i, o, s) {
|
|
|
32254
32254
|
return { value: l.step - 2 };
|
|
32255
32255
|
}
|
|
32256
32256
|
if (!o) {
|
|
32257
|
-
const { bandPaddingInner: l, barBandPaddingInner: u, rectBandPaddingInner: c, tickBandPaddingInner: f } = r.scale, d =
|
|
32257
|
+
const { bandPaddingInner: l, barBandPaddingInner: u, rectBandPaddingInner: c, tickBandPaddingInner: f } = r.scale, d = kt(l, s === "tick" ? f : s === "bar" ? u : c);
|
|
32258
32258
|
if (se(d))
|
|
32259
32259
|
return { signal: `(1 - (${d.signal})) * ${e}` };
|
|
32260
32260
|
if (qe(d))
|
|
@@ -32269,7 +32269,7 @@ function rhe(e, t, n) {
|
|
|
32269
32269
|
a === "horizontal" && t === "y" || a === "vertical" && t === "x"
|
|
32270
32270
|
);
|
|
32271
32271
|
let m;
|
|
32272
|
-
(i.size || r.size) && (g ? m =
|
|
32272
|
+
(i.size || r.size) && (g ? m = nn("size", n, {
|
|
32273
32273
|
vgChannel: c,
|
|
32274
32274
|
defaultRef: it(r.size)
|
|
32275
32275
|
}) : H(oue(r.type)));
|
|
@@ -32323,7 +32323,7 @@ function D3(e, t, n, r, i, o, s) {
|
|
|
32323
32323
|
return i = i || 0, r + (n ? -i - l : +i + l);
|
|
32324
32324
|
}
|
|
32325
32325
|
function ihe({ fieldDef: e, fieldDef2: t, channel: n, model: r }) {
|
|
32326
|
-
const { config: i, markDef: o, encoding: s } = r, a = r.getScaleComponent(n), l = r.scaleName(n), u = a ? a.get("type") : void 0, c = a.get("reverse"), f = i9({ channel: n, fieldDef: e, markDef: o, config: i, scaleType: u }), h = r.component.axes[n]?.[0]?.get("translate") ?? 0.5, p =
|
|
32326
|
+
const { config: i, markDef: o, encoding: s } = r, a = r.getScaleComponent(n), l = r.scaleName(n), u = a ? a.get("type") : void 0, c = a.get("reverse"), f = i9({ channel: n, fieldDef: e, markDef: o, config: i, scaleType: u }), h = r.component.axes[n]?.[0]?.get("translate") ?? 0.5, p = St(n) ? Ye("binSpacing", o, i) ?? 0 : 0, g = ro(n), m = $s(n), y = $s(g), _ = Wi("minBandSize", o, i), { offset: b } = Nu({ channel: n, markDef: o, encoding: s, model: r, bandPosition: 0 }), { offset: v } = Nu({ channel: g, markDef: o, encoding: s, model: r, bandPosition: 0 }), x = Ace({ fieldDef: e, scaleName: l }), E = D3(n, p, c, h, b, _, x), w = D3(g, p, c, h, v ?? b, _, x), k = se(f) ? { signal: `(1-${f.signal})/2` } : Ga(f) ? (1 - f.band) / 2 : 0.5, S = As({ fieldDef: e, fieldDef2: t, markDef: o, config: i });
|
|
32327
32327
|
if (nt(e.bin) || e.timeUnit) {
|
|
32328
32328
|
const A = e.timeUnit && S !== 0.5;
|
|
32329
32329
|
return {
|
|
@@ -32342,7 +32342,7 @@ function ihe({ fieldDef: e, fieldDef2: t, channel: n, model: r }) {
|
|
|
32342
32342
|
useRectOffsetField: A
|
|
32343
32343
|
})
|
|
32344
32344
|
};
|
|
32345
|
-
} else if (
|
|
32345
|
+
} else if (Qt(e.bin)) {
|
|
32346
32346
|
const A = Ca(e, l, {}, { offset: w });
|
|
32347
32347
|
if (G(t))
|
|
32348
32348
|
return {
|
|
@@ -32379,11 +32379,11 @@ function Br(e, t) {
|
|
|
32379
32379
|
...she(e.markDef, t),
|
|
32380
32380
|
...O3("fill", n),
|
|
32381
32381
|
...O3("stroke", r),
|
|
32382
|
-
...
|
|
32383
|
-
...
|
|
32384
|
-
...
|
|
32385
|
-
...
|
|
32386
|
-
...
|
|
32382
|
+
...nn("opacity", e),
|
|
32383
|
+
...nn("fillOpacity", e),
|
|
32384
|
+
...nn("strokeOpacity", e),
|
|
32385
|
+
...nn("strokeWidth", e),
|
|
32386
|
+
...nn("strokeDash", e),
|
|
32387
32387
|
...Kde(e),
|
|
32388
32388
|
...cL(e),
|
|
32389
32389
|
...gC(e, "href"),
|
|
@@ -32869,7 +32869,7 @@ function uf(e, t, n, r = { header: !1 }) {
|
|
|
32869
32869
|
maxExtent: 0,
|
|
32870
32870
|
minExtent: 0,
|
|
32871
32871
|
ticks: !1,
|
|
32872
|
-
zindex:
|
|
32872
|
+
zindex: kt(u, 0)
|
|
32873
32873
|
// put grid behind marks by default
|
|
32874
32874
|
};
|
|
32875
32875
|
} else {
|
|
@@ -32892,7 +32892,7 @@ function uf(e, t, n, r = { header: !1 }) {
|
|
|
32892
32892
|
...f ? { title: f } : {},
|
|
32893
32893
|
...c,
|
|
32894
32894
|
...n.aria === !1 ? { aria: !1 } : {},
|
|
32895
|
-
zindex:
|
|
32895
|
+
zindex: kt(u, 0)
|
|
32896
32896
|
// put axis line above marks by default
|
|
32897
32897
|
};
|
|
32898
32898
|
}
|
|
@@ -33011,7 +33011,7 @@ const B3 = {
|
|
|
33011
33011
|
zindex: ({ axis: e, fieldOrDatumDef: t, mark: n }) => e.zindex ?? Ahe(n, t)
|
|
33012
33012
|
};
|
|
33013
33013
|
function bhe(e, t) {
|
|
33014
|
-
return !bt(e) && G(t) && !nt(t?.bin) && !
|
|
33014
|
+
return !bt(e) && G(t) && !nt(t?.bin) && !Qt(t?.bin);
|
|
33015
33015
|
}
|
|
33016
33016
|
function vhe(e, t) {
|
|
33017
33017
|
const n = t === "x" ? "y" : "x";
|
|
@@ -33184,7 +33184,7 @@ function U0(e, t) {
|
|
|
33184
33184
|
}
|
|
33185
33185
|
function Ru(e, t, n, r) {
|
|
33186
33186
|
const i = r === "row" ? n.headerRow : r === "column" ? n.headerColumn : n.headerFacet;
|
|
33187
|
-
return
|
|
33187
|
+
return kt((t || {})[e], i[e], n.header[e]);
|
|
33188
33188
|
}
|
|
33189
33189
|
function j0(e, t, n, r) {
|
|
33190
33190
|
const i = {};
|
|
@@ -33383,7 +33383,7 @@ function U3(e, t) {
|
|
|
33383
33383
|
return se(t.step) ? { name: n, update: t.step.signal } : { name: n, value: t.step };
|
|
33384
33384
|
}
|
|
33385
33385
|
function IL(e, t, n) {
|
|
33386
|
-
const r = t.get("type"), i = t.get("padding"), o =
|
|
33386
|
+
const r = t.get("type"), i = t.get("padding"), o = kt(t.get("paddingOuter"), i);
|
|
33387
33387
|
let s = t.get("paddingInner");
|
|
33388
33388
|
return s = r === "band" ? (
|
|
33389
33389
|
// only band has real paddingInner
|
|
@@ -33416,11 +33416,11 @@ function BL(e, t) {
|
|
|
33416
33416
|
if (lc(t))
|
|
33417
33417
|
return "shared";
|
|
33418
33418
|
if (MC(t))
|
|
33419
|
-
return
|
|
33419
|
+
return St(e) || e === "theta" || e === "radius" ? "independent" : "shared";
|
|
33420
33420
|
throw new Error("invalid model type for resolve");
|
|
33421
33421
|
}
|
|
33422
33422
|
function EC(e, t) {
|
|
33423
|
-
const n = e.scale[t], r =
|
|
33423
|
+
const n = e.scale[t], r = St(t) ? "axis" : "legend";
|
|
33424
33424
|
return n === "independent" ? (e[r][t] === "shared" && H(cue(t)), "independent") : e[r][t] || "shared";
|
|
33425
33425
|
}
|
|
33426
33426
|
const Lhe = {
|
|
@@ -33472,7 +33472,7 @@ function Phe(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i, legen
|
|
|
33472
33472
|
else if (W(f.stroke, "field") || p)
|
|
33473
33473
|
delete f.stroke;
|
|
33474
33474
|
else if (B(f.stroke)) {
|
|
33475
|
-
const m =
|
|
33475
|
+
const m = kt(tv(a.stroke || a.color), s.stroke, c ? s.color : void 0);
|
|
33476
33476
|
m && (f.stroke = { value: m });
|
|
33477
33477
|
}
|
|
33478
33478
|
}
|
|
@@ -33529,7 +33529,7 @@ function jL(e) {
|
|
|
33529
33529
|
return qL(e, (t, n) => Math.max(t, n.value));
|
|
33530
33530
|
}
|
|
33531
33531
|
function tv(e) {
|
|
33532
|
-
return qL(e, (t, n) =>
|
|
33532
|
+
return qL(e, (t, n) => kt(t, n.value));
|
|
33533
33533
|
}
|
|
33534
33534
|
function qL(e, t) {
|
|
33535
33535
|
if (Oce(e))
|
|
@@ -33607,7 +33607,7 @@ function qhe(e, t, n, r) {
|
|
|
33607
33607
|
}
|
|
33608
33608
|
function Whe(e) {
|
|
33609
33609
|
const { legend: t } = e;
|
|
33610
|
-
return
|
|
33610
|
+
return kt(t.type, Hhe(e));
|
|
33611
33611
|
}
|
|
33612
33612
|
function Hhe({ channel: e, timeUnit: t, scaleType: n }) {
|
|
33613
33613
|
if (Xl(e)) {
|
|
@@ -33655,7 +33655,7 @@ function HL(e) {
|
|
|
33655
33655
|
function Khe(e) {
|
|
33656
33656
|
const { encoding: t } = e, n = {};
|
|
33657
33657
|
for (const r of [Zn, ...O9]) {
|
|
33658
|
-
const i =
|
|
33658
|
+
const i = Pt(t[r]);
|
|
33659
33659
|
!i || !e.getScaleComponent(r) || r === Jn && G(i) && i.type === rc || (n[r] = Qhe(e, r));
|
|
33660
33660
|
}
|
|
33661
33661
|
return n;
|
|
@@ -33691,7 +33691,7 @@ function Qhe(e, t) {
|
|
|
33691
33691
|
if (a.set("disable", l, n !== void 0), l)
|
|
33692
33692
|
return a;
|
|
33693
33693
|
n = n || {};
|
|
33694
|
-
const u = e.getScaleComponent(t).get("type"), c =
|
|
33694
|
+
const u = e.getScaleComponent(t).get("type"), c = Pt(i[t]), f = G(c) ? Xt(c.timeUnit)?.unit : void 0, d = n.orient || o.legend.orient || "right", h = Whe({ legend: n, channel: t, timeUnit: f, scaleType: u }), p = Ghe({ legend: n, legendType: h, orient: d, legendConfig: s }), g = {
|
|
33695
33695
|
legend: n,
|
|
33696
33696
|
channel: t,
|
|
33697
33697
|
model: e,
|
|
@@ -33902,7 +33902,7 @@ function ope(e, t, n, r) {
|
|
|
33902
33902
|
if (Pn(n) && at(r) && o9(n, i, r.markDef, r.config)) {
|
|
33903
33903
|
e.add(K(n, {})), e.add(K(n, { suffix: "end" }));
|
|
33904
33904
|
const { mark: o, markDef: s, config: a } = r, l = As({ fieldDef: n, markDef: s, config: a });
|
|
33905
|
-
Xf(o) && l !== 0.5 &&
|
|
33905
|
+
Xf(o) && l !== 0.5 && St(t) && (e.add(K(n, { suffix: P0 })), e.add(K(n, { suffix: z0 }))), n.bin && Wd(n, t) && e.add(K(n, { binSuffix: "range" }));
|
|
33906
33906
|
} else if (nO(t)) {
|
|
33907
33907
|
const o = tO(t);
|
|
33908
33908
|
e.add(r.getName(o));
|
|
@@ -34221,10 +34221,10 @@ function cpe(e) {
|
|
|
34221
34221
|
}
|
|
34222
34222
|
return t;
|
|
34223
34223
|
}
|
|
34224
|
-
class
|
|
34224
|
+
class mn extends Je {
|
|
34225
34225
|
_parse;
|
|
34226
34226
|
clone() {
|
|
34227
|
-
return new
|
|
34227
|
+
return new mn(null, _e(this._parse));
|
|
34228
34228
|
}
|
|
34229
34229
|
constructor(t, n) {
|
|
34230
34230
|
super(t), this._parse = n;
|
|
@@ -34259,7 +34259,7 @@ class gn extends Je {
|
|
|
34259
34259
|
const l = o.get(a);
|
|
34260
34260
|
l !== null && (s[a] = l);
|
|
34261
34261
|
}
|
|
34262
|
-
return q(s).length === 0 || i.parseNothing ? null : new
|
|
34262
|
+
return q(s).length === 0 || i.parseNothing ? null : new mn(t, s);
|
|
34263
34263
|
}
|
|
34264
34264
|
get parse() {
|
|
34265
34265
|
return this._parse;
|
|
@@ -34485,7 +34485,7 @@ class dpe extends $C {
|
|
|
34485
34485
|
super(), this.requiresSelectionId = t && bC(t);
|
|
34486
34486
|
}
|
|
34487
34487
|
run(t) {
|
|
34488
|
-
t instanceof Ts && (this.requiresSelectionId && (kC(t.parent) || t.parent instanceof ri || t.parent instanceof
|
|
34488
|
+
t instanceof Ts && (this.requiresSelectionId && (kC(t.parent) || t.parent instanceof ri || t.parent instanceof mn) || (this.setModified(), t.remove()));
|
|
34489
34489
|
}
|
|
34490
34490
|
}
|
|
34491
34491
|
class hpe extends SC {
|
|
@@ -34511,8 +34511,8 @@ class gpe extends yl {
|
|
|
34511
34511
|
run(t) {
|
|
34512
34512
|
if (!kC(t) && !(t.numChildren() > 1)) {
|
|
34513
34513
|
for (const n of t.children)
|
|
34514
|
-
if (n instanceof
|
|
34515
|
-
if (t instanceof
|
|
34514
|
+
if (n instanceof mn)
|
|
34515
|
+
if (t instanceof mn)
|
|
34516
34516
|
this.setModified(), t.merge(n);
|
|
34517
34517
|
else {
|
|
34518
34518
|
if (pE(t.producedFields(), n.dependentFields()))
|
|
@@ -34524,7 +34524,7 @@ class gpe extends yl {
|
|
|
34524
34524
|
}
|
|
34525
34525
|
class mpe extends yl {
|
|
34526
34526
|
run(t) {
|
|
34527
|
-
const n = [...t.children], r = t.children.filter((i) => i instanceof
|
|
34527
|
+
const n = [...t.children], r = t.children.filter((i) => i instanceof mn);
|
|
34528
34528
|
if (t.numChildren() > 1 && r.length >= 1) {
|
|
34529
34529
|
const i = {}, o = /* @__PURE__ */ new Set();
|
|
34530
34530
|
for (const s of r) {
|
|
@@ -34536,12 +34536,12 @@ class mpe extends yl {
|
|
|
34536
34536
|
delete i[s];
|
|
34537
34537
|
if (!tt(i)) {
|
|
34538
34538
|
this.setModified();
|
|
34539
|
-
const s = new
|
|
34539
|
+
const s = new mn(t, i);
|
|
34540
34540
|
for (const a of n) {
|
|
34541
|
-
if (a instanceof
|
|
34541
|
+
if (a instanceof mn)
|
|
34542
34542
|
for (const l of q(i))
|
|
34543
34543
|
delete a.parse[l];
|
|
34544
|
-
t.removeChild(a), a.parent = s, a instanceof
|
|
34544
|
+
t.removeChild(a), a.parent = s, a instanceof mn && q(a.parse).length === 0 && a.remove();
|
|
34545
34545
|
}
|
|
34546
34546
|
}
|
|
34547
34547
|
}
|
|
@@ -34582,7 +34582,7 @@ class vpe extends yl {
|
|
|
34582
34582
|
super(), this.model = t;
|
|
34583
34583
|
}
|
|
34584
34584
|
run(t) {
|
|
34585
|
-
const n = !(kC(t) || t instanceof oc || t instanceof
|
|
34585
|
+
const n = !(kC(t) || t instanceof oc || t instanceof mn || t instanceof Ts), r = [], i = [];
|
|
34586
34586
|
for (const o of t.children)
|
|
34587
34587
|
o instanceof Ii && (n && !pE(t.producedFields(), o.dependentFields()) ? r.push(o) : i.push(o));
|
|
34588
34588
|
if (r.length > 0) {
|
|
@@ -34739,7 +34739,7 @@ class Mo extends Je {
|
|
|
34739
34739
|
const { stack: r, groupby: i, as: o, offset: s = "zero" } = n, a = [], l = [];
|
|
34740
34740
|
if (n.sort !== void 0)
|
|
34741
34741
|
for (const f of n.sort)
|
|
34742
|
-
a.push(f.field), l.push(
|
|
34742
|
+
a.push(f.field), l.push(kt(f.order, "ascending"));
|
|
34743
34743
|
const u = {
|
|
34744
34744
|
field: a,
|
|
34745
34745
|
order: l
|
|
@@ -35032,7 +35032,7 @@ function Mpe(e, t) {
|
|
|
35032
35032
|
return i !== e.scaleDomain(t) && (e.specifiedScales[t] = {
|
|
35033
35033
|
...e.specifiedScales[t],
|
|
35034
35034
|
domain: i
|
|
35035
|
-
}), t === "x" &&
|
|
35035
|
+
}), t === "x" && Pt(r.x2) ? Pt(r.x) ? Ms(Yo(n, i, e, "x"), Yo(n, i, e, "x2"), "domain", "scale", sv) : Yo(n, i, e, "x2") : t === "y" && Pt(r.y2) ? Pt(r.y) ? Ms(Yo(n, i, e, "y"), Yo(n, i, e, "y2"), "domain", "scale", sv) : Yo(n, i, e, "y2") : Yo(n, i, e, t);
|
|
35036
35036
|
}
|
|
35037
35037
|
function Tpe(e, t, n) {
|
|
35038
35038
|
return e.map((r) => ({ signal: `{data: ${F0(r, { timeUnit: n, type: t })}}` }));
|
|
@@ -35042,7 +35042,7 @@ function Ey(e, t, n) {
|
|
|
35042
35042
|
return t === "temporal" || r ? Tpe(e, t, r) : [e];
|
|
35043
35043
|
}
|
|
35044
35044
|
function Yo(e, t, n, r) {
|
|
35045
|
-
const { encoding: i, markDef: o, mark: s, config: a, stack: l } = n, u =
|
|
35045
|
+
const { encoding: i, markDef: o, mark: s, config: a, stack: l } = n, u = Pt(i[r]), { type: c } = u, f = u.timeUnit, d = Fde({
|
|
35046
35046
|
invalid: Wi("invalid", o, a),
|
|
35047
35047
|
isPath: Ws(s)
|
|
35048
35048
|
});
|
|
@@ -35125,7 +35125,7 @@ function Yo(e, t, n, r) {
|
|
|
35125
35125
|
} else if (p.timeUnit && Re(["time", "utc"], e)) {
|
|
35126
35126
|
const g = i[ro(r)];
|
|
35127
35127
|
if (o9(p, g, o, a)) {
|
|
35128
|
-
const m = n.requestDataName(d), y = As({ fieldDef: p, fieldDef2: g, markDef: o, config: a }), _ = Xf(s) && y !== 0.5 &&
|
|
35128
|
+
const m = n.requestDataName(d), y = As({ fieldDef: p, fieldDef2: g, markDef: o, config: a }), _ = Xf(s) && y !== 0.5 && St(r);
|
|
35129
35129
|
return nr([
|
|
35130
35130
|
{
|
|
35131
35131
|
data: m,
|
|
@@ -35484,8 +35484,8 @@ function e7(e) {
|
|
|
35484
35484
|
}
|
|
35485
35485
|
function Wpe(e) {
|
|
35486
35486
|
if (e.hasProjection) {
|
|
35487
|
-
const t =
|
|
35488
|
-
...
|
|
35487
|
+
const t = en(e.specifiedProjection), n = !(t && (t.scale != null || t.translate != null)), r = n ? [e.getSizeSignalRef("width"), e.getSizeSignalRef("height")] : void 0, i = n ? Hpe(e) : void 0, o = new QL(e.projectionName(!0), {
|
|
35488
|
+
...en(e.config.projection),
|
|
35489
35489
|
...t
|
|
35490
35490
|
}, r, i);
|
|
35491
35491
|
return o.get("type") || o.set("type", "equalEarth", !1), o;
|
|
@@ -35497,7 +35497,7 @@ function Hpe(e) {
|
|
|
35497
35497
|
[yi, mi],
|
|
35498
35498
|
[Ir, _i]
|
|
35499
35499
|
])
|
|
35500
|
-
(
|
|
35500
|
+
(Pt(n[r[0]]) || Pt(n[r[1]])) && t.push({
|
|
35501
35501
|
signal: e.getName(`geojson_${t.length}`)
|
|
35502
35502
|
});
|
|
35503
35503
|
return e.channelHasField(Jn) && e.typedFieldDef(Jn).type === rc && t.push({
|
|
@@ -35563,7 +35563,7 @@ function K3(e) {
|
|
|
35563
35563
|
}, []);
|
|
35564
35564
|
}
|
|
35565
35565
|
function Ype(e, t, n, r) {
|
|
35566
|
-
if (
|
|
35566
|
+
if (St(n)) {
|
|
35567
35567
|
if (hl(e))
|
|
35568
35568
|
return {
|
|
35569
35569
|
step: { signal: `${t}_step` }
|
|
@@ -35589,11 +35589,11 @@ class n7 extends Wo {
|
|
|
35589
35589
|
*/
|
|
35590
35590
|
domainHasZero() {
|
|
35591
35591
|
const t = this.get("type");
|
|
35592
|
-
if (Re([
|
|
35592
|
+
if (Re([tn.LOG, tn.TIME, tn.UTC], t))
|
|
35593
35593
|
return "definitely-not";
|
|
35594
35594
|
const n = this.get("zero");
|
|
35595
35595
|
if (n === !0 || // If zero is undefined, linear/sqrt/pow scales have zero by default.
|
|
35596
|
-
n === void 0 && Re([
|
|
35596
|
+
n === void 0 && Re([tn.LINEAR, tn.SQRT, tn.POW], t))
|
|
35597
35597
|
return "definitely";
|
|
35598
35598
|
const r = this.get("domains");
|
|
35599
35599
|
if (r.length > 0) {
|
|
@@ -35663,7 +35663,7 @@ function Zpe(e, t) {
|
|
|
35663
35663
|
case "range": {
|
|
35664
35664
|
const p = n.range;
|
|
35665
35665
|
if (B(p)) {
|
|
35666
|
-
if (
|
|
35666
|
+
if (St(e))
|
|
35667
35667
|
return ki(p.map((g) => {
|
|
35668
35668
|
if (g === "width" || g === "height") {
|
|
35669
35669
|
const m = t.getName(g), y = t.getSignalName.bind(t);
|
|
@@ -35685,7 +35685,7 @@ function Zpe(e, t) {
|
|
|
35685
35685
|
}
|
|
35686
35686
|
const s = e === ut || e === "xOffset" ? "width" : "height", a = r[s];
|
|
35687
35687
|
if (Gi(a)) {
|
|
35688
|
-
if (
|
|
35688
|
+
if (St(e))
|
|
35689
35689
|
if (bt(o)) {
|
|
35690
35690
|
const f = i7(a, t, e);
|
|
35691
35691
|
if (f)
|
|
@@ -35722,7 +35722,7 @@ function r7(e, t, n, { center: r } = {}) {
|
|
|
35722
35722
|
] : [0, qt.fromName(s, o)];
|
|
35723
35723
|
}
|
|
35724
35724
|
function Qpe(e, t) {
|
|
35725
|
-
const { size: n, config: r, mark: i, encoding: o } = t, { type: s } =
|
|
35725
|
+
const { size: n, config: r, mark: i, encoding: o } = t, { type: s } = Pt(o[e]), l = t.getScaleComponent(e).get("type"), { domain: u, domainMid: c } = t.specifiedScales[e];
|
|
35726
35726
|
switch (e) {
|
|
35727
35727
|
case ut:
|
|
35728
35728
|
case Zt: {
|
|
@@ -35779,7 +35779,7 @@ function Qpe(e, t) {
|
|
|
35779
35779
|
}
|
|
35780
35780
|
function i7(e, t, n) {
|
|
35781
35781
|
const { encoding: r } = t, i = t.getScaleComponent(n), o = bE(n), s = r[o];
|
|
35782
|
-
if (I9({ step: e, offsetIsDiscrete:
|
|
35782
|
+
if (I9({ step: e, offsetIsDiscrete: ve(s) && zE(s.type) }) === "offset" && y9(r, o)) {
|
|
35783
35783
|
const l = t.getScaleComponent(o);
|
|
35784
35784
|
let c = `domain('${t.scaleName(o)}').length`;
|
|
35785
35785
|
if (l.get("type") === "band") {
|
|
@@ -35910,7 +35910,7 @@ function a7(e, t) {
|
|
|
35910
35910
|
function oge(e, t) {
|
|
35911
35911
|
const n = e.component.scales, { config: r, encoding: i, markDef: o, specifiedScales: s } = e;
|
|
35912
35912
|
for (const a of q(n)) {
|
|
35913
|
-
const l = s[a], u = n[a], c = e.getScaleComponent(a), f =
|
|
35913
|
+
const l = s[a], u = n[a], c = e.getScaleComponent(a), f = Pt(i[a]), d = l[t], h = c.get("type"), p = c.get("padding"), g = c.get("paddingInner"), m = Bb(h, t), y = WO(a, t);
|
|
35914
35914
|
if (d !== void 0 && (m ? y && H(y) : H(CO(h, t, a))), m && y === void 0)
|
|
35915
35915
|
if (d !== void 0) {
|
|
35916
35916
|
const _ = f.timeUnit, b = f.type;
|
|
@@ -35980,7 +35980,7 @@ function sge(e, t) {
|
|
|
35980
35980
|
if (nt(n)) {
|
|
35981
35981
|
const r = CC(e, t.field, n);
|
|
35982
35982
|
return new qt(() => e.getSignalName(r));
|
|
35983
|
-
} else if (
|
|
35983
|
+
} else if (Qt(n) && dl(n) && n.step !== void 0)
|
|
35984
35984
|
return {
|
|
35985
35985
|
step: n.step
|
|
35986
35986
|
};
|
|
@@ -35990,11 +35990,11 @@ function age(e, t) {
|
|
|
35990
35990
|
return "hcl";
|
|
35991
35991
|
}
|
|
35992
35992
|
function lge(e, t, n, r, i, o) {
|
|
35993
|
-
if (!(ui(o)?.bin || B(n) || i != null || r != null || Re([
|
|
35994
|
-
return
|
|
35993
|
+
if (!(ui(o)?.bin || B(n) || i != null || r != null || Re([tn.TIME, tn.UTC], e)))
|
|
35994
|
+
return St(t) ? !0 : void 0;
|
|
35995
35995
|
}
|
|
35996
35996
|
function uge(e, t, n, r, i, o) {
|
|
35997
|
-
if (
|
|
35997
|
+
if (St(e)) {
|
|
35998
35998
|
if (Ni(t)) {
|
|
35999
35999
|
if (n.continuousPadding !== void 0)
|
|
36000
36000
|
return n.continuousPadding;
|
|
@@ -36002,27 +36002,27 @@ function uge(e, t, n, r, i, o) {
|
|
|
36002
36002
|
if (s === "bar" && !(G(r) && (r.bin || r.timeUnit)) && (a === "vertical" && e === "x" || a === "horizontal" && e === "y"))
|
|
36003
36003
|
return o.continuousBandSize;
|
|
36004
36004
|
}
|
|
36005
|
-
if (t ===
|
|
36005
|
+
if (t === tn.POINT)
|
|
36006
36006
|
return n.pointPadding;
|
|
36007
36007
|
}
|
|
36008
36008
|
}
|
|
36009
36009
|
function cge(e, t, n, r, i, o = !1) {
|
|
36010
36010
|
if (e === void 0) {
|
|
36011
|
-
if (
|
|
36011
|
+
if (St(t)) {
|
|
36012
36012
|
const { bandPaddingInner: s, barBandPaddingInner: a, rectBandPaddingInner: l, tickBandPaddingInner: u, bandWithNestedOffsetPaddingInner: c } = i;
|
|
36013
|
-
return o ? c :
|
|
36014
|
-
} else if (Id(t) && r ===
|
|
36013
|
+
return o ? c : kt(s, n === "bar" ? a : n === "tick" ? u : l);
|
|
36014
|
+
} else if (Id(t) && r === tn.BAND)
|
|
36015
36015
|
return i.offsetBandPaddingInner;
|
|
36016
36016
|
}
|
|
36017
36017
|
}
|
|
36018
36018
|
function fge(e, t, n, r, i, o = !1) {
|
|
36019
36019
|
if (e === void 0) {
|
|
36020
|
-
if (
|
|
36020
|
+
if (St(t)) {
|
|
36021
36021
|
const { bandPaddingOuter: s, bandWithNestedOffsetPaddingOuter: a } = i;
|
|
36022
36022
|
if (o)
|
|
36023
36023
|
return a;
|
|
36024
|
-
if (n ===
|
|
36025
|
-
return
|
|
36024
|
+
if (n === tn.BAND)
|
|
36025
|
+
return kt(
|
|
36026
36026
|
s,
|
|
36027
36027
|
/* By default, paddingOuter is paddingInner / 2. The reason is that
|
|
36028
36028
|
size (width/height) = step * (cardinality - paddingInner + 2 * paddingOuter).
|
|
@@ -36031,9 +36031,9 @@ function fge(e, t, n, r, i, o = !1) {
|
|
|
36031
36031
|
se(r) ? { signal: `${r.signal}/2` } : r / 2
|
|
36032
36032
|
);
|
|
36033
36033
|
} else if (Id(t)) {
|
|
36034
|
-
if (n ===
|
|
36034
|
+
if (n === tn.POINT)
|
|
36035
36035
|
return 0.5;
|
|
36036
|
-
if (n ===
|
|
36036
|
+
if (n === tn.BAND)
|
|
36037
36037
|
return i.offsetBandPaddingOuter;
|
|
36038
36038
|
}
|
|
36039
36039
|
}
|
|
@@ -36073,7 +36073,7 @@ function gge(e, t, n, r) {
|
|
|
36073
36073
|
return e === "shape" && t.type === "ordinal" && H(hy(e, "ordinal")), "ordinal";
|
|
36074
36074
|
if (fy(e))
|
|
36075
36075
|
return "band";
|
|
36076
|
-
if (
|
|
36076
|
+
if (St(e) || Id(e)) {
|
|
36077
36077
|
if (Re(["rect", "bar", "image", "rule", "tick"], n.type) || r)
|
|
36078
36078
|
return "band";
|
|
36079
36079
|
} else if (n.type === "arc" && e in wE)
|
|
@@ -36102,7 +36102,7 @@ function c7(e) {
|
|
|
36102
36102
|
function yge(e) {
|
|
36103
36103
|
const { encoding: t, mark: n, markDef: r } = e, i = {};
|
|
36104
36104
|
for (const o of EE) {
|
|
36105
|
-
const s =
|
|
36105
|
+
const s = Pt(t[o]);
|
|
36106
36106
|
if (s && n === VO && o === Jn && s.type === rc)
|
|
36107
36107
|
continue;
|
|
36108
36108
|
let a = s && s.scale;
|
|
@@ -36187,7 +36187,7 @@ class TC {
|
|
|
36187
36187
|
component;
|
|
36188
36188
|
view;
|
|
36189
36189
|
constructor(t, n, r, i, o, s, a) {
|
|
36190
|
-
this.type = n, this.parent = r, this.config = o, this.parent = r, this.config = o, this.view =
|
|
36190
|
+
this.type = n, this.parent = r, this.config = o, this.parent = r, this.config = o, this.view = en(a), this.name = t.name ?? i, this.title = Qo(t.title) ? { text: t.title } : t.title ? en(t.title) : void 0, this.scaleNameMap = r ? r.scaleNameMap : new ky(), this.projectionNameMap = r ? r.projectionNameMap : new ky(), this.signalNameMap = r ? r.signalNameMap : new ky(), this.data = t.data, this.description = t.description, this.transforms = vde(t.transform ?? []), this.layout = n === "layer" || n === "unit" ? {} : Cfe(t, n, o), this.component = {
|
|
36191
36191
|
data: {
|
|
36192
36192
|
sources: r ? r.component.data.sources : [],
|
|
36193
36193
|
outputNodes: r ? r.component.data.outputNodes : {},
|
|
@@ -36563,7 +36563,7 @@ class Jl extends Je {
|
|
|
36563
36563
|
[Ir, _i]
|
|
36564
36564
|
]) {
|
|
36565
36565
|
const o = i.map((s) => {
|
|
36566
|
-
const a =
|
|
36566
|
+
const a = Pt(n.encoding[s]);
|
|
36567
36567
|
return G(a) ? a.field : oo(a) ? { expr: `${a.datum}` } : li(a) ? { expr: `${a.value}` } : void 0;
|
|
36568
36568
|
});
|
|
36569
36569
|
(o[0] || o[1]) && (t = new Jl(t, o, null, n.getName(`geojson_${r++}`)));
|
|
@@ -36622,7 +36622,7 @@ class Zf extends Je {
|
|
|
36622
36622
|
[Ir, _i]
|
|
36623
36623
|
]) {
|
|
36624
36624
|
const i = r.map((s) => {
|
|
36625
|
-
const a =
|
|
36625
|
+
const a = Pt(n.encoding[s]);
|
|
36626
36626
|
return G(a) ? a.field : oo(a) ? { expr: `${a.datum}` } : li(a) ? { expr: `${a.value}` } : void 0;
|
|
36627
36627
|
}), o = r[0] === Ir ? "2" : "";
|
|
36628
36628
|
(i[0] || i[1]) && (t = new Zf(t, n.projectionName(), i, [
|
|
@@ -36933,7 +36933,7 @@ function d7(e) {
|
|
|
36933
36933
|
name: null,
|
|
36934
36934
|
source: i.name,
|
|
36935
36935
|
transform: []
|
|
36936
|
-
}), r instanceof
|
|
36936
|
+
}), r instanceof mn && (r.parent instanceof Ka && !i.source ? (i.format = {
|
|
36937
36937
|
...i.format,
|
|
36938
36938
|
parse: r.assembleFormatParse()
|
|
36939
36939
|
}, i.transform.push(...r.assembleTransforms(!0))) : i.transform.push(...r.assembleTransforms())), r instanceof sc) {
|
|
@@ -37014,7 +37014,7 @@ function Cge(e, t) {
|
|
|
37014
37014
|
includeDefault: a === void 0 || !!a
|
|
37015
37015
|
});
|
|
37016
37016
|
i.component.layoutHeaders[t].title && (l = B(l) ? l.join(", ") : l, l += ` / ${i.component.layoutHeaders[t].title}`, i.component.layoutHeaders[t].title = null);
|
|
37017
|
-
const u = Ru("labelOrient", s.header, r, t), c = s.header !== null ?
|
|
37017
|
+
const u = Ru("labelOrient", s.header, r, t), c = s.header !== null ? kt(s.header?.labels, r.header.labels, !0) : !1, f = Re(["bottom", "right"], u) ? "footer" : "header";
|
|
37018
37018
|
o.layoutHeaders[t] = {
|
|
37019
37019
|
title: s.header !== null ? l : null,
|
|
37020
37020
|
facetFieldDef: s,
|
|
@@ -37146,7 +37146,7 @@ class Cf extends f7 {
|
|
|
37146
37146
|
}
|
|
37147
37147
|
initFacetFieldDef(t, n) {
|
|
37148
37148
|
const r = eC(t, n);
|
|
37149
|
-
return r.header ? r.header =
|
|
37149
|
+
return r.header ? r.header = en(r.header) : r.header === null && (r.header = null), r;
|
|
37150
37150
|
}
|
|
37151
37151
|
channelHasField(t) {
|
|
37152
37152
|
return W(this.facet, t);
|
|
@@ -37404,11 +37404,11 @@ function Nge(e, t, n) {
|
|
|
37404
37404
|
s = e = new Fu(e, i), o = "derived";
|
|
37405
37405
|
else if (dC(i)) {
|
|
37406
37406
|
const a = lpe(i);
|
|
37407
|
-
s = e =
|
|
37407
|
+
s = e = mn.makeWithAncestors(e, {}, a, n) ?? e, e = new oc(e, t, i.filter);
|
|
37408
37408
|
} else if (V9(i))
|
|
37409
37409
|
s = e = Ii.makeFromTransform(e, i, t), o = "number";
|
|
37410
37410
|
else if (gde(i))
|
|
37411
|
-
o = "date", n.getWithExplicit(i.field).value === void 0 && (e = new
|
|
37411
|
+
o = "date", n.getWithExplicit(i.field).value === void 0 && (e = new mn(e, { [i.field]: o }), n.set(i.field, o, !1)), s = e = Oi.makeFromTransform(e, i);
|
|
37412
37412
|
else if (mde(i))
|
|
37413
37413
|
s = e = ri.makeFromTransform(e, i), o = "number", bC(t) && (e = new Ts(e));
|
|
37414
37414
|
else if (G9(i))
|
|
@@ -37452,11 +37452,11 @@ function Nge(e, t, n) {
|
|
|
37452
37452
|
function J0(e) {
|
|
37453
37453
|
let t = Tge(e, e.component.data.sources);
|
|
37454
37454
|
const { outputNodes: n, outputNodeRefCounts: r } = e.component.data, i = e.data, s = !(i && (gs(i) || Tu(i) || Kf(i))) && e.parent ? e.parent.component.data.ancestorParse.clone() : new Nde();
|
|
37455
|
-
gs(i) ? (Q9(i) ? t = new Yd(t, i.sequence) : hC(i) && (t = new Vd(t, i.graticule)), s.parseNothing = !0) : i?.format?.parse === null && (s.parseNothing = !0), t =
|
|
37455
|
+
gs(i) ? (Q9(i) ? t = new Yd(t, i.sequence) : hC(i) && (t = new Vd(t, i.graticule)), s.parseNothing = !0) : i?.format?.parse === null && (s.parseNothing = !0), t = mn.makeExplicit(t, e, s) ?? t, t = new Ts(t);
|
|
37456
37456
|
const a = e.parent && lc(e.parent);
|
|
37457
37457
|
(at(e) || hr(e)) && a && (t = Ii.makeFromEncoding(t, e) ?? t), e.transforms.length > 0 && (t = Nge(t, e, s));
|
|
37458
37458
|
const l = cpe(e), u = upe(e);
|
|
37459
|
-
t =
|
|
37459
|
+
t = mn.makeWithAncestors(t, {}, { ...l, ...u }, s) ?? t, at(e) && (t = Jl.parseAll(t, e), t = Zf.parseAll(t, e)), (at(e) || hr(e)) && (a || (t = Ii.makeFromEncoding(t, e) ?? t), t = Oi.makeFromEncoding(t, e) ?? t, t = Fu.parseAllForSortIndex(t, e));
|
|
37460
37460
|
const c = t = Fh(dt.Raw, e, t);
|
|
37461
37461
|
if (at(e)) {
|
|
37462
37462
|
const m = ri.makeFromEncoding(t, e);
|
|
@@ -37603,7 +37603,7 @@ class FC extends Wo {
|
|
|
37603
37603
|
}
|
|
37604
37604
|
}
|
|
37605
37605
|
function Oge(e, t, n) {
|
|
37606
|
-
const { encoding: r, config: i } = e, o =
|
|
37606
|
+
const { encoding: r, config: i } = e, o = Pt(r[t]) ?? Pt(r[ro(t)]), s = e.axis(t) || {}, { format: a, formatType: l } = s;
|
|
37607
37607
|
if (Va(l))
|
|
37608
37608
|
return {
|
|
37609
37609
|
text: ti({
|
|
@@ -37729,7 +37729,7 @@ function Bge(e, t) {
|
|
|
37729
37729
|
return {
|
|
37730
37730
|
explicit: i.explicit,
|
|
37731
37731
|
// keep the old explicit
|
|
37732
|
-
value:
|
|
37732
|
+
value: kt(i.value, o.value)
|
|
37733
37733
|
};
|
|
37734
37734
|
}
|
|
37735
37735
|
return I0(i, o, n, "axis");
|
|
@@ -37773,7 +37773,7 @@ const jge = /* @__PURE__ */ new Set([
|
|
|
37773
37773
|
]);
|
|
37774
37774
|
function qge(e, t) {
|
|
37775
37775
|
let n = t.axis(e);
|
|
37776
|
-
const r = new FC(), i =
|
|
37776
|
+
const r = new FC(), i = Pt(t.encoding[e]), { mark: o, config: s } = t, a = n?.orient || s[e === "x" ? "axisX" : "axisY"]?.orient || s.axis?.orient || Che(e), l = t.getScaleComponent(e).get("type"), u = yhe(e, l, a, t.config), c = n !== void 0 ? !n : Jb("disable", s.style, n?.style, u).configValue;
|
|
37777
37777
|
if (r.set("disable", c, n !== void 0), c)
|
|
37778
37778
|
return r;
|
|
37779
37779
|
n = n || {};
|
|
@@ -37923,7 +37923,7 @@ const Hge = {
|
|
|
37923
37923
|
}),
|
|
37924
37924
|
...Dn("x", e, { defaultPos: "mid" }),
|
|
37925
37925
|
...Dn("y", e, { defaultPos: "mid" }),
|
|
37926
|
-
...
|
|
37926
|
+
...nn("size", e, {
|
|
37927
37927
|
vgChannel: "strokeWidth"
|
|
37928
37928
|
// VL's line size is strokeWidth
|
|
37929
37929
|
}),
|
|
@@ -37942,7 +37942,7 @@ const Hge = {
|
|
|
37942
37942
|
}),
|
|
37943
37943
|
...Dn("x", e, { defaultPos: "mid" }),
|
|
37944
37944
|
...Dn("y", e, { defaultPos: "mid" }),
|
|
37945
|
-
...
|
|
37945
|
+
...nn("size", e),
|
|
37946
37946
|
..._C(e)
|
|
37947
37947
|
})
|
|
37948
37948
|
};
|
|
@@ -37959,13 +37959,13 @@ function DC(e, t) {
|
|
|
37959
37959
|
}),
|
|
37960
37960
|
...Dn("x", e, { defaultPos: "mid" }),
|
|
37961
37961
|
...Dn("y", e, { defaultPos: "mid" }),
|
|
37962
|
-
...
|
|
37963
|
-
...
|
|
37962
|
+
...nn("size", e),
|
|
37963
|
+
...nn("angle", e),
|
|
37964
37964
|
...Jge(e, n, t)
|
|
37965
37965
|
};
|
|
37966
37966
|
}
|
|
37967
37967
|
function Jge(e, t, n) {
|
|
37968
|
-
return n ? { shape: { value: n } } :
|
|
37968
|
+
return n ? { shape: { value: n } } : nn("shape", e);
|
|
37969
37969
|
}
|
|
37970
37970
|
const Qge = {
|
|
37971
37971
|
vgMark: "symbol",
|
|
@@ -38015,7 +38015,7 @@ const Qge = {
|
|
|
38015
38015
|
range: n !== "horizontal"
|
|
38016
38016
|
// include y2 for vertical or line segment rule
|
|
38017
38017
|
}),
|
|
38018
|
-
...
|
|
38018
|
+
...nn("size", e, {
|
|
38019
38019
|
vgChannel: "strokeWidth"
|
|
38020
38020
|
// VL's rule size is strokeWidth
|
|
38021
38021
|
})
|
|
@@ -38037,11 +38037,11 @@ const Qge = {
|
|
|
38037
38037
|
...Dn("x", e, { defaultPos: "mid" }),
|
|
38038
38038
|
...Dn("y", e, { defaultPos: "mid" }),
|
|
38039
38039
|
...gC(e),
|
|
38040
|
-
...
|
|
38040
|
+
...nn("size", e, {
|
|
38041
38041
|
vgChannel: "fontSize"
|
|
38042
38042
|
// VL's text size is fontSize
|
|
38043
38043
|
}),
|
|
38044
|
-
...
|
|
38044
|
+
...nn("angle", e),
|
|
38045
38045
|
...L3("align", ome(e.markDef, n, t)),
|
|
38046
38046
|
...L3("baseline", sme(e.markDef, n, t)),
|
|
38047
38047
|
...Dn("radius", e, { defaultPos: null }),
|
|
@@ -38236,7 +38236,7 @@ function fme(e) {
|
|
|
38236
38236
|
}
|
|
38237
38237
|
}
|
|
38238
38238
|
function RC(e, t = { fromPrefix: "" }) {
|
|
38239
|
-
const { mark: n, markDef: r, encoding: i, config: o } = e, s =
|
|
38239
|
+
const { mark: n, markDef: r, encoding: i, config: o } = e, s = kt(r.clip, dme(e), hme(e)), a = gO(r), l = i.key, u = fme(e), c = pme(e);
|
|
38240
38240
|
c && Object.values(e.component.selection).some((h) => h.type === "point" && !h.bind && // if on is a pointerover (hover) the pointer makes less sense since the mark is not clickable.
|
|
38241
38241
|
h.on !== "pointerover") && (e.markDef.cursor ??= "pointer");
|
|
38242
38242
|
const f = Ye("aria", r, o), d = Dh[n].postEncodingTransform ? Dh[n].postEncodingTransform(e) : null;
|
|
@@ -38306,7 +38306,7 @@ class m7 extends f7 {
|
|
|
38306
38306
|
}), this.stack = U9(this.markDef, l), this.specifiedScales = this.initScales(a, l), this.specifiedAxes = this.initAxes(l), this.specifiedLegends = this.initLegends(l), this.specifiedProjection = t.projection, this.selection = (t.params ?? []).filter((u) => lC(u)), this.alignStackOrderWithColorDomain();
|
|
38307
38307
|
}
|
|
38308
38308
|
get hasProjection() {
|
|
38309
|
-
const { encoding: t } = this, n = this.mark === VO, r = t && qae.some((i) =>
|
|
38309
|
+
const { encoding: t } = this, n = this.mark === VO, r = t && qae.some((i) => ve(t[i]));
|
|
38310
38310
|
return n || r;
|
|
38311
38311
|
}
|
|
38312
38312
|
/**
|
|
@@ -38325,19 +38325,19 @@ class m7 extends f7 {
|
|
|
38325
38325
|
}
|
|
38326
38326
|
initScales(t, n) {
|
|
38327
38327
|
return EE.reduce((r, i) => {
|
|
38328
|
-
const o =
|
|
38328
|
+
const o = Pt(n[i]);
|
|
38329
38329
|
return o && (r[i] = this.initScale(o.scale ?? {})), r;
|
|
38330
38330
|
}, {});
|
|
38331
38331
|
}
|
|
38332
38332
|
initScale(t) {
|
|
38333
|
-
const { domain: n, range: r } = t, i =
|
|
38333
|
+
const { domain: n, range: r } = t, i = en(t);
|
|
38334
38334
|
return B(n) && (i.domain = n.map(or)), B(r) && (i.range = r.map(or)), i;
|
|
38335
38335
|
}
|
|
38336
38336
|
initAxes(t) {
|
|
38337
38337
|
return jo.reduce((n, r) => {
|
|
38338
38338
|
const i = t[r];
|
|
38339
|
-
if (
|
|
38340
|
-
const o =
|
|
38339
|
+
if (ve(i) || r === ut && ve(t.x2) || r === Zt && ve(t.y2)) {
|
|
38340
|
+
const o = ve(i) ? i.axis : void 0;
|
|
38341
38341
|
n[r] = o && this.initAxis({ ...o });
|
|
38342
38342
|
}
|
|
38343
38343
|
return n;
|
|
@@ -38353,10 +38353,10 @@ class m7 extends f7 {
|
|
|
38353
38353
|
}
|
|
38354
38354
|
initLegends(t) {
|
|
38355
38355
|
return ele.reduce((n, r) => {
|
|
38356
|
-
const i =
|
|
38356
|
+
const i = Pt(t[r]);
|
|
38357
38357
|
if (i && nle(r)) {
|
|
38358
38358
|
const o = i.legend;
|
|
38359
|
-
n[r] = o &&
|
|
38359
|
+
n[r] = o && en(o);
|
|
38360
38360
|
}
|
|
38361
38361
|
return n;
|
|
38362
38362
|
}, {});
|
|
@@ -38597,7 +38597,7 @@ const _me = Iae.version, bme = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obj
|
|
|
38597
38597
|
every: dE,
|
|
38598
38598
|
fieldIntersection: pE,
|
|
38599
38599
|
flatAccessWithDatum: V8,
|
|
38600
|
-
getFirstDefined:
|
|
38600
|
+
getFirstDefined: kt,
|
|
38601
38601
|
hasIntersection: hE,
|
|
38602
38602
|
hasProperty: W,
|
|
38603
38603
|
hash: $e,
|
|
@@ -40925,12 +40925,12 @@ const u1e = "_text_we7dz_1", c1e = "_chart_time_we7dz_30", f1e = "_quick_replies
|
|
|
40925
40925
|
quick_reply: d1e
|
|
40926
40926
|
};
|
|
40927
40927
|
function h1e(e) {
|
|
40928
|
-
const { message: t } = e, n = t.message.template, { template: r, botMessage: i } =
|
|
40928
|
+
const { message: t } = e, n = t.message.template, { template: r, botMessage: i } = vt(), { avatar: o } = Ft(), [s, a] = we(n?.defaultChart ?? n?.chartOptions?.[0]?.type), l = be(() => n.chartOptions, [n]), u = be(
|
|
40929
40929
|
() => n?.chartOptions?.find(
|
|
40930
40930
|
(f) => f.type === s
|
|
40931
40931
|
)?.spec ?? l[0].spec,
|
|
40932
40932
|
[s, n.chartOptions, l]
|
|
40933
|
-
), c =
|
|
40933
|
+
), c = be(
|
|
40934
40934
|
() => ({
|
|
40935
40935
|
color: i?.color,
|
|
40936
40936
|
backgroundColor: i?.backgroundColor
|
|
@@ -40938,7 +40938,7 @@ function h1e(e) {
|
|
|
40938
40938
|
[i]
|
|
40939
40939
|
);
|
|
40940
40940
|
return /* @__PURE__ */ U(
|
|
40941
|
-
|
|
40941
|
+
yn,
|
|
40942
40942
|
{
|
|
40943
40943
|
className: "asgard-chart-template",
|
|
40944
40944
|
type: "bot",
|
|
@@ -40964,12 +40964,12 @@ const p1e = "_image_box_8cz9p_1", g1e = "_full_screen_8cz9p_24", m1e = "_imageOr
|
|
|
40964
40964
|
full_screen_close: y1e
|
|
40965
40965
|
};
|
|
40966
40966
|
function _1e(e) {
|
|
40967
|
-
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i } = n, { template: o } =
|
|
40967
|
+
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i } = n, { template: o } = vt(), { avatar: s } = Ft(), [a, l] = we(!1);
|
|
40968
40968
|
return a ? /* @__PURE__ */ U("div", { className: zh.full_screen, onClick: () => l(!1), children: [
|
|
40969
40969
|
/* @__PURE__ */ C("div", { className: zh.full_screen_close, children: /* @__PURE__ */ C(uT, {}) }),
|
|
40970
40970
|
/* @__PURE__ */ C("div", { className: zh.imageOrigin, style: { backgroundImage: `url(${i})` } })
|
|
40971
40971
|
] }) : /* @__PURE__ */ U(
|
|
40972
|
-
|
|
40972
|
+
yn,
|
|
40973
40973
|
{
|
|
40974
40974
|
className: "asgard-image-template",
|
|
40975
40975
|
type: "bot",
|
|
@@ -41025,7 +41025,7 @@ function $1e(e) {
|
|
|
41025
41025
|
return `https://www.youtube.com/embed/${e}?autoplay=1&rel=0`;
|
|
41026
41026
|
}
|
|
41027
41027
|
function A1e(e) {
|
|
41028
|
-
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i, duration: o } = n, { template: s } =
|
|
41028
|
+
const { message: t } = e, n = t.message.template, { previewImageUrl: r, originalContentUrl: i, duration: o } = n, { template: s } = vt(), { avatar: a, messageBoxBottomRef: l } = Ft(), [u, c] = we(!1), f = yt(null), d = yt(null), [h, p] = we(null), [g, m] = we(0), [y, _] = we(0);
|
|
41029
41029
|
Oe(() => {
|
|
41030
41030
|
const T = setTimeout(() => {
|
|
41031
41031
|
l.current && l.current.scrollIntoView({ behavior: "smooth" });
|
|
@@ -41038,7 +41038,7 @@ function A1e(e) {
|
|
|
41038
41038
|
l.current && setTimeout(() => {
|
|
41039
41039
|
l.current?.scrollIntoView({ behavior: "smooth" });
|
|
41040
41040
|
}, 50);
|
|
41041
|
-
}, v =
|
|
41041
|
+
}, v = be(() => S1e(i), [i]), x = be(() => F7(i), [i]), E = be(() => x ? $1e(x) : null, [x]), w = () => {
|
|
41042
41042
|
c(!0), !v && f.current && f.current.play();
|
|
41043
41043
|
}, k = (T) => {
|
|
41044
41044
|
const F = Math.floor(T / 1e3), D = Math.floor(F / 60), N = F % 60;
|
|
@@ -41075,7 +41075,7 @@ function A1e(e) {
|
|
|
41075
41075
|
Oe(() => {
|
|
41076
41076
|
v && p({ width: 16, height: 9 });
|
|
41077
41077
|
}, [v]);
|
|
41078
|
-
const A =
|
|
41078
|
+
const A = be(() => {
|
|
41079
41079
|
const T = g || window.innerWidth, F = y || window.innerHeight, N = h || { width: 16, height: 9 }, { width: $, height: M } = N, R = $ / M;
|
|
41080
41080
|
if ($ > M) {
|
|
41081
41081
|
const O = T * 0.76, V = O / R;
|
|
@@ -41094,7 +41094,7 @@ function A1e(e) {
|
|
|
41094
41094
|
}
|
|
41095
41095
|
}, [g, y, h]);
|
|
41096
41096
|
return /* @__PURE__ */ U(
|
|
41097
|
-
|
|
41097
|
+
yn,
|
|
41098
41098
|
{
|
|
41099
41099
|
className: "asgard-video-template",
|
|
41100
41100
|
type: "bot",
|
|
@@ -41149,14 +41149,14 @@ const M1e = "_audio_box_1y8ew_1", T1e = "_audio_player_1y8ew_13", GM = {
|
|
|
41149
41149
|
audio_player: T1e
|
|
41150
41150
|
};
|
|
41151
41151
|
function N1e(e) {
|
|
41152
|
-
const { message: t } = e, n = t.message.template, { originalContentUrl: r } = n, { template: i } =
|
|
41152
|
+
const { message: t } = e, n = t.message.template, { originalContentUrl: r } = n, { template: i } = vt(), { avatar: o, messageBoxBottomRef: s } = Ft();
|
|
41153
41153
|
return Oe(() => {
|
|
41154
41154
|
const a = setTimeout(() => {
|
|
41155
41155
|
s.current && s.current.scrollIntoView({ behavior: "smooth" });
|
|
41156
41156
|
}, 100);
|
|
41157
41157
|
return () => clearTimeout(a);
|
|
41158
41158
|
}, [s]), /* @__PURE__ */ U(
|
|
41159
|
-
|
|
41159
|
+
yn,
|
|
41160
41160
|
{
|
|
41161
41161
|
className: "asgard-audio-template",
|
|
41162
41162
|
type: "bot",
|
|
@@ -41224,8 +41224,8 @@ function P1e(e) {
|
|
|
41224
41224
|
);
|
|
41225
41225
|
}
|
|
41226
41226
|
function z1e(e) {
|
|
41227
|
-
const { message: t } = e, { template: n } =
|
|
41228
|
-
return /* @__PURE__ */ U(
|
|
41227
|
+
const { message: t } = e, { template: n } = vt(), { avatar: r } = Ft(), i = t.message.template;
|
|
41228
|
+
return /* @__PURE__ */ U(yn, { className: "asgard-location-template", type: "bot", direction: "horizontal", children: [
|
|
41229
41229
|
/* @__PURE__ */ C(gr, { avatar: r }),
|
|
41230
41230
|
/* @__PURE__ */ C(
|
|
41231
41231
|
pr,
|
|
@@ -41268,13 +41268,13 @@ const B1e = "_message_wrapper_1cjr0_1", U1e = "_text_bubble_1cjr0_9", j1e = "_im
|
|
|
41268
41268
|
modal_image: K1e
|
|
41269
41269
|
};
|
|
41270
41270
|
function Z1e({ message: e }) {
|
|
41271
|
-
const [t, n] = we(null), r =
|
|
41271
|
+
const [t, n] = we(null), r = vt(), i = be(
|
|
41272
41272
|
() => ({
|
|
41273
41273
|
color: r?.userMessage?.color,
|
|
41274
41274
|
backgroundColor: r?.userMessage?.backgroundColor
|
|
41275
41275
|
}),
|
|
41276
41276
|
[r]
|
|
41277
|
-
), o =
|
|
41277
|
+
), o = be(
|
|
41278
41278
|
() => ({
|
|
41279
41279
|
backgroundColor: r?.userMessage?.backgroundColor,
|
|
41280
41280
|
color: r?.userMessage?.color
|
|
@@ -41283,7 +41283,7 @@ function Z1e({ message: e }) {
|
|
|
41283
41283
|
), s = r?.template?.TextMessageTemplate?.style;
|
|
41284
41284
|
return /* @__PURE__ */ U(Ja, { children: [
|
|
41285
41285
|
/* @__PURE__ */ U(
|
|
41286
|
-
|
|
41286
|
+
yn,
|
|
41287
41287
|
{
|
|
41288
41288
|
className: "asgard-text-template asgard-text-template--user",
|
|
41289
41289
|
type: "user",
|
|
@@ -41561,7 +41561,7 @@ function Rye({
|
|
|
41561
41561
|
}
|
|
41562
41562
|
function Oye(e) {
|
|
41563
41563
|
const { time: t, ...n } = e, { avatar: r } = Ft();
|
|
41564
|
-
return /* @__PURE__ */ U(
|
|
41564
|
+
return /* @__PURE__ */ U(yn, { className: "asgard-tool-call-group-template", type: "bot", direction: "horizontal", children: [
|
|
41565
41565
|
/* @__PURE__ */ C(gr, { avatar: r }),
|
|
41566
41566
|
/* @__PURE__ */ C(pr, { time: t, children: /* @__PURE__ */ C(Rye, { ...n }) })
|
|
41567
41567
|
] });
|
|
@@ -41627,15 +41627,15 @@ function n_e() {
|
|
|
41627
41627
|
] });
|
|
41628
41628
|
}
|
|
41629
41629
|
function r_e(e) {
|
|
41630
|
-
const { message: t } = e, n = t.message.template, { table: r, title: i } = n, { columns: o, data: s, pagination: a, rowType: l } = r, { template: u, botMessage: c } =
|
|
41630
|
+
const { message: t } = e, n = t.message.template, { table: r, title: i } = n, { columns: o, data: s, pagination: a, rowType: l } = r, { template: u, botMessage: c } = vt(), { avatar: f } = Ft(), [d, h] = we(1), [p, g] = we({
|
|
41631
41631
|
visible: !1,
|
|
41632
41632
|
fileName: "",
|
|
41633
41633
|
blobUrl: null
|
|
41634
|
-
}), m = a?.size ?? s.length, y = Math.ceil(s.length / m), _ =
|
|
41634
|
+
}), m = a?.size ?? s.length, y = Math.ceil(s.length / m), _ = be(() => {
|
|
41635
41635
|
if (!a) return s;
|
|
41636
41636
|
const S = (d - 1) * m, A = S + m;
|
|
41637
41637
|
return s.slice(S, A);
|
|
41638
|
-
}, [s, a, d, m]), b =
|
|
41638
|
+
}, [s, a, d, m]), b = be(
|
|
41639
41639
|
() => ({
|
|
41640
41640
|
color: c?.color,
|
|
41641
41641
|
backgroundColor: c?.backgroundColor
|
|
@@ -41661,7 +41661,7 @@ function r_e(e) {
|
|
|
41661
41661
|
return () => clearTimeout(S);
|
|
41662
41662
|
}
|
|
41663
41663
|
}, [p.visible, k]), /* @__PURE__ */ U(
|
|
41664
|
-
|
|
41664
|
+
yn,
|
|
41665
41665
|
{
|
|
41666
41666
|
className: "asgard-table-template",
|
|
41667
41667
|
type: "bot",
|
|
@@ -41731,11 +41731,11 @@ function r_e(e) {
|
|
|
41731
41731
|
);
|
|
41732
41732
|
}
|
|
41733
41733
|
function i_e(e) {
|
|
41734
|
-
const { message: t } = e, { renderMessageContent: n } = Lu(), { avatar: r } = Ft(), i =
|
|
41735
|
-
return t.type === "bot" ? /* @__PURE__ */ U(
|
|
41734
|
+
const { message: t } = e, { renderMessageContent: n } = Lu(), { avatar: r } = Ft(), i = be(() => function({ children: a }) {
|
|
41735
|
+
return t.type === "bot" ? /* @__PURE__ */ U(yn, { type: "bot", direction: "horizontal", children: [
|
|
41736
41736
|
/* @__PURE__ */ C(gr, { avatar: r }),
|
|
41737
41737
|
/* @__PURE__ */ C(pr, { message: t, time: t.time, children: a })
|
|
41738
|
-
] }) : t.type === "user" ? /* @__PURE__ */ C(
|
|
41738
|
+
] }) : t.type === "user" ? /* @__PURE__ */ C(yn, { type: "user", direction: "horizontal", children: a }) : a;
|
|
41739
41739
|
}, [t, r]), o = oe(() => {
|
|
41740
41740
|
if (t.type === "user")
|
|
41741
41741
|
return t.blobIds && t.blobIds.length > 0 ? /* @__PURE__ */ C(Z1e, { message: { type: "user", message: t } }) : /* @__PURE__ */ C(ok, { message: t });
|
|
@@ -41795,7 +41795,7 @@ function s_e(e) {
|
|
|
41795
41795
|
}
|
|
41796
41796
|
const a_e = 50;
|
|
41797
41797
|
function l_e() {
|
|
41798
|
-
const { chatbot: e } =
|
|
41798
|
+
const { chatbot: e } = vt(), { renderToolCallGroup: t } = Lu(), {
|
|
41799
41799
|
messages: n,
|
|
41800
41800
|
messageBoxBottomRef: r,
|
|
41801
41801
|
botTypingPlaceholder: i,
|
|
@@ -41827,7 +41827,7 @@ function l_e() {
|
|
|
41827
41827
|
s && u("smooth");
|
|
41828
41828
|
}, [s, u]);
|
|
41829
41829
|
nI({ ref: f, onResize: d });
|
|
41830
|
-
const h =
|
|
41830
|
+
const h = be(
|
|
41831
41831
|
() => ({
|
|
41832
41832
|
maxWidth: e?.contentMaxWidth ?? "1200px"
|
|
41833
41833
|
}),
|
|
@@ -41902,7 +41902,7 @@ const u_e = "_chatbot_footer_1fl03_1", c_e = "_chatbot_footer__content_1fl03_4",
|
|
|
41902
41902
|
document_preview_icon_wrapper: P_e,
|
|
41903
41903
|
document_preview_icon: z_e,
|
|
41904
41904
|
document_preview_name: B_e
|
|
41905
|
-
}, U_e = (e) => /* @__PURE__ */
|
|
41905
|
+
}, U_e = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 15, height: 12, viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M0.823242 11.6953V0.945312L14.3328 6.32031L0.823242 11.6953ZM1.90658 10.0911L11.3649 6.32031L1.90658 2.54948V4.98052L5.92574 6.32031L1.90658 7.6601V10.0911Z", fill: "currentColor" })), YM = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M18 22H4a2 2 0 0 1-2-2V6" }), /* @__PURE__ */ xe.createElement("path", { d: "m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18" }), /* @__PURE__ */ xe.createElement("circle", { cx: 12, cy: 8, r: 2 }), /* @__PURE__ */ xe.createElement("rect", { width: 16, height: 16, x: 6, y: 2, rx: 2 })), XM = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), /* @__PURE__ */ xe.createElement("polyline", { points: "7 10 12 15 17 10" }), /* @__PURE__ */ xe.createElement("line", { x1: 12, x2: 12, y1: 15, y2: 3 })), z7 = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }), /* @__PURE__ */ xe.createElement("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }), /* @__PURE__ */ xe.createElement("path", { d: "M10 9H8" }), /* @__PURE__ */ xe.createElement("path", { d: "M16 13H8" }), /* @__PURE__ */ xe.createElement("path", { d: "M16 17H8" })), j_e = (e) => /* @__PURE__ */ xe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M5 12h14" }), /* @__PURE__ */ xe.createElement("path", { d: "M12 5v14" })), q_e = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 11, height: 16, viewBox: "0 0 11 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("path", { d: "M5.40658 9.90397C4.82435 9.90397 4.33158 9.7023 3.92824 9.29897C3.52491 8.89564 3.32324 8.40286 3.32324 7.82064V2.82064C3.32324 2.23842 3.52491 1.74564 3.92824 1.3423C4.33158 0.938971 4.82435 0.737305 5.40658 0.737305C5.9888 0.737305 6.48158 0.938971 6.88491 1.3423C7.28824 1.74564 7.48991 2.23842 7.48991 2.82064V7.82064C7.48991 8.40286 7.28824 8.89564 6.88491 9.29897C6.48158 9.7023 5.9888 9.90397 5.40658 9.90397ZM4.86491 15.1123V12.8654C3.56213 12.7208 2.47949 12.1724 1.61699 11.2202C0.754492 10.2679 0.323242 9.13467 0.323242 7.82064H1.40658C1.40658 8.92731 1.79706 9.87064 2.57803 10.6506C3.35887 11.4306 4.30331 11.8206 5.41137 11.8206C6.51928 11.8206 7.46213 11.4306 8.23991 10.6506C9.01769 9.87064 9.40658 8.92731 9.40658 7.82064H10.4899C10.4899 9.13467 10.0587 10.2679 9.19616 11.2202C8.33366 12.1724 7.25102 12.7208 5.94824 12.8654V15.1123H4.86491ZM5.40658 8.82064C5.68991 8.82064 5.92741 8.7248 6.11908 8.53314C6.31074 8.34147 6.40658 8.10397 6.40658 7.82064V2.82064C6.40658 2.5373 6.31074 2.2998 6.11908 2.10814C5.92741 1.91647 5.68991 1.82064 5.40658 1.82064C5.12324 1.82064 4.88574 1.91647 4.69408 2.10814C4.50241 2.2998 4.40658 2.5373 4.40658 2.82064V7.82064C4.40658 8.10397 4.50241 8.34147 4.69408 8.53314C4.88574 8.7248 5.12324 8.82064 5.40658 8.82064Z", fill: "currentColor" })), W_e = (e) => /* @__PURE__ */ xe.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ xe.createElement("circle", { cx: 20, cy: 20, r: 18, fill: "#D04444" }), /* @__PURE__ */ xe.createElement("rect", { x: 12, y: 12, width: 16, height: 16, fill: "#FFFFFF", rx: 2, ry: 2 }));
|
|
41906
41906
|
function H_e(e) {
|
|
41907
41907
|
const { setValue: t, className: n, style: r } = e, [i, o] = we(!1), s = yt(null);
|
|
41908
41908
|
Oe(() => {
|
|
@@ -42108,13 +42108,13 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42108
42108
|
programmaticScrollToBottom: f,
|
|
42109
42109
|
pendingInputValue: d,
|
|
42110
42110
|
setPendingInputValue: h
|
|
42111
|
-
} = Ft(), { data: p } = gv(), { chatbot: g } =
|
|
42111
|
+
} = Ft(), { data: p } = gv(), { chatbot: g } = vt(), m = be(() => s !== void 0 ? s : p.annotations?.embedConfig?.enableUpload ?? !1, [s, p.annotations?.embedConfig?.enableUpload]), y = be(() => a !== void 0 ? a : p.annotations?.embedConfig?.enableExport ?? !1, [a, p.annotations?.embedConfig?.enableExport]), _ = be(() => l !== void 0 ? l : p.annotations?.embedConfig?.enableDocumentUpload ?? !1, [l, p.annotations?.embedConfig?.enableDocumentUpload]), b = be(() => p.annotations?.embedConfig?.title || c || "Bot", [p.annotations?.embedConfig?.title, c]), [v, x] = we(""), [E, w] = we(!1), [k, S] = we([]), [A, T] = we(null), [F, D] = we([]), [N, $] = we(!1), M = yt(null), R = yt(null), z = yt(null), O = be(
|
|
42112
42112
|
() => k.some((Z) => Z.uploadStatus === "uploading"),
|
|
42113
42113
|
[k]
|
|
42114
|
-
), V =
|
|
42114
|
+
), V = be(
|
|
42115
42115
|
() => F.some((Z) => Z.uploadStatus === "uploading"),
|
|
42116
42116
|
[F]
|
|
42117
|
-
), ae = !t, re =
|
|
42117
|
+
), ae = !t, re = be(
|
|
42118
42118
|
() => ae || n || O || V || !v.trim() && k.length === 0 && F.length === 0,
|
|
42119
42119
|
[
|
|
42120
42120
|
ae,
|
|
@@ -42125,29 +42125,29 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42125
42125
|
k.length,
|
|
42126
42126
|
F.length
|
|
42127
42127
|
]
|
|
42128
|
-
), fe =
|
|
42128
|
+
), fe = be(
|
|
42129
42129
|
() => ({
|
|
42130
42130
|
maxWidth: g?.contentMaxWidth ?? "1200px"
|
|
42131
42131
|
}),
|
|
42132
42132
|
[g]
|
|
42133
|
-
), Be =
|
|
42133
|
+
), Be = be(
|
|
42134
42134
|
() => ({
|
|
42135
42135
|
...g?.footer?.style,
|
|
42136
42136
|
borderTopColor: g?.borderColor
|
|
42137
42137
|
}),
|
|
42138
42138
|
[g]
|
|
42139
|
-
), pe =
|
|
42139
|
+
), pe = be(
|
|
42140
42140
|
() => ({
|
|
42141
42141
|
backgroundColor: g?.backgroundColor,
|
|
42142
42142
|
borderColor: g?.borderColor
|
|
42143
42143
|
}),
|
|
42144
42144
|
[g]
|
|
42145
|
-
), Le =
|
|
42145
|
+
), Le = be(
|
|
42146
42146
|
() => ({
|
|
42147
42147
|
color: g?.primaryComponent?.secondaryColor
|
|
42148
42148
|
}),
|
|
42149
42149
|
[g]
|
|
42150
|
-
),
|
|
42150
|
+
), Jt = be(() => {
|
|
42151
42151
|
let Z = 0;
|
|
42152
42152
|
return y && Z++, m && Z++, _ && Z++, Z;
|
|
42153
42153
|
}, [y, m, _]) >= 3;
|
|
@@ -42166,7 +42166,7 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42166
42166
|
ye(!0), setTimeout(() => {
|
|
42167
42167
|
f("smooth");
|
|
42168
42168
|
}, 300);
|
|
42169
|
-
}, [f]),
|
|
42169
|
+
}, [f]), xt = oe(() => {
|
|
42170
42170
|
ye(!1);
|
|
42171
42171
|
}, []), Ie = oe(() => {
|
|
42172
42172
|
if (!E && !n) {
|
|
@@ -42188,7 +42188,7 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42188
42188
|
Z.key === "Enter" && !E && !n && (v.trim() || k.length > 0 || F.length > 0) && (Z.preventDefault(), Ie());
|
|
42189
42189
|
},
|
|
42190
42190
|
[E, n, v, k.length, F.length, Ie]
|
|
42191
|
-
),
|
|
42191
|
+
), wt = oe(
|
|
42192
42192
|
async (Z, Ce) => {
|
|
42193
42193
|
if (!i?.uploadFile || !o) {
|
|
42194
42194
|
S(
|
|
@@ -42214,7 +42214,7 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42214
42214
|
}
|
|
42215
42215
|
},
|
|
42216
42216
|
[i, o]
|
|
42217
|
-
),
|
|
42217
|
+
), Rt = oe(
|
|
42218
42218
|
(Z) => {
|
|
42219
42219
|
const { validFiles: Ce, errors: Ae } = V_e(Z);
|
|
42220
42220
|
if (Ae.length > 0 && alert(`檔案驗證錯誤:
|
|
@@ -42233,20 +42233,20 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42233
42233
|
previewUrl: dc.target.result,
|
|
42234
42234
|
uploadStatus: "uploading"
|
|
42235
42235
|
};
|
|
42236
|
-
S((G7) => [...G7, H7]),
|
|
42236
|
+
S((G7) => [...G7, H7]), wt(Hs, Te);
|
|
42237
42237
|
}
|
|
42238
42238
|
}, Xd.readAsDataURL(Te);
|
|
42239
42239
|
}
|
|
42240
42240
|
}
|
|
42241
42241
|
}
|
|
42242
42242
|
},
|
|
42243
|
-
[k.length,
|
|
42243
|
+
[k.length, wt]
|
|
42244
42244
|
), jt = oe(
|
|
42245
42245
|
(Z) => {
|
|
42246
42246
|
const Ce = Z.target.files;
|
|
42247
|
-
Ce && Ce.length > 0 &&
|
|
42247
|
+
Ce && Ce.length > 0 && Rt(Array.from(Ce)), Z.target.value = "";
|
|
42248
42248
|
},
|
|
42249
|
-
[
|
|
42249
|
+
[Rt]
|
|
42250
42250
|
), cc = oe(() => {
|
|
42251
42251
|
if (k.length >= Uh) {
|
|
42252
42252
|
alert(`最多只能上傳 ${Uh} 張圖片`);
|
|
@@ -42308,8 +42308,8 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42308
42308
|
const Z = [], Ce = [];
|
|
42309
42309
|
for (const Ae of n1)
|
|
42310
42310
|
Ae.type.startsWith("image/") ? Z.push(Ae) : Ce.push(Ae);
|
|
42311
|
-
Z.length > 0 && m ?
|
|
42312
|
-
}, [n1, GC, m, _,
|
|
42311
|
+
Z.length > 0 && m ? Rt(Z) : Ce.length > 0 && _ ? fc(Ce) : Z.length > 0 && !m && _ && fc(Z), GC();
|
|
42312
|
+
}, [n1, GC, m, _, Rt, fc]);
|
|
42313
42313
|
const W7 = oe(
|
|
42314
42314
|
(Z) => {
|
|
42315
42315
|
if (!m) return;
|
|
@@ -42321,9 +42321,9 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42321
42321
|
const At = Ce[Fe].getAsFile();
|
|
42322
42322
|
At && Ae.push(At);
|
|
42323
42323
|
}
|
|
42324
|
-
Ae.length > 0 && (Z.preventDefault(),
|
|
42324
|
+
Ae.length > 0 && (Z.preventDefault(), Rt(Ae));
|
|
42325
42325
|
},
|
|
42326
|
-
[m,
|
|
42326
|
+
[m, Rt]
|
|
42327
42327
|
);
|
|
42328
42328
|
Oe(() => {
|
|
42329
42329
|
d !== null && (x(d), h(null), M.current && (M.current.style.height = "36px", M.current.style.height = `${M.current.scrollHeight}px`, M.current.focus()));
|
|
@@ -42493,7 +42493,7 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42493
42493
|
className: me.file_input_hidden
|
|
42494
42494
|
}
|
|
42495
42495
|
),
|
|
42496
|
-
/* @__PURE__ */ C("div", { className: me.attachment_buttons, children:
|
|
42496
|
+
/* @__PURE__ */ C("div", { className: me.attachment_buttons, children: Jt ? /* @__PURE__ */ U("div", { className: me.attachment_menu_container, ref: z, children: [
|
|
42497
42497
|
/* @__PURE__ */ C(
|
|
42498
42498
|
"button",
|
|
42499
42499
|
{
|
|
@@ -42604,7 +42604,7 @@ function Z_e({ footerEndActions: e } = {}) {
|
|
|
42604
42604
|
onKeyDown: ht,
|
|
42605
42605
|
onPaste: W7,
|
|
42606
42606
|
onFocus: j,
|
|
42607
|
-
onAnimationEnd:
|
|
42607
|
+
onAnimationEnd: xt,
|
|
42608
42608
|
onCompositionStart: () => w(!0),
|
|
42609
42609
|
onCompositionEnd: () => w(!1)
|
|
42610
42610
|
}
|
|
@@ -42669,7 +42669,7 @@ const J_e = "_chatbot_root_htsl5_2", Q_e = "_full_screen_htsl5_128", ebe = "_cha
|
|
|
42669
42669
|
chatbot_container: ebe
|
|
42670
42670
|
};
|
|
42671
42671
|
function tbe(e) {
|
|
42672
|
-
const { children: t, onDragEnter: n, onDragOver: r, onDragLeave: i, onDrop: o } = e, s = yt(null), a = yt(null), l =
|
|
42672
|
+
const { children: t, onDragEnter: n, onDragOver: r, onDragLeave: i, onDrop: o } = e, s = yt(null), a = yt(null), l = vt();
|
|
42673
42673
|
rI(s), Oe(() => {
|
|
42674
42674
|
const c = a.current;
|
|
42675
42675
|
if (!c) return;
|
|
@@ -42695,7 +42695,7 @@ function tbe(e) {
|
|
|
42695
42695
|
c.removeEventListener("wheel", d), c.removeEventListener("touchstart", h), c.removeEventListener("touchmove", p);
|
|
42696
42696
|
};
|
|
42697
42697
|
}, []);
|
|
42698
|
-
const u =
|
|
42698
|
+
const u = be(() => l?.chatbot?.backgroundColor ? { backgroundColor: l.chatbot?.backgroundColor } : {}, [l]);
|
|
42699
42699
|
return /* @__PURE__ */ C("div", { ref: s, className: Kg.full_screen, children: /* @__PURE__ */ C(
|
|
42700
42700
|
"div",
|
|
42701
42701
|
{
|
|
@@ -42711,7 +42711,7 @@ function tbe(e) {
|
|
|
42711
42711
|
) });
|
|
42712
42712
|
}
|
|
42713
42713
|
function JM(e) {
|
|
42714
|
-
const { fullScreen: t, children: n, className: r, style: i = {}, onDragEnter: o, onDragOver: s, onDragLeave: a, onDrop: l } = e, u = yt(null), { chatbot: c } =
|
|
42714
|
+
const { fullScreen: t, children: n, className: r, style: i = {}, onDragEnter: o, onDragOver: s, onDragLeave: a, onDrop: l } = e, u = yt(null), { chatbot: c } = vt(), { style: f, header: d, body: h, footer: p, ...g } = c;
|
|
42715
42715
|
return Oe(() => {
|
|
42716
42716
|
const m = u.current;
|
|
42717
42717
|
if (!m) return;
|
|
@@ -42802,7 +42802,7 @@ function ube() {
|
|
|
42802
42802
|
/* @__PURE__ */ C("span", { className: jh.overlay__text, children: "Drop files here" })
|
|
42803
42803
|
] }) }) : null;
|
|
42804
42804
|
}
|
|
42805
|
-
const cbe = "_backdrop_153zk_1", fbe = "_modal_153zk_12", dbe = "_header_153zk_24", hbe = "_title_153zk_33", pbe = "_title_tool_153zk_41", gbe = "_close_btn_153zk_45", mbe = "_content_153zk_68", ybe = "_meta_row_153zk_76", _be = "_input_section_153zk_89", bbe = "_input_toggle_153zk_95", vbe = "_input_toggle_expanded_153zk_118", xbe = "_input_viewer_153zk_122", wbe = "_deny_reason_153zk_129", Ebe = "_actions_153zk_161", Cbe = "_action_btn_153zk_168", kbe = "_action_primary_153zk_186", Sbe = "_action_secondary_153zk_194", $be = "_action_danger_153zk_203", Abe = "_pending_indicator_153zk_212",
|
|
42805
|
+
const cbe = "_backdrop_153zk_1", fbe = "_modal_153zk_12", dbe = "_header_153zk_24", hbe = "_title_153zk_33", pbe = "_title_tool_153zk_41", gbe = "_close_btn_153zk_45", mbe = "_content_153zk_68", ybe = "_meta_row_153zk_76", _be = "_input_section_153zk_89", bbe = "_input_toggle_153zk_95", vbe = "_input_toggle_expanded_153zk_118", xbe = "_input_viewer_153zk_122", wbe = "_deny_reason_153zk_129", Ebe = "_actions_153zk_161", Cbe = "_action_btn_153zk_168", kbe = "_action_primary_153zk_186", Sbe = "_action_secondary_153zk_194", $be = "_action_danger_153zk_203", Abe = "_pending_indicator_153zk_212", Et = {
|
|
42806
42806
|
backdrop: cbe,
|
|
42807
42807
|
modal: fbe,
|
|
42808
42808
|
header: dbe,
|
|
@@ -42827,90 +42827,117 @@ function Mbe({ className: e }) {
|
|
|
42827
42827
|
return /* @__PURE__ */ C("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ C("path", { d: "M9 18l6-6-6-6" }) });
|
|
42828
42828
|
}
|
|
42829
42829
|
function Tbe(e) {
|
|
42830
|
-
const { pendingCall: t, totalCount: n, currentIndex: r, onDecide: i, onDismiss: o } = e, [s, a] = we(!1), [l, u] = we(!1), [c, f] = we("")
|
|
42830
|
+
const { pendingCall: t, totalCount: n, currentIndex: r, onDecide: i, onDismiss: o } = e, [s, a] = we(!1), [l, u] = we(!1), [c, f] = we(""), { chatbot: d } = vt(), h = d?.primaryComponent?.mainColor ?? d?.mainColor, p = d?.primaryComponent?.secondaryColor ?? d?.secondaryColor, g = d?.inactiveColor, m = d?.backgroundColor, y = d?.borderColor, _ = be(
|
|
42831
|
+
() => ({
|
|
42832
|
+
...h && {
|
|
42833
|
+
"--asgard-consent-modal-accent": h,
|
|
42834
|
+
// Darken accent ~15% on hover so the primary button keeps visual feedback
|
|
42835
|
+
"--asgard-consent-modal-accent-hover": `color-mix(in srgb, ${h} 85%, black)`
|
|
42836
|
+
},
|
|
42837
|
+
...m && {
|
|
42838
|
+
"--asgard-consent-modal-bg": m,
|
|
42839
|
+
"--asgard-consent-modal-input-bg": m
|
|
42840
|
+
},
|
|
42841
|
+
...y && { "--asgard-consent-modal-border": y },
|
|
42842
|
+
...p && { "--asgard-consent-modal-title": p },
|
|
42843
|
+
...g && { "--asgard-consent-modal-muted": g }
|
|
42844
|
+
}),
|
|
42845
|
+
[h, m, y, p, g]
|
|
42846
|
+
), b = be(
|
|
42847
|
+
() => p ? { color: p } : {},
|
|
42848
|
+
[p]
|
|
42849
|
+
);
|
|
42831
42850
|
Oe(() => {
|
|
42832
42851
|
a(!1), u(!1), f("");
|
|
42833
42852
|
}, [t.toolCallId]), Oe(() => {
|
|
42834
|
-
const
|
|
42853
|
+
const k = document.body.style.overflow;
|
|
42835
42854
|
return document.body.style.overflow = "hidden", () => {
|
|
42836
|
-
document.body.style.overflow =
|
|
42855
|
+
document.body.style.overflow = k;
|
|
42837
42856
|
};
|
|
42838
42857
|
}, []);
|
|
42839
|
-
const
|
|
42858
|
+
const v = oe(() => i({ result: "ALLOW_ONCE" }), [i]), x = oe(() => i({ result: "ALLOW_ALWAYS" }), [i]), E = oe(() => {
|
|
42840
42859
|
if (!l) {
|
|
42841
42860
|
u(!0);
|
|
42842
42861
|
return;
|
|
42843
42862
|
}
|
|
42844
42863
|
i({ result: "DENY_ONCE", denyReason: c.trim() });
|
|
42845
|
-
}, [l, c, i]),
|
|
42846
|
-
(
|
|
42847
|
-
|
|
42864
|
+
}, [l, c, i]), w = oe(
|
|
42865
|
+
(k) => {
|
|
42866
|
+
k.target === k.currentTarget && o?.();
|
|
42848
42867
|
},
|
|
42849
42868
|
[o]
|
|
42850
42869
|
);
|
|
42851
|
-
return /* @__PURE__ */ C("div", { className:
|
|
42852
|
-
/* @__PURE__ */ U("div", { className:
|
|
42853
|
-
/* @__PURE__ */ U("div", { className:
|
|
42854
|
-
"
|
|
42855
|
-
/* @__PURE__ */ U("span", { className:
|
|
42856
|
-
|
|
42870
|
+
return /* @__PURE__ */ C("div", { className: Et.backdrop, onClick: w, style: _, children: /* @__PURE__ */ U("div", { className: Et.modal, role: "dialog", "aria-modal": "true", children: [
|
|
42871
|
+
/* @__PURE__ */ U("div", { className: Et.header, children: [
|
|
42872
|
+
/* @__PURE__ */ U("div", { className: Et.title, children: [
|
|
42873
|
+
"允許使用工具 ",
|
|
42874
|
+
/* @__PURE__ */ U("span", { className: Et.title_tool, children: [
|
|
42875
|
+
"「",
|
|
42857
42876
|
t.toolName,
|
|
42858
|
-
|
|
42877
|
+
"」"
|
|
42859
42878
|
] }),
|
|
42860
|
-
"
|
|
42879
|
+
"?"
|
|
42861
42880
|
] }),
|
|
42862
|
-
o && /* @__PURE__ */ C("button", { type: "button", className:
|
|
42881
|
+
o && /* @__PURE__ */ C("button", { type: "button", className: Et.close_btn, onClick: o, "aria-label": "關閉", children: /* @__PURE__ */ C(O7, {}) })
|
|
42863
42882
|
] }),
|
|
42864
|
-
/* @__PURE__ */ U("div", { className:
|
|
42865
|
-
/* @__PURE__ */ U("div", { className:
|
|
42883
|
+
/* @__PURE__ */ U("div", { className: Et.content, children: [
|
|
42884
|
+
/* @__PURE__ */ U("div", { className: Et.meta_row, children: [
|
|
42866
42885
|
/* @__PURE__ */ U("span", { children: [
|
|
42867
|
-
"
|
|
42886
|
+
"工具集:",
|
|
42868
42887
|
/* @__PURE__ */ C("strong", { children: t.toolsetName })
|
|
42869
42888
|
] }),
|
|
42870
42889
|
/* @__PURE__ */ U("span", { children: [
|
|
42871
|
-
"
|
|
42890
|
+
"工具:",
|
|
42872
42891
|
/* @__PURE__ */ C("strong", { children: t.toolName })
|
|
42873
42892
|
] })
|
|
42874
42893
|
] }),
|
|
42875
|
-
/* @__PURE__ */ U("div", { className:
|
|
42894
|
+
/* @__PURE__ */ U("div", { className: Et.input_section, children: [
|
|
42876
42895
|
/* @__PURE__ */ U(
|
|
42877
42896
|
"button",
|
|
42878
42897
|
{
|
|
42879
42898
|
type: "button",
|
|
42880
|
-
className: ke(
|
|
42881
|
-
onClick: () => a((
|
|
42899
|
+
className: ke(Et.input_toggle, s && Et.input_toggle_expanded),
|
|
42900
|
+
onClick: () => a((k) => !k),
|
|
42882
42901
|
children: [
|
|
42883
42902
|
/* @__PURE__ */ C(Mbe, {}),
|
|
42884
|
-
/* @__PURE__ */ C("span", { children: "
|
|
42903
|
+
/* @__PURE__ */ C("span", { children: "輸入內容" })
|
|
42885
42904
|
]
|
|
42886
42905
|
}
|
|
42887
42906
|
),
|
|
42888
|
-
s && /* @__PURE__ */ C("div", { className:
|
|
42907
|
+
s && /* @__PURE__ */ C("div", { className: Et.input_viewer, children: /* @__PURE__ */ C(pv, { title: "parameter", data: t.parameter }) })
|
|
42889
42908
|
] }),
|
|
42890
|
-
l && /* @__PURE__ */ U("div", { className:
|
|
42891
|
-
/* @__PURE__ */ C("label", { htmlFor: "asgard-consent-deny-reason", children: "
|
|
42909
|
+
l && /* @__PURE__ */ U("div", { className: Et.deny_reason, children: [
|
|
42910
|
+
/* @__PURE__ */ C("label", { htmlFor: "asgard-consent-deny-reason", children: "拒絕原因(選填)" }),
|
|
42892
42911
|
/* @__PURE__ */ C(
|
|
42893
42912
|
"textarea",
|
|
42894
42913
|
{
|
|
42895
42914
|
id: "asgard-consent-deny-reason",
|
|
42896
42915
|
value: c,
|
|
42897
|
-
onChange: (
|
|
42898
|
-
placeholder: "
|
|
42916
|
+
onChange: (k) => f(k.target.value),
|
|
42917
|
+
placeholder: "告訴 AI 你為什麼拒絕此次工具呼叫。"
|
|
42899
42918
|
}
|
|
42900
42919
|
)
|
|
42901
42920
|
] })
|
|
42902
42921
|
] }),
|
|
42903
|
-
n > 1 && /* @__PURE__ */ U("div", { className:
|
|
42922
|
+
n > 1 && /* @__PURE__ */ U("div", { className: Et.pending_indicator, children: [
|
|
42904
42923
|
r,
|
|
42905
42924
|
" / ",
|
|
42906
42925
|
n,
|
|
42907
|
-
"
|
|
42908
|
-
n > 1 ? "s" : ""
|
|
42926
|
+
" 個待處理工具呼叫"
|
|
42909
42927
|
] }),
|
|
42910
|
-
/* @__PURE__ */ U("div", { className:
|
|
42911
|
-
/* @__PURE__ */ C(
|
|
42912
|
-
|
|
42913
|
-
|
|
42928
|
+
/* @__PURE__ */ U("div", { className: Et.actions, children: [
|
|
42929
|
+
/* @__PURE__ */ C(
|
|
42930
|
+
"button",
|
|
42931
|
+
{
|
|
42932
|
+
type: "button",
|
|
42933
|
+
className: ke(Et.action_btn, Et.action_primary),
|
|
42934
|
+
style: b,
|
|
42935
|
+
onClick: x,
|
|
42936
|
+
children: "本次對話皆允許"
|
|
42937
|
+
}
|
|
42938
|
+
),
|
|
42939
|
+
/* @__PURE__ */ C("button", { type: "button", className: ke(Et.action_btn, Et.action_secondary), onClick: v, children: "僅此次允許" }),
|
|
42940
|
+
/* @__PURE__ */ C("button", { type: "button", className: ke(Et.action_btn, Et.action_danger), onClick: E, children: l ? "送出拒絕" : "拒絕" })
|
|
42914
42941
|
] })
|
|
42915
42942
|
] }) });
|
|
42916
42943
|
}
|
|
@@ -43064,9 +43091,9 @@ const Fbe = "_chatbot__auth_state_container_1hs4h_1", Dbe = "_chatbot__error_sta
|
|
|
43064
43091
|
renderMenu: Be,
|
|
43065
43092
|
footerEndActions: pe,
|
|
43066
43093
|
renderToolCallGroup: Le,
|
|
43067
|
-
autoResetChannel:
|
|
43068
|
-
userIdentityHint:
|
|
43069
|
-
} = t, te =
|
|
43094
|
+
autoResetChannel: Dt,
|
|
43095
|
+
userIdentityHint: Jt
|
|
43096
|
+
} = t, te = Jt ? { ...s, userIdentityHint: Jt } : s, ge = yt(0), ye = yt(null), j = g || y, xt = oe(
|
|
43070
43097
|
(jt) => {
|
|
43071
43098
|
jt.preventDefault(), jt.stopPropagation(), !(!j || !jt.dataTransfer.types.includes("Files")) && (ge.current++, ge.current === 1 && ye.current?.setIsDraggingOver(!0));
|
|
43072
43099
|
},
|
|
@@ -43075,14 +43102,14 @@ const Fbe = "_chatbot__auth_state_container_1hs4h_1", Dbe = "_chatbot__error_sta
|
|
|
43075
43102
|
jt.preventDefault(), jt.stopPropagation();
|
|
43076
43103
|
}, []), ht = oe((jt) => {
|
|
43077
43104
|
jt.preventDefault(), jt.stopPropagation(), ge.current--, ge.current === 0 && ye.current?.setIsDraggingOver(!1);
|
|
43078
|
-
}, []),
|
|
43105
|
+
}, []), wt = oe(
|
|
43079
43106
|
(jt) => {
|
|
43080
43107
|
if (jt.preventDefault(), jt.stopPropagation(), ge.current = 0, ye.current?.setIsDraggingOver(!1), !j) return;
|
|
43081
43108
|
const cc = Array.from(jt.dataTransfer.files);
|
|
43082
43109
|
cc.length > 0 && ye.current?.setDroppedFiles(cc);
|
|
43083
43110
|
},
|
|
43084
43111
|
[j]
|
|
43085
|
-
),
|
|
43112
|
+
), Rt = () => {
|
|
43086
43113
|
switch (M) {
|
|
43087
43114
|
case "loading":
|
|
43088
43115
|
return /* @__PURE__ */ C("div", { className: xi.chatbot__auth_state_container, children: v || /* @__PURE__ */ C("div", { children: "Loading..." }) });
|
|
@@ -43175,7 +43202,7 @@ const Fbe = "_chatbot__auth_state_container_1hs4h_1", Dbe = "_chatbot__error_sta
|
|
|
43175
43202
|
enableUpload: g,
|
|
43176
43203
|
enableExport: m,
|
|
43177
43204
|
enableDocumentUpload: y,
|
|
43178
|
-
autoResetChannel:
|
|
43205
|
+
autoResetChannel: Dt,
|
|
43179
43206
|
children: /* @__PURE__ */ U(lI, { children: [
|
|
43180
43207
|
/* @__PURE__ */ C(Lbe, { fileDropRef: ye }),
|
|
43181
43208
|
/* @__PURE__ */ U(
|
|
@@ -43184,10 +43211,10 @@ const Fbe = "_chatbot__auth_state_container_1hs4h_1", Dbe = "_chatbot__error_sta
|
|
|
43184
43211
|
fullScreen: c,
|
|
43185
43212
|
className: D,
|
|
43186
43213
|
style: N,
|
|
43187
|
-
onDragEnter:
|
|
43214
|
+
onDragEnter: xt,
|
|
43188
43215
|
onDragOver: Ie,
|
|
43189
43216
|
onDragLeave: ht,
|
|
43190
|
-
onDrop:
|
|
43217
|
+
onDrop: wt,
|
|
43191
43218
|
children: [
|
|
43192
43219
|
fe ? fe() : /* @__PURE__ */ C(
|
|
43193
43220
|
ek,
|
|
@@ -43199,7 +43226,7 @@ const Fbe = "_chatbot__auth_state_container_1hs4h_1", Dbe = "_chatbot__error_sta
|
|
|
43199
43226
|
maintainConnectionWhenClosed: _
|
|
43200
43227
|
}
|
|
43201
43228
|
),
|
|
43202
|
-
|
|
43229
|
+
Rt(),
|
|
43203
43230
|
/* @__PURE__ */ C(ube, {})
|
|
43204
43231
|
]
|
|
43205
43232
|
}
|
|
@@ -43219,7 +43246,7 @@ const Fbe = "_chatbot__auth_state_container_1hs4h_1", Dbe = "_chatbot__error_sta
|
|
|
43219
43246
|
maintainConnectionWhenClosed: _
|
|
43220
43247
|
}
|
|
43221
43248
|
),
|
|
43222
|
-
|
|
43249
|
+
Rt()
|
|
43223
43250
|
] }) });
|
|
43224
43251
|
});
|
|
43225
43252
|
function Lbe({
|
|
@@ -43258,7 +43285,7 @@ export {
|
|
|
43258
43285
|
JI as References,
|
|
43259
43286
|
L7 as SyntaxHighlightedJson,
|
|
43260
43287
|
r_e as TableTemplate,
|
|
43261
|
-
|
|
43288
|
+
yn as TemplateBox,
|
|
43262
43289
|
pr as TemplateBoxContent,
|
|
43263
43290
|
ok as TextTemplate,
|
|
43264
43291
|
Nbe as ToolCallConsentGate,
|
|
@@ -43272,7 +43299,7 @@ export {
|
|
|
43272
43299
|
Ft as useAsgardContext,
|
|
43273
43300
|
Q7 as useAsgardServiceClient,
|
|
43274
43301
|
Lu as useAsgardTemplateContext,
|
|
43275
|
-
|
|
43302
|
+
vt as useAsgardThemeContext,
|
|
43276
43303
|
eI as useChannel,
|
|
43277
43304
|
tI as useDebounce,
|
|
43278
43305
|
ZC as useDeepCompareMemo,
|