nexus-shell 0.1.8 → 0.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.
@@ -2,7 +2,7 @@ var uP = Object.defineProperty;
2
2
  var dP = (r, e, n) => e in r ? uP(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n;
3
3
  var W = (r, e, n) => dP(r, typeof e != "symbol" ? e + "" : e, n);
4
4
  import * as os from "react";
5
- import ie, { forwardRef as Ti, createElement as mr, useState as it, useEffect as et, useRef as lt, createContext as $h, useCallback as qt, useMemo as en, useContext as mo, memo as Jt, useLayoutEffect as JS, useImperativeHandle as ml, cloneElement as r8 } from "react";
5
+ import ie, { forwardRef as Ti, createElement as vr, useState as it, useEffect as et, useRef as lt, createContext as $h, useCallback as qt, useMemo as en, useContext as mo, memo as Jt, useLayoutEffect as JS, useImperativeHandle as ml, cloneElement as r8 } from "react";
6
6
  import e4, { createPortal as qS } from "react-dom";
7
7
  var dA = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
8
  function YS(r) {
@@ -207,10 +207,10 @@ function pP() {
207
207
  else S(me);
208
208
  if (le.call(Ie, "key")) {
209
209
  me = r(se);
210
- var ge = Object.keys(Ie).filter(function(Fe) {
211
- return Fe !== "key";
210
+ var ge = Object.keys(Ie).filter(function(We) {
211
+ return We !== "key";
212
212
  });
213
- ke = 0 < ge.length ? "{key: someKey, " + ge.join(": ..., ") + ": ...}" : "{key: someKey}", ye[me + ke] || (ge = 0 < ge.length ? "{" + ge.join(": ..., ") + ": ...}" : "{}", console.error(
213
+ ke = 0 < ge.length ? "{key: someKey, " + ge.join(": ..., ") + ": ...}" : "{key: someKey}", Pe[me + ke] || (ge = 0 < ge.length ? "{" + ge.join(": ..., ") + ": ...}" : "{}", console.error(
214
214
  `A props object containing a "key" prop is being spread into JSX:
215
215
  let props = %s;
216
216
  <%s {...props} />
@@ -221,7 +221,7 @@ React keys must be passed directly to JSX without using spread:
221
221
  me,
222
222
  ge,
223
223
  me
224
- ), ye[me + ke] = !0);
224
+ ), Pe[me + ke] = !0);
225
225
  }
226
226
  if (me = null, De !== void 0 && (n(De), me = "" + De), s(Ie) && (n(Ie.key), me = "" + Ie.key), "key" in Ie) {
227
227
  De = {};
@@ -257,7 +257,7 @@ React keys must be passed directly to JSX without using spread:
257
257
  var re, de = {}, Ee = x.react_stack_bottom_frame.bind(
258
258
  x,
259
259
  i
260
- )(), ce = q(t(i)), ye = {};
260
+ )(), ce = q(t(i)), Pe = {};
261
261
  i1.Fragment = P, i1.jsx = function(se, Ie, De) {
262
262
  var ke = 1e4 > K.recentlyCreatedOwnerStacks++;
263
263
  return u(
@@ -535,7 +535,7 @@ class OP {
535
535
  bl.Action = OP;
536
536
  Object.defineProperty(t0, "__esModule", { value: !0 });
537
537
  t0.Actions = void 0;
538
- const Gr = bl;
538
+ const Dr = bl;
539
539
  class nn {
540
540
  /**
541
541
  * Adds a tab node to the given tabset node
@@ -547,7 +547,7 @@ class nn {
547
547
  * @returns {Action} the action
548
548
  */
549
549
  static addNode(e, n, t, o, i) {
550
- return new Gr.Action(nn.ADD_NODE, {
550
+ return new Dr.Action(nn.ADD_NODE, {
551
551
  json: e,
552
552
  toNode: n,
553
553
  location: t.getName(),
@@ -565,7 +565,7 @@ class nn {
565
565
  * @returns {Action} the action
566
566
  */
567
567
  static moveNode(e, n, t, o, i) {
568
- return new Gr.Action(nn.MOVE_NODE, {
568
+ return new Dr.Action(nn.MOVE_NODE, {
569
569
  fromNode: e,
570
570
  toNode: n,
571
571
  location: t.getName(),
@@ -579,7 +579,7 @@ class nn {
579
579
  * @returns {Action} the action
580
580
  */
581
581
  static deleteTab(e) {
582
- return new Gr.Action(nn.DELETE_TAB, { node: e });
582
+ return new Dr.Action(nn.DELETE_TAB, { node: e });
583
583
  }
584
584
  /**
585
585
  * Deletes a tabset node and all it's child tab nodes from the layout
@@ -587,7 +587,7 @@ class nn {
587
587
  * @returns {Action} the action
588
588
  */
589
589
  static deleteTabset(e) {
590
- return new Gr.Action(nn.DELETE_TABSET, { node: e });
590
+ return new Dr.Action(nn.DELETE_TABSET, { node: e });
591
591
  }
592
592
  /**
593
593
  * Change the given nodes tab text
@@ -596,7 +596,7 @@ class nn {
596
596
  * @returns {Action} the action
597
597
  */
598
598
  static renameTab(e, n) {
599
- return new Gr.Action(nn.RENAME_TAB, { node: e, text: n });
599
+ return new Dr.Action(nn.RENAME_TAB, { node: e, text: n });
600
600
  }
601
601
  /**
602
602
  * Selects the given tab in its parent tabset
@@ -604,7 +604,7 @@ class nn {
604
604
  * @returns {Action} the action
605
605
  */
606
606
  static selectTab(e) {
607
- return new Gr.Action(nn.SELECT_TAB, { tabNode: e });
607
+ return new Dr.Action(nn.SELECT_TAB, { tabNode: e });
608
608
  }
609
609
  /**
610
610
  * Set the given tabset node as the active tabset
@@ -612,7 +612,7 @@ class nn {
612
612
  * @returns {Action} the action
613
613
  */
614
614
  static setActiveTabset(e) {
615
- return new Gr.Action(nn.SET_ACTIVE_TABSET, { tabsetNode: e });
615
+ return new Dr.Action(nn.SET_ACTIVE_TABSET, { tabsetNode: e });
616
616
  }
617
617
  /**
618
618
  * Adjust the splitter between two tabsets
@@ -624,7 +624,7 @@ class nn {
624
624
  */
625
625
  static adjustSplit(e) {
626
626
  const n = e.node1Id, t = e.node2Id;
627
- return new Gr.Action(nn.ADJUST_SPLIT, {
627
+ return new Dr.Action(nn.ADJUST_SPLIT, {
628
628
  node1: n,
629
629
  weight1: e.weight1,
630
630
  pixelWidth1: e.pixelWidth1,
@@ -634,7 +634,7 @@ class nn {
634
634
  });
635
635
  }
636
636
  static adjustBorderSplit(e, n) {
637
- return new Gr.Action(nn.ADJUST_BORDER_SPLIT, { node: e, pos: n });
637
+ return new Dr.Action(nn.ADJUST_BORDER_SPLIT, { node: e, pos: n });
638
638
  }
639
639
  /**
640
640
  * Maximizes the given tabset
@@ -642,7 +642,7 @@ class nn {
642
642
  * @returns {Action} the action
643
643
  */
644
644
  static maximizeToggle(e) {
645
- return new Gr.Action(nn.MAXIMIZE_TOGGLE, { node: e });
645
+ return new Dr.Action(nn.MAXIMIZE_TOGGLE, { node: e });
646
646
  }
647
647
  /**
648
648
  * Updates the global model jsone attributes
@@ -650,7 +650,7 @@ class nn {
650
650
  * @returns {Action} the action
651
651
  */
652
652
  static updateModelAttributes(e) {
653
- return new Gr.Action(nn.UPDATE_MODEL_ATTRIBUTES, { json: e });
653
+ return new Dr.Action(nn.UPDATE_MODEL_ATTRIBUTES, { json: e });
654
654
  }
655
655
  /**
656
656
  * Updates the given nodes json attributes
@@ -659,13 +659,13 @@ class nn {
659
659
  * @returns {Action} the action
660
660
  */
661
661
  static updateNodeAttributes(e, n) {
662
- return new Gr.Action(nn.UPDATE_NODE_ATTRIBUTES, { node: e, json: n });
662
+ return new Dr.Action(nn.UPDATE_NODE_ATTRIBUTES, { node: e, json: n });
663
663
  }
664
664
  static floatTab(e) {
665
- return new Gr.Action(nn.FLOAT_TAB, { node: e });
665
+ return new Dr.Action(nn.FLOAT_TAB, { node: e });
666
666
  }
667
667
  static unFloatTab(e) {
668
- return new Gr.Action(nn.UNFLOAT_TAB, { node: e });
668
+ return new Dr.Action(nn.UNFLOAT_TAB, { node: e });
669
669
  }
670
670
  }
671
671
  t0.Actions = nn;
@@ -2168,8 +2168,8 @@ const Cr = ie, d8 = X0, WP = mf, FP = Ml, h8 = t0, p8 = js, XP = Ll, VP = or, dr
2168
2168
  if (ce !== void 0)
2169
2169
  ce(e, Ee, x, w);
2170
2170
  else {
2171
- const ye = l.current;
2172
- (0, FP.showPopup)(ye, x, w, n, t, o);
2171
+ const Pe = l.current;
2172
+ (0, FP.showPopup)(Pe, x, w, n, t, o);
2173
2173
  }
2174
2174
  Ee.stopPropagation();
2175
2175
  }, w = (Ee) => {
@@ -2180,8 +2180,8 @@ const Cr = ie, d8 = X0, WP = mf, FP = Ml, h8 = t0, p8 = js, XP = Ll, VP = or, dr
2180
2180
  }, D = n.getClassName;
2181
2181
  let H = e.getTabHeaderRect().styleWithPosition({});
2182
2182
  const z = [], J = (Ee) => {
2183
- let ce = e.getSelected() === Ee, ye = e.getChildren()[Ee];
2184
- z.push(Cr.createElement(WP.BorderButton, { layout: n, border: e.getLocation().getName(), node: ye, path: s + "/tb" + Ee, key: ye.getId(), selected: ce, iconFactory: t, titleFactory: o, icons: i })), Ee < e.getChildren().length - 1 && z.push(Cr.createElement("div", { key: "divider" + Ee, className: D(dr.CLASSES.FLEXLAYOUT__BORDER_TAB_DIVIDER) }));
2183
+ let ce = e.getSelected() === Ee, Pe = e.getChildren()[Ee];
2184
+ z.push(Cr.createElement(WP.BorderButton, { layout: n, border: e.getLocation().getName(), node: Pe, path: s + "/tb" + Ee, key: Pe.getId(), selected: ce, iconFactory: t, titleFactory: o, icons: i })), Ee < e.getChildren().length - 1 && z.push(Cr.createElement("div", { key: "divider" + Ee, className: D(dr.CLASSES.FLEXLAYOUT__BORDER_TAB_DIVIDER) }));
2185
2185
  };
2186
2186
  for (let Ee = 0; Ee < e.getChildren().length; Ee++)
2187
2187
  J(Ee);
@@ -2397,42 +2397,42 @@ Lf.TabButton = s7;
2397
2397
  Object.defineProperty(wf, "__esModule", { value: !0 });
2398
2398
  wf.TabSet = void 0;
2399
2399
  const fn = ie, Uo = js, d1 = t0, o7 = Ml, i7 = Lf, a7 = Ll, l7 = or, un = ir, nu = zr, A7 = (r) => {
2400
- const { node: e, layout: n, iconFactory: t, titleFactory: o, icons: i, path: s } = r, a = fn.useRef(null), l = fn.useRef(null), p = fn.useRef(null), u = fn.useRef(null), { selfRef: S, position: O, userControlledLeft: x, hiddenTabs: h, onMouseWheel: y, tabsTruncated: P } = (0, a7.useTabOverflow)(e, l7.Orientation.HORZ, a, u), v = (Ce) => {
2400
+ const { node: e, layout: n, iconFactory: t, titleFactory: o, icons: i, path: s } = r, a = fn.useRef(null), l = fn.useRef(null), p = fn.useRef(null), u = fn.useRef(null), { selfRef: S, position: O, userControlledLeft: x, hiddenTabs: h, onMouseWheel: y, tabsTruncated: P } = (0, a7.useTabOverflow)(e, l7.Orientation.HORZ, a, u), v = (ye) => {
2401
2401
  const ve = n.getShowOverflowMenu();
2402
2402
  if (ve !== void 0)
2403
- ve(e, Ce, h, C);
2403
+ ve(e, ye, h, C);
2404
2404
  else {
2405
2405
  const Je = l.current;
2406
2406
  (0, o7.showPopup)(Je, h, C, n, t, o);
2407
2407
  }
2408
- Ce.stopPropagation();
2409
- }, C = (Ce) => {
2410
- n.doAction(d1.Actions.selectTab(Ce.node.getId())), x.current = !1;
2411
- }, b = (Ce) => {
2412
- if (!(0, nu.isAuxMouseEvent)(Ce)) {
2408
+ ye.stopPropagation();
2409
+ }, C = (ye) => {
2410
+ n.doAction(d1.Actions.selectTab(ye.node.getId())), x.current = !1;
2411
+ }, b = (ye) => {
2412
+ if (!(0, nu.isAuxMouseEvent)(ye)) {
2413
2413
  let ve = e.getName();
2414
2414
  if (ve === void 0 ? ve = "" : ve = ": " + ve, n.doAction(d1.Actions.setActiveTabset(e.getId())), !n.getEditingTab()) {
2415
2415
  const Je = n.i18nName(Uo.I18nLabel.Move_Tabset, ve);
2416
- e.getModel().getMaximizedTabset() !== void 0 ? n.dragStart(Ce, Je, e, !1, (rt) => {
2417
- }, Y) : n.dragStart(Ce, Je, e, e.isEnableDrag(), (rt) => {
2416
+ e.getModel().getMaximizedTabset() !== void 0 ? n.dragStart(ye, Je, e, !1, (rt) => {
2417
+ }, Y) : n.dragStart(ye, Je, e, e.isEnableDrag(), (rt) => {
2418
2418
  }, Y);
2419
2419
  }
2420
2420
  }
2421
- }, w = (Ce) => {
2422
- (0, nu.isAuxMouseEvent)(Ce) && n.auxMouseClick(e, Ce);
2423
- }, G = (Ce) => {
2424
- n.showContextMenu(e, Ce);
2425
- }, D = (Ce) => {
2426
- Ce.stopPropagation();
2427
- }, H = (Ce) => {
2428
- e.canMaximize() && n.maximize(e), Ce.stopPropagation();
2429
- }, z = (Ce) => {
2430
- n.doAction(d1.Actions.deleteTabset(e.getId())), Ce.stopPropagation();
2431
- }, J = (Ce) => {
2432
- n.doAction(d1.Actions.deleteTab(e.getChildren()[0].getId())), Ce.stopPropagation();
2433
- }, F = (Ce) => {
2434
- le !== void 0 && n.doAction(d1.Actions.floatTab(le.getId())), Ce.stopPropagation();
2435
- }, Y = (Ce) => {
2421
+ }, w = (ye) => {
2422
+ (0, nu.isAuxMouseEvent)(ye) && n.auxMouseClick(e, ye);
2423
+ }, G = (ye) => {
2424
+ n.showContextMenu(e, ye);
2425
+ }, D = (ye) => {
2426
+ ye.stopPropagation();
2427
+ }, H = (ye) => {
2428
+ e.canMaximize() && n.maximize(e), ye.stopPropagation();
2429
+ }, z = (ye) => {
2430
+ n.doAction(d1.Actions.deleteTabset(e.getId())), ye.stopPropagation();
2431
+ }, J = (ye) => {
2432
+ n.doAction(d1.Actions.deleteTab(e.getChildren()[0].getId())), ye.stopPropagation();
2433
+ }, F = (ye) => {
2434
+ le !== void 0 && n.doAction(d1.Actions.floatTab(le.getId())), ye.stopPropagation();
2435
+ }, Y = (ye) => {
2436
2436
  e.canMaximize() && n.maximize(e);
2437
2437
  }, K = n.getClassName;
2438
2438
  p.current !== null && p.current.scrollLeft !== 0 && (p.current.scrollLeft = 0);
@@ -2441,52 +2441,52 @@ const fn = ie, Uo = js, d1 = t0, o7 = Ml, i7 = Lf, a7 = Ll, l7 = or, un = ir, nu
2441
2441
  e.getModel().getMaximizedTabset() !== void 0 && !e.isMaximized() && (0, nu.hideElement)(U, e.getModel().isUseVisibility());
2442
2442
  const q = [];
2443
2443
  if (e.isEnableTabStrip())
2444
- for (let Ce = 0; Ce < e.getChildren().length; Ce++) {
2445
- const ve = e.getChildren()[Ce];
2446
- let Je = e.getSelected() === Ce;
2447
- q.push(fn.createElement(i7.TabButton, { layout: n, node: ve, path: s + "/tb" + Ce, key: ve.getId(), selected: Je, iconFactory: t, titleFactory: o, icons: i })), Ce < e.getChildren().length - 1 && q.push(fn.createElement("div", { key: "divider" + Ce, className: K(un.CLASSES.FLEXLAYOUT__TABSET_TAB_DIVIDER) }));
2444
+ for (let ye = 0; ye < e.getChildren().length; ye++) {
2445
+ const ve = e.getChildren()[ye];
2446
+ let Je = e.getSelected() === ye;
2447
+ q.push(fn.createElement(i7.TabButton, { layout: n, node: ve, path: s + "/tb" + ye, key: ve.getId(), selected: Je, iconFactory: t, titleFactory: o, icons: i })), ye < e.getChildren().length - 1 && q.push(fn.createElement("div", { key: "divider" + ye, className: K(un.CLASSES.FLEXLAYOUT__TABSET_TAB_DIVIDER) }));
2448
2448
  }
2449
2449
  const re = e.getName() !== void 0;
2450
2450
  let de = [], Ee = [], ce = [];
2451
- const ye = { headerContent: e.getName(), stickyButtons: de, buttons: Ee, headerButtons: ce, overflowPosition: void 0 };
2452
- n.customizeTabSet(e, ye);
2453
- const se = ye.headerContent;
2454
- de = ye.stickyButtons, Ee = ye.buttons, ce = ye.headerButtons;
2451
+ const Pe = { headerContent: e.getName(), stickyButtons: de, buttons: Ee, headerButtons: ce, overflowPosition: void 0 };
2452
+ n.customizeTabSet(e, Pe);
2453
+ const se = Pe.headerContent;
2454
+ de = Pe.stickyButtons, Ee = Pe.buttons, ce = Pe.headerButtons;
2455
2455
  const Ie = e.isEnableSingleTabStretch() && e.getChildren().length === 1, De = Ie && e.getChildren()[0].isEnableClose() || e.isEnableClose();
2456
- if (ye.overflowPosition === void 0 && (ye.overflowPosition = de.length), de.length > 0 && (P || Ie ? Ee = [...de, ...Ee] : q.push(fn.createElement("div", { ref: u, key: "sticky_buttons_container", onMouseDown: D, onTouchStart: D, onDragStart: (Ce) => {
2457
- Ce.preventDefault();
2456
+ if (Pe.overflowPosition === void 0 && (Pe.overflowPosition = de.length), de.length > 0 && (P || Ie ? Ee = [...de, ...Ee] : q.push(fn.createElement("div", { ref: u, key: "sticky_buttons_container", onMouseDown: D, onTouchStart: D, onDragStart: (ye) => {
2457
+ ye.preventDefault();
2458
2458
  }, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER) }, de))), h.length > 0) {
2459
- const Ce = n.i18nName(Uo.I18nLabel.Overflow_Menu_Tooltip);
2459
+ const ye = n.i18nName(Uo.I18nLabel.Overflow_Menu_Tooltip);
2460
2460
  let ve;
2461
2461
  typeof i.more == "function" ? ve = i.more(e, h) : ve = fn.createElement(
2462
2462
  fn.Fragment,
2463
2463
  null,
2464
2464
  i.more,
2465
2465
  fn.createElement("div", { className: K(un.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT) }, h.length)
2466
- ), Ee.splice(Math.min(ye.overflowPosition, Ee.length), 0, fn.createElement("button", { key: "overflowbutton", "data-layout-path": s + "/button/overflow", ref: l, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON) + " " + K(un.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW), title: Ce, onClick: v, onMouseDown: D, onTouchStart: D }, ve));
2466
+ ), Ee.splice(Math.min(Pe.overflowPosition, Ee.length), 0, fn.createElement("button", { key: "overflowbutton", "data-layout-path": s + "/button/overflow", ref: l, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON) + " " + K(un.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW), title: ye, onClick: v, onMouseDown: D, onTouchStart: D }, ve));
2467
2467
  }
2468
2468
  if (le !== void 0 && n.isSupportsPopout() && le.isEnableFloat() && !le.isFloating()) {
2469
- const Ce = n.i18nName(Uo.I18nLabel.Float_Tab);
2470
- Ee.push(fn.createElement("button", { key: "float", "data-layout-path": s + "/button/float", title: Ce, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON) + " " + K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT), onClick: F, onMouseDown: D, onTouchStart: D }, typeof i.popout == "function" ? i.popout(le) : i.popout));
2469
+ const ye = n.i18nName(Uo.I18nLabel.Float_Tab);
2470
+ Ee.push(fn.createElement("button", { key: "float", "data-layout-path": s + "/button/float", title: ye, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON) + " " + K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT), onClick: F, onMouseDown: D, onTouchStart: D }, typeof i.popout == "function" ? i.popout(le) : i.popout));
2471
2471
  }
2472
2472
  if (e.canMaximize()) {
2473
- const Ce = n.i18nName(Uo.I18nLabel.Restore), ve = n.i18nName(Uo.I18nLabel.Maximize);
2474
- (re ? ce : Ee).push(fn.createElement("button", { key: "max", "data-layout-path": s + "/button/max", title: e.isMaximized() ? Ce : ve, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON) + " " + K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_ + (e.isMaximized() ? "max" : "min")), onClick: H, onMouseDown: D, onTouchStart: D }, e.isMaximized() ? typeof i.restore == "function" ? i.restore(e) : i.restore : typeof i.maximize == "function" ? i.maximize(e) : i.maximize));
2473
+ const ye = n.i18nName(Uo.I18nLabel.Restore), ve = n.i18nName(Uo.I18nLabel.Maximize);
2474
+ (re ? ce : Ee).push(fn.createElement("button", { key: "max", "data-layout-path": s + "/button/max", title: e.isMaximized() ? ye : ve, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON) + " " + K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_ + (e.isMaximized() ? "max" : "min")), onClick: H, onMouseDown: D, onTouchStart: D }, e.isMaximized() ? typeof i.restore == "function" ? i.restore(e) : i.restore : typeof i.maximize == "function" ? i.maximize(e) : i.maximize));
2475
2475
  }
2476
2476
  if (!e.isMaximized() && De) {
2477
- const Ce = Ie ? n.i18nName(Uo.I18nLabel.Close_Tab) : n.i18nName(Uo.I18nLabel.Close_Tabset);
2478
- (re ? ce : Ee).push(fn.createElement("button", { key: "close", "data-layout-path": s + "/button/close", title: Ce, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON) + " " + K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE), onClick: Ie ? J : z, onMouseDown: D, onTouchStart: D }, typeof i.closeTabset == "function" ? i.closeTabset(e) : i.closeTabset));
2477
+ const ye = Ie ? n.i18nName(Uo.I18nLabel.Close_Tab) : n.i18nName(Uo.I18nLabel.Close_Tabset);
2478
+ (re ? ce : Ee).push(fn.createElement("button", { key: "close", "data-layout-path": s + "/button/close", title: ye, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON) + " " + K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE), onClick: Ie ? J : z, onMouseDown: D, onTouchStart: D }, typeof i.closeTabset == "function" ? i.closeTabset(e) : i.closeTabset));
2479
2479
  }
2480
- const ke = fn.createElement("div", { key: "toolbar", ref: a, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR), onMouseDown: D, onTouchStart: D, onDragStart: (Ce) => {
2481
- Ce.preventDefault();
2480
+ const ke = fn.createElement("div", { key: "toolbar", ref: a, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR), onMouseDown: D, onTouchStart: D, onDragStart: (ye) => {
2481
+ ye.preventDefault();
2482
2482
  } }, Ee);
2483
2483
  let Ze, nt, me = K(un.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER);
2484
2484
  if (e.getClassNameTabStrip() !== void 0 && (me += " " + e.getClassNameTabStrip()), me += " " + un.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER_ + e.getTabLocation(), e.isActive() && !re && (me += " " + K(un.CLASSES.FLEXLAYOUT__TABSET_SELECTED)), e.isMaximized() && !re && (me += " " + K(un.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)), Ie) {
2485
- const Ce = e.getChildren()[0];
2486
- Ce.getTabSetClassName() !== void 0 && (me += " " + Ce.getTabSetClassName());
2485
+ const ye = e.getChildren()[0];
2486
+ ye.getTabSetClassName() !== void 0 && (me += " " + ye.getTabSetClassName());
2487
2487
  }
2488
2488
  if (re) {
2489
- const Ce = fn.createElement("div", { key: "toolbar", ref: a, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR), onMouseDown: D, onTouchStart: D, onDragStart: (Je) => {
2489
+ const ye = fn.createElement("div", { key: "toolbar", ref: a, className: K(un.CLASSES.FLEXLAYOUT__TAB_TOOLBAR), onMouseDown: D, onTouchStart: D, onDragStart: (Je) => {
2490
2490
  Je.preventDefault();
2491
2491
  } }, ce);
2492
2492
  let ve = K(un.CLASSES.FLEXLAYOUT__TABSET_HEADER);
@@ -2494,7 +2494,7 @@ const fn = ie, Uo = js, d1 = t0, o7 = Ml, i7 = Lf, a7 = Ll, l7 = or, un = ir, nu
2494
2494
  "div",
2495
2495
  { className: ve, style: { height: e.getHeaderHeight() + "px" }, "data-layout-path": s + "/header", onMouseDown: b, onContextMenu: G, onClick: w, onAuxClick: w, onTouchStart: b },
2496
2496
  fn.createElement("div", { className: K(un.CLASSES.FLEXLAYOUT__TABSET_HEADER_CONTENT) }, se),
2497
- Ce
2497
+ ye
2498
2498
  );
2499
2499
  }
2500
2500
  const ge = { height: e.getTabStripHeight() + "px" };
@@ -2510,22 +2510,22 @@ const fn = ie, Uo = js, d1 = t0, o7 = Ml, i7 = Lf, a7 = Ll, l7 = or, un = ir, nu
2510
2510
  ), U = n.styleFont(U);
2511
2511
  var je = void 0;
2512
2512
  if (e.getChildren().length === 0) {
2513
- const Ce = n.getTabSetPlaceHolderCallback();
2514
- Ce && (je = Ce(e));
2513
+ const ye = n.getTabSetPlaceHolderCallback();
2514
+ ye && (je = ye(e));
2515
2515
  }
2516
- const Fe = fn.createElement("div", { className: K(un.CLASSES.FLEXLAYOUT__TABSET_CONTENT) }, je);
2516
+ const We = fn.createElement("div", { className: K(un.CLASSES.FLEXLAYOUT__TABSET_CONTENT) }, je);
2517
2517
  var te;
2518
2518
  return e.getTabLocation() === "top" ? te = fn.createElement(
2519
2519
  fn.Fragment,
2520
2520
  null,
2521
2521
  Ze,
2522
2522
  nt,
2523
- Fe
2523
+ We
2524
2524
  ) : te = fn.createElement(
2525
2525
  fn.Fragment,
2526
2526
  null,
2527
2527
  Ze,
2528
- Fe,
2528
+ We,
2529
2529
  nt
2530
2530
  ), fn.createElement("div", { ref: S, dir: "ltr", "data-layout-path": s, style: U, className: K(un.CLASSES.FLEXLAYOUT__TABSET), onWheel: y }, te);
2531
2531
  };
@@ -2701,7 +2701,7 @@ const C7 = () => lr.createElement(
2701
2701
  jr.RestoreIcon = C7;
2702
2702
  Object.defineProperty(yf, "__esModule", { value: !0 });
2703
2703
  yf.Layout = void 0;
2704
- const Nt = ie, N7 = e4, N0 = X0, eo = Ei, ki = t0, m7 = ks(), C8 = Oi, to = vo, N8 = bo(), TA = xr, Dr = ir, v7 = Nf, m8 = bf, v8 = Mf, b7 = wf, b8 = Gf, M8 = Df, w8 = Hf, iu = or, Wo = jr, M7 = wl, w7 = {
2704
+ const Nt = ie, N7 = e4, N0 = X0, eo = Ei, ki = t0, m7 = ks(), C8 = Oi, to = vo, N8 = bo(), TA = xr, Hr = ir, v7 = Nf, m8 = bf, v8 = Mf, b7 = wf, b8 = Gf, M8 = Df, w8 = Hf, iu = or, Wo = jr, M7 = wl, w7 = {
2705
2705
  close: Nt.createElement(Wo.CloseIcon, null),
2706
2706
  closeTabset: Nt.createElement(Wo.CloseIcon, null),
2707
2707
  popout: Nt.createElement(Wo.PopoutIcon, null),
@@ -2807,7 +2807,7 @@ class H7 extends Nt.Component {
2807
2807
  var n;
2808
2808
  this.dropInfo = void 0, this.customDrop = void 0;
2809
2809
  const t = this.selfRef.current;
2810
- return this.outlineDiv = this.currentDocument.createElement("div"), this.outlineDiv.className = this.getClassName(Dr.CLASSES.FLEXLAYOUT__OUTLINE_RECT), this.outlineDiv.style.visibility = "hidden", t && t.appendChild(this.outlineDiv), this.dragDiv == null && (this.dragDiv = this.currentDocument.createElement("div"), this.dragDiv.className = this.getClassName(Dr.CLASSES.FLEXLAYOUT__DRAG_RECT), this.dragDiv.setAttribute("data-layout-path", "/drag-rectangle"), this.dragRectRender(this.dragDivText, this.dragNode, this.newTabJson), t && t.appendChild(this.dragDiv)), this.props.model.getMaximizedTabset() === void 0 && this.setState({ showEdges: this.props.model.isEnableEdgeDock() }), this.dragNode && this.outlineDiv && this.dragNode instanceof to.TabNode && this.dragNode.getTabRect() !== void 0 && ((n = this.dragNode.getTabRect()) === null || n === void 0 || n.positionElement(this.outlineDiv)), this.firstMove = !0, !0;
2810
+ return this.outlineDiv = this.currentDocument.createElement("div"), this.outlineDiv.className = this.getClassName(Hr.CLASSES.FLEXLAYOUT__OUTLINE_RECT), this.outlineDiv.style.visibility = "hidden", t && t.appendChild(this.outlineDiv), this.dragDiv == null && (this.dragDiv = this.currentDocument.createElement("div"), this.dragDiv.className = this.getClassName(Hr.CLASSES.FLEXLAYOUT__DRAG_RECT), this.dragDiv.setAttribute("data-layout-path", "/drag-rectangle"), this.dragRectRender(this.dragDivText, this.dragNode, this.newTabJson), t && t.appendChild(this.dragDiv)), this.props.model.getMaximizedTabset() === void 0 && this.setState({ showEdges: this.props.model.isEnableEdgeDock() }), this.dragNode && this.outlineDiv && this.dragNode instanceof to.TabNode && this.dragNode.getTabRect() !== void 0 && ((n = this.dragNode.getTabRect()) === null || n === void 0 || n.positionElement(this.outlineDiv)), this.firstMove = !0, !0;
2811
2811
  }, this.onDragMove = (n) => {
2812
2812
  var t, o, i, s, a, l, p;
2813
2813
  if (this.firstMove === !1) {
@@ -2923,7 +2923,7 @@ class H7 extends Nt.Component {
2923
2923
  /** @internal */
2924
2924
  render() {
2925
2925
  if (!this.selfRef.current)
2926
- return Nt.createElement("div", { ref: this.selfRef, className: this.getClassName(Dr.CLASSES.FLEXLAYOUT__LAYOUT) }, this.metricsElements());
2926
+ return Nt.createElement("div", { ref: this.selfRef, className: this.getClassName(Hr.CLASSES.FLEXLAYOUT__LAYOUT) }, this.metricsElements());
2927
2927
  this.props.model._setPointerFine(window && window.matchMedia && window.matchMedia("(pointer: fine)").matches);
2928
2928
  const e = [], n = [], t = [], o = {}, i = [], s = {
2929
2929
  headerBarSize: this.state.calculatedHeaderBarSize,
@@ -2939,28 +2939,28 @@ class H7 extends Nt.Component {
2939
2939
  l[S] || this.tabIds.push(S);
2940
2940
  const p = [], u = this.icons.edgeArrow;
2941
2941
  if (this.state.showEdges) {
2942
- const S = this.centerRect, O = this.edgeRectLength, x = this.edgeRectWidth, h = this.edgeRectLength / 2, y = this.getClassName(Dr.CLASSES.FLEXLAYOUT__EDGE_RECT), P = 50;
2942
+ const S = this.centerRect, O = this.edgeRectLength, x = this.edgeRectWidth, h = this.edgeRectLength / 2, y = this.getClassName(Hr.CLASSES.FLEXLAYOUT__EDGE_RECT), P = 50;
2943
2943
  p.push(Nt.createElement(
2944
2944
  "div",
2945
- { key: "North", style: { top: S.y, left: S.x + S.width / 2 - h, width: O, height: x, borderBottomLeftRadius: P, borderBottomRightRadius: P }, className: y + " " + this.getClassName(Dr.CLASSES.FLEXLAYOUT__EDGE_RECT_TOP) },
2945
+ { key: "North", style: { top: S.y, left: S.x + S.width / 2 - h, width: O, height: x, borderBottomLeftRadius: P, borderBottomRightRadius: P }, className: y + " " + this.getClassName(Hr.CLASSES.FLEXLAYOUT__EDGE_RECT_TOP) },
2946
2946
  Nt.createElement("div", { style: { transform: "rotate(180deg)" } }, u)
2947
2947
  )), p.push(Nt.createElement(
2948
2948
  "div",
2949
- { key: "West", style: { top: S.y + S.height / 2 - h, left: S.x, width: x, height: O, borderTopRightRadius: P, borderBottomRightRadius: P }, className: y + " " + this.getClassName(Dr.CLASSES.FLEXLAYOUT__EDGE_RECT_LEFT) },
2949
+ { key: "West", style: { top: S.y + S.height / 2 - h, left: S.x, width: x, height: O, borderTopRightRadius: P, borderBottomRightRadius: P }, className: y + " " + this.getClassName(Hr.CLASSES.FLEXLAYOUT__EDGE_RECT_LEFT) },
2950
2950
  Nt.createElement("div", { style: { transform: "rotate(90deg)" } }, u)
2951
2951
  )), p.push(Nt.createElement(
2952
2952
  "div",
2953
- { key: "South", style: { top: S.y + S.height - x, left: S.x + S.width / 2 - h, width: O, height: x, borderTopLeftRadius: P, borderTopRightRadius: P }, className: y + " " + this.getClassName(Dr.CLASSES.FLEXLAYOUT__EDGE_RECT_BOTTOM) },
2953
+ { key: "South", style: { top: S.y + S.height - x, left: S.x + S.width / 2 - h, width: O, height: x, borderTopLeftRadius: P, borderTopRightRadius: P }, className: y + " " + this.getClassName(Hr.CLASSES.FLEXLAYOUT__EDGE_RECT_BOTTOM) },
2954
2954
  Nt.createElement("div", null, u)
2955
2955
  )), p.push(Nt.createElement(
2956
2956
  "div",
2957
- { key: "East", style: { top: S.y + S.height / 2 - h, left: S.x + S.width - x, width: x, height: O, borderTopLeftRadius: P, borderBottomLeftRadius: P }, className: y + " " + this.getClassName(Dr.CLASSES.FLEXLAYOUT__EDGE_RECT_RIGHT) },
2957
+ { key: "East", style: { top: S.y + S.height / 2 - h, left: S.x + S.width - x, width: x, height: O, borderTopLeftRadius: P, borderBottomLeftRadius: P }, className: y + " " + this.getClassName(Hr.CLASSES.FLEXLAYOUT__EDGE_RECT_RIGHT) },
2958
2958
  Nt.createElement("div", { style: { transform: "rotate(-90deg)" } }, u)
2959
2959
  ));
2960
2960
  }
2961
2961
  return Nt.createElement(
2962
2962
  "div",
2963
- { ref: this.selfRef, className: this.getClassName(Dr.CLASSES.FLEXLAYOUT__LAYOUT), onDragEnter: this.props.onExternalDrag ? this.onDragEnter : void 0 },
2963
+ { ref: this.selfRef, className: this.getClassName(Hr.CLASSES.FLEXLAYOUT__LAYOUT), onDragEnter: this.props.onExternalDrag ? this.onDragEnter : void 0 },
2964
2964
  n,
2965
2965
  this.tabIds.map((S) => o[S]),
2966
2966
  e,
@@ -2977,9 +2977,9 @@ class H7 extends Nt.Component {
2977
2977
  return Nt.createElement(
2978
2978
  Nt.Fragment,
2979
2979
  null,
2980
- Nt.createElement("div", { key: "findHeaderBarSize", ref: this.findHeaderBarSizeRef, style: e, className: this.getClassName(Dr.CLASSES.FLEXLAYOUT__TABSET_HEADER_SIZER) }, "FindHeaderBarSize"),
2981
- Nt.createElement("div", { key: "findTabBarSize", ref: this.findTabBarSizeRef, style: e, className: this.getClassName(Dr.CLASSES.FLEXLAYOUT__TABSET_SIZER) }, "FindTabBarSize"),
2982
- Nt.createElement("div", { key: "findBorderBarSize", ref: this.findBorderBarSizeRef, style: e, className: this.getClassName(Dr.CLASSES.FLEXLAYOUT__BORDER_SIZER) }, "FindBorderBarSize")
2980
+ Nt.createElement("div", { key: "findHeaderBarSize", ref: this.findHeaderBarSizeRef, style: e, className: this.getClassName(Hr.CLASSES.FLEXLAYOUT__TABSET_HEADER_SIZER) }, "FindHeaderBarSize"),
2981
+ Nt.createElement("div", { key: "findTabBarSize", ref: this.findTabBarSizeRef, style: e, className: this.getClassName(Hr.CLASSES.FLEXLAYOUT__TABSET_SIZER) }, "FindTabBarSize"),
2982
+ Nt.createElement("div", { key: "findBorderBarSize", ref: this.findBorderBarSizeRef, style: e, className: this.getClassName(Hr.CLASSES.FLEXLAYOUT__BORDER_SIZER) }, "FindBorderBarSize")
2983
2983
  );
2984
2984
  }
2985
2985
  /** @internal */
@@ -3093,7 +3093,7 @@ class H7 extends Nt.Component {
3093
3093
  * @param onDrop a callback to call when the drag is complete (node and event will be undefined if the drag was cancelled)
3094
3094
  */
3095
3095
  addTabWithDragAndDropIndirect(e, n, t) {
3096
- this.fnNewNodeDropped = t, this.newTabJson = n, eo.DragDrop.instance.addGlass(this.onCancelAdd), this.dragDivText = e, this.dragDiv = this.currentDocument.createElement("div"), this.dragDiv.className = this.getClassName(Dr.CLASSES.FLEXLAYOUT__DRAG_RECT), this.dragDiv.addEventListener("mousedown", this.onDragDivMouseDown), this.dragDiv.addEventListener("touchstart", this.onDragDivMouseDown, { passive: !1 }), this.dragRectRender(this.dragDivText, void 0, this.newTabJson, () => {
3096
+ this.fnNewNodeDropped = t, this.newTabJson = n, eo.DragDrop.instance.addGlass(this.onCancelAdd), this.dragDivText = e, this.dragDiv = this.currentDocument.createElement("div"), this.dragDiv.className = this.getClassName(Hr.CLASSES.FLEXLAYOUT__DRAG_RECT), this.dragDiv.addEventListener("mousedown", this.onDragDivMouseDown), this.dragDiv.addEventListener("touchstart", this.onDragDivMouseDown, { passive: !1 }), this.dragRectRender(this.dragDivText, void 0, this.newTabJson, () => {
3097
3097
  if (this.dragDiv) {
3098
3098
  this.dragDiv.style.visibility = "visible";
3099
3099
  const i = this.dragDiv.getBoundingClientRect(), s = new TA.Rect(0, 0, i == null ? void 0 : i.width, i == null ? void 0 : i.height);
@@ -3131,7 +3131,7 @@ class H7 extends Nt.Component {
3131
3131
  (O == null ? void 0 : O.callback) === l && (a = void 0), this.customDrop = O;
3132
3132
  }
3133
3133
  }
3134
- this.dropInfo = e, this.outlineDiv && (this.outlineDiv.className = this.getClassName(this.customDrop ? Dr.CLASSES.FLEXLAYOUT__OUTLINE_RECT : e.className), this.customDrop ? this.customDrop.rect.positionElement(this.outlineDiv) : e.rect.positionElement(this.outlineDiv)), eo.DragDrop.instance.setGlassCursorOverride((s = this.customDrop) === null || s === void 0 ? void 0 : s.cursor), this.outlineDiv && (this.outlineDiv.style.visibility = "visible");
3134
+ this.dropInfo = e, this.outlineDiv && (this.outlineDiv.className = this.getClassName(this.customDrop ? Hr.CLASSES.FLEXLAYOUT__OUTLINE_RECT : e.className), this.customDrop ? this.customDrop.rect.positionElement(this.outlineDiv) : e.rect.positionElement(this.outlineDiv)), eo.DragDrop.instance.setGlassCursorOverride((s = this.customDrop) === null || s === void 0 ? void 0 : s.cursor), this.outlineDiv && (this.outlineDiv.style.visibility = "visible");
3135
3135
  try {
3136
3136
  a == null || a();
3137
3137
  } catch (u) {
@@ -3275,7 +3275,7 @@ Object.defineProperty(QS, "__esModule", { value: !0 });
3275
3275
  var kf = {};
3276
3276
  Object.defineProperty(kf, "__esModule", { value: !0 });
3277
3277
  kf.Model = void 0;
3278
- const wt = Gs, B7 = Ds, lu = X0, L8 = or, G8 = xr, Hr = t0, h1 = ks(), D8 = Hl, ji = t4(), no = vo, m0 = bo(), Au = n4();
3278
+ const wt = Gs, B7 = Ds, lu = X0, L8 = or, G8 = xr, kr = t0, h1 = ks(), D8 = Hl, ji = t4(), no = vo, m0 = bo(), Au = n4();
3279
3279
  let Md = class _0 {
3280
3280
  /**
3281
3281
  * Loads the model from the given json object
@@ -3398,12 +3398,12 @@ let Md = class _0 {
3398
3398
  doAction(e) {
3399
3399
  let n;
3400
3400
  switch (e.type) {
3401
- case Hr.Actions.ADD_NODE: {
3401
+ case kr.Actions.ADD_NODE: {
3402
3402
  const t = new no.TabNode(this, e.data.json, !0), o = this._idMap[e.data.toNode];
3403
3403
  (o instanceof m0.TabSetNode || o instanceof h1.BorderNode || o instanceof ji.RowNode) && (o.drop(t, lu.DockLocation.getByName(e.data.location), e.data.index, e.data.select), n = t);
3404
3404
  break;
3405
3405
  }
3406
- case Hr.Actions.MOVE_NODE: {
3406
+ case kr.Actions.MOVE_NODE: {
3407
3407
  const t = this._idMap[e.data.fromNode];
3408
3408
  if (t instanceof no.TabNode || t instanceof m0.TabSetNode) {
3409
3409
  const o = this._idMap[e.data.toNode];
@@ -3411,12 +3411,12 @@ let Md = class _0 {
3411
3411
  }
3412
3412
  break;
3413
3413
  }
3414
- case Hr.Actions.DELETE_TAB: {
3414
+ case kr.Actions.DELETE_TAB: {
3415
3415
  const t = this._idMap[e.data.node];
3416
3416
  t instanceof no.TabNode && t._delete();
3417
3417
  break;
3418
3418
  }
3419
- case Hr.Actions.DELETE_TABSET: {
3419
+ case kr.Actions.DELETE_TABSET: {
3420
3420
  const t = this._idMap[e.data.node];
3421
3421
  if (t instanceof m0.TabSetNode) {
3422
3422
  const o = [...t.getChildren()];
@@ -3428,22 +3428,22 @@ let Md = class _0 {
3428
3428
  }
3429
3429
  break;
3430
3430
  }
3431
- case Hr.Actions.FLOAT_TAB: {
3431
+ case kr.Actions.FLOAT_TAB: {
3432
3432
  const t = this._idMap[e.data.node];
3433
3433
  t instanceof no.TabNode && (t._setFloating(!0), (0, Au.adjustSelectedIndexAfterFloat)(t));
3434
3434
  break;
3435
3435
  }
3436
- case Hr.Actions.UNFLOAT_TAB: {
3436
+ case kr.Actions.UNFLOAT_TAB: {
3437
3437
  const t = this._idMap[e.data.node];
3438
3438
  t instanceof no.TabNode && (t._setFloating(!1), (0, Au.adjustSelectedIndexAfterDock)(t));
3439
3439
  break;
3440
3440
  }
3441
- case Hr.Actions.RENAME_TAB: {
3441
+ case kr.Actions.RENAME_TAB: {
3442
3442
  const t = this._idMap[e.data.node];
3443
3443
  t instanceof no.TabNode && t._setName(e.data.text);
3444
3444
  break;
3445
3445
  }
3446
- case Hr.Actions.SELECT_TAB: {
3446
+ case kr.Actions.SELECT_TAB: {
3447
3447
  const t = this._idMap[e.data.tabNode];
3448
3448
  if (t instanceof no.TabNode) {
3449
3449
  const o = t.getParent(), i = o.getChildren().indexOf(t);
@@ -3451,7 +3451,7 @@ let Md = class _0 {
3451
3451
  }
3452
3452
  break;
3453
3453
  }
3454
- case Hr.Actions.SET_ACTIVE_TABSET: {
3454
+ case kr.Actions.SET_ACTIVE_TABSET: {
3455
3455
  if (e.data.tabsetNode === void 0)
3456
3456
  this._activeTabSet = void 0;
3457
3457
  else {
@@ -3460,26 +3460,26 @@ let Md = class _0 {
3460
3460
  }
3461
3461
  break;
3462
3462
  }
3463
- case Hr.Actions.ADJUST_SPLIT: {
3463
+ case kr.Actions.ADJUST_SPLIT: {
3464
3464
  const t = this._idMap[e.data.node1], o = this._idMap[e.data.node2];
3465
3465
  (t instanceof m0.TabSetNode || t instanceof ji.RowNode) && (o instanceof m0.TabSetNode || o instanceof ji.RowNode) && (this._adjustSplitSide(t, e.data.weight1, e.data.pixelWidth1), this._adjustSplitSide(o, e.data.weight2, e.data.pixelWidth2));
3466
3466
  break;
3467
3467
  }
3468
- case Hr.Actions.ADJUST_BORDER_SPLIT: {
3468
+ case kr.Actions.ADJUST_BORDER_SPLIT: {
3469
3469
  const t = this._idMap[e.data.node];
3470
3470
  t instanceof h1.BorderNode && t._setSize(e.data.pos);
3471
3471
  break;
3472
3472
  }
3473
- case Hr.Actions.MAXIMIZE_TOGGLE: {
3473
+ case kr.Actions.MAXIMIZE_TOGGLE: {
3474
3474
  const t = this._idMap[e.data.node];
3475
3475
  t instanceof m0.TabSetNode && (t === this._maximizedTabSet ? this._maximizedTabSet = void 0 : (this._maximizedTabSet = t, this._activeTabSet = t));
3476
3476
  break;
3477
3477
  }
3478
- case Hr.Actions.UPDATE_MODEL_ATTRIBUTES: {
3478
+ case kr.Actions.UPDATE_MODEL_ATTRIBUTES: {
3479
3479
  this._updateAttrs(e.data.json);
3480
3480
  break;
3481
3481
  }
3482
- case Hr.Actions.UPDATE_NODE_ATTRIBUTES: {
3482
+ case kr.Actions.UPDATE_NODE_ATTRIBUTES: {
3483
3483
  this._idMap[e.data.node]._updateAttrs(e.data.json);
3484
3484
  break;
3485
3485
  }
@@ -3682,7 +3682,7 @@ const X7 = Ti(
3682
3682
  children: i,
3683
3683
  iconNode: s,
3684
3684
  ...a
3685
- }, l) => mr(
3685
+ }, l) => vr(
3686
3686
  "svg",
3687
3687
  {
3688
3688
  ref: l,
@@ -3695,7 +3695,7 @@ const X7 = Ti(
3695
3695
  ...a
3696
3696
  },
3697
3697
  [
3698
- ...s.map(([p, u]) => mr(p, u)),
3698
+ ...s.map(([p, u]) => vr(p, u)),
3699
3699
  ...Array.isArray(i) ? i : [i]
3700
3700
  ]
3701
3701
  )
@@ -3708,7 +3708,7 @@ const X7 = Ti(
3708
3708
  */
3709
3709
  const tt = (r, e) => {
3710
3710
  const n = Ti(
3711
- ({ className: t, ...o }, i) => mr(X7, {
3711
+ ({ className: t, ...o }, i) => vr(X7, {
3712
3712
  ref: i,
3713
3713
  iconNode: e,
3714
3714
  className: _S(`lucide-${W7(r)}`, t),
@@ -5023,7 +5023,7 @@ const En = (r) => {
5023
5023
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
5024
5024
  rN.test(r) && !sN.test(r)
5025
5025
  ), IO = () => !1, pN = (r) => oN.test(r), TN = (r) => iN.test(r), EN = () => {
5026
- const r = En("colors"), e = En("spacing"), n = En("blur"), t = En("brightness"), o = En("borderColor"), i = En("borderRadius"), s = En("borderSpacing"), a = En("borderWidth"), l = En("contrast"), p = En("grayscale"), u = En("hueRotate"), S = En("invert"), O = En("gap"), x = En("gradientColorStops"), h = En("gradientColorStopPositions"), y = En("inset"), P = En("margin"), v = En("opacity"), C = En("padding"), b = En("saturate"), w = En("scale"), G = En("sepia"), D = En("skew"), H = En("space"), z = En("translate"), J = () => ["auto", "contain", "none"], F = () => ["auto", "hidden", "clip", "visible", "scroll"], Y = () => ["auto", Lt, e], K = () => [Lt, e], le = () => ["", Os, ro], U = () => ["auto", Aa, Lt], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], re = () => ["solid", "dashed", "dotted", "double", "none"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ce = () => ["", "0", Lt], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], se = () => [Aa, Lt];
5026
+ const r = En("colors"), e = En("spacing"), n = En("blur"), t = En("brightness"), o = En("borderColor"), i = En("borderRadius"), s = En("borderSpacing"), a = En("borderWidth"), l = En("contrast"), p = En("grayscale"), u = En("hueRotate"), S = En("invert"), O = En("gap"), x = En("gradientColorStops"), h = En("gradientColorStopPositions"), y = En("inset"), P = En("margin"), v = En("opacity"), C = En("padding"), b = En("saturate"), w = En("scale"), G = En("sepia"), D = En("skew"), H = En("space"), z = En("translate"), J = () => ["auto", "contain", "none"], F = () => ["auto", "hidden", "clip", "visible", "scroll"], Y = () => ["auto", Lt, e], K = () => [Lt, e], le = () => ["", Os, ro], U = () => ["auto", Aa, Lt], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], re = () => ["solid", "dashed", "dotted", "double", "none"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ce = () => ["", "0", Lt], Pe = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], se = () => [Aa, Lt];
5027
5027
  return {
5028
5028
  cacheSize: 500,
5029
5029
  separator: ":",
@@ -5080,14 +5080,14 @@ const En = (r) => {
5080
5080
  * @see https://tailwindcss.com/docs/break-after
5081
5081
  */
5082
5082
  "break-after": [{
5083
- "break-after": ye()
5083
+ "break-after": Pe()
5084
5084
  }],
5085
5085
  /**
5086
5086
  * Break Before
5087
5087
  * @see https://tailwindcss.com/docs/break-before
5088
5088
  */
5089
5089
  "break-before": [{
5090
- "break-before": ye()
5090
+ "break-before": Pe()
5091
5091
  }],
5092
5092
  /**
5093
5093
  * Break Inside
@@ -7935,7 +7935,7 @@ function f4(r, e, n) {
7935
7935
  }
7936
7936
  }, [a, e, s]), i;
7937
7937
  }
7938
- const vr = Qt(
7938
+ const br = Qt(
7939
7939
  () => {
7940
7940
  const r = Wt(), e = Wt(), n = Ve(0), t = Wt(), o = Ve(0), i = Wt(), s = Wt(), a = Ve(0), l = Ve(0), p = Ve(0), u = Ve(0), S = Wt(), O = Wt(), x = Ve(!1), h = Ve(!1), y = Ve(!1);
7941
7941
  return at(
@@ -8608,7 +8608,7 @@ const jO = Qt(
8608
8608
  s
8609
8609
  ), { groupCounts: i, topItemsIndexes: s };
8610
8610
  },
8611
- gn(As, vr)
8611
+ gn(As, br)
8612
8612
  ), Lo = Qt(
8613
8613
  ([{ log: r }]) => {
8614
8614
  const e = Ve(!1), n = $r(
@@ -8661,9 +8661,9 @@ const jl = Qt(
8661
8661
  le,
8662
8662
  U
8663
8663
  ]) => {
8664
- const q = BO(w), { align: re, behavior: de, offset: Ee } = q, ce = H - 1, ye = kO(q, G, ce);
8665
- let se = ol(ye, G.offsetTree, K) + J;
8666
- re === "end" ? (se += le + z0(G.sizeTree, ye)[1] - D + U, ye === ce && (se += F)) : re === "center" ? se += (le + z0(G.sizeTree, ye)[1] - D + U) / 2 : se -= z, Ee && (se += Ee);
8664
+ const q = BO(w), { align: re, behavior: de, offset: Ee } = q, ce = H - 1, Pe = kO(q, G, ce);
8665
+ let se = ol(Pe, G.offsetTree, K) + J;
8666
+ re === "end" ? (se += le + z0(G.sizeTree, Pe)[1] - D + U, Pe === ce && (se += F)) : re === "center" ? se += (le + z0(G.sizeTree, Pe)[1] - D + U) / 2 : se -= z, Ee && (se += Ee);
8667
8667
  const Ie = (De) => {
8668
8668
  b(), De ? (Y("retrying to scroll to", { location: w }, Ur.DEBUG), Dt(x, w)) : (Dt(h, !0), Y("list did not change, scroll successful", {}, Ur.DEBUG));
8669
8669
  };
@@ -8678,7 +8678,7 @@ const jl = Qt(
8678
8678
  P = k0(Be(e, KN(150)), Ie);
8679
8679
  return v = setTimeout(() => {
8680
8680
  b();
8681
- }, 1200), Dt(l, !0), Y("scrolling from index to", { behavior: de, index: ye, top: se }, Ur.DEBUG), { behavior: de, top: se };
8681
+ }, 1200), Dt(l, !0), Y("scrolling from index to", { behavior: de, index: Pe, top: se }, Ur.DEBUG), { behavior: de, top: se };
8682
8682
  }
8683
8683
  )
8684
8684
  ),
@@ -8689,7 +8689,7 @@ const jl = Qt(
8689
8689
  topListHeight: y
8690
8690
  };
8691
8691
  },
8692
- gn(As, vr, wo),
8692
+ gn(As, br, wo),
8693
8693
  { singleton: !0 }
8694
8694
  );
8695
8695
  function KN(r) {
@@ -8752,7 +8752,7 @@ const Bl = Qt(
8752
8752
  scrolledToInitialItem: a
8753
8753
  };
8754
8754
  },
8755
- gn(As, vr, jl, Lo),
8755
+ gn(As, br, jl, Lo),
8756
8756
  { singleton: !0 }
8757
8757
  );
8758
8758
  function zO(r, e) {
@@ -8899,7 +8899,7 @@ const il = "up", z1 = "down", QN = "none", _N = {
8899
8899
  scrollDirection: P,
8900
8900
  scrollVelocity: v
8901
8901
  };
8902
- }, gn(vr)), al = "top", ll = "bottom", r5 = "none";
8902
+ }, gn(br)), al = "top", ll = "bottom", r5 = "none";
8903
8903
  function s5(r, e, n) {
8904
8904
  return typeof r == "number" ? n === il && e === al || n === z1 && e === ll ? r : 0 : n === il ? e === al ? r.main : r.reverse : e === ll ? r.main : r.reverse;
8905
8905
  }
@@ -8958,7 +8958,7 @@ const T4 = Qt(
8958
8958
  visibleRange: p
8959
8959
  };
8960
8960
  },
8961
- gn(vr),
8961
+ gn(br),
8962
8962
  { singleton: !0 }
8963
8963
  );
8964
8964
  function em(r, e, n) {
@@ -9097,7 +9097,7 @@ const gi = Qt(
9097
9097
  re,
9098
9098
  de
9099
9099
  ]) => {
9100
- var Ee, ce, ye, se;
9100
+ var Ee, ce, Pe, se;
9101
9101
  const Ie = F, { offsetTree: De, sizeTree: ke } = Ie, Ze = yn(P);
9102
9102
  if (J === 0)
9103
9103
  return { ...Su, totalCount: J };
@@ -9127,7 +9127,7 @@ const gi = Qt(
9127
9127
  const me = le.length > 0 ? le[le.length - 1] + 1 : 0, ge = WN(De, H, z, me);
9128
9128
  if (ge.length === 0)
9129
9129
  return null;
9130
- const je = J - 1, Fe = Ff([], (ve) => {
9130
+ const je = J - 1, We = Ff([], (ve) => {
9131
9131
  for (const Je of ge) {
9132
9132
  const rt = Je.value;
9133
9133
  let dt = rt.offset, Qe = Je.start;
@@ -9142,9 +9142,9 @@ const gi = Qt(
9142
9142
  for (let _t = Qe; _t <= Yt && !(dt >= z); _t++)
9143
9143
  ve.push({ data: de == null ? void 0 : de[_t], index: _t, offset: dt, size: Xe }), dt += Xe + q;
9144
9144
  }
9145
- }), te = a5(re, al), Ce = a5(re, ll);
9146
- if (Fe.length > 0 && (te > 0 || Ce > 0)) {
9147
- const ve = Fe[0], Je = Fe[Fe.length - 1];
9145
+ }), te = a5(re, al), ye = a5(re, ll);
9146
+ if (We.length > 0 && (te > 0 || ye > 0)) {
9147
+ const ve = We[0], Je = We[We.length - 1];
9148
9148
  if (te > 0 && ve.index > me) {
9149
9149
  const rt = Math.min(te, ve.index - me), dt = [];
9150
9150
  let Qe = ve.offset;
@@ -9152,18 +9152,18 @@ const gi = Qt(
9152
9152
  const Yt = (ce = (Ee = fa(ke, Xe, Xe)[0]) == null ? void 0 : Ee.value) != null ? ce : ve.size;
9153
9153
  Qe -= Yt + q, dt.unshift({ data: de == null ? void 0 : de[Xe], index: Xe, offset: Qe, size: Yt });
9154
9154
  }
9155
- Fe.unshift(...dt);
9155
+ We.unshift(...dt);
9156
9156
  }
9157
- if (Ce > 0 && Je.index < je) {
9158
- const rt = Math.min(Ce, je - Je.index);
9157
+ if (ye > 0 && Je.index < je) {
9158
+ const rt = Math.min(ye, je - Je.index);
9159
9159
  let dt = Je.offset + Je.size + q;
9160
9160
  for (let Qe = Je.index + 1; Qe <= Je.index + rt; Qe++) {
9161
- const Xe = (se = (ye = fa(ke, Qe, Qe)[0]) == null ? void 0 : ye.value) != null ? se : Je.size;
9162
- Fe.push({ data: de == null ? void 0 : de[Qe], index: Qe, offset: dt, size: Xe }), dt += Xe + q;
9161
+ const Xe = (se = (Pe = fa(ke, Qe, Qe)[0]) == null ? void 0 : Pe.value) != null ? se : Je.size;
9162
+ We.push({ data: de == null ? void 0 : de[Qe], index: Qe, offset: dt, size: Xe }), dt += Xe + q;
9163
9163
  }
9164
9164
  }
9165
9165
  }
9166
- return tc(Fe, nt, J, q, Ie, U);
9166
+ return tc(We, nt, J, q, Ie, U);
9167
9167
  }
9168
9168
  ),
9169
9169
  //@ts-expect-error filter needs to be fixed
@@ -9268,7 +9268,7 @@ const gi = Qt(
9268
9268
  );
9269
9269
  return at(xt(s), i), { totalListHeight: s, totalListHeightChanged: i };
9270
9270
  },
9271
- gn(vr, gi),
9271
+ gn(br, gi),
9272
9272
  { singleton: !0 }
9273
9273
  ), tm = Qt(
9274
9274
  ([{ viewportHeight: r }, { totalListHeight: e }]) => {
@@ -9284,7 +9284,7 @@ const gi = Qt(
9284
9284
  );
9285
9285
  return { alignToBottom: n, paddingTopAddition: t };
9286
9286
  },
9287
- gn(vr, WO),
9287
+ gn(br, WO),
9288
9288
  { singleton: !0 }
9289
9289
  ), FO = Qt(() => ({
9290
9290
  context: Ve(null)
@@ -9332,7 +9332,7 @@ const gi = Qt(
9332
9332
  scrollIntoView: u
9333
9333
  };
9334
9334
  },
9335
- gn(As, vr, jl, gi, wo),
9335
+ gn(As, br, jl, gi, wo),
9336
9336
  { singleton: !0 }
9337
9337
  );
9338
9338
  function l5(r) {
@@ -9439,7 +9439,7 @@ const rm = (r, e) => typeof r == "function" ? l5(r(e)) : e && l5(r), sm = Qt(
9439
9439
  Bl,
9440
9440
  Lo,
9441
9441
  wo,
9442
- vr,
9442
+ br,
9443
9443
  FO,
9444
9444
  XO
9445
9445
  )
@@ -9484,7 +9484,7 @@ const rm = (r, e) => typeof r == "function" ? l5(r(e)) : e && l5(r), sm = Qt(
9484
9484
  initialScrollTop: t
9485
9485
  };
9486
9486
  },
9487
- gn(Lo, vr, gi),
9487
+ gn(Lo, br, gi),
9488
9488
  { singleton: !0 }
9489
9489
  ), VO = Qt(
9490
9490
  ([{ scrollVelocity: r }]) => {
@@ -9547,7 +9547,7 @@ const rm = (r, e) => typeof r == "function" ? l5(r(e)) : e && l5(r), sm = Qt(
9547
9547
  windowScrollTo: o,
9548
9548
  windowViewportRect: t
9549
9549
  };
9550
- }, gn(vr)), am = Qt(
9550
+ }, gn(br)), am = Qt(
9551
9551
  ([
9552
9552
  { sizeRanges: r, sizes: e },
9553
9553
  { headerHeight: n, scrollTop: t },
@@ -9579,7 +9579,7 @@ const rm = (r, e) => typeof r == "function" ? l5(r(e)) : e && l5(r), sm = Qt(
9579
9579
  restoreStateFrom: u
9580
9580
  };
9581
9581
  },
9582
- gn(As, vr, Bl, Lo, E4)
9582
+ gn(As, br, Bl, Lo, E4)
9583
9583
  );
9584
9584
  function lm(r) {
9585
9585
  return { align: "start", index: 0, offset: r.scrollTop };
@@ -9677,7 +9677,7 @@ const cm = JO(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
9677
9677
  }
9678
9678
  ), { deviation: r };
9679
9679
  },
9680
- gn(vr, zl, gi, As, wo, u4)
9680
+ gn(br, zl, gi, As, wo, u4)
9681
9681
  ), um = Qt(
9682
9682
  ([
9683
9683
  r,
@@ -9792,7 +9792,7 @@ const cm = JO(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
9792
9792
  gn(
9793
9793
  As,
9794
9794
  Bl,
9795
- vr,
9795
+ br,
9796
9796
  am,
9797
9797
  sm,
9798
9798
  gi,
@@ -10026,7 +10026,7 @@ const pm = /* @__PURE__ */ Qt(() => {
10026
10026
  style: le,
10027
10027
  children: (r ? e.topItems : e.items).map((U) => {
10028
10028
  const q = U.originalIndex, re = z(q + e.firstItemIndex, U.data, p);
10029
- return J ? /* @__PURE__ */ mr(
10029
+ return J ? /* @__PURE__ */ vr(
10030
10030
  w,
10031
10031
  {
10032
10032
  ...On(w, p),
@@ -10036,7 +10036,7 @@ const pm = /* @__PURE__ */ Qt(() => {
10036
10036
  type: U.type || "item",
10037
10037
  ...U.type === "group" ? {} : { groupIndex: U.groupIndex }
10038
10038
  }
10039
- ) : U.type === "group" ? /* @__PURE__ */ mr(
10039
+ ) : U.type === "group" ? /* @__PURE__ */ vr(
10040
10040
  H,
10041
10041
  {
10042
10042
  ...On(H, p),
@@ -10047,7 +10047,7 @@ const pm = /* @__PURE__ */ Qt(() => {
10047
10047
  style: Sm
10048
10048
  },
10049
10049
  u(U.index, p)
10050
- ) : /* @__PURE__ */ mr(
10050
+ ) : /* @__PURE__ */ vr(
10051
10051
  D,
10052
10052
  {
10053
10053
  ...On(D, p),
@@ -10309,7 +10309,7 @@ const Pm = ({ children: r }) => {
10309
10309
  ), Dm = ({ height: r }) => /* @__PURE__ */ m.jsx("tr", { children: /* @__PURE__ */ m.jsx("td", { style: { height: r } }) }), Hm = ({ height: r }) => /* @__PURE__ */ m.jsx("tr", { children: /* @__PURE__ */ m.jsx("td", { style: { border: 0, height: r, padding: 0 } }) }), km = { overflowAnchor: "none" }, f5 = { position: O4(), zIndex: 2, overflowAnchor: "none" }, u5 = /* @__PURE__ */ ie.memo(function({ showTopList: r = !1 }) {
10310
10310
  const e = Gt("listState"), n = Gt("computeItemKey"), t = Gt("firstItemIndex"), o = Gt("context"), i = Gt("isSeeking"), s = Gt("fixedHeaderHeight"), a = Gt("groupIndices").length > 0, l = Gt("itemContent"), p = Gt("groupContent"), u = Gt("ScrollSeekPlaceholder") || Dm, S = Gt("GroupComponent"), O = Gt("TableRowComponent"), x = (r ? e.topItems : []).reduce((y, P, v) => (v === 0 ? y.push(P.size) : y.push(y[v - 1] + P.size), y), []), h = (r ? e.topItems : e.items).map((y) => {
10311
10311
  const P = y.originalIndex, v = n(P + t, y.data, o), C = r ? P === 0 ? 0 : x[P - 1] : 0;
10312
- return i ? /* @__PURE__ */ mr(
10312
+ return i ? /* @__PURE__ */ vr(
10313
10313
  u,
10314
10314
  {
10315
10315
  ...On(u, o),
@@ -10318,7 +10318,7 @@ const Pm = ({ children: r }) => {
10318
10318
  key: v,
10319
10319
  type: y.type || "item"
10320
10320
  }
10321
- ) : y.type === "group" ? /* @__PURE__ */ mr(
10321
+ ) : y.type === "group" ? /* @__PURE__ */ vr(
10322
10322
  S,
10323
10323
  {
10324
10324
  ...On(S, o),
@@ -10332,7 +10332,7 @@ const Pm = ({ children: r }) => {
10332
10332
  }
10333
10333
  },
10334
10334
  p(y.index, o)
10335
- ) : /* @__PURE__ */ mr(
10335
+ ) : /* @__PURE__ */ vr(
10336
10336
  O,
10337
10337
  {
10338
10338
  ...On(O, o),
@@ -10530,7 +10530,7 @@ const Zm = /* @__PURE__ */ Qt(
10530
10530
  { customScrollParent: P, useWindowScroll: v, windowScrollContainerState: C, windowScrollTo: b, windowViewportRect: w },
10531
10531
  G
10532
10532
  ]) => {
10533
- const D = Ve(0), H = Ve(0), z = Ve(d5), J = Ve({ height: 0, width: 0 }), F = Ve({ height: 0, width: 0 }), Y = Wt(), K = Wt(), le = Ve(0), U = Ve(null), q = Ve({ column: 0, row: 0 }), re = Wt(), de = Wt(), Ee = Ve(!1), ce = Ve(0), ye = Ve(!0), se = Ve(!1), Ie = Ve(!1);
10533
+ const D = Ve(0), H = Ve(0), z = Ve(d5), J = Ve({ height: 0, width: 0 }), F = Ve({ height: 0, width: 0 }), Y = Wt(), K = Wt(), le = Ve(0), U = Ve(null), q = Ve({ column: 0, row: 0 }), re = Wt(), de = Wt(), Ee = Ve(!1), ce = Ve(0), Pe = Ve(!0), se = Ve(!1), Ie = Ve(!1);
10534
10534
  rn(
10535
10535
  Be(
10536
10536
  h,
@@ -10538,18 +10538,18 @@ const Zm = /* @__PURE__ */ Qt(
10538
10538
  gt(([ge, je]) => !!je)
10539
10539
  ),
10540
10540
  () => {
10541
- Dt(ye, !1);
10541
+ Dt(Pe, !1);
10542
10542
  }
10543
10543
  ), rn(
10544
10544
  Be(
10545
- Bn(h, ye, F, J, ce, se),
10546
- gt(([ge, je, Fe, te, , Ce]) => ge && !je && Fe.height !== 0 && te.height !== 0 && !Ce)
10545
+ Bn(h, Pe, F, J, ce, se),
10546
+ gt(([ge, je, We, te, , ye]) => ge && !je && We.height !== 0 && te.height !== 0 && !ye)
10547
10547
  ),
10548
10548
  ([, , , , ge]) => {
10549
10549
  Dt(se, !0), h4(1, () => {
10550
10550
  Dt(Y, ge);
10551
10551
  }), k0(Be(p), () => {
10552
- Dt(e, [0, 0]), Dt(ye, !0);
10552
+ Dt(e, [0, 0]), Dt(Pe, !0);
10553
10553
  });
10554
10554
  }
10555
10555
  ), at(
@@ -10584,8 +10584,8 @@ const Zm = /* @__PURE__ */ Qt(
10584
10584
  xt(q, (ge, je) => ge && ge.column === je.column && ge.row === je.row),
10585
10585
  xt(p)
10586
10586
  ),
10587
- $e(([ge, je, Fe, te]) => ({
10588
- gap: Fe,
10587
+ $e(([ge, je, We, te]) => ({
10588
+ gap: We,
10589
10589
  item: je,
10590
10590
  scrollTop: te,
10591
10591
  viewport: ge
@@ -10603,16 +10603,16 @@ const Zm = /* @__PURE__ */ Qt(
10603
10603
  xt(U),
10604
10604
  xt(H),
10605
10605
  xt(Ee),
10606
- xt(ye),
10606
+ xt(Pe),
10607
10607
  xt(ce)
10608
10608
  ),
10609
10609
  gt(([, , , , , , , ge]) => !ge),
10610
10610
  $e(
10611
10611
  ([
10612
10612
  ge,
10613
- [je, Fe],
10613
+ [je, We],
10614
10614
  te,
10615
- Ce,
10615
+ ye,
10616
10616
  ve,
10617
10617
  Je,
10618
10618
  rt,
@@ -10620,17 +10620,17 @@ const Zm = /* @__PURE__ */ Qt(
10620
10620
  dt,
10621
10621
  Qe
10622
10622
  ]) => {
10623
- const { column: Xe, row: Yt } = te, { height: _t, width: Un } = Ce, { width: Xr } = ve;
10623
+ const { column: Xe, row: Yt } = te, { height: _t, width: Un } = ye, { width: Xr } = ve;
10624
10624
  if (rt === 0 && (ge === 0 || Xr === 0))
10625
10625
  return d5;
10626
10626
  if (Un === 0) {
10627
10627
  const Ln = p4(Qe, ge), Rr = Ln + Math.max(rt - 1, 0);
10628
10628
  return qm(T5(Ln, Rr, Je));
10629
10629
  }
10630
- const br = $O(Xr, Un, Xe);
10630
+ const Mr = $O(Xr, Un, Xe);
10631
10631
  let Cn, Kn;
10632
- dt ? je === 0 && Fe === 0 && rt > 0 ? (Cn = 0, Kn = rt - 1) : (Cn = br * Oc((je + Yt) / (_t + Yt)), Kn = br * h5((Fe + Yt) / (_t + Yt)) - 1, Kn = gu(ge - 1, U1(Kn, br - 1)), Cn = gu(Kn, U1(0, Cn))) : (Cn = 0, Kn = -1);
10633
- const r0 = T5(Cn, Kn, Je), { bottom: s0, top: o0 } = E5(ve, te, Ce, r0), I0 = h5(ge / br), us = I0 * _t + (I0 - 1) * Yt - s0;
10632
+ dt ? je === 0 && We === 0 && rt > 0 ? (Cn = 0, Kn = rt - 1) : (Cn = Mr * Oc((je + Yt) / (_t + Yt)), Kn = Mr * h5((We + Yt) / (_t + Yt)) - 1, Kn = gu(ge - 1, U1(Kn, Mr - 1)), Cn = gu(Kn, U1(0, Cn))) : (Cn = 0, Kn = -1);
10633
+ const r0 = T5(Cn, Kn, Je), { bottom: s0, top: o0 } = E5(ve, te, ye, r0), I0 = h5(ge / Mr), us = I0 * _t + (I0 - 1) * Yt - s0;
10634
10634
  return { bottom: s0, itemHeight: _t, items: r0, itemWidth: Un, offsetBottom: us, offsetTop: o0, top: o0 };
10635
10635
  }
10636
10636
  )
@@ -10646,10 +10646,10 @@ const Zm = /* @__PURE__ */ Qt(
10646
10646
  ), at(
10647
10647
  Be(
10648
10648
  Bn(J, F, z, q),
10649
- gt(([ge, je, { items: Fe }]) => Fe.length > 0 && je.height !== 0 && ge.height !== 0),
10650
- $e(([ge, je, { items: Fe }, te]) => {
10651
- const { bottom: Ce, top: ve } = E5(ge, te, je, Fe);
10652
- return [ve, Ce];
10649
+ gt(([ge, je, { items: We }]) => We.length > 0 && je.height !== 0 && ge.height !== 0),
10650
+ $e(([ge, je, { items: We }, te]) => {
10651
+ const { bottom: ye, top: ve } = E5(ge, te, je, We);
10652
+ return [ve, ye];
10653
10653
  }),
10654
10654
  Sn(sl)
10655
10655
  ),
@@ -10669,9 +10669,9 @@ const Zm = /* @__PURE__ */ Qt(
10669
10669
  Bn(z, D),
10670
10670
  gt(([{ items: ge }]) => ge.length > 0),
10671
10671
  jt(De),
10672
- gt(([[ge, je], Fe]) => {
10672
+ gt(([[ge, je], We]) => {
10673
10673
  const te = ge.items[ge.items.length - 1].index === je - 1;
10674
- return (Fe || ge.bottom > 0 && ge.itemHeight > 0 && ge.offsetBottom === 0 && ge.items.length === je) && te;
10674
+ return (We || ge.bottom > 0 && ge.itemHeight > 0 && ge.offsetBottom === 0 && ge.items.length === je) && te;
10675
10675
  }),
10676
10676
  $e(([[, ge]]) => ge - 1),
10677
10677
  Sn()
@@ -10700,12 +10700,12 @@ const Zm = /* @__PURE__ */ Qt(
10700
10700
  Be(
10701
10701
  Y,
10702
10702
  jt(J, F, D, q),
10703
- $e(([ge, je, Fe, te, Ce]) => {
10703
+ $e(([ge, je, We, te, ye]) => {
10704
10704
  const ve = BO(ge), { align: Je, behavior: rt, offset: dt } = ve;
10705
10705
  let Qe = ve.index;
10706
10706
  Qe === "LAST" && (Qe = te - 1), Qe = U1(0, Qe, gu(te - 1, Qe));
10707
- let Xe = zd(je, Ce, Fe, Qe);
10708
- return Je === "end" ? Xe = p5(Xe - je.height + Fe.height) : Je === "center" && (Xe = p5(Xe - je.height / 2 + Fe.height / 2)), dt && (Xe += dt), { behavior: rt, top: Xe };
10707
+ let Xe = zd(je, ye, We, Qe);
10708
+ return Je === "end" ? Xe = p5(Xe - je.height + We.height) : Je === "center" && (Xe = p5(Xe - je.height / 2 + We.height / 2)), dt && (Xe += dt), { behavior: rt, top: Xe };
10709
10709
  })
10710
10710
  ),
10711
10711
  l
@@ -10765,7 +10765,7 @@ const Zm = /* @__PURE__ */ Qt(
10765
10765
  ...G
10766
10766
  };
10767
10767
  },
10768
- gn(T4, vr, zl, VO, Lo, E4, wo)
10768
+ gn(T4, br, zl, VO, Lo, E4, wo)
10769
10769
  );
10770
10770
  function $O(r, e, n) {
10771
10771
  return U1(1, Oc((r + n) / (Oc(e) + n)));
@@ -10853,7 +10853,7 @@ const Km = /* @__PURE__ */ Qt(() => {
10853
10853
  width: r.itemWidth
10854
10854
  },
10855
10855
  C
10856
- ) : /* @__PURE__ */ mr(
10856
+ ) : /* @__PURE__ */ vr(
10857
10857
  a,
10858
10858
  {
10859
10859
  ...On(a, u),
@@ -12125,15 +12125,15 @@ function tb() {
12125
12125
  dispatch: F
12126
12126
  }), H)) != null)
12127
12127
  return K = U.x - Y[0] || 0, le = U.y - Y[1] || 0, function q(re, de, Ee) {
12128
- var ce = Y, ye;
12128
+ var ce = Y, Pe;
12129
12129
  switch (re) {
12130
12130
  case "start":
12131
- o[z] = q, ye = s++;
12131
+ o[z] = q, Pe = s++;
12132
12132
  break;
12133
12133
  case "end":
12134
12134
  delete o[z], --s;
12135
12135
  case "drag":
12136
- Y = w0(Ee || de, G), ye = s;
12136
+ Y = w0(Ee || de, G), Pe = s;
12137
12137
  break;
12138
12138
  }
12139
12139
  F.call(
@@ -12144,7 +12144,7 @@ function tb() {
12144
12144
  subject: U,
12145
12145
  target: O,
12146
12146
  identifier: z,
12147
- active: ye,
12147
+ active: Pe,
12148
12148
  x: Y[0] + K,
12149
12149
  y: Y[1] + le,
12150
12150
  dx: Y[0] - ce[0],
@@ -13304,8 +13304,8 @@ function v6() {
13304
13304
  }, re, de);
13305
13305
  }, v.scaleTo = function(U, q, re, de) {
13306
13306
  v.transform(U, function() {
13307
- var Ee = e.apply(this, arguments), ce = this.__zoom, ye = re == null ? w(Ee) : typeof re == "function" ? re.apply(this, arguments) : re, se = ce.invert(ye), Ie = typeof q == "function" ? q.apply(this, arguments) : q;
13308
- return n(b(C(ce, Ie), ye, se), Ee, s);
13307
+ var Ee = e.apply(this, arguments), ce = this.__zoom, Pe = re == null ? w(Ee) : typeof re == "function" ? re.apply(this, arguments) : re, se = ce.invert(Pe), Ie = typeof q == "function" ? q.apply(this, arguments) : q;
13308
+ return n(b(C(ce, Ie), Pe, se), Ee, s);
13309
13309
  }, re, de);
13310
13310
  }, v.translateBy = function(U, q, re, de) {
13311
13311
  v.transform(U, function() {
@@ -13316,8 +13316,8 @@ function v6() {
13316
13316
  }, null, de);
13317
13317
  }, v.translateTo = function(U, q, re, de, Ee) {
13318
13318
  v.transform(U, function() {
13319
- var ce = e.apply(this, arguments), ye = this.__zoom, se = de == null ? w(ce) : typeof de == "function" ? de.apply(this, arguments) : de;
13320
- return n(bs.translate(se[0], se[1]).scale(ye.k).translate(
13319
+ var ce = e.apply(this, arguments), Pe = this.__zoom, se = de == null ? w(ce) : typeof de == "function" ? de.apply(this, arguments) : de;
13320
+ return n(bs.translate(se[0], se[1]).scale(Pe.k).translate(
13321
13321
  typeof q == "function" ? -q.apply(this, arguments) : -q,
13322
13322
  typeof re == "function" ? -re.apply(this, arguments) : -re
13323
13323
  ), ce, s);
@@ -13339,14 +13339,14 @@ function v6() {
13339
13339
  }).on("interrupt.zoom end.zoom", function() {
13340
13340
  D(this, arguments).event(de).end();
13341
13341
  }).tween("zoom", function() {
13342
- var Ee = this, ce = arguments, ye = D(Ee, ce).event(de), se = e.apply(Ee, ce), Ie = re == null ? w(se) : typeof re == "function" ? re.apply(Ee, ce) : re, De = Math.max(se[1][0] - se[0][0], se[1][1] - se[0][1]), ke = Ee.__zoom, Ze = typeof q == "function" ? q.apply(Ee, ce) : q, nt = l(ke.invert(Ie).concat(De / ke.k), Ze.invert(Ie).concat(De / Ze.k));
13342
+ var Ee = this, ce = arguments, Pe = D(Ee, ce).event(de), se = e.apply(Ee, ce), Ie = re == null ? w(se) : typeof re == "function" ? re.apply(Ee, ce) : re, De = Math.max(se[1][0] - se[0][0], se[1][1] - se[0][1]), ke = Ee.__zoom, Ze = typeof q == "function" ? q.apply(Ee, ce) : q, nt = l(ke.invert(Ie).concat(De / ke.k), Ze.invert(Ie).concat(De / Ze.k));
13343
13343
  return function(me) {
13344
13344
  if (me === 1) me = Ze;
13345
13345
  else {
13346
13346
  var ge = nt(me), je = De / ge[2];
13347
13347
  me = new ms(je, Ie[0] - ge[0] * je, Ie[1] - ge[1] * je);
13348
13348
  }
13349
- ye.zoom(null, me);
13349
+ Pe.zoom(null, me);
13350
13350
  };
13351
13351
  });
13352
13352
  }
@@ -13393,18 +13393,18 @@ function v6() {
13393
13393
  if (de.k === Ee) return;
13394
13394
  re.mouse = [ce, de.invert(ce)], oc(this), re.start();
13395
13395
  }
13396
- O1(U), re.wheel = setTimeout(ye, h), re.zoom("mouse", n(b(C(de, Ee), re.mouse[0], re.mouse[1]), re.extent, s));
13397
- function ye() {
13396
+ O1(U), re.wheel = setTimeout(Pe, h), re.zoom("mouse", n(b(C(de, Ee), re.mouse[0], re.mouse[1]), re.extent, s));
13397
+ function Pe() {
13398
13398
  re.wheel = null, re.end();
13399
13399
  }
13400
13400
  }
13401
13401
  function J(U, ...q) {
13402
13402
  if (O || !r.apply(this, arguments)) return;
13403
- var re = U.currentTarget, de = D(this, q, !0).event(U), Ee = u0(U.view).on("mousemove.zoom", Ie, !0).on("mouseup.zoom", De, !0), ce = w0(U, re), ye = U.clientX, se = U.clientY;
13403
+ var re = U.currentTarget, de = D(this, q, !0).event(U), Ee = u0(U.view).on("mousemove.zoom", Ie, !0).on("mouseup.zoom", De, !0), ce = w0(U, re), Pe = U.clientX, se = U.clientY;
13404
13404
  h6(U.view), Pu(U), de.mouse = [ce, this.__zoom.invert(ce)], oc(this), de.start();
13405
13405
  function Ie(ke) {
13406
13406
  if (O1(ke), !de.moved) {
13407
- var Ze = ke.clientX - ye, nt = ke.clientY - se;
13407
+ var Ze = ke.clientX - Pe, nt = ke.clientY - se;
13408
13408
  de.moved = Ze * Ze + nt * nt > y;
13409
13409
  }
13410
13410
  de.event(ke).zoom("mouse", n(b(de.that.__zoom, de.mouse[0] = w0(ke, re), de.mouse[1]), de.extent, s));
@@ -13415,15 +13415,15 @@ function v6() {
13415
13415
  }
13416
13416
  function F(U, ...q) {
13417
13417
  if (r.apply(this, arguments)) {
13418
- var re = this.__zoom, de = w0(U.changedTouches ? U.changedTouches[0] : U, this), Ee = re.invert(de), ce = re.k * (U.shiftKey ? 0.5 : 2), ye = n(b(C(re, ce), de, Ee), e.apply(this, q), s);
13419
- O1(U), a > 0 ? u0(this).transition().duration(a).call(G, ye, de, U) : u0(this).call(v.transform, ye, de, U);
13418
+ var re = this.__zoom, de = w0(U.changedTouches ? U.changedTouches[0] : U, this), Ee = re.invert(de), ce = re.k * (U.shiftKey ? 0.5 : 2), Pe = n(b(C(re, ce), de, Ee), e.apply(this, q), s);
13419
+ O1(U), a > 0 ? u0(this).transition().duration(a).call(G, Pe, de, U) : u0(this).call(v.transform, Pe, de, U);
13420
13420
  }
13421
13421
  }
13422
13422
  function Y(U, ...q) {
13423
13423
  if (r.apply(this, arguments)) {
13424
- var re = U.touches, de = re.length, Ee = D(this, q, U.changedTouches.length === de).event(U), ce, ye, se, Ie;
13425
- for (Pu(U), ye = 0; ye < de; ++ye)
13426
- se = re[ye], Ie = w0(se, this), Ie = [Ie, this.__zoom.invert(Ie), se.identifier], Ee.touch0 ? !Ee.touch1 && Ee.touch0[2] !== Ie[2] && (Ee.touch1 = Ie, Ee.taps = 0) : (Ee.touch0 = Ie, ce = !0, Ee.taps = 1 + !!u);
13424
+ var re = U.touches, de = re.length, Ee = D(this, q, U.changedTouches.length === de).event(U), ce, Pe, se, Ie;
13425
+ for (Pu(U), Pe = 0; Pe < de; ++Pe)
13426
+ se = re[Pe], Ie = w0(se, this), Ie = [Ie, this.__zoom.invert(Ie), se.identifier], Ee.touch0 ? !Ee.touch1 && Ee.touch0[2] !== Ie[2] && (Ee.touch1 = Ie, Ee.taps = 0) : (Ee.touch0 = Ie, ce = !0, Ee.taps = 1 + !!u);
13427
13427
  u && (u = clearTimeout(u)), ce && (Ee.taps < 2 && (S = Ie[0], u = setTimeout(function() {
13428
13428
  u = null;
13429
13429
  }, x)), oc(this), Ee.start());
@@ -13431,26 +13431,26 @@ function v6() {
13431
13431
  }
13432
13432
  function K(U, ...q) {
13433
13433
  if (this.__zooming) {
13434
- var re = D(this, q).event(U), de = U.changedTouches, Ee = de.length, ce, ye, se, Ie;
13434
+ var re = D(this, q).event(U), de = U.changedTouches, Ee = de.length, ce, Pe, se, Ie;
13435
13435
  for (O1(U), ce = 0; ce < Ee; ++ce)
13436
- ye = de[ce], se = w0(ye, this), re.touch0 && re.touch0[2] === ye.identifier ? re.touch0[0] = se : re.touch1 && re.touch1[2] === ye.identifier && (re.touch1[0] = se);
13437
- if (ye = re.that.__zoom, re.touch1) {
13436
+ Pe = de[ce], se = w0(Pe, this), re.touch0 && re.touch0[2] === Pe.identifier ? re.touch0[0] = se : re.touch1 && re.touch1[2] === Pe.identifier && (re.touch1[0] = se);
13437
+ if (Pe = re.that.__zoom, re.touch1) {
13438
13438
  var De = re.touch0[0], ke = re.touch0[1], Ze = re.touch1[0], nt = re.touch1[1], me = (me = Ze[0] - De[0]) * me + (me = Ze[1] - De[1]) * me, ge = (ge = nt[0] - ke[0]) * ge + (ge = nt[1] - ke[1]) * ge;
13439
- ye = C(ye, Math.sqrt(me / ge)), se = [(De[0] + Ze[0]) / 2, (De[1] + Ze[1]) / 2], Ie = [(ke[0] + nt[0]) / 2, (ke[1] + nt[1]) / 2];
13439
+ Pe = C(Pe, Math.sqrt(me / ge)), se = [(De[0] + Ze[0]) / 2, (De[1] + Ze[1]) / 2], Ie = [(ke[0] + nt[0]) / 2, (ke[1] + nt[1]) / 2];
13440
13440
  } else if (re.touch0) se = re.touch0[0], Ie = re.touch0[1];
13441
13441
  else return;
13442
- re.zoom("touch", n(b(ye, se, Ie), re.extent, s));
13442
+ re.zoom("touch", n(b(Pe, se, Ie), re.extent, s));
13443
13443
  }
13444
13444
  }
13445
13445
  function le(U, ...q) {
13446
13446
  if (this.__zooming) {
13447
- var re = D(this, q).event(U), de = U.changedTouches, Ee = de.length, ce, ye;
13447
+ var re = D(this, q).event(U), de = U.changedTouches, Ee = de.length, ce, Pe;
13448
13448
  for (Pu(U), O && clearTimeout(O), O = setTimeout(function() {
13449
13449
  O = null;
13450
13450
  }, x), ce = 0; ce < Ee; ++ce)
13451
- ye = de[ce], re.touch0 && re.touch0[2] === ye.identifier ? delete re.touch0 : re.touch1 && re.touch1[2] === ye.identifier && delete re.touch1;
13451
+ Pe = de[ce], re.touch0 && re.touch0[2] === Pe.identifier ? delete re.touch0 : re.touch1 && re.touch1[2] === Pe.identifier && delete re.touch1;
13452
13452
  if (re.touch1 && !re.touch0 && (re.touch0 = re.touch1, delete re.touch1), re.touch0) re.touch0[1] = this.__zoom.invert(re.touch0[0]);
13453
- else if (re.end(), re.taps === 2 && (ye = w0(ye, this), Math.hypot(S[0] - ye[0], S[1] - ye[1]) < P)) {
13453
+ else if (re.end(), re.taps === 2 && (Pe = w0(Pe, this), Math.hypot(S[0] - Pe[0], S[1] - Pe[1]) < P)) {
13454
13454
  var se = u0(this).on("dblclick.zoom");
13455
13455
  se && se.apply(this, arguments);
13456
13456
  }
@@ -13636,10 +13636,10 @@ var To;
13636
13636
  (function(r) {
13637
13637
  r.Bezier = "default", r.Straight = "straight", r.Step = "step", r.SmoothStep = "smoothstep", r.SimpleBezier = "simplebezier";
13638
13638
  })(To || (To = {}));
13639
- var kr;
13639
+ var mr;
13640
13640
  (function(r) {
13641
13641
  r.Arrow = "arrow", r.ArrowClosed = "arrowclosed";
13642
- })(kr || (kr = {}));
13642
+ })(mr || (mr = {}));
13643
13643
  var ct;
13644
13644
  (function(r) {
13645
13645
  r.Left = "left", r.Top = "top", r.Right = "right", r.Bottom = "bottom";
@@ -14058,8 +14058,8 @@ function Y6({ event: r, handleId: e, nodeId: n, onConnect: t, isTarget: o, getSt
14058
14058
  }), de = () => {
14059
14059
  if (!x)
14060
14060
  return;
14061
- const [ye, se] = M6(Y, J);
14062
- P({ x: ye, y: se }), b = requestAnimationFrame(de);
14061
+ const [Pe, se] = M6(Y, J);
14062
+ P({ x: Pe, y: se }), b = requestAnimationFrame(de);
14063
14063
  };
14064
14064
  s({
14065
14065
  connectionPosition: Y,
@@ -14075,10 +14075,10 @@ function Y6({ event: r, handleId: e, nodeId: n, onConnect: t, isTarget: o, getSt
14075
14075
  },
14076
14076
  connectionEndHandle: null
14077
14077
  }), y == null || y(r, { nodeId: n, handleId: e, handleType: z });
14078
- function Ee(ye) {
14078
+ function Ee(Pe) {
14079
14079
  const { transform: se } = i();
14080
- Y = Io(ye, J);
14081
- const { handle: Ie, validHandleResult: De } = lw(ye, u, $d(Y, se, !1, [1, 1]), h, re, (ke) => q6(ke, S, n, e, o ? "target" : "source", a, u));
14080
+ Y = Io(Pe, J);
14081
+ const { handle: Ie, validHandleResult: De } = lw(Pe, u, $d(Y, se, !1, [1, 1]), h, re, (ke) => q6(ke, S, n, e, o ? "target" : "source", a, u));
14082
14082
  if (w = Ie, K || (de(), K = !0), q = De.handleDomNode, le = De.connection, U = De.isValid, s({
14083
14083
  connectionPosition: w && U ? W6({
14084
14084
  x: w.x,
@@ -14090,9 +14090,9 @@ function Y6({ event: r, handleId: e, nodeId: n, onConnect: t, isTarget: o, getSt
14090
14090
  return Cu(F);
14091
14091
  le.source !== le.target && q && (Cu(F), F = q, q.classList.add("connecting", "react-flow__handle-connecting"), q.classList.toggle("valid", U), q.classList.toggle("react-flow__handle-valid", U));
14092
14092
  }
14093
- function ce(ye) {
14093
+ function ce(Pe) {
14094
14094
  var se, Ie;
14095
- (w || q) && le && U && (t == null || t(le)), (Ie = (se = i()).onConnectEnd) == null || Ie.call(se, ye), l && (p == null || p(ye)), Cu(F), C(), cancelAnimationFrame(b), K = !1, U = !1, le = null, q = null, u.removeEventListener("mousemove", Ee), u.removeEventListener("mouseup", ce), u.removeEventListener("touchmove", Ee), u.removeEventListener("touchend", ce);
14095
+ (w || q) && le && U && (t == null || t(le)), (Ie = (se = i()).onConnectEnd) == null || Ie.call(se, Pe), l && (p == null || p(Pe)), Cu(F), C(), cancelAnimationFrame(b), K = !1, U = !1, le = null, q = null, u.removeEventListener("mousemove", Ee), u.removeEventListener("mouseup", ce), u.removeEventListener("touchmove", Ee), u.removeEventListener("touchend", ce);
14096
14096
  }
14097
14097
  u.addEventListener("mousemove", Ee), u.addEventListener("mouseup", ce), u.addEventListener("touchmove", Ee), u.addEventListener("touchend", ce);
14098
14098
  }
@@ -14142,12 +14142,12 @@ const q5 = () => !0, uw = (r) => ({
14142
14142
  K == null || K(Y, { nodeId: v, handleId: h, handleType: r }), P.setState({ connectionClickStartHandle: { nodeId: v, type: r, handleId: h } });
14143
14143
  return;
14144
14144
  }
14145
- const de = w6(Y.target), Ee = n || re || q5, { connection: ce, isValid: ye } = q6({
14145
+ const de = w6(Y.target), Ee = n || re || q5, { connection: ce, isValid: Pe } = q6({
14146
14146
  nodeId: v,
14147
14147
  id: h,
14148
14148
  type: r
14149
14149
  }, q, U.nodeId, U.handleId || null, U.type, Ee, de);
14150
- ye && D(ce), le == null || le(Y), P.setState({ connectionClickStartHandle: null });
14150
+ Pe && D(ce), le == null || le(Y), P.setState({ connectionClickStartHandle: null });
14151
14151
  };
14152
14152
  return ie.createElement("div", { "data-handleid": h, "data-nodeid": v, "data-handlepos": e, "data-id": `${v}-${h}-${r}`, className: Ar([
14153
14153
  "react-flow__handle",
@@ -14236,14 +14236,14 @@ function Bt(r, e, n) {
14236
14236
  typeof e < "u" && n({ [r]: e });
14237
14237
  }, [e]);
14238
14238
  }
14239
- const Ow = ({ nodes: r, edges: e, defaultNodes: n, defaultEdges: t, onConnect: o, onConnectStart: i, onConnectEnd: s, onClickConnectStart: a, onClickConnectEnd: l, nodesDraggable: p, nodesConnectable: u, nodesFocusable: S, edgesFocusable: O, edgesUpdatable: x, elevateNodesOnSelect: h, minZoom: y, maxZoom: P, nodeExtent: v, onNodesChange: C, onEdgesChange: b, elementsSelectable: w, connectionMode: G, snapGrid: D, snapToGrid: H, translateExtent: z, connectOnClick: J, defaultEdgeOptions: F, fitView: Y, fitViewOptions: K, onNodesDelete: le, onEdgesDelete: U, onNodeDrag: q, onNodeDragStart: re, onNodeDragStop: de, onSelectionDrag: Ee, onSelectionDragStart: ce, onSelectionDragStop: ye, noPanClassName: se, nodeOrigin: Ie, rfId: De, autoPanOnConnect: ke, autoPanOnNodeDrag: Ze, onError: nt, connectionRadius: me, isValidConnection: ge, nodeDragThreshold: je }) => {
14240
- const { setNodes: Fe, setEdges: te, setDefaultNodesAndEdges: Ce, setMinZoom: ve, setMaxZoom: Je, setTranslateExtent: rt, setNodeExtent: dt, reset: Qe } = pn(Sw, Jn), Xe = Zn();
14239
+ const Ow = ({ nodes: r, edges: e, defaultNodes: n, defaultEdges: t, onConnect: o, onConnectStart: i, onConnectEnd: s, onClickConnectStart: a, onClickConnectEnd: l, nodesDraggable: p, nodesConnectable: u, nodesFocusable: S, edgesFocusable: O, edgesUpdatable: x, elevateNodesOnSelect: h, minZoom: y, maxZoom: P, nodeExtent: v, onNodesChange: C, onEdgesChange: b, elementsSelectable: w, connectionMode: G, snapGrid: D, snapToGrid: H, translateExtent: z, connectOnClick: J, defaultEdgeOptions: F, fitView: Y, fitViewOptions: K, onNodesDelete: le, onEdgesDelete: U, onNodeDrag: q, onNodeDragStart: re, onNodeDragStop: de, onSelectionDrag: Ee, onSelectionDragStart: ce, onSelectionDragStop: Pe, noPanClassName: se, nodeOrigin: Ie, rfId: De, autoPanOnConnect: ke, autoPanOnNodeDrag: Ze, onError: nt, connectionRadius: me, isValidConnection: ge, nodeDragThreshold: je }) => {
14240
+ const { setNodes: We, setEdges: te, setDefaultNodesAndEdges: ye, setMinZoom: ve, setMaxZoom: Je, setTranslateExtent: rt, setNodeExtent: dt, reset: Qe } = pn(Sw, Jn), Xe = Zn();
14241
14241
  return et(() => {
14242
14242
  const Yt = t == null ? void 0 : t.map((_t) => ({ ..._t, ...F }));
14243
- return Ce(n, Yt), () => {
14243
+ return ye(n, Yt), () => {
14244
14244
  Qe();
14245
14245
  };
14246
- }, []), Bt("defaultEdgeOptions", F, Xe.setState), Bt("connectionMode", G, Xe.setState), Bt("onConnect", o, Xe.setState), Bt("onConnectStart", i, Xe.setState), Bt("onConnectEnd", s, Xe.setState), Bt("onClickConnectStart", a, Xe.setState), Bt("onClickConnectEnd", l, Xe.setState), Bt("nodesDraggable", p, Xe.setState), Bt("nodesConnectable", u, Xe.setState), Bt("nodesFocusable", S, Xe.setState), Bt("edgesFocusable", O, Xe.setState), Bt("edgesUpdatable", x, Xe.setState), Bt("elementsSelectable", w, Xe.setState), Bt("elevateNodesOnSelect", h, Xe.setState), Bt("snapToGrid", H, Xe.setState), Bt("snapGrid", D, Xe.setState), Bt("onNodesChange", C, Xe.setState), Bt("onEdgesChange", b, Xe.setState), Bt("connectOnClick", J, Xe.setState), Bt("fitViewOnInit", Y, Xe.setState), Bt("fitViewOnInitOptions", K, Xe.setState), Bt("onNodesDelete", le, Xe.setState), Bt("onEdgesDelete", U, Xe.setState), Bt("onNodeDrag", q, Xe.setState), Bt("onNodeDragStart", re, Xe.setState), Bt("onNodeDragStop", de, Xe.setState), Bt("onSelectionDrag", Ee, Xe.setState), Bt("onSelectionDragStart", ce, Xe.setState), Bt("onSelectionDragStop", ye, Xe.setState), Bt("noPanClassName", se, Xe.setState), Bt("nodeOrigin", Ie, Xe.setState), Bt("rfId", De, Xe.setState), Bt("autoPanOnConnect", ke, Xe.setState), Bt("autoPanOnNodeDrag", Ze, Xe.setState), Bt("onError", nt, Xe.setState), Bt("connectionRadius", me, Xe.setState), Bt("isValidConnection", ge, Xe.setState), Bt("nodeDragThreshold", je, Xe.setState), Bi(r, Fe), Bi(e, te), Bi(y, ve), Bi(P, Je), Bi(z, rt), Bi(v, dt), null;
14246
+ }, []), Bt("defaultEdgeOptions", F, Xe.setState), Bt("connectionMode", G, Xe.setState), Bt("onConnect", o, Xe.setState), Bt("onConnectStart", i, Xe.setState), Bt("onConnectEnd", s, Xe.setState), Bt("onClickConnectStart", a, Xe.setState), Bt("onClickConnectEnd", l, Xe.setState), Bt("nodesDraggable", p, Xe.setState), Bt("nodesConnectable", u, Xe.setState), Bt("nodesFocusable", S, Xe.setState), Bt("edgesFocusable", O, Xe.setState), Bt("edgesUpdatable", x, Xe.setState), Bt("elementsSelectable", w, Xe.setState), Bt("elevateNodesOnSelect", h, Xe.setState), Bt("snapToGrid", H, Xe.setState), Bt("snapGrid", D, Xe.setState), Bt("onNodesChange", C, Xe.setState), Bt("onEdgesChange", b, Xe.setState), Bt("connectOnClick", J, Xe.setState), Bt("fitViewOnInit", Y, Xe.setState), Bt("fitViewOnInitOptions", K, Xe.setState), Bt("onNodesDelete", le, Xe.setState), Bt("onEdgesDelete", U, Xe.setState), Bt("onNodeDrag", q, Xe.setState), Bt("onNodeDragStart", re, Xe.setState), Bt("onNodeDragStop", de, Xe.setState), Bt("onSelectionDrag", Ee, Xe.setState), Bt("onSelectionDragStart", ce, Xe.setState), Bt("onSelectionDragStop", Pe, Xe.setState), Bt("noPanClassName", se, Xe.setState), Bt("nodeOrigin", Ie, Xe.setState), Bt("rfId", De, Xe.setState), Bt("autoPanOnConnect", ke, Xe.setState), Bt("autoPanOnNodeDrag", Ze, Xe.setState), Bt("onError", nt, Xe.setState), Bt("connectionRadius", me, Xe.setState), Bt("isValidConnection", ge, Xe.setState), Bt("nodeDragThreshold", je, Xe.setState), Bi(r, We), Bi(e, te), Bi(y, ve), Bi(P, Je), Bi(z, rt), Bi(v, dt), null;
14247
14247
  }, Y5 = { display: "none" }, xw = {
14248
14248
  position: "absolute",
14249
14249
  width: 1,
@@ -14521,7 +14521,7 @@ function $f() {
14521
14521
  };
14522
14522
  }, []), S = qt(({ nodes: y, edges: P }) => {
14523
14523
  const { nodeInternals: v, getNodes: C, edges: b, hasDefaultNodes: w, hasDefaultEdges: G, onNodesDelete: D, onEdgesDelete: H, onNodesChange: z, onEdgesChange: J } = e.getState(), F = (y || []).map((q) => q.id), Y = (P || []).map((q) => q.id), K = C().reduce((q, re) => {
14524
- const de = re.parentNode || re.parentId, Ee = !F.includes(re.id) && de && q.find((ye) => ye.id === de);
14524
+ const de = re.parentNode || re.parentId, Ee = !F.includes(re.id) && de && q.find((Pe) => Pe.id === de);
14525
14525
  return (typeof re.deletable == "boolean" ? re.deletable : !0) && (F.includes(re.id) || Ee) && q.push(re), q;
14526
14526
  }, []), le = b.filter((q) => typeof q.deletable == "boolean" ? q.deletable : !0), U = le.filter((q) => Y.includes(q.id));
14527
14527
  if (K || U) {
@@ -14638,12 +14638,12 @@ const z4 = {
14638
14638
  const G = lt(), D = Zn(), H = lt(!1), z = lt(!1), J = lt(null), F = lt({ x: 0, y: 0, zoom: 0 }), { d3Zoom: Y, d3Selection: K, d3ZoomHandler: le, userSelectionActive: U } = pn(Gw, Jn), q = pl(P), re = lt(0), de = lt(!1), Ee = lt();
14639
14639
  return ww(J), et(() => {
14640
14640
  if (J.current) {
14641
- const ce = J.current.getBoundingClientRect(), ye = v6().scaleExtent([h, y]).translateExtent(x), se = u0(J.current).call(ye), Ie = bs.translate(O.x, O.y).scale(Ra(O.zoom, h, y)), De = [
14641
+ const ce = J.current.getBoundingClientRect(), Pe = v6().scaleExtent([h, y]).translateExtent(x), se = u0(J.current).call(Pe), Ie = bs.translate(O.x, O.y).scale(Ra(O.zoom, h, y)), De = [
14642
14642
  [0, 0],
14643
14643
  [ce.width, ce.height]
14644
- ], ke = ye.constrain()(Ie, De, x);
14645
- ye.transform(se, ke), ye.wheelDelta(_5), D.setState({
14646
- d3Zoom: ye,
14644
+ ], ke = Pe.constrain()(Ie, De, x);
14645
+ Pe.transform(se, ke), Pe.wheelDelta(_5), D.setState({
14646
+ d3Zoom: Pe,
14647
14647
  d3Selection: se,
14648
14648
  d3ZoomHandler: se.on("wheel.zoom"),
14649
14649
  // we need to pass transform because zoom handler is not registered when we set the initial transform
@@ -14656,18 +14656,18 @@ const z4 = {
14656
14656
  if (Ui(ce, b))
14657
14657
  return !1;
14658
14658
  ce.preventDefault(), ce.stopImmediatePropagation();
14659
- const ye = K.property("__zoom").k || 1;
14659
+ const Pe = K.property("__zoom").k || 1;
14660
14660
  if (ce.ctrlKey && i) {
14661
- const ge = w0(ce), je = _5(ce), Fe = ye * Math.pow(2, je);
14662
- Y.scaleTo(K, Fe, ge, ce);
14661
+ const ge = w0(ce), je = _5(ce), We = Pe * Math.pow(2, je);
14662
+ Y.scaleTo(K, We, ge, ce);
14663
14663
  return;
14664
14664
  }
14665
14665
  const se = ce.deltaMode === 1 ? 20 : 1;
14666
14666
  let Ie = l === _o.Vertical ? 0 : ce.deltaX * se, De = l === _o.Horizontal ? 0 : ce.deltaY * se;
14667
14667
  !Cc() && ce.shiftKey && l !== _o.Vertical && (Ie = ce.deltaY * se, De = 0), Y.translateBy(
14668
14668
  K,
14669
- -(Ie / ye) * a,
14670
- -(De / ye) * a,
14669
+ -(Ie / Pe) * a,
14670
+ -(De / Pe) * a,
14671
14671
  // @ts-ignore
14672
14672
  { internal: !0 }
14673
14673
  );
@@ -14675,10 +14675,10 @@ const z4 = {
14675
14675
  clearTimeout(Ee.current), de.current || (de.current = !0, e == null || e(ce, ke), Ze == null || Ze(ke)), de.current && (r == null || r(ce, ke), nt == null || nt(ke), Ee.current = setTimeout(() => {
14676
14676
  n == null || n(ce, ke), me == null || me(ke), de.current = !1;
14677
14677
  }, 150));
14678
- }, { passive: !1 }) : typeof le < "u" && K.on("wheel.zoom", function(ce, ye) {
14678
+ }, { passive: !1 }) : typeof le < "u" && K.on("wheel.zoom", function(ce, Pe) {
14679
14679
  if (!v && ce.type === "wheel" && !ce.ctrlKey || Ui(ce, b))
14680
14680
  return null;
14681
- ce.preventDefault(), le.call(this, ce, ye);
14681
+ ce.preventDefault(), le.call(this, ce, Pe);
14682
14682
  }, { passive: !1 }));
14683
14683
  }, [
14684
14684
  U,
@@ -14700,36 +14700,36 @@ const z4 = {
14700
14700
  if (!ce.sourceEvent || ce.sourceEvent.internal)
14701
14701
  return null;
14702
14702
  re.current = (Ie = ce.sourceEvent) == null ? void 0 : Ie.button;
14703
- const { onViewportChangeStart: ye } = D.getState(), se = mA(ce.transform);
14704
- H.current = !0, F.current = se, ((De = ce.sourceEvent) == null ? void 0 : De.type) === "mousedown" && D.setState({ paneDragging: !0 }), ye == null || ye(se), e == null || e(ce.sourceEvent, se);
14703
+ const { onViewportChangeStart: Pe } = D.getState(), se = mA(ce.transform);
14704
+ H.current = !0, F.current = se, ((De = ce.sourceEvent) == null ? void 0 : De.type) === "mousedown" && D.setState({ paneDragging: !0 }), Pe == null || Pe(se), e == null || e(ce.sourceEvent, se);
14705
14705
  });
14706
14706
  }, [Y, e]), et(() => {
14707
14707
  Y && (U && !H.current ? Y.on("zoom", null) : U || Y.on("zoom", (ce) => {
14708
14708
  var se;
14709
- const { onViewportChange: ye } = D.getState();
14710
- if (D.setState({ transform: [ce.transform.x, ce.transform.y, ce.transform.k] }), z.current = !!(t && Q5(S, re.current ?? 0)), (r || ye) && !((se = ce.sourceEvent) != null && se.internal)) {
14709
+ const { onViewportChange: Pe } = D.getState();
14710
+ if (D.setState({ transform: [ce.transform.x, ce.transform.y, ce.transform.k] }), z.current = !!(t && Q5(S, re.current ?? 0)), (r || Pe) && !((se = ce.sourceEvent) != null && se.internal)) {
14711
14711
  const Ie = mA(ce.transform);
14712
- ye == null || ye(Ie), r == null || r(ce.sourceEvent, Ie);
14712
+ Pe == null || Pe(Ie), r == null || r(ce.sourceEvent, Ie);
14713
14713
  }
14714
14714
  }));
14715
14715
  }, [U, Y, r, S, t]), et(() => {
14716
14716
  Y && Y.on("end", (ce) => {
14717
14717
  if (!ce.sourceEvent || ce.sourceEvent.internal)
14718
14718
  return null;
14719
- const { onViewportChangeEnd: ye } = D.getState();
14720
- if (H.current = !1, D.setState({ paneDragging: !1 }), t && Q5(S, re.current ?? 0) && !z.current && t(ce.sourceEvent), z.current = !1, (n || ye) && Lw(F.current, ce.transform)) {
14719
+ const { onViewportChangeEnd: Pe } = D.getState();
14720
+ if (H.current = !1, D.setState({ paneDragging: !1 }), t && Q5(S, re.current ?? 0) && !z.current && t(ce.sourceEvent), z.current = !1, (n || Pe) && Lw(F.current, ce.transform)) {
14721
14721
  const se = mA(ce.transform);
14722
14722
  F.current = se, clearTimeout(G.current), G.current = setTimeout(() => {
14723
- ye == null || ye(se), n == null || n(ce.sourceEvent, se);
14723
+ Pe == null || Pe(se), n == null || n(ce.sourceEvent, se);
14724
14724
  }, s ? 150 : 0);
14725
14725
  }
14726
14726
  });
14727
14727
  }, [Y, s, S, n, t]), et(() => {
14728
14728
  Y && Y.filter((ce) => {
14729
- const ye = q || o, se = i && ce.ctrlKey;
14729
+ const Pe = q || o, se = i && ce.ctrlKey;
14730
14730
  if ((S === !0 || Array.isArray(S) && S.includes(1)) && ce.button === 1 && ce.type === "mousedown" && (Ui(ce, "react-flow__node") || Ui(ce, "react-flow__edge")))
14731
14731
  return !0;
14732
- if (!S && !ye && !s && !p && !i || U || !p && ce.type === "dblclick" || Ui(ce, b) && ce.type === "wheel" || Ui(ce, w) && (ce.type !== "wheel" || s && ce.type === "wheel" && !q) || !i && ce.ctrlKey && ce.type === "wheel" || !ye && !s && !se && ce.type === "wheel" || !S && (ce.type === "mousedown" || ce.type === "touchstart") || Array.isArray(S) && !S.includes(ce.button) && ce.type === "mousedown")
14732
+ if (!S && !Pe && !s && !p && !i || U || !p && ce.type === "dblclick" || Ui(ce, b) && ce.type === "wheel" || Ui(ce, w) && (ce.type !== "wheel" || s && ce.type === "wheel" && !q) || !i && ce.ctrlKey && ce.type === "wheel" || !Pe && !s && !se && ce.type === "wheel" || !S && (ce.type === "mousedown" || ce.type === "touchstart") || Array.isArray(S) && !S.includes(ce.button) && ce.type === "mousedown")
14733
14733
  return !1;
14734
14734
  const Ie = Array.isArray(S) && S.includes(ce.button) || !ce.button || ce.button <= 1;
14735
14735
  return (!ce.ctrlKey || ce.type === "wheel") && Ie;
@@ -14854,7 +14854,7 @@ const mu = (r, e) => (n) => {
14854
14854
  }
14855
14855
  }), t == null || t(le);
14856
14856
  }, J = (le) => {
14857
- const { userSelectionRect: U, nodeInternals: q, edges: re, transform: de, onNodesChange: Ee, onEdgesChange: ce, nodeOrigin: ye, getNodes: se } = x.getState();
14857
+ const { userSelectionRect: U, nodeInternals: q, edges: re, transform: de, onNodesChange: Ee, onEdgesChange: ce, nodeOrigin: Pe, getNodes: se } = x.getState();
14858
14858
  if (!r || !P.current || !U)
14859
14859
  return;
14860
14860
  x.setState({ userSelectionActive: !0, nodesSelectionActive: !1 });
@@ -14864,16 +14864,16 @@ const mu = (r, e) => (n) => {
14864
14864
  y: Ie.y < ke ? Ie.y : ke,
14865
14865
  width: Math.abs(Ie.x - De),
14866
14866
  height: Math.abs(Ie.y - ke)
14867
- }, nt = se(), me = F6(q, Ze, de, e === Ia.Partial, !0, ye), ge = X6(me, re).map((Fe) => Fe.id), je = me.map((Fe) => Fe.id);
14867
+ }, nt = se(), me = F6(q, Ze, de, e === Ia.Partial, !0, Pe), ge = X6(me, re).map((We) => We.id), je = me.map((We) => We.id);
14868
14868
  if (h.current !== je.length) {
14869
14869
  h.current = je.length;
14870
- const Fe = $i(nt, je);
14871
- Fe.length && (Ee == null || Ee(Fe));
14870
+ const We = $i(nt, je);
14871
+ We.length && (Ee == null || Ee(We));
14872
14872
  }
14873
14873
  if (y.current !== ge.length) {
14874
14874
  y.current = ge.length;
14875
- const Fe = $i(re, ge);
14876
- Fe.length && (ce == null || ce(Fe));
14875
+ const We = $i(re, ge);
14876
+ We.length && (ce == null || ce(We));
14877
14877
  }
14878
14878
  x.setState({
14879
14879
  userSelectionRect: Ze
@@ -15044,10 +15044,10 @@ function ux({ nodeRef: r, disabled: e = !1, noDragClassName: n, handleSelector:
15044
15044
  const w = u0(r.current), G = ({ x: z, y: J }) => {
15045
15045
  const { nodeInternals: F, onNodeDrag: Y, onSelectionDrag: K, updateNodePositions: le, nodeExtent: U, snapGrid: q, snapToGrid: re, nodeOrigin: de, onError: Ee } = a.getState();
15046
15046
  S.current = { x: z, y: J };
15047
- let ce = !1, ye = { x: 0, y: 0, x2: 0, y2: 0 };
15047
+ let ce = !1, Pe = { x: 0, y: 0, x2: 0, y2: 0 };
15048
15048
  if (u.current.length > 1 && U) {
15049
15049
  const Ie = _f(u.current, de);
15050
- ye = hl(Ie);
15050
+ Pe = hl(Ie);
15051
15051
  }
15052
15052
  if (u.current = u.current.map((Ie) => {
15053
15053
  const De = { x: z - Ie.distance.x, y: J - Ie.distance.y };
@@ -15056,7 +15056,7 @@ function ux({ nodeRef: r, disabled: e = !1, noDragClassName: n, handleSelector:
15056
15056
  [U[0][0], U[0][1]],
15057
15057
  [U[1][0], U[1][1]]
15058
15058
  ];
15059
- u.current.length > 1 && U && !Ie.extent && (ke[0][0] = Ie.positionAbsolute.x - ye.x + U[0][0], ke[1][0] = Ie.positionAbsolute.x + (Ie.width ?? 0) - ye.x2 + U[1][0], ke[0][1] = Ie.positionAbsolute.y - ye.y + U[0][1], ke[1][1] = Ie.positionAbsolute.y + (Ie.height ?? 0) - ye.y2 + U[1][1]);
15059
+ u.current.length > 1 && U && !Ie.extent && (ke[0][0] = Ie.positionAbsolute.x - Pe.x + U[0][0], ke[1][0] = Ie.positionAbsolute.x + (Ie.width ?? 0) - Pe.x2 + U[1][0], ke[0][1] = Ie.positionAbsolute.y - Pe.y + U[0][1], ke[1][1] = Ie.positionAbsolute.y + (Ie.height ?? 0) - Pe.y2 + U[1][1]);
15060
15060
  const Ze = fx(Ie, De, F, ke, de, Ee);
15061
15061
  return ce = ce || Ie.position.x !== Ze.position.x || Ie.position.y !== Ze.position.y, Ie.position = Ze.position, Ie.positionAbsolute = Ze.positionAbsolute, Ie;
15062
15062
  }), !ce)
@@ -15173,8 +15173,8 @@ const ha = {
15173
15173
  ArrowRight: { x: 1, y: 0 }
15174
15174
  };
15175
15175
  var R1 = (r) => {
15176
- const e = ({ id: n, type: t, data: o, xPos: i, yPos: s, xPosOrigin: a, yPosOrigin: l, selected: p, onClick: u, onMouseEnter: S, onMouseMove: O, onMouseLeave: x, onContextMenu: h, onDoubleClick: y, style: P, className: v, isDraggable: C, isSelectable: b, isConnectable: w, isFocusable: G, selectNodesOnDrag: D, sourcePosition: H, targetPosition: z, hidden: J, resizeObserver: F, dragHandle: Y, zIndex: K, isParent: le, noDragClassName: U, noPanClassName: q, initialized: re, disableKeyboardA11y: de, ariaLabel: Ee, rfId: ce, hasHandleBounds: ye }) => {
15177
- const se = Zn(), Ie = lt(null), De = lt(null), ke = lt(H), Ze = lt(z), nt = lt(t), me = b || C || u || S || O || x, ge = dx(), je = g1(n, se.getState, S), Fe = g1(n, se.getState, O), te = g1(n, se.getState, x), Ce = g1(n, se.getState, h), ve = g1(n, se.getState, y), Je = (Qe) => {
15176
+ const e = ({ id: n, type: t, data: o, xPos: i, yPos: s, xPosOrigin: a, yPosOrigin: l, selected: p, onClick: u, onMouseEnter: S, onMouseMove: O, onMouseLeave: x, onContextMenu: h, onDoubleClick: y, style: P, className: v, isDraggable: C, isSelectable: b, isConnectable: w, isFocusable: G, selectNodesOnDrag: D, sourcePosition: H, targetPosition: z, hidden: J, resizeObserver: F, dragHandle: Y, zIndex: K, isParent: le, noDragClassName: U, noPanClassName: q, initialized: re, disableKeyboardA11y: de, ariaLabel: Ee, rfId: ce, hasHandleBounds: Pe }) => {
15177
+ const se = Zn(), Ie = lt(null), De = lt(null), ke = lt(H), Ze = lt(z), nt = lt(t), me = b || C || u || S || O || x, ge = dx(), je = g1(n, se.getState, S), We = g1(n, se.getState, O), te = g1(n, se.getState, x), ye = g1(n, se.getState, h), ve = g1(n, se.getState, y), Je = (Qe) => {
15178
15178
  const { nodeDragThreshold: Xe } = se.getState();
15179
15179
  if (b && (!D || !C || Xe > 0) && th({
15180
15180
  id: n,
@@ -15207,9 +15207,9 @@ var R1 = (r) => {
15207
15207
  }, []), et(() => {
15208
15208
  if (Ie.current && !J) {
15209
15209
  const Qe = Ie.current;
15210
- (!re || !ye || De.current !== Qe) && (De.current && (F == null || F.unobserve(De.current)), F == null || F.observe(Qe), De.current = Qe);
15210
+ (!re || !Pe || De.current !== Qe) && (De.current && (F == null || F.unobserve(De.current)), F == null || F.observe(Qe), De.current = Qe);
15211
15211
  }
15212
- }, [J, re, ye]), et(() => {
15212
+ }, [J, re, Pe]), et(() => {
15213
15213
  const Qe = nt.current !== t, Xe = ke.current !== H, Yt = Ze.current !== z;
15214
15214
  Ie.current && (Qe || Xe || Yt) && (Qe && (nt.current = t), Xe && (ke.current = H), Yt && (Ze.current = z), se.getState().updateNodeDimensions([{ id: n, nodeElement: Ie.current, forceUpdate: !0 }]));
15215
15215
  }, [n, t, H, z]);
@@ -15244,7 +15244,7 @@ var R1 = (r) => {
15244
15244
  pointerEvents: me ? "all" : "none",
15245
15245
  visibility: re ? "visible" : "hidden",
15246
15246
  ...P
15247
- }, "data-id": n, "data-testid": `rf__node-${n}`, onMouseEnter: je, onMouseMove: Fe, onMouseLeave: te, onContextMenu: Ce, onClick: Je, onDoubleClick: ve, onKeyDown: G ? rt : void 0, tabIndex: G ? 0 : void 0, role: G ? "button" : void 0, "aria-describedby": de ? void 0 : `${nx}-${ce}`, "aria-label": Ee },
15247
+ }, "data-id": n, "data-testid": `rf__node-${n}`, onMouseEnter: je, onMouseMove: We, onMouseLeave: te, onContextMenu: ye, onClick: Je, onDoubleClick: ve, onKeyDown: G ? rt : void 0, tabIndex: G ? 0 : void 0, role: G ? "button" : void 0, "aria-describedby": de ? void 0 : `${nx}-${ce}`, "aria-label": Ee },
15248
15248
  ie.createElement(
15249
15249
  rw,
15250
15250
  { value: n },
@@ -15298,7 +15298,7 @@ function Fw({ onSelectionContextMenu: r, noPanClassName: e, disableKeyboardA11y:
15298
15298
  }
15299
15299
  var Xw = Jt(Fw);
15300
15300
  const Vw = (r) => r.nodesSelectionActive, hx = ({ children: r, onPaneClick: e, onPaneMouseEnter: n, onPaneMouseMove: t, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: s, deleteKeyCode: a, onMove: l, onMoveStart: p, onMoveEnd: u, selectionKeyCode: S, selectionOnDrag: O, selectionMode: x, onSelectionStart: h, onSelectionEnd: y, multiSelectionKeyCode: P, panActivationKeyCode: v, zoomActivationKeyCode: C, elementsSelectable: b, zoomOnScroll: w, zoomOnPinch: G, panOnScroll: D, panOnScrollSpeed: H, panOnScrollMode: z, zoomOnDoubleClick: J, panOnDrag: F, defaultViewport: Y, translateExtent: K, minZoom: le, maxZoom: U, preventScrolling: q, onSelectionContextMenu: re, noWheelClassName: de, noPanClassName: Ee, disableKeyboardA11y: ce }) => {
15301
- const ye = pn(Vw), se = pl(S), Ie = pl(v), De = Ie || F, ke = Ie || D, Ze = se || O && De !== !0;
15301
+ const Pe = pn(Vw), se = pl(S), Ie = pl(v), De = Ie || F, ke = Ie || D, Ze = se || O && De !== !0;
15302
15302
  return Mw({ deleteKeyCode: a, multiSelectionKeyCode: P }), ie.createElement(
15303
15303
  Dw,
15304
15304
  { onMove: l, onMoveStart: p, onMoveEnd: u, onPaneContextMenu: i, elementsSelectable: b, zoomOnScroll: w, zoomOnPinch: G, panOnScroll: ke, panOnScrollSpeed: H, panOnScrollMode: z, zoomOnDoubleClick: J, panOnDrag: !se && De, defaultViewport: Y, translateExtent: K, minZoom: le, maxZoom: U, zoomActivationKeyCode: C, preventScrolling: q, noWheelClassName: de, noPanClassName: Ee },
@@ -15306,7 +15306,7 @@ const Vw = (r) => r.nodesSelectionActive, hx = ({ children: r, onPaneClick: e, o
15306
15306
  Ax,
15307
15307
  { onSelectionStart: h, onSelectionEnd: y, onPaneClick: e, onPaneMouseEnter: n, onPaneMouseMove: t, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: s, panOnDrag: De, isSelecting: !!Ze, selectionMode: x },
15308
15308
  r,
15309
- ye && ie.createElement(Xw, { onSelectionContextMenu: re, noPanClassName: Ee, disableKeyboardA11y: ce })
15309
+ Pe && ie.createElement(Xw, { onSelectionContextMenu: re, noPanClassName: Ee, disableKeyboardA11y: ce })
15310
15310
  )
15311
15311
  );
15312
15312
  };
@@ -15372,21 +15372,21 @@ px.displayName = "NodeRenderer";
15372
15372
  var Qw = Jt(px);
15373
15373
  const _w = (r, e, n) => n === ct.Left ? r - e : n === ct.Right ? r + e : r, $w = (r, e, n) => n === ct.Top ? r - e : n === ct.Bottom ? r + e : r, nT = "react-flow__edgeupdater", rT = ({ position: r, centerX: e, centerY: n, radius: t = 10, onMouseDown: o, onMouseEnter: i, onMouseOut: s, type: a }) => ie.createElement("circle", { onMouseDown: o, onMouseEnter: i, onMouseOut: s, className: Ar([nT, `${nT}-${a}`]), cx: _w(e, t, r), cy: $w(n, t, r), r: t, stroke: "transparent", fill: "transparent" }), eL = () => !0;
15374
15374
  var Wi = (r) => {
15375
- const e = ({ id: n, className: t, type: o, data: i, onClick: s, onEdgeDoubleClick: a, selected: l, animated: p, label: u, labelStyle: S, labelShowBg: O, labelBgStyle: x, labelBgPadding: h, labelBgBorderRadius: y, style: P, source: v, target: C, sourceX: b, sourceY: w, targetX: G, targetY: D, sourcePosition: H, targetPosition: z, elementsSelectable: J, hidden: F, sourceHandleId: Y, targetHandleId: K, onContextMenu: le, onMouseEnter: U, onMouseMove: q, onMouseLeave: re, reconnectRadius: de, onReconnect: Ee, onReconnectStart: ce, onReconnectEnd: ye, markerEnd: se, markerStart: Ie, rfId: De, ariaLabel: ke, isFocusable: Ze, isReconnectable: nt, pathOptions: me, interactionWidth: ge, disableKeyboardA11y: je }) => {
15376
- const Fe = lt(null), [te, Ce] = it(!1), [ve, Je] = it(!1), rt = Zn(), dt = en(() => `url('#${_d(Ie, De)}')`, [Ie, De]), Qe = en(() => `url('#${_d(se, De)}')`, [se, De]);
15375
+ const e = ({ id: n, className: t, type: o, data: i, onClick: s, onEdgeDoubleClick: a, selected: l, animated: p, label: u, labelStyle: S, labelShowBg: O, labelBgStyle: x, labelBgPadding: h, labelBgBorderRadius: y, style: P, source: v, target: C, sourceX: b, sourceY: w, targetX: G, targetY: D, sourcePosition: H, targetPosition: z, elementsSelectable: J, hidden: F, sourceHandleId: Y, targetHandleId: K, onContextMenu: le, onMouseEnter: U, onMouseMove: q, onMouseLeave: re, reconnectRadius: de, onReconnect: Ee, onReconnectStart: ce, onReconnectEnd: Pe, markerEnd: se, markerStart: Ie, rfId: De, ariaLabel: ke, isFocusable: Ze, isReconnectable: nt, pathOptions: me, interactionWidth: ge, disableKeyboardA11y: je }) => {
15376
+ const We = lt(null), [te, ye] = it(!1), [ve, Je] = it(!1), rt = Zn(), dt = en(() => `url('#${_d(Ie, De)}')`, [Ie, De]), Qe = en(() => `url('#${_d(se, De)}')`, [se, De]);
15377
15377
  if (F)
15378
15378
  return null;
15379
15379
  const Xe = (Ln) => {
15380
15380
  var i0;
15381
15381
  const { edges: Rr, addSelectedEdges: ds, unselectNodesAndEdges: hs, multiSelectionActive: ps } = rt.getState(), Vr = Rr.find((Go) => Go.id === n);
15382
- Vr && (J && (rt.setState({ nodesSelectionActive: !1 }), Vr.selected && ps ? (hs({ nodes: [], edges: [Vr] }), (i0 = Fe.current) == null || i0.blur()) : ds([n])), s && s(Ln, Vr));
15383
- }, Yt = x1(n, rt.getState, a), _t = x1(n, rt.getState, le), Un = x1(n, rt.getState, U), Xr = x1(n, rt.getState, q), br = x1(n, rt.getState, re), Cn = (Ln, Rr) => {
15382
+ Vr && (J && (rt.setState({ nodesSelectionActive: !1 }), Vr.selected && ps ? (hs({ nodes: [], edges: [Vr] }), (i0 = We.current) == null || i0.blur()) : ds([n])), s && s(Ln, Vr));
15383
+ }, Yt = x1(n, rt.getState, a), _t = x1(n, rt.getState, le), Un = x1(n, rt.getState, U), Xr = x1(n, rt.getState, q), Mr = x1(n, rt.getState, re), Cn = (Ln, Rr) => {
15384
15384
  if (Ln.button !== 0)
15385
15385
  return;
15386
15386
  const { edges: ds, isValidConnection: hs } = rt.getState(), ps = Rr ? C : v, Vr = (Rr ? K : Y) || null, i0 = Rr ? "target" : "source", Go = hs || eL, He = Rr, Do = ds.find((Ts) => Ts.id === n);
15387
15387
  Je(!0), ce == null || ce(Ln, Do, i0);
15388
15388
  const Ci = (Ts) => {
15389
- Je(!1), ye == null || ye(Ts, Do, i0);
15389
+ Je(!1), Pe == null || Pe(Ts, Do, i0);
15390
15390
  };
15391
15391
  Y6({
15392
15392
  event: Ln,
@@ -15400,11 +15400,11 @@ var Wi = (r) => {
15400
15400
  edgeUpdaterType: i0,
15401
15401
  onReconnectEnd: Ci
15402
15402
  });
15403
- }, Kn = (Ln) => Cn(Ln, !0), r0 = (Ln) => Cn(Ln, !1), s0 = () => Ce(!0), o0 = () => Ce(!1), I0 = !J && !s, us = (Ln) => {
15403
+ }, Kn = (Ln) => Cn(Ln, !0), r0 = (Ln) => Cn(Ln, !1), s0 = () => ye(!0), o0 = () => ye(!1), I0 = !J && !s, us = (Ln) => {
15404
15404
  var Rr;
15405
15405
  if (!je && D6.includes(Ln.key) && J) {
15406
15406
  const { unselectNodesAndEdges: ds, addSelectedEdges: hs, edges: ps } = rt.getState();
15407
- Ln.key === "Escape" ? ((Rr = Fe.current) == null || Rr.blur(), ds({ edges: [ps.find((i0) => i0.id === n)] })) : hs([n]);
15407
+ Ln.key === "Escape" ? ((Rr = We.current) == null || Rr.blur(), ds({ edges: [ps.find((i0) => i0.id === n)] })) : hs([n]);
15408
15408
  }
15409
15409
  };
15410
15410
  return ie.createElement(
@@ -15414,7 +15414,7 @@ var Wi = (r) => {
15414
15414
  `react-flow__edge-${o}`,
15415
15415
  t,
15416
15416
  { selected: l, animated: p, inactive: I0, updating: te }
15417
- ]), onClick: Xe, onDoubleClick: Yt, onContextMenu: _t, onMouseEnter: Un, onMouseMove: Xr, onMouseLeave: br, onKeyDown: Ze ? us : void 0, tabIndex: Ze ? 0 : void 0, role: Ze ? "button" : "img", "data-testid": `rf__edge-${n}`, "aria-label": ke === null ? void 0 : ke || `Edge from ${v} to ${C}`, "aria-describedby": Ze ? `${rx}-${De}` : void 0, ref: Fe },
15417
+ ]), onClick: Xe, onDoubleClick: Yt, onContextMenu: _t, onMouseEnter: Un, onMouseMove: Xr, onMouseLeave: Mr, onKeyDown: Ze ? us : void 0, tabIndex: Ze ? 0 : void 0, role: Ze ? "button" : "img", "data-testid": `rf__edge-${n}`, "aria-label": ke === null ? void 0 : ke || `Edge from ${v} to ${C}`, "aria-describedby": Ze ? `${rx}-${De}` : void 0, ref: We },
15418
15418
  !ve && ie.createElement(r, { id: n, source: v, target: C, selected: l, animated: p, label: u, labelStyle: S, labelShowBg: O, labelBgStyle: x, labelBgPadding: h, labelBgBorderRadius: y, data: i, style: P, sourceX: b, sourceY: w, targetX: G, targetY: D, sourcePosition: H, targetPosition: z, sourceHandleId: Y, targetHandleId: K, markerStart: dt, markerEnd: Qe, pathOptions: me, interactionWidth: ge }),
15419
15419
  nt && ie.createElement(
15420
15420
  ie.Fragment,
@@ -15553,8 +15553,8 @@ const aL = ({ color: r = "none", strokeWidth: e = 1 }) => ie.createElement("poly
15553
15553
  fill: r,
15554
15554
  strokeWidth: e
15555
15555
  }, strokeLinecap: "round", strokeLinejoin: "round", points: "-5,-4 0,0 -5,4 -5,-4" }), aT = {
15556
- [kr.Arrow]: aL,
15557
- [kr.ArrowClosed]: lL
15556
+ [mr.Arrow]: aL,
15557
+ [mr.ArrowClosed]: lL
15558
15558
  };
15559
15559
  function AL(r) {
15560
15560
  const e = Zn();
@@ -15608,16 +15608,16 @@ const dL = (r) => ({
15608
15608
  { key: Y, style: { zIndex: Y }, width: G, height: D, className: "react-flow__edges react-flow__container" },
15609
15609
  le && ie.createElement(uL, { defaultColor: r, rfId: t }),
15610
15610
  ie.createElement("g", null, K.map((U) => {
15611
- const [q, re, de] = iT(z.get(U.source)), [Ee, ce, ye] = iT(z.get(U.target));
15612
- if (!de || !ye)
15611
+ const [q, re, de] = iT(z.get(U.source)), [Ee, ce, Pe] = iT(z.get(U.target));
15612
+ if (!de || !Pe)
15613
15613
  return null;
15614
15614
  let se = U.type || "default";
15615
15615
  o[se] || (J == null || J("011", W0.error011(se)), se = "default");
15616
- const Ie = o[se] || o.default, De = H === Ai.Strict ? ce.target : (ce.target ?? []).concat(ce.source ?? []), ke = oT(re.source, U.sourceHandle), Ze = oT(De, U.targetHandle), nt = (ke == null ? void 0 : ke.position) || ct.Bottom, me = (Ze == null ? void 0 : Ze.position) || ct.Top, ge = !!(U.focusable || C && typeof U.focusable > "u"), je = U.reconnectable || U.updatable, Fe = typeof O < "u" && (je || b && typeof je > "u");
15616
+ const Ie = o[se] || o.default, De = H === Ai.Strict ? ce.target : (ce.target ?? []).concat(ce.source ?? []), ke = oT(re.source, U.sourceHandle), Ze = oT(De, U.targetHandle), nt = (ke == null ? void 0 : ke.position) || ct.Bottom, me = (Ze == null ? void 0 : Ze.position) || ct.Top, ge = !!(U.focusable || C && typeof U.focusable > "u"), je = U.reconnectable || U.updatable, We = typeof O < "u" && (je || b && typeof je > "u");
15617
15617
  if (!ke || !Ze)
15618
15618
  return J == null || J("008", W0.error008(ke, U)), null;
15619
- const { sourceX: te, sourceY: Ce, targetX: ve, targetY: Je } = nL(q, ke, nt, Ee, Ze, me);
15620
- return ie.createElement(Ie, { key: U.id, id: U.id, className: Ar([U.className, i]), type: se, data: U.data, selected: !!U.selected, animated: !!U.animated, hidden: !!U.hidden, label: U.label, labelStyle: U.labelStyle, labelShowBg: U.labelShowBg, labelBgStyle: U.labelBgStyle, labelBgPadding: U.labelBgPadding, labelBgBorderRadius: U.labelBgBorderRadius, style: U.style, source: U.source, target: U.target, sourceHandleId: U.sourceHandle, targetHandleId: U.targetHandle, markerEnd: U.markerEnd, markerStart: U.markerStart, sourceX: te, sourceY: Ce, targetX: ve, targetY: Je, sourcePosition: nt, targetPosition: me, elementsSelectable: w, onContextMenu: s, onMouseEnter: a, onMouseMove: l, onMouseLeave: p, onClick: u, onEdgeDoubleClick: S, onReconnect: O, onReconnectStart: x, onReconnectEnd: h, reconnectRadius: y, rfId: t, ariaLabel: U.ariaLabel, isFocusable: ge, isReconnectable: Fe, pathOptions: "pathOptions" in U ? U.pathOptions : void 0, interactionWidth: U.interactionWidth, disableKeyboardA11y: v });
15619
+ const { sourceX: te, sourceY: ye, targetX: ve, targetY: Je } = nL(q, ke, nt, Ee, Ze, me);
15620
+ return ie.createElement(Ie, { key: U.id, id: U.id, className: Ar([U.className, i]), type: se, data: U.data, selected: !!U.selected, animated: !!U.animated, hidden: !!U.hidden, label: U.label, labelStyle: U.labelStyle, labelShowBg: U.labelShowBg, labelBgStyle: U.labelBgStyle, labelBgPadding: U.labelBgPadding, labelBgBorderRadius: U.labelBgBorderRadius, style: U.style, source: U.source, target: U.target, sourceHandleId: U.sourceHandle, targetHandleId: U.targetHandle, markerEnd: U.markerEnd, markerStart: U.markerStart, sourceX: te, sourceY: ye, targetX: ve, targetY: Je, sourcePosition: nt, targetPosition: me, elementsSelectable: w, onContextMenu: s, onMouseEnter: a, onMouseMove: l, onMouseLeave: p, onClick: u, onEdgeDoubleClick: S, onReconnect: O, onReconnectStart: x, onReconnectEnd: h, reconnectRadius: y, rfId: t, ariaLabel: U.ariaLabel, isFocusable: ge, isReconnectable: We, pathOptions: "pathOptions" in U ? U.pathOptions : void 0, interactionWidth: U.interactionWidth, disableKeyboardA11y: v });
15621
15621
  }))
15622
15622
  )),
15623
15623
  P
@@ -15704,17 +15704,17 @@ function lT(r, e) {
15704
15704
  return e(r);
15705
15705
  }, [r]);
15706
15706
  }
15707
- const Ox = ({ nodeTypes: r, edgeTypes: e, onMove: n, onMoveStart: t, onMoveEnd: o, onInit: i, onNodeClick: s, onEdgeClick: a, onNodeDoubleClick: l, onEdgeDoubleClick: p, onNodeMouseEnter: u, onNodeMouseMove: S, onNodeMouseLeave: O, onNodeContextMenu: x, onSelectionContextMenu: h, onSelectionStart: y, onSelectionEnd: P, connectionLineType: v, connectionLineStyle: C, connectionLineComponent: b, connectionLineContainerStyle: w, selectionKeyCode: G, selectionOnDrag: D, selectionMode: H, multiSelectionKeyCode: z, panActivationKeyCode: J, zoomActivationKeyCode: F, deleteKeyCode: Y, onlyRenderVisibleElements: K, elementsSelectable: le, selectNodesOnDrag: U, defaultViewport: q, translateExtent: re, minZoom: de, maxZoom: Ee, preventScrolling: ce, defaultMarkerColor: ye, zoomOnScroll: se, zoomOnPinch: Ie, panOnScroll: De, panOnScrollSpeed: ke, panOnScrollMode: Ze, zoomOnDoubleClick: nt, panOnDrag: me, onPaneClick: ge, onPaneMouseEnter: je, onPaneMouseMove: Fe, onPaneMouseLeave: te, onPaneScroll: Ce, onPaneContextMenu: ve, onEdgeContextMenu: Je, onEdgeMouseEnter: rt, onEdgeMouseMove: dt, onEdgeMouseLeave: Qe, onReconnect: Xe, onReconnectStart: Yt, onReconnectEnd: _t, reconnectRadius: Un, noDragClassName: Xr, noWheelClassName: br, noPanClassName: Cn, elevateEdgesOnSelect: Kn, disableKeyboardA11y: r0, nodeOrigin: s0, nodeExtent: o0, rfId: I0 }) => {
15707
+ const Ox = ({ nodeTypes: r, edgeTypes: e, onMove: n, onMoveStart: t, onMoveEnd: o, onInit: i, onNodeClick: s, onEdgeClick: a, onNodeDoubleClick: l, onEdgeDoubleClick: p, onNodeMouseEnter: u, onNodeMouseMove: S, onNodeMouseLeave: O, onNodeContextMenu: x, onSelectionContextMenu: h, onSelectionStart: y, onSelectionEnd: P, connectionLineType: v, connectionLineStyle: C, connectionLineComponent: b, connectionLineContainerStyle: w, selectionKeyCode: G, selectionOnDrag: D, selectionMode: H, multiSelectionKeyCode: z, panActivationKeyCode: J, zoomActivationKeyCode: F, deleteKeyCode: Y, onlyRenderVisibleElements: K, elementsSelectable: le, selectNodesOnDrag: U, defaultViewport: q, translateExtent: re, minZoom: de, maxZoom: Ee, preventScrolling: ce, defaultMarkerColor: Pe, zoomOnScroll: se, zoomOnPinch: Ie, panOnScroll: De, panOnScrollSpeed: ke, panOnScrollMode: Ze, zoomOnDoubleClick: nt, panOnDrag: me, onPaneClick: ge, onPaneMouseEnter: je, onPaneMouseMove: We, onPaneMouseLeave: te, onPaneScroll: ye, onPaneContextMenu: ve, onEdgeContextMenu: Je, onEdgeMouseEnter: rt, onEdgeMouseMove: dt, onEdgeMouseLeave: Qe, onReconnect: Xe, onReconnectStart: Yt, onReconnectEnd: _t, reconnectRadius: Un, noDragClassName: Xr, noWheelClassName: Mr, noPanClassName: Cn, elevateEdgesOnSelect: Kn, disableKeyboardA11y: r0, nodeOrigin: s0, nodeExtent: o0, rfId: I0 }) => {
15708
15708
  const us = lT(r, Yw), Ln = lT(e, tL);
15709
15709
  return EL(i), ie.createElement(
15710
15710
  Jw,
15711
- { onPaneClick: ge, onPaneMouseEnter: je, onPaneMouseMove: Fe, onPaneMouseLeave: te, onPaneContextMenu: ve, onPaneScroll: Ce, deleteKeyCode: Y, selectionKeyCode: G, selectionOnDrag: D, selectionMode: H, onSelectionStart: y, onSelectionEnd: P, multiSelectionKeyCode: z, panActivationKeyCode: J, zoomActivationKeyCode: F, elementsSelectable: le, onMove: n, onMoveStart: t, onMoveEnd: o, zoomOnScroll: se, zoomOnPinch: Ie, zoomOnDoubleClick: nt, panOnScroll: De, panOnScrollSpeed: ke, panOnScrollMode: Ze, panOnDrag: me, defaultViewport: q, translateExtent: re, minZoom: de, maxZoom: Ee, onSelectionContextMenu: h, preventScrolling: ce, noDragClassName: Xr, noWheelClassName: br, noPanClassName: Cn, disableKeyboardA11y: r0 },
15711
+ { onPaneClick: ge, onPaneMouseEnter: je, onPaneMouseMove: We, onPaneMouseLeave: te, onPaneContextMenu: ve, onPaneScroll: ye, deleteKeyCode: Y, selectionKeyCode: G, selectionOnDrag: D, selectionMode: H, onSelectionStart: y, onSelectionEnd: P, multiSelectionKeyCode: z, panActivationKeyCode: J, zoomActivationKeyCode: F, elementsSelectable: le, onMove: n, onMoveStart: t, onMoveEnd: o, zoomOnScroll: se, zoomOnPinch: Ie, zoomOnDoubleClick: nt, panOnScroll: De, panOnScrollSpeed: ke, panOnScrollMode: Ze, panOnDrag: me, defaultViewport: q, translateExtent: re, minZoom: de, maxZoom: Ee, onSelectionContextMenu: h, preventScrolling: ce, noDragClassName: Xr, noWheelClassName: Mr, noPanClassName: Cn, disableKeyboardA11y: r0 },
15712
15712
  ie.createElement(
15713
15713
  TL,
15714
15714
  null,
15715
15715
  ie.createElement(
15716
15716
  hL,
15717
- { edgeTypes: Ln, onEdgeClick: a, onEdgeDoubleClick: p, onlyRenderVisibleElements: K, onEdgeContextMenu: Je, onEdgeMouseEnter: rt, onEdgeMouseMove: dt, onEdgeMouseLeave: Qe, onReconnect: Xe, onReconnectStart: Yt, onReconnectEnd: _t, reconnectRadius: Un, defaultMarkerColor: ye, noPanClassName: Cn, elevateEdgesOnSelect: !!Kn, disableKeyboardA11y: r0, rfId: I0 },
15717
+ { edgeTypes: Ln, onEdgeClick: a, onEdgeDoubleClick: p, onlyRenderVisibleElements: K, onEdgeContextMenu: Je, onEdgeMouseEnter: rt, onEdgeMouseMove: dt, onEdgeMouseLeave: Qe, onReconnect: Xe, onReconnectStart: Yt, onReconnectEnd: _t, reconnectRadius: Un, defaultMarkerColor: Pe, noPanClassName: Cn, elevateEdgesOnSelect: !!Kn, disableKeyboardA11y: r0, rfId: I0 },
15718
15718
  ie.createElement(xL, { style: C, type: v, component: b, containerStyle: w })
15719
15719
  ),
15720
15720
  ie.createElement("div", { className: "react-flow__edgelabel-renderer" }),
@@ -15961,7 +15961,7 @@ const IL = {
15961
15961
  overflow: "hidden",
15962
15962
  position: "relative",
15963
15963
  zIndex: 0
15964
- }, e2 = Ti(({ nodes: r, edges: e, defaultNodes: n, defaultEdges: t, className: o, nodeTypes: i = IL, edgeTypes: s = yL, onNodeClick: a, onEdgeClick: l, onInit: p, onMove: u, onMoveStart: S, onMoveEnd: O, onConnect: x, onConnectStart: h, onConnectEnd: y, onClickConnectStart: P, onClickConnectEnd: v, onNodeMouseEnter: C, onNodeMouseMove: b, onNodeMouseLeave: w, onNodeContextMenu: G, onNodeDoubleClick: D, onNodeDragStart: H, onNodeDrag: z, onNodeDragStop: J, onNodesDelete: F, onEdgesDelete: Y, onSelectionChange: K, onSelectionDragStart: le, onSelectionDrag: U, onSelectionDragStop: q, onSelectionContextMenu: re, onSelectionStart: de, onSelectionEnd: Ee, connectionMode: ce = Ai.Strict, connectionLineType: ye = To.Bezier, connectionLineStyle: se, connectionLineComponent: Ie, connectionLineContainerStyle: De, deleteKeyCode: ke = "Backspace", selectionKeyCode: Ze = "Shift", selectionOnDrag: nt = !1, selectionMode: me = Ia.Full, panActivationKeyCode: ge = "Space", multiSelectionKeyCode: je = Cc() ? "Meta" : "Control", zoomActivationKeyCode: Fe = Cc() ? "Meta" : "Control", snapToGrid: te = !1, snapGrid: Ce = CL, onlyRenderVisibleElements: ve = !1, selectNodesOnDrag: Je = !0, nodesDraggable: rt, nodesConnectable: dt, nodesFocusable: Qe, nodeOrigin: Xe = PL, edgesFocusable: Yt, edgesUpdatable: _t, elementsSelectable: Un, defaultViewport: Xr = NL, minZoom: br = 0.5, maxZoom: Cn = 2, translateExtent: Kn = nh, preventScrolling: r0 = !0, nodeExtent: s0, defaultMarkerColor: o0 = "#b1b1b7", zoomOnScroll: I0 = !0, zoomOnPinch: us = !0, panOnScroll: Ln = !1, panOnScrollSpeed: Rr = 0.5, panOnScrollMode: ds = _o.Free, zoomOnDoubleClick: hs = !0, panOnDrag: ps = !0, onPaneClick: Vr, onPaneMouseEnter: i0, onPaneMouseMove: Go, onPaneMouseLeave: He, onPaneScroll: Do, onPaneContextMenu: Ci, children: $l, onEdgeContextMenu: Ts, onEdgeDoubleClick: qa, onEdgeMouseEnter: eA, onEdgeMouseMove: tA, onEdgeMouseLeave: nA, onEdgeUpdate: Ni, onEdgeUpdateStart: Ya, onEdgeUpdateEnd: Ws, onReconnect: Ne, onReconnectStart: Me, onReconnectEnd: qe, reconnectRadius: Le = 10, edgeUpdaterRadius: f = 10, onNodesChange: j, onEdgesChange: zt, noDragClassName: Zt = "nodrag", noWheelClassName: Dn = "nowheel", noPanClassName: Pt = "nopan", fitView: Ut = !1, fitViewOptions: q0, connectOnClick: Ft = !0, attributionPosition: mt, proOptions: Mr, defaultEdgeOptions: mi, elevateNodesOnSelect: p2 = !0, elevateEdgesOnSelect: Za = !1, disableKeyboardA11y: Ir = !1, autoPanOnConnect: Fs = !0, autoPanOnNodeDrag: a0 = !0, connectionRadius: Ka = 20, isValidConnection: T2, onError: y0, style: Rt, id: V, nodeDragThreshold: ht, ...rA }, E2) => {
15964
+ }, e2 = Ti(({ nodes: r, edges: e, defaultNodes: n, defaultEdges: t, className: o, nodeTypes: i = IL, edgeTypes: s = yL, onNodeClick: a, onEdgeClick: l, onInit: p, onMove: u, onMoveStart: S, onMoveEnd: O, onConnect: x, onConnectStart: h, onConnectEnd: y, onClickConnectStart: P, onClickConnectEnd: v, onNodeMouseEnter: C, onNodeMouseMove: b, onNodeMouseLeave: w, onNodeContextMenu: G, onNodeDoubleClick: D, onNodeDragStart: H, onNodeDrag: z, onNodeDragStop: J, onNodesDelete: F, onEdgesDelete: Y, onSelectionChange: K, onSelectionDragStart: le, onSelectionDrag: U, onSelectionDragStop: q, onSelectionContextMenu: re, onSelectionStart: de, onSelectionEnd: Ee, connectionMode: ce = Ai.Strict, connectionLineType: Pe = To.Bezier, connectionLineStyle: se, connectionLineComponent: Ie, connectionLineContainerStyle: De, deleteKeyCode: ke = "Backspace", selectionKeyCode: Ze = "Shift", selectionOnDrag: nt = !1, selectionMode: me = Ia.Full, panActivationKeyCode: ge = "Space", multiSelectionKeyCode: je = Cc() ? "Meta" : "Control", zoomActivationKeyCode: We = Cc() ? "Meta" : "Control", snapToGrid: te = !1, snapGrid: ye = CL, onlyRenderVisibleElements: ve = !1, selectNodesOnDrag: Je = !0, nodesDraggable: rt, nodesConnectable: dt, nodesFocusable: Qe, nodeOrigin: Xe = PL, edgesFocusable: Yt, edgesUpdatable: _t, elementsSelectable: Un, defaultViewport: Xr = NL, minZoom: Mr = 0.5, maxZoom: Cn = 2, translateExtent: Kn = nh, preventScrolling: r0 = !0, nodeExtent: s0, defaultMarkerColor: o0 = "#b1b1b7", zoomOnScroll: I0 = !0, zoomOnPinch: us = !0, panOnScroll: Ln = !1, panOnScrollSpeed: Rr = 0.5, panOnScrollMode: ds = _o.Free, zoomOnDoubleClick: hs = !0, panOnDrag: ps = !0, onPaneClick: Vr, onPaneMouseEnter: i0, onPaneMouseMove: Go, onPaneMouseLeave: He, onPaneScroll: Do, onPaneContextMenu: Ci, children: $l, onEdgeContextMenu: Ts, onEdgeDoubleClick: qa, onEdgeMouseEnter: eA, onEdgeMouseMove: tA, onEdgeMouseLeave: nA, onEdgeUpdate: Ni, onEdgeUpdateStart: Ya, onEdgeUpdateEnd: Ws, onReconnect: Ne, onReconnectStart: Me, onReconnectEnd: qe, reconnectRadius: Le = 10, edgeUpdaterRadius: f = 10, onNodesChange: j, onEdgesChange: zt, noDragClassName: Zt = "nodrag", noWheelClassName: Dn = "nowheel", noPanClassName: Pt = "nopan", fitView: Ut = !1, fitViewOptions: q0, connectOnClick: Ft = !0, attributionPosition: mt, proOptions: wr, defaultEdgeOptions: mi, elevateNodesOnSelect: p2 = !0, elevateEdgesOnSelect: Za = !1, disableKeyboardA11y: Ir = !1, autoPanOnConnect: Fs = !0, autoPanOnNodeDrag: a0 = !0, connectionRadius: Ka = 20, isValidConnection: T2, onError: y0, style: Rt, id: V, nodeDragThreshold: ht, ...rA }, E2) => {
15965
15965
  const Qa = V || "1";
15966
15966
  return ie.createElement(
15967
15967
  "div",
@@ -15969,11 +15969,11 @@ const IL = {
15969
15969
  ie.createElement(
15970
15970
  xx,
15971
15971
  null,
15972
- ie.createElement(gL, { onInit: p, onMove: u, onMoveStart: S, onMoveEnd: O, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: C, onNodeMouseMove: b, onNodeMouseLeave: w, onNodeContextMenu: G, onNodeDoubleClick: D, nodeTypes: i, edgeTypes: s, connectionLineType: ye, connectionLineStyle: se, connectionLineComponent: Ie, connectionLineContainerStyle: De, selectionKeyCode: Ze, selectionOnDrag: nt, selectionMode: me, deleteKeyCode: ke, multiSelectionKeyCode: je, panActivationKeyCode: ge, zoomActivationKeyCode: Fe, onlyRenderVisibleElements: ve, selectNodesOnDrag: Je, defaultViewport: Xr, translateExtent: Kn, minZoom: br, maxZoom: Cn, preventScrolling: r0, zoomOnScroll: I0, zoomOnPinch: us, zoomOnDoubleClick: hs, panOnScroll: Ln, panOnScrollSpeed: Rr, panOnScrollMode: ds, panOnDrag: ps, onPaneClick: Vr, onPaneMouseEnter: i0, onPaneMouseMove: Go, onPaneMouseLeave: He, onPaneScroll: Do, onPaneContextMenu: Ci, onSelectionContextMenu: re, onSelectionStart: de, onSelectionEnd: Ee, onEdgeContextMenu: Ts, onEdgeDoubleClick: qa, onEdgeMouseEnter: eA, onEdgeMouseMove: tA, onEdgeMouseLeave: nA, onReconnect: Ne ?? Ni, onReconnectStart: Me ?? Ya, onReconnectEnd: qe ?? Ws, reconnectRadius: Le ?? f, defaultMarkerColor: o0, noDragClassName: Zt, noWheelClassName: Dn, noPanClassName: Pt, elevateEdgesOnSelect: Za, rfId: Qa, disableKeyboardA11y: Ir, nodeOrigin: Xe, nodeExtent: s0 }),
15973
- ie.createElement(Ow, { nodes: r, edges: e, defaultNodes: n, defaultEdges: t, onConnect: x, onConnectStart: h, onConnectEnd: y, onClickConnectStart: P, onClickConnectEnd: v, nodesDraggable: rt, nodesConnectable: dt, nodesFocusable: Qe, edgesFocusable: Yt, edgesUpdatable: _t, elementsSelectable: Un, elevateNodesOnSelect: p2, minZoom: br, maxZoom: Cn, nodeExtent: s0, onNodesChange: j, onEdgesChange: zt, snapToGrid: te, snapGrid: Ce, connectionMode: ce, translateExtent: Kn, connectOnClick: Ft, defaultEdgeOptions: mi, fitView: Ut, fitViewOptions: q0, onNodesDelete: F, onEdgesDelete: Y, onNodeDragStart: H, onNodeDrag: z, onNodeDragStop: J, onSelectionDrag: U, onSelectionDragStart: le, onSelectionDragStop: q, noPanClassName: Pt, nodeOrigin: Xe, rfId: Qa, autoPanOnConnect: Fs, autoPanOnNodeDrag: a0, onError: y0, connectionRadius: Ka, isValidConnection: T2, nodeDragThreshold: ht }),
15972
+ ie.createElement(gL, { onInit: p, onMove: u, onMoveStart: S, onMoveEnd: O, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: C, onNodeMouseMove: b, onNodeMouseLeave: w, onNodeContextMenu: G, onNodeDoubleClick: D, nodeTypes: i, edgeTypes: s, connectionLineType: Pe, connectionLineStyle: se, connectionLineComponent: Ie, connectionLineContainerStyle: De, selectionKeyCode: Ze, selectionOnDrag: nt, selectionMode: me, deleteKeyCode: ke, multiSelectionKeyCode: je, panActivationKeyCode: ge, zoomActivationKeyCode: We, onlyRenderVisibleElements: ve, selectNodesOnDrag: Je, defaultViewport: Xr, translateExtent: Kn, minZoom: Mr, maxZoom: Cn, preventScrolling: r0, zoomOnScroll: I0, zoomOnPinch: us, zoomOnDoubleClick: hs, panOnScroll: Ln, panOnScrollSpeed: Rr, panOnScrollMode: ds, panOnDrag: ps, onPaneClick: Vr, onPaneMouseEnter: i0, onPaneMouseMove: Go, onPaneMouseLeave: He, onPaneScroll: Do, onPaneContextMenu: Ci, onSelectionContextMenu: re, onSelectionStart: de, onSelectionEnd: Ee, onEdgeContextMenu: Ts, onEdgeDoubleClick: qa, onEdgeMouseEnter: eA, onEdgeMouseMove: tA, onEdgeMouseLeave: nA, onReconnect: Ne ?? Ni, onReconnectStart: Me ?? Ya, onReconnectEnd: qe ?? Ws, reconnectRadius: Le ?? f, defaultMarkerColor: o0, noDragClassName: Zt, noWheelClassName: Dn, noPanClassName: Pt, elevateEdgesOnSelect: Za, rfId: Qa, disableKeyboardA11y: Ir, nodeOrigin: Xe, nodeExtent: s0 }),
15973
+ ie.createElement(Ow, { nodes: r, edges: e, defaultNodes: n, defaultEdges: t, onConnect: x, onConnectStart: h, onConnectEnd: y, onClickConnectStart: P, onClickConnectEnd: v, nodesDraggable: rt, nodesConnectable: dt, nodesFocusable: Qe, edgesFocusable: Yt, edgesUpdatable: _t, elementsSelectable: Un, elevateNodesOnSelect: p2, minZoom: Mr, maxZoom: Cn, nodeExtent: s0, onNodesChange: j, onEdgesChange: zt, snapToGrid: te, snapGrid: ye, connectionMode: ce, translateExtent: Kn, connectOnClick: Ft, defaultEdgeOptions: mi, fitView: Ut, fitViewOptions: q0, onNodesDelete: F, onEdgesDelete: Y, onNodeDragStart: H, onNodeDrag: z, onNodeDragStop: J, onSelectionDrag: U, onSelectionDragStart: le, onSelectionDragStop: q, noPanClassName: Pt, nodeOrigin: Xe, rfId: Qa, autoPanOnConnect: Fs, autoPanOnNodeDrag: a0, onError: y0, connectionRadius: Ka, isValidConnection: T2, nodeDragThreshold: ht }),
15974
15974
  ie.createElement(Ew, { onSelectionChange: K }),
15975
15975
  $l,
15976
- ie.createElement(qM, { proOptions: Mr, position: mt }),
15976
+ ie.createElement(qM, { proOptions: wr, position: mt }),
15977
15977
  ie.createElement(yw, { rfId: Qa, disableKeyboardA11y: Ir })
15978
15978
  )
15979
15979
  );
@@ -16047,27 +16047,27 @@ function Ix({
16047
16047
  zoomStep: C = 10,
16048
16048
  offsetScale: b = 5
16049
16049
  }) {
16050
- const w = Zn(), G = lt(null), { boundingRect: D, viewBB: H, rfId: z } = pn(jL, Jn), J = (r == null ? void 0 : r.width) ?? HL, F = (r == null ? void 0 : r.height) ?? kL, Y = D.width / J, K = D.height / F, le = Math.max(Y, K), U = le * J, q = le * F, re = b * le, de = D.x - (U - D.width) / 2 - re, Ee = D.y - (q - D.height) / 2 - re, ce = U + re * 2, ye = q + re * 2, se = `${BL}-${z}`, Ie = lt(0);
16050
+ const w = Zn(), G = lt(null), { boundingRect: D, viewBB: H, rfId: z } = pn(jL, Jn), J = (r == null ? void 0 : r.width) ?? HL, F = (r == null ? void 0 : r.height) ?? kL, Y = D.width / J, K = D.height / F, le = Math.max(Y, K), U = le * J, q = le * F, re = b * le, de = D.x - (U - D.width) / 2 - re, Ee = D.y - (q - D.height) / 2 - re, ce = U + re * 2, Pe = q + re * 2, se = `${BL}-${z}`, Ie = lt(0);
16051
16051
  Ie.current = le, et(() => {
16052
16052
  if (G.current) {
16053
16053
  const Ze = u0(G.current), nt = (je) => {
16054
- const { transform: Fe, d3Selection: te, d3Zoom: Ce } = w.getState();
16055
- if (je.sourceEvent.type !== "wheel" || !te || !Ce)
16054
+ const { transform: We, d3Selection: te, d3Zoom: ye } = w.getState();
16055
+ if (je.sourceEvent.type !== "wheel" || !te || !ye)
16056
16056
  return;
16057
- const ve = -je.sourceEvent.deltaY * (je.sourceEvent.deltaMode === 1 ? 0.05 : je.sourceEvent.deltaMode ? 1 : 2e-3) * C, Je = Fe[2] * Math.pow(2, ve);
16058
- Ce.scaleTo(te, Je);
16057
+ const ve = -je.sourceEvent.deltaY * (je.sourceEvent.deltaMode === 1 ? 0.05 : je.sourceEvent.deltaMode ? 1 : 2e-3) * C, Je = We[2] * Math.pow(2, ve);
16058
+ ye.scaleTo(te, Je);
16059
16059
  }, me = (je) => {
16060
- const { transform: Fe, d3Selection: te, d3Zoom: Ce, translateExtent: ve, width: Je, height: rt } = w.getState();
16061
- if (je.sourceEvent.type !== "mousemove" || !te || !Ce)
16060
+ const { transform: We, d3Selection: te, d3Zoom: ye, translateExtent: ve, width: Je, height: rt } = w.getState();
16061
+ if (je.sourceEvent.type !== "mousemove" || !te || !ye)
16062
16062
  return;
16063
- const dt = Ie.current * Math.max(1, Fe[2]) * (v ? -1 : 1), Qe = {
16064
- x: Fe[0] - je.sourceEvent.movementX * dt,
16065
- y: Fe[1] - je.sourceEvent.movementY * dt
16063
+ const dt = Ie.current * Math.max(1, We[2]) * (v ? -1 : 1), Qe = {
16064
+ x: We[0] - je.sourceEvent.movementX * dt,
16065
+ y: We[1] - je.sourceEvent.movementY * dt
16066
16066
  }, Xe = [
16067
16067
  [0, 0],
16068
16068
  [Je, rt]
16069
- ], Yt = bs.translate(Qe.x, Qe.y).scale(Fe[2]), _t = Ce.constrain()(Yt, Xe, ve);
16070
- Ce.transform(te, _t);
16069
+ ], Yt = bs.translate(Qe.x, Qe.y).scale(We[2]), _t = ye.constrain()(Yt, Xe, ve);
16070
+ ye.transform(te, _t);
16071
16071
  }, ge = v6().on("zoom", h ? me : null).on("zoom.wheel", y ? nt : null);
16072
16072
  return Ze.call(ge), () => {
16073
16073
  Ze.on("zoom", null);
@@ -16086,10 +16086,10 @@ function Ix({
16086
16086
  { position: S, style: r, className: Ar(["react-flow__minimap", e]), "data-testid": "rf__minimap" },
16087
16087
  ie.createElement(
16088
16088
  "svg",
16089
- { width: J, height: F, viewBox: `${de} ${Ee} ${ce} ${ye}`, role: "img", "aria-labelledby": se, ref: G, onClick: De },
16089
+ { width: J, height: F, viewBox: `${de} ${Ee} ${ce} ${Pe}`, role: "img", "aria-labelledby": se, ref: G, onClick: De },
16090
16090
  P && ie.createElement("title", { id: se }, P),
16091
16091
  ie.createElement(DL, { onClick: ke, nodeColor: t, nodeStrokeColor: n, nodeBorderRadius: i, nodeClassName: o, nodeStrokeWidth: s, nodeComponent: a }),
16092
- ie.createElement("path", { className: "react-flow__minimap-mask", d: `M${de - re},${Ee - re}h${ce + re * 2}v${ye + re * 2}h${-ce - re * 2}z
16092
+ ie.createElement("path", { className: "react-flow__minimap-mask", d: `M${de - re},${Ee - re}h${ce + re * 2}v${Pe + re * 2}h${-ce - re * 2}z
16093
16093
  M${H.x},${H.y}h${H.width}v${H.height}h${-H.width}z`, fill: l, fillRule: "evenodd", stroke: p, strokeWidth: u, pointerEvents: "none" })
16094
16094
  )
16095
16095
  );
@@ -16955,7 +16955,7 @@ function dG(r, e) {
16955
16955
  et(() => {
16956
16956
  const p = r.mapLib;
16957
16957
  let u = !0, S;
16958
- return Promise.resolve(p || import("./maplibre-gl-Df79KuFB.js").then((O) => O.m)).then((O) => {
16958
+ return Promise.resolve(p || import("./maplibre-gl-DpAjQ5t0.js").then((O) => O.m)).then((O) => {
16959
16959
  if (!u)
16960
16960
  return;
16961
16961
  if (!O)
@@ -43986,7 +43986,7 @@ function sq(r) {
43986
43986
  }
43987
43987
  function Jh(r) {
43988
43988
  if (typeof r == "function")
43989
- return mr(Ga, {}, r);
43989
+ return vr(Ga, {}, r);
43990
43990
  if (Array.isArray(r))
43991
43991
  return r.map(Jh);
43992
43992
  if (l2(r)) {
@@ -44055,7 +44055,7 @@ function lq({ children: r, deck: e, ContextProvider: n = aq.Provider }) {
44055
44055
  top: u,
44056
44056
  width: S,
44057
44057
  height: O
44058
- }, h = `view-${s}`, y = mr("div", { key: h, id: h, style: x }, ...l), P = {
44058
+ }, h = `view-${s}`, y = vr("div", { key: h, id: h, style: x }, ...l), P = {
44059
44059
  deck: e,
44060
44060
  viewport: a,
44061
44061
  // @ts-expect-error accessing protected property
@@ -44067,7 +44067,7 @@ function lq({ children: r, deck: e, ContextProvider: n = aq.Provider }) {
44067
44067
  },
44068
44068
  widgets: []
44069
44069
  }, v = `view-${s}-context`;
44070
- return mr(n, { key: v, value: P }, y);
44070
+ return vr(n, { key: v, value: P }, y);
44071
44071
  });
44072
44072
  }
44073
44073
  const Aq = {
@@ -44174,13 +44174,13 @@ function dq(r, e) {
44174
44174
  children: l.children,
44175
44175
  deck: i.deck,
44176
44176
  ContextProvider: h
44177
- }), D = mr("canvas", {
44177
+ }), D = vr("canvas", {
44178
44178
  key: "canvas",
44179
44179
  id: v || "deckgl-overlay",
44180
44180
  ref: a,
44181
44181
  style: w
44182
44182
  });
44183
- i.control = mr("div", { id: `${v || "deckgl"}-wrapper`, ref: s, style: b }, [D, G]);
44183
+ i.control = vr("div", { id: `${v || "deckgl"}-wrapper`, ref: s, style: b }, [D, G]);
44184
44184
  }
44185
44185
  return p = !1, i.control;
44186
44186
  }
@@ -47064,16 +47064,16 @@ var Mn = function(r) {
47064
47064
  function C(Ne, Me, qe, Le, f) {
47065
47065
  var j = {
47066
47066
  string: function(mt) {
47067
- var Mr = 0;
47067
+ var wr = 0;
47068
47068
  if (mt != null && mt !== 0) {
47069
47069
  var mi = (mt.length << 2) + 1;
47070
- Mr = Ci(mi), z(mt, Mr, mi);
47070
+ wr = Ci(mi), z(mt, wr, mi);
47071
47071
  }
47072
- return Mr;
47072
+ return wr;
47073
47073
  },
47074
47074
  array: function(mt) {
47075
- var Mr = Ci(mt.length);
47076
- return J(mt, Mr), Mr;
47075
+ var wr = Ci(mt.length);
47076
+ return J(mt, wr), wr;
47077
47077
  }
47078
47078
  };
47079
47079
  function zt(mt) {
@@ -47170,8 +47170,8 @@ var Mn = function(r) {
47170
47170
  function Ee(Ne) {
47171
47171
  Y = Ne, e.HEAP8 = K = new Int8Array(Ne), e.HEAP16 = U = new Int16Array(Ne), e.HEAP32 = q = new Int32Array(Ne), e.HEAPU8 = le = new Uint8Array(Ne), e.HEAPU16 = new Uint16Array(Ne), e.HEAPU32 = new Uint32Array(Ne), e.HEAPF32 = re = new Float32Array(Ne), e.HEAPF64 = de = new Float64Array(Ne);
47172
47172
  }
47173
- var ce = 5271536, ye = 28624, se = e.TOTAL_MEMORY || 33554432;
47174
- e.buffer ? Y = e.buffer : Y = new ArrayBuffer(se), se = Y.byteLength, Ee(Y), q[ye >> 2] = ce;
47173
+ var ce = 5271536, Pe = 28624, se = e.TOTAL_MEMORY || 33554432;
47174
+ e.buffer ? Y = e.buffer : Y = new ArrayBuffer(se), se = Y.byteLength, Ee(Y), q[Pe >> 2] = ce;
47175
47175
  function Ie(Ne) {
47176
47176
  for (; Ne.length > 0; ) {
47177
47177
  var Me = Ne.shift();
@@ -47196,16 +47196,16 @@ var Mn = function(r) {
47196
47196
  function je() {
47197
47197
  Ie(Ze);
47198
47198
  }
47199
- function Fe() {
47199
+ function We() {
47200
47200
  if (e.postRun)
47201
47201
  for (typeof e.postRun == "function" && (e.postRun = [e.postRun]); e.postRun.length; )
47202
- Ce(e.postRun.shift());
47202
+ ye(e.postRun.shift());
47203
47203
  Ie(nt);
47204
47204
  }
47205
47205
  function te(Ne) {
47206
47206
  De.unshift(Ne);
47207
47207
  }
47208
- function Ce(Ne) {
47208
+ function ye(Ne) {
47209
47209
  nt.unshift(Ne);
47210
47210
  }
47211
47211
  var ve = Math.abs, Je = Math.ceil, rt = Math.floor, dt = Math.min, Qe = 0, Xe = null;
@@ -47220,7 +47220,7 @@ var Mn = function(r) {
47220
47220
  }
47221
47221
  e.preloadedImages = {}, e.preloadedAudios = {};
47222
47222
  var Un = null, Xr = "data:application/octet-stream;base64,";
47223
- function br(Ne) {
47223
+ function Mr(Ne) {
47224
47224
  return String.prototype.startsWith ? Ne.startsWith(Xr) : Ne.indexOf(Xr) === 0;
47225
47225
  }
47226
47226
  var Cn, Kn;
@@ -47275,7 +47275,7 @@ var Mn = function(r) {
47275
47275
  }
47276
47276
  }
47277
47277
  function Vr(Ne) {
47278
- if (br(Ne))
47278
+ if (Mr(Ne))
47279
47279
  return ps(Ne.slice(Xr.length));
47280
47280
  }
47281
47281
  var i0 = {
@@ -47295,14 +47295,14 @@ var Mn = function(r) {
47295
47295
  h: ds,
47296
47296
  i: Ln,
47297
47297
  o: r0,
47298
- p: ye
47298
+ p: Pe
47299
47299
  }, He = (
47300
47300
  /** @suppress {uselessCode} */
47301
47301
  function(Ne, Me, qe) {
47302
47302
  "almost asm";
47303
47303
  var Le = new Ne.Int8Array(qe), f = new Ne.Int32Array(qe);
47304
47304
  new Ne.Uint8Array(qe), new Ne.Float32Array(qe);
47305
- var j = new Ne.Float64Array(qe), zt = Me.o | 0, Zt = Me.p | 0, Dn = Ne.Math.floor, Pt = Ne.Math.abs, Ut = Ne.Math.sqrt, q0 = Ne.Math.pow, Ft = Ne.Math.cos, mt = Ne.Math.sin, Mr = Ne.Math.tan, mi = Ne.Math.acos, p2 = Ne.Math.asin, Za = Ne.Math.atan, Ir = Ne.Math.atan2, Fs = Ne.Math.ceil, a0 = Ne.Math.imul, Ka = Ne.Math.min, T2 = Ne.Math.max, y0 = Ne.Math.clz32, Rt = Me.b, V = Me.c, ht = Me.d, rA = Me.e, E2 = Me.f, Qa = Me.g, gI = Me.h, RI = Me.i, B = 28656;
47305
+ var j = new Ne.Float64Array(qe), zt = Me.o | 0, Zt = Me.p | 0, Dn = Ne.Math.floor, Pt = Ne.Math.abs, Ut = Ne.Math.sqrt, q0 = Ne.Math.pow, Ft = Ne.Math.cos, mt = Ne.Math.sin, wr = Ne.Math.tan, mi = Ne.Math.acos, p2 = Ne.Math.asin, Za = Ne.Math.atan, Ir = Ne.Math.atan2, Fs = Ne.Math.ceil, a0 = Ne.Math.imul, Ka = Ne.Math.min, T2 = Ne.Math.max, y0 = Ne.Math.clz32, Rt = Me.b, V = Me.c, ht = Me.d, rA = Me.e, E2 = Me.f, Qa = Me.g, gI = Me.h, RI = Me.i, B = 28656;
47306
47306
  function II(c) {
47307
47307
  return Le = new Int8Array(c), f = new Int32Array(c), j = new Float64Array(c), qe = c, !0;
47308
47308
  }
@@ -47345,7 +47345,7 @@ var Mn = function(r) {
47345
47345
  Ys(E | 0, 0, R << 2 | 0) | 0, g = Y0(c, A, d, T, E, R, I, 0) | 0;
47346
47346
  break;
47347
47347
  }
47348
- g = Lr(R, 4) | 0, g ? (M = Y0(c, A, d, T, g, R, I, 0) | 0, ft(g), g = M) : g = 13;
47348
+ g = Gr(R, 4) | 0, g ? (M = Y0(c, A, d, T, g, R, I, 0) | 0, ft(g), g = M) : g = 13;
47349
47349
  } else
47350
47350
  g = 2;
47351
47351
  while (!1);
@@ -47412,13 +47412,13 @@ var Mn = function(r) {
47412
47412
  }
47413
47413
  function Y0(c, A, d, T, E, g, R, I) {
47414
47414
  c = c | 0, A = A | 0, d = d | 0, T = T | 0, E = E | 0, g = g | 0, R = R | 0, I = I | 0;
47415
- var N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0;
47416
- if (ae = B, B = B + 16 | 0, _ = ae + 8 | 0, ee = ae, N = Gi(c | 0, A | 0, g | 0, R | 0) | 0, L = V() | 0, X = T + (N << 3) | 0, ue = X, Pe = f[ue >> 2] | 0, ue = f[ue + 4 >> 2] | 0, M = (Pe | 0) == (c | 0) & (ue | 0) == (A | 0), !((Pe | 0) == 0 & (ue | 0) == 0 | M))
47415
+ var N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0;
47416
+ if (ae = B, B = B + 16 | 0, _ = ae + 8 | 0, ee = ae, N = Gi(c | 0, A | 0, g | 0, R | 0) | 0, L = V() | 0, X = T + (N << 3) | 0, ue = X, Ce = f[ue >> 2] | 0, ue = f[ue + 4 >> 2] | 0, M = (Ce | 0) == (c | 0) & (ue | 0) == (A | 0), !((Ce | 0) == 0 & (ue | 0) == 0 | M))
47417
47417
  do
47418
- N = At(N | 0, L | 0, 1, 0) | 0, N = Li(N | 0, V() | 0, g | 0, R | 0) | 0, L = V() | 0, X = T + (N << 3) | 0, Pe = X, ue = f[Pe >> 2] | 0, Pe = f[Pe + 4 >> 2] | 0, M = (ue | 0) == (c | 0) & (Pe | 0) == (A | 0);
47419
- while (!((ue | 0) == 0 & (Pe | 0) == 0 | M));
47420
- if (N = E + (N << 2) | 0, M && (f[N >> 2] | 0) <= (I | 0) || (Pe = X, f[Pe >> 2] = c, f[Pe + 4 >> 2] = A, f[N >> 2] = I, (I | 0) >= (d | 0)))
47421
- return Pe = 0, B = ae, Pe | 0;
47418
+ N = At(N | 0, L | 0, 1, 0) | 0, N = Li(N | 0, V() | 0, g | 0, R | 0) | 0, L = V() | 0, X = T + (N << 3) | 0, Ce = X, ue = f[Ce >> 2] | 0, Ce = f[Ce + 4 >> 2] | 0, M = (ue | 0) == (c | 0) & (Ce | 0) == (A | 0);
47419
+ while (!((ue | 0) == 0 & (Ce | 0) == 0 | M));
47420
+ if (N = E + (N << 2) | 0, M && (f[N >> 2] | 0) <= (I | 0) || (Ce = X, f[Ce >> 2] = c, f[Ce + 4 >> 2] = A, f[N >> 2] = I, (I | 0) >= (d | 0)))
47421
+ return Ce = 0, B = ae, Ce | 0;
47422
47422
  switch (M = I + 1 | 0, f[_ >> 2] = 0, N = Qn(c, A, 2, _, ee) | 0, N | 0) {
47423
47423
  case 9: {
47424
47424
  Q = 9;
@@ -47486,10 +47486,10 @@ var Mn = function(r) {
47486
47486
  default:
47487
47487
  break e;
47488
47488
  }
47489
- return Pe = 0, B = ae, Pe | 0;
47489
+ return Ce = 0, B = ae, Ce | 0;
47490
47490
  }
47491
47491
  while (!1);
47492
- return Pe = N, B = ae, Pe | 0;
47492
+ return Ce = N, B = ae, Ce | 0;
47493
47493
  }
47494
47494
  function Qn(c, A, d, T, E) {
47495
47495
  c = c | 0, A = A | 0, d = d | 0, T = T | 0, E = E | 0;
@@ -47504,7 +47504,7 @@ var Mn = function(r) {
47504
47504
  }
47505
47505
  if (X = we(c | 0, A | 0, 45) | 0, V() | 0, L = X & 127, L >>> 0 > 121)
47506
47506
  return E = 5, E | 0;
47507
- N = wr(c, A) | 0, g = we(c | 0, A | 0, 52) | 0, V() | 0, g = g & 15;
47507
+ N = Lr(c, A) | 0, g = we(c | 0, A | 0, 52) | 0, V() | 0, g = g & 15;
47508
47508
  e: do
47509
47509
  if (!g)
47510
47510
  M = 8;
@@ -47530,7 +47530,7 @@ var Mn = function(r) {
47530
47530
  e: do
47531
47531
  if (Tn(I) | 0) {
47532
47532
  t: do
47533
- if ((wr(c, A) | 0) == 1) {
47533
+ if ((Lr(c, A) | 0) == 1) {
47534
47534
  if ((L | 0) != (I | 0))
47535
47535
  if (Tp(I, f[7696 + (L * 28 | 0) >> 2] | 0) | 0) {
47536
47536
  c = w2(c, A) | 0, R = 1, A = V() | 0;
@@ -47562,7 +47562,7 @@ var Mn = function(r) {
47562
47562
  }
47563
47563
  if ((L | 0) != (I | 0)) {
47564
47564
  if (!(O2(I) | 0)) {
47565
- if ((R | 0) != 0 | (wr(c, A) | 0) != 5)
47565
+ if ((R | 0) != 0 | (Lr(c, A) | 0) != 5)
47566
47566
  break;
47567
47567
  f[T >> 2] = (f[T >> 2] | 0) + 1;
47568
47568
  break;
@@ -47572,7 +47572,7 @@ var Mn = function(r) {
47572
47572
  case 118:
47573
47573
  break e;
47574
47574
  }
47575
- (wr(c, A) | 0) != 3 && (f[T >> 2] = (f[T >> 2] | 0) + 1);
47575
+ (Lr(c, A) | 0) != 3 && (f[T >> 2] = (f[T >> 2] | 0) + 1);
47576
47576
  }
47577
47577
  } else if ((d | 0) > 0) {
47578
47578
  g = 0;
@@ -47658,10 +47658,10 @@ var Mn = function(r) {
47658
47658
  g = R, E = f[g >> 2] | 0, g = f[g + 4 >> 2] | 0;
47659
47659
  } else
47660
47660
  E = ((d | 0) < 0) << 31 >> 31, L = $n(d | 0, E | 0, 3, 0) | 0, g = V() | 0, E = At(d | 0, E | 0, 1, 0) | 0, E = $n(L | 0, g | 0, E | 0, V() | 0) | 0, E = At(E | 0, V() | 0, 1, 0) | 0, g = V() | 0, L = R, f[L >> 2] = E, f[L + 4 >> 2] = g;
47661
- if (M = Lr(E, 8) | 0, !M)
47661
+ if (M = Gr(E, 8) | 0, !M)
47662
47662
  E = 13;
47663
47663
  else {
47664
- if (L = Lr(E, 4) | 0, !L) {
47664
+ if (L = Gr(E, 4) | 0, !L) {
47665
47665
  ft(M), E = 13;
47666
47666
  break;
47667
47667
  }
@@ -47715,18 +47715,18 @@ var Mn = function(r) {
47715
47715
  }
47716
47716
  function hp(c, A, d, T, E, g, R) {
47717
47717
  c = c | 0, A = A | 0, d = d | 0, T = T | 0, E = E | 0, g = g | 0, R = R | 0;
47718
- var I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0, We = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0, ot = 0, Ue = 0, bt = 0, sn = 0, Ct = 0, on = 0, Pr = 0, n8 = 0;
47719
- if (sn = B, B = B + 64 | 0, Tt = sn + 48 | 0, ot = sn + 32 | 0, Ue = sn + 24 | 0, We = sn + 8 | 0, st = sn, N = f[c >> 2] | 0, (N | 0) <= 0)
47718
+ var I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0, Fe = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0, ot = 0, Ue = 0, bt = 0, sn = 0, Ct = 0, on = 0, Pr = 0, n8 = 0;
47719
+ if (sn = B, B = B + 64 | 0, Tt = sn + 48 | 0, ot = sn + 32 | 0, Ue = sn + 24 | 0, Fe = sn + 8 | 0, st = sn, N = f[c >> 2] | 0, (N | 0) <= 0)
47720
47720
  return bt = 0, B = sn, bt | 0;
47721
- for (_e = c + 4 | 0, It = Tt + 8 | 0, yt = ot + 8 | 0, Ht = We + 8 | 0, I = 0, Se = 0; ; ) {
47721
+ for (_e = c + 4 | 0, It = Tt + 8 | 0, yt = ot + 8 | 0, Ht = Fe + 8 | 0, I = 0, Se = 0; ; ) {
47722
47722
  M = f[_e >> 2] | 0, xe = M + (Se << 4) | 0, f[Tt >> 2] = f[xe >> 2], f[Tt + 4 >> 2] = f[xe + 4 >> 2], f[Tt + 8 >> 2] = f[xe + 8 >> 2], f[Tt + 12 >> 2] = f[xe + 12 >> 2], (Se | 0) == (N + -1 | 0) ? (f[ot >> 2] = f[M >> 2], f[ot + 4 >> 2] = f[M + 4 >> 2], f[ot + 8 >> 2] = f[M + 8 >> 2], f[ot + 12 >> 2] = f[M + 12 >> 2]) : (xe = M + (Se + 1 << 4) | 0, f[ot >> 2] = f[xe >> 2], f[ot + 4 >> 2] = f[xe + 4 >> 2], f[ot + 8 >> 2] = f[xe + 8 >> 2], f[ot + 12 >> 2] = f[xe + 12 >> 2]), N = FI(Tt, ot, T, Ue) | 0;
47723
47723
  e: do
47724
47724
  if (N)
47725
47725
  M = 0, I = N;
47726
47726
  else if (N = Ue, M = f[N >> 2] | 0, N = f[N + 4 >> 2] | 0, (N | 0) > 0 | (N | 0) == 0 & M >>> 0 > 0) {
47727
- Pe = 0, xe = 0;
47727
+ Ce = 0, xe = 0;
47728
47728
  t: for (; ; ) {
47729
- if (on = 1 / (+(M >>> 0) + 4294967296 * +(N | 0)), n8 = +j[Tt >> 3], N = _n(M | 0, N | 0, Pe | 0, xe | 0) | 0, Pr = +(N >>> 0) + 4294967296 * +(V() | 0), Ct = +(Pe >>> 0) + 4294967296 * +(xe | 0), j[We >> 3] = on * (n8 * Pr) + on * (+j[ot >> 3] * Ct), j[Ht >> 3] = on * (+j[It >> 3] * Pr) + on * (+j[yt >> 3] * Ct), N = L2(We, T, st) | 0, N | 0) {
47729
+ if (on = 1 / (+(M >>> 0) + 4294967296 * +(N | 0)), n8 = +j[Tt >> 3], N = _n(M | 0, N | 0, Ce | 0, xe | 0) | 0, Pr = +(N >>> 0) + 4294967296 * +(V() | 0), Ct = +(Ce >>> 0) + 4294967296 * +(xe | 0), j[Fe >> 3] = on * (n8 * Pr) + on * (+j[ot >> 3] * Ct), j[Ht >> 3] = on * (+j[It >> 3] * Pr) + on * (+j[yt >> 3] * Ct), N = L2(Fe, T, st) | 0, N | 0) {
47730
47730
  I = N;
47731
47731
  break;
47732
47732
  }
@@ -47748,7 +47748,7 @@ var Mn = function(r) {
47748
47748
  }
47749
47749
  }
47750
47750
  while (!1);
47751
- if ((bt | 0) == 16 && (bt = 0, !((ae | 0) == 0 & (ue | 0) == 0)) && (ee = Ae, f[ee >> 2] = ae, f[ee + 4 >> 2] = ue, ee = g + (f[E >> 2] << 3) | 0, f[ee >> 2] = ae, f[ee + 4 >> 2] = ue, ee = E, ee = At(f[ee >> 2] | 0, f[ee + 4 >> 2] | 0, 1, 0) | 0, ae = V() | 0, ue = E, f[ue >> 2] = ee, f[ue + 4 >> 2] = ae), Pe = At(Pe | 0, xe | 0, 1, 0) | 0, xe = V() | 0, N = Ue, M = f[N >> 2] | 0, N = f[N + 4 >> 2] | 0, !((N | 0) > (xe | 0) | (N | 0) == (xe | 0) & M >>> 0 > Pe >>> 0)) {
47751
+ if ((bt | 0) == 16 && (bt = 0, !((ae | 0) == 0 & (ue | 0) == 0)) && (ee = Ae, f[ee >> 2] = ae, f[ee + 4 >> 2] = ue, ee = g + (f[E >> 2] << 3) | 0, f[ee >> 2] = ae, f[ee + 4 >> 2] = ue, ee = E, ee = At(f[ee >> 2] | 0, f[ee + 4 >> 2] | 0, 1, 0) | 0, ae = V() | 0, ue = E, f[ue >> 2] = ee, f[ue + 4 >> 2] = ae), Ce = At(Ce | 0, xe | 0, 1, 0) | 0, xe = V() | 0, N = Ue, M = f[N >> 2] | 0, N = f[N + 4 >> 2] | 0, !((N | 0) > (xe | 0) | (N | 0) == (xe | 0) & M >>> 0 > Ce >>> 0)) {
47752
47752
  M = 1;
47753
47753
  break e;
47754
47754
  }
@@ -47770,7 +47770,7 @@ var Mn = function(r) {
47770
47770
  }
47771
47771
  function wI(c, A, d, T) {
47772
47772
  c = c | 0, A = A | 0, d = d | 0, T = T | 0;
47773
- var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0, We = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0, ot = 0, Ue = 0, bt = 0, sn = 0, Ct = 0, on = 0, Pr = 0;
47773
+ var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0, Fe = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0, ot = 0, Ue = 0, bt = 0, sn = 0, Ct = 0, on = 0, Pr = 0;
47774
47774
  if (Pr = B, B = B + 112 | 0, bt = Pr + 80 | 0, N = Pr + 72 | 0, sn = Pr, Ct = Pr + 56 | 0, E = r1(d) | 0, E | 0)
47775
47775
  return on = E, B = Pr, on | 0;
47776
47776
  if (M = c + 8 | 0, on = Z0((f[M >> 2] << 5) + 32 | 0) | 0, !on)
@@ -47790,9 +47790,9 @@ var Mn = function(r) {
47790
47790
  E = sn, g = f[E >> 2] | 0, E = f[E + 4 >> 2] | 0, R = ((d | 0) < 0) << 31 >> 31, (E | 0) < (R | 0) | (E | 0) == (R | 0) & g >>> 0 < d >>> 0 ? (E = sn, f[E >> 2] = d, f[E + 4 >> 2] = R, E = R) : d = g, ot = At(d | 0, E | 0, 12, 0) | 0, Ue = V() | 0, E = sn, f[E >> 2] = ot, f[E + 4 >> 2] = Ue, E = 0;
47791
47791
  }
47792
47792
  if (!E) {
47793
- if (d = Lr(ot, 8) | 0, !d)
47793
+ if (d = Gr(ot, 8) | 0, !d)
47794
47794
  return ft(on), on = 13, B = Pr, on | 0;
47795
- if (I = Lr(ot, 8) | 0, !I)
47795
+ if (I = Gr(ot, 8) | 0, !I)
47796
47796
  return ft(on), ft(d), on = 13, B = Pr, on | 0;
47797
47797
  Ht = bt, f[Ht >> 2] = 0, f[Ht + 4 >> 2] = 0, Ht = c, Tt = f[Ht + 4 >> 2] | 0, E = N, f[E >> 2] = f[Ht >> 2], f[E + 4 >> 2] = Tt, E = hp(N, ot, Ue, A, bt, d, I) | 0;
47798
47798
  e: do
@@ -47811,9 +47811,9 @@ var Mn = function(r) {
47811
47811
  (Ue | 0) > 0 | (Ue | 0) == 0 & ot >>> 0 > 0 && Ys(I | 0, 0, ot << 3 | 0) | 0, Tt = bt, Ht = f[Tt + 4 >> 2] | 0;
47812
47812
  t: do
47813
47813
  if ((Ht | 0) > 0 | (Ht | 0) == 0 & (f[Tt >> 2] | 0) >>> 0 > 0) {
47814
- _e = d, It = I, yt = d, Ht = I, Tt = d, E = d, Ae = d, We = I, st = I, d = I;
47814
+ _e = d, It = I, yt = d, Ht = I, Tt = d, E = d, Ae = d, Fe = I, st = I, d = I;
47815
47815
  n: for (; ; ) {
47816
- for (ue = 0, Pe = 0, xe = 0, Se = 0, g = 0, R = 0; ; ) {
47816
+ for (ue = 0, Ce = 0, xe = 0, Se = 0, g = 0, R = 0; ; ) {
47817
47817
  I = sn, N = I + 56 | 0;
47818
47818
  do
47819
47819
  f[I >> 2] = 0, I = I + 4 | 0;
@@ -47823,7 +47823,7 @@ var Mn = function(r) {
47823
47823
  do
47824
47824
  f[I >> 2] = 0, I = I + 4 | 0;
47825
47825
  while ((I | 0) < (N | 0));
47826
- I = Lr(7, 4) | 0, I | 0 && (Y0(M, A, 1, sn, I, 7, 0, 0) | 0, ft(I));
47826
+ I = Gr(7, 4) | 0, I | 0 && (Y0(M, A, 1, sn, I, 7, 0, 0) | 0, ft(I));
47827
47827
  }
47828
47828
  for (ae = 0; ; ) {
47829
47829
  ee = sn + (ae << 3) | 0, _ = f[ee >> 2] | 0, ee = f[ee + 4 >> 2] | 0;
@@ -47854,7 +47854,7 @@ var Mn = function(r) {
47854
47854
  break;
47855
47855
  g = I, R = N;
47856
47856
  }
47857
- if (ue = At(ue | 0, Pe | 0, 1, 0) | 0, Pe = V() | 0, xe = At(xe | 0, Se | 0, 1, 0) | 0, Se = V() | 0, R = bt, g = f[R >> 2] | 0, R = f[R + 4 >> 2] | 0, (Se | 0) < (R | 0) | (Se | 0) == (R | 0) & xe >>> 0 < g >>> 0)
47857
+ if (ue = At(ue | 0, Ce | 0, 1, 0) | 0, Ce = V() | 0, xe = At(xe | 0, Se | 0, 1, 0) | 0, Se = V() | 0, R = bt, g = f[R >> 2] | 0, R = f[R + 4 >> 2] | 0, (Se | 0) < (R | 0) | (Se | 0) == (R | 0) & xe >>> 0 < g >>> 0)
47858
47858
  g = I, R = N;
47859
47859
  else
47860
47860
  break;
@@ -47866,7 +47866,7 @@ var Mn = function(r) {
47866
47866
  while ((R | 0) < (xe | 0) | ((R | 0) == (xe | 0) ? g >>> 0 < (f[Se >> 2] | 0) >>> 0 : 0));
47867
47867
  }
47868
47868
  if (Se = bt, f[Se >> 2] = I, f[Se + 4 >> 2] = N, (N | 0) > 0 | (N | 0) == 0 & I >>> 0 > 0)
47869
- ae = d, ue = st, Pe = Tt, xe = We, Se = It, d = Ae, st = E, We = yt, Ae = ae, E = ue, Tt = Ht, Ht = Pe, yt = xe, It = _e, _e = Se;
47869
+ ae = d, ue = st, Ce = Tt, xe = Fe, Se = It, d = Ae, st = E, Fe = yt, Ae = ae, E = ue, Tt = Ht, Ht = Ce, yt = xe, It = _e, _e = Se;
47870
47870
  else
47871
47871
  break t;
47872
47872
  }
@@ -48464,7 +48464,7 @@ var Mn = function(r) {
48464
48464
  f[T >> 2] = 0, f[T + 4 >> 2] = 0, f[T + 8 >> 2] = 0, f[T + 12 >> 2] = 0, B = I;
48465
48465
  return;
48466
48466
  }
48467
- if (N = f[d >> 2] | 0, E = +j[15920 + (N * 24 | 0) >> 3], E = +e1(E - +e1(+Ny(15600 + (N << 4) | 0, c))), l0(A) | 0 ? R = +e1(E + -0.3334731722518321) : R = E, E = +Mr(+g) * 2.618033988749896, (A | 0) > 0) {
48467
+ if (N = f[d >> 2] | 0, E = +j[15920 + (N * 24 | 0) >> 3], E = +e1(E - +e1(+Ny(15600 + (N << 4) | 0, c))), l0(A) | 0 ? R = +e1(E + -0.3334731722518321) : R = E, E = +wr(+g) * 2.618033988749896, (A | 0) > 0) {
48468
48468
  c = 0;
48469
48469
  do
48470
48470
  E = E * 2.6457513110645907, c = c + 1 | 0;
@@ -48503,12 +48503,12 @@ var Mn = function(r) {
48503
48503
  }
48504
48504
  function C2(c, A, d, T, E) {
48505
48505
  c = c | 0, A = A | 0, d = d | 0, T = T | 0, E = E | 0;
48506
- var g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0, We = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0, ot = 0, Ue = 0, bt = 0, sn = 0, Ct = 0;
48507
- if (bt = B, B = B + 272 | 0, g = bt + 256 | 0, xe = bt + 240 | 0, Tt = bt, ot = bt + 224 | 0, Ue = bt + 208 | 0, Se = bt + 176 | 0, Ae = bt + 160 | 0, We = bt + 192 | 0, st = bt + 144 | 0, _e = bt + 128 | 0, It = bt + 112 | 0, yt = bt + 96 | 0, Ht = bt + 80 | 0, f[g >> 2] = A, f[xe >> 2] = f[c >> 2], f[xe + 4 >> 2] = f[c + 4 >> 2], f[xe + 8 >> 2] = f[c + 8 >> 2], f[xe + 12 >> 2] = f[c + 12 >> 2], vp(xe, g, Tt), f[E >> 2] = 0, xe = T + d + ((T | 0) == 5 & 1) | 0, (xe | 0) <= (d | 0)) {
48506
+ var g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0, Fe = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0, ot = 0, Ue = 0, bt = 0, sn = 0, Ct = 0;
48507
+ if (bt = B, B = B + 272 | 0, g = bt + 256 | 0, xe = bt + 240 | 0, Tt = bt, ot = bt + 224 | 0, Ue = bt + 208 | 0, Se = bt + 176 | 0, Ae = bt + 160 | 0, Fe = bt + 192 | 0, st = bt + 144 | 0, _e = bt + 128 | 0, It = bt + 112 | 0, yt = bt + 96 | 0, Ht = bt + 80 | 0, f[g >> 2] = A, f[xe >> 2] = f[c >> 2], f[xe + 4 >> 2] = f[c + 4 >> 2], f[xe + 8 >> 2] = f[c + 8 >> 2], f[xe + 12 >> 2] = f[c + 12 >> 2], vp(xe, g, Tt), f[E >> 2] = 0, xe = T + d + ((T | 0) == 5 & 1) | 0, (xe | 0) <= (d | 0)) {
48508
48508
  B = bt;
48509
48509
  return;
48510
48510
  }
48511
- N = f[g >> 2] | 0, M = ot + 4 | 0, L = Se + 4 | 0, X = d + 5 | 0, Q = 16880 + (N << 2) | 0, _ = 16960 + (N << 2) | 0, ee = _e + 8 | 0, ae = It + 8 | 0, ue = yt + 8 | 0, Pe = Ue + 4 | 0, I = d;
48511
+ N = f[g >> 2] | 0, M = ot + 4 | 0, L = Se + 4 | 0, X = d + 5 | 0, Q = 16880 + (N << 2) | 0, _ = 16960 + (N << 2) | 0, ee = _e + 8 | 0, ae = It + 8 | 0, ue = yt + 8 | 0, Ce = Ue + 4 | 0, I = d;
48512
48512
  e: for (; ; ) {
48513
48513
  R = Tt + (((I | 0) % 5 | 0) << 4) | 0, f[Ue >> 2] = f[R >> 2], f[Ue + 4 >> 2] = f[R + 4 >> 2], f[Ue + 8 >> 2] = f[R + 8 >> 2], f[Ue + 12 >> 2] = f[R + 12 >> 2];
48514
48514
  do
@@ -48521,7 +48521,7 @@ var Mn = function(r) {
48521
48521
  yp(L), c = c + 1 | 0;
48522
48522
  while ((c | 0) < (R | 0));
48523
48523
  }
48524
- switch (R = 18640 + (T * 80 | 0) + (g * 20 | 0) + 4 | 0, f[We >> 2] = f[R >> 2], f[We + 4 >> 2] = f[R + 4 >> 2], f[We + 8 >> 2] = f[R + 8 >> 2], gp(We, (f[Q >> 2] | 0) * 3 | 0), yr(L, We, L), ur(L), Ho(L, st), sn = +(f[_ >> 2] | 0), j[_e >> 3] = sn * 3, j[ee >> 3] = 0, Ct = sn * -1.5, j[It >> 3] = Ct, j[ae >> 3] = sn * 2.598076211353316, j[yt >> 3] = Ct, j[ue >> 3] = sn * -2.598076211353316, f[17040 + ((f[Se >> 2] | 0) * 80 | 0) + (f[Ue >> 2] << 2) >> 2] | 0) {
48524
+ switch (R = 18640 + (T * 80 | 0) + (g * 20 | 0) + 4 | 0, f[Fe >> 2] = f[R >> 2], f[Fe + 4 >> 2] = f[R + 4 >> 2], f[Fe + 8 >> 2] = f[R + 8 >> 2], gp(Fe, (f[Q >> 2] | 0) * 3 | 0), yr(L, Fe, L), ur(L), Ho(L, st), sn = +(f[_ >> 2] | 0), j[_e >> 3] = sn * 3, j[ee >> 3] = 0, Ct = sn * -1.5, j[It >> 3] = Ct, j[ae >> 3] = sn * 2.598076211353316, j[yt >> 3] = Ct, j[ue >> 3] = sn * -2.598076211353316, f[17040 + ((f[Se >> 2] | 0) * 80 | 0) + (f[Ue >> 2] << 2) >> 2] | 0) {
48525
48525
  case 1: {
48526
48526
  c = It, T = _e;
48527
48527
  break;
@@ -48541,7 +48541,7 @@ var Mn = function(r) {
48541
48541
  }
48542
48542
  Vp(Ae, st, T, c, Ht), _a(Ht, f[Se >> 2] | 0, N, 1, E + 8 + (f[E >> 2] << 4) | 0), f[E >> 2] = (f[E >> 2] | 0) + 1;
48543
48543
  }
48544
- if ((I | 0) < (X | 0) && (Ho(Pe, Se), _a(Se, f[Ue >> 2] | 0, N, 1, E + 8 + (f[E >> 2] << 4) | 0), f[E >> 2] = (f[E >> 2] | 0) + 1), f[ot >> 2] = f[Ue >> 2], f[ot + 4 >> 2] = f[Ue + 4 >> 2], f[ot + 8 >> 2] = f[Ue + 8 >> 2], f[ot + 12 >> 2] = f[Ue + 12 >> 2], I = I + 1 | 0, (I | 0) >= (xe | 0)) {
48544
+ if ((I | 0) < (X | 0) && (Ho(Ce, Se), _a(Se, f[Ue >> 2] | 0, N, 1, E + 8 + (f[E >> 2] << 4) | 0), f[E >> 2] = (f[E >> 2] | 0) + 1), f[ot >> 2] = f[Ue >> 2], f[ot + 4 >> 2] = f[Ue + 4 >> 2], f[ot + 8 >> 2] = f[Ue + 8 >> 2], f[ot + 12 >> 2] = f[Ue + 12 >> 2], I = I + 1 | 0, (I | 0) >= (xe | 0)) {
48545
48545
  c = 3;
48546
48546
  break;
48547
48547
  }
@@ -48603,17 +48603,17 @@ var Mn = function(r) {
48603
48603
  }
48604
48604
  function N2(c, A, d, T, E) {
48605
48605
  c = c | 0, A = A | 0, d = d | 0, T = T | 0, E = E | 0;
48606
- var g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0, We = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0;
48607
- if (yt = B, B = B + 240 | 0, g = yt + 224 | 0, We = yt + 208 | 0, st = yt, _e = yt + 192 | 0, It = yt + 176 | 0, ue = yt + 160 | 0, Pe = yt + 144 | 0, xe = yt + 128 | 0, Se = yt + 112 | 0, Ae = yt + 96 | 0, f[g >> 2] = A, f[We >> 2] = f[c >> 2], f[We + 4 >> 2] = f[c + 4 >> 2], f[We + 8 >> 2] = f[c + 8 >> 2], f[We + 12 >> 2] = f[c + 12 >> 2], bp(We, g, st), f[E >> 2] = 0, ae = T + d + ((T | 0) == 6 & 1) | 0, (ae | 0) <= (d | 0)) {
48606
+ var g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0, Fe = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0;
48607
+ if (yt = B, B = B + 240 | 0, g = yt + 224 | 0, Fe = yt + 208 | 0, st = yt, _e = yt + 192 | 0, It = yt + 176 | 0, ue = yt + 160 | 0, Ce = yt + 144 | 0, xe = yt + 128 | 0, Se = yt + 112 | 0, Ae = yt + 96 | 0, f[g >> 2] = A, f[Fe >> 2] = f[c >> 2], f[Fe + 4 >> 2] = f[c + 4 >> 2], f[Fe + 8 >> 2] = f[c + 8 >> 2], f[Fe + 12 >> 2] = f[c + 12 >> 2], bp(Fe, g, st), f[E >> 2] = 0, ae = T + d + ((T | 0) == 6 & 1) | 0, (ae | 0) <= (d | 0)) {
48608
48608
  B = yt;
48609
48609
  return;
48610
48610
  }
48611
- N = f[g >> 2] | 0, M = d + 6 | 0, L = 16960 + (N << 2) | 0, X = Pe + 8 | 0, Q = xe + 8 | 0, _ = Se + 8 | 0, ee = _e + 4 | 0, R = 0, I = d, T = -1;
48611
+ N = f[g >> 2] | 0, M = d + 6 | 0, L = 16960 + (N << 2) | 0, X = Ce + 8 | 0, Q = xe + 8 | 0, _ = Se + 8 | 0, ee = _e + 4 | 0, R = 0, I = d, T = -1;
48612
48612
  e: for (; ; ) {
48613
48613
  if (g = (I | 0) % 6 | 0, c = st + (g << 4) | 0, f[_e >> 2] = f[c >> 2], f[_e + 4 >> 2] = f[c + 4 >> 2], f[_e + 8 >> 2] = f[c + 8 >> 2], f[_e + 12 >> 2] = f[c + 12 >> 2], c = R, R = vi(_e, N, 0, 1) | 0, (I | 0) > (d | 0) & (l0(A) | 0) != 0 && (c | 0) != 1 && (f[_e >> 2] | 0) != (T | 0)) {
48614
- switch (Ho(st + (((g + 5 | 0) % 6 | 0) << 4) + 4 | 0, It), Ho(st + (g << 4) + 4 | 0, ue), Ht = +(f[L >> 2] | 0), j[Pe >> 3] = Ht * 3, j[X >> 3] = 0, Tt = Ht * -1.5, j[xe >> 3] = Tt, j[Q >> 3] = Ht * 2.598076211353316, j[Se >> 3] = Tt, j[_ >> 3] = Ht * -2.598076211353316, g = f[We >> 2] | 0, f[17040 + (g * 80 | 0) + (((T | 0) == (g | 0) ? f[_e >> 2] | 0 : T) << 2) >> 2] | 0) {
48614
+ switch (Ho(st + (((g + 5 | 0) % 6 | 0) << 4) + 4 | 0, It), Ho(st + (g << 4) + 4 | 0, ue), Ht = +(f[L >> 2] | 0), j[Ce >> 3] = Ht * 3, j[X >> 3] = 0, Tt = Ht * -1.5, j[xe >> 3] = Tt, j[Q >> 3] = Ht * 2.598076211353316, j[Se >> 3] = Tt, j[_ >> 3] = Ht * -2.598076211353316, g = f[Fe >> 2] | 0, f[17040 + (g * 80 | 0) + (((T | 0) == (g | 0) ? f[_e >> 2] | 0 : T) << 2) >> 2] | 0) {
48615
48615
  case 1: {
48616
- c = xe, T = Pe;
48616
+ c = xe, T = Ce;
48617
48617
  break;
48618
48618
  }
48619
48619
  case 3: {
@@ -48621,7 +48621,7 @@ var Mn = function(r) {
48621
48621
  break;
48622
48622
  }
48623
48623
  case 2: {
48624
- c = Pe, T = Se;
48624
+ c = Ce, T = Se;
48625
48625
  break;
48626
48626
  }
48627
48627
  default: {
@@ -48629,7 +48629,7 @@ var Mn = function(r) {
48629
48629
  break e;
48630
48630
  }
48631
48631
  }
48632
- Vp(It, ue, T, c, Ae), !(Jp(It, Ae) | 0) && !(Jp(ue, Ae) | 0) && (_a(Ae, f[We >> 2] | 0, N, 1, E + 8 + (f[E >> 2] << 4) | 0), f[E >> 2] = (f[E >> 2] | 0) + 1);
48632
+ Vp(It, ue, T, c, Ae), !(Jp(It, Ae) | 0) && !(Jp(ue, Ae) | 0) && (_a(Ae, f[Fe >> 2] | 0, N, 1, E + 8 + (f[E >> 2] << 4) | 0), f[E >> 2] = (f[E >> 2] | 0) + 1);
48633
48633
  }
48634
48634
  if ((I | 0) < (M | 0) && (Ho(ee, It), _a(It, f[_e >> 2] | 0, N, 1, E + 8 + (f[E >> 2] << 4) | 0), f[E >> 2] = (f[E >> 2] | 0) + 1), I = I + 1 | 0, (I | 0) >= (ae | 0)) {
48635
48635
  c = 3;
@@ -48803,7 +48803,7 @@ var Mn = function(r) {
48803
48803
  }
48804
48804
  function py(c, A, d, T) {
48805
48805
  c = c | 0, A = A | 0, d = d | 0, T = T | 0;
48806
- var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0, We = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0, ot = 0, Ue = 0;
48806
+ var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0, Fe = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0, ot = 0, Ue = 0;
48807
48807
  if ((d | 0) == 0 & (T | 0) == 0)
48808
48808
  return Ue = 0, Ue | 0;
48809
48809
  if (E = c, g = f[E >> 2] | 0, E = f[E + 4 >> 2] | 0, !0 & (E & 15728640 | 0) == 0) {
@@ -48817,7 +48817,7 @@ var Mn = function(r) {
48817
48817
  }
48818
48818
  if (Ht = d << 3, ot = Z0(Ht) | 0, !ot)
48819
48819
  return Ue = 13, Ue | 0;
48820
- if (Di(ot | 0, c | 0, Ht | 0) | 0, Tt = Lr(d, 8) | 0, !Tt)
48820
+ if (Di(ot | 0, c | 0, Ht | 0) | 0, Tt = Gr(d, 8) | 0, !Tt)
48821
48821
  return ft(ot), Ue = 13, Ue | 0;
48822
48822
  e: for (; ; ) {
48823
48823
  E = ot, M = f[E >> 2] | 0, E = f[E + 4 >> 2] | 0, It = we(M | 0, E | 0, 52) | 0, V() | 0, It = It & 15, yt = It + -1 | 0, _e = (It | 0) != 0, st = (T | 0) > 0 | (T | 0) == 0 & d >>> 0 > 0;
@@ -48831,7 +48831,7 @@ var Mn = function(r) {
48831
48831
  for (g = 0, c = 0; ; ) {
48832
48832
  if (g = At(g | 0, c | 0, 1, 0) | 0, c = V() | 0, !((c | 0) < (T | 0) | (c | 0) == (T | 0) & g >>> 0 < d >>> 0))
48833
48833
  break t;
48834
- if (R = ot + (g << 3) | 0, We = f[R >> 2] | 0, R = f[R + 4 >> 2] | 0, !((We | 0) == 0 & (R | 0) == 0)) {
48834
+ if (R = ot + (g << 3) | 0, Fe = f[R >> 2] | 0, R = f[R + 4 >> 2] | 0, !((Fe | 0) == 0 & (R | 0) == 0)) {
48835
48835
  E = R, Ue = 16;
48836
48836
  break e;
48837
48837
  }
@@ -48850,20 +48850,20 @@ var Mn = function(r) {
48850
48850
  if ((L | 0) != (yt | 0) && (I = I | xe, c = c & -15728641 | Se, L >>> 0 >= It >>> 0)) {
48851
48851
  N = yt;
48852
48852
  do
48853
- We = ze(7, 0, (14 - N | 0) * 3 | 0) | 0, N = N + 1 | 0, I = We | I, c = V() | 0 | c;
48853
+ Fe = ze(7, 0, (14 - N | 0) * 3 | 0) | 0, N = N + 1 | 0, I = Fe | I, c = V() | 0 | c;
48854
48854
  while (N >>> 0 < L >>> 0);
48855
48855
  }
48856
48856
  if (Q = Gi(I | 0, c | 0, d | 0, T | 0) | 0, _ = V() | 0, N = Tt + (Q << 3) | 0, L = N, X = f[L >> 2] | 0, L = f[L + 4 >> 2] | 0, !((X | 0) == 0 & (L | 0) == 0)) {
48857
- ue = 0, Pe = 0;
48857
+ ue = 0, Ce = 0;
48858
48858
  do {
48859
- if ((ue | 0) > (T | 0) | (ue | 0) == (T | 0) & Pe >>> 0 > d >>> 0) {
48859
+ if ((ue | 0) > (T | 0) | (ue | 0) == (T | 0) & Ce >>> 0 > d >>> 0) {
48860
48860
  Ue = 31;
48861
48861
  break e;
48862
48862
  }
48863
48863
  if ((X | 0) == (I | 0) & (L & -117440513 | 0) == (c | 0)) {
48864
- ee = we(X | 0, L | 0, 56) | 0, V() | 0, ee = ee & 7, ae = ee + 1 | 0, We = we(X | 0, L | 0, 45) | 0, V() | 0;
48864
+ ee = we(X | 0, L | 0, 56) | 0, V() | 0, ee = ee & 7, ae = ee + 1 | 0, Fe = we(X | 0, L | 0, 45) | 0, V() | 0;
48865
48865
  n: do
48866
- if (!(Tn(We & 127) | 0))
48866
+ if (!(Tn(Fe & 127) | 0))
48867
48867
  L = 7;
48868
48868
  else {
48869
48869
  if (X = we(X | 0, L | 0, 52) | 0, V() | 0, X = X & 15, !X) {
@@ -48871,7 +48871,7 @@ var Mn = function(r) {
48871
48871
  break;
48872
48872
  }
48873
48873
  for (L = 1; ; ) {
48874
- if (We = ze(7, 0, (15 - L | 0) * 3 | 0) | 0, !((We & I | 0) == 0 & ((V() | 0) & c | 0) == 0)) {
48874
+ if (Fe = ze(7, 0, (15 - L | 0) * 3 | 0) | 0, !((Fe & I | 0) == 0 & ((V() | 0) & c | 0) == 0)) {
48875
48875
  L = 7;
48876
48876
  break n;
48877
48877
  }
@@ -48888,13 +48888,13 @@ var Mn = function(r) {
48888
48888
  Ue = 41;
48889
48889
  break e;
48890
48890
  }
48891
- We = ze(ae | 0, 0, 56) | 0, c = V() | 0 | c & -117440513, Ae = N, f[Ae >> 2] = 0, f[Ae + 4 >> 2] = 0, I = We | I;
48891
+ Fe = ze(ae | 0, 0, 56) | 0, c = V() | 0 | c & -117440513, Ae = N, f[Ae >> 2] = 0, f[Ae + 4 >> 2] = 0, I = Fe | I;
48892
48892
  } else
48893
48893
  Q = At(Q | 0, _ | 0, 1, 0) | 0, Q = Li(Q | 0, V() | 0, d | 0, T | 0) | 0, _ = V() | 0;
48894
- Pe = At(Pe | 0, ue | 0, 1, 0) | 0, ue = V() | 0, N = Tt + (Q << 3) | 0, L = N, X = f[L >> 2] | 0, L = f[L + 4 >> 2] | 0;
48894
+ Ce = At(Ce | 0, ue | 0, 1, 0) | 0, ue = V() | 0, N = Tt + (Q << 3) | 0, L = N, X = f[L >> 2] | 0, L = f[L + 4 >> 2] | 0;
48895
48895
  } while (!((X | 0) == 0 & (L | 0) == 0));
48896
48896
  }
48897
- We = N, f[We >> 2] = I, f[We + 4 >> 2] = c;
48897
+ Fe = N, f[Fe >> 2] = I, f[Fe + 4 >> 2] = c;
48898
48898
  }
48899
48899
  if (g = At(g | 0, R | 0, 1, 0) | 0, R = V() | 0, !((R | 0) < (T | 0) | (R | 0) == (T | 0) & g >>> 0 < d >>> 0))
48900
48900
  break t;
@@ -48902,11 +48902,11 @@ var Mn = function(r) {
48902
48902
  }
48903
48903
  }
48904
48904
  while (!1);
48905
- if (We = At(d | 0, T | 0, 5, 0) | 0, Ae = V() | 0, Ae >>> 0 < 0 | (Ae | 0) == 0 & We >>> 0 < 11) {
48905
+ if (Fe = At(d | 0, T | 0, 5, 0) | 0, Ae = V() | 0, Ae >>> 0 < 0 | (Ae | 0) == 0 & Fe >>> 0 < 11) {
48906
48906
  Ue = 85;
48907
48907
  break;
48908
48908
  }
48909
- if (We = qs(d | 0, T | 0, 6, 0) | 0, V() | 0, We = Lr(We, 8) | 0, !We) {
48909
+ if (Fe = qs(d | 0, T | 0, 6, 0) | 0, V() | 0, Fe = Gr(Fe, 8) | 0, !Fe) {
48910
48910
  Ue = 48;
48911
48911
  break;
48912
48912
  }
@@ -48931,7 +48931,7 @@ var Mn = function(r) {
48931
48931
  R = ze(I | 0, 0, 56) | 0, g = R | g, R = V() | 0 | Q, I = L, f[I >> 2] = g, f[I + 4 >> 2] = R, I = X + 2 | 0;
48932
48932
  }
48933
48933
  while (!1);
48934
- (I | 0) == 7 ? (Ae = We + (c << 3) | 0, f[Ae >> 2] = g, f[Ae + 4 >> 2] = R & -117440513, c = At(c | 0, ee | 0, 1, 0) | 0, Ae = V() | 0) : Ae = ee;
48934
+ (I | 0) == 7 ? (Ae = Fe + (c << 3) | 0, f[Ae >> 2] = g, f[Ae + 4 >> 2] = R & -117440513, c = At(c | 0, ee | 0, 1, 0) | 0, Ae = V() | 0) : Ae = ee;
48935
48935
  }
48936
48936
  if (ae = At(ae | 0, ue | 0, 1, 0) | 0, ue = V() | 0, (ue | 0) < (T | 0) | (ue | 0) == (T | 0) & ae >>> 0 < d >>> 0)
48937
48937
  ee = Ae;
@@ -48939,7 +48939,7 @@ var Mn = function(r) {
48939
48939
  break;
48940
48940
  }
48941
48941
  if (st) {
48942
- if (Pe = yt >>> 0 > 15, xe = ze(yt | 0, 0, 52) | 0, Se = V() | 0, !_e) {
48942
+ if (Ce = yt >>> 0 > 15, xe = ze(yt | 0, 0, 52) | 0, Se = V() | 0, !_e) {
48943
48943
  for (g = 0, N = 0, I = 0, R = 0; (M | 0) == 0 & (E | 0) == 0 || (yt = A + (g << 3) | 0, f[yt >> 2] = M, f[yt + 4 >> 2] = E, g = At(g | 0, N | 0, 1, 0) | 0, N = V() | 0), I = At(I | 0, R | 0, 1, 0) | 0, R = V() | 0, !!((R | 0) < (T | 0) | (R | 0) == (T | 0) & I >>> 0 < d >>> 0); )
48944
48944
  E = ot + (I << 3) | 0, M = f[E >> 2] | 0, E = f[E + 4 >> 2] | 0;
48945
48945
  E = Ae;
@@ -48948,7 +48948,7 @@ var Mn = function(r) {
48948
48948
  for (g = 0, N = 0, R = 0, I = 0; ; ) {
48949
48949
  do
48950
48950
  if (!((M | 0) == 0 & (E | 0) == 0)) {
48951
- if (_ = we(M | 0, E | 0, 52) | 0, V() | 0, _ = _ & 15, Pe | (_ | 0) < (yt | 0)) {
48951
+ if (_ = we(M | 0, E | 0, 52) | 0, V() | 0, _ = _ & 15, Ce | (_ | 0) < (yt | 0)) {
48952
48952
  Ue = 80;
48953
48953
  break e;
48954
48954
  }
@@ -48988,7 +48988,7 @@ var Mn = function(r) {
48988
48988
  } else
48989
48989
  g = 0, c = 0, E = 0;
48990
48990
  while (!1);
48991
- if (Ys(Tt | 0, 0, Ht | 0) | 0, Di(ot | 0, We | 0, c << 3 | 0) | 0, ft(We), (c | 0) == 0 & (E | 0) == 0) {
48991
+ if (Ys(Tt | 0, 0, Ht | 0) | 0, Di(ot | 0, Fe | 0, c << 3 | 0) | 0, ft(Fe), (c | 0) == 0 & (E | 0) == 0) {
48992
48992
  Ue = 89;
48993
48993
  break;
48994
48994
  } else
@@ -49064,7 +49064,7 @@ var Mn = function(r) {
49064
49064
  function Sy(c, A) {
49065
49065
  return c = c | 0, A = A | 0, A = we(c | 0, A | 0, 52) | 0, V() | 0, A & 1 | 0;
49066
49066
  }
49067
- function wr(c, A) {
49067
+ function Lr(c, A) {
49068
49068
  c = c | 0, A = A | 0;
49069
49069
  var d = 0, T = 0, E = 0;
49070
49070
  if (E = we(c | 0, A | 0, 52) | 0, V() | 0, E = E & 15, !E)
@@ -49515,17 +49515,17 @@ var Mn = function(r) {
49515
49515
  }
49516
49516
  function Iy(c, A, d, T) {
49517
49517
  c = c | 0, A = A | 0, d = d | 0, T = T | 0;
49518
- var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0;
49519
- if (xe = B, B = B + 16 | 0, ue = xe, Pe = we(c | 0, A | 0, 52) | 0, V() | 0, Pe = Pe & 15, d >>> 0 > 15)
49520
- return Pe = 4, B = xe, Pe | 0;
49521
- if ((Pe | 0) < (d | 0))
49522
- return Pe = 12, B = xe, Pe | 0;
49523
- if ((Pe | 0) != (d | 0))
49524
- if (g = ze(d | 0, 0, 52) | 0, g = g | c, I = V() | 0 | A & -15728641, (Pe | 0) > (d | 0)) {
49518
+ var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0;
49519
+ if (xe = B, B = B + 16 | 0, ue = xe, Ce = we(c | 0, A | 0, 52) | 0, V() | 0, Ce = Ce & 15, d >>> 0 > 15)
49520
+ return Ce = 4, B = xe, Ce | 0;
49521
+ if ((Ce | 0) < (d | 0))
49522
+ return Ce = 12, B = xe, Ce | 0;
49523
+ if ((Ce | 0) != (d | 0))
49524
+ if (g = ze(d | 0, 0, 52) | 0, g = g | c, I = V() | 0 | A & -15728641, (Ce | 0) > (d | 0)) {
49525
49525
  N = d;
49526
49526
  do
49527
49527
  ae = ze(7, 0, (14 - N | 0) * 3 | 0) | 0, N = N + 1 | 0, g = ae | g, I = V() | 0 | I;
49528
- while ((N | 0) < (Pe | 0));
49528
+ while ((N | 0) < (Ce | 0));
49529
49529
  ae = g;
49530
49530
  } else
49531
49531
  ae = g;
@@ -49545,20 +49545,20 @@ var Mn = function(r) {
49545
49545
  else
49546
49546
  break;
49547
49547
  }
49548
- if (ee = T, f[ee >> 2] = 0, f[ee + 4 >> 2] = 0, (Pe | 0) > (d | 0)) {
49549
- for (ee = A & -15728641, _ = Pe; ; ) {
49550
- if (Q = _, _ = _ + -1 | 0, _ >>> 0 > 15 | (Pe | 0) < (_ | 0)) {
49548
+ if (ee = T, f[ee >> 2] = 0, f[ee + 4 >> 2] = 0, (Ce | 0) > (d | 0)) {
49549
+ for (ee = A & -15728641, _ = Ce; ; ) {
49550
+ if (Q = _, _ = _ + -1 | 0, _ >>> 0 > 15 | (Ce | 0) < (_ | 0)) {
49551
49551
  M = 19;
49552
49552
  break;
49553
49553
  }
49554
- if ((Pe | 0) != (_ | 0))
49555
- if (g = ze(_ | 0, 0, 52) | 0, g = g | c, N = V() | 0 | ee, (Pe | 0) < (Q | 0))
49554
+ if ((Ce | 0) != (_ | 0))
49555
+ if (g = ze(_ | 0, 0, 52) | 0, g = g | c, N = V() | 0 | ee, (Ce | 0) < (Q | 0))
49556
49556
  X = g;
49557
49557
  else {
49558
49558
  M = _;
49559
49559
  do
49560
49560
  X = ze(7, 0, (14 - M | 0) * 3 | 0) | 0, M = M + 1 | 0, g = X | g, N = V() | 0 | N;
49561
- while ((M | 0) < (Pe | 0));
49561
+ while ((M | 0) < (Ce | 0));
49562
49562
  X = g;
49563
49563
  }
49564
49564
  else
@@ -49592,7 +49592,7 @@ var Mn = function(r) {
49592
49592
  E = 5, M = 42;
49593
49593
  break;
49594
49594
  }
49595
- if (X = N + (((N | 0) != 0 & g) << 31 >> 31) | 0, X | 0 && (M = Pe - Q | 0, M = Vs(7, 0, M, ((M | 0) < 0) << 31 >> 31) | 0, L = V() | 0, g ? (g = $n(M | 0, L | 0, 5, 0) | 0, g = At(g | 0, V() | 0, -5, -1) | 0, g = qs(g | 0, V() | 0, 6, 0) | 0, g = At(g | 0, V() | 0, 1, 0) | 0, N = V() | 0) : (g = M, N = L), Q = X + -1 | 0, Q = $n(M | 0, L | 0, Q | 0, ((Q | 0) < 0) << 31 >> 31 | 0) | 0, Q = At(g | 0, N | 0, Q | 0, V() | 0) | 0, X = V() | 0, L = T, L = At(Q | 0, X | 0, f[L >> 2] | 0, f[L + 4 >> 2] | 0) | 0, X = V() | 0, Q = T, f[Q >> 2] = L, f[Q + 4 >> 2] = X), (_ | 0) <= (d | 0)) {
49595
+ if (X = N + (((N | 0) != 0 & g) << 31 >> 31) | 0, X | 0 && (M = Ce - Q | 0, M = Vs(7, 0, M, ((M | 0) < 0) << 31 >> 31) | 0, L = V() | 0, g ? (g = $n(M | 0, L | 0, 5, 0) | 0, g = At(g | 0, V() | 0, -5, -1) | 0, g = qs(g | 0, V() | 0, 6, 0) | 0, g = At(g | 0, V() | 0, 1, 0) | 0, N = V() | 0) : (g = M, N = L), Q = X + -1 | 0, Q = $n(M | 0, L | 0, Q | 0, ((Q | 0) < 0) << 31 >> 31 | 0) | 0, Q = At(g | 0, N | 0, Q | 0, V() | 0) | 0, X = V() | 0, L = T, L = At(Q | 0, X | 0, f[L >> 2] | 0, f[L + 4 >> 2] | 0) | 0, X = V() | 0, Q = T, f[Q >> 2] = L, f[Q + 4 >> 2] = X), (_ | 0) <= (d | 0)) {
49596
49596
  M = 37;
49597
49597
  break;
49598
49598
  }
@@ -49611,20 +49611,20 @@ var Mn = function(r) {
49611
49611
  while (!1);
49612
49612
  e: do
49613
49613
  if ((M | 0) == 33)
49614
- if (ee = T, f[ee >> 2] = 0, f[ee + 4 >> 2] = 0, (Pe | 0) > (d | 0)) {
49615
- for (g = Pe; ; ) {
49614
+ if (ee = T, f[ee >> 2] = 0, f[ee + 4 >> 2] = 0, (Ce | 0) > (d | 0)) {
49615
+ for (g = Ce; ; ) {
49616
49616
  if (E = we(c | 0, A | 0, (15 - g | 0) * 3 | 0) | 0, V() | 0, E = E & 7, (E | 0) == 7) {
49617
49617
  E = 5;
49618
49618
  break;
49619
49619
  }
49620
- if (R = Pe - g | 0, R = Vs(7, 0, R, ((R | 0) < 0) << 31 >> 31) | 0, E = $n(R | 0, V() | 0, E | 0, 0) | 0, R = V() | 0, ee = T, R = At(f[ee >> 2] | 0, f[ee + 4 >> 2] | 0, E | 0, R | 0) | 0, E = V() | 0, ee = T, f[ee >> 2] = R, f[ee + 4 >> 2] = E, g = g + -1 | 0, (g | 0) <= (d | 0))
49620
+ if (R = Ce - g | 0, R = Vs(7, 0, R, ((R | 0) < 0) << 31 >> 31) | 0, E = $n(R | 0, V() | 0, E | 0, 0) | 0, R = V() | 0, ee = T, R = At(f[ee >> 2] | 0, f[ee + 4 >> 2] | 0, E | 0, R | 0) | 0, E = V() | 0, ee = T, f[ee >> 2] = R, f[ee + 4 >> 2] = E, g = g + -1 | 0, (g | 0) <= (d | 0))
49621
49621
  break e;
49622
49622
  }
49623
49623
  return B = xe, E | 0;
49624
49624
  } else
49625
49625
  E = 0, R = 0;
49626
49626
  while (!1);
49627
- return $a(ae, I, Pe, ue) | 0 && ht(27795, 27122, 1327, 27173), Pe = ue, ue = f[Pe + 4 >> 2] | 0, ((E | 0) > -1 | (E | 0) == -1 & R >>> 0 > 4294967295) & ((ue | 0) > (E | 0) | ((ue | 0) == (E | 0) ? (f[Pe >> 2] | 0) >>> 0 > R >>> 0 : 0)) ? (Pe = 0, B = xe, Pe | 0) : (ht(27795, 27122, 1407, 27158), 0);
49627
+ return $a(ae, I, Ce, ue) | 0 && ht(27795, 27122, 1327, 27173), Ce = ue, ue = f[Ce + 4 >> 2] | 0, ((E | 0) > -1 | (E | 0) == -1 & R >>> 0 > 4294967295) & ((ue | 0) > (E | 0) | ((ue | 0) == (E | 0) ? (f[Ce >> 2] | 0) >>> 0 > R >>> 0 : 0)) ? (Ce = 0, B = xe, Ce | 0) : (ht(27795, 27122, 1407, 27158), 0);
49628
49628
  }
49629
49629
  function yy(c, A, d, T, E, g) {
49630
49630
  c = c | 0, A = A | 0, d = d | 0, T = T | 0, E = E | 0, g = g | 0;
@@ -49852,7 +49852,7 @@ var Mn = function(r) {
49852
49852
  function kp(c, A, d) {
49853
49853
  c = c | 0, A = A | 0, d = d | 0;
49854
49854
  var T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0;
49855
- return Q = +j[A >> 3], L = +j[c >> 3], N = +mt(+((Q - L) * 0.5)), g = +j[A + 8 >> 3], M = +j[c + 8 >> 3], R = +mt(+((g - M) * 0.5)), I = +Ft(+L), X = +Ft(+Q), R = N * N + R * (X * I * R), R = +Ir(+ +Ut(+R), + +Ut(+(1 - R))) * 2, N = +j[d >> 3], Q = +mt(+((N - Q) * 0.5)), T = +j[d + 8 >> 3], g = +mt(+((T - g) * 0.5)), E = +Ft(+N), g = Q * Q + g * (X * E * g), g = +Ir(+ +Ut(+g), + +Ut(+(1 - g))) * 2, N = +mt(+((L - N) * 0.5)), T = +mt(+((M - T) * 0.5)), T = N * N + T * (I * E * T), T = +Ir(+ +Ut(+T), + +Ut(+(1 - T))) * 2, E = (R + g + T) * 0.5, +(+Za(+ +Ut(+(+Mr(+(E * 0.5)) * +Mr(+((E - R) * 0.5)) * +Mr(+((E - g) * 0.5)) * +Mr(+((E - T) * 0.5))))) * 4);
49855
+ return Q = +j[A >> 3], L = +j[c >> 3], N = +mt(+((Q - L) * 0.5)), g = +j[A + 8 >> 3], M = +j[c + 8 >> 3], R = +mt(+((g - M) * 0.5)), I = +Ft(+L), X = +Ft(+Q), R = N * N + R * (X * I * R), R = +Ir(+ +Ut(+R), + +Ut(+(1 - R))) * 2, N = +j[d >> 3], Q = +mt(+((N - Q) * 0.5)), T = +j[d + 8 >> 3], g = +mt(+((T - g) * 0.5)), E = +Ft(+N), g = Q * Q + g * (X * E * g), g = +Ir(+ +Ut(+g), + +Ut(+(1 - g))) * 2, N = +mt(+((L - N) * 0.5)), T = +mt(+((M - T) * 0.5)), T = N * N + T * (I * E * T), T = +Ir(+ +Ut(+T), + +Ut(+(1 - T))) * 2, E = (R + g + T) * 0.5, +(+Za(+ +Ut(+(+wr(+(E * 0.5)) * +wr(+((E - R) * 0.5)) * +wr(+((E - g) * 0.5)) * +wr(+((E - T) * 0.5))))) * 4);
49856
49856
  }
49857
49857
  function j2(c, A, d) {
49858
49858
  c = c | 0, A = A | 0, d = d | 0;
@@ -49918,7 +49918,7 @@ var Mn = function(r) {
49918
49918
  function ky(c) {
49919
49919
  c = c | 0;
49920
49920
  var A = 0, d = 0, T = 0;
49921
- return A = Lr(1, 12) | 0, A || ht(27280, 27235, 49, 27293), d = c + 4 | 0, T = f[d >> 2] | 0, T | 0 ? (T = T + 8 | 0, f[T >> 2] = A, f[d >> 2] = A, A | 0) : (f[c >> 2] | 0 && ht(27310, 27235, 61, 27333), T = c, f[T >> 2] = A, f[d >> 2] = A, A | 0);
49921
+ return A = Gr(1, 12) | 0, A || ht(27280, 27235, 49, 27293), d = c + 4 | 0, T = f[d >> 2] | 0, T | 0 ? (T = T + 8 | 0, f[T >> 2] = A, f[d >> 2] = A, A | 0) : (f[c >> 2] | 0 && ht(27310, 27235, 61, 27333), T = c, f[T >> 2] = A, f[d >> 2] = A, A | 0);
49922
49922
  }
49923
49923
  function jy(c, A) {
49924
49924
  c = c | 0, A = A | 0;
@@ -49946,7 +49946,7 @@ var Mn = function(r) {
49946
49946
  }
49947
49947
  function By(c) {
49948
49948
  c = c | 0;
49949
- var A = 0, d = 0, T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0, We = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0, ot = 0, Ue = 0, bt = 0, sn = 0, Ct = 0;
49949
+ var A = 0, d = 0, T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0, Fe = 0, st = 0, _e = 0, It = 0, yt = 0, Ht = 0, Tt = 0, ot = 0, Ue = 0, bt = 0, sn = 0, Ct = 0;
49950
49950
  if (E = c + 8 | 0, f[E >> 2] | 0)
49951
49951
  return Ct = 1, Ct | 0;
49952
49952
  if (T = f[c >> 2] | 0, !T)
@@ -49957,7 +49957,7 @@ var Mn = function(r) {
49957
49957
  while (A | 0);
49958
49958
  if (d >>> 0 < 2)
49959
49959
  return Ct = 0, Ct | 0;
49960
- bt = Z0(d << 2) | 0, bt || ht(27396, 27235, 317, 27415), Ue = Z0(d << 5) | 0, Ue || ht(27437, 27235, 321, 27415), f[c >> 2] = 0, st = c + 4 | 0, f[st >> 2] = 0, f[E >> 2] = 0, d = 0, ot = 0, We = 0, X = 0;
49960
+ bt = Z0(d << 2) | 0, bt || ht(27396, 27235, 317, 27415), Ue = Z0(d << 5) | 0, Ue || ht(27437, 27235, 321, 27415), f[c >> 2] = 0, st = c + 4 | 0, f[st >> 2] = 0, f[E >> 2] = 0, d = 0, ot = 0, Fe = 0, X = 0;
49961
49961
  e: for (; ; ) {
49962
49962
  if (L = f[T >> 2] | 0, L) {
49963
49963
  g = 0, R = L;
@@ -49974,7 +49974,7 @@ var Mn = function(r) {
49974
49974
  Ae = +j[A + 8 >> 3], Tt = A + 16 | 0, Ht = f[Tt >> 2] | 0, Ht = Ht | 0 ? Ht : L, Se = +j[Ht + 8 >> 3], g = g + (+j[A >> 3] + +j[Ht >> 3]) * ((Se < 0 ? Se + 6.283185307179586 : Se) - (Ae < 0 ? Ae + 6.283185307179586 : Ae)), A = f[(A | 0 ? Tt : T) >> 2] | 0;
49975
49975
  while (A | 0);
49976
49976
  }
49977
- g > 0 ? (f[bt + (ot << 2) >> 2] = T, ot = ot + 1 | 0, E = We, A = X) : Ct = 19;
49977
+ g > 0 ? (f[bt + (ot << 2) >> 2] = T, ot = ot + 1 | 0, E = Fe, A = X) : Ct = 19;
49978
49978
  } else
49979
49979
  Ct = 19;
49980
49980
  if ((Ct | 0) == 19) {
@@ -49985,7 +49985,7 @@ var Mn = function(r) {
49985
49985
  Ct = 21;
49986
49986
  break e;
49987
49987
  }
49988
- if (d = Lr(1, 12) | 0, !d) {
49988
+ if (d = Gr(1, 12) | 0, !d) {
49989
49989
  Ct = 23;
49990
49990
  break e;
49991
49991
  }
@@ -50001,16 +50001,16 @@ var Mn = function(r) {
50001
50001
  break;
50002
50002
  }
50003
50003
  while (!1);
50004
- if (f[R >> 2] = T, f[E >> 2] = T, R = Ue + (We << 5) | 0, M = f[T >> 2] | 0, M) {
50005
- for (L = Ue + (We << 5) + 8 | 0, j[L >> 3] = 17976931348623157e292, X = Ue + (We << 5) + 24 | 0, j[X >> 3] = 17976931348623157e292, j[R >> 3] = -17976931348623157e292, Q = Ue + (We << 5) + 16 | 0, j[Q >> 3] = -17976931348623157e292, Pe = 17976931348623157e292, xe = -17976931348623157e292, E = 0, _ = M, N = 17976931348623157e292, ae = 17976931348623157e292, ue = -17976931348623157e292, I = -17976931348623157e292; g = +j[_ >> 3], Ae = +j[_ + 8 >> 3], _ = f[_ + 16 >> 2] | 0, ee = (_ | 0) == 0, Se = +j[(ee ? M : _) + 8 >> 3], g < N && (j[L >> 3] = g, N = g), Ae < ae && (j[X >> 3] = Ae, ae = Ae), g > ue ? j[R >> 3] = g : g = ue, Ae > I && (j[Q >> 3] = Ae, I = Ae), Pe = Ae > 0 & Ae < Pe ? Ae : Pe, xe = Ae < 0 & Ae > xe ? Ae : xe, E = E | +Pt(+(Ae - Se)) > 3.141592653589793, !ee; )
50004
+ if (f[R >> 2] = T, f[E >> 2] = T, R = Ue + (Fe << 5) | 0, M = f[T >> 2] | 0, M) {
50005
+ for (L = Ue + (Fe << 5) + 8 | 0, j[L >> 3] = 17976931348623157e292, X = Ue + (Fe << 5) + 24 | 0, j[X >> 3] = 17976931348623157e292, j[R >> 3] = -17976931348623157e292, Q = Ue + (Fe << 5) + 16 | 0, j[Q >> 3] = -17976931348623157e292, Ce = 17976931348623157e292, xe = -17976931348623157e292, E = 0, _ = M, N = 17976931348623157e292, ae = 17976931348623157e292, ue = -17976931348623157e292, I = -17976931348623157e292; g = +j[_ >> 3], Ae = +j[_ + 8 >> 3], _ = f[_ + 16 >> 2] | 0, ee = (_ | 0) == 0, Se = +j[(ee ? M : _) + 8 >> 3], g < N && (j[L >> 3] = g, N = g), Ae < ae && (j[X >> 3] = Ae, ae = Ae), g > ue ? j[R >> 3] = g : g = ue, Ae > I && (j[Q >> 3] = Ae, I = Ae), Ce = Ae > 0 & Ae < Ce ? Ae : Ce, xe = Ae < 0 & Ae > xe ? Ae : xe, E = E | +Pt(+(Ae - Se)) > 3.141592653589793, !ee; )
50006
50006
  ue = g;
50007
- E && (j[Q >> 3] = xe, j[X >> 3] = Pe);
50007
+ E && (j[Q >> 3] = xe, j[X >> 3] = Ce);
50008
50008
  } else
50009
50009
  f[R >> 2] = 0, f[R + 4 >> 2] = 0, f[R + 8 >> 2] = 0, f[R + 12 >> 2] = 0, f[R + 16 >> 2] = 0, f[R + 20 >> 2] = 0, f[R + 24 >> 2] = 0, f[R + 28 >> 2] = 0;
50010
- E = We + 1 | 0;
50010
+ E = Fe + 1 | 0;
50011
50011
  }
50012
50012
  if (Tt = T + 8 | 0, T = f[Tt >> 2] | 0, f[Tt >> 2] = 0, T)
50013
- We = E, X = A;
50013
+ Fe = E, X = A;
50014
50014
  else {
50015
50015
  Ct = 45;
50016
50016
  break;
@@ -50029,7 +50029,7 @@ var Mn = function(r) {
50029
50029
  if (_e = f[bt + (It << 2) >> 2] | 0, Tt)
50030
50030
  Ct = 73;
50031
50031
  else {
50032
- if (We = Z0(yt) | 0, !We) {
50032
+ if (Fe = Z0(yt) | 0, !Fe) {
50033
50033
  Ct = 50;
50034
50034
  break;
50035
50035
  }
@@ -50041,24 +50041,24 @@ var Mn = function(r) {
50041
50041
  if (Ht)
50042
50042
  d = 0;
50043
50043
  else {
50044
- for (E = 0, d = 0, R = c; T = Ue + (E << 5) | 0, Bp(f[R >> 2] | 0, T, f[_e >> 2] | 0) | 0 ? (f[We + (d << 2) >> 2] = R, f[st + (d << 2) >> 2] = T, ee = d + 1 | 0) : ee = d, R = f[R + 8 >> 2] | 0, R; )
50044
+ for (E = 0, d = 0, R = c; T = Ue + (E << 5) | 0, Bp(f[R >> 2] | 0, T, f[_e >> 2] | 0) | 0 ? (f[Fe + (d << 2) >> 2] = R, f[st + (d << 2) >> 2] = T, ee = d + 1 | 0) : ee = d, R = f[R + 8 >> 2] | 0, R; )
50045
50045
  E = E + 1 | 0, d = ee;
50046
50046
  if ((ee | 0) > 0)
50047
- if (T = f[We >> 2] | 0, (ee | 0) == 1)
50047
+ if (T = f[Fe >> 2] | 0, (ee | 0) == 1)
50048
50048
  d = T;
50049
50049
  else
50050
50050
  for (Q = 0, _ = -1, d = T, X = T; ; ) {
50051
- for (M = f[X >> 2] | 0, T = 0, R = 0; E = f[f[We + (R << 2) >> 2] >> 2] | 0, (E | 0) == (M | 0) ? L = T : L = T + ((Bp(E, f[st + (R << 2) >> 2] | 0, f[M >> 2] | 0) | 0) & 1) | 0, R = R + 1 | 0, (R | 0) != (ee | 0); )
50051
+ for (M = f[X >> 2] | 0, T = 0, R = 0; E = f[f[Fe + (R << 2) >> 2] >> 2] | 0, (E | 0) == (M | 0) ? L = T : L = T + ((Bp(E, f[st + (R << 2) >> 2] | 0, f[M >> 2] | 0) | 0) & 1) | 0, R = R + 1 | 0, (R | 0) != (ee | 0); )
50052
50052
  T = L;
50053
50053
  if (E = (L | 0) > (_ | 0), d = E ? X : d, T = Q + 1 | 0, (T | 0) == (ee | 0))
50054
50054
  break t;
50055
- Q = T, _ = E ? L : _, X = f[We + (T << 2) >> 2] | 0;
50055
+ Q = T, _ = E ? L : _, X = f[Fe + (T << 2) >> 2] | 0;
50056
50056
  }
50057
50057
  else
50058
50058
  d = 0;
50059
50059
  }
50060
50060
  while (!1);
50061
- if (ft(We), ft(st), d) {
50061
+ if (ft(Fe), ft(st), d) {
50062
50062
  if (E = d + 4 | 0, T = f[E >> 2] | 0, T)
50063
50063
  d = T + 8 | 0;
50064
50064
  else if (f[d >> 2] | 0) {
@@ -50129,18 +50129,18 @@ var Mn = function(r) {
50129
50129
  }
50130
50130
  function Es(c, A, d, T, E) {
50131
50131
  c = c | 0, A = A | 0, d = d | 0, T = T | 0, E = E | 0;
50132
- var g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0;
50133
- if (xe = B, B = B + 32 | 0, Pe = xe + 16 | 0, ue = xe, g = we(c | 0, A | 0, 52) | 0, V() | 0, g = g & 15, _ = we(d | 0, T | 0, 52) | 0, V() | 0, (g | 0) != (_ & 15 | 0))
50134
- return Pe = 12, B = xe, Pe | 0;
50132
+ var g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0;
50133
+ if (xe = B, B = B + 32 | 0, Ce = xe + 16 | 0, ue = xe, g = we(c | 0, A | 0, 52) | 0, V() | 0, g = g & 15, _ = we(d | 0, T | 0, 52) | 0, V() | 0, (g | 0) != (_ & 15 | 0))
50134
+ return Ce = 12, B = xe, Ce | 0;
50135
50135
  if (M = we(c | 0, A | 0, 45) | 0, V() | 0, M = M & 127, L = we(d | 0, T | 0, 45) | 0, V() | 0, L = L & 127, M >>> 0 > 121 | L >>> 0 > 121)
50136
- return Pe = 5, B = xe, Pe | 0;
50136
+ return Ce = 5, B = xe, Ce | 0;
50137
50137
  if (_ = (M | 0) != (L | 0), _) {
50138
50138
  if (I = g2(M, L) | 0, (I | 0) == 7)
50139
- return Pe = 1, B = xe, Pe | 0;
50139
+ return Ce = 1, B = xe, Ce | 0;
50140
50140
  N = g2(L, M) | 0, (N | 0) == 7 ? ht(27514, 27538, 161, 27548) : (ee = I, R = N);
50141
50141
  } else
50142
50142
  ee = 0, R = 0;
50143
- X = Tn(M) | 0, Q = Tn(L) | 0, f[Pe >> 2] = 0, f[Pe + 4 >> 2] = 0, f[Pe + 8 >> 2] = 0, f[Pe + 12 >> 2] = 0;
50143
+ X = Tn(M) | 0, Q = Tn(L) | 0, f[Ce >> 2] = 0, f[Ce + 4 >> 2] = 0, f[Ce + 8 >> 2] = 0, f[Ce + 12 >> 2] = 0;
50144
50144
  do
50145
50145
  if (ee) {
50146
50146
  if (L = f[4272 + (M * 28 | 0) + (ee << 2) >> 2] | 0, I = (L | 0) > 0, Q)
@@ -50160,8 +50160,8 @@ var Mn = function(r) {
50160
50160
  L = R, M = N, N = I;
50161
50161
  } else
50162
50162
  L = R, M = d, N = T;
50163
- if (G2(M, N, Pe) | 0, _ || ht(27563, 27538, 191, 27548), I = (X | 0) != 0, R = (Q | 0) != 0, I & R && ht(27590, 27538, 192, 27548), I) {
50164
- if (R = wr(c, A) | 0, (R | 0) == 7) {
50163
+ if (G2(M, N, Ce) | 0, _ || ht(27563, 27538, 191, 27548), I = (X | 0) != 0, R = (Q | 0) != 0, I & R && ht(27590, 27538, 192, 27548), I) {
50164
+ if (R = Lr(c, A) | 0, (R | 0) == 7) {
50165
50165
  g = 5;
50166
50166
  break;
50167
50167
  }
@@ -50171,7 +50171,7 @@ var Mn = function(r) {
50171
50171
  }
50172
50172
  N = f[21168 + (R * 28 | 0) + (ee << 2) >> 2] | 0, M = N;
50173
50173
  } else if (R) {
50174
- if (R = wr(M, N) | 0, (R | 0) == 7) {
50174
+ if (R = Lr(M, N) | 0, (R | 0) == 7) {
50175
50175
  g = 5;
50176
50176
  break;
50177
50177
  }
@@ -50186,7 +50186,7 @@ var Mn = function(r) {
50186
50186
  g = 5;
50187
50187
  else {
50188
50188
  if ((N | 0) > 0) {
50189
- I = Pe + 4 | 0, R = 0;
50189
+ I = Ce + 4 | 0, R = 0;
50190
50190
  do
50191
50191
  iA(I), R = R + 1 | 0;
50192
50192
  while ((R | 0) != (N | 0));
@@ -50200,15 +50200,15 @@ var Mn = function(r) {
50200
50200
  iA(ue), g = g + 1 | 0;
50201
50201
  while ((g | 0) != (M | 0));
50202
50202
  }
50203
- ae = Pe + 4 | 0, yr(ae, ue, ae), ur(ae), ae = 51;
50203
+ ae = Ce + 4 | 0, yr(ae, ue, ae), ur(ae), ae = 51;
50204
50204
  }
50205
- } else if (G2(d, T, Pe) | 0, (X | 0) != 0 & (Q | 0) != 0)
50206
- if ((L | 0) != (M | 0) && ht(27621, 27538, 261, 27548), R = wr(c, A) | 0, g = wr(d, T) | 0, (R | 0) == 7 | (g | 0) == 7)
50205
+ } else if (G2(d, T, Ce) | 0, (X | 0) != 0 & (Q | 0) != 0)
50206
+ if ((L | 0) != (M | 0) && ht(27621, 27538, 261, 27548), R = Lr(c, A) | 0, g = Lr(d, T) | 0, (R | 0) == 7 | (g | 0) == 7)
50207
50207
  g = 5;
50208
50208
  else if (Le[22e3 + (R * 7 | 0) + g >> 0] | 0)
50209
50209
  g = 1;
50210
50210
  else if (R = f[21168 + (R * 28 | 0) + (g << 2) >> 2] | 0, (R | 0) > 0) {
50211
- I = Pe + 4 | 0, g = 0;
50211
+ I = Ce + 4 | 0, g = 0;
50212
50212
  do
50213
50213
  iA(I), g = g + 1 | 0;
50214
50214
  while ((g | 0) != (R | 0));
@@ -50218,11 +50218,11 @@ var Mn = function(r) {
50218
50218
  else
50219
50219
  ae = 51;
50220
50220
  while (!1);
50221
- return (ae | 0) == 51 && (g = Pe + 4 | 0, f[E >> 2] = f[g >> 2], f[E + 4 >> 2] = f[g + 4 >> 2], f[E + 8 >> 2] = f[g + 8 >> 2], g = 0), Pe = g, B = xe, Pe | 0;
50221
+ return (ae | 0) == 51 && (g = Ce + 4 | 0, f[E >> 2] = f[g >> 2], f[E + 4 >> 2] = f[g + 4 >> 2], f[E + 8 >> 2] = f[g + 8 >> 2], g = 0), Ce = g, B = xe, Ce | 0;
50222
50222
  }
50223
50223
  function zp(c, A, d, T) {
50224
50224
  c = c | 0, A = A | 0, d = d | 0, T = T | 0;
50225
- var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0;
50225
+ var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0;
50226
50226
  if (ae = B, B = B + 48 | 0, M = ae + 36 | 0, R = ae + 24 | 0, I = ae + 12 | 0, N = ae, E = we(c | 0, A | 0, 52) | 0, V() | 0, E = E & 15, Q = we(c | 0, A | 0, 45) | 0, V() | 0, Q = Q & 127, Q >>> 0 > 121)
50227
50227
  return T = 5, B = ae, T | 0;
50228
50228
  if (L = Tn(Q) | 0, ze(E | 0, 0, 52) | 0, ue = V() | 0 | 134225919, g = T, f[g >> 2] = -1, f[g + 4 >> 2] = ue, !E)
@@ -50241,7 +50241,7 @@ var Mn = function(r) {
50241
50241
  }
50242
50242
  f[I >> 2] = f[M >> 2], f[I + 4 >> 2] = f[M + 4 >> 2], f[I + 8 >> 2] = f[M + 8 >> 2], ko(I);
50243
50243
  }
50244
- if (y2(R, I, N), ur(N), E = T, xe = f[E >> 2] | 0, E = f[E + 4 >> 2] | 0, Se = (15 - g | 0) * 3 | 0, Pe = ze(7, 0, Se | 0) | 0, E = E & ~(V() | 0), Se = ze(sA(N) | 0, 0, Se | 0) | 0, E = V() | 0 | E, ue = T, f[ue >> 2] = Se | xe & ~Pe, f[ue + 4 >> 2] = E, (g | 0) <= 1) {
50244
+ if (y2(R, I, N), ur(N), E = T, xe = f[E >> 2] | 0, E = f[E + 4 >> 2] | 0, Se = (15 - g | 0) * 3 | 0, Ce = ze(7, 0, Se | 0) | 0, E = E & ~(V() | 0), Se = ze(sA(N) | 0, 0, Se | 0) | 0, E = V() | 0 | E, ue = T, f[ue >> 2] = Se | xe & ~Ce, f[ue + 4 >> 2] = E, (g | 0) <= 1) {
50245
50245
  d = 14;
50246
50246
  break;
50247
50247
  }
@@ -50253,7 +50253,7 @@ var Mn = function(r) {
50253
50253
  t: do
50254
50254
  if (d) {
50255
50255
  if (L) {
50256
- if (E = wr(c, A) | 0, (E | 0) == 7) {
50256
+ if (E = Lr(c, A) | 0, (E | 0) == 7) {
50257
50257
  E = 5;
50258
50258
  break e;
50259
50259
  }
@@ -50298,7 +50298,7 @@ var Mn = function(r) {
50298
50298
  d = Bo(d, E) | 0, E = V() | 0, Se = T, f[Se >> 2] = d, f[Se + 4 >> 2] = E, g = g + 1 | 0;
50299
50299
  while ((g | 0) != (I | 0));
50300
50300
  }
50301
- if (E = wr(d, E) | 0, (E | 0) == 7 && ht(27795, 27538, 440, 27678), d = O2(ee) | 0, d = f[(d ? 21792 : 21584) + (R * 28 | 0) + (E << 2) >> 2] | 0, (d | 0) < 0 && ht(27795, 27538, 454, 27678), !d)
50301
+ if (E = Lr(d, E) | 0, (E | 0) == 7 && ht(27795, 27538, 440, 27678), d = O2(ee) | 0, d = f[(d ? 21792 : 21584) + (R * 28 | 0) + (E << 2) >> 2] | 0, (d | 0) < 0 && ht(27795, 27538, 454, 27678), !d)
50302
50302
  E = ee, d = 58;
50303
50303
  else {
50304
50304
  R = T, E = 0, g = f[R >> 2] | 0, R = f[R + 4 >> 2] | 0;
@@ -50308,7 +50308,7 @@ var Mn = function(r) {
50308
50308
  E = ee, d = 58;
50309
50309
  }
50310
50310
  } else if ((L | 0) != 0 & (N | 0) != 0) {
50311
- if (d = wr(c, A) | 0, g = T, g = wr(f[g >> 2] | 0, f[g + 4 >> 2] | 0) | 0, (d | 0) == 7 | (g | 0) == 7) {
50311
+ if (d = Lr(c, A) | 0, g = T, g = Lr(f[g >> 2] | 0, f[g + 4 >> 2] | 0) | 0, (d | 0) == 7 | (g | 0) == 7) {
50312
50312
  E = 5;
50313
50313
  break e;
50314
50314
  }
@@ -50328,11 +50328,11 @@ var Mn = function(r) {
50328
50328
  } else
50329
50329
  d = 58;
50330
50330
  while (!1);
50331
- if ((d | 0) == 58 && N && (d = 59), (d | 0) == 59 && (Se = T, (wr(f[Se >> 2] | 0, f[Se + 4 >> 2] | 0) | 0) == 1)) {
50331
+ if ((d | 0) == 58 && N && (d = 59), (d | 0) == 59 && (Se = T, (Lr(f[Se >> 2] | 0, f[Se + 4 >> 2] | 0) | 0) == 1)) {
50332
50332
  E = 9;
50333
50333
  break;
50334
50334
  }
50335
- Se = T, Pe = f[Se >> 2] | 0, Se = f[Se + 4 >> 2] & -1040385, xe = ze(E | 0, 0, 45) | 0, Se = Se | (V() | 0), E = T, f[E >> 2] = Pe | xe, f[E + 4 >> 2] = Se, E = 0;
50335
+ Se = T, Ce = f[Se >> 2] | 0, Se = f[Se + 4 >> 2] & -1040385, xe = ze(E | 0, 0, 45) | 0, Se = Se | (V() | 0), E = T, f[E >> 2] = Ce | xe, f[E + 4 >> 2] = Se, E = 0;
50336
50336
  } else
50337
50337
  E = 1;
50338
50338
  while (!1);
@@ -50360,15 +50360,15 @@ var Mn = function(r) {
50360
50360
  }
50361
50361
  function Xy(c, A, d, T, E) {
50362
50362
  c = c | 0, A = A | 0, d = d | 0, T = T | 0, E = E | 0;
50363
- var g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0, We = 0, st = 0, _e = 0, It = 0;
50364
- if (_e = B, B = B + 48 | 0, We = _e + 24 | 0, R = _e + 12 | 0, st = _e, g = Es(c, A, c, A, We) | 0, !g && (g = Es(c, A, d, T, R) | 0, !g)) {
50365
- Se = P2(We, R) | 0, Ae = ((Se | 0) < 0) << 31 >> 31, f[We >> 2] = 0, f[We + 4 >> 2] = 0, f[We + 8 >> 2] = 0, f[R >> 2] = 0, f[R + 4 >> 2] = 0, f[R + 8 >> 2] = 0, Es(c, A, c, A, We) | 0 && ht(27795, 27538, 692, 27747), Es(c, A, d, T, R) | 0 && ht(27795, 27538, 697, 27747), Np(We), Np(R), L = Se | 0 ? 1 / +(Se | 0) : 0, d = f[We >> 2] | 0, ae = L * +((f[R >> 2] | 0) - d | 0), ue = We + 4 | 0, T = f[ue >> 2] | 0, Pe = L * +((f[R + 4 >> 2] | 0) - T | 0), xe = We + 8 | 0, g = f[xe >> 2] | 0, L = L * +((f[R + 8 >> 2] | 0) - g | 0), f[st >> 2] = d, X = st + 4 | 0, f[X >> 2] = T, Q = st + 8 | 0, f[Q >> 2] = g;
50363
+ var g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0, Fe = 0, st = 0, _e = 0, It = 0;
50364
+ if (_e = B, B = B + 48 | 0, Fe = _e + 24 | 0, R = _e + 12 | 0, st = _e, g = Es(c, A, c, A, Fe) | 0, !g && (g = Es(c, A, d, T, R) | 0, !g)) {
50365
+ Se = P2(Fe, R) | 0, Ae = ((Se | 0) < 0) << 31 >> 31, f[Fe >> 2] = 0, f[Fe + 4 >> 2] = 0, f[Fe + 8 >> 2] = 0, f[R >> 2] = 0, f[R + 4 >> 2] = 0, f[R + 8 >> 2] = 0, Es(c, A, c, A, Fe) | 0 && ht(27795, 27538, 692, 27747), Es(c, A, d, T, R) | 0 && ht(27795, 27538, 697, 27747), Np(Fe), Np(R), L = Se | 0 ? 1 / +(Se | 0) : 0, d = f[Fe >> 2] | 0, ae = L * +((f[R >> 2] | 0) - d | 0), ue = Fe + 4 | 0, T = f[ue >> 2] | 0, Ce = L * +((f[R + 4 >> 2] | 0) - T | 0), xe = Fe + 8 | 0, g = f[xe >> 2] | 0, L = L * +((f[R + 8 >> 2] | 0) - g | 0), f[st >> 2] = d, X = st + 4 | 0, f[X >> 2] = T, Q = st + 8 | 0, f[Q >> 2] = g;
50366
50366
  e: do
50367
50367
  if ((Se | 0) < 0)
50368
50368
  g = 0;
50369
50369
  else
50370
50370
  for (_ = 0, ee = 0; ; ) {
50371
- N = +(ee >>> 0) + 4294967296 * +(_ | 0), It = ae * N + +(d | 0), I = Pe * N + +(T | 0), N = L * N + +(g | 0), d = ~~+uA(+It), R = ~~+uA(+I), g = ~~+uA(+N), It = +Pt(+(+(d | 0) - It)), I = +Pt(+(+(R | 0) - I)), N = +Pt(+(+(g | 0) - N));
50371
+ N = +(ee >>> 0) + 4294967296 * +(_ | 0), It = ae * N + +(d | 0), I = Ce * N + +(T | 0), N = L * N + +(g | 0), d = ~~+uA(+It), R = ~~+uA(+I), g = ~~+uA(+N), It = +Pt(+(+(d | 0) - It)), I = +Pt(+(+(R | 0) - I)), N = +Pt(+(+(g | 0) - N));
50372
50372
  do
50373
50373
  if (It > I & It > N)
50374
50374
  d = 0 - (R + g) | 0, T = R;
@@ -50386,7 +50386,7 @@ var Mn = function(r) {
50386
50386
  g = 0;
50387
50387
  break e;
50388
50388
  }
50389
- d = At(ee | 0, _ | 0, 1, 0) | 0, T = V() | 0, _ = T, ee = d, d = f[We >> 2] | 0, T = f[ue >> 2] | 0, g = f[xe >> 2] | 0;
50389
+ d = At(ee | 0, _ | 0, 1, 0) | 0, T = V() | 0, _ = T, ee = d, d = f[Fe >> 2] | 0, T = f[ue >> 2] | 0, g = f[xe >> 2] | 0;
50390
50390
  }
50391
50391
  while (!1);
50392
50392
  return st = g, B = _e, st | 0;
@@ -50434,7 +50434,7 @@ var Mn = function(r) {
50434
50434
  T = I, f[T >> 2] = 0, f[T + 4 >> 2] = 0, f[I + 8 >> 2] = E, f[I + 12 >> 2] = -1, T = I + 16 | 0, N = I + 29 | 0, f[T >> 2] = 0, f[T + 4 >> 2] = 0, f[T + 8 >> 2] = 0, Le[T + 12 >> 0] = 0, Le[N >> 0] = Le[g >> 0] | 0, Le[N + 1 >> 0] = Le[g + 1 >> 0] | 0, Le[N + 2 >> 0] = Le[g + 2 >> 0] | 0;
50435
50435
  break;
50436
50436
  }
50437
- if (E = Lr((f[A + 8 >> 2] | 0) + 1 | 0, 32) | 0, E) {
50437
+ if (E = Gr((f[A + 8 >> 2] | 0) + 1 | 0, 32) | 0, E) {
50438
50438
  z2(A, E), L = I, f[L >> 2] = N, f[L + 4 >> 2] = R, f[I + 8 >> 2] = 0, f[I + 12 >> 2] = d, f[I + 16 >> 2] = T, f[I + 20 >> 2] = A, f[I + 24 >> 2] = E, Le[I + 28 >> 0] = 0, N = I + 29 | 0, Le[N >> 0] = Le[g >> 0] | 0, Le[N + 1 >> 0] = Le[g + 1 >> 0] | 0, Le[N + 2 >> 0] = Le[g + 2 >> 0] | 0;
50439
50439
  break;
50440
50440
  } else {
@@ -50448,7 +50448,7 @@ var Mn = function(r) {
50448
50448
  }
50449
50449
  function AA(c) {
50450
50450
  c = c | 0;
50451
- var A = 0, d = 0, T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0;
50451
+ var A = 0, d = 0, T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0;
50452
50452
  if (Ae = B, B = B + 336 | 0, _ = Ae + 168 | 0, ee = Ae, T = c, d = f[T >> 2] | 0, T = f[T + 4 >> 2] | 0, (d | 0) == 0 & (T | 0) == 0) {
50453
50453
  B = Ae;
50454
50454
  return;
@@ -50460,7 +50460,7 @@ var Mn = function(r) {
50460
50460
  xe = c + 16 | 0, A = f[xe >> 2] | 0, E = A & 15;
50461
50461
  e: do
50462
50462
  if ((d | 0) == 0 & (T | 0) == 0)
50463
- Pe = c + 24 | 0;
50463
+ Ce = c + 24 | 0;
50464
50464
  else {
50465
50465
  ae = c + 12 | 0, X = (E | 0) == 3, L = A & 255, N = (E | 1 | 0) == 3, Q = c + 24 | 0, M = (E + -1 | 0) >>> 0 < 3, R = (E | 2 | 0) == 3, I = ee + 8 | 0;
50466
50466
  t: for (; ; ) {
@@ -50552,7 +50552,7 @@ var Mn = function(r) {
50552
50552
  ue = 73;
50553
50553
  while (!1);
50554
50554
  if ((ue | 0) == 73 && (ue = 0, d = Up(d, T) | 0, T = V() | 0), (d | 0) == 0 & (T | 0) == 0) {
50555
- Pe = Q;
50555
+ Ce = Q;
50556
50556
  break e;
50557
50557
  }
50558
50558
  }
@@ -50574,7 +50574,7 @@ var Mn = function(r) {
50574
50574
  return;
50575
50575
  }
50576
50576
  case 32: {
50577
- A = f[Q >> 2] | 0, A | 0 && ft(A), Pe = c, f[Pe >> 2] = 0, f[Pe + 4 >> 2] = 0, f[Se >> 2] = 0, f[ae >> 2] = -1, f[xe >> 2] = 0, f[Q >> 2] = 0, f[c + 8 >> 2] = E, B = Ae;
50577
+ A = f[Q >> 2] | 0, A | 0 && ft(A), Ce = c, f[Ce >> 2] = 0, f[Ce + 4 >> 2] = 0, f[Se >> 2] = 0, f[ae >> 2] = -1, f[xe >> 2] = 0, f[Q >> 2] = 0, f[c + 8 >> 2] = E, B = Ae;
50578
50578
  return;
50579
50579
  }
50580
50580
  case 36: {
@@ -50602,7 +50602,7 @@ var Mn = function(r) {
50602
50602
  break;
50603
50603
  }
50604
50604
  case 67: {
50605
- A = f[Q >> 2] | 0, A | 0 && ft(A), Pe = c, f[Pe >> 2] = 0, f[Pe + 4 >> 2] = 0, f[Se >> 2] = 0, f[ae >> 2] = -1, f[xe >> 2] = 0, f[Q >> 2] = 0, f[c + 8 >> 2] = d, B = Ae;
50605
+ A = f[Q >> 2] | 0, A | 0 && ft(A), Ce = c, f[Ce >> 2] = 0, f[Ce + 4 >> 2] = 0, f[Se >> 2] = 0, f[ae >> 2] = -1, f[xe >> 2] = 0, f[Q >> 2] = 0, f[c + 8 >> 2] = d, B = Ae;
50606
50606
  return;
50607
50607
  }
50608
50608
  }
@@ -50618,7 +50618,7 @@ var Mn = function(r) {
50618
50618
  }
50619
50619
  }
50620
50620
  while (!1);
50621
- A = f[Pe >> 2] | 0, A | 0 && ft(A), ue = c, f[ue >> 2] = 0, f[ue + 4 >> 2] = 0, f[c + 8 >> 2] = 0, f[Se >> 2] = 0, f[c + 12 >> 2] = -1, f[xe >> 2] = 0, f[Pe >> 2] = 0, B = Ae;
50621
+ A = f[Ce >> 2] | 0, A | 0 && ft(A), ue = c, f[ue >> 2] = 0, f[ue + 4 >> 2] = 0, f[c + 8 >> 2] = 0, f[Se >> 2] = 0, f[c + 12 >> 2] = -1, f[xe >> 2] = 0, f[Ce >> 2] = 0, B = Ae;
50622
50622
  }
50623
50623
  function Up(c, A) {
50624
50624
  c = c | 0, A = A | 0;
@@ -50682,7 +50682,7 @@ var Mn = function(r) {
50682
50682
  N = M, f[N >> 2] = 0, f[N + 4 >> 2] = 0, f[M + 8 >> 2] = d, f[M + 12 >> 2] = -1, N = M + 16 | 0, L = M + 29 | 0, f[N >> 2] = 0, f[N + 4 >> 2] = 0, f[N + 8 >> 2] = 0, Le[N + 12 >> 0] = 0, Le[L >> 0] = Le[I >> 0] | 0, Le[L + 1 >> 0] = Le[I + 1 >> 0] | 0, Le[L + 2 >> 0] = Le[I + 2 >> 0] | 0, L = 9;
50683
50683
  break;
50684
50684
  }
50685
- if (d = Lr((f[c + 8 >> 2] | 0) + 1 | 0, 32) | 0, !d) {
50685
+ if (d = Gr((f[c + 8 >> 2] | 0) + 1 | 0, 32) | 0, !d) {
50686
50686
  L = M, f[L >> 2] = 0, f[L + 4 >> 2] = 0, f[M + 8 >> 2] = 13, f[M + 12 >> 2] = -1, L = M + 16 | 0, d = M + 29 | 0, f[L >> 2] = 0, f[L + 4 >> 2] = 0, f[L + 8 >> 2] = 0, Le[L + 12 >> 0] = 0, Le[d >> 0] = Le[I >> 0] | 0, Le[d + 1 >> 0] = Le[I + 1 >> 0] | 0, Le[d + 2 >> 0] = Le[I + 2 >> 0] | 0, d = 13, L = 9;
50687
50687
  break;
50688
50688
  }
@@ -50748,15 +50748,15 @@ var Mn = function(r) {
50748
50748
  }
50749
50749
  function Wp(c, A) {
50750
50750
  c = c | 0, A = A | 0;
50751
- var d = 0, T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0;
50751
+ var d = 0, T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0;
50752
50752
  if (ee = f[c >> 2] | 0, !ee) {
50753
50753
  f[A >> 2] = 0, f[A + 4 >> 2] = 0, f[A + 8 >> 2] = 0, f[A + 12 >> 2] = 0, f[A + 16 >> 2] = 0, f[A + 20 >> 2] = 0, f[A + 24 >> 2] = 0, f[A + 28 >> 2] = 0;
50754
50754
  return;
50755
50755
  }
50756
- if (ae = A + 8 | 0, j[ae >> 3] = 17976931348623157e292, ue = A + 24 | 0, j[ue >> 3] = 17976931348623157e292, j[A >> 3] = -17976931348623157e292, Pe = A + 16 | 0, j[Pe >> 3] = -17976931348623157e292, !((ee | 0) <= 0)) {
50757
- for (Q = f[c + 4 >> 2] | 0, M = 17976931348623157e292, L = -17976931348623157e292, X = 0, c = -1, g = 17976931348623157e292, R = 17976931348623157e292, N = -17976931348623157e292, T = -17976931348623157e292, _ = 0; d = +j[Q + (_ << 4) >> 3], I = +j[Q + (_ << 4) + 8 >> 3], c = c + 2 | 0, E = +j[Q + (((c | 0) == (ee | 0) ? 0 : c) << 4) + 8 >> 3], d < g && (j[ae >> 3] = d, g = d), I < R && (j[ue >> 3] = I, R = I), d > N ? j[A >> 3] = d : d = N, I > T && (j[Pe >> 3] = I, T = I), M = I > 0 & I < M ? I : M, L = I < 0 & I > L ? I : L, X = X | +Pt(+(I - E)) > 3.141592653589793, c = _ + 1 | 0, (c | 0) != (ee | 0); )
50756
+ if (ae = A + 8 | 0, j[ae >> 3] = 17976931348623157e292, ue = A + 24 | 0, j[ue >> 3] = 17976931348623157e292, j[A >> 3] = -17976931348623157e292, Ce = A + 16 | 0, j[Ce >> 3] = -17976931348623157e292, !((ee | 0) <= 0)) {
50757
+ for (Q = f[c + 4 >> 2] | 0, M = 17976931348623157e292, L = -17976931348623157e292, X = 0, c = -1, g = 17976931348623157e292, R = 17976931348623157e292, N = -17976931348623157e292, T = -17976931348623157e292, _ = 0; d = +j[Q + (_ << 4) >> 3], I = +j[Q + (_ << 4) + 8 >> 3], c = c + 2 | 0, E = +j[Q + (((c | 0) == (ee | 0) ? 0 : c) << 4) + 8 >> 3], d < g && (j[ae >> 3] = d, g = d), I < R && (j[ue >> 3] = I, R = I), d > N ? j[A >> 3] = d : d = N, I > T && (j[Ce >> 3] = I, T = I), M = I > 0 & I < M ? I : M, L = I < 0 & I > L ? I : L, X = X | +Pt(+(I - E)) > 3.141592653589793, c = _ + 1 | 0, (c | 0) != (ee | 0); )
50758
50758
  xe = _, N = d, _ = c, c = xe;
50759
- X && (j[Pe >> 3] = L, j[ue >> 3] = M);
50759
+ X && (j[Ce >> 3] = L, j[ue >> 3] = M);
50760
50760
  }
50761
50761
  }
50762
50762
  function r1(c) {
@@ -50764,21 +50764,21 @@ var Mn = function(r) {
50764
50764
  }
50765
50765
  function z2(c, A) {
50766
50766
  c = c | 0, A = A | 0;
50767
- var d = 0, T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0, We = 0, st = 0, _e = 0;
50767
+ var d = 0, T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0, Fe = 0, st = 0, _e = 0;
50768
50768
  if (ee = f[c >> 2] | 0, ee) {
50769
- if (ae = A + 8 | 0, j[ae >> 3] = 17976931348623157e292, ue = A + 24 | 0, j[ue >> 3] = 17976931348623157e292, j[A >> 3] = -17976931348623157e292, Pe = A + 16 | 0, j[Pe >> 3] = -17976931348623157e292, (ee | 0) > 0) {
50770
- for (E = f[c + 4 >> 2] | 0, Q = 17976931348623157e292, _ = -17976931348623157e292, T = 0, d = -1, N = 17976931348623157e292, M = 17976931348623157e292, X = -17976931348623157e292, R = -17976931348623157e292, xe = 0; g = +j[E + (xe << 4) >> 3], L = +j[E + (xe << 4) + 8 >> 3], st = d + 2 | 0, I = +j[E + (((st | 0) == (ee | 0) ? 0 : st) << 4) + 8 >> 3], g < N && (j[ae >> 3] = g, N = g), L < M && (j[ue >> 3] = L, M = L), g > X ? j[A >> 3] = g : g = X, L > R && (j[Pe >> 3] = L, R = L), Q = L > 0 & L < Q ? L : Q, _ = L < 0 & L > _ ? L : _, T = T | +Pt(+(L - I)) > 3.141592653589793, d = xe + 1 | 0, (d | 0) != (ee | 0); )
50769
+ if (ae = A + 8 | 0, j[ae >> 3] = 17976931348623157e292, ue = A + 24 | 0, j[ue >> 3] = 17976931348623157e292, j[A >> 3] = -17976931348623157e292, Ce = A + 16 | 0, j[Ce >> 3] = -17976931348623157e292, (ee | 0) > 0) {
50770
+ for (E = f[c + 4 >> 2] | 0, Q = 17976931348623157e292, _ = -17976931348623157e292, T = 0, d = -1, N = 17976931348623157e292, M = 17976931348623157e292, X = -17976931348623157e292, R = -17976931348623157e292, xe = 0; g = +j[E + (xe << 4) >> 3], L = +j[E + (xe << 4) + 8 >> 3], st = d + 2 | 0, I = +j[E + (((st | 0) == (ee | 0) ? 0 : st) << 4) + 8 >> 3], g < N && (j[ae >> 3] = g, N = g), L < M && (j[ue >> 3] = L, M = L), g > X ? j[A >> 3] = g : g = X, L > R && (j[Ce >> 3] = L, R = L), Q = L > 0 & L < Q ? L : Q, _ = L < 0 & L > _ ? L : _, T = T | +Pt(+(L - I)) > 3.141592653589793, d = xe + 1 | 0, (d | 0) != (ee | 0); )
50771
50771
  st = xe, X = g, xe = d, d = st;
50772
- T && (j[Pe >> 3] = _, j[ue >> 3] = Q);
50772
+ T && (j[Ce >> 3] = _, j[ue >> 3] = Q);
50773
50773
  }
50774
50774
  } else
50775
50775
  f[A >> 2] = 0, f[A + 4 >> 2] = 0, f[A + 8 >> 2] = 0, f[A + 12 >> 2] = 0, f[A + 16 >> 2] = 0, f[A + 20 >> 2] = 0, f[A + 24 >> 2] = 0, f[A + 28 >> 2] = 0;
50776
50776
  if (st = c + 8 | 0, d = f[st >> 2] | 0, !((d | 0) <= 0)) {
50777
- We = c + 12 | 0, Ae = 0;
50777
+ Fe = c + 12 | 0, Ae = 0;
50778
50778
  do
50779
- if (E = f[We >> 2] | 0, T = Ae, Ae = Ae + 1 | 0, ue = A + (Ae << 5) | 0, Pe = f[E + (T << 3) >> 2] | 0, Pe) {
50780
- if (xe = A + (Ae << 5) + 8 | 0, j[xe >> 3] = 17976931348623157e292, c = A + (Ae << 5) + 24 | 0, j[c >> 3] = 17976931348623157e292, j[ue >> 3] = -17976931348623157e292, Se = A + (Ae << 5) + 16 | 0, j[Se >> 3] = -17976931348623157e292, (Pe | 0) > 0) {
50781
- for (ee = f[E + (T << 3) + 4 >> 2] | 0, Q = 17976931348623157e292, _ = -17976931348623157e292, E = 0, T = -1, ae = 0, N = 17976931348623157e292, M = 17976931348623157e292, L = -17976931348623157e292, R = -17976931348623157e292; g = +j[ee + (ae << 4) >> 3], X = +j[ee + (ae << 4) + 8 >> 3], T = T + 2 | 0, I = +j[ee + (((T | 0) == (Pe | 0) ? 0 : T) << 4) + 8 >> 3], g < N && (j[xe >> 3] = g, N = g), X < M && (j[c >> 3] = X, M = X), g > L ? j[ue >> 3] = g : g = L, X > R && (j[Se >> 3] = X, R = X), Q = X > 0 & X < Q ? X : Q, _ = X < 0 & X > _ ? X : _, E = E | +Pt(+(X - I)) > 3.141592653589793, T = ae + 1 | 0, (T | 0) != (Pe | 0); )
50779
+ if (E = f[Fe >> 2] | 0, T = Ae, Ae = Ae + 1 | 0, ue = A + (Ae << 5) | 0, Ce = f[E + (T << 3) >> 2] | 0, Ce) {
50780
+ if (xe = A + (Ae << 5) + 8 | 0, j[xe >> 3] = 17976931348623157e292, c = A + (Ae << 5) + 24 | 0, j[c >> 3] = 17976931348623157e292, j[ue >> 3] = -17976931348623157e292, Se = A + (Ae << 5) + 16 | 0, j[Se >> 3] = -17976931348623157e292, (Ce | 0) > 0) {
50781
+ for (ee = f[E + (T << 3) + 4 >> 2] | 0, Q = 17976931348623157e292, _ = -17976931348623157e292, E = 0, T = -1, ae = 0, N = 17976931348623157e292, M = 17976931348623157e292, L = -17976931348623157e292, R = -17976931348623157e292; g = +j[ee + (ae << 4) >> 3], X = +j[ee + (ae << 4) + 8 >> 3], T = T + 2 | 0, I = +j[ee + (((T | 0) == (Ce | 0) ? 0 : T) << 4) + 8 >> 3], g < N && (j[xe >> 3] = g, N = g), X < M && (j[c >> 3] = X, M = X), g > L ? j[ue >> 3] = g : g = L, X > R && (j[Se >> 3] = X, R = X), Q = X > 0 & X < Q ? X : Q, _ = X < 0 & X > _ ? X : _, E = E | +Pt(+(X - I)) > 3.141592653589793, T = ae + 1 | 0, (T | 0) != (Ce | 0); )
50782
50782
  _e = ae, ae = T, L = g, T = _e;
50783
50783
  E && (j[Se >> 3] = _, j[c >> 3] = Q);
50784
50784
  }
@@ -50857,16 +50857,16 @@ var Mn = function(r) {
50857
50857
  }
50858
50858
  function cA(c, A, d, T) {
50859
50859
  c = c | 0, A = A | 0, d = d | 0, T = T | 0;
50860
- var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0, We = 0, st = 0, _e = 0, It = 0;
50860
+ var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0, Fe = 0, st = 0, _e = 0, It = 0;
50861
50861
  if (st = B, B = B + 176 | 0, xe = st + 172 | 0, E = st + 168 | 0, Se = st, !(I2(A, T) | 0))
50862
50862
  return c = 0, B = st, c | 0;
50863
50863
  if (WI(A, T, xe, E), Di(Se | 0, d | 0, 168) | 0, (f[d >> 2] | 0) > 0) {
50864
50864
  A = 0;
50865
50865
  do
50866
- _e = Se + 8 + (A << 4) + 8 | 0, Pe = +Jr(+j[_e >> 3], f[E >> 2] | 0), j[_e >> 3] = Pe, A = A + 1 | 0;
50866
+ _e = Se + 8 + (A << 4) + 8 | 0, Ce = +Jr(+j[_e >> 3], f[E >> 2] | 0), j[_e >> 3] = Ce, A = A + 1 | 0;
50867
50867
  while ((A | 0) < (f[d >> 2] | 0));
50868
50868
  }
50869
- ae = +j[T >> 3], ue = +j[T + 8 >> 3], Pe = +Jr(+j[T + 16 >> 3], f[E >> 2] | 0), _ = +Jr(+j[T + 24 >> 3], f[E >> 2] | 0);
50869
+ ae = +j[T >> 3], ue = +j[T + 8 >> 3], Ce = +Jr(+j[T + 16 >> 3], f[E >> 2] | 0), _ = +Jr(+j[T + 24 >> 3], f[E >> 2] | 0);
50870
50870
  e: do
50871
50871
  if ((f[c >> 2] | 0) > 0) {
50872
50872
  if (T = c + 4 | 0, E = f[Se >> 2] | 0, (E | 0) <= 0) {
@@ -50877,10 +50877,10 @@ var Mn = function(r) {
50877
50877
  }
50878
50878
  }
50879
50879
  for (d = 0; ; ) {
50880
- if (A = f[T >> 2] | 0, Q = +j[A + (d << 4) >> 3], ee = +Jr(+j[A + (d << 4) + 8 >> 3], f[xe >> 2] | 0), A = f[T >> 2] | 0, d = d + 1 | 0, _e = (d | 0) % (f[c >> 2] | 0) | 0, g = +j[A + (_e << 4) >> 3], R = +Jr(+j[A + (_e << 4) + 8 >> 3], f[xe >> 2] | 0), !(Q >= ae) | !(g >= ae) && !(Q <= ue) | !(g <= ue) && !(ee <= _) | !(R <= _) && !(ee >= Pe) | !(R >= Pe)) {
50880
+ if (A = f[T >> 2] | 0, Q = +j[A + (d << 4) >> 3], ee = +Jr(+j[A + (d << 4) + 8 >> 3], f[xe >> 2] | 0), A = f[T >> 2] | 0, d = d + 1 | 0, _e = (d | 0) % (f[c >> 2] | 0) | 0, g = +j[A + (_e << 4) >> 3], R = +Jr(+j[A + (_e << 4) + 8 >> 3], f[xe >> 2] | 0), !(Q >= ae) | !(g >= ae) && !(Q <= ue) | !(g <= ue) && !(ee <= _) | !(R <= _) && !(ee >= Ce) | !(R >= Ce)) {
50881
50881
  X = g - Q, M = R - ee, A = 0;
50882
50882
  do
50883
- if (It = A, A = A + 1 | 0, _e = (A | 0) == (E | 0) ? 0 : A, g = +j[Se + 8 + (It << 4) + 8 >> 3], R = +j[Se + 8 + (_e << 4) + 8 >> 3] - g, I = +j[Se + 8 + (It << 4) >> 3], N = +j[Se + 8 + (_e << 4) >> 3] - I, L = X * R - M * N, L != 0 && (Ae = ee - g, We = Q - I, N = (Ae * N - R * We) / L, !(N < 0 | N > 1)) && (L = (X * Ae - M * We) / L, L >= 0 & L <= 1)) {
50883
+ if (It = A, A = A + 1 | 0, _e = (A | 0) == (E | 0) ? 0 : A, g = +j[Se + 8 + (It << 4) + 8 >> 3], R = +j[Se + 8 + (_e << 4) + 8 >> 3] - g, I = +j[Se + 8 + (It << 4) >> 3], N = +j[Se + 8 + (_e << 4) >> 3] - I, L = X * R - M * N, L != 0 && (Ae = ee - g, Fe = Q - I, N = (Ae * N - R * Fe) / L, !(N < 0 | N > 1)) && (L = (X * Ae - M * Fe) / L, L >= 0 & L <= 1)) {
50884
50884
  A = 1;
50885
50885
  break e;
50886
50886
  }
@@ -50985,7 +50985,7 @@ var Mn = function(r) {
50985
50985
  var T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0;
50986
50986
  if (L = B, B = B + 32 | 0, I = L + 16 | 0, N = L, T = bi(c, A, I) | 0, T | 0)
50987
50987
  return d = T, B = L, d | 0;
50988
- g = Mp(c, A) | 0, M = wr(c, A) | 0, HI(g, N), T = kI(g, f[I >> 2] | 0) | 0;
50988
+ g = Mp(c, A) | 0, M = Lr(c, A) | 0, HI(g, N), T = kI(g, f[I >> 2] | 0) | 0;
50989
50989
  do
50990
50990
  if (Tn(g) | 0) {
50991
50991
  do
@@ -51053,7 +51053,7 @@ var Mn = function(r) {
51053
51053
  }
51054
51054
  function A0(c, A, d, T) {
51055
51055
  c = c | 0, A = A | 0, d = d | 0, T = T | 0;
51056
- var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0;
51056
+ var E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0;
51057
51057
  if (Se = B, B = B + 32 | 0, xe = Se + 24 | 0, ue = Se + 20 | 0, ee = Se + 8 | 0, _ = Se + 16 | 0, Q = Se, N = (an(c, A) | 0) == 0, N = N ? 6 : 5, L = we(c | 0, A | 0, 52) | 0, V() | 0, L = L & 15, N >>> 0 <= d >>> 0)
51058
51058
  return T = 2, B = Se, T | 0;
51059
51059
  X = (L | 0) == 0, !X && (ae = ze(7, 0, (L ^ 15) * 3 | 0) | 0, (ae & c | 0) == 0 & ((V() | 0) & A | 0) == 0) ? E = d : g = 4;
@@ -51098,11 +51098,11 @@ var Mn = function(r) {
51098
51098
  I = ee, M = f[I >> 2] | 0, I = f[I + 4 >> 2] | 0;
51099
51099
  }
51100
51100
  if ((g | 0) == (M | 0) & (R | 0) == (I | 0)) {
51101
- if (N = (an(M, I) | 0) != 0, N ? c = S2(M, I, c, A) | 0 : c = f[26800 + ((((f[ue >> 2] | 0) + (f[26768 + (ae << 2) >> 2] | 0) | 0) % 6 | 0) << 2) >> 2] | 0, E = an(M, I) | 0, (c + -1 | 0) >>> 0 <= 5 && (Pe = (E | 0) != 0, !((c | 0) == 1 & Pe)))
51101
+ if (N = (an(M, I) | 0) != 0, N ? c = S2(M, I, c, A) | 0 : c = f[26800 + ((((f[ue >> 2] | 0) + (f[26768 + (ae << 2) >> 2] | 0) | 0) % 6 | 0) << 2) >> 2] | 0, E = an(M, I) | 0, (c + -1 | 0) >>> 0 <= 5 && (Ce = (E | 0) != 0, !((c | 0) == 1 & Ce)))
51102
51102
  do
51103
51103
  if (s1(M, I, xe) | 0)
51104
51104
  E = -1;
51105
- else if (Pe) {
51105
+ else if (Ce) {
51106
51106
  E = ((f[26352 + (c << 2) >> 2] | 0) + 5 - (f[xe >> 2] | 0) | 0) % 5 | 0;
51107
51107
  break;
51108
51108
  } else {
@@ -51121,7 +51121,7 @@ var Mn = function(r) {
51121
51121
  return T = E, B = Se, T | 0;
51122
51122
  }
51123
51123
  while (!1);
51124
- return Pe = ze(E | 0, 0, 56) | 0, xe = V() | 0 | A & -2130706433 | 536870912, f[T >> 2] = Pe | c, f[T + 4 >> 2] = xe, T = 0, B = Se, T | 0;
51124
+ return Ce = ze(E | 0, 0, 56) | 0, xe = V() | 0 | A & -2130706433 | 536870912, f[T >> 2] = Ce | c, f[T + 4 >> 2] = xe, T = 0, B = Se, T | 0;
51125
51125
  }
51126
51126
  function oP(c, A, d) {
51127
51127
  c = c | 0, A = A | 0, d = d | 0;
@@ -51141,7 +51141,7 @@ var Mn = function(r) {
51141
51141
  function Yp(c, A, d) {
51142
51142
  c = c | 0, A = A | 0, d = d | 0;
51143
51143
  var T = 0;
51144
- (A | 0) > 0 ? (T = Lr(A, 4) | 0, f[c >> 2] = T, T || ht(27835, 27858, 40, 27872)) : f[c >> 2] = 0, f[c + 4 >> 2] = A, f[c + 8 >> 2] = 0, f[c + 12 >> 2] = d;
51144
+ (A | 0) > 0 ? (T = Gr(A, 4) | 0, f[c >> 2] = T, T || ht(27835, 27858, 40, 27872)) : f[c >> 2] = 0, f[c + 4 >> 2] = A, f[c + 8 >> 2] = 0, f[c + 12 >> 2] = d;
51145
51145
  }
51146
51146
  function Zp(c) {
51147
51147
  c = c | 0;
@@ -51302,15 +51302,15 @@ var Mn = function(r) {
51302
51302
  }
51303
51303
  function Z0(c) {
51304
51304
  c = c | 0;
51305
- var A = 0, d = 0, T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Pe = 0, xe = 0, Se = 0, Ae = 0, We = 0;
51306
- We = B, B = B + 16 | 0, Q = We;
51305
+ var A = 0, d = 0, T = 0, E = 0, g = 0, R = 0, I = 0, N = 0, M = 0, L = 0, X = 0, Q = 0, _ = 0, ee = 0, ae = 0, ue = 0, Ce = 0, xe = 0, Se = 0, Ae = 0, Fe = 0;
51306
+ Fe = B, B = B + 16 | 0, Q = Fe;
51307
51307
  do
51308
51308
  if (c >>> 0 < 245) {
51309
51309
  if (M = c >>> 0 < 11 ? 16 : c + 11 & -8, c = M >>> 3, X = f[6981] | 0, d = X >>> c, d & 3 | 0)
51310
- return A = (d & 1 ^ 1) + c | 0, c = 27964 + (A << 1 << 2) | 0, d = c + 8 | 0, T = f[d >> 2] | 0, E = T + 8 | 0, g = f[E >> 2] | 0, (g | 0) == (c | 0) ? f[6981] = X & ~(1 << A) : (f[g + 12 >> 2] = c, f[d >> 2] = g), Ae = A << 3, f[T + 4 >> 2] = Ae | 3, Ae = T + Ae + 4 | 0, f[Ae >> 2] = f[Ae >> 2] | 1, Ae = E, B = We, Ae | 0;
51310
+ return A = (d & 1 ^ 1) + c | 0, c = 27964 + (A << 1 << 2) | 0, d = c + 8 | 0, T = f[d >> 2] | 0, E = T + 8 | 0, g = f[E >> 2] | 0, (g | 0) == (c | 0) ? f[6981] = X & ~(1 << A) : (f[g + 12 >> 2] = c, f[d >> 2] = g), Ae = A << 3, f[T + 4 >> 2] = Ae | 3, Ae = T + Ae + 4 | 0, f[Ae >> 2] = f[Ae >> 2] | 1, Ae = E, B = Fe, Ae | 0;
51311
51311
  if (L = f[6983] | 0, M >>> 0 > L >>> 0) {
51312
51312
  if (d | 0)
51313
- return A = 2 << c, A = d << c & (A | 0 - A), A = (A & 0 - A) + -1 | 0, I = A >>> 12 & 16, A = A >>> I, d = A >>> 5 & 8, A = A >>> d, g = A >>> 2 & 4, A = A >>> g, c = A >>> 1 & 2, A = A >>> c, T = A >>> 1 & 1, T = (d | I | g | c | T) + (A >>> T) | 0, A = 27964 + (T << 1 << 2) | 0, c = A + 8 | 0, g = f[c >> 2] | 0, I = g + 8 | 0, d = f[I >> 2] | 0, (d | 0) == (A | 0) ? (c = X & ~(1 << T), f[6981] = c) : (f[d + 12 >> 2] = A, f[c >> 2] = d, c = X), Ae = T << 3, R = Ae - M | 0, f[g + 4 >> 2] = M | 3, E = g + M | 0, f[E + 4 >> 2] = R | 1, f[g + Ae >> 2] = R, L | 0 && (T = f[6986] | 0, A = L >>> 3, d = 27964 + (A << 1 << 2) | 0, A = 1 << A, c & A ? (c = d + 8 | 0, A = f[c >> 2] | 0) : (f[6981] = c | A, A = d, c = d + 8 | 0), f[c >> 2] = T, f[A + 12 >> 2] = T, f[T + 8 >> 2] = A, f[T + 12 >> 2] = d), f[6983] = R, f[6986] = E, Ae = I, B = We, Ae | 0;
51313
+ return A = 2 << c, A = d << c & (A | 0 - A), A = (A & 0 - A) + -1 | 0, I = A >>> 12 & 16, A = A >>> I, d = A >>> 5 & 8, A = A >>> d, g = A >>> 2 & 4, A = A >>> g, c = A >>> 1 & 2, A = A >>> c, T = A >>> 1 & 1, T = (d | I | g | c | T) + (A >>> T) | 0, A = 27964 + (T << 1 << 2) | 0, c = A + 8 | 0, g = f[c >> 2] | 0, I = g + 8 | 0, d = f[I >> 2] | 0, (d | 0) == (A | 0) ? (c = X & ~(1 << T), f[6981] = c) : (f[d + 12 >> 2] = A, f[c >> 2] = d, c = X), Ae = T << 3, R = Ae - M | 0, f[g + 4 >> 2] = M | 3, E = g + M | 0, f[E + 4 >> 2] = R | 1, f[g + Ae >> 2] = R, L | 0 && (T = f[6986] | 0, A = L >>> 3, d = 27964 + (A << 1 << 2) | 0, A = 1 << A, c & A ? (c = d + 8 | 0, A = f[c >> 2] | 0) : (f[6981] = c | A, A = d, c = d + 8 | 0), f[c >> 2] = T, f[A + 12 >> 2] = T, f[T + 8 >> 2] = A, f[T + 12 >> 2] = d), f[6983] = R, f[6986] = E, Ae = I, B = Fe, Ae | 0;
51314
51314
  if (g = f[6982] | 0, g) {
51315
51315
  for (d = (g & 0 - g) + -1 | 0, E = d >>> 12 & 16, d = d >>> E, T = d >>> 5 & 8, d = d >>> T, R = d >>> 2 & 4, d = d >>> R, I = d >>> 1 & 2, d = d >>> I, N = d >>> 1 & 1, N = f[28228 + ((T | E | R | I | N) + (d >>> N) << 2) >> 2] | 0, d = N, I = N, N = (f[N + 4 >> 2] & -8) - M | 0; c = f[d + 16 >> 2] | 0, !(!c && (c = f[d + 20 >> 2] | 0, !c)); )
51316
51316
  R = (f[c + 4 >> 2] & -8) - M | 0, E = R >>> 0 < N >>> 0, d = c, I = E ? c : I, N = E ? R : N;
@@ -51345,7 +51345,7 @@ var Mn = function(r) {
51345
51345
  f[d + 24 >> 2] = E, A = f[I + 16 >> 2] | 0, A | 0 && (f[d + 16 >> 2] = A, f[A + 24 >> 2] = d), A = f[I + 20 >> 2] | 0, A | 0 && (f[d + 20 >> 2] = A, f[A + 24 >> 2] = d);
51346
51346
  }
51347
51347
  while (!1);
51348
- return N >>> 0 < 16 ? (Ae = N + M | 0, f[I + 4 >> 2] = Ae | 3, Ae = I + Ae + 4 | 0, f[Ae >> 2] = f[Ae >> 2] | 1) : (f[I + 4 >> 2] = M | 3, f[R + 4 >> 2] = N | 1, f[R + N >> 2] = N, L | 0 && (T = f[6986] | 0, A = L >>> 3, d = 27964 + (A << 1 << 2) | 0, A = 1 << A, A & X ? (c = d + 8 | 0, A = f[c >> 2] | 0) : (f[6981] = A | X, A = d, c = d + 8 | 0), f[c >> 2] = T, f[A + 12 >> 2] = T, f[T + 8 >> 2] = A, f[T + 12 >> 2] = d), f[6983] = N, f[6986] = R), Ae = I + 8 | 0, B = We, Ae | 0;
51348
+ return N >>> 0 < 16 ? (Ae = N + M | 0, f[I + 4 >> 2] = Ae | 3, Ae = I + Ae + 4 | 0, f[Ae >> 2] = f[Ae >> 2] | 1) : (f[I + 4 >> 2] = M | 3, f[R + 4 >> 2] = N | 1, f[R + N >> 2] = N, L | 0 && (T = f[6986] | 0, A = L >>> 3, d = 27964 + (A << 1 << 2) | 0, A = 1 << A, A & X ? (c = d + 8 | 0, A = f[c >> 2] | 0) : (f[6981] = A | X, A = d, c = d + 8 | 0), f[c >> 2] = T, f[A + 12 >> 2] = T, f[T + 8 >> 2] = A, f[T + 12 >> 2] = d), f[6983] = N, f[6986] = R), Ae = I + 8 | 0, B = Fe, Ae | 0;
51349
51349
  } else
51350
51350
  X = M;
51351
51351
  } else
@@ -51452,7 +51452,7 @@ var Mn = function(r) {
51452
51452
  Se = A + 8 | 0, Ae = f[Se >> 2] | 0, f[Ae + 12 >> 2] = L, f[Se >> 2] = L, f[L + 8 >> 2] = Ae, f[L + 12 >> 2] = A, f[L + 24 >> 2] = 0;
51453
51453
  }
51454
51454
  while (!1);
51455
- return Ae = I + 8 | 0, B = We, Ae | 0;
51455
+ return Ae = I + 8 | 0, B = Fe, Ae | 0;
51456
51456
  } else
51457
51457
  X = M;
51458
51458
  } else
@@ -51461,11 +51461,11 @@ var Mn = function(r) {
51461
51461
  X = -1;
51462
51462
  while (!1);
51463
51463
  if (d = f[6983] | 0, d >>> 0 >= X >>> 0)
51464
- return A = d - X | 0, c = f[6986] | 0, A >>> 0 > 15 ? (Ae = c + X | 0, f[6986] = Ae, f[6983] = A, f[Ae + 4 >> 2] = A | 1, f[c + d >> 2] = A, f[c + 4 >> 2] = X | 3) : (f[6983] = 0, f[6986] = 0, f[c + 4 >> 2] = d | 3, Ae = c + d + 4 | 0, f[Ae >> 2] = f[Ae >> 2] | 1), Ae = c + 8 | 0, B = We, Ae | 0;
51464
+ return A = d - X | 0, c = f[6986] | 0, A >>> 0 > 15 ? (Ae = c + X | 0, f[6986] = Ae, f[6983] = A, f[Ae + 4 >> 2] = A | 1, f[c + d >> 2] = A, f[c + 4 >> 2] = X | 3) : (f[6983] = 0, f[6986] = 0, f[c + 4 >> 2] = d | 3, Ae = c + d + 4 | 0, f[Ae >> 2] = f[Ae >> 2] | 1), Ae = c + 8 | 0, B = Fe, Ae | 0;
51465
51465
  if (R = f[6984] | 0, R >>> 0 > X >>> 0)
51466
- return xe = R - X | 0, f[6984] = xe, Ae = f[6987] | 0, Se = Ae + X | 0, f[6987] = Se, f[Se + 4 >> 2] = xe | 1, f[Ae + 4 >> 2] = X | 3, Ae = Ae + 8 | 0, B = We, Ae | 0;
51466
+ return xe = R - X | 0, f[6984] = xe, Ae = f[6987] | 0, Se = Ae + X | 0, f[6987] = Se, f[Se + 4 >> 2] = xe | 1, f[Ae + 4 >> 2] = X | 3, Ae = Ae + 8 | 0, B = Fe, Ae | 0;
51467
51467
  if (f[7099] | 0 ? c = f[7101] | 0 : (f[7101] = 4096, f[7100] = 4096, f[7102] = -1, f[7103] = -1, f[7104] = 0, f[7092] = 0, f[7099] = Q & -16 ^ 1431655768, c = 4096), I = X + 48 | 0, N = X + 47 | 0, g = c + N | 0, E = 0 - c | 0, M = g & E, M >>> 0 <= X >>> 0 || (c = f[7091] | 0, c | 0 && (L = f[7089] | 0, Q = L + M | 0, Q >>> 0 <= L >>> 0 | Q >>> 0 > c >>> 0)))
51468
- return Ae = 0, B = We, Ae | 0;
51468
+ return Ae = 0, B = Fe, Ae | 0;
51469
51469
  e: do
51470
51470
  if (f[7092] & 4)
51471
51471
  A = 0, ae = 143;
@@ -51534,7 +51534,7 @@ var Mn = function(r) {
51534
51534
  f[7092] = f[7092] | 4, ae = 143;
51535
51535
  }
51536
51536
  while (!1);
51537
- if ((ae | 0) == 143 && M >>> 0 < 2147483647 && (xe = Zs(M | 0) | 0, ee = Zs(0) | 0, ue = ee - xe | 0, Pe = ue >>> 0 > (X + 40 | 0) >>> 0, !((xe | 0) == -1 | Pe ^ 1 | xe >>> 0 < ee >>> 0 & ((xe | 0) != -1 & (ee | 0) != -1) ^ 1)) && (R = Pe ? ue : A, g = xe, ae = 145), (ae | 0) == 145) {
51537
+ if ((ae | 0) == 143 && M >>> 0 < 2147483647 && (xe = Zs(M | 0) | 0, ee = Zs(0) | 0, ue = ee - xe | 0, Ce = ue >>> 0 > (X + 40 | 0) >>> 0, !((xe | 0) == -1 | Ce ^ 1 | xe >>> 0 < ee >>> 0 & ((xe | 0) != -1 & (ee | 0) != -1) ^ 1)) && (R = Ce ? ue : A, g = xe, ae = 145), (ae | 0) == 145) {
51538
51538
  A = (f[7089] | 0) + R | 0, f[7089] = A, A >>> 0 > (f[7090] | 0) >>> 0 && (f[7090] = A), N = f[6987] | 0;
51539
51539
  e: do
51540
51540
  if (N) {
@@ -51662,7 +51662,7 @@ var Mn = function(r) {
51662
51662
  Se = A + 8 | 0, Ae = f[Se >> 2] | 0, f[Ae + 12 >> 2] = M, f[Se >> 2] = M, f[M + 8 >> 2] = Ae, f[M + 12 >> 2] = A, f[M + 24 >> 2] = 0;
51663
51663
  }
51664
51664
  while (!1);
51665
- return Ae = L + 8 | 0, B = We, Ae | 0;
51665
+ return Ae = L + 8 | 0, B = Fe, Ae | 0;
51666
51666
  }
51667
51667
  for (A = 28372; c = f[A >> 2] | 0, !(c >>> 0 <= N >>> 0 && (Ae = c + (f[A + 4 >> 2] | 0) | 0, Ae >>> 0 > N >>> 0)); )
51668
51668
  A = f[A + 8 >> 2] | 0;
@@ -51698,9 +51698,9 @@ var Mn = function(r) {
51698
51698
  Ae = f[6985] | 0, (Ae | 0) == 0 | g >>> 0 < Ae >>> 0 && (f[6985] = g), f[7093] = g, f[7094] = R, f[7096] = 0, f[6990] = f[7099], f[6989] = -1, f[6994] = 27964, f[6993] = 27964, f[6996] = 27972, f[6995] = 27972, f[6998] = 27980, f[6997] = 27980, f[7e3] = 27988, f[6999] = 27988, f[7002] = 27996, f[7001] = 27996, f[7004] = 28004, f[7003] = 28004, f[7006] = 28012, f[7005] = 28012, f[7008] = 28020, f[7007] = 28020, f[7010] = 28028, f[7009] = 28028, f[7012] = 28036, f[7011] = 28036, f[7014] = 28044, f[7013] = 28044, f[7016] = 28052, f[7015] = 28052, f[7018] = 28060, f[7017] = 28060, f[7020] = 28068, f[7019] = 28068, f[7022] = 28076, f[7021] = 28076, f[7024] = 28084, f[7023] = 28084, f[7026] = 28092, f[7025] = 28092, f[7028] = 28100, f[7027] = 28100, f[7030] = 28108, f[7029] = 28108, f[7032] = 28116, f[7031] = 28116, f[7034] = 28124, f[7033] = 28124, f[7036] = 28132, f[7035] = 28132, f[7038] = 28140, f[7037] = 28140, f[7040] = 28148, f[7039] = 28148, f[7042] = 28156, f[7041] = 28156, f[7044] = 28164, f[7043] = 28164, f[7046] = 28172, f[7045] = 28172, f[7048] = 28180, f[7047] = 28180, f[7050] = 28188, f[7049] = 28188, f[7052] = 28196, f[7051] = 28196, f[7054] = 28204, f[7053] = 28204, f[7056] = 28212, f[7055] = 28212, Ae = R + -40 | 0, xe = g + 8 | 0, xe = xe & 7 | 0 ? 0 - xe & 7 : 0, Se = g + xe | 0, xe = Ae - xe | 0, f[6987] = Se, f[6984] = xe, f[Se + 4 >> 2] = xe | 1, f[g + Ae + 4 >> 2] = 40, f[6988] = f[7103];
51699
51699
  while (!1);
51700
51700
  if (A = f[6984] | 0, A >>> 0 > X >>> 0)
51701
- return xe = A - X | 0, f[6984] = xe, Ae = f[6987] | 0, Se = Ae + X | 0, f[6987] = Se, f[Se + 4 >> 2] = xe | 1, f[Ae + 4 >> 2] = X | 3, Ae = Ae + 8 | 0, B = We, Ae | 0;
51701
+ return xe = A - X | 0, f[6984] = xe, Ae = f[6987] | 0, Se = Ae + X | 0, f[6987] = Se, f[Se + 4 >> 2] = xe | 1, f[Ae + 4 >> 2] = X | 3, Ae = Ae + 8 | 0, B = Fe, Ae | 0;
51702
51702
  }
51703
- return Ae = cP() | 0, f[Ae >> 2] = 12, Ae = 0, B = We, Ae | 0;
51703
+ return Ae = cP() | 0, f[Ae >> 2] = 12, Ae = 0, B = Fe, Ae | 0;
51704
51704
  }
51705
51705
  function ft(c) {
51706
51706
  c = c | 0;
@@ -51859,7 +51859,7 @@ var Mn = function(r) {
51859
51859
  }
51860
51860
  }
51861
51861
  }
51862
- function Lr(c, A) {
51862
+ function Gr(c, A) {
51863
51863
  c = c | 0, A = A | 0;
51864
51864
  var d = 0;
51865
51865
  return c ? (d = a0(A, c) | 0, (A | c) >>> 0 > 65535 && (d = ((d >>> 0) / (c >>> 0) | 0 | 0) == (A | 0) ? d : -1)) : d = 0, c = Z0(d) | 0, !c || !(f[c + -4 >> 2] & 3) || Ys(c | 0, 0, d | 0) | 0, c | 0;
@@ -52018,7 +52018,7 @@ var Mn = function(r) {
52018
52018
  _bitshift64Ashr: $p,
52019
52019
  _bitshift64Lshr: we,
52020
52020
  _bitshift64Shl: ze,
52021
- _calloc: Lr,
52021
+ _calloc: Gr,
52022
52022
  _cellAreaKm2: wy,
52023
52023
  _cellAreaM2: Ly,
52024
52024
  _cellAreaRads2: j2,
@@ -52119,7 +52119,7 @@ var Mn = function(r) {
52119
52119
  e._free = He._free, e._getBaseCellNumber = He._getBaseCellNumber, e._getDirectedEdgeDestination = He._getDirectedEdgeDestination, e._getDirectedEdgeOrigin = He._getDirectedEdgeOrigin, e._getHexagonAreaAvgKm2 = He._getHexagonAreaAvgKm2, e._getHexagonAreaAvgM2 = He._getHexagonAreaAvgM2, e._getHexagonEdgeLengthAvgKm = He._getHexagonEdgeLengthAvgKm, e._getHexagonEdgeLengthAvgM = He._getHexagonEdgeLengthAvgM, e._getIcosahedronFaces = He._getIcosahedronFaces, e._getIndexDigit = He._getIndexDigit, e._getNumCells = He._getNumCells, e._getPentagons = He._getPentagons, e._getRes0Cells = He._getRes0Cells, e._getResolution = He._getResolution, e._greatCircleDistanceKm = He._greatCircleDistanceKm, e._greatCircleDistanceM = He._greatCircleDistanceM, e._greatCircleDistanceRads = He._greatCircleDistanceRads, e._gridDisk = He._gridDisk, e._gridDiskDistances = He._gridDiskDistances, e._gridDistance = He._gridDistance, e._gridPathCells = He._gridPathCells, e._gridPathCellsSize = He._gridPathCellsSize, e._gridRing = He._gridRing, e._gridRingUnsafe = He._gridRingUnsafe, e._i64Add = He._i64Add, e._i64Subtract = He._i64Subtract, e._isPentagon = He._isPentagon, e._isResClassIII = He._isResClassIII, e._isValidCell = He._isValidCell, e._isValidDirectedEdge = He._isValidDirectedEdge, e._isValidIndex = He._isValidIndex, e._isValidVertex = He._isValidVertex, e._latLngToCell = He._latLngToCell, e._llvm_ctlz_i64 = He._llvm_ctlz_i64, e._llvm_maxnum_f64 = He._llvm_maxnum_f64, e._llvm_minnum_f64 = He._llvm_minnum_f64, e._llvm_round_f64 = He._llvm_round_f64, e._localIjToCell = He._localIjToCell, e._malloc = He._malloc, e._maxFaceCount = He._maxFaceCount, e._maxGridDiskSize = He._maxGridDiskSize, e._maxPolygonToCellsSize = He._maxPolygonToCellsSize, e._maxPolygonToCellsSizeExperimental = He._maxPolygonToCellsSizeExperimental, e._memcpy = He._memcpy, e._memset = He._memset, e._originToDirectedEdges = He._originToDirectedEdges, e._pentagonCount = He._pentagonCount, e._polygonToCells = He._polygonToCells, e._polygonToCellsExperimental = He._polygonToCellsExperimental, e._readInt64AsDoubleFromPointer = He._readInt64AsDoubleFromPointer, e._res0CellCount = He._res0CellCount, e._round = He._round, e._sbrk = He._sbrk, e._sizeOfCellBoundary = He._sizeOfCellBoundary, e._sizeOfCoordIJ = He._sizeOfCoordIJ, e._sizeOfGeoLoop = He._sizeOfGeoLoop, e._sizeOfGeoPolygon = He._sizeOfGeoPolygon, e._sizeOfH3Index = He._sizeOfH3Index, e._sizeOfLatLng = He._sizeOfLatLng, e._sizeOfLinkedGeoPolygon = He._sizeOfLinkedGeoPolygon, e._uncompactCells = He._uncompactCells, e._uncompactCellsSize = He._uncompactCellsSize, e._vertexToLatLng = He._vertexToLatLng, e.establishStackSpace = He.establishStackSpace;
52120
52120
  var Ci = e.stackAlloc = He.stackAlloc, $l = e.stackRestore = He.stackRestore, Ts = e.stackSave = He.stackSave;
52121
52121
  if (e.asm = He, e.cwrap = b, e.setValue = x, e.getValue = h, Un) {
52122
- br(Un) || (Un = i(Un));
52122
+ Mr(Un) || (Un = i(Un));
52123
52123
  {
52124
52124
  Yt();
52125
52125
  var qa = function(Ne) {
@@ -52158,7 +52158,7 @@ var Mn = function(r) {
52158
52158
  if (Qe > 0 || (me(), Qe > 0))
52159
52159
  return;
52160
52160
  function Me() {
52161
- Ni || (Ni = !0, !y && (ge(), je(), e.onRuntimeInitialized && e.onRuntimeInitialized(), Fe()));
52161
+ Ni || (Ni = !0, !y && (ge(), je(), e.onRuntimeInitialized && e.onRuntimeInitialized(), We()));
52162
52162
  }
52163
52163
  e.setStatus ? (e.setStatus("Running..."), setTimeout(function() {
52164
52164
  setTimeout(function() {
@@ -74255,67 +74255,67 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74255
74255
  deleteAnnotation: p,
74256
74256
  updateAnnotationText: u,
74257
74257
  setActiveViewId: S
74258
- } = Ja(), [O, x] = it(!1), [h, y] = it([]), [P, v] = it(null), [C, b] = it(null), [w, G] = it(null), [D, H] = it(null), [z, J] = it(""), [F, Y] = it(null), K = lt(null), [le, U] = it({}), q = en(() => o.find((te) => te.id === i) || null, [o, i]), re = en(() => q && q.versions.find((te) => te.id === q.activeVersionId) || null, [q]), de = en(() => !q || !q.parentId ? null : o.find((te) => te.id === q.parentId) || null, [o, q]), Ee = en(() => de && de.versions.find((te) => te.id === de.activeVersionId) || null, [de]), ce = en(() => re ? re.htmlContent === '<div style="padding: 2rem; color: #94a3b8; text-align: center;">Empty Mockup Panel</div>' && Ee ? Ee.htmlContent : re.htmlContent : "", [re, Ee]), ye = en(() => Ee ? Ee.annotations || [] : [], [Ee]), se = en(() => !q || !s ? null : q.versions.find((te) => te.id === s) || null, [q, s]), Ie = en(() => (re == null ? void 0 : re.annotations.filter((te) => te.type === "comment")) || [], [re]), De = en(() => (se == null ? void 0 : se.annotations.filter((te) => te.type === "comment")) || [], [se]), ke = qt(() => {
74258
+ } = Ja(), [O, x] = it(!1), [h, y] = it([]), [P, v] = it(null), [C, b] = it(null), [w, G] = it(null), [D, H] = it(null), [z, J] = it(""), [F, Y] = it(null), K = lt(null), [le, U] = it({}), q = en(() => o.find((te) => te.id === i) || null, [o, i]), re = en(() => q && q.versions.find((te) => te.id === q.activeVersionId) || null, [q]), de = en(() => !q || !q.parentId ? null : o.find((te) => te.id === q.parentId) || null, [o, q]), Ee = en(() => de && de.versions.find((te) => te.id === de.activeVersionId) || null, [de]), ce = en(() => re ? re.htmlContent === '<div style="padding: 2rem; color: #94a3b8; text-align: center;">Empty Mockup Panel</div>' && Ee ? Ee.htmlContent : re.htmlContent : "", [re, Ee]), Pe = en(() => Ee ? Ee.annotations || [] : [], [Ee]), se = en(() => !q || !s ? null : q.versions.find((te) => te.id === s) || null, [q, s]), Ie = en(() => (re == null ? void 0 : re.annotations.filter((te) => te.type === "comment")) || [], [re]), De = en(() => (se == null ? void 0 : se.annotations.filter((te) => te.type === "comment")) || [], [se]), ke = qt(() => {
74259
74259
  const te = K.current;
74260
74260
  if (!te) return;
74261
- const Ce = te.shadowRoot;
74262
- if (!Ce) return;
74261
+ const ye = te.shadowRoot;
74262
+ if (!ye) return;
74263
74263
  const ve = te.getBoundingClientRect(), Je = {}, rt = (dt) => {
74264
74264
  if (dt.type === "comment" && dt.elementSelector) {
74265
- const Qe = Ce.querySelector(dt.elementSelector);
74265
+ const Qe = ye.querySelector(dt.elementSelector);
74266
74266
  if (Qe) {
74267
74267
  const Xe = Qe.getBoundingClientRect(), Yt = (Xe.left + Xe.width / 2 - ve.left) / ve.width * 100, _t = (Xe.top + Xe.height / 2 - ve.top) / ve.height * 100;
74268
74268
  Je[dt.id] = { x: Yt, y: _t };
74269
74269
  }
74270
74270
  }
74271
74271
  };
74272
- re == null || re.annotations.forEach(rt), se == null || se.annotations.forEach(rt), ye.forEach(rt), U(Je);
74273
- }, [re, se, ye]);
74272
+ re == null || re.annotations.forEach(rt), se == null || se.annotations.forEach(rt), Pe.forEach(rt), U(Je);
74273
+ }, [re, se, Pe]);
74274
74274
  et(() => {
74275
74275
  const te = K.current;
74276
74276
  if (!te) return;
74277
- const Ce = new ResizeObserver(() => {
74277
+ const ye = new ResizeObserver(() => {
74278
74278
  ke();
74279
74279
  });
74280
- Ce.observe(te);
74280
+ ye.observe(te);
74281
74281
  const ve = setTimeout(ke, 100);
74282
74282
  return () => {
74283
- Ce.disconnect(), clearTimeout(ve);
74283
+ ye.disconnect(), clearTimeout(ve);
74284
74284
  };
74285
- }, [re, se, ye, ke]), et(() => {
74286
- const te = (Ce) => {
74287
- const ve = Ce.target;
74288
- ve.tagName === "INPUT" || ve.tagName === "TEXTAREA" || ve.isContentEditable || ((Ce.ctrlKey || Ce.metaKey) && Ce.key.toLowerCase() === "z" && q && re && re.annotations.length > 0 && (Ce.preventDefault(), l(q.id, re.id), t(null)), (Ce.key === "Delete" || Ce.key === "Backspace") && (n && q && re ? (Ce.preventDefault(), p(q.id, re.id, n), t(null)) : F && q && re && (Ce.preventDefault(), p(q.id, re.id, F), Y(null))));
74285
+ }, [re, se, Pe, ke]), et(() => {
74286
+ const te = (ye) => {
74287
+ const ve = ye.target;
74288
+ ve.tagName === "INPUT" || ve.tagName === "TEXTAREA" || ve.isContentEditable || ((ye.ctrlKey || ye.metaKey) && ye.key.toLowerCase() === "z" && q && re && re.annotations.length > 0 && (ye.preventDefault(), l(q.id, re.id), t(null)), (ye.key === "Delete" || ye.key === "Backspace") && (n && q && re ? (ye.preventDefault(), p(q.id, re.id, n), t(null)) : F && q && re && (ye.preventDefault(), p(q.id, re.id, F), Y(null))));
74289
74289
  };
74290
74290
  return window.addEventListener("keydown", te), () => window.removeEventListener("keydown", te);
74291
74291
  }, [n, F, q, re, l, p, t]);
74292
- const Ze = (te, Ce, ve) => {
74292
+ const Ze = (te, ye, ve) => {
74293
74293
  if (r !== "comment" || !K.current) return;
74294
- const Je = K.current.getBoundingClientRect(), rt = (Ce - Je.left) / Je.width * 100, dt = (ve - Je.top) / Je.height * 100;
74294
+ const Je = K.current.getBoundingClientRect(), rt = (ye - Je.left) / Je.width * 100, dt = (ve - Je.top) / Je.height * 100;
74295
74295
  H({ x: rt, y: dt, selector: te }), J("");
74296
74296
  }, nt = (te) => {
74297
- const Ce = te.currentTarget.getBoundingClientRect(), ve = (te.clientX - Ce.left) / Ce.width * 100, Je = (te.clientY - Ce.top) / Ce.height * 100;
74297
+ const ye = te.currentTarget.getBoundingClientRect(), ve = (te.clientX - ye.left) / ye.width * 100, Je = (te.clientY - ye.top) / ye.height * 100;
74298
74298
  return { x: ve, y: Je };
74299
74299
  }, me = (te) => {
74300
74300
  if (r === "select" || r === "eraser") return;
74301
74301
  te.preventDefault();
74302
- const Ce = nt(te);
74303
- x(!0), v(Ce), G(Ce);
74302
+ const ye = nt(te);
74303
+ x(!0), v(ye), G(ye);
74304
74304
  try {
74305
74305
  te.currentTarget.setPointerCapture(te.pointerId);
74306
74306
  } catch (ve) {
74307
74307
  console.warn("setPointerCapture failed", ve);
74308
74308
  }
74309
- r === "pen" ? y([Ce]) : ["rect", "circle", "arrow"].includes(r) ? b({ x: Ce.x, y: Ce.y, w: 0, h: 0 }) : r === "comment" && (H({ x: Ce.x, y: Ce.y }), J(""));
74309
+ r === "pen" ? y([ye]) : ["rect", "circle", "arrow"].includes(r) ? b({ x: ye.x, y: ye.y, w: 0, h: 0 }) : r === "comment" && (H({ x: ye.x, y: ye.y }), J(""));
74310
74310
  }, ge = (te) => {
74311
74311
  if (!O || !P) return;
74312
74312
  te.preventDefault();
74313
- const Ce = nt(te);
74314
- G(Ce), r === "pen" ? y((ve) => [...ve, Ce]) : ["rect", "circle", "arrow"].includes(r) && b({
74315
- x: Math.min(P.x, Ce.x),
74316
- y: Math.min(P.y, Ce.y),
74317
- w: Math.abs(Ce.x - P.x),
74318
- h: Math.abs(Ce.y - P.y)
74313
+ const ye = nt(te);
74314
+ G(ye), r === "pen" ? y((ve) => [...ve, ye]) : ["rect", "circle", "arrow"].includes(r) && b({
74315
+ x: Math.min(P.x, ye.x),
74316
+ y: Math.min(P.y, ye.y),
74317
+ w: Math.abs(ye.x - P.x),
74318
+ h: Math.abs(ye.y - P.y)
74319
74319
  });
74320
74320
  }, je = (te) => {
74321
74321
  if (!O || !q || !re) return;
@@ -74325,10 +74325,10 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74325
74325
  } catch (ve) {
74326
74326
  console.warn("releasePointerCapture failed", ve);
74327
74327
  }
74328
- const Ce = `ann-${Math.floor(Math.random() * 1e5)}`;
74328
+ const ye = `ann-${Math.floor(Math.random() * 1e5)}`;
74329
74329
  if (r === "pen" && h.length > 1)
74330
74330
  a(q.id, re.id, {
74331
- id: Ce,
74331
+ id: ye,
74332
74332
  type: "stroke",
74333
74333
  color: e,
74334
74334
  points: h
@@ -74336,7 +74336,7 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74336
74336
  else if (["rect", "circle", "arrow"].includes(r) && C && P) {
74337
74337
  const ve = w || P;
74338
74338
  a(q.id, re.id, {
74339
- id: Ce,
74339
+ id: ye,
74340
74340
  type: r,
74341
74341
  color: e,
74342
74342
  x: C.x,
@@ -74347,7 +74347,7 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74347
74347
  });
74348
74348
  }
74349
74349
  y([]), b(null), v(null), G(null);
74350
- }, Fe = () => {
74350
+ }, We = () => {
74351
74351
  !D || !q || !re || (a(q.id, re.id, {
74352
74352
  id: `ann-${Math.floor(Math.random() * 1e5)}`,
74353
74353
  type: "comment",
@@ -74405,8 +74405,8 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74405
74405
  _A("arrowhead-blue", "#3b82f6")
74406
74406
  ] }),
74407
74407
  re.annotations.map((te) => {
74408
- const Ce = te.id === n, ve = (rt) => {
74409
- rt.stopPropagation(), r === "select" ? t(Ce ? null : te.id) : r === "eraser" && p(q.id, re.id, te.id);
74408
+ const ye = te.id === n, ve = (rt) => {
74409
+ rt.stopPropagation(), r === "select" ? t(ye ? null : te.id) : r === "eraser" && p(q.id, re.id, te.id);
74410
74410
  }, Je = Jo(
74411
74411
  r === "select" || r === "eraser" ? "pointer-events-auto cursor-pointer" : "pointer-events-none"
74412
74412
  );
@@ -74431,7 +74431,7 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74431
74431
  },
74432
74432
  "hover-highlight"
74433
74433
  ),
74434
- Ce && /* @__PURE__ */ m.jsx(
74434
+ ye && /* @__PURE__ */ m.jsx(
74435
74435
  "path",
74436
74436
  {
74437
74437
  d: Zi(te.points),
@@ -74485,7 +74485,7 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74485
74485
  },
74486
74486
  "hover-highlight"
74487
74487
  ),
74488
- Ce && /* @__PURE__ */ m.jsx(
74488
+ ye && /* @__PURE__ */ m.jsx(
74489
74489
  "rect",
74490
74490
  {
74491
74491
  x: te.x,
@@ -74541,7 +74541,7 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74541
74541
  },
74542
74542
  "hover-highlight"
74543
74543
  ),
74544
- Ce && /* @__PURE__ */ m.jsx(
74544
+ ye && /* @__PURE__ */ m.jsx(
74545
74545
  "ellipse",
74546
74546
  {
74547
74547
  cx: te.x + te.width / 2,
@@ -74597,7 +74597,7 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74597
74597
  },
74598
74598
  "hover-highlight"
74599
74599
  ),
74600
- Ce && /* @__PURE__ */ m.jsx(
74600
+ ye && /* @__PURE__ */ m.jsx(
74601
74601
  "line",
74602
74602
  {
74603
74603
  x1: te.points[0].x,
@@ -74683,7 +74683,7 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74683
74683
  `comp-${te.id}`
74684
74684
  );
74685
74685
  }),
74686
- ye.map((te) => te.type === "stroke" && te.points ? /* @__PURE__ */ m.jsx(
74686
+ Pe.map((te) => te.type === "stroke" && te.points ? /* @__PURE__ */ m.jsx(
74687
74687
  "path",
74688
74688
  {
74689
74689
  d: Zi(te.points),
@@ -74798,7 +74798,7 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74798
74798
  ]
74799
74799
  }
74800
74800
  ),
74801
- Ie.map((te, Ce) => {
74801
+ Ie.map((te, ye) => {
74802
74802
  const ve = le[te.id] || { x: te.x || 0, y: te.y || 0 };
74803
74803
  return /* @__PURE__ */ m.jsx(
74804
74804
  "div",
@@ -74818,12 +74818,12 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74818
74818
  color: "#fff"
74819
74819
  },
74820
74820
  title: r === "eraser" ? "Click to erase comment" : "View comment details",
74821
- children: Ce + 1
74821
+ children: ye + 1
74822
74822
  },
74823
74823
  te.id
74824
74824
  );
74825
74825
  }),
74826
- De.map((te, Ce) => {
74826
+ De.map((te, ye) => {
74827
74827
  const ve = le[te.id] || { x: te.x || 0, y: te.y || 0 };
74828
74828
  return /* @__PURE__ */ m.jsx(
74829
74829
  "div",
@@ -74837,12 +74837,12 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74837
74837
  color: te.color
74838
74838
  },
74839
74839
  title: `Old Rev annotation: ${te.text}`,
74840
- children: Ce + 1
74840
+ children: ye + 1
74841
74841
  },
74842
74842
  `comp-${te.id}`
74843
74843
  );
74844
74844
  }),
74845
- ye.filter((te) => te.type === "comment").map((te, Ce) => {
74845
+ Pe.filter((te) => te.type === "comment").map((te, ye) => {
74846
74846
  const ve = le[te.id] || { x: te.x || 0, y: te.y || 0 };
74847
74847
  return /* @__PURE__ */ m.jsx(
74848
74848
  "div",
@@ -74853,7 +74853,7 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74853
74853
  top: `${ve.y}%`
74854
74854
  },
74855
74855
  title: `Template comment: ${te.text}`,
74856
- children: String.fromCharCode(65 + Ce)
74856
+ children: String.fromCharCode(65 + ye)
74857
74857
  },
74858
74858
  `parent-comment-${te.id}`
74859
74859
  );
@@ -74861,14 +74861,14 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74861
74861
  F && (() => {
74862
74862
  const te = re.annotations.find((Je) => Je.id === F);
74863
74863
  if (!te) return null;
74864
- const Ce = le[te.id] || { x: te.x || 0, y: te.y || 0 }, ve = Ie.findIndex((Je) => Je.id === te.id) + 1;
74864
+ const ye = le[te.id] || { x: te.x || 0, y: te.y || 0 }, ve = Ie.findIndex((Je) => Je.id === te.id) + 1;
74865
74865
  return /* @__PURE__ */ m.jsxs(
74866
74866
  "div",
74867
74867
  {
74868
74868
  className: "absolute z-40 bg-popover border border-border rounded-lg shadow-xl p-3 max-w-xs text-xs -translate-x-1/2 mt-4",
74869
74869
  style: {
74870
- left: `${Ce.x}%`,
74871
- top: `${Ce.y}%`
74870
+ left: `${ye.x}%`,
74871
+ top: `${ye.y}%`
74872
74872
  },
74873
74873
  children: [
74874
74874
  /* @__PURE__ */ m.jsxs("div", { className: "flex justify-between items-center mb-1.5 border-b pb-1", children: [
@@ -74961,7 +74961,7 @@ const Zi = (r) => r.length < 2 ? "" : `M ${r[0].x} ${r[0].y} ` + r.slice(1).map(
74961
74961
  /* @__PURE__ */ m.jsxs(
74962
74962
  "button",
74963
74963
  {
74964
- onClick: Fe,
74964
+ onClick: We,
74965
74965
  className: "px-2 py-1 text-[10px] rounded bg-primary text-primary-foreground font-semibold flex items-center gap-1",
74966
74966
  children: [
74967
74967
  /* @__PURE__ */ m.jsx(s4, { size: 10 }),
@@ -75015,7 +75015,7 @@ const YK = ({ setActiveTab: r }) => {
75015
75015
  style: { stroke: "#f59e0b", strokeDasharray: "5,5", strokeWidth: 1.5 },
75016
75016
  labelStyle: { fill: "#f59e0b", fontWeight: 600, fontSize: 10 },
75017
75017
  labelBgStyle: { fill: "#1e293b" },
75018
- markerEnd: { type: kr.ArrowClosed, color: "#f59e0b" }
75018
+ markerEnd: { type: mr.ArrowClosed, color: "#f59e0b" }
75019
75019
  };
75020
75020
  t(e, mc(w, n));
75021
75021
  }
@@ -75652,14 +75652,14 @@ const QK = () => {
75652
75652
  }
75653
75653
  }
75654
75654
  ], $K = [
75655
- { id: "edge-1-2", source: "node-1", target: "node-2", type: "smoothstep", style: { stroke: "#818cf8", strokeWidth: 2 }, markerEnd: { type: kr.ArrowClosed, color: "#818cf8" } },
75656
- { id: "edge-2-3", source: "node-2", target: "node-3", type: "smoothstep", style: { stroke: "#4ade80", strokeWidth: 2 }, markerEnd: { type: kr.ArrowClosed, color: "#4ade80" } },
75657
- { id: "edge-2-4", source: "node-2", target: "node-4", type: "smoothstep", style: { stroke: "#f87171", strokeWidth: 2 }, markerEnd: { type: kr.ArrowClosed, color: "#f87171" } },
75658
- { id: "edge-1-5", source: "node-1", target: "node-5", type: "smoothstep", style: { stroke: "#818cf8", strokeWidth: 2 }, markerEnd: { type: kr.ArrowClosed, color: "#818cf8" } },
75659
- { id: "edge-5-6", source: "node-5", target: "node-6", type: "smoothstep", style: { stroke: "#4ade80", strokeWidth: 2 }, markerEnd: { type: kr.ArrowClosed, color: "#4ade80" } },
75660
- { id: "edge-5-7", source: "node-5", target: "node-7", type: "smoothstep", style: { stroke: "#fbbf24", strokeWidth: 2 }, markerEnd: { type: kr.ArrowClosed, color: "#fbbf24" } },
75661
- { id: "edge-1-8", source: "node-1", target: "node-8", type: "smoothstep", style: { stroke: "#14b8a6", strokeWidth: 2 }, markerEnd: { type: kr.ArrowClosed, color: "#14b8a6" } },
75662
- { id: "edge-5-9", source: "node-5", target: "node-9", type: "smoothstep", style: { stroke: "#ec4899", strokeWidth: 2 }, markerEnd: { type: kr.ArrowClosed, color: "#ec4899" } }
75655
+ { id: "edge-1-2", source: "node-1", target: "node-2", type: "smoothstep", style: { stroke: "#818cf8", strokeWidth: 2 }, markerEnd: { type: mr.ArrowClosed, color: "#818cf8" } },
75656
+ { id: "edge-2-3", source: "node-2", target: "node-3", type: "smoothstep", style: { stroke: "#4ade80", strokeWidth: 2 }, markerEnd: { type: mr.ArrowClosed, color: "#4ade80" } },
75657
+ { id: "edge-2-4", source: "node-2", target: "node-4", type: "smoothstep", style: { stroke: "#f87171", strokeWidth: 2 }, markerEnd: { type: mr.ArrowClosed, color: "#f87171" } },
75658
+ { id: "edge-1-5", source: "node-1", target: "node-5", type: "smoothstep", style: { stroke: "#818cf8", strokeWidth: 2 }, markerEnd: { type: mr.ArrowClosed, color: "#818cf8" } },
75659
+ { id: "edge-5-6", source: "node-5", target: "node-6", type: "smoothstep", style: { stroke: "#4ade80", strokeWidth: 2 }, markerEnd: { type: mr.ArrowClosed, color: "#4ade80" } },
75660
+ { id: "edge-5-7", source: "node-5", target: "node-7", type: "smoothstep", style: { stroke: "#fbbf24", strokeWidth: 2 }, markerEnd: { type: mr.ArrowClosed, color: "#fbbf24" } },
75661
+ { id: "edge-1-8", source: "node-1", target: "node-8", type: "smoothstep", style: { stroke: "#14b8a6", strokeWidth: 2 }, markerEnd: { type: mr.ArrowClosed, color: "#14b8a6" } },
75662
+ { id: "edge-5-9", source: "node-5", target: "node-9", type: "smoothstep", style: { stroke: "#ec4899", strokeWidth: 2 }, markerEnd: { type: mr.ArrowClosed, color: "#ec4899" } }
75663
75663
  ], Sa = Bs((r, e) => ({
75664
75664
  nodes: _K,
75665
75665
  edges: $K,
@@ -75676,28 +75676,54 @@ const QK = () => {
75676
75676
  layoutHistory: [...t.layoutHistory, JSON.parse(JSON.stringify(n))]
75677
75677
  }));
75678
75678
  },
75679
- addNode: (n, t) => {
75680
- const o = `node-${Date.now()}`, i = {
75681
- id: o,
75679
+ addNode: (n, t, o) => {
75680
+ const i = `node-${Date.now()}`, s = {
75681
+ id: i,
75682
75682
  type: "ibisNode",
75683
75683
  position: t,
75684
75684
  width: 240,
75685
75685
  height: 182,
75686
75686
  data: {
75687
- id: o,
75687
+ id: i,
75688
75688
  type: n,
75689
75689
  title: `New ${n.charAt(0).toUpperCase() + n.slice(1)}`,
75690
75690
  description: "",
75691
75691
  tags: [],
75692
75692
  author: "user",
75693
75693
  timestamp: (/* @__PURE__ */ new Date()).toLocaleString(),
75694
- status: n === "question" || n === "idea" ? "pending" : void 0
75694
+ status: n === "question" || n === "idea" ? "pending" : void 0,
75695
+ autoEdit: !0
75695
75696
  }
75696
75697
  };
75697
- r((s) => ({
75698
- nodes: [...s.nodes, i],
75699
- selectedNodeId: o
75700
- }));
75698
+ r((a) => {
75699
+ const l = [...a.nodes, s], p = [...a.edges];
75700
+ if (o) {
75701
+ const u = a.nodes.find((S) => S.id === o);
75702
+ if (u) {
75703
+ let S = !1, O = i, x = o;
75704
+ const h = n, y = u.data.type;
75705
+ if (h === "pro" || h === "con" ? (y === "idea" || y === "decision") && (S = !0) : h === "idea" ? (y === "question" || y === "idea") && (S = !0) : h === "decision" ? y === "question" && (S = !0) : S = !0, S || (y === "pro" || y === "con" ? (h === "idea" || h === "decision") && (O = o, x = i, S = !0) : y === "idea" ? (h === "question" || h === "idea") && (O = o, x = i, S = !0) : y === "decision" ? h === "question" && (O = o, x = i, S = !0) : (O = o, x = i, S = !0)), S) {
75706
+ let P = "#818cf8";
75707
+ const C = (O === i ? s : u).data.type;
75708
+ C === "pro" ? P = "#4ade80" : C === "con" ? P = "#f87171" : C === "note" ? P = "#fbbf24" : C === "link" ? P = "#14b8a6" : C === "image" && (P = "#ec4899");
75709
+ const b = `edge-${O}-${x}-${Date.now()}`;
75710
+ p.push({
75711
+ id: b,
75712
+ source: O,
75713
+ target: x,
75714
+ type: "smoothstep",
75715
+ style: { stroke: P, strokeWidth: 2 },
75716
+ markerEnd: { type: mr.ArrowClosed, color: P }
75717
+ });
75718
+ }
75719
+ }
75720
+ }
75721
+ return {
75722
+ nodes: l,
75723
+ edges: p,
75724
+ selectedNodeId: i
75725
+ };
75726
+ });
75701
75727
  },
75702
75728
  updateNodeData: (n, t) => {
75703
75729
  r((o) => ({
@@ -75742,7 +75768,7 @@ const QK = () => {
75742
75768
  target: o,
75743
75769
  type: "smoothstep",
75744
75770
  style: { stroke: a, strokeWidth: 2 },
75745
- markerEnd: { type: kr.ArrowClosed, color: a }
75771
+ markerEnd: { type: mr.ArrowClosed, color: a }
75746
75772
  };
75747
75773
  return r((u) => ({
75748
75774
  edges: [...u.edges, p]
@@ -75830,12 +75856,14 @@ function Cd(...r) {
75830
75856
  return Yn(qn(r));
75831
75857
  }
75832
75858
  const tQ = ({ data: r, selected: e }) => {
75833
- const n = Sa((v) => v.updateNodeData), t = Sa((v) => v.selectedNodeId), o = Sa((v) => v.setSelectedNodeId), [i, s] = it(!1), [a, l] = it(r.title), p = lt(null);
75859
+ const n = Sa((v) => v.updateNodeData), t = Sa((v) => v.selectedNodeId), o = Sa((v) => v.setSelectedNodeId), [i, s] = it(() => !!r.autoEdit), [a, l] = it(r.title), p = lt(null);
75834
75860
  et(() => {
75835
75861
  l(r.title);
75836
75862
  }, [r.title]), et(() => {
75837
75863
  i && p.current && (p.current.focus(), p.current.select());
75838
- }, [i]);
75864
+ }, [i]), et(() => {
75865
+ r.autoEdit && n(r.id, { autoEdit: !1 });
75866
+ }, [r.autoEdit, r.id, n]);
75839
75867
  const u = (v) => {
75840
75868
  v.stopPropagation(), s(!0);
75841
75869
  }, S = () => {
@@ -76035,15 +76063,25 @@ const xI = ({ node: r }) => /* @__PURE__ */ m.jsx(Xl, { children: /* @__PURE__ *
76035
76063
  }
76036
76064
  if (ge.ctrlKey || ge.metaKey || ge.altKey)
76037
76065
  return;
76038
- let Fe = null;
76039
- if (ge.key === "q" || ge.key === "?" ? Fe = "question" : ge.key === "a" || ge.key === "!" ? Fe = "idea" : ge.key === "p" || ge.key === "+" ? Fe = "pro" : ge.key === "c" || ge.key === "-" ? Fe = "con" : ge.key === "n" ? Fe = "note" : ge.key === "d" ? Fe = "decision" : ge.key === "l" ? Fe = "link" : ge.key === "i" && (Fe = "image"), Fe) {
76040
- ge.preventDefault();
76066
+ let We = null;
76067
+ if (ge.key === "q" || ge.key === "?" ? We = "question" : ge.key === "a" || ge.key === "!" ? We = "idea" : ge.key === "p" || ge.key === "+" ? We = "pro" : ge.key === "c" || ge.key === "-" ? We = "con" : ge.key === "n" ? We = "note" : ge.key === "d" ? We = "decision" : ge.key === "l" ? We = "link" : ge.key === "i" && (We = "image"), We) {
76068
+ if (ge.preventDefault(), o) {
76069
+ const ye = n.find((ve) => ve.id === o);
76070
+ if (ye) {
76071
+ const ve = (Math.random() - 0.5) * 40, Je = {
76072
+ x: ye.position.x + ve,
76073
+ y: ye.position.y + 250
76074
+ };
76075
+ S(We, Je, o);
76076
+ return;
76077
+ }
76078
+ }
76041
76079
  const te = Math.random() * 50;
76042
- S(Fe, { x: 350 + te, y: 150 + te });
76080
+ S(We, { x: 350 + te, y: 150 + te });
76043
76081
  }
76044
76082
  };
76045
76083
  return window.addEventListener("keydown", me), () => window.removeEventListener("keydown", me);
76046
- }, [r, i, P, S]), et(() => {
76084
+ }, [r, i, P, S, o, n]), et(() => {
76047
76085
  if (s) {
76048
76086
  const me = setTimeout(() => {
76049
76087
  a(null);
@@ -76056,9 +76094,9 @@ const xI = ({ node: r }) => /* @__PURE__ */ m.jsx(Xl, { children: /* @__PURE__ *
76056
76094
  const ge = [...n];
76057
76095
  me.forEach((je) => {
76058
76096
  if (je.type === "position" && je.position) {
76059
- const Fe = ge.findIndex((te) => te.id === je.id);
76060
- Fe !== -1 && (ge[Fe] = {
76061
- ...ge[Fe],
76097
+ const We = ge.findIndex((te) => te.id === je.id);
76098
+ We !== -1 && (ge[We] = {
76099
+ ...ge[We],
76062
76100
  position: je.position
76063
76101
  });
76064
76102
  }
@@ -76070,13 +76108,13 @@ const xI = ({ node: r }) => /* @__PURE__ */ m.jsx(Xl, { children: /* @__PURE__ *
76070
76108
  const ge = [...t];
76071
76109
  me.forEach((je) => {
76072
76110
  if (je.type === "remove") {
76073
- const Fe = ge.findIndex((te) => te.id === je.id);
76074
- Fe !== -1 && ge.splice(Fe, 1);
76111
+ const We = ge.findIndex((te) => te.id === je.id);
76112
+ We !== -1 && ge.splice(We, 1);
76075
76113
  }
76076
76114
  }), u(ge);
76077
76115
  },
76078
76116
  [t, u]
76079
- ), ye = qt(
76117
+ ), Pe = qt(
76080
76118
  (me) => {
76081
76119
  h(me);
76082
76120
  },
@@ -76095,7 +76133,7 @@ const xI = ({ node: r }) => /* @__PURE__ */ m.jsx(Xl, { children: /* @__PURE__ *
76095
76133
  }
76096
76134
  }, je = (ve) => {
76097
76135
  D && J({ clientX: ve.clientX, clientY: ve.clientY });
76098
- }, Fe = (ve) => {
76136
+ }, We = (ve) => {
76099
76137
  if (ve.button === 2 && D) {
76100
76138
  const rt = ve.target.closest(".react-flow__node");
76101
76139
  if (rt) {
@@ -76111,32 +76149,32 @@ const xI = ({ node: r }) => /* @__PURE__ */ m.jsx(Xl, { children: /* @__PURE__ *
76111
76149
  H(null), J(null);
76112
76150
  }, te = (ve) => {
76113
76151
  F.current && (ve.preventDefault(), F.current = !1);
76114
- }, Ce = (ve) => {
76152
+ }, ye = (ve) => {
76115
76153
  const Je = ve.target;
76116
76154
  if (Je.closest(".react-flow__node") || Je.closest(".react-flow__controls") || Je.closest(".react-flow__minimap"))
76117
76155
  return;
76118
76156
  const rt = me.getBoundingClientRect(), dt = ve.clientX - rt.left, Qe = ve.clientY - rt.top, Xe = w.project({ x: dt, y: Qe });
76119
76157
  S("question", Xe);
76120
76158
  };
76121
- return me.addEventListener("mousedown", ge), me.addEventListener("dblclick", Ce), window.addEventListener("mousemove", je), window.addEventListener("mouseup", Fe), window.addEventListener("contextmenu", te, { capture: !0 }), () => {
76122
- me.removeEventListener("mousedown", ge), me.removeEventListener("dblclick", Ce), window.removeEventListener("mousemove", je), window.removeEventListener("mouseup", Fe), window.removeEventListener("contextmenu", te, { capture: !0 });
76159
+ return me.addEventListener("mousedown", ge), me.addEventListener("dblclick", ye), window.addEventListener("mousemove", je), window.addEventListener("mouseup", We), window.addEventListener("contextmenu", te, { capture: !0 }), () => {
76160
+ me.removeEventListener("mousedown", ge), me.removeEventListener("dblclick", ye), window.removeEventListener("mousemove", je), window.removeEventListener("mouseup", We), window.removeEventListener("contextmenu", te, { capture: !0 });
76123
76161
  };
76124
76162
  }, [D, h, w, S]);
76125
76163
  const se = () => {
76126
- const me = C(), ge = new Blob([me], { type: "application/json" }), je = URL.createObjectURL(ge), Fe = document.createElement("a");
76127
- Fe.href = je, Fe.download = `dialogue-map-${Date.now()}.json`, Fe.click(), URL.revokeObjectURL(je);
76164
+ const me = C(), ge = new Blob([me], { type: "application/json" }), je = URL.createObjectURL(ge), We = document.createElement("a");
76165
+ We.href = je, We.download = `dialogue-map-${Date.now()}.json`, We.click(), URL.revokeObjectURL(je);
76128
76166
  }, Ie = () => {
76129
76167
  var me;
76130
76168
  (me = b.current) == null || me.click();
76131
76169
  }, De = (me) => {
76132
- var Fe;
76133
- const ge = (Fe = me.target.files) == null ? void 0 : Fe[0];
76170
+ var We;
76171
+ const ge = (We = me.target.files) == null ? void 0 : We[0];
76134
76172
  if (!ge) return;
76135
76173
  const je = new FileReader();
76136
76174
  je.onload = (te) => {
76137
76175
  var Je;
76138
- const Ce = (Je = te.target) == null ? void 0 : Je.result;
76139
- v(Ce) || alert("Failed to import dialogue map. Ensure it is a valid JSON file with nodes and edges.");
76176
+ const ye = (Je = te.target) == null ? void 0 : Je.result;
76177
+ v(ye) || alert("Failed to import dialogue map. Ensure it is a valid JSON file with nodes and edges.");
76140
76178
  }, je.readAsText(ge), me.target.value = "";
76141
76179
  }, ke = (me) => {
76142
76180
  S(me, { x: 350 + Math.random() * 50, y: 150 + Math.random() * 50 });
@@ -76307,7 +76345,7 @@ const xI = ({ node: r }) => /* @__PURE__ */ m.jsx(Xl, { children: /* @__PURE__ *
76307
76345
  edges: t,
76308
76346
  onNodesChange: Ee,
76309
76347
  onEdgesChange: ce,
76310
- onConnect: ye,
76348
+ onConnect: Pe,
76311
76349
  onNodeDragStart: l,
76312
76350
  nodeTypes: e,
76313
76351
  minZoom: 0.1,
@@ -76336,13 +76374,13 @@ const xI = ({ node: r }) => /* @__PURE__ */ m.jsx(Xl, { children: /* @__PURE__ *
76336
76374
  D && z && G.current && (() => {
76337
76375
  const me = document.querySelector(`[data-id="${D}"]`);
76338
76376
  if (!me) return null;
76339
- const ge = me.getBoundingClientRect(), je = G.current.getBoundingClientRect(), Fe = ge.left + ge.width / 2 - je.left, te = ge.top + ge.height / 2 - je.top, Ce = z.clientX - je.left, ve = z.clientY - je.top;
76377
+ const ge = me.getBoundingClientRect(), je = G.current.getBoundingClientRect(), We = ge.left + ge.width / 2 - je.left, te = ge.top + ge.height / 2 - je.top, ye = z.clientX - je.left, ve = z.clientY - je.top;
76340
76378
  return /* @__PURE__ */ m.jsx("svg", { className: "absolute inset-0 pointer-events-none z-50 w-full h-full", children: /* @__PURE__ */ m.jsx(
76341
76379
  "line",
76342
76380
  {
76343
- x1: Fe,
76381
+ x1: We,
76344
76382
  y1: te,
76345
- x2: Ce,
76383
+ x2: ye,
76346
76384
  y2: ve,
76347
76385
  stroke: "#64748b",
76348
76386
  strokeWidth: 2,