@asgard-js/react 0.2.13 → 0.2.15

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.
@@ -1 +1 @@
1
- {"version":3,"file":"asgard-service-context.d.ts","sourceRoot":"","sources":["../../src/context/asgard-service-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAEL,YAAY,EACZ,SAAS,EACT,SAAS,EAOV,MAAM,OAAO,CAAC;AACf,OAAO,EAAsC,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjG,uCAAuC;AACvC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACrE;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,IAAI,CAAC;IAClD,mBAAmB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACtD,WAAW,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC9C,YAAY,CAAC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O,MAAM,oBAAoB,oDAqB/B,CAAC;AAEH,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC;QAAE,cAAc,CAAC,EAAE,yBAAyB,CAAA;KAAE,CAAC,CAAC,CAAC;IAClF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,YAAY,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACrC,YAAY,CAAC,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;IAC/C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,OAAO,CAAC;QAAC,kBAAkB,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC5G,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,iBAAiB,CAAC;CACxE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,iCAAiC,GAAG,SAAS,CAoHhG;AAED,wBAAgB,gBAAgB,IAAI,yBAAyB,CAE5D"}
@@ -15,6 +15,13 @@ export interface UseChannelProps {
15
15
  isBotProviderError: boolean;
16
16
  errorDetail?: unknown;
17
17
  }) => void;
18
+ onBeforeSendMessage?: (params: {
19
+ text: string;
20
+ payload?: Record<string, unknown> | (() => Record<string, unknown>);
21
+ }) => {
22
+ text: string;
23
+ payload?: Record<string, unknown> | (() => Record<string, unknown>);
24
+ };
18
25
  }
