@sciol/xyzen 1.9.82-beta.c98614c → 1.9.82-beta.e714f31

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/xyzen.es.js CHANGED
@@ -4057,7 +4057,7 @@ class ET {
4057
4057
  return sn.delete("/xyzen/api/v1/auth/account");
4058
4058
  }
4059
4059
  }
4060
- const Gi = new ET(), bXn = "access_token";
4060
+ const ji = new ET(), bXn = "access_token";
4061
4061
  function yXn(t, e) {
4062
4062
  const n = e ?? (typeof document < "u" ? document.cookie : "");
4063
4063
  if (!n) return null;
@@ -4148,23 +4148,23 @@ function P4(t, e, n, r, i) {
4148
4148
  return t === "bohrium" ? `${e.issuer.replace(/\/$/, "")}/oauth/authorize?client_id=${l}&response_type=token&redirect_uri=${o}` : null;
4149
4149
  }
4150
4150
  async function z4e(t, e, n) {
4151
- const r = n === "email" ? await Gi.loginWithCode(t, e) : await Gi.loginWithPhoneCode(t, e);
4151
+ const r = n === "email" ? await ji.loginWithCode(t, e) : await ji.loginWithPhoneCode(t, e);
4152
4152
  await BE(r.access_token, r.user_info, r.refresh_token);
4153
4153
  }
4154
4154
  async function M6t(t, e) {
4155
- const n = await Gi.loginWithPassword(t, e);
4155
+ const n = await ji.loginWithPassword(t, e);
4156
4156
  await BE(n.access_token, n.user_info, n.refresh_token);
4157
4157
  }
4158
4158
  async function P6t(t, e) {
4159
- const n = await Gi.loginWithPhonePassword(t, e);
4159
+ const n = await ji.loginWithPhonePassword(t, e);
4160
4160
  await BE(n.access_token, n.user_info, n.refresh_token);
4161
4161
  }
4162
4162
  async function U4e(t, e, n, r, i = "email", o) {
4163
- const l = i === "email" ? await Gi.signup(t, e, n, r) : await Gi.signupWithPhone(o, e, n, r);
4163
+ const l = i === "email" ? await ji.signup(t, e, n, r) : await ji.signupWithPhone(o, e, n, r);
4164
4164
  await BE(l.access_token, l.user_info, l.refresh_token);
4165
4165
  }
4166
4166
  async function O6t(t, e, n) {
4167
- const r = await Gi.resetPassword(t, e, n);
4167
+ const r = await ji.resetPassword(t, e, n);
4168
4168
  await BE(r.access_token, r.user_info, r.refresh_token);
4169
4169
  }
4170
4170
  const F6t = [];
@@ -4179,22 +4179,28 @@ const q4e = (t) => ({
4179
4179
  const { setStatus: e, setUser: n, setToken: r } = nh.getState();
4180
4180
  e("loading");
4181
4181
  try {
4182
- const i = Gi.getToken();
4182
+ let i = ji.getToken();
4183
4183
  if (!i) {
4184
- if (!(await Gi.getAuthStatus()).is_configured) {
4185
- e("failed");
4184
+ if (ji.getRefreshToken()) {
4185
+ const u = await ji.refreshAccessToken();
4186
+ u && (i = u.access_token);
4187
+ }
4188
+ if (!i) {
4189
+ if (!(await ji.getAuthStatus()).is_configured) {
4190
+ e("failed");
4191
+ return;
4192
+ }
4193
+ n(null), r(null), e("failed");
4186
4194
  return;
4187
4195
  }
4188
- n(null), r(null), e("failed");
4189
- return;
4190
4196
  }
4191
- let o = await Gi.validateToken(i);
4192
- if (!o.success && Gi.getRefreshToken()) {
4193
- const u = await Gi.refreshAccessToken();
4194
- u && (o = await Gi.validateToken(u.access_token));
4197
+ let o = await ji.validateToken(i);
4198
+ if (!o.success && ji.getRefreshToken()) {
4199
+ const u = await ji.refreshAccessToken();
4200
+ u && (o = await ji.validateToken(u.access_token));
4195
4201
  }
4196
4202
  if (!o.success || !o.user_info) {
4197
- Gi.removeToken(), Gi.removeRefreshToken(), n(null), r(null), e("failed");
4203
+ ji.removeToken(), ji.removeRefreshToken(), n(null), r(null), e("failed");
4198
4204
  return;
4199
4205
  }
4200
4206
  const l = q4e(o.user_info);
@@ -4203,11 +4209,11 @@ const q4e = (t) => ({
4203
4209
  mapped: l
4204
4210
  }), n(l), r(i), e("succeeded");
4205
4211
  } catch (i) {
4206
- if (console.error("Auth check failed:", i), Gi.getRefreshToken())
4212
+ if (console.error("Auth check failed:", i), ji.getRefreshToken())
4207
4213
  try {
4208
- const o = await Gi.refreshAccessToken();
4214
+ const o = await ji.refreshAccessToken();
4209
4215
  if (o) {
4210
- const l = await Gi.validateToken(o.access_token);
4216
+ const l = await ji.validateToken(o.access_token);
4211
4217
  if (l.success && l.user_info) {
4212
4218
  const u = q4e(l.user_info);
4213
4219
  n(u), r(o.access_token), e("succeeded");
@@ -4216,13 +4222,13 @@ const q4e = (t) => ({
4216
4222
  }
4217
4223
  } catch {
4218
4224
  }
4219
- n(null), r(null), e("failed"), Gi.removeToken(), Gi.removeRefreshToken();
4225
+ n(null), r(null), e("failed"), ji.removeToken(), ji.removeRefreshToken();
4220
4226
  }
4221
4227
  }, BE = async (t, e, n) => {
4222
4228
  const { setStatus: r, setUser: i, setToken: o } = nh.getState();
4223
4229
  r("loading");
4224
4230
  try {
4225
- if (Gi.setToken(t), n && Gi.setRefreshToken(n), e) {
4231
+ if (ji.setToken(t), n && ji.setRefreshToken(n), e) {
4226
4232
  const l = q4e(e);
4227
4233
  i(l), o(t), r("succeeded");
4228
4234
  } else
@@ -4237,7 +4243,7 @@ const q4e = (t) => ({
4237
4243
  i();
4238
4244
  } catch {
4239
4245
  }
4240
- }), Gi.logout(), r(null), e(null), n(null), t("failed");
4246
+ }), ji.logout(), r(null), e(null), n(null), t("failed");
4241
4247
  }, wXn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4242
4248
  __proto__: null,
4243
4249
  ALLOWED_DOMAINS: N6t,
@@ -4268,7 +4274,7 @@ const xXn = async () => {
4268
4274
  const n = t.get("state");
4269
4275
  window.history.replaceState({}, document.title, window.location.pathname);
4270
4276
  try {
4271
- const r = await Gi.loginWithCasdoor(
4277
+ const r = await ji.loginWithCasdoor(
4272
4278
  e,
4273
4279
  n || void 0
4274
4280
  );
@@ -4331,7 +4337,7 @@ const EXn = async () => {
4331
4337
  const t = new URLSearchParams(window.location.search), e = t.get("code"), n = t.get("state");
4332
4338
  if (window.history.replaceState({}, document.title, window.location.pathname), e)
4333
4339
  try {
4334
- await Gi.loginWithCasdoor(e, n || void 0);
4340
+ await ji.loginWithCasdoor(e, n || void 0);
4335
4341
  } catch (r) {
4336
4342
  console.error("[Auth] Failed to complete relink:", r);
4337
4343
  }
@@ -4356,7 +4362,7 @@ const EXn = async () => {
4356
4362
  return console.error("[Auth] State mismatch during OAuth callback"), window.history.replaceState({}, document.title, window.location.pathname), null;
4357
4363
  window.history.replaceState({}, document.title, window.location.pathname), sessionStorage.removeItem("auth_state");
4358
4364
  try {
4359
- const i = await Gi.loginWithCasdoor(
4365
+ const i = await ji.loginWithCasdoor(
4360
4366
  e,
4361
4367
  n || void 0
4362
4368
  );
@@ -4387,8 +4393,8 @@ const EXn = async () => {
4387
4393
  return;
4388
4394
  }
4389
4395
  }
4390
- const t = Gi.getToken() ?? vXn("appAccessKey");
4391
- t && Gi.setToken(t), await $Ae();
4396
+ const t = ji.getToken() ?? vXn("appAccessKey");
4397
+ t && ji.setToken(t), await $Ae();
4392
4398
  }, hlt = (t) => Symbol.iterator in t, flt = (t) => (
4393
4399
  // HACK: avoid checking entries type
4394
4400
  "entries" in t
@@ -6713,7 +6719,7 @@ class NJn {
6713
6719
  // Internal
6714
6720
  // -------------------------------------------------------------------------
6715
6721
  async _startStream(e) {
6716
- const { topicId: n, controller: r, callbacks: i } = e, o = Gi.getToken();
6722
+ const { topicId: n, controller: r, callbacks: i } = e, o = ji.getToken();
6717
6723
  if (!o) {
6718
6724
  i.onStatusChange({
6719
6725
  connected: !1,
@@ -6734,7 +6740,7 @@ class NJn {
6734
6740
  });
6735
6741
  if (!p.ok) {
6736
6742
  if (p.status === 401) {
6737
- Gi.removeToken(), i.onStatusChange({
6743
+ ji.removeToken(), i.onStatusChange({
6738
6744
  connected: !1,
6739
6745
  error: "Authentication failed"
6740
6746
  }), AXn();
@@ -8439,7 +8445,7 @@ class her {
8439
8445
  }), i.addEventListener("abort", () => {
8440
8446
  d(new Error("Upload cancelled"));
8441
8447
  }), i.open("POST", `${o}/xyzen/api/v1/files/upload`);
8442
- const p = Gi.getToken();
8448
+ const p = ji.getToken();
8443
8449
  p && i.setRequestHeader("Authorization", `Bearer ${p}`), i.send(r);
8444
8450
  }),
8445
8451
  abort: () => i.abort()
@@ -9965,7 +9971,7 @@ class Ner {
9965
9971
  intentionalClose = !1;
9966
9972
  connect() {
9967
9973
  if (this.ws?.readyState === WebSocket.OPEN) return;
9968
- const e = Gi.getToken();
9974
+ const e = ji.getToken();
9969
9975
  if (!e) return;
9970
9976
  const n = yd().env.backendUrl;
9971
9977
  if (!n) return;
@@ -10526,8 +10532,8 @@ async function zer(t, e) {
10526
10532
  rJn();
10527
10533
  gXn(uJn);
10528
10534
  sn.configure({
10529
- getToken: () => Gi.getToken(),
10530
- onRefreshToken: async () => (await Gi.refreshAccessToken())?.access_token ?? null,
10535
+ getToken: () => ji.getToken(),
10536
+ onRefreshToken: async () => (await ji.refreshAccessToken())?.access_token ?? null,
10531
10537
  onUnauthorized: () => {
10532
10538
  Promise.resolve().then(() => wXn).then((t) => t.logout()).catch(() => {
10533
10539
  });
@@ -10621,10 +10627,10 @@ function Ger(t) {
10621
10627
  }
10622
10628
  async function iMe() {
10623
10629
  try {
10624
- const t = await Gi.getAuthStatus();
10630
+ const t = await ji.getAuthStatus();
10625
10631
  if (!t.is_configured || !t.provider)
10626
10632
  throw new Error("Authentication is not configured");
10627
- const e = await Gi.getAuthConfig(), n = t.provider, r = `${window.location.origin}${window.location.pathname}`;
10633
+ const e = await ji.getAuthConfig(), n = t.provider, r = `${window.location.origin}${window.location.pathname}`;
10628
10634
  let i = null;
10629
10635
  if (n === "casdoor") {
10630
10636
  const o = Math.random().toString(36).substring(7);
@@ -10652,7 +10658,7 @@ function Her(t) {
10652
10658
  const B = `${window.location.origin}${window.location.pathname}`;
10653
10659
  let M = null;
10654
10660
  try {
10655
- const P = await Gi.getOAuthUrl(
10661
+ const P = await ji.getOAuthUrl(
10656
10662
  L,
10657
10663
  B,
10658
10664
  N
@@ -10662,7 +10668,7 @@ function Her(t) {
10662
10668
  }
10663
10669
  if (!M)
10664
10670
  try {
10665
- const P = await Gi.getAuthConfig();
10671
+ const P = await ji.getAuthConfig();
10666
10672
  M = P4(
10667
10673
  "casdoor",
10668
10674
  P,
@@ -10693,8 +10699,8 @@ function Her(t) {
10693
10699
  const f = We(async () => {
10694
10700
  try {
10695
10701
  const [L, N] = await Promise.all([
10696
- Gi.getAuthStatus(),
10697
- Gi.getAuthConfig(),
10702
+ ji.getAuthStatus(),
10703
+ ji.getAuthConfig(),
10698
10704
  j6t()
10699
10705
  ]), B = N?.provider ?? L?.provider;
10700
10706
  if (B === "casdoor") {
@@ -10720,7 +10726,7 @@ function Her(t) {
10720
10726
  }, []), y = We(() => {
10721
10727
  o(!1);
10722
10728
  }, []), v = We(
10723
- async (L, N) => Gi.sendVerificationCode(L, N),
10729
+ async (L, N) => ji.sendVerificationCode(L, N),
10724
10730
  []
10725
10731
  ), _ = We(async (L, N) => {
10726
10732
  await z4e(L, N, "email");
@@ -10735,17 +10741,17 @@ function Her(t) {
10735
10741
  },
10736
10742
  []
10737
10743
  ), k = We(async (L) => {
10738
- await Gi.sendResetCode(L);
10744
+ await ji.sendResetCode(L);
10739
10745
  }, []), C = We(
10740
10746
  async (L, N, B) => {
10741
10747
  await O6t(L, N, B);
10742
10748
  },
10743
10749
  []
10744
10750
  ), E = We(
10745
- async (L) => Gi.sendPhoneVerificationCode(L),
10751
+ async (L) => ji.sendPhoneVerificationCode(L),
10746
10752
  []
10747
10753
  ), S = We(
10748
- async (L) => Gi.checkPhoneExists(L),
10754
+ async (L) => ji.checkPhoneExists(L),
10749
10755
  []
10750
10756
  ), I = We(
10751
10757
  async (L, N) => {
@@ -36139,10 +36145,10 @@ function Ikr() {
36139
36145
  let d = !0;
36140
36146
  return (async () => {
36141
36147
  try {
36142
- const p = await Gi.getAuthStatus();
36148
+ const p = await ji.getAuthStatus();
36143
36149
  if (!d) return;
36144
36150
  if (e(p), p?.is_configured) {
36145
- const m = await Gi.getAuthConfig();
36151
+ const m = await ji.getAuthConfig();
36146
36152
  if (!d) return;
36147
36153
  r(m);
36148
36154
  }
@@ -38581,7 +38587,7 @@ function hu({
38581
38587
  }
38582
38588
  );
38583
38589
  }
38584
- function ji({
38590
+ function $i({
38585
38591
  label: t,
38586
38592
  labelExtra: e,
38587
38593
  required: n,
@@ -42024,7 +42030,7 @@ function _0e({
42024
42030
  ] }),
42025
42031
  !S && /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
42026
42032
  /* @__PURE__ */ A.jsx(
42027
- ji,
42033
+ $i,
42028
42034
  {
42029
42035
  label: o("common.realPerson.realName"),
42030
42036
  required: !0,
@@ -42043,7 +42049,7 @@ function _0e({
42043
42049
  ),
42044
42050
  D && /* @__PURE__ */ A.jsx("p", { className: "mt-[-12px] text-xs text-red-600 dark:text-red-400", children: D }),
42045
42051
  /* @__PURE__ */ A.jsx(
42046
- ji,
42052
+ $i,
42047
42053
  {
42048
42054
  label: o("common.realPerson.certNo"),
42049
42055
  required: !0,
@@ -42256,7 +42262,7 @@ function pWt({
42256
42262
  /* @__PURE__ */ A.jsx("p", { className: "text-[13px] text-neutral-600 dark:text-neutral-400", children: d("marketplace.fork.editableDescription") })
42257
42263
  ] }),
42258
42264
  /* @__PURE__ */ A.jsx(
42259
- ji,
42265
+ $i,
42260
42266
  {
42261
42267
  label: /* @__PURE__ */ A.jsx(Zue, { i18nKey: "marketplace.fork.agentNameRequired", children: "Agent Name" }),
42262
42268
  required: !0,
@@ -103276,7 +103282,7 @@ function jJr({ isOpen: t, onClose: e }) {
103276
103282
  /* @__PURE__ */ A.jsx("div", { className: "shrink-0 border-b border-neutral-200/60 px-5 pb-3 pt-5 dark:border-neutral-800/60", children: /* @__PURE__ */ A.jsx("h2", { className: "text-lg font-semibold text-neutral-900 dark:text-neutral-100", children: n("app.betaModal.title") }) }),
103277
103283
  /* @__PURE__ */ A.jsx("div", { className: "flex-1 overflow-y-auto custom-scrollbar", children: /* @__PURE__ */ A.jsx("div", { className: "px-5 py-5", children: o === "submitted" ? /* @__PURE__ */ A.jsx($Jr, {}) : /* @__PURE__ */ A.jsxs("form", { onSubmit: f, className: "space-y-5", children: [
103278
103284
  /* @__PURE__ */ A.jsx(
103279
- ji,
103285
+ $i,
103280
103286
  {
103281
103287
  label: n("app.betaModal.survey.discoveryChannel"),
103282
103288
  required: !0,
@@ -103307,7 +103313,7 @@ function jJr({ isOpen: t, onClose: e }) {
103307
103313
  }
103308
103314
  ),
103309
103315
  /* @__PURE__ */ A.jsx(
103310
- ji,
103316
+ $i,
103311
103317
  {
103312
103318
  label: n("app.betaModal.survey.occupation"),
103313
103319
  required: !0,
@@ -103339,7 +103345,7 @@ function jJr({ isOpen: t, onClose: e }) {
103339
103345
  }
103340
103346
  ),
103341
103347
  /* @__PURE__ */ A.jsx(
103342
- ji,
103348
+ $i,
103343
103349
  {
103344
103350
  label: n("app.betaModal.survey.problemToSolve"),
103345
103351
  required: !0,
@@ -111332,7 +111338,7 @@ function wrn({
111332
111338
  }
111333
111339
  ),
111334
111340
  /* @__PURE__ */ A.jsx("div", { className: "border-t border-neutral-200 dark:border-neutral-700" }),
111335
- /* @__PURE__ */ A.jsx(ji, { label: i("agents.fields.name.required"), required: !0, children: /* @__PURE__ */ A.jsx(
111341
+ /* @__PURE__ */ A.jsx($i, { label: i("agents.fields.name.required"), required: !0, children: /* @__PURE__ */ A.jsx(
111336
111342
  ho,
111337
111343
  {
111338
111344
  name: "name",
@@ -111342,7 +111348,7 @@ function wrn({
111342
111348
  required: !0
111343
111349
  }
111344
111350
  ) }),
111345
- /* @__PURE__ */ A.jsx(ji, { label: i("agents.fields.description.label"), children: /* @__PURE__ */ A.jsx(
111351
+ /* @__PURE__ */ A.jsx($i, { label: i("agents.fields.description.label"), children: /* @__PURE__ */ A.jsx(
111346
111352
  ho,
111347
111353
  {
111348
111354
  name: "description",
@@ -111619,7 +111625,7 @@ function xrn({
111619
111625
  m("marketplace.publish.info.noteContent")
111620
111626
  ] })
111621
111627
  ] }), te = /* @__PURE__ */ A.jsx(
111622
- ji,
111628
+ $i,
111623
111629
  {
111624
111630
  label: m("marketplace.publish.commitMessage.label"),
111625
111631
  required: !0,
@@ -111640,7 +111646,7 @@ function xrn({
111640
111646
  )
111641
111647
  }
111642
111648
  ), ce = /* @__PURE__ */ A.jsx(
111643
- ji,
111649
+ $i,
111644
111650
  {
111645
111651
  label: m("marketplace.publish.readme.label"),
111646
111652
  hint: m("marketplace.publish.readme.hint"),
@@ -111657,7 +111663,7 @@ function xrn({
111657
111663
  )
111658
111664
  }
111659
111665
  ), oe = /* @__PURE__ */ A.jsx(
111660
- ji,
111666
+ $i,
111661
111667
  {
111662
111668
  label: m("marketplace.publish.tags.label"),
111663
111669
  hint: m("marketplace.publish.tags.hint"),
@@ -111696,7 +111702,7 @@ function xrn({
111696
111702
  ] })
111697
111703
  }
111698
111704
  ), le = /* @__PURE__ */ A.jsx(
111699
- ji,
111705
+ $i,
111700
111706
  {
111701
111707
  label: m("marketplace.publish.knowledgeBase.label"),
111702
111708
  hint: m("marketplace.publish.knowledgeBase.hint"),
@@ -111721,7 +111727,7 @@ function xrn({
111721
111727
  )
111722
111728
  }
111723
111729
  ), me = /* @__PURE__ */ A.jsx(
111724
- ji,
111730
+ $i,
111725
111731
  {
111726
111732
  label: m("marketplace.publish.skills.label"),
111727
111733
  hint: m("marketplace.publish.skills.hint"),
@@ -111765,7 +111771,7 @@ function xrn({
111765
111771
  ] })
111766
111772
  }
111767
111773
  ), ve = /* @__PURE__ */ A.jsx(
111768
- ji,
111774
+ $i,
111769
111775
  {
111770
111776
  label: m("marketplace.publish.mcpServers.label"),
111771
111777
  hint: m("marketplace.publish.mcpServers.hint"),
@@ -111782,7 +111788,7 @@ function xrn({
111782
111788
  )) })
111783
111789
  }
111784
111790
  ), De = j ? /* @__PURE__ */ A.jsx(
111785
- ji,
111791
+ $i,
111786
111792
  {
111787
111793
  label: m("agents.payment.publishSummaryTitle"),
111788
111794
  hint: m("agents.payment.publishSummaryHint"),
@@ -111825,7 +111831,7 @@ function xrn({
111825
111831
  }
111826
111832
  )
111827
111833
  ] }), Me = /* @__PURE__ */ A.jsx(
111828
- ji,
111834
+ $i,
111829
111835
  {
111830
111836
  label: m("marketplace.publish.forkMode.label"),
111831
111837
  hint: m("marketplace.publish.forkMode.help"),
@@ -136863,7 +136869,7 @@ function mda({
136863
136869
  );
136864
136870
  }
136865
136871
  const gda = (t) => {
136866
- const e = yd().env.backendUrl, n = new URL(e), r = n.protocol === "https:" ? "wss:" : "ws:", i = Gi.getToken();
136872
+ const e = yd().env.backendUrl, n = new URL(e), r = n.protocol === "https:" ? "wss:" : "ws:", i = ji.getToken();
136867
136873
  if (!i)
136868
136874
  throw new Error("Authentication required");
136869
136875
  return `${r}//${n.host}/xyzen/ws/v1/voice/${t}?token=${encodeURIComponent(i)}`;
@@ -147724,7 +147730,7 @@ class mga {
147724
147730
  "abort",
147725
147731
  () => m(new Error("Upload cancelled"))
147726
147732
  ), l.open("POST", `${u}${this.base(e)}/files/upload`);
147727
- const g = Gi.getToken();
147733
+ const g = ji.getToken();
147728
147734
  g && l.setRequestHeader("Authorization", `Bearer ${g}`), l.send(o);
147729
147735
  }),
147730
147736
  abort: () => l.abort()
@@ -149054,14 +149060,14 @@ function yga() {
149054
149060
  ] }),
149055
149061
  /* @__PURE__ */ A.jsxs("form", { onSubmit: E, className: "space-y-5", children: [
149056
149062
  /* @__PURE__ */ A.jsxs("div", { className: "rounded-lg bg-gradient-to-br from-indigo-50/50 to-purple-50/50 dark:from-indigo-950/20 dark:to-purple-950/20 p-4 space-y-5", children: [
149057
- /* @__PURE__ */ A.jsx(ji, { label: t("app.betaModal.internal.companyName"), required: !0, children: /* @__PURE__ */ A.jsx(
149063
+ /* @__PURE__ */ A.jsx($i, { label: t("app.betaModal.internal.companyName"), required: !0, children: /* @__PURE__ */ A.jsx(
149058
149064
  ho,
149059
149065
  {
149060
149066
  value: l,
149061
149067
  onChange: (D) => u(D.target.value)
149062
149068
  }
149063
149069
  ) }),
149064
- /* @__PURE__ */ A.jsx(ji, { label: t("app.betaModal.internal.companyEmail"), required: !0, children: /* @__PURE__ */ A.jsx(
149070
+ /* @__PURE__ */ A.jsx($i, { label: t("app.betaModal.internal.companyEmail"), required: !0, children: /* @__PURE__ */ A.jsx(
149065
149071
  ho,
149066
149072
  {
149067
149073
  type: "email",
@@ -149069,14 +149075,14 @@ function yga() {
149069
149075
  onChange: (D) => p(D.target.value)
149070
149076
  }
149071
149077
  ) }),
149072
- /* @__PURE__ */ A.jsx(ji, { label: t("app.betaModal.internal.realName"), required: !0, children: /* @__PURE__ */ A.jsx(
149078
+ /* @__PURE__ */ A.jsx($i, { label: t("app.betaModal.internal.realName"), required: !0, children: /* @__PURE__ */ A.jsx(
149073
149079
  ho,
149074
149080
  {
149075
149081
  value: m,
149076
149082
  onChange: (D) => g(D.target.value)
149077
149083
  }
149078
149084
  ) }),
149079
- /* @__PURE__ */ A.jsx(ji, { label: t("app.betaModal.internal.reason"), required: !0, children: /* @__PURE__ */ A.jsx(
149085
+ /* @__PURE__ */ A.jsx($i, { label: t("app.betaModal.internal.reason"), required: !0, children: /* @__PURE__ */ A.jsx(
149080
149086
  of,
149081
149087
  {
149082
149088
  value: h,
@@ -149086,7 +149092,7 @@ function yga() {
149086
149092
  }
149087
149093
  ) }),
149088
149094
  /* @__PURE__ */ A.jsx(
149089
- ji,
149095
+ $i,
149090
149096
  {
149091
149097
  label: t("app.betaModal.internal.applicationItems"),
149092
149098
  required: !0,
@@ -149207,7 +149213,7 @@ const gz = ({ href: t, label: e, external: n = !0 }) => /* @__PURE__ */ A.jsxs(
149207
149213
  const { t } = Dn(), e = Yn((ee) => ee.user), n = Yn((ee) => ee.setUser), r = hHe(), [i, o] = he([]), [l, u] = he(!0), [d, p] = he(!1), [m, g] = he(null), [h, f] = he(!1), [b, y] = he(null), [v, _] = he(!1), w = Bt(null), [x, k] = he(!1), [C, E] = he(e?.username || ""), [S, I] = he(!1), [T, D] = he(null), [R, L] = he(!1), N = Bt(null), [B, M] = he(!1), P = We(async (ee = !1) => {
149208
149214
  try {
149209
149215
  o((re) => (ee && re.length > 0 ? p(!0) : u(!0), re)), g(null);
149210
- const K = await Gi.getLinkedAccounts(ee);
149216
+ const K = await ji.getLinkedAccounts(ee);
149211
149217
  o(K.accounts);
149212
149218
  } catch (K) {
149213
149219
  g(K instanceof Error ? K.message : "Failed to fetch accounts");
@@ -149225,7 +149231,7 @@ const gz = ({ href: t, label: e, external: n = !0 }) => /* @__PURE__ */ A.jsxs(
149225
149231
  github: "GitHub",
149226
149232
  google: "Google",
149227
149233
  wechat: "WeChat"
149228
- }[ee] || ee, ie = window.location.origin + "/auth/relink-callback", Z = await Gi.getLinkUrl(re, ie), H = 500, U = 650, W = window.screenX + (window.outerWidth - H) / 2, V = window.screenY + (window.outerHeight - U) / 2, te = window.open(
149234
+ }[ee] || ee, ie = window.location.origin + "/auth/relink-callback", Z = await ji.getLinkUrl(re, ie), H = 500, U = 650, W = window.screenX + (window.outerWidth - H) / 2, V = window.screenY + (window.outerHeight - U) / 2, te = window.open(
149229
149235
  Z.url,
149230
149236
  "relink_popup",
149231
149237
  `width=${H},height=${U},left=${W},top=${V},scrollbars=yes,resizable=yes`
@@ -149265,7 +149271,7 @@ const gz = ({ href: t, label: e, external: n = !0 }) => /* @__PURE__ */ A.jsxs(
149265
149271
  }
149266
149272
  try {
149267
149273
  f(!0);
149268
- const re = await Gi.uploadAvatar(K);
149274
+ const re = await ji.uploadAvatar(K);
149269
149275
  re.success && re.avatar_url ? (e && n({
149270
149276
  ...e,
149271
149277
  avatar: re.avatar_url
@@ -149313,7 +149319,7 @@ const gz = ({ href: t, label: e, external: n = !0 }) => /* @__PURE__ */ A.jsxs(
149313
149319
  }
149314
149320
  try {
149315
149321
  I(!0), D(null);
149316
- const K = await Gi.updateDisplayName(ee);
149322
+ const K = await ji.updateDisplayName(ee);
149317
149323
  K.success && K.display_name ? (e && n({
149318
149324
  ...e,
149319
149325
  username: K.display_name
@@ -149607,7 +149613,7 @@ const gz = ({ href: t, label: e, external: n = !0 }) => /* @__PURE__ */ A.jsxs(
149607
149613
  if (i === t)
149608
149614
  try {
149609
149615
  u(!0), p(null);
149610
- const g = await Gi.deleteAccount();
149616
+ const g = await ji.deleteAccount();
149611
149617
  g.success ? setTimeout(() => Mj(), 1500) : p(
149612
149618
  g.message || e("settings.account.deleteAccount.failed")
149613
149619
  );
@@ -151353,7 +151359,7 @@ function Mga() {
151353
151359
  ] }),
151354
151360
  /* @__PURE__ */ A.jsxs("div", { className: "space-y-4 rounded-lg bg-neutral-100/60 px-4 py-4 dark:bg-white/[0.04]", children: [
151355
151361
  /* @__PURE__ */ A.jsx(
151356
- ji,
151362
+ $i,
151357
151363
  {
151358
151364
  label: t("settings.payment.fields.appId"),
151359
151365
  required: !0,
@@ -151370,7 +151376,7 @@ function Mga() {
151370
151376
  }
151371
151377
  ),
151372
151378
  /* @__PURE__ */ A.jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
151373
- /* @__PURE__ */ A.jsx(ji, { label: t("settings.payment.fields.gateway"), children: /* @__PURE__ */ A.jsx(
151379
+ /* @__PURE__ */ A.jsx($i, { label: t("settings.payment.fields.gateway"), children: /* @__PURE__ */ A.jsx(
151374
151380
  ho,
151375
151381
  {
151376
151382
  value: o.gateway,
@@ -151378,7 +151384,7 @@ function Mga() {
151378
151384
  placeholder: KOe
151379
151385
  }
151380
151386
  ) }),
151381
- /* @__PURE__ */ A.jsx(ji, { label: t("settings.payment.fields.sellerId"), children: /* @__PURE__ */ A.jsx(
151387
+ /* @__PURE__ */ A.jsx($i, { label: t("settings.payment.fields.sellerId"), children: /* @__PURE__ */ A.jsx(
151382
151388
  ho,
151383
151389
  {
151384
151390
  value: o.seller_id ?? "",
@@ -151387,7 +151393,7 @@ function Mga() {
151387
151393
  }
151388
151394
  ) })
151389
151395
  ] }),
151390
- /* @__PURE__ */ A.jsx(ji, { label: t("settings.payment.fields.signType"), children: /* @__PURE__ */ A.jsx(
151396
+ /* @__PURE__ */ A.jsx($i, { label: t("settings.payment.fields.signType"), children: /* @__PURE__ */ A.jsx(
151391
151397
  ho,
151392
151398
  {
151393
151399
  value: o.sign_type,
@@ -151396,7 +151402,7 @@ function Mga() {
151396
151402
  }
151397
151403
  ) }),
151398
151404
  /* @__PURE__ */ A.jsx(
151399
- ji,
151405
+ $i,
151400
151406
  {
151401
151407
  label: t("settings.payment.fields.appPrivateKey"),
151402
151408
  required: !0,
@@ -151413,7 +151419,7 @@ function Mga() {
151413
151419
  }
151414
151420
  ),
151415
151421
  /* @__PURE__ */ A.jsx(
151416
- ji,
151422
+ $i,
151417
151423
  {
151418
151424
  label: t("settings.payment.fields.alipayPublicKey"),
151419
151425
  required: !0,
@@ -152615,7 +152621,7 @@ function bCe(t) {
152615
152621
  nM.delete(t);
152616
152622
  }
152617
152623
  function K0t(t) {
152618
- const e = yd().env.backendUrl, n = Gi.getToken();
152624
+ const e = yd().env.backendUrl, n = ji.getToken();
152619
152625
  if (!e || !n)
152620
152626
  return null;
152621
152627
  const r = new Zga(t);
@@ -165677,7 +165683,7 @@ function qye(t) {
165677
165683
  var e = t.length;
165678
165684
  return e === 2 ? [t[0], t[1], t[0], t[1]] : e === 3 ? [t[0], t[1], t[2], t[1]] : t;
165679
165685
  }
165680
- function zi(t, e) {
165686
+ function Ui(t, e) {
165681
165687
  if (!t)
165682
165688
  throw new Error(e);
165683
165689
  }
@@ -165778,7 +165784,7 @@ const eya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
165778
165784
  EPSILON: J0a,
165779
165785
  HashMap: Jon,
165780
165786
  RADIAN_TO_DEGREE: eW,
165781
- assert: zi,
165787
+ assert: Ui,
165782
165788
  bind: Ys,
165783
165789
  clone: fo,
165784
165790
  concatArray: esn,
@@ -169562,7 +169568,7 @@ function Xva(t, e, n, r) {
169562
169568
  var l = aW(i.id), u = n.get(l);
169563
169569
  if (u != null) {
169564
169570
  var d = t[u];
169565
- zi(!d.newOption, 'Duplicated option on id "' + l + '".'), d.newOption = i, d.existing = e[u], r[o] = null;
169571
+ Ui(!d.newOption, 'Duplicated option on id "' + l + '".'), d.newOption = i, d.existing = e[u], r[o] = null;
169566
169572
  }
169567
169573
  }
169568
169574
  });
@@ -169615,7 +169621,7 @@ function n_a(t) {
169615
169621
  r && e.set(r.id, n);
169616
169622
  }), _n(t, function(n) {
169617
169623
  var r = n.newOption;
169618
- zi(!r || r.id == null || !e.get(r.id) || e.get(r.id) === n, "id duplicates: " + (r && r.id)), r && r.id != null && e.set(r.id, n), !n.keyInfo && (n.keyInfo = {});
169624
+ Ui(!r || r.id == null || !e.get(r.id) || e.get(r.id) === n, "id duplicates: " + (r && r.id)), r && r.id != null && e.set(r.id, n), !n.keyInfo && (n.keyInfo = {});
169619
169625
  }), _n(t, function(n, r) {
169620
169626
  var i = n.existing, o = n.newOption, l = n.keyInfo;
169621
169627
  if (di(o)) {
@@ -169772,7 +169778,7 @@ function oE(t) {
169772
169778
  return e;
169773
169779
  }
169774
169780
  function c_a(t) {
169775
- zi(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t), 'componentType "' + t + '" illegal');
169781
+ Ui(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t), 'componentType "' + t + '" illegal');
169776
169782
  }
169777
169783
  function u_a(t) {
169778
169784
  return !!(t && t[Ksn]);
@@ -169804,7 +169810,7 @@ function Zsn(t, e) {
169804
169810
  var p_a = Math.round(Math.random() * 10);
169805
169811
  function m_a(t) {
169806
169812
  var e = ["__\0is_clz", p_a++].join("_");
169807
- t.prototype[e] = !0, process.env.NODE_ENV !== "production" && zi(!t.isInstance, 'The method "is" can not be defined.'), t.isInstance = function(n) {
169813
+ t.prototype[e] = !0, process.env.NODE_ENV !== "production" && Ui(!t.isInstance, 'The method "is" can not be defined.'), t.isInstance = function(n) {
169808
169814
  return !!(n && n[e]);
169809
169815
  };
169810
169816
  }
@@ -172605,7 +172611,7 @@ function lxa(t) {
172605
172611
  return t <= 1e-6 && t >= -1e-6;
172606
172612
  }
172607
172613
  function Rme(t, e, n, r, i) {
172608
- return e == null || (Uc(e) ? Mc[0] = Mc[1] = Mc[2] = Mc[3] = e : (process.env.NODE_ENV !== "production" && zi(e.length === 4), Mc[0] = e[0], Mc[1] = e[1], Mc[2] = e[2], Mc[3] = e[3]), r && (Mc[0] = nw(0, Mc[0]), Mc[1] = nw(0, Mc[1]), Mc[2] = nw(0, Mc[2]), Mc[3] = nw(0, Mc[3])), n && (Mc[0] = -Mc[0], Mc[1] = -Mc[1], Mc[2] = -Mc[2], Mc[3] = -Mc[3]), C_t(t, Mc, "x", "width", 3, 1, i && i[0] || 0), C_t(t, Mc, "y", "height", 0, 2, i && i[1] || 0)), t;
172614
+ return e == null || (Uc(e) ? Mc[0] = Mc[1] = Mc[2] = Mc[3] = e : (process.env.NODE_ENV !== "production" && Ui(e.length === 4), Mc[0] = e[0], Mc[1] = e[1], Mc[2] = e[2], Mc[3] = e[3]), r && (Mc[0] = nw(0, Mc[0]), Mc[1] = nw(0, Mc[1]), Mc[2] = nw(0, Mc[2]), Mc[3] = nw(0, Mc[3])), n && (Mc[0] = -Mc[0], Mc[1] = -Mc[1], Mc[2] = -Mc[2], Mc[3] = -Mc[3]), C_t(t, Mc, "x", "width", 3, 1, i && i[0] || 0), C_t(t, Mc, "y", "height", 0, 2, i && i[1] || 0)), t;
172609
172615
  }
172610
172616
  var Mc = [0, 0, 0, 0];
172611
172617
  function C_t(t, e, n, r, i, o, l) {
@@ -173670,7 +173676,7 @@ var Use = {}, xSe = {}, EJ = (
173670
173676
  return _n(i, function(u, d) {
173671
173677
  var p = u.create(e, n);
173672
173678
  l = l.concat(p || []), process.env.NODE_ENV !== "production" && o && _n(p, function(m) {
173673
- return zi(!m.update);
173679
+ return Ui(!m.update);
173674
173680
  });
173675
173681
  }), l;
173676
173682
  }
@@ -173704,7 +173710,7 @@ var x8e = {
173704
173710
  coord2: 2
173705
173711
  };
173706
173712
  function Gxa(t) {
173707
- process.env.NODE_ENV !== "production" && zi(!k8e.get(t.fullType)), k8e.set(t.fullType, {
173713
+ process.env.NODE_ENV !== "production" && Ui(!k8e.get(t.fullType)), k8e.set(t.fullType, {
173708
173714
  getCoord2: void 0
173709
173715
  }).getCoord2 = t.getCoord2;
173710
173716
  }
@@ -173738,12 +173744,12 @@ function Wxa(t, e) {
173738
173744
  }
173739
173745
  function Yxa(t) {
173740
173746
  var e = t.targetModel, n = t.coordSysType, r = t.coordSysProvider, i = t.isDefaultDataCoordSys, o = t.allowNotFound;
173741
- process.env.NODE_ENV !== "production" && zi(!!n);
173747
+ process.env.NODE_ENV !== "production" && Ui(!!n);
173742
173748
  var l = Wxa(e, !0), u = l.kind, d = l.coordSysType;
173743
173749
  if (i && u !== rS.dataCoordSys && (u = rS.dataCoordSys, d = n), u === rS.none || d !== n)
173744
173750
  return !1;
173745
173751
  var p = r(n, e);
173746
- return p ? (u === rS.dataCoordSys ? (process.env.NODE_ENV !== "production" && zi(e.mainType === "series"), e.coordinateSystem = p) : e.boxCoordinateSystem = p, !0) : (process.env.NODE_ENV !== "production" && (o || Rc(n + " cannot be found for" + (" " + e.type + " (index: " + e.componentIndex + ")."))), !1);
173752
+ return p ? (u === rS.dataCoordSys ? (process.env.NODE_ENV !== "production" && Ui(e.mainType === "series"), e.coordinateSystem = p) : e.boxCoordinateSystem = p, !0) : (process.env.NODE_ENV !== "production" && (o || Rc(n + " cannot be found for" + (" " + e.type + " (index: " + e.componentIndex + ")."))), !1);
173747
173753
  }
173748
173754
  var Vxa = function(t, e) {
173749
173755
  var n = e.getReferringComponents(t, nS).models[0];
@@ -174326,7 +174332,7 @@ function mka(t, e, n) {
174326
174332
  return n;
174327
174333
  if (process.env.NODE_ENV !== "production")
174328
174334
  for (var o = 0; o < i.length; o++)
174329
- zi($Q(i[o]));
174335
+ Ui($Q(i[o]));
174330
174336
  return n.concat(i);
174331
174337
  }
174332
174338
  var O_t = ud();
@@ -174437,7 +174443,7 @@ var rZe = (
174437
174443
  return e.prototype.init = function(n, r, i, o, l, u) {
174438
174444
  o = o || {}, this.option = null, this._theme = new su(o), this._locale = new su(l), this._optionManager = u;
174439
174445
  }, e.prototype.setOption = function(n, r, i) {
174440
- process.env.NODE_ENV !== "production" && (zi(n != null, "option is null/undefined"), zi(n[kSe] !== Q_t, "please use chart.getOption()"));
174446
+ process.env.NODE_ENV !== "production" && (Ui(n != null, "option is null/undefined"), Ui(n[kSe] !== Q_t, "please use chart.getOption()"));
174441
174447
  var o = z_t(r);
174442
174448
  this._optionManager.setOption(n, i, o), this._resetOption(null, o);
174443
174449
  }, e.prototype.resetOption = function(n, r) {
@@ -174703,7 +174709,7 @@ function $_t(t, e) {
174703
174709
  function z_t(t) {
174704
174710
  var e = fs();
174705
174711
  return t && _n(yA(t.replaceMerge), function(n) {
174706
- process.env.NODE_ENV !== "production" && zi(Al.hasClass(n), '"' + n + '" is not valid component main type in "replaceMerge"'), e.set(n, !0);
174712
+ process.env.NODE_ENV !== "production" && Ui(Al.hasClass(n), '"' + n + '" is not valid component main type in "replaceMerge"'), e.set(n, !0);
174707
174713
  }), {
174708
174714
  replaceMergeMainTypeMap: e
174709
174715
  };
@@ -175147,7 +175153,7 @@ function Qka(t, e, n, r, i) {
175147
175153
  else if (e === oy) {
175148
175154
  var d = bJ(t[0]);
175149
175155
  o = wa(d) && d.length || 1;
175150
- } else e === qS && process.env.NODE_ENV !== "production" && zi(!!i, "dimensions must be given if data is TypedArray.");
175156
+ } else e === qS && process.env.NODE_ENV !== "production" && Ui(!!i, "dimensions must be given if data is TypedArray.");
175151
175157
  return {
175152
175158
  startIndex: l,
175153
175159
  dimensionsDefine: Y_t(i),
@@ -175226,7 +175232,7 @@ var xR, kR, ER, CR, K_t, Z_t, ycn = (
175226
175232
  var e;
175227
175233
  Z_t = function(l, u, d) {
175228
175234
  var p = d.sourceFormat, m = d.seriesLayoutBy, g = d.startIndex, h = d.dimensionsDefine, f = K_t[jme(p, m)];
175229
- if (process.env.NODE_ENV !== "production" && zi(f, "Invalide sourceFormat: " + p), sa(l, f), p === qS)
175235
+ if (process.env.NODE_ENV !== "production" && Ui(f, "Invalide sourceFormat: " + p), sa(l, f), p === qS)
175230
175236
  l.getItem = n, l.count = i, l.fillStorage = r;
175231
175237
  else {
175232
175238
  var b = vcn(p, m);
@@ -175277,7 +175283,7 @@ var xR, kR, ER, CR, K_t, Z_t, ycn = (
175277
175283
  persistent: !1,
175278
175284
  pure: !0,
175279
175285
  appendData: function(l) {
175280
- process.env.NODE_ENV !== "production" && zi(sf(l), "Added data must be TypedArray if data in initialization is TypedArray"), this._data = l;
175286
+ process.env.NODE_ENV !== "production" && Ui(sf(l), "Added data must be TypedArray if data in initialization is TypedArray"), this._data = l;
175281
175287
  },
175282
175288
  // Clean self if data is already used.
175283
175289
  clean: function() {
@@ -175317,7 +175323,7 @@ var xR, kR, ER, CR, K_t, Z_t, ycn = (
175317
175323
  }, kR[oy] = X_t, kR);
175318
175324
  function vcn(t, e) {
175319
175325
  var n = zka[jme(t, e)];
175320
- return process.env.NODE_ENV !== "production" && zi(n, 'Do not support get item on "' + t + '", "' + e + '".'), n;
175326
+ return process.env.NODE_ENV !== "production" && Ui(n, 'Do not support get item on "' + t + '", "' + e + '".'), n;
175321
175327
  }
175322
175328
  var J_t = function(t, e, n) {
175323
175329
  return t.length;
@@ -175332,7 +175338,7 @@ var J_t = function(t, e, n) {
175332
175338
  }, ER[oy] = J_t, ER);
175333
175339
  function _cn(t, e) {
175334
175340
  var n = Uka[jme(t, e)];
175335
- return process.env.NODE_ENV !== "production" && zi(n, 'Do not support count on "' + t + '", "' + e + '".'), n;
175341
+ return process.env.NODE_ENV !== "production" && Ui(n, 'Do not support count on "' + t + '", "' + e + '".'), n;
175336
175342
  }
175337
175343
  var SSe = function(t, e, n) {
175338
175344
  return t[e];
@@ -175344,7 +175350,7 @@ var SSe = function(t, e, n) {
175344
175350
  }, CR[qS] = SSe, CR);
175345
175351
  function wcn(t) {
175346
175352
  var e = qka[t];
175347
- return process.env.NODE_ENV !== "production" && zi(e, 'Do not support get value on "' + t + '".'), e;
175353
+ return process.env.NODE_ENV !== "production" && Ui(e, 'Do not support get value on "' + t + '".'), e;
175348
175354
  }
175349
175355
  function jme(t, e) {
175350
175356
  return t === lf ? t + "_" + e : t;
@@ -175453,7 +175459,7 @@ var Wka = (
175453
175459
  var g;
175454
175460
  (this._dirty || o === "reset") && (this._dirty = !1, g = this._doReset(r)), this._modBy = d, this._modDataCount = p;
175455
175461
  var h = e && e.step;
175456
- if (n ? (process.env.NODE_ENV !== "production" && zi(n._outputDueEnd != null), this._dueEnd = n._outputDueEnd) : (process.env.NODE_ENV !== "production" && zi(!this._progress || this._count), this._dueEnd = this._count ? this._count(this.context) : 1 / 0), this._progress) {
175462
+ if (n ? (process.env.NODE_ENV !== "production" && Ui(n._outputDueEnd != null), this._dueEnd = n._outputDueEnd) : (process.env.NODE_ENV !== "production" && Ui(!this._progress || this._count), this._dueEnd = this._count ? this._count(this.context) : 1 / 0), this._progress) {
175457
175463
  var f = this._dueIndex, b = Math.min(h != null ? this._dueIndex + h : 1 / 0, this._dueEnd);
175458
175464
  if (!r && (g || f < b)) {
175459
175465
  var y = this._progress;
@@ -175465,7 +175471,7 @@ var Wka = (
175465
175471
  }
175466
175472
  this._dueIndex = b;
175467
175473
  var _ = this._settedOutputEnd != null ? this._settedOutputEnd : b;
175468
- process.env.NODE_ENV !== "production" && zi(_ >= this._outputDueEnd), this._outputDueEnd = _;
175474
+ process.env.NODE_ENV !== "production" && Ui(_ >= this._outputDueEnd), this._outputDueEnd = _;
175469
175475
  } else
175470
175476
  this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd;
175471
175477
  return this.unfinished();
@@ -175487,7 +175493,7 @@ var Wka = (
175487
175493
  }, t.prototype.unfinished = function() {
175488
175494
  return this._progress && this._dueIndex < this._dueEnd;
175489
175495
  }, t.prototype.pipe = function(e) {
175490
- process.env.NODE_ENV !== "production" && zi(e && !e._disposed && e !== this), (this._downstream !== e || this._dirty) && (this._downstream = e, e._upstream = this, e.dirty());
175496
+ process.env.NODE_ENV !== "production" && Ui(e && !e._disposed && e !== this), (this._downstream !== e || this._dirty) && (this._downstream = e, e._upstream = this, e.dirty());
175491
175497
  }, t.prototype.dispose = function() {
175492
175498
  this._disposed || (this._upstream && (this._upstream._downstream = null), this._downstream && (this._downstream._upstream = null), this._dirty = !1, this._disposed = !0);
175493
175499
  }, t.prototype.getUpstream = function() {
@@ -175742,12 +175748,12 @@ var S8e = (
175742
175748
  this._chunks = [], this._rawExtent = [], this._extent = [], this._count = 0, this._rawCount = 0, this._calcDimNameToIdx = fs();
175743
175749
  }
175744
175750
  return t.prototype.initData = function(e, n, r) {
175745
- process.env.NODE_ENV !== "production" && zi(_o(e.getItem) && _o(e.count), "Invalid data provider."), this._provider = e, this._chunks = [], this._indices = null, this.getRawIndex = this._getRawIdxIdentity;
175751
+ process.env.NODE_ENV !== "production" && Ui(_o(e.getItem) && _o(e.count), "Invalid data provider."), this._provider = e, this._chunks = [], this._indices = null, this.getRawIndex = this._getRawIdxIdentity;
175746
175752
  var i = e.getSource(), o = this.defaultDimValueGetter = ISe[i.sourceFormat];
175747
175753
  this._dimValueGetter = r || o, this._rawExtent = [];
175748
175754
  var l = bcn(i);
175749
175755
  this._dimensions = Ja(n, function(u) {
175750
- return process.env.NODE_ENV !== "production" && l && zi(u.property != null), {
175756
+ return process.env.NODE_ENV !== "production" && l && Ui(u.property != null), {
175751
175757
  // Only pick these two props. Not leak other properties like orderMeta.
175752
175758
  type: u.type,
175753
175759
  property: u.property
@@ -175782,7 +175788,7 @@ var S8e = (
175782
175788
  var n = this._dimensions[e];
175783
175789
  return n && n.property;
175784
175790
  }, t.prototype.appendData = function(e) {
175785
- process.env.NODE_ENV !== "production" && zi(!this._indices, "appendData can only be called on raw data.");
175791
+ process.env.NODE_ENV !== "production" && Ui(!this._indices, "appendData can only be called on raw data.");
175786
175792
  var n = this._provider, r = this.count();
175787
175793
  n.appendData(e);
175788
175794
  var i = n.count();
@@ -176154,10 +176160,10 @@ var S8e = (
176154
176160
  i = [C8e(x, this._getSourceMetaRawOption(), null)], o = [];
176155
176161
  }
176156
176162
  }
176157
- process.env.NODE_ENV !== "production" && zi(i && o), this._setLocalSource(i, o);
176163
+ process.env.NODE_ENV !== "production" && Ui(i && o), this._setLocalSource(i, o);
176158
176164
  }, t.prototype._applyTransform = function(e) {
176159
176165
  var n = this._sourceHost, r = n.get("transform", !0), i = n.get("fromTransformResult", !0);
176160
- if (process.env.NODE_ENV !== "production" && zi(i != null || r != null), i != null) {
176166
+ if (process.env.NODE_ENV !== "production" && Ui(i != null || r != null), i != null) {
176161
176167
  var o = "";
176162
176168
  e.length !== 1 && (process.env.NODE_ENV !== "production" && (o = "When using `fromTransformResult`, there should be only one upstream dataset"), awt(o));
176163
176169
  }
@@ -176193,7 +176199,7 @@ var S8e = (
176193
176199
  }
176194
176200
  return n;
176195
176201
  }, t.prototype.getSharedDataStore = function(e) {
176196
- process.env.NODE_ENV !== "production" && zi(Dz(this._sourceHost), "Can only call getDataStore on series source manager.");
176202
+ process.env.NODE_ENV !== "production" && Ui(Dz(this._sourceHost), "Can only call getDataStore on series source manager.");
176197
176203
  var n = e.makeStoreSchema();
176198
176204
  return this._innerGetDataStore(n.dimensions, e.source, n.hash);
176199
176205
  }, t.prototype._innerGetDataStore = function(e, n, r) {
@@ -176290,7 +176296,7 @@ function Tcn(t) {
176290
176296
  }
176291
176297
  function dEa(t, e, n, r) {
176292
176298
  var i = e.noHeader, o = mEa(Tcn(e)), l = [], u = e.blocks || [];
176293
- zi(!u || wa(u)), u = u || [];
176299
+ Ui(!u || wa(u)), u = u || [];
176294
176300
  var d = t.orderMode;
176295
176301
  if (e.sortBlocks && d) {
176296
176302
  u = u.slice();
@@ -176399,7 +176405,7 @@ var TSe = (
176399
176405
  renderMode: r,
176400
176406
  markerId: i
176401
176407
  });
176402
- return ni(o) ? o : (process.env.NODE_ENV !== "production" && zi(i), this.richTextStyles[i] = o.style, o.content);
176408
+ return ni(o) ? o : (process.env.NODE_ENV !== "production" && Ui(i), this.richTextStyles[i] = o.style, o.content);
176403
176409
  }, t.prototype.wrapRichTextStyle = function(e, n) {
176404
176410
  var r = {};
176405
176411
  wa(n) ? _n(n, function(o) {
@@ -176488,7 +176494,7 @@ var vEa = "__universalTransitionEnabled", zv = (
176488
176494
  var o = jI(this).sourceManager = new sEa(this);
176489
176495
  o.prepareSource();
176490
176496
  var l = this.getInitialData(n, i);
176491
- swt(l, this), this.dataTask.context.data = l, process.env.NODE_ENV !== "production" && zi(l, "getInitialData returned invalid data."), jI(this).dataBeforeProcessed = l, owt(this), this._initSelectedMapFromData(l);
176497
+ swt(l, this), this.dataTask.context.data = l, process.env.NODE_ENV !== "production" && Ui(l, "getInitialData returned invalid data."), jI(this).dataBeforeProcessed = l, owt(this), this._initSelectedMapFromData(l);
176492
176498
  }, e.prototype.mergeDefaultAndTheme = function(n, r) {
176493
176499
  var i = Fme(this), o = i ? eZe(n) : {}, l = this.subType;
176494
176500
  Al.hasClass(l) && (l += "Series"), Sc(n, r.getTheme().get(this.subType)), Sc(n, this.getDefaultOption()), o8e(n, "label", ["show"]), this.fillDataTextStyle(n.data), i && QV(n, o, i);
@@ -177055,7 +177061,7 @@ var Pcn = (
177055
177061
  var e = this._stageTaskMap, n = this.api.getModel(), r = this.api;
177056
177062
  _n(this._allHandlers, function(i) {
177057
177063
  var o = e.get(i.uid) || e.set(i.uid, {}), l = "";
177058
- process.env.NODE_ENV !== "production" && (l = '"reset" and "overallReset" must not be both specified.'), zi(!(i.reset && i.overallReset), l), i.reset && this._createSeriesStageTask(i, o, n, r), i.overallReset && this._createOverallStageTask(i, o, n, r);
177064
+ process.env.NODE_ENV !== "production" && (l = '"reset" and "overallReset" must not be both specified.'), Ui(!(i.reset && i.overallReset), l), i.reset && this._createSeriesStageTask(i, o, n, r), i.overallReset && this._createOverallStageTask(i, o, n, r);
177059
177065
  }, this);
177060
177066
  }, t.prototype.prepareView = function(e, n, r, i) {
177061
177067
  var o = e.renderTask, l = o.context;
@@ -177141,7 +177147,7 @@ var Pcn = (
177141
177147
  scheduler: o
177142
177148
  };
177143
177149
  var u = l.agentStubMap, d = l.agentStubMap = fs(), p = e.seriesType, m = e.getTargetSeries, g = !0, h = !1, f = "";
177144
- process.env.NODE_ENV !== "production" && (f = '"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'), zi(!e.createOnAllSeries, f), p ? r.eachRawSeriesByType(p, b) : m ? m(r, i).each(b) : (g = !1, _n(r.getSeries(), b));
177150
+ process.env.NODE_ENV !== "production" && (f = '"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'), Ui(!e.createOnAllSeries, f), p ? r.eachRawSeriesByType(p, b) : m ? m(r, i).each(b) : (g = !1, _n(r.getSeries(), b));
177145
177151
  function b(y) {
177146
177152
  var v = y.uid, _ = d.set(v, u && u.get(v) || // When the result of `getTargetSeries` changed, the overallTask
177147
177153
  // should be set as dirty and re-performed.
@@ -178737,7 +178743,7 @@ var SR, RSe, Bre, q1, Dre, LSe, MSe, j5, $5, Dwt, Nwt, PSe, Rwt, Nre, Lwt, aun,
178737
178743
  return;
178738
178744
  }
178739
178745
  var r = n.seriesIndex, i = this.getModel(), o = i.getSeriesByIndex(r);
178740
- process.env.NODE_ENV !== "production" && zi(n.data && o), o.appendData(n), this._scheduler.unfinished = !0, this.getZr().wakeUp();
178746
+ process.env.NODE_ENV !== "production" && Ui(n.data && o), o.appendData(n), this._scheduler.unfinished = !0, this.getZr().wakeUp();
178741
178747
  }, e.internalField = (function() {
178742
178748
  SR = function(g) {
178743
178749
  var h = g._scheduler;
@@ -178761,7 +178767,7 @@ var SR, RSe, Bre, q1, Dre, LSe, MSe, j5, $5, Dwt, Nwt, PSe, Rwt, Nre, Lwt, aun,
178761
178767
  // But need a base class to make a type series.
178762
178768
  Mv.getClass(D.sub)
178763
178769
  );
178764
- process.env.NODE_ENV !== "production" && zi(R, D.sub + " does not exist."), T = new R(), T.init(f, w), v[I] = T, y.push(T), _.add(T.group);
178770
+ process.env.NODE_ENV !== "production" && Ui(R, D.sub + " does not exist."), T = new R(), T.init(f, w), v[I] = T, y.push(T), _.add(T.group);
178765
178771
  }
178766
178772
  E.__viewId = T.__id = I, T.__alive = !0, T.__model = E, T.group.__ecComponentInfo = {
178767
178773
  mainType: E.mainType,
@@ -178930,7 +178936,7 @@ var SR, RSe, Bre, q1, Dre, LSe, MSe, j5, $5, Dwt, Nwt, PSe, Rwt, Nre, Lwt, aun,
178930
178936
  var N = void 0;
178931
178937
  if (_.refineEvent) {
178932
178938
  var B = _.refineEvent(T, g, b, this._api).eventContent;
178933
- zi(di(B)), N = mu({
178939
+ Ui(di(B)), N = mu({
178934
178940
  type: _.refinedEventType
178935
178941
  }, B), N.fromAction = g.type, N.fromActionPayload = g, N.escapeConnect = !0;
178936
178942
  }
@@ -179244,7 +179250,7 @@ function bP(t, e, n) {
179244
179250
  }
179245
179251
  i = d(i || r);
179246
179252
  var p = o ? d(r) : i;
179247
- Yme[r] || (zi(Twt.test(r) && Twt.test(i)), o && zi(i !== r), Yme[r] = {
179253
+ Yme[r] || (Ui(Twt.test(r) && Twt.test(i)), o && Ui(i !== r), Yme[r] = {
179248
179254
  actionType: r,
179249
179255
  refinedEventType: i,
179250
179256
  nonRefinedEventType: p,
@@ -179275,7 +179281,7 @@ function fZe(t, e, n, r, i) {
179275
179281
  if (isNaN(e) || e == null)
179276
179282
  throw new Error("Illegal priority");
179277
179283
  _n(t, function(l) {
179278
- zi(l.__raw !== n);
179284
+ Ui(l.__raw !== n);
179279
179285
  });
179280
179286
  }
179281
179287
  if (!(vc(Pwt, n) >= 0)) {
@@ -179453,7 +179459,7 @@ function rCa(t, e) {
179453
179459
  _n(t.dimensions, function(h) {
179454
179460
  var f = t.getDimensionInfo(h), b = f.coordDim;
179455
179461
  if (b) {
179456
- process.env.NODE_ENV !== "production" && zi(E8e.get(b) == null);
179462
+ process.env.NODE_ENV !== "production" && Ui(E8e.get(b) == null);
179457
179463
  var y = f.coordDimIndex;
179458
179464
  OSe(r, b)[y] = h, f.isExtraCoord || (i.set(b, 1), iCa(f.type) && (o[0] = h), OSe(u, b)[y] = t.getDimensionIndex(f.name)), f.defaultTooltip && l.push(h);
179459
179465
  }
@@ -179582,7 +179588,7 @@ var Mz = di, $I = Ja, lCa = typeof Int32Array > "u" ? Array : Int32Array, cCa =
179582
179588
  var b = h.otherDims = h.otherDims || {};
179583
179589
  l.push(f), o[f] = h, p[f] != null && (d = !0), h.createInvertedIndices && (u[f] = []);
179584
179590
  var y = m;
179585
- Uc(h.storeDimIndex) && (y = h.storeDimIndex), b.itemName === 0 && (this._nameDimIdx = y), b.itemId === 0 && (this._idDimIdx = y), process.env.NODE_ENV !== "production" && zi(i || h.storeDimIndex >= 0), i && (h.storeDimIndex = m);
179591
+ Uc(h.storeDimIndex) && (y = h.storeDimIndex), b.itemName === 0 && (this._nameDimIdx = y), b.itemId === 0 && (this._idDimIdx = y), process.env.NODE_ENV !== "production" && Ui(i || h.storeDimIndex >= 0), i && (h.storeDimIndex = m);
179586
179592
  }
179587
179593
  if (this.dimensions = l, this._dimInfos = o, this._initGetDimensionInfo(d), this.hostModel = n, this._invertedIndicesMap = u, this._dimOmitted) {
179588
179594
  var v = this._dimIdxToName = fs();
@@ -180948,10 +180954,10 @@ var KCa = (
180948
180954
  isBlank: g
180949
180955
  };
180950
180956
  }, t.prototype.modifyDataMinMax = function(e, n) {
180951
- process.env.NODE_ENV !== "production" && zi(!this.frozen), this[XCa[e]] = n;
180957
+ process.env.NODE_ENV !== "production" && Ui(!this.frozen), this[XCa[e]] = n;
180952
180958
  }, t.prototype.setDeterminedMinMax = function(e, n) {
180953
180959
  var r = ZCa[e];
180954
- process.env.NODE_ENV !== "production" && zi(!this.frozen && this[r] == null), this[r] = n;
180960
+ process.env.NODE_ENV !== "production" && Ui(!this.frozen && this[r] == null), this[r] = n;
180955
180961
  }, t.prototype.freeze = function() {
180956
180962
  this.frozen = !0;
180957
180963
  }, t;
@@ -182811,7 +182817,7 @@ var f4 = (
182811
182817
  return t.prototype.updateCfg = function(e) {
182812
182818
  if (process.env.NODE_ENV !== "production") {
182813
182819
  var n = this._shared.ensureRecord(this._axisModel).ready;
182814
- zi(!n.axisLine && !n.axisTickLabelDetermine), n.axisName = n.axisTickLabelEstimate = !1;
182820
+ Ui(!n.axisLine && !n.axisTickLabelDetermine), n.axisName = n.axisTickLabelEstimate = !1;
182815
182821
  }
182816
182822
  var r = this._cfg.raw;
182817
182823
  r.position = e.position, r.labelOffset = e.labelOffset, this._resetCfgDetermined(r);
@@ -182835,7 +182841,7 @@ var f4 = (
182835
182841
  optionHideOverlap: n.get(["axisLabel", "hideOverlap"]),
182836
182842
  showMinorTicks: n.get(["minorTick", "show"])
182837
182843
  };
182838
- process.env.NODE_ENV !== "production" && (zi(l.position != null), zi(l.rotation != null)), this._cfg = l;
182844
+ process.env.NODE_ENV !== "production" && (Ui(l.position != null), Ui(l.rotation != null)), this._cfg = l;
182839
182845
  var u = new X0({
182840
182846
  x: l.position[0],
182841
182847
  y: l.position[1],
@@ -182876,7 +182882,7 @@ var f4 = (
182876
182882
  axisLine: function(t, e, n, r, i, o, l) {
182877
182883
  if (process.env.NODE_ENV !== "production") {
182878
182884
  var u = n.ensureRecord(r).ready;
182879
- zi(!u.axisLine), u.axisLine = !0;
182885
+ Ui(!u.axisLine), u.axisLine = !0;
182880
182886
  }
182881
182887
  var d = r.get(["axisLine", "show"]);
182882
182888
  if (d === "auto" && (d = !0, t.raw.axisLineAutoShow != null && (d = !!t.raw.axisLineAutoShow)), !!d) {
@@ -182938,7 +182944,7 @@ var f4 = (
182938
182944
  axisTickLabelEstimate: function(t, e, n, r, i, o, l, u) {
182939
182945
  if (process.env.NODE_ENV !== "production") {
182940
182946
  var d = n.ensureRecord(r).ready;
182941
- zi(!d.axisTickLabelDetermine), d.axisTickLabelEstimate = !0;
182947
+ Ui(!d.axisTickLabelDetermine), d.axisTickLabelEstimate = !0;
182942
182948
  }
182943
182949
  var p = cxt(e, i, u);
182944
182950
  p && lxt(t, e, n, r, i, o, l, yD.estimate);
@@ -182965,7 +182971,7 @@ var f4 = (
182965
182971
  var d = n.ensureRecord(r);
182966
182972
  if (process.env.NODE_ENV !== "production") {
182967
182973
  var p = d.ready;
182968
- zi(p.axisTickLabelEstimate || p.axisTickLabelDetermine), p.axisName = !0;
182974
+ Ui(p.axisTickLabelEstimate || p.axisTickLabelDetermine), p.axisName = !0;
182969
182975
  }
182970
182976
  e.nameEl && (i.remove(e.nameEl), e.nameEl = d.nameLayout = d.nameLocation = null);
182971
182977
  var m = t.axisName;
@@ -183019,7 +183025,7 @@ var f4 = (
183019
183025
  });
183020
183026
  if (d.nameLocation = g, i.add(L), L.decomposeTransform(), t.shouldNameMoveOverlap && B) {
183021
183027
  var M = n.ensureRecord(r);
183022
- process.env.NODE_ENV !== "production" && zi(M.labelInfoList), n.resolveAxisNameOverlap(t, n, r, B, w, M);
183028
+ process.env.NODE_ENV !== "production" && Ui(M.labelInfoList), n.resolveAxisNameOverlap(t, n, r, B, w, M);
183023
183029
  }
183024
183030
  }
183025
183031
  }
@@ -183137,7 +183143,7 @@ function E2a(t, e, n, r, i) {
183137
183143
  function cxt(t, e, n) {
183138
183144
  if (Hun(t)) {
183139
183145
  var r = t.axisLabelsCreationContext;
183140
- process.env.NODE_ENV !== "production" && zi(t.labelGroup && r);
183146
+ process.env.NODE_ENV !== "production" && Ui(t.labelGroup && r);
183141
183147
  var i = r.out.noPxChangeTryDetermine;
183142
183148
  if (n.noPxChange) {
183143
183149
  for (var o = !0, l = 0; l < i.length; l++)
@@ -183452,7 +183458,7 @@ var WSe = {}, O2a = (
183452
183458
  var n = e.mappingMethod, r = e.type, i = this.option = fo(e);
183453
183459
  this.type = r, this.mappingMethod = n, this._normalizeData = $2a[n];
183454
183460
  var o = t.visualHandlers[r];
183455
- this.applyVisual = o.applyVisual, this.getColorMapper = o.getColorMapper, this._normalizedToVisual = o._normalizedToVisual[n], n === "piecewise" ? (YSe(i), Q2a(i)) : n === "category" ? i.categories ? j2a(i) : YSe(i, !0) : (zi(n !== "linear" || i.dataExtent), YSe(i));
183461
+ this.applyVisual = o.applyVisual, this.getColorMapper = o.getColorMapper, this._normalizedToVisual = o._normalizedToVisual[n], n === "piecewise" ? (YSe(i), Q2a(i)) : n === "category" ? i.categories ? j2a(i) : YSe(i, !0) : (Ui(n !== "linear" || i.dataExtent), YSe(i));
183456
183462
  }
183457
183463
  return t.prototype.mapValueToVisual = function(e) {
183458
183464
  var n = this._normalizeData(e);
@@ -187064,7 +187070,7 @@ function hdn(t, e, n, r) {
187064
187070
  var h = i.imageWidth, f = i.imageHeight, b = void 0, y = i.image;
187065
187071
  if (ni(y) ? b = y : ddn(y) ? b = y.src : pdn(y) && (b = y.toDataURL()), typeof Image > "u") {
187066
187072
  var v = "Image width/height must been given explictly in svg-ssr renderer.";
187067
- zi(h, v), zi(f, v);
187073
+ Ui(h, v), Ui(f, v);
187068
187074
  } else if (h == null || f == null) {
187069
187075
  var _ = function(D, R) {
187070
187076
  if (D) {
@@ -195996,7 +196002,7 @@ function Oja({
195996
196002
  ] }),
195997
196003
  /* @__PURE__ */ A.jsx("code", { className: "rounded bg-neutral-100/60 px-1.5 py-0.5 text-xs text-neutral-500 dark:bg-white/[0.04] dark:text-neutral-400", children: t.id })
195998
196004
  ] }),
195999
- /* @__PURE__ */ A.jsx(ji, { label: l("agents.graphEditor.common.name"), children: /* @__PURE__ */ A.jsx(
196005
+ /* @__PURE__ */ A.jsx($i, { label: l("agents.graphEditor.common.name"), children: /* @__PURE__ */ A.jsx(
196000
196006
  ho,
196001
196007
  {
196002
196008
  value: t.name,
@@ -196005,7 +196011,7 @@ function Oja({
196005
196011
  placeholder: l("agents.graphEditor.common.namePlaceholder")
196006
196012
  }
196007
196013
  ) }),
196008
- /* @__PURE__ */ A.jsx(ji, { label: l("agents.graphEditor.common.description"), children: /* @__PURE__ */ A.jsx(
196014
+ /* @__PURE__ */ A.jsx($i, { label: l("agents.graphEditor.common.description"), children: /* @__PURE__ */ A.jsx(
196009
196015
  ho,
196010
196016
  {
196011
196017
  value: t.description || "",
@@ -196015,7 +196021,7 @@ function Oja({
196015
196021
  }
196016
196022
  ) }),
196017
196023
  /* @__PURE__ */ A.jsx(
196018
- ji,
196024
+ $i,
196019
196025
  {
196020
196026
  label: l("agents.graphEditor.common.reads"),
196021
196027
  hint: l("agents.graphEditor.common.readsHint"),
@@ -196032,7 +196038,7 @@ function Oja({
196032
196038
  }
196033
196039
  ),
196034
196040
  /* @__PURE__ */ A.jsx(
196035
- ji,
196041
+ $i,
196036
196042
  {
196037
196043
  label: l("agents.graphEditor.common.writes"),
196038
196044
  hint: l("agents.graphEditor.common.writesHint"),
@@ -196141,7 +196147,7 @@ function jja({ config: t, onChange: e, onBlur: n }) {
196141
196147
  ] }),
196142
196148
  /* @__PURE__ */ A.jsxs(RPe, { className: "space-y-4 px-3 pb-3", children: [
196143
196149
  /* @__PURE__ */ A.jsx(
196144
- ji,
196150
+ $i,
196145
196151
  {
196146
196152
  label: r("agents.graphEditor.llm.promptTemplate"),
196147
196153
  labelExtra: /* @__PURE__ */ A.jsx(
@@ -196180,7 +196186,7 @@ function jja({ config: t, onChange: e, onBlur: n }) {
196180
196186
  language: "markdown"
196181
196187
  }
196182
196188
  ),
196183
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.llm.outputKey"), children: /* @__PURE__ */ A.jsx(
196189
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.llm.outputKey"), children: /* @__PURE__ */ A.jsx(
196184
196190
  ho,
196185
196191
  {
196186
196192
  value: t.output_key,
@@ -196189,7 +196195,7 @@ function jja({ config: t, onChange: e, onBlur: n }) {
196189
196195
  placeholder: r("agents.graphEditor.llm.outputKeyPlaceholder")
196190
196196
  }
196191
196197
  ) }),
196192
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.llm.messageKey"), children: /* @__PURE__ */ A.jsx(
196198
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.llm.messageKey"), children: /* @__PURE__ */ A.jsx(
196193
196199
  ho,
196194
196200
  {
196195
196201
  value: t.message_key || "",
@@ -196216,7 +196222,7 @@ function jja({ config: t, onChange: e, onBlur: n }) {
196216
196222
  r("agents.graphEditor.llm.modelTools")
196217
196223
  ] }),
196218
196224
  /* @__PURE__ */ A.jsxs(RPe, { className: "space-y-4 px-3 pb-3", children: [
196219
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.llm.modelOverride"), children: /* @__PURE__ */ A.jsx(
196225
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.llm.modelOverride"), children: /* @__PURE__ */ A.jsx(
196220
196226
  ho,
196221
196227
  {
196222
196228
  value: t.model_override || "",
@@ -196227,7 +196233,7 @@ function jja({ config: t, onChange: e, onBlur: n }) {
196227
196233
  )
196228
196234
  }
196229
196235
  ) }),
196230
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.llm.temperature"), children: /* @__PURE__ */ A.jsx(
196236
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.llm.temperature"), children: /* @__PURE__ */ A.jsx(
196231
196237
  ho,
196232
196238
  {
196233
196239
  type: "number",
@@ -196242,7 +196248,7 @@ function jja({ config: t, onChange: e, onBlur: n }) {
196242
196248
  step: 0.1
196243
196249
  }
196244
196250
  ) }),
196245
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.llm.maxTokens"), children: /* @__PURE__ */ A.jsx(
196251
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.llm.maxTokens"), children: /* @__PURE__ */ A.jsx(
196246
196252
  ho,
196247
196253
  {
196248
196254
  type: "number",
@@ -196266,7 +196272,7 @@ function jja({ config: t, onChange: e, onBlur: n }) {
196266
196272
  )
196267
196273
  ] }),
196268
196274
  t.tools_enabled && /* @__PURE__ */ A.jsx(
196269
- ji,
196275
+ $i,
196270
196276
  {
196271
196277
  label: r("agents.graphEditor.llm.toolFilter"),
196272
196278
  hint: r("agents.graphEditor.llm.toolFilterHint"),
@@ -196282,7 +196288,7 @@ function jja({ config: t, onChange: e, onBlur: n }) {
196282
196288
  )
196283
196289
  }
196284
196290
  ),
196285
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.llm.maxIterations"), children: /* @__PURE__ */ A.jsx(
196291
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.llm.maxIterations"), children: /* @__PURE__ */ A.jsx(
196286
196292
  ho,
196287
196293
  {
196288
196294
  type: "number",
@@ -196302,7 +196308,7 @@ const $ja = lo(jja);
196302
196308
  function zja({ config: t, onChange: e, onBlur: n }) {
196303
196309
  const { t: r } = Dn();
196304
196310
  return /* @__PURE__ */ A.jsxs("div", { className: "space-y-4", children: [
196305
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.tool.outputKey"), children: /* @__PURE__ */ A.jsx(
196311
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.tool.outputKey"), children: /* @__PURE__ */ A.jsx(
196306
196312
  ho,
196307
196313
  {
196308
196314
  value: t.output_key,
@@ -196322,7 +196328,7 @@ function zja({ config: t, onChange: e, onBlur: n }) {
196322
196328
  )
196323
196329
  ] }),
196324
196330
  /* @__PURE__ */ A.jsx(
196325
- ji,
196331
+ $i,
196326
196332
  {
196327
196333
  label: r("agents.graphEditor.tool.toolFilter"),
196328
196334
  hint: r("agents.graphEditor.tool.toolFilterHint"),
@@ -196336,7 +196342,7 @@ function zja({ config: t, onChange: e, onBlur: n }) {
196336
196342
  )
196337
196343
  }
196338
196344
  ),
196339
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.tool.timeoutSeconds"), children: /* @__PURE__ */ A.jsx(
196345
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.tool.timeoutSeconds"), children: /* @__PURE__ */ A.jsx(
196340
196346
  ho,
196341
196347
  {
196342
196348
  type: "number",
@@ -196359,7 +196365,7 @@ function qja({ config: t, onChange: e, onBlur: n }) {
196359
196365
  const { t: r } = Dn(), [i, o] = he(!1);
196360
196366
  return /* @__PURE__ */ A.jsxs("div", { className: "space-y-4", children: [
196361
196367
  /* @__PURE__ */ A.jsx(
196362
- ji,
196368
+ $i,
196363
196369
  {
196364
196370
  label: r("agents.graphEditor.transform.template"),
196365
196371
  labelExtra: /* @__PURE__ */ A.jsx(
@@ -196398,7 +196404,7 @@ function qja({ config: t, onChange: e, onBlur: n }) {
196398
196404
  language: "markdown"
196399
196405
  }
196400
196406
  ),
196401
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.transform.outputKey"), children: /* @__PURE__ */ A.jsx(
196407
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.transform.outputKey"), children: /* @__PURE__ */ A.jsx(
196402
196408
  ho,
196403
196409
  {
196404
196410
  value: t.output_key,
@@ -196407,7 +196413,7 @@ function qja({ config: t, onChange: e, onBlur: n }) {
196407
196413
  placeholder: r("agents.graphEditor.transform.outputKeyPlaceholder")
196408
196414
  }
196409
196415
  ) }),
196410
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.transform.inputKeys"), children: /* @__PURE__ */ A.jsx(
196416
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.transform.inputKeys"), children: /* @__PURE__ */ A.jsx(
196411
196417
  KV,
196412
196418
  {
196413
196419
  value: t.input_keys,
@@ -196421,7 +196427,7 @@ const Gja = lo(qja);
196421
196427
  function Hja({ config: t, onChange: e, onBlur: n }) {
196422
196428
  const { t: r } = Dn();
196423
196429
  return /* @__PURE__ */ A.jsxs("div", { className: "space-y-4", children: [
196424
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.component.componentKey"), children: /* @__PURE__ */ A.jsx(
196430
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.component.componentKey"), children: /* @__PURE__ */ A.jsx(
196425
196431
  ho,
196426
196432
  {
196427
196433
  value: t.component_ref.key,
@@ -196434,7 +196440,7 @@ function Hja({ config: t, onChange: e, onBlur: n }) {
196434
196440
  )
196435
196441
  }
196436
196442
  ) }),
196437
- /* @__PURE__ */ A.jsx(ji, { label: r("agents.graphEditor.component.componentVersion"), children: /* @__PURE__ */ A.jsx(
196443
+ /* @__PURE__ */ A.jsx($i, { label: r("agents.graphEditor.component.componentVersion"), children: /* @__PURE__ */ A.jsx(
196438
196444
  ho,
196439
196445
  {
196440
196446
  value: t.component_ref.version,
@@ -196802,7 +196808,7 @@ function Xja({
196802
196808
  )
196803
196809
  ] }),
196804
196810
  /* @__PURE__ */ A.jsx("div", { className: "custom-scrollbar flex-1 overflow-y-auto", children: /* @__PURE__ */ A.jsxs("div", { className: "space-y-4 px-4 py-4", children: [
196805
- /* @__PURE__ */ A.jsx(ji, { label: i("agents.graphEditor.edge.label"), children: /* @__PURE__ */ A.jsx(
196811
+ /* @__PURE__ */ A.jsx($i, { label: i("agents.graphEditor.edge.label"), children: /* @__PURE__ */ A.jsx(
196806
196812
  ho,
196807
196813
  {
196808
196814
  value: o,
@@ -196811,7 +196817,7 @@ function Xja({
196811
196817
  placeholder: i("agents.graphEditor.edge.labelPlaceholder")
196812
196818
  }
196813
196819
  ) }),
196814
- /* @__PURE__ */ A.jsx(ji, { label: i("agents.graphEditor.edge.priority"), children: /* @__PURE__ */ A.jsx(
196820
+ /* @__PURE__ */ A.jsx($i, { label: i("agents.graphEditor.edge.priority"), children: /* @__PURE__ */ A.jsx(
196815
196821
  ho,
196816
196822
  {
196817
196823
  type: "number",
@@ -196821,7 +196827,7 @@ function Xja({
196821
196827
  min: 0
196822
196828
  }
196823
196829
  ) }),
196824
- /* @__PURE__ */ A.jsx(ji, { label: i("agents.graphEditor.edge.conditionType"), children: /* @__PURE__ */ A.jsxs(
196830
+ /* @__PURE__ */ A.jsx($i, { label: i("agents.graphEditor.edge.conditionType"), children: /* @__PURE__ */ A.jsxs(
196825
196831
  c2e,
196826
196832
  {
196827
196833
  value: p,
@@ -196836,7 +196842,7 @@ function Xja({
196836
196842
  ]
196837
196843
  }
196838
196844
  ) }),
196839
- p === "builtin" && /* @__PURE__ */ A.jsx(ji, { label: i("agents.graphEditor.edge.builtinCondition"), children: /* @__PURE__ */ A.jsxs(
196845
+ p === "builtin" && /* @__PURE__ */ A.jsx($i, { label: i("agents.graphEditor.edge.builtinCondition"), children: /* @__PURE__ */ A.jsxs(
196840
196846
  c2e,
196841
196847
  {
196842
196848
  value: g,
@@ -196851,7 +196857,7 @@ function Xja({
196851
196857
  }
196852
196858
  ) }),
196853
196859
  p === "custom" && /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
196854
- /* @__PURE__ */ A.jsx(ji, { label: i("agents.graphEditor.edge.statePath"), children: /* @__PURE__ */ A.jsx(
196860
+ /* @__PURE__ */ A.jsx($i, { label: i("agents.graphEditor.edge.statePath"), children: /* @__PURE__ */ A.jsx(
196855
196861
  ho,
196856
196862
  {
196857
196863
  value: f,
@@ -196862,7 +196868,7 @@ function Xja({
196862
196868
  )
196863
196869
  }
196864
196870
  ) }),
196865
- /* @__PURE__ */ A.jsx(ji, { label: i("agents.graphEditor.edge.operator"), children: /* @__PURE__ */ A.jsxs(c2e, { value: y, onValueChange: S, children: [
196871
+ /* @__PURE__ */ A.jsx($i, { label: i("agents.graphEditor.edge.operator"), children: /* @__PURE__ */ A.jsxs(c2e, { value: y, onValueChange: S, children: [
196866
196872
  /* @__PURE__ */ A.jsx(d2e, { className: "w-full", children: /* @__PURE__ */ A.jsx(u2e, {}) }),
196867
196873
  /* @__PURE__ */ A.jsxs(p2e, { children: [
196868
196874
  /* @__PURE__ */ A.jsx(V1, { value: "eq", children: "eq" }),
@@ -196871,7 +196877,7 @@ function Xja({
196871
196877
  /* @__PURE__ */ A.jsx(V1, { value: "falsy", children: "falsy" })
196872
196878
  ] })
196873
196879
  ] }) }),
196874
- (y === "eq" || y === "neq") && /* @__PURE__ */ A.jsx(ji, { label: i("agents.graphEditor.edge.value"), children: /* @__PURE__ */ A.jsx(
196880
+ (y === "eq" || y === "neq") && /* @__PURE__ */ A.jsx($i, { label: i("agents.graphEditor.edge.value"), children: /* @__PURE__ */ A.jsx(
196875
196881
  ho,
196876
196882
  {
196877
196883
  value: _,
@@ -201662,7 +201668,7 @@ class OJ {
201662
201668
  this.#p?.abort(), this.#p = null, this.#s?.abort(), this.#s = null;
201663
201669
  }
201664
201670
  }
201665
- class Ui {
201671
+ class qi {
201666
201672
  #e = null;
201667
201673
  #t = null;
201668
201674
  #r = null;
@@ -201698,13 +201704,13 @@ class Ui {
201698
201704
  static _l10n = null;
201699
201705
  static _l10nResizer = null;
201700
201706
  #_ = !1;
201701
- #E = Ui._zIndex++;
201707
+ #E = qi._zIndex++;
201702
201708
  static _borderLineWidth = -1;
201703
201709
  static _colorManager = new ZZe();
201704
201710
  static _zIndex = 1;
201705
201711
  static _telemetryTimeout = 1e3;
201706
201712
  static get _resizerKeyboardManager() {
201707
- const e = Ui.prototype._resizeWithKeyboard, n = v2.TRANSLATE_SMALL, r = v2.TRANSLATE_BIG;
201713
+ const e = qi.prototype._resizeWithKeyboard, n = v2.TRANSLATE_SMALL, r = v2.TRANSLATE_BIG;
201708
201714
  return To(this, "_resizerKeyboardManager", new PJ([[["ArrowLeft", "mac+ArrowLeft"], e, {
201709
201715
  args: [-n, 0]
201710
201716
  }], [["ctrl+ArrowLeft", "mac+shift+ArrowLeft"], e, {
@@ -201721,7 +201727,7 @@ class Ui {
201721
201727
  args: [0, n]
201722
201728
  }], [["ctrl+ArrowDown", "mac+shift+ArrowDown"], e, {
201723
201729
  args: [0, r]
201724
- }], [["Escape", "mac+Escape"], Ui.prototype._stopResizingWithKeyboard]]));
201730
+ }], [["Escape", "mac+Escape"], qi.prototype._stopResizingWithKeyboard]]));
201725
201731
  }
201726
201732
  constructor(e) {
201727
201733
  this.parent = e.parent, this.id = e.id, this.width = this.height = null, this.pageIndex = e.parent.pageIndex, this.name = e.name, this.div = null, this._uiManager = e.uiManager, this.annotationElementId = null, this._willKeepAspectRatio = !1, this._initialOptions.isCentered = e.isCentered, this._structTreeParentId = null, this.annotationElementId = e.annotationElementId || null, this.creationDate = e.creationDate || /* @__PURE__ */ new Date(), this.modificationDate = e.modificationDate || null, this.canAddComment = !0;
@@ -201762,7 +201768,7 @@ class Ui {
201762
201768
  n.annotationElementId = e.annotationElementId, n.deleted = !0, n._uiManager.addToAnnotationStorage(n);
201763
201769
  }
201764
201770
  static initialize(e, n) {
201765
- if (Ui._l10n ??= e, Ui._l10nResizer ||= Object.freeze({
201771
+ if (qi._l10n ??= e, qi._l10nResizer ||= Object.freeze({
201766
201772
  topLeft: "pdfjs-editor-resizer-top-left",
201767
201773
  topMiddle: "pdfjs-editor-resizer-top-middle",
201768
201774
  topRight: "pdfjs-editor-resizer-top-right",
@@ -201771,10 +201777,10 @@ class Ui {
201771
201777
  bottomMiddle: "pdfjs-editor-resizer-bottom-middle",
201772
201778
  bottomLeft: "pdfjs-editor-resizer-bottom-left",
201773
201779
  middleLeft: "pdfjs-editor-resizer-middle-left"
201774
- }), Ui._borderLineWidth !== -1)
201780
+ }), qi._borderLineWidth !== -1)
201775
201781
  return;
201776
201782
  const r = getComputedStyle(document.documentElement);
201777
- Ui._borderLineWidth = parseFloat(r.getPropertyValue("--outline-width")) || 0;
201783
+ qi._borderLineWidth = parseFloat(r.getPropertyValue("--outline-width")) || 0;
201778
201784
  }
201779
201785
  static updateDefaultParams(e, n) {
201780
201786
  }
@@ -201911,7 +201917,7 @@ class Ui {
201911
201917
  getBaseTranslation() {
201912
201918
  const [e, n] = this.parentDimensions, {
201913
201919
  _borderLineWidth: r
201914
- } = Ui, i = r / e, o = r / n;
201920
+ } = qi, i = r / e, o = r / n;
201915
201921
  switch (this.rotation) {
201916
201922
  case 90:
201917
201923
  return [-i, o];
@@ -201971,10 +201977,10 @@ class Ui {
201971
201977
  }
201972
201978
  }
201973
201979
  screenToPageTranslation(e, n) {
201974
- return Ui.#I(e, n, this.parentRotation);
201980
+ return qi.#I(e, n, this.parentRotation);
201975
201981
  }
201976
201982
  pageTranslationToScreen(e, n) {
201977
- return Ui.#I(e, n, 360 - this.parentRotation);
201983
+ return qi.#I(e, n, 360 - this.parentRotation);
201978
201984
  }
201979
201985
  #T(e) {
201980
201986
  switch (e) {
@@ -202096,7 +202102,7 @@ class Ui {
202096
202102
  return Math.round(e * 1e4) / 1e4;
202097
202103
  }
202098
202104
  #M(e, n) {
202099
- const [r, i] = this.parentDimensions, o = this.x, l = this.y, u = this.width, d = this.height, p = Ui.MIN_SIZE / r, m = Ui.MIN_SIZE / i, g = this.#T(this.rotation), h = (P, O) => [g[0] * P + g[2] * O, g[1] * P + g[3] * O], f = this.#T(360 - this.rotation), b = (P, O) => [f[0] * P + f[2] * O, f[1] * P + f[3] * O];
202105
+ const [r, i] = this.parentDimensions, o = this.x, l = this.y, u = this.width, d = this.height, p = qi.MIN_SIZE / r, m = qi.MIN_SIZE / i, g = this.#T(this.rotation), h = (P, O) => [g[0] * P + g[2] * O, g[1] * P + g[3] * O], f = this.#T(360 - this.rotation), b = (P, O) => [f[0] * P + f[2] * O, f[1] * P + f[3] * O];
202100
202106
  let y, v, _ = !1, w = !1;
202101
202107
  switch (e) {
202102
202108
  case "topLeft":
@@ -202126,7 +202132,7 @@ class Ui {
202126
202132
  }
202127
202133
  const x = y(u, d), k = v(u, d);
202128
202134
  let C = h(...k);
202129
- const E = Ui._round(o + C[0]), S = Ui._round(l + C[1]);
202135
+ const E = qi._round(o + C[0]), S = qi._round(l + C[1]);
202130
202136
  let I = 1, T = 1, D, R;
202131
202137
  if (n.fromKeyboard)
202132
202138
  ({
@@ -202144,7 +202150,7 @@ class Ui {
202144
202150
  const P = Math.hypot(u, d);
202145
202151
  I = T = Math.max(Math.min(Math.hypot(k[0] - x[0] - D, k[1] - x[1] - R) / P, 1 / u, 1 / d), p / u, m / d);
202146
202152
  } else w ? I = tm(Math.abs(k[0] - x[0] - D), p, 1) / u : T = tm(Math.abs(k[1] - x[1] - R), m, 1) / d;
202147
- const L = Ui._round(u * I), N = Ui._round(d * T);
202153
+ const L = qi._round(u * I), N = qi._round(d * T);
202148
202154
  C = h(...v(L, N));
202149
202155
  const B = E - C[0], M = S - C[1];
202150
202156
  this.#d ||= [this.x, this.y, this.width, this.height], this.width = L, this.height = N, this.x = B, this.y = M, this.setDims(), this.fixAndSetPosition(), this._onResizing();
@@ -202186,7 +202192,7 @@ class Ui {
202186
202192
  return this.div.getBoundingClientRect();
202187
202193
  }
202188
202194
  createAltText() {
202189
- return this.#r || (kk.initialize(Ui._l10n), this.#r = new kk(this), this.#e && (this.#r.data = this.#e, this.#e = null)), this.#r;
202195
+ return this.#r || (kk.initialize(qi._l10n), this.#r = new kk(this), this.#e && (this.#r.data = this.#e, this.#e = null)), this.#r;
202190
202196
  }
202191
202197
  get altTextData() {
202192
202198
  return this.#r?.data;
@@ -202329,13 +202335,13 @@ class Ui {
202329
202335
  let o = 0.7 * (r / n) + 1 - 0.7;
202330
202336
  if (o === 1)
202331
202337
  return;
202332
- const l = this.#T(this.rotation), u = (E, S) => [l[0] * E + l[2] * S, l[1] * E + l[3] * S], [d, p] = this.parentDimensions, m = this.x, g = this.y, h = this.width, f = this.height, b = Ui.MIN_SIZE / d, y = Ui.MIN_SIZE / p;
202338
+ const l = this.#T(this.rotation), u = (E, S) => [l[0] * E + l[2] * S, l[1] * E + l[3] * S], [d, p] = this.parentDimensions, m = this.x, g = this.y, h = this.width, f = this.height, b = qi.MIN_SIZE / d, y = qi.MIN_SIZE / p;
202333
202339
  o = Math.max(Math.min(o, 1 / h, 1 / f), b / h, y / f);
202334
- const v = Ui._round(h * o), _ = Ui._round(f * o);
202340
+ const v = qi._round(h * o), _ = qi._round(f * o);
202335
202341
  if (v === h && _ === f)
202336
202342
  return;
202337
202343
  this.#d ||= [m, g, h, f];
202338
- const w = u(h / 2, f / 2), x = Ui._round(m + w[0]), k = Ui._round(g + w[1]), C = u(v / 2, _ / 2);
202344
+ const w = u(h / 2, f / 2), x = qi._round(m + w[0]), k = qi._round(g + w[1]), C = u(v / 2, _ / 2);
202339
202345
  this.x = x - C[0], this.y = k - C[1], this.width = v, this.height = _, this.setDims(), this.fixAndSetPosition(), this._onResizing();
202340
202346
  }
202341
202347
  #w() {
@@ -202449,7 +202455,7 @@ class Ui {
202449
202455
  return this.getRect(0, 0);
202450
202456
  }
202451
202457
  getNonHCMColor() {
202452
- return this.color && Ui._colorManager.convert(this._uiManager.getNonHCMColor(this.color));
202458
+ return this.color && qi._colorManager.convert(this._uiManager.getNonHCMColor(this.color));
202453
202459
  }
202454
202460
  onUpdatedColor() {
202455
202461
  this.#n?.onUpdatedColor();
@@ -202592,7 +202598,7 @@ class Ui {
202592
202598
  const {
202593
202599
  commentButtonPosition: [e, n]
202594
202600
  } = this, [r, i, o, l] = this.getPDFRect();
202595
- return [Ui._round(r + (o - r) * e), Ui._round(i + (l - i) * (1 - n))];
202601
+ return [qi._round(r + (o - r) * e), qi._round(i + (l - i) * (1 - n))];
202596
202602
  }
202597
202603
  get commentButtonColor() {
202598
202604
  return this._uiManager.makeCommentColor(this.getNonHCMColor(), this.opacity);
@@ -202636,7 +202642,7 @@ class Ui {
202636
202642
  signal: d
202637
202643
  }), p.addEventListener("focus", this.#Y.bind(this, m), {
202638
202644
  signal: d
202639
- }), p.setAttribute("data-l10n-id", Ui._l10nResizer[m]);
202645
+ }), p.setAttribute("data-l10n-id", qi._l10nResizer[m]);
202640
202646
  }
202641
202647
  }
202642
202648
  const r = this.#t[0];
@@ -202657,7 +202663,7 @@ class Ui {
202657
202663
  let l = 0;
202658
202664
  for (const u of n) {
202659
202665
  const p = this.#t[l++].getAttribute("data-resizer-name");
202660
- u.setAttribute("data-l10n-id", Ui._l10nResizer[p]);
202666
+ u.setAttribute("data-l10n-id", qi._l10nResizer[p]);
202661
202667
  }
202662
202668
  }
202663
202669
  this.#z(0), this.#y = !0, this.#l.firstElementChild.focus({
@@ -202665,7 +202671,7 @@ class Ui {
202665
202671
  }), e.preventDefault(), e.stopImmediatePropagation();
202666
202672
  }
202667
202673
  #W(e) {
202668
- Ui._resizerKeyboardManager.exec(this, e);
202674
+ qi._resizerKeyboardManager.exec(this, e);
202669
202675
  }
202670
202676
  #H(e) {
202671
202677
  this.#y && e.relatedTarget?.parentNode !== this.#l && this.#P();
@@ -202770,7 +202776,7 @@ class Ui {
202770
202776
  let i = this.#v.get(r);
202771
202777
  i && clearTimeout(i), i = setTimeout(() => {
202772
202778
  this._reportTelemetry(e), this.#v.delete(r), this.#v.size === 0 && (this.#v = null);
202773
- }, Ui._telemetryTimeout), this.#v.set(r, i);
202779
+ }, qi._telemetryTimeout), this.#v.set(r, i);
202774
202780
  return;
202775
202781
  }
202776
202782
  e.type ||= this.editorType, this._uiManager._eventBus.dispatch("reporttelemetry", {
@@ -202823,7 +202829,7 @@ class Ui {
202823
202829
  n?.nodeName === "DIV" && n.classList.contains("annotationContent") && n.remove();
202824
202830
  }
202825
202831
  }
202826
- class U$a extends Ui {
202832
+ class U$a extends qi {
202827
202833
  constructor(e) {
202828
202834
  super(e), this.annotationElementId = e.annotationElementId, this.deleted = !0;
202829
202835
  }
@@ -202890,9 +202896,9 @@ class XZe {
202890
202896
  }
202891
202897
  remove(e) {
202892
202898
  const n = this.#n.get(e);
202893
- if (n !== void 0 && (n instanceof Ui && this.#r.delete(n.annotationElementId), this.#n.delete(e), this.#n.size === 0 && this.resetModified(), typeof this.onAnnotationEditor == "function")) {
202899
+ if (n !== void 0 && (n instanceof qi && this.#r.delete(n.annotationElementId), this.#n.delete(e), this.#n.size === 0 && this.resetModified(), typeof this.onAnnotationEditor == "function")) {
202894
202900
  for (const r of this.#n.values())
202895
- if (r instanceof Ui)
202901
+ if (r instanceof qi)
202896
202902
  return;
202897
202903
  this.onAnnotationEditor(null);
202898
202904
  }
@@ -202905,7 +202911,7 @@ class XZe {
202905
202911
  r[o] !== l && (i = !0, r[o] = l);
202906
202912
  else
202907
202913
  i = !0, this.#n.set(e, n);
202908
- i && this.#a(), n instanceof Ui && ((this.#r ||= /* @__PURE__ */ new Map()).set(n.annotationElementId, n), typeof this.onAnnotationEditor == "function" && this.onAnnotationEditor(n.constructor._type));
202914
+ i && this.#a(), n instanceof qi && ((this.#r ||= /* @__PURE__ */ new Map()).set(n.annotationElementId, n), typeof this.onAnnotationEditor == "function" && this.onAnnotationEditor(n.constructor._type));
202909
202915
  }
202910
202916
  has(e) {
202911
202917
  return this.#n.has(e);
@@ -202928,7 +202934,7 @@ class XZe {
202928
202934
  const e = /* @__PURE__ */ new Map(), n = new ppn(), r = [], i = /* @__PURE__ */ Object.create(null);
202929
202935
  let o = !1;
202930
202936
  for (const [l, u] of this.#n) {
202931
- const d = u instanceof Ui ? u.serialize(!1, i) : u;
202937
+ const d = u instanceof qi ? u.serialize(!1, i) : u;
202932
202938
  u.page && (u.pageIndex = u.page._pageIndex, delete u.page), d && (e.set(l, d), n.update(`${l}:${JSON.stringify(d)}`), o ||= !!d.bitmap);
202933
202939
  }
202934
202940
  if (o)
@@ -202945,7 +202951,7 @@ class XZe {
202945
202951
  const n = /* @__PURE__ */ new Map();
202946
202952
  let r = 0, i = 0;
202947
202953
  for (const o of this.#n.values()) {
202948
- if (!(o instanceof Ui)) {
202954
+ if (!(o instanceof qi)) {
202949
202955
  o.popup && (o.popup.deleted ? i += 1 : r += 1);
202950
202956
  continue;
202951
202957
  }
@@ -211363,7 +211369,7 @@ class Rve {
211363
211369
  }
211364
211370
  }
211365
211371
  const nae = /\r\n?|\n/g;
211366
- class $m extends Ui {
211372
+ class $m extends qi {
211367
211373
  #e = "";
211368
211374
  #t = `${this.id}-editor`;
211369
211375
  #r = null;
@@ -211409,10 +211415,10 @@ class $m extends Ui {
211409
211415
  super({
211410
211416
  ...e,
211411
211417
  name: "freeTextEditor"
211412
- }), this.color = e.color || $m._defaultColor || Ui._defaultLineColor, this.#n = e.fontSize || $m._defaultFontSize, this.annotationElementId || this._uiManager.a11yAlert("pdfjs-editor-freetext-added-alert"), this.canAddComment = !1;
211418
+ }), this.color = e.color || $m._defaultColor || qi._defaultLineColor, this.#n = e.fontSize || $m._defaultFontSize, this.annotationElementId || this._uiManager.a11yAlert("pdfjs-editor-freetext-added-alert"), this.canAddComment = !1;
211413
211419
  }
211414
211420
  static initialize(e, n) {
211415
- Ui.initialize(e, n);
211421
+ qi.initialize(e, n);
211416
211422
  const r = getComputedStyle(document.documentElement);
211417
211423
  this._internalPadding = parseFloat(r.getPropertyValue("--freetext-padding"));
211418
211424
  }
@@ -211437,7 +211443,7 @@ class $m extends Ui {
211437
211443
  }
211438
211444
  }
211439
211445
  static get defaultPropertiesToUpdate() {
211440
- return [[Ds.FREETEXT_SIZE, $m._defaultFontSize], [Ds.FREETEXT_COLOR, $m._defaultColor || Ui._defaultLineColor]];
211446
+ return [[Ds.FREETEXT_SIZE, $m._defaultFontSize], [Ds.FREETEXT_COLOR, $m._defaultColor || qi._defaultLineColor]];
211441
211447
  }
211442
211448
  get propertiesToUpdate() {
211443
211449
  return [[Ds.FREETEXT_SIZE, this.#n], [Ds.FREETEXT_COLOR, this.color]];
@@ -211781,7 +211787,7 @@ class $m extends Ui {
211781
211787
  return null;
211782
211788
  if (this.deleted)
211783
211789
  return this.serializeDeleted();
211784
- const n = Ui._colorManager.convert(this.isAttachedToDOM ? getComputedStyle(this.editorDiv).color : this.color), r = Object.assign(super.serialize(e), {
211790
+ const n = qi._colorManager.convert(this.isAttachedToDOM ? getComputedStyle(this.editorDiv).color : this.color), r = Object.assign(super.serialize(e), {
211785
211791
  color: n,
211786
211792
  fontSize: this.#n,
211787
211793
  value: this.#p()
@@ -212248,7 +212254,7 @@ class cza extends Fpn {
212248
212254
  return new s6e(e, n, r, i, o, l);
212249
212255
  }
212250
212256
  }
212251
- class zd extends Ui {
212257
+ class zd extends qi {
212252
212258
  #e = null;
212253
212259
  #t = 0;
212254
212260
  #r;
@@ -212393,7 +212399,7 @@ class zd extends Ui {
212393
212399
  this.#h = [(m[0] - o) / u, (m[1] - l) / d];
212394
212400
  }
212395
212401
  static initialize(e, n) {
212396
- Ui.initialize(e, n), zd._defaultColor ||= n.highlightColors?.values().next().value || "#fff066";
212402
+ qi.initialize(e, n), zd._defaultColor ||= n.highlightColors?.values().next().value || "#fff066";
212397
212403
  }
212398
212404
  static updateDefaultParams(e, n) {
212399
212405
  switch (e) {
@@ -212869,7 +212875,7 @@ class zd extends Ui {
212869
212875
  return null;
212870
212876
  if (this.deleted)
212871
212877
  return this.serializeDeleted();
212872
- const n = Ui._colorManager.convert(this._uiManager.getNonHCMColor(this.color)), r = super.serialize(e);
212878
+ const n = qi._colorManager.convert(this._uiManager.getNonHCMColor(this.color)), r = super.serialize(e);
212873
212879
  return Object.assign(r, {
212874
212880
  color: n,
212875
212881
  opacity: this.opacity,
@@ -212923,7 +212929,7 @@ class Qpn {
212923
212929
  Ll("Not implemented");
212924
212930
  }
212925
212931
  }
212926
- class Cl extends Ui {
212932
+ class Cl extends qi {
212927
212933
  #e = null;
212928
212934
  #t;
212929
212935
  _colorPicker = null;
@@ -213781,7 +213787,7 @@ class Lve extends Qpn {
213781
213787
  constructor(e) {
213782
213788
  super(), this._viewParameters = e, super.updateProperties({
213783
213789
  fill: "none",
213784
- stroke: Ui._defaultLineColor,
213790
+ stroke: qi._defaultLineColor,
213785
213791
  "stroke-opacity": 1,
213786
213792
  "stroke-width": 1,
213787
213793
  "stroke-linecap": "round",
@@ -213808,7 +213814,7 @@ class oXe extends Cl {
213808
213814
  }), this._willKeepAspectRatio = !0, this.defaultL10nId = "pdfjs-editor-ink-editor";
213809
213815
  }
213810
213816
  static initialize(e, n) {
213811
- Ui.initialize(e, n), this._defaultDrawingOptions = new Lve(n.viewParameters);
213817
+ qi.initialize(e, n), this._defaultDrawingOptions = new Lve(n.viewParameters);
213812
213818
  }
213813
213819
  static getDefaultDrawingOptions(e) {
213814
213820
  const n = this._defaultDrawingOptions.clone();
@@ -213930,7 +213936,7 @@ class oXe extends Cl {
213930
213936
  "stroke-width": l
213931
213937
  }
213932
213938
  } = this, u = Object.assign(super.serialize(e), {
213933
- color: Ui._colorManager.convert(i),
213939
+ color: qi._colorManager.convert(i),
213934
213940
  opacity: o,
213935
213941
  thickness: l,
213936
213942
  paths: {
@@ -214359,7 +214365,7 @@ class nL {
214359
214365
  class sXe extends Qpn {
214360
214366
  constructor() {
214361
214367
  super(), super.updateProperties({
214362
- fill: Ui._defaultLineColor,
214368
+ fill: qi._defaultLineColor,
214363
214369
  "stroke-width": 0
214364
214370
  });
214365
214371
  }
@@ -214371,7 +214377,7 @@ class sXe extends Qpn {
214371
214377
  class lXe extends Lve {
214372
214378
  constructor(e) {
214373
214379
  super(e), super.updateProperties({
214374
- stroke: Ui._defaultLineColor,
214380
+ stroke: qi._defaultLineColor,
214375
214381
  "stroke-width": 1
214376
214382
  });
214377
214383
  }
@@ -214396,7 +214402,7 @@ class vk extends Cl {
214396
214402
  }), this._willKeepAspectRatio = !0, this.#r = e.signatureData || null, this.#t = null, this.defaultL10nId = "pdfjs-editor-signature-editor1";
214397
214403
  }
214398
214404
  static initialize(e, n) {
214399
- Ui.initialize(e, n), this._defaultDrawingOptions = new sXe(), this._defaultDrawnSignatureOptions = new lXe(n.viewParameters);
214405
+ qi.initialize(e, n), this._defaultDrawingOptions = new sXe(), this._defaultDrawnSignatureOptions = new lXe(n.viewParameters);
214400
214406
  }
214401
214407
  static getDefaultDrawingOptions(e) {
214402
214408
  const n = this._defaultDrawingOptions.clone();
@@ -214622,7 +214628,7 @@ class vk extends Cl {
214622
214628
  return i.#e = e.areContours, i.description = e.accessibilityData?.alt || "", i.#n = e.uuid, i;
214623
214629
  }
214624
214630
  }
214625
- class dza extends Ui {
214631
+ class dza extends qi {
214626
214632
  #e = null;
214627
214633
  #t = null;
214628
214634
  #r = null;
@@ -214643,7 +214649,7 @@ class dza extends Ui {
214643
214649
  }), this.#n = e.bitmapUrl, this.#a = e.bitmapFile, this.defaultL10nId = "pdfjs-editor-stamp-editor";
214644
214650
  }
214645
214651
  static initialize(e, n) {
214646
- Ui.initialize(e, n);
214652
+ qi.initialize(e, n);
214647
214653
  }
214648
214654
  static isHandlingMimeForPasting(e) {
214649
214655
  return uge.includes(e);
@@ -215347,7 +215353,7 @@ class Ek {
215347
215353
  this.detach(e), this.#d.removeEditor(e), e.div.remove(), e.isAttachedToDOM = !1;
215348
215354
  }
215349
215355
  changeParent(e) {
215350
- e.parent !== this && (e.parent && e.annotationElementId && (this.#d.addDeletedAnnotationElement(e), Ui.deleteAnnotationElement(e), e.annotationElementId = null), this.attach(e), e.parent?.detach(e), e.setParent(this), e.div && e.isAttachedToDOM && (e.div.remove(), this.div.append(e.div)));
215356
+ e.parent !== this && (e.parent && e.annotationElementId && (this.#d.addDeletedAnnotationElement(e), qi.deleteAnnotationElement(e), e.annotationElementId = null), this.attach(e), e.parent?.detach(e), e.setParent(this), e.div && e.isAttachedToDOM && (e.div.remove(), this.div.append(e.div)));
215351
215357
  }
215352
215358
  add(e) {
215353
215359
  if (!(e.parent === this && e.isAttachedToDOM)) {
@@ -311600,7 +311606,7 @@ function Gvi({
311600
311606
  ] })
311601
311607
  ] }),
311602
311608
  /* @__PURE__ */ A.jsx(
311603
- ji,
311609
+ $i,
311604
311610
  {
311605
311611
  label: u("skillMarketplace.publish.commitMessage.label"),
311606
311612
  required: !0,
@@ -311622,7 +311628,7 @@ function Gvi({
311622
311628
  }
311623
311629
  ),
311624
311630
  /* @__PURE__ */ A.jsx(
311625
- ji,
311631
+ $i,
311626
311632
  {
311627
311633
  label: u("skillMarketplace.publish.readme.label"),
311628
311634
  hint: u("skillMarketplace.publish.readme.hint"),
@@ -359441,7 +359447,7 @@ var lLt = dwe, Ztt = (t, e, n) => {
359441
359447
  throw TypeError("Cannot add the same private member more than once");
359442
359448
  e instanceof WeakSet ? e.add(t) : e.set(t, n);
359443
359449
  }, k_ = (t, e, n, r) => (Ztt(t, e, "write to private field"), e.set(t, n), n), aw = (t, e, n) => (Ztt(t, e, "access private method"), n), QG, nfe, uF, gj, D8, gje, dF, nce, hje, C2n, fje, S2n, ZK, pwe, mwe, Xtt, hj, XK, hT, rce;
359444
- const qi = {
359450
+ const Gi = {
359445
359451
  AUDIO: "audio",
359446
359452
  AUTOHIDE: "autohide",
359447
359453
  BREAKPOINTS: "breakpoints",
@@ -359470,7 +359476,7 @@ function fji(t) {
359470
359476
  overflow: hidden;
359471
359477
  }
359472
359478
 
359473
- :host(:not([${qi.AUDIO}])) [part~=layer]:not([part~=media-layer]) {
359479
+ :host(:not([${Gi.AUDIO}])) [part~=layer]:not([part~=media-layer]) {
359474
359480
  position: absolute;
359475
359481
  top: 0;
359476
359482
  left: 0;
@@ -359488,19 +359494,19 @@ function fji(t) {
359488
359494
  }
359489
359495
 
359490
359496
 
359491
- :host([${qi.AUDIO}]) slot[name=media] {
359497
+ :host([${Gi.AUDIO}]) slot[name=media] {
359492
359498
  display: var(--media-slot-display, none);
359493
359499
  }
359494
359500
 
359495
359501
 
359496
- :host([${qi.AUDIO}]) [part~=layer][part~=gesture-layer] {
359502
+ :host([${Gi.AUDIO}]) [part~=layer][part~=gesture-layer] {
359497
359503
  height: 0;
359498
359504
  display: block;
359499
359505
  }
359500
359506
 
359501
359507
 
359502
- :host(:not([${qi.AUDIO}])[${qi.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]),
359503
- :host(:not([${qi.AUDIO}])[${qi.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] {
359508
+ :host(:not([${Gi.AUDIO}])[${Gi.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]),
359509
+ :host(:not([${Gi.AUDIO}])[${Gi.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] {
359504
359510
  display: none;
359505
359511
  }
359506
359512
 
@@ -359509,13 +359515,13 @@ function fji(t) {
359509
359515
  pointer-events: auto;
359510
359516
  }
359511
359517
 
359512
- :host(:not([${qi.AUDIO}])) *[part~=layer][part~=centered-layer] {
359518
+ :host(:not([${Gi.AUDIO}])) *[part~=layer][part~=centered-layer] {
359513
359519
  align-items: center;
359514
359520
  justify-content: center;
359515
359521
  }
359516
359522
 
359517
- :host(:not([${qi.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),
359518
- :host(:not([${qi.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] {
359523
+ :host(:not([${Gi.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),
359524
+ :host(:not([${Gi.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] {
359519
359525
  align-self: stretch;
359520
359526
  flex-grow: 1;
359521
359527
  }
@@ -359535,7 +359541,7 @@ function fji(t) {
359535
359541
  }
359536
359542
 
359537
359543
 
359538
- :host(:not([${qi.AUDIO}])) .spacer {
359544
+ :host(:not([${Gi.AUDIO}])) .spacer {
359539
359545
  flex-grow: 1;
359540
359546
  }
359541
359547
 
@@ -359547,22 +359553,22 @@ function fji(t) {
359547
359553
  }
359548
359554
 
359549
359555
 
359550
- ::slotted(:not([slot=media]):not([slot=poster]):not([${qi.NO_AUTOHIDE}]):not([hidden]):not([role=dialog])) {
359556
+ ::slotted(:not([slot=media]):not([slot=poster]):not([${Gi.NO_AUTOHIDE}]):not([hidden]):not([role=dialog])) {
359551
359557
  opacity: 1;
359552
359558
  transition: var(--media-control-transition-in, opacity 0.25s);
359553
359559
  }
359554
359560
 
359555
359561
 
359556
- :host([${qi.USER_INACTIVE}]:not([${un.MEDIA_PAUSED}]):not([${un.MEDIA_IS_AIRPLAYING}]):not([${un.MEDIA_IS_CASTING}]):not([${qi.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${qi.NO_AUTOHIDE}]):not([role=dialog])) {
359562
+ :host([${Gi.USER_INACTIVE}]:not([${un.MEDIA_PAUSED}]):not([${un.MEDIA_IS_AIRPLAYING}]):not([${un.MEDIA_IS_CASTING}]):not([${Gi.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${Gi.NO_AUTOHIDE}]):not([role=dialog])) {
359557
359563
  opacity: 0;
359558
359564
  transition: var(--media-control-transition-out, opacity 1s);
359559
359565
  }
359560
359566
 
359561
- :host([${qi.USER_INACTIVE}]:not([${qi.NO_AUTOHIDE}]):not([${un.MEDIA_PAUSED}]):not([${un.MEDIA_IS_CASTING}]):not([${qi.AUDIO}])) ::slotted([slot=media]) {
359567
+ :host([${Gi.USER_INACTIVE}]:not([${Gi.NO_AUTOHIDE}]):not([${un.MEDIA_PAUSED}]):not([${un.MEDIA_IS_CASTING}]):not([${Gi.AUDIO}])) ::slotted([slot=media]) {
359562
359568
  cursor: none;
359563
359569
  }
359564
359570
 
359565
- :host([${qi.USER_INACTIVE}][${qi.AUTOHIDE_OVER_CONTROLS}]:not([${qi.NO_AUTOHIDE}]):not([${un.MEDIA_PAUSED}]):not([${un.MEDIA_IS_CASTING}]):not([${qi.AUDIO}])) * {
359571
+ :host([${Gi.USER_INACTIVE}][${Gi.AUTOHIDE_OVER_CONTROLS}]:not([${Gi.NO_AUTOHIDE}]):not([${un.MEDIA_PAUSED}]):not([${un.MEDIA_IS_CASTING}]):not([${Gi.AUDIO}])) * {
359566
359572
  --media-cursor: none;
359567
359573
  cursor: none;
359568
359574
  }
@@ -359573,7 +359579,7 @@ function fji(t) {
359573
359579
  }
359574
359580
 
359575
359581
 
359576
- :host(:not([${qi.AUDIO}])[${un.MEDIA_HAS_PLAYED}]) slot[name=poster] {
359582
+ :host(:not([${Gi.AUDIO}])[${un.MEDIA_HAS_PLAYED}]) slot[name=poster] {
359577
359583
  display: none;
359578
359584
  }
359579
359585
 
@@ -359616,7 +359622,7 @@ function I2n(t, e) {
359616
359622
  var n;
359617
359623
  if (!t.isConnected)
359618
359624
  return;
359619
- const r = (n = t.getAttribute(qi.BREAKPOINTS)) != null ? n : bji, i = vji(r), o = _ji(i, e);
359625
+ const r = (n = t.getAttribute(Gi.BREAKPOINTS)) != null ? n : bji, i = vji(r), o = _ji(i, e);
359620
359626
  let l = !1;
359621
359627
  if (Object.keys(i).forEach((u) => {
359622
359628
  if (o.includes(u)) {
@@ -359687,7 +359693,7 @@ class gwe extends Hn.HTMLElement {
359687
359693
  k_(this, QG, new MutationObserver(Ud(this, gje)));
359688
359694
  }
359689
359695
  static get observedAttributes() {
359690
- return [qi.AUTOHIDE, qi.GESTURES_DISABLED].concat(Aji).filter(
359696
+ return [Gi.AUTOHIDE, Gi.GESTURES_DISABLED].concat(Aji).filter(
359691
359697
  (e) => ![
359692
359698
  un.MEDIA_RENDITION_LIST,
359693
359699
  un.MEDIA_AUDIO_TRACK_LIST,
@@ -359701,7 +359707,7 @@ class gwe extends Hn.HTMLElement {
359701
359707
  }
359702
359708
  // Could share this code with media-chrome-html-element instead
359703
359709
  attributeChangedCallback(e, n, r) {
359704
- e.toLowerCase() == qi.AUTOHIDE && (this.autohide = r);
359710
+ e.toLowerCase() == Gi.AUTOHIDE && (this.autohide = r);
359705
359711
  }
359706
359712
  // First direct child with slot=media, or null
359707
359713
  get media() {
@@ -359714,8 +359720,8 @@ class gwe extends Hn.HTMLElement {
359714
359720
  connectedCallback() {
359715
359721
  var e;
359716
359722
  Ud(this, QG).observe(this, { childList: !0, subtree: !0 }), pj(this, Ud(this, nce));
359717
- const n = this.getAttribute(qi.AUDIO) != null, r = _a(n ? "audio player" : "video player");
359718
- this.setAttribute("role", "region"), this.setAttribute("aria-label", r), this.handleMediaUpdated(this.media), this.setAttribute(qi.USER_INACTIVE, ""), I2n(this, this.getBoundingClientRect().width);
359723
+ const n = this.getAttribute(Gi.AUDIO) != null, r = _a(n ? "audio player" : "video player");
359724
+ this.setAttribute("role", "region"), this.setAttribute("aria-label", r), this.handleMediaUpdated(this.media), this.setAttribute(Gi.USER_INACTIVE, ""), I2n(this, this.getBoundingClientRect().width);
359719
359725
  const i = this.querySelector(
359720
359726
  ":scope > slot[slot=media]"
359721
359727
  );
@@ -359748,10 +359754,10 @@ class gwe extends Hn.HTMLElement {
359748
359754
  aw(this, ZK, pwe).call(this);
359749
359755
  break;
359750
359756
  case "mouseup":
359751
- this.removeAttribute(qi.KEYBOARD_CONTROL);
359757
+ this.removeAttribute(Gi.KEYBOARD_CONTROL);
359752
359758
  break;
359753
359759
  case "keyup":
359754
- aw(this, hj, XK).call(this), this.setAttribute(qi.KEYBOARD_CONTROL, "");
359760
+ aw(this, hj, XK).call(this), this.setAttribute(Gi.KEYBOARD_CONTROL, "");
359755
359761
  break;
359756
359762
  }
359757
359763
  }
@@ -359763,46 +359769,46 @@ class gwe extends Hn.HTMLElement {
359763
359769
  return (Ud(this, D8) === void 0 ? 2 : Ud(this, D8)).toString();
359764
359770
  }
359765
359771
  get breakpoints() {
359766
- return gu(this, qi.BREAKPOINTS);
359772
+ return gu(this, Gi.BREAKPOINTS);
359767
359773
  }
359768
359774
  set breakpoints(e) {
359769
- qc(this, qi.BREAKPOINTS, e);
359775
+ qc(this, Gi.BREAKPOINTS, e);
359770
359776
  }
359771
359777
  get audio() {
359772
- return Rs(this, qi.AUDIO);
359778
+ return Rs(this, Gi.AUDIO);
359773
359779
  }
359774
359780
  set audio(e) {
359775
- Ls(this, qi.AUDIO, e);
359781
+ Ls(this, Gi.AUDIO, e);
359776
359782
  }
359777
359783
  get gesturesDisabled() {
359778
- return Rs(this, qi.GESTURES_DISABLED);
359784
+ return Rs(this, Gi.GESTURES_DISABLED);
359779
359785
  }
359780
359786
  set gesturesDisabled(e) {
359781
- Ls(this, qi.GESTURES_DISABLED, e);
359787
+ Ls(this, Gi.GESTURES_DISABLED, e);
359782
359788
  }
359783
359789
  get keyboardControl() {
359784
- return Rs(this, qi.KEYBOARD_CONTROL);
359790
+ return Rs(this, Gi.KEYBOARD_CONTROL);
359785
359791
  }
359786
359792
  set keyboardControl(e) {
359787
- Ls(this, qi.KEYBOARD_CONTROL, e);
359793
+ Ls(this, Gi.KEYBOARD_CONTROL, e);
359788
359794
  }
359789
359795
  get noAutohide() {
359790
- return Rs(this, qi.NO_AUTOHIDE);
359796
+ return Rs(this, Gi.NO_AUTOHIDE);
359791
359797
  }
359792
359798
  set noAutohide(e) {
359793
- Ls(this, qi.NO_AUTOHIDE, e);
359799
+ Ls(this, Gi.NO_AUTOHIDE, e);
359794
359800
  }
359795
359801
  get autohideOverControls() {
359796
- return Rs(this, qi.AUTOHIDE_OVER_CONTROLS);
359802
+ return Rs(this, Gi.AUTOHIDE_OVER_CONTROLS);
359797
359803
  }
359798
359804
  set autohideOverControls(e) {
359799
- Ls(this, qi.AUTOHIDE_OVER_CONTROLS, e);
359805
+ Ls(this, Gi.AUTOHIDE_OVER_CONTROLS, e);
359800
359806
  }
359801
359807
  get userInteractive() {
359802
- return Rs(this, qi.USER_INACTIVE);
359808
+ return Rs(this, Gi.USER_INACTIVE);
359803
359809
  }
359804
359810
  set userInteractive(e) {
359805
- Ls(this, qi.USER_INACTIVE, e);
359811
+ Ls(this, Gi.USER_INACTIVE, e);
359806
359812
  }
359807
359813
  }
359808
359814
  QG = /* @__PURE__ */ new WeakMap();
@@ -359819,14 +359825,14 @@ C2n = function(t) {
359819
359825
  return;
359820
359826
  aw(this, mwe, Xtt).call(this), clearTimeout(Ud(this, gj));
359821
359827
  const e = this.hasAttribute(
359822
- qi.AUTOHIDE_OVER_CONTROLS
359828
+ Gi.AUTOHIDE_OVER_CONTROLS
359823
359829
  );
359824
359830
  ([this, this.media].includes(t.target) || e) && aw(this, hj, XK).call(this);
359825
359831
  };
359826
359832
  fje = /* @__PURE__ */ new WeakSet();
359827
359833
  S2n = function(t) {
359828
359834
  if (t.pointerType === "touch") {
359829
- const e = !this.hasAttribute(qi.USER_INACTIVE);
359835
+ const e = !this.hasAttribute(Gi.USER_INACTIVE);
359830
359836
  [this, this.media].includes(t.target) && e ? aw(this, ZK, pwe).call(this) : aw(this, hj, XK).call(this);
359831
359837
  } else t.composedPath().some(
359832
359838
  (e) => ["media-play-button", "media-fullscreen-button"].includes(
@@ -359836,9 +359842,9 @@ S2n = function(t) {
359836
359842
  };
359837
359843
  ZK = /* @__PURE__ */ new WeakSet();
359838
359844
  pwe = function() {
359839
- if (Ud(this, D8) < 0 || this.hasAttribute(qi.USER_INACTIVE))
359845
+ if (Ud(this, D8) < 0 || this.hasAttribute(Gi.USER_INACTIVE))
359840
359846
  return;
359841
- this.setAttribute(qi.USER_INACTIVE, "");
359847
+ this.setAttribute(Gi.USER_INACTIVE, "");
359842
359848
  const t = new Hn.CustomEvent(
359843
359849
  KE.USER_INACTIVE_CHANGE,
359844
359850
  { composed: !0, bubbles: !0, detail: !0 }
@@ -359847,9 +359853,9 @@ pwe = function() {
359847
359853
  };
359848
359854
  mwe = /* @__PURE__ */ new WeakSet();
359849
359855
  Xtt = function() {
359850
- if (!this.hasAttribute(qi.USER_INACTIVE))
359856
+ if (!this.hasAttribute(Gi.USER_INACTIVE))
359851
359857
  return;
359852
- this.removeAttribute(qi.USER_INACTIVE);
359858
+ this.removeAttribute(Gi.USER_INACTIVE);
359853
359859
  const t = new Hn.CustomEvent(
359854
359860
  KE.USER_INACTIVE_CHANGE,
359855
359861
  { composed: !0, bubbles: !0, detail: !1 }
@@ -370808,7 +370814,7 @@ Zce = /* @__PURE__ */ new WeakMap(), VW = /* @__PURE__ */ new WeakMap(), Xce = /
370808
370814
  } catch {
370809
370815
  y0("<media-controller> failed to upgrade!");
370810
370816
  }
370811
- qd(this, Vu, c4t).call(this), qd(this, Vu, u4t).call(this), qd(this, Vu, d4t).call(this), wb(this, Q3, (e = (t = this.mediaController) == null ? void 0 : t.hasAttribute(qi.USER_INACTIVE)) != null ? e : !0), qd(this, Vu, p4t).call(this), (n = this.media) == null || n.addEventListener("streamtypechange", Go(this, Sfe)), (r = this.media) == null || r.addEventListener("loadstart", Go(this, Ife));
370817
+ qd(this, Vu, c4t).call(this), qd(this, Vu, u4t).call(this), qd(this, Vu, d4t).call(this), wb(this, Q3, (e = (t = this.mediaController) == null ? void 0 : t.hasAttribute(Gi.USER_INACTIVE)) != null ? e : !0), qd(this, Vu, p4t).call(this), (n = this.media) == null || n.addEventListener("streamtypechange", Go(this, Sfe)), (r = this.media) == null || r.addEventListener("loadstart", Go(this, Ife));
370812
370818
  }
370813
370819
  }, gTn = function() {
370814
370820
  var t, e;
@@ -370860,7 +370866,7 @@ Zce = /* @__PURE__ */ new WeakMap(), VW = /* @__PURE__ */ new WeakMap(), Xce = /
370860
370866
  });
370861
370867
  }, l = () => {
370862
370868
  var p, m;
370863
- o(n, (m = (p = this.mediaController) == null ? void 0 : p.hasAttribute(qi.USER_INACTIVE)) != null ? m : !1);
370869
+ o(n, (m = (p = this.mediaController) == null ? void 0 : p.hasAttribute(Gi.USER_INACTIVE)) != null ? m : !1);
370864
370870
  }, u = () => {
370865
370871
  var p, m;
370866
370872
  let g = Array.from(((m = (p = this.mediaController) == null ? void 0 : p.media) == null ? void 0 : m.textTracks) || []).filter((h) => ["subtitles", "captions"].includes(h.kind) && h.mode === "showing")[0];
@@ -370869,7 +370875,7 @@ Zce = /* @__PURE__ */ new WeakMap(), VW = /* @__PURE__ */ new WeakMap(), Xce = /
370869
370875
  u(), (t = this.textTracks) == null || t.addEventListener("change", u), (e = this.textTracks) == null || e.addEventListener("addtrack", u);
370870
370876
  let d = () => {
370871
370877
  var p, m;
370872
- let g = (m = (p = this.mediaController) == null ? void 0 : p.hasAttribute(qi.USER_INACTIVE)) != null ? m : !0;
370878
+ let g = (m = (p = this.mediaController) == null ? void 0 : p.hasAttribute(Gi.USER_INACTIVE)) != null ? m : !0;
370873
370879
  Go(this, Q3) !== g && (wb(this, Q3, g), o(n, Go(this, Q3)));
370874
370880
  };
370875
370881
  this.addEventListener("userinactivechange", d), wb(this, ZW, () => {
@@ -379659,7 +379665,7 @@ am && am.document;
379659
379665
  var PZi = Sm(""), jBn = Sm({}), OZi = Sm(function() {
379660
379666
  }), FZi = typeof HTMLElement > "u" ? "undefined" : Sm(HTMLElement), Iee = function(e) {
379661
379667
  return e && e.instanceString && ld(e.instanceString) ? e.instanceString() : null;
379662
- }, $i = function(e) {
379668
+ }, zi = function(e) {
379663
379669
  return e != null && Sm(e) == PZi;
379664
379670
  }, ld = function(e) {
379665
379671
  return e != null && Sm(e) === OZi;
@@ -380508,7 +380514,7 @@ var WMt = !0, vXi = console.warn != null, _Xi = console.trace != null, Irt = Num
380508
380514
  };
380509
380515
  }
380510
380516
  var p = [];
380511
- Tc(n.classes) ? p = n.classes : $i(n.classes) && (p = n.classes.split(/\s+/));
380517
+ Tc(n.classes) ? p = n.classes : zi(n.classes) && (p = n.classes.split(/\s+/));
380512
380518
  for (var m = 0, g = p.length; m < g; m++) {
380513
380519
  var h = p[m];
380514
380520
  !h || h === "" || o.classes.add(h);
@@ -380524,7 +380530,7 @@ var WMt = !0, vXi = console.warn != null, _Xi = console.trace != null, Irt = Num
380524
380530
  var l;
380525
380531
  cl(r) && !W0(r) && (l = r, r = l.roots || l.root, i = l.visit, o = l.directed), o = arguments.length === 2 && !ld(i) ? i : o, i = ld(i) ? i : function() {
380526
380532
  };
380527
- for (var u = this._private.cy, d = r = $i(r) ? this.filter(r) : r, p = [], m = [], g = {}, h = {}, f = {}, b = 0, y, v = this.byGroup(), _ = v.nodes, w = v.edges, x = 0; x < d.length; x++) {
380533
+ for (var u = this._private.cy, d = r = zi(r) ? this.filter(r) : r, p = [], m = [], g = {}, h = {}, f = {}, b = 0, y, v = this.byGroup(), _ = v.nodes, w = v.edges, x = 0; x < d.length; x++) {
380528
380534
  var k = d[x], C = k.id();
380529
380535
  k.isNode() && (p.unshift(k), e.bfs && (f[C] = !0, m.push(k)), h[C] = 0);
380530
380536
  }
@@ -380703,7 +380709,7 @@ var NXi = DXi(), Lee = /* @__PURE__ */ Bee(NXi), RXi = sh({
380703
380709
  directed: n[2]
380704
380710
  };
380705
380711
  }
380706
- var r = RXi(e), i = r.root, o = r.weight, l = r.directed, u = this, d = o, p = $i(i) ? this.filter(i)[0] : i[0], m = {}, g = {}, h = {}, f = this.byGroup(), b = f.nodes, y = f.edges;
380712
+ var r = RXi(e), i = r.root, o = r.weight, l = r.directed, u = this, d = o, p = zi(i) ? this.filter(i)[0] : i[0], m = {}, g = {}, h = {}, f = this.byGroup(), b = f.nodes, y = f.edges;
380707
380713
  y.unmergeBy(function(M) {
380708
380714
  return M.isLoop();
380709
380715
  });
@@ -380739,11 +380745,11 @@ var NXi = DXi(), Lee = /* @__PURE__ */ Bee(NXi), RXi = sh({
380739
380745
  }
380740
380746
  return {
380741
380747
  distanceTo: function(P) {
380742
- var O = $i(P) ? b.filter(P)[0] : P[0];
380748
+ var O = zi(P) ? b.filter(P)[0] : P[0];
380743
380749
  return h[O.id()];
380744
380750
  },
380745
380751
  pathTo: function(P) {
380746
- var O = $i(P) ? b.filter(P)[0] : P[0], F = [], j = O, Q = j.id();
380752
+ var O = zi(P) ? b.filter(P)[0] : P[0], F = [], j = O, Q = j.id();
380747
380753
  if (O.length > 0)
380748
380754
  for (F.unshift(O); g[Q]; ) {
380749
380755
  var $ = g[Q];
@@ -380868,7 +380874,7 @@ var NXi = DXi(), Lee = /* @__PURE__ */ Bee(NXi), RXi = sh({
380868
380874
  b[M] + b[F] < b[O] && (b[O] = b[M] + b[F], w[O] = w[M]);
380869
380875
  }
380870
380876
  var j = function(G) {
380871
- return ($i(G) ? n.filter(G) : G)[0];
380877
+ return (zi(G) ? n.filter(G) : G)[0];
380872
380878
  }, Q = function(G) {
380873
380879
  return h(j(G));
380874
380880
  }, $ = {
@@ -380908,7 +380914,7 @@ var NXi = DXi(), Lee = /* @__PURE__ */ Bee(NXi), RXi = sh({
380908
380914
  var De = b.get(ve.id());
380909
380915
  return De || (De = {}, b.set(ve.id(), De)), De;
380910
380916
  }, x = function(ve) {
380911
- return ($i(ve) ? p.$(ve) : ve)[0];
380917
+ return (zi(ve) ? p.$(ve) : ve)[0];
380912
380918
  }, k = function(ve) {
380913
380919
  return w(x(ve)).dist;
380914
380920
  }, C = function(ve) {
@@ -381650,10 +381656,10 @@ var fJi = sh({
381650
381656
  }
381651
381657
  return {
381652
381658
  indegree: function(x) {
381653
- return h == 0 ? 0 : ($i(x) && (x = n.filter(x)), m[x.id()] / h);
381659
+ return h == 0 ? 0 : (zi(x) && (x = n.filter(x)), m[x.id()] / h);
381654
381660
  },
381655
381661
  outdegree: function(x) {
381656
- return f === 0 ? 0 : ($i(x) && (x = n.filter(x)), g[x.id()] / f);
381662
+ return f === 0 ? 0 : (zi(x) && (x = n.filter(x)), g[x.id()] / f);
381657
381663
  }
381658
381664
  };
381659
381665
  } else {
@@ -381665,7 +381671,7 @@ var fJi = sh({
381665
381671
  }
381666
381672
  return {
381667
381673
  degree: function(x) {
381668
- return l === 0 ? 0 : ($i(x) && (x = n.filter(x)), o[x.id()] / l);
381674
+ return l === 0 ? 0 : (zi(x) && (x = n.filter(x)), o[x.id()] / l);
381669
381675
  }
381670
381676
  };
381671
381677
  }
@@ -381724,7 +381730,7 @@ var tPt = sh({
381724
381730
  }
381725
381731
  return {
381726
381732
  closeness: function(_) {
381727
- return d == 0 ? 0 : ($i(_) ? _ = l.filter(_)[0].id() : _ = _.id(), u[_] / d);
381733
+ return d == 0 ? 0 : (zi(_) ? _ = l.filter(_)[0].id() : _ = _.id(), u[_] / d);
381728
381734
  }
381729
381735
  };
381730
381736
  },
@@ -382379,7 +382385,7 @@ var LJi = sh({
382379
382385
  };
382380
382386
  }
382381
382387
  var r = teo(e), i = r.root, o = r.directed, l = this, u = !1, d, p, m;
382382
- i && (m = $i(i) ? this.filter(i)[0].id() : i[0].id());
382388
+ i && (m = zi(i) ? this.filter(i)[0].id() : i[0].id());
382383
382389
  var g = {}, h = {};
382384
382390
  o ? l.forEach(function(w) {
382385
382391
  var x = w.id();
@@ -383507,7 +383513,7 @@ var Keo = Veo(), Zeo = /* @__PURE__ */ Bee(Keo), Xeo = {
383507
383513
  };
383508
383514
  return e = Ki({}, n, e), function(i, o) {
383509
383515
  var l = e, u = this, d = u.length !== void 0, p = d ? u : [u], m = d ? u[0] : u;
383510
- if ($i(i)) {
383516
+ if (zi(i)) {
383511
383517
  var g = i.indexOf(".") !== -1, h = g && Zeo(i);
383512
383518
  if (l.allowGetting && o === void 0) {
383513
383519
  var f;
@@ -383560,7 +383566,7 @@ var Keo = Veo(), Zeo = /* @__PURE__ */ Bee(Keo), Xeo = {
383560
383566
  };
383561
383567
  return e = Ki({}, n, e), function(i) {
383562
383568
  var o = e, l = this, u = l.length !== void 0, d = u ? l : [l];
383563
- if ($i(i)) {
383569
+ if (zi(i)) {
383564
383570
  for (var p = i.split(/\s+/), m = p.length, g = 0; g < m; g++) {
383565
383571
  var h = p[g];
383566
383572
  if (!FD(h)) {
@@ -384191,7 +384197,7 @@ var ato = function(e) {
384191
384197
  for (var e = function(m) {
384192
384198
  return m ?? "";
384193
384199
  }, n = function(m) {
384194
- return $i(m) ? '"' + m + '"' : e(m);
384200
+ return zi(m) ? '"' + m + '"' : e(m);
384195
384201
  }, r = function(m) {
384196
384202
  return " " + m + " ";
384197
384203
  }, i = function(m, g) {
@@ -384249,7 +384255,7 @@ var ato = function(e) {
384249
384255
  parse: oto,
384250
384256
  toString: sto
384251
384257
  }, kDn = function(e, n, r) {
384252
- var i, o = $i(e), l = ha(e), u = $i(r), d, p, m = !1, g = !1, h = !1;
384258
+ var i, o = zi(e), l = ha(e), u = zi(r), d, p, m = !1, g = !1, h = !1;
384253
384259
  switch (n.indexOf("!") >= 0 && (n = n.replace("!", ""), g = !0), n.indexOf("@") >= 0 && (n = n.replace("@", ""), m = !0), (o || u || m) && (d = !o && !l ? "" : "" + e, p = "" + r), m && (e = d = d.toLowerCase(), r = p = p.toLowerCase()), n) {
384254
384260
  case "*=":
384255
384261
  i = d.indexOf(p) >= 0;
@@ -384412,7 +384418,7 @@ var pto = function(e) {
384412
384418
  matches: mto,
384413
384419
  filter: pto
384414
384420
  }, $D = function(e) {
384415
- this.inputText = e, this.currentSubject = null, this.compoundCount = 0, this.edgeCount = 0, this.length = 0, e == null || $i(e) && e.match(/^\s*$/) || (W0(e) ? this.addQuery({
384421
+ this.inputText = e, this.currentSubject = null, this.compoundCount = 0, this.edgeCount = 0, this.length = 0, e == null || zi(e) && e.match(/^\s*$/) || (W0(e) ? this.addQuery({
384416
384422
  checks: [{
384417
384423
  type: ti.COLLECTION,
384418
384424
  value: e.collection()
@@ -384422,7 +384428,7 @@ var pto = function(e) {
384422
384428
  type: ti.FILTER,
384423
384429
  value: e
384424
384430
  }]
384425
- }) : $i(e) ? this.parse(e) || (this.invalid = !0) : Nu("A selector must be created from a string; found "));
384431
+ }) : zi(e) ? this.parse(e) || (this.invalid = !0) : Nu("A selector must be created from a string; found "));
384426
384432
  }, zD = $D.prototype;
384427
384433
  [lto, gto].forEach(function(t) {
384428
384434
  return Ki(zD, t);
@@ -384836,7 +384842,7 @@ Tw = IDn = {
384836
384842
  if (cl(e) ? (i = {
384837
384843
  x: ha(e.x) ? e.x : 0,
384838
384844
  y: ha(e.y) ? e.y : 0
384839
- }, r = n) : $i(e) && ha(n) && (i = {
384845
+ }, r = n) : zi(e) && ha(n) && (i = {
384840
384846
  x: 0,
384841
384847
  y: 0
384842
384848
  }, i[e] = n), i != null) {
@@ -384857,11 +384863,11 @@ Tw = IDn = {
384857
384863
  return this;
384858
384864
  },
384859
384865
  silentShift: function(e, n) {
384860
- return cl(e) ? this.shift(e, !0) : $i(e) && ha(n) && this.shift(e, n, !0), this;
384866
+ return cl(e) ? this.shift(e, !0) : zi(e) && ha(n) && this.shift(e, n, !0), this;
384861
384867
  },
384862
384868
  // get/set the rendered (i.e. on screen) positon of the element
384863
384869
  renderedPosition: function(e, n) {
384864
- var r = this[0], i = this.cy(), o = i.zoom(), l = i.pan(), u = cl(e) ? e : void 0, d = u !== void 0 || n !== void 0 && $i(e);
384870
+ var r = this[0], i = this.cy(), o = i.zoom(), l = i.pan(), u = cl(e) ? e : void 0, d = u !== void 0 || n !== void 0 && zi(e);
384865
384871
  if (r && r.isNode())
384866
384872
  if (d)
384867
384873
  for (var p = 0; p < this.length; p++) {
@@ -384878,7 +384884,7 @@ Tw = IDn = {
384878
384884
  },
384879
384885
  // get/set the position relative to the parent
384880
384886
  relativePosition: function(e, n) {
384881
- var r = this[0], i = this.cy(), o = cl(e) ? e : void 0, l = o !== void 0 || n !== void 0 && $i(e), u = i.hasCompoundNodes();
384887
+ var r = this[0], i = this.cy(), o = cl(e) ? e : void 0, l = o !== void 0 || n !== void 0 && zi(e), u = i.hasCompoundNodes();
384882
384888
  if (r && r.isNode())
384883
384889
  if (l)
384884
384890
  for (var d = 0; d < this.length; d++) {
@@ -385585,7 +385591,7 @@ var Pto = {
385585
385591
  return e.isChild() ? e.parent() : e.cy();
385586
385592
  }
385587
385593
  }, Nie = function(e) {
385588
- return $i(e) ? new $D(e) : e;
385594
+ return zi(e) ? new $D(e) : e;
385589
385595
  }, FDn = {
385590
385596
  createEmitter: function() {
385591
385597
  for (var e = 0; e < this.length; e++) {
@@ -385672,7 +385678,7 @@ var QDn = {
385672
385678
  filter: function(e, n) {
385673
385679
  if (e === void 0)
385674
385680
  return this;
385675
- if ($i(e) || W0(e))
385681
+ if (zi(e) || W0(e))
385676
385682
  return new $D(e).filter(this);
385677
385683
  if (ld(e)) {
385678
385684
  for (var r = this.spawn(), i = this, o = 0; o < i.length; o++) {
@@ -385685,7 +385691,7 @@ var QDn = {
385685
385691
  },
385686
385692
  not: function(e) {
385687
385693
  if (e) {
385688
- $i(e) && (e = this.filter(e));
385694
+ zi(e) && (e = this.filter(e));
385689
385695
  for (var n = this.spawn(), r = 0; r < this.length; r++) {
385690
385696
  var i = this[r], o = e.has(i);
385691
385697
  o || n.push(i);
@@ -385699,7 +385705,7 @@ var QDn = {
385699
385705
  return e.mutableElements().not(this);
385700
385706
  },
385701
385707
  intersect: function(e) {
385702
- if ($i(e)) {
385708
+ if (zi(e)) {
385703
385709
  var n = e;
385704
385710
  return this.filter(n);
385705
385711
  }
@@ -385711,7 +385717,7 @@ var QDn = {
385711
385717
  },
385712
385718
  xor: function(e) {
385713
385719
  var n = this._private.cy;
385714
- $i(e) && (e = n.$(e));
385720
+ zi(e) && (e = n.$(e));
385715
385721
  var r = this.spawn(), i = this, o = e, l = function(d, p) {
385716
385722
  for (var m = 0; m < d.length; m++) {
385717
385723
  var g = d[m], h = g._private.data.id, f = p.hasElementWithId(h);
@@ -385722,7 +385728,7 @@ var QDn = {
385722
385728
  },
385723
385729
  diff: function(e) {
385724
385730
  var n = this._private.cy;
385725
- $i(e) && (e = n.$(e));
385731
+ zi(e) && (e = n.$(e));
385726
385732
  var r = this.spawn(), i = this.spawn(), o = this.spawn(), l = this, u = e, d = function(m, g, h) {
385727
385733
  for (var f = 0; f < m.length; f++) {
385728
385734
  var b = m[f], y = b._private.data.id, v = g.hasElementWithId(y);
@@ -385739,7 +385745,7 @@ var QDn = {
385739
385745
  var n = this._private.cy;
385740
385746
  if (!e)
385741
385747
  return this;
385742
- if ($i(e)) {
385748
+ if (zi(e)) {
385743
385749
  var r = e;
385744
385750
  e = n.mutableElements().filter(r);
385745
385751
  }
@@ -385754,7 +385760,7 @@ var QDn = {
385754
385760
  var n = this._private, r = n.cy;
385755
385761
  if (!e)
385756
385762
  return this;
385757
- if (e && $i(e)) {
385763
+ if (e && zi(e)) {
385758
385764
  var i = e;
385759
385765
  e = r.mutableElements().filter(i);
385760
385766
  }
@@ -385797,7 +385803,7 @@ var QDn = {
385797
385803
  var n = this._private.cy;
385798
385804
  if (!e)
385799
385805
  return this;
385800
- if (e && $i(e)) {
385806
+ if (e && zi(e)) {
385801
385807
  var r = e;
385802
385808
  e = n.mutableElements().filter(r);
385803
385809
  }
@@ -386199,7 +386205,7 @@ var Jg = {
386199
386205
  if (cl(e)) {
386200
386206
  var l = e;
386201
386207
  o.applyBypass(this, l, i), this.emitAndNotify("style");
386202
- } else if ($i(e))
386208
+ } else if (zi(e))
386203
386209
  if (n === void 0) {
386204
386210
  var u = this[0];
386205
386211
  return u ? o.getStylePropertyValue(u, e) : void 0;
@@ -386572,7 +386578,7 @@ Ki(df, {
386572
386578
  function E5t(t) {
386573
386579
  return function(n) {
386574
386580
  var r = [], i = this._private.cy, o = t || {};
386575
- $i(n) && (n = i.$(n));
386581
+ zi(n) && (n = i.$(n));
386576
386582
  for (var l = 0; l < n.length; l++)
386577
386583
  for (var u = n[l]._private.edges, d = 0; d < u.length; d++) {
386578
386584
  var p = u[d], m = p._private.data, g = this.hasElementWithId(m.source) && n.hasElementWithId(m.target), h = n.hasElementWithId(m.source) && this.hasElementWithId(m.target), f = g || h;
@@ -386831,7 +386837,7 @@ Wc.restore = function() {
386831
386837
  y.id = tDn();
386832
386838
  else if (ha(y.id))
386833
386839
  y.id = "" + y.id;
386834
- else if (FD(y.id) || !$i(y.id)) {
386840
+ else if (FD(y.id) || !zi(y.id)) {
386835
386841
  Nu("Can not create element with invalid string ID `" + y.id + "`"), h();
386836
386842
  continue;
386837
386843
  } else if (r.hasElementWithId(y.id)) {
@@ -387037,7 +387043,7 @@ var qto = {
387037
387043
  },
387038
387044
  remove: function(e) {
387039
387045
  if (!W0(e)) {
387040
- if ($i(e)) {
387046
+ if (zi(e)) {
387041
387047
  var n = e;
387042
387048
  e = this.$(n);
387043
387049
  }
@@ -387241,13 +387247,13 @@ function Wto(t, e, n, r) {
387241
387247
  l.easingImpl = uue.linear;
387242
387248
  else {
387243
387249
  var g;
387244
- if ($i(u)) {
387250
+ if (zi(u)) {
387245
387251
  var h = m.parse("transition-timing-function", u);
387246
387252
  g = h.value;
387247
387253
  } else
387248
387254
  g = u;
387249
387255
  var f, b;
387250
- $i(g) ? (f = g, b = []) : (f = g[1], b = g.slice(2).map(function(j) {
387256
+ zi(g) ? (f = g, b = []) : (f = g[1], b = g.slice(2).map(function(j) {
387251
387257
  return +j;
387252
387258
  })), b.length > 0 ? (f === "spring" && b.push(l.duration), l.easingImpl = uue[f].apply(null, b)) : l.easingImpl = uue[f];
387253
387259
  }
@@ -387356,7 +387362,7 @@ var Vto = {
387356
387362
  return n.qualifier != null ? r.target : e;
387357
387363
  }
387358
387364
  }, Rie = function(e) {
387359
- return $i(e) ? new $D(e) : e;
387365
+ return zi(e) ? new $D(e) : e;
387360
387366
  }, zDn = {
387361
387367
  createEmitter: function() {
387362
387368
  var e = this._private;
@@ -387416,7 +387422,7 @@ var due = {
387416
387422
  return;
387417
387423
  }
387418
387424
  var o;
387419
- $i(e.eles) ? o = n.$(e.eles) : o = e.eles != null ? e.eles : n.$();
387425
+ zi(e.eles) ? o = n.$(e.eles) : o = e.eles != null ? e.eles : n.$();
387420
387426
  var l = new i(Ki({}, e, {
387421
387427
  cy: n,
387422
387428
  eles: o
@@ -387552,7 +387558,7 @@ var pue = {
387552
387558
  // - collection of elements in the graph on selector arg
387553
387559
  // - guarantee a returned collection when elements or collection specified
387554
387560
  collection: function(e, n) {
387555
- return $i(e) ? this.$(e) : W0(e) ? e.collection() : Tc(e) ? (n || (n = {}), new eh(this, e, n.unique, n.removed)) : new eh(this);
387561
+ return zi(e) ? this.$(e) : W0(e) ? e.collection() : Tc(e) ? (n || (n = {}), new eh(this, e, n.unique, n.removed)) : new eh(this);
387556
387562
  },
387557
387563
  nodes: function(e) {
387558
387564
  var n = this.$(function(r) {
@@ -387904,7 +387910,7 @@ Pee.applyBypass = function(t, e, n, r) {
387904
387910
  var d = i.properties[u], p = d.name, m = this.parse(p, n, !0);
387905
387911
  m && o.push(m);
387906
387912
  }
387907
- } else if ($i(e)) {
387913
+ } else if (zi(e)) {
387908
387914
  var g = this.parse(e, n, !0);
387909
387915
  g && o.push(g);
387910
387916
  } else if (cl(e)) {
@@ -388007,7 +388013,7 @@ ZE.getStylePropertyValue = function(t, e, n) {
388007
388013
  return b ? f ? u.map(function(y, v) {
388008
388014
  return h(y, d[v]);
388009
388015
  }).join(" ") : h(u, d) : f ? u.map(function(y) {
388010
- return $i(y) ? y : "" + g(y);
388016
+ return zi(y) ? y : "" + g(y);
388011
388017
  }).join(" ") : "" + g(u);
388012
388018
  } else if (p != null)
388013
388019
  return p;
@@ -388490,7 +388496,7 @@ var Ap = {};
388490
388496
  case 2:
388491
388497
  return V[0] !== "deg" && V[0] !== "rad" && V[1] !== "deg" && V[1] !== "rad";
388492
388498
  case 1:
388493
- return $i(W[0]) || V[0] === "deg" || V[0] === "rad";
388499
+ return zi(W[0]) || V[0] === "deg" || V[0] === "rad";
388494
388500
  default:
388495
388501
  return !1;
388496
388502
  }
@@ -389568,7 +389574,7 @@ Zwe.parseImpl = function(t, e, n, r) {
389568
389574
  if (!o || e === void 0)
389569
389575
  return null;
389570
389576
  o.alias && (o = o.pointsTo, t = o.name);
389571
- var d = $i(e);
389577
+ var d = zi(e);
389572
389578
  d && (e = e.trim());
389573
389579
  var p = o.type;
389574
389580
  if (!p)
@@ -389643,9 +389649,9 @@ Zwe.parseImpl = function(t, e, n, r) {
389643
389649
  return null;
389644
389650
  for (var k = [], C = [], E = [], S = "", I = !1, T = 0; T < x.length; T++) {
389645
389651
  var D = i.parse(t, x[T], n, "multiple");
389646
- I = I || $i(D.value), k.push(D.value), E.push(D.pfValue != null ? D.pfValue : D.value), C.push(D.units), S += (T > 0 ? " " : "") + D.strValue;
389652
+ I = I || zi(D.value), k.push(D.value), E.push(D.pfValue != null ? D.pfValue : D.value), C.push(D.units), S += (T > 0 ? " " : "") + D.strValue;
389647
389653
  }
389648
- return p.validate && !p.validate(k, C) ? null : p.singleEnum && I ? k.length === 1 && $i(k[0]) ? {
389654
+ return p.validate && !p.validate(k, C) ? null : p.singleEnum && I ? k.length === 1 && zi(k[0]) ? {
389649
389655
  name: t,
389650
389656
  value: k[0],
389651
389657
  strValue: k[0],
@@ -389805,7 +389811,7 @@ pf.cssRule = function(t, e) {
389805
389811
  return this;
389806
389812
  };
389807
389813
  pf.append = function(t) {
389808
- return zBn(t) ? t.appendToStyle(this) : Tc(t) ? this.appendFromJson(t) : $i(t) && this.appendFromString(t), this;
389814
+ return zBn(t) ? t.appendToStyle(this) : Tc(t) ? this.appendFromJson(t) : zi(t) && this.appendFromString(t), this;
389809
389815
  };
389810
389816
  dg.fromJson = function(t, e) {
389811
389817
  var n = new dg(t);
@@ -389832,7 +389838,7 @@ var eno = {
389832
389838
  },
389833
389839
  setStyle: function(e) {
389834
389840
  var n = this._private;
389835
- return zBn(e) ? n.style = e.generateStyle(this) : Tc(e) ? n.style = dg.fromJson(this, e) : $i(e) ? n.style = dg.fromString(this, e) : n.style = dg(this), n.style;
389841
+ return zBn(e) ? n.style = e.generateStyle(this) : Tc(e) ? n.style = dg.fromJson(this, e) : zi(e) ? n.style = dg.fromString(this, e) : n.style = dg(this), n.style;
389836
389842
  },
389837
389843
  // e.g. cy.data() changed => recalc ele mappers
389838
389844
  updateStyle: function() {
@@ -389909,7 +389915,7 @@ var eno = {
389909
389915
  case 0:
389910
389916
  return n;
389911
389917
  case 1:
389912
- if ($i(e[0]))
389918
+ if (zi(e[0]))
389913
389919
  return r = e[0], n[r];
389914
389920
  if (cl(e[0])) {
389915
389921
  if (!this._private.panningEnabled)
@@ -389953,7 +389959,7 @@ var eno = {
389953
389959
  getFitViewport: function(e, n) {
389954
389960
  if (ha(e) && n === void 0 && (n = e, e = void 0), !(!this._private.panningEnabled || !this._private.zoomingEnabled)) {
389955
389961
  var r;
389956
- if ($i(e)) {
389962
+ if (zi(e)) {
389957
389963
  var i = e;
389958
389964
  e = this.$(i);
389959
389965
  } else if (UZi(e)) {
@@ -390052,7 +390058,7 @@ var eno = {
390052
390058
  },
390053
390059
  getCenterPan: function(e, n) {
390054
390060
  if (this._private.panningEnabled) {
390055
- if ($i(e)) {
390061
+ if (zi(e)) {
390056
390062
  var r = e;
390057
390063
  e = this.mutableElements().filter(r);
390058
390064
  } else W0(e) || (e = this.mutableElements());
@@ -390473,7 +390479,7 @@ UDn.prototype.run = function() {
390473
390479
  m.push(f);
390474
390480
  }
390475
390481
  p = e.collection(m);
390476
- } else if ($i(t.roots))
390482
+ } else if (zi(t.roots))
390477
390483
  p = e.$(t.roots);
390478
390484
  else if (o)
390479
390485
  p = r.roots();
@@ -391573,7 +391579,7 @@ qrt.registerArrowShapes = function() {
391573
391579
  }, l = function(p) {
391574
391580
  return p.pstyle("width").pfValue * p.pstyle("arrow-scale").pfValue * 2;
391575
391581
  }, u = function(p, m) {
391576
- $i(m) && (m = t[m]), t[p] = Ki({
391582
+ zi(m) && (m = t[m]), t[p] = Ki({
391577
391583
  name: p,
391578
391584
  points: [-0.15, -0.3, 0.15, -0.3, 0.15, 0.3, -0.15, 0.3],
391579
391585
  collide: function(h, f, b, y, v, _) {
@@ -398156,7 +398162,7 @@ LM.selector = function(t) {
398156
398162
  };
398157
398163
  LM.css = function(t, e) {
398158
398164
  var n = this.length - 1;
398159
- if ($i(t))
398165
+ if (zi(t))
398160
398166
  this[n].properties.push({
398161
398167
  name: t,
398162
398168
  value: e
@@ -398196,7 +398202,7 @@ LM.appendToStyle = function(t) {
398196
398202
  var rao = "3.33.1", XE = function(e) {
398197
398203
  if (e === void 0 && (e = {}), cl(e))
398198
398204
  return new _Z(e);
398199
- if ($i(e))
398205
+ if (zi(e))
398200
398206
  return q$e.apply(q$e, arguments);
398201
398207
  };
398202
398208
  XE.use = function(t) {