@factorialco/f0-react 4.23.0 → 4.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{F0AiProcessingOverlay-CkJL2WvT.js → F0AiProcessingOverlay--OAyX7JL.js} +14 -13
- package/dist/{F0CanvasPanel-Bca0wz2p.js → F0CanvasPanel-CYITfwlc.js} +359 -331
- package/dist/ai.d.ts +14 -0
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +14 -0
- package/dist/experimental.js +2361 -2324
- package/dist/f0.css +1 -1
- package/dist/f0.d.ts +56 -0
- package/dist/f0.js +60439 -46884
- package/dist/i18n-provider-defaults.d.ts +14 -0
- package/dist/i18n-provider-defaults.js +14 -0
- package/dist/styles.css +1 -1
- package/dist/{useDataCollectionSource-Dk_5gIWm.js → useDataCollectionSource-DMGVHA_H.js} +363 -361
- package/package.json +5 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m, jsxs as R, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import * as Fe from "react";
|
|
3
3
|
import oe, { useRef as q, useState as J, useCallback as re, useEffect as se, useContext as Ct, useMemo as ie, createContext as qt, forwardRef as Ke, useLayoutEffect as tn, PureComponent as Bl, useImperativeHandle as jl, Fragment as Qa, useId as Hl, useDebugValue as MC, version as Uk, createRef as k8, memo as ft, createElement as my, isValidElement as x8, cloneElement as _8 } from "react";
|
|
4
|
-
import { ey as qk, ez as rf, eA as S8, el as DC, eB as C8, eC as E8, eD as A8, eE as Cg, eF as T8, eG as N8, eH as O8, eI as M8, eJ as D8, cW as I8, eK as P8, p as je, d2 as IC, cY as R8, L as An, a1 as qp, o as K, S as O0, bW as L8, dk as F8, q as Vl, a8 as wt, a9 as wr, eL as PC, eM as RC, eN as $8, eO as z8, eP as gs, eQ as Pn, eR as ct, eS as Jn, eT as LC, eU as B8, eV as FC, eW as Kp, eX as j8, eY as xn, eZ as Gp, e_ as zt, e$ as $C, f0 as Yp, f1 as M0, f2 as D0, f3 as I0, f4 as gn, f5 as Yn, f6 as gy, f7 as Xp, f8 as H8, f9 as In, fa as Po, fb as Kn, fc as oa, fd as P0, fe as Jp, ff as Ru, fg as Zp, cg as R0, fh as V8, fi as Gf, fj as ch, fk as W8, fl as U8, fm as q8, fn as K8, fo as G8, fp as Y8, fq as zC, fr as BC, fs as jC, ft as HC, fu as VC, fv as X8, fw as dh, fx as J8, fy as Z8, fz as of, fA as Zo, eq as Zr, fB as L0, fC as sf, fD as WC, er as UC, fE as Q8, fF as e7, eo as t7, fG as n7, ep as i7, ag as Rn, fH as Ln, T as F0, r as $0, s as z0, w as B0, fI as r7, fJ as qC, v as nn, fK as KC, c0 as Ii, A as Tt, cB as o7, au as Ki, Q as Se, a5 as Wl, a7 as el, H as Je, Z as af, bX as s7, fL as GC, fM as a7, fN as l7, u as ze, aQ as YC, b0 as Ul, ce as XC, ee as JC, aJ as j0, bd as Qp, aa as em, fO as ZC, aT as c7, $ as Qr, fP as d7, bM as QC, fQ as f7, cG as Yt, fR as e5, fS as t5, fT as yy, fU as u7, fV as Kk, ai as lf, cN as n5, cH as vy, aE as H0, aF as V0, aG as W0, cL as h7, aw as fr, fW as p7, co as m7, fX as g7, fY as Eg, dZ as i5, bH as sa, fZ as Gk, f_ as Yk, f$ as Ag, g0 as Xk, g1 as y7, g2 as v7, ah as b7, g3 as r5, g4 as w7, aA as k7, cu as tm, J as o5, K as s5, bP as nm, O as a5, _ as x7, g5 as _7, g6 as Jk, Y as fh, cv as im, g7 as l5, g8 as c5, N as d5, g9 as f5, ba as ql, dL as U0, ae as eo, ar as u5, b9 as S7, bb as C7, am as Bs, ga as E7, gb as A7, bN as q0, gc as h5, gd as rm, ge as K0, gf as T7, gg as p5, gh as Cn, ek as ud, gi as Gi, ds as N7, bL as O7, a6 as M7, c as D7, ck as I7, be as Tg, gj as cf, gk as G0, gl as Y0, gm as df, gn as P7, b7 as R7, cs as X0, dT as by, bj as L7, df as F7, av as wy, aV as $7, bp as z7, dm as B7, dP as j7, e7 as H7, e4 as V7, dM as m5, dN as g5, dO as y5, dU as J0, dX as v5, dr as b5, by as w5, di as k5, dg as x5, dj as _5, dh as S5, dt as C5, dW as Z0, d_ as E5, al as A5, go as T5, gp as W7, aY as U7, U as Ae, af as ff, bm as Kl, dG as q7, dE as K7, dD as G7, dC as Y7, dF as X7, bv as J7, e9 as Z7, ak as N5, bI as Q7, bJ as eI, e6 as tI, bK as nI, bx as iI, bQ as O5, bR as rI, bG as oI, gq as sI, dw as aI, gr as lI, gs as _o, eg as cI, bS as M5, bT as D5, bU as I5, ad as dI, cl as fI, e8 as P5, gt as uI, gu as hI, at as Q0, gv as pI, gw as mI, gx as gI, cK as yI, aX as vI, a2 as R5, gy as Zk, eh as bI, e1 as wI, gz as kI, b5 as xI, e3 as _I, bc as SI, bs as CI, gA as EI, bu as AI, b2 as TI, gB as NI, gC as om, gD as eb, c1 as OI, c2 as MI, c3 as DI, c5 as II, gE as tb, gF as L5, bD as sm, gG as PI, de as nb, b$ as ky, ao as RI, ap as LI, V as FI, c6 as $I, bA as F5, bB as $5, bC as z5, gH as uh, gI as zI, gJ as BI, as as jI, dV as HI, gK as VI, gL as Qk, gM as WI, gN as ex, gO as Ng, gP as B5, e0 as UI, dI as qI, gQ as KI, gR as GI, b4 as YI, a3 as XI, cr as JI, dY as ZI, dQ as tx, e5 as QI, bV as eP, gS as tP, gT as ib, dl as nP, du as iP, e2 as rP, gU as oP, d$ as sP, cd as nx, gV as aP, gW as lP, gX as cP, gY as dP } from "./F0CanvasPanel-
|
|
4
|
+
import { ey as qk, ez as rf, eA as S8, el as DC, eB as C8, eC as E8, eD as A8, eE as Cg, eF as T8, eG as N8, eH as O8, eI as M8, eJ as D8, cW as I8, eK as P8, p as je, d2 as IC, cY as R8, L as An, a1 as qp, o as K, S as O0, bW as L8, dk as F8, q as Vl, a8 as wt, a9 as wr, eL as PC, eM as RC, eN as $8, eO as z8, eP as gs, eQ as Pn, eR as ct, eS as Jn, eT as LC, eU as B8, eV as FC, eW as Kp, eX as j8, eY as xn, eZ as Gp, e_ as zt, e$ as $C, f0 as Yp, f1 as M0, f2 as D0, f3 as I0, f4 as gn, f5 as Yn, f6 as gy, f7 as Xp, f8 as H8, f9 as In, fa as Po, fb as Kn, fc as oa, fd as P0, fe as Jp, ff as Ru, fg as Zp, cg as R0, fh as V8, fi as Gf, fj as ch, fk as W8, fl as U8, fm as q8, fn as K8, fo as G8, fp as Y8, fq as zC, fr as BC, fs as jC, ft as HC, fu as VC, fv as X8, fw as dh, fx as J8, fy as Z8, fz as of, fA as Zo, eq as Zr, fB as L0, fC as sf, fD as WC, er as UC, fE as Q8, fF as e7, eo as t7, fG as n7, ep as i7, ag as Rn, fH as Ln, T as F0, r as $0, s as z0, w as B0, fI as r7, fJ as qC, v as nn, fK as KC, c0 as Ii, A as Tt, cB as o7, au as Ki, Q as Se, a5 as Wl, a7 as el, H as Je, Z as af, bX as s7, fL as GC, fM as a7, fN as l7, u as ze, aQ as YC, b0 as Ul, ce as XC, ee as JC, aJ as j0, bd as Qp, aa as em, fO as ZC, aT as c7, $ as Qr, fP as d7, bM as QC, fQ as f7, cG as Yt, fR as e5, fS as t5, fT as yy, fU as u7, fV as Kk, ai as lf, cN as n5, cH as vy, aE as H0, aF as V0, aG as W0, cL as h7, aw as fr, fW as p7, co as m7, fX as g7, fY as Eg, dZ as i5, bH as sa, fZ as Gk, f_ as Yk, f$ as Ag, g0 as Xk, g1 as y7, g2 as v7, ah as b7, g3 as r5, g4 as w7, aA as k7, cu as tm, J as o5, K as s5, bP as nm, O as a5, _ as x7, g5 as _7, g6 as Jk, Y as fh, cv as im, g7 as l5, g8 as c5, N as d5, g9 as f5, ba as ql, dL as U0, ae as eo, ar as u5, b9 as S7, bb as C7, am as Bs, ga as E7, gb as A7, bN as q0, gc as h5, gd as rm, ge as K0, gf as T7, gg as p5, gh as Cn, ek as ud, gi as Gi, ds as N7, bL as O7, a6 as M7, c as D7, ck as I7, be as Tg, gj as cf, gk as G0, gl as Y0, gm as df, gn as P7, b7 as R7, cs as X0, dT as by, bj as L7, df as F7, av as wy, aV as $7, bp as z7, dm as B7, dP as j7, e7 as H7, e4 as V7, dM as m5, dN as g5, dO as y5, dU as J0, dX as v5, dr as b5, by as w5, di as k5, dg as x5, dj as _5, dh as S5, dt as C5, dW as Z0, d_ as E5, al as A5, go as T5, gp as W7, aY as U7, U as Ae, af as ff, bm as Kl, dG as q7, dE as K7, dD as G7, dC as Y7, dF as X7, bv as J7, e9 as Z7, ak as N5, bI as Q7, bJ as eI, e6 as tI, bK as nI, bx as iI, bQ as O5, bR as rI, bG as oI, gq as sI, dw as aI, gr as lI, gs as _o, eg as cI, bS as M5, bT as D5, bU as I5, ad as dI, cl as fI, e8 as P5, gt as uI, gu as hI, at as Q0, gv as pI, gw as mI, gx as gI, cK as yI, aX as vI, a2 as R5, gy as Zk, eh as bI, e1 as wI, gz as kI, b5 as xI, e3 as _I, bc as SI, bs as CI, gA as EI, bu as AI, b2 as TI, gB as NI, gC as om, gD as eb, c1 as OI, c2 as MI, c3 as DI, c5 as II, gE as tb, gF as L5, bD as sm, gG as PI, de as nb, b$ as ky, ao as RI, ap as LI, V as FI, c6 as $I, bA as F5, bB as $5, bC as z5, gH as uh, gI as zI, gJ as BI, as as jI, dV as HI, gK as VI, gL as Qk, gM as WI, gN as ex, gO as Ng, gP as B5, e0 as UI, dI as qI, gQ as KI, gR as GI, b4 as YI, a3 as XI, cr as JI, dY as ZI, dQ as tx, e5 as QI, bV as eP, gS as tP, gT as ib, dl as nP, du as iP, e2 as rP, gU as oP, d$ as sP, cd as nx, gV as aP, gW as lP, gX as cP, gY as dP } from "./F0CanvasPanel-CYITfwlc.js";
|
|
5
5
|
import rb, { flushSync as fP, createPortal as j5 } from "react-dom";
|
|
6
6
|
import './useDataCollectionSource.css';const uP = {
|
|
7
7
|
active: !0,
|
|
@@ -44161,7 +44161,60 @@ function tte() {
|
|
|
44161
44161
|
hasErrors: n
|
|
44162
44162
|
};
|
|
44163
44163
|
}
|
|
44164
|
-
const nte = wr("F0Form", Qee)
|
|
44164
|
+
const nte = wr("F0Form", Qee);
|
|
44165
|
+
var _4 = Object.prototype.hasOwnProperty;
|
|
44166
|
+
function S4(t, e, n) {
|
|
44167
|
+
for (n of t.keys())
|
|
44168
|
+
if (cd(n, e)) return n;
|
|
44169
|
+
}
|
|
44170
|
+
function cd(t, e) {
|
|
44171
|
+
var n, i, r;
|
|
44172
|
+
if (t === e) return !0;
|
|
44173
|
+
if (t && e && (n = t.constructor) === e.constructor) {
|
|
44174
|
+
if (n === Date) return t.getTime() === e.getTime();
|
|
44175
|
+
if (n === RegExp) return t.toString() === e.toString();
|
|
44176
|
+
if (n === Array) {
|
|
44177
|
+
if ((i = t.length) === e.length)
|
|
44178
|
+
for (; i-- && cd(t[i], e[i]); ) ;
|
|
44179
|
+
return i === -1;
|
|
44180
|
+
}
|
|
44181
|
+
if (n === Set) {
|
|
44182
|
+
if (t.size !== e.size)
|
|
44183
|
+
return !1;
|
|
44184
|
+
for (i of t)
|
|
44185
|
+
if (r = i, r && typeof r == "object" && (r = S4(e, r), !r) || !e.has(r)) return !1;
|
|
44186
|
+
return !0;
|
|
44187
|
+
}
|
|
44188
|
+
if (n === Map) {
|
|
44189
|
+
if (t.size !== e.size)
|
|
44190
|
+
return !1;
|
|
44191
|
+
for (i of t)
|
|
44192
|
+
if (r = i[0], r && typeof r == "object" && (r = S4(e, r), !r) || !cd(i[1], e.get(r)))
|
|
44193
|
+
return !1;
|
|
44194
|
+
return !0;
|
|
44195
|
+
}
|
|
44196
|
+
if (n === ArrayBuffer)
|
|
44197
|
+
t = new Uint8Array(t), e = new Uint8Array(e);
|
|
44198
|
+
else if (n === DataView) {
|
|
44199
|
+
if ((i = t.byteLength) === e.byteLength)
|
|
44200
|
+
for (; i-- && t.getInt8(i) === e.getInt8(i); ) ;
|
|
44201
|
+
return i === -1;
|
|
44202
|
+
}
|
|
44203
|
+
if (ArrayBuffer.isView(t)) {
|
|
44204
|
+
if ((i = t.byteLength) === e.byteLength)
|
|
44205
|
+
for (; i-- && t[i] === e[i]; ) ;
|
|
44206
|
+
return i === -1;
|
|
44207
|
+
}
|
|
44208
|
+
if (!n || typeof t == "object") {
|
|
44209
|
+
i = 0;
|
|
44210
|
+
for (n in t)
|
|
44211
|
+
if (_4.call(t, n) && ++i && !_4.call(e, n) || !(n in e) || !cd(t[n], e[n])) return !1;
|
|
44212
|
+
return Object.keys(e).length === i;
|
|
44213
|
+
}
|
|
44214
|
+
}
|
|
44215
|
+
return t !== t && e !== e;
|
|
44216
|
+
}
|
|
44217
|
+
const ite = Ke(
|
|
44165
44218
|
function({ bare: e = !1, ...n }, i) {
|
|
44166
44219
|
return /* @__PURE__ */ m(
|
|
44167
44220
|
"div",
|
|
@@ -44494,7 +44547,7 @@ class bN {
|
|
|
44494
44547
|
this._observers = Ui();
|
|
44495
44548
|
}
|
|
44496
44549
|
}
|
|
44497
|
-
const io = Math.floor, Ju = Math.abs, Al = (t, e) => t < e ? t : e, Ko = (t, e) => t > e ? t : e, wN = (t) => t !== 0 ? t < 0 : 1 / t < 0,
|
|
44550
|
+
const io = Math.floor, Ju = Math.abs, Al = (t, e) => t < e ? t : e, Ko = (t, e) => t > e ? t : e, wN = (t) => t !== 0 ? t < 0 : 1 / t < 0, C4 = 1, E4 = 2, $1 = 4, z1 = 8, zd = 32, Yr = 64, Fn = 128, gte = 1 << 29, jm = 31, Kv = 63, $s = 127, yte = 2147483647, kN = Number.MAX_SAFE_INTEGER, vte = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && io(t) === t), bte = String.fromCharCode, wte = (t) => t.toLowerCase(), kte = /^\s*/g, xte = (t) => t.replace(kte, ""), _te = /([A-Z])/g, A4 = (t, e) => xte(t.replace(_te, (n) => `${e}${wte(n)}`)), Ste = (t) => {
|
|
44498
44551
|
const e = unescape(encodeURIComponent(t)), n = e.length, i = new Uint8Array(n);
|
|
44499
44552
|
for (let r = 0; r < n; r++)
|
|
44500
44553
|
i[r] = /** @type {number} */
|
|
@@ -44504,8 +44557,8 @@ const io = Math.floor, Ju = Math.abs, Al = (t, e) => t < e ? t : e, Ko = (t, e)
|
|
|
44504
44557
|
/** @type {TextEncoder} */
|
|
44505
44558
|
typeof TextEncoder < "u" ? new TextEncoder() : null
|
|
44506
44559
|
), Cte = (t) => Bd.encode(t), Ete = Bd ? Cte : Ste;
|
|
44507
|
-
let
|
|
44508
|
-
|
|
44560
|
+
let dd = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 });
|
|
44561
|
+
dd && dd.decode(new Uint8Array()).length === 1 && (dd = null);
|
|
44509
44562
|
class Df {
|
|
44510
44563
|
constructor() {
|
|
44511
44564
|
this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = [];
|
|
@@ -44571,7 +44624,7 @@ Bd.encodeInto ? Mte : Dte, Hm = (t, e) => {
|
|
|
44571
44624
|
}, Ite = (t, e) => Ww(t, 4).setFloat32(0, e, !1), Pte = (t, e) => Ww(t, 8).setFloat64(0, e, !1), Rte = (t, e) => (
|
|
44572
44625
|
/** @type {any} */
|
|
44573
44626
|
Ww(t, 8).setBigInt64(0, e, !1)
|
|
44574
|
-
),
|
|
44627
|
+
), T4 = new DataView(new ArrayBuffer(4)), Lte = (t) => (T4.setFloat32(0, t), T4.getFloat32(0) === t), Tl = (t, e) => {
|
|
44575
44628
|
switch (typeof e) {
|
|
44576
44629
|
case "string":
|
|
44577
44630
|
sn(t, 119), Ga(t, e);
|
|
@@ -44608,7 +44661,7 @@ Bd.encodeInto ? Mte : Dte, Hm = (t, e) => {
|
|
|
44608
44661
|
sn(t, 127);
|
|
44609
44662
|
}
|
|
44610
44663
|
};
|
|
44611
|
-
class
|
|
44664
|
+
class N4 extends Df {
|
|
44612
44665
|
/**
|
|
44613
44666
|
* @param {function(Encoder, T):void} writer
|
|
44614
44667
|
*/
|
|
@@ -44622,7 +44675,7 @@ class A4 extends Df {
|
|
|
44622
44675
|
this.s === e ? this.count++ : (this.count > 0 && ot(this, this.count - 1), this.count = 1, this.w(this, e), this.s = e);
|
|
44623
44676
|
}
|
|
44624
44677
|
}
|
|
44625
|
-
const
|
|
44678
|
+
const O4 = (t) => {
|
|
44626
44679
|
t.count > 0 && (Vw(t.encoder, t.count === 1 ? t.s : -t.s), t.count > 1 && ot(t.encoder, t.count - 2));
|
|
44627
44680
|
};
|
|
44628
44681
|
class Zu {
|
|
@@ -44633,7 +44686,7 @@ class Zu {
|
|
|
44633
44686
|
* @param {number} v
|
|
44634
44687
|
*/
|
|
44635
44688
|
write(e) {
|
|
44636
|
-
this.s === e ? this.count++ : (
|
|
44689
|
+
this.s === e ? this.count++ : (O4(this), this.count = 1, this.s = e);
|
|
44637
44690
|
}
|
|
44638
44691
|
/**
|
|
44639
44692
|
* Flush the encoded state and transform this to a Uint8Array.
|
|
@@ -44641,10 +44694,10 @@ class Zu {
|
|
|
44641
44694
|
* Note that this should only be called once.
|
|
44642
44695
|
*/
|
|
44643
44696
|
toUint8Array() {
|
|
44644
|
-
return
|
|
44697
|
+
return O4(this), Bi(this.encoder);
|
|
44645
44698
|
}
|
|
44646
44699
|
}
|
|
44647
|
-
const
|
|
44700
|
+
const M4 = (t) => {
|
|
44648
44701
|
if (t.count > 0) {
|
|
44649
44702
|
const e = t.diff * 2 + (t.count === 1 ? 0 : 1);
|
|
44650
44703
|
Vw(t.encoder, e), t.count > 1 && ot(t.encoder, t.count - 2);
|
|
@@ -44658,7 +44711,7 @@ class B1 {
|
|
|
44658
44711
|
* @param {number} v
|
|
44659
44712
|
*/
|
|
44660
44713
|
write(e) {
|
|
44661
|
-
this.diff === e - this.s ? (this.s = e, this.count++) : (
|
|
44714
|
+
this.diff === e - this.s ? (this.s = e, this.count++) : (M4(this), this.count = 1, this.diff = e - this.s, this.s = e);
|
|
44662
44715
|
}
|
|
44663
44716
|
/**
|
|
44664
44717
|
* Flush the encoded state and transform this to a Uint8Array.
|
|
@@ -44666,7 +44719,7 @@ class B1 {
|
|
|
44666
44719
|
* Note that this should only be called once.
|
|
44667
44720
|
*/
|
|
44668
44721
|
toUint8Array() {
|
|
44669
|
-
return
|
|
44722
|
+
return M4(this), Bi(this.encoder);
|
|
44670
44723
|
}
|
|
44671
44724
|
}
|
|
44672
44725
|
class Fte {
|
|
@@ -44746,8 +44799,8 @@ const Uw = (t) => new Vm(t), $te = (t) => t.pos !== t.arr.length, zte = (t, e) =
|
|
|
44746
44799
|
}
|
|
44747
44800
|
}, jte = (t) => (
|
|
44748
44801
|
/** @type any */
|
|
44749
|
-
|
|
44750
|
-
), Xv =
|
|
44802
|
+
dd.decode(ki(t))
|
|
44803
|
+
), Xv = dd ? jte : Bte, Kw = (t, e) => {
|
|
44751
44804
|
const n = new DataView(t.arr.buffer, t.arr.byteOffset + t.pos, e);
|
|
44752
44805
|
return t.pos += e, n;
|
|
44753
44806
|
}, Hte = (t) => Kw(t, 4).getFloat32(0, !1), Vte = (t) => Kw(t, 8).getFloat64(0, !1), Wte = (t) => (
|
|
@@ -44790,7 +44843,7 @@ const Uw = (t) => new Vm(t), $te = (t) => t.pos !== t.arr.length, zte = (t, e) =
|
|
|
44790
44843
|
ki
|
|
44791
44844
|
// CASE 116: Uint8Array
|
|
44792
44845
|
], _p = (t) => Ute[127 - jd(t)](t);
|
|
44793
|
-
class
|
|
44846
|
+
class D4 extends Vm {
|
|
44794
44847
|
/**
|
|
44795
44848
|
* @param {Uint8Array} uint8Array
|
|
44796
44849
|
* @param {function(Decoder):T} reader
|
|
@@ -44857,12 +44910,12 @@ const Kte = crypto.getRandomValues.bind(crypto), Gte = Math.random, SN = () => K
|
|
|
44857
44910
|
/[018]/g,
|
|
44858
44911
|
/** @param {number} c */
|
|
44859
44912
|
(t) => (t ^ SN() & 15 >> t / 4).toString(16)
|
|
44860
|
-
), Zte = Date.now,
|
|
44913
|
+
), Zte = Date.now, I4 = (t) => (
|
|
44861
44914
|
/** @type {Promise<T>} */
|
|
44862
44915
|
new Promise(t)
|
|
44863
44916
|
);
|
|
44864
44917
|
Promise.all.bind(Promise);
|
|
44865
|
-
const
|
|
44918
|
+
const P4 = (t) => t === void 0 ? null : t;
|
|
44866
44919
|
class Qte {
|
|
44867
44920
|
constructor() {
|
|
44868
44921
|
this.map = /* @__PURE__ */ new Map();
|
|
@@ -44889,7 +44942,7 @@ try {
|
|
|
44889
44942
|
const tne = CN, nne = Object.assign, EN = Object.keys, ine = (t, e) => {
|
|
44890
44943
|
for (const n in t)
|
|
44891
44944
|
e(t[n], n);
|
|
44892
|
-
},
|
|
44945
|
+
}, R4 = (t) => EN(t).length, rne = (t) => {
|
|
44893
44946
|
for (const e in t)
|
|
44894
44947
|
return !1;
|
|
44895
44948
|
return !0;
|
|
@@ -44898,7 +44951,7 @@ const tne = CN, nne = Object.assign, EN = Object.keys, ine = (t, e) => {
|
|
|
44898
44951
|
if (!e(t[n], n))
|
|
44899
44952
|
return !1;
|
|
44900
44953
|
return !0;
|
|
44901
|
-
}, one = (t, e) => Object.prototype.hasOwnProperty.call(t, e), sne = (t, e) => t === e ||
|
|
44954
|
+
}, one = (t, e) => Object.prototype.hasOwnProperty.call(t, e), sne = (t, e) => t === e || R4(t) === R4(e) && AN(t, (n, i) => (n !== void 0 || one(e, i)) && e[i] === n), ane = Object.freeze, TN = (t) => {
|
|
44902
44955
|
for (const e in t) {
|
|
44903
44956
|
const n = t[e];
|
|
44904
44957
|
(typeof n == "object" || typeof n == "function") && TN(t[e]);
|
|
@@ -44927,11 +44980,11 @@ const cne = () => {
|
|
|
44927
44980
|
} else typeof location == "object" ? (ir = Ui(), (location.search || "?").slice(1).split("&").forEach((t) => {
|
|
44928
44981
|
if (t.length !== 0) {
|
|
44929
44982
|
const [e, n] = t.split("=");
|
|
44930
|
-
ir.set(`--${
|
|
44983
|
+
ir.set(`--${A4(e, "-")}`, n), ir.set(`-${A4(e, "-")}`, n);
|
|
44931
44984
|
}
|
|
44932
44985
|
})) : ir = Ui();
|
|
44933
44986
|
return ir;
|
|
44934
|
-
}, Jv = (t) => cne().has(t), Sp = (t) =>
|
|
44987
|
+
}, Jv = (t) => cne().has(t), Sp = (t) => P4(Nl ? process.env[t.toUpperCase().replaceAll("-", "_")] : tne.getItem(t)), ON = (t) => Jv("--" + t) || Sp(t) !== null;
|
|
44935
44988
|
ON("production");
|
|
44936
44989
|
const dne = Nl && lne(process.env.FORCE_COLOR, ["true", "1", "2"]), fne = dne || !Jv("--no-colors") && // @todo deprecate --no-colors
|
|
44937
44990
|
!ON("no-color") && (!Nl || process.stdout.isTTY) && (!Nl || Jv("--color") || Sp("COLORTERM") !== null || (Sp("TERM") || "").includes("color")), une = (t) => {
|
|
@@ -45151,7 +45204,7 @@ const Yo = (t, e, n) => e.clients.forEach((i, r) => {
|
|
|
45151
45204
|
}
|
|
45152
45205
|
}
|
|
45153
45206
|
return e;
|
|
45154
|
-
},
|
|
45207
|
+
}, L4 = (t, e, n) => {
|
|
45155
45208
|
const i = new ic(), r = _t(t.restDecoder);
|
|
45156
45209
|
for (let o = 0; o < r; o++) {
|
|
45157
45210
|
t.resetDsCurVal();
|
|
@@ -45178,12 +45231,12 @@ class da extends bN {
|
|
|
45178
45231
|
* @param {DocOpts} opts configuration
|
|
45179
45232
|
*/
|
|
45180
45233
|
constructor({ guid: e = Jte(), collectionid: n = null, gc: i = !0, gcFilter: r = () => !0, meta: o = null, autoLoad: s = !1, shouldLoad: a = !0 } = {}) {
|
|
45181
|
-
super(), this.gc = i, this.gcFilter = r, this.clientID = BN(), this.guid = e, this.collectionid = n, this.share = /* @__PURE__ */ new Map(), this.store = new WN(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = a, this.autoLoad = s, this.meta = o, this.isLoaded = !1, this.isSynced = !1, this.isDestroyed = !1, this.whenLoaded =
|
|
45234
|
+
super(), this.gc = i, this.gcFilter = r, this.clientID = BN(), this.guid = e, this.collectionid = n, this.share = /* @__PURE__ */ new Map(), this.store = new WN(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = a, this.autoLoad = s, this.meta = o, this.isLoaded = !1, this.isSynced = !1, this.isDestroyed = !1, this.whenLoaded = I4((c) => {
|
|
45182
45235
|
this.on("load", () => {
|
|
45183
45236
|
this.isLoaded = !0, c(this);
|
|
45184
45237
|
});
|
|
45185
45238
|
});
|
|
45186
|
-
const l = () =>
|
|
45239
|
+
const l = () => I4((c) => {
|
|
45187
45240
|
const d = (f) => {
|
|
45188
45241
|
(f === void 0 || f === !0) && (this.off("sync", d), c());
|
|
45189
45242
|
};
|
|
@@ -45415,7 +45468,7 @@ class Cp extends Pne {
|
|
|
45415
45468
|
* @param {decoding.Decoder} decoder
|
|
45416
45469
|
*/
|
|
45417
45470
|
constructor(e) {
|
|
45418
|
-
super(e), this.keys = [], _t(e), this.keyClockDecoder = new j1(ki(e)), this.clientDecoder = new Qu(ki(e)), this.leftClockDecoder = new j1(ki(e)), this.rightClockDecoder = new j1(ki(e)), this.infoDecoder = new
|
|
45471
|
+
super(e), this.keys = [], _t(e), this.keyClockDecoder = new j1(ki(e)), this.clientDecoder = new Qu(ki(e)), this.leftClockDecoder = new j1(ki(e)), this.rightClockDecoder = new j1(ki(e)), this.infoDecoder = new D4(ki(e), jd), this.stringDecoder = new qte(ki(e)), this.parentInfoDecoder = new D4(ki(e), jd), this.typeRefDecoder = new Qu(ki(e)), this.lenDecoder = new Qu(ki(e));
|
|
45419
45472
|
}
|
|
45420
45473
|
/**
|
|
45421
45474
|
* @return {ID}
|
|
@@ -45631,7 +45684,7 @@ class Fne {
|
|
|
45631
45684
|
}
|
|
45632
45685
|
class Wm extends Fne {
|
|
45633
45686
|
constructor() {
|
|
45634
|
-
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new B1(), this.clientEncoder = new Zu(), this.leftClockEncoder = new B1(), this.rightClockEncoder = new B1(), this.infoEncoder = new
|
|
45687
|
+
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new B1(), this.clientEncoder = new Zu(), this.leftClockEncoder = new B1(), this.rightClockEncoder = new B1(), this.infoEncoder = new N4(Gv), this.stringEncoder = new Fte(), this.parentInfoEncoder = new N4(Gv), this.typeRefEncoder = new Zu(), this.lenEncoder = new Zu();
|
|
45635
45688
|
}
|
|
45636
45689
|
toUint8Array() {
|
|
45637
45690
|
const e = If();
|
|
@@ -45888,16 +45941,16 @@ const $ne = (t, e, n, i) => {
|
|
|
45888
45941
|
const p = d.missing.get(u);
|
|
45889
45942
|
(p == null || p > h) && d.missing.set(u, h);
|
|
45890
45943
|
}
|
|
45891
|
-
d.update =
|
|
45944
|
+
d.update = U4([d.update, c.update]);
|
|
45892
45945
|
}
|
|
45893
45946
|
} else
|
|
45894
45947
|
a.pendingStructs = c;
|
|
45895
|
-
const f =
|
|
45948
|
+
const f = L4(i, r, a);
|
|
45896
45949
|
if (a.pendingDs) {
|
|
45897
45950
|
const u = new Cp(Uw(a.pendingDs));
|
|
45898
45951
|
_t(u.restDecoder);
|
|
45899
|
-
const h =
|
|
45900
|
-
f && h ? a.pendingDs =
|
|
45952
|
+
const h = L4(u, r, a);
|
|
45953
|
+
f && h ? a.pendingDs = U4([f, h]) : a.pendingDs = f || h;
|
|
45901
45954
|
} else
|
|
45902
45955
|
a.pendingDs = f;
|
|
45903
45956
|
if (o) {
|
|
@@ -45916,7 +45969,7 @@ class Vne {
|
|
|
45916
45969
|
this.l = [];
|
|
45917
45970
|
}
|
|
45918
45971
|
}
|
|
45919
|
-
const
|
|
45972
|
+
const F4 = () => new Vne(), $4 = (t, e) => t.l.push(e), z4 = (t, e) => {
|
|
45920
45973
|
const n = t.l, i = n.length;
|
|
45921
45974
|
t.l = n.filter((r) => e !== r), i === t.l.length && console.error("[yjs] Tried to remove event handler that doesn't exist.");
|
|
45922
45975
|
}, HN = (t, e, n) => Gw(t.l, [e, n]);
|
|
@@ -46097,7 +46150,7 @@ const Um = (t) => {
|
|
|
46097
46150
|
t.doc.store.clients.get(e.client)
|
|
46098
46151
|
);
|
|
46099
46152
|
return n[t0(t, n, e.clock)];
|
|
46100
|
-
},
|
|
46153
|
+
}, B4 = (t, e, n) => {
|
|
46101
46154
|
const i = e.clients.get(n.client), r = Xi(i, n.clock), o = i[r];
|
|
46102
46155
|
return n.clock !== o.id.clock + o.length - 1 && o.constructor !== Ai && i.splice(r + 1, 0, Mp(t, o, n.clock - o.id.clock + 1)), o;
|
|
46103
46156
|
}, Yne = (t, e, n) => {
|
|
@@ -46125,7 +46178,7 @@ class Xne {
|
|
|
46125
46178
|
this.doc = e, this.deleteSet = new ic(), this.beforeState = Um(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = n, this.meta = /* @__PURE__ */ new Map(), this.local = i, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1;
|
|
46126
46179
|
}
|
|
46127
46180
|
}
|
|
46128
|
-
const
|
|
46181
|
+
const j4 = (t, e) => e.deleteSet.clients.size === 0 && !hte(e.afterState, (n, i) => e.beforeState.get(i) !== n) ? !1 : (Jw(e.deleteSet), jne(t, e), Zw(t, e.deleteSet), !0), H4 = (t, e, n) => {
|
|
46129
46182
|
const i = e._item;
|
|
46130
46183
|
(i === null || i.id.clock < (t.beforeState.get(i.id.client) || 0) && !i.deleted) && lo(t.changed, e, Js).add(n);
|
|
46131
46184
|
}, eh = (t, e) => {
|
|
@@ -46212,11 +46265,11 @@ const z4 = (t, e) => e.deleteSet.clients.size === 0 && !hte(e.afterState, (n, i)
|
|
|
46212
46265
|
}
|
|
46213
46266
|
if (!n.local && n.afterState.get(i.clientID) !== n.beforeState.get(i.clientID) && (Nne(Yw, DN, "[yjs] ", IN, PN, "Changed the client-id because another client seems to be using it."), i.clientID = BN()), i.emit("afterTransactionCleanup", [n, i]), i._observers.has("update")) {
|
|
46214
46267
|
const d = new Lne();
|
|
46215
|
-
|
|
46268
|
+
j4(d, n) && i.emit("update", [d.toUint8Array(), n.origin, i, n]);
|
|
46216
46269
|
}
|
|
46217
46270
|
if (i._observers.has("updateV2")) {
|
|
46218
46271
|
const d = new Wm();
|
|
46219
|
-
|
|
46272
|
+
j4(d, n) && i.emit("updateV2", [d.toUint8Array(), n.origin, i, n]);
|
|
46220
46273
|
}
|
|
46221
46274
|
const { subdocsAdded: a, subdocsLoaded: l, subdocsRemoved: c } = n;
|
|
46222
46275
|
(a.size > 0 || c.size > 0 || l.size > 0) && (a.forEach((d) => {
|
|
@@ -46247,7 +46300,7 @@ class Qne {
|
|
|
46247
46300
|
this.insertions = n, this.deletions = e, this.meta = /* @__PURE__ */ new Map();
|
|
46248
46301
|
}
|
|
46249
46302
|
}
|
|
46250
|
-
const
|
|
46303
|
+
const V4 = (t, e, n) => {
|
|
46251
46304
|
Yo(t, n.deletions, (i) => {
|
|
46252
46305
|
i instanceof vt && e.scope.some((r) => r === t.doc || Wd(
|
|
46253
46306
|
/** @type {AbstractType<any>} */
|
|
@@ -46255,7 +46308,7 @@ const j4 = (t, e, n) => {
|
|
|
46255
46308
|
i
|
|
46256
46309
|
)) && rk(i, !1);
|
|
46257
46310
|
});
|
|
46258
|
-
},
|
|
46311
|
+
}, W4 = (t, e, n) => {
|
|
46259
46312
|
let i = null;
|
|
46260
46313
|
const r = t.doc, o = t.scope;
|
|
46261
46314
|
mt(r, (a) => {
|
|
@@ -46384,7 +46437,7 @@ class GN extends bN {
|
|
|
46384
46437
|
}
|
|
46385
46438
|
clear(e = !0, n = !0) {
|
|
46386
46439
|
(e && this.canUndo() || n && this.canRedo()) && this.doc.transact((i) => {
|
|
46387
|
-
e && (this.undoStack.forEach((r) =>
|
|
46440
|
+
e && (this.undoStack.forEach((r) => V4(i, this, r)), this.undoStack = []), n && (this.redoStack.forEach((r) => V4(i, this, r)), this.redoStack = []), this.emit("stack-cleared", [{ undoStackCleared: e, redoStackCleared: n }]);
|
|
46388
46441
|
});
|
|
46389
46442
|
}
|
|
46390
46443
|
/**
|
|
@@ -46419,7 +46472,7 @@ class GN extends bN {
|
|
|
46419
46472
|
this.undoing = !0;
|
|
46420
46473
|
let e;
|
|
46421
46474
|
try {
|
|
46422
|
-
e =
|
|
46475
|
+
e = W4(this, this.undoStack, "undo");
|
|
46423
46476
|
} finally {
|
|
46424
46477
|
this.undoing = !1;
|
|
46425
46478
|
}
|
|
@@ -46434,7 +46487,7 @@ class GN extends bN {
|
|
|
46434
46487
|
this.redoing = !0;
|
|
46435
46488
|
let e;
|
|
46436
46489
|
try {
|
|
46437
|
-
e =
|
|
46490
|
+
e = W4(this, this.redoStack, "redo");
|
|
46438
46491
|
} finally {
|
|
46439
46492
|
this.redoing = !1;
|
|
46440
46493
|
}
|
|
@@ -46546,7 +46599,7 @@ const iie = (t, e) => {
|
|
|
46546
46599
|
n.content.splice(e)
|
|
46547
46600
|
);
|
|
46548
46601
|
}
|
|
46549
|
-
},
|
|
46602
|
+
}, U4 = (t, e = Cp, n = Wm) => {
|
|
46550
46603
|
if (t.length === 1)
|
|
46551
46604
|
return t[0];
|
|
46552
46605
|
const i = t.map((d) => new e(Uw(d)));
|
|
@@ -46617,7 +46670,7 @@ const iie = (t, e) => {
|
|
|
46617
46670
|
const i = t.clientStructs[n];
|
|
46618
46671
|
ot(e, i.written), Hm(e, i.restEncoder);
|
|
46619
46672
|
}
|
|
46620
|
-
},
|
|
46673
|
+
}, q4 = "You must not compute changes after the event-handler fired.";
|
|
46621
46674
|
class qm {
|
|
46622
46675
|
/**
|
|
46623
46676
|
* @param {T} target The changed type.
|
|
@@ -46659,7 +46712,7 @@ class qm {
|
|
|
46659
46712
|
get keys() {
|
|
46660
46713
|
if (this._keys === null) {
|
|
46661
46714
|
if (this.transaction.doc._transactionCleanups.length === 0)
|
|
46662
|
-
throw Go(
|
|
46715
|
+
throw Go(q4);
|
|
46663
46716
|
const e = /* @__PURE__ */ new Map(), n = this.target;
|
|
46664
46717
|
/** @type Set<string|null> */
|
|
46665
46718
|
this.transaction.changed.get(n).forEach((r) => {
|
|
@@ -46727,7 +46780,7 @@ class qm {
|
|
|
46727
46780
|
let e = this._changes;
|
|
46728
46781
|
if (e === null) {
|
|
46729
46782
|
if (this.transaction.doc._transactionCleanups.length === 0)
|
|
46730
|
-
throw Go(
|
|
46783
|
+
throw Go(q4);
|
|
46731
46784
|
const n = this.target, i = Js(), r = Js(), o = [];
|
|
46732
46785
|
if (e = {
|
|
46733
46786
|
added: i,
|
|
@@ -46838,7 +46891,7 @@ const aie = (t) => {
|
|
|
46838
46891
|
};
|
|
46839
46892
|
class dn {
|
|
46840
46893
|
constructor() {
|
|
46841
|
-
this._item = null, this._map = /* @__PURE__ */ new Map(), this._start = null, this.doc = null, this._length = 0, this._eH =
|
|
46894
|
+
this._item = null, this._map = /* @__PURE__ */ new Map(), this._start = null, this.doc = null, this._length = 0, this._eH = F4(), this._dEH = F4(), this._searchMarker = null;
|
|
46842
46895
|
}
|
|
46843
46896
|
/**
|
|
46844
46897
|
* @return {AbstractType<any>|null}
|
|
@@ -46908,7 +46961,7 @@ class dn {
|
|
|
46908
46961
|
* @param {function(EventType, Transaction):void} f Observer function
|
|
46909
46962
|
*/
|
|
46910
46963
|
observe(e) {
|
|
46911
|
-
|
|
46964
|
+
$4(this._eH, e);
|
|
46912
46965
|
}
|
|
46913
46966
|
/**
|
|
46914
46967
|
* Observe all events that are created by this type and its children.
|
|
@@ -46916,7 +46969,7 @@ class dn {
|
|
|
46916
46969
|
* @param {function(Array<YEvent<any>>,Transaction):void} f Observer function
|
|
46917
46970
|
*/
|
|
46918
46971
|
observeDeep(e) {
|
|
46919
|
-
|
|
46972
|
+
$4(this._dEH, e);
|
|
46920
46973
|
}
|
|
46921
46974
|
/**
|
|
46922
46975
|
* Unregister an observer function.
|
|
@@ -46924,7 +46977,7 @@ class dn {
|
|
|
46924
46977
|
* @param {function(EventType,Transaction):void} f Observer function
|
|
46925
46978
|
*/
|
|
46926
46979
|
unobserve(e) {
|
|
46927
|
-
|
|
46980
|
+
z4(this._eH, e);
|
|
46928
46981
|
}
|
|
46929
46982
|
/**
|
|
46930
46983
|
* Unregister an observer function.
|
|
@@ -46932,7 +46985,7 @@ class dn {
|
|
|
46932
46985
|
* @param {function(Array<YEvent<any>>,Transaction):void} f Observer function
|
|
46933
46986
|
*/
|
|
46934
46987
|
unobserveDeep(e) {
|
|
46935
|
-
|
|
46988
|
+
z4(this._dEH, e);
|
|
46936
46989
|
}
|
|
46937
46990
|
/**
|
|
46938
46991
|
* @abstract
|
|
@@ -47616,7 +47669,7 @@ class n0 {
|
|
|
47616
47669
|
) : this.right.deleted || (this.index += this.right.length), this.left = this.right, this.right = this.right.right;
|
|
47617
47670
|
}
|
|
47618
47671
|
}
|
|
47619
|
-
const
|
|
47672
|
+
const K4 = (t, e, n) => {
|
|
47620
47673
|
for (; e.right !== null && n > 0; )
|
|
47621
47674
|
e.right.content.constructor === Jt ? e.right.deleted || oc(
|
|
47622
47675
|
e.currentAttributes,
|
|
@@ -47628,10 +47681,10 @@ const U4 = (t, e, n) => {
|
|
|
47628
47681
|
const r = /* @__PURE__ */ new Map(), o = i ? Km(e, n) : null;
|
|
47629
47682
|
if (o) {
|
|
47630
47683
|
const s = new n0(o.p.left, o.p, o.index, r);
|
|
47631
|
-
return
|
|
47684
|
+
return K4(t, s, n - o.index);
|
|
47632
47685
|
} else {
|
|
47633
47686
|
const s = new n0(null, e._start, 0, r);
|
|
47634
|
-
return
|
|
47687
|
+
return K4(t, s, n);
|
|
47635
47688
|
}
|
|
47636
47689
|
}, lO = (t, e, n, i) => {
|
|
47637
47690
|
for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor === Jt && Bo(
|
|
@@ -47689,7 +47742,7 @@ const U4 = (t, e, n) => {
|
|
|
47689
47742
|
) : i instanceof dn ? new Qi(i) : new fa(i);
|
|
47690
47743
|
let { left: c, right: d, index: f } = n;
|
|
47691
47744
|
e._searchMarker && Ud(e._searchMarker, n.index, l.getLength()), d = new vt(Xe(s, Wt(o.store, s)), c, c && c.lastId, d, d && d.id, e, null, l), d.integrate(t, 0), n.right = d, n.index = f, n.forward(), lO(t, e, n, a);
|
|
47692
|
-
},
|
|
47745
|
+
}, G4 = (t, e, n, i, r) => {
|
|
47693
47746
|
const o = t.doc, s = o.clientID;
|
|
47694
47747
|
cO(n, r);
|
|
47695
47748
|
const a = dO(t, e, n, r);
|
|
@@ -47830,7 +47883,7 @@ const U4 = (t, e, n) => {
|
|
|
47830
47883
|
for (const r of e)
|
|
47831
47884
|
yie(r);
|
|
47832
47885
|
});
|
|
47833
|
-
},
|
|
47886
|
+
}, Y4 = (t, e, n) => {
|
|
47834
47887
|
const i = n, r = Uv(e.currentAttributes), o = e.right;
|
|
47835
47888
|
for (; n > 0 && e.right !== null; ) {
|
|
47836
47889
|
if (e.right.deleted === !1)
|
|
@@ -48066,7 +48119,7 @@ class Xo extends dn {
|
|
|
48066
48119
|
const a = !n && typeof s.insert == "string" && o === e.length - 1 && r.right === null && s.insert.slice(-1) === `
|
|
48067
48120
|
` ? s.insert.slice(0, -1) : s.insert;
|
|
48068
48121
|
(typeof a != "string" || a.length > 0) && U1(i, this, r, a, s.attributes || {});
|
|
48069
|
-
} else s.retain !== void 0 ?
|
|
48122
|
+
} else s.retain !== void 0 ? G4(i, this, r, s.retain, s.attributes || {}) : s.delete !== void 0 && Y4(i, r, s.delete);
|
|
48070
48123
|
}
|
|
48071
48124
|
}) : this._pending.push(() => this.applyDelta(e));
|
|
48072
48125
|
}
|
|
@@ -48193,7 +48246,7 @@ class Xo extends dn {
|
|
|
48193
48246
|
return;
|
|
48194
48247
|
const i = this.doc;
|
|
48195
48248
|
i !== null ? mt(i, (r) => {
|
|
48196
|
-
|
|
48249
|
+
Y4(r, xu(r, this, e, !0), n);
|
|
48197
48250
|
}) : this._pending.push(() => this.delete(e, n));
|
|
48198
48251
|
}
|
|
48199
48252
|
/**
|
|
@@ -48212,7 +48265,7 @@ class Xo extends dn {
|
|
|
48212
48265
|
const r = this.doc;
|
|
48213
48266
|
r !== null ? mt(r, (o) => {
|
|
48214
48267
|
const s = xu(o, this, e, !1);
|
|
48215
|
-
s.right !== null &&
|
|
48268
|
+
s.right !== null && G4(o, this, s, n, i);
|
|
48216
48269
|
}) : this._pending.push(() => this.format(e, n, i));
|
|
48217
48270
|
}
|
|
48218
48271
|
/**
|
|
@@ -49800,7 +49853,7 @@ const Wie = (t) => new Qi(Lie[t.readTypeRef()](t)), i0 = (t, e) => {
|
|
|
49800
49853
|
e.content.splice(n)
|
|
49801
49854
|
);
|
|
49802
49855
|
return e.deleted && o.markDeleted(), e.keep && (o.keep = !0), e.redone !== null && (o.redone = Xe(e.redone.client, e.redone.clock + n)), e.right = o, o.right !== null && (o.right.left = o), t._mergeStructs.push(o), o.parentSub !== null && o.right === null && o.parent._map.set(o.parentSub, o), e.length = n, o;
|
|
49803
|
-
},
|
|
49856
|
+
}, X4 = (t, e) => mte(
|
|
49804
49857
|
t,
|
|
49805
49858
|
/** @param {StackItem} s */
|
|
49806
49859
|
(n) => rc(n.deletions, e)
|
|
@@ -49851,7 +49904,7 @@ const Wie = (t) => new Qi(Lie[t.readTypeRef()](t)), i0 = (t, e) => {
|
|
|
49851
49904
|
u = u.right;
|
|
49852
49905
|
}
|
|
49853
49906
|
} else if (u = null, e.right && !r) {
|
|
49854
|
-
for (f = e; f !== null && f.right !== null && (f.right.redone || rc(i, f.right.id) ||
|
|
49907
|
+
for (f = e; f !== null && f.right !== null && (f.right.redone || rc(i, f.right.id) || X4(o.undoStack, f.right.id) || X4(o.redoStack, f.right.id)); )
|
|
49855
49908
|
for (f = f.right; f.redone; ) f = Xn(t, f.redone);
|
|
49856
49909
|
if (f && f.right !== null)
|
|
49857
49910
|
return null;
|
|
@@ -49881,7 +49934,7 @@ let vt = class r0 extends ik {
|
|
|
49881
49934
|
* @param {AbstractContent} content
|
|
49882
49935
|
*/
|
|
49883
49936
|
constructor(e, n, i, r, o, s, a, l) {
|
|
49884
|
-
super(e, l.getLength()), this.origin = i, this.left = n, this.right = r, this.rightOrigin = o, this.parent = s, this.parentSub = a, this.redone = null, this.content = l, this.info = this.content.isCountable() ?
|
|
49937
|
+
super(e, l.getLength()), this.origin = i, this.left = n, this.right = r, this.rightOrigin = o, this.parent = s, this.parentSub = a, this.redone = null, this.content = l, this.info = this.content.isCountable() ? E4 : 0;
|
|
49885
49938
|
}
|
|
49886
49939
|
/**
|
|
49887
49940
|
* This is used to mark the item as an indexed fast-search marker
|
|
@@ -49898,13 +49951,13 @@ let vt = class r0 extends ik {
|
|
|
49898
49951
|
* If true, do not garbage collect this Item.
|
|
49899
49952
|
*/
|
|
49900
49953
|
get keep() {
|
|
49901
|
-
return (this.info &
|
|
49954
|
+
return (this.info & C4) > 0;
|
|
49902
49955
|
}
|
|
49903
49956
|
set keep(e) {
|
|
49904
|
-
this.keep !== e && (this.info ^=
|
|
49957
|
+
this.keep !== e && (this.info ^= C4);
|
|
49905
49958
|
}
|
|
49906
49959
|
get countable() {
|
|
49907
|
-
return (this.info &
|
|
49960
|
+
return (this.info & E4) > 0;
|
|
49908
49961
|
}
|
|
49909
49962
|
/**
|
|
49910
49963
|
* Whether this item was deleted or not.
|
|
@@ -49933,7 +49986,7 @@ let vt = class r0 extends ik {
|
|
|
49933
49986
|
return this.rightOrigin.client;
|
|
49934
49987
|
if (this.parent && this.parent.constructor === Ya && this.id.client !== this.parent.client && this.parent.clock >= Wt(n, this.parent.client))
|
|
49935
49988
|
return this.parent.client;
|
|
49936
|
-
if (this.origin && (this.left =
|
|
49989
|
+
if (this.origin && (this.left = B4(e, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = Xn(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Ai || this.right && this.right.constructor === Ai)
|
|
49937
49990
|
this.parent = null;
|
|
49938
49991
|
else if (!this.parent)
|
|
49939
49992
|
this.left && this.left.constructor === r0 ? (this.parent = this.left.parent, this.parentSub = this.left.parentSub) : this.right && this.right.constructor === r0 && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
|
|
@@ -49949,7 +50002,7 @@ let vt = class r0 extends ik {
|
|
|
49949
50002
|
* @param {number} offset
|
|
49950
50003
|
*/
|
|
49951
50004
|
integrate(e, n) {
|
|
49952
|
-
if (n > 0 && (this.id.clock += n, this.left =
|
|
50005
|
+
if (n > 0 && (this.id.clock += n, this.left = B4(e, e.doc.store, Xe(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(n), this.length -= n), this.parent) {
|
|
49953
50006
|
if (!this.left && (!this.right || this.right.left !== null) || this.left && this.left.right !== this.right) {
|
|
49954
50007
|
let i = this.left, r;
|
|
49955
50008
|
if (i !== null)
|
|
@@ -49990,7 +50043,7 @@ let vt = class r0 extends ik {
|
|
|
49990
50043
|
this.parent._start, this.parent._start = this;
|
|
49991
50044
|
this.right = i;
|
|
49992
50045
|
}
|
|
49993
|
-
this.right !== null ? this.right.left = this : this.parentSub !== null && (this.parent._map.set(this.parentSub, this), this.left !== null && this.left.delete(e)), this.parentSub === null && this.countable && !this.deleted && (this.parent._length += this.length), UN(e.doc.store, this), this.content.integrate(e, this),
|
|
50046
|
+
this.right !== null ? this.right.left = this : this.parentSub !== null && (this.parent._map.set(this.parentSub, this), this.left !== null && this.left.delete(e)), this.parentSub === null && this.countable && !this.deleted && (this.parent._length += this.length), UN(e.doc.store, this), this.content.integrate(e, this), H4(
|
|
49994
50047
|
e,
|
|
49995
50048
|
/** @type {AbstractType<any>} */
|
|
49996
50049
|
this.parent,
|
|
@@ -50054,7 +50107,7 @@ let vt = class r0 extends ik {
|
|
|
50054
50107
|
/** @type {AbstractType<any>} */
|
|
50055
50108
|
this.parent
|
|
50056
50109
|
);
|
|
50057
|
-
this.countable && this.parentSub === null && (n._length -= this.length), this.markDeleted(), Hd(e.deleteSet, this.id.client, this.id.clock, this.length),
|
|
50110
|
+
this.countable && this.parentSub === null && (n._length -= this.length), this.markDeleted(), Hd(e.deleteSet, this.id.client, this.id.clock, this.length), H4(e, n, this.parentSub), this.content.delete(e);
|
|
50058
50111
|
}
|
|
50059
50112
|
}
|
|
50060
50113
|
/**
|
|
@@ -50784,12 +50837,12 @@ const yO = (t, e, n, i, r, o) => {
|
|
|
50784
50837
|
(i) => s0(i, e)
|
|
50785
50838
|
)
|
|
50786
50839
|
), e.mapping.set(n, t), n;
|
|
50787
|
-
}, s0 = (t, e) => t instanceof Array ? pre(t, e) : mre(t, e),
|
|
50840
|
+
}, s0 = (t, e) => t instanceof Array ? pre(t, e) : mre(t, e), J4 = (t) => typeof t == "object" && t !== null, ok = (t, e) => {
|
|
50788
50841
|
const n = Object.keys(t).filter((r) => t[r] !== null);
|
|
50789
50842
|
let i = n.length === (e == null ? 0 : Object.keys(e).filter((r) => e[r] !== null).length);
|
|
50790
50843
|
for (let r = 0; r < n.length && i; r++) {
|
|
50791
50844
|
const o = n[r], s = t[o], a = e[o];
|
|
50792
|
-
i = o === "ychange" || s === a ||
|
|
50845
|
+
i = o === "ychange" || s === a || J4(s) && J4(a) && ok(s, a);
|
|
50793
50846
|
}
|
|
50794
50847
|
return i;
|
|
50795
50848
|
}, Ym = (t) => {
|
|
@@ -50828,7 +50881,7 @@ const yO = (t, e, n, i, r, o) => {
|
|
|
50828
50881
|
return t instanceof ni && e instanceof Array && vO(t, e);
|
|
50829
50882
|
}, Ip = (t, e) => t === e || t instanceof Array && e instanceof Array && t.length === e.length && t.every(
|
|
50830
50883
|
(n, i) => e[i] === n
|
|
50831
|
-
),
|
|
50884
|
+
), Z4 = (t, e, n) => {
|
|
50832
50885
|
const i = t.toArray(), r = Ym(e), o = r.length, s = i.length, a = Al(s, o);
|
|
50833
50886
|
let l = 0, c = 0, d = !1;
|
|
50834
50887
|
for (; l < a; l++) {
|
|
@@ -50922,13 +50975,13 @@ const yO = (t, e, n, i, r, o) => {
|
|
|
50922
50975
|
else {
|
|
50923
50976
|
let y = u instanceof Sn && l0(u, h), v = p instanceof Sn && l0(p, g);
|
|
50924
50977
|
if (y && v) {
|
|
50925
|
-
const w =
|
|
50978
|
+
const w = Z4(
|
|
50926
50979
|
/** @type {Y.XmlElement} */
|
|
50927
50980
|
u,
|
|
50928
50981
|
/** @type {PModel.Node} */
|
|
50929
50982
|
h,
|
|
50930
50983
|
i
|
|
50931
|
-
), k =
|
|
50984
|
+
), k = Z4(
|
|
50932
50985
|
/** @type {Y.XmlElement} */
|
|
50933
50986
|
p,
|
|
50934
50987
|
/** @type {PModel.Node} */
|
|
@@ -51238,7 +51291,7 @@ at.create({
|
|
|
51238
51291
|
function Are(t) {
|
|
51239
51292
|
return !!t.getMeta(Ft);
|
|
51240
51293
|
}
|
|
51241
|
-
function
|
|
51294
|
+
function Q4(t) {
|
|
51242
51295
|
if (!t.length)
|
|
51243
51296
|
return st.empty;
|
|
51244
51297
|
const e = [], n = t[0].$from.node(0);
|
|
@@ -51403,12 +51456,12 @@ at.create({
|
|
|
51403
51456
|
decorations: (n) => {
|
|
51404
51457
|
const { selection: i } = n, r = _u(i);
|
|
51405
51458
|
if (t = !1, !e)
|
|
51406
|
-
return r ? (t = !0,
|
|
51459
|
+
return r ? (t = !0, Q4(i.ranges)) : null;
|
|
51407
51460
|
const { $from: o, $to: s } = i;
|
|
51408
51461
|
if (!r && o.sameParent(s))
|
|
51409
51462
|
return null;
|
|
51410
51463
|
const a = Xm(o, s, this.options.depth);
|
|
51411
|
-
return a.length ? (t = !0,
|
|
51464
|
+
return a.length ? (t = !0, Q4(a)) : null;
|
|
51412
51465
|
}
|
|
51413
51466
|
}
|
|
51414
51467
|
})
|
|
@@ -51492,10 +51545,10 @@ function Ire(t, e) {
|
|
|
51492
51545
|
f.append(w);
|
|
51493
51546
|
}), f.style.position = "absolute", f.style.top = "-10000px", document.body.append(f), t.dataTransfer.clearData(), t.dataTransfer.setDragImage(f, 0, 0), n.dragging = { slice: g, move: !0 }, d.setSelection(p), n.dispatch(d), document.addEventListener("drop", () => kO(f), { once: !0 });
|
|
51494
51547
|
}
|
|
51495
|
-
const
|
|
51548
|
+
const eS = (t, e) => {
|
|
51496
51549
|
const n = t.resolve(e), { depth: i } = n;
|
|
51497
51550
|
return i === 0 ? e : n.pos - n.parentOffset - 1;
|
|
51498
|
-
},
|
|
51551
|
+
}, tS = (t, e) => {
|
|
51499
51552
|
const n = t.nodeAt(e), i = t.resolve(e);
|
|
51500
51553
|
let { depth: r } = i, o = n;
|
|
51501
51554
|
for (; r > 0; ) {
|
|
@@ -51509,7 +51562,7 @@ const Z4 = (t, e) => {
|
|
|
51509
51562
|
}, Pre = (t, e) => {
|
|
51510
51563
|
const n = Ft.getState(t);
|
|
51511
51564
|
return n ? nh(n.doc, n.type, e, n.binding.mapping) || 0 : -1;
|
|
51512
|
-
},
|
|
51565
|
+
}, nS = (t, e) => {
|
|
51513
51566
|
let n = e;
|
|
51514
51567
|
for (; n && n.parentNode && n.parentNode !== t.dom; )
|
|
51515
51568
|
n = n.parentNode;
|
|
@@ -51579,9 +51632,9 @@ const Z4 = (t, e) => {
|
|
|
51579
51632
|
})), a ? e.draggable = !1 : e.draggable = !0, f.state.doc.eq(p.doc) || c === -1)
|
|
51580
51633
|
return;
|
|
51581
51634
|
let g = f.nodeDOM(c);
|
|
51582
|
-
if (g =
|
|
51635
|
+
if (g = nS(f, g), g === f.dom || g?.nodeType !== 1)
|
|
51583
51636
|
return;
|
|
51584
|
-
const y = f.posAtDOM(g, 0), v =
|
|
51637
|
+
const y = f.posAtDOM(g, 0), v = tS(n.state.doc, y), w = eS(n.state.doc, y);
|
|
51585
51638
|
l = v, c = w, d = K1(f.state, c), r?.({ editor: n, node: l, pos: c }), s.setProps({
|
|
51586
51639
|
getReferenceClientRect: () => g.getBoundingClientRect()
|
|
51587
51640
|
});
|
|
@@ -51609,11 +51662,11 @@ const Z4 = (t, e) => {
|
|
|
51609
51662
|
if (!h.resultElement)
|
|
51610
51663
|
return !1;
|
|
51611
51664
|
let p = h.resultElement;
|
|
51612
|
-
if (p =
|
|
51665
|
+
if (p = nS(f, p), p === f.dom || p?.nodeType !== 1)
|
|
51613
51666
|
return !1;
|
|
51614
|
-
const g = f.posAtDOM(p, 0), y =
|
|
51667
|
+
const g = f.posAtDOM(p, 0), y = tS(n.state.doc, g);
|
|
51615
51668
|
if (y !== l) {
|
|
51616
|
-
const v =
|
|
51669
|
+
const v = eS(n.state.doc, g);
|
|
51617
51670
|
l = y, c = v, d = K1(f.state, c), r?.({ editor: n, node: l, pos: c }), s.setProps({
|
|
51618
51671
|
getReferenceClientRect: () => p.getBoundingClientRect()
|
|
51619
51672
|
}), s.show();
|
|
@@ -51802,7 +51855,7 @@ const Hre = (t, e) => {
|
|
|
51802
51855
|
translations: e,
|
|
51803
51856
|
imageUploadConfig: i
|
|
51804
51857
|
})
|
|
51805
|
-
],
|
|
51858
|
+
], iS = (t) => t.isVisible !== !1, Wre = (t) => "isVisible" in t ? t.isVisible !== !1 : !0, Ure = (t) => !!t && "items" in t, qre = (t) => !!t && "label" in t && !("items" in t), Kre = ({
|
|
51806
51859
|
primaryAction: t,
|
|
51807
51860
|
secondaryActions: e = [],
|
|
51808
51861
|
metadata: n = [],
|
|
@@ -51823,7 +51876,7 @@ const Hre = (t, e) => {
|
|
|
51823
51876
|
}
|
|
51824
51877
|
] : [],
|
|
51825
51878
|
...n
|
|
51826
|
-
], s = e.filter(
|
|
51879
|
+
], s = e.filter(iS), a = i.filter(Wre), l = t && iS(t), c = s.length > 0, d = a.length > 0, f = c || d || l;
|
|
51827
51880
|
return /* @__PURE__ */ m("div", { className: "flex flex-col", children: (o.length > 0 || f) && /* @__PURE__ */ R("div", { className: "flex flex-col items-start justify-between gap-2 sm:px-6 px-0 py-4 sm:flex-row sm:items-center", children: [
|
|
51828
51881
|
o.length > 0 && /* @__PURE__ */ m(uI, { items: o }),
|
|
51829
51882
|
/* @__PURE__ */ R("div", { className: "flex flex-shrink-0 flex-row items-center gap-2", children: [
|
|
@@ -52694,7 +52747,7 @@ const roe = (t) => "date" in t, ooe = {
|
|
|
52694
52747
|
render: (t) => /* @__PURE__ */ m(ioe, { ...t })
|
|
52695
52748
|
}, TO = {
|
|
52696
52749
|
"date-navigator": ooe
|
|
52697
|
-
},
|
|
52750
|
+
}, rS = ({
|
|
52698
52751
|
navigationFilters: t,
|
|
52699
52752
|
currentNavigationFilters: e,
|
|
52700
52753
|
onChangeNavigationFilters: n
|
|
@@ -52730,13 +52783,13 @@ const roe = (t) => "date" in t, ooe = {
|
|
|
52730
52783
|
return (Array.isArray(e) ? e : [e]).filter(
|
|
52731
52784
|
(n) => n !== void 0
|
|
52732
52785
|
);
|
|
52733
|
-
}, aoe = 2, loe = (t) => "items" in t, coe = (t) => "label" in t && !("items" in t),
|
|
52786
|
+
}, aoe = 2, loe = (t) => "items" in t, coe = (t) => "label" in t && !("items" in t), oS = (t) => t.every(loe) ? t : t.every(coe) ? [
|
|
52734
52787
|
{
|
|
52735
52788
|
items: t
|
|
52736
52789
|
}
|
|
52737
52790
|
] : t.map((e) => ({
|
|
52738
52791
|
items: e
|
|
52739
|
-
})), doe = (t) => t ? typeof t == "function" ?
|
|
52792
|
+
})), doe = (t) => t ? typeof t == "function" ? oS(t() || []) : "actions" in t ? oS(t.actions() || []) : [] : [], foe = (t) => t.map((e) => ({
|
|
52740
52793
|
...e,
|
|
52741
52794
|
items: e.items.filter(
|
|
52742
52795
|
(n) => n.enabled === void 0 || n.enabled
|
|
@@ -53014,7 +53067,7 @@ function goe({
|
|
|
53014
53067
|
}
|
|
53015
53068
|
);
|
|
53016
53069
|
}
|
|
53017
|
-
const yoe = 5,
|
|
53070
|
+
const yoe = 5, sS = ({ loading: t }) => t ? /* @__PURE__ */ m(Je, { icon: _I, className: "animate-spin" }) : /* @__PURE__ */ m(Je, { icon: SI, className: "text" }), voe = ({
|
|
53018
53071
|
value: t,
|
|
53019
53072
|
onChange: e,
|
|
53020
53073
|
loading: n = !1,
|
|
@@ -53095,7 +53148,7 @@ const yoe = 5, rS = ({ loading: t }) => t ? /* @__PURE__ */ m(Je, { icon: _I, cl
|
|
|
53095
53148
|
className: "absolute left-[5px] top-[5px] z-10 flex h-5 w-5 items-center justify-center text-f1-icon",
|
|
53096
53149
|
layoutId: "search-icon",
|
|
53097
53150
|
children: /* @__PURE__ */ m(
|
|
53098
|
-
|
|
53151
|
+
sS,
|
|
53099
53152
|
{
|
|
53100
53153
|
loading: n || r
|
|
53101
53154
|
},
|
|
@@ -53171,7 +53224,7 @@ const yoe = 5, rS = ({ loading: t }) => t ? /* @__PURE__ */ m(Je, { icon: _I, cl
|
|
|
53171
53224
|
{
|
|
53172
53225
|
className: "absolute left-[5px] top-[5px] flex h-5 w-5 items-center justify-center text-f1-icon-bold",
|
|
53173
53226
|
layoutId: "search-icon",
|
|
53174
|
-
children: /* @__PURE__ */ m(
|
|
53227
|
+
children: /* @__PURE__ */ m(sS, { loading: n || r })
|
|
53175
53228
|
}
|
|
53176
53229
|
),
|
|
53177
53230
|
t && /* @__PURE__ */ R("div", { className: "flex h-7 w-full items-center justify-between gap-1.5 overflow-hidden pr-1.5", children: [
|
|
@@ -53270,7 +53323,7 @@ function boe(t, e) {
|
|
|
53270
53323
|
f && d.onSelect(f);
|
|
53271
53324
|
} };
|
|
53272
53325
|
}
|
|
53273
|
-
const
|
|
53326
|
+
const aS = ({
|
|
53274
53327
|
isReady: t,
|
|
53275
53328
|
totalItemSummaryResult: e
|
|
53276
53329
|
}) => /* @__PURE__ */ m("div", { className: "flex flex-1 flex-shrink items-center gap-4 text-lg font-semibold", children: t ? /* @__PURE__ */ R("div", { className: "flex h-5 items-center", children: [
|
|
@@ -53284,11 +53337,11 @@ const oS = ({
|
|
|
53284
53337
|
"visualization",
|
|
53285
53338
|
"search",
|
|
53286
53339
|
"visualizationFilters"
|
|
53287
|
-
],
|
|
53340
|
+
], lS = ["*", "all"], koe = (t) => {
|
|
53288
53341
|
const e = /* @__PURE__ */ new Set();
|
|
53289
|
-
return t ? (t.some((n) =>
|
|
53342
|
+
return t ? (t.some((n) => lS.includes(n)) && woe.forEach((n) => {
|
|
53290
53343
|
e.add(n);
|
|
53291
|
-
}), t.filter((n) => !
|
|
53344
|
+
}), t.filter((n) => !lS.includes(n)).forEach((n) => {
|
|
53292
53345
|
n.startsWith("!") ? e.delete(n.slice(1)) : e.add(n);
|
|
53293
53346
|
}), Array.from(e)) : [];
|
|
53294
53347
|
}, xoe = (t) => {
|
|
@@ -53671,7 +53724,7 @@ const Aoe = wt(
|
|
|
53671
53724
|
),
|
|
53672
53725
|
children: t
|
|
53673
53726
|
}
|
|
53674
|
-
) }),
|
|
53727
|
+
) }), cS = ({
|
|
53675
53728
|
source: t,
|
|
53676
53729
|
items: e,
|
|
53677
53730
|
selectedItems: n,
|
|
@@ -53853,7 +53906,7 @@ const Aoe = wt(
|
|
|
53853
53906
|
}
|
|
53854
53907
|
),
|
|
53855
53908
|
/* @__PURE__ */ m(Tt, { children: (!C || O[I.key]) && /* @__PURE__ */ m(
|
|
53856
|
-
|
|
53909
|
+
cS,
|
|
53857
53910
|
{
|
|
53858
53911
|
source: d,
|
|
53859
53912
|
items: I.records,
|
|
@@ -53875,7 +53928,7 @@ const Aoe = wt(
|
|
|
53875
53928
|
) })
|
|
53876
53929
|
] })),
|
|
53877
53930
|
y?.type === "flat" && /* @__PURE__ */ m(
|
|
53878
|
-
|
|
53931
|
+
cS,
|
|
53879
53932
|
{
|
|
53880
53933
|
source: d,
|
|
53881
53934
|
items: y.records,
|
|
@@ -54219,7 +54272,7 @@ const Qm = 32, Rp = 24, rh = 18, Ioe = "1px", Do = 8, Poe = 32, Lp = 4, f0 = 40,
|
|
|
54219
54272
|
}
|
|
54220
54273
|
}
|
|
54221
54274
|
);
|
|
54222
|
-
}, G1 = "repeating-linear-gradient(45deg,transparent_0px,transparent_8px,hsl(var(--neutral-20))_8px,hsl(var(--neutral-20))_9px)", Y1 = "before:absolute before:inset-0 before:z-[-1] before:h-[calc(100%-1px)] before:w-full before:transition-all before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:h-px after:w-full after:bg-f1-border-secondary after:content-['']",
|
|
54275
|
+
}, G1 = "repeating-linear-gradient(45deg,transparent_0px,transparent_8px,hsl(var(--neutral-20))_8px,hsl(var(--neutral-20))_9px)", Y1 = "before:absolute before:inset-0 before:z-[-1] before:h-[calc(100%-1px)] before:w-full before:transition-all before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:h-px after:w-full after:bg-f1-border-secondary after:content-['']", dS = {
|
|
54223
54276
|
none: `bg-f1-background ${Y1} before:bg-f1-background group-hover:before:bg-f1-background-hover`,
|
|
54224
54277
|
striped: `bg-f1-background bg-[${G1}] [background-size:100%_100px] ${Y1} before:bg-[${G1},_var(--f1-background)] before:[background-size:100%_100px,_100%_100%] group-hover:before:bg-[${G1},_var(--f1-background-hover)] group-hover:before:[background-size:100%_100px,_100%_100%]`,
|
|
54225
54278
|
striked: `bg-f1-background ${Y1} before:bg-f1-background group-hover:before:bg-f1-background-hover`
|
|
@@ -54252,9 +54305,9 @@ function qn({
|
|
|
54252
54305
|
className: K(
|
|
54253
54306
|
"h-full",
|
|
54254
54307
|
o && "peer font-medium",
|
|
54255
|
-
w && h &&
|
|
54308
|
+
w && h && dS[u],
|
|
54256
54309
|
w && "sticky z-10",
|
|
54257
|
-
v &&
|
|
54310
|
+
v && dS[u],
|
|
54258
54311
|
e && "cursor-pointer",
|
|
54259
54312
|
l
|
|
54260
54313
|
),
|
|
@@ -54651,7 +54704,7 @@ function Yoe({ columns: t = 5 }) {
|
|
|
54651
54704
|
}
|
|
54652
54705
|
);
|
|
54653
54706
|
}
|
|
54654
|
-
const
|
|
54707
|
+
const fS = ff(Goe, Yoe);
|
|
54655
54708
|
function Xoe({ children: t }) {
|
|
54656
54709
|
return /* @__PURE__ */ m(
|
|
54657
54710
|
$O,
|
|
@@ -54712,7 +54765,7 @@ function Joe({
|
|
|
54712
54765
|
function XO() {
|
|
54713
54766
|
return Ct(YO);
|
|
54714
54767
|
}
|
|
54715
|
-
const
|
|
54768
|
+
const uS = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.selectedCount > 0 && !t.checked ? "indeterminate" : t.checked : !1, hS = (t) => (t || []).map((e) => e.type === "separator" ? e : {
|
|
54716
54769
|
...e,
|
|
54717
54770
|
type: "item"
|
|
54718
54771
|
}), JO = ({
|
|
@@ -54800,11 +54853,11 @@ const dS = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.selecte
|
|
|
54800
54853
|
(h) => h.type === "separator" || h.hideInMobileDropdown !== !0
|
|
54801
54854
|
), l = s.filter(
|
|
54802
54855
|
(h) => h.type === "primary"
|
|
54803
|
-
).slice(0, 2), c =
|
|
54856
|
+
).slice(0, 2), c = hS(
|
|
54804
54857
|
s.filter(
|
|
54805
54858
|
(h) => h.type === "separator" || !l.includes(h)
|
|
54806
54859
|
)
|
|
54807
|
-
), d =
|
|
54860
|
+
), d = hS(a), f = d.some(
|
|
54808
54861
|
(h) => h.type !== "separator"
|
|
54809
54862
|
), u = (h) => {
|
|
54810
54863
|
if (!h) {
|
|
@@ -55018,7 +55071,7 @@ const dS = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.selecte
|
|
|
55018
55071
|
"useNestedDataContext must be used within NestedDataProvider"
|
|
55019
55072
|
);
|
|
55020
55073
|
return t;
|
|
55021
|
-
}, rse = (t) => t ? typeof t == "object" && "type" in t && t.type === "detailed" : !1,
|
|
55074
|
+
}, rse = (t) => t ? typeof t == "object" && "type" in t && t.type === "detailed" : !1, pS = (t) => t ? Array.isArray(t) ? t : t.records : [], mS = (t) => t && rse(t) ? t?.type ?? "basic" : "basic", ose = ({
|
|
55022
55075
|
rowId: t,
|
|
55023
55076
|
item: e,
|
|
55024
55077
|
source: n,
|
|
@@ -55029,9 +55082,9 @@ const dS = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.selecte
|
|
|
55029
55082
|
updateFetchedData: o,
|
|
55030
55083
|
clearFetchedData: s
|
|
55031
55084
|
} = rM(), [a, l] = J(
|
|
55032
|
-
|
|
55085
|
+
pS(r?.[t])
|
|
55033
55086
|
), [c, d] = J(r?.[t]?.paginationInfo), [f, u] = J(!1), [h, p] = J(
|
|
55034
|
-
|
|
55087
|
+
mS(r?.[t])
|
|
55035
55088
|
), g = q(n.currentFilters), y = q(n.currentSortings), v = q(n.currentNavigationFilters);
|
|
55036
55089
|
se(() => {
|
|
55037
55090
|
const x = g.current !== n.currentFilters, _ = y.current !== n.currentSortings, S = v.current !== n.currentNavigationFilters;
|
|
@@ -55045,14 +55098,14 @@ const dS = (t) => t ? t.indeterminate || t.selectedCount !== void 0 && t.selecte
|
|
|
55045
55098
|
]);
|
|
55046
55099
|
const w = q(), k = re(
|
|
55047
55100
|
(x) => {
|
|
55048
|
-
const _ =
|
|
55101
|
+
const _ = pS(x), S = [...a, ..._];
|
|
55049
55102
|
l(S);
|
|
55050
55103
|
const C = {
|
|
55051
55104
|
records: S,
|
|
55052
55105
|
type: x?.type,
|
|
55053
55106
|
paginationInfo: x?.paginationInfo
|
|
55054
55107
|
};
|
|
55055
|
-
return o(t, C), p(
|
|
55108
|
+
return o(t, C), p(mS(x)), d(x?.paginationInfo), _;
|
|
55056
55109
|
},
|
|
55057
55110
|
[a, t, o]
|
|
55058
55111
|
), b = re(() => {
|
|
@@ -55673,7 +55726,7 @@ const cse = (t, e) => /* @__PURE__ */ m(
|
|
|
55673
55726
|
},
|
|
55674
55727
|
D
|
|
55675
55728
|
);
|
|
55676
|
-
}, Ml = Ke(kse), jr = (t) => t.id ?? t.label ?? "column",
|
|
55729
|
+
}, Ml = Ke(kse), jr = (t) => t.id ?? t.label ?? "column", gS = (t) => [...t].sort((e, n) => (e.order ?? t.length) - (n.order ?? t.length)).map((e) => jr(e)), xse = (t) => t.filter((e) => e.hidden && !e.noHiding).map((e) => jr(e)), lM = (t, e, n, i, r) => {
|
|
55677
55730
|
const o = () => {
|
|
55678
55731
|
if (!r || n?.hidden === void 0)
|
|
55679
55732
|
return xse(t);
|
|
@@ -55684,13 +55737,13 @@ const cse = (t, e) => /* @__PURE__ */ m(
|
|
|
55684
55737
|
).map(jr);
|
|
55685
55738
|
return [...n.hidden, ...h];
|
|
55686
55739
|
}, [s, a] = J(o()), [l, c] = J(
|
|
55687
|
-
(i && n?.order !== void 0 ? n.order : void 0) ??
|
|
55740
|
+
(i && n?.order !== void 0 ? n.order : void 0) ?? gS(t)
|
|
55688
55741
|
);
|
|
55689
55742
|
se(() => {
|
|
55690
55743
|
r && a(o());
|
|
55691
55744
|
}, [JSON.stringify(n?.hidden), r]), se(() => {
|
|
55692
55745
|
i && c(
|
|
55693
|
-
n?.order !== void 0 ? n.order :
|
|
55746
|
+
n?.order !== void 0 ? n.order : gS(t)
|
|
55694
55747
|
);
|
|
55695
55748
|
}, [JSON.stringify(n?.order), i]);
|
|
55696
55749
|
const d = ie(() => {
|
|
@@ -55936,7 +55989,7 @@ const cse = (t, e) => /* @__PURE__ */ m(
|
|
|
55936
55989
|
allowHiding: i
|
|
55937
55990
|
}
|
|
55938
55991
|
);
|
|
55939
|
-
},
|
|
55992
|
+
}, yS = (t) => !t.allowColumnHiding && !t.allowColumnReordering ? null : /* @__PURE__ */ m(
|
|
55940
55993
|
Ese,
|
|
55941
55994
|
{
|
|
55942
55995
|
columns: t.columns,
|
|
@@ -56062,7 +56115,7 @@ const cse = (t, e) => /* @__PURE__ */ m(
|
|
|
56062
56115
|
(G) => e.itemsWithChildren?.(G)
|
|
56063
56116
|
);
|
|
56064
56117
|
if (O)
|
|
56065
|
-
return /* @__PURE__ */ m(
|
|
56118
|
+
return /* @__PURE__ */ m(fS.Skeleton, { columns: ae });
|
|
56066
56119
|
e.sortings || _.forEach((G) => {
|
|
56067
56120
|
G.sorting && console.warn(
|
|
56068
56121
|
"Sorting is defined on a column but no sortings are provided in the data source"
|
|
@@ -56076,7 +56129,7 @@ const cse = (t, e) => /* @__PURE__ */ m(
|
|
|
56076
56129
|
className: K(
|
|
56077
56130
|
d && "overflow-hidden rounded-lg border border-solid border-f1-border-secondary [&_thead::before]:!bg-transparent [&_thead_th>div:first-child]:!bg-transparent [&_tbody>tr:last-child::after]:!bg-transparent"
|
|
56078
56131
|
),
|
|
56079
|
-
children: /* @__PURE__ */ R(
|
|
56132
|
+
children: /* @__PURE__ */ R(fS, { loading: N, children: [
|
|
56080
56133
|
/* @__PURE__ */ R(KO, { sticky: !0, children: [
|
|
56081
56134
|
we ? /* @__PURE__ */ R(Ri, { children: [
|
|
56082
56135
|
e.selectable && /* @__PURE__ */ m(
|
|
@@ -56255,10 +56308,10 @@ const cse = (t, e) => /* @__PURE__ */ m(
|
|
|
56255
56308
|
children: /* @__PURE__ */ m("div", { className: "pointer-events-auto ml-1.5 flex items-center justify-start", children: /* @__PURE__ */ m(
|
|
56256
56309
|
ud,
|
|
56257
56310
|
{
|
|
56258
|
-
checked: !!
|
|
56311
|
+
checked: !!uS(
|
|
56259
56312
|
X[G.key]
|
|
56260
56313
|
),
|
|
56261
|
-
indeterminate:
|
|
56314
|
+
indeterminate: uS(
|
|
56262
56315
|
X[G.key]
|
|
56263
56316
|
) === "indeterminate",
|
|
56264
56317
|
title: w.actions.selectAll,
|
|
@@ -56823,7 +56876,7 @@ function Fse(t) {
|
|
|
56823
56876
|
}
|
|
56824
56877
|
);
|
|
56825
56878
|
}
|
|
56826
|
-
const
|
|
56879
|
+
const vS = /* @__PURE__ */ new Set();
|
|
56827
56880
|
function $se({
|
|
56828
56881
|
editableColumn: t,
|
|
56829
56882
|
value: e,
|
|
@@ -56835,7 +56888,7 @@ function $se({
|
|
|
56835
56888
|
}) {
|
|
56836
56889
|
const a = ze(), [l, c] = J(!1), d = t.selectConfig;
|
|
56837
56890
|
if (!d)
|
|
56838
|
-
return
|
|
56891
|
+
return vS.has(t.label) || (vS.add(t.label), console.warn(
|
|
56839
56892
|
`SelectCell: column "${t.label}" has editType "select" but no selectConfig`
|
|
56840
56893
|
)), /* @__PURE__ */ m(ta, { children: Lf(o, t, "editableTable", a) });
|
|
56841
56894
|
const f = {
|
|
@@ -56952,7 +57005,7 @@ function hM({
|
|
|
56952
57005
|
}
|
|
56953
57006
|
);
|
|
56954
57007
|
}
|
|
56955
|
-
function
|
|
57008
|
+
function bS({
|
|
56956
57009
|
editableColumn: t,
|
|
56957
57010
|
value: e,
|
|
56958
57011
|
error: n,
|
|
@@ -56984,12 +57037,12 @@ function yS({
|
|
|
56984
57037
|
) });
|
|
56985
57038
|
}
|
|
56986
57039
|
const Bse = {
|
|
56987
|
-
text:
|
|
57040
|
+
text: bS,
|
|
56988
57041
|
number: uM,
|
|
56989
57042
|
money: Fse,
|
|
56990
57043
|
date: Dse,
|
|
56991
57044
|
select: $se,
|
|
56992
|
-
multiselect:
|
|
57045
|
+
multiselect: bS,
|
|
56993
57046
|
"display-only": hM,
|
|
56994
57047
|
disabled: zse
|
|
56995
57048
|
}, jse = /* @__PURE__ */ new Set([
|
|
@@ -57079,7 +57132,7 @@ function Vse({
|
|
|
57079
57132
|
function Wse() {
|
|
57080
57133
|
return Ct(pM);
|
|
57081
57134
|
}
|
|
57082
|
-
function
|
|
57135
|
+
function wS(t, e) {
|
|
57083
57136
|
if (e.id !== void 0 && e.id in t) {
|
|
57084
57137
|
const i = t[e.id];
|
|
57085
57138
|
return i == null ? "" : String(i);
|
|
@@ -57125,7 +57178,7 @@ function Use({
|
|
|
57125
57178
|
}
|
|
57126
57179
|
};
|
|
57127
57180
|
if (f && d) {
|
|
57128
|
-
const p = Bse[d], g =
|
|
57181
|
+
const p = Bse[d], g = wS(r, c);
|
|
57129
57182
|
if (p) {
|
|
57130
57183
|
const y = c.id ? o[c.id] : void 0, v = c.id ? s[c.id] ?? !1 : !1;
|
|
57131
57184
|
return (
|
|
@@ -57160,7 +57213,7 @@ function Use({
|
|
|
57160
57213
|
{
|
|
57161
57214
|
editableColumn: c,
|
|
57162
57215
|
item: r,
|
|
57163
|
-
value:
|
|
57216
|
+
value: wS(r, c),
|
|
57164
57217
|
isLastColumn: n,
|
|
57165
57218
|
onChange: h
|
|
57166
57219
|
}
|
|
@@ -57246,8 +57299,8 @@ oh.prototype = eg.prototype = {
|
|
|
57246
57299
|
}
|
|
57247
57300
|
if (e != null && typeof e != "function") throw new Error("invalid callback: " + e);
|
|
57248
57301
|
for (; ++o < s; )
|
|
57249
|
-
if (r = (t = i[o]).type) n[r] =
|
|
57250
|
-
else if (e == null) for (r in n) n[r] =
|
|
57302
|
+
if (r = (t = i[o]).type) n[r] = kS(n[r], t.name, e);
|
|
57303
|
+
else if (e == null) for (r in n) n[r] = kS(n[r], t.name, null);
|
|
57251
57304
|
return this;
|
|
57252
57305
|
},
|
|
57253
57306
|
copy: function() {
|
|
@@ -57270,7 +57323,7 @@ function Yse(t, e) {
|
|
|
57270
57323
|
if ((r = t[n]).name === e)
|
|
57271
57324
|
return r.value;
|
|
57272
57325
|
}
|
|
57273
|
-
function
|
|
57326
|
+
function kS(t, e, n) {
|
|
57274
57327
|
for (var i = 0, r = t.length; i < r; ++i)
|
|
57275
57328
|
if (t[i].name === e) {
|
|
57276
57329
|
t[i] = Kse, t = t.slice(0, i).concat(t.slice(i + 1));
|
|
@@ -57279,7 +57332,7 @@ function bS(t, e, n) {
|
|
|
57279
57332
|
return n != null && t.push({ name: e, value: n }), t;
|
|
57280
57333
|
}
|
|
57281
57334
|
var h0 = "http://www.w3.org/1999/xhtml";
|
|
57282
|
-
const
|
|
57335
|
+
const xS = {
|
|
57283
57336
|
svg: "http://www.w3.org/2000/svg",
|
|
57284
57337
|
xhtml: h0,
|
|
57285
57338
|
xlink: "http://www.w3.org/1999/xlink",
|
|
@@ -57288,7 +57341,7 @@ const wS = {
|
|
|
57288
57341
|
};
|
|
57289
57342
|
function tg(t) {
|
|
57290
57343
|
var e = t += "", n = e.indexOf(":");
|
|
57291
|
-
return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)),
|
|
57344
|
+
return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)), xS.hasOwnProperty(e) ? { space: xS[e], local: t } : t;
|
|
57292
57345
|
}
|
|
57293
57346
|
function Xse(t) {
|
|
57294
57347
|
return function() {
|
|
@@ -58063,7 +58116,7 @@ function Rle() {
|
|
|
58063
58116
|
(e = na - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
|
|
58064
58117
|
--Il;
|
|
58065
58118
|
}
|
|
58066
|
-
function
|
|
58119
|
+
function _S() {
|
|
58067
58120
|
na = (zp = Xd.now()) + ng, Il = Lc = 0;
|
|
58068
58121
|
try {
|
|
58069
58122
|
Rle();
|
|
@@ -58084,16 +58137,16 @@ function m0(t) {
|
|
|
58084
58137
|
if (!Il) {
|
|
58085
58138
|
Lc && (Lc = clearTimeout(Lc));
|
|
58086
58139
|
var e = t - na;
|
|
58087
|
-
e > 24 ? (t < 1 / 0 && (Lc = setTimeout(
|
|
58140
|
+
e > 24 ? (t < 1 / 0 && (Lc = setTimeout(_S, t - Xd.now() - ng)), Nc && (Nc = clearInterval(Nc))) : (Nc || (zp = Xd.now(), Nc = setInterval(Lle, OM)), Il = 1, MM(_S));
|
|
58088
58141
|
}
|
|
58089
58142
|
}
|
|
58090
|
-
function
|
|
58143
|
+
function SS(t, e, n) {
|
|
58091
58144
|
var i = new Bp();
|
|
58092
58145
|
return e = e == null ? 0 : +e, i.restart((r) => {
|
|
58093
58146
|
i.stop(), t(r + e);
|
|
58094
58147
|
}, e, n), i;
|
|
58095
58148
|
}
|
|
58096
|
-
var $le = eg("start", "end", "cancel", "interrupt"), zle = [], IM = 0,
|
|
58149
|
+
var $le = eg("start", "end", "cancel", "interrupt"), zle = [], IM = 0, CS = 1, g0 = 2, sh = 3, ES = 4, y0 = 5, ah = 6;
|
|
58097
58150
|
function ig(t, e, n, i, r, o) {
|
|
58098
58151
|
var s = t.__transition;
|
|
58099
58152
|
if (!s) t.__transition = {};
|
|
@@ -58133,18 +58186,18 @@ function Ble(t, e, n) {
|
|
|
58133
58186
|
var i = t.__transition, r;
|
|
58134
58187
|
i[e] = n, n.timer = DM(o, 0, n.time);
|
|
58135
58188
|
function o(c) {
|
|
58136
|
-
n.state =
|
|
58189
|
+
n.state = CS, n.timer.restart(s, n.delay, n.time), n.delay <= c && s(c - n.delay);
|
|
58137
58190
|
}
|
|
58138
58191
|
function s(c) {
|
|
58139
58192
|
var d, f, u, h;
|
|
58140
|
-
if (n.state !==
|
|
58193
|
+
if (n.state !== CS) return l();
|
|
58141
58194
|
for (d in i)
|
|
58142
58195
|
if (h = i[d], h.name === n.name) {
|
|
58143
|
-
if (h.state === sh) return
|
|
58144
|
-
h.state ===
|
|
58196
|
+
if (h.state === sh) return SS(s);
|
|
58197
|
+
h.state === ES ? (h.state = ah, h.timer.stop(), h.on.call("interrupt", t, t.__data__, h.index, h.group), delete i[d]) : +d < e && (h.state = ah, h.timer.stop(), h.on.call("cancel", t, t.__data__, h.index, h.group), delete i[d]);
|
|
58145
58198
|
}
|
|
58146
|
-
if (
|
|
58147
|
-
n.state === sh && (n.state =
|
|
58199
|
+
if (SS(function() {
|
|
58200
|
+
n.state === sh && (n.state = ES, n.timer.restart(a, n.delay, n.time), a(c));
|
|
58148
58201
|
}), n.state = g0, n.on.call("start", t, t.__data__, n.index, n.group), n.state === g0) {
|
|
58149
58202
|
for (n.state = sh, r = new Array(u = n.tween.length), d = 0, f = -1; d < u; ++d)
|
|
58150
58203
|
(h = n.tween[d].value.call(t, t.__data__, n.index, n.group)) && (r[++f] = h);
|
|
@@ -58684,7 +58737,7 @@ function Kce() {
|
|
|
58684
58737
|
var t = this;
|
|
58685
58738
|
return t instanceof SVGElement ? (t = t.ownerSVGElement || t, t.hasAttribute("viewBox") ? (t = t.viewBox.baseVal, [[t.x, t.y], [t.x + t.width, t.y + t.height]]) : [[0, 0], [t.width.baseVal.value, t.height.baseVal.value]]) : [[0, 0], [t.clientWidth, t.clientHeight]];
|
|
58686
58739
|
}
|
|
58687
|
-
function
|
|
58740
|
+
function AS() {
|
|
58688
58741
|
return this.__zoom || rg;
|
|
58689
58742
|
}
|
|
58690
58743
|
function Gce(t) {
|
|
@@ -58703,11 +58756,11 @@ function Xce(t, e, n) {
|
|
|
58703
58756
|
function $M() {
|
|
58704
58757
|
var t = qce, e = Kce, n = Xce, i = Gce, r = Yce, o = [0, 1 / 0], s = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], a = 250, l = Lu, c = eg("start", "zoom", "end"), d, f, u, h = 500, p = 150, g = 0, y = 10;
|
|
58705
58758
|
function v(A) {
|
|
58706
|
-
A.property("__zoom",
|
|
58759
|
+
A.property("__zoom", AS).on("wheel.zoom", C, { passive: !1 }).on("mousedown.zoom", E).on("dblclick.zoom", O).filter(r).on("touchstart.zoom", M).on("touchmove.zoom", I).on("touchend.zoom touchcancel.zoom", D).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
58707
58760
|
}
|
|
58708
58761
|
v.transform = function(A, T, N, P) {
|
|
58709
58762
|
var L = A.selection ? A.selection() : A;
|
|
58710
|
-
L.property("__zoom",
|
|
58763
|
+
L.property("__zoom", AS), A !== L ? x(A, T, N, P) : L.interrupt().each(function() {
|
|
58711
58764
|
_(this, arguments).event(P).start().zoom(null, typeof T == "function" ? T.apply(this, arguments) : T).end();
|
|
58712
58765
|
});
|
|
58713
58766
|
}, v.scaleBy = function(A, T, N, P) {
|
|
@@ -58968,7 +59021,7 @@ var Te;
|
|
|
58968
59021
|
(function(t) {
|
|
58969
59022
|
t.Left = "left", t.Top = "top", t.Right = "right", t.Bottom = "bottom";
|
|
58970
59023
|
})(Te || (Te = {}));
|
|
58971
|
-
const
|
|
59024
|
+
const TS = {
|
|
58972
59025
|
[Te.Left]: Te.Right,
|
|
58973
59026
|
[Te.Right]: Te.Left,
|
|
58974
59027
|
[Te.Top]: Te.Bottom,
|
|
@@ -59094,8 +59147,8 @@ function UM(t, e, n) {
|
|
|
59094
59147
|
[o + i, s + r]
|
|
59095
59148
|
], e);
|
|
59096
59149
|
}
|
|
59097
|
-
const
|
|
59098
|
-
const r =
|
|
59150
|
+
const NS = (t, e, n) => t < e ? Rl(Math.abs(t - e), 1, e) / e : t > n ? -Rl(Math.abs(t - n), 1, e) / e : 0, qM = (t, e, n = 15, i = 40) => {
|
|
59151
|
+
const r = NS(t.x, i, e.width - i) * n, o = NS(t.y, i, e.height - i) * n;
|
|
59099
59152
|
return [r, o];
|
|
59100
59153
|
}, og = (t, e) => ({
|
|
59101
59154
|
x: Math.min(t.x, e.x),
|
|
@@ -59131,7 +59184,7 @@ const AS = (t, e, n) => t < e ? Rl(Math.abs(t - e), 1, e) / e : t > n ? -Rl(Math
|
|
|
59131
59184
|
}, KM = (t, e) => sg(og(v0(t), v0(e))), Qd = (t, e) => {
|
|
59132
59185
|
const n = Math.max(0, Math.min(t.x + t.width, e.x + e.width) - Math.max(t.x, e.x)), i = Math.max(0, Math.min(t.y + t.height, e.y + e.height) - Math.max(t.y, e.y));
|
|
59133
59186
|
return Math.ceil(n * i);
|
|
59134
|
-
},
|
|
59187
|
+
}, OS = (t) => ji(t.width) && ji(t.height) && ji(t.x) && ji(t.y), ji = (t) => !isNaN(t) && isFinite(t), GM = (t, e) => {
|
|
59135
59188
|
process.env.NODE_ENV === "development" && console.warn(`[React Flow]: ${e} Help: https://reactflow.dev/error#${t}`);
|
|
59136
59189
|
}, zf = (t, e = [1, 1]) => ({
|
|
59137
59190
|
x: e[0] * Math.round(t.x / e[0]),
|
|
@@ -59221,7 +59274,7 @@ function XM(t, e = { width: 0, height: 0 }, n, i, r) {
|
|
|
59221
59274
|
}
|
|
59222
59275
|
return o;
|
|
59223
59276
|
}
|
|
59224
|
-
function
|
|
59277
|
+
function MS(t, e) {
|
|
59225
59278
|
if (t.size !== e.size)
|
|
59226
59279
|
return !1;
|
|
59227
59280
|
for (const n of t)
|
|
@@ -59238,7 +59291,7 @@ function ode() {
|
|
|
59238
59291
|
function sde(t) {
|
|
59239
59292
|
return { ...BM, ...t || {} };
|
|
59240
59293
|
}
|
|
59241
|
-
function
|
|
59294
|
+
function fd(t, { snapGrid: e = [0, 0], snapToGrid: n = !1, transform: i, containerBounds: r }) {
|
|
59242
59295
|
const { x: o, y: s } = Hi(t), a = Bf({ x: o - (r?.left ?? 0), y: s - (r?.top ?? 0) }, i), { x: l, y: c } = n ? zf(a, e) : a;
|
|
59243
59296
|
return {
|
|
59244
59297
|
xSnapped: l,
|
|
@@ -59260,7 +59313,7 @@ const QM = (t) => "clientX" in t, Hi = (t, e) => {
|
|
|
59260
59313
|
x: i - (e?.left ?? 0),
|
|
59261
59314
|
y: r - (e?.top ?? 0)
|
|
59262
59315
|
};
|
|
59263
|
-
},
|
|
59316
|
+
}, DS = (t, e, n, i, r) => {
|
|
59264
59317
|
const o = e.querySelectorAll(`.${t}`);
|
|
59265
59318
|
return !o || !o.length ? null : Array.from(o).map((s) => {
|
|
59266
59319
|
const a = s.getBoundingClientRect();
|
|
@@ -59282,7 +59335,7 @@ function eD({ sourceX: t, sourceY: e, targetX: n, targetY: i, sourceControlX: r,
|
|
|
59282
59335
|
function Au(t, e) {
|
|
59283
59336
|
return t >= 0 ? 0.5 * t : e * 25 * Math.sqrt(-t);
|
|
59284
59337
|
}
|
|
59285
|
-
function
|
|
59338
|
+
function IS({ pos: t, x1: e, y1: n, x2: i, y2: r, c: o }) {
|
|
59286
59339
|
switch (t) {
|
|
59287
59340
|
case Te.Left:
|
|
59288
59341
|
return [e - Au(e - i, o), n];
|
|
@@ -59295,14 +59348,14 @@ function MS({ pos: t, x1: e, y1: n, x2: i, y2: r, c: o }) {
|
|
|
59295
59348
|
}
|
|
59296
59349
|
}
|
|
59297
59350
|
function Sk({ sourceX: t, sourceY: e, sourcePosition: n = Te.Bottom, targetX: i, targetY: r, targetPosition: o = Te.Top, curvature: s = 0.25 }) {
|
|
59298
|
-
const [a, l] =
|
|
59351
|
+
const [a, l] = IS({
|
|
59299
59352
|
pos: n,
|
|
59300
59353
|
x1: t,
|
|
59301
59354
|
y1: e,
|
|
59302
59355
|
x2: i,
|
|
59303
59356
|
y2: r,
|
|
59304
59357
|
c: s
|
|
59305
|
-
}), [c, d] =
|
|
59358
|
+
}), [c, d] = IS({
|
|
59306
59359
|
pos: o,
|
|
59307
59360
|
x1: i,
|
|
59308
59361
|
y1: r,
|
|
@@ -59367,14 +59420,14 @@ function ag({ sourceX: t, sourceY: e, targetX: n, targetY: i }) {
|
|
|
59367
59420
|
});
|
|
59368
59421
|
return [`M ${t},${e}L ${n},${i}`, r, o, s, a];
|
|
59369
59422
|
}
|
|
59370
|
-
const
|
|
59423
|
+
const PS = {
|
|
59371
59424
|
[Te.Left]: { x: -1, y: 0 },
|
|
59372
59425
|
[Te.Right]: { x: 1, y: 0 },
|
|
59373
59426
|
[Te.Top]: { x: 0, y: -1 },
|
|
59374
59427
|
[Te.Bottom]: { x: 0, y: 1 }
|
|
59375
|
-
}, hde = ({ source: t, sourcePosition: e = Te.Bottom, target: n }) => e === Te.Left || e === Te.Right ? t.x < n.x ? { x: 1, y: 0 } : { x: -1, y: 0 } : t.y < n.y ? { x: 0, y: 1 } : { x: 0, y: -1 },
|
|
59428
|
+
}, hde = ({ source: t, sourcePosition: e = Te.Bottom, target: n }) => e === Te.Left || e === Te.Right ? t.x < n.x ? { x: 1, y: 0 } : { x: -1, y: 0 } : t.y < n.y ? { x: 0, y: 1 } : { x: 0, y: -1 }, RS = (t, e) => Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
59376
59429
|
function pde({ source: t, sourcePosition: e = Te.Bottom, target: n, targetPosition: i = Te.Top, center: r, offset: o, stepPosition: s }) {
|
|
59377
|
-
const a =
|
|
59430
|
+
const a = PS[e], l = PS[i], c = { x: t.x + a.x * o, y: t.y + a.y * o }, d = { x: n.x + l.x * o, y: n.y + l.y * o }, f = hde({
|
|
59378
59431
|
source: c,
|
|
59379
59432
|
sourcePosition: e,
|
|
59380
59433
|
target: d
|
|
@@ -59423,7 +59476,7 @@ function pde({ source: t, sourcePosition: e = Te.Bottom, target: n, targetPositi
|
|
|
59423
59476
|
], g, y, k, b];
|
|
59424
59477
|
}
|
|
59425
59478
|
function mde(t, e, n, i) {
|
|
59426
|
-
const r = Math.min(
|
|
59479
|
+
const r = Math.min(RS(t, e) / 2, RS(e, n) / 2, i), { x: o, y: s } = e;
|
|
59427
59480
|
if (t.x === o && o === n.x || t.y === s && s === n.y)
|
|
59428
59481
|
return `L${o} ${s}`;
|
|
59429
59482
|
if (t.y === s) {
|
|
@@ -59448,14 +59501,14 @@ function Wp({ sourceX: t, sourceY: e, sourcePosition: n = Te.Bottom, targetX: i,
|
|
|
59448
59501
|
y += mde(f[v - 1], f[v], f[v + 1], s);
|
|
59449
59502
|
return y += `L${f[f.length - 1].x} ${f[f.length - 1].y}`, [y, u, h, p, g];
|
|
59450
59503
|
}
|
|
59451
|
-
function
|
|
59504
|
+
function LS(t) {
|
|
59452
59505
|
return t && !!(t.internals.handleBounds || t.handles?.length) && !!(t.measured.width || t.width || t.initialWidth);
|
|
59453
59506
|
}
|
|
59454
59507
|
function gde(t) {
|
|
59455
59508
|
const { sourceNode: e, targetNode: n } = t;
|
|
59456
|
-
if (!
|
|
59509
|
+
if (!LS(e) || !LS(n))
|
|
59457
59510
|
return null;
|
|
59458
|
-
const i = e.internals.handleBounds ||
|
|
59511
|
+
const i = e.internals.handleBounds || FS(e.handles), r = n.internals.handleBounds || FS(n.handles), o = $S(i?.source ?? [], t.sourceHandle), s = $S(
|
|
59459
59512
|
// when connection type is loose we can define all handles as sources and connect source -> source
|
|
59460
59513
|
t.connectionMode === Pl.Strict ? r?.target ?? [] : (r?.target ?? []).concat(r?.source ?? []),
|
|
59461
59514
|
t.targetHandle
|
|
@@ -59476,7 +59529,7 @@ function gde(t) {
|
|
|
59476
59529
|
targetPosition: l
|
|
59477
59530
|
};
|
|
59478
59531
|
}
|
|
59479
|
-
function
|
|
59532
|
+
function FS(t) {
|
|
59480
59533
|
if (!t)
|
|
59481
59534
|
return null;
|
|
59482
59535
|
const e = [], n = [];
|
|
@@ -59502,7 +59555,7 @@ function ra(t, e, n = Te.Left, i = !1) {
|
|
|
59502
59555
|
return { x: r, y: o + a / 2 };
|
|
59503
59556
|
}
|
|
59504
59557
|
}
|
|
59505
|
-
function
|
|
59558
|
+
function $S(t, e) {
|
|
59506
59559
|
return t && (e ? t.find((n) => n.id === e) : t[0]) || null;
|
|
59507
59560
|
}
|
|
59508
59561
|
function b0(t, e) {
|
|
@@ -59732,8 +59785,8 @@ function Cde(t, e, n, i, r, o, s) {
|
|
|
59732
59785
|
...p.internals,
|
|
59733
59786
|
positionAbsolute: b,
|
|
59734
59787
|
handleBounds: {
|
|
59735
|
-
source:
|
|
59736
|
-
target:
|
|
59788
|
+
source: DS("source", h.nodeElement, w, f, p.id),
|
|
59789
|
+
target: DS("target", h.nodeElement, w, f, p.id)
|
|
59737
59790
|
}
|
|
59738
59791
|
}
|
|
59739
59792
|
};
|
|
@@ -59767,7 +59820,7 @@ async function Ede({ delta: t, panZoom: e, transform: n, translateExtent: i, wid
|
|
|
59767
59820
|
], i), a = !!s && (s.x !== n[0] || s.y !== n[1] || s.k !== n[2]);
|
|
59768
59821
|
return Promise.resolve(a);
|
|
59769
59822
|
}
|
|
59770
|
-
function
|
|
59823
|
+
function zS(t, e, n, i, r, o) {
|
|
59771
59824
|
let s = r;
|
|
59772
59825
|
const a = i.get(s) || /* @__PURE__ */ new Map();
|
|
59773
59826
|
i.set(s, a.set(n, e)), s = `${r}-${t}`;
|
|
@@ -59782,7 +59835,7 @@ function rD(t, e, n) {
|
|
|
59782
59835
|
t.clear(), e.clear();
|
|
59783
59836
|
for (const i of n) {
|
|
59784
59837
|
const { source: r, target: o, sourceHandle: s = null, targetHandle: a = null } = i, l = { edgeId: i.id, source: r, target: o, sourceHandle: s, targetHandle: a }, c = `${r}-${s}--${o}-${a}`, d = `${o}-${a}--${r}-${s}`;
|
|
59785
|
-
|
|
59838
|
+
zS("source", l, d, t, r, s), zS("target", l, c, t, o, a), e.set(i.id, i);
|
|
59786
59839
|
}
|
|
59787
59840
|
}
|
|
59788
59841
|
function oD(t, e) {
|
|
@@ -59791,7 +59844,7 @@ function oD(t, e) {
|
|
|
59791
59844
|
const n = e.get(t.parentId);
|
|
59792
59845
|
return n ? n.selected ? !0 : oD(n, e) : !1;
|
|
59793
59846
|
}
|
|
59794
|
-
function
|
|
59847
|
+
function BS(t, e, n) {
|
|
59795
59848
|
let i = t;
|
|
59796
59849
|
do {
|
|
59797
59850
|
if (i?.matches?.(e))
|
|
@@ -59927,7 +59980,7 @@ function Nde({ onNodeMouseDown: t, getStoreItems: e, onDragStart: n, onDrag: i,
|
|
|
59927
59980
|
function O(I) {
|
|
59928
59981
|
const { nodeLookup: D, multiSelectionActive: A, nodesDraggable: T, transform: N, snapGrid: P, snapToGrid: L, selectNodesOnDrag: F, onNodeDragStart: z, onSelectionDragStart: j, unselectNodesAndEdges: $ } = e();
|
|
59929
59982
|
f = !0, (!F || !x) && !A && _ && (D.get(_)?.selected || $()), x && F && _ && t?.(_);
|
|
59930
|
-
const B =
|
|
59983
|
+
const B = fd(I.sourceEvent, { transform: N, snapGrid: P, snapToGrid: L, containerBounds: d });
|
|
59931
59984
|
if (o = B, a = Ade(D, T, B, _), a.size > 0 && (n || z || !_ && j)) {
|
|
59932
59985
|
const [U, W] = ey({
|
|
59933
59986
|
nodeId: _,
|
|
@@ -59939,9 +59992,9 @@ function Nde({ onNodeMouseDown: t, getStoreItems: e, onDragStart: n, onDrag: i,
|
|
|
59939
59992
|
}
|
|
59940
59993
|
const M = NM().clickDistance(S).on("start", (I) => {
|
|
59941
59994
|
const { domNode: D, nodeDragThreshold: A, transform: T, snapGrid: N, snapToGrid: P } = e();
|
|
59942
|
-
d = D?.getBoundingClientRect() || null, h = !1, p = !1, g = I.sourceEvent, A === 0 && O(I), o =
|
|
59995
|
+
d = D?.getBoundingClientRect() || null, h = !1, p = !1, g = I.sourceEvent, A === 0 && O(I), o = fd(I.sourceEvent, { transform: T, snapGrid: N, snapToGrid: P, containerBounds: d }), c = Hi(I.sourceEvent, d);
|
|
59943
59996
|
}).on("drag", (I) => {
|
|
59944
|
-
const { autoPanOnNodeDrag: D, transform: A, snapGrid: T, snapToGrid: N, nodeDragThreshold: P, nodeLookup: L } = e(), F =
|
|
59997
|
+
const { autoPanOnNodeDrag: D, transform: A, snapGrid: T, snapToGrid: N, nodeDragThreshold: P, nodeLookup: L } = e(), F = fd(I.sourceEvent, { transform: A, snapGrid: T, snapToGrid: N, containerBounds: d });
|
|
59945
59998
|
if (g = I.sourceEvent, (I.sourceEvent.type === "touchmove" && I.sourceEvent.touches.length > 1 || // if user deletes a node while dragging, we need to abort the drag to prevent errors
|
|
59946
59999
|
_ && !L.has(_)) && (h = !0), !h) {
|
|
59947
60000
|
if (!l && D && f && (l = !0, E()), !f) {
|
|
@@ -59965,7 +60018,7 @@ function Nde({ onNodeMouseDown: t, getStoreItems: e, onDragStart: n, onDrag: i,
|
|
|
59965
60018
|
}
|
|
59966
60019
|
}).filter((I) => {
|
|
59967
60020
|
const D = I.target;
|
|
59968
|
-
return !I.button && (!w ||
|
|
60021
|
+
return !I.button && (!w || !BS(D, `.${w}`, b)) && (!k || BS(D, k, b));
|
|
59969
60022
|
});
|
|
59970
60023
|
u.call(M);
|
|
59971
60024
|
}
|
|
@@ -60056,7 +60109,7 @@ function Pde(t, { connectionMode: e, connectionRadius: n, handleId: i, nodeId: r
|
|
|
60056
60109
|
fromNode: W,
|
|
60057
60110
|
to: L,
|
|
60058
60111
|
toHandle: null,
|
|
60059
|
-
toPosition:
|
|
60112
|
+
toPosition: TS[U.position],
|
|
60060
60113
|
toNode: null,
|
|
60061
60114
|
pointer: L
|
|
60062
60115
|
};
|
|
@@ -60096,7 +60149,7 @@ function Pde(t, { connectionMode: e, connectionRadius: n, handleId: i, nodeId: r
|
|
|
60096
60149
|
isValid: j,
|
|
60097
60150
|
to: ee.toHandle && j ? Vp({ x: ee.toHandle.x, y: ee.toHandle.y }, ne) : L,
|
|
60098
60151
|
toHandle: ee.toHandle,
|
|
60099
|
-
toPosition: j && ee.toHandle ? ee.toHandle.position :
|
|
60152
|
+
toPosition: j && ee.toHandle ? ee.toHandle.position : TS[U.position],
|
|
60100
60153
|
toNode: ee.toHandle ? l.get(ee.toHandle.nodeId) : null,
|
|
60101
60154
|
pointer: L
|
|
60102
60155
|
};
|
|
@@ -60428,7 +60481,7 @@ function Wde({ width: t, prevWidth: e, height: n, prevHeight: i, affectsX: r, af
|
|
|
60428
60481
|
const s = t - e, a = n - i, l = [s > 0 ? 1 : s < 0 ? -1 : 0, a > 0 ? 1 : a < 0 ? -1 : 0];
|
|
60429
60482
|
return s && r && (l[0] = l[0] * -1), a && o && (l[1] = l[1] * -1), l;
|
|
60430
60483
|
}
|
|
60431
|
-
function
|
|
60484
|
+
function jS(t) {
|
|
60432
60485
|
const e = t.includes("right") || t.includes("left"), n = t.includes("bottom") || t.includes("top"), i = t.includes("left"), r = t.includes("top");
|
|
60433
60486
|
return {
|
|
60434
60487
|
isHorizontal: e,
|
|
@@ -60446,7 +60499,7 @@ function ko(t, e) {
|
|
|
60446
60499
|
function Tu(t, e, n) {
|
|
60447
60500
|
return Math.max(0, e - t, t - n);
|
|
60448
60501
|
}
|
|
60449
|
-
function
|
|
60502
|
+
function HS(t, e) {
|
|
60450
60503
|
return t ? !e : e;
|
|
60451
60504
|
}
|
|
60452
60505
|
function Ude(t, e, n, i, r, o, s, a) {
|
|
@@ -60487,7 +60540,7 @@ function Ude(t, e, n, i, r, o, s, a) {
|
|
|
60487
60540
|
}
|
|
60488
60541
|
}
|
|
60489
60542
|
}
|
|
60490
|
-
E = E + (E < 0 ? T : -T), C = C + (C < 0 ? A : -A), r && (u ? O > M * S ? E = (
|
|
60543
|
+
E = E + (E < 0 ? T : -T), C = C + (C < 0 ? A : -A), r && (u ? O > M * S ? E = (HS(l, c) ? -C : C) / S : C = (HS(l, c) ? -E : E) * S : d ? (E = C / S, c = l) : (C = E * S, l = c));
|
|
60491
60544
|
const N = l ? k + C : k, P = c ? b + E : b;
|
|
60492
60545
|
return {
|
|
60493
60546
|
width: x + (l ? -C : C),
|
|
@@ -60518,7 +60571,7 @@ function Gde(t, e, n) {
|
|
|
60518
60571
|
function Yde({ domNode: t, nodeId: e, getStoreItems: n, onChange: i, onEnd: r }) {
|
|
60519
60572
|
const o = fi(t);
|
|
60520
60573
|
let s = {
|
|
60521
|
-
controlDirection:
|
|
60574
|
+
controlDirection: jS("bottom-right"),
|
|
60522
60575
|
boundaries: {
|
|
60523
60576
|
minWidth: 0,
|
|
60524
60577
|
minHeight: 0,
|
|
@@ -60534,7 +60587,7 @@ function Yde({ domNode: t, nodeId: e, getStoreItems: n, onChange: i, onEnd: r })
|
|
|
60534
60587
|
boundaries: d,
|
|
60535
60588
|
resizeDirection: u,
|
|
60536
60589
|
keepAspectRatio: f,
|
|
60537
|
-
controlDirection:
|
|
60590
|
+
controlDirection: jS(c)
|
|
60538
60591
|
};
|
|
60539
60592
|
let k, b = null, x = [], _, S, C, E = !1;
|
|
60540
60593
|
const O = NM().on("start", (M) => {
|
|
@@ -60542,7 +60595,7 @@ function Yde({ domNode: t, nodeId: e, getStoreItems: n, onChange: i, onEnd: r })
|
|
|
60542
60595
|
if (k = I.get(e), !k)
|
|
60543
60596
|
return;
|
|
60544
60597
|
b = P?.getBoundingClientRect() ?? null;
|
|
60545
|
-
const { xSnapped: L, ySnapped: F } =
|
|
60598
|
+
const { xSnapped: L, ySnapped: F } = fd(M.sourceEvent, {
|
|
60546
60599
|
transform: D,
|
|
60547
60600
|
snapGrid: A,
|
|
60548
60601
|
snapToGrid: T,
|
|
@@ -60573,7 +60626,7 @@ function Yde({ domNode: t, nodeId: e, getStoreItems: n, onChange: i, onEnd: r })
|
|
|
60573
60626
|
}
|
|
60574
60627
|
h?.(M, { ...v });
|
|
60575
60628
|
}).on("drag", (M) => {
|
|
60576
|
-
const { transform: I, snapGrid: D, snapToGrid: A, nodeOrigin: T } = n(), N =
|
|
60629
|
+
const { transform: I, snapGrid: D, snapToGrid: A, nodeOrigin: T } = n(), N = fd(M.sourceEvent, {
|
|
60577
60630
|
transform: I,
|
|
60578
60631
|
snapGrid: D,
|
|
60579
60632
|
snapToGrid: A,
|
|
@@ -60621,10 +60674,10 @@ function Yde({ domNode: t, nodeId: e, getStoreItems: n, onChange: i, onEnd: r })
|
|
|
60621
60674
|
};
|
|
60622
60675
|
}
|
|
60623
60676
|
var Nu = { exports: {} }, iy = {};
|
|
60624
|
-
var
|
|
60677
|
+
var VS;
|
|
60625
60678
|
function Xde() {
|
|
60626
|
-
if (
|
|
60627
|
-
|
|
60679
|
+
if (VS) return iy;
|
|
60680
|
+
VS = 1;
|
|
60628
60681
|
var t = oe, e = B5();
|
|
60629
60682
|
function n(c, d) {
|
|
60630
60683
|
return c === d && (c !== 0 || 1 / c === 1 / d) || c !== c && d !== d;
|
|
@@ -60673,9 +60726,9 @@ function Xde() {
|
|
|
60673
60726
|
}, iy;
|
|
60674
60727
|
}
|
|
60675
60728
|
var ry = {};
|
|
60676
|
-
var
|
|
60729
|
+
var WS;
|
|
60677
60730
|
function Jde() {
|
|
60678
|
-
return
|
|
60731
|
+
return WS || (WS = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
60679
60732
|
function t(c, d) {
|
|
60680
60733
|
return c === d && (c !== 0 || 1 / c === 1 / d) || c !== c && d !== d;
|
|
60681
60734
|
}
|
|
@@ -60725,12 +60778,12 @@ function Jde() {
|
|
|
60725
60778
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
60726
60779
|
})()), ry;
|
|
60727
60780
|
}
|
|
60728
|
-
var
|
|
60781
|
+
var US;
|
|
60729
60782
|
function Zde() {
|
|
60730
|
-
return
|
|
60783
|
+
return US || (US = 1, process.env.NODE_ENV === "production" ? Nu.exports = Xde() : Nu.exports = Jde()), Nu.exports;
|
|
60731
60784
|
}
|
|
60732
60785
|
var Qde = Zde();
|
|
60733
|
-
const efe = /* @__PURE__ */ Kp(Qde), tfe = {},
|
|
60786
|
+
const efe = /* @__PURE__ */ Kp(Qde), tfe = {}, qS = (t) => {
|
|
60734
60787
|
let e;
|
|
60735
60788
|
const n = /* @__PURE__ */ new Set(), i = (d, f) => {
|
|
60736
60789
|
const u = typeof d == "function" ? d(e) : d;
|
|
@@ -60744,7 +60797,7 @@ const efe = /* @__PURE__ */ Kp(Qde), tfe = {}, WS = (t) => {
|
|
|
60744
60797
|
), n.clear();
|
|
60745
60798
|
} }, c = e = t(i, r, l);
|
|
60746
60799
|
return l;
|
|
60747
|
-
}, nfe = (t) => t ?
|
|
60800
|
+
}, nfe = (t) => t ? qS(t) : qS, { useDebugValue: ife } = oe, { useSyncExternalStoreWithSelector: rfe } = efe, ofe = (t) => t;
|
|
60748
60801
|
function hD(t, e = ofe, n) {
|
|
60749
60802
|
const i = rfe(
|
|
60750
60803
|
t.subscribe,
|
|
@@ -60755,10 +60808,10 @@ function hD(t, e = ofe, n) {
|
|
|
60755
60808
|
);
|
|
60756
60809
|
return ife(i), i;
|
|
60757
60810
|
}
|
|
60758
|
-
const
|
|
60811
|
+
const KS = (t, e) => {
|
|
60759
60812
|
const n = nfe(t), i = (r, o = e) => hD(n, r, o);
|
|
60760
60813
|
return Object.assign(i, n), i;
|
|
60761
|
-
}, sfe = (t, e) => t ?
|
|
60814
|
+
}, sfe = (t, e) => t ? KS(t, e) : KS;
|
|
60762
60815
|
function St(t, e) {
|
|
60763
60816
|
if (Object.is(t, e))
|
|
60764
60817
|
return !0;
|
|
@@ -60803,7 +60856,7 @@ function Nt() {
|
|
|
60803
60856
|
subscribe: t.subscribe
|
|
60804
60857
|
}), [t]);
|
|
60805
60858
|
}
|
|
60806
|
-
const
|
|
60859
|
+
const GS = { display: "none" }, lfe = {
|
|
60807
60860
|
position: "absolute",
|
|
60808
60861
|
width: 1,
|
|
60809
60862
|
height: 1,
|
|
@@ -60820,7 +60873,7 @@ function ufe({ rfId: t }) {
|
|
|
60820
60873
|
}
|
|
60821
60874
|
function hfe({ rfId: t, disableKeyboardA11y: e }) {
|
|
60822
60875
|
const n = et(ffe);
|
|
60823
|
-
return R(De, { children: [m("div", { id: `${mD}-${t}`, style:
|
|
60876
|
+
return R(De, { children: [m("div", { id: `${mD}-${t}`, style: GS, children: e ? n["node.a11yDescription.default"] : n["node.a11yDescription.keyboardDisabled"] }), m("div", { id: `${gD}-${t}`, style: GS, children: n["edge.a11yDescription.default"] }), !e && m(ufe, { rfId: t })] });
|
|
60824
60877
|
}
|
|
60825
60878
|
const dg = Ke(({ position: t = "top-left", children: e, className: n, style: i, ...r }, o) => {
|
|
60826
60879
|
const s = `${t}`.split("-");
|
|
@@ -60912,7 +60965,7 @@ const x0 = typeof window < "u" ? tn : se, yD = [0, 0], wfe = { x: 0, y: 0, zoom:
|
|
|
60912
60965
|
"autoPanSpeed",
|
|
60913
60966
|
"ariaLabelConfig",
|
|
60914
60967
|
"zIndexMode"
|
|
60915
|
-
],
|
|
60968
|
+
], YS = [...kfe, "rfId"], xfe = (t) => ({
|
|
60916
60969
|
setNodes: t.setNodes,
|
|
60917
60970
|
setEdges: t.setEdges,
|
|
60918
60971
|
setMinZoom: t.setMinZoom,
|
|
@@ -60921,7 +60974,7 @@ const x0 = typeof window < "u" ? tn : se, yD = [0, 0], wfe = { x: 0, y: 0, zoom:
|
|
|
60921
60974
|
setNodeExtent: t.setNodeExtent,
|
|
60922
60975
|
reset: t.reset,
|
|
60923
60976
|
setDefaultNodesAndEdges: t.setDefaultNodesAndEdges
|
|
60924
|
-
}),
|
|
60977
|
+
}), XS = {
|
|
60925
60978
|
/*
|
|
60926
60979
|
* these are values that are also passed directly to other components
|
|
60927
60980
|
* than the StoreUpdater. We can reduce the number of setStore calls
|
|
@@ -60938,22 +60991,22 @@ const x0 = typeof window < "u" ? tn : se, yD = [0, 0], wfe = { x: 0, y: 0, zoom:
|
|
|
60938
60991
|
function _fe(t) {
|
|
60939
60992
|
const { setNodes: e, setEdges: n, setMinZoom: i, setMaxZoom: r, setTranslateExtent: o, setNodeExtent: s, reset: a, setDefaultNodesAndEdges: l } = et(xfe, St), c = Nt();
|
|
60940
60993
|
x0(() => (l(t.defaultNodes, t.defaultEdges), () => {
|
|
60941
|
-
d.current =
|
|
60994
|
+
d.current = XS, a();
|
|
60942
60995
|
}), []);
|
|
60943
|
-
const d = q(
|
|
60996
|
+
const d = q(XS);
|
|
60944
60997
|
return x0(
|
|
60945
60998
|
() => {
|
|
60946
|
-
for (const f of
|
|
60999
|
+
for (const f of YS) {
|
|
60947
61000
|
const u = t[f], h = d.current[f];
|
|
60948
61001
|
u !== h && (typeof t[f] > "u" || (f === "nodes" ? e(u) : f === "edges" ? n(u) : f === "minZoom" ? i(u) : f === "maxZoom" ? r(u) : f === "translateExtent" ? o(u) : f === "nodeExtent" ? s(u) : f === "ariaLabelConfig" ? c.setState({ ariaLabelConfig: sde(u) }) : f === "fitView" ? c.setState({ fitViewQueued: u }) : f === "fitViewOptions" ? c.setState({ fitViewOptions: u }) : c.setState({ [f]: u })));
|
|
60949
61002
|
}
|
|
60950
61003
|
d.current = t;
|
|
60951
61004
|
},
|
|
60952
61005
|
// Only re-run the effect if one of the fields we track changes
|
|
60953
|
-
|
|
61006
|
+
YS.map((f) => t[f])
|
|
60954
61007
|
), null;
|
|
60955
61008
|
}
|
|
60956
|
-
function
|
|
61009
|
+
function JS() {
|
|
60957
61010
|
return typeof window > "u" || !window.matchMedia ? null : window.matchMedia("(prefers-color-scheme: dark)");
|
|
60958
61011
|
}
|
|
60959
61012
|
function Sfe(t) {
|
|
@@ -60963,14 +61016,14 @@ function Sfe(t) {
|
|
|
60963
61016
|
n(t);
|
|
60964
61017
|
return;
|
|
60965
61018
|
}
|
|
60966
|
-
const i =
|
|
61019
|
+
const i = JS(), r = () => n(i?.matches ? "dark" : "light");
|
|
60967
61020
|
return r(), i?.addEventListener("change", r), () => {
|
|
60968
61021
|
i?.removeEventListener("change", r);
|
|
60969
61022
|
};
|
|
60970
|
-
}, [t]), e !== null ? e :
|
|
61023
|
+
}, [t]), e !== null ? e : JS()?.matches ? "dark" : "light";
|
|
60971
61024
|
}
|
|
60972
|
-
const
|
|
60973
|
-
function tf(t = null, e = { target:
|
|
61025
|
+
const ZS = typeof document < "u" ? document : null;
|
|
61026
|
+
function tf(t = null, e = { target: ZS, actInsideInputWithModifier: !0 }) {
|
|
60974
61027
|
const [n, i] = J(!1), r = q(!1), o = q(/* @__PURE__ */ new Set([])), [s, a] = ie(() => {
|
|
60975
61028
|
if (t !== null) {
|
|
60976
61029
|
const c = (Array.isArray(t) ? t : [t]).filter((f) => typeof f == "string").map((f) => f.replace("+", `
|
|
@@ -60984,19 +61037,19 @@ function tf(t = null, e = { target: XS, actInsideInputWithModifier: !0 }) {
|
|
|
60984
61037
|
return [[], []];
|
|
60985
61038
|
}, [t]);
|
|
60986
61039
|
return se(() => {
|
|
60987
|
-
const l = e?.target ??
|
|
61040
|
+
const l = e?.target ?? ZS, c = e?.actInsideInputWithModifier ?? !0;
|
|
60988
61041
|
if (t !== null) {
|
|
60989
61042
|
const d = (h) => {
|
|
60990
61043
|
if (r.current = h.ctrlKey || h.metaKey || h.shiftKey || h.altKey, (!r.current || r.current && !c) && ZM(h))
|
|
60991
61044
|
return !1;
|
|
60992
|
-
const g =
|
|
60993
|
-
if (o.current.add(h[g]),
|
|
61045
|
+
const g = eC(h.code, a);
|
|
61046
|
+
if (o.current.add(h[g]), QS(s, o.current, !1)) {
|
|
60994
61047
|
const y = h.composedPath?.()?.[0] || h.target, v = y?.nodeName === "BUTTON" || y?.nodeName === "A";
|
|
60995
61048
|
e.preventDefault !== !1 && (r.current || !v) && h.preventDefault(), i(!0);
|
|
60996
61049
|
}
|
|
60997
61050
|
}, f = (h) => {
|
|
60998
|
-
const p =
|
|
60999
|
-
|
|
61051
|
+
const p = eC(h.code, a);
|
|
61052
|
+
QS(s, o.current, !0) ? (i(!1), o.current.clear()) : o.current.delete(h[p]), h.key === "Meta" && o.current.clear(), r.current = !1;
|
|
61000
61053
|
}, u = () => {
|
|
61001
61054
|
o.current.clear(), i(!1);
|
|
61002
61055
|
};
|
|
@@ -61006,10 +61059,10 @@ function tf(t = null, e = { target: XS, actInsideInputWithModifier: !0 }) {
|
|
|
61006
61059
|
}
|
|
61007
61060
|
}, [t, i]), n;
|
|
61008
61061
|
}
|
|
61009
|
-
function
|
|
61062
|
+
function QS(t, e, n) {
|
|
61010
61063
|
return t.filter((i) => n || i.length === e.size).some((i) => i.every((r) => e.has(r)));
|
|
61011
61064
|
}
|
|
61012
|
-
function
|
|
61065
|
+
function eC(t, e) {
|
|
61013
61066
|
return e.includes(t) ? "code" : "key";
|
|
61014
61067
|
}
|
|
61015
61068
|
const Cfe = () => {
|
|
@@ -61143,7 +61196,7 @@ function Va(t, e = /* @__PURE__ */ new Set(), n = !1) {
|
|
|
61143
61196
|
}
|
|
61144
61197
|
return i;
|
|
61145
61198
|
}
|
|
61146
|
-
function
|
|
61199
|
+
function tC({ items: t = [], lookup: e }) {
|
|
61147
61200
|
const n = [], i = new Map(t.map((r) => [r.id, r]));
|
|
61148
61201
|
for (const [r, o] of t.entries()) {
|
|
61149
61202
|
const s = e.get(o.id), a = s?.internals?.userNode ?? s;
|
|
@@ -61153,17 +61206,17 @@ function QS({ items: t = [], lookup: e }) {
|
|
|
61153
61206
|
i.get(r) === void 0 && n.push({ id: r, type: "remove" });
|
|
61154
61207
|
return n;
|
|
61155
61208
|
}
|
|
61156
|
-
function
|
|
61209
|
+
function nC(t) {
|
|
61157
61210
|
return {
|
|
61158
61211
|
id: t.id,
|
|
61159
61212
|
type: "remove"
|
|
61160
61213
|
};
|
|
61161
61214
|
}
|
|
61162
|
-
const
|
|
61215
|
+
const iC = (t) => Jce(t), Nfe = (t) => VM(t);
|
|
61163
61216
|
function bD(t) {
|
|
61164
61217
|
return Ke(t);
|
|
61165
61218
|
}
|
|
61166
|
-
function
|
|
61219
|
+
function rC(t) {
|
|
61167
61220
|
const [e, n] = J(BigInt(0)), [i] = J(() => Ofe(() => n((r) => r + BigInt(1))));
|
|
61168
61221
|
return x0(() => {
|
|
61169
61222
|
const r = i.get();
|
|
@@ -61189,7 +61242,7 @@ function Mfe({ children: t }) {
|
|
|
61189
61242
|
let g = l;
|
|
61190
61243
|
for (const v of a)
|
|
61191
61244
|
g = typeof v == "function" ? v(g) : v;
|
|
61192
|
-
let y =
|
|
61245
|
+
let y = tC({
|
|
61193
61246
|
items: g,
|
|
61194
61247
|
lookup: u
|
|
61195
61248
|
});
|
|
@@ -61199,16 +61252,16 @@ function Mfe({ children: t }) {
|
|
|
61199
61252
|
const { fitViewQueued: v, nodes: w, setNodes: k } = e.getState();
|
|
61200
61253
|
v && k(w);
|
|
61201
61254
|
});
|
|
61202
|
-
}, []), i =
|
|
61255
|
+
}, []), i = rC(n), r = re((a) => {
|
|
61203
61256
|
const { edges: l = [], setEdges: c, hasDefaultEdges: d, onEdgesChange: f, edgeLookup: u } = e.getState();
|
|
61204
61257
|
let h = l;
|
|
61205
61258
|
for (const p of a)
|
|
61206
61259
|
h = typeof p == "function" ? p(h) : p;
|
|
61207
|
-
d ? c(h) : f && f(
|
|
61260
|
+
d ? c(h) : f && f(tC({
|
|
61208
61261
|
items: h,
|
|
61209
61262
|
lookup: u
|
|
61210
61263
|
}));
|
|
61211
|
-
}, []), o =
|
|
61264
|
+
}, []), o = rC(r), s = ie(() => ({ nodeQueue: i, edgeQueue: o }), []);
|
|
61212
61265
|
return m(wD.Provider, { value: s, children: t });
|
|
61213
61266
|
}
|
|
61214
61267
|
function Dfe() {
|
|
@@ -61225,7 +61278,7 @@ function ac() {
|
|
|
61225
61278
|
}, a = (f) => {
|
|
61226
61279
|
n.edgeQueue.push(f);
|
|
61227
61280
|
}, l = (f) => {
|
|
61228
|
-
const { nodeLookup: u, nodeOrigin: h } = e.getState(), p =
|
|
61281
|
+
const { nodeLookup: u, nodeOrigin: h } = e.getState(), p = iC(f) ? f : u.get(f.id), g = p.parentId ? XM(p.position, p.measured, p.parentId, u, h) : p.position, y = {
|
|
61229
61282
|
...p,
|
|
61230
61283
|
position: g,
|
|
61231
61284
|
width: p.measured?.width ?? p.width,
|
|
@@ -61236,7 +61289,7 @@ function ac() {
|
|
|
61236
61289
|
s((p) => p.map((g) => {
|
|
61237
61290
|
if (g.id === f) {
|
|
61238
61291
|
const y = typeof u == "function" ? u(g) : u;
|
|
61239
|
-
return h.replace &&
|
|
61292
|
+
return h.replace && iC(y) ? y : { ...g, ...y };
|
|
61240
61293
|
}
|
|
61241
61294
|
return g;
|
|
61242
61295
|
}));
|
|
@@ -61289,11 +61342,11 @@ function ac() {
|
|
|
61289
61342
|
onBeforeDelete: b
|
|
61290
61343
|
}), S = _.length > 0, C = x.length > 0;
|
|
61291
61344
|
if (S) {
|
|
61292
|
-
const E = _.map(
|
|
61345
|
+
const E = _.map(nC);
|
|
61293
61346
|
y?.(_), w(E);
|
|
61294
61347
|
}
|
|
61295
61348
|
if (C) {
|
|
61296
|
-
const E = x.map(
|
|
61349
|
+
const E = x.map(nC);
|
|
61297
61350
|
g?.(x), v(E);
|
|
61298
61351
|
}
|
|
61299
61352
|
return (C || S) && k?.({ nodes: x, edges: _ }), { deletedNodes: x, deletedEdges: _ };
|
|
@@ -61304,7 +61357,7 @@ function ac() {
|
|
|
61304
61357
|
* considered fully intersecting.
|
|
61305
61358
|
*/
|
|
61306
61359
|
getIntersectingNodes: (f, u = !0, h) => {
|
|
61307
|
-
const p =
|
|
61360
|
+
const p = OS(f), g = p ? f : l(f), y = h !== void 0;
|
|
61308
61361
|
return g ? (h || e.getState().nodes).filter((v) => {
|
|
61309
61362
|
const w = e.getState().nodeLookup.get(v.id);
|
|
61310
61363
|
if (w && !p && (v.id === f.id || !w.internals.positionAbsolute))
|
|
@@ -61314,7 +61367,7 @@ function ac() {
|
|
|
61314
61367
|
}) : [];
|
|
61315
61368
|
},
|
|
61316
61369
|
isNodeIntersecting: (f, u, h = !0) => {
|
|
61317
|
-
const g =
|
|
61370
|
+
const g = OS(f) ? f : l(f);
|
|
61318
61371
|
if (!g)
|
|
61319
61372
|
return !1;
|
|
61320
61373
|
const y = Qd(g, u);
|
|
@@ -61352,13 +61405,13 @@ function ac() {
|
|
|
61352
61405
|
viewportInitialized: i
|
|
61353
61406
|
}), [i]);
|
|
61354
61407
|
}
|
|
61355
|
-
const
|
|
61408
|
+
const oC = (t) => t.selected, Pfe = typeof window < "u" ? window : void 0;
|
|
61356
61409
|
function Rfe({ deleteKeyCode: t, multiSelectionKeyCode: e }) {
|
|
61357
61410
|
const n = Nt(), { deleteElements: i } = ac(), r = tf(t, { actInsideInputWithModifier: !1 }), o = tf(e, { target: Pfe });
|
|
61358
61411
|
se(() => {
|
|
61359
61412
|
if (r) {
|
|
61360
61413
|
const { edges: s, nodes: a } = n.getState();
|
|
61361
|
-
i({ nodes: a.filter(
|
|
61414
|
+
i({ nodes: a.filter(oC), edges: s.filter(oC) }), n.setState({ nodesSelectionActive: !1 });
|
|
61362
61415
|
}
|
|
61363
61416
|
}, [r]), se(() => {
|
|
61364
61417
|
n.setState({ multiSelectionActive: o });
|
|
@@ -61556,11 +61609,11 @@ function Hfe({ isSelecting: t, selectionKeyPressed: e, selectionMode: n = Zd.Ful
|
|
|
61556
61609
|
Y && (Y.selectable ?? me) && C.current.add(H);
|
|
61557
61610
|
}
|
|
61558
61611
|
}
|
|
61559
|
-
if (!
|
|
61612
|
+
if (!MS(ee, S.current)) {
|
|
61560
61613
|
const ge = Va(j, S.current, !0);
|
|
61561
61614
|
U(ge);
|
|
61562
61615
|
}
|
|
61563
|
-
if (!
|
|
61616
|
+
if (!MS(de, C.current)) {
|
|
61564
61617
|
const ge = Va($, C.current);
|
|
61565
61618
|
W(ge);
|
|
61566
61619
|
}
|
|
@@ -61779,7 +61832,7 @@ const Up = {
|
|
|
61779
61832
|
ArrowDown: { x: 0, y: 1 },
|
|
61780
61833
|
ArrowLeft: { x: -1, y: 0 },
|
|
61781
61834
|
ArrowRight: { x: 1, y: 0 }
|
|
61782
|
-
},
|
|
61835
|
+
}, sC = {
|
|
61783
61836
|
input: Gfe,
|
|
61784
61837
|
default: Yfe,
|
|
61785
61838
|
output: Jfe,
|
|
@@ -61834,9 +61887,9 @@ function eue({ onSelectionContextMenu: t, noPanClassName: e, disableKeyboardA11y
|
|
|
61834
61887
|
height: o
|
|
61835
61888
|
} }) });
|
|
61836
61889
|
}
|
|
61837
|
-
const
|
|
61890
|
+
const aC = typeof window < "u" ? window : void 0, tue = (t) => ({ nodesSelectionActive: t.nodesSelectionActive, userSelectionActive: t.userSelectionActive });
|
|
61838
61891
|
function _D({ children: t, onPaneClick: e, onPaneMouseEnter: n, onPaneMouseMove: i, onPaneMouseLeave: r, onPaneContextMenu: o, onPaneScroll: s, paneClickDistance: a, deleteKeyCode: l, selectionKeyCode: c, selectionOnDrag: d, selectionMode: f, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: p, panActivationKeyCode: g, zoomActivationKeyCode: y, elementsSelectable: v, zoomOnScroll: w, zoomOnPinch: k, panOnScroll: b, panOnScrollSpeed: x, panOnScrollMode: _, zoomOnDoubleClick: S, panOnDrag: C, defaultViewport: E, translateExtent: O, minZoom: M, maxZoom: I, preventScrolling: D, onSelectionContextMenu: A, noWheelClassName: T, noPanClassName: N, disableKeyboardA11y: P, onViewportChange: L, isControlledViewport: F }) {
|
|
61839
|
-
const { nodesSelectionActive: z, userSelectionActive: j } = et(tue, St), $ = tf(c, { target:
|
|
61892
|
+
const { nodesSelectionActive: z, userSelectionActive: j } = et(tue, St), $ = tf(c, { target: aC }), B = tf(g, { target: aC }), U = B || C, W = B || b, Q = d && U !== !0, X = $ || j || Q;
|
|
61840
61893
|
return Rfe({ deleteKeyCode: l, multiSelectionKeyCode: p }), m($fe, { onPaneContextMenu: o, elementsSelectable: v, zoomOnScroll: w, zoomOnPinch: k, panOnScroll: W, panOnScrollSpeed: x, panOnScrollMode: _, zoomOnDoubleClick: S, panOnDrag: !$ && U, defaultViewport: E, translateExtent: O, minZoom: M, maxZoom: I, zoomActivationKeyCode: y, preventScrolling: D, noWheelClassName: T, noPanClassName: N, onViewportChange: L, isControlledViewport: F, paneClickDistance: a, selectionOnDrag: Q, children: R(Hfe, { onSelectionStart: u, onSelectionEnd: h, onPaneClick: e, onPaneMouseEnter: n, onPaneMouseMove: i, onPaneMouseLeave: r, onPaneContextMenu: o, onPaneScroll: s, panOnDrag: U, isSelecting: !!X, selectionMode: f, selectionKeyPressed: $, paneClickDistance: a, selectionOnDrag: Q, children: [t, z && m(eue, { onSelectionContextMenu: A, noPanClassName: N, disableKeyboardA11y: P })] }) });
|
|
61841
61894
|
}
|
|
61842
61895
|
_D.displayName = "FlowRenderer";
|
|
@@ -61883,8 +61936,8 @@ function lue({ id: t, onClick: e, onMouseEnter: n, onMouseMove: i, onMouseLeave:
|
|
|
61883
61936
|
isParent: le
|
|
61884
61937
|
};
|
|
61885
61938
|
}, St);
|
|
61886
|
-
let _ = k.type || "default", S = y?.[_] ||
|
|
61887
|
-
S === void 0 && (w?.("003", pi.error003(_)), _ = "default", S = y?.default ||
|
|
61939
|
+
let _ = k.type || "default", S = y?.[_] || sC[_];
|
|
61940
|
+
S === void 0 && (w?.("003", pi.error003(_)), _ = "default", S = y?.default || sC.default);
|
|
61888
61941
|
const C = !!(k.draggable || a && typeof k.draggable > "u"), E = !!(k.selectable || l && typeof k.selectable > "u"), O = !!(k.connectable || c && typeof k.connectable > "u"), M = !!(k.focusable || d && typeof k.focusable > "u"), I = Nt(), D = YM(k), A = aue({ node: k, nodeType: _, hasDimensions: D, resizeObserver: f }), T = kD({
|
|
61889
61942
|
nodeRef: A,
|
|
61890
61943
|
disabled: k.hidden || !C,
|
|
@@ -62034,13 +62087,13 @@ const hue = ({ color: t = "none", strokeWidth: e = 1 }) => {
|
|
|
62034
62087
|
...t && { stroke: t, fill: t }
|
|
62035
62088
|
};
|
|
62036
62089
|
return m("polyline", { className: "arrowclosed", style: n, strokeLinecap: "round", strokeLinejoin: "round", points: "-5,-4 0,0 -5,4 -5,-4" });
|
|
62037
|
-
},
|
|
62090
|
+
}, lC = {
|
|
62038
62091
|
[jp.Arrow]: hue,
|
|
62039
62092
|
[jp.ArrowClosed]: pue
|
|
62040
62093
|
};
|
|
62041
62094
|
function mue(t) {
|
|
62042
62095
|
const e = Nt();
|
|
62043
|
-
return ie(() => Object.prototype.hasOwnProperty.call(
|
|
62096
|
+
return ie(() => Object.prototype.hasOwnProperty.call(lC, t) ? lC[t] : (e.getState().onError?.("009", pi.error009(t)), null), [t]);
|
|
62044
62097
|
}
|
|
62045
62098
|
const gue = ({ id: t, type: e, color: n, width: i = 12.5, height: r = 12.5, markerUnits: o = "strokeWidth", strokeWidth: s, orient: a = "auto-start-reverse" }) => {
|
|
62046
62099
|
const l = mue(e);
|
|
@@ -62075,17 +62128,17 @@ const vue = ft(ED);
|
|
|
62075
62128
|
function jf({ path: t, labelX: e, labelY: n, label: i, labelStyle: r, labelShowBg: o, labelBgStyle: s, labelBgPadding: a, labelBgBorderRadius: l, interactionWidth: c = 20, ...d }) {
|
|
62076
62129
|
return R(De, { children: [m("path", { ...d, d: t, fill: "none", className: Kt(["react-flow__edge-path", d.className]) }), c ? m("path", { d: t, fill: "none", strokeOpacity: 0, strokeWidth: c, className: "react-flow__edge-interaction" }) : null, i && ji(e) && ji(n) ? m(vue, { x: e, y: n, label: i, labelStyle: r, labelShowBg: o, labelBgStyle: s, labelBgPadding: a, labelBgBorderRadius: l }) : null] });
|
|
62077
62130
|
}
|
|
62078
|
-
function
|
|
62131
|
+
function cC({ pos: t, x1: e, y1: n, x2: i, y2: r }) {
|
|
62079
62132
|
return t === Te.Left || t === Te.Right ? [0.5 * (e + i), n] : [e, 0.5 * (n + r)];
|
|
62080
62133
|
}
|
|
62081
62134
|
function AD({ sourceX: t, sourceY: e, sourcePosition: n = Te.Bottom, targetX: i, targetY: r, targetPosition: o = Te.Top }) {
|
|
62082
|
-
const [s, a] =
|
|
62135
|
+
const [s, a] = cC({
|
|
62083
62136
|
pos: n,
|
|
62084
62137
|
x1: t,
|
|
62085
62138
|
y1: e,
|
|
62086
62139
|
x2: i,
|
|
62087
62140
|
y2: r
|
|
62088
|
-
}), [l, c] =
|
|
62141
|
+
}), [l, c] = cC({
|
|
62089
62142
|
pos: o,
|
|
62090
62143
|
x1: i,
|
|
62091
62144
|
y1: r,
|
|
@@ -62179,22 +62232,22 @@ function FD(t) {
|
|
|
62179
62232
|
const xue = FD({ isInternal: !1 }), $D = FD({ isInternal: !0 });
|
|
62180
62233
|
xue.displayName = "BezierEdge";
|
|
62181
62234
|
$D.displayName = "BezierEdgeInternal";
|
|
62182
|
-
const
|
|
62235
|
+
const dC = {
|
|
62183
62236
|
default: $D,
|
|
62184
62237
|
straight: LD,
|
|
62185
62238
|
step: PD,
|
|
62186
62239
|
smoothstep: DD,
|
|
62187
62240
|
simplebezier: ND
|
|
62188
|
-
},
|
|
62241
|
+
}, fC = {
|
|
62189
62242
|
sourceX: null,
|
|
62190
62243
|
sourceY: null,
|
|
62191
62244
|
targetX: null,
|
|
62192
62245
|
targetY: null,
|
|
62193
62246
|
sourcePosition: null,
|
|
62194
62247
|
targetPosition: null
|
|
62195
|
-
}, _ue = (t, e, n) => n === Te.Left ? t - e : n === Te.Right ? t + e : t, Sue = (t, e, n) => n === Te.Top ? t - e : n === Te.Bottom ? t + e : t,
|
|
62196
|
-
function
|
|
62197
|
-
return m("circle", { onMouseDown: r, onMouseEnter: o, onMouseOut: s, className: Kt([
|
|
62248
|
+
}, _ue = (t, e, n) => n === Te.Left ? t - e : n === Te.Right ? t + e : t, Sue = (t, e, n) => n === Te.Top ? t - e : n === Te.Bottom ? t + e : t, uC = "react-flow__edgeupdater";
|
|
62249
|
+
function hC({ position: t, centerX: e, centerY: n, radius: i = 10, onMouseDown: r, onMouseEnter: o, onMouseOut: s, type: a }) {
|
|
62250
|
+
return m("circle", { onMouseDown: r, onMouseEnter: o, onMouseOut: s, className: Kt([uC, `${uC}-${a}`]), cx: _ue(e, i, t), cy: Sue(n, i, t), r: i, stroke: "transparent", fill: "transparent" });
|
|
62198
62251
|
}
|
|
62199
62252
|
function Cue({ isReconnectable: t, reconnectRadius: e, edge: n, sourceX: i, sourceY: r, targetX: o, targetY: s, sourcePosition: a, targetPosition: l, onReconnect: c, onReconnectStart: d, onReconnectEnd: f, setReconnecting: u, setUpdateHover: h }) {
|
|
62200
62253
|
const p = Nt(), g = (b, x) => {
|
|
@@ -62231,20 +62284,20 @@ function Cue({ isReconnectable: t, reconnectRadius: e, edge: n, sourceX: i, sour
|
|
|
62231
62284
|
handleDomNode: b.currentTarget
|
|
62232
62285
|
});
|
|
62233
62286
|
}, y = (b) => g(b, { nodeId: n.target, id: n.targetHandle ?? null, type: "target" }), v = (b) => g(b, { nodeId: n.source, id: n.sourceHandle ?? null, type: "source" }), w = () => h(!0), k = () => h(!1);
|
|
62234
|
-
return R(De, { children: [(t === !0 || t === "source") && m(
|
|
62287
|
+
return R(De, { children: [(t === !0 || t === "source") && m(hC, { position: a, centerX: i, centerY: r, radius: e, onMouseDown: y, onMouseEnter: w, onMouseOut: k, type: "source" }), (t === !0 || t === "target") && m(hC, { position: l, centerX: o, centerY: s, radius: e, onMouseDown: v, onMouseEnter: w, onMouseOut: k, type: "target" })] });
|
|
62235
62288
|
}
|
|
62236
62289
|
function Eue({ id: t, edgesFocusable: e, edgesReconnectable: n, elementsSelectable: i, onClick: r, onDoubleClick: o, onContextMenu: s, onMouseEnter: a, onMouseMove: l, onMouseLeave: c, reconnectRadius: d, onReconnect: f, onReconnectStart: u, onReconnectEnd: h, rfId: p, edgeTypes: g, noPanClassName: y, onError: v, disableKeyboardA11y: w }) {
|
|
62237
62290
|
let k = et((ne) => ne.edgeLookup.get(t));
|
|
62238
62291
|
const b = et((ne) => ne.defaultEdgeOptions);
|
|
62239
62292
|
k = b ? { ...b, ...k } : k;
|
|
62240
|
-
let x = k.type || "default", _ = g?.[x] ||
|
|
62241
|
-
_ === void 0 && (v?.("011", pi.error011(x)), x = "default", _ = g?.default ||
|
|
62293
|
+
let x = k.type || "default", _ = g?.[x] || dC[x];
|
|
62294
|
+
_ === void 0 && (v?.("011", pi.error011(x)), x = "default", _ = g?.default || dC.default);
|
|
62242
62295
|
const S = !!(k.focusable || e && typeof k.focusable > "u"), C = typeof f < "u" && (k.reconnectable || n && typeof k.reconnectable > "u"), E = !!(k.selectable || i && typeof k.selectable > "u"), O = q(null), [M, I] = J(!1), [D, A] = J(!1), T = Nt(), { zIndex: N, sourceX: P, sourceY: L, targetX: F, targetY: z, sourcePosition: j, targetPosition: $ } = et(re((ne) => {
|
|
62243
62296
|
const ee = ne.nodeLookup.get(k.source), de = ne.nodeLookup.get(k.target);
|
|
62244
62297
|
if (!ee || !de)
|
|
62245
62298
|
return {
|
|
62246
62299
|
zIndex: k.zIndex,
|
|
62247
|
-
...
|
|
62300
|
+
...fC
|
|
62248
62301
|
};
|
|
62249
62302
|
const me = gde({
|
|
62250
62303
|
id: t,
|
|
@@ -62264,7 +62317,7 @@ function Eue({ id: t, edgesFocusable: e, edgesReconnectable: n, elementsSelectab
|
|
|
62264
62317
|
elevateOnSelect: ne.elevateEdgesOnSelect,
|
|
62265
62318
|
zIndexMode: ne.zIndexMode
|
|
62266
62319
|
}),
|
|
62267
|
-
...me ||
|
|
62320
|
+
...me || fC
|
|
62268
62321
|
};
|
|
62269
62322
|
}, [k.source, k.target, k.sourceHandle, k.targetHandle, k.selected, k.zIndex]), St), B = ie(() => k.markerStart ? `url('#${b0(k.markerStart, p)}')` : void 0, [k.markerStart, p]), U = ie(() => k.markerEnd ? `url('#${b0(k.markerEnd, p)}')` : void 0, [k.markerEnd, p]);
|
|
62270
62323
|
if (k.hidden || P === null || L === null || F === null || z === null)
|
|
@@ -62392,7 +62445,7 @@ const BD = ({ style: t, type: e = Io.Bezier, CustomComponent: n, isValid: i }) =
|
|
|
62392
62445
|
};
|
|
62393
62446
|
BD.displayName = "ConnectionLine";
|
|
62394
62447
|
const Bue = {};
|
|
62395
|
-
function
|
|
62448
|
+
function pC(t = Bue) {
|
|
62396
62449
|
const e = q(t), n = Nt();
|
|
62397
62450
|
se(() => {
|
|
62398
62451
|
if (process.env.NODE_ENV === "development") {
|
|
@@ -62416,10 +62469,10 @@ function jue() {
|
|
|
62416
62469
|
}, []);
|
|
62417
62470
|
}
|
|
62418
62471
|
function jD({ nodeTypes: t, edgeTypes: e, onInit: n, onNodeClick: i, onEdgeClick: r, onNodeDoubleClick: o, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: p, connectionLineStyle: g, connectionLineComponent: y, connectionLineContainerStyle: v, selectionKeyCode: w, selectionOnDrag: k, selectionMode: b, multiSelectionKeyCode: x, panActivationKeyCode: _, zoomActivationKeyCode: S, deleteKeyCode: C, onlyRenderVisibleElements: E, elementsSelectable: O, defaultViewport: M, translateExtent: I, minZoom: D, maxZoom: A, preventScrolling: T, defaultMarkerColor: N, zoomOnScroll: P, zoomOnPinch: L, panOnScroll: F, panOnScrollSpeed: z, panOnScrollMode: j, zoomOnDoubleClick: $, panOnDrag: B, onPaneClick: U, onPaneMouseEnter: W, onPaneMouseMove: Q, onPaneMouseLeave: X, onPaneScroll: V, onPaneContextMenu: te, paneClickDistance: le, nodeClickDistance: ue, onEdgeContextMenu: ne, onEdgeMouseEnter: ee, onEdgeMouseMove: de, onEdgeMouseLeave: me, reconnectRadius: ge, onReconnect: Ce, onReconnectStart: H, onReconnectEnd: Y, noDragClassName: Z, noWheelClassName: ae, noPanClassName: ce, disableKeyboardA11y: fe, nodeExtent: we, rfId: Ee, viewport: Ve, onViewportChange: We }) {
|
|
62419
|
-
return
|
|
62472
|
+
return pC(t), pC(e), jue(), Due(n), Pue(Ve), m(nue, { onPaneClick: U, onPaneMouseEnter: W, onPaneMouseMove: Q, onPaneMouseLeave: X, onPaneContextMenu: te, onPaneScroll: V, paneClickDistance: le, deleteKeyCode: C, selectionKeyCode: w, selectionOnDrag: k, selectionMode: b, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: x, panActivationKeyCode: _, zoomActivationKeyCode: S, elementsSelectable: O, zoomOnScroll: P, zoomOnPinch: L, zoomOnDoubleClick: $, panOnScroll: F, panOnScrollSpeed: z, panOnScrollMode: j, panOnDrag: B, defaultViewport: M, translateExtent: I, minZoom: D, maxZoom: A, onSelectionContextMenu: f, preventScrolling: T, noDragClassName: Z, noWheelClassName: ae, noPanClassName: ce, disableKeyboardA11y: fe, onViewportChange: We, isControlledViewport: !!Ve, children: R(Mue, { children: [m(Nue, { edgeTypes: e, onEdgeClick: r, onEdgeDoubleClick: s, onReconnect: Ce, onReconnectStart: H, onReconnectEnd: Y, onlyRenderVisibleElements: E, onEdgeContextMenu: ne, onEdgeMouseEnter: ee, onEdgeMouseMove: de, onEdgeMouseLeave: me, reconnectRadius: ge, defaultMarkerColor: N, noPanClassName: ce, disableKeyboardA11y: fe, rfId: Ee }), m(zue, { style: g, type: p, component: y, containerStyle: v }), m("div", { className: "react-flow__edgelabel-renderer" }), m(fue, { nodeTypes: t, onNodeClick: i, onNodeDoubleClick: o, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, nodeClickDistance: ue, onlyRenderVisibleElements: E, noPanClassName: ce, noDragClassName: Z, disableKeyboardA11y: fe, nodeExtent: we, rfId: Ee }), m("div", { className: "react-flow__viewport-portal" })] }) });
|
|
62420
62473
|
}
|
|
62421
62474
|
jD.displayName = "GraphView";
|
|
62422
|
-
const Hue = ft(jD),
|
|
62475
|
+
const Hue = ft(jD), mC = ({ nodes: t, edges: e, defaultNodes: n, defaultEdges: i, width: r, height: o, fitView: s, fitViewOptions: a, minZoom: l = 0.5, maxZoom: c = 2, nodeOrigin: d, nodeExtent: f, zIndexMode: u = "basic" } = {}) => {
|
|
62423
62476
|
const h = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), v = i ?? e ?? [], w = n ?? t ?? [], k = d ?? [0, 0], b = f ?? Jd;
|
|
62424
62477
|
rD(g, y, v);
|
|
62425
62478
|
const { nodesInitialized: x } = w0(w, h, p, {
|
|
@@ -62512,7 +62565,7 @@ const Hue = ft(jD), hC = ({ nodes: t, edges: e, defaultNodes: n, defaultEdges: i
|
|
|
62512
62565
|
}, w), k?.resolve(!0), h({ fitViewResolver: null }));
|
|
62513
62566
|
}
|
|
62514
62567
|
return {
|
|
62515
|
-
...
|
|
62568
|
+
...mC({
|
|
62516
62569
|
nodes: t,
|
|
62517
62570
|
edges: e,
|
|
62518
62571
|
width: r,
|
|
@@ -62704,7 +62757,7 @@ const Hue = ft(jD), hC = ({ nodes: t, edges: e, defaultNodes: n, defaultEdges: i
|
|
|
62704
62757
|
updateConnection: (y) => {
|
|
62705
62758
|
h({ connection: y });
|
|
62706
62759
|
},
|
|
62707
|
-
reset: () => h({ ...
|
|
62760
|
+
reset: () => h({ ...mC() })
|
|
62708
62761
|
};
|
|
62709
62762
|
}, Object.is);
|
|
62710
62763
|
function HD({ initialNodes: t, initialEdges: e, defaultNodes: n, defaultEdges: i, initialWidth: r, initialHeight: o, initialMinZoom: s, initialMaxZoom: a, initialFitViewOptions: l, fitView: c, nodeOrigin: d, nodeExtent: f, zIndexMode: u, children: h }) {
|
|
@@ -64542,7 +64595,7 @@ const ppe = {
|
|
|
64542
64595
|
highlighted: "var(--f0-graph-edge-highlighted)",
|
|
64543
64596
|
// f1-border-selected-bold (viridian secondary)
|
|
64544
64597
|
dimmed: "var(--f0-graph-edge-default)"
|
|
64545
|
-
},
|
|
64598
|
+
}, gC = "f0-edge-dot", Rr = 5, yC = {
|
|
64546
64599
|
smoothstep: Wp,
|
|
64547
64600
|
straight: ag,
|
|
64548
64601
|
bezier: Sk
|
|
@@ -64555,7 +64608,7 @@ function pg({
|
|
|
64555
64608
|
type: i,
|
|
64556
64609
|
...r
|
|
64557
64610
|
}) {
|
|
64558
|
-
const o = r.data?.variant, s = t ?? o ?? "default", a = ug(), c = (a ? a.zoomLevel === "detail" ? 1 : a.zoomLevel === "compact" ? 2 : 4 : void 0) ?? r.style?.strokeWidth ?? e, d = r.data?.showDot !== !1, f = n ?? r.data?.pathType ?? "smoothstep", u = r.sourcePosition === "bottom" || r.sourcePosition === "top", g = Math.abs(u ? r.sourceX - r.targetX : r.sourceY - r.targetY) < 2 ? ag :
|
|
64611
|
+
const o = r.data?.variant, s = t ?? o ?? "default", a = ug(), c = (a ? a.zoomLevel === "detail" ? 1 : a.zoomLevel === "compact" ? 2 : 4 : void 0) ?? r.style?.strokeWidth ?? e, d = r.data?.showDot !== !1, f = n ?? r.data?.pathType ?? "smoothstep", u = r.sourcePosition === "bottom" || r.sourcePosition === "top", g = Math.abs(u ? r.sourceX - r.targetX : r.sourceY - r.targetY) < 2 ? ag : yC[f] ?? yC.smoothstep, [y] = g({
|
|
64559
64612
|
sourceX: r.sourceX,
|
|
64560
64613
|
sourceY: r.sourceY,
|
|
64561
64614
|
targetX: r.targetX,
|
|
@@ -64568,7 +64621,7 @@ function pg({
|
|
|
64568
64621
|
d && /* @__PURE__ */ m("defs", { children: /* @__PURE__ */ m(
|
|
64569
64622
|
"marker",
|
|
64570
64623
|
{
|
|
64571
|
-
id: `${
|
|
64624
|
+
id: `${gC}-${r.id}`,
|
|
64572
64625
|
viewBox: `0 0 ${Rr * 2} ${Rr * 2}`,
|
|
64573
64626
|
refX: Rr,
|
|
64574
64627
|
refY: Rr,
|
|
@@ -64590,7 +64643,7 @@ function pg({
|
|
|
64590
64643
|
{
|
|
64591
64644
|
id: r.id,
|
|
64592
64645
|
path: y,
|
|
64593
|
-
markerEnd: d ? `url(#${
|
|
64646
|
+
markerEnd: d ? `url(#${gC}-${r.id})` : void 0,
|
|
64594
64647
|
style: {
|
|
64595
64648
|
stroke: v,
|
|
64596
64649
|
strokeWidth: c,
|
|
@@ -64968,14 +65021,14 @@ function t8(t) {
|
|
|
64968
65021
|
return /* @__PURE__ */ m(HD, { children: /* @__PURE__ */ m(wpe, { ...t }) });
|
|
64969
65022
|
}
|
|
64970
65023
|
t8.displayName = "F0Graph";
|
|
64971
|
-
const cy = 256,
|
|
65024
|
+
const cy = 256, vC = 40, bC = 8, wC = () => /* @__PURE__ */ R("div", { className: "flex h-[52px] w-64 items-center gap-3 rounded-xl border border-solid border-f1-border-secondary bg-f1-background px-3", children: [
|
|
64972
65025
|
/* @__PURE__ */ m(Ae, { className: "h-8 w-8 shrink-0 rounded-full" }),
|
|
64973
65026
|
/* @__PURE__ */ R("div", { className: "flex flex-1 flex-col gap-1.5", children: [
|
|
64974
65027
|
/* @__PURE__ */ m(Ae, { className: "h-3 w-28 rounded" }),
|
|
64975
65028
|
/* @__PURE__ */ m(Ae, { className: "h-2.5 w-20 rounded" })
|
|
64976
65029
|
] })
|
|
64977
|
-
] }),
|
|
64978
|
-
const e = t * cy + (t - 1) *
|
|
65030
|
+
] }), kC = () => /* @__PURE__ */ m(Ae, { className: "h-5 w-20 rounded-full" }), kpe = () => /* @__PURE__ */ m(Ae, { className: "h-7 w-10 rounded-lg" }), xpe = ({ childrenCount: t }) => {
|
|
65031
|
+
const e = t * cy + (t - 1) * vC, n = e / 2;
|
|
64979
65032
|
if (t === 1)
|
|
64980
65033
|
return /* @__PURE__ */ m(
|
|
64981
65034
|
"svg",
|
|
@@ -64995,7 +65048,7 @@ const cy = 256, gC = 40, yC = 8, vC = () => /* @__PURE__ */ R("div", { className
|
|
|
64995
65048
|
)
|
|
64996
65049
|
}
|
|
64997
65050
|
);
|
|
64998
|
-
const i = (l) => l * (cy +
|
|
65051
|
+
const i = (l) => l * (cy + vC) + cy / 2, r = i(0), o = i(t - 1), s = `M${r} 40 V28 Q${r} 20 ${r + bC} 20 H${o - bC} Q${o} 20 ${o} 28 V40`, a = Array.from(
|
|
64999
65052
|
{ length: t - 2 },
|
|
65000
65053
|
(l, c) => i(c + 1)
|
|
65001
65054
|
);
|
|
@@ -65044,14 +65097,14 @@ const cy = 256, gC = 40, yC = 8, vC = () => /* @__PURE__ */ R("div", { className
|
|
|
65044
65097
|
),
|
|
65045
65098
|
children: [
|
|
65046
65099
|
/* @__PURE__ */ R("div", { className: "flex flex-col items-center gap-2", children: [
|
|
65047
|
-
/* @__PURE__ */ m(
|
|
65048
|
-
e && /* @__PURE__ */ m(
|
|
65100
|
+
/* @__PURE__ */ m(wC, {}),
|
|
65101
|
+
e && /* @__PURE__ */ m(kC, {})
|
|
65049
65102
|
] }),
|
|
65050
65103
|
t > 0 && /* @__PURE__ */ R(De, { children: [
|
|
65051
65104
|
/* @__PURE__ */ m(xpe, { childrenCount: t }),
|
|
65052
65105
|
/* @__PURE__ */ m("div", { className: "flex items-start gap-10", children: Array.from({ length: t }).map((i, r) => /* @__PURE__ */ R("div", { className: "flex flex-col items-center gap-2", children: [
|
|
65053
|
-
/* @__PURE__ */ m(
|
|
65054
|
-
e && /* @__PURE__ */ m(
|
|
65106
|
+
/* @__PURE__ */ m(wC, {}),
|
|
65107
|
+
e && /* @__PURE__ */ m(kC, {}),
|
|
65055
65108
|
/* @__PURE__ */ m(kpe, {})
|
|
65056
65109
|
] }, r)) })
|
|
65057
65110
|
] })
|
|
@@ -65774,61 +65827,9 @@ const Rpe = ({
|
|
|
65774
65827
|
pinnedTagTypes: t.pinnedTagTypes
|
|
65775
65828
|
}
|
|
65776
65829
|
);
|
|
65777
|
-
var wC = Object.prototype.hasOwnProperty;
|
|
65778
|
-
function kC(t, e, n) {
|
|
65779
|
-
for (n of t.keys())
|
|
65780
|
-
if (fd(n, e)) return n;
|
|
65781
|
-
}
|
|
65782
|
-
function fd(t, e) {
|
|
65783
|
-
var n, i, r;
|
|
65784
|
-
if (t === e) return !0;
|
|
65785
|
-
if (t && e && (n = t.constructor) === e.constructor) {
|
|
65786
|
-
if (n === Date) return t.getTime() === e.getTime();
|
|
65787
|
-
if (n === RegExp) return t.toString() === e.toString();
|
|
65788
|
-
if (n === Array) {
|
|
65789
|
-
if ((i = t.length) === e.length)
|
|
65790
|
-
for (; i-- && fd(t[i], e[i]); ) ;
|
|
65791
|
-
return i === -1;
|
|
65792
|
-
}
|
|
65793
|
-
if (n === Set) {
|
|
65794
|
-
if (t.size !== e.size)
|
|
65795
|
-
return !1;
|
|
65796
|
-
for (i of t)
|
|
65797
|
-
if (r = i, r && typeof r == "object" && (r = kC(e, r), !r) || !e.has(r)) return !1;
|
|
65798
|
-
return !0;
|
|
65799
|
-
}
|
|
65800
|
-
if (n === Map) {
|
|
65801
|
-
if (t.size !== e.size)
|
|
65802
|
-
return !1;
|
|
65803
|
-
for (i of t)
|
|
65804
|
-
if (r = i[0], r && typeof r == "object" && (r = kC(e, r), !r) || !fd(i[1], e.get(r)))
|
|
65805
|
-
return !1;
|
|
65806
|
-
return !0;
|
|
65807
|
-
}
|
|
65808
|
-
if (n === ArrayBuffer)
|
|
65809
|
-
t = new Uint8Array(t), e = new Uint8Array(e);
|
|
65810
|
-
else if (n === DataView) {
|
|
65811
|
-
if ((i = t.byteLength) === e.byteLength)
|
|
65812
|
-
for (; i-- && t.getInt8(i) === e.getInt8(i); ) ;
|
|
65813
|
-
return i === -1;
|
|
65814
|
-
}
|
|
65815
|
-
if (ArrayBuffer.isView(t)) {
|
|
65816
|
-
if ((i = t.byteLength) === e.byteLength)
|
|
65817
|
-
for (; i-- && t[i] === e[i]; ) ;
|
|
65818
|
-
return i === -1;
|
|
65819
|
-
}
|
|
65820
|
-
if (!n || typeof t == "object") {
|
|
65821
|
-
i = 0;
|
|
65822
|
-
for (n in t)
|
|
65823
|
-
if (wC.call(t, n) && ++i && !wC.call(e, n) || !(n in e) || !fd(t[n], e[n])) return !1;
|
|
65824
|
-
return Object.keys(e).length === i;
|
|
65825
|
-
}
|
|
65826
|
-
}
|
|
65827
|
-
return t !== t && e !== e;
|
|
65828
|
-
}
|
|
65829
65830
|
function $pe(t) {
|
|
65830
65831
|
var e = Fe.useRef(t), n = Fe.useRef(0);
|
|
65831
|
-
return
|
|
65832
|
+
return cd(t, e.current) || (e.current = t, n.current += 1), Fe.useMemo(function() {
|
|
65832
65833
|
return e.current;
|
|
65833
65834
|
}, [n.current]);
|
|
65834
65835
|
}
|
|
@@ -67478,7 +67479,7 @@ const ume = (t) => t.map(
|
|
|
67478
67479
|
}
|
|
67479
67480
|
),
|
|
67480
67481
|
settings: {
|
|
67481
|
-
renderer: (t) =>
|
|
67482
|
+
renderer: (t) => yS({ ...t, visualizationKey: "table" }),
|
|
67482
67483
|
resetHandler: (t) => t.setVisualizationSettings("table", {}),
|
|
67483
67484
|
default: {}
|
|
67484
67485
|
}
|
|
@@ -67493,7 +67494,7 @@ const ume = (t) => t.map(
|
|
|
67493
67494
|
}
|
|
67494
67495
|
),
|
|
67495
67496
|
settings: {
|
|
67496
|
-
renderer: (t) =>
|
|
67497
|
+
renderer: (t) => yS({ ...t, visualizationKey: "editableTable" }),
|
|
67497
67498
|
resetHandler: (t) => t.setVisualizationSettings("editableTable", {}),
|
|
67498
67499
|
default: {}
|
|
67499
67500
|
}
|
|
@@ -69161,14 +69162,14 @@ const sge = () => {
|
|
|
69161
69162
|
children: [
|
|
69162
69163
|
b8 && /* @__PURE__ */ R("div", { className: "border-f1-border-primary px-page flex gap-4", children: [
|
|
69163
69164
|
xa === "top" && /* @__PURE__ */ m(
|
|
69164
|
-
|
|
69165
|
+
aS,
|
|
69165
69166
|
{
|
|
69166
69167
|
isReady: !Wk,
|
|
69167
69168
|
totalItemSummaryResult: fc
|
|
69168
69169
|
}
|
|
69169
69170
|
),
|
|
69170
69171
|
/* @__PURE__ */ m("div", { className: "flex flex-1 flex-shrink justify-end", children: _a === "top" && /* @__PURE__ */ m(
|
|
69171
|
-
|
|
69172
|
+
rS,
|
|
69172
69173
|
{
|
|
69173
69174
|
navigationFilters: x,
|
|
69174
69175
|
currentNavigationFilters: b,
|
|
@@ -69187,7 +69188,7 @@ const sge = () => {
|
|
|
69187
69188
|
),
|
|
69188
69189
|
children: [
|
|
69189
69190
|
xa === "bottom" && /* @__PURE__ */ m("div", { ref: ha, className: "flex items-center", children: /* @__PURE__ */ m(
|
|
69190
|
-
|
|
69191
|
+
aS,
|
|
69191
69192
|
{
|
|
69192
69193
|
isReady: !Wk,
|
|
69193
69194
|
totalItemSummaryResult: fc
|
|
@@ -69268,7 +69269,7 @@ const sge = () => {
|
|
|
69268
69269
|
)
|
|
69269
69270
|
] }),
|
|
69270
69271
|
_a === "bottom" && /* @__PURE__ */ m(
|
|
69271
|
-
|
|
69272
|
+
rS,
|
|
69272
69273
|
{
|
|
69273
69274
|
navigationFilters: x,
|
|
69274
69275
|
currentNavigationFilters: b,
|
|
@@ -69438,29 +69439,30 @@ export {
|
|
|
69438
69439
|
Aoe as a7,
|
|
69439
69440
|
Xge as a8,
|
|
69440
69441
|
SO as a9,
|
|
69441
|
-
|
|
69442
|
-
|
|
69443
|
-
|
|
69444
|
-
|
|
69445
|
-
|
|
69446
|
-
|
|
69447
|
-
|
|
69448
|
-
|
|
69449
|
-
|
|
69450
|
-
|
|
69451
|
-
|
|
69452
|
-
|
|
69453
|
-
|
|
69454
|
-
|
|
69455
|
-
|
|
69456
|
-
|
|
69457
|
-
|
|
69458
|
-
|
|
69459
|
-
|
|
69460
|
-
|
|
69461
|
-
|
|
69462
|
-
|
|
69463
|
-
|
|
69442
|
+
bge as aA,
|
|
69443
|
+
hm as aB,
|
|
69444
|
+
mb as aC,
|
|
69445
|
+
xz as aD,
|
|
69446
|
+
nte as aE,
|
|
69447
|
+
pN as aF,
|
|
69448
|
+
qge as aG,
|
|
69449
|
+
Vs as aH,
|
|
69450
|
+
qB as aI,
|
|
69451
|
+
oz as aJ,
|
|
69452
|
+
az as aK,
|
|
69453
|
+
lE as aL,
|
|
69454
|
+
dE as aM,
|
|
69455
|
+
Cb as aN,
|
|
69456
|
+
fE as aO,
|
|
69457
|
+
PB as aP,
|
|
69458
|
+
o8 as aQ,
|
|
69459
|
+
Mn as aR,
|
|
69460
|
+
Hk as aS,
|
|
69461
|
+
Lme as aT,
|
|
69462
|
+
Zge as aU,
|
|
69463
|
+
Bme as aV,
|
|
69464
|
+
jme as aW,
|
|
69465
|
+
Qge as aX,
|
|
69464
69466
|
Jre as aa,
|
|
69465
69467
|
Gge as ab,
|
|
69466
69468
|
Yge as ac,
|
|
@@ -69476,17 +69478,17 @@ export {
|
|
|
69476
69478
|
Qee as am,
|
|
69477
69479
|
Vee as an,
|
|
69478
69480
|
Sy as ao,
|
|
69479
|
-
|
|
69480
|
-
|
|
69481
|
-
|
|
69482
|
-
|
|
69483
|
-
|
|
69484
|
-
|
|
69485
|
-
|
|
69486
|
-
|
|
69487
|
-
|
|
69488
|
-
|
|
69489
|
-
|
|
69481
|
+
cd as ap,
|
|
69482
|
+
Tb as aq,
|
|
69483
|
+
fY as ar,
|
|
69484
|
+
_G as as,
|
|
69485
|
+
ate as at,
|
|
69486
|
+
bE as au,
|
|
69487
|
+
cte as av,
|
|
69488
|
+
nf as aw,
|
|
69489
|
+
TO as ax,
|
|
69490
|
+
rS as ay,
|
|
69491
|
+
ub as az,
|
|
69490
69492
|
a4 as b,
|
|
69491
69493
|
NR as c,
|
|
69492
69494
|
t1e as d,
|