brainsmatics 1.1.8 → 1.1.9

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.
@@ -18635,10 +18635,10 @@ function Uct(t, e, n, r, i, a, o) {
18635
18635
  nn > vn || nn === vn && (!Te || // Choose recommend one
18636
18636
  Dn >= Mn) ? (h.current.tb = !0, rn = Gt, Ze = -Ze, Xt.points = [P1(vt, 0), P1(Ne, 0)]) : h.current.tb = !1;
18637
18637
  }
18638
- var Qt = mr(Zt), Bt = vt[1] === Ne[1];
18638
+ var Qt = mr(Zt), $t = vt[1] === Ne[1];
18639
18639
  if (Qt && vt[1] === "l" && (Fe > we.right || h.current.rl)) {
18640
18640
  var ln = Jt;
18641
- Bt ? ln -= ge - fe : ln = On.x - Wr.x - qe;
18641
+ $t ? ln -= ge - fe : ln = On.x - Wr.x - qe;
18642
18642
  var zn = co(ln, rn), Nn = co(ln, rn, Ye);
18643
18643
  // Of course use larger one
18644
18644
  zn > vn || zn === vn && (!Te || // Choose recommend one
@@ -18646,7 +18646,7 @@ function Uct(t, e, n, r, i, a, o) {
18646
18646
  }
18647
18647
  if (Qt && vt[1] === "r" && (hn < we.left || h.current.lr)) {
18648
18648
  var yr = Jt;
18649
- Bt ? yr += ge - fe : yr = Rr.x - Yn.x - qe;
18649
+ $t ? yr += ge - fe : yr = Rr.x - Yn.x - qe;
18650
18650
  var Pr = co(yr, rn), or = co(yr, rn, Ye);
18651
18651
  // Of course use larger one
18652
18652
  Pr > vn || Pr === vn && (!Te || // Choose recommend one
@@ -18785,7 +18785,7 @@ function Vct() {
18785
18785
  }, [vn]);
18786
18786
  var yt = _.useState(null), Ht = wt(yt, 2), hn = Ht[0], Fe = Ht[1], Tt = _.useState([0, 0]), Pt = wt(Tt, 2), Ut = Pt[0], Mt = Pt[1], Yt = function(ui) {
18787
18787
  Mt([ui.clientX, ui.clientY]);
18788
- }, Gt = Uct(vn, Le, ee ? Ut : At, B, V, G, Y), nn = wt(Gt, 11), Dn = nn[0], Qt = nn[1], Bt = nn[2], ln = nn[3], zn = nn[4], Nn = nn[5], yr = nn[6], Pr = nn[7], or = nn[8], En = nn[9], ar = nn[10], Fn = Pct(Be, l, u, d), Bn = wt(Fn, 2), $n = Bn[0], br = Bn[1], ei = $n.has("click"), Ci = br.has("click") || br.has("contextMenu"), bi = Bl(function() {
18788
+ }, Gt = Uct(vn, Le, ee ? Ut : At, B, V, G, Y), nn = wt(Gt, 11), Dn = nn[0], Qt = nn[1], $t = nn[2], ln = nn[3], zn = nn[4], Nn = nn[5], yr = nn[6], Pr = nn[7], or = nn[8], En = nn[9], ar = nn[10], Fn = Pct(Be, l, u, d), Bn = wt(Fn, 2), $n = Bn[0], br = Bn[1], ei = $n.has("click"), Ci = br.has("click") || br.has("contextMenu"), bi = Bl(function() {
18789
18789
  fr || ar();
18790
18790
  }), ir = function() {
18791
18791
  On.current && ee && Ci && Zt(!1);
@@ -18827,11 +18827,11 @@ function Vct() {
18827
18827
  }, [hn]);
18828
18828
  function Fr(Cr, ui, sn, St) {
18829
18829
  Et[Cr] = function(dn) {
18830
- var $t;
18830
+ var Bt;
18831
18831
  St == null || St(dn), Zt(ui, sn);
18832
18832
  for (var Xn = arguments.length, er = new Array(Xn > 1 ? Xn - 1 : 0), Br = 1; Br < Xn; Br++)
18833
18833
  er[Br - 1] = arguments[Br];
18834
- ($t = rt[Cr]) === null || $t === void 0 || $t.call.apply($t, [rt, dn].concat(er));
18834
+ (Bt = rt[Cr]) === null || Bt === void 0 || Bt.call.apply(Bt, [rt, dn].concat(er));
18835
18835
  };
18836
18836
  }
18837
18837
  (ei || Ci) && (Et.onClick = function(Cr) {
@@ -18909,7 +18909,7 @@ function Vct() {
18909
18909
  arrowPos: Ti,
18910
18910
  ready: Dn,
18911
18911
  offsetX: Qt,
18912
- offsetY: Bt,
18912
+ offsetY: $t,
18913
18913
  offsetR: ln,
18914
18914
  offsetB: zn,
18915
18915
  onAlign: bi,
@@ -19206,25 +19206,25 @@ var Zct = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction
19206
19206
  }) : v === "multiple" && z("", {
19207
19207
  source: "blur"
19208
19208
  })), ie && ie.apply(void 0, arguments));
19209
- }, Bt = [];
19209
+ }, $t = [];
19210
19210
  _.useEffect(function() {
19211
19211
  return function() {
19212
- Bt.forEach(function(Er) {
19212
+ $t.forEach(function(Er) {
19213
19213
  return clearTimeout(Er);
19214
- }), Bt.splice(0, Bt.length);
19214
+ }), $t.splice(0, $t.length);
19215
19215
  };
19216
19216
  }, []);
19217
19217
  var ln = function(gr) {
19218
19218
  var Xr, Ji = gr.target, Mi = (Xr = ot.current) === null || Xr === void 0 ? void 0 : Xr.getPopupElement();
19219
19219
  if (Mi && Mi.contains(Ji)) {
19220
19220
  var ji = setTimeout(function() {
19221
- var Oo = Bt.indexOf(ji);
19222
- if (Oo !== -1 && Bt.splice(Oo, 1), Ge(), !he && !Mi.contains(document.activeElement)) {
19221
+ var Oo = $t.indexOf(ji);
19222
+ if (Oo !== -1 && $t.splice(Oo, 1), Ge(), !he && !Mi.contains(document.activeElement)) {
19223
19223
  var co;
19224
19224
  (co = qe.current) === null || co === void 0 || co.focus();
19225
19225
  }
19226
19226
  });
19227
- Bt.push(ji);
19227
+ $t.push(ji);
19228
19228
  }
19229
19229
  for (var fa = arguments.length, ao = new Array(fa > 1 ? fa - 1 : 0), Fa = 1; Fa < fa; Fa++)
19230
19230
  ao[Fa - 1] = arguments[Fa];
@@ -19814,7 +19814,7 @@ function uut(t, e) {
19814
19814
  offset: void 0
19815
19815
  };
19816
19816
  }
19817
- for (var Gt = 0, nn, Dn, Qt, Bt = X.length, ln = 0; ln < Bt; ln += 1) {
19817
+ for (var Gt = 0, nn, Dn, Qt, $t = X.length, ln = 0; ln < $t; ln += 1) {
19818
19818
  var zn = X[ln], Nn = A(zn), yr = B.get(Nn), Pr = Gt + (yr === void 0 ? o : yr);
19819
19819
  Pr >= Q && nn === void 0 && (nn = ln, Dn = Gt), Pr > Q + a && Qt === void 0 && (Qt = ln), Gt = Pr;
19820
19820
  }
@@ -26528,7 +26528,7 @@ var Ept = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item
26528
26528
  registerPath: Pt,
26529
26529
  unregisterPath: Ut
26530
26530
  };
26531
- }, [Pt, Ut]), Bt = _.useMemo(function() {
26531
+ }, [Pt, Ut]), $t = _.useMemo(function() {
26532
26532
  return {
26533
26533
  isSubPathKey: Yt
26534
26534
  };
@@ -26677,7 +26677,7 @@ var Ept = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item
26677
26677
  onItemClick: br,
26678
26678
  onOpenChange: ei
26679
26679
  }, /* @__PURE__ */ _.createElement(SOe.Provider, {
26680
- value: Bt
26680
+ value: $t
26681
26681
  }, Er), /* @__PURE__ */ _.createElement("div", {
26682
26682
  style: {
26683
26683
  display: "none"
@@ -30975,13 +30975,13 @@ var Yht = function(e) {
30975
30975
  }, iR = function(e, n) {
30976
30976
  return e[n ? 0 : 1];
30977
30977
  }, epe = /* @__PURE__ */ _.forwardRef(function(t, e) {
30978
- var n = t.className, r = t.style, i = t.id, a = t.animated, o = t.activeKey, s = t.rtl, l = t.extra, u = t.editable, d = t.locale, f = t.tabPosition, p = t.tabBarGutter, h = t.children, g = t.onTabClick, y = t.onTabScroll, v = t.indicator, m = _.useContext(dD), b = m.prefixCls, E = m.tabs, C = Ke(null), S = Ke(null), x = Ke(null), I = Ke(null), P = Ke(null), A = Ke(null), N = Ke(null), D = f === "top" || f === "bottom", U = qfe(0, function(Qt, Bt) {
30978
+ var n = t.className, r = t.style, i = t.id, a = t.animated, o = t.activeKey, s = t.rtl, l = t.extra, u = t.editable, d = t.locale, f = t.tabPosition, p = t.tabBarGutter, h = t.children, g = t.onTabClick, y = t.onTabScroll, v = t.indicator, m = _.useContext(dD), b = m.prefixCls, E = m.tabs, C = Ke(null), S = Ke(null), x = Ke(null), I = Ke(null), P = Ke(null), A = Ke(null), N = Ke(null), D = f === "top" || f === "bottom", U = qfe(0, function(Qt, $t) {
30979
30979
  D && y && y({
30980
- direction: Qt > Bt ? "left" : "right"
30980
+ direction: Qt > $t ? "left" : "right"
30981
30981
  });
30982
- }), z = wt(U, 2), B = z[0], j = z[1], V = qfe(0, function(Qt, Bt) {
30982
+ }), z = wt(U, 2), B = z[0], j = z[1], V = qfe(0, function(Qt, $t) {
30983
30983
  !D && y && y({
30984
- direction: Qt > Bt ? "top" : "bottom"
30984
+ direction: Qt > $t ? "top" : "bottom"
30985
30985
  });
30986
30986
  }), G = wt(V, 2), W = G[0], Z = G[1], H = mt([0, 0]), X = wt(H, 2), ee = X[0], K = X[1], Y = mt([0, 0]), te = wt(Y, 2), re = te[0], Q = te[1], oe = mt([0, 0]), ge = wt(oe, 2), pe = ge[0], fe = ge[1], ae = mt([0, 0]), Ce = wt(ae, 2), ie = Ce[0], ye = Ce[1], de = Uht(/* @__PURE__ */ new Map()), Te = wt(de, 2), Be = Te[0], Ye = Te[1], ke = Pht(E, Be, re[0]), we = iR(ee, D), We = iR(re, D), ve = iR(pe, D), he = iR(ie, D), Ue = Math.floor(we) < Math.floor(We + ve), Le = Ue ? we - he : we - ve, Me = "".concat(b, "-nav-operations-hidden"), ot = 0, qe = 0;
30987
30987
  D && s ? (ot = 0, qe = Math.max(0, We - Le)) : (ot = Math.min(0, Le - We), qe = 0);
@@ -30995,14 +30995,14 @@ var Yht = function(e) {
30995
30995
  function rt() {
30996
30996
  ft.current && clearTimeout(ft.current);
30997
30997
  }
30998
- kht(I, function(Qt, Bt) {
30998
+ kht(I, function(Qt, $t) {
30999
30999
  function ln(zn, Nn) {
31000
31000
  zn(function(yr) {
31001
31001
  var Pr = Ze(yr + Nn);
31002
31002
  return Pr;
31003
31003
  });
31004
31004
  }
31005
- return Ue ? (D ? ln(j, Qt) : ln(Z, Bt), rt(), Ge(), !0) : !1;
31005
+ return Ue ? (D ? ln(j, Qt) : ln(Z, $t), rt(), Ge(), !0) : !1;
31006
31006
  }), Rn(function() {
31007
31007
  return rt(), ut && (ft.current = setTimeout(function() {
31008
31008
  xt(0);
@@ -31024,7 +31024,7 @@ var Yht = function(e) {
31024
31024
  tabs: E
31025
31025
  })
31026
31026
  ), Ne = wt(Et, 2), vt = Ne[0], Wt = Ne[1], jt = Bl(function() {
31027
- var Qt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : o, Bt = ke.get(Qt) || {
31027
+ var Qt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : o, $t = ke.get(Qt) || {
31028
31028
  width: 0,
31029
31029
  height: 0,
31030
31030
  left: 0,
@@ -31033,20 +31033,20 @@ var Yht = function(e) {
31033
31033
  };
31034
31034
  if (D) {
31035
31035
  var ln = B;
31036
- s ? Bt.right < B ? ln = Bt.right : Bt.right + Bt.width > B + Le && (ln = Bt.right + Bt.width - Le) : Bt.left < -B ? ln = -Bt.left : Bt.left + Bt.width > -B + Le && (ln = -(Bt.left + Bt.width - Le)), Z(0), j(Ze(ln));
31036
+ s ? $t.right < B ? ln = $t.right : $t.right + $t.width > B + Le && (ln = $t.right + $t.width - Le) : $t.left < -B ? ln = -$t.left : $t.left + $t.width > -B + Le && (ln = -($t.left + $t.width - Le)), Z(0), j(Ze(ln));
31037
31037
  } else {
31038
31038
  var zn = W;
31039
- Bt.top < -W ? zn = -Bt.top : Bt.top + Bt.height > -W + Le && (zn = -(Bt.top + Bt.height - Le)), j(0), Z(Ze(zn));
31039
+ $t.top < -W ? zn = -$t.top : $t.top + $t.height > -W + Le && (zn = -($t.top + $t.height - Le)), j(0), Z(Ze(zn));
31040
31040
  }
31041
31041
  }), Xt = mt(), Jt = wt(Xt, 2), rn = Jt[0], vn = Jt[1], Mn = mt(!1), On = wt(Mn, 2), Yn = On[0], Rr = On[1], Wr = E.filter(function(Qt) {
31042
31042
  return !Qt.disabled;
31043
31043
  }).map(function(Qt) {
31044
31044
  return Qt.key;
31045
- }), Zn = function(Bt) {
31046
- var ln = Wr.indexOf(rn || o), zn = Wr.length, Nn = (ln + Bt + zn) % zn, yr = Wr[Nn];
31045
+ }), Zn = function($t) {
31046
+ var ln = Wr.indexOf(rn || o), zn = Wr.length, Nn = (ln + $t + zn) % zn, yr = Wr[Nn];
31047
31047
  vn(yr);
31048
- }, Zt = function(Bt) {
31049
- var ln = Bt.code, zn = s && D, Nn = Wr[0], yr = Wr[Wr.length - 1];
31048
+ }, Zt = function($t) {
31049
+ var ln = $t.code, zn = s && D, Nn = Wr[0], yr = Wr[Wr.length - 1];
31050
31050
  switch (ln) {
31051
31051
  case "ArrowLeft": {
31052
31052
  D && Zn(zn ? 1 : -1);
@@ -31057,24 +31057,24 @@ var Yht = function(e) {
31057
31057
  break;
31058
31058
  }
31059
31059
  case "ArrowUp": {
31060
- Bt.preventDefault(), D || Zn(-1);
31060
+ $t.preventDefault(), D || Zn(-1);
31061
31061
  break;
31062
31062
  }
31063
31063
  case "ArrowDown": {
31064
- Bt.preventDefault(), D || Zn(1);
31064
+ $t.preventDefault(), D || Zn(1);
31065
31065
  break;
31066
31066
  }
31067
31067
  case "Home": {
31068
- Bt.preventDefault(), vn(Nn);
31068
+ $t.preventDefault(), vn(Nn);
31069
31069
  break;
31070
31070
  }
31071
31071
  case "End": {
31072
- Bt.preventDefault(), vn(yr);
31072
+ $t.preventDefault(), vn(yr);
31073
31073
  break;
31074
31074
  }
31075
31075
  case "Enter":
31076
31076
  case "Space": {
31077
- Bt.preventDefault(), g(rn ?? o, Bt);
31077
+ $t.preventDefault(), g(rn ?? o, $t);
31078
31078
  break;
31079
31079
  }
31080
31080
  case "Backspace":
@@ -31082,23 +31082,23 @@ var Yht = function(e) {
31082
31082
  var Pr = Wr.indexOf(rn), or = E.find(function(ar) {
31083
31083
  return ar.key === rn;
31084
31084
  }), En = Tne(or == null ? void 0 : or.closable, or == null ? void 0 : or.closeIcon, u, or == null ? void 0 : or.disabled);
31085
- En && (Bt.preventDefault(), Bt.stopPropagation(), u.onEdit("remove", {
31085
+ En && ($t.preventDefault(), $t.stopPropagation(), u.onEdit("remove", {
31086
31086
  key: rn,
31087
- event: Bt
31087
+ event: $t
31088
31088
  }), Pr === Wr.length - 1 ? Zn(-1) : Zn(1));
31089
31089
  break;
31090
31090
  }
31091
31091
  }
31092
31092
  }, jn = {};
31093
31093
  D ? jn[s ? "marginRight" : "marginLeft"] = p : jn.marginTop = p;
31094
- var bn = E.map(function(Qt, Bt) {
31094
+ var bn = E.map(function(Qt, $t) {
31095
31095
  var ln = Qt.key;
31096
31096
  return /* @__PURE__ */ _.createElement(Yht, {
31097
31097
  id: i,
31098
31098
  prefixCls: b,
31099
31099
  key: ln,
31100
31100
  tab: Qt,
31101
- style: Bt === 0 ? void 0 : jn,
31101
+ style: $t === 0 ? void 0 : jn,
31102
31102
  closable: Qt.closable,
31103
31103
  editable: u,
31104
31104
  active: ln === o,
@@ -31106,7 +31106,7 @@ var Yht = function(e) {
31106
31106
  renderWrapper: h,
31107
31107
  removeAriaLabel: d == null ? void 0 : d.removeAriaLabel,
31108
31108
  tabCount: Wr.length,
31109
- currentPosition: Bt + 1,
31109
+ currentPosition: $t + 1,
31110
31110
  onClick: function(Nn) {
31111
31111
  g(ln, Nn);
31112
31112
  },
@@ -31126,7 +31126,7 @@ var Yht = function(e) {
31126
31126
  });
31127
31127
  }), fr = function() {
31128
31128
  return Ye(function() {
31129
- var Bt, ln = /* @__PURE__ */ new Map(), zn = (Bt = P.current) === null || Bt === void 0 ? void 0 : Bt.getBoundingClientRect();
31129
+ var $t, ln = /* @__PURE__ */ new Map(), zn = ($t = P.current) === null || $t === void 0 ? void 0 : $t.getBoundingClientRect();
31130
31130
  return E.forEach(function(Nn) {
31131
31131
  var yr, Pr = Nn.key, or = (yr = P.current) === null || yr === void 0 ? void 0 : yr.querySelector('[data-node-key="'.concat(uLe(Pr), '"]'));
31132
31132
  if (or) {
@@ -31147,8 +31147,8 @@ var Yht = function(e) {
31147
31147
  return Qt.key;
31148
31148
  }).join("_")]);
31149
31149
  var mr = cLe(function() {
31150
- var Qt = kS(C), Bt = kS(S), ln = kS(x);
31151
- K([Qt[0] - Bt[0] - ln[0], Qt[1] - Bt[1] - ln[1]]);
31150
+ var Qt = kS(C), $t = kS(S), ln = kS(x);
31151
+ K([Qt[0] - $t[0] - ln[0], Qt[1] - $t[1] - ln[1]]);
31152
31152
  var zn = kS(N);
31153
31153
  fe(zn);
31154
31154
  var Nn = kS(A);
@@ -36722,20 +36722,20 @@ var WLe = /* @__PURE__ */ _.forwardRef(function(t, e) {
36722
36722
  return typeof G == "boolean" ? G ? ft : !1 : G >= 0 ? G : !1;
36723
36723
  }, [G, ft]), bt = _.useMemo(function() {
36724
36724
  return Object.keys(oe || {}).map(function(Qt) {
36725
- var Bt = oe[Qt], ln = {
36725
+ var $t = oe[Qt], ln = {
36726
36726
  value: Number(Qt)
36727
36727
  };
36728
- return Bt && kr(Bt) === "object" && !/* @__PURE__ */ _.isValidElement(Bt) && ("label" in Bt || "style" in Bt) ? (ln.style = Bt.style, ln.label = Bt.label) : ln.label = Bt, ln;
36728
+ return $t && kr($t) === "object" && !/* @__PURE__ */ _.isValidElement($t) && ("label" in $t || "style" in $t) ? (ln.style = $t.style, ln.label = $t.label) : ln.label = $t, ln;
36729
36729
  }).filter(function(Qt) {
36730
- var Bt = Qt.label;
36731
- return Bt || typeof Bt == "number";
36732
- }).sort(function(Qt, Bt) {
36733
- return Qt.value - Bt.value;
36730
+ var $t = Qt.label;
36731
+ return $t || typeof $t == "number";
36732
+ }).sort(function(Qt, $t) {
36733
+ return Qt.value - $t.value;
36734
36734
  });
36735
36735
  }, [oe]), ut = x0t(qe, Ze, ft, bt, j, At), xt = wt(ut, 2), Ge = xt[0], rt = xt[1], Et = $l(I, {
36736
36736
  value: x
36737
36737
  }), Ne = wt(Et, 2), vt = Ne[0], Wt = Ne[1], jt = _.useMemo(function() {
36738
- var Qt = vt == null ? [] : Array.isArray(vt) ? vt : [vt], Bt = wt(Qt, 1), ln = Bt[0], zn = ln === void 0 ? qe : ln, Nn = vt === null ? [] : [zn];
36738
+ var Qt = vt == null ? [] : Array.isArray(vt) ? vt : [vt], $t = wt(Qt, 1), ln = $t[0], zn = ln === void 0 ? qe : ln, Nn = vt === null ? [] : [zn];
36739
36739
  if (he) {
36740
36740
  if (Nn = hr(Qt), A || vt === void 0) {
36741
36741
  var yr = A >= 0 ? A + 1 : 2;
@@ -36751,33 +36751,33 @@ var WLe = /* @__PURE__ */ _.forwardRef(function(t, e) {
36751
36751
  return Nn.forEach(function(or, En) {
36752
36752
  Nn[En] = Ge(or);
36753
36753
  }), Nn;
36754
- }, [vt, he, qe, A, Ge]), Xt = function(Bt) {
36755
- return he ? Bt : Bt[0];
36754
+ }, [vt, he, qe, A, Ge]), Xt = function($t) {
36755
+ return he ? $t : $t[0];
36756
36756
  }, Jt = Bl(function(Qt) {
36757
- var Bt = hr(Qt).sort(function(ln, zn) {
36757
+ var $t = hr(Qt).sort(function(ln, zn) {
36758
36758
  return ln - zn;
36759
36759
  });
36760
- N && !dC(Bt, jt, !0) && N(Xt(Bt)), Wt(Bt);
36760
+ N && !dC($t, jt, !0) && N(Xt($t)), Wt($t);
36761
36761
  }), rn = Bl(function(Qt) {
36762
36762
  Qt && Ye.current.hideHelp();
36763
- var Bt = Xt(jt);
36764
- U == null || U(Bt), xi(!U, "[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."), z == null || z(Bt);
36765
- }), vn = function(Bt) {
36763
+ var $t = Xt(jt);
36764
+ U == null || U($t), xi(!U, "[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."), z == null || z($t);
36765
+ }), vn = function($t) {
36766
36766
  if (!(d || !Ue || jt.length <= Me)) {
36767
36767
  var ln = hr(jt);
36768
- ln.splice(Bt, 1), D == null || D(Xt(ln)), Jt(ln);
36769
- var zn = Math.max(0, Bt - 1);
36768
+ ln.splice($t, 1), D == null || D(Xt(ln)), Jt(ln);
36769
+ var zn = Math.max(0, $t - 1);
36770
36770
  Ye.current.hideHelp(), Ye.current.focus(zn);
36771
36771
  }
36772
- }, Mn = S0t(ke, we, jt, qe, Ze, Ge, Jt, rn, rt, Ue, Me), On = wt(Mn, 5), Yn = On[0], Rr = On[1], Wr = On[2], Zn = On[3], Zt = On[4], jn = function(Bt, ln) {
36772
+ }, Mn = S0t(ke, we, jt, qe, Ze, Ge, Jt, rn, rt, Ue, Me), On = wt(Mn, 5), Yn = On[0], Rr = On[1], Wr = On[2], Zn = On[3], Zt = On[4], jn = function($t, ln) {
36773
36773
  if (!d) {
36774
36774
  var zn = hr(jt), Nn = 0, yr = 0, Pr = Ze - qe;
36775
36775
  jt.forEach(function(Bn, $n) {
36776
- var br = Math.abs(Bt - Bn);
36777
- br <= Pr && (Pr = br, Nn = $n), Bn < Bt && (yr = $n);
36776
+ var br = Math.abs($t - Bn);
36777
+ br <= Pr && (Pr = br, Nn = $n), Bn < $t && (yr = $n);
36778
36778
  });
36779
36779
  var or = Nn;
36780
- Ue && Pr !== 0 && (!ot || jt.length < ot) ? (zn.splice(yr + 1, 0, Bt), or = yr + 1) : zn[Nn] = Bt, he && !jt.length && A === void 0 && zn.push(Bt);
36780
+ Ue && Pr !== 0 && (!ot || jt.length < ot) ? (zn.splice(yr + 1, 0, $t), or = yr + 1) : zn[Nn] = $t, he && !jt.length && A === void 0 && zn.push($t);
36781
36781
  var En = Xt(zn);
36782
36782
  if (D == null || D(En), Jt(zn), ln) {
36783
36783
  var ar, Fn;
@@ -36785,9 +36785,9 @@ var WLe = /* @__PURE__ */ _.forwardRef(function(t, e) {
36785
36785
  } else
36786
36786
  U == null || U(En), xi(!U, "[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."), z == null || z(En);
36787
36787
  }
36788
- }, bn = function(Bt) {
36789
- Bt.preventDefault();
36790
- var ln = ke.current.getBoundingClientRect(), zn = ln.width, Nn = ln.height, yr = ln.left, Pr = ln.top, or = ln.bottom, En = ln.right, ar = Bt.clientX, Fn = Bt.clientY, Bn;
36788
+ }, bn = function($t) {
36789
+ $t.preventDefault();
36790
+ var ln = ke.current.getBoundingClientRect(), zn = ln.width, Nn = ln.height, yr = ln.left, Pr = ln.top, or = ln.bottom, En = ln.right, ar = $t.clientX, Fn = $t.clientY, Bn;
36791
36791
  switch (we) {
36792
36792
  case "btt":
36793
36793
  Bn = (or - Fn) / Nn;
@@ -36802,10 +36802,10 @@ var WLe = /* @__PURE__ */ _.forwardRef(function(t, e) {
36802
36802
  Bn = (ar - yr) / zn;
36803
36803
  }
36804
36804
  var $n = qe + Bn * (Ze - qe);
36805
- jn(Ge($n), Bt);
36806
- }, fr = _.useState(null), mr = wt(fr, 2), yt = mr[0], Ht = mr[1], hn = function(Bt, ln) {
36805
+ jn(Ge($n), $t);
36806
+ }, fr = _.useState(null), mr = wt(fr, 2), yt = mr[0], Ht = mr[1], hn = function($t, ln) {
36807
36807
  if (!d) {
36808
- var zn = rt(jt, Bt, ln);
36808
+ var zn = rt(jt, $t, ln);
36809
36809
  D == null || D(Xt(jt)), Jt(zn.values), Ht(zn.value);
36810
36810
  }
36811
36811
  };
@@ -36818,8 +36818,8 @@ var WLe = /* @__PURE__ */ _.forwardRef(function(t, e) {
36818
36818
  }, [yt]);
36819
36819
  var Fe = _.useMemo(function() {
36820
36820
  return Le && ft === null ? (process.env.NODE_ENV !== "production" && xi(!1, "`draggableTrack` is not supported when `step` is `null`."), !1) : Le;
36821
- }, [Le, ft]), Tt = Bl(function(Qt, Bt) {
36822
- Zt(Qt, Bt), D == null || D(Xt(jt));
36821
+ }, [Le, ft]), Tt = Bl(function(Qt, $t) {
36822
+ Zt(Qt, $t), D == null || D(Xt(jt));
36823
36823
  }), Pt = Yn !== -1;
36824
36824
  _.useEffect(function() {
36825
36825
  if (!Pt) {
@@ -36828,8 +36828,8 @@ var WLe = /* @__PURE__ */ _.forwardRef(function(t, e) {
36828
36828
  }
36829
36829
  }, [Pt]);
36830
36830
  var Ut = _.useMemo(function() {
36831
- return hr(Zn).sort(function(Qt, Bt) {
36832
- return Qt - Bt;
36831
+ return hr(Zn).sort(function(Qt, $t) {
36832
+ return Qt - $t;
36833
36833
  });
36834
36834
  }, [Zn]), Mt = _.useMemo(function() {
36835
36835
  return he ? [Ut[0], Ut[Ut.length - 1]] : [qe, Ut[0]];
@@ -36840,8 +36840,8 @@ var WLe = /* @__PURE__ */ _.forwardRef(function(t, e) {
36840
36840
  Ye.current.focus(0);
36841
36841
  },
36842
36842
  blur: function() {
36843
- var Bt, ln = document, zn = ln.activeElement;
36844
- (Bt = ke.current) !== null && Bt !== void 0 && Bt.contains(zn) && (zn == null || zn.blur());
36843
+ var $t, ln = document, zn = ln.activeElement;
36844
+ ($t = ke.current) !== null && $t !== void 0 && $t.contains(zn) && (zn == null || zn.blur());
36845
36845
  }
36846
36846
  };
36847
36847
  }), _.useEffect(function() {
@@ -42657,9 +42657,9 @@ var PNe = function(e) {
42657
42657
  if (de - 1 >= Tt * 2 && de !== 1 + 2 && (jn[0] = /* @__PURE__ */ O.cloneElement(jn[0], {
42658
42658
  className: Qe("".concat(r, "-item-after-jump-prev"), jn[0].props.className)
42659
42659
  }), jn.unshift(Yn)), Zt - de >= Tt * 2 && de !== Zt - 2) {
42660
- var Bt = jn[jn.length - 1];
42661
- jn[jn.length - 1] = /* @__PURE__ */ O.cloneElement(Bt, {
42662
- className: Qe("".concat(r, "-item-before-jump-next"), Bt.props.className)
42660
+ var $t = jn[jn.length - 1];
42661
+ jn[jn.length - 1] = /* @__PURE__ */ O.cloneElement($t, {
42662
+ className: Qe("".concat(r, "-item-before-jump-next"), $t.props.className)
42663
42663
  }), jn.push(Zn);
42664
42664
  }
42665
42665
  nn !== 1 && jn.unshift(/* @__PURE__ */ O.createElement(y3, Wn({}, bn, {
@@ -47950,7 +47950,7 @@ function uxt(t, e) {
47950
47950
  }
47951
47951
  Ra ? (xt(-va < Oa - hs), Ne(-va > 0)) : (xt(va > 0), Ne(va < Oa - hs));
47952
47952
  }
47953
- }), Bt = gC(function(ii) {
47953
+ }), $t = gC(function(ii) {
47954
47954
  Qt(ii), x == null || x(ii);
47955
47955
  }), ln = function() {
47956
47956
  if (Yn && qe.current) {
@@ -48023,7 +48023,7 @@ function uxt(t, e) {
48023
48023
  return typeof Ra == "number" && !Number.isNaN(Ra) ? Ra : (process.env.NODE_ENV !== "production" && _f(n.columns.length === 0, "When use `components.body` with render props. Each column should have a fixed `width` value."), 0);
48024
48024
  })) : fa = /* @__PURE__ */ _.createElement("div", {
48025
48025
  style: nt(nt({}, Fe), Tt),
48026
- onScroll: Bt,
48026
+ onScroll: $t,
48027
48027
  ref: qe,
48028
48028
  className: Qe("".concat(r, "-body"))
48029
48029
  }, /* @__PURE__ */ _.createElement(Ci, Wn({
@@ -54944,10 +54944,10 @@ var Z7e = /* @__PURE__ */ _.forwardRef(function(t, e) {
54944
54944
  }, []), Xt = _.useCallback(function(Mt) {
54945
54945
  var Yt = jt(Mt);
54946
54946
  return Yt.map(function(Gt) {
54947
- var nn = Gt.label, Dn = Gt.value, Qt = Gt.halfChecked, Bt, ln = Et.get(Dn);
54947
+ var nn = Gt.label, Dn = Gt.value, Qt = Gt.halfChecked, $t, ln = Et.get(Dn);
54948
54948
  if (ln) {
54949
54949
  var zn;
54950
- nn = de ? de(ln.node) : (zn = nn) !== null && zn !== void 0 ? zn : Wt(ln.node), Bt = ln.node.disabled;
54950
+ nn = de ? de(ln.node) : (zn = nn) !== null && zn !== void 0 ? zn : Wt(ln.node), $t = ln.node.disabled;
54951
54951
  } else if (nn === void 0) {
54952
54952
  var Nn = jt(Le).find(function(yr) {
54953
54953
  return yr.value === Dn;
@@ -54958,7 +54958,7 @@ var Z7e = /* @__PURE__ */ _.forwardRef(function(t, e) {
54958
54958
  label: nn,
54959
54959
  value: Dn,
54960
54960
  halfChecked: Qt,
54961
- disabled: Bt
54961
+ disabled: $t
54962
54962
  };
54963
54963
  });
54964
54964
  }, [Et, Wt, jt, Le]), Jt = _.useMemo(function() {
@@ -54974,21 +54974,21 @@ var Z7e = /* @__PURE__ */ _.forwardRef(function(t, e) {
54974
54974
  });
54975
54975
  }, [Mn]), Rr = twt(Mn, On, ke, rt), Wr = cm(Rr, 2), Zn = Wr[0], Zt = Wr[1], jn = _.useMemo(function() {
54976
54976
  var Mt = Vhe(Zn, ot, rt, qe), Yt = Mt.map(function(Qt) {
54977
- var Bt, ln;
54978
- return (Bt = (ln = rt[Qt]) === null || ln === void 0 || (ln = ln.node) === null || ln === void 0 ? void 0 : ln[qe.value]) !== null && Bt !== void 0 ? Bt : Qt;
54977
+ var $t, ln;
54978
+ return ($t = (ln = rt[Qt]) === null || ln === void 0 || (ln = ln.node) === null || ln === void 0 ? void 0 : ln[qe.value]) !== null && $t !== void 0 ? $t : Qt;
54979
54979
  }), Gt = Yt.map(function(Qt) {
54980
- var Bt = Mn.find(function(zn) {
54980
+ var $t = Mn.find(function(zn) {
54981
54981
  return zn.value === Qt;
54982
- }), ln = I ? Bt == null ? void 0 : Bt.label : de == null ? void 0 : de(Bt);
54982
+ }), ln = I ? $t == null ? void 0 : $t.label : de == null ? void 0 : de($t);
54983
54983
  return {
54984
54984
  value: Qt,
54985
54985
  label: ln
54986
54986
  };
54987
54987
  }), nn = Xt(Gt), Dn = nn[0];
54988
54988
  return !ve && Dn && VK(Dn.value) && VK(Dn.label) ? [] : nn.map(function(Qt) {
54989
- var Bt;
54989
+ var $t;
54990
54990
  return bh(bh({}, Qt), {}, {
54991
- label: (Bt = Qt.label) !== null && Bt !== void 0 ? Bt : Qt.value
54991
+ label: ($t = Qt.label) !== null && $t !== void 0 ? $t : Qt.value
54992
54992
  });
54993
54993
  });
54994
54994
  }, [qe, ve, Zn, Mn, Xt, ot, rt]), bn = ewt(jn), fr = cm(bn, 1), mr = fr[0], yt = _.useMemo(function() {
@@ -55003,10 +55003,10 @@ var Z7e = /* @__PURE__ */ _.forwardRef(function(t, e) {
55003
55003
  var Bn = Et.get(Fn);
55004
55004
  return Bn ? Bn.node[qe.value] : Fn;
55005
55005
  }));
55006
- var Bt = Yt || {
55006
+ var $t = Yt || {
55007
55007
  triggerValue: void 0,
55008
55008
  selected: void 0
55009
- }, ln = Bt.triggerValue, zn = Bt.selected, Nn = Qt;
55009
+ }, ln = $t.triggerValue, zn = $t.selected, Nn = Qt;
55010
55010
  if (x) {
55011
55011
  var yr = On.filter(function(Fn) {
55012
55012
  return !Qt.includes(Fn.value);
@@ -55028,7 +55028,7 @@ var Z7e = /* @__PURE__ */ _.forwardRef(function(t, e) {
55028
55028
  }
55029
55029
  }
55030
55030
  }), hn = _.useCallback(function(Mt, Yt) {
55031
- var Gt, nn = Yt.selected, Dn = Yt.source, Qt = rt[Mt], Bt = Qt == null ? void 0 : Qt.node, ln = (Gt = Bt == null ? void 0 : Bt[qe.value]) !== null && Gt !== void 0 ? Gt : Mt;
55031
+ var Gt, nn = Yt.selected, Dn = Yt.source, Qt = rt[Mt], $t = Qt == null ? void 0 : Qt.node, ln = (Gt = $t == null ? void 0 : $t[qe.value]) !== null && Gt !== void 0 ? Gt : Mt;
55032
55032
  if (!ve)
55033
55033
  Ht([ln], {
55034
55034
  selected: !0,
@@ -55061,7 +55061,7 @@ var Z7e = /* @__PURE__ */ _.forwardRef(function(t, e) {
55061
55061
  triggerValue: ln
55062
55062
  }, Dn || "option");
55063
55063
  }
55064
- nn || !ve ? l == null || l(ln, zK(Bt)) : u == null || u(ln, zK(Bt));
55064
+ nn || !ve ? l == null || l(ln, zK($t)) : u == null || u(ln, zK($t));
55065
55065
  }, [Ne, Et, rt, qe, ve, Yn, Ht, ke, l, u, Zn, Zt, P]), Fe = _.useCallback(function(Mt) {
55066
55066
  if (oe) {
55067
55067
  var Yt = {};
@@ -72068,8 +72068,8 @@ class _re {
72068
72068
  Mt = Yt === CPe || Yt === EPe || Yt === bPe;
72069
72069
  }
72070
72070
  if (Mt) {
72071
- const Yt = I.texture.type, Gt = Yt === jy || Yt === Ty || Yt === vre || Yt === WE || Yt === mPe || Yt === vPe, nn = ft.getClearColor(), Dn = ft.getClearAlpha(), Qt = nn.r, Bt = nn.g, ln = nn.b;
72072
- Gt ? (h[0] = Qt, h[1] = Bt, h[2] = ln, h[3] = Dn, ae.clearBufferuiv(ae.COLOR, 0, h)) : (g[0] = Qt, g[1] = Bt, g[2] = ln, g[3] = Dn, ae.clearBufferiv(ae.COLOR, 0, g));
72071
+ const Yt = I.texture.type, Gt = Yt === jy || Yt === Ty || Yt === vre || Yt === WE || Yt === mPe || Yt === vPe, nn = ft.getClearColor(), Dn = ft.getClearAlpha(), Qt = nn.r, $t = nn.g, ln = nn.b;
72072
+ Gt ? (h[0] = Qt, h[1] = $t, h[2] = ln, h[3] = Dn, ae.clearBufferuiv(ae.COLOR, 0, h)) : (g[0] = Qt, g[1] = $t, g[2] = ln, g[3] = Dn, ae.clearBufferiv(ae.COLOR, 0, g));
72073
72073
  } else
72074
72074
  Ut |= ae.COLOR_BUFFER_BIT;
72075
72075
  }
@@ -72117,8 +72117,8 @@ class _re {
72117
72117
  return;
72118
72118
  Qt = 2;
72119
72119
  }
72120
- const Bt = Pt.drawRange, ln = Pt.attributes.position;
72121
- let zn = Bt.start * Qt, Nn = (Bt.start + Bt.count) * Qt;
72120
+ const $t = Pt.drawRange, ln = Pt.attributes.position;
72121
+ let zn = $t.start * Qt, Nn = ($t.start + $t.count) * Qt;
72122
72122
  Yt !== null && (zn = Math.max(zn, Yt.start * Qt), Nn = Math.min(Nn, (Yt.start + Yt.count) * Qt)), Dn !== null ? (zn = Math.max(zn, 0), Nn = Math.min(Nn, Dn.count)) : ln != null && (zn = Math.max(zn, 0), Nn = Math.min(Nn, ln.count));
72123
72123
  const yr = Nn - zn;
72124
72124
  if (yr < 0 || yr === 1 / 0)
@@ -72209,7 +72209,7 @@ class _re {
72209
72209
  const Gt = he.update(Fe), nn = Fe.material;
72210
72210
  if (Ut && (Fe.boundingSphere !== void 0 ? (Fe.boundingSphere === null && Fe.computeBoundingSphere(), ge.copy(Fe.boundingSphere.center)) : (Gt.boundingSphere === null && Gt.computeBoundingSphere(), ge.copy(Gt.boundingSphere.center)), ge.applyMatrix4(Fe.matrixWorld).applyMatrix4(Q)), Array.isArray(nn)) {
72211
72211
  const Dn = Gt.groups;
72212
- for (let Qt = 0, Bt = Dn.length; Qt < Bt; Qt++) {
72212
+ for (let Qt = 0, $t = Dn.length; Qt < $t; Qt++) {
72213
72213
  const ln = Dn[Qt], zn = nn[ln.materialIndex];
72214
72214
  zn && zn.visible && y.push(Fe, Gt, zn, Pt, ge.z, ln);
72215
72215
  }
@@ -72239,7 +72239,7 @@ class _re {
72239
72239
  E.toneMapping = Gy, jn(Fe, Pt, Ut), Ye.updateMultisampleRenderTarget(re), Ye.updateRenderTargetMipmap(re);
72240
72240
  let nn = !1;
72241
72241
  for (let Dn = 0, Qt = Tt.length; Dn < Qt; Dn++) {
72242
- const Bt = Tt[Dn], ln = Bt.object, zn = Bt.geometry, Nn = Bt.material, yr = Bt.group;
72242
+ const $t = Tt[Dn], ln = $t.object, zn = $t.geometry, Nn = $t.material, yr = $t.group;
72243
72243
  if (Nn.side === wd && ln.layers.test(Ut.layers)) {
72244
72244
  const Pr = Nn.side;
72245
72245
  Nn.side = tp, Nn.needsUpdate = !0, bn(ln, Pt, Ut, zn, Nn, yr), Nn.side = Pr, Nn.needsUpdate = !0, nn = !0;
@@ -72250,8 +72250,8 @@ class _re {
72250
72250
  function jn(Fe, Tt, Pt) {
72251
72251
  const Ut = Tt.isScene === !0 ? Tt.overrideMaterial : null;
72252
72252
  for (let Mt = 0, Yt = Fe.length; Mt < Yt; Mt++) {
72253
- const Gt = Fe[Mt], nn = Gt.object, Dn = Gt.geometry, Qt = Ut === null ? Gt.material : Ut, Bt = Gt.group;
72254
- nn.layers.test(Pt.layers) && bn(nn, Tt, Pt, Dn, Qt, Bt);
72253
+ const Gt = Fe[Mt], nn = Gt.object, Dn = Gt.geometry, Qt = Ut === null ? Gt.material : Ut, $t = Gt.group;
72254
+ nn.layers.test(Pt.layers) && bn(nn, Tt, Pt, Dn, Qt, $t);
72255
72255
  }
72256
72256
  }
72257
72257
  function bn(Fe, Tt, Pt, Ut, Mt, Yt) {
@@ -72262,16 +72262,16 @@ class _re {
72262
72262
  const Ut = Be.get(Fe), Mt = v.state.lights, Yt = v.state.shadowsArray, Gt = Mt.state.version, nn = Ue.getParameters(Fe, Mt.state, Yt, Tt, Pt), Dn = Ue.getProgramCacheKey(nn);
72263
72263
  let Qt = Ut.programs;
72264
72264
  Ut.environment = Fe.isMeshStandardMaterial ? Tt.environment : null, Ut.fog = Tt.fog, Ut.envMap = (Fe.isMeshStandardMaterial ? we : ke).get(Fe.envMap || Ut.environment), Qt === void 0 && (Fe.addEventListener("dispose", Xt), Qt = /* @__PURE__ */ new Map(), Ut.programs = Qt);
72265
- let Bt = Qt.get(Dn);
72266
- if (Bt !== void 0) {
72267
- if (Ut.currentProgram === Bt && Ut.lightsStateVersion === Gt)
72268
- return mr(Fe, nn), Bt;
72265
+ let $t = Qt.get(Dn);
72266
+ if ($t !== void 0) {
72267
+ if (Ut.currentProgram === $t && Ut.lightsStateVersion === Gt)
72268
+ return mr(Fe, nn), $t;
72269
72269
  } else
72270
- nn.uniforms = Ue.getUniforms(Fe), Fe.onBuild(Pt, nn, E), Fe.onBeforeCompile(nn, E), Bt = Ue.acquireProgram(nn, Dn), Qt.set(Dn, Bt), Ut.uniforms = nn.uniforms;
72270
+ nn.uniforms = Ue.getUniforms(Fe), Fe.onBuild(Pt, nn, E), Fe.onBeforeCompile(nn, E), $t = Ue.acquireProgram(nn, Dn), Qt.set(Dn, $t), Ut.uniforms = nn.uniforms;
72271
72271
  const ln = Ut.uniforms;
72272
72272
  (!Fe.isShaderMaterial && !Fe.isRawShaderMaterial || Fe.clipping === !0) && (ln.clippingPlanes = qe.uniform), mr(Fe, nn), Ut.needsLights = hn(Fe), Ut.lightsStateVersion = Gt, Ut.needsLights && (ln.ambientLightColor.value = Mt.state.ambient, ln.lightProbe.value = Mt.state.probe, ln.directionalLights.value = Mt.state.directional, ln.directionalLightShadows.value = Mt.state.directionalShadow, ln.spotLights.value = Mt.state.spot, ln.spotLightShadows.value = Mt.state.spotShadow, ln.rectAreaLights.value = Mt.state.rectArea, ln.ltc_1.value = Mt.state.rectAreaLTC1, ln.ltc_2.value = Mt.state.rectAreaLTC2, ln.pointLights.value = Mt.state.point, ln.pointLightShadows.value = Mt.state.pointShadow, ln.hemisphereLights.value = Mt.state.hemi, ln.directionalShadowMap.value = Mt.state.directionalShadowMap, ln.directionalShadowMatrix.value = Mt.state.directionalShadowMatrix, ln.spotShadowMap.value = Mt.state.spotShadowMap, ln.spotLightMatrix.value = Mt.state.spotLightMatrix, ln.spotLightMap.value = Mt.state.spotLightMap, ln.pointShadowMap.value = Mt.state.pointShadowMap, ln.pointShadowMatrix.value = Mt.state.pointShadowMatrix);
72273
- const zn = Bt.getUniforms(), Nn = CN.seqWithValue(zn.seq, ln);
72274
- return Ut.currentProgram = Bt, Ut.uniformsList = Nn, Bt;
72273
+ const zn = $t.getUniforms(), Nn = CN.seqWithValue(zn.seq, ln);
72274
+ return Ut.currentProgram = $t, Ut.uniformsList = Nn, $t;
72275
72275
  }
72276
72276
  function mr(Fe, Tt) {
72277
72277
  const Pt = Be.get(Fe);
@@ -72279,7 +72279,7 @@ class _re {
72279
72279
  }
72280
72280
  function yt(Fe, Tt, Pt, Ut, Mt) {
72281
72281
  Tt.isScene !== !0 && (Tt = pe), Ye.resetTextureUnits();
72282
- const Yt = Tt.fog, Gt = Ut.isMeshStandardMaterial ? Tt.environment : null, nn = I === null ? E.outputColorSpace : I.isXRRenderTarget === !0 ? I.texture.colorSpace : Yd, Dn = (Ut.isMeshStandardMaterial ? we : ke).get(Ut.envMap || Gt), Qt = Ut.vertexColors === !0 && !!Pt.attributes.color && Pt.attributes.color.itemSize === 4, Bt = !!Pt.attributes.tangent && (!!Ut.normalMap || Ut.anisotropy > 0), ln = !!Pt.morphAttributes.position, zn = !!Pt.morphAttributes.normal, Nn = !!Pt.morphAttributes.color;
72282
+ const Yt = Tt.fog, Gt = Ut.isMeshStandardMaterial ? Tt.environment : null, nn = I === null ? E.outputColorSpace : I.isXRRenderTarget === !0 ? I.texture.colorSpace : Yd, Dn = (Ut.isMeshStandardMaterial ? we : ke).get(Ut.envMap || Gt), Qt = Ut.vertexColors === !0 && !!Pt.attributes.color && Pt.attributes.color.itemSize === 4, $t = !!Pt.attributes.tangent && (!!Ut.normalMap || Ut.anisotropy > 0), ln = !!Pt.morphAttributes.position, zn = !!Pt.morphAttributes.normal, Nn = !!Pt.morphAttributes.color;
72283
72283
  let yr = Gy;
72284
72284
  Ut.toneMapped && (I === null || I.isXRRenderTarget === !0) && (yr = E.toneMapping);
72285
72285
  const Pr = Pt.morphAttributes.position || Pt.morphAttributes.normal || Pt.morphAttributes.color, or = Pr !== void 0 ? Pr.length : 0, En = Be.get(Ut), ar = v.state.lights;
@@ -72288,7 +72288,7 @@ class _re {
72288
72288
  qe.setState(Ut, Fe, Ir);
72289
72289
  }
72290
72290
  let Fn = !1;
72291
- Ut.version === En.__version ? (En.needsLights && En.lightsStateVersion !== ar.state.version || En.outputColorSpace !== nn || Mt.isInstancedMesh && En.instancing === !1 || !Mt.isInstancedMesh && En.instancing === !0 || Mt.isSkinnedMesh && En.skinning === !1 || !Mt.isSkinnedMesh && En.skinning === !0 || Mt.isInstancedMesh && En.instancingColor === !0 && Mt.instanceColor === null || Mt.isInstancedMesh && En.instancingColor === !1 && Mt.instanceColor !== null || En.envMap !== Dn || Ut.fog === !0 && En.fog !== Yt || En.numClippingPlanes !== void 0 && (En.numClippingPlanes !== qe.numPlanes || En.numIntersection !== qe.numIntersection) || En.vertexAlphas !== Qt || En.vertexTangents !== Bt || En.morphTargets !== ln || En.morphNormals !== zn || En.morphColors !== Nn || En.toneMapping !== yr || ye.isWebGL2 === !0 && En.morphTargetsCount !== or) && (Fn = !0) : (Fn = !0, En.__version = Ut.version);
72291
+ Ut.version === En.__version ? (En.needsLights && En.lightsStateVersion !== ar.state.version || En.outputColorSpace !== nn || Mt.isInstancedMesh && En.instancing === !1 || !Mt.isInstancedMesh && En.instancing === !0 || Mt.isSkinnedMesh && En.skinning === !1 || !Mt.isSkinnedMesh && En.skinning === !0 || Mt.isInstancedMesh && En.instancingColor === !0 && Mt.instanceColor === null || Mt.isInstancedMesh && En.instancingColor === !1 && Mt.instanceColor !== null || En.envMap !== Dn || Ut.fog === !0 && En.fog !== Yt || En.numClippingPlanes !== void 0 && (En.numClippingPlanes !== qe.numPlanes || En.numIntersection !== qe.numIntersection) || En.vertexAlphas !== Qt || En.vertexTangents !== $t || En.morphTargets !== ln || En.morphNormals !== zn || En.morphColors !== Nn || En.toneMapping !== yr || ye.isWebGL2 === !0 && En.morphTargetsCount !== or) && (Fn = !0) : (Fn = !0, En.__version = Ut.version);
72292
72292
  let Bn = En.currentProgram;
72293
72293
  Fn === !0 && (Bn = fr(Ut, Tt, Mt));
72294
72294
  let $n = !1, br = !1, ei = !1;
@@ -72346,8 +72346,8 @@ class _re {
72346
72346
  Dn.__useDefaultFramebuffer !== void 0 ? (de.bindFramebuffer(ae.FRAMEBUFFER, null), Ut = !1) : Dn.__webglFramebuffer === void 0 ? Ye.setupRenderTarget(Fe) : Dn.__hasExternalTextures && Ye.rebindTextures(Fe, Be.get(Fe.texture).__webglTexture, Be.get(Fe.depthTexture).__webglTexture);
72347
72347
  const Qt = Fe.texture;
72348
72348
  (Qt.isData3DTexture || Qt.isDataArrayTexture || Qt.isCompressedArrayTexture) && (Gt = !0);
72349
- const Bt = Be.get(Fe).__webglFramebuffer;
72350
- Fe.isWebGLCubeRenderTarget ? (Array.isArray(Bt[Tt]) ? Mt = Bt[Tt][Pt] : Mt = Bt[Tt], Yt = !0) : ye.isWebGL2 && Fe.samples > 0 && Ye.useMultisampledRTT(Fe) === !1 ? Mt = Be.get(Fe).__webglMultisampledFramebuffer : Array.isArray(Bt) ? Mt = Bt[Pt] : Mt = Bt, N.copy(Fe.viewport), D.copy(Fe.scissor), U = Fe.scissorTest;
72349
+ const $t = Be.get(Fe).__webglFramebuffer;
72350
+ Fe.isWebGLCubeRenderTarget ? (Array.isArray($t[Tt]) ? Mt = $t[Tt][Pt] : Mt = $t[Tt], Yt = !0) : ye.isWebGL2 && Fe.samples > 0 && Ye.useMultisampledRTT(Fe) === !1 ? Mt = Be.get(Fe).__webglMultisampledFramebuffer : Array.isArray($t) ? Mt = $t[Pt] : Mt = $t, N.copy(Fe.viewport), D.copy(Fe.scissor), U = Fe.scissorTest;
72351
72351
  } else
72352
72352
  N.copy(H).multiplyScalar(G).floor(), D.copy(X).multiplyScalar(G).floor(), U = ee;
72353
72353
  if (de.bindFramebuffer(ae.FRAMEBUFFER, Mt) && ye.drawBuffers && Ut && de.drawBuffers(Fe, Mt), de.viewport(N), de.scissor(D), de.setScissorTest(U), Yt) {
@@ -72367,19 +72367,19 @@ class _re {
72367
72367
  if (Fe.isWebGLCubeRenderTarget && Gt !== void 0 && (nn = nn[Gt]), nn) {
72368
72368
  de.bindFramebuffer(ae.FRAMEBUFFER, nn);
72369
72369
  try {
72370
- const Dn = Fe.texture, Qt = Dn.format, Bt = Dn.type;
72370
+ const Dn = Fe.texture, Qt = Dn.format, $t = Dn.type;
72371
72371
  if (Qt !== ag && xt.convert(Qt) !== ae.getParameter(ae.IMPLEMENTATION_COLOR_READ_FORMAT)) {
72372
72372
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");
72373
72373
  return;
72374
72374
  }
72375
- const ln = Bt === D_ && (ie.has("EXT_color_buffer_half_float") || ye.isWebGL2 && ie.has("EXT_color_buffer_float"));
72376
- if (Bt !== jy && xt.convert(Bt) !== ae.getParameter(ae.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
72377
- !(Bt === $v && (ye.isWebGL2 || ie.has("OES_texture_float") || ie.has("WEBGL_color_buffer_float"))) && // Chrome Mac >= 52 and Firefox
72375
+ const ln = $t === D_ && (ie.has("EXT_color_buffer_half_float") || ye.isWebGL2 && ie.has("EXT_color_buffer_float"));
72376
+ if ($t !== jy && xt.convert($t) !== ae.getParameter(ae.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
72377
+ !($t === $v && (ye.isWebGL2 || ie.has("OES_texture_float") || ie.has("WEBGL_color_buffer_float"))) && // Chrome Mac >= 52 and Firefox
72378
72378
  !ln) {
72379
72379
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
72380
72380
  return;
72381
72381
  }
72382
- Tt >= 0 && Tt <= Fe.width - Ut && Pt >= 0 && Pt <= Fe.height - Mt && ae.readPixels(Tt, Pt, Ut, Mt, xt.convert(Qt), xt.convert(Bt), Yt);
72382
+ Tt >= 0 && Tt <= Fe.width - Ut && Pt >= 0 && Pt <= Fe.height - Mt && ae.readPixels(Tt, Pt, Ut, Mt, xt.convert(Qt), xt.convert($t), Yt);
72383
72383
  } finally {
72384
72384
  const Dn = I !== null ? Be.get(I).__webglFramebuffer : null;
72385
72385
  de.bindFramebuffer(ae.FRAMEBUFFER, Dn);
@@ -72397,18 +72397,18 @@ class _re {
72397
72397
  return;
72398
72398
  }
72399
72399
  const Yt = Fe.max.x - Fe.min.x + 1, Gt = Fe.max.y - Fe.min.y + 1, nn = Fe.max.z - Fe.min.z + 1, Dn = xt.convert(Ut.format), Qt = xt.convert(Ut.type);
72400
- let Bt;
72400
+ let $t;
72401
72401
  if (Ut.isData3DTexture)
72402
- Ye.setTexture3D(Ut, 0), Bt = ae.TEXTURE_3D;
72402
+ Ye.setTexture3D(Ut, 0), $t = ae.TEXTURE_3D;
72403
72403
  else if (Ut.isDataArrayTexture)
72404
- Ye.setTexture2DArray(Ut, 0), Bt = ae.TEXTURE_2D_ARRAY;
72404
+ Ye.setTexture2DArray(Ut, 0), $t = ae.TEXTURE_2D_ARRAY;
72405
72405
  else {
72406
72406
  console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");
72407
72407
  return;
72408
72408
  }
72409
72409
  ae.pixelStorei(ae.UNPACK_FLIP_Y_WEBGL, Ut.flipY), ae.pixelStorei(ae.UNPACK_PREMULTIPLY_ALPHA_WEBGL, Ut.premultiplyAlpha), ae.pixelStorei(ae.UNPACK_ALIGNMENT, Ut.unpackAlignment);
72410
72410
  const ln = ae.getParameter(ae.UNPACK_ROW_LENGTH), zn = ae.getParameter(ae.UNPACK_IMAGE_HEIGHT), Nn = ae.getParameter(ae.UNPACK_SKIP_PIXELS), yr = ae.getParameter(ae.UNPACK_SKIP_ROWS), Pr = ae.getParameter(ae.UNPACK_SKIP_IMAGES), or = Pt.isCompressedTexture ? Pt.mipmaps[0] : Pt.image;
72411
- ae.pixelStorei(ae.UNPACK_ROW_LENGTH, or.width), ae.pixelStorei(ae.UNPACK_IMAGE_HEIGHT, or.height), ae.pixelStorei(ae.UNPACK_SKIP_PIXELS, Fe.min.x), ae.pixelStorei(ae.UNPACK_SKIP_ROWS, Fe.min.y), ae.pixelStorei(ae.UNPACK_SKIP_IMAGES, Fe.min.z), Pt.isDataTexture || Pt.isData3DTexture ? ae.texSubImage3D(Bt, Mt, Tt.x, Tt.y, Tt.z, Yt, Gt, nn, Dn, Qt, or.data) : Pt.isCompressedArrayTexture ? (console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."), ae.compressedTexSubImage3D(Bt, Mt, Tt.x, Tt.y, Tt.z, Yt, Gt, nn, Dn, or.data)) : ae.texSubImage3D(Bt, Mt, Tt.x, Tt.y, Tt.z, Yt, Gt, nn, Dn, Qt, or), ae.pixelStorei(ae.UNPACK_ROW_LENGTH, ln), ae.pixelStorei(ae.UNPACK_IMAGE_HEIGHT, zn), ae.pixelStorei(ae.UNPACK_SKIP_PIXELS, Nn), ae.pixelStorei(ae.UNPACK_SKIP_ROWS, yr), ae.pixelStorei(ae.UNPACK_SKIP_IMAGES, Pr), Mt === 0 && Ut.generateMipmaps && ae.generateMipmap(Bt), de.unbindTexture();
72411
+ ae.pixelStorei(ae.UNPACK_ROW_LENGTH, or.width), ae.pixelStorei(ae.UNPACK_IMAGE_HEIGHT, or.height), ae.pixelStorei(ae.UNPACK_SKIP_PIXELS, Fe.min.x), ae.pixelStorei(ae.UNPACK_SKIP_ROWS, Fe.min.y), ae.pixelStorei(ae.UNPACK_SKIP_IMAGES, Fe.min.z), Pt.isDataTexture || Pt.isData3DTexture ? ae.texSubImage3D($t, Mt, Tt.x, Tt.y, Tt.z, Yt, Gt, nn, Dn, Qt, or.data) : Pt.isCompressedArrayTexture ? (console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."), ae.compressedTexSubImage3D($t, Mt, Tt.x, Tt.y, Tt.z, Yt, Gt, nn, Dn, or.data)) : ae.texSubImage3D($t, Mt, Tt.x, Tt.y, Tt.z, Yt, Gt, nn, Dn, Qt, or), ae.pixelStorei(ae.UNPACK_ROW_LENGTH, ln), ae.pixelStorei(ae.UNPACK_IMAGE_HEIGHT, zn), ae.pixelStorei(ae.UNPACK_SKIP_PIXELS, Nn), ae.pixelStorei(ae.UNPACK_SKIP_ROWS, yr), ae.pixelStorei(ae.UNPACK_SKIP_IMAGES, Pr), Mt === 0 && Ut.generateMipmaps && ae.generateMipmap($t), de.unbindTexture();
72412
72412
  }, this.initTexture = function(Fe) {
72413
72413
  Fe.isCubeTexture ? Ye.setTextureCube(Fe, 0) : Fe.isData3DTexture ? Ye.setTexture3D(Fe, 0) : Fe.isDataArrayTexture || Fe.isCompressedArrayTexture ? Ye.setTexture2DArray(Fe, 0) : Ye.setTexture2D(Fe, 0), de.unbindTexture();
72414
72414
  }, this.resetState = function() {
@@ -80866,7 +80866,7 @@ const uLt = (t) => {
80866
80866
  const Gt = Ke({
80867
80867
  top: "0px",
80868
80868
  left: "0px"
80869
- }), [nn, Dn] = mt(!1), Qt = Ke(!0), Bt = Ke(null), ln = Ke(null), zn = Ke(null), Nn = Ke(null), yr = Ke(!0), Pr = Ke(0);
80869
+ }), [nn, Dn] = mt(!1), Qt = Ke(!0), $t = Ke(null), ln = Ke(null), zn = Ke(null), Nn = Ke(null), yr = Ke(!0), Pr = Ke(0);
80870
80870
  Rn(() => {
80871
80871
  Pr.current = ae;
80872
80872
  }, [ae]), Rn(() => {
@@ -80885,19 +80885,19 @@ const uLt = (t) => {
80885
80885
  }
80886
80886
  Mu.position.set(S.x * 0.01 + lo.current, S.y * 0.01 + no.current, S.z * 0.01 + Ka.current);
80887
80887
  const dn = Mu.up;
80888
- let $t = new Ae(S.x * 0.01 + lo.current, S.y * 0.01 + no.current, S.z * 0.01 + Ka.current);
80889
- const Xn = mr.current.position.clone().sub($t).normalize(), er = dn.dot(Xn), Br = Math.acos(er), ai = new Ae().crossVectors(dn, Xn).normalize();
80888
+ let Bt = new Ae(S.x * 0.01 + lo.current, S.y * 0.01 + no.current, S.z * 0.01 + Ka.current);
80889
+ const Xn = mr.current.position.clone().sub(Bt).normalize(), er = dn.dot(Xn), Br = Math.acos(er), ai = new Ae().crossVectors(dn, Xn).normalize();
80890
80890
  let fi = new Eo().setFromAxisAngle(ai, Br);
80891
80891
  if (Mu.rotation.set(0, 0, 0), Mu.applyQuaternion(fi), m != null && m.current && (m == null ? void 0 : m.current.length) > 0) {
80892
80892
  const Ai = [m.current[0].clone(), Mu.position];
80893
- fa(Ai), va([bi(Ai[0]), bi(Ai[1])]);
80893
+ fa(Ai), va([bi(Ai[0]), bi(Ai[1])]), (m.current.length == 1 || m.current.length == 2) && (m.current[1] = Bt);
80894
80894
  }
80895
80895
  _e.current.getObjectByName("sphereMiddelClick") || _e.current.add(Mu);
80896
80896
  }, [S]), Rn(() => {
80897
- var St, dn, $t, Xn, er, Br, ai, fi, Vr, ti, Ai, Pn, rr, cn, dt, Oe, ze, at, st, ht, Ct, lt, Ee, ue, De, Xe, tt, gt, zt, Vt, pn, Ot, Rt, tr, dr, Vn, In, sr, Or, Sn, un, pi, zr, li, Hs, Ga, Lo, Si, gi, pa, As, uo, Ho, oc, Ys, Ps, fo, po, Ds, xl, _l, vr, gs, ks, Rs, Us, So, Fo, Go, to, oo, dl;
80897
+ var St, dn, Bt, Xn, er, Br, ai, fi, Vr, ti, Ai, Pn, rr, cn, dt, Oe, ze, at, st, ht, Ct, lt, Ee, ue, De, Xe, tt, gt, zt, Vt, pn, Ot, Rt, tr, dr, Vn, In, sr, Or, Sn, un, pi, zr, li, Hs, Ga, Lo, Si, gi, pa, As, uo, Ho, oc, Ys, Ps, fo, po, Ds, xl, _l, vr, gs, ks, Rs, Us, So, Fo, Go, to, oo, dl;
80898
80898
  _e.current.children.filter((wl) => wl.name && wl.name.startsWith("test_")).forEach((wl) => {
80899
80899
  _e.current.remove(wl);
80900
- }), re ? (h && (h.current = []), (St = Et.current) != null && St.mouseLine_w && _e.current.remove((dn = Et.current) == null ? void 0 : dn.mouseLine_w), ($t = Et.current) != null && $t.mouseLine_h && _e.current.remove((Xn = Et.current) == null ? void 0 : Xn.mouseLine_h), typeof ((er = Et.current) == null ? void 0 : er.coordText) == "object" && _e.current.remove(Et.current.coordText), typeof ((Br = Et.current) == null ? void 0 : Br.coordTextReverse) == "object" && _e.current.remove(Et.current.coordTextReverse), (ai = rt.current) != null && ai.mouseLine_w && _e.current.remove((fi = rt.current) == null ? void 0 : fi.mouseLine_w), (Vr = rt.current) != null && Vr.mouseLine_h && _e.current.remove((ti = rt.current) == null ? void 0 : ti.mouseLine_h), typeof ((Ai = rt.current) == null ? void 0 : Ai.coordText) == "object" && _e.current.remove(rt.current.coordText), typeof ((Pn = rt.current) == null ? void 0 : Pn.coordTextReverse) == "object" && _e.current.remove(rt.current.coordTextReverse), (rr = vt.current) != null && rr.mouseLine_w && _e.current.remove((cn = vt.current) == null ? void 0 : cn.mouseLine_w), (dt = vt.current) != null && dt.mouseLine_h && _e.current.remove((Oe = vt.current) == null ? void 0 : Oe.mouseLine_h), typeof ((ze = vt.current) == null ? void 0 : ze.coordText) == "object" && _e.current.remove(vt.current.coordText), typeof ((at = vt.current) == null ? void 0 : at.coordTextReverse) == "object" && _e.current.remove(vt.current.coordTextReverse), (st = Ne.current) != null && st.mouseLine_w && _e.current.remove((ht = Ne.current) == null ? void 0 : ht.mouseLine_w), (Ct = Ne.current) != null && Ct.mouseLine_h && _e.current.remove((lt = Ne.current) == null ? void 0 : lt.mouseLine_h), typeof ((Ee = Ne.current) == null ? void 0 : Ee.coordText) == "object" && _e.current.remove(Ne.current.coordText), typeof ((ue = Ne.current) == null ? void 0 : ue.coordTextReverse) == "object" && _e.current.remove(Ne.current.coordTextReverse), (De = Ge.current) != null && De.mouseLine_w && _e.current.remove((Xe = Ge.current) == null ? void 0 : Xe.mouseLine_w), (tt = Ge.current) != null && tt.mouseLine_h && _e.current.remove((gt = Ge.current) == null ? void 0 : gt.mouseLine_h), typeof ((zt = Ge.current) == null ? void 0 : zt.coordText_lb) == "object" && _e.current.remove(Ge.current.coordText_lb), typeof ((Vt = Ge.current) == null ? void 0 : Vt.coordText_rb) == "object" && _e.current.remove(Ge.current.coordText_rb), typeof ((pn = Ge.current) == null ? void 0 : pn.coordText_rf) == "object" && _e.current.remove(Ge.current.coordText_rf), typeof ((Ot = Ge.current) == null ? void 0 : Ot.coordText_lf) == "object" && _e.current.remove(Ge.current.coordText_lf), (Rt = xt.current) != null && Rt.mouseLine_w && _e.current.remove((tr = xt.current) == null ? void 0 : tr.mouseLine_w), (dr = xt.current) != null && dr.mouseLine_h && _e.current.remove((Vn = xt.current) == null ? void 0 : Vn.mouseLine_h)) : (h && (h.current = []), (In = Et.current) != null && In.mouseLine_w && _e.current.remove((sr = Et.current) == null ? void 0 : sr.mouseLine_w), (Or = Et.current) != null && Or.mouseLine_h && _e.current.remove((Sn = Et.current) == null ? void 0 : Sn.mouseLine_h), typeof ((un = Et.current) == null ? void 0 : un.coordText) == "object" && _e.current.remove(Et.current.coordText), typeof ((pi = Et.current) == null ? void 0 : pi.coordTextReverse) == "object" && _e.current.remove(Et.current.coordTextReverse), (zr = rt.current) != null && zr.mouseLine_w && _e.current.remove((li = rt.current) == null ? void 0 : li.mouseLine_w), (Hs = rt.current) != null && Hs.mouseLine_h && _e.current.remove((Ga = rt.current) == null ? void 0 : Ga.mouseLine_h), typeof ((Lo = rt.current) == null ? void 0 : Lo.coordText) == "object" && _e.current.remove(rt.current.coordText), typeof ((Si = rt.current) == null ? void 0 : Si.coordTextReverse) == "object" && _e.current.remove(rt.current.coordTextReverse), (gi = vt.current) != null && gi.mouseLine_w && _e.current.remove((pa = vt.current) == null ? void 0 : pa.mouseLine_w), (As = vt.current) != null && As.mouseLine_h && _e.current.remove((uo = vt.current) == null ? void 0 : uo.mouseLine_h), typeof ((Ho = vt.current) == null ? void 0 : Ho.coordText) == "object" && _e.current.remove(vt.current.coordText), typeof ((oc = vt.current) == null ? void 0 : oc.coordTextReverse) == "object" && _e.current.remove(vt.current.coordTextReverse), (Ys = Ne.current) != null && Ys.mouseLine_w && _e.current.remove((Ps = Ne.current) == null ? void 0 : Ps.mouseLine_w), (fo = Ne.current) != null && fo.mouseLine_h && _e.current.remove((po = Ne.current) == null ? void 0 : po.mouseLine_h), typeof ((Ds = Ne.current) == null ? void 0 : Ds.coordText) == "object" && _e.current.remove(Ne.current.coordText), typeof ((xl = Ne.current) == null ? void 0 : xl.coordTextReverse) == "object" && _e.current.remove(Ne.current.coordTextReverse), (_l = Ge.current) != null && _l.mouseLine_w && _e.current.remove((vr = Ge.current) == null ? void 0 : vr.mouseLine_w), (gs = Ge.current) != null && gs.mouseLine_h && _e.current.remove((ks = Ge.current) == null ? void 0 : ks.mouseLine_h), typeof ((Rs = Ge.current) == null ? void 0 : Rs.coordText_lb) == "object" && _e.current.remove(Ge.current.coordText_lb), typeof ((Us = Ge.current) == null ? void 0 : Us.coordText_rb) == "object" && _e.current.remove(Ge.current.coordText_rb), typeof ((So = Ge.current) == null ? void 0 : So.coordText_rf) == "object" && _e.current.remove(Ge.current.coordText_rf), typeof ((Fo = Ge.current) == null ? void 0 : Fo.coordText_lf) == "object" && _e.current.remove(Ge.current.coordText_lf), (Go = xt.current) != null && Go.mouseLine_w && _e.current.remove((to = xt.current) == null ? void 0 : to.mouseLine_w), (oo = xt.current) != null && oo.mouseLine_h && _e.current.remove((dl = xt.current) == null ? void 0 : dl.mouseLine_h), nn && or());
80900
+ }), re ? (h && (h.current = []), (St = Et.current) != null && St.mouseLine_w && _e.current.remove((dn = Et.current) == null ? void 0 : dn.mouseLine_w), (Bt = Et.current) != null && Bt.mouseLine_h && _e.current.remove((Xn = Et.current) == null ? void 0 : Xn.mouseLine_h), typeof ((er = Et.current) == null ? void 0 : er.coordText) == "object" && _e.current.remove(Et.current.coordText), typeof ((Br = Et.current) == null ? void 0 : Br.coordTextReverse) == "object" && _e.current.remove(Et.current.coordTextReverse), (ai = rt.current) != null && ai.mouseLine_w && _e.current.remove((fi = rt.current) == null ? void 0 : fi.mouseLine_w), (Vr = rt.current) != null && Vr.mouseLine_h && _e.current.remove((ti = rt.current) == null ? void 0 : ti.mouseLine_h), typeof ((Ai = rt.current) == null ? void 0 : Ai.coordText) == "object" && _e.current.remove(rt.current.coordText), typeof ((Pn = rt.current) == null ? void 0 : Pn.coordTextReverse) == "object" && _e.current.remove(rt.current.coordTextReverse), (rr = vt.current) != null && rr.mouseLine_w && _e.current.remove((cn = vt.current) == null ? void 0 : cn.mouseLine_w), (dt = vt.current) != null && dt.mouseLine_h && _e.current.remove((Oe = vt.current) == null ? void 0 : Oe.mouseLine_h), typeof ((ze = vt.current) == null ? void 0 : ze.coordText) == "object" && _e.current.remove(vt.current.coordText), typeof ((at = vt.current) == null ? void 0 : at.coordTextReverse) == "object" && _e.current.remove(vt.current.coordTextReverse), (st = Ne.current) != null && st.mouseLine_w && _e.current.remove((ht = Ne.current) == null ? void 0 : ht.mouseLine_w), (Ct = Ne.current) != null && Ct.mouseLine_h && _e.current.remove((lt = Ne.current) == null ? void 0 : lt.mouseLine_h), typeof ((Ee = Ne.current) == null ? void 0 : Ee.coordText) == "object" && _e.current.remove(Ne.current.coordText), typeof ((ue = Ne.current) == null ? void 0 : ue.coordTextReverse) == "object" && _e.current.remove(Ne.current.coordTextReverse), (De = Ge.current) != null && De.mouseLine_w && _e.current.remove((Xe = Ge.current) == null ? void 0 : Xe.mouseLine_w), (tt = Ge.current) != null && tt.mouseLine_h && _e.current.remove((gt = Ge.current) == null ? void 0 : gt.mouseLine_h), typeof ((zt = Ge.current) == null ? void 0 : zt.coordText_lb) == "object" && _e.current.remove(Ge.current.coordText_lb), typeof ((Vt = Ge.current) == null ? void 0 : Vt.coordText_rb) == "object" && _e.current.remove(Ge.current.coordText_rb), typeof ((pn = Ge.current) == null ? void 0 : pn.coordText_rf) == "object" && _e.current.remove(Ge.current.coordText_rf), typeof ((Ot = Ge.current) == null ? void 0 : Ot.coordText_lf) == "object" && _e.current.remove(Ge.current.coordText_lf), (Rt = xt.current) != null && Rt.mouseLine_w && _e.current.remove((tr = xt.current) == null ? void 0 : tr.mouseLine_w), (dr = xt.current) != null && dr.mouseLine_h && _e.current.remove((Vn = xt.current) == null ? void 0 : Vn.mouseLine_h)) : (h && (h.current = []), (In = Et.current) != null && In.mouseLine_w && _e.current.remove((sr = Et.current) == null ? void 0 : sr.mouseLine_w), (Or = Et.current) != null && Or.mouseLine_h && _e.current.remove((Sn = Et.current) == null ? void 0 : Sn.mouseLine_h), typeof ((un = Et.current) == null ? void 0 : un.coordText) == "object" && _e.current.remove(Et.current.coordText), typeof ((pi = Et.current) == null ? void 0 : pi.coordTextReverse) == "object" && _e.current.remove(Et.current.coordTextReverse), (zr = rt.current) != null && zr.mouseLine_w && _e.current.remove((li = rt.current) == null ? void 0 : li.mouseLine_w), (Hs = rt.current) != null && Hs.mouseLine_h && _e.current.remove((Ga = rt.current) == null ? void 0 : Ga.mouseLine_h), typeof ((Lo = rt.current) == null ? void 0 : Lo.coordText) == "object" && _e.current.remove(rt.current.coordText), typeof ((Si = rt.current) == null ? void 0 : Si.coordTextReverse) == "object" && _e.current.remove(rt.current.coordTextReverse), (gi = vt.current) != null && gi.mouseLine_w && _e.current.remove((pa = vt.current) == null ? void 0 : pa.mouseLine_w), (As = vt.current) != null && As.mouseLine_h && _e.current.remove((uo = vt.current) == null ? void 0 : uo.mouseLine_h), typeof ((Ho = vt.current) == null ? void 0 : Ho.coordText) == "object" && _e.current.remove(vt.current.coordText), typeof ((oc = vt.current) == null ? void 0 : oc.coordTextReverse) == "object" && _e.current.remove(vt.current.coordTextReverse), (Ys = Ne.current) != null && Ys.mouseLine_w && _e.current.remove((Ps = Ne.current) == null ? void 0 : Ps.mouseLine_w), (fo = Ne.current) != null && fo.mouseLine_h && _e.current.remove((po = Ne.current) == null ? void 0 : po.mouseLine_h), typeof ((Ds = Ne.current) == null ? void 0 : Ds.coordText) == "object" && _e.current.remove(Ne.current.coordText), typeof ((xl = Ne.current) == null ? void 0 : xl.coordTextReverse) == "object" && _e.current.remove(Ne.current.coordTextReverse), (_l = Ge.current) != null && _l.mouseLine_w && _e.current.remove((vr = Ge.current) == null ? void 0 : vr.mouseLine_w), (gs = Ge.current) != null && gs.mouseLine_h && _e.current.remove((ks = Ge.current) == null ? void 0 : ks.mouseLine_h), typeof ((Rs = Ge.current) == null ? void 0 : Rs.coordText_lb) == "object" && _e.current.remove(Ge.current.coordText_lb), typeof ((Us = Ge.current) == null ? void 0 : Us.coordText_rb) == "object" && _e.current.remove(Ge.current.coordText_rb), typeof ((So = Ge.current) == null ? void 0 : So.coordText_rf) == "object" && _e.current.remove(Ge.current.coordText_rf), typeof ((Fo = Ge.current) == null ? void 0 : Fo.coordText_lf) == "object" && _e.current.remove(Ge.current.coordText_lf), (Go = xt.current) != null && Go.mouseLine_w && _e.current.remove((to = xt.current) == null ? void 0 : to.mouseLine_w), (oo = xt.current) != null && oo.mouseLine_h && _e.current.remove((dl = xt.current) == null ? void 0 : dl.mouseLine_h), nn && or());
80901
80901
  }, [re, nn]);
80902
80902
  const or = () => {
80903
80903
  Le.current = kM.max.clone().multiplyScalar(Xi.current).add(new Ae(lo.current, no.current, Ka.current)), Me.current = kM.min.clone().multiplyScalar(Xi.current).add(new Ae(lo.current, no.current, Ka.current));
@@ -80909,21 +80909,21 @@ const uLt = (t) => {
80909
80909
  });
80910
80910
  }, En = (sn, St) => {
80911
80911
  let dn = 0;
80912
- return function $t() {
80912
+ return function Bt() {
80913
80913
  let Xn = Date.now(), er = arguments;
80914
- Xn - dn > St && (sn.apply($t, er), dn = Xn);
80914
+ Xn - dn > St && (sn.apply(Bt, er), dn = Xn);
80915
80915
  };
80916
80916
  }, ar = (sn) => {
80917
80917
  const St = sn;
80918
80918
  return (dn) => {
80919
- const $t = dn.x - St.x, Xn = dn.y - St.y, er = dn.z - St.z, Br = new Ae();
80920
- return Br.x = $t, Br.y = Xn, Br.z = er, Br;
80919
+ const Bt = dn.x - St.x, Xn = dn.y - St.y, er = dn.z - St.z, Br = new Ae();
80920
+ return Br.x = Bt, Br.y = Xn, Br.z = er, Br;
80921
80921
  };
80922
80922
  };
80923
80923
  Rn(() => {
80924
80924
  s && ($n(s), Wt.current = s);
80925
80925
  }, [s]), Rn(() => {
80926
- Bn(), m && Fn(m.current);
80926
+ Bn(), m && (console.log(m.current), Fn(m.current));
80927
80927
  for (let St in On) {
80928
80928
  var sn = new Zf(cs(400, 300, St.replace("_", "/"), "#000000ff"));
80929
80929
  let dn = new yf(new jd({
@@ -80940,9 +80940,9 @@ const uLt = (t) => {
80940
80940
  return;
80941
80941
  }
80942
80942
  const St = sn[0], dn = sn[1];
80943
- var $t = new Zf(cs(450, 350, "Target", "#1e4de6ff", !0));
80943
+ var Bt = new Zf(cs(450, 350, "Target", "#1e4de6ff", !0));
80944
80944
  let Xn = new yf(new jd({
80945
- map: $t,
80945
+ map: Bt,
80946
80946
  transparent: !0,
80947
80947
  alphaTest: 0.5
80948
80948
  }));
@@ -80968,8 +80968,8 @@ const uLt = (t) => {
80968
80968
  sn.forEach((St) => {
80969
80969
  let dn = 0.07;
80970
80970
  St.name === "Bregma" && (dn = 0.15);
80971
- var $t = new nr(new tu(dn, 32, 32), new Fl({ color: 16711680, transparent: !0 }));
80972
- $t.position.set(St.Coordinate.x * 1e-3, St.Coordinate.y * 1e-3, St.Coordinate.z * 1e-3), $t.name = St.name, $t.translateX(lo.current), $t.visible = o, $t.translateY(no.current), $t.translateZ(Ka.current), St.name === "Bregma" && $t.add(SC), _e.current.add($t), jt.current.push($t);
80971
+ var Bt = new nr(new tu(dn, 32, 32), new Fl({ color: 16711680, transparent: !0 }));
80972
+ Bt.position.set(St.Coordinate.x * 1e-3, St.Coordinate.y * 1e-3, St.Coordinate.z * 1e-3), Bt.name = St.name, Bt.translateX(lo.current), Bt.visible = o, Bt.translateY(no.current), Bt.translateZ(Ka.current), St.name === "Bregma" && Bt.add(SC), _e.current.add(Bt), jt.current.push(Bt);
80973
80973
  });
80974
80974
  }, br = () => {
80975
80975
  z.current = En(Fr, 100), D.current = Fr, e == null || e.domElement.addEventListener("click", Fr, !1), e == null || e.domElement.addEventListener("contextmenu", Fr, !1), e == null || e.domElement.addEventListener("mousedown", Er, !1), e == null || e.domElement.addEventListener("mousemove", z.current, !1), e == null || e.domElement.addEventListener("mousewheel", function(sn) {
@@ -80990,7 +80990,7 @@ const uLt = (t) => {
80990
80990
  return;
80991
80991
  }
80992
80992
  Ue.current = sn, sn.z < Me.current.z && (sn.z = Me.current.z), Mu.position.set(sn.x, sn.y, sn.z);
80993
- const dn = Mu.up, $t = mr.current.position.clone().sub(sn).normalize(), Xn = dn.dot($t), er = Math.acos(Xn), Br = new Ae().crossVectors(dn, $t).normalize();
80993
+ const dn = Mu.up, Bt = mr.current.position.clone().sub(sn).normalize(), Xn = dn.dot(Bt), er = Math.acos(Xn), Br = new Ae().crossVectors(dn, Bt).normalize();
80994
80994
  let ai = new Eo().setFromAxisAngle(Br, er);
80995
80995
  Mu.rotation.set(0, 0, 0), Mu.applyQuaternion(ai);
80996
80996
  let fi = Hi.current.position.distanceTo(sn);
@@ -81000,15 +81000,15 @@ const uLt = (t) => {
81000
81000
  return St || void 0;
81001
81001
  }, bi = (sn) => {
81002
81002
  const St = new ed(_e.current.rotation.x, _e.current.rotation.y, _e.current.rotation.z);
81003
- let dn = sn.clone().applyEuler(St), $t = Mn.current.clone().applyEuler(St), Xn = (dn.x - $t.x).toFixed(2), er = (dn.y - $t.y).toFixed(2), Br = -(dn.z - $t.z).toFixed(2);
81003
+ let dn = sn.clone().applyEuler(St), Bt = Mn.current.clone().applyEuler(St), Xn = (dn.x - Bt.x).toFixed(2), er = (dn.y - Bt.y).toFixed(2), Br = -(dn.z - Bt.z).toFixed(2);
81004
81004
  return new Ae(parseFloat(Xn), parseFloat(er), Br);
81005
81005
  }, ir = (sn, St = "") => {
81006
81006
  he.current = sn, sn.z < Me.current.z && (sn.z = Me.current.z);
81007
81007
  let dn = _e.current.getObjectByName("sphereBig");
81008
81008
  dn ? dn.position.set(sn.x, sn.y, sn.z) : _e.current.add(Ov), Wr.current.position.set(sn.x, sn.y, sn.z), Rr.current.position.set(sn.x, sn.y, sn.z);
81009
- let $t = Hi.current.position.distanceTo(sn);
81010
- $t < 5 ? Ov.scale.set(0.25, 0.25, 0.25) : $t < 10 ? Ov.scale.set(0.65, 0.65, 0.65) : Ov.scale.set(1, 1, 1), Ir(sn, St, "FBX");
81011
- }, Ir = (sn, St = "", dn, $t) => {
81009
+ let Bt = Hi.current.position.distanceTo(sn);
81010
+ Bt < 5 ? Ov.scale.set(0.25, 0.25, 0.25) : Bt < 10 ? Ov.scale.set(0.65, 0.65, 0.65) : Ov.scale.set(1, 1, 1), Ir(sn, St, "FBX");
81011
+ }, Ir = (sn, St = "", dn, Bt) => {
81012
81012
  var cn, dt, Oe, ze, at, st, ht, Ct, lt, Ee, ue, De, Xe, tt, gt, zt, Vt, pn, Ot, Rt, tr, dr, Vn, In;
81013
81013
  let Xn, er = sn.clone().applyEuler(_e.current.rotation);
81014
81014
  const Br = bi(er);
@@ -81016,9 +81016,9 @@ const uLt = (t) => {
81016
81016
  if (dn == "Point" || dn == "Point1") {
81017
81017
  let sr = Ci(St);
81018
81018
  if (St != "")
81019
- if ($t && Qt.current) {
81020
- if (Bt.current != St && dn == "Point") {
81021
- Qt.current = !1, j.current.removeFBX(Bt.current, !0);
81019
+ if (Bt && Qt.current) {
81020
+ if ($t.current != St && dn == "Point") {
81021
+ Qt.current = !1, j.current.removeFBX($t.current, !0);
81022
81022
  const Or = Ti(j.current.treeDatas, St);
81023
81023
  if (Or != null) {
81024
81024
  const Sn = `${ge}/${St.replace("/", "_")}.FBX`;
@@ -81026,10 +81026,10 @@ const uLt = (t) => {
81026
81026
  Qt.current = !0;
81027
81027
  });
81028
81028
  }
81029
- Bt.current = St;
81029
+ $t.current = St;
81030
81030
  }
81031
81031
  Xn = `<span style='font-weight:bold'>Structure name: </span>${St}<br>
81032
- <span style='font-weight:bold'>Projection intensity: </span>${$t.userData.intensity}<br>
81032
+ <span style='font-weight:bold'>Projection intensity: </span>${Bt.userData.intensity}<br>
81033
81033
  <span style='font-weight:bold'>Mouse Position: </span><span style='font-weight:normal'>M-L </span>${ai}mm /<span style='font-weight:normal'> D-V </span>${fi}mm /<span style='font-weight:normal'> A-P </span>${Vr}mm<br>
81034
81034
  `;
81035
81035
  } else
@@ -81084,15 +81084,15 @@ const uLt = (t) => {
81084
81084
  shininess: 0
81085
81085
  //shading: THREE.FlatShading
81086
81086
  });
81087
- let $t = new nr(St, dn);
81088
- return $t.castShadow = !0, $t;
81089
- }, Mi = (sn, St, dn, $t, Xn, er, Br, ai, fi) => {
81087
+ let Bt = new nr(St, dn);
81088
+ return Bt.castShadow = !0, Bt;
81089
+ }, Mi = (sn, St, dn, Bt, Xn, er, Br, ai, fi) => {
81090
81090
  let Vr = new Do();
81091
81091
  function ti(rr) {
81092
81092
  return typeof rr == "number" && rr % 1 === 0;
81093
81093
  }
81094
81094
  fi = fi == 0 ? fi : 1, ai = ai || new Ae(0, 0, 0);
81095
- let Ai = ti(Xn) ? $t / Xn : 0, Pn = ti(Xn) ? (Br - er) / Xn : 0;
81095
+ let Ai = ti(Xn) ? Bt / Xn : 0, Pn = ti(Xn) ? (Br - er) / Xn : 0;
81096
81096
  if (Ai == 0 || Pn == 0)
81097
81097
  return Vr;
81098
81098
  for (let rr = fi; rr < Xn; rr++) {
@@ -81104,7 +81104,7 @@ const uLt = (t) => {
81104
81104
  return Vr;
81105
81105
  }, ji = () => {
81106
81106
  var Vr, ti, Ai, Pn, rr, cn, dt, Oe, ze, at, st, ht, Ct, lt, Ee, ue, De, Xe, tt, gt, zt, Vt, pn, Ot, Rt, tr, dr, Vn, In, sr, Or, Sn, un, pi, zr, li, Hs, Ga, Lo, Si, gi, pa, As, uo, Ho, oc, Ys, Ps, fo, po, Ds, xl, _l, vr, gs, ks, Rs, Us, So, Fo, Go, to, oo, dl, wl, xo, Cs, Gs, Mc, Tl, Hl, Pc, Zc, Gl, fl, Ss, Dc, Iu, sc, su, Od, qc, Ld, pl, ld, Xu, lc, Ml, Ks, rf, us, cc, js, Yc, Cc, Nd, kc, Zu, lu, Kc, jl, af, Uc, Sc, Fc, Il, Bi, hl, gl, Bc, $c, Au, qu, of, Yu, Jc, cu, Ru, cd, w, k, q, ce, xe, it, qt, yn, Tn, cr, oi, Ui, ha, ms, jo, ho, Fs, xc, Pl, Md, Pd, Qc, uc, Wl, _o, Ku, sf, Bs, Ju, Al, xs, Xl, gp, ud, zm, S1, x1, dd, _h, an, dc, fc, Hm, wh, Yr, kn, ci;
81107
- let sn = n.current.target.clone().sub(Hi.current.position.clone()), St, dn, $t, Xn = !1, er = !1, Br = !1, ai = !1, fi = Hi.current.up.y <= 0;
81107
+ let sn = n.current.target.clone().sub(Hi.current.position.clone()), St, dn, Bt, Xn = !1, er = !1, Br = !1, ai = !1, fi = Hi.current.up.y <= 0;
81108
81108
  fi ? ((ti = (Vr = Ge.current) == null ? void 0 : Vr.coordText_lb) == null || ti.children.forEach((Vc) => {
81109
81109
  Vc.up.set(0, -1, 0);
81110
81110
  }), (Pn = (Ai = Ge.current) == null ? void 0 : Ai.coordText_lf) == null || Pn.children.forEach((Vc) => {
@@ -81121,11 +81121,11 @@ const uLt = (t) => {
81121
81121
  Vc.up.set(0, 1, 0);
81122
81122
  }), (ue = (Ee = Ge.current) == null ? void 0 : Ee.coordText_rb) == null || ue.children.forEach((Vc) => {
81123
81123
  Vc.up.set(0, 1, 0);
81124
- })), St = (De = Et.current) == null ? void 0 : De.normalVector, $t = Et, dn = St && sn.dot(St), er = !1, (Xe = $t.current) != null && Xe.coordMesh && _e.current.remove((tt = $t.current) == null ? void 0 : tt.coordMesh), (gt = $t.current) != null && gt.mouseLine_w && _e.current.remove((zt = $t.current) == null ? void 0 : zt.mouseLine_w), (Vt = $t.current) != null && Vt.mouseLine_h && _e.current.remove((pn = $t.current) == null ? void 0 : pn.mouseLine_h), typeof ((Ot = $t.current) == null ? void 0 : Ot.coordText) == "object" && _e.current.remove((Rt = $t.current) == null ? void 0 : Rt.coordText), typeof ((tr = $t.current) == null ? void 0 : tr.coordTextReverse) == "object" && _e.current.remove((dr = $t.current) == null ? void 0 : dr.coordTextReverse), dn && dn >= 0 && (er = !0, (Vn = $t.current) != null && Vn.coordMesh && _e.current.add((In = $t.current) == null ? void 0 : In.coordMesh), (sr = $t.current) != null && sr.mouseLine_w && _e.current.add((Or = $t.current) == null ? void 0 : Or.mouseLine_w), (Sn = $t.current) != null && Sn.mouseLine_h && _e.current.add((un = $t.current) == null ? void 0 : un.mouseLine_h), fi ? typeof ((pi = $t.current) == null ? void 0 : pi.coordText) == "object" && _e.current.add((zr = $t.current) == null ? void 0 : zr.coordText) : typeof ((li = $t.current) == null ? void 0 : li.coordTextReverse) == "object" && _e.current.add((Hs = $t.current) == null ? void 0 : Hs.coordTextReverse)), St = (Ga = rt.current) == null ? void 0 : Ga.normalVector, $t = rt, dn = St && sn.dot(St), Xn = !1, (Lo = $t.current) != null && Lo.coordMesh && _e.current.remove((Si = $t.current) == null ? void 0 : Si.coordMesh), (gi = $t.current) != null && gi.mouseLine_w && _e.current.remove((pa = $t.current) == null ? void 0 : pa.mouseLine_w), (As = $t.current) != null && As.mouseLine_h && _e.current.remove((uo = $t.current) == null ? void 0 : uo.mouseLine_h), typeof ((Ho = $t.current) == null ? void 0 : Ho.coordText) == "object" && _e.current.remove((oc = $t.current) == null ? void 0 : oc.coordText), typeof ((Ys = $t.current) == null ? void 0 : Ys.coordTextReverse) == "object" && _e.current.remove((Ps = $t.current) == null ? void 0 : Ps.coordTextReverse), dn && dn >= 0 && (Xn = !0, (fo = $t.current) != null && fo.coordMesh && _e.current.add((po = $t.current) == null ? void 0 : po.coordMesh), (Ds = $t.current) != null && Ds.mouseLine_w && _e.current.add((xl = $t.current) == null ? void 0 : xl.mouseLine_w), (_l = $t.current) != null && _l.mouseLine_h && _e.current.add((vr = $t.current) == null ? void 0 : vr.mouseLine_h), fi ? typeof ((gs = $t.current) == null ? void 0 : gs.coordText) == "object" && _e.current.add((ks = $t.current) == null ? void 0 : ks.coordText) : typeof ((Rs = $t.current) == null ? void 0 : Rs.coordTextReverse) == "object" && _e.current.add((Us = $t.current) == null ? void 0 : Us.coordTextReverse)), St = (So = vt.current) == null ? void 0 : So.normalVector, $t = vt, dn = St && sn.dot(St), Br = !1, (Fo = $t.current) != null && Fo.coordMesh && _e.current.remove((Go = $t.current) == null ? void 0 : Go.coordMesh), (to = $t.current) != null && to.mouseLine_w && _e.current.remove((oo = $t.current) == null ? void 0 : oo.mouseLine_w), (dl = $t.current) != null && dl.mouseLine_h && _e.current.remove((wl = $t.current) == null ? void 0 : wl.mouseLine_h), typeof ((xo = $t.current) == null ? void 0 : xo.coordText) == "object" && _e.current.remove((Cs = $t.current) == null ? void 0 : Cs.coordText), typeof ((Gs = $t.current) == null ? void 0 : Gs.coordTextReverse) == "object" && _e.current.remove((Mc = $t.current) == null ? void 0 : Mc.coordTextReverse), dn && dn >= 0 && (Br = !0, (Tl = $t.current) != null && Tl.coordMesh && _e.current.add((Hl = $t.current) == null ? void 0 : Hl.coordMesh), (Pc = $t.current) != null && Pc.mouseLine_w && _e.current.add((Zc = $t.current) == null ? void 0 : Zc.mouseLine_w), (Gl = $t.current) != null && Gl.mouseLine_h && _e.current.add((fl = $t.current) == null ? void 0 : fl.mouseLine_h), fi ? typeof ((Ss = $t.current) == null ? void 0 : Ss.coordText) == "object" && _e.current.add((Dc = $t.current) == null ? void 0 : Dc.coordText) : typeof ((Iu = $t.current) == null ? void 0 : Iu.coordTextReverse) == "object" && _e.current.add((sc = $t.current) == null ? void 0 : sc.coordTextReverse)), St = (su = Ne.current) == null ? void 0 : su.normalVector, $t = Ne, dn = St && sn.dot(St), ai = !1, (Od = $t.current) != null && Od.coordMesh && _e.current.remove((qc = $t.current) == null ? void 0 : qc.coordMesh), (Ld = $t.current) != null && Ld.mouseLine_w && _e.current.remove((pl = $t.current) == null ? void 0 : pl.mouseLine_w), (ld = $t.current) != null && ld.mouseLine_h && _e.current.remove((Xu = $t.current) == null ? void 0 : Xu.mouseLine_h), typeof ((lc = $t.current) == null ? void 0 : lc.coordText) == "object" && _e.current.remove((Ml = $t.current) == null ? void 0 : Ml.coordText), typeof ((Ks = $t.current) == null ? void 0 : Ks.coordTextReverse) == "object" && _e.current.remove((rf = $t.current) == null ? void 0 : rf.coordTextReverse), dn && dn >= 0 && (ai = !0, (us = $t.current) != null && us.coordMesh && _e.current.add((cc = $t.current) == null ? void 0 : cc.coordMesh), (js = $t.current) != null && js.mouseLine_w && _e.current.add((Yc = $t.current) == null ? void 0 : Yc.mouseLine_w), (Cc = $t.current) != null && Cc.mouseLine_h && _e.current.add((Nd = $t.current) == null ? void 0 : Nd.mouseLine_h), fi ? typeof ((kc = $t.current) == null ? void 0 : kc.coordText) == "object" && _e.current.add((Zu = $t.current) == null ? void 0 : Zu.coordText) : typeof ((lu = $t.current) == null ? void 0 : lu.coordTextReverse) == "object" && _e.current.add((Kc = $t.current) == null ? void 0 : Kc.coordTextReverse)), St = (jl = Ge.current) == null ? void 0 : jl.normalVector, $t = Ge, dn = St && sn.dot(St), dn && dn >= 0 ? ((af = $t.current) != null && af.coordMesh && _e.current.add((Uc = $t.current) == null ? void 0 : Uc.coordMesh), (Sc = $t.current) != null && Sc.mouseLine_w && _e.current.add((Fc = $t.current) == null ? void 0 : Fc.mouseLine_w), (Il = $t.current) != null && Il.mouseLine_h && _e.current.add((Bi = $t.current) == null ? void 0 : Bi.mouseLine_h), (hl = $t.current) != null && hl.coordText_lb && _e.current.remove((gl = $t.current) == null ? void 0 : gl.coordText_lb), (Bc = $t.current) != null && Bc.coordText_rb && _e.current.remove(($c = $t.current) == null ? void 0 : $c.coordText_rb), (Au = $t.current) != null && Au.coordText_lf && _e.current.remove((qu = $t.current) == null ? void 0 : qu.coordText_lf), (of = $t.current) != null && of.coordText_rf && _e.current.remove((Yu = $t.current) == null ? void 0 : Yu.coordText_rf), er && Br ? (Jc = $t.current) != null && Jc.coordText_lb && _e.current.add((cu = $t.current) == null ? void 0 : cu.coordText_lb) : er && ai ? (Ru = $t.current) != null && Ru.coordText_rb && _e.current.add((cd = $t.current) == null ? void 0 : cd.coordText_rb) : Xn && ai ? (w = $t.current) != null && w.coordText_rf && _e.current.add((k = $t.current) == null ? void 0 : k.coordText_rf) : Xn && Br && (q = $t.current) != null && q.coordText_lf && _e.current.add((ce = $t.current) == null ? void 0 : ce.coordText_lf)) : ((xe = $t.current) != null && xe.coordMesh && _e.current.remove((it = $t.current) == null ? void 0 : it.coordMesh), (qt = $t.current) != null && qt.mouseLine_w && _e.current.remove((yn = $t.current) == null ? void 0 : yn.mouseLine_w), (Tn = $t.current) != null && Tn.mouseLine_h && _e.current.remove((cr = $t.current) == null ? void 0 : cr.mouseLine_h), (oi = $t.current) != null && oi.coordText_lb && _e.current.remove((Ui = $t.current) == null ? void 0 : Ui.coordText_lb), (ha = $t.current) != null && ha.coordText_rb && _e.current.remove((ms = $t.current) == null ? void 0 : ms.coordText_rb), (jo = $t.current) != null && jo.coordText_lf && _e.current.remove((ho = $t.current) == null ? void 0 : ho.coordText_lf), (Fs = $t.current) != null && Fs.coordText_rf && _e.current.remove((xc = $t.current) == null ? void 0 : xc.coordText_rf)), St = (Pl = xt.current) == null ? void 0 : Pl.normalVector, $t = xt, dn = St && sn.dot(St), dn && dn >= 0 ? ((Md = $t.current) != null && Md.coordMesh && _e.current.add((Pd = $t.current) == null ? void 0 : Pd.coordMesh), (Qc = $t.current) != null && Qc.mouseLine_w && _e.current.add((uc = $t.current) == null ? void 0 : uc.mouseLine_w), (Wl = $t.current) != null && Wl.mouseLine_h && _e.current.add((_o = $t.current) == null ? void 0 : _o.mouseLine_h), (Ku = Ge.current) != null && Ku.coordText_lb && _e.current.remove((sf = Ge.current) == null ? void 0 : sf.coordText_lb), (Bs = Ge.current) != null && Bs.coordText_rb && _e.current.remove((Ju = Ge.current) == null ? void 0 : Ju.coordText_rb), (Al = Ge.current) != null && Al.coordText_lf && _e.current.remove((xs = Ge.current) == null ? void 0 : xs.coordText_lf), (Xl = Ge.current) != null && Xl.coordText_rf && _e.current.remove((gp = Ge.current) == null ? void 0 : gp.coordText_rf), er && Br ? (ud = Ge.current) != null && ud.coordText_lb && _e.current.add((zm = Ge.current) == null ? void 0 : zm.coordText_lb) : er && ai ? (S1 = Ge.current) != null && S1.coordText_rb && _e.current.add((x1 = Ge.current) == null ? void 0 : x1.coordText_rb) : Xn && ai ? (dd = Ge.current) != null && dd.coordText_rf && _e.current.add((_h = Ge.current) == null ? void 0 : _h.coordText_rf) : Xn && Br && (an = Ge.current) != null && an.coordText_lf && _e.current.add((dc = Ge.current) == null ? void 0 : dc.coordText_lf)) : ((fc = $t.current) != null && fc.coordMesh && _e.current.remove((Hm = $t.current) == null ? void 0 : Hm.coordMesh), (wh = $t.current) != null && wh.mouseLine_w && _e.current.remove((Yr = $t.current) == null ? void 0 : Yr.mouseLine_w), (kn = $t.current) != null && kn.mouseLine_h && _e.current.remove((ci = $t.current) == null ? void 0 : ci.mouseLine_h));
81124
+ })), St = (De = Et.current) == null ? void 0 : De.normalVector, Bt = Et, dn = St && sn.dot(St), er = !1, (Xe = Bt.current) != null && Xe.coordMesh && _e.current.remove((tt = Bt.current) == null ? void 0 : tt.coordMesh), (gt = Bt.current) != null && gt.mouseLine_w && _e.current.remove((zt = Bt.current) == null ? void 0 : zt.mouseLine_w), (Vt = Bt.current) != null && Vt.mouseLine_h && _e.current.remove((pn = Bt.current) == null ? void 0 : pn.mouseLine_h), typeof ((Ot = Bt.current) == null ? void 0 : Ot.coordText) == "object" && _e.current.remove((Rt = Bt.current) == null ? void 0 : Rt.coordText), typeof ((tr = Bt.current) == null ? void 0 : tr.coordTextReverse) == "object" && _e.current.remove((dr = Bt.current) == null ? void 0 : dr.coordTextReverse), dn && dn >= 0 && (er = !0, (Vn = Bt.current) != null && Vn.coordMesh && _e.current.add((In = Bt.current) == null ? void 0 : In.coordMesh), (sr = Bt.current) != null && sr.mouseLine_w && _e.current.add((Or = Bt.current) == null ? void 0 : Or.mouseLine_w), (Sn = Bt.current) != null && Sn.mouseLine_h && _e.current.add((un = Bt.current) == null ? void 0 : un.mouseLine_h), fi ? typeof ((pi = Bt.current) == null ? void 0 : pi.coordText) == "object" && _e.current.add((zr = Bt.current) == null ? void 0 : zr.coordText) : typeof ((li = Bt.current) == null ? void 0 : li.coordTextReverse) == "object" && _e.current.add((Hs = Bt.current) == null ? void 0 : Hs.coordTextReverse)), St = (Ga = rt.current) == null ? void 0 : Ga.normalVector, Bt = rt, dn = St && sn.dot(St), Xn = !1, (Lo = Bt.current) != null && Lo.coordMesh && _e.current.remove((Si = Bt.current) == null ? void 0 : Si.coordMesh), (gi = Bt.current) != null && gi.mouseLine_w && _e.current.remove((pa = Bt.current) == null ? void 0 : pa.mouseLine_w), (As = Bt.current) != null && As.mouseLine_h && _e.current.remove((uo = Bt.current) == null ? void 0 : uo.mouseLine_h), typeof ((Ho = Bt.current) == null ? void 0 : Ho.coordText) == "object" && _e.current.remove((oc = Bt.current) == null ? void 0 : oc.coordText), typeof ((Ys = Bt.current) == null ? void 0 : Ys.coordTextReverse) == "object" && _e.current.remove((Ps = Bt.current) == null ? void 0 : Ps.coordTextReverse), dn && dn >= 0 && (Xn = !0, (fo = Bt.current) != null && fo.coordMesh && _e.current.add((po = Bt.current) == null ? void 0 : po.coordMesh), (Ds = Bt.current) != null && Ds.mouseLine_w && _e.current.add((xl = Bt.current) == null ? void 0 : xl.mouseLine_w), (_l = Bt.current) != null && _l.mouseLine_h && _e.current.add((vr = Bt.current) == null ? void 0 : vr.mouseLine_h), fi ? typeof ((gs = Bt.current) == null ? void 0 : gs.coordText) == "object" && _e.current.add((ks = Bt.current) == null ? void 0 : ks.coordText) : typeof ((Rs = Bt.current) == null ? void 0 : Rs.coordTextReverse) == "object" && _e.current.add((Us = Bt.current) == null ? void 0 : Us.coordTextReverse)), St = (So = vt.current) == null ? void 0 : So.normalVector, Bt = vt, dn = St && sn.dot(St), Br = !1, (Fo = Bt.current) != null && Fo.coordMesh && _e.current.remove((Go = Bt.current) == null ? void 0 : Go.coordMesh), (to = Bt.current) != null && to.mouseLine_w && _e.current.remove((oo = Bt.current) == null ? void 0 : oo.mouseLine_w), (dl = Bt.current) != null && dl.mouseLine_h && _e.current.remove((wl = Bt.current) == null ? void 0 : wl.mouseLine_h), typeof ((xo = Bt.current) == null ? void 0 : xo.coordText) == "object" && _e.current.remove((Cs = Bt.current) == null ? void 0 : Cs.coordText), typeof ((Gs = Bt.current) == null ? void 0 : Gs.coordTextReverse) == "object" && _e.current.remove((Mc = Bt.current) == null ? void 0 : Mc.coordTextReverse), dn && dn >= 0 && (Br = !0, (Tl = Bt.current) != null && Tl.coordMesh && _e.current.add((Hl = Bt.current) == null ? void 0 : Hl.coordMesh), (Pc = Bt.current) != null && Pc.mouseLine_w && _e.current.add((Zc = Bt.current) == null ? void 0 : Zc.mouseLine_w), (Gl = Bt.current) != null && Gl.mouseLine_h && _e.current.add((fl = Bt.current) == null ? void 0 : fl.mouseLine_h), fi ? typeof ((Ss = Bt.current) == null ? void 0 : Ss.coordText) == "object" && _e.current.add((Dc = Bt.current) == null ? void 0 : Dc.coordText) : typeof ((Iu = Bt.current) == null ? void 0 : Iu.coordTextReverse) == "object" && _e.current.add((sc = Bt.current) == null ? void 0 : sc.coordTextReverse)), St = (su = Ne.current) == null ? void 0 : su.normalVector, Bt = Ne, dn = St && sn.dot(St), ai = !1, (Od = Bt.current) != null && Od.coordMesh && _e.current.remove((qc = Bt.current) == null ? void 0 : qc.coordMesh), (Ld = Bt.current) != null && Ld.mouseLine_w && _e.current.remove((pl = Bt.current) == null ? void 0 : pl.mouseLine_w), (ld = Bt.current) != null && ld.mouseLine_h && _e.current.remove((Xu = Bt.current) == null ? void 0 : Xu.mouseLine_h), typeof ((lc = Bt.current) == null ? void 0 : lc.coordText) == "object" && _e.current.remove((Ml = Bt.current) == null ? void 0 : Ml.coordText), typeof ((Ks = Bt.current) == null ? void 0 : Ks.coordTextReverse) == "object" && _e.current.remove((rf = Bt.current) == null ? void 0 : rf.coordTextReverse), dn && dn >= 0 && (ai = !0, (us = Bt.current) != null && us.coordMesh && _e.current.add((cc = Bt.current) == null ? void 0 : cc.coordMesh), (js = Bt.current) != null && js.mouseLine_w && _e.current.add((Yc = Bt.current) == null ? void 0 : Yc.mouseLine_w), (Cc = Bt.current) != null && Cc.mouseLine_h && _e.current.add((Nd = Bt.current) == null ? void 0 : Nd.mouseLine_h), fi ? typeof ((kc = Bt.current) == null ? void 0 : kc.coordText) == "object" && _e.current.add((Zu = Bt.current) == null ? void 0 : Zu.coordText) : typeof ((lu = Bt.current) == null ? void 0 : lu.coordTextReverse) == "object" && _e.current.add((Kc = Bt.current) == null ? void 0 : Kc.coordTextReverse)), St = (jl = Ge.current) == null ? void 0 : jl.normalVector, Bt = Ge, dn = St && sn.dot(St), dn && dn >= 0 ? ((af = Bt.current) != null && af.coordMesh && _e.current.add((Uc = Bt.current) == null ? void 0 : Uc.coordMesh), (Sc = Bt.current) != null && Sc.mouseLine_w && _e.current.add((Fc = Bt.current) == null ? void 0 : Fc.mouseLine_w), (Il = Bt.current) != null && Il.mouseLine_h && _e.current.add((Bi = Bt.current) == null ? void 0 : Bi.mouseLine_h), (hl = Bt.current) != null && hl.coordText_lb && _e.current.remove((gl = Bt.current) == null ? void 0 : gl.coordText_lb), (Bc = Bt.current) != null && Bc.coordText_rb && _e.current.remove(($c = Bt.current) == null ? void 0 : $c.coordText_rb), (Au = Bt.current) != null && Au.coordText_lf && _e.current.remove((qu = Bt.current) == null ? void 0 : qu.coordText_lf), (of = Bt.current) != null && of.coordText_rf && _e.current.remove((Yu = Bt.current) == null ? void 0 : Yu.coordText_rf), er && Br ? (Jc = Bt.current) != null && Jc.coordText_lb && _e.current.add((cu = Bt.current) == null ? void 0 : cu.coordText_lb) : er && ai ? (Ru = Bt.current) != null && Ru.coordText_rb && _e.current.add((cd = Bt.current) == null ? void 0 : cd.coordText_rb) : Xn && ai ? (w = Bt.current) != null && w.coordText_rf && _e.current.add((k = Bt.current) == null ? void 0 : k.coordText_rf) : Xn && Br && (q = Bt.current) != null && q.coordText_lf && _e.current.add((ce = Bt.current) == null ? void 0 : ce.coordText_lf)) : ((xe = Bt.current) != null && xe.coordMesh && _e.current.remove((it = Bt.current) == null ? void 0 : it.coordMesh), (qt = Bt.current) != null && qt.mouseLine_w && _e.current.remove((yn = Bt.current) == null ? void 0 : yn.mouseLine_w), (Tn = Bt.current) != null && Tn.mouseLine_h && _e.current.remove((cr = Bt.current) == null ? void 0 : cr.mouseLine_h), (oi = Bt.current) != null && oi.coordText_lb && _e.current.remove((Ui = Bt.current) == null ? void 0 : Ui.coordText_lb), (ha = Bt.current) != null && ha.coordText_rb && _e.current.remove((ms = Bt.current) == null ? void 0 : ms.coordText_rb), (jo = Bt.current) != null && jo.coordText_lf && _e.current.remove((ho = Bt.current) == null ? void 0 : ho.coordText_lf), (Fs = Bt.current) != null && Fs.coordText_rf && _e.current.remove((xc = Bt.current) == null ? void 0 : xc.coordText_rf)), St = (Pl = xt.current) == null ? void 0 : Pl.normalVector, Bt = xt, dn = St && sn.dot(St), dn && dn >= 0 ? ((Md = Bt.current) != null && Md.coordMesh && _e.current.add((Pd = Bt.current) == null ? void 0 : Pd.coordMesh), (Qc = Bt.current) != null && Qc.mouseLine_w && _e.current.add((uc = Bt.current) == null ? void 0 : uc.mouseLine_w), (Wl = Bt.current) != null && Wl.mouseLine_h && _e.current.add((_o = Bt.current) == null ? void 0 : _o.mouseLine_h), (Ku = Ge.current) != null && Ku.coordText_lb && _e.current.remove((sf = Ge.current) == null ? void 0 : sf.coordText_lb), (Bs = Ge.current) != null && Bs.coordText_rb && _e.current.remove((Ju = Ge.current) == null ? void 0 : Ju.coordText_rb), (Al = Ge.current) != null && Al.coordText_lf && _e.current.remove((xs = Ge.current) == null ? void 0 : xs.coordText_lf), (Xl = Ge.current) != null && Xl.coordText_rf && _e.current.remove((gp = Ge.current) == null ? void 0 : gp.coordText_rf), er && Br ? (ud = Ge.current) != null && ud.coordText_lb && _e.current.add((zm = Ge.current) == null ? void 0 : zm.coordText_lb) : er && ai ? (S1 = Ge.current) != null && S1.coordText_rb && _e.current.add((x1 = Ge.current) == null ? void 0 : x1.coordText_rb) : Xn && ai ? (dd = Ge.current) != null && dd.coordText_rf && _e.current.add((_h = Ge.current) == null ? void 0 : _h.coordText_rf) : Xn && Br && (an = Ge.current) != null && an.coordText_lf && _e.current.add((dc = Ge.current) == null ? void 0 : dc.coordText_lf)) : ((fc = Bt.current) != null && fc.coordMesh && _e.current.remove((Hm = Bt.current) == null ? void 0 : Hm.coordMesh), (wh = Bt.current) != null && wh.mouseLine_w && _e.current.remove((Yr = Bt.current) == null ? void 0 : Yr.mouseLine_w), (kn = Bt.current) != null && kn.mouseLine_h && _e.current.remove((ci = Bt.current) == null ? void 0 : ci.mouseLine_h));
81125
81125
  }, fa = (sn) => {
81126
81126
  y != null && y.current && _e.current.remove(y.current);
81127
- const St = new Fi().setFromPoints(sn), dn = new iu({ color: 255 }), $t = new xa(St, dn);
81128
- $t.name = "Line", y && (y.current = $t), _e.current.add($t);
81127
+ const St = new Fi().setFromPoints(sn), dn = new iu({ color: 255 }), Bt = new xa(St, dn);
81128
+ Bt.name = "Line", y && (y.current = Bt), _e.current.add(Bt);
81129
81129
  }, ao = (sn, St) => {
81130
81130
  const dn = {
81131
81131
  flag: ym.current,
@@ -81133,8 +81133,8 @@ const uLt = (t) => {
81133
81133
  end_point: St
81134
81134
  };
81135
81135
  Ey.current && (Ey.current.abort(), Ey.current = null);
81136
- const $t = new AbortController();
81137
- Ey.current = $t, fetch("/app-api/c-api/findn", {
81136
+ const Bt = new AbortController();
81137
+ Ey.current = Bt, fetch("/app-api/c-api/findn", {
81138
81138
  method: "post",
81139
81139
  headers: {
81140
81140
  "Content-Type": "application/json"
@@ -81155,26 +81155,26 @@ const uLt = (t) => {
81155
81155
  color: 16711680,
81156
81156
  dashSize: 0.5,
81157
81157
  gapSize: 0.2
81158
- }), $t = new xa(St, dn);
81159
- $t.computeLineDistances(), fr.current = $t, fr.current.name = "dashedLine";
81158
+ }), Bt = new xa(St, dn);
81159
+ Bt.computeLineDistances(), fr.current = Bt, fr.current.name = "dashedLine";
81160
81160
  const Xn = _e.current.getObjectByName("dashedLine");
81161
81161
  Xn && _e.current.remove(Xn), _e.current.add(fr.current);
81162
81162
  };
81163
- async function Oo(sn, St, dn, $t) {
81163
+ async function Oo(sn, St, dn, Bt) {
81164
81164
  sn.length !== 0 && setTimeout(async () => {
81165
81165
  for (let er = 0; er < 4; er++) {
81166
81166
  const Br = new Ae(0, 0, 0);
81167
81167
  er === 0 ? Br.set(dn, 0, 0) : er === 1 ? Br.set(-dn, 0, 0) : er === 2 ? Br.set(0, dn, 0) : er === 3 && Br.set(0, -dn, 0);
81168
- const ai = St.clone().add(Br), fi = await co(sn[er], ai, $t);
81168
+ const ai = St.clone().add(Br), fi = await co(sn[er], ai, Bt);
81169
81169
  _e.current.add(fi), er === 3 && (yr.current = !0);
81170
81170
  }
81171
81171
  }, 1e3);
81172
81172
  }
81173
81173
  async function co(sn, St, dn) {
81174
- const $t = document.createElement("div"), Xn = new QOt($t);
81174
+ const Bt = document.createElement("div"), Xn = new QOt(Bt);
81175
81175
  return Xn.position.copy(St), Xn.name = "cardContainer", Xn.userData.PMID = sn.PMID, Xn.userData.from = dn, new Promise((er) => {
81176
81176
  ln.current = setTimeout(() => {
81177
- uJ($t).render(O.createElement(
81177
+ uJ(Bt).render(O.createElement(
81178
81178
  O.StrictMode,
81179
81179
  null,
81180
81180
  O.createElement(eLt, { data: sn, position: St })
@@ -81203,7 +81203,7 @@ const uLt = (t) => {
81203
81203
  const cn = rr instanceof r_;
81204
81204
  return !["", "Brain", "ExtractedSurface", "outline", "dashedLine", "Line", "sphereBig", "sphereMiddelClick", "test_behind", "test_front", "test_left", "test_right", "test_bootom", "test_top", "test_top_mouseLine_w", "test_top_mouseLine_h", "test_bottom_mouseLine_w", "test_bottom_mouseLine_h", "test_left_mouseLine_w", "test_left_mouseLine_h", "test_right_mouseLine_w", "test_right_mouseLine_h", "test_front_mouseLine_w", "test_front_mouseLine_h", , "test_behind_mouseLine_w", "test_behind_mouseLine_h", "brainRegionLine", "azimuth"].includes(rr.name) && !cn;
81205
81205
  }), !0);
81206
- const dn = _e.current.getObjectByName("Brain"), $t = new ed(-_e.current.rotation.x, -_e.current.rotation.y, -_e.current.rotation.z);
81206
+ const dn = _e.current.getObjectByName("Brain"), Bt = new ed(-_e.current.rotation.x, -_e.current.rotation.y, -_e.current.rotation.z);
81207
81207
  let Xn;
81208
81208
  if (dn) {
81209
81209
  const Pn = new ds();
@@ -81214,10 +81214,10 @@ const uLt = (t) => {
81214
81214
  Pn.getCenter(cn);
81215
81215
  const dt = new Xs(rr.x, rr.y, rr.z), Oe = new jc({ color: 65280, wireframe: !0 }), ze = new nr(dt, Oe);
81216
81216
  if (ze.position.copy(cn), Xn = ie.current.intersectObject(ze, !0), (b == null ? void 0 : b.current) == 2 && Xn.length > 0) {
81217
- const at = cn.clone().applyEuler($t), st = Xn[0].point.clone().applyEuler($t);
81217
+ const at = cn.clone().applyEuler(Bt), st = Xn[0].point.clone().applyEuler(Bt);
81218
81218
  let ht = at.sub(st);
81219
81219
  if (ht.normalize(), St.length > 0 && ((m == null ? void 0 : m.current.length) == 2 || (m == null ? void 0 : m.current.length) == 1)) {
81220
- ht = St[0].point.clone().applyEuler($t).sub(m.current[0].clone().applyEuler($t)), ht.normalize();
81220
+ ht = St[0].point.clone().applyEuler(Bt).sub(m.current[0].clone().applyEuler(Bt)), ht.normalize();
81221
81221
  const tt = new DA();
81222
81222
  tt.set(m.current[0], ht);
81223
81223
  const gt = new Ow(tt.ray.origin, tt.ray.direction), zt = new Ae(), Vt = gt.intersectBox(Pn, zt);
@@ -81296,7 +81296,7 @@ const uLt = (t) => {
81296
81296
  ["CoronalView", "SagittalView", "HorizontalView", "arbitrarySlice"].includes(St[Pn].object.name) && (U(""), H(""), X(""));
81297
81297
  }
81298
81298
  if (sn.type == "mousemove" && Zt.current.name != "Syringeobjcleanergles") {
81299
- if (clearTimeout(zn.current), Nn.current && (Nn.current.abort(), Nn.current = null), St[Pn].point = St[Pn].point.clone().applyEuler($t), St[Pn].object.name === "functionSynapseLine") {
81299
+ if (clearTimeout(zn.current), Nn.current && (Nn.current.abort(), Nn.current = null), St[Pn].point = St[Pn].point.clone().applyEuler(Bt), St[Pn].object.name === "functionSynapseLine") {
81300
81300
  const rr = _e.current.getObjectByName("cardContainer"), cn = St[Pn].object.userData.name;
81301
81301
  rr ? _e.current.children.find((Oe) => Oe.name === "cardContainer" && Oe.userData.from === cn) || yr.current && (zn.current = setTimeout(() => {
81302
81302
  const Oe = document.getElementById("spinner");
@@ -81367,7 +81367,7 @@ const uLt = (t) => {
81367
81367
  }
81368
81368
  yt.current = !1, St[Pn].object.material.type == "MeshPhongMaterial" && Fe("");
81369
81369
  } else if (sn.type == "click" && Zt.current.name != "Syringeobjcleanergles") {
81370
- if (St[Pn].point = St[Pn].point.clone().applyEuler($t), ((Ai = (ti = St[Pn].object) == null ? void 0 : ti.geometry) == null ? void 0 : Ai.type) == "SphereGeometry" && !["sphereMiddelClick", "sphereBig", "sectionSphere"].includes(St[Pn].object.name) && St[Pn].object.myMeshType !== "neuronSphere") {
81370
+ if (St[Pn].point = St[Pn].point.clone().applyEuler(Bt), ((Ai = (ti = St[Pn].object) == null ? void 0 : ti.geometry) == null ? void 0 : Ai.type) == "SphereGeometry" && !["sphereMiddelClick", "sphereBig", "sectionSphere"].includes(St[Pn].object.name) && St[Pn].object.myMeshType !== "neuronSphere") {
81371
81371
  St[Pn].object.userData.type == "points" ? Ir(St[Pn].point, St[Pn].object.name, "Point", St[Pn].object) : (Ir(St[Pn].point, St[Pn].object.name, "Point"), Uo(St[Pn].object.name), Fe(St[Pn].object.name));
81372
81372
  return;
81373
81373
  }
@@ -81395,7 +81395,7 @@ const uLt = (t) => {
81395
81395
  } else {
81396
81396
  if (U(""), Fe(""), X(""), H(""), V(""), te({}), oe({}), V(""), clearTimeout(zn.current), Nn.current && (Nn.current.abort(), Nn.current = null), pe.current = !1, _e.current.traverse((Pn) => {
81397
81397
  Pn.name === "brainRegionPoints" && Pn.layers.disable(1);
81398
- }), j.current.removeFBX(Bt.current, !0), Bt.current = "", Y.current = {}, Zt.current) {
81398
+ }), j.current.removeFBX($t.current, !0), $t.current = "", Y.current = {}, Zt.current) {
81399
81399
  let Pn = Zt.current.name;
81400
81400
  if (Zt.current.myMeshType == "SWC")
81401
81401
  Zt.current.children[0].material.color.setHex(Zt.current.currentHex), Zt.current.traverse((rr) => {
@@ -81434,8 +81434,8 @@ const uLt = (t) => {
81434
81434
  bn.current = St.scene, bn.current.name = "syrings", bn.current.userData.direction = new Ae(1, 0, 0), bn.current.scale.set(2, 2, 2), bn.current.position.set(0, 0, 0);
81435
81435
  var dn = new ds();
81436
81436
  dn.expandByObject(bn.current);
81437
- var $t = new Ae();
81438
- dn == null || dn.getCenter($t), bn.current.userData.center = $t;
81437
+ var Bt = new Ae();
81438
+ dn == null || dn.getCenter(Bt), bn.current.userData.center = Bt;
81439
81439
  });
81440
81440
  }, Ra = () => {
81441
81441
  if (br(), hi(), Ba(), m0e) {
@@ -81449,18 +81449,18 @@ const uLt = (t) => {
81449
81449
  Et.current && Ge.current && vt.current && Ne.current && rt.current && Jt && hi(), I && (I.current = ar(Mn.current)), g && g.current && v && m && (v && v.current.length > 0 && m && m.current.length > 0 && (v.current[0] = bi(m.current[0]), v.current[1] = bi(Mu.position)), va(v.current));
81450
81450
  }, [Jt, re]);
81451
81451
  const va = (sn) => {
81452
- var St = sn[0].x - sn[1].x, dn = sn[0].y - sn[1].y, $t = sn[0].z - sn[1].z, Xn = Math.sqrt(St * St + dn * dn + $t * $t);
81453
- St = Math.abs(St / Xn), dn = Math.abs(dn / Xn), $t = Math.abs($t / Xn), St = Math.acos(St) * 180 / Math.PI, dn = Math.acos(dn) * 180 / Math.PI, $t = Math.acos($t) * 180 / Math.PI;
81454
- var er = Ce == "en_us" ? `<span style='font-weight:bold;display:inline-flex;align-items:center;'>Datum mark: </span>${Xt.current}` : `参考点名称: ${Xt.current}`, Br = Ce == "en_us" && Ce ? `Target site (unit: mm)<img style='width:20px;height:20px;' src=${dJ} />: ` : `项目 (unit: mm)<img style='width:20px;height:20px;' src=${dJ} />: `, ai = Ce == "en_us" && Ce ? "The angle of injection (unit:°):" : "注射方向的角度 (unit:°):", fi = Ce == "en_us" && Ce ? `Injection site (unit: mm)<img style='width:20px;height:20px;' src=${h0e} />: ` : `注射部位 (unit: mm)<img style='width:20px;height:20px;' src=${h0e} />: `, Vr = `<span>${er}</span><br /><span style='font-weight:bold'> ${ai}<br/></span>coronal plane ${$t.toFixed(2)} / horizontal plane ${dn.toFixed(2)} / sagittal plane ${St.toFixed(2)}`, ti = `<br><span style='font-weight:bold;display:inline-flex;align-items:center;'>${Br}</span><br>X: ${sn[0].x.toFixed(2)} / Y: ${sn[0].y.toFixed(2)} / Z: ${sn[0].z.toFixed(2)}<br><span style='font-weight:bold;display:inline-flex;align-items:center;'>${fi}</span><br>X: ${sn[1].x.toFixed(2)} / Y: ${sn[1].y.toFixed(2)} / Z: ${sn[1].z.toFixed(2)}`;
81452
+ var St = sn[0].x - sn[1].x, dn = sn[0].y - sn[1].y, Bt = sn[0].z - sn[1].z, Xn = Math.sqrt(St * St + dn * dn + Bt * Bt);
81453
+ St = Math.abs(St / Xn), dn = Math.abs(dn / Xn), Bt = Math.abs(Bt / Xn), St = Math.acos(St) * 180 / Math.PI, dn = Math.acos(dn) * 180 / Math.PI, Bt = Math.acos(Bt) * 180 / Math.PI;
81454
+ var er = Ce == "en_us" ? `<span style='font-weight:bold;display:inline-flex;align-items:center;'>Datum mark: </span>${Xt.current}` : `参考点名称: ${Xt.current}`, Br = Ce == "en_us" && Ce ? `Target site (unit: mm)<img style='width:20px;height:20px;' src=${dJ} />: ` : `项目 (unit: mm)<img style='width:20px;height:20px;' src=${dJ} />: `, ai = Ce == "en_us" && Ce ? "The angle of injection (unit:°):" : "注射方向的角度 (unit:°):", fi = Ce == "en_us" && Ce ? `Injection site (unit: mm)<img style='width:20px;height:20px;' src=${h0e} />: ` : `注射部位 (unit: mm)<img style='width:20px;height:20px;' src=${h0e} />: `, Vr = `<span>${er}</span><br /><span style='font-weight:bold'> ${ai}<br/></span>coronal plane ${Bt.toFixed(2)} / horizontal plane ${dn.toFixed(2)} / sagittal plane ${St.toFixed(2)}`, ti = `<br><span style='font-weight:bold;display:inline-flex;align-items:center;'>${Br}</span><br>X: ${sn[0].x.toFixed(2)} / Y: ${sn[0].y.toFixed(2)} / Z: ${sn[0].z.toFixed(2)}<br><span style='font-weight:bold;display:inline-flex;align-items:center;'>${fi}</span><br>X: ${sn[1].x.toFixed(2)} / Y: ${sn[1].y.toFixed(2)} / Z: ${sn[1].z.toFixed(2)}`;
81455
81455
  l && l(Vr + ti);
81456
- }, cs = (sn, St, dn, $t, Xn = !1) => {
81456
+ }, cs = (sn, St, dn, Bt, Xn = !1) => {
81457
81457
  var er = document.createElement("canvas");
81458
- er.width = sn, er.height = St, er.style.border = "1px solid " + $t;
81458
+ er.width = sn, er.height = St, er.style.border = "1px solid " + Bt;
81459
81459
  let Br = er.getContext("2d");
81460
- return Xn ? Br.font = "bold 101px Arial" : Br.font = "101px Arial", Br.fillStyle = $t, Br.fillText(dn, 40, 80), er;
81460
+ return Xn ? Br.font = "bold 101px Arial" : Br.font = "101px Arial", Br.fillStyle = Bt, Br.fillText(dn, 40, 80), er;
81461
81461
  }, Uo = (sn) => {
81462
81462
  vn.current && _e.current.remove(vn.current);
81463
- const St = Wt.current.find(($t) => $t.name === sn);
81463
+ const St = Wt.current.find((Bt) => Bt.name === sn);
81464
81464
  var dn = new Zf(cs(650, 620, sn.replace("_", "/"), "#000000ff"));
81465
81465
  vn.current = new yf(new jd({
81466
81466
  map: dn
@@ -81468,20 +81468,20 @@ const uLt = (t) => {
81468
81468
  }, hi = () => {
81469
81469
  Et.current && (Et.current.coordText && typeof Et.current.coordText == "object" && _e.current.remove(Et.current.coordText), Et.current.coordTextReverse && typeof Et.current.coordTextReverse == "object" && _e.current.remove(Et.current.coordTextReverse), Et.current.mouseLine_w && typeof Et.current.mouseLine_w == "object" && _e.current.remove(Et.current.mouseLine_w), Et.current.mouseLine_h && typeof Et.current.mouseLine_h == "object" && _e.current.remove(Et.current.mouseLine_h)), rt.current && (rt.current.coordText && typeof rt.current.coordText == "object" && _e.current.remove(rt.current.coordText), rt.current.coordTextReverse && typeof rt.current.coordTextReverse == "object" && _e.current.remove(rt.current.coordTextReverse), rt.current.mouseLine_w && typeof rt.current.mouseLine_w == "object" && _e.current.remove(rt.current.mouseLine_w), rt.current.mouseLine_h && typeof rt.current.mouseLine_h == "object" && _e.current.remove(rt.current.mouseLine_h)), vt.current && (vt.current.coordText && typeof vt.current.coordText == "object" && _e.current.remove(vt.current.coordText), vt.current.coordTextReverse && typeof vt.current.coordTextReverse == "object" && _e.current.remove(vt.current.coordTextReverse), vt.current.mouseLine_w && typeof vt.current.mouseLine_w == "object" && _e.current.remove(vt.current.mouseLine_w), vt.current.mouseLine_h && typeof vt.current.mouseLine_h == "object" && _e.current.remove(vt.current.mouseLine_h)), Ne.current && (Ne.current.coordText && typeof Ne.current.coordText == "object" && _e.current.remove(Ne.current.coordText), Ne.current.coordTextReverse && typeof Ne.current.coordTextReverse == "object" && _e.current.remove(Ne.current.coordTextReverse), Ne.current.mouseLine_w && typeof Ne.current.mouseLine_w == "object" && _e.current.remove(Ne.current.mouseLine_w), Ne.current.mouseLine_h && typeof Ne.current.mouseLine_h == "object" && _e.current.remove(Ne.current.mouseLine_h)), Ge.current && (Ge.current.coordText_lb && typeof Ge.current.coordText_lb == "object" && _e.current.remove(Ge.current.coordText_lb), Ge.current.coordText_rb && typeof Ge.current.coordText_rb == "object" && _e.current.remove(Ge.current.coordText_rb), Ge.current.coordText_rf && typeof Ge.current.coordText_rf == "object" && _e.current.remove(Ge.current.coordText_rf), Ge.current.coordText_lf && typeof Ge.current.coordText_lf == "object" && _e.current.remove(Ge.current.coordText_lf), Ge.current.mouseLine_w && typeof Ge.current.mouseLine_w == "object" && _e.current.remove(Ge.current.mouseLine_w), Ge.current.mouseLine_h && typeof Ge.current.mouseLine_h == "object" && _e.current.remove(Ge.current.mouseLine_h)), h.current = [], xt.current = Oa(1, { x: (qe.current.x + Ze.current.x) / 2, y: qe.current.y, z: (qe.current.z + Ze.current.z) / 2 }, Ze.current.x - qe.current.x, Ze.current.z - qe.current.z, 12, 14, "#E3E3E3", "test_top"), xt.current.normalVector = new Ae(0, -1, 0), xt.current.mouseLine_w.name = "test_top_mouseLine_w", xt.current.mouseLine_h.name = "test_top_mouseLine_h", Ge.current = Oa(1, { x: (qe.current.x + Ze.current.x) / 2, y: Ze.current.y, z: (qe.current.z + Ze.current.z) / 2 }, Ze.current.x - qe.current.x, Ze.current.z - qe.current.z, 12, 14, "#E3E3E3", "test_bootom"), Ge.current.normalVector = new Ae(0, 1, 0), Ge.current.mouseLine_w.name = "test_bottom_mouseLine_w", Ge.current.mouseLine_h.name = "test_bottom_mouseLine_h", rt.current = Oa(2, { x: (qe.current.x + Ze.current.x) / 2, y: (qe.current.y + Ze.current.y) / 2, z: qe.current.z }, Ze.current.x - qe.current.x, Ze.current.y - qe.current.y, 12, 10, "#E3E3E3", "test_front"), rt.current.normalVector = new Ae(0, 0, -1), rt.current.mouseLine_w.name = "test_front_mouseLine_w", rt.current.mouseLine_h.name = "test_front_mouseLine_h", Et.current = Oa(2, { x: (qe.current.x + Ze.current.x) / 2, y: (qe.current.y + Ze.current.y) / 2, z: Ze.current.z }, Ze.current.x - qe.current.x, Ze.current.y - qe.current.y, 12, 10, "#E3E3E3", "test_behind"), Et.current.normalVector = new Ae(0, 0, 1), Et.current.mouseLine_w.name = "test_behind_mouseLine_w", Et.current.mouseLine_h.name = "test_behind_mouseLine_h", vt.current = Oa(3, { x: qe.current.x, y: (qe.current.y + Ze.current.y) / 2, z: (qe.current.z + Ze.current.z) / 2 }, Ze.current.z - qe.current.z, Ze.current.y - qe.current.y, 14, 10, "#E3E3E3", "test_left"), vt.current.normalVector = new Ae(-1, 0, 0), vt.current.mouseLine_w.name = "test_left_mouseLine_w", vt.current.mouseLine_h.name = "test_left_mouseLine_h", Ne.current = Oa(3, { x: Ze.current.x, y: (qe.current.y + Ze.current.y) / 2, z: (qe.current.z + Ze.current.z) / 2 }, Ze.current.z - qe.current.z, Ze.current.y - qe.current.y, 14, 10, "#E3E3E3", "test_right"), Ne.current.normalVector = new Ae(1, 0, 0), Ne.current.mouseLine_w.name = "test_right_mouseLine_w", Ne.current.mouseLine_h.name = "test_right_mouseLine_h", Ov = new nr(new tu(0.1, 32, 32), new Fl({ color: 392960, transparent: !0 })), Ov.name = "sphereBig", Rr.current = new nr(new tu(0.065, 32, 32), new Fl({ color: 392960, transparent: !0 })), Wr.current = new nr(new tu(0.025, 32, 32), new Fl({ color: 392960, transparent: !0 })), _e.current.getObjectByName("sphereMiddelClick") || (Mu = new nr(new $_(0.1, 0.3, 32), new Fl({ color: 1609983, transparent: !0 })), Mu.name = "sphereMiddelClick"), Et.current && (Et.current.coordMesh.visible = Q, Et.current.mouseLine_w.visible = Q, Et.current.mouseLine_h.visible = Q), xt.current && (xt.current.coordMesh.visible = Q, xt.current.mouseLine_w.visible = Q, xt.current.mouseLine_h.visible = Q), rt.current && (rt.current.coordMesh.visible = Q, rt.current.mouseLine_w.visible = Q, rt.current.mouseLine_h.visible = Q), Ge.current && (Ge.current.coordMesh.visible = Q, Ge.current.mouseLine_w.visible = Q, Ge.current.mouseLine_h.visible = Q), vt.current && (vt.current.coordMesh.visible = Q, vt.current.mouseLine_w.visible = Q, vt.current.mouseLine_h.visible = Q), Ne.current && (Ne.current.coordMesh.visible = Q, Ne.current.mouseLine_w.visible = Q, Ne.current.mouseLine_h.visible = Q);
81470
81470
  let St = new Ae(0, -1, 0), dn = new Ae(0, 1, 0);
81471
- const $t = new ed(_e.current.rotation.x, _e.current.rotation.y, _e.current.rotation.z), Xn = Mn.current.clone().applyEuler($t), er = Le.current.clone(), Br = Me.current.clone();
81471
+ const Bt = new ed(_e.current.rotation.x, _e.current.rotation.y, _e.current.rotation.z), Xn = Mn.current.clone().applyEuler(Bt), er = Le.current.clone(), Br = Me.current.clone();
81472
81472
  let ai = Br.x - Xn.x, fi = er.x - Xn.x, Vr = new Ae(qe.current.x, qe.current.y, Ze.current.z), ti = new Ae(1, 0, 0);
81473
81473
  Et.current.coordText = Mi(St, Vr, ti, Ze.current.x - qe.current.x, 12, ai, fi, new Ae(0, 0, 0)), Vr.y = Ze.current.y, Et.current.coordTextReverse = Mi(dn, Vr, ti, Ze.current.x - qe.current.x, 12, ai, fi, new Ae(0, 0, 0)), Vr = new Ae(qe.current.x, qe.current.y, qe.current.z), ti = new Ae(1, 0, 0), rt.current.coordText = Mi(St, Vr, ti, Ze.current.x - qe.current.x, 12, ai, fi, new Ae(0, 0, 0)), Vr.y = Ze.current.y, rt.current.coordTextReverse = Mi(dn, Vr, ti, Ze.current.x - qe.current.x, 12, ai, fi, new Ae(0, 0, 0)), Vr = new Ae(qe.current.x, qe.current.y, Ze.current.z), ti = new Ae(0, 0, -1);
81474
81474
  let Ai = -(er.z - Xn.z), Pn = -(Br.z - Xn.z);
81475
81475
  _e.current.rotation.x != 0 && (Pn = Pn + 0.4, Ai = Ai + 0.4), vt.current.coordText = Mi(St, Vr, ti, Ze.current.z - qe.current.z, 14, Ai, Pn, new Ae(0, 0, 0)), Vr.y = Ze.current.y, vt.current.coordTextReverse = Mi(dn, Vr, ti, Ze.current.z - qe.current.z, 14, Ai, Pn, new Ae(0, 0, 0)), Vr = new Ae(Ze.current.x, qe.current.y, Ze.current.z), ti = new Ae(0, 0, -1), Ne.current.coordText = Mi(St, Vr, ti, Ze.current.z - qe.current.z, 14, Ai, Pn, new Ae(0, 0, 0)), Vr.y = Ze.current.y, Ne.current.coordTextReverse = Mi(dn, Vr, ti, Ze.current.z - qe.current.z, 14, Ai, Pn, new Ae(0, 0, 0));
81476
81476
  let rr = Br.y - Xn.y - 0.12, cn = er.y - Xn.y - 0.12;
81477
81477
  Vr = new Ae(Ze.current.x, qe.current.y, Ze.current.z), ti = new Ae(0, 1, 0), Ge.current.coordText_lb = Mi(St, Vr, ti, Ze.current.y - qe.current.y, 10, rr, cn, new Ae(0, 0, 0)), Vr = new Ae(qe.current.x, qe.current.y, Ze.current.z), ti = new Ae(0, 1, 0), Ge.current.coordText_lf = Mi(St, Vr, ti, Ze.current.y - qe.current.y, 10, rr, cn, new Ae(0, 0, 0)), Vr = new Ae(qe.current.x, qe.current.y, qe.current.z), ti = new Ae(0, 1, 0), Ge.current.coordText_rf = Mi(St, Vr, ti, Ze.current.y - qe.current.y, 10, rr, cn, new Ae(0, 0, 0)), Vr = new Ae(Ze.current.x, qe.current.y, qe.current.z), ti = new Ae(0, 1, 0), Ge.current.coordText_rb = Mi(St, Vr, ti, Ze.current.y - qe.current.y, 10, rr, cn, new Ae(0, 0, 0)), ji();
81478
- }, Oa = (sn, St, dn, $t, Xn, er, Br, ai) => {
81478
+ }, Oa = (sn, St, dn, Bt, Xn, er, Br, ai) => {
81479
81479
  let fi = {
81480
81480
  mouseLine_w: new xa(),
81481
81481
  mouseLine_h: new xa(),
81482
81482
  coordMesh: new Do()
81483
81483
  }, Vr = new Do(), ti, Ai, Pn, rr, cn, dt, Oe, ze;
81484
- Oe = dn / Xn, ze = $t / er;
81484
+ Oe = dn / Xn, ze = Bt / er;
81485
81485
  let at = new iu({
81486
81486
  color: Br,
81487
81487
  opacity: 0.9,
@@ -81493,7 +81493,7 @@ const uLt = (t) => {
81493
81493
  }), ht, Ct;
81494
81494
  const lt = _e.current.rotation, Ee = new Ae(lt.x, lt.y, lt.z).negate(), ue = new ed(Ee.x, Ee.y, Ee.z), De = new Ni().makeRotationFromEuler(ue);
81495
81495
  if (sn == 1) {
81496
- Ai = St.y, cn = Ai, ti = St.x - dn / 2, rr = St.x + dn / 2, Pn = St.z - $t / 2, dt = St.z + $t / 2;
81496
+ Ai = St.y, cn = Ai, ti = St.x - dn / 2, rr = St.x + dn / 2, Pn = St.z - Bt / 2, dt = St.z + Bt / 2;
81497
81497
  for (let gt = 0; gt <= Xn; gt++) {
81498
81498
  let zt = new Fi(), Vt = [];
81499
81499
  Vt.push(ti + gt * Oe, Ai, Pn, ti + gt * Oe, Ai, dt);
@@ -81515,7 +81515,7 @@ const uLt = (t) => {
81515
81515
  let tt = new Fi();
81516
81516
  tt.setAttribute("position", new Zs(new Float32Array([0, 0, Pn, 0, 0, dt]), 3)), Ct = new xa(tt, st), Ct.position.setY(cn), Ct.userData.initY = cn, fi.mouseLine_w = ht, fi.mouseLine_h = Ct;
81517
81517
  } else if (sn == 2) {
81518
- Pn = St.z, dt = Pn, ti = St.x - dn / 2, rr = St.x + dn / 2, Ai = St.y - $t / 2, cn = St.y + $t / 2;
81518
+ Pn = St.z, dt = Pn, ti = St.x - dn / 2, rr = St.x + dn / 2, Ai = St.y - Bt / 2, cn = St.y + Bt / 2;
81519
81519
  for (let gt = 0; gt <= Xn; gt++) {
81520
81520
  let zt = new Fi();
81521
81521
  zt.setAttribute("position", new Zs(new Float32Array([ti + gt * Oe, Ai, Pn, ti + gt * Oe, cn, Pn]), 3));
@@ -81533,7 +81533,7 @@ const uLt = (t) => {
81533
81533
  let tt = new Fi();
81534
81534
  tt.setAttribute("position", new Zs(new Float32Array([0, Ai, 0, 0, cn, 0]), 3)), Ct = new xa(tt, st), Ct.position.setZ(dt), Ct.userData.initZ = dt, fi.mouseLine_w = ht, fi.mouseLine_h = Ct;
81535
81535
  } else if (sn == 3) {
81536
- ti = St.x, rr = ti, Pn = St.z - dn / 2, dt = St.z + dn / 2, Ai = St.y - $t / 2, cn = St.y + $t / 2;
81536
+ ti = St.x, rr = ti, Pn = St.z - dn / 2, dt = St.z + dn / 2, Ai = St.y - Bt / 2, cn = St.y + Bt / 2;
81537
81537
  for (let gt = 0; gt <= Xn; gt++) {
81538
81538
  let zt = new Fi();
81539
81539
  zt.setAttribute("position", new Zs(new Float32Array([ti, Ai, Pn + gt * Oe, ti, cn, Pn + gt * Oe]), 3));
@@ -81566,9 +81566,9 @@ const uLt = (t) => {
81566
81566
  path: dn.path
81567
81567
  };
81568
81568
  if (dn.children) {
81569
- const $t = Ti(dn.children, St);
81570
- if ($t)
81571
- return $t;
81569
+ const Bt = Ti(dn.children, St);
81570
+ if (Bt)
81571
+ return Bt;
81572
81572
  }
81573
81573
  }
81574
81574
  return null;
@@ -81585,8 +81585,8 @@ const uLt = (t) => {
81585
81585
  label: O.createElement("a", { target: "_blank", style: { width: "150px", textAlign: "center", color: "#000" }, onClick: (sn) => {
81586
81586
  rn(Ht.current.point);
81587
81587
  let St = new URL(window.location.href), dn = new URLSearchParams(St.search);
81588
- const $t = JSON.stringify(Ht.current.point);
81589
- dn.set("datumMarkSelected", $t), St.search = dn.toString(), window.history.replaceState({}, "", St), Mn.current = Ht.current.center, Xt.current = Ht.current.name, jt.current.forEach((Xn, er) => {
81588
+ const Bt = JSON.stringify(Ht.current.point);
81589
+ dn.set("datumMarkSelected", Bt), St.search = dn.toString(), window.history.replaceState({}, "", St), Mn.current = Ht.current.center, Xt.current = Ht.current.name, jt.current.forEach((Xn, er) => {
81590
81590
  Xn.geometry.parameters.radius === 0.15 && Xn.name != Ht.current.name ? (_e.current.remove(Xn), Xn.geometry.dispose(), Xn.geometry = new tu(0.07, 32, 32), _e.current.add(Xn)) : Xn.name === Ht.current.name && (_e.current.remove(Xn), Xn.geometry.dispose(), Xn.geometry = new tu(0.15, 32, 32), Xn.add(SC), _e.current.add(Xn));
81591
81591
  }), f(!0);
81592
81592
  } }, G("5000.5038", { name: Ht.current.name }) || "切换" + Ht.current.name + "为坐标原点")
@@ -126196,7 +126196,7 @@ let my = !1, cH = [], Ftn = new URL(window.location.href), Bm = new URLSearchPar
126196
126196
  const G4n = ou((t, e) => {
126197
126197
  const { treeDatas: n, fbxTreeDatas: r, vesselObj: i, json_name: a, offset_factor_R: o, type: s, leftTreeRef: l, baozhaRef: u, needBaozha: d, offset_factor: f, dataUrl: p, t: h, StepsCount: g, showimage: y, checkItems: v, setCheckItems: m, outflag: b, automaticGroup: E, mode: C, axon_check: S, swcnameMesh: x, updatePage: I, setEchartValue: P, auxRef: A, PointShow: N, tasktype: D, regionData: U, metadata: z, resourceTab: B, atlasData: j, setTip: V } = t, [G, W] = mt([]), Z = Ke(null), [H, X] = mt(!1), [ee, K] = mt(RCe ? JSON.parse(RCe) : null), [Y, te] = mt(ACe ? JSON.parse(ACe) : null), re = Ke({}), Q = Ke(v), oe = Ke({}), ge = Ke(!1), pe = Ke(1), fe = Ke(!0), ae = Ke(!1), Ce = Ke([]), ie = Ke("FBX"), [ye, de] = mt([]), Te = Ke([]), Be = Ke([]), Ye = Ke([]), ke = Ke(!0), [we, We] = mt([]), ve = Ke([]), [he, Ue] = mt([]), Le = Ke(null), Me = Ke(null), ot = Ke(null), qe = Ke(null), Ze = Ke(0), ft = Ke(!0), At = Ke([]), bt = Ke({}), [ut, xt] = mt(OCe ? JSON.parse(OCe) : []), Ge = Ke([]), [rt, Et] = mt(!1), [Ne, vt] = mt([]), [Wt, jt] = mt({}), [Xt, Jt] = mt(!1), [rn, vn] = mt(!1), [Mn, On] = mt(!1), [Yn, Rr] = mt(!1), [Wr, Zn] = mt(!1), [Zt, jn] = mt(!1), [bn, fr] = mt(!1), [mr, yt] = mt(!1), [Ht, hn] = mt(!1), [Fe, Tt] = mt("1"), Pt = Ke({ data: [] }), Ut = Ke({ data: [] }), Mt = Ke({ data: [] }), Yt = Ke({ data: [] }), Gt = Ke({ data: [] }), nn = Ke(!1), Dn = Ke("");
126198
126198
  Ke({});
126199
- const Qt = Ke(MCe ? JSON.parse(decodeURIComponent(MCe).replace("!", "#")) : {}), [Bt, ln] = mt({}), [zn, Nn] = mt(!1), yr = [
126199
+ const Qt = Ke(MCe ? JSON.parse(decodeURIComponent(MCe).replace("!", "#")) : {}), [$t, ln] = mt({}), [zn, Nn] = mt(!1), yr = [
126200
126200
  Ke({ data: [] }),
126201
126201
  Ke({ data: [] }),
126202
126202
  Ke({ data: [] })
@@ -127327,11 +127327,11 @@ const G4n = ou((t, e) => {
127327
127327
  });
127328
127328
  ht = new Sf(Ct, Ee), ht.translateX(lo.current), ht.translateY(no.current), ht.translateZ(Ka.current - 0.45), ht.name = ze, re.current[ze] = ht, _e.current.add(ht);
127329
127329
  }), at && at();
127330
- }, $t = (dt) => {
127330
+ }, Bt = (dt) => {
127331
127331
  ft.current = !0;
127332
127332
  let Oe = new URL(window.location.href), ze = new URLSearchParams(Oe.search);
127333
127333
  ze.set("neuronsProjects", JSON.stringify(dt)), Oe.search = ze.toString(), window.history.replaceState({}, "", Oe), dt != "" ? K(dt) : (K(dt), W(Te.current));
127334
- }, Xn = ii($t, 50), er = (dt) => {
127334
+ }, Xn = ii(Bt, 50), er = (dt) => {
127335
127335
  ft.current = !0;
127336
127336
  let Oe = new URL(window.location.href), ze = new URLSearchParams(Oe.search);
127337
127337
  ze.set("neuronsSomaLocates", dt ? JSON.stringify(dt) : ""), Oe.search = ze.toString(), window.history.replaceState({}, "", Oe), dt != "" ? te(dt) : (te(dt), W(Te.current));
@@ -127408,7 +127408,7 @@ const G4n = ou((t, e) => {
127408
127408
  O.Fragment,
127409
127409
  null,
127410
127410
  Y ? O.createElement(xA, { ref: Le, style: { width: "100%", marginBottom: 8 }, options: he, placeholder: h("5000.5040") || "Input the region that soma locates", onSearch: Vr, onChange: Br, value: Y }) : O.createElement(jE, { ref: Me, showSearch: !0, style: { width: "100%", marginBottom: 8 }, value: Y, dropdownStyle: { maxHeight: 400, overflow: "hidden" }, placeholder: h("5000.5040") || "Input the region that soma locates", allowClear: !0, treeDefaultExpandAll: !1, onChange: er, onSearch: er, treeData: Cr(r) }),
127411
- ee ? O.createElement(xA, { ref: ot, style: { width: "100%", marginBottom: 8 }, options: he, placeholder: h("5000.5041") || "Input the region that neuron projects", onSearch: Vr, onChange: Xn, value: ee }) : O.createElement(jE, { showSearch: !0, ref: qe, style: { width: "100%" }, value: ee, dropdownStyle: { maxHeight: 400, overflow: "hidden", marginBottom: 8 }, placeholder: h("5000.5041") || "Input the region that neuron projects", allowClear: !0, treeDefaultExpandAll: !1, onChange: $t, onSearch: $t, treeData: Cr(r) }),
127411
+ ee ? O.createElement(xA, { ref: ot, style: { width: "100%", marginBottom: 8 }, options: he, placeholder: h("5000.5041") || "Input the region that neuron projects", onSearch: Vr, onChange: Xn, value: ee }) : O.createElement(jE, { showSearch: !0, ref: qe, style: { width: "100%" }, value: ee, dropdownStyle: { maxHeight: 400, overflow: "hidden", marginBottom: 8 }, placeholder: h("5000.5041") || "Input the region that neuron projects", allowClear: !0, treeDefaultExpandAll: !1, onChange: Bt, onSearch: Bt, treeData: Cr(r) }),
127412
127412
  z && O.createElement(
127413
127413
  O.Fragment,
127414
127414
  null,
@@ -127464,32 +127464,32 @@ const G4n = ou((t, e) => {
127464
127464
  O.createElement(Jl, { ref: En[0], className: "CB", Name: "CB", t: h, data_change: Wt, data_c: bt.current, col: ["LING_", "LING_", "CENT2_", "CENT2_", "CENT3_", "CENT3_", "CUL4/5_", "CUL4/5_", "DEC_", "DEC_", "FOTU_", "FOTU_", "PYR_", "PYR_", "UVU_", "UVU_", "NOD_", "NOD_", "SIM_", "SIM_", "ANcr1_", "ANcr1_", "ANcr2_", "ANcr2_", "PRM_", "PRM_", "COPY_", "COPY_", "PFL_", "PFL_", "FL_", "FL_", "IP", "DN"], row: ["gr", "mo"] }),
127465
127465
  O.createElement(Jl, { ref: En[1], className: "CB", Name: "CB", t: h, data_change: Wt, data_c: bt.current, col: ["FN", "IP", "DN", "VeCB"], row: ["_"] })
127466
127466
  ),
127467
- O.createElement(lH, { tab: h("5000.7011") || "神经元投射模式", key: "2" }, r ? O.createElement(Lze, { data: Bt, fbxTreeDatas: r }) : null),
127467
+ O.createElement(lH, { tab: h("5000.7011") || "神经元投射模式", key: "2" }, r ? O.createElement(Lze, { data: $t, fbxTreeDatas: r }) : null),
127468
127468
  O.createElement(
127469
127469
  lH,
127470
127470
  { tab: h("5000.7012") || "投射长度分布", key: "3" },
127471
127471
  rn && O.createElement(zi, null, "Isocortex"),
127472
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["RSPv_", "FRP_", "MOp_", "MOs_", "SSp_", "SSp-n_", "SSp-bfd_", "SSp-ll_", "SSp-m_", "SSp-ul_", "SSp-tr_", "SSp-un_", "SSs_", "GU_", "VISC_", "AUDd_", "AUDp_", "AUDpo_", "AUDv_", "VISal_", "VISam_", "VISl_", "VISp_", "VISpl_", "VISpm_", "VISli_", "VISpor_", "ACAd_", "ACAv_", "PL_", "ILA_", "ORB_", "AId_", "AIp_", "AIv_", "RSPagl_", "RSPd_", "PTLp_", "TEa_", "PERI_", "ECT_"], row: ["1", "2/3", "5", "6a", "6b"] }),
127472
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["RSPv_", "FRP_", "MOp_", "MOs_", "SSp_", "SSp-n_", "SSp-bfd_", "SSp-ll_", "SSp-m_", "SSp-ul_", "SSp-tr_", "SSp-un_", "SSs_", "GU_", "VISC_", "AUDd_", "AUDp_", "AUDpo_", "AUDv_", "VISal_", "VISam_", "VISl_", "VISp_", "VISpl_", "VISpm_", "VISli_", "VISpor_", "ACAd_", "ACAv_", "PL_", "ILA_", "ORB_", "AId_", "AIp_", "AIv_", "RSPagl_", "RSPd_", "PTLp_", "TEa_", "PERI_", "ECT_"], row: ["1", "2/3", "5", "6a", "6b"] }),
127473
127473
  Xt && O.createElement(zi, null, "HPF"),
127474
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["CA1_d", "CA1_i", "CA1_v", "CA1_", "CA3_dd", "CA3_d", "CA3_i", "CA3_v", "CA3_vv", "CA2_"], row: ["so", "sp", "slu", "sr", "slm"] }),
127475
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["DG_d", "DG_i", "DG_V"], row: ["mo", "sg", "po"] }),
127476
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["SUBd_1", "SUBv_1", "SUBd_2", "SUBv_2", "SUBd_3", "SUBv_3", "SUBd_4", "SUBv_4", "SUBd_", "SUBv_"], row: ["sp", "sr", "m"] }),
127474
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["CA1_d", "CA1_i", "CA1_v", "CA1_", "CA3_dd", "CA3_d", "CA3_i", "CA3_v", "CA3_vv", "CA2_"], row: ["so", "sp", "slu", "sr", "slm"] }),
127475
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["DG_d", "DG_i", "DG_V"], row: ["mo", "sg", "po"] }),
127476
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["SUBd_1", "SUBv_1", "SUBd_2", "SUBv_2", "SUBd_3", "SUBv_3", "SUBd_4", "SUBv_4", "SUBd_", "SUBv_"], row: ["sp", "sr", "m"] }),
127477
127477
  bn && O.createElement(zi, null, "CNU"),
127478
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["CP_", "ACBv_", "ACBd_", "FS_", "OTisl_", "OTislm_", "OT1", "OT2", "OT3", "LSc", "LSr_", "SF", "SH", "AAA", "BA", "CEAc", "CEAm", "IA", "MEAad", "MEAav", "MEApd", "MEApv", "GPe", "GPi", "SI", "MA", "NDB", "TRS", "PALc", "BSTse", "BAC"], row: ["_"] }),
127478
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["CP_", "ACBv_", "ACBd_", "FS_", "OTisl_", "OTislm_", "OT1", "OT2", "OT3", "LSc", "LSr_", "SF", "SH", "AAA", "BA", "CEAc", "CEAm", "IA", "MEAad", "MEAav", "MEApd", "MEApv", "GPe", "GPi", "SI", "MA", "NDB", "TRS", "PALc", "BSTse", "BAC"], row: ["_"] }),
127479
127479
  mr && O.createElement(zi, null, "OLF"),
127480
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["MOB_", "AOB_", "AON_", "TTv_", "TTd_", "DP_", "PIR_", "NLOT_", "NLOT_", "COAa_", "COApm_", "COApl_", "PAA_", "TR_"], row: ["gr", "mi", "ipl", "opl", "gl"] }),
127481
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["MOB_", "AOB_", "AON_", "TTv_", "TTd_", "DP_", "PIR_", "NLOT_", "NLOT_", "COAa_", "COApm_", "COApl_", "PAA_", "TR_"], row: ["1", "2", "3", "4", "5", "6a", "2/3"] }),
127480
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["MOB_", "AOB_", "AON_", "TTv_", "TTd_", "DP_", "PIR_", "NLOT_", "NLOT_", "COAa_", "COApm_", "COApl_", "PAA_", "TR_"], row: ["gr", "mi", "ipl", "opl", "gl"] }),
127481
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["MOB_", "AOB_", "AON_", "TTv_", "TTd_", "DP_", "PIR_", "NLOT_", "NLOT_", "COAa_", "COApm_", "COApl_", "PAA_", "TR_"], row: ["1", "2", "3", "4", "5", "6a", "2/3"] }),
127482
127482
  Wr && O.createElement(zi, null, "TH"),
127483
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["VAL", "VM", "VPL", "VPLpc", "VPM", "VPMpc", "PoT", "SPFm", "SPFp", "SPA", "PP", "MGd", "MGv", "MGm", "LGdsh", "LGdco", "LGdip", "LP", "PO", "POL", "SGN", "Eth", "REth", "AV", "AMd", "AMv", "AD", "IAM", "IAD", "LD", "IMD", "MDc", "MDl", "MDm", "SMT", "PR", "PVT", "PT", "RE", "Xi", "RH", "CM", "PCN", "CL", "PF", "PIL", "RT", "IGL", "IntG", "LGvl", "LGvm", "SubG", "MH", "LH", "PIN"], row: ["_"] }),
127483
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["VAL", "VM", "VPL", "VPLpc", "VPM", "VPMpc", "PoT", "SPFm", "SPFp", "SPA", "PP", "MGd", "MGv", "MGm", "LGdsh", "LGdco", "LGdip", "LP", "PO", "POL", "SGN", "Eth", "REth", "AV", "AMd", "AMv", "AD", "IAM", "IAD", "LD", "IMD", "MDc", "MDl", "MDm", "SMT", "PR", "PVT", "PT", "RE", "Xi", "RH", "CM", "PCN", "CL", "PF", "PIL", "RT", "IGL", "IntG", "LGvl", "LGvm", "SubG", "MH", "LH", "PIN"], row: ["_"] }),
127484
127484
  Yn && O.createElement(zi, null, "HY"),
127485
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["SO", "NC", "PVHam", "PVHmm", "PVHpmm", "PVHpml", "PVHap", "PVHmpd", "PVHpv", "PVa", "PVi", "ARH", "ADP", "AHA", "AVP", "DMHa", "DMHp", "DMHv", "MEPO", "MPO", "OV", "PD", "PS", "PSCH", "PVp", "PVpo", "SBPV", "SCH", "SFO", "VMPO", "VLPO", "AVPV", "AHNa", "AHNc", "AHNd", "AHNp", "LM", "MMme", "MMl", "MMm", "MMp", "MMd", "SUMm", "SUMl", "TMd", "TMv", "MPNc", "MPNl", "MPNm", "PMd", "PMv", "PVHdp", "PVHf", "PVHlp", "PVHmpv", "VMHa", "VMHc", "VMHdm", "VMHvl", "PH", "LHA", "LPO", "PST", "PSTN", "RCH", "PeF", "STN", "TU", "A13", "FF", "ZIr", "ZIc", "ZId", "ZIv", "ME"], row: ["_"] }),
127485
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["SO", "NC", "PVHam", "PVHmm", "PVHpmm", "PVHpml", "PVHap", "PVHmpd", "PVHpv", "PVa", "PVi", "ARH", "ADP", "AHA", "AVP", "DMHa", "DMHp", "DMHv", "MEPO", "MPO", "OV", "PD", "PS", "PSCH", "PVp", "PVpo", "SBPV", "SCH", "SFO", "VMPO", "VLPO", "AVPV", "AHNa", "AHNc", "AHNd", "AHNp", "LM", "MMme", "MMl", "MMm", "MMp", "MMd", "SUMm", "SUMl", "TMd", "TMv", "MPNc", "MPNl", "MPNm", "PMd", "PMv", "PVHdp", "PVHf", "PVHlp", "PVHmpv", "VMHa", "VMHc", "VMHdm", "VMHvl", "PH", "LHA", "LPO", "PST", "PSTN", "RCH", "PeF", "STN", "TU", "A13", "FF", "ZIr", "ZIc", "ZId", "ZIv", "ME"], row: ["_"] }),
127486
127486
  Ht && O.createElement(zi, null, "MB"),
127487
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["SCop", "SCsg", "SCzo", "ICc", "ICd", "ICe", "NB", "SAG", "PBG", "MEV", "SCO", "SNr", "VTA", "RR", "MRNm", "MRNmg", "MRNp", "SCdg", "SCdw", "SCiw", "SCig-a", "SCig-b", "SCig-c", "PRC", "INC", "ND", "Su3", "PAGdm", "PAGl", "PAGvl", "PAGdl", "PAGvm", "APN", "MPT", "NOT", "NPC", "OP", "PPT", "RPF", "InCo", "CUN", "RN", "III", "MA3", "EW", "IV", "PA4", "VTN", "AT", "LT", "DT", "MT", "SNl", "SNc", "PPN", "IF", "IPR", "IPC", "IPA", "IPL", "IPI", "IPDM", "IPDL", "IPRL", "RL", "CLI", "DR"], row: ["_"] }),
127487
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["SCop", "SCsg", "SCzo", "ICc", "ICd", "ICe", "NB", "SAG", "PBG", "MEV", "SCO", "SNr", "VTA", "RR", "MRNm", "MRNmg", "MRNp", "SCdg", "SCdw", "SCiw", "SCig-a", "SCig-b", "SCig-c", "PRC", "INC", "ND", "Su3", "PAGdm", "PAGl", "PAGvl", "PAGdl", "PAGvm", "APN", "MPT", "NOT", "NPC", "OP", "PPT", "RPF", "InCo", "CUN", "RN", "III", "MA3", "EW", "IV", "PA4", "VTN", "AT", "LT", "DT", "MT", "SNl", "SNc", "PPN", "IF", "IPR", "IPC", "IPA", "IPL", "IPI", "IPDM", "IPDL", "IPRL", "RL", "CLI", "DR"], row: ["_"] }),
127488
127488
  Zt && O.createElement(zi, null, "HB"),
127489
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["NLLd", "NLLh", "NLLv", "PSV", "KF", "PBlc", "PBld", "PBle", "PBls", "PBlv", "PBme", "PBmm", "PBmv", "POR", "SOCm", "SOCl", "B", "DTN", "LTN", "PDTg", "PCG", "PG", "PRNc", "PRNv", "SG", "SSN", "SUT", "TRN", "V", "P5", "Acs5", "PC5", "I5", "CSl", "CSm", "LC", "LDT", "NI", "PRNr", "RPO", "SLC", "SLD", "AP", "CNlam", "CNspg", "DCO", "VCO", "CU", "GR", "ECU", "NTB", "NTSce", "NTSco", "NTSge", "NTSl", "NTSm", "SPVC", "SPVI", "SPVOcdm", "SPVOmdmd", "SPVOmdmv", "SPVOrdm", "SPVOvl", "Pa5", "z", "VI", "ACVI", "VII", "ACVII", "EV", "AMBd", "AMBv", "DMX", "ECO", "GRN", "ICB", "IO", "LRNm", "LRNp", "ISN", "LIN", "IRN", "MARN", "MDRNd", "MDRNv", "PARN", "PAS", "PGRNd", "PGRNl", "NIS", "NR", "PRP", "PMR", "PPYd", "PPYs", "LAV", "MV", "SPIV", "SUV", "XII", "x", "y", "RM", "RPA", "RO"], row: ["_"] }),
127489
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["NLLd", "NLLh", "NLLv", "PSV", "KF", "PBlc", "PBld", "PBle", "PBls", "PBlv", "PBme", "PBmm", "PBmv", "POR", "SOCm", "SOCl", "B", "DTN", "LTN", "PDTg", "PCG", "PG", "PRNc", "PRNv", "SG", "SSN", "SUT", "TRN", "V", "P5", "Acs5", "PC5", "I5", "CSl", "CSm", "LC", "LDT", "NI", "PRNr", "RPO", "SLC", "SLD", "AP", "CNlam", "CNspg", "DCO", "VCO", "CU", "GR", "ECU", "NTB", "NTSce", "NTSco", "NTSge", "NTSl", "NTSm", "SPVC", "SPVI", "SPVOcdm", "SPVOmdmd", "SPVOmdmv", "SPVOrdm", "SPVOvl", "Pa5", "z", "VI", "ACVI", "VII", "ACVII", "EV", "AMBd", "AMBv", "DMX", "ECO", "GRN", "ICB", "IO", "LRNm", "LRNp", "ISN", "LIN", "IRN", "MARN", "MDRNd", "MDRNv", "PARN", "PAS", "PGRNd", "PGRNl", "NIS", "NR", "PRP", "PMR", "PPYd", "PPYs", "LAV", "MV", "SPIV", "SUV", "XII", "x", "y", "RM", "RPA", "RO"], row: ["_"] }),
127490
127490
  Mn && O.createElement(zi, null, "CB"),
127491
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["LING_", "LING_", "CENT2_", "CENT2_", "CENT3_", "CENT3_", "CUL4/5_", "CUL4/5_", "DEC_", "DEC_", "FOTU_", "FOTU_", "PYR_", "PYR_", "UVU_", "UVU_", "NOD_", "NOD_", "SIM_", "SIM_", "ANcr1_", "ANcr1_", "ANcr2_", "ANcr2_", "PRM_", "PRM_", "COPY_", "COPY_", "PFL_", "PFL_", "FL_", "FL_", "IP", "DN"], row: ["gr", "mo"] }),
127492
- O.createElement(Ql, { t: h, data_change: Wt, data_c: Bt, col: ["FN", "IP", "DN", "VeCB"], row: ["_"] })
127491
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["LING_", "LING_", "CENT2_", "CENT2_", "CENT3_", "CENT3_", "CUL4/5_", "CUL4/5_", "DEC_", "DEC_", "FOTU_", "FOTU_", "PYR_", "PYR_", "UVU_", "UVU_", "NOD_", "NOD_", "SIM_", "SIM_", "ANcr1_", "ANcr1_", "ANcr2_", "ANcr2_", "PRM_", "PRM_", "COPY_", "COPY_", "PFL_", "PFL_", "FL_", "FL_", "IP", "DN"], row: ["gr", "mo"] }),
127492
+ O.createElement(Ql, { t: h, data_change: Wt, data_c: $t, col: ["FN", "IP", "DN", "VeCB"], row: ["_"] })
127493
127493
  )
127494
127494
  )
127495
127495
  ),
@@ -131172,11 +131172,11 @@ Lb(6, () => {
131172
131172
  throw new Error("old style JPEG compression is not supported.");
131173
131173
  });
131174
131174
  Lb(7, () => import("./jpeg-335c778f.mjs").then((t) => t.default));
131175
- Lb([8, 32946], () => import("./deflate-428cf599.mjs").then((t) => t.default));
131175
+ Lb([8, 32946], () => import("./deflate-60c214dc.mjs").then((t) => t.default));
131176
131176
  Lb(32773, () => import("./packbits-8b95f4d7.mjs").then((t) => t.default));
131177
131177
  Lb(
131178
131178
  34887,
131179
- () => import("./lerc-bc57ce55.mjs").then(async (t) => (await t.zstd.init(), t)).then((t) => t.default)
131179
+ () => import("./lerc-fce0365d.mjs").then(async (t) => (await t.zstd.init(), t)).then((t) => t.default)
131180
131180
  );
131181
131181
  Lb(50001, () => import("./webimage-affb95d1.mjs").then((t) => t.default));
131182
131182
  function Fk(t, e, n, r = 1) {
@@ -135443,8 +135443,8 @@ function Wsn() {
135443
135443
  } finally {
135444
135444
  ge = !1, re.current = Pt, te(), Error.prepareStackTrace = Tt;
135445
135445
  }
135446
- var Qt = yt ? yt.displayName || yt.name : "", Bt = Qt ? oe(Qt) : "";
135447
- return typeof yt == "function" && pe.set(yt, Bt), Bt;
135446
+ var Qt = yt ? yt.displayName || yt.name : "", $t = Qt ? oe(Qt) : "";
135447
+ return typeof yt == "function" && pe.set(yt, $t), $t;
135448
135448
  }
135449
135449
  function Ce(yt, Ht, hn) {
135450
135450
  return ae(yt, !1);
@@ -135778,17 +135778,17 @@ Check the top-level render call using <` + hn + ">.");
135778
135778
  Yn(Dn, yt);
135779
135779
  }
135780
135780
  if (de.call(Ht, "key")) {
135781
- var Bt = z(yt), ln = Object.keys(Ht).filter(function(yr) {
135781
+ var $t = z(yt), ln = Object.keys(Ht).filter(function(yr) {
135782
135782
  return yr !== "key";
135783
135783
  }), zn = ln.length > 0 ? "{key: someKey, " + ln.join(": ..., ") + ": ...}" : "{key: someKey}";
135784
- if (!Zn[Bt + zn]) {
135784
+ if (!Zn[$t + zn]) {
135785
135785
  var Nn = ln.length > 0 ? "{" + ln.join(": ..., ") + ": ...}" : "{}";
135786
135786
  b(`A props object containing a "key" prop is being spread into JSX:
135787
135787
  let props = %s;
135788
135788
  <%s {...props} />
135789
135789
  React keys must be passed directly to JSX without using spread:
135790
135790
  let props = %s;
135791
- <%s key={someKey} {...props} />`, zn, Bt, Nn, Bt), Zn[Bt + zn] = !0;
135791
+ <%s key={someKey} {...props} />`, zn, $t, Nn, $t), Zn[$t + zn] = !0;
135792
135792
  }
135793
135793
  }
135794
135794
  return yt === r ? Wr(nn) : Rr(nn), nn;
@@ -174694,7 +174694,7 @@ const Uxn = {
174694
174694
  return t[e] = n, Fxn(e, n), !0;
174695
174695
  }
174696
174696
  }, Ya = new Proxy(Uxn, Bxn), $xn = ou((t, e) => {
174697
- const { regionData: n, setoffset_factor: r, offset_factor_R: i, t: a, hrefStr: o, leftTreeRef: s, setJiaoduRef: l, jiaoduRef: u, mouseflag: d, renderer: f, controls: p, menutagShow: h, setMenuTag: g, startselect: y, linemeshs_jing: v, points: m, points2: b, activetabIndex: E, material: C, setShowimage: S, childRef: x, checkItems: I, setoutflag: P, fetchCoordinateFunc: A, setendPoint: N, clickPoint: D, outflagRef: U, axis_font: z, setdatum: B, modeChoose: j, setShowModeChoose: V, virusModeValue: G, setShowTabNums: W, pipelineClickEvent: Z, automaticGroup: H, focusVirusLineItem: X, setMenuTagShow: ee, responsefunc: K, mode: Y, setCheckItems: te, setLeftMenuTabIndex: re, updatePage: Q, swcItem: oe, axon_check: ge, swcnameMesh: pe, setMode: fe, vesselRef: ae, swcRef: Ce, vesselStr: ie, lableStr: ye, setShowSettingModal: de, showSettingModal: Te, fbxTreeDatas: Be, composer: Ye, setEchartValue: ke, echartValue: we, sectionsInfoRef: We, sectionsInfo: ve, setSectionsInfo: he, gray_value: Ue, setLuguchecked: Le, Luguchecked: Me, datum: ot, setGridShow: qe, PointShow: Ze, nodeStr: ft, lefttab: At, righttab: bt, atlasData: ut, setTip: xt, tip: Ge, startRegionAnimation: rt, setFunctionLoopSwcData: Et, azimuth: Ne, setAzimuth: vt } = t, [Wt, jt] = mt(!1), [Xt, Jt] = mt(!1), [rn, vn] = mt(!1), [Mn, On] = mt(!1), [Yn, Rr] = mt(!1), [Wr, Zn] = mt(!1), [Zt, jn] = mt(!1), [bn, fr] = mt(!1), [mr, yt] = mt(Ya.atlasReslicingInfo.angleX || 120), [Ht, hn] = mt(Ya.atlasReslicingInfo.angleY || 320), [Fe, Tt] = mt(Ya.atlasReslicingInfo.angleZ || 270), [Pt, Ut] = mt(Ya.atlasReslicingInfo.positionX || 0), [Mt, Yt] = mt(Ya.atlasReslicingInfo.positionY || 0), [Gt, nn] = mt(Ya.atlasReslicingInfo.positionZ || 0), [Dn, Qt] = mt(Ya.atlasReslicingInfo.translateX || !0), [Bt, ln] = mt(Ya.atlasReslicingInfo.translateY || !0), [zn, Nn] = mt(Ya.atlasReslicingInfo.translateZ || !0), [yr, Pr] = mt(Ya.atlasReslicingInfo.rotate || !0), [or, En] = mt(Ya.atlasReslicingInfo.ButtonDisabled || !0), [ar, Fn] = mt(!1), [Bn, $n] = mt(!1), [br, ei] = mt(!1), [Ci, bi] = mt(!1), [ir, Ir] = mt(a("5000.0006") || "显示数据块"), [Er, gr] = mt(1), [Xr, Ji] = mt(1), [Mi, ji] = mt([]), [fa, ao] = mt([]), [Fa, Oo] = mt([]), [co, ii] = mt(!1), [Fr, Ba] = mt({}), [Ra, va] = mt(!1), [cs, Uo] = mt(""), [hi, Oa] = mt("Config_DAPI.ini"), [hs, Ti] = mt("applySTAM2CCF"), [eo, Cr] = mt("800"), [ui, sn] = mt(0), [St, dn] = mt(!1), [$t, Xn] = mt(!1), [er, Br] = mt(!1), [ai, fi] = mt(!1), [Vr, ti] = mt(!0), [Ai, Pn] = mt(2), [rr, cn] = mt(!1), [dt, Oe] = mt({}), ze = Ke(Ya.atlasReslicingInfo.direction1 || 4), at = Ke(null), [st, ht] = mt(a("4000.0208") || "选择靶点"), [Ct, lt] = mt(!1), Ee = Ke(null), ue = Ke(window.location.href.split("/")[2]), De = Ke(new r_(Hi.current, f == null ? void 0 : f.domElement)), Xe = Ke(0), tt = Ke(0), gt = Ke(new nr()), zt = Ke(new Ae()), Vt = Ke(new Ae()), pn = Ke(new nr()), Ot = Ke(new Ae(1, 0, 0)), Rt = Ke(new nr()), tr = Ke(null), dr = Ke(new SI()), Vn = Ke(null), In = Ke([]), sr = Ke(null), Or = Ke(new nr()), Sn = Ke(new ru()), [un, pi] = mt(Ya.otherAtlases), zr = {
174697
+ const { regionData: n, setoffset_factor: r, offset_factor_R: i, t: a, hrefStr: o, leftTreeRef: s, setJiaoduRef: l, jiaoduRef: u, mouseflag: d, renderer: f, controls: p, menutagShow: h, setMenuTag: g, startselect: y, linemeshs_jing: v, points: m, points2: b, activetabIndex: E, material: C, setShowimage: S, childRef: x, checkItems: I, setoutflag: P, fetchCoordinateFunc: A, setendPoint: N, clickPoint: D, outflagRef: U, axis_font: z, setdatum: B, modeChoose: j, setShowModeChoose: V, virusModeValue: G, setShowTabNums: W, pipelineClickEvent: Z, automaticGroup: H, focusVirusLineItem: X, setMenuTagShow: ee, responsefunc: K, mode: Y, setCheckItems: te, setLeftMenuTabIndex: re, updatePage: Q, swcItem: oe, axon_check: ge, swcnameMesh: pe, setMode: fe, vesselRef: ae, swcRef: Ce, vesselStr: ie, lableStr: ye, setShowSettingModal: de, showSettingModal: Te, fbxTreeDatas: Be, composer: Ye, setEchartValue: ke, echartValue: we, sectionsInfoRef: We, sectionsInfo: ve, setSectionsInfo: he, gray_value: Ue, setLuguchecked: Le, Luguchecked: Me, datum: ot, setGridShow: qe, PointShow: Ze, nodeStr: ft, lefttab: At, righttab: bt, atlasData: ut, setTip: xt, tip: Ge, startRegionAnimation: rt, setFunctionLoopSwcData: Et, azimuth: Ne, setAzimuth: vt } = t, [Wt, jt] = mt(!1), [Xt, Jt] = mt(!1), [rn, vn] = mt(!1), [Mn, On] = mt(!1), [Yn, Rr] = mt(!1), [Wr, Zn] = mt(!1), [Zt, jn] = mt(!1), [bn, fr] = mt(!1), [mr, yt] = mt(Ya.atlasReslicingInfo.angleX || 120), [Ht, hn] = mt(Ya.atlasReslicingInfo.angleY || 320), [Fe, Tt] = mt(Ya.atlasReslicingInfo.angleZ || 270), [Pt, Ut] = mt(Ya.atlasReslicingInfo.positionX || 0), [Mt, Yt] = mt(Ya.atlasReslicingInfo.positionY || 0), [Gt, nn] = mt(Ya.atlasReslicingInfo.positionZ || 0), [Dn, Qt] = mt(Ya.atlasReslicingInfo.translateX || !0), [$t, ln] = mt(Ya.atlasReslicingInfo.translateY || !0), [zn, Nn] = mt(Ya.atlasReslicingInfo.translateZ || !0), [yr, Pr] = mt(Ya.atlasReslicingInfo.rotate || !0), [or, En] = mt(Ya.atlasReslicingInfo.ButtonDisabled || !0), [ar, Fn] = mt(!1), [Bn, $n] = mt(!1), [br, ei] = mt(!1), [Ci, bi] = mt(!1), [ir, Ir] = mt(a("5000.0006") || "显示数据块"), [Er, gr] = mt(1), [Xr, Ji] = mt(1), [Mi, ji] = mt([]), [fa, ao] = mt([]), [Fa, Oo] = mt([]), [co, ii] = mt(!1), [Fr, Ba] = mt({}), [Ra, va] = mt(!1), [cs, Uo] = mt(""), [hi, Oa] = mt("Config_DAPI.ini"), [hs, Ti] = mt("applySTAM2CCF"), [eo, Cr] = mt("800"), [ui, sn] = mt(0), [St, dn] = mt(!1), [Bt, Xn] = mt(!1), [er, Br] = mt(!1), [ai, fi] = mt(!1), [Vr, ti] = mt(!0), [Ai, Pn] = mt(2), [rr, cn] = mt(!1), [dt, Oe] = mt({}), ze = Ke(Ya.atlasReslicingInfo.direction1 || 4), at = Ke(null), [st, ht] = mt(a("4000.0208") || "选择靶点"), [Ct, lt] = mt(!1), Ee = Ke(null), ue = Ke(window.location.href.split("/")[2]), De = Ke(new r_(Hi.current, f == null ? void 0 : f.domElement)), Xe = Ke(0), tt = Ke(0), gt = Ke(new nr()), zt = Ke(new Ae()), Vt = Ke(new Ae()), pn = Ke(new nr()), Ot = Ke(new Ae(1, 0, 0)), Rt = Ke(new nr()), tr = Ke(null), dr = Ke(new SI()), Vn = Ke(null), In = Ke([]), sr = Ke(null), Or = Ke(new nr()), Sn = Ke(new ru()), [un, pi] = mt(Ya.otherAtlases), zr = {
174698
174698
  min: new Ae(59.74305725097656, 69.15838623046875, 0.9565062522888184),
174699
174699
  max: new Ae(1081.3045654296875, 800.6698608398438, 1400.156005859375)
174700
174700
  }, [li, Hs] = mt([]), Ga = Ke({}), Lo = Ke(!1), Si = Ke([0, 0]), gi = Ke([0, 0]), pa = Ke(""), As = Ke(!1), [uo, Ho] = mt(!1), [oc, Ys] = mt(!1), [Ps, fo] = mt(0), [po, Ds] = mt(0), [xl, _l] = mt({}), [vr, gs] = mt([]), ks = Ke(null), Rs = Ke(null), [Us, So] = mt(""), [Fo, Go] = mt(null), [to, oo] = mt(B5e || ""), [dl, wl] = mt(!1);
@@ -177329,7 +177329,7 @@ const Uxn = {
177329
177329
  O.createElement(
177330
177330
  Bo,
177331
177331
  { span: 12 },
177332
- O.createElement(Xh, { min: -5.33, max: 2.04, onChange: sf, step: 0.01, value: Mt, disabled: Bt })
177332
+ O.createElement(Xh, { min: -5.33, max: 2.04, onChange: sf, step: 0.01, value: Mt, disabled: $t })
177333
177333
  )
177334
177334
  ),
177335
177335
  O.createElement(zi, { style: { margin: "5px 0", borderColor: "rgba(5, 5, 5, .3)", minWidth: 200, width: 250, visibility: "hidden" }, dashed: !0 }),
@@ -177875,7 +177875,7 @@ const Uxn = {
177875
177875
  } },
177876
177876
  O.createElement(Da, { icon: O.createElement(PCt, null) }, "Upload")
177877
177877
  ),
177878
- O.createElement(Da, { loading: $t, disabled: Fa.length < 1, onClick: () => {
177878
+ O.createElement(Da, { loading: Bt, disabled: Fa.length < 1, onClick: () => {
177879
177879
  Xn(!0), console.log("swcFileList", Fa);
177880
177880
  const Se = new FormData();
177881
177881
  for (let $e = 0; $e < Fa.length; $e++)
@@ -181091,7 +181091,7 @@ let aq = [], Dwn = new URL(window.location.href), cS = new URLSearchParams(Dwn.s
181091
181091
  cS.get("neuronsFilterInfo");
181092
181092
  let nIe = cS.get("regionsExpanded"), rIe = cS.get("neuronsText"), oq = cS.get("neuronsChecked"), iIe = cS.get("neuronsColor");
181093
181093
  const sq = ou((t, e) => {
181094
- const { treeDatas: n, fbxTreeDatas: r, vesselObj: i, json_name: a, offset_factor_R: o, type: s, leftTreeRef: l, baozhaRef: u, needBaozha: d, offset_factor: f, dataUrl: p, t: h, StepsCount: g, showimage: y, checkItems: v, setCheckItems: m, outflag: b, automaticGroup: E, mode: C, axon_check: S, swcnameMesh: x, updatePage: I, setEchartValue: P, auxRef: A, PointShow: N, tasktype: D, regionData: U, metadata: z, resourceTab: B, atlasData: j, setSelected: V, Selected: G, Selectoptions: W, setFormshow: Z, formshow: H } = t, [X, ee] = mt([]), K = Ke(null), [Y, te] = mt(!1), [re, Q] = mt(tIe ? JSON.parse(tIe) : null), [oe, ge] = mt(eIe ? JSON.parse(eIe) : null), pe = Ke({}), fe = Ke(v), ae = Ke({}), Ce = Ke(!1), ie = Ke(1), ye = Ke(!0), de = Ke(!1), Te = Ke([]), Be = Ke("FBX"), [Ye, ke] = mt([]), we = Ke([]), We = Ke([]), ve = Ke([]), he = Ke(!0), [Ue, Le] = mt([]), Me = Ke([]), [ot, qe] = mt([]), Ze = Ke(null), ft = Ke(null), At = Ke(null), bt = Ke(null), ut = Ke(0), xt = Ke(!0), Ge = Ke([]), rt = Ke({}), Et = Ke([]), [Ne, vt] = mt(!1), [Wt, jt] = mt({}), [Xt, Jt] = mt(!1), [rn, vn] = mt(!1), [Mn, On] = mt(!1), [Yn, Rr] = mt(!1), [Wr, Zn] = mt(!1), [Zt, jn] = mt(!1), [bn, fr] = mt(!1), [mr, yt] = mt(!1), [Ht, hn] = mt(!1), [Fe, Tt] = mt("1"), Pt = Ke({ data: [] }), Ut = Ke({ data: [] }), Mt = Ke({ data: [] }), Yt = Ke({ data: [] }), Gt = Ke({ data: [] }), nn = Ke(!1), Dn = Ke(""), Qt = Ke(iIe ? JSON.parse(decodeURIComponent(iIe).replace("!", "#")) : {}), [Bt, ln] = mt(1), [zn, Nn] = mt({}), [yr, Pr] = mt(!1), or = [
181094
+ const { treeDatas: n, fbxTreeDatas: r, vesselObj: i, json_name: a, offset_factor_R: o, type: s, leftTreeRef: l, baozhaRef: u, needBaozha: d, offset_factor: f, dataUrl: p, t: h, StepsCount: g, showimage: y, checkItems: v, setCheckItems: m, outflag: b, automaticGroup: E, mode: C, axon_check: S, swcnameMesh: x, updatePage: I, setEchartValue: P, auxRef: A, PointShow: N, tasktype: D, regionData: U, metadata: z, resourceTab: B, atlasData: j, setSelected: V, Selected: G, Selectoptions: W, setFormshow: Z, formshow: H } = t, [X, ee] = mt([]), K = Ke(null), [Y, te] = mt(!1), [re, Q] = mt(tIe ? JSON.parse(tIe) : null), [oe, ge] = mt(eIe ? JSON.parse(eIe) : null), pe = Ke({}), fe = Ke(v), ae = Ke({}), Ce = Ke(!1), ie = Ke(1), ye = Ke(!0), de = Ke(!1), Te = Ke([]), Be = Ke("FBX"), [Ye, ke] = mt([]), we = Ke([]), We = Ke([]), ve = Ke([]), he = Ke(!0), [Ue, Le] = mt([]), Me = Ke([]), [ot, qe] = mt([]), Ze = Ke(null), ft = Ke(null), At = Ke(null), bt = Ke(null), ut = Ke(0), xt = Ke(!0), Ge = Ke([]), rt = Ke({}), Et = Ke([]), [Ne, vt] = mt(!1), [Wt, jt] = mt({}), [Xt, Jt] = mt(!1), [rn, vn] = mt(!1), [Mn, On] = mt(!1), [Yn, Rr] = mt(!1), [Wr, Zn] = mt(!1), [Zt, jn] = mt(!1), [bn, fr] = mt(!1), [mr, yt] = mt(!1), [Ht, hn] = mt(!1), [Fe, Tt] = mt("1"), Pt = Ke({ data: [] }), Ut = Ke({ data: [] }), Mt = Ke({ data: [] }), Yt = Ke({ data: [] }), Gt = Ke({ data: [] }), nn = Ke(!1), Dn = Ke(""), Qt = Ke(iIe ? JSON.parse(decodeURIComponent(iIe).replace("!", "#")) : {}), [$t, ln] = mt(1), [zn, Nn] = mt({}), [yr, Pr] = mt(!1), or = [
181095
181095
  Ke({ data: [] }),
181096
181096
  Ke({ data: [] }),
181097
181097
  Ke({ data: [] })
@@ -182147,11 +182147,11 @@ const sq = ou((t, e) => {
182147
182147
  });
182148
182148
  Ct = new Sf(lt, ue), Ct.translateX(lo.current), Ct.translateY(no.current), Ct.translateZ(Ka.current - 0.45), Ct.name = at, pe.current[at] = Ct, _e.current.add(Ct);
182149
182149
  }), st && st();
182150
- }, $t = (Oe) => {
182150
+ }, Bt = (Oe) => {
182151
182151
  xt.current = !0;
182152
182152
  let ze = new URL(window.location.href), at = new URLSearchParams(ze.search);
182153
182153
  at.set("neuronsProjects", JSON.stringify(Oe)), ze.search = at.toString(), window.history.replaceState({}, "", ze), Oe != "" ? Q(Oe) : (Q(Oe), ee(we.current));
182154
- }, Xn = ii($t, 50), er = (Oe) => {
182154
+ }, Xn = ii(Bt, 50), er = (Oe) => {
182155
182155
  xt.current = !0;
182156
182156
  let ze = new URL(window.location.href), at = new URLSearchParams(ze.search);
182157
182157
  at.set("neuronsSomaLocates", JSON.stringify(Oe)), ze.search = at.toString(), window.history.replaceState({}, "", ze), Oe != "" ? ge(Oe) : (ge(Oe), ee(we.current));
@@ -182258,7 +182258,7 @@ const sq = ou((t, e) => {
182258
182258
  marginBottom: 8
182259
182259
  } }),
182260
182260
  oe ? O.createElement(xA, { ref: Ze, style: { width: "100%", marginBottom: 8 }, options: ot, placeholder: h("5000.5040") || "Input the region that soma locates", onSearch: Vr, onChange: Br, value: oe }) : O.createElement(jE, { ref: ft, showSearch: !0, style: { width: "100%", marginBottom: 8 }, value: oe, dropdownStyle: { maxHeight: 400, overflow: "hidden" }, placeholder: h("5000.5040") || "Input the region that soma locates", allowClear: !0, treeDefaultExpandAll: !1, onChange: er, onSearch: er, treeData: Cr(r) }),
182261
- re ? O.createElement(xA, { ref: At, style: { width: "100%", marginBottom: 8 }, options: ot, placeholder: h("5000.5041") || "Input the region that neuron projects", onSearch: Vr, onChange: Xn, value: re }) : O.createElement(jE, { showSearch: !0, ref: bt, style: { width: "100%" }, value: re, dropdownStyle: { maxHeight: 400, overflow: "hidden", marginBottom: 8 }, placeholder: h("5000.5041") || "Input the region that neuron projects", allowClear: !0, treeDefaultExpandAll: !1, onChange: $t, onSearch: $t, treeData: Cr(r) }),
182261
+ re ? O.createElement(xA, { ref: At, style: { width: "100%", marginBottom: 8 }, options: ot, placeholder: h("5000.5041") || "Input the region that neuron projects", onSearch: Vr, onChange: Xn, value: re }) : O.createElement(jE, { showSearch: !0, ref: bt, style: { width: "100%" }, value: re, dropdownStyle: { maxHeight: 400, overflow: "hidden", marginBottom: 8 }, placeholder: h("5000.5041") || "Input the region that neuron projects", allowClear: !0, treeDefaultExpandAll: !1, onChange: Bt, onSearch: Bt, treeData: Cr(r) }),
182262
182262
  z && O.createElement(
182263
182263
  O.Fragment,
182264
182264
  null,
@@ -182371,7 +182371,7 @@ const sq = ou((t, e) => {
182371
182371
  Pa.Group,
182372
182372
  { onChange: (Oe) => {
182373
182373
  ln(Oe.target.value);
182374
- }, value: Bt },
182374
+ }, value: $t },
182375
182375
  O.createElement(Pa, { value: 1, checked: !0 }, "个人用户"),
182376
182376
  O.createElement(Pa, { value: 2 }, "企业用户")
182377
182377
  )
@@ -182400,7 +182400,7 @@ const sq = ou((t, e) => {
182400
182400
  ] },
182401
182401
  O.createElement(vu, null)
182402
182402
  ),
182403
- Bt == 2 && O.createElement(
182403
+ $t == 2 && O.createElement(
182404
182404
  mc.Item,
182405
182405
  { name: "company", label: h("5000.5072") || "Affiliation", rules: [
182406
182406
  {
@@ -182410,7 +182410,7 @@ const sq = ou((t, e) => {
182410
182410
  ] },
182411
182411
  O.createElement(vu, null)
182412
182412
  ),
182413
- Bt == 2 && O.createElement(
182413
+ $t == 2 && O.createElement(
182414
182414
  mc.Item,
182415
182415
  { name: "aplDescribe", label: h("5000.5073") || "Purpose of use", rules: [
182416
182416
  {
@@ -184036,7 +184036,7 @@ var Pm = {}, Fwn = {
184036
184036
  touchend: yt,
184037
184037
  touchcancel: Ht
184038
184038
  }, Fe = {
184039
- touchstart: Bt,
184039
+ touchstart: $t,
184040
184040
  touchmove: Qt,
184041
184041
  touchend: Qt,
184042
184042
  touchcancel: Qt
@@ -184071,7 +184071,7 @@ var Pm = {}, Fwn = {
184071
184071
  k.changedTouches = [k], w(k);
184072
184072
  }
184073
184073
  }
184074
- function Bt(w, k) {
184074
+ function $t(w, k) {
184075
184075
  k.MSPOINTER_TYPE_TOUCH && k.pointerType === k.MSPOINTER_TYPE_TOUCH && Br(k), Qt(w, k);
184076
184076
  }
184077
184077
  function ln(w) {
@@ -184338,20 +184338,20 @@ var Pm = {}, Fwn = {
184338
184338
  return this;
184339
184339
  !bn.touchNative && bn.pointer && k.indexOf("touch") === 0 ? Mt(w, k, it) : bn.touch && k === "dblclick" ? yr(w, it) : "removeEventListener" in w ? w.removeEventListener(sn[k] || k, it, !1) : w.detachEvent("on" + k, it), w[eo][xe] = null;
184340
184340
  }
184341
- function $t(w) {
184341
+ function Bt(w) {
184342
184342
  return w.stopPropagation ? w.stopPropagation() : w.originalEvent ? w.originalEvent._stopped = !0 : w.cancelBubble = !0, this;
184343
184343
  }
184344
184344
  function Xn(w) {
184345
- return St(w, "wheel", $t), this;
184345
+ return St(w, "wheel", Bt), this;
184346
184346
  }
184347
184347
  function er(w) {
184348
- return Ti(w, "mousedown touchstart dblclick contextmenu", $t), w._leaflet_disable_click = !0, this;
184348
+ return Ti(w, "mousedown touchstart dblclick contextmenu", Bt), w._leaflet_disable_click = !0, this;
184349
184349
  }
184350
184350
  function Br(w) {
184351
184351
  return w.preventDefault ? w.preventDefault() : w.returnValue = !1, this;
184352
184352
  }
184353
184353
  function ai(w) {
184354
- return Br(w), $t(w), this;
184354
+ return Br(w), Bt(w), this;
184355
184355
  }
184356
184356
  function fi(w) {
184357
184357
  if (w.composedPath)
@@ -184415,7 +184415,7 @@ var Pm = {}, Fwn = {
184415
184415
  __proto__: null,
184416
184416
  on: Ti,
184417
184417
  off: Cr,
184418
- stopPropagation: $t,
184418
+ stopPropagation: Bt,
184419
184419
  disableScrollPropagation: Xn,
184420
184420
  disableClickPropagation: er,
184421
184421
  preventDefault: Br,
@@ -187622,10 +187622,10 @@ var Pm = {}, Fwn = {
187622
187622
  return w = arguments.length ? w : this._source._map, !w.hasLayer(this) && w._popup && w._popup.options.autoClose && w.removeLayer(w._popup), w._popup = this, Ml.prototype.openOn.call(this, w);
187623
187623
  },
187624
187624
  onAdd: function(w) {
187625
- Ml.prototype.onAdd.call(this, w), w.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof Go || this._source.on("preclick", $t));
187625
+ Ml.prototype.onAdd.call(this, w), w.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof Go || this._source.on("preclick", Bt));
187626
187626
  },
187627
187627
  onRemove: function(w) {
187628
- Ml.prototype.onRemove.call(this, w), w.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof Go || this._source.off("preclick", $t));
187628
+ Ml.prototype.onRemove.call(this, w), w.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof Go || this._source.off("preclick", Bt));
187629
187629
  },
187630
187630
  getEvents: function() {
187631
187631
  var w = Ml.prototype.getEvents.call(this);
@@ -187636,7 +187636,7 @@ var Pm = {}, Fwn = {
187636
187636
  "div",
187637
187637
  w + " " + (this.options.className || "") + " leaflet-zoom-animated"
187638
187638
  ), q = this._wrapper = Bn("div", w + "-content-wrapper", k);
187639
- if (this._contentNode = Bn("div", w + "-content", q), er(k), Xn(this._contentNode), Ti(k, "contextmenu", $t), this._tipContainer = Bn("div", w + "-tip-container", k), this._tip = Bn("div", w + "-tip", this._tipContainer), this.options.closeButton) {
187639
+ if (this._contentNode = Bn("div", w + "-content", q), er(k), Xn(this._contentNode), Ti(k, "contextmenu", Bt), this._tipContainer = Bn("div", w + "-tip-container", k), this._tip = Bn("div", w + "-tip", this._tipContainer), this.options.closeButton) {
187640
187640
  var ce = this._closeButton = Bn("a", w + "-close-button", k);
187641
187641
  ce.setAttribute("role", "button"), ce.setAttribute("aria-label", "Close popup"), ce.href = "#close", ce.innerHTML = '<span aria-hidden="true">&#215;</span>', Ti(ce, "click", function(xe) {
187642
187642
  Br(xe), this.close();
@@ -193467,7 +193467,7 @@ const n4n = {
193467
193467
  "8000.0016": "Users can switch from translation mode to scaling mode by pressing the 'A' key on the keyboard. In this mode, the arrows will change to squares, and dragging these squares will resize the box. Once the spatial range for the data to be downloaded is determined, users can click the 'preview selected data' button. This will visualize the images within the selected range in the main window using volume rendering.",
193468
193468
  "8000.0017": "By dragging the 'Set the downsampling rate' slider, users can select the sampling rate for the data to be downloaded. The specific sampling rate value can be seen in the black-backgrounded tip above the slider. If the data size does not exceed 1 GB, clicking the 'Downloading' button to download it directly; When the value is exceeded, it will invoke the user's email client (such as Outlook) and automatically fill in the email body with the selected download range and sampling rate information. By clicking the send button, users can submit a data download request to the STAM website.",
193469
193469
  "8000.0018": "We support users in uploading 3D image data and neuronal morphology data previously registered to the Common Coordinate Framework (CCF), then mapping it onto STAM, and directly visualizing it in 3D space. We also support reverse mapping, which allows data of the same type that has been registered to STAM to be mapped onto the CCF.",
193470
- "8000.0019": "Users can click the 'Upload' button in the right panel to upload 3D image data or neuronal morphology data that has been previously registered to either the CCF or STAM. After the uploading is completed, selecting the direction of conversion (either from STAM to CCF or vice versa) in the 'Select the direction of conversion' radio button. Then, click the 'Start' button to start the calculation on the STAM server. At this point, the 'Start' button enters the waiting status.",
193470
+ "8000.0019": "Users can click the 'Upload' button in the right panel to upload 3D image data or neuronal morphology data that has been previously registered to either the CCF or STAM. After the uploading is completed, selecting the direction of conversion (either from STAM to CCF or vice versa) , select YES or NO for the option “The vertical size of CCF is expanded to 9 mm”in the 'Select the direction of conversion' radio button. Then, click the 'Start' button to start the calculation on the STAM server. At this point, the 'Start' button enters the waiting status.After uploading an SWC file, the slider/input box with the 1-100 μm range becomes available. The user can then adjust the resolution value of the neuron, select YES or NO for the option “The vertical size of CCF is expanded to 9 mm”, and finally click the Start button to perform the computation.",
193471
193471
  "8000.0020": "After waiting for about 10 minutes, the STAM server finishes the calculation and returns the results. At this point, both the 'Save' button and the 'View result' button become clickable. Clicking the 'Save' button allows you to download the results to your local device; clicking the 'View result' button lets you preview the calculation results in the main window.",
193472
193472
  "8000.0021": "We provide services to visualize atlas reslicing from any angle. Users can choose reslicing of STAM at any position and angle of interest, browse the brain regions and nucleus annotations on that reslicing, and jump from this reslicing to the isotropic 1-micron resolution reslicing provided by the STAM arbitrary section service.",
193473
193473
  "8000.0022": "As shown in ①, on the left of the main window is the data panel, which has the same function as the data panel in “Stereotaxic topography visualization”. The central area is the main window.",
@@ -193850,7 +193850,7 @@ const n4n = {
193850
193850
  "8000.0016": "用户也可以通过按下键盘上的“A”,将范围选取操作从平移模式切换为缩放模式。此时方框的箭头会变为方块,拖动方块,就可以改变方框的大小。经过上述操作明确了待下载数据的空间范围后,可以点击“预览下载图像”按钮,通过体绘制,在主窗口中对该范围内的图像进行可视化。",
193851
193851
  "8000.0017": "拖动“Set the downsampling rate”滑动条,用户可以选择待下载数据的采样倍数;具体的倍数值可通过滑块上方的黑色背景提示文字查看。当数据量没有超过1 GB时,点击Downloading按钮可直接下载;当超过该数值,点击Downloading按钮会唤起用户终端的邮箱管理工具(如Outlook等),并自动将待下载范围和采样倍数信息填入邮件中,此时用户点击邮件发送按钮,即可向STAM网站发送数据下载申请。",
193852
193852
  "8000.0018": "我们支持用户上传此前已经配准到Common Coordinate Framework(CCF)的三维图像数据和神经元完整形态数据,并将其映射到STAM上,并直接在三维空间中进行可视化;我们也支持反向映射,即将已经配准到STAM的同类型数据映射到CCF上。",
193853
- "8000.0019": "用户点击右侧面板的Upload按钮,上传已配准到CCF或者STAM的三维图像数据或神经元形态学数据。上传结束后,在Select the direction of conversion单选框中,确定数据的映射方向是从STAM到CCF还是反过来。此后点击Start按钮,STAM的服务器端开始计算,Start按钮变为等待状态。",
193853
+ "8000.0019": "用户点击右侧面板的Upload按钮,上传已配准到CCF或者STAM的三维图像数据或神经元形态学数据。上传结束后,在Select the direction of conversion单选框中,确定数据的映射方向是从STAM到CCF还是反过来。此后点击Start按钮,STAM的服务器端开始计算,Start按钮变为等待状态。当上传swc文件,1-100微米标准的滑动条/输入框变为可操作状态,用户可调整该神经元的分辨率数值,然后CCF的垂直方向尺寸已扩展到9mm项选择YES或者NO,最后点击Start按钮进行计算。",
193854
193854
  "8000.0020": "等待约10分钟后,STAM的服务器端完成计算并返回结果。此时Save按钮和View result按钮均变为可点击状态。点击Save按钮,可以将计算结果下载到本地;点击View result按钮,可以在主窗口中预览计算结果。",
193855
193855
  "8000.0021": "我们提供了沿任意角度可视化脑图谱切面的服务。用户可以查看感兴趣的STAM任意位置和角度的切面,浏览该切面上的脑区、核团标注,并由该图谱切面跳转到STAM任意切面服务所提供的各向同性1微米分辨率切面。",
193856
193856
  "8000.0022": "如①所示,在窗口左侧的是数据面板,与“三维自然形貌可视化”中的数据面板功能相同。位于正中区域的是主窗口。",
@@ -193958,7 +193958,7 @@ Vm.get("leftHemisphereVisibility");
193958
193958
  let IIe = Vm.get("terminalVisibility"), AIe = Vm.get("branchingVisibility"), RIe = Vm.get("branchingColor"), OIe = Vm.get("gridVisibility"), LIe = Vm.get("echart_Value"), NIe = Vm.get("leftTabIndex");
193959
193959
  const E5n = (t) => {
193960
193960
  const { atlasTopography: e, cerebralVessels: n, datumMarks: r, atlasColormap: i, atlasOntology: a, resourceTab: o, toolTab: s, ScaleNum: l, lang: u, home: d, ServerUrl: f } = t, { t: p } = UTn(), h = Ke({}), g = Ke(null), y = Ke(new oIe(Hi.current, Zh.domElement)), [v, m] = mt(1), b = Ke(1), [E, C] = mt(xIe ? JSON.parse(xIe) : !0), S = Ke(null), x = Ke(null), I = Ke([]), P = Ke(null), A = Ke(null), N = Ke(!1), D = Ke(!1), [U, z] = mt(!0), [B, j] = mt([]), V = Ke(2), [G, W] = mt(""), Z = Ke([]), H = Ke([]), X = Ke(new xa()), [ee, K] = mt("nucleusColour"), Y = Ke(1), te = Ke(null), [re, Q] = mt(!0), oe = Ke(), ge = Ke(), pe = Ke(), fe = Ke(), [ae, Ce] = mt(_Ie ? JSON.parse(_Ie) : []), [ie, ye] = mt(wIe ? JSON.parse(wIe) : []), [de, Te] = mt(TIe ? JSON.parse(TIe) : []), Be = Ke(($n) => new Ae()), [Ye, ke] = mt(!1), we = Ke(new Ae()), [We, ve] = mt(new Ae()), [he, Ue] = mt(NIe ? parseInt(NIe) : 1), Le = Ke(!1), [Me, ot] = mt(!1), qe = Ke(""), [Ze, ft] = mt(3), At = Ke(null), bt = Ke([]), [ut, xt] = mt(""), Ge = Ke(() => {
193961
- }), [rt, Et] = mt(1), Ne = Ke(1), [vt, Wt] = mt({}), [jt, Xt] = mt(""), Jt = Ke({}), [rn, vn] = mt(""), [Mn, On] = mt(""), [Yn, Rr] = mt({}), [Wr, Zn] = mt(LIe || ""), [Zt, jn] = mt(!1), [bn, fr] = mt(0), [mr, yt] = mt({}), Ht = Ke({}), [hn, Fe] = mt(OIe ? JSON.parse(OIe) : !0), [Tt, Pt] = mt([]), [Ut, Mt] = mt([]), [Yt, Gt] = mt([]), [nn, Dn] = mt(!1), [Qt, Bt] = mt({});
193961
+ }), [rt, Et] = mt(1), Ne = Ke(1), [vt, Wt] = mt({}), [jt, Xt] = mt(""), Jt = Ke({}), [rn, vn] = mt(""), [Mn, On] = mt(""), [Yn, Rr] = mt({}), [Wr, Zn] = mt(LIe || ""), [Zt, jn] = mt(!1), [bn, fr] = mt(0), [mr, yt] = mt({}), Ht = Ke({}), [hn, Fe] = mt(OIe ? JSON.parse(OIe) : !0), [Tt, Pt] = mt([]), [Ut, Mt] = mt([]), [Yt, Gt] = mt([]), [nn, Dn] = mt(!1), [Qt, $t] = mt({});
193962
193962
  localStorage.setItem("lang", u || "en"), Xi.current = l, lo.current = -5.7, no.current = -6, Ka.current = -7.0055;
193963
193963
  const [ln, zn] = mt([]), Nn = Ke({
193964
193964
  start: AIe ? JSON.parse(AIe) : !0,
@@ -194033,7 +194033,7 @@ const E5n = (t) => {
194033
194033
  }),
194034
194034
  redirect: "follow"
194035
194035
  }).then((br) => br.json()).then((br) => {
194036
- Mt(br.data.swctree), Bt(br.data.soma_axon_data);
194036
+ Mt(br.data.swctree), $t(br.data.soma_axon_data);
194037
194037
  }).catch((br) => console.log("error", br));
194038
194038
  };
194039
194039
  Rn(() => {
@@ -195680,7 +195680,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
195680
195680
  10
195681
195681
  ), X, ee, K, Y, te, re, Q, oe, ge, pe, fe, ae, Ce, ie, ye, de, Te, Be, Ye, ke, we, We, ve, he, Ue, Le, Me, ot, qe, Ze, ft, At, bt, ut, xt, Ge, rt, Et, Ne, vt, Wt, jt, Xt, Jt, rn, vn, Mn, On, Yn, Rr, Wr, Zn, Zt, jn, bn, fr, mr, yt, Ht, hn, Fe, Tt, Pt, Ut, Mt, Yt, Gt;
195682
195682
  Ose(h);
195683
- var nn, Dn = 1, Qt = 0, Bt = 0, ln = !1, at = 0, zn = !1, Nn, yr, Pr, or, En = [], ar = [], Fn = [], Bn = [], $n = [], br = [];
195683
+ var nn, Dn = 1, Qt = 0, $t = 0, ln = !1, at = 0, zn = !1, Nn, yr, Pr, or, En = [], ar = [], Fn = [], Bn = [], $n = [], br = [];
195684
195684
  Vx = [], qg = [], _q = [];
195685
195685
  var ei = [];
195686
195686
  A2 = [], Yg = [], qN = [];
@@ -195690,7 +195690,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
195690
195690
  ), St = parseInt(
195691
195691
  c.Utils.getResource("DEFAULT_VALIDATEVIEWRETRYDELAY"),
195692
195692
  10
195693
- ), dn = [], $t = [], Xn = [], er = [], Br = [], ai = [], fi = new c.NetConnector(), Vr, ti = [], Ai = [], Pn = [], rr = [], cn = parseInt(
195693
+ ), dn = [], Bt = [], Xn = [], er = [], Br = [], ai = [], fi = new c.NetConnector(), Vr, ti = [], Ai = [], Pn = [], rr = [], cn = parseInt(
195694
195694
  c.Utils.getResource("DEFAULT_BACKFILLTHRESHOLD3"),
195695
195695
  10
195696
195696
  ), dt = parseInt(
@@ -195941,7 +195941,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
195941
195941
  if (Lse(), c.imageW = T, c.imageH = M, c.imageCtrX = c.imageW / 2, c.imageCtrY = c.imageH / 2, c.imageD = Math.round(Math.sqrt(T * T + M * M)), E = se, C = ne, S = me, A = J, D = R, U = F, be !== null && Ve !== null && He !== null && (c.sourceMagnification = be, c.focal = Ve, c.quality = He), Pse(), Nse(Ot, Rt, tr, dr), m.validateXYZDefaults(), Dn > cn ? (or = cf(
195942
195942
  at,
195943
195943
  c.initialZ
195944
- ), ee && Y.scale(or, or)) : (ee = null, K = null, Y = null), Pr = cf(Bt, c.initialZ), Nn = cf(Qt, c.initialZ), yr = Nn, c.useCanvas)
195944
+ ), ee && Y.scale(or, or)) : (ee = null, K = null, Y = null), Pr = cf($t, c.initialZ), Nn = cf(Qt, c.initialZ), yr = Nn, c.useCanvas)
195945
195945
  try {
195946
195946
  Be.scale(Nn, Nn);
195947
195947
  } catch (It) {
@@ -195973,7 +195973,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
195973
195973
  m.setStatus("initializedViewport", !1), m.clearAll(!0, !1, !0, !0), c.imageW = T, c.imageH = M, c.imageCtrX = c.imageW / 2, c.imageCtrY = c.imageH / 2, c.imageD = Math.round(Math.sqrt(T * T + M * M)), E = se, C = ne, S = me, A = J, D = R, U = F, c.Utils.setParameters(c.parameters), c.imageList && (c.tileW != R && (D = R = c.tileW), c.tileH != F && (U = F = c.tileH)), Pse(), c.hotspotPath !== null && (o = c.hotspotPath, s = c.hotspotFolder), c.annotationPath !== null && (l = c.annotationPath, u = c.annotationFolder), y = c.cellPath, v = c.mapPath, Ose(), Lse(), m.validateXYZDefaults(), Dn > cn ? (or = cf(
195974
195974
  at,
195975
195975
  c.initialZ
195976
- ), Y.restore(), Y.scale(or, or)) : ee = K = Y = null, Pr = cf(Bt, c.initialZ), Nn = cf(Qt, c.initialZ), yr = Nn, c.useCanvas && (Be.restore(), Be.scale(Nn, Nn)), he && jse(), Me && (m.setDrawingColor("buttonColor0" + h, !0), (c.tour || c.hotspots || c.annotations) && K8(h), y && Zse(h), v && loadMapData(h)), c.virtualPointerVisible && c.Viewer.createVirtualPointer(), c.tileSource != "unconverted" && m.precacheBackfillTiles(), c.comparison && (Ot *= 2), m.setSizeAndPosition(Ot, Rt, tr, dr);
195976
+ ), Y.restore(), Y.scale(or, or)) : ee = K = Y = null, Pr = cf($t, c.initialZ), Nn = cf(Qt, c.initialZ), yr = Nn, c.useCanvas && (Be.restore(), Be.scale(Nn, Nn)), he && jse(), Me && (m.setDrawingColor("buttonColor0" + h, !0), (c.tour || c.hotspots || c.annotations) && K8(h), y && Zse(h), v && loadMapData(h)), c.virtualPointerVisible && c.Viewer.createVirtualPointer(), c.tileSource != "unconverted" && m.precacheBackfillTiles(), c.comparison && (Ot *= 2), m.setSizeAndPosition(Ot, Rt, tr, dr);
195977
195977
  var Ie = typeof c.parameters < "u" && c.parameters !== null && (typeof c.parameters.zInitialX < "u" || typeof c.parameters.zInitialY < "u" || typeof c.parameters.zInitialZoom < "u");
195978
195978
  (c.comparison || c.overlays) && !Ie ? i9(c.priorX, c.priorY, c.priorZ, c.priorR, null, !0) : i9(c.initialX, c.initialY, c.initialZ, c.initialR, null, !0), m.setStatus("initializedViewport", !0);
195979
195979
  var et = t == 0 ? c.Navigator : c.Navigator2;
@@ -195997,7 +195997,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
195997
195997
  gr = 0, Xr = 0, typeof bi < "u" && c.Utils.arrayClear(bi), typeof ir < "u" && c.Utils.arrayClear(ir), typeof Ci < "u" && c.Utils.arrayClear(Ci), typeof Uo < "u" && c.Utils.arrayClear(Uo), typeof hi < "u" && c.Utils.arrayClear(hi), typeof Oa < "u" && c.Utils.arrayClear(Oa), typeof hs < "u" && c.Utils.arrayClear(hs), typeof Ti < "u" && c.Utils.arrayClear(Ti), typeof eo < "u" && c.Utils.arrayClear(eo), typeof Ir < "u" && c.Utils.arrayClear(Ir), typeof Er < "u" && c.Utils.arrayClear(Er), typeof Br < "u" && c.Utils.arrayClear(Br), typeof er < "u" && c.Utils.arrayClear(er), typeof Xn < "u" && c.Utils.arrayClear(Xn), typeof ai < "u" && c.Utils.arrayClear(ai), typeof rr < "u" && c.Utils.arrayClear(rr), typeof Pn < "u" && c.Utils.arrayClear(Pn), typeof Ai < "u" && c.Utils.arrayClear(Ai), typeof ti < "u" && c.Utils.arrayClear(ti);
195998
195998
  }
195999
195999
  function pU() {
196000
- Dn = 1, Qt = 0, Bt = 0, ln = !1, lt = !1, Ee = !1, ue = !1, typeof En < "u" && c.Utils.arrayClear(En), typeof ar < "u" && c.Utils.arrayClear(ar), typeof Fn < "u" && c.Utils.arrayClear(Fn), typeof Bn < "u" && c.Utils.arrayClear(Bn), typeof $n < "u" && c.Utils.arrayClear($n), typeof br < "u" && c.Utils.arrayClear(br), typeof Vx < "u" && c.Utils.arrayClear(Vx), typeof qg < "u" && c.Utils.arrayClear(qg), typeof _q < "u" && c.Utils.arrayClear(_q), typeof ei < "u" && c.Utils.arrayClear(ei), typeof A2 < "u" && c.Utils.arrayClear(A2), typeof Yg < "u" && c.Utils.arrayClear(Yg), typeof qN < "u" && c.Utils.arrayClear(qN), typeof dn < "u" && c.Utils.arrayClear(dn), typeof $t < "u" && c.Utils.arrayClear($t);
196000
+ Dn = 1, Qt = 0, $t = 0, ln = !1, lt = !1, Ee = !1, ue = !1, typeof En < "u" && c.Utils.arrayClear(En), typeof ar < "u" && c.Utils.arrayClear(ar), typeof Fn < "u" && c.Utils.arrayClear(Fn), typeof Bn < "u" && c.Utils.arrayClear(Bn), typeof $n < "u" && c.Utils.arrayClear($n), typeof br < "u" && c.Utils.arrayClear(br), typeof Vx < "u" && c.Utils.arrayClear(Vx), typeof qg < "u" && c.Utils.arrayClear(qg), typeof _q < "u" && c.Utils.arrayClear(_q), typeof ei < "u" && c.Utils.arrayClear(ei), typeof A2 < "u" && c.Utils.arrayClear(A2), typeof Yg < "u" && c.Utils.arrayClear(Yg), typeof qN < "u" && c.Utils.arrayClear(qN), typeof dn < "u" && c.Utils.arrayClear(dn), typeof Bt < "u" && c.Utils.arrayClear(Bt);
196001
196001
  }
196002
196002
  function JXe() {
196003
196003
  he && (typeof Fs < "u" && c.Utils.arrayClear(Fs), typeof xc < "u" && c.Utils.arrayClear(xc)), Me && (typeof an < "u" && c.Utils.arrayClear(an), typeof dc < "u" && c.Utils.arrayClear(dc), typeof fc < "u" && c.Utils.arrayClear(fc), ja != null ? (ja.parentNode.removeChild(ja), ja = null, typeof fd < "u" && c.Utils.arrayClear(fd)) : (_i != null && (_i.parentNode.removeChild(_i), _i = null, typeof _n < "u" && c.Utils.arrayClear(_n)), Se != null && (Se.parentNode.removeChild(Se), Se = null, typeof ya < "u" && c.Utils.arrayClear(ya), typeof Os < "u" && c.Utils.arrayClear(Os)), No != null && (No.parentNode.removeChild(No), No = null, typeof pr < "u" && c.Utils.arrayClear(pr), typeof lr < "u" && c.Utils.arrayClear(lr)))), c.imageFilters && (Uc = null, Sc = null, Fc = null, Il = !1, typeof Bi < "u" && c.Utils.arrayClear(Bi), typeof hl < "u" && c.Utils.arrayClear(hl), gl = null, Bc = null, $c = null, Au = 0, qu = 0, of = 0, Yu = 0, Jc = 0, cu = 0, Ru = 0, cd = 0, w = 0, k = 0, q = 0, ce = 0, xe = 0, it = 0, qt = 0, yn = 0, Tn = 0, cr = 0, oi = 0, Ui = 0, ha = 0, ms = 0);
@@ -196711,7 +196711,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
196711
196711
  }, this.getTierCurrent = function() {
196712
196712
  return Qt;
196713
196713
  }, this.getTierBackfill = function() {
196714
- return Bt;
196714
+ return $t;
196715
196715
  }, this.getTierBackfillDynamic = function() {
196716
196716
  return ln;
196717
196717
  }, this.getTierBackfillOversize = function() {
@@ -196945,7 +196945,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
196945
196945
  var be = !1;
196946
196946
  typeof T < "u" && T || Nn != yr || m.getZoom() != c.imageZ || !m.getStatus("initializedViewport") || M ? (uZe(), c.tileSource != "unconverted" && (dZe(), Mle("backfill"), Df(
196947
196947
  ae,
196948
- Bt,
196948
+ $t,
196949
196949
  bi,
196950
196950
  "simple",
196951
196951
  !1
@@ -197031,7 +197031,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
197031
197031
  !1
197032
197032
  ), c.maskingSelection && Fe && lle(), ln && Df(
197033
197033
  ae,
197034
- Bt,
197034
+ $t,
197035
197035
  bi,
197036
197036
  "simple",
197037
197037
  !1
@@ -197046,8 +197046,8 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
197046
197046
  (M != Qt || R != Nn) && (c.useCanvas && (Be.restore(), Be.save(), Be.scale(R, R)), Qt != M && (zn = !0), Qt = M, Nn = R), yr = Nn;
197047
197047
  }
197048
197048
  function dZe() {
197049
- ln = !1, Qt > cn ? (Bt = Qt - dt, ln = !0) : Bt = Qt > Oe ? ze : Qt > st ? ht : Ct, Pr = cf(Bt, c.imageZ), eAe = Pr;
197050
- var T = En[Bt], M = ar[Bt], R = c.imageX * c.imageZ, F = c.imageY * c.imageZ;
197049
+ ln = !1, Qt > cn ? ($t = Qt - dt, ln = !0) : $t = Qt > Oe ? ze : Qt > st ? ht : Ct, Pr = cf($t, c.imageZ), eAe = Pr;
197050
+ var T = En[$t], M = ar[$t], R = c.imageX * c.imageZ, F = c.imageY * c.imageZ;
197051
197051
  if (ln) {
197052
197052
  var J = tt;
197053
197053
  pi = Vn * J, zr = In * J, Ga = -(Vn / J), Lo = -(In / J), li = sr * J, Hs = Or * J, ae.width = pi, ae.height = zr, Ce.width = ae.width + "px", Ce.height = ae.height + "px", Ce.left = Ga + "px", Ce.top = Lo + "px", c.useCanvas && (ee && (or = cf(
@@ -197059,11 +197059,11 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
197059
197059
  }
197060
197060
  function Dse(T) {
197061
197061
  if (T) {
197062
- var M = m.getViewportDisplayBoundingBoxInTiles(Bt);
197062
+ var M = m.getViewportDisplayBoundingBoxInTiles($t);
197063
197063
  c.Utils.arrayClear(ir), c.Utils.arrayClear(Ci);
197064
197064
  for (var R = M.l, F = M.r; R <= F; R++)
197065
197065
  for (var J = M.t, se = M.b; J <= se; J++) {
197066
- var ne = Bt + "-" + R + "-" + J;
197066
+ var ne = $t + "-" + R + "-" + J;
197067
197067
  Ci[Ci.length] = ne, ir[ir.length] = ne;
197068
197068
  }
197069
197069
  LT(
@@ -197141,7 +197141,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
197141
197141
  else if (R.length > 0)
197142
197142
  for (var be = 0, Ve = R.length; be < Ve; be++) {
197143
197143
  var He = R[be];
197144
- He && He.t == M && (M == Bt && !ln || He.c >= ne.l && He.c <= ne.r && He.r >= ne.t && He.r <= ne.b) && (me[me.length] = R[be]);
197144
+ He && He.t == M && (M == $t && !ln || He.c >= ne.l && He.c <= ne.r && He.r >= ne.t && He.r <= ne.b) && (me[me.length] = R[be]);
197145
197145
  }
197146
197146
  if (me.length > 0)
197147
197147
  if (m.traceDebugValues(
@@ -197169,7 +197169,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
197169
197169
  ZIe();
197170
197170
  for (var F = 0, J = M.length; F < J; F++) {
197171
197171
  var se = M[F];
197172
- se && se.t == T && (T == Bt || se.c >= R.l && se.c <= R.r && se.r >= R.t && se.r <= R.b) && vS(ke, T, se);
197172
+ se && se.t == T && (T == $t || se.c >= R.l && se.c <= R.r && se.r >= R.t && se.r <= R.b) && vS(ke, T, se);
197173
197173
  }
197174
197174
  }
197175
197175
  ZIe = function() {
@@ -197453,12 +197453,12 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
197453
197453
  return J;
197454
197454
  }
197455
197455
  function Use(T, M, R) {
197456
- $t[T] = R;
197456
+ Bt[T] = R;
197457
197457
  var F = 2, J = g.replace(".", "%2E"), se = c.tileHandlerPathFull + "?file=" + J + "&requestType=" + F + "&begin=" + T + "&end=" + M, ne = new c.NetConnector();
197458
197458
  ne.loadXML(se);
197459
197459
  }
197460
197460
  this.parseOffsetChunk = function(T) {
197461
- var M = parseInt(T.documentElement.getAttribute("BEGIN"), 10), R = T.documentElement.getAttribute("REPLYDATA"), F = $t[M], J = Math.floor(
197461
+ var M = parseInt(T.documentElement.getAttribute("BEGIN"), 10), R = T.documentElement.getAttribute("REPLYDATA"), F = Bt[M], J = Math.floor(
197462
197462
  (M - S) / 8 / x
197463
197463
  );
197464
197464
  dn[J] = new Array(), dn[J] = R.split(",", 2), EZe(F);
@@ -197629,7 +197629,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
197629
197629
  1
197630
197630
  ));
197631
197631
  }
197632
- T.alpha = 1, T.t == Bt && vS(ae, Bt, T), m.traceDebugValues("onTileBackfillPrecache", T.name), Ji == Mi && m.setStatus("precacheLoadedViewport", !0), m.traceDebugValues("onTileBackfillLoad", T.name), ji <= fa + ao && m.setStatus("backfillLoadedViewport", !0), T.t == Qt && Bb(T, M);
197632
+ T.alpha = 1, T.t == $t && vS(ae, $t, T), m.traceDebugValues("onTileBackfillPrecache", T.name), Ji == Mi && m.setStatus("precacheLoadedViewport", !0), m.traceDebugValues("onTileBackfillLoad", T.name), ji <= fa + ao && m.setStatus("backfillLoadedViewport", !0), T.t == Qt && Bb(T, M);
197633
197633
  } else
197634
197634
  (typeof M > "u" || M === null) && (c.mobileDevice ? console.log(
197635
197635
  c.Utils.getResource("ERROR_TILEPATHINVALID") + T.name + ".jpg"
@@ -198588,7 +198588,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
198588
198588
  );
198589
198589
  else {
198590
198590
  Gt.save(), Gt.scale(Pr, Pr);
198591
- var He = kf(Bt, 1), be = -(c.imageX - c.imageW / 2) * He, Ve = -(c.imageY - c.imageH / 2) * He;
198591
+ var He = kf($t, 1), be = -(c.imageX - c.imageW / 2) * He, Ve = -(c.imageY - c.imageH / 2) * He;
198592
198592
  Gt.translate(be, Ve), ln ? Gt.drawImage(
198593
198593
  ee,
198594
198594
  -ee.width / 2,
@@ -203232,7 +203232,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
203232
203232
  function lle() {
203233
203233
  if (Fe) {
203234
203234
  c.Utils.clearDisplay(Fe), Pt.save(), Pt.scale(Pr, Pr);
203235
- var T = kf(Bt, 1), M = -(c.imageX - c.imageW / 2) * T, R = -(c.imageY - c.imageH / 2) * T;
203235
+ var T = kf($t, 1), M = -(c.imageX - c.imageW / 2) * T, R = -(c.imageY - c.imageH / 2) * T;
203236
203236
  Pt.translate(M, R), Pt.drawImage(ae, -ae.width / 2, -ae.height / 2, ae.width, ae.height), Pt.restore(), Pt.drawImage(de, -de.width / 2, -de.height / 2, de.width, de.height);
203237
203237
  var F = Pt.getImageData(0, 0, Fe.width, Fe.height), J = MU(F, "grayscale", "");
203238
203238
  Pt.putImageData(J, 0, 0);
@@ -207733,7 +207733,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
207733
207733
  !1
207734
207734
  ));
207735
207735
  var Ie = cf(
207736
- Bt,
207736
+ $t,
207737
207737
  T
207738
207738
  );
207739
207739
  Pr = Ie;
@@ -207752,14 +207752,14 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
207752
207752
  var fn = tt;
207753
207753
  pi = Vn * fn, zr = In * fn, Ga = -(Vn / fn), Lo = -(In / fn), li = sr * fn, Hs = Or * fn, ae.width = pi, ae.height = zr, Ce.width = ae.width + "px", Ce.height = ae.height + "px", Ce.left = Ga + "px", Ce.top = Lo + "px";
207754
207754
  } else {
207755
- var xn = En[Bt], Hn = ar[Bt];
207755
+ var xn = En[$t], Hn = ar[$t];
207756
207756
  ae.width = xn, ae.height = Hn;
207757
207757
  var Sr = c.imageX * T, Gn = c.imageY * T;
207758
207758
  Ga = sr - Sr, Lo = Or - Gn, Ce.left = Ga + "px", Ce.top = Lo + "px";
207759
207759
  }
207760
207760
  Df(
207761
207761
  ae,
207762
- Bt,
207762
+ $t,
207763
207763
  bi,
207764
207764
  "simple",
207765
207765
  !1
@@ -209818,7 +209818,7 @@ c.ZoomifyToolbar = function(t) {
209818
209818
  var A = parseInt(
209819
209819
  c.Utils.getResource("DEFAULT_SLIDERTESTDURATIONFILTER"),
209820
209820
  10
209821
- ), N = !1, D = null, U = null, z, B = [], j = c.initialImageFilters, V = !1, G = null, W = null, Z = !0, H, X, ee, K, Y, te, re, Q, oe, ge, pe, fe, ae, Ce, ie, ye, de, Te, Be, Ye, ke, we, We, ve, he, Ue, Le, Me, ot, qe, Ze, ft, At, bt, ut, xt, Ge, rt, Et, Ne, vt, Wt, jt, Xt, Jt, rn, vn, Mn, On, Yn, Rr, Wr, Zn, Zt, jn, bn, fr, mr, yt, Ht, hn, Fe, Tt, Pt, Ut, Mt, Yt, Gt, nn, Dn, Qt, Bt, ln, zn, Nn, yr, Pr, or, En, ar, Fn, Bn, $n, br, ei, Ci = 0;
209821
+ ), N = !1, D = null, U = null, z, B = [], j = c.initialImageFilters, V = !1, G = null, W = null, Z = !0, H, X, ee, K, Y, te, re, Q, oe, ge, pe, fe, ae, Ce, ie, ye, de, Te, Be, Ye, ke, we, We, ve, he, Ue, Le, Me, ot, qe, Ze, ft, At, bt, ut, xt, Ge, rt, Et, Ne, vt, Wt, jt, Xt, Jt, rn, vn, Mn, On, Yn, Rr, Wr, Zn, Zt, jn, bn, fr, mr, yt, Ht, hn, Fe, Tt, Pt, Ut, Mt, Yt, Gt, nn, Dn, Qt, $t, ln, zn, Nn, yr, Pr, or, En, ar, Fn, Bn, $n, br, ei, Ci = 0;
209822
209822
  }
209823
209823
  function Ji() {
209824
209824
  var Ee = parseFloat(
@@ -212539,7 +212539,7 @@ c.ZoomifyToolbar = function(t) {
212539
212539
  var lu = document.getElementById("labelLightnessTextBox");
212540
212540
  nn = document.getElementById("trackSliderFilterLightness"), Qt = document.getElementById("buttonSliderFilterLightness");
212541
212541
  var Kc = document.getElementById("textBoxFor-lightnessTextElement");
212542
- lu && nn && Qt && Kc && (R2 = lu.style, Dn = nn.style, Bt = Qt.style, Wx = Kc.style, R2 && Dn && Bt && Wx && (R2.width = Sn + "px", R2.height = un + "px", R2.left = vr + "px", R2.top = Ln - pi + "px", R2.visibility = "visible", c.Utils.setTextNodeStyle(
212542
+ lu && nn && Qt && Kc && (R2 = lu.style, Dn = nn.style, $t = Qt.style, Wx = Kc.style, R2 && Dn && $t && Wx && (R2.width = Sn + "px", R2.height = un + "px", R2.left = vr + "px", R2.top = Ln - pi + "px", R2.visibility = "visible", c.Utils.setTextNodeStyle(
212543
212543
  lu,
212544
212544
  "black",
212545
212545
  "verdana",
@@ -212552,7 +212552,7 @@ c.ZoomifyToolbar = function(t) {
212552
212552
  "1em",
212553
212553
  "left",
212554
212554
  "none"
212555
- ), Dn.display = "inline-block", Bt.display = "inline-block", c.Utils.graphicSize(nn, Rt, tr), Dn.left = vr + Sn + 3 + "px", Dn.top = Ln + "px", c.Utils.buttonSize(Qt, dr, Vn), Bt.left = parseFloat(Dn.left) + "px", Bt.top = Ln - 4 + "px", Wx.width = zr + "px", Wx.height = li + "px", Wx.left = vr + Sn + 3 + In + "px", Wx.top = Ln - 6 + "px", c.Utils.setTextAreaStyle(
212555
+ ), Dn.display = "inline-block", $t.display = "inline-block", c.Utils.graphicSize(nn, Rt, tr), Dn.left = vr + Sn + 3 + "px", Dn.top = Ln + "px", c.Utils.buttonSize(Qt, dr, Vn), $t.left = parseFloat(Dn.left) + "px", $t.top = Ln - 4 + "px", Wx.width = zr + "px", Wx.height = li + "px", Wx.left = vr + Sn + 3 + In + "px", Wx.top = Ln - 6 + "px", c.Utils.setTextAreaStyle(
212556
212556
  Kc,
212557
212557
  "black",
212558
212558
  "verdana",
@@ -213314,7 +213314,7 @@ c.ZoomifyToolbar = function(t) {
213314
213314
  }
213315
213315
  return Xe;
213316
213316
  }
213317
- function $t(Ee, ue) {
213317
+ function Bt(Ee, ue) {
213318
213318
  U = new c.Utils.Point(
213319
213319
  Ee.clientX,
213320
213320
  Ee.clientY
@@ -213478,10 +213478,10 @@ c.ZoomifyToolbar = function(t) {
213478
213478
  document,
213479
213479
  "mouseup",
213480
213480
  cn
213481
- )) : na.indexOf("buttonSliderFilter") != -1 ? (ui(ue, na, "sliderStart"), $t(ue), c.Utils.addEventListener(
213481
+ )) : na.indexOf("buttonSliderFilter") != -1 ? (ui(ue, na, "sliderStart"), Bt(ue), c.Utils.addEventListener(
213482
213482
  document,
213483
213483
  "mousemove",
213484
- $t
213484
+ Bt
213485
213485
  ), D || (D = window.setInterval(function() {
213486
213486
  ui(ue, na, "sliderSlide");
213487
213487
  }, A)), c.Utils.addEventListener(
@@ -213871,7 +213871,7 @@ c.ZoomifyToolbar = function(t) {
213871
213871
  )) : N ? (c.Utils.removeEventListener(
213872
213872
  document,
213873
213873
  "mousemove",
213874
- $t
213874
+ Bt
213875
213875
  ), c.Utils.removeEventListener(document, "mouseup", cn), c.Utils.removeEventListener(
213876
213876
  document,
213877
213877
  "touchmove",