19
26
  export interface UseChannelReturn {
20
27
  isOpen: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"use-channel.d.ts","sourceRoot":"","sources":["../../src/hooks/use-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAGnB,YAAY,EACZ,mBAAmB,EACnB,SAAS,EACT,eAAe,EACf,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAGzB,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC;IACzF,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACrC,YAAY,CAAC,EAAE,CACb,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,EAChC,OAAO,EAAE;QACP,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;KACnC,KACE,IAAI,CAAC;IACV,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,OAAO,CAAC;QAAC,kBAAkB,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CAC7G;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,CACZ,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC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,92 @@ function UL(e) {
105
105
  customMessageId: o,
106
106
  initMessages: s,
107
107
  onSseMessage: a,
108
- onAuthError: l
109
- } = e, u = !t, [c, f] = Ne(null), [d, h] = Ne(n ?? !0), [p, g] = Ne(!1), [m, y] = Ne(!1), [b, _] = Ne(null), v = we(
110
- () => u ? new Pk({ messages: new Map(s?.map((C) => [C.messageId, C])) }) : null,
111
- [u, s]
112
- ), w = pe(
113
- async (C) => {
114
- if (u || !t) return;
115
- const S = new Pk({
116
- messages: new Map(s?.map((M) => [M.messageId, M]))
108
+ onAuthError: l,
109
+ onBeforeSendMessage: u
110
+ } = e, c = !t, [f, d] = Ne(null), [h, p] = Ne(n ?? !0), [g, m] = Ne(!1), [y, b] = Ne(!1), [_, v] = Ne(null), w = we(
111
+ () => c ? new Pk({ messages: new Map(s?.map((S) => [S.messageId, S])) }) : null,
112
+ [c, s]
113
+ ), E = pe(
114
+ async (S) => {
115
+ if (c || !t) return;
116
+ const A = new Pk({
117
+ messages: new Map(s?.map((F) => [F.messageId, F]))
117
118
  });
118
- g(!0), y(!0), _(S);
119
- const A = await LL.reset(
119
+ m(!0), b(!0), v(A);
120
+ const M = u ? u({ text: S?.text ?? "", payload: S?.payload }) : S, R = await LL.reset(
120
121
  {
121
122
  client: t,
122
123
  customChannelId: r,
123
124
  customMessageId: o,
124
- conversation: S,
125
- statesObserver: (M) => {
126
- y(M.isConnecting), _(M.conversation);
125
+ conversation: A,
126
+ statesObserver: (F) => {
127
+ b(F.isConnecting), v(F.conversation);
127
128
  }
128
129
  },
129
- C,
130
+ M,
130
131
  {
131
132
  onSseCompleted() {
132
- g(!1);
133
+ m(!1);
133
134
  },
134
- onSseError(M) {
135
- g(!1), M && typeof M == "object" && ("isAuthError" in M || "isBotProviderError" in M) && l?.(
136
- M
135
+ onSseError(F) {
136
+ m(!1), F && typeof F == "object" && ("isAuthError" in F || "isBotProviderError" in F) && l?.(
137
+ F
137
138
  );
138
139
  },
139
- onSseMessage(M) {
140
- a?.(M, {
141
- conversation: S
140
+ onSseMessage(F) {
141
+ a?.(F, {
142
+ conversation: A
142
143
  });
143
144
  }
144
145
  }
145
146
  );
146
- h(!0), f(A);
147
+ p(!0), d(R);
147
148
  },
148
- [u, t, r, o, s, a, l]
149
- ), E = pe(() => {
150
- f((C) => (C?.close(), null)), h(!1), g(!1), y(!1), _(null);
151
- }, []), x = pe(
152
- async (C) => {
153
- await c?.sendMessage({ ...C, customMessageId: o });
149
+ [
150
+ c,
151
+ t,
152
+ r,
153
+ o,
154
+ s,
155
+ a,
156
+ l,
157
+ u
158
+ ]
159
+ ), x = pe(() => {
160
+ d((S) => (S?.close(), null)), p(!1), m(!1), b(!1), v(null);
161
+ }, []), C = pe(
162
+ async (S) => {
163
+ await f?.sendMessage({ ...S, customMessageId: o });
154
164
  },
155
- [c, o]
165
+ [f, o]
156
166
  );
157
167
  return Ye(() => {
158
- u || !c && d && w(i);
159
- }, [u, c, d, w, i]), Ye(() => () => E(), [E]), we(
160
- () => u ? {
168
+ c || !f && h && E(i);
169
+ }, [c, f, h, E, i]), Ye(() => () => x(), [x]), we(
170
+ () => c ? {
161
171
  isOpen: !0,
162
172
  isResetting: !1,
163
173
  isConnecting: !1,
164
- conversation: v
174
+ conversation: w
165
175
  } : {
166
- isOpen: d,
167
- isResetting: p,
168
- isConnecting: m,
169
- conversation: b,
170
- sendMessage: x,
171
- resetChannel: w,
172
- closeChannel: E
176
+ isOpen: h,
177
+ isResetting: g,
178
+ isConnecting: y,
179
+ conversation: _,
180
+ sendMessage: C,
181
+ resetChannel: E,
182
+ closeChannel: x
173
183
  },
174
184
  [
175
- u,
176
- v,
177
- d,
178
- p,
179
- m,
180
- b,
181
- x,
185
+ c,
182
186
  w,
183
- E
187
+ h,
188
+ g,
189
+ y,
190
+ _,
191
+ C,
192
+ E,
193
+ x
184
194
  ]
185
195
  );
186
196
  }
@@ -695,12 +705,13 @@ function VL(e) {
695
705
  }, []), E = pe((N = "smooth") => {
696
706
  const D = m.current;
697
707
  D && D.scrollIntoView({ behavior: N });
698
- }, []), x = BL({ config: o }), { isOpen: C, isResetting: S, isConnecting: A, conversation: M, sendMessage: F, resetChannel: R, closeChannel: T } = UL({
708
+ }, []), x = BL({ config: o }), { isOpen: C, isResetting: S, isConnecting: A, conversation: M, sendMessage: R, resetChannel: F, closeChannel: T } = UL({
699
709
  client: x,
700
710
  customChannelId: f,
701
711
  initMessages: d,
702
712
  onSseMessage: h,
703
- onAuthError: p
713
+ onAuthError: p,
714
+ onBeforeSendMessage: g
704
715
  }), $ = we(
705
716
  () => ({
706
717
  avatar: t,
@@ -711,8 +722,8 @@ function VL(e) {
711
722
  isResetting: S,
712
723
  isConnecting: A,
713
724
  messages: M?.messages ?? null,
714
- sendMessage: F,
715
- resetChannel: R,
725
+ sendMessage: R,
726
+ resetChannel: F,
716
727
  closeChannel: T,
717
728
  botTypingPlaceholder: s,
718
729
  inputPlaceholder: a,
@@ -736,8 +747,8 @@ function VL(e) {
736
747
  S,
737
748
  A,
738
749
  M?.messages,
739
- F,
740
750
  R,
751
+ F,
741
752
  T,
742
753
  s,
743
754
  a,
@@ -2685,38 +2696,38 @@ function l4(e) {
2685
2696
  E === "n" ? (_ = !0, E = "g") : iC[E] || (v === void 0 && (v = 12), w = !0, E = "g"), (y || h === "0" && p === "=") && (y = !0, h = "0", p = "=");
2686
2697
  var x = (d && d.prefix !== void 0 ? d.prefix : "") + (m === "$" ? n : m === "#" && /[boxX]/.test(E) ? "0" + E.toLowerCase() : ""), C = (m === "$" ? i : /[%p]/.test(E) ? s : "") + (d && d.suffix !== void 0 ? d.suffix : ""), S = iC[E], A = /[defgprs%]/.test(E);
2687
2698
  v = v === void 0 ? 6 : /[gprs]/.test(E) ? Math.max(1, Math.min(21, v)) : Math.max(0, Math.min(20, v));
2688
- function M(F) {
2689
- var R = x, T = C, $, N, D;
2699
+ function M(R) {
2700
+ var F = x, T = C, $, N, D;
2690
2701
  if (E === "c")
2691
- T = S(F) + T, F = "";
2702
+ T = S(R) + T, R = "";
2692
2703
  else {
2693
- F = +F;
2694
- var B = F < 0 || 1 / F < 0;
2695
- if (F = isNaN(F) ? l : S(Math.abs(F), v), w && (F = wz(F)), B && +F == 0 && g !== "+" && (B = !1), R = (B ? g === "(" ? g : a : g === "-" || g === "(" ? "" : g) + R, T = (E === "s" && !isNaN(F) && hp !== void 0 ? sC[8 + hp / 3] : "") + T + (B && g === "(" ? ")" : ""), A) {
2696
- for ($ = -1, N = F.length; ++$ < N; )
2697
- if (D = F.charCodeAt($), 48 > D || D > 57) {
2698
- T = (D === 46 ? r + F.slice($ + 1) : F.slice($)) + T, F = F.slice(0, $);
2704
+ R = +R;
2705
+ var B = R < 0 || 1 / R < 0;
2706
+ if (R = isNaN(R) ? l : S(Math.abs(R), v), w && (R = wz(R)), B && +R == 0 && g !== "+" && (B = !1), F = (B ? g === "(" ? g : a : g === "-" || g === "(" ? "" : g) + F, T = (E === "s" && !isNaN(R) && hp !== void 0 ? sC[8 + hp / 3] : "") + T + (B && g === "(" ? ")" : ""), A) {
2707
+ for ($ = -1, N = R.length; ++$ < N; )
2708
+ if (D = R.charCodeAt($), 48 > D || D > 57) {
2709
+ T = (D === 46 ? r + R.slice($ + 1) : R.slice($)) + T, R = R.slice(0, $);
2699
2710
  break;
2700
2711
  }
2701
2712
  }
2702
2713
  }
2703
- _ && !y && (F = t(F, 1 / 0));
2704
- var I = R.length + F.length + T.length, V = I < b ? new Array(b - I + 1).join(h) : "";
2705
- switch (_ && y && (F = t(V + F, V.length ? b - T.length : 1 / 0), V = ""), p) {
2714
+ _ && !y && (R = t(R, 1 / 0));
2715
+ var I = F.length + R.length + T.length, V = I < b ? new Array(b - I + 1).join(h) : "";
2716
+ switch (_ && y && (R = t(V + R, V.length ? b - T.length : 1 / 0), V = ""), p) {
2706
2717
  case "<":
2707
- F = R + F + T + V;
2718
+ R = F + R + T + V;
2708
2719
  break;
2709
2720
  case "=":
2710
- F = R + V + F + T;
2721
+ R = F + V + R + T;
2711
2722
  break;
2712
2723
  case "^":
2713
- F = V.slice(0, I = V.length >> 1) + R + F + T + V.slice(I);
2724
+ R = V.slice(0, I = V.length >> 1) + F + R + T + V.slice(I);
2714
2725
  break;
2715
2726
  default:
2716
- F = V + R + F + T;
2727
+ R = V + F + R + T;
2717
2728
  break;
2718
2729
  }
2719
- return o(F);
2730
+ return o(R);
2720
2731
  }
2721
2732
  return M.toString = function() {
2722
2733
  return f + "";
@@ -3222,8 +3233,8 @@ function R4(e) {
3222
3233
  }, w = {
3223
3234
  a: A,
3224
3235
  A: M,
3225
- b: F,
3226
- B: R,
3236
+ b: R,
3237
+ B: F,
3227
3238
  c: T,
3228
3239
  d: hC,
3229
3240
  e: hC,
@@ -3297,11 +3308,11 @@ function R4(e) {
3297
3308
  var q = f.exec(_e.slice(ke));
3298
3309
  return q ? (ne.w = d.get(q[0].toLowerCase()), ke + q[0].length) : -1;
3299
3310
  }
3300
- function F(ne, _e, ke) {
3311
+ function R(ne, _e, ke) {
3301
3312
  var q = y.exec(_e.slice(ke));
3302
3313
  return q ? (ne.m = b.get(q[0].toLowerCase()), ke + q[0].length) : -1;
3303
3314
  }
3304
- function R(ne, _e, ke) {
3315
+ function F(ne, _e, ke) {
3305
3316
  var q = g.exec(_e.slice(ke));
3306
3317
  return q ? (ne.m = m.get(q[0].toLowerCase()), ke + q[0].length) : -1;
3307
3318
  }
@@ -5440,12 +5451,12 @@ function _5(e, t, n, i) {
5440
5451
  const y = r[m], b = p[0], _ = p[1], v = y - r[b] > r[_] - y ? b : _;
5441
5452
  let w = 0, E = 0, x = 0, C = 0, S = 0;
5442
5453
  const A = 1 / Math.abs(r[v] - y || 1);
5443
- for (let R = b; R <= _; ++R) {
5444
- const T = r[R], $ = o[R], N = sj(Math.abs(y - T) * A) * d[R], D = T * N;
5454
+ for (let F = b; F <= _; ++F) {
5455
+ const T = r[F], $ = o[F], N = sj(Math.abs(y - T) * A) * d[F], D = T * N;
5445
5456
  w += N, E += D, x += $ * N, C += $ * D, S += T * D;
5446
5457
  }
5447
- const [M, F] = Jf(E / w, x / w, C / w, S / w);
5448
- c[m] = M + F * y, f[m] = Math.abs(o[m] - c[m]), aj(r, m + 1, p);
5458
+ const [M, R] = Jf(E / w, x / w, C / w, S / w);
5459
+ c[m] = M + R * y, f[m] = Math.abs(o[m] - c[m]), aj(r, m + 1, p);
5449
5460
  }
5450
5461
  if (h === MC)
5451
5462
  break;
@@ -7811,8 +7822,8 @@ function aq(e, t, n, i, r, o, s, a) {
7811
7822
  return d = (c * (t - o) - f * (e - r)) / d, [e + d * l, t + d * u];
7812
7823
  }
7813
7824
  function Zd(e, t, n, i, r, o, s) {
7814
- var a = e - n, l = t - i, u = (s ? o : -o) / da(a * a + l * l), c = u * l, f = -u * a, d = e + c, h = t + f, p = n + c, g = i + f, m = (d + p) / 2, y = (h + g) / 2, b = p - d, _ = g - h, v = b * b + _ * _, w = r - o, E = d * g - p * h, x = (_ < 0 ? -1 : 1) * da(Jj(0, w * w * v - E * E)), C = (E * _ - b * x) / v, S = (-E * b - _ * x) / v, A = (E * _ + b * x) / v, M = (-E * b + _ * x) / v, F = C - m, R = S - y, T = A - m, $ = M - y;
7815
- return F * F + R * R > T * T + $ * $ && (C = A, S = M), {
7825
+ var a = e - n, l = t - i, u = (s ? o : -o) / da(a * a + l * l), c = u * l, f = -u * a, d = e + c, h = t + f, p = n + c, g = i + f, m = (d + p) / 2, y = (h + g) / 2, b = p - d, _ = g - h, v = b * b + _ * _, w = r - o, E = d * g - p * h, x = (_ < 0 ? -1 : 1) * da(Jj(0, w * w * v - E * E)), C = (E * _ - b * x) / v, S = (-E * b - _ * x) / v, A = (E * _ + b * x) / v, M = (-E * b + _ * x) / v, R = C - m, F = S - y, T = A - m, $ = M - y;
7826
+ return R * R + F * F > T * T + $ * $ && (C = A, S = M), {
7816
7827
  cx: C,
7817
7828
  cy: S,
7818
7829
  x01: -c,
@@ -7829,7 +7840,7 @@ function lq() {
7829
7840
  else if (m > V5 - sn)
7830
7841
  a.moveTo(h * Gs(p), h * mr(p)), a.arc(0, 0, h, p, g, !y), d > sn && (a.moveTo(d * Gs(g), d * mr(g)), a.arc(0, 0, d, g, p, y));
7831
7842
  else {
7832
- var b = p, _ = g, v = p, w = g, E = m, x = m, C = s.apply(this, arguments) / 2, S = C > sn && (i ? +i.apply(this, arguments) : da(d * d + h * h)), A = d1(RC(h - d) / 2, +n.apply(this, arguments)), M = A, F = A, R, T;
7843
+ var b = p, _ = g, v = p, w = g, E = m, x = m, C = s.apply(this, arguments) / 2, S = C > sn && (i ? +i.apply(this, arguments) : da(d * d + h * h)), A = d1(RC(h - d) / 2, +n.apply(this, arguments)), M = A, R = A, F, T;
7833
7844
  if (S > sn) {
7834
7845
  var $ = DC(S / d * mr(C)), N = DC(S / h * mr(C));
7835
7846
  (E -= $ * 2) > sn ? ($ *= y ? 1 : -1, v += $, w -= $) : (E = 0, v = w = (p + g) / 2), (x -= N * 2) > sn ? (N *= y ? 1 : -1, b += N, _ -= N) : (x = 0, b = _ = (p + g) / 2);
@@ -7840,11 +7851,11 @@ function lq() {
7840
7851
  if (m < iu)
7841
7852
  if (be = aq(D, B, ye, qe, ue, oe, I, V)) {
7842
7853
  var It = D - be[0], io = B - be[1], gr = ue - be[0], ne = oe - be[1], _e = 1 / mr(Qj((It * gr + io * ne) / (da(It * It + io * io) * da(gr * gr + ne * ne))) / 2), ke = da(be[0] * be[0] + be[1] * be[1]);
7843
- M = d1(A, (d - ke) / (_e - 1)), F = d1(A, (h - ke) / (_e + 1));
7854
+ M = d1(A, (d - ke) / (_e - 1)), R = d1(A, (h - ke) / (_e + 1));
7844
7855
  } else
7845
- M = F = 0;
7856
+ M = R = 0;
7846
7857
  }
7847
- x > sn ? F > sn ? (R = Zd(ye, qe, D, B, h, F, y), T = Zd(ue, oe, I, V, h, F, y), a.moveTo(R.cx + R.x01, R.cy + R.y01), F < A ? a.arc(R.cx, R.cy, F, rn(R.y01, R.x01), rn(T.y01, T.x01), !y) : (a.arc(R.cx, R.cy, F, rn(R.y01, R.x01), rn(R.y11, R.x11), !y), a.arc(0, 0, h, rn(R.cy + R.y11, R.cx + R.x11), rn(T.cy + T.y11, T.cx + T.x11), !y), a.arc(T.cx, T.cy, F, rn(T.y11, T.x11), rn(T.y01, T.x01), !y))) : (a.moveTo(D, B), a.arc(0, 0, h, b, _, !y)) : a.moveTo(D, B), !(d > sn) || !(E > sn) ? a.lineTo(I, V) : M > sn ? (R = Zd(I, V, ue, oe, d, -M, y), T = Zd(D, B, ye, qe, d, -M, y), a.lineTo(R.cx + R.x01, R.cy + R.y01), M < A ? a.arc(R.cx, R.cy, M, rn(R.y01, R.x01), rn(T.y01, T.x01), !y) : (a.arc(R.cx, R.cy, M, rn(R.y01, R.x01), rn(R.y11, R.x11), !y), a.arc(0, 0, d, rn(R.cy + R.y11, R.cx + R.x11), rn(T.cy + T.y11, T.cx + T.x11), y), a.arc(T.cx, T.cy, M, rn(T.y11, T.x11), rn(T.y01, T.x01), !y))) : a.arc(0, 0, d, w, v, y);
7858
+ x > sn ? R > sn ? (F = Zd(ye, qe, D, B, h, R, y), T = Zd(ue, oe, I, V, h, R, y), a.moveTo(F.cx + F.x01, F.cy + F.y01), R < A ? a.arc(F.cx, F.cy, R, rn(F.y01, F.x01), rn(T.y01, T.x01), !y) : (a.arc(F.cx, F.cy, R, rn(F.y01, F.x01), rn(F.y11, F.x11), !y), a.arc(0, 0, h, rn(F.cy + F.y11, F.cx + F.x11), rn(T.cy + T.y11, T.cx + T.x11), !y), a.arc(T.cx, T.cy, R, rn(T.y11, T.x11), rn(T.y01, T.x01), !y))) : (a.moveTo(D, B), a.arc(0, 0, h, b, _, !y)) : a.moveTo(D, B), !(d > sn) || !(E > sn) ? a.lineTo(I, V) : M > sn ? (F = Zd(I, V, ue, oe, d, -M, y), T = Zd(D, B, ye, qe, d, -M, y), a.lineTo(F.cx + F.x01, F.cy + F.y01), M < A ? a.arc(F.cx, F.cy, M, rn(F.y01, F.x01), rn(T.y01, T.x01), !y) : (a.arc(F.cx, F.cy, M, rn(F.y01, F.x01), rn(F.y11, F.x11), !y), a.arc(0, 0, d, rn(F.cy + F.y11, F.cx + F.x11), rn(T.cy + T.y11, T.cx + T.x11), y), a.arc(T.cx, T.cy, M, rn(T.y11, T.x11), rn(T.y01, T.x01), !y))) : a.arc(0, 0, d, w, v, y);
7848
7859
  }
7849
7860
  if (a.closePath(), c) return a = null, c + "" || null;
7850
7861
  }
@@ -10517,13 +10528,13 @@ function EH(e, t, n, i, r, o, s, a, l) {
10517
10528
  S < 0 && (S = 0);
10518
10529
  let A = Math.sqrt(S);
10519
10530
  o == r && (A = -A);
10520
- const M = 0.5 * (v + E) - A * (x - w), F = 0.5 * (w + x) + A * (E - v), R = Math.atan2(w - F, v - M);
10521
- let $ = Math.atan2(x - F, E - M) - R;
10531
+ const M = 0.5 * (v + E) - A * (x - w), R = 0.5 * (w + x) + A * (E - v), F = Math.atan2(w - R, v - M);
10532
+ let $ = Math.atan2(x - R, E - M) - F;
10522
10533
  $ < 0 && o === 1 ? $ += Cr : $ > 0 && o === 0 && ($ -= Cr);
10523
10534
  const N = Math.ceil(Math.abs($ / (la + 1e-3))), D = [];
10524
10535
  for (let B = 0; B < N; ++B) {
10525
- const I = R + B * $ / N, V = R + (B + 1) * $ / N;
10526
- D[B] = [M, F, I, V, n, i, f, d];
10536
+ const I = F + B * $ / N, V = F + (B + 1) * $ / N;
10537
+ D[B] = [M, R, I, V, n, i, f, d];
10527
10538
  }
10528
10539
  return v1[u] = D;
10529
10540
  }
@@ -13350,11 +13361,11 @@ function BS(e) {
13350
13361
  return e < 0 ? Math.ceil(-e) : 0;
13351
13362
  }
13352
13363
  function IF(e, t, n) {
13353
- var i = !n.nodirty, r = n.bounds === O2 ? dY : hY, o = an.set(0, 0, 0, 0), s = ot(n.align, rs), a = ot(n.align, os), l = ot(n.padding, rs), u = ot(n.padding, os), 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), b = 0, _ = Array(d), v = Array(d), w = Array(d), E, x, C, S, A, M, F, R, T, $, N;
13364
+ var i = !n.nodirty, r = n.bounds === O2 ? dY : hY, o = an.set(0, 0, 0, 0), s = ot(n.align, rs), a = ot(n.align, os), l = ot(n.padding, rs), u = ot(n.padding, os), 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), b = 0, _ = Array(d), v = Array(d), w = Array(d), E, x, C, S, A, M, R, F, T, $, N;
13354
13365
  for (x = 0; x < c; ++x) p[x] = 0;
13355
13366
  for (x = 0; x < f; ++x) y[x] = 0;
13356
13367
  for (x = 0; x < d; ++x)
13357
- M = t[x], A = w[x] = r(M), M.x = M.x || 0, _[x] = 0, M.y = M.y || 0, v[x] = 0, C = x % c, S = ~~(x / c), g = Math.max(g, F = Math.ceil(A.x2)), b = Math.max(b, R = Math.ceil(A.y2)), p[C] = Math.max(p[C], F), y[S] = Math.max(y[S], R), h[x] = l + BS(A.x1), m[x] = u + BS(A.y1), i && e.dirty(t[x]);
13368
+ M = t[x], A = w[x] = r(M), M.x = M.x || 0, _[x] = 0, M.y = M.y || 0, v[x] = 0, C = x % c, S = ~~(x / c), g = Math.max(g, R = Math.ceil(A.x2)), b = Math.max(b, F = Math.ceil(A.y2)), p[C] = Math.max(p[C], R), y[S] = Math.max(y[S], F), h[x] = l + BS(A.x1), m[x] = u + BS(A.y1), i && e.dirty(t[x]);
13358
13369
  for (x = 0; x < d; ++x)
13359
13370
  x % c === 0 && (h[x] = 0), x < c && (m[x] = 0);
13360
13371
  if (s === Mb)
@@ -14509,14 +14520,14 @@ function EX(e, t) {
14509
14520
  for (var u = 0, c = e.length; u < c; ++u)
14510
14521
  if (d = (f = e[u]).length)
14511
14522
  for (var f, d, h = f[d - 1], p = M1(h), g = h[1] / 2 + jp, m = le(g), y = fe(g), b = 0; b < d; ++b, p = v, m = E, y = x, h = _) {
14512
- var _ = f[b], v = M1(_), w = _[1] / 2 + jp, E = le(w), x = fe(w), C = v - p, S = C >= 0 ? 1 : -1, A = S * C, M = A > Ae, F = m * E;
14513
- if (l.add(Ti(F * S * le(A), y * x + F * fe(A))), s += M ? C + S * Nn : C, M ^ p >= n ^ v >= n) {
14514
- var R = du(Fa(h), Fa(_));
14515
- Yp(R);
14516
- var T = du(o, R);
14523
+ var _ = f[b], v = M1(_), w = _[1] / 2 + jp, E = le(w), x = fe(w), C = v - p, S = C >= 0 ? 1 : -1, A = S * C, M = A > Ae, R = m * E;
14524
+ if (l.add(Ti(R * S * le(A), y * x + R * fe(A))), s += M ? C + S * Nn : C, M ^ p >= n ^ v >= n) {
14525
+ var F = du(Fa(h), Fa(_));
14526
+ Yp(F);
14527
+ var T = du(o, F);
14517
14528
  Yp(T);
14518
14529
  var $ = (M ^ C >= 0 ? -1 : 1) * Hn(T[2]);
14519
- (i > $ || i === $ && (R[0] || R[1])) && (a += M ^ C >= 0 ? 1 : -1);
14530
+ (i > $ || i === $ && (F[0] || F[1])) && (a += M ^ C >= 0 ? 1 : -1);
14520
14531
  }
14521
14532
  }
14522
14533
  return (s < -ce || s < ce && l < -Up) ^ a & 1;
@@ -14659,15 +14670,15 @@ function MX(e) {
14659
14670
  if (!_) return !d && c;
14660
14671
  var v = t * y / _, w = -t * b / _, E = du(g, m), x = lh(g, v), C = lh(m, w);
14661
14672
  A1(x, C);
14662
- var S = E, A = ah(x, S), M = ah(S, S), F = A * A - M * (ah(x, x) - 1);
14663
- if (!(F < 0)) {
14664
- var R = Fn(F), T = lh(S, (-A - R) / M);
14673
+ var S = E, A = ah(x, S), M = ah(S, S), R = A * A - M * (ah(x, x) - 1);
14674
+ if (!(R < 0)) {
14675
+ var F = Fn(R), T = lh(S, (-A - F) / M);
14665
14676
  if (A1(T, x), T = Vp(T), !d) return T;
14666
14677
  var $ = c[0], N = f[0], D = c[1], B = f[1], I;
14667
14678
  N < $ && (I = $, $ = N, N = I);
14668
14679
  var V = N - $, ue = Fe(V - Ae) < ce, oe = ue || V < ce;
14669
14680
  if (!ue && B < D && (I = D, D = B, B = I), oe ? ue ? D + B > 0 ^ T[1] < (Fe(T[0] - $) < ce ? D : B) : D <= T[1] && T[1] <= B : V > Ae ^ ($ <= T[0] && T[0] <= N)) {
14670
- var ye = lh(S, (-A + R) / M);
14681
+ var ye = lh(S, (-A + F) / M);
14671
14682
  return A1(ye, x), [T, Vp(ye)];
14672
14683
  }
14673
14684
  }
@@ -14745,8 +14756,8 @@ function gR(e, t, n, i) {
14745
14756
  return function(u) {
14746
14757
  var c = u, f = dR(), d, h, p, g, m, y, b, _, v, w, E, x = {
14747
14758
  point: C,
14748
- lineStart: F,
14749
- lineEnd: R,
14759
+ lineStart: R,
14760
+ lineEnd: F,
14750
14761
  polygonStart: A,
14751
14762
  polygonEnd: M
14752
14763
  };
@@ -14766,10 +14777,10 @@ function gR(e, t, n, i) {
14766
14777
  var $ = S(), N = E && $, D = (d = s4(d)).length;
14767
14778
  (N || D) && (u.polygonStart(), N && (u.lineStart(), o(null, null, 1, u), u.lineEnd()), D && hR(d, a, $, o, u), u.polygonEnd()), c = u, d = h = p = null;
14768
14779
  }
14769
- function F() {
14780
+ function R() {
14770
14781
  x.point = T, h && h.push(p = []), w = !0, v = !1, b = _ = NaN;
14771
14782
  }
14772
- function R() {
14783
+ function F() {
14773
14784
  d && (T(g, m), y && v && f.rejoin(), d.push(f.result())), x.point = C, v && c.lineEnd();
14774
14785
  }
14775
14786
  function T($, N) {
@@ -15160,8 +15171,8 @@ function HX(e, t) {
15160
15171
  function n(i, r, o, s, a, l, u, c, f, d, h, p, g, m) {
15161
15172
  var y = u - i, b = c - r, _ = y * y + b * b;
15162
15173
  if (_ > 4 * t && g--) {
15163
- var v = s + d, w = a + h, E = l + p, x = Fn(v * v + w * w + E * E), C = Hn(E /= x), S = Fe(Fe(E) - 1) < ce || Fe(o - f) < ce ? (o + f) / 2 : Ti(w, v), A = e(S, C), M = A[0], F = A[1], R = M - i, T = F - r, $ = b * R - y * T;
15164
- ($ * $ / _ > t || Fe((y * R + b * T) / _ - 0.5) > 0.3 || s * d + a * h + l * p < qX) && (n(i, r, o, s, a, l, M, F, S, v /= x, w /= x, E, g, m), m.point(M, F), n(M, F, S, v, w, E, u, c, f, d, h, p, g, m));
15174
+ var v = s + d, w = a + h, E = l + p, x = Fn(v * v + w * w + E * E), C = Hn(E /= x), S = Fe(Fe(E) - 1) < ce || Fe(o - f) < ce ? (o + f) / 2 : Ti(w, v), A = e(S, C), M = A[0], R = A[1], F = M - i, T = R - r, $ = b * F - y * T;
15175
+ ($ * $ / _ > t || Fe((y * F + b * T) / _ - 0.5) > 0.3 || s * d + a * h + l * p < qX) && (n(i, r, o, s, a, l, M, R, S, v /= x, w /= x, E, g, m), m.point(M, R), n(M, R, S, v, w, E, u, c, f, d, h, p, g, m));
15165
15176
  }
15166
15177
  }
15167
15178
  return function(i) {
@@ -15242,7 +15253,7 @@ function AR(e) {
15242
15253
  function M($) {
15243
15254
  return C($[0] * $e, $[1] * $e);
15244
15255
  }
15245
- function F($) {
15256
+ function R($) {
15246
15257
  return $ = C.invert($[0], $[1]), $ && [$[0] * bt, $[1] * bt];
15247
15258
  }
15248
15259
  M.stream = function($) {
@@ -15256,19 +15267,19 @@ function AR(e) {
15256
15267
  }, M.clipExtent = function($) {
15257
15268
  return arguments.length ? (v = $ == null ? (m = y = b = _ = null, Tf) : gR(m = +$[0][0], y = +$[0][1], b = +$[1][0], _ = +$[1][1]), T()) : m == null ? null : [[m, y], [b, _]];
15258
15269
  }, M.scale = function($) {
15259
- return arguments.length ? (n = +$, R()) : n;
15270
+ return arguments.length ? (n = +$, F()) : n;
15260
15271
  }, M.translate = function($) {
15261
- return arguments.length ? (i = +$[0], r = +$[1], R()) : [i, r];
15272
+ return arguments.length ? (i = +$[0], r = +$[1], F()) : [i, r];
15262
15273
  }, M.center = function($) {
15263
- return arguments.length ? (o = $[0] % 360 * $e, s = $[1] % 360 * $e, R()) : [o * bt, s * bt];
15274
+ return arguments.length ? (o = $[0] % 360 * $e, s = $[1] % 360 * $e, F()) : [o * bt, s * bt];
15264
15275
  }, M.rotate = function($) {
15265
- return arguments.length ? (a = $[0] % 360 * $e, l = $[1] % 360 * $e, u = $.length > 2 ? $[2] % 360 * $e : 0, R()) : [a * bt, l * bt, u * bt];
15276
+ return arguments.length ? (a = $[0] % 360 * $e, l = $[1] % 360 * $e, u = $.length > 2 ? $[2] % 360 * $e : 0, F()) : [a * bt, l * bt, u * bt];
15266
15277
  }, M.angle = function($) {
15267
- return arguments.length ? (f = $ % 360 * $e, R()) : f * bt;
15278
+ return arguments.length ? (f = $ % 360 * $e, F()) : f * bt;
15268
15279
  }, M.reflectX = function($) {
15269
- return arguments.length ? (d = $ ? -1 : 1, R()) : d < 0;
15280
+ return arguments.length ? (d = $ ? -1 : 1, F()) : d < 0;
15270
15281
  }, M.reflectY = function($) {
15271
- return arguments.length ? (h = $ ? -1 : 1, R()) : h < 0;
15282
+ return arguments.length ? (h = $ ? -1 : 1, F()) : h < 0;
15272
15283
  }, M.precision = function($) {
15273
15284
  return arguments.length ? (E = p$(x, w = $ * $), T()) : Fn(w);
15274
15285
  }, M.fitExtent = function($, N) {
@@ -15280,7 +15291,7 @@ function AR(e) {
15280
15291
  }, M.fitHeight = function($, N) {
15281
15292
  return H2(M, $, N);
15282
15293
  };
15283
- function R() {
15294
+ function F() {
15284
15295
  var $ = g$(n, 0, 0, d, h, f).apply(null, t(o, s)), N = g$(n, i - $[0], r - $[1], d, h, f);
15285
15296
  return c = fR(a, l, u), x = Bb(t, N), C = Bb(c, x), E = p$(x, w), T();
15286
15297
  }
@@ -15288,7 +15299,7 @@ function AR(e) {
15288
15299
  return S = A = null, M;
15289
15300
  }
15290
15301
  return function() {
15291
- return t = e.apply(this, arguments), M.invert = t.invert && F, R();
15302
+ return t = e.apply(this, arguments), M.invert = t.invert && R, F();
15292
15303
  };
15293
15304
  }
15294
15305
  function G2(e) {
@@ -16651,8 +16662,8 @@ function fZ(e) {
16651
16662
  var C = _.data, S = _.r, A = g + S;
16652
16663
  if (C) {
16653
16664
  if (C.index > d.index) {
16654
- var M = h - C.x - C.vx, F = p - C.y - C.vy, R = M * M + F * F;
16655
- R < A * A && (M === 0 && (M = ss(i), R += M * M), F === 0 && (F = ss(i), R += F * F), R = (A - (R = Math.sqrt(R))) / R * r, d.vx += (M *= R) * (A = (S *= S) / (m + S)), d.vy += (F *= R) * A, C.vx -= M * (A = 1 - A), C.vy -= F * A);
16665
+ var M = h - C.x - C.vx, R = p - C.y - C.vy, F = M * M + R * R;
16666
+ F < A * A && (M === 0 && (M = ss(i), F += M * M), R === 0 && (R = ss(i), F += R * R), F = (A - (F = Math.sqrt(F))) / F * r, d.vx += (M *= F) * (A = (S *= S) / (m + S)), d.vy += (R *= F) * A, C.vx -= M * (A = 1 - A), C.vy -= R * A);
16656
16667
  }
16657
16668
  return;
16658
16669
  }
@@ -17520,11 +17531,11 @@ function Qc(e, t) {
17520
17531
  };
17521
17532
  }
17522
17533
  function oD(e, t, n) {
17523
- var i = e.x, r = e.y, o = e.r, s = t.x, a = t.y, l = t.r, u = n.x, c = n.y, f = n.r, d = i - s, h = i - u, p = r - a, g = r - c, m = l - o, y = f - o, b = i * i + r * r - o * o, _ = b - s * s - a * a + l * l, v = b - u * u - c * c + f * f, w = h * p - d * g, E = (p * v - g * _) / (w * 2) - i, x = (g * m - p * y) / w, C = (h * _ - d * v) / (w * 2) - r, S = (d * y - h * m) / w, A = x * x + S * S - 1, M = 2 * (o + E * x + C * S), F = E * E + C * C - o * o, R = -(Math.abs(A) > 1e-6 ? (M + Math.sqrt(M * M - 4 * A * F)) / (2 * A) : F / M);
17534
+ var i = e.x, r = e.y, o = e.r, s = t.x, a = t.y, l = t.r, u = n.x, c = n.y, f = n.r, d = i - s, h = i - u, p = r - a, g = r - c, m = l - o, y = f - o, b = i * i + r * r - o * o, _ = b - s * s - a * a + l * l, v = b - u * u - c * c + f * f, w = h * p - d * g, E = (p * v - g * _) / (w * 2) - i, x = (g * m - p * y) / w, C = (h * _ - d * v) / (w * 2) - r, S = (d * y - h * m) / w, A = x * x + S * S - 1, M = 2 * (o + E * x + C * S), R = E * E + C * C - o * o, F = -(Math.abs(A) > 1e-6 ? (M + Math.sqrt(M * M - 4 * A * R)) / (2 * A) : R / M);
17524
17535
  return {
17525
- x: i + E + x * R,
17526
- y: r + C + S * R,
17527
- r: R
17536
+ x: i + E + x * F,
17537
+ y: r + C + S * F,
17538
+ r: F
17528
17539
  };
17529
17540
  }
17530
17541
  function $$(e, t, n) {
@@ -18413,12 +18424,12 @@ function JJ(e, t, n, i) {
18413
18424
  }
18414
18425
  return function(u) {
18415
18426
  const c = u.datum.datum.items[i].items, f = c.length, d = u.datum.fontSize, h = oi.width(u.datum, u.datum.text);
18416
- let p = n ? d : 0, g = !1, m = !1, y = 0, b, _, v, w, E, x, C, S, A, M, F, R, T, $, N, D, B;
18427
+ let p = n ? d : 0, g = !1, m = !1, y = 0, b, _, v, w, E, x, C, S, A, M, R, F, T, $, N, D, B;
18417
18428
  for (let I = 0; I < f; ++I) {
18418
- for (b = c[I].x, v = c[I].y, _ = c[I].x2 === void 0 ? b : c[I].x2, w = c[I].y2 === void 0 ? v : c[I].y2, b > _ && (B = b, b = _, _ = B), v > w && (B = v, v = w, w = B), A = e(b), F = e(_), M = ~~((A + F) / 2), R = e(v), $ = e(w), T = ~~((R + $) / 2), C = M; C >= A; --C)
18419
- for (S = T; S >= R; --S)
18429
+ for (b = c[I].x, v = c[I].y, _ = c[I].x2 === void 0 ? b : c[I].x2, w = c[I].y2 === void 0 ? v : c[I].y2, b > _ && (B = b, b = _, _ = B), v > w && (B = v, v = w, w = B), A = e(b), R = e(_), M = ~~((A + R) / 2), F = e(v), $ = e(w), T = ~~((F + $) / 2), C = M; C >= A; --C)
18430
+ for (S = T; S >= F; --S)
18420
18431
  D = l(C, S, p, h, d), D && ([u.x, u.y, p, g] = D);
18421
- for (C = M; C <= F; ++C)
18432
+ for (C = M; C <= R; ++C)
18422
18433
  for (S = T; S <= $; ++S)
18423
18434
  D = l(C, S, p, h, d), D && ([u.x, u.y, p, g] = D);
18424
18435
  !g && !n && (N = Math.abs(_ - b + w - v), E = (b + _) / 2, x = (v + w) / 2, N >= y && !mg(E, x, h, d, r, o) && !as(e, E, x, d, h, d, s, null) && (y = N, u.x = E, u.y = x, m = !0));
@@ -18431,16 +18442,16 @@ function tQ(e, t, n, i) {
18431
18442
  const r = e.width, o = e.height, s = t[0], a = t[1], l = e.bitmap();
18432
18443
  return function(u) {
18433
18444
  const c = u.datum.datum.items[i].items, f = c.length, d = u.datum.fontSize, h = oi.width(u.datum, u.datum.text), p = [];
18434
- let g = n ? d : 0, m = !1, y = !1, b = 0, _, v, w, E, x, C, S, A, M, F, R, T;
18445
+ let g = n ? d : 0, m = !1, y = !1, b = 0, _, v, w, E, x, C, S, A, M, R, F, T;
18435
18446
  for (let $ = 0; $ < f; ++$) {
18436
18447
  for (_ = c[$].x, w = c[$].y, v = c[$].x2 === void 0 ? _ : c[$].x2, E = c[$].y2 === void 0 ? w : c[$].y2, p.push([e((_ + v) / 2), e((w + E) / 2)]); p.length; )
18437
18448
  if ([S, A] = p.pop(), !(s.get(S, A) || a.get(S, A) || l.get(S, A))) {
18438
18449
  l.set(S, A);
18439
18450
  for (let N = 0; N < 4; ++N)
18440
18451
  x = S + QJ[N], C = A + eQ[N], l.outOfBounds(x, C, x, C) || p.push([x, C]);
18441
- if (x = e.invert(S), C = e.invert(A), M = g, F = o, !mg(x, C, h, d, r, o) && !as(e, x, C, d, h, M, s, a) && !as(e, x, C, d, h, d, s, null)) {
18442
- for (; F - M >= 1; )
18443
- R = (M + F) / 2, as(e, x, C, d, h, R, s, a) ? F = R : M = R;
18452
+ if (x = e.invert(S), C = e.invert(A), M = g, R = o, !mg(x, C, h, d, r, o) && !as(e, x, C, d, h, M, s, a) && !as(e, x, C, d, h, d, s, null)) {
18453
+ for (; R - M >= 1; )
18454
+ F = (M + R) / 2, as(e, x, C, d, h, F, s, a) ? R = F : M = F;
18444
18455
  M > g && (u.x = x, u.y = C, g = M, m = !0);
18445
18456
  }
18446
18457
  }
@@ -18457,8 +18468,8 @@ function rQ(e, t, n, i) {
18457
18468
  if (c[2] < 0 || c[5] < 0 || c[0] > r || c[3] > o)
18458
18469
  return !1;
18459
18470
  let d = u.textWidth ?? 0, h, p, g, m, y, b, _, v, w, E, x, C, S, A, M;
18460
- for (let F = 0; F < l; ++F) {
18461
- if (h = (n[F] & 3) - 1, p = (n[F] >>> 2 & 3) - 1, g = h === 0 && p === 0 || i[F] < 0, m = h && p ? Math.SQRT1_2 : 1, y = i[F] < 0 ? -1 : 1, b = c[1 + h] + i[F] * h * m, x = c[4 + p] + y * f * p / 2 + i[F] * p * m, v = x - f / 2, w = x + f / 2, C = e(b), A = e(v), M = e(w), !d)
18471
+ for (let R = 0; R < l; ++R) {
18472
+ if (h = (n[R] & 3) - 1, p = (n[R] >>> 2 & 3) - 1, g = h === 0 && p === 0 || i[R] < 0, m = h && p ? Math.SQRT1_2 : 1, y = i[R] < 0 ? -1 : 1, b = c[1 + h] + i[R] * h * m, x = c[4 + p] + y * f * p / 2 + i[R] * p * m, v = x - f / 2, w = x + f / 2, C = e(b), A = e(v), M = e(w), !d)
18462
18473
  if (I$(C, C, A, M, s, a, b, b, v, w, c, g))
18463
18474
  d = oi.width(u.datum, u.datum.text);
18464
18475
  else
@@ -18508,11 +18519,11 @@ function aQ(e, t, n, i, r, o, s, a, l, u, c) {
18508
18519
  const x = KJ(t[0], t[1], u);
18509
18520
  let C;
18510
18521
  if (!_) {
18511
- n && E.sort((F, R) => n(F.datum, R.datum));
18522
+ n && E.sort((R, F) => n(R.datum, F.datum));
18512
18523
  let A = !1;
18513
- for (let F = 0; F < h.length && !A; ++F)
18514
- A = h[F] === 5 || d[F] < 0;
18515
- const M = (p && s || m) && e.map((F) => F.datum);
18524
+ for (let R = 0; R < h.length && !A; ++R)
18525
+ A = h[R] === 5 || d[R] < 0;
18526
+ const M = (p && s || m) && e.map((R) => R.datum);
18516
18527
  C = o.length || M ? VJ(x, M || [], o, A, m) : GJ(x, s && E);
18517
18528
  }
18518
18529
  const S = m ? sQ[c](x, C, s, l) : rQ(x, C, h, d);
@@ -18800,11 +18811,11 @@ function vd(e) {
18800
18811
  const yQ = (3 + 16 * wo) * wo, bQ = (2 + 12 * wo) * wo, _Q = (9 + 64 * wo) * wo * wo, kl = vd(4), P$ = vd(8), z$ = vd(12), B$ = vd(16), vn = vd(4);
18801
18812
  function vQ(e, t, n, i, r, o, s) {
18802
18813
  let a, l, u, c, f, d, h, p, g, m, y, b, _, v, w, E, x, C;
18803
- const S = e - r, A = n - r, M = t - o, F = i - o;
18804
- v = S * F, d = on * S, h = d - (d - S), p = S - h, d = on * F, g = d - (d - F), m = F - g, w = p * m - (v - h * g - p * g - h * m), E = M * A, d = on * M, h = d - (d - M), p = M - h, d = on * A, g = d - (d - A), m = A - g, x = p * m - (E - h * g - p * g - h * m), y = w - x, f = w - y, kl[0] = w - (y + f) + (f - x), b = v + y, f = b - v, _ = v - (b - f) + (y - f), y = _ - E, f = _ - y, kl[1] = _ - (y + f) + (f - E), C = b + y, f = C - b, kl[2] = b - (C - f) + (y - f), kl[3] = C;
18805
- let R = mQ(4, kl), T = bQ * s;
18806
- if (R >= T || -R >= T || (f = e - S, a = e - (S + f) + (f - r), f = n - A, u = n - (A + f) + (f - r), f = t - M, l = t - (M + f) + (f - o), f = i - F, c = i - (F + f) + (f - o), a === 0 && l === 0 && u === 0 && c === 0) || (T = _Q * s + gQ * Math.abs(R), R += S * c + F * a - (M * u + A * l), R >= T || -R >= T)) return R;
18807
- v = a * F, d = on * a, h = d - (d - a), p = a - h, d = on * F, g = d - (d - F), m = F - g, w = p * m - (v - h * g - p * g - h * m), E = l * A, d = on * l, h = d - (d - l), p = l - h, d = on * A, g = d - (d - A), m = A - g, x = p * m - (E - h * g - p * g - h * m), y = w - x, f = w - y, vn[0] = w - (y + f) + (f - x), b = v + y, f = b - v, _ = v - (b - f) + (y - f), y = _ - E, f = _ - y, vn[1] = _ - (y + f) + (f - E), C = b + y, f = C - b, vn[2] = b - (C - f) + (y - f), vn[3] = C;
18814
+ const S = e - r, A = n - r, M = t - o, R = i - o;
18815
+ v = S * R, d = on * S, h = d - (d - S), p = S - h, d = on * R, g = d - (d - R), m = R - g, w = p * m - (v - h * g - p * g - h * m), E = M * A, d = on * M, h = d - (d - M), p = M - h, d = on * A, g = d - (d - A), m = A - g, x = p * m - (E - h * g - p * g - h * m), y = w - x, f = w - y, kl[0] = w - (y + f) + (f - x), b = v + y, f = b - v, _ = v - (b - f) + (y - f), y = _ - E, f = _ - y, kl[1] = _ - (y + f) + (f - E), C = b + y, f = C - b, kl[2] = b - (C - f) + (y - f), kl[3] = C;
18816
+ let F = mQ(4, kl), T = bQ * s;
18817
+ if (F >= T || -F >= T || (f = e - S, a = e - (S + f) + (f - r), f = n - A, u = n - (A + f) + (f - r), f = t - M, l = t - (M + f) + (f - o), f = i - R, c = i - (R + f) + (f - o), a === 0 && l === 0 && u === 0 && c === 0) || (T = _Q * s + gQ * Math.abs(F), F += S * c + R * a - (M * u + A * l), F >= T || -F >= T)) return F;
18818
+ v = a * R, d = on * a, h = d - (d - a), p = a - h, d = on * R, g = d - (d - R), m = R - g, w = p * m - (v - h * g - p * g - h * m), E = l * A, d = on * l, h = d - (d - l), p = l - h, d = on * A, g = d - (d - A), m = A - g, x = p * m - (E - h * g - p * g - h * m), y = w - x, f = w - y, vn[0] = w - (y + f) + (f - x), b = v + y, f = b - v, _ = v - (b - f) + (y - f), y = _ - E, f = _ - y, vn[1] = _ - (y + f) + (f - E), C = b + y, f = C - b, vn[2] = b - (C - f) + (y - f), vn[3] = C;
18808
18819
  const $ = G1(4, kl, 4, vn, P$);
18809
18820
  v = S * c, d = on * S, h = d - (d - S), p = S - h, d = on * c, g = d - (d - c), m = c - g, w = p * m - (v - h * g - p * g - h * m), E = M * u, d = on * M, h = d - (d - M), p = M - h, d = on * u, g = d - (d - u), m = u - g, x = p * m - (E - h * g - p * g - h * m), y = w - x, f = w - y, vn[0] = w - (y + f) + (f - x), b = v + y, f = b - v, _ = v - (b - f) + (y - f), y = _ - E, f = _ - y, vn[1] = _ - (y + f) + (f - E), C = b + y, f = C - b, vn[2] = b - (C - f) + (y - f), vn[3] = C;
18810
18821
  const N = G1($, P$, 4, vn, z$);
@@ -18865,9 +18876,9 @@ class yg {
18865
18876
  Pl(this._ids, this._dists, 0, s - 1);
18866
18877
  const S = new Uint32Array(s);
18867
18878
  let A = 0;
18868
- for (let M = 0, F = -1 / 0; M < s; M++) {
18869
- const R = this._ids[M], T = this._dists[R];
18870
- T > F && (S[A++] = R, F = T);
18879
+ for (let M = 0, R = -1 / 0; M < s; M++) {
18880
+ const F = this._ids[M], T = this._dists[F];
18881
+ T > R && (S[A++] = F, R = T);
18871
18882
  }
18872
18883
  this.hull = S.subarray(0, A), this.triangles = new Uint32Array(0), this.halfedges = new Uint32Array(0);
18873
18884
  return;
@@ -18884,28 +18895,28 @@ class yg {
18884
18895
  let C = 3;
18885
18896
  i[h] = n[g] = p, i[p] = n[h] = g, i[g] = n[p] = h, r[h] = 0, r[p] = 1, r[g] = 2, o.fill(-1), o[this._hashKey(m, y)] = h, o[this._hashKey(b, _)] = p, o[this._hashKey(w, E)] = g, this.trianglesLen = 0, this._addTriangle(h, p, g, -1, -1, -1);
18886
18897
  for (let S = 0, A, M; S < this._ids.length; S++) {
18887
- const F = this._ids[S], R = t[2 * F], T = t[2 * F + 1];
18888
- if (S > 0 && Math.abs(R - A) <= U$ && Math.abs(T - M) <= U$ || (A = R, M = T, F === h || F === p || F === g)) continue;
18898
+ const R = this._ids[S], F = t[2 * R], T = t[2 * R + 1];
18899
+ if (S > 0 && Math.abs(F - A) <= U$ && Math.abs(T - M) <= U$ || (A = F, M = T, R === h || R === p || R === g)) continue;
18889
18900
  let $ = 0;
18890
- for (let V = 0, ue = this._hashKey(R, T); V < this._hashSize && ($ = o[(ue + V) % this._hashSize], !($ !== -1 && $ !== i[$])); V++)
18901
+ for (let V = 0, ue = this._hashKey(F, T); V < this._hashSize && ($ = o[(ue + V) % this._hashSize], !($ !== -1 && $ !== i[$])); V++)
18891
18902
  ;
18892
18903
  $ = n[$];
18893
18904
  let N = $, D;
18894
- for (; D = i[N], ph(R, T, t[2 * N], t[2 * N + 1], t[2 * D], t[2 * D + 1]) >= 0; )
18905
+ for (; D = i[N], ph(F, T, t[2 * N], t[2 * N + 1], t[2 * D], t[2 * D + 1]) >= 0; )
18895
18906
  if (N = D, N === $) {
18896
18907
  N = -1;
18897
18908
  break;
18898
18909
  }
18899
18910
  if (N === -1) continue;
18900
- let B = this._addTriangle(N, F, i[N], -1, -1, r[N]);
18901
- r[F] = this._legalize(B + 2), r[N] = B, C++;
18911
+ let B = this._addTriangle(N, R, i[N], -1, -1, r[N]);
18912
+ r[R] = this._legalize(B + 2), r[N] = B, C++;
18902
18913
  let I = i[N];
18903
- for (; D = i[I], ph(R, T, t[2 * I], t[2 * I + 1], t[2 * D], t[2 * D + 1]) < 0; )
18904
- B = this._addTriangle(I, F, D, r[F], -1, r[I]), r[F] = this._legalize(B + 2), i[I] = I, C--, I = D;
18914
+ for (; D = i[I], ph(F, T, t[2 * I], t[2 * I + 1], t[2 * D], t[2 * D + 1]) < 0; )
18915
+ B = this._addTriangle(I, R, D, r[R], -1, r[I]), r[R] = this._legalize(B + 2), i[I] = I, C--, I = D;
18905
18916
  if (N === $)
18906
- for (; D = n[N], ph(R, T, t[2 * D], t[2 * D + 1], t[2 * N], t[2 * N + 1]) < 0; )
18907
- B = this._addTriangle(D, F, N, -1, r[N], r[D]), this._legalize(B + 2), r[D] = B, i[N] = N, C--, N = D;
18908
- this._hullStart = n[F] = N, i[N] = n[I] = F, i[F] = I, o[this._hashKey(R, T)] = F, o[this._hashKey(t[2 * N], t[2 * N + 1])] = N;
18917
+ for (; D = n[N], ph(F, T, t[2 * D], t[2 * D + 1], t[2 * N], t[2 * N + 1]) < 0; )
18918
+ B = this._addTriangle(D, R, N, -1, r[N], r[D]), this._legalize(B + 2), r[D] = B, i[N] = N, C--, N = D;
18919
+ this._hullStart = n[R] = N, i[N] = n[I] = R, i[R] = I, o[this._hashKey(F, T)] = R, o[this._hashKey(t[2 * N], t[2 * N + 1])] = N;
18909
18920
  }
18910
18921
  this.hull = new Uint32Array(C);
18911
18922
  for (let S = 0, A = this._hullStart; S < C; S++)
@@ -19081,7 +19092,7 @@ let $Q = class {
19081
19092
  let o, s;
19082
19093
  const a = this.circumcenters = this._circumcenters.subarray(0, i.length / 3 * 2);
19083
19094
  for (let g = 0, m = 0, y = i.length, b, _; g < y; g += 3, m += 2) {
19084
- const v = i[g] * 2, w = i[g + 1] * 2, E = i[g + 2] * 2, x = t[v], C = t[v + 1], S = t[w], A = t[w + 1], M = t[E], F = t[E + 1], R = S - x, T = A - C, $ = M - x, N = F - C, D = (R * N - T * $) * 2;
19095
+ const v = i[g] * 2, w = i[g + 1] * 2, E = i[g + 2] * 2, x = t[v], C = t[v + 1], S = t[w], A = t[w + 1], M = t[E], R = t[E + 1], F = S - x, T = A - C, $ = M - x, N = R - C, D = (F * N - T * $) * 2;
19085
19096
  if (Math.abs(D) < 1e-9) {
19086
19097
  if (o === void 0) {
19087
19098
  o = s = 0;
@@ -19089,10 +19100,10 @@ let $Q = class {
19089
19100
  o /= n.length, s /= n.length;
19090
19101
  }
19091
19102
  const B = 1e9 * Math.sign((o - x) * N - (s - C) * $);
19092
- b = (x + M) / 2 - B * N, _ = (C + F) / 2 + B * $;
19103
+ b = (x + M) / 2 - B * N, _ = (C + R) / 2 + B * $;
19093
19104
  } else {
19094
- const B = 1 / D, I = R * R + T * T, V = $ * $ + N * N;
19095
- b = x + (N * I - T * V) * B, _ = C + (R * V - $ * I) * B;
19105
+ const B = 1 / D, I = F * F + T * T, V = $ * $ + N * N;
19106
+ b = x + (N * I - T * V) * B, _ = C + (F * V - $ * I) * B;
19096
19107
  }
19097
19108
  a[m] = b, a[m + 1] = _;
19098
19109
  }
@@ -19567,11 +19578,11 @@ function zQ() {
19567
19578
  function h(p, g, m) {
19568
19579
  for (var y = g.x, b = g.y, _ = Math.hypot(e[0], e[1]), v = l(e), w = c() < 0.5 ? 1 : -1, E = -w, x, C, S; (x = v(E += w)) && (C = ~~x[0], S = ~~x[1], !(Math.min(Math.abs(C), Math.abs(S)) >= _)); )
19569
19580
  if (g.x = y + C, g.y = b + S, !(g.x + g.x0 < 0 || g.y + g.y0 < 0 || g.x + g.x1 > e[0] || g.y + g.y1 > e[1]) && (!m || !UQ(g, p, e[0])) && (!m || qQ(g, m))) {
19570
- for (var A = g.sprite, M = g.width >> 5, F = e[0] >> 5, R = g.x - (M << 4), T = R & 127, $ = 32 - T, N = g.y1 - g.y0, D = (g.y + g.y0) * F + (R >> 5), B, I = 0; I < N; I++) {
19581
+ for (var A = g.sprite, M = g.width >> 5, R = e[0] >> 5, F = g.x - (M << 4), T = F & 127, $ = 32 - T, N = g.y1 - g.y0, D = (g.y + g.y0) * R + (F >> 5), B, I = 0; I < N; I++) {
19571
19582
  B = 0;
19572
19583
  for (var V = 0; V <= M; V++)
19573
19584
  p[D + V] |= B << $ | (V < M ? (B = A[I * M + V]) >>> T : 0);
19574
- D += F;
19585
+ D += R;
19575
19586
  }
19576
19587
  return g.sprite = null, !0;
19577
19588
  }
@@ -28872,7 +28883,7 @@ function g9(e, { config: t }) {
28872
28883
  a,
28873
28884
  // TODO: https://github.com/vega/vega-lite/issues/6245
28874
28885
  t
28875
- ), c = a.invalid, f = p9(l), { bins: d, timeUnits: h, transform: p, continuousAxisChannelDef: g, continuousAxis: m, groupby: y, aggregate: b, encodingWithoutContinuousAxis: _, ticksOrient: v, boxOrient: w, customTooltipWithoutAggregatedField: E } = qce(e, l, t), x = Ju(g.field), { color: C, size: S, ...A } = _, M = (Li) => YE(a, m, g, Li, t.boxplot), F = M(A), R = M(_), T = (Z(t.boxplot.box) ? t.boxplot.box.color : t.mark.color) || "#4c78a8", $ = M({
28886
+ ), c = a.invalid, f = p9(l), { bins: d, timeUnits: h, transform: p, continuousAxisChannelDef: g, continuousAxis: m, groupby: y, aggregate: b, encodingWithoutContinuousAxis: _, ticksOrient: v, boxOrient: w, customTooltipWithoutAggregatedField: E } = qce(e, l, t), x = Ju(g.field), { color: C, size: S, ...A } = _, M = (Li) => YE(a, m, g, Li, t.boxplot), R = M(A), F = M(_), T = (Z(t.boxplot.box) ? t.boxplot.box.color : t.mark.color) || "#4c78a8", $ = M({
28876
28887
  ...A,
28877
28888
  ...S ? { size: S } : {},
28878
28889
  color: {
@@ -28894,27 +28905,27 @@ function g9(e, { config: t }) {
28894
28905
  { fieldPrefix: "lower_whisker_", titlePrefix: "Lower Whisker" }
28895
28906
  ], g, _)
28896
28907
  ), I = [
28897
- ...F({
28908
+ ...R({
28898
28909
  partName: "rule",
28899
28910
  mark: { type: "rule", invalid: c, aria: !1 },
28900
28911
  positionPrefix: "lower_whisker",
28901
28912
  endPositionPrefix: "lower_box",
28902
28913
  extraEncoding: B
28903
28914
  }),
28904
- ...F({
28915
+ ...R({
28905
28916
  partName: "rule",
28906
28917
  mark: { type: "rule", invalid: c, aria: !1 },
28907
28918
  positionPrefix: "upper_box",
28908
28919
  endPositionPrefix: "upper_whisker",
28909
28920
  extraEncoding: B
28910
28921
  }),
28911
- ...F({
28922
+ ...R({
28912
28923
  partName: "ticks",
28913
28924
  mark: D,
28914
28925
  positionPrefix: "lower_whisker",
28915
28926
  extraEncoding: B
28916
28927
  }),
28917
- ...F({
28928
+ ...R({
28918
28929
  partName: "ticks",
28919
28930
  mark: D,
28920
28931
  positionPrefix: "upper_whisker",
@@ -28922,7 +28933,7 @@ function g9(e, { config: t }) {
28922
28933
  })
28923
28934
  ], V = [
28924
28935
  ...f !== "tukey" ? I : [],
28925
- ...R({
28936
+ ...F({
28926
28937
  partName: "box",
28927
28938
  mark: {
28928
28939
  type: "bar",
@@ -29196,7 +29207,7 @@ function Xce(e) {
29196
29207
  function b9(e, t, n) {
29197
29208
  const { mark: i, encoding: r, params: o, projection: s, ...a } = e, l = jr(i) ? i : { type: i };
29198
29209
  o && W(cO(t));
29199
- const { orient: u, inputType: c } = Gce(e, t), { continuousAxisChannelDef: f, continuousAxisChannelDef2: d, continuousAxisChannelDefError: h, continuousAxisChannelDefError2: p, continuousAxis: g } = d9(e, u, t), { errorBarSpecificAggregate: m, postAggregateCalculates: y, tooltipSummary: b, tooltipTitleWithFieldName: _ } = Kce(l, f, d, h, p, c, t, n), { [g]: v, [g === "x" ? "x2" : "y2"]: w, [g === "x" ? "xError" : "yError"]: E, [g === "x" ? "xError2" : "yError2"]: x, ...C } = r, { bins: S, timeUnits: A, aggregate: M, groupby: F, encoding: R } = u9(C, n), T = [...M, ...m], $ = c !== "raw" ? [] : F, N = O_(b, f, R, _);
29210
+ const { orient: u, inputType: c } = Gce(e, t), { continuousAxisChannelDef: f, continuousAxisChannelDef2: d, continuousAxisChannelDefError: h, continuousAxisChannelDefError2: p, continuousAxis: g } = d9(e, u, t), { errorBarSpecificAggregate: m, postAggregateCalculates: y, tooltipSummary: b, tooltipTitleWithFieldName: _ } = Kce(l, f, d, h, p, c, t, n), { [g]: v, [g === "x" ? "x2" : "y2"]: w, [g === "x" ? "xError" : "yError"]: E, [g === "x" ? "xError2" : "yError2"]: x, ...C } = r, { bins: S, timeUnits: A, aggregate: M, groupby: R, encoding: F } = u9(C, n), T = [...M, ...m], $ = c !== "raw" ? [] : R, N = O_(b, f, F, _);
29200
29211
  return {
29201
29212
  transform: [
29202
29213
  ...a.transform ?? [],
@@ -29208,7 +29219,7 @@ function b9(e, t, n) {
29208
29219
  groupby: $,
29209
29220
  continuousAxisChannelDef: f,
29210
29221
  continuousAxis: g,
29211
- encodingWithoutContinuousAxis: R,
29222
+ encodingWithoutContinuousAxis: F,
29212
29223
  ticksOrient: u === "vertical" ? "horizontal" : "vertical",
29213
29224
  markDef: l,
29214
29225
  outerSpec: a,
@@ -40271,7 +40282,7 @@ function mL() {
40271
40282
  if (B)
40272
40283
  return B;
40273
40284
  const I = this.options.loose, V = I ? l[u.HYPHENRANGELOOSE] : l[u.HYPHENRANGE];
40274
- $ = $.replace(V, F(this.options.includePrerelease)), s("hyphen replace", $), $ = $.replace(l[u.COMPARATORTRIM], c), s("comparator trim", $), $ = $.replace(l[u.TILDETRIM], f), s("tilde trim", $), $ = $.replace(l[u.CARETTRIM], d), s("caret trim", $);
40285
+ $ = $.replace(V, R(this.options.includePrerelease)), s("hyphen replace", $), $ = $.replace(l[u.COMPARATORTRIM], c), s("comparator trim", $), $ = $.replace(l[u.TILDETRIM], f), s("tilde trim", $), $ = $.replace(l[u.CARETTRIM], d), s("caret trim", $);
40275
40286
  let ue = $.split(" ").map((be) => b(be, this.options)).join(" ").split(/\s+/).map((be) => M(be, this.options));
40276
40287
  I && (ue = ue.filter((be) => (s("loose invalid filter", be, this.options), !!be.match(l[u.COMPARATORLOOSE])))), s("range list", ue);
40277
40288
  const oe = /* @__PURE__ */ new Map(), ye = ue.map((be) => new o(be, this.options));
@@ -40300,7 +40311,7 @@ function mL() {
40300
40311
  return !1;
40301
40312
  }
40302
40313
  for (let N = 0; N < this.set.length; N++)
40303
- if (R(this.set[N], $, this.options))
40314
+ if (F(this.set[N], $, this.options))
40304
40315
  return !0;
40305
40316
  return !1;
40306
40317
  }
@@ -40342,7 +40353,7 @@ function mL() {
40342
40353
  const ye = _(I), qe = ye || _(V), be = qe || _(ue), It = be;
40343
40354
  return B === "=" && It && (B = ""), oe = $.includePrerelease ? "-0" : "", ye ? B === ">" || B === "<" ? D = "<0.0.0-0" : D = "*" : B && It ? (qe && (V = 0), ue = 0, B === ">" ? (B = ">=", qe ? (I = +I + 1, V = 0, ue = 0) : (V = +V + 1, ue = 0)) : B === "<=" && (B = "<", qe ? I = +I + 1 : V = +V + 1), B === "<" && (oe = "-0"), D = `${B + I}.${V}.${ue}${oe}`) : qe ? D = `>=${I}.0.0${oe} <${+I + 1}.0.0-0` : be && (D = `>=${I}.${V}.0${oe} <${I}.${+V + 1}.0-0`), s("xRange return", D), D;
40344
40355
  });
40345
- }, A = (T, $) => (s("replaceStars", T, $), T.trim().replace(l[u.STAR], "")), M = (T, $) => (s("replaceGTE0", T, $), T.trim().replace(l[$.includePrerelease ? u.GTE0PRE : u.GTE0], "")), F = (T) => ($, N, D, B, I, V, ue, oe, ye, qe, be, It) => (_(D) ? N = "" : _(B) ? N = `>=${D}.0.0${T ? "-0" : ""}` : _(I) ? N = `>=${D}.${B}.0${T ? "-0" : ""}` : V ? N = `>=${N}` : N = `>=${N}${T ? "-0" : ""}`, _(ye) ? oe = "" : _(qe) ? oe = `<${+ye + 1}.0.0-0` : _(be) ? oe = `<${ye}.${+qe + 1}.0-0` : It ? oe = `<=${ye}.${qe}.${be}-${It}` : T ? oe = `<${ye}.${qe}.${+be + 1}-0` : oe = `<=${oe}`, `${N} ${oe}`.trim()), R = (T, $, N) => {
40356
+ }, A = (T, $) => (s("replaceStars", T, $), T.trim().replace(l[u.STAR], "")), M = (T, $) => (s("replaceGTE0", T, $), T.trim().replace(l[$.includePrerelease ? u.GTE0PRE : u.GTE0], "")), R = (T) => ($, N, D, B, I, V, ue, oe, ye, qe, be, It) => (_(D) ? N = "" : _(B) ? N = `>=${D}.0.0${T ? "-0" : ""}` : _(I) ? N = `>=${D}.${B}.0${T ? "-0" : ""}` : V ? N = `>=${N}` : N = `>=${N}${T ? "-0" : ""}`, _(ye) ? oe = "" : _(qe) ? oe = `<${+ye + 1}.0.0-0` : _(be) ? oe = `<${ye}.${+qe + 1}.0-0` : It ? oe = `<=${ye}.${qe}.${be}-${It}` : T ? oe = `<${ye}.${qe}.${+be + 1}-0` : oe = `<=${oe}`, `${N} ${oe}`.trim()), F = (T, $, N) => {
40346
40357
  for (let D = 0; D < T.length; D++)
40347
40358
  if (!T[D].test($))
40348
40359
  return !1;
@@ -40660,8 +40671,8 @@ async function j0e(e, t, n = {}, i) {
40660
40671
  const C = s[`${x.toUpperCase()}_ACTION`], S = document.createElement("a"), A = Z(n.scaleFactor) ? n.scaleFactor[x] : n.scaleFactor;
40661
40672
  S.text = C, S.href = "#", S.target = "_blank", S.download = `${u}.${x}`, S.addEventListener("mousedown", async function(M) {
40662
40673
  M.preventDefault();
40663
- const F = await y.toImageURL(x, A);
40664
- this.href = F;
40674
+ const R = await y.toImageURL(x, A);
40675
+ this.href = R;
40665
40676
  }), E.append(S);
40666
40677
  }
40667
40678
  }
@@ -40892,26 +40903,26 @@ function p1e(e) {
40892
40903
  }, v = we(() => d1e(r), [r]), w = we(() => xL(r), [r]), E = we(() => w ? h1e(w) : null, [w]), x = () => {
40893
40904
  c(!0), !v && f.current && f.current.play();
40894
40905
  }, C = (M) => {
40895
- const F = Math.floor(M / 1e3), R = Math.floor(F / 60), T = F % 60;
40896
- return `${R}:${T.toString().padStart(2, "0")}`;
40906
+ const R = Math.floor(M / 1e3), F = Math.floor(R / 60), T = R % 60;
40907
+ return `${F}:${T.toString().padStart(2, "0")}`;
40897
40908
  };
40898
40909
  Ye(() => {
40899
40910
  const M = () => {
40900
40911
  if (d.current) {
40901
- const R = d.current.closest(".asgard-chatbot-body");
40902
- R ? (m(R.clientWidth), b(R.clientHeight)) : (m(window.innerWidth), b(window.innerHeight));
40912
+ const F = d.current.closest(".asgard-chatbot-body");
40913
+ F ? (m(F.clientWidth), b(F.clientHeight)) : (m(window.innerWidth), b(window.innerHeight));
40903
40914
  }
40904
40915
  };
40905
40916
  M(), window.addEventListener("resize", M);
40906
- const F = new ResizeObserver(() => {
40917
+ const R = new ResizeObserver(() => {
40907
40918
  M();
40908
40919
  });
40909
40920
  if (d.current) {
40910
- const R = d.current.closest(".asgard-chatbot-body");
40911
- R && F.observe(R);
40921
+ const F = d.current.closest(".asgard-chatbot-body");
40922
+ F && R.observe(F);
40912
40923
  }
40913
40924
  return () => {
40914
- window.removeEventListener("resize", M), F.disconnect();
40925
+ window.removeEventListener("resize", M), R.disconnect();
40915
40926
  };
40916
40927
  }, []);
40917
40928
  const S = pe(() => {
@@ -40927,7 +40938,7 @@ function p1e(e) {
40927
40938
  v && p({ width: 16, height: 9 });
40928
40939
  }, [v]);
40929
40940
  const A = we(() => {
40930
- const M = g || window.innerWidth, F = y || window.innerHeight, T = h || { width: 16, height: 9 }, { width: $, height: N } = T, D = $ / N;
40941
+ const M = g || window.innerWidth, R = y || window.innerHeight, T = h || { width: 16, height: 9 }, { width: $, height: N } = T, D = $ / N;
40931
40942
  if ($ > N) {
40932
40943
  const I = M * 0.76, V = I / D;
40933
40944
  return {
@@ -40936,7 +40947,7 @@ function p1e(e) {
40936
40947
  maxWidth: "100%"
40937
40948
  };
40938
40949
  } else {
40939
- const I = F * 0.7;
40950
+ const I = R * 0.7;
40940
40951
  return {
40941
40952
  width: `${I * D}px`,
40942
40953
  height: `${I}px`,
@@ -41497,8 +41508,8 @@ function Wye(e) {
41497
41508
  }, w = () => {
41498
41509
  h((S) => Math.min(y, S + 1));
41499
41510
  }, E = pe(() => {
41500
- const S = jye(o, s, l), A = "\uFEFF", M = new Blob([A + S], { type: "text/csv;charset=utf-8;" }), F = URL.createObjectURL(M), R = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), $ = `${(r || "table").replace(/[^a-zA-Z0-9\u4e00-\u9fff]/g, "_")}_${R}.csv`, N = document.createElement("a");
41501
- N.href = F, N.download = $, document.body.appendChild(N), N.click(), document.body.removeChild(N), g({ visible: !0, fileName: $, blobUrl: F });
41511
+ const S = jye(o, s, l), A = "\uFEFF", M = new Blob([A + S], { type: "text/csv;charset=utf-8;" }), R = URL.createObjectURL(M), F = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), $ = `${(r || "table").replace(/[^a-zA-Z0-9\u4e00-\u9fff]/g, "_")}_${F}.csv`, N = document.createElement("a");
41512
+ N.href = R, N.download = $, document.body.appendChild(N), N.click(), document.body.removeChild(N), g({ visible: !0, fileName: $, blobUrl: R });
41502
41513
  }, [o, s, l, r]), x = pe(() => {
41503
41514
  p.blobUrl && window.open(p.blobUrl, "_blank");
41504
41515
  }, [p.blobUrl]), C = pe(() => {
@@ -41537,9 +41548,9 @@ function Wye(e) {
41537
41548
  s.length === 0 ? /* @__PURE__ */ k("div", { className: kt.empty_state, children: "No data available" }) : /* @__PURE__ */ Y(Ka, { children: [
41538
41549
  /* @__PURE__ */ k("div", { className: kt.table_wrapper, children: /* @__PURE__ */ Y("table", { className: kt.table, children: [
41539
41550
  /* @__PURE__ */ k("thead", { className: kt.table_header, children: /* @__PURE__ */ k("tr", { children: o.map((S, A) => /* @__PURE__ */ k("th", { className: kt.table_header_cell, children: S.header }, A)) }) }),
41540
- /* @__PURE__ */ k("tbody", { children: b.map((S, A) => /* @__PURE__ */ k("tr", { className: kt.table_row, children: o.map((M, F) => {
41541
- const R = SL(S, M, F, l), T = CL(R, M.format);
41542
- return /* @__PURE__ */ k("td", { className: kt.table_cell, children: T }, F);
41551
+ /* @__PURE__ */ k("tbody", { children: b.map((S, A) => /* @__PURE__ */ k("tr", { className: kt.table_row, children: o.map((M, R) => {
41552
+ const F = SL(S, M, R, l), T = CL(F, M.format);
41553
+ return /* @__PURE__ */ k("td", { className: kt.table_cell, children: T }, R);
41543
41554
  }) }, A)) })
41544
41555
  ] }) }),
41545
41556
  a && y > 1 && /* @__PURE__ */ Y("div", { className: kt.pagination, children: [
@@ -41956,7 +41967,7 @@ function Ibe() {
41956
41967
  title: u,
41957
41968
  programmaticScrollToBottom: c,
41958
41969
  onBeforeSendMessage: f
41959
- } = Dt(), { data: d } = av(), { chatbot: h } = xt(), p = we(() => o !== void 0 ? o : d.annotations?.embedConfig?.enableUpload ?? !1, [o, d.annotations?.embedConfig?.enableUpload]), g = we(() => s !== void 0 ? s : d.annotations?.embedConfig?.enableExport ?? !1, [s, d.annotations?.embedConfig?.enableExport]), m = we(() => a !== void 0 ? a : d.annotations?.embedConfig?.enableDocumentUpload ?? !1, [a, d.annotations?.embedConfig?.enableDocumentUpload]), y = we(() => d.annotations?.embedConfig?.title || u || "Bot", [d.annotations?.embedConfig?.title, u]), [b, _] = Ne(""), [v, w] = Ne(!1), [E, x] = Ne([]), [C, S] = Ne(null), [A, M] = Ne([]), [F, R] = Ne(!1), T = Qt(null), $ = Qt(null), N = Qt(null), D = we(
41970
+ } = Dt(), { data: d } = av(), { chatbot: h } = xt(), p = we(() => o !== void 0 ? o : d.annotations?.embedConfig?.enableUpload ?? !1, [o, d.annotations?.embedConfig?.enableUpload]), g = we(() => s !== void 0 ? s : d.annotations?.embedConfig?.enableExport ?? !1, [s, d.annotations?.embedConfig?.enableExport]), m = we(() => a !== void 0 ? a : d.annotations?.embedConfig?.enableDocumentUpload ?? !1, [a, d.annotations?.embedConfig?.enableDocumentUpload]), y = we(() => d.annotations?.embedConfig?.title || u || "Bot", [d.annotations?.embedConfig?.title, u]), [b, _] = Ne(""), [v, w] = Ne(!1), [E, x] = Ne([]), [C, S] = Ne(null), [A, M] = Ne([]), [R, F] = Ne(!1), T = Qt(null), $ = Qt(null), N = Qt(null), D = we(
41960
41971
  () => E.some((te) => te.uploadStatus === "uploading"),
41961
41972
  [E]
41962
41973
  ), B = we(
@@ -42001,12 +42012,12 @@ function Ibe() {
42001
42012
  }, [g, p, m]) >= 3;
42002
42013
  Ye(() => {
42003
42014
  const te = (Ge) => {
42004
- N.current && !N.current.contains(Ge.target) && R(!1);
42015
+ N.current && !N.current.contains(Ge.target) && F(!1);
42005
42016
  };
42006
- return F && document.addEventListener("mousedown", te), () => {
42017
+ return R && document.addEventListener("mousedown", te), () => {
42007
42018
  document.removeEventListener("mousedown", te);
42008
42019
  };
42009
- }, [F]);
42020
+ }, [R]);
42010
42021
  const io = pe((te) => {
42011
42022
  const Ge = te.target, Se = Ge.value;
42012
42023
  Ge.style.height = "36px", Se && (Ge.style.height = `${Ge.scrollHeight}px`), _(te.target.value);
@@ -42311,12 +42322,12 @@ function Ibe() {
42311
42322
  {
42312
42323
  className: de.attachment_button,
42313
42324
  style: h.footer?.attachmentButton?.style,
42314
- onClick: () => R(!F),
42325
+ onClick: () => F(!R),
42315
42326
  title: "更多選項",
42316
42327
  children: /* @__PURE__ */ k(Abe, {})
42317
42328
  }
42318
42329
  ),
42319
- F && /* @__PURE__ */ Y(
42330
+ R && /* @__PURE__ */ Y(
42320
42331
  "div",
42321
42332
  {
42322
42333
  className: de.attachment_menu,
@@ -42332,7 +42343,7 @@ function Ibe() {
42332
42343
  te.type = "file", te.multiple = !0, te.accept = [...AL, ...Ok].join(","), te.onchange = (Ge) => {
42333
42344
  const Se = Ge.target.files;
42334
42345
  Se && Se.length > 0 && Lk(Se);
42335
- }, te.click(), R(!1);
42346
+ }, te.click(), F(!1);
42336
42347
  },
42337
42348
  children: [
42338
42349
  /* @__PURE__ */ k($L, {}),
@@ -42346,7 +42357,7 @@ function Ibe() {
42346
42357
  className: de.attachment_menu_item,
42347
42358
  style: { color: h?.primaryComponent?.secondaryColor },
42348
42359
  onClick: () => {
42349
- At(), R(!1);
42360
+ At(), F(!1);
42350
42361
  },
42351
42362
  children: [
42352
42363
  /* @__PURE__ */ k(PM, {}),
@@ -42360,7 +42371,7 @@ function Ibe() {
42360
42371
  className: de.attachment_menu_item,
42361
42372
  style: { color: h?.primaryComponent?.secondaryColor },
42362
42373
  onClick: () => {
42363
- Ik(), R(!1);
42374
+ Ik(), F(!1);
42364
42375
  },
42365
42376
  children: [
42366
42377
  /* @__PURE__ */ k(zM, {}),
@@ -42577,8 +42588,8 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
42577
42588
  errorMessageRenderer: S,
42578
42589
  messageActions: A,
42579
42590
  onMessageAction: M,
42580
- renderMessageContent: F,
42581
- className: R,
42591
+ renderMessageContent: R,
42592
+ className: F,
42582
42593
  style: T,
42583
42594
  defaultLinkTarget: $,
42584
42595
  authState: N = "authenticated",
@@ -42640,7 +42651,7 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
42640
42651
  defaultLinkTarget: $,
42641
42652
  messageActions: A,
42642
42653
  onMessageAction: M,
42643
- renderMessageContent: F,
42654
+ renderMessageContent: R,
42644
42655
  children: /* @__PURE__ */ k(Xye, {})
42645
42656
  }
42646
42657
  ),
@@ -42672,7 +42683,7 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
42672
42683
  enableUpload: g,
42673
42684
  enableExport: m,
42674
42685
  enableDocumentUpload: y,
42675
- children: /* @__PURE__ */ Y(jM, { fullScreen: c, className: R, style: T, children: [
42686
+ children: /* @__PURE__ */ Y(jM, { fullScreen: c, className: F, style: T, children: [
42676
42687
  /* @__PURE__ */ k(
42677
42688
  qk,
42678
42689
  {
@@ -42688,7 +42699,7 @@ const Hbe = "_chatbot__auth_state_container_1hs4h_1", Gbe = "_chatbot__error_sta
42688
42699
  }
42689
42700
  ) })
42690
42701
  }
42691
- ) : /* @__PURE__ */ k(Uk, { theme: o, children: /* @__PURE__ */ Y(jM, { fullScreen: c, className: R, style: T, children: [
42702
+ ) : /* @__PURE__ */ k(Uk, { theme: o, children: /* @__PURE__ */ Y(jM, { fullScreen: c, className: F, style: T, children: [
42692
42703
  /* @__PURE__ */ k(
42693
42704
  qk,
42694
42705
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgard-js/react",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,7 +42,7 @@
42
42
  "vite-plugin-svgr": "^4.3.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "@asgard-js/core": "^0.2.13",
45
+ "@asgard-js/core": "^0.2.15",
46
46
  "react": "^18.0.0 || ^19.0.0",
47
47
  "react-dom": "^18.0.0 || ^19.0.0"
48
48
  }