@linkurious/ogma-linkurious-parser 4.2.2 → 4.2.4

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/index.mjs CHANGED
@@ -1,119 +1,119 @@
1
- import { CurrencyFormat as B, PropertyTypeName as yr, AutoRangeScale as Vt, OgmaEdgeShape as vr, SelectorType as S, ForceLayoutMode as _r, EntityType as P, NodeGroupingType as Y } from "@linkurious/rest-client";
2
- import mr from "@linkurious/ogma";
3
- import { BehaviorSubject as Cr } from "rxjs";
1
+ import { CurrencyFormat as M, PropertyTypeName as br, AutoRangeScale as Ut, OgmaEdgeShape as yr, SelectorType as S, ForceLayoutMode as vr, EntityType as I, NodeGroupingType as q } from "@linkurious/rest-client";
2
+ import _r from "@linkurious/ogma";
3
+ import { BehaviorSubject as mr } from "rxjs";
4
4
  var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
- function Me(r) {
5
+ function Pe(r) {
6
6
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
7
7
  }
8
- function Sr() {
8
+ function Cr() {
9
9
  this.__data__ = [], this.size = 0;
10
10
  }
11
- var Ar = Sr;
12
- function xr(r, e) {
11
+ var Sr = Cr;
12
+ function Ar(r, e) {
13
13
  return r === e || r !== r && e !== e;
14
14
  }
15
- var Re = xr, Er = Re;
16
- function Fr(r, e) {
15
+ var Re = Ar, xr = Re;
16
+ function Er(r, e) {
17
17
  for (var t = r.length; t--; )
18
- if (Er(r[t][0], e))
18
+ if (xr(r[t][0], e))
19
19
  return t;
20
20
  return -1;
21
21
  }
22
- var ce = Fr, $r = ce, Tr = Array.prototype, Nr = Tr.splice;
23
- function Dr(r) {
24
- var e = this.__data__, t = $r(e, r);
22
+ var de = Er, Fr = de, $r = Array.prototype, Tr = $r.splice;
23
+ function Nr(r) {
24
+ var e = this.__data__, t = Fr(e, r);
25
25
  if (t < 0)
26
26
  return !1;
27
27
  var i = e.length - 1;
28
- return t == i ? e.pop() : Nr.call(e, t, 1), --this.size, !0;
28
+ return t == i ? e.pop() : Tr.call(e, t, 1), --this.size, !0;
29
29
  }
30
- var wr = Dr, Or = ce;
31
- function Lr(r) {
32
- var e = this.__data__, t = Or(e, r);
30
+ var Dr = Nr, wr = de;
31
+ function Or(r) {
32
+ var e = this.__data__, t = wr(e, r);
33
33
  return t < 0 ? void 0 : e[t][1];
34
34
  }
35
- var Ir = Lr, Pr = ce;
36
- function Mr(r) {
37
- return Pr(this.__data__, r) > -1;
35
+ var Lr = Or, Ir = de;
36
+ function Pr(r) {
37
+ return Ir(this.__data__, r) > -1;
38
38
  }
39
- var Rr = Mr, Gr = ce;
40
- function Br(r, e) {
41
- var t = this.__data__, i = Gr(t, r);
39
+ var Rr = Pr, Mr = de;
40
+ function Gr(r, e) {
41
+ var t = this.__data__, i = Mr(t, r);
42
42
  return i < 0 ? (++this.size, t.push([r, e])) : t[i][1] = e, this;
43
43
  }
44
- var zr = Br, jr = Ar, Ur = wr, Vr = Ir, kr = Rr, Hr = zr;
45
- function V(r) {
44
+ var Br = Gr, zr = Sr, jr = Dr, Ur = Lr, Vr = Rr, kr = Br;
45
+ function U(r) {
46
46
  var e = -1, t = r == null ? 0 : r.length;
47
47
  for (this.clear(); ++e < t; ) {
48
48
  var i = r[e];
49
49
  this.set(i[0], i[1]);
50
50
  }
51
51
  }
52
- V.prototype.clear = jr;
53
- V.prototype.delete = Ur;
54
- V.prototype.get = Vr;
55
- V.prototype.has = kr;
56
- V.prototype.set = Hr;
57
- var de = V, Kr = de;
58
- function qr() {
59
- this.__data__ = new Kr(), this.size = 0;
52
+ U.prototype.clear = zr;
53
+ U.prototype.delete = jr;
54
+ U.prototype.get = Ur;
55
+ U.prototype.has = Vr;
56
+ U.prototype.set = kr;
57
+ var ce = U, Hr = ce;
58
+ function Kr() {
59
+ this.__data__ = new Hr(), this.size = 0;
60
60
  }
61
- var Yr = qr;
62
- function Wr(r) {
61
+ var qr = Kr;
62
+ function Yr(r) {
63
63
  var e = this.__data__, t = e.delete(r);
64
64
  return this.size = e.size, t;
65
65
  }
66
- var Jr = Wr;
67
- function Zr(r) {
66
+ var Wr = Yr;
67
+ function Jr(r) {
68
68
  return this.__data__.get(r);
69
69
  }
70
- var Xr = Zr;
71
- function Qr(r) {
70
+ var Zr = Jr;
71
+ function Xr(r) {
72
72
  return this.__data__.has(r);
73
73
  }
74
- var ei = Qr, ti = typeof te == "object" && te && te.Object === Object && te, kt = ti, ri = kt, ii = typeof self == "object" && self && self.Object === Object && self, ni = ri || ii || Function("return this")(), D = ni, si = D, ai = si.Symbol, X = ai, Ze = X, Ht = Object.prototype, oi = Ht.hasOwnProperty, ui = Ht.toString, W = Ze ? Ze.toStringTag : void 0;
75
- function li(r) {
76
- var e = oi.call(r, W), t = r[W];
74
+ var Qr = Xr, ei = typeof te == "object" && te && te.Object === Object && te, Vt = ei, ti = Vt, ri = typeof self == "object" && self && self.Object === Object && self, ii = ti || ri || Function("return this")(), D = ii, ni = D, si = ni.Symbol, Z = si, Je = Z, kt = Object.prototype, ai = kt.hasOwnProperty, oi = kt.toString, Y = Je ? Je.toStringTag : void 0;
75
+ function ui(r) {
76
+ var e = ai.call(r, Y), t = r[Y];
77
77
  try {
78
- r[W] = void 0;
78
+ r[Y] = void 0;
79
79
  var i = !0;
80
80
  } catch {
81
81
  }
82
- var n = ui.call(r);
83
- return i && (e ? r[W] = t : delete r[W]), n;
82
+ var n = oi.call(r);
83
+ return i && (e ? r[Y] = t : delete r[Y]), n;
84
84
  }
85
- var ci = li, di = Object.prototype, gi = di.toString;
86
- function hi(r) {
87
- return gi.call(r);
85
+ var li = ui, di = Object.prototype, ci = di.toString;
86
+ function gi(r) {
87
+ return ci.call(r);
88
88
  }
89
- var fi = hi, Xe = X, pi = ci, bi = fi, yi = "[object Null]", vi = "[object Undefined]", Qe = Xe ? Xe.toStringTag : void 0;
90
- function _i(r) {
91
- return r == null ? r === void 0 ? vi : yi : Qe && Qe in Object(r) ? pi(r) : bi(r);
89
+ var hi = gi, Ze = Z, fi = li, pi = hi, bi = "[object Null]", yi = "[object Undefined]", Xe = Ze ? Ze.toStringTag : void 0;
90
+ function vi(r) {
91
+ return r == null ? r === void 0 ? yi : bi : Xe && Xe in Object(r) ? fi(r) : pi(r);
92
92
  }
93
- var Q = _i;
94
- function mi(r) {
93
+ var X = vi;
94
+ function _i(r) {
95
95
  var e = typeof r;
96
96
  return r != null && (e == "object" || e == "function");
97
97
  }
98
- var ge = mi, Ci = Q, Si = ge, Ai = "[object AsyncFunction]", xi = "[object Function]", Ei = "[object GeneratorFunction]", Fi = "[object Proxy]";
99
- function $i(r) {
100
- if (!Si(r))
98
+ var ge = _i, mi = X, Ci = ge, Si = "[object AsyncFunction]", Ai = "[object Function]", xi = "[object GeneratorFunction]", Ei = "[object Proxy]";
99
+ function Fi(r) {
100
+ if (!Ci(r))
101
101
  return !1;
102
- var e = Ci(r);
103
- return e == xi || e == Ei || e == Ai || e == Fi;
102
+ var e = mi(r);
103
+ return e == Ai || e == xi || e == Si || e == Ei;
104
104
  }
105
- var Kt = $i, Ti = D, Ni = Ti["__core-js_shared__"], Di = Ni, _e = Di, et = function() {
105
+ var Ht = Fi, $i = D, Ti = $i["__core-js_shared__"], Ni = Ti, _e = Ni, Qe = function() {
106
106
  var r = /[^.]+$/.exec(_e && _e.keys && _e.keys.IE_PROTO || "");
107
107
  return r ? "Symbol(src)_1." + r : "";
108
108
  }();
109
- function wi(r) {
110
- return !!et && et in r;
109
+ function Di(r) {
110
+ return !!Qe && Qe in r;
111
111
  }
112
- var Oi = wi, Li = Function.prototype, Ii = Li.toString;
113
- function Pi(r) {
112
+ var wi = Di, Oi = Function.prototype, Li = Oi.toString;
113
+ function Ii(r) {
114
114
  if (r != null) {
115
115
  try {
116
- return Ii.call(r);
116
+ return Li.call(r);
117
117
  } catch {
118
118
  }
119
119
  try {
@@ -123,258 +123,258 @@ function Pi(r) {
123
123
  }
124
124
  return "";
125
125
  }
126
- var qt = Pi, Mi = Kt, Ri = Oi, Gi = ge, Bi = qt, zi = /[\\^$.*+?()[\]{}|]/g, ji = /^\[object .+?Constructor\]$/, Ui = Function.prototype, Vi = Object.prototype, ki = Ui.toString, Hi = Vi.hasOwnProperty, Ki = RegExp(
127
- "^" + ki.call(Hi).replace(zi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
126
+ var Kt = Ii, Pi = Ht, Ri = wi, Mi = ge, Gi = Kt, Bi = /[\\^$.*+?()[\]{}|]/g, zi = /^\[object .+?Constructor\]$/, ji = Function.prototype, Ui = Object.prototype, Vi = ji.toString, ki = Ui.hasOwnProperty, Hi = RegExp(
127
+ "^" + Vi.call(ki).replace(Bi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
128
128
  );
129
- function qi(r) {
130
- if (!Gi(r) || Ri(r))
129
+ function Ki(r) {
130
+ if (!Mi(r) || Ri(r))
131
131
  return !1;
132
- var e = Mi(r) ? Ki : ji;
133
- return e.test(Bi(r));
132
+ var e = Pi(r) ? Hi : zi;
133
+ return e.test(Gi(r));
134
134
  }
135
- var Yi = qi;
136
- function Wi(r, e) {
135
+ var qi = Ki;
136
+ function Yi(r, e) {
137
137
  return r == null ? void 0 : r[e];
138
138
  }
139
- var Ji = Wi, Zi = Yi, Xi = Ji;
140
- function Qi(r, e) {
141
- var t = Xi(r, e);
142
- return Zi(t) ? t : void 0;
139
+ var Wi = Yi, Ji = qi, Zi = Wi;
140
+ function Xi(r, e) {
141
+ var t = Zi(r, e);
142
+ return Ji(t) ? t : void 0;
143
143
  }
144
- var R = Qi, en = R, tn = D, rn = en(tn, "Map"), Ge = rn, nn = R, sn = nn(Object, "create"), he = sn, tt = he;
145
- function an() {
146
- this.__data__ = tt ? tt(null) : {}, this.size = 0;
144
+ var R = Xi, Qi = R, en = D, tn = Qi(en, "Map"), Me = tn, rn = R, nn = rn(Object, "create"), he = nn, et = he;
145
+ function sn() {
146
+ this.__data__ = et ? et(null) : {}, this.size = 0;
147
147
  }
148
- var on = an;
149
- function un(r) {
148
+ var an = sn;
149
+ function on(r) {
150
150
  var e = this.has(r) && delete this.__data__[r];
151
151
  return this.size -= e ? 1 : 0, e;
152
152
  }
153
- var ln = un, cn = he, dn = "__lodash_hash_undefined__", gn = Object.prototype, hn = gn.hasOwnProperty;
154
- function fn(r) {
153
+ var un = on, ln = he, dn = "__lodash_hash_undefined__", cn = Object.prototype, gn = cn.hasOwnProperty;
154
+ function hn(r) {
155
155
  var e = this.__data__;
156
- if (cn) {
156
+ if (ln) {
157
157
  var t = e[r];
158
158
  return t === dn ? void 0 : t;
159
159
  }
160
- return hn.call(e, r) ? e[r] : void 0;
160
+ return gn.call(e, r) ? e[r] : void 0;
161
161
  }
162
- var pn = fn, bn = he, yn = Object.prototype, vn = yn.hasOwnProperty;
163
- function _n(r) {
162
+ var fn = hn, pn = he, bn = Object.prototype, yn = bn.hasOwnProperty;
163
+ function vn(r) {
164
164
  var e = this.__data__;
165
- return bn ? e[r] !== void 0 : vn.call(e, r);
165
+ return pn ? e[r] !== void 0 : yn.call(e, r);
166
166
  }
167
- var mn = _n, Cn = he, Sn = "__lodash_hash_undefined__";
168
- function An(r, e) {
167
+ var _n = vn, mn = he, Cn = "__lodash_hash_undefined__";
168
+ function Sn(r, e) {
169
169
  var t = this.__data__;
170
- return this.size += this.has(r) ? 0 : 1, t[r] = Cn && e === void 0 ? Sn : e, this;
170
+ return this.size += this.has(r) ? 0 : 1, t[r] = mn && e === void 0 ? Cn : e, this;
171
171
  }
172
- var xn = An, En = on, Fn = ln, $n = pn, Tn = mn, Nn = xn;
173
- function k(r) {
172
+ var An = Sn, xn = an, En = un, Fn = fn, $n = _n, Tn = An;
173
+ function V(r) {
174
174
  var e = -1, t = r == null ? 0 : r.length;
175
175
  for (this.clear(); ++e < t; ) {
176
176
  var i = r[e];
177
177
  this.set(i[0], i[1]);
178
178
  }
179
179
  }
180
- k.prototype.clear = En;
181
- k.prototype.delete = Fn;
182
- k.prototype.get = $n;
183
- k.prototype.has = Tn;
184
- k.prototype.set = Nn;
185
- var Dn = k, rt = Dn, wn = de, On = Ge;
186
- function Ln() {
180
+ V.prototype.clear = xn;
181
+ V.prototype.delete = En;
182
+ V.prototype.get = Fn;
183
+ V.prototype.has = $n;
184
+ V.prototype.set = Tn;
185
+ var Nn = V, tt = Nn, Dn = ce, wn = Me;
186
+ function On() {
187
187
  this.size = 0, this.__data__ = {
188
- hash: new rt(),
189
- map: new (On || wn)(),
190
- string: new rt()
188
+ hash: new tt(),
189
+ map: new (wn || Dn)(),
190
+ string: new tt()
191
191
  };
192
192
  }
193
- var In = Ln;
194
- function Pn(r) {
193
+ var Ln = On;
194
+ function In(r) {
195
195
  var e = typeof r;
196
196
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
197
197
  }
198
- var Mn = Pn, Rn = Mn;
199
- function Gn(r, e) {
198
+ var Pn = In, Rn = Pn;
199
+ function Mn(r, e) {
200
200
  var t = r.__data__;
201
201
  return Rn(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
202
202
  }
203
- var fe = Gn, Bn = fe;
204
- function zn(r) {
205
- var e = Bn(this, r).delete(r);
203
+ var fe = Mn, Gn = fe;
204
+ function Bn(r) {
205
+ var e = Gn(this, r).delete(r);
206
206
  return this.size -= e ? 1 : 0, e;
207
207
  }
208
- var jn = zn, Un = fe;
209
- function Vn(r) {
210
- return Un(this, r).get(r);
208
+ var zn = Bn, jn = fe;
209
+ function Un(r) {
210
+ return jn(this, r).get(r);
211
211
  }
212
- var kn = Vn, Hn = fe;
213
- function Kn(r) {
214
- return Hn(this, r).has(r);
212
+ var Vn = Un, kn = fe;
213
+ function Hn(r) {
214
+ return kn(this, r).has(r);
215
215
  }
216
- var qn = Kn, Yn = fe;
217
- function Wn(r, e) {
218
- var t = Yn(this, r), i = t.size;
216
+ var Kn = Hn, qn = fe;
217
+ function Yn(r, e) {
218
+ var t = qn(this, r), i = t.size;
219
219
  return t.set(r, e), this.size += t.size == i ? 0 : 1, this;
220
220
  }
221
- var Jn = Wn, Zn = In, Xn = jn, Qn = kn, es = qn, ts = Jn;
222
- function H(r) {
221
+ var Wn = Yn, Jn = Ln, Zn = zn, Xn = Vn, Qn = Kn, es = Wn;
222
+ function k(r) {
223
223
  var e = -1, t = r == null ? 0 : r.length;
224
224
  for (this.clear(); ++e < t; ) {
225
225
  var i = r[e];
226
226
  this.set(i[0], i[1]);
227
227
  }
228
228
  }
229
- H.prototype.clear = Zn;
230
- H.prototype.delete = Xn;
231
- H.prototype.get = Qn;
232
- H.prototype.has = es;
233
- H.prototype.set = ts;
234
- var Be = H, rs = de, is = Ge, ns = Be, ss = 200;
235
- function as(r, e) {
229
+ k.prototype.clear = Jn;
230
+ k.prototype.delete = Zn;
231
+ k.prototype.get = Xn;
232
+ k.prototype.has = Qn;
233
+ k.prototype.set = es;
234
+ var Ge = k, ts = ce, rs = Me, is = Ge, ns = 200;
235
+ function ss(r, e) {
236
236
  var t = this.__data__;
237
- if (t instanceof rs) {
237
+ if (t instanceof ts) {
238
238
  var i = t.__data__;
239
- if (!is || i.length < ss - 1)
239
+ if (!rs || i.length < ns - 1)
240
240
  return i.push([r, e]), this.size = ++t.size, this;
241
- t = this.__data__ = new ns(i);
241
+ t = this.__data__ = new is(i);
242
242
  }
243
243
  return t.set(r, e), this.size = t.size, this;
244
244
  }
245
- var os = as, us = de, ls = Yr, cs = Jr, ds = Xr, gs = ei, hs = os;
246
- function K(r) {
247
- var e = this.__data__ = new us(r);
245
+ var as = ss, os = ce, us = qr, ls = Wr, ds = Zr, cs = Qr, gs = as;
246
+ function H(r) {
247
+ var e = this.__data__ = new os(r);
248
248
  this.size = e.size;
249
249
  }
250
- K.prototype.clear = ls;
251
- K.prototype.delete = cs;
252
- K.prototype.get = ds;
253
- K.prototype.has = gs;
254
- K.prototype.set = hs;
255
- var Yt = K, fs = "__lodash_hash_undefined__";
256
- function ps(r) {
257
- return this.__data__.set(r, fs), this;
258
- }
259
- var bs = ps;
260
- function ys(r) {
250
+ H.prototype.clear = us;
251
+ H.prototype.delete = ls;
252
+ H.prototype.get = ds;
253
+ H.prototype.has = cs;
254
+ H.prototype.set = gs;
255
+ var qt = H, hs = "__lodash_hash_undefined__";
256
+ function fs(r) {
257
+ return this.__data__.set(r, hs), this;
258
+ }
259
+ var ps = fs;
260
+ function bs(r) {
261
261
  return this.__data__.has(r);
262
262
  }
263
- var vs = ys, _s = Be, ms = bs, Cs = vs;
263
+ var ys = bs, vs = Ge, _s = ps, ms = ys;
264
264
  function ne(r) {
265
265
  var e = -1, t = r == null ? 0 : r.length;
266
- for (this.__data__ = new _s(); ++e < t; )
266
+ for (this.__data__ = new vs(); ++e < t; )
267
267
  this.add(r[e]);
268
268
  }
269
- ne.prototype.add = ne.prototype.push = ms;
270
- ne.prototype.has = Cs;
271
- var Ss = ne;
272
- function As(r, e) {
269
+ ne.prototype.add = ne.prototype.push = _s;
270
+ ne.prototype.has = ms;
271
+ var Cs = ne;
272
+ function Ss(r, e) {
273
273
  for (var t = -1, i = r == null ? 0 : r.length; ++t < i; )
274
274
  if (e(r[t], t, r))
275
275
  return !0;
276
276
  return !1;
277
277
  }
278
- var xs = As;
279
- function Es(r, e) {
278
+ var As = Ss;
279
+ function xs(r, e) {
280
280
  return r.has(e);
281
281
  }
282
- var Fs = Es, $s = Ss, Ts = xs, Ns = Fs, Ds = 1, ws = 2;
283
- function Os(r, e, t, i, n, s) {
284
- var a = t & Ds, o = r.length, l = e.length;
282
+ var Es = xs, Fs = Cs, $s = As, Ts = Es, Ns = 1, Ds = 2;
283
+ function ws(r, e, t, i, n, s) {
284
+ var a = t & Ns, o = r.length, l = e.length;
285
285
  if (o != l && !(a && l > o))
286
286
  return !1;
287
- var c = s.get(r), d = s.get(e);
288
- if (c && d)
289
- return c == e && d == r;
290
- var g = -1, h = !0, y = t & ws ? new $s() : void 0;
287
+ var d = s.get(r), c = s.get(e);
288
+ if (d && c)
289
+ return d == e && c == r;
290
+ var g = -1, h = !0, y = t & Ds ? new Fs() : void 0;
291
291
  for (s.set(r, e), s.set(e, r); ++g < o; ) {
292
- var m = r[g], f = e[g];
292
+ var m = r[g], p = e[g];
293
293
  if (i)
294
- var A = a ? i(f, m, g, e, r, s) : i(m, f, g, r, e, s);
295
- if (A !== void 0) {
296
- if (A)
294
+ var x = a ? i(p, m, g, e, r, s) : i(m, p, g, r, e, s);
295
+ if (x !== void 0) {
296
+ if (x)
297
297
  continue;
298
298
  h = !1;
299
299
  break;
300
300
  }
301
301
  if (y) {
302
- if (!Ts(e, function(x, E) {
303
- if (!Ns(y, E) && (m === x || n(m, x, t, i, s)))
304
- return y.push(E);
302
+ if (!$s(e, function($, T) {
303
+ if (!Ts(y, T) && (m === $ || n(m, $, t, i, s)))
304
+ return y.push(T);
305
305
  })) {
306
306
  h = !1;
307
307
  break;
308
308
  }
309
- } else if (!(m === f || n(m, f, t, i, s))) {
309
+ } else if (!(m === p || n(m, p, t, i, s))) {
310
310
  h = !1;
311
311
  break;
312
312
  }
313
313
  }
314
314
  return s.delete(r), s.delete(e), h;
315
315
  }
316
- var Wt = Os, Ls = D, Is = Ls.Uint8Array, Ps = Is;
317
- function Ms(r) {
316
+ var Yt = ws, Os = D, Ls = Os.Uint8Array, Is = Ls;
317
+ function Ps(r) {
318
318
  var e = -1, t = Array(r.size);
319
319
  return r.forEach(function(i, n) {
320
320
  t[++e] = [n, i];
321
321
  }), t;
322
322
  }
323
- var Rs = Ms;
324
- function Gs(r) {
323
+ var Rs = Ps;
324
+ function Ms(r) {
325
325
  var e = -1, t = Array(r.size);
326
326
  return r.forEach(function(i) {
327
327
  t[++e] = i;
328
328
  }), t;
329
329
  }
330
- var Bs = Gs, it = X, nt = Ps, zs = Re, js = Wt, Us = Rs, Vs = Bs, ks = 1, Hs = 2, Ks = "[object Boolean]", qs = "[object Date]", Ys = "[object Error]", Ws = "[object Map]", Js = "[object Number]", Zs = "[object RegExp]", Xs = "[object Set]", Qs = "[object String]", ea = "[object Symbol]", ta = "[object ArrayBuffer]", ra = "[object DataView]", st = it ? it.prototype : void 0, me = st ? st.valueOf : void 0;
331
- function ia(r, e, t, i, n, s, a) {
330
+ var Gs = Ms, rt = Z, it = Is, Bs = Re, zs = Yt, js = Rs, Us = Gs, Vs = 1, ks = 2, Hs = "[object Boolean]", Ks = "[object Date]", qs = "[object Error]", Ys = "[object Map]", Ws = "[object Number]", Js = "[object RegExp]", Zs = "[object Set]", Xs = "[object String]", Qs = "[object Symbol]", ea = "[object ArrayBuffer]", ta = "[object DataView]", nt = rt ? rt.prototype : void 0, me = nt ? nt.valueOf : void 0;
331
+ function ra(r, e, t, i, n, s, a) {
332
332
  switch (t) {
333
- case ra:
333
+ case ta:
334
334
  if (r.byteLength != e.byteLength || r.byteOffset != e.byteOffset)
335
335
  return !1;
336
336
  r = r.buffer, e = e.buffer;
337
- case ta:
338
- return !(r.byteLength != e.byteLength || !s(new nt(r), new nt(e)));
337
+ case ea:
338
+ return !(r.byteLength != e.byteLength || !s(new it(r), new it(e)));
339
+ case Hs:
339
340
  case Ks:
341
+ case Ws:
342
+ return Bs(+r, +e);
340
343
  case qs:
344
+ return r.name == e.name && r.message == e.message;
341
345
  case Js:
342
- return zs(+r, +e);
346
+ case Xs:
347
+ return r == e + "";
343
348
  case Ys:
344
- return r.name == e.name && r.message == e.message;
349
+ var o = js;
345
350
  case Zs:
346
- case Qs:
347
- return r == e + "";
348
- case Ws:
349
- var o = Us;
350
- case Xs:
351
- var l = i & ks;
352
- if (o || (o = Vs), r.size != e.size && !l)
351
+ var l = i & Vs;
352
+ if (o || (o = Us), r.size != e.size && !l)
353
353
  return !1;
354
- var c = a.get(r);
355
- if (c)
356
- return c == e;
357
- i |= Hs, a.set(r, e);
358
- var d = js(o(r), o(e), i, n, s, a);
359
- return a.delete(r), d;
360
- case ea:
354
+ var d = a.get(r);
355
+ if (d)
356
+ return d == e;
357
+ i |= ks, a.set(r, e);
358
+ var c = zs(o(r), o(e), i, n, s, a);
359
+ return a.delete(r), c;
360
+ case Qs:
361
361
  if (me)
362
362
  return me.call(r) == me.call(e);
363
363
  }
364
364
  return !1;
365
365
  }
366
- var na = ia;
367
- function sa(r, e) {
366
+ var ia = ra;
367
+ function na(r, e) {
368
368
  for (var t = -1, i = e.length, n = r.length; ++t < i; )
369
369
  r[n + t] = e[t];
370
370
  return r;
371
371
  }
372
- var Jt = sa, aa = Array.isArray, T = aa, oa = Jt, ua = T;
373
- function la(r, e, t) {
372
+ var Wt = na, sa = Array.isArray, F = sa, aa = Wt, oa = F;
373
+ function ua(r, e, t) {
374
374
  var i = e(r);
375
- return ua(r) ? i : oa(i, t(r));
375
+ return oa(r) ? i : aa(i, t(r));
376
376
  }
377
- var ca = la;
377
+ var la = ua;
378
378
  function da(r, e) {
379
379
  for (var t = -1, i = r == null ? 0 : r.length, n = 0, s = []; ++t < i; ) {
380
380
  var a = r[t];
@@ -382,67 +382,67 @@ function da(r, e) {
382
382
  }
383
383
  return s;
384
384
  }
385
- var ga = da;
386
- function ha() {
385
+ var ca = da;
386
+ function ga() {
387
387
  return [];
388
388
  }
389
- var fa = ha, pa = ga, ba = fa, ya = Object.prototype, va = ya.propertyIsEnumerable, at = Object.getOwnPropertySymbols, _a = at ? function(r) {
390
- return r == null ? [] : (r = Object(r), pa(at(r), function(e) {
391
- return va.call(r, e);
389
+ var ha = ga, fa = ca, pa = ha, ba = Object.prototype, ya = ba.propertyIsEnumerable, st = Object.getOwnPropertySymbols, va = st ? function(r) {
390
+ return r == null ? [] : (r = Object(r), fa(st(r), function(e) {
391
+ return ya.call(r, e);
392
392
  }));
393
- } : ba, ma = _a;
394
- function Ca(r, e) {
393
+ } : pa, _a = va;
394
+ function ma(r, e) {
395
395
  for (var t = -1, i = Array(r); ++t < r; )
396
396
  i[t] = e(t);
397
397
  return i;
398
398
  }
399
- var Sa = Ca;
400
- function Aa(r) {
399
+ var Ca = ma;
400
+ function Sa(r) {
401
401
  return r != null && typeof r == "object";
402
402
  }
403
- var ee = Aa, xa = Q, Ea = ee, Fa = "[object Arguments]";
404
- function $a(r) {
405
- return Ea(r) && xa(r) == Fa;
403
+ var Q = Sa, Aa = X, xa = Q, Ea = "[object Arguments]";
404
+ function Fa(r) {
405
+ return xa(r) && Aa(r) == Ea;
406
406
  }
407
- var Ta = $a, ot = Ta, Na = ee, Zt = Object.prototype, Da = Zt.hasOwnProperty, wa = Zt.propertyIsEnumerable, Oa = ot(/* @__PURE__ */ function() {
407
+ var $a = Fa, at = $a, Ta = Q, Jt = Object.prototype, Na = Jt.hasOwnProperty, Da = Jt.propertyIsEnumerable, wa = at(/* @__PURE__ */ function() {
408
408
  return arguments;
409
- }()) ? ot : function(r) {
410
- return Na(r) && Da.call(r, "callee") && !wa.call(r, "callee");
411
- }, ze = Oa, se = { exports: {} };
412
- function La() {
409
+ }()) ? at : function(r) {
410
+ return Ta(r) && Na.call(r, "callee") && !Da.call(r, "callee");
411
+ }, Be = wa, se = { exports: {} };
412
+ function Oa() {
413
413
  return !1;
414
414
  }
415
- var Ia = La;
415
+ var La = Oa;
416
416
  se.exports;
417
417
  (function(r, e) {
418
- var t = D, i = Ia, n = e && !e.nodeType && e, s = n && !0 && r && !r.nodeType && r, a = s && s.exports === n, o = a ? t.Buffer : void 0, l = o ? o.isBuffer : void 0, c = l || i;
419
- r.exports = c;
418
+ var t = D, i = La, n = e && !e.nodeType && e, s = n && !0 && r && !r.nodeType && r, a = s && s.exports === n, o = a ? t.Buffer : void 0, l = o ? o.isBuffer : void 0, d = l || i;
419
+ r.exports = d;
420
420
  })(se, se.exports);
421
- var Xt = se.exports, Pa = 9007199254740991, Ma = /^(?:0|[1-9]\d*)$/;
421
+ var Zt = se.exports, Ia = 9007199254740991, Pa = /^(?:0|[1-9]\d*)$/;
422
422
  function Ra(r, e) {
423
423
  var t = typeof r;
424
- return e = e ?? Pa, !!e && (t == "number" || t != "symbol" && Ma.test(r)) && r > -1 && r % 1 == 0 && r < e;
424
+ return e = e ?? Ia, !!e && (t == "number" || t != "symbol" && Pa.test(r)) && r > -1 && r % 1 == 0 && r < e;
425
425
  }
426
- var je = Ra, Ga = 9007199254740991;
427
- function Ba(r) {
428
- return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Ga;
426
+ var ze = Ra, Ma = 9007199254740991;
427
+ function Ga(r) {
428
+ return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Ma;
429
429
  }
430
- var Ue = Ba, za = Q, ja = Ue, Ua = ee, Va = "[object Arguments]", ka = "[object Array]", Ha = "[object Boolean]", Ka = "[object Date]", qa = "[object Error]", Ya = "[object Function]", Wa = "[object Map]", Ja = "[object Number]", Za = "[object Object]", Xa = "[object RegExp]", Qa = "[object Set]", eo = "[object String]", to = "[object WeakMap]", ro = "[object ArrayBuffer]", io = "[object DataView]", no = "[object Float32Array]", so = "[object Float64Array]", ao = "[object Int8Array]", oo = "[object Int16Array]", uo = "[object Int32Array]", lo = "[object Uint8Array]", co = "[object Uint8ClampedArray]", go = "[object Uint16Array]", ho = "[object Uint32Array]", b = {};
431
- b[no] = b[so] = b[ao] = b[oo] = b[uo] = b[lo] = b[co] = b[go] = b[ho] = !0;
432
- b[Va] = b[ka] = b[ro] = b[Ha] = b[io] = b[Ka] = b[qa] = b[Ya] = b[Wa] = b[Ja] = b[Za] = b[Xa] = b[Qa] = b[eo] = b[to] = !1;
433
- function fo(r) {
434
- return Ua(r) && ja(r.length) && !!b[za(r)];
430
+ var je = Ga, Ba = X, za = je, ja = Q, Ua = "[object Arguments]", Va = "[object Array]", ka = "[object Boolean]", Ha = "[object Date]", Ka = "[object Error]", qa = "[object Function]", Ya = "[object Map]", Wa = "[object Number]", Ja = "[object Object]", Za = "[object RegExp]", Xa = "[object Set]", Qa = "[object String]", eo = "[object WeakMap]", to = "[object ArrayBuffer]", ro = "[object DataView]", io = "[object Float32Array]", no = "[object Float64Array]", so = "[object Int8Array]", ao = "[object Int16Array]", oo = "[object Int32Array]", uo = "[object Uint8Array]", lo = "[object Uint8ClampedArray]", co = "[object Uint16Array]", go = "[object Uint32Array]", b = {};
431
+ b[io] = b[no] = b[so] = b[ao] = b[oo] = b[uo] = b[lo] = b[co] = b[go] = !0;
432
+ b[Ua] = b[Va] = b[to] = b[ka] = b[ro] = b[Ha] = b[Ka] = b[qa] = b[Ya] = b[Wa] = b[Ja] = b[Za] = b[Xa] = b[Qa] = b[eo] = !1;
433
+ function ho(r) {
434
+ return ja(r) && za(r.length) && !!b[Ba(r)];
435
435
  }
436
- var po = fo;
437
- function bo(r) {
436
+ var fo = ho;
437
+ function po(r) {
438
438
  return function(e) {
439
439
  return r(e);
440
440
  };
441
441
  }
442
- var Qt = bo, ae = { exports: {} };
442
+ var Xt = po, ae = { exports: {} };
443
443
  ae.exports;
444
444
  (function(r, e) {
445
- var t = kt, i = e && !e.nodeType && e, n = i && !0 && r && !r.nodeType && r, s = n && n.exports === i, a = s && t.process, o = function() {
445
+ var t = Vt, i = e && !e.nodeType && e, n = i && !0 && r && !r.nodeType && r, s = n && n.exports === i, a = s && t.process, o = function() {
446
446
  try {
447
447
  var l = n && n.require && n.require("util").types;
448
448
  return l || a && a.binding && a.binding("util");
@@ -451,164 +451,164 @@ ae.exports;
451
451
  }();
452
452
  r.exports = o;
453
453
  })(ae, ae.exports);
454
- var yo = ae.exports, vo = po, _o = Qt, ut = yo, lt = ut && ut.isTypedArray, mo = lt ? _o(lt) : vo, er = mo, Co = Sa, So = ze, Ao = T, xo = Xt, Eo = je, Fo = er, $o = Object.prototype, To = $o.hasOwnProperty;
455
- function No(r, e) {
456
- var t = Ao(r), i = !t && So(r), n = !t && !i && xo(r), s = !t && !i && !n && Fo(r), a = t || i || n || s, o = a ? Co(r.length, String) : [], l = o.length;
457
- for (var c in r)
458
- (e || To.call(r, c)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
459
- (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
460
- n && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
461
- s && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
462
- Eo(c, l))) && o.push(c);
454
+ var bo = ae.exports, yo = fo, vo = Xt, ot = bo, ut = ot && ot.isTypedArray, _o = ut ? vo(ut) : yo, Qt = _o, mo = Ca, Co = Be, So = F, Ao = Zt, xo = ze, Eo = Qt, Fo = Object.prototype, $o = Fo.hasOwnProperty;
455
+ function To(r, e) {
456
+ var t = So(r), i = !t && Co(r), n = !t && !i && Ao(r), s = !t && !i && !n && Eo(r), a = t || i || n || s, o = a ? mo(r.length, String) : [], l = o.length;
457
+ for (var d in r)
458
+ (e || $o.call(r, d)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
459
+ (d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
460
+ n && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
461
+ s && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
462
+ xo(d, l))) && o.push(d);
463
463
  return o;
464
464
  }
465
- var Do = No, wo = Object.prototype;
466
- function Oo(r) {
467
- var e = r && r.constructor, t = typeof e == "function" && e.prototype || wo;
465
+ var No = To, Do = Object.prototype;
466
+ function wo(r) {
467
+ var e = r && r.constructor, t = typeof e == "function" && e.prototype || Do;
468
468
  return r === t;
469
469
  }
470
- var Lo = Oo;
471
- function Io(r, e) {
470
+ var Oo = wo;
471
+ function Lo(r, e) {
472
472
  return function(t) {
473
473
  return r(e(t));
474
474
  };
475
475
  }
476
- var Po = Io, Mo = Po, Ro = Mo(Object.keys, Object), Go = Ro, Bo = Lo, zo = Go, jo = Object.prototype, Uo = jo.hasOwnProperty;
477
- function Vo(r) {
478
- if (!Bo(r))
479
- return zo(r);
476
+ var Io = Lo, Po = Io, Ro = Po(Object.keys, Object), Mo = Ro, Go = Oo, Bo = Mo, zo = Object.prototype, jo = zo.hasOwnProperty;
477
+ function Uo(r) {
478
+ if (!Go(r))
479
+ return Bo(r);
480
480
  var e = [];
481
481
  for (var t in Object(r))
482
- Uo.call(r, t) && t != "constructor" && e.push(t);
482
+ jo.call(r, t) && t != "constructor" && e.push(t);
483
483
  return e;
484
484
  }
485
- var ko = Vo, Ho = Kt, Ko = Ue;
486
- function qo(r) {
487
- return r != null && Ko(r.length) && !Ho(r);
485
+ var Vo = Uo, ko = Ht, Ho = je;
486
+ function Ko(r) {
487
+ return r != null && Ho(r.length) && !ko(r);
488
488
  }
489
- var pe = qo, Yo = Do, Wo = ko, Jo = pe;
490
- function Zo(r) {
491
- return Jo(r) ? Yo(r) : Wo(r);
489
+ var pe = Ko, qo = No, Yo = Vo, Wo = pe;
490
+ function Jo(r) {
491
+ return Wo(r) ? qo(r) : Yo(r);
492
492
  }
493
- var Ve = Zo, Xo = ca, Qo = ma, eu = Ve;
494
- function tu(r) {
495
- return Xo(r, eu, Qo);
493
+ var Ue = Jo, Zo = la, Xo = _a, Qo = Ue;
494
+ function eu(r) {
495
+ return Zo(r, Qo, Xo);
496
496
  }
497
- var ru = tu, ct = ru, iu = 1, nu = Object.prototype, su = nu.hasOwnProperty;
498
- function au(r, e, t, i, n, s) {
499
- var a = t & iu, o = ct(r), l = o.length, c = ct(e), d = c.length;
500
- if (l != d && !a)
497
+ var tu = eu, lt = tu, ru = 1, iu = Object.prototype, nu = iu.hasOwnProperty;
498
+ function su(r, e, t, i, n, s) {
499
+ var a = t & ru, o = lt(r), l = o.length, d = lt(e), c = d.length;
500
+ if (l != c && !a)
501
501
  return !1;
502
502
  for (var g = l; g--; ) {
503
503
  var h = o[g];
504
- if (!(a ? h in e : su.call(e, h)))
504
+ if (!(a ? h in e : nu.call(e, h)))
505
505
  return !1;
506
506
  }
507
507
  var y = s.get(r), m = s.get(e);
508
508
  if (y && m)
509
509
  return y == e && m == r;
510
- var f = !0;
510
+ var p = !0;
511
511
  s.set(r, e), s.set(e, r);
512
- for (var A = a; ++g < l; ) {
512
+ for (var x = a; ++g < l; ) {
513
513
  h = o[g];
514
- var x = r[h], E = e[h];
514
+ var $ = r[h], T = e[h];
515
515
  if (i)
516
- var G = a ? i(E, x, h, e, r, s) : i(x, E, h, r, e, s);
517
- if (!(G === void 0 ? x === E || n(x, E, t, i, s) : G)) {
518
- f = !1;
516
+ var ee = a ? i(T, $, h, e, r, s) : i($, T, h, r, e, s);
517
+ if (!(ee === void 0 ? $ === T || n($, T, t, i, s) : ee)) {
518
+ p = !1;
519
519
  break;
520
520
  }
521
- A || (A = h == "constructor");
521
+ x || (x = h == "constructor");
522
522
  }
523
- if (f && !A) {
524
- var v = r.constructor, L = e.constructor;
525
- v != L && "constructor" in r && "constructor" in e && !(typeof v == "function" && v instanceof v && typeof L == "function" && L instanceof L) && (f = !1);
523
+ if (p && !x) {
524
+ var _ = r.constructor, O = e.constructor;
525
+ _ != O && "constructor" in r && "constructor" in e && !(typeof _ == "function" && _ instanceof _ && typeof O == "function" && O instanceof O) && (p = !1);
526
526
  }
527
- return s.delete(r), s.delete(e), f;
527
+ return s.delete(r), s.delete(e), p;
528
528
  }
529
- var ou = au, uu = R, lu = D, cu = uu(lu, "DataView"), du = cu, gu = R, hu = D, fu = gu(hu, "Promise"), pu = fu, bu = R, yu = D, vu = bu(yu, "Set"), _u = vu, mu = R, Cu = D, Su = mu(Cu, "WeakMap"), Au = Su, Fe = du, $e = Ge, Te = pu, Ne = _u, De = Au, tr = Q, q = qt, dt = "[object Map]", xu = "[object Object]", gt = "[object Promise]", ht = "[object Set]", ft = "[object WeakMap]", pt = "[object DataView]", Eu = q(Fe), Fu = q($e), $u = q(Te), Tu = q(Ne), Nu = q(De), I = tr;
530
- (Fe && I(new Fe(new ArrayBuffer(1))) != pt || $e && I(new $e()) != dt || Te && I(Te.resolve()) != gt || Ne && I(new Ne()) != ht || De && I(new De()) != ft) && (I = function(r) {
531
- var e = tr(r), t = e == xu ? r.constructor : void 0, i = t ? q(t) : "";
529
+ var au = su, ou = R, uu = D, lu = ou(uu, "DataView"), du = lu, cu = R, gu = D, hu = cu(gu, "Promise"), fu = hu, pu = R, bu = D, yu = pu(bu, "Set"), vu = yu, _u = R, mu = D, Cu = _u(mu, "WeakMap"), Su = Cu, Ee = du, Fe = Me, $e = fu, Te = vu, Ne = Su, er = X, K = Kt, dt = "[object Map]", Au = "[object Object]", ct = "[object Promise]", gt = "[object Set]", ht = "[object WeakMap]", ft = "[object DataView]", xu = K(Ee), Eu = K(Fe), Fu = K($e), $u = K(Te), Tu = K(Ne), L = er;
530
+ (Ee && L(new Ee(new ArrayBuffer(1))) != ft || Fe && L(new Fe()) != dt || $e && L($e.resolve()) != ct || Te && L(new Te()) != gt || Ne && L(new Ne()) != ht) && (L = function(r) {
531
+ var e = er(r), t = e == Au ? r.constructor : void 0, i = t ? K(t) : "";
532
532
  if (i)
533
533
  switch (i) {
534
+ case xu:
535
+ return ft;
534
536
  case Eu:
535
- return pt;
536
- case Fu:
537
537
  return dt;
538
+ case Fu:
539
+ return ct;
538
540
  case $u:
539
541
  return gt;
540
542
  case Tu:
541
543
  return ht;
542
- case Nu:
543
- return ft;
544
544
  }
545
545
  return e;
546
546
  });
547
- var Du = I, Ce = Yt, wu = Wt, Ou = na, Lu = ou, bt = Du, yt = T, vt = Xt, Iu = er, Pu = 1, _t = "[object Arguments]", mt = "[object Array]", re = "[object Object]", Mu = Object.prototype, Ct = Mu.hasOwnProperty;
547
+ var Nu = L, Ce = qt, Du = Yt, wu = ia, Ou = au, pt = Nu, bt = F, yt = Zt, Lu = Qt, Iu = 1, vt = "[object Arguments]", _t = "[object Array]", re = "[object Object]", Pu = Object.prototype, mt = Pu.hasOwnProperty;
548
548
  function Ru(r, e, t, i, n, s) {
549
- var a = yt(r), o = yt(e), l = a ? mt : bt(r), c = o ? mt : bt(e);
550
- l = l == _t ? re : l, c = c == _t ? re : c;
551
- var d = l == re, g = c == re, h = l == c;
552
- if (h && vt(r)) {
553
- if (!vt(e))
549
+ var a = bt(r), o = bt(e), l = a ? _t : pt(r), d = o ? _t : pt(e);
550
+ l = l == vt ? re : l, d = d == vt ? re : d;
551
+ var c = l == re, g = d == re, h = l == d;
552
+ if (h && yt(r)) {
553
+ if (!yt(e))
554
554
  return !1;
555
- a = !0, d = !1;
555
+ a = !0, c = !1;
556
556
  }
557
- if (h && !d)
558
- return s || (s = new Ce()), a || Iu(r) ? wu(r, e, t, i, n, s) : Ou(r, e, l, t, i, n, s);
559
- if (!(t & Pu)) {
560
- var y = d && Ct.call(r, "__wrapped__"), m = g && Ct.call(e, "__wrapped__");
557
+ if (h && !c)
558
+ return s || (s = new Ce()), a || Lu(r) ? Du(r, e, t, i, n, s) : wu(r, e, l, t, i, n, s);
559
+ if (!(t & Iu)) {
560
+ var y = c && mt.call(r, "__wrapped__"), m = g && mt.call(e, "__wrapped__");
561
561
  if (y || m) {
562
- var f = y ? r.value() : r, A = m ? e.value() : e;
563
- return s || (s = new Ce()), n(f, A, t, i, s);
562
+ var p = y ? r.value() : r, x = m ? e.value() : e;
563
+ return s || (s = new Ce()), n(p, x, t, i, s);
564
564
  }
565
565
  }
566
- return h ? (s || (s = new Ce()), Lu(r, e, t, i, n, s)) : !1;
566
+ return h ? (s || (s = new Ce()), Ou(r, e, t, i, n, s)) : !1;
567
567
  }
568
- var Gu = Ru, Bu = Gu, St = ee;
569
- function rr(r, e, t, i, n) {
570
- return r === e ? !0 : r == null || e == null || !St(r) && !St(e) ? r !== r && e !== e : Bu(r, e, t, i, rr, n);
568
+ var Mu = Ru, Gu = Mu, Ct = Q;
569
+ function tr(r, e, t, i, n) {
570
+ return r === e ? !0 : r == null || e == null || !Ct(r) && !Ct(e) ? r !== r && e !== e : Gu(r, e, t, i, tr, n);
571
571
  }
572
- var ke = rr, zu = ke;
573
- function ju(r, e) {
574
- return zu(r, e);
572
+ var Ve = tr, Bu = Ve;
573
+ function zu(r, e) {
574
+ return Bu(r, e);
575
575
  }
576
- var Uu = ju;
577
- const Vu = /* @__PURE__ */ Me(Uu);
578
- var At = X, ku = ze, Hu = T, xt = At ? At.isConcatSpreadable : void 0;
579
- function Ku(r) {
580
- return Hu(r) || ku(r) || !!(xt && r && r[xt]);
576
+ var ju = zu;
577
+ const Uu = /* @__PURE__ */ Pe(ju);
578
+ var St = Z, Vu = Be, ku = F, At = St ? St.isConcatSpreadable : void 0;
579
+ function Hu(r) {
580
+ return ku(r) || Vu(r) || !!(At && r && r[At]);
581
581
  }
582
- var qu = Ku, Yu = Jt, Wu = qu;
583
- function ir(r, e, t, i, n) {
582
+ var Ku = Hu, qu = Wt, Yu = Ku;
583
+ function rr(r, e, t, i, n) {
584
584
  var s = -1, a = r.length;
585
- for (t || (t = Wu), n || (n = []); ++s < a; ) {
585
+ for (t || (t = Yu), n || (n = []); ++s < a; ) {
586
586
  var o = r[s];
587
- e > 0 && t(o) ? e > 1 ? ir(o, e - 1, t, i, n) : Yu(n, o) : i || (n[n.length] = o);
587
+ e > 0 && t(o) ? e > 1 ? rr(o, e - 1, t, i, n) : qu(n, o) : i || (n[n.length] = o);
588
588
  }
589
589
  return n;
590
590
  }
591
- var Ju = ir;
592
- function Zu(r, e) {
591
+ var Wu = rr;
592
+ function Ju(r, e) {
593
593
  for (var t = -1, i = r == null ? 0 : r.length, n = Array(i); ++t < i; )
594
594
  n[t] = e(r[t], t, r);
595
595
  return n;
596
596
  }
597
- var nr = Zu, Xu = Q, Qu = ee, el = "[object Symbol]";
598
- function tl(r) {
599
- return typeof r == "symbol" || Qu(r) && Xu(r) == el;
597
+ var ir = Ju, Zu = X, Xu = Q, Qu = "[object Symbol]";
598
+ function el(r) {
599
+ return typeof r == "symbol" || Xu(r) && Zu(r) == Qu;
600
600
  }
601
- var be = tl, rl = T, il = be, nl = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, sl = /^\w*$/;
602
- function al(r, e) {
603
- if (rl(r))
601
+ var be = el, tl = F, rl = be, il = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, nl = /^\w*$/;
602
+ function sl(r, e) {
603
+ if (tl(r))
604
604
  return !1;
605
605
  var t = typeof r;
606
- return t == "number" || t == "symbol" || t == "boolean" || r == null || il(r) ? !0 : sl.test(r) || !nl.test(r) || e != null && r in Object(e);
606
+ return t == "number" || t == "symbol" || t == "boolean" || r == null || rl(r) ? !0 : nl.test(r) || !il.test(r) || e != null && r in Object(e);
607
607
  }
608
- var He = al, sr = Be, ol = "Expected a function";
609
- function Ke(r, e) {
608
+ var ke = sl, nr = Ge, al = "Expected a function";
609
+ function He(r, e) {
610
610
  if (typeof r != "function" || e != null && typeof e != "function")
611
- throw new TypeError(ol);
611
+ throw new TypeError(al);
612
612
  var t = function() {
613
613
  var i = arguments, n = e ? e.apply(this, i) : i[0], s = t.cache;
614
614
  if (s.has(n))
@@ -616,56 +616,56 @@ function Ke(r, e) {
616
616
  var a = r.apply(this, i);
617
617
  return t.cache = s.set(n, a) || s, a;
618
618
  };
619
- return t.cache = new (Ke.Cache || sr)(), t;
619
+ return t.cache = new (He.Cache || nr)(), t;
620
620
  }
621
- Ke.Cache = sr;
622
- var ul = Ke, ll = ul, cl = 500;
621
+ He.Cache = nr;
622
+ var ol = He, ul = ol, ll = 500;
623
623
  function dl(r) {
624
- var e = ll(r, function(i) {
625
- return t.size === cl && t.clear(), i;
624
+ var e = ul(r, function(i) {
625
+ return t.size === ll && t.clear(), i;
626
626
  }), t = e.cache;
627
627
  return e;
628
628
  }
629
- var gl = dl, hl = gl, fl = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, pl = /\\(\\)?/g, bl = hl(function(r) {
629
+ var cl = dl, gl = cl, hl = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, fl = /\\(\\)?/g, pl = gl(function(r) {
630
630
  var e = [];
631
- return r.charCodeAt(0) === 46 && e.push(""), r.replace(fl, function(t, i, n, s) {
632
- e.push(n ? s.replace(pl, "$1") : i || t);
631
+ return r.charCodeAt(0) === 46 && e.push(""), r.replace(hl, function(t, i, n, s) {
632
+ e.push(n ? s.replace(fl, "$1") : i || t);
633
633
  }), e;
634
- }), yl = bl, Et = X, vl = nr, _l = T, ml = be, Cl = 1 / 0, Ft = Et ? Et.prototype : void 0, $t = Ft ? Ft.toString : void 0;
635
- function ar(r) {
634
+ }), bl = pl, xt = Z, yl = ir, vl = F, _l = be, Et = xt ? xt.prototype : void 0, Ft = Et ? Et.toString : void 0;
635
+ function sr(r) {
636
636
  if (typeof r == "string")
637
637
  return r;
638
+ if (vl(r))
639
+ return yl(r, sr) + "";
638
640
  if (_l(r))
639
- return vl(r, ar) + "";
640
- if (ml(r))
641
- return $t ? $t.call(r) : "";
641
+ return Ft ? Ft.call(r) : "";
642
642
  var e = r + "";
643
- return e == "0" && 1 / r == -Cl ? "-0" : e;
643
+ return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
644
644
  }
645
- var Sl = ar, Al = Sl;
646
- function xl(r) {
647
- return r == null ? "" : Al(r);
645
+ var ml = sr, Cl = ml;
646
+ function Sl(r) {
647
+ return r == null ? "" : Cl(r);
648
648
  }
649
- var El = xl, Fl = T, $l = He, Tl = yl, Nl = El;
650
- function Dl(r, e) {
651
- return Fl(r) ? r : $l(r, e) ? [r] : Tl(Nl(r));
649
+ var Al = Sl, xl = F, El = ke, Fl = bl, $l = Al;
650
+ function Tl(r, e) {
651
+ return xl(r) ? r : El(r, e) ? [r] : Fl($l(r));
652
652
  }
653
- var or = Dl, wl = be, Ol = 1 / 0;
654
- function Ll(r) {
655
- if (typeof r == "string" || wl(r))
653
+ var ar = Tl, Nl = be;
654
+ function Dl(r) {
655
+ if (typeof r == "string" || Nl(r))
656
656
  return r;
657
657
  var e = r + "";
658
- return e == "0" && 1 / r == -Ol ? "-0" : e;
658
+ return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
659
659
  }
660
- var ye = Ll, Il = or, Pl = ye;
661
- function Ml(r, e) {
662
- e = Il(e, r);
660
+ var ye = Dl, wl = ar, Ol = ye;
661
+ function Ll(r, e) {
662
+ e = wl(e, r);
663
663
  for (var t = 0, i = e.length; r != null && t < i; )
664
- r = r[Pl(e[t++])];
664
+ r = r[Ol(e[t++])];
665
665
  return t && t == i ? r : void 0;
666
666
  }
667
- var qe = Ml, Rl = Yt, Gl = ke, Bl = 1, zl = 2;
668
- function jl(r, e, t, i) {
667
+ var Ke = Ll, Il = qt, Pl = Ve, Rl = 1, Ml = 2;
668
+ function Gl(r, e, t, i) {
669
669
  var n = t.length, s = n, a = !i;
670
670
  if (r == null)
671
671
  return !s;
@@ -676,102 +676,102 @@ function jl(r, e, t, i) {
676
676
  }
677
677
  for (; ++n < s; ) {
678
678
  o = t[n];
679
- var l = o[0], c = r[l], d = o[1];
679
+ var l = o[0], d = r[l], c = o[1];
680
680
  if (a && o[2]) {
681
- if (c === void 0 && !(l in r))
681
+ if (d === void 0 && !(l in r))
682
682
  return !1;
683
683
  } else {
684
- var g = new Rl();
684
+ var g = new Il();
685
685
  if (i)
686
- var h = i(c, d, l, r, e, g);
687
- if (!(h === void 0 ? Gl(d, c, Bl | zl, i, g) : h))
686
+ var h = i(d, c, l, r, e, g);
687
+ if (!(h === void 0 ? Pl(c, d, Rl | Ml, i, g) : h))
688
688
  return !1;
689
689
  }
690
690
  }
691
691
  return !0;
692
692
  }
693
- var Ul = jl, Vl = ge;
694
- function kl(r) {
695
- return r === r && !Vl(r);
693
+ var Bl = Gl, zl = ge;
694
+ function jl(r) {
695
+ return r === r && !zl(r);
696
696
  }
697
- var ur = kl, Hl = ur, Kl = Ve;
698
- function ql(r) {
699
- for (var e = Kl(r), t = e.length; t--; ) {
697
+ var or = jl, Ul = or, Vl = Ue;
698
+ function kl(r) {
699
+ for (var e = Vl(r), t = e.length; t--; ) {
700
700
  var i = e[t], n = r[i];
701
- e[t] = [i, n, Hl(n)];
701
+ e[t] = [i, n, Ul(n)];
702
702
  }
703
703
  return e;
704
704
  }
705
- var Yl = ql;
706
- function Wl(r, e) {
705
+ var Hl = kl;
706
+ function Kl(r, e) {
707
707
  return function(t) {
708
708
  return t == null ? !1 : t[r] === e && (e !== void 0 || r in Object(t));
709
709
  };
710
710
  }
711
- var lr = Wl, Jl = Ul, Zl = Yl, Xl = lr;
712
- function Ql(r) {
713
- var e = Zl(r);
714
- return e.length == 1 && e[0][2] ? Xl(e[0][0], e[0][1]) : function(t) {
715
- return t === r || Jl(t, r, e);
711
+ var ur = Kl, ql = Bl, Yl = Hl, Wl = ur;
712
+ function Jl(r) {
713
+ var e = Yl(r);
714
+ return e.length == 1 && e[0][2] ? Wl(e[0][0], e[0][1]) : function(t) {
715
+ return t === r || ql(t, r, e);
716
716
  };
717
717
  }
718
- var ec = Ql, tc = qe;
719
- function rc(r, e, t) {
720
- var i = r == null ? void 0 : tc(r, e);
718
+ var Zl = Jl, Xl = Ke;
719
+ function Ql(r, e, t) {
720
+ var i = r == null ? void 0 : Xl(r, e);
721
721
  return i === void 0 ? t : i;
722
722
  }
723
- var ic = rc;
724
- function nc(r, e) {
723
+ var ed = Ql;
724
+ function td(r, e) {
725
725
  return r != null && e in Object(r);
726
726
  }
727
- var sc = nc, ac = or, oc = ze, uc = T, lc = je, cc = Ue, dc = ye;
728
- function gc(r, e, t) {
729
- e = ac(e, r);
727
+ var rd = td, id = ar, nd = Be, sd = F, ad = ze, od = je, ud = ye;
728
+ function ld(r, e, t) {
729
+ e = id(e, r);
730
730
  for (var i = -1, n = e.length, s = !1; ++i < n; ) {
731
- var a = dc(e[i]);
731
+ var a = ud(e[i]);
732
732
  if (!(s = r != null && t(r, a)))
733
733
  break;
734
734
  r = r[a];
735
735
  }
736
- return s || ++i != n ? s : (n = r == null ? 0 : r.length, !!n && cc(n) && lc(a, n) && (uc(r) || oc(r)));
736
+ return s || ++i != n ? s : (n = r == null ? 0 : r.length, !!n && od(n) && ad(a, n) && (sd(r) || nd(r)));
737
737
  }
738
- var hc = gc, fc = sc, pc = hc;
739
- function bc(r, e) {
740
- return r != null && pc(r, e, fc);
738
+ var dd = ld, cd = rd, gd = dd;
739
+ function hd(r, e) {
740
+ return r != null && gd(r, e, cd);
741
741
  }
742
- var yc = bc, vc = ke, _c = ic, mc = yc, Cc = He, Sc = ur, Ac = lr, xc = ye, Ec = 1, Fc = 2;
743
- function $c(r, e) {
744
- return Cc(r) && Sc(e) ? Ac(xc(r), e) : function(t) {
745
- var i = _c(t, r);
746
- return i === void 0 && i === e ? mc(t, r) : vc(e, i, Ec | Fc);
742
+ var fd = hd, pd = Ve, bd = ed, yd = fd, vd = ke, _d = or, md = ur, Cd = ye, Sd = 1, Ad = 2;
743
+ function xd(r, e) {
744
+ return vd(r) && _d(e) ? md(Cd(r), e) : function(t) {
745
+ var i = bd(t, r);
746
+ return i === void 0 && i === e ? yd(t, r) : pd(e, i, Sd | Ad);
747
747
  };
748
748
  }
749
- var Tc = $c;
750
- function Nc(r) {
749
+ var Ed = xd;
750
+ function Fd(r) {
751
751
  return r;
752
752
  }
753
- var ve = Nc;
754
- function Dc(r) {
753
+ var ve = Fd;
754
+ function $d(r) {
755
755
  return function(e) {
756
756
  return e == null ? void 0 : e[r];
757
757
  };
758
758
  }
759
- var wc = Dc, Oc = qe;
760
- function Lc(r) {
759
+ var Td = $d, Nd = Ke;
760
+ function Dd(r) {
761
761
  return function(e) {
762
- return Oc(e, r);
762
+ return Nd(e, r);
763
763
  };
764
764
  }
765
- var Ic = Lc, Pc = wc, Mc = Ic, Rc = He, Gc = ye;
766
- function Bc(r) {
767
- return Rc(r) ? Pc(Gc(r)) : Mc(r);
765
+ var wd = Dd, Od = Td, Ld = wd, Id = ke, Pd = ye;
766
+ function Rd(r) {
767
+ return Id(r) ? Od(Pd(r)) : Ld(r);
768
768
  }
769
- var zc = Bc, jc = ec, Uc = Tc, Vc = ve, kc = T, Hc = zc;
770
- function Kc(r) {
771
- return typeof r == "function" ? r : r == null ? Vc : typeof r == "object" ? kc(r) ? Uc(r[0], r[1]) : jc(r) : Hc(r);
769
+ var Md = Rd, Gd = Zl, Bd = Ed, zd = ve, jd = F, Ud = Md;
770
+ function Vd(r) {
771
+ return typeof r == "function" ? r : r == null ? zd : typeof r == "object" ? jd(r) ? Bd(r[0], r[1]) : Gd(r) : Ud(r);
772
772
  }
773
- var qc = Kc;
774
- function Yc(r) {
773
+ var kd = Vd;
774
+ function Hd(r) {
775
775
  return function(e, t, i) {
776
776
  for (var n = -1, s = Object(e), a = i(e), o = a.length; o--; ) {
777
777
  var l = a[r ? o : ++n];
@@ -781,81 +781,81 @@ function Yc(r) {
781
781
  return e;
782
782
  };
783
783
  }
784
- var Wc = Yc, Jc = Wc, Zc = Jc(), Xc = Zc, Qc = Xc, ed = Ve;
785
- function td(r, e) {
786
- return r && Qc(r, e, ed);
784
+ var Kd = Hd, qd = Kd, Yd = qd(), Wd = Yd, Jd = Wd, Zd = Ue;
785
+ function Xd(r, e) {
786
+ return r && Jd(r, e, Zd);
787
787
  }
788
- var rd = td, id = pe;
789
- function nd(r, e) {
788
+ var Qd = Xd, ec = pe;
789
+ function tc(r, e) {
790
790
  return function(t, i) {
791
791
  if (t == null)
792
792
  return t;
793
- if (!id(t))
793
+ if (!ec(t))
794
794
  return r(t, i);
795
795
  for (var n = t.length, s = e ? n : -1, a = Object(t); (e ? s-- : ++s < n) && i(a[s], s, a) !== !1; )
796
796
  ;
797
797
  return t;
798
798
  };
799
799
  }
800
- var sd = nd, ad = rd, od = sd, ud = od(ad), ld = ud, cd = ld, dd = pe;
801
- function gd(r, e) {
802
- var t = -1, i = dd(r) ? Array(r.length) : [];
803
- return cd(r, function(n, s, a) {
800
+ var rc = tc, ic = Qd, nc = rc, sc = nc(ic), ac = sc, oc = ac, uc = pe;
801
+ function lc(r, e) {
802
+ var t = -1, i = uc(r) ? Array(r.length) : [];
803
+ return oc(r, function(n, s, a) {
804
804
  i[++t] = e(n, s, a);
805
805
  }), i;
806
806
  }
807
- var hd = gd;
808
- function fd(r, e) {
807
+ var dc = lc;
808
+ function cc(r, e) {
809
809
  var t = r.length;
810
810
  for (r.sort(e); t--; )
811
811
  r[t] = r[t].value;
812
812
  return r;
813
813
  }
814
- var pd = fd, Tt = be;
815
- function bd(r, e) {
814
+ var gc = cc, $t = be;
815
+ function hc(r, e) {
816
816
  if (r !== e) {
817
- var t = r !== void 0, i = r === null, n = r === r, s = Tt(r), a = e !== void 0, o = e === null, l = e === e, c = Tt(e);
818
- if (!o && !c && !s && r > e || s && a && l && !o && !c || i && a && l || !t && l || !n)
817
+ var t = r !== void 0, i = r === null, n = r === r, s = $t(r), a = e !== void 0, o = e === null, l = e === e, d = $t(e);
818
+ if (!o && !d && !s && r > e || s && a && l && !o && !d || i && a && l || !t && l || !n)
819
819
  return 1;
820
- if (!i && !s && !c && r < e || c && t && n && !i && !s || o && t && n || !a && n || !l)
820
+ if (!i && !s && !d && r < e || d && t && n && !i && !s || o && t && n || !a && n || !l)
821
821
  return -1;
822
822
  }
823
823
  return 0;
824
824
  }
825
- var yd = bd, vd = yd;
826
- function _d(r, e, t) {
825
+ var fc = hc, pc = fc;
826
+ function bc(r, e, t) {
827
827
  for (var i = -1, n = r.criteria, s = e.criteria, a = n.length, o = t.length; ++i < a; ) {
828
- var l = vd(n[i], s[i]);
828
+ var l = pc(n[i], s[i]);
829
829
  if (l) {
830
830
  if (i >= o)
831
831
  return l;
832
- var c = t[i];
833
- return l * (c == "desc" ? -1 : 1);
832
+ var d = t[i];
833
+ return l * (d == "desc" ? -1 : 1);
834
834
  }
835
835
  }
836
836
  return r.index - e.index;
837
837
  }
838
- var md = _d, Se = nr, Cd = qe, Sd = qc, Ad = hd, xd = pd, Ed = Qt, Fd = md, $d = ve, Td = T;
839
- function Nd(r, e, t) {
838
+ var yc = bc, Se = ir, vc = Ke, _c = kd, mc = dc, Cc = gc, Sc = Xt, Ac = yc, xc = ve, Ec = F;
839
+ function Fc(r, e, t) {
840
840
  e.length ? e = Se(e, function(s) {
841
- return Td(s) ? function(a) {
842
- return Cd(a, s.length === 1 ? s[0] : s);
841
+ return Ec(s) ? function(a) {
842
+ return vc(a, s.length === 1 ? s[0] : s);
843
843
  } : s;
844
- }) : e = [$d];
844
+ }) : e = [xc];
845
845
  var i = -1;
846
- e = Se(e, Ed(Sd));
847
- var n = Ad(r, function(s, a, o) {
848
- var l = Se(e, function(c) {
849
- return c(s);
846
+ e = Se(e, Sc(_c));
847
+ var n = mc(r, function(s, a, o) {
848
+ var l = Se(e, function(d) {
849
+ return d(s);
850
850
  });
851
851
  return { criteria: l, index: ++i, value: s };
852
852
  });
853
- return xd(n, function(s, a) {
854
- return Fd(s, a, t);
853
+ return Cc(n, function(s, a) {
854
+ return Ac(s, a, t);
855
855
  });
856
856
  }
857
- var Dd = Nd;
858
- function wd(r, e, t) {
857
+ var $c = Fc;
858
+ function Tc(r, e, t) {
859
859
  switch (t.length) {
860
860
  case 0:
861
861
  return r.call(e);
@@ -868,67 +868,67 @@ function wd(r, e, t) {
868
868
  }
869
869
  return r.apply(e, t);
870
870
  }
871
- var Od = wd, Ld = Od, Nt = Math.max;
872
- function Id(r, e, t) {
873
- return e = Nt(e === void 0 ? r.length - 1 : e, 0), function() {
874
- for (var i = arguments, n = -1, s = Nt(i.length - e, 0), a = Array(s); ++n < s; )
871
+ var Nc = Tc, Dc = Nc, Tt = Math.max;
872
+ function wc(r, e, t) {
873
+ return e = Tt(e === void 0 ? r.length - 1 : e, 0), function() {
874
+ for (var i = arguments, n = -1, s = Tt(i.length - e, 0), a = Array(s); ++n < s; )
875
875
  a[n] = i[e + n];
876
876
  n = -1;
877
877
  for (var o = Array(e + 1); ++n < e; )
878
878
  o[n] = i[n];
879
- return o[e] = t(a), Ld(r, this, o);
879
+ return o[e] = t(a), Dc(r, this, o);
880
880
  };
881
881
  }
882
- var Pd = Id;
883
- function Md(r) {
882
+ var Oc = wc;
883
+ function Lc(r) {
884
884
  return function() {
885
885
  return r;
886
886
  };
887
887
  }
888
- var Rd = Md, Gd = R, Bd = function() {
888
+ var Ic = Lc, Pc = R, Rc = function() {
889
889
  try {
890
- var r = Gd(Object, "defineProperty");
890
+ var r = Pc(Object, "defineProperty");
891
891
  return r({}, "", {}), r;
892
892
  } catch {
893
893
  }
894
- }(), zd = Bd, jd = Rd, Dt = zd, Ud = ve, Vd = Dt ? function(r, e) {
895
- return Dt(r, "toString", {
894
+ }(), Mc = Rc, Gc = Ic, Nt = Mc, Bc = ve, zc = Nt ? function(r, e) {
895
+ return Nt(r, "toString", {
896
896
  configurable: !0,
897
897
  enumerable: !1,
898
- value: jd(e),
898
+ value: Gc(e),
899
899
  writable: !0
900
900
  });
901
- } : Ud, kd = Vd, Hd = 800, Kd = 16, qd = Date.now;
902
- function Yd(r) {
901
+ } : Bc, jc = zc, Uc = 800, Vc = 16, kc = Date.now;
902
+ function Hc(r) {
903
903
  var e = 0, t = 0;
904
904
  return function() {
905
- var i = qd(), n = Kd - (i - t);
905
+ var i = kc(), n = Vc - (i - t);
906
906
  if (t = i, n > 0) {
907
- if (++e >= Hd)
907
+ if (++e >= Uc)
908
908
  return arguments[0];
909
909
  } else
910
910
  e = 0;
911
911
  return r.apply(void 0, arguments);
912
912
  };
913
913
  }
914
- var Wd = Yd, Jd = kd, Zd = Wd, Xd = Zd(Jd), Qd = Xd, eg = ve, tg = Pd, rg = Qd;
915
- function ig(r, e) {
916
- return rg(tg(r, e, eg), r + "");
914
+ var Kc = Hc, qc = jc, Yc = Kc, Wc = Yc(qc), Jc = Wc, Zc = ve, Xc = Oc, Qc = Jc;
915
+ function eg(r, e) {
916
+ return Qc(Xc(r, e, Zc), r + "");
917
917
  }
918
- var ng = ig, sg = Re, ag = pe, og = je, ug = ge;
919
- function lg(r, e, t) {
920
- if (!ug(t))
918
+ var tg = eg, rg = Re, ig = pe, ng = ze, sg = ge;
919
+ function ag(r, e, t) {
920
+ if (!sg(t))
921
921
  return !1;
922
922
  var i = typeof e;
923
- return (i == "number" ? ag(t) && og(e, t.length) : i == "string" && e in t) ? sg(t[e], r) : !1;
923
+ return (i == "number" ? ig(t) && ng(e, t.length) : i == "string" && e in t) ? rg(t[e], r) : !1;
924
924
  }
925
- var cg = lg, dg = Ju, gg = Dd, hg = ng, wt = cg, fg = hg(function(r, e) {
925
+ var og = ag, ug = Wu, lg = $c, dg = tg, Dt = og, cg = dg(function(r, e) {
926
926
  if (r == null)
927
927
  return [];
928
928
  var t = e.length;
929
- return t > 1 && wt(r, e[0], e[1]) ? e = [] : t > 2 && wt(e[0], e[1], e[2]) && (e = [e[0]]), gg(r, dg(e, 1), []);
930
- }), pg = fg;
931
- const z = /* @__PURE__ */ Me(pg), bg = /\S+\.(gif|jpe?g|tiff|png|bmp|svg)$/i, yg = [
929
+ return t > 1 && Dt(r, e[0], e[1]) ? e = [] : t > 2 && Dt(e[0], e[1], e[2]) && (e = [e[0]]), lg(r, ug(e, 1), []);
930
+ }), gg = cg;
931
+ const G = /* @__PURE__ */ Pe(gg), hg = /\S+\.(gif|jpe?g|tiff|png|bmp|svg)$/i, fg = [
932
932
  "label",
933
933
  "Label",
934
934
  "name",
@@ -939,7 +939,7 @@ const z = /* @__PURE__ */ Me(pg), bg = /\S+\.(gif|jpe?g|tiff|png|bmp|svg)$/i, yg
939
939
  ];
940
940
  class u {
941
941
  static isEqual(e, t) {
942
- return Vu(e, t);
942
+ return Uu(e, t);
943
943
  }
944
944
  /**
945
945
  * Check that a value is defined : not null and not undefined
@@ -1131,7 +1131,7 @@ class u {
1131
1131
  * @return {boolean}
1132
1132
  */
1133
1133
  static isImage(e) {
1134
- return bg.test(e);
1134
+ return hg.test(e);
1135
1135
  }
1136
1136
  /**
1137
1137
  * Return true if the given string is an url with an image extension
@@ -1189,17 +1189,17 @@ class u {
1189
1189
  static formatCurrencyValue(e, t) {
1190
1190
  const i = e < 0 ? "- " : "";
1191
1191
  switch (t.format) {
1192
- case B.SYMBOL_COMMAS_DOT:
1192
+ case M.SYMBOL_COMMAS_DOT:
1193
1193
  return `${i}${t.symbol !== void 0 ? t.symbol + " " : ""}${u.formatNumberToCurrency(e, ",", ".")}`;
1194
- case B.SYMBOL_COMMAS:
1194
+ case M.SYMBOL_COMMAS:
1195
1195
  return `${i}${t.symbol !== void 0 ? t.symbol + " " : ""}${u.formatNumberToCurrency(e, ",")}`;
1196
- case B.DOTS_COMMA_SYMBOL:
1196
+ case M.DOTS_COMMA_SYMBOL:
1197
1197
  return `${i}${u.formatNumberToCurrency(e, ".", ",")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
1198
- case B.DOTS_SYMBOL:
1198
+ case M.DOTS_SYMBOL:
1199
1199
  return `${i}${u.formatNumberToCurrency(e, ".")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
1200
- case B.SPACES_COMMA_SYMBOL:
1200
+ case M.SPACES_COMMA_SYMBOL:
1201
1201
  return `${i}${u.formatNumberToCurrency(e, " ", ",")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
1202
- case B.SPACES_SYMBOL:
1202
+ case M.SPACES_SYMBOL:
1203
1203
  return `${i}${u.formatNumberToCurrency(e, " ")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
1204
1204
  default:
1205
1205
  throw Error(`Cannot format property value ${e}, unknown format ${t.format}.`);
@@ -1223,7 +1223,7 @@ class N {
1223
1223
  if (N.captionExist(n, t))
1224
1224
  return "categories" in e ? N.generateNodeCaption(e, t, i) || null : N.generateEdgeCaption(e, t, i) || null;
1225
1225
  if (e.properties !== void 0) {
1226
- const s = yg.find((a) => e.properties[a] !== void 0);
1226
+ const s = fg.find((a) => e.properties[a] !== void 0);
1227
1227
  if (s !== void 0 && u.isDefined(e.properties[s]))
1228
1228
  return `${u.getValueFromLkProperty(
1229
1229
  e.properties[s]
@@ -1246,7 +1246,7 @@ class N {
1246
1246
  new Date(e.value).getTime() + u.timezoneToMilliseconds(e.timezone)
1247
1247
  ).toISOString()
1248
1248
  );
1249
- } else if ((t == null ? void 0 : t.name) === yr.NUMBER && t.options !== void 0)
1249
+ } else if ((t == null ? void 0 : t.name) === br.NUMBER && t.options !== void 0)
1250
1250
  return u.formatCurrencyValue(e, t.options);
1251
1251
  return `${e}`.trim();
1252
1252
  }
@@ -1291,7 +1291,7 @@ class N {
1291
1291
  }), s.join(" - ").trim()) : "";
1292
1292
  }
1293
1293
  }
1294
- var cr = { exports: {} }, dr = { exports: {} };
1294
+ var lr = { exports: {} }, dr = { exports: {} };
1295
1295
  (function() {
1296
1296
  var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = {
1297
1297
  // Bit-wise rotation left
@@ -1357,16 +1357,16 @@ var cr = { exports: {} }, dr = { exports: {} };
1357
1357
  };
1358
1358
  dr.exports = e;
1359
1359
  })();
1360
- var vg = dr.exports, we = {
1360
+ var pg = dr.exports, De = {
1361
1361
  // UTF-8 encoding
1362
1362
  utf8: {
1363
1363
  // Convert a string to a byte array
1364
1364
  stringToBytes: function(r) {
1365
- return we.bin.stringToBytes(unescape(encodeURIComponent(r)));
1365
+ return De.bin.stringToBytes(unescape(encodeURIComponent(r)));
1366
1366
  },
1367
1367
  // Convert a byte array to a string
1368
1368
  bytesToString: function(r) {
1369
- return decodeURIComponent(escape(we.bin.bytesToString(r)));
1369
+ return decodeURIComponent(escape(De.bin.bytesToString(r)));
1370
1370
  }
1371
1371
  },
1372
1372
  // Binary encoding
@@ -1384,34 +1384,34 @@ var vg = dr.exports, we = {
1384
1384
  return e.join("");
1385
1385
  }
1386
1386
  }
1387
- }, Ot = we;
1387
+ }, wt = De;
1388
1388
  (function() {
1389
- var r = vg, e = Ot.utf8, t = Ot.bin, i = function(s) {
1389
+ var r = pg, e = wt.utf8, t = wt.bin, i = function(s) {
1390
1390
  s.constructor == String ? s = e.stringToBytes(s) : typeof Buffer < "u" && typeof Buffer.isBuffer == "function" && Buffer.isBuffer(s) ? s = Array.prototype.slice.call(s, 0) : Array.isArray(s) || (s = s.toString());
1391
- var a = r.bytesToWords(s), o = s.length * 8, l = [], c = 1732584193, d = -271733879, g = -1732584194, h = 271733878, y = -1009589776;
1391
+ var a = r.bytesToWords(s), o = s.length * 8, l = [], d = 1732584193, c = -271733879, g = -1732584194, h = 271733878, y = -1009589776;
1392
1392
  a[o >> 5] |= 128 << 24 - o % 32, a[(o + 64 >>> 9 << 4) + 15] = o;
1393
1393
  for (var m = 0; m < a.length; m += 16) {
1394
- for (var f = c, A = d, x = g, E = h, G = y, v = 0; v < 80; v++) {
1395
- if (v < 16)
1396
- l[v] = a[m + v];
1394
+ for (var p = d, x = c, $ = g, T = h, ee = y, _ = 0; _ < 80; _++) {
1395
+ if (_ < 16)
1396
+ l[_] = a[m + _];
1397
1397
  else {
1398
- var L = l[v - 3] ^ l[v - 8] ^ l[v - 14] ^ l[v - 16];
1399
- l[v] = L << 1 | L >>> 31;
1398
+ var O = l[_ - 3] ^ l[_ - 8] ^ l[_ - 14] ^ l[_ - 16];
1399
+ l[_] = O << 1 | O >>> 31;
1400
1400
  }
1401
- var br = (c << 5 | c >>> 27) + y + (l[v] >>> 0) + (v < 20 ? (d & g | ~d & h) + 1518500249 : v < 40 ? (d ^ g ^ h) + 1859775393 : v < 60 ? (d & g | d & h | g & h) - 1894007588 : (d ^ g ^ h) - 899497514);
1402
- y = h, h = g, g = d << 30 | d >>> 2, d = c, c = br;
1401
+ var pr = (d << 5 | d >>> 27) + y + (l[_] >>> 0) + (_ < 20 ? (c & g | ~c & h) + 1518500249 : _ < 40 ? (c ^ g ^ h) + 1859775393 : _ < 60 ? (c & g | c & h | g & h) - 1894007588 : (c ^ g ^ h) - 899497514);
1402
+ y = h, h = g, g = c << 30 | c >>> 2, c = d, d = pr;
1403
1403
  }
1404
- c += f, d += A, g += x, h += E, y += G;
1404
+ d += p, c += x, g += $, h += T, y += ee;
1405
1405
  }
1406
- return [c, d, g, h, y];
1406
+ return [d, c, g, h, y];
1407
1407
  }, n = function(s, a) {
1408
1408
  var o = r.wordsToBytes(i(s));
1409
1409
  return a && a.asBytes ? o : a && a.asString ? t.bytesToString(o) : r.bytesToHex(o);
1410
1410
  };
1411
- n._blocksize = 16, n._digestsize = 20, cr.exports = n;
1411
+ n._blocksize = 16, n._digestsize = 20, lr.exports = n;
1412
1412
  })();
1413
- var _g = cr.exports;
1414
- const oe = /* @__PURE__ */ Me(_g), $ = "#7f7f7f", Lt = [
1413
+ var bg = lr.exports;
1414
+ const oe = /* @__PURE__ */ Pe(bg), E = "#7f7f7f", Ot = [
1415
1415
  "#9467bd",
1416
1416
  "#e377c2",
1417
1417
  "#1f77b4",
@@ -1431,7 +1431,7 @@ const oe = /* @__PURE__ */ Me(_g), $ = "#7f7f7f", Lt = [
1431
1431
  "#ffbb78",
1432
1432
  "#c49c94"
1433
1433
  ];
1434
- class F {
1434
+ class A {
1435
1435
  constructor(e) {
1436
1436
  this.colorsCache = /* @__PURE__ */ new Map(), this._rulesMap = {}, this.refresh(e);
1437
1437
  }
@@ -1452,7 +1452,7 @@ class F {
1452
1452
  * Return the color for a node when style color is auto
1453
1453
  */
1454
1454
  static autoColor(e, t) {
1455
- return u.isDefined(e) ? Lt[F.getRandomUniqueColorPaletteIndex(e, Lt.length, t)] : $;
1455
+ return u.isDefined(e) ? Ot[A.getRandomUniqueColorPaletteIndex(e, Ot.length, t)] : E;
1456
1456
  }
1457
1457
  /**
1458
1458
  * Return a number from 0 to number of occurrence in a palette based on a property
@@ -1464,7 +1464,7 @@ class F {
1464
1464
  * Get color of a type
1465
1465
  */
1466
1466
  static getTypeColor(e, t) {
1467
- return typeof e.style.color == "object" && e.style.color.input[0] !== "properties" ? F.autoColor(t, e.style.color.ignoreCase) : !u.isDefined(e.input) && typeof e.style.color != "object" ? e.style.color : null;
1467
+ return typeof e.style.color == "object" && e.style.color.input[0] !== "properties" ? A.autoColor(t, e.style.color.ignoreCase) : !u.isDefined(e.input) && typeof e.style.color != "object" ? e.style.color : null;
1468
1468
  }
1469
1469
  /**
1470
1470
  * return the corresponding size to the value with a linear function
@@ -1501,7 +1501,7 @@ class F {
1501
1501
  return typeof e == "object" && (e == null ? void 0 : e.type) === "autoRange";
1502
1502
  }
1503
1503
  }
1504
- class J extends F {
1504
+ class W extends A {
1505
1505
  constructor(e) {
1506
1506
  super(e);
1507
1507
  }
@@ -1520,7 +1520,7 @@ class J extends F {
1520
1520
  */
1521
1521
  color(e) {
1522
1522
  if (!u.isDefined(e))
1523
- return $;
1523
+ return E;
1524
1524
  let t;
1525
1525
  for (let i = 0; i < this._rulesMap.color.length; ++i) {
1526
1526
  const n = this._rulesMap.color[i];
@@ -1529,12 +1529,12 @@ class J extends F {
1529
1529
  t = n.style.color;
1530
1530
  else if (typeof n.style.color == "object") {
1531
1531
  const s = u.getIn(e, n.style.color.input);
1532
- t = F.autoColor(`${s}`, n.style.color.ignoreCase);
1532
+ t = A.autoColor(`${s}`, n.style.color.ignoreCase);
1533
1533
  }
1534
1534
  break;
1535
1535
  }
1536
1536
  }
1537
- return u.isDefined(t) ? t : $;
1537
+ return u.isDefined(t) ? t : E;
1538
1538
  }
1539
1539
  /**
1540
1540
  * Generate shape for a given node
@@ -1542,20 +1542,20 @@ class J extends F {
1542
1542
  shape(e) {
1543
1543
  var t;
1544
1544
  if (this._rulesMap.shape !== void 0)
1545
- return (t = J.matchStyle(this._rulesMap.shape, e)) == null ? void 0 : t.style.shape;
1545
+ return (t = W.matchStyle(this._rulesMap.shape, e)) == null ? void 0 : t.style.shape;
1546
1546
  }
1547
1547
  /**
1548
1548
  * Generate size for a given node
1549
1549
  */
1550
1550
  width(e) {
1551
1551
  if (this._rulesMap.width !== void 0) {
1552
- const t = J.matchStyle(this._rulesMap.width, e);
1552
+ const t = W.matchStyle(this._rulesMap.width, e);
1553
1553
  if (t !== void 0) {
1554
1554
  const i = t == null ? void 0 : t.style.width;
1555
1555
  if (i !== void 0 && this.isAutoRange(i)) {
1556
1556
  if (i.input !== void 0 && i.max !== void 0 && i.min !== void 0) {
1557
- const n = i.input[1], s = u.parseNumber(e.properties[n]), a = i.scale && i.scale === Vt.LOGARITHMIC;
1558
- return J.getAutomaticRangeWidth(s, t, a);
1557
+ const n = i.input[1], s = u.parseNumber(e.properties[n]), a = i.scale && i.scale === Ut.LOGARITHMIC;
1558
+ return W.getAutomaticRangeWidth(s, t, a);
1559
1559
  }
1560
1560
  } else
1561
1561
  return i;
@@ -1592,13 +1592,13 @@ class J extends F {
1592
1592
  shape: this.shape(e),
1593
1593
  width: this.width(e)
1594
1594
  } : {
1595
- color: $,
1596
- shape: vr.ARROW,
1595
+ color: E,
1596
+ shape: yr.ARROW,
1597
1597
  width: "100%"
1598
1598
  };
1599
1599
  }
1600
1600
  }
1601
- class U extends F {
1601
+ class z extends A {
1602
1602
  constructor(e) {
1603
1603
  super(e);
1604
1604
  }
@@ -1619,7 +1619,7 @@ class U extends F {
1619
1619
  */
1620
1620
  color(e) {
1621
1621
  if (!u.isDefined(e))
1622
- return [$];
1622
+ return [E];
1623
1623
  const t = oe(JSON.stringify(e)), i = this.colorsCache.get(t);
1624
1624
  if (i !== void 0)
1625
1625
  return i;
@@ -1627,19 +1627,19 @@ class U extends F {
1627
1627
  for (let a = 0; a < e.categories.length; ++a) {
1628
1628
  let o = null;
1629
1629
  for (let l = 0; l < this._rulesMap.color.length; ++l) {
1630
- const c = this._rulesMap.color[l];
1631
- if (!(c.itemType !== void 0 && c.itemType !== null && c.itemType !== e.categories[a]) && c.canApplyTo(e)) {
1632
- if (typeof c.style.color == "object") {
1633
- const d = u.getIn(e, c.style.color.input);
1634
- Array.isArray(d) ? o = F.autoColor(e.categories[a], c.style.color.ignoreCase) : o = F.autoColor(`${d}`, c.style.color.ignoreCase);
1630
+ const d = this._rulesMap.color[l];
1631
+ if (!(d.itemType !== void 0 && d.itemType !== null && d.itemType !== e.categories[a]) && d.canApplyTo(e)) {
1632
+ if (typeof d.style.color == "object") {
1633
+ const c = u.getIn(e, d.style.color.input);
1634
+ Array.isArray(c) ? o = A.autoColor(e.categories[a], d.style.color.ignoreCase) : o = A.autoColor(`${c}`, d.style.color.ignoreCase);
1635
1635
  } else
1636
- o = c.style.color;
1636
+ o = d.style.color;
1637
1637
  break;
1638
1638
  }
1639
1639
  }
1640
1640
  n.push(o);
1641
1641
  }
1642
- n = n.filter((a) => u.isDefined(a)), n.length === 0 && (n = [$]);
1642
+ n = n.filter((a) => u.isDefined(a)), n.length === 0 && (n = [E]);
1643
1643
  const s = n.length === 1 ? n[0] : n;
1644
1644
  return this.colorsCache.set(t, s), s;
1645
1645
  }
@@ -1658,28 +1658,28 @@ class U extends F {
1658
1658
  };
1659
1659
  for (let l = 0; l < s.length; ++l)
1660
1660
  if (s[l].canApplyTo(e)) {
1661
- const c = s[l].style;
1662
- if ("icon" in c && typeof c.icon == "object")
1661
+ const d = s[l].style;
1662
+ if ("icon" in d && typeof d.icon == "object")
1663
1663
  n = {
1664
1664
  icon: {
1665
- content: (a = c.icon) == null ? void 0 : a.content,
1666
- font: (o = c.icon) == null ? void 0 : o.font,
1665
+ content: (a = d.icon) == null ? void 0 : a.content,
1666
+ font: (o = d.icon) == null ? void 0 : o.font,
1667
1667
  scale: 0.5,
1668
- color: O.isBright(i) ? "#000000" : "#FFFFFF"
1668
+ color: j.isBright(i) ? "#000000" : "#FFFFFF"
1669
1669
  }
1670
1670
  };
1671
- else if ("image" in c && typeof c.image == "object") {
1672
- const d = U.getImageUrlFromStyleRule(
1673
- c.image.url,
1671
+ else if ("image" in d && typeof d.image == "object") {
1672
+ const c = z.getImageUrlFromStyleRule(
1673
+ d.image.url,
1674
1674
  e,
1675
1675
  this._baseUrl
1676
1676
  );
1677
- d !== void 0 && (n = {
1677
+ c !== void 0 && (n = {
1678
1678
  image: {
1679
- url: d,
1680
- scale: c.image.scale,
1681
- fit: c.image.fit,
1682
- tile: c.image.tile,
1679
+ url: c,
1680
+ scale: d.image.scale,
1681
+ fit: d.image.fit,
1682
+ tile: d.image.tile,
1683
1683
  minVisibleSize: 0
1684
1684
  }
1685
1685
  });
@@ -1693,7 +1693,7 @@ class U extends F {
1693
1693
  */
1694
1694
  shape(e) {
1695
1695
  let t;
1696
- return this._rulesMap.shape !== void 0 && U.matchStyle(this._rulesMap.shape, e, (i) => {
1696
+ return this._rulesMap.shape !== void 0 && z.matchStyle(this._rulesMap.shape, e, (i) => {
1697
1697
  t = i.style.shape;
1698
1698
  }), t;
1699
1699
  }
@@ -1702,15 +1702,15 @@ class U extends F {
1702
1702
  */
1703
1703
  size(e) {
1704
1704
  let t;
1705
- return this._rulesMap.size !== void 0 && U.matchStyle(
1705
+ return this._rulesMap.size !== void 0 && z.matchStyle(
1706
1706
  this._rulesMap.size,
1707
1707
  e,
1708
1708
  (i) => {
1709
1709
  const n = i.style.size;
1710
1710
  if (this.isAutoRange(n)) {
1711
1711
  if (n.input !== void 0 && n.max !== void 0 && n.min !== void 0) {
1712
- const s = n.input[1], a = u.parseNumber(e.properties[s]), o = n.scale && n.scale === Vt.LOGARITHMIC;
1713
- t = U.getAutomaticRangeSize(a, i, o);
1712
+ const s = n.input[1], a = u.parseNumber(e.properties[s]), o = n.scale && n.scale === Ut.LOGARITHMIC;
1713
+ t = z.getAutomaticRangeSize(a, i, o);
1714
1714
  }
1715
1715
  } else
1716
1716
  t = n;
@@ -1744,7 +1744,7 @@ class U extends F {
1744
1744
  all(e) {
1745
1745
  if (!u.isDefined(e))
1746
1746
  return {
1747
- color: $
1747
+ color: E
1748
1748
  };
1749
1749
  const t = this.icon(e);
1750
1750
  return {
@@ -1773,7 +1773,7 @@ class U extends F {
1773
1773
  this._baseUrl = e;
1774
1774
  }
1775
1775
  }
1776
- var mg = /* @__PURE__ */ ((r) => (r.AUTO_RANGE = "autoRange", r))(mg || {});
1776
+ var yg = /* @__PURE__ */ ((r) => (r.AUTO_RANGE = "autoRange", r))(yg || {});
1777
1777
  class C {
1778
1778
  constructor(e) {
1779
1779
  this.type = e.type, this.input = e.input, this.index = e.index, this.itemType = e.itemType, this.style = e.style, this.value = e.value;
@@ -1902,12 +1902,12 @@ class C {
1902
1902
  */
1903
1903
  getTypeColor(e) {
1904
1904
  let t;
1905
- return C.checkItemType([e], this.itemType) && this.type === S.ANY && !u.isDefined(this.input) && (t = F.getTypeColor(this, e)), t;
1905
+ return C.checkItemType([e], this.itemType) && this.type === S.ANY && !u.isDefined(this.input) && (t = A.getTypeColor(this, e)), t;
1906
1906
  }
1907
1907
  }
1908
1908
  var w = /* @__PURE__ */ ((r) => (r.COLOR = "color", r.ICON = "icon", r.SIZE = "size", r.IMAGE = "image", r.SHAPE = "shape", r.WIDTH = "width", r))(w || {});
1909
- const j = ["specificity", "itemType", "index"];
1910
- class p {
1909
+ const B = ["specificity", "itemType", "index"];
1910
+ class f {
1911
1911
  constructor(e) {
1912
1912
  this._rules = e;
1913
1913
  }
@@ -1917,7 +1917,7 @@ class p {
1917
1917
  * @return {Array<StyleRule>}
1918
1918
  */
1919
1919
  get color() {
1920
- return z(p.getBy("color", this._rules), j);
1920
+ return G(f.getBy("color", this._rules), B);
1921
1921
  }
1922
1922
  /**
1923
1923
  * Return an array of StyleRule with only 'icon' rules and sorted by specificity, itemType and index
@@ -1925,12 +1925,12 @@ class p {
1925
1925
  * @return {Array<StyleRule>}
1926
1926
  */
1927
1927
  get icon() {
1928
- return z(
1928
+ return G(
1929
1929
  [
1930
- ...p.getBy("icon", this._rules) || [],
1931
- ...p.getBy("image", this._rules) || []
1930
+ ...f.getBy("icon", this._rules) || [],
1931
+ ...f.getBy("image", this._rules) || []
1932
1932
  ],
1933
- j
1933
+ B
1934
1934
  );
1935
1935
  }
1936
1936
  /**
@@ -1939,7 +1939,7 @@ class p {
1939
1939
  * @return {Array<StyleRule>}
1940
1940
  */
1941
1941
  get image() {
1942
- return z(p.getBy("image", this._rules), j);
1942
+ return G(f.getBy("image", this._rules), B);
1943
1943
  }
1944
1944
  /**
1945
1945
  * Return an array of StyleRule with only 'shape' rules and sorted by specificity, itemType and index
@@ -1947,7 +1947,7 @@ class p {
1947
1947
  * @return {Array<StyleRule>}
1948
1948
  */
1949
1949
  get shape() {
1950
- return z(p.getBy("shape", this._rules), j);
1950
+ return G(f.getBy("shape", this._rules), B);
1951
1951
  }
1952
1952
  /**
1953
1953
  * Return an array of StyleRule with only 'size' rules and sorted by specificity, itemType and index
@@ -1955,7 +1955,7 @@ class p {
1955
1955
  * @return {Array<StyleRule>}
1956
1956
  */
1957
1957
  get size() {
1958
- return z(p.getBy("size", this._rules), j);
1958
+ return G(f.getBy("size", this._rules), B);
1959
1959
  }
1960
1960
  /**
1961
1961
  * Return an array of StyleRule with only 'width' rules and sorted by specificity, itemType and index
@@ -1963,7 +1963,7 @@ class p {
1963
1963
  * @return {Array<StyleRule>}
1964
1964
  */
1965
1965
  get width() {
1966
- return z(p.getBy("width", this._rules), j);
1966
+ return G(f.getBy("width", this._rules), B);
1967
1967
  }
1968
1968
  /**
1969
1969
  * Return an object containing for each node style a sorted array of StyleRule
@@ -1997,13 +1997,13 @@ class p {
1997
1997
  generateLegend(e) {
1998
1998
  const t = {};
1999
1999
  return e.length === 0 || ("categories" in e[0] ? Object.keys(this.nodeRules).forEach((i) => {
2000
- t[i] = p.getLegendForStyle(
2000
+ t[i] = f.getLegendForStyle(
2001
2001
  i,
2002
2002
  this.nodeRules[i],
2003
2003
  e
2004
2004
  );
2005
2005
  }) : Object.keys(this.edgeRules).forEach((i) => {
2006
- t[i] = p.getLegendForStyle(
2006
+ t[i] = f.getLegendForStyle(
2007
2007
  i,
2008
2008
  this.edgeRules[i],
2009
2009
  e
@@ -2017,18 +2017,18 @@ class p {
2017
2017
  const n = [], s = i.filter((a) => a);
2018
2018
  for (let a = 0; a < t.length; a++) {
2019
2019
  const o = new C(t[a]);
2020
- if (s.some((c) => o.canApplyTo(c)))
2020
+ if (s.some((d) => o.canApplyTo(d)))
2021
2021
  if (e === "color" && typeof o.style.color == "object")
2022
- p.addLegendAutoColors(s, o, n);
2022
+ f.addLegendAutoColors(s, o, n);
2023
2023
  else if (e === "icon" && "image" in o.style) {
2024
- const c = u.isDefined(o.input) ? `${p.getTypeLabel(o.itemType)}.${o.input[1]} ${p.sanitizeValue(o.type, o.value)}` : `${p.getTypeLabel(o.itemType)}`, d = o.style.image;
2025
- if (!(d.url && typeof d.url == "object" && d.url.type === "data")) {
2024
+ const d = u.isDefined(o.input) ? `${f.getTypeLabel(o.itemType)}.${o.input[1]} ${f.sanitizeValue(o.type, o.value)}` : `${f.getTypeLabel(o.itemType)}`, c = o.style.image;
2025
+ if (!(c.url && typeof c.url == "object" && c.url.type === "data")) {
2026
2026
  const g = o.style.image;
2027
- p.updateLegend(n, { label: c, value: g });
2027
+ f.updateLegend(n, { label: d, value: g });
2028
2028
  }
2029
2029
  } else {
2030
- const c = u.isDefined(o.input) ? `${p.getTypeLabel(o.itemType)}.${o.input[1]} ${p.sanitizeValue(o.type, o.value)}` : `${p.getTypeLabel(o.itemType)}`, d = o.style[e];
2031
- p.updateLegend(n, { label: c, value: d });
2030
+ const d = u.isDefined(o.input) ? `${f.getTypeLabel(o.itemType)}.${o.input[1]} ${f.sanitizeValue(o.type, o.value)}` : `${f.getTypeLabel(o.itemType)}`, c = o.style[e];
2031
+ f.updateLegend(n, { label: d, value: c });
2032
2032
  }
2033
2033
  }
2034
2034
  return n;
@@ -2059,12 +2059,12 @@ class p {
2059
2059
  const o = u.getIn(a, n.input);
2060
2060
  if (Array.isArray(o))
2061
2061
  o.forEach((l) => {
2062
- const c = n.input.includes("properties") ? `${p.getTypeLabel(t.itemType)}.${s} = ${l}` : `${p.getTypeLabel(l)}`, d = F.autoColor(l, n.ignoreCase);
2063
- p.updateLegend(i, { label: c, value: d });
2062
+ const d = n.input.includes("properties") ? `${f.getTypeLabel(t.itemType)}.${s} = ${l}` : `${f.getTypeLabel(l)}`, c = A.autoColor(l, n.ignoreCase);
2063
+ f.updateLegend(i, { label: d, value: c });
2064
2064
  });
2065
2065
  else {
2066
- const l = n.input.includes("properties") ? `${p.getTypeLabel(t.itemType)}.${s} = ${o}` : `${p.getTypeLabel(o)}`, c = F.autoColor(o, n.ignoreCase);
2067
- p.updateLegend(i, { label: l, value: c });
2066
+ const l = n.input.includes("properties") ? `${f.getTypeLabel(t.itemType)}.${s} = ${o}` : `${f.getTypeLabel(o)}`, d = A.autoColor(o, n.ignoreCase);
2067
+ f.updateLegend(i, { label: l, value: d });
2068
2068
  }
2069
2069
  });
2070
2070
  }
@@ -2079,7 +2079,7 @@ class p {
2079
2079
  */
2080
2080
  getColorForType(e) {
2081
2081
  const t = this.color.map((i) => i.getTypeColor(e)).filter((i) => u.isDefined(i));
2082
- return t.length > 0 ? t[t.length - 1] : $;
2082
+ return t.length > 0 ? t[t.length - 1] : E;
2083
2083
  }
2084
2084
  /**
2085
2085
  * Return the icon of item type from the list of styles
@@ -2117,7 +2117,7 @@ class p {
2117
2117
  case "width":
2118
2118
  return "width" in i.style && i.style.width !== void 0;
2119
2119
  }
2120
- }).map((i) => p.getRule(i, e));
2120
+ }).map((i) => f.getRule(i, e));
2121
2121
  }
2122
2122
  /**
2123
2123
  * From a RawStyle, generate a StyleRule of a specific style
@@ -2275,7 +2275,7 @@ const Ae = {
2275
2275
  sienna: { hex: "#A0522D", rgb: "rgb(160,82,45)" },
2276
2276
  brown: { hex: "#A52A2A", rgb: "rgb(165,42,42)" },
2277
2277
  maroon: { hex: "#800000", rgb: "rgb(128,0,0)" }
2278
- }, ue = "#3F3D5F", gr = "'roboto', sans-serif", le = "#FFF", It = 0.2, Pt = {
2278
+ }, ue = "#3F3D5F", cr = "'roboto', sans-serif", le = "#FFF", Lt = 0.2, It = {
2279
2279
  text: {
2280
2280
  style: "bold",
2281
2281
  backgroundColor: "#fff",
@@ -2283,27 +2283,27 @@ const Ae = {
2283
2283
  },
2284
2284
  outerStroke: { width: 2 },
2285
2285
  outline: !1
2286
- }, Mt = {
2286
+ }, Pt = {
2287
2287
  text: {
2288
2288
  style: "bold",
2289
2289
  backgroundColor: "#fff",
2290
2290
  minVisibleSize: 0
2291
2291
  },
2292
2292
  outline: !1
2293
- }, Cg = {
2293
+ }, vg = {
2294
2294
  color: "#FFF",
2295
2295
  width: 7,
2296
2296
  scalingMethod: "scaled",
2297
2297
  strokeWidth: 0,
2298
2298
  hideNonAdjacentEdges: !1
2299
- }, Sg = {
2299
+ }, _g = {
2300
2300
  color: "#FFF",
2301
2301
  scalingMethod: "scaled",
2302
2302
  width: 4
2303
2303
  }, Rt = "#7f7f7f";
2304
- class Ag {
2304
+ class mg {
2305
2305
  constructor(e, t) {
2306
- this._nodeAttributes = new U({}), this._edgeAttributes = new J({}), this._ogma = e, this._defaultConfiguration = t, this._nodeAttributes.setBaseUrl(t.baseUrl);
2306
+ this._nodeAttributes = new z({}), this._edgeAttributes = new W({}), this._ogma = e, this._defaultConfiguration = t, this._nodeAttributes.setBaseUrl(t.baseUrl);
2307
2307
  }
2308
2308
  get nodeAttributes() {
2309
2309
  return this._nodeAttributes;
@@ -2316,7 +2316,7 @@ class Ag {
2316
2316
  * Set nodes default styles based on the configuration
2317
2317
  */
2318
2318
  setNodesDefaultStyles() {
2319
- this._ogma.styles.setHoveredNodeAttributes(Pt), this._ogma.styles.setSelectedNodeAttributes(Pt), this._nodeDefaultStylesRules = this._ogma.styles.addRule({
2319
+ this._ogma.styles.setHoveredNodeAttributes(It), this._ogma.styles.setSelectedNodeAttributes(It), this._nodeDefaultStylesRules = this._ogma.styles.addRule({
2320
2320
  nodeAttributes: {
2321
2321
  text: {
2322
2322
  padding: 5,
@@ -2348,7 +2348,7 @@ class Ag {
2348
2348
  */
2349
2349
  setEdgesDefaultStyles() {
2350
2350
  var e;
2351
- this._ogma.styles.setHoveredEdgeAttributes(Mt), this._ogma.styles.setSelectedEdgeAttributes(Mt), this._edgeDefaultStylesRules = this._ogma.styles.addRule({
2351
+ this._ogma.styles.setHoveredEdgeAttributes(Pt), this._ogma.styles.setSelectedEdgeAttributes(Pt), this._edgeDefaultStylesRules = this._ogma.styles.addRule({
2352
2352
  edgeAttributes: {
2353
2353
  text: {
2354
2354
  minVisibleSize: this._defaultConfiguration.edge.text !== void 0 && this._defaultConfiguration.edge.text.minVisibleSize ? this._defaultConfiguration.edge.text.minVisibleSize : 3,
@@ -2372,7 +2372,7 @@ class Ag {
2372
2372
  nodeSelector: (e) => e && !e.hasClass("filtered") && !e.isVirtual(),
2373
2373
  nodeAttributes: {
2374
2374
  halo: (e) => e !== void 0 && !e.hasClass("filtered") && (e.isSelected() || e.getAdjacentNodes({}).isSelected().includes(!0) || e.getAdjacentEdges().isSelected().includes(!0)) ? {
2375
- ...Cg,
2375
+ ...vg,
2376
2376
  scalingMethod: this._ogma.geo.enabled() ? "fixed" : "scaled"
2377
2377
  } : null
2378
2378
  },
@@ -2399,7 +2399,7 @@ class Ag {
2399
2399
  edgeSelector: (e) => e && e.getSource() && e.getTarget() && !e.hasClass("filtered"),
2400
2400
  edgeAttributes: {
2401
2401
  halo: (e) => e && !e.hasClass("filtered") && (e.isSelected() || e.getSource().isSelected() || e.getTarget().isSelected()) ? {
2402
- ...Sg,
2402
+ ..._g,
2403
2403
  scalingMethod: this._ogma.geo.enabled() ? "fixed" : "scaled"
2404
2404
  } : null
2405
2405
  },
@@ -2444,7 +2444,7 @@ class Ag {
2444
2444
  this._ogma.styles.createClass({
2445
2445
  name: "filtered",
2446
2446
  nodeAttributes: {
2447
- opacity: It,
2447
+ opacity: Lt,
2448
2448
  layer: (e) => e.getMetaNode() !== null ? 1 : -1,
2449
2449
  detectable: !1,
2450
2450
  badges: {
@@ -2459,7 +2459,7 @@ class Ag {
2459
2459
  color: "rgb(240, 240, 240)",
2460
2460
  innerStroke: {
2461
2461
  width: 1,
2462
- color: $,
2462
+ color: E,
2463
2463
  minVisibleSize: 1
2464
2464
  },
2465
2465
  shape: "circle",
@@ -2468,14 +2468,14 @@ class Ag {
2468
2468
  radius: "50%"
2469
2469
  },
2470
2470
  edgeAttributes: {
2471
- opacity: It,
2471
+ opacity: Lt,
2472
2472
  layer: (e) => {
2473
2473
  const t = e.getExtremities().getMetaNode().some((i) => i !== null);
2474
2474
  return !e.isVirtual() && t ? 1 : -1;
2475
2475
  },
2476
2476
  detectable: !1,
2477
2477
  text: null,
2478
- color: $,
2478
+ color: E,
2479
2479
  shape: "line",
2480
2480
  width: 0.2
2481
2481
  }
@@ -2533,7 +2533,7 @@ class Ag {
2533
2533
  color: "#FFFFFF"
2534
2534
  },
2535
2535
  text: {
2536
- font: this._defaultConfiguration.node.text !== void 0 && this._defaultConfiguration.node.text.font !== void 0 ? this._defaultConfiguration.node.text.font : gr,
2536
+ font: this._defaultConfiguration.node.text !== void 0 && this._defaultConfiguration.node.text.font !== void 0 ? this._defaultConfiguration.node.text.font : cr,
2537
2537
  scale: 0.4,
2538
2538
  color: le,
2539
2539
  content: s
@@ -2544,40 +2544,44 @@ class Ag {
2544
2544
  }
2545
2545
  }
2546
2546
  }
2547
- }), this._ogma.styles.createClass({
2548
- name: "pinnedIndicator",
2547
+ }), this._ogma.events.on("addNodes", (e) => e.nodes.addClass("degreeIndicator"));
2548
+ }
2549
+ /**
2550
+ * Used in other repos to refresh the pin badge style rule
2551
+ * LKE-13639: we are using a style rule instead of an Ogma class to get the right size of the nodes when calling _findPinBadgeScale
2552
+ */
2553
+ async refreshPinBadgeStyleRule() {
2554
+ u.isDefined(this._pinnedIndicatorRule) ? (await this._pinnedIndicatorRule.refresh(), this._pinnedIndicatorRule.update({
2555
+ // @ts-ignore Suggested by Ogma team to increase the priority of the rule
2556
+ priority: 100
2557
+ })) : (this._pinnedIndicatorRule = this._ogma.styles.addRule({
2558
+ nodeSelector: (e) => !e.getAttribute("layoutable"),
2549
2559
  nodeAttributes: {
2550
2560
  badges: {
2551
- topRight: (e) => {
2552
- if (e !== void 0 && !e.getAttribute("layoutable"))
2553
- return {
2554
- color: ue,
2555
- minVisibleSize: 20,
2556
- scale: this._findPinBadgeScale(e),
2557
- stroke: {
2558
- width: 2,
2559
- color: "#FFFFFF"
2560
- },
2561
- text: {
2562
- font: "FontAwesome",
2563
- scale: 0.4,
2564
- color: le,
2565
- content: e.getAttribute("layoutable") ? null : ""
2566
- }
2567
- };
2568
- }
2561
+ topRight: (e) => ({
2562
+ color: ue,
2563
+ minVisibleSize: 20,
2564
+ scale: this._findPinBadgeScale(e),
2565
+ stroke: {
2566
+ width: 2,
2567
+ color: "#FFFFFF"
2568
+ },
2569
+ text: {
2570
+ font: "FontAwesome",
2571
+ scale: 0.4,
2572
+ color: le,
2573
+ content: ""
2574
+ }
2575
+ })
2569
2576
  }
2570
2577
  },
2571
2578
  nodeDependencies: {
2572
2579
  self: { attributes: ["layoutable"] }
2573
2580
  }
2574
- }), this._ogma.events.on("addNodes", (e) => e.nodes.addClass("degreeIndicator")), this._ogma.events.on("addNodes", (e) => e.nodes.addClass("pinnedIndicator"));
2575
- }
2576
- /**
2577
- * Delete the rule to display badges
2578
- */
2579
- deleteBadgeRule() {
2580
- this._ogma.getNodes().removeClasses(["degreeIndicator", "pinnedIndicator"], 0);
2581
+ }), this._pinnedIndicatorRule.update({
2582
+ // @ts-ignore Suggested by Ogma team to increase the priority of the rule
2583
+ priority: 100
2584
+ }));
2581
2585
  }
2582
2586
  /**
2583
2587
  * set text overlap to true or false
@@ -2613,7 +2617,7 @@ class Ag {
2613
2617
  * Return an array of StyleRules with only the style that need to be applied
2614
2618
  */
2615
2619
  getStyleRule(e, t) {
2616
- return new p(e)[t];
2620
+ return new f(e)[t];
2617
2621
  }
2618
2622
  initNodeColors(e) {
2619
2623
  const t = this.getStyleRule(
@@ -2775,20 +2779,14 @@ class Ag {
2775
2779
  }
2776
2780
  /**
2777
2781
  * Get node radius
2778
- * This is a workaround for an ogma issue where the radius of virtual nodes is always set to 5.
2782
+ * This is a workaround for an ogma issue where the radius of virtual nodes is always set to 5.x
2779
2783
  * The issue is still present in Ogma 5.2
2780
2784
  */
2781
2785
  _getNodeRadius(e) {
2782
- var t;
2783
- if (!e.isVirtual() && O.isGroupCollapsed(e))
2784
- return e.getAttribute("radius");
2785
- {
2786
- const { width: i, height: n } = (t = e.getSubNodes()) == null ? void 0 : t.getBoundingBox();
2787
- return Math.max(i, n);
2788
- }
2786
+ return !e.isVirtual() || j.isGroupCollapsed(e) ? e.getAttribute("radius") : this._ogma.transformations.getXYR(e.toList())[0].radius;
2789
2787
  }
2790
2788
  }
2791
- class xg {
2789
+ class Cg {
2792
2790
  constructor(e, t, i) {
2793
2791
  this._nodeMaxTextLength = t, this._edgeMaxTextLength = i, this._captionSchema = { node: {}, edge: {} }, this._graphSchema = { node: [], edge: [] }, this._ogma = e;
2794
2792
  }
@@ -2862,15 +2860,15 @@ class xg {
2862
2860
  return this.edgesCaptionsRule.refresh();
2863
2861
  }
2864
2862
  }
2865
- function M(r) {
2863
+ function P(r) {
2866
2864
  return typeof r == "function";
2867
2865
  }
2868
- function Eg(r) {
2869
- return M(r == null ? void 0 : r.lift);
2866
+ function Sg(r) {
2867
+ return P(r == null ? void 0 : r.lift);
2870
2868
  }
2871
- function hr(r) {
2869
+ function gr(r) {
2872
2870
  return function(e) {
2873
- if (Eg(e))
2871
+ if (Sg(e))
2874
2872
  return e.lift(function(t) {
2875
2873
  try {
2876
2874
  return r(t, this);
@@ -2881,23 +2879,23 @@ function hr(r) {
2881
2879
  throw new TypeError("Unable to lift unknown Observable type");
2882
2880
  };
2883
2881
  }
2884
- var Oe = function(r, e) {
2885
- return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
2882
+ var we = function(r, e) {
2883
+ return we = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
2886
2884
  t.__proto__ = i;
2887
2885
  } || function(t, i) {
2888
2886
  for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
2889
- }, Oe(r, e);
2887
+ }, we(r, e);
2890
2888
  };
2891
- function Ye(r, e) {
2889
+ function qe(r, e) {
2892
2890
  if (typeof e != "function" && e !== null)
2893
2891
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
2894
- Oe(r, e);
2892
+ we(r, e);
2895
2893
  function t() {
2896
2894
  this.constructor = r;
2897
2895
  }
2898
2896
  r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
2899
2897
  }
2900
- function Gt(r) {
2898
+ function Mt(r) {
2901
2899
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], i = 0;
2902
2900
  if (t) return t.call(r);
2903
2901
  if (r && typeof r.length == "number") return {
@@ -2907,7 +2905,7 @@ function Gt(r) {
2907
2905
  };
2908
2906
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
2909
2907
  }
2910
- function Le(r, e) {
2908
+ function Oe(r, e) {
2911
2909
  var t = typeof Symbol == "function" && r[Symbol.iterator];
2912
2910
  if (!t) return r;
2913
2911
  var i = t.call(r), n, s = [], a;
@@ -2924,18 +2922,18 @@ function Le(r, e) {
2924
2922
  }
2925
2923
  return s;
2926
2924
  }
2927
- function Ie(r, e, t) {
2925
+ function Le(r, e, t) {
2928
2926
  if (t || arguments.length === 2) for (var i = 0, n = e.length, s; i < n; i++)
2929
2927
  (s || !(i in e)) && (s || (s = Array.prototype.slice.call(e, 0, i)), s[i] = e[i]);
2930
2928
  return r.concat(s || Array.prototype.slice.call(e));
2931
2929
  }
2932
- function Fg(r) {
2930
+ function Ag(r) {
2933
2931
  var e = function(i) {
2934
2932
  Error.call(i), i.stack = new Error().stack;
2935
2933
  }, t = r(e);
2936
2934
  return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
2937
2935
  }
2938
- var xe = Fg(function(r) {
2936
+ var xe = Ag(function(r) {
2939
2937
  return function(t) {
2940
2938
  r(this), this.message = t ? t.length + ` errors occurred during unsubscription:
2941
2939
  ` + t.map(function(i, n) {
@@ -2944,13 +2942,13 @@ var xe = Fg(function(r) {
2944
2942
  `) : "", this.name = "UnsubscriptionError", this.errors = t;
2945
2943
  };
2946
2944
  });
2947
- function Bt(r, e) {
2945
+ function Gt(r, e) {
2948
2946
  if (r) {
2949
2947
  var t = r.indexOf(e);
2950
2948
  0 <= t && r.splice(t, 1);
2951
2949
  }
2952
2950
  }
2953
- var We = function() {
2951
+ var Ye = function() {
2954
2952
  function r(e) {
2955
2953
  this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
2956
2954
  }
@@ -2962,12 +2960,12 @@ var We = function() {
2962
2960
  if (a)
2963
2961
  if (this._parentage = null, Array.isArray(a))
2964
2962
  try {
2965
- for (var o = Gt(a), l = o.next(); !l.done; l = o.next()) {
2966
- var c = l.value;
2967
- c.remove(this);
2963
+ for (var o = Mt(a), l = o.next(); !l.done; l = o.next()) {
2964
+ var d = l.value;
2965
+ d.remove(this);
2968
2966
  }
2969
- } catch (f) {
2970
- e = { error: f };
2967
+ } catch (p) {
2968
+ e = { error: p };
2971
2969
  } finally {
2972
2970
  try {
2973
2971
  l && !l.done && (t = o.return) && t.call(o);
@@ -2977,27 +2975,27 @@ var We = function() {
2977
2975
  }
2978
2976
  else
2979
2977
  a.remove(this);
2980
- var d = this.initialTeardown;
2981
- if (M(d))
2978
+ var c = this.initialTeardown;
2979
+ if (P(c))
2982
2980
  try {
2983
- d();
2984
- } catch (f) {
2985
- s = f instanceof xe ? f.errors : [f];
2981
+ c();
2982
+ } catch (p) {
2983
+ s = p instanceof xe ? p.errors : [p];
2986
2984
  }
2987
2985
  var g = this._finalizers;
2988
2986
  if (g) {
2989
2987
  this._finalizers = null;
2990
2988
  try {
2991
- for (var h = Gt(g), y = h.next(); !y.done; y = h.next()) {
2989
+ for (var h = Mt(g), y = h.next(); !y.done; y = h.next()) {
2992
2990
  var m = y.value;
2993
2991
  try {
2994
- zt(m);
2995
- } catch (f) {
2996
- s = s ?? [], f instanceof xe ? s = Ie(Ie([], Le(s)), Le(f.errors)) : s.push(f);
2992
+ Bt(m);
2993
+ } catch (p) {
2994
+ s = s ?? [], p instanceof xe ? s = Le(Le([], Oe(s)), Oe(p.errors)) : s.push(p);
2997
2995
  }
2998
2996
  }
2999
- } catch (f) {
3000
- i = { error: f };
2997
+ } catch (p) {
2998
+ i = { error: p };
3001
2999
  } finally {
3002
3000
  try {
3003
3001
  y && !y.done && (n = h.return) && n.call(h);
@@ -3013,7 +3011,7 @@ var We = function() {
3013
3011
  var t;
3014
3012
  if (e && e !== this)
3015
3013
  if (this.closed)
3016
- zt(e);
3014
+ Bt(e);
3017
3015
  else {
3018
3016
  if (e instanceof r) {
3019
3017
  if (e.closed || e._hasParent(this))
@@ -3030,50 +3028,48 @@ var We = function() {
3030
3028
  this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
3031
3029
  }, r.prototype._removeParent = function(e) {
3032
3030
  var t = this._parentage;
3033
- t === e ? this._parentage = null : Array.isArray(t) && Bt(t, e);
3031
+ t === e ? this._parentage = null : Array.isArray(t) && Gt(t, e);
3034
3032
  }, r.prototype.remove = function(e) {
3035
3033
  var t = this._finalizers;
3036
- t && Bt(t, e), e instanceof r && e._removeParent(this);
3034
+ t && Gt(t, e), e instanceof r && e._removeParent(this);
3037
3035
  }, r.EMPTY = function() {
3038
3036
  var e = new r();
3039
3037
  return e.closed = !0, e;
3040
3038
  }(), r;
3041
3039
  }();
3042
- We.EMPTY;
3043
- function $g(r) {
3044
- return r instanceof We || r && "closed" in r && M(r.remove) && M(r.add) && M(r.unsubscribe);
3040
+ Ye.EMPTY;
3041
+ function xg(r) {
3042
+ return r instanceof Ye || r && "closed" in r && P(r.remove) && P(r.add) && P(r.unsubscribe);
3045
3043
  }
3046
- function zt(r) {
3047
- M(r) ? r() : r.unsubscribe();
3044
+ function Bt(r) {
3045
+ P(r) ? r() : r.unsubscribe();
3048
3046
  }
3049
- var Tg = {
3050
- useDeprecatedNextContext: !1
3051
- }, Ng = {
3047
+ var Eg = {
3052
3048
  setTimeout: function(r, e) {
3053
3049
  for (var t = [], i = 2; i < arguments.length; i++)
3054
3050
  t[i - 2] = arguments[i];
3055
- return setTimeout.apply(void 0, Ie([r, e], Le(t)));
3051
+ return setTimeout.apply(void 0, Le([r, e], Oe(t)));
3056
3052
  },
3057
3053
  clearTimeout: function(r) {
3058
3054
  return clearTimeout(r);
3059
3055
  },
3060
3056
  delegate: void 0
3061
3057
  };
3062
- function Dg(r) {
3063
- Ng.setTimeout(function() {
3058
+ function Fg(r) {
3059
+ Eg.setTimeout(function() {
3064
3060
  throw r;
3065
3061
  });
3066
3062
  }
3067
- function jt() {
3063
+ function zt() {
3068
3064
  }
3069
- var fr = function(r) {
3070
- Ye(e, r);
3065
+ var hr = function(r) {
3066
+ qe(e, r);
3071
3067
  function e(t) {
3072
3068
  var i = r.call(this) || this;
3073
- return i.isStopped = !1, t ? (i.destination = t, $g(t) && t.add(i)) : i.destination = Pg, i;
3069
+ return i.isStopped = !1, t ? (i.destination = t, xg(t) && t.add(i)) : i.destination = Dg, i;
3074
3070
  }
3075
3071
  return e.create = function(t, i, n) {
3076
- return new Lg(t, i, n);
3072
+ return new Tg(t, i, n);
3077
3073
  }, e.prototype.next = function(t) {
3078
3074
  this.isStopped || this._next(t);
3079
3075
  }, e.prototype.error = function(t) {
@@ -3097,11 +3093,7 @@ var fr = function(r) {
3097
3093
  this.unsubscribe();
3098
3094
  }
3099
3095
  }, e;
3100
- }(We), wg = Function.prototype.bind;
3101
- function Ee(r, e) {
3102
- return wg.call(r, e);
3103
- }
3104
- var Og = function() {
3096
+ }(Ye), $g = function() {
3105
3097
  function r(e) {
3106
3098
  this.partialObserver = e;
3107
3099
  }
@@ -3132,71 +3124,59 @@ var Og = function() {
3132
3124
  ie(t);
3133
3125
  }
3134
3126
  }, r;
3135
- }(), Lg = function(r) {
3136
- Ye(e, r);
3127
+ }(), Tg = function(r) {
3128
+ qe(e, r);
3137
3129
  function e(t, i, n) {
3138
3130
  var s = r.call(this) || this, a;
3139
- if (M(t) || !t)
3140
- a = {
3141
- next: t ?? void 0,
3142
- error: i ?? void 0,
3143
- complete: n ?? void 0
3144
- };
3145
- else {
3146
- var o;
3147
- s && Tg.useDeprecatedNextContext ? (o = Object.create(t), o.unsubscribe = function() {
3148
- return s.unsubscribe();
3149
- }, a = {
3150
- next: t.next && Ee(t.next, o),
3151
- error: t.error && Ee(t.error, o),
3152
- complete: t.complete && Ee(t.complete, o)
3153
- }) : a = t;
3154
- }
3155
- return s.destination = new Og(a), s;
3131
+ return P(t) || !t ? a = {
3132
+ next: t ?? void 0,
3133
+ error: i ?? void 0,
3134
+ complete: n ?? void 0
3135
+ } : a = t, s.destination = new $g(a), s;
3156
3136
  }
3157
3137
  return e;
3158
- }(fr);
3138
+ }(hr);
3159
3139
  function ie(r) {
3160
- Dg(r);
3140
+ Fg(r);
3161
3141
  }
3162
- function Ig(r) {
3142
+ function Ng(r) {
3163
3143
  throw r;
3164
3144
  }
3165
- var Pg = {
3145
+ var Dg = {
3166
3146
  closed: !0,
3167
- next: jt,
3168
- error: Ig,
3169
- complete: jt
3147
+ next: zt,
3148
+ error: Ng,
3149
+ complete: zt
3170
3150
  };
3171
- function Mg(r) {
3151
+ function wg(r) {
3172
3152
  return r;
3173
3153
  }
3174
- function pr(r, e, t, i, n) {
3175
- return new Rg(r, e, t, i, n);
3154
+ function fr(r, e, t, i, n) {
3155
+ return new Og(r, e, t, i, n);
3176
3156
  }
3177
- var Rg = function(r) {
3178
- Ye(e, r);
3157
+ var Og = function(r) {
3158
+ qe(e, r);
3179
3159
  function e(t, i, n, s, a, o) {
3180
3160
  var l = r.call(this, t) || this;
3181
- return l.onFinalize = a, l.shouldUnsubscribe = o, l._next = i ? function(c) {
3161
+ return l.onFinalize = a, l.shouldUnsubscribe = o, l._next = i ? function(d) {
3182
3162
  try {
3183
- i(c);
3184
- } catch (d) {
3185
- t.error(d);
3163
+ i(d);
3164
+ } catch (c) {
3165
+ t.error(c);
3186
3166
  }
3187
- } : r.prototype._next, l._error = s ? function(c) {
3167
+ } : r.prototype._next, l._error = s ? function(d) {
3188
3168
  try {
3189
- s(c);
3190
- } catch (d) {
3191
- t.error(d);
3169
+ s(d);
3170
+ } catch (c) {
3171
+ t.error(c);
3192
3172
  } finally {
3193
3173
  this.unsubscribe();
3194
3174
  }
3195
3175
  } : r.prototype._error, l._complete = n ? function() {
3196
3176
  try {
3197
3177
  n();
3198
- } catch (c) {
3199
- t.error(c);
3178
+ } catch (d) {
3179
+ t.error(d);
3200
3180
  } finally {
3201
3181
  this.unsubscribe();
3202
3182
  }
@@ -3209,28 +3189,28 @@ var Rg = function(r) {
3209
3189
  r.prototype.unsubscribe.call(this), !i && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
3210
3190
  }
3211
3191
  }, e;
3212
- }(fr);
3213
- function Gg(r, e) {
3214
- return hr(function(t, i) {
3192
+ }(hr);
3193
+ function Lg(r, e) {
3194
+ return gr(function(t, i) {
3215
3195
  var n = 0;
3216
- t.subscribe(pr(i, function(s) {
3196
+ t.subscribe(fr(i, function(s) {
3217
3197
  i.next(r.call(e, s, n++));
3218
3198
  }));
3219
3199
  });
3220
3200
  }
3221
- function Bg(r, e) {
3222
- return e === void 0 && (e = Mg), r = r ?? zg, hr(function(t, i) {
3201
+ function Ig(r, e) {
3202
+ return e === void 0 && (e = wg), r = r ?? Pg, gr(function(t, i) {
3223
3203
  var n, s = !0;
3224
- t.subscribe(pr(i, function(a) {
3204
+ t.subscribe(fr(i, function(a) {
3225
3205
  var o = e(a);
3226
3206
  (s || !r(n, o)) && (s = !1, n = o, i.next(a));
3227
3207
  }));
3228
3208
  });
3229
3209
  }
3230
- function zg(r, e) {
3210
+ function Pg(r, e) {
3231
3211
  return r === e;
3232
3212
  }
3233
- class jg extends Cr {
3213
+ class Rg extends mr {
3234
3214
  constructor(e) {
3235
3215
  super(e);
3236
3216
  }
@@ -3245,8 +3225,8 @@ class jg extends Cr {
3245
3225
  */
3246
3226
  selectStore(e) {
3247
3227
  return this.pipe(
3248
- Gg(e),
3249
- Bg((t, i) => u.isEqual(t, i))
3228
+ Lg(e),
3229
+ Ig((t, i) => u.isEqual(t, i))
3250
3230
  );
3251
3231
  }
3252
3232
  /**
@@ -3261,9 +3241,9 @@ class jg extends Cr {
3261
3241
  });
3262
3242
  }
3263
3243
  }
3264
- class Ug {
3244
+ class Mg {
3265
3245
  constructor(e) {
3266
- this._store = new jg({
3246
+ this._store = new Rg({
3267
3247
  selection: void 0,
3268
3248
  items: { node: [], edge: [] },
3269
3249
  changes: void 0,
@@ -3369,8 +3349,8 @@ class Ug {
3369
3349
  };
3370
3350
  }
3371
3351
  }
3372
- const Vg = 750;
3373
- class Zg extends mr {
3352
+ const Gg = 750;
3353
+ class Kg extends _r {
3374
3354
  constructor(e, t) {
3375
3355
  super(e), this._configuration = e, Object.setPrototypeOf(this, new.target.prototype), this.initOgmaLinkuriousParser(!0, t);
3376
3356
  }
@@ -3397,7 +3377,7 @@ class Zg extends mr {
3397
3377
  enabled: !1
3398
3378
  }
3399
3379
  }
3400
- }), this._reactive === void 0 ? (this._reactive = new Ug(this), this.store = this._reactive.store) : this._reactive.listenToSelectionEvents(), this.initSelection(), this.setConfigOgma(this._configuration, e, t), this.LKTransformation = new Kg(this), this.LkNodeGroupingTransformation = new Z(this), this.LKStyles.setNodesDefaultHalo(), this.LKStyles.setEdgesDefaultHalo(), this.LKStyles.setBadgeRule(), this.LKStyles.setFilterClass();
3380
+ }), this._reactive === void 0 ? (this._reactive = new Mg(this), this.store = this._reactive.store) : this._reactive.listenToSelectionEvents(), this.initSelection(), this.setConfigOgma(this._configuration, e, t), this.LKTransformation = new jg(this), this.LkNodeGroupingTransformation = new J(this), this.LKStyles.setNodesDefaultHalo(), this.LKStyles.setEdgesDefaultHalo(), this.LKStyles.setBadgeRule(), this.LKStyles.setFilterClass();
3401
3381
  }
3402
3382
  /**
3403
3383
  * Initialize selection behavior
@@ -3414,16 +3394,16 @@ class Zg extends mr {
3414
3394
  }
3415
3395
  setStyles(e, t) {
3416
3396
  var i, n, s, a;
3417
- this.LKStyles = new Ag(this, {
3397
+ this.LKStyles = new mg(this, {
3418
3398
  node: ((n = (i = e == null ? void 0 : e.options) == null ? void 0 : i.styles) == null ? void 0 : n.node) || {},
3419
3399
  edge: ((a = (s = e == null ? void 0 : e.options) == null ? void 0 : s.styles) == null ? void 0 : a.edge) || {},
3420
3400
  baseUrl: t
3421
3401
  }), this.LKStyles.setNodesDefaultStyles(), this.LKStyles.setEdgesDefaultStyles();
3422
3402
  }
3423
3403
  setCaptions(e) {
3424
- var n, s, a, o, l, c, d, g;
3425
- const t = (o = (a = (s = (n = e == null ? void 0 : e.options) == null ? void 0 : n.styles) == null ? void 0 : s.node) == null ? void 0 : a.text) == null ? void 0 : o.maxTextLength, i = (g = (d = (c = (l = e == null ? void 0 : e.options) == null ? void 0 : l.styles) == null ? void 0 : c.edge) == null ? void 0 : d.text) == null ? void 0 : g.maxTextLength;
3426
- this.LKCaptions = new xg(this, t, i);
3404
+ var n, s, a, o, l, d, c, g;
3405
+ const t = (o = (a = (s = (n = e == null ? void 0 : e.options) == null ? void 0 : n.styles) == null ? void 0 : s.node) == null ? void 0 : a.text) == null ? void 0 : o.maxTextLength, i = (g = (c = (d = (l = e == null ? void 0 : e.options) == null ? void 0 : l.styles) == null ? void 0 : d.edge) == null ? void 0 : c.text) == null ? void 0 : g.maxTextLength;
3406
+ this.LKCaptions = new Cg(this, t, i);
3427
3407
  }
3428
3408
  /**
3429
3409
  * Returns Ogma Layout parameters according to visualization layout settings
@@ -3431,7 +3411,7 @@ class Zg extends mr {
3431
3411
  getForceLayoutParams(e, t = 0) {
3432
3412
  let i = 300 - 0.052 * this.getNodes().size;
3433
3413
  return i < 40 && (i = 40), {
3434
- steps: e === _r.FAST ? i : 300,
3414
+ steps: e === vr.FAST ? i : 300,
3435
3415
  alignSiblings: this.getNodes().size > 3,
3436
3416
  duration: t,
3437
3417
  charge: 20,
@@ -3462,15 +3442,15 @@ class Zg extends mr {
3462
3442
  async init(e) {
3463
3443
  this.clearGraph();
3464
3444
  let t, i = [];
3465
- const n = e.nodes.map((a) => (a.attributes.selected && (t = P.NODE, i.push(a.id)), delete a.attributes.selected, a)), s = e.edges.map((a) => (a.attributes !== void 0 && (a.attributes.selected && ((t === void 0 || t === P.NODE) && (t = P.EDGE, i = []), i.push(a.id)), delete a.attributes.selected), a));
3445
+ const n = e.nodes.map((a) => (a.attributes.selected && (t = I.NODE, i.push(a.id)), delete a.attributes.selected, a)), s = e.edges.map((a) => (a.attributes !== void 0 && (a.attributes.selected && ((t === void 0 || t === I.NODE) && (t = I.EDGE, i = []), i.push(a.id)), delete a.attributes.selected), a));
3466
3446
  await this.addGraphAfterValidation({
3467
3447
  nodes: n,
3468
3448
  edges: s
3469
- }), t === P.NODE ? this.getNodes(i).setSelected(!0) : t === P.EDGE && this.getEdges(i).setSelected(!0);
3449
+ }), t === I.NODE ? this.getNodes(i).setSelected(!0) : t === I.EDGE && this.getEdges(i).setSelected(!0);
3470
3450
  }
3471
3451
  async initVisualization(e) {
3472
3452
  await this.init(e);
3473
- const t = p.sanitizeStylesIndex(e.design.styles);
3453
+ const t = f.sanitizeStylesIndex(e.design.styles);
3474
3454
  this.LKStyles.initNodeColors(t.node), this.LKStyles.initNodesIcons(t.node), this.LKStyles.initNodesSizes(t.node), this.LKStyles.initNodesShapes(t.node), this.LKStyles.initEdgesWidth(t.edge), this.LKStyles.initEdgesShape(t.edge), this.LKStyles.initEdgesColor(t.edge), await this.LKCaptions.initVizCaptions({
3475
3455
  node: e.nodeFields.captions || {},
3476
3456
  edge: e.edgeFields.captions || {}
@@ -3559,15 +3539,16 @@ class Zg extends mr {
3559
3539
  this.getSelectedNodes().setSelected(!1), this.getSelectedEdges().setSelected(!1);
3560
3540
  }
3561
3541
  }
3562
- const kg = {
3542
+ const Bg = {
3563
3543
  steps: 250,
3564
3544
  alignSiblings: !0,
3565
3545
  charge: 20,
3566
3546
  theta: 0.34,
3567
- duration: Vg,
3568
- gravity: 0.0475
3547
+ duration: Gg,
3548
+ gravity: 0.0475,
3549
+ gpu: !0
3569
3550
  };
3570
- class O {
3551
+ class j {
3571
3552
  /**
3572
3553
  * Get the amount of hidden neighbors from a list of nodes
3573
3554
  *
@@ -3606,8 +3587,8 @@ class O {
3606
3587
  let s;
3607
3588
  if (t.test(e)) {
3608
3589
  e.length < 5 && (e += e.slice(1)), e = e.replace("#", "");
3609
- const c = parseInt(e[0].toString() + e[1].toString(), 16), d = parseInt(e[2].toString() + e[3].toString(), 16), g = parseInt(e[4].toString() + e[5].toString(), 16);
3610
- s = `rgb(${c}, ${d}, ${g})`;
3590
+ const d = parseInt(e[0].toString() + e[1].toString(), 16), c = parseInt(e[2].toString() + e[3].toString(), 16), g = parseInt(e[4].toString() + e[5].toString(), 16);
3591
+ s = `rgb(${d}, ${c}, ${g})`;
3611
3592
  } else if (i.test(e) || n.test(e) || Ae[e.toLowerCase()] !== void 0)
3612
3593
  s = u.isDefined(Ae[e.toLowerCase()]) ? Ae[e.toLowerCase()].rgb : e;
3613
3594
  else
@@ -3634,8 +3615,8 @@ class O {
3634
3615
  const l = [];
3635
3616
  for (; o; ) {
3636
3617
  l.push(o), n.add(o);
3637
- const c = o.getAdjacentNodes().filter((d) => !n.has(d)).get(0);
3638
- o = c === void 0 ? null : c;
3618
+ const d = o.getAdjacentNodes().filter((c) => !n.has(c)).get(0);
3619
+ o = d === void 0 ? null : d;
3639
3620
  }
3640
3621
  s.push(l);
3641
3622
  }), s.sort((a, o) => o.length - a.length), { chain: s.flat().map((a) => a.getId()), numberOfChain: i.length / 2 };
@@ -3657,8 +3638,8 @@ class O {
3657
3638
  e.setData("collapsed", t);
3658
3639
  }
3659
3640
  }
3660
- const Pe = "LKE_NODE_GROUPING_EDGE";
3661
- class Z {
3641
+ const Ie = "LKE_NODE_GROUPING_EDGE";
3642
+ class J {
3662
3643
  constructor(e) {
3663
3644
  this._collapsedDefaultValue = !1, this._nodeGroupingAttributes = [], this._ogma = e;
3664
3645
  }
@@ -3675,38 +3656,45 @@ class Z {
3675
3656
  * Group the nodes based on a category type and a property value
3676
3657
  */
3677
3658
  async initTransformation() {
3659
+ let e = !0;
3678
3660
  this.transformation === void 0 ? this.transformation = this._ogma.transformations.addNodeGrouping({
3679
3661
  // node with same value will be part of the same group
3680
- groupIdFunction: (e) => {
3681
- if (this._isRuleNotApplicableToNode(e))
3662
+ groupIdFunction: (t) => {
3663
+ if (this._isRuleNotApplicableToNode(t))
3682
3664
  return;
3683
- const t = this.groupRule;
3684
- return t.groupingType === Y.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeGroupId(e, t) : this._getPropertyValueGroupId(e, t);
3665
+ const i = this.groupRule;
3666
+ return i.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeGroupId(t, i) : this._getPropertyValueGroupId(t, i);
3685
3667
  },
3686
- nodeGenerator: (e) => {
3687
- const t = new Set(e.getData("categories").flat()), i = this._findNodeGroupId(e);
3668
+ nodeGenerator: (t) => {
3669
+ const i = new Set(t.getData("categories").flat()), n = this._findNodeGroupId(t);
3688
3670
  return {
3689
3671
  data: {
3690
3672
  categories: [],
3691
- subCategories: Array.from(t),
3692
- collapsed: this._getDefaultCollapsedState(i),
3693
- nodeGroupId: i
3673
+ subCategories: Array.from(i),
3674
+ collapsed: this._getDefaultCollapsedState(n),
3675
+ nodeGroupId: n
3694
3676
  },
3695
3677
  attributes: {
3696
- layoutable: this._getDefaultLayoutableValue(i)
3678
+ layoutable: this._getDefaultLayoutableValue(n)
3697
3679
  }
3698
3680
  };
3699
3681
  },
3700
- onGroupUpdate: async (e, t) => await this.runSubNodesLayout(t),
3682
+ onGroupUpdate: (t, i) => {
3683
+ if (!(i.size === 1 || e))
3684
+ return {
3685
+ layout: "force",
3686
+ params: { ...Bg }
3687
+ };
3688
+ },
3701
3689
  edgeGenerator: () => ({
3702
3690
  data: {
3703
- type: Pe
3691
+ type: Ie
3704
3692
  }
3705
3693
  }),
3706
- showContents: (e) => !O.isGroupCollapsed(e),
3694
+ showContents: (t) => !j.isGroupCollapsed(t),
3707
3695
  duration: 300,
3708
3696
  padding: 10
3709
- }) : await this.refreshTransformation();
3697
+ }) : await this.refreshTransformation(), await this._ogma.transformations.afterNextUpdate(), e = !1;
3710
3698
  }
3711
3699
  /**
3712
3700
  * refresh the transformation
@@ -3733,7 +3721,7 @@ class Z {
3733
3721
  width: 2
3734
3722
  }
3735
3723
  },
3736
- nodeSelector: (e) => e.isVirtual() && !O.isGroupCollapsed(e),
3724
+ nodeSelector: (e) => e.isVirtual() && !j.isGroupCollapsed(e),
3737
3725
  // the style will be updated when data object is updated
3738
3726
  nodeDependencies: { self: { data: !0 } }
3739
3727
  }), this._initIntermediateGroupStyle(), this._nodeGroupingCollapsedStyleRule = this._ogma.styles.addRule({
@@ -3759,7 +3747,7 @@ class Z {
3759
3747
  color: "#FFFFFF"
3760
3748
  },
3761
3749
  text: {
3762
- font: u.isDefined(this._ogma.LKStyles.nodeFont) ? this._ogma.LKStyles.nodeFont : gr,
3750
+ font: u.isDefined(this._ogma.LKStyles.nodeFont) ? this._ogma.LKStyles.nodeFont : cr,
3763
3751
  scale: 0.4,
3764
3752
  color: le,
3765
3753
  content: `x${t}`
@@ -3803,7 +3791,7 @@ class Z {
3803
3791
  }).icon;
3804
3792
  }
3805
3793
  },
3806
- nodeSelector: (e) => e.isVirtual() && O.isGroupCollapsed(e) && !e.hasClass("filtered"),
3794
+ nodeSelector: (e) => e.isVirtual() && j.isGroupCollapsed(e) && !e.hasClass("filtered"),
3807
3795
  nodeDependencies: { self: { attributes: ["styleRefreshIndex"] } }
3808
3796
  }), this._setSubSelectedClass();
3809
3797
  }
@@ -3811,34 +3799,6 @@ class Z {
3811
3799
  var e, t;
3812
3800
  await ((e = this._nodeGroupingStyleRule) == null ? void 0 : e.refresh()), await ((t = this._nodeGroupingCollapsedStyleRule) == null ? void 0 : t.refresh());
3813
3801
  }
3814
- /**
3815
- * Run the layout on the subnodes of the virtual node
3816
- * @param subNodes nodes part of a virtual node
3817
- */
3818
- async runSubNodesLayout(e) {
3819
- if (e.size === 0 || e.size === 1)
3820
- return;
3821
- if (e.size === 2)
3822
- return this._runTwoNodesLayout(e);
3823
- if (e.getAdjacentEdges({ bothExtremities: !0 }).size === 0) return this._runCirclePack(e);
3824
- const i = O.isStar(e);
3825
- if (i) {
3826
- const o = e.filter((c) => c !== i), l = this._runCircularLayout({
3827
- radii: o.getAttribute("radius"),
3828
- cx: i.getAttribute("x"),
3829
- cy: i.getAttribute("y"),
3830
- clockwise: !1,
3831
- distanceRatio: 5
3832
- });
3833
- return [i.getPosition(), ...l];
3834
- }
3835
- const n = e.getDegree(), s = n.every((o) => o === 1 || o === 2), a = n.some((o) => o === 1);
3836
- if (s && a) {
3837
- await this._runChainLayout(e);
3838
- return;
3839
- }
3840
- return await this._runForceLayout(e);
3841
- }
3842
3802
  /**
3843
3803
  * Get the virtual nodes of the transformation
3844
3804
  * @private
@@ -3865,11 +3825,11 @@ class Z {
3865
3825
  */
3866
3826
  _getNodeGroupingCaption(e) {
3867
3827
  if (!(!u.isDefined(e) || !u.isDefined(this.groupRule)))
3868
- return this.groupRule.groupingType === Y.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeNodeGroupingCaption(e, this.groupRule) : this._getPropertyValueNodeGroupingCaption(e, this.groupRule);
3828
+ return this.groupRule.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeNodeGroupingCaption(e, this.groupRule) : this._getPropertyValueNodeGroupingCaption(e, this.groupRule);
3869
3829
  }
3870
3830
  _getAdjacentEdgeNodeGroupingCaption(e, t) {
3871
3831
  const i = e.getSubNodes();
3872
- return !u.isDefined(i) || !u.isDefined(i.get(0)) ? void 0 : Z._getGroupCentralNode(i.get(0), t).getData(["properties", "name"]);
3832
+ return !u.isDefined(i) || !u.isDefined(i.get(0)) ? void 0 : J._getGroupCentralNode(i.get(0), t).getData(["properties", "name"]);
3873
3833
  }
3874
3834
  _getPropertyValueNodeGroupingCaption(e, t) {
3875
3835
  var i;
@@ -3878,46 +3838,14 @@ class Z {
3878
3838
  return `${s} (${a})`;
3879
3839
  }
3880
3840
  }
3881
- /**
3882
- * Run the circle pack layout on the subnodes
3883
- * @param subNodes
3884
- */
3885
- _runCirclePack(e) {
3886
- return Promise.resolve(
3887
- this._ogma.algorithms.circlePack({
3888
- nodes: e,
3889
- margin: 10,
3890
- sort: "asc",
3891
- dryRun: !0
3892
- })
3893
- );
3894
- }
3895
- /**
3896
- * return a grid layout when nodes are represented by multiple chains (a)-(b)-(c)-(d)
3897
- */
3898
- async _runChainLayout(e) {
3899
- const t = O.topologicalSort(e), i = this._ogma.getNodes(t.chain);
3900
- await this._ogma.layouts.grid({
3901
- nodes: i,
3902
- // TODO: test that visually
3903
- colDistance: Math.max(...e.getAttribute("radius").map(Number)) * 4,
3904
- rows: t.numberOfChain ?? 1
3905
- });
3906
- }
3907
- async _runForceLayout(e) {
3908
- await this._ogma.layouts.force({
3909
- nodes: e,
3910
- ...kg
3911
- });
3912
- }
3913
3841
  _isRuleNotApplicableToNode(e) {
3914
3842
  const t = this.groupRule;
3915
- return t === void 0 ? !0 : t.groupingType === Y.BY_PROPERTY_VALUE ? this._isPropertyRuleNotApplicableToNode(e, t) : t.groupingType === Y.BY_ADJACENT_EDGE_TYPE ? this._isRelationshipRuleNotApplicableToNode(e, t) : !0;
3843
+ return t === void 0 ? !0 : t.groupingType === q.BY_PROPERTY_VALUE ? this._isPropertyRuleNotApplicableToNode(e, t) : t.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._isRelationshipRuleNotApplicableToNode(e, t) : !0;
3916
3844
  }
3917
3845
  _isRelationshipRuleNotApplicableToNode(e, t) {
3918
- return !this.hasEdgeOfType(e, t.groupingOptions.edgeType);
3846
+ return !this._hasEdgeOfType(e, t.groupingOptions.edgeType);
3919
3847
  }
3920
- hasEdgeOfType(e, t) {
3848
+ _hasEdgeOfType(e, t) {
3921
3849
  let i = !1;
3922
3850
  return e.getAdjacentEdges().forEach((n) => {
3923
3851
  n.getData("type") === t && (i = !0);
@@ -3964,8 +3892,8 @@ class Z {
3964
3892
  _findNodeGroupId(e) {
3965
3893
  var i;
3966
3894
  const t = this.groupRule;
3967
- if (t.groupingType === Y.BY_ADJACENT_EDGE_TYPE) {
3968
- const n = Z._getGroupCentralNode(e.get(0), t);
3895
+ if (t.groupingType === q.BY_ADJACENT_EDGE_TYPE) {
3896
+ const n = J._getGroupCentralNode(e.get(0), t);
3969
3897
  return oe(`${(i = this.groupRule) == null ? void 0 : i.name}-${n.getId()}`);
3970
3898
  } else {
3971
3899
  const n = this._findGroupingPropertyValue(e.get(0));
@@ -3979,37 +3907,12 @@ class Z {
3979
3907
  const i = e.getAdjacentEdges({ filter: "raw" }).filter((s) => s.getData("type") === t.groupingOptions.edgeType).get(0);
3980
3908
  return t.groupingOptions.centralNodeIs === "source" ? i.getSource() : i.getTarget();
3981
3909
  }
3982
- _runCircularLayout({
3983
- radii: e,
3984
- clockwise: t = !0,
3985
- cx: i = 0,
3986
- cy: n = 0,
3987
- startAngle: s = 3 / 2 * Math.PI,
3988
- getRadius: a = (l) => Number(l),
3989
- distanceRatio: o = 0
3990
- }) {
3991
- const l = e.length;
3992
- if (l === 0) return [];
3993
- if (l === 1) return [{ x: i, y: n }];
3994
- const c = e.map(a).reduce((A, x) => Math.max(A, x), 0) * (2 + o), g = (2 * Math.PI - 2 * Math.PI / l) / Math.max(1, l - 1), h = Math.cos(g) - Math.cos(0), y = Math.sin(g) - Math.sin(0), m = Math.sqrt(c * c / (h * h + y * y)), f = Math.max(m, 0);
3995
- return e.map((A, x) => {
3996
- const E = s + x * g * (t ? 1 : -1), G = f * Math.cos(E), v = f * Math.sin(E);
3997
- return {
3998
- x: i + G,
3999
- y: n + v
4000
- };
4001
- });
4002
- }
4003
- async _runTwoNodesLayout(e) {
4004
- const t = e.getAttribute("radius").map(Number), i = e.getPosition(), n = Math.min(...t);
4005
- return [i[0], { x: i[0].x + n + t[0] + t[1], y: i[0].y }];
4006
- }
4007
3910
  _getPropertyValueGroupId(e, t) {
4008
3911
  const i = this._findGroupingPropertyValue(e);
4009
3912
  return `${t.groupingOptions.itemTypes.join("-")}-${i}`.toLowerCase().trim();
4010
3913
  }
4011
3914
  _getAdjacentEdgeGroupId(e, t) {
4012
- return Z._getGroupCentralNode(e, t).getId().toString();
3915
+ return J._getGroupCentralNode(e, t).getId().toString();
4013
3916
  }
4014
3917
  /**
4015
3918
  * Initialize the style for the intermediate group state, when transitioning from expanded to collapsed
@@ -4019,7 +3922,7 @@ class Z {
4019
3922
  nodeAttributes: {
4020
3923
  color: "rgba(240, 240, 240)"
4021
3924
  },
4022
- nodeSelector: (e) => e.isVirtual() && O.isGroupCollapsed(e),
3925
+ nodeSelector: (e) => e.isVirtual() && j.isGroupCollapsed(e),
4023
3926
  // the style will be updated when data object is updated
4024
3927
  nodeDependencies: { self: { data: !0 } }
4025
3928
  });
@@ -4048,7 +3951,7 @@ class Z {
4048
3951
  });
4049
3952
  }
4050
3953
  }
4051
- const Hg = {
3954
+ const zg = {
4052
3955
  color: "#000000",
4053
3956
  shape: {
4054
3957
  style: "dashed",
@@ -4056,7 +3959,7 @@ const Hg = {
4056
3959
  },
4057
3960
  width: 1.5
4058
3961
  };
4059
- class Kg {
3962
+ class jg {
4060
3963
  constructor(e) {
4061
3964
  this._ogma = e, this.groupedEdges = {};
4062
3965
  }
@@ -4083,11 +3986,11 @@ class Kg {
4083
3986
  initEdgeGroupingStyle() {
4084
3987
  this.edgeGroupingStyleRule = this._ogma.styles.addRule({
4085
3988
  edgeAttributes: {
4086
- ...Hg,
3989
+ ...zg,
4087
3990
  ...this.edgeGroupStyle,
4088
3991
  text: {
4089
3992
  content: (e) => {
4090
- if (e !== void 0 && e.getSubEdges() !== null && e.getData("type") !== Pe) {
3993
+ if (e !== void 0 && e.getSubEdges() !== null && e.getData("type") !== Ie) {
4091
3994
  const t = e.getSubEdges().filter((i) => !i.hasClass("filtered")).size;
4092
3995
  return `${e.getData(["properties", "originalType"])} (${t})`;
4093
3996
  }
@@ -4095,7 +3998,7 @@ class Kg {
4095
3998
  style: "bold"
4096
3999
  }
4097
4000
  },
4098
- edgeSelector: (e) => e.isVirtual() && e.getSubEdges() && e.getSubEdges().filter((t) => !t.hasClass("filtered")).size > 0 && e.getData("type") !== Pe,
4001
+ edgeSelector: (e) => e.isVirtual() && e.getSubEdges() && e.getSubEdges().filter((t) => !t.hasClass("filtered")).size > 0 && e.getData("type") !== Ie,
4099
4002
  edgeDependencies: { self: { data: !0 } }
4100
4003
  });
4101
4004
  }
@@ -4103,7 +4006,7 @@ class Kg {
4103
4006
  this.edgeGroupingStyleRule !== void 0 && this.edgeGroupingStyleRule.refresh();
4104
4007
  }
4105
4008
  }
4106
- const _ = class _ {
4009
+ const v = class v {
4107
4010
  /**
4108
4011
  * Returns whether the node/edge should be *filtered* (a.k.a. *hidden*).
4109
4012
  *
@@ -4116,16 +4019,16 @@ const _ = class _ {
4116
4019
  * @param itemData
4117
4020
  */
4118
4021
  static isFiltered(e, t) {
4119
- return u.isDefined(t) ? "categories" in t ? _.getFilterFunction(e, !0)(t) : _.getFilterFunction(e, !1)(t) : !1;
4022
+ return u.isDefined(t) ? "categories" in t ? v.getFilterFunction(e, !0)(t) : v.getFilterFunction(e, !1)(t) : !1;
4120
4023
  }
4121
4024
  static getFilterFunction(e, t) {
4122
- const i = JSON.stringify(e, null, ""), n = t ? _.nodeCache : _.edgeCache;
4025
+ const i = JSON.stringify(e, null, ""), n = t ? v.nodeCache : v.edgeCache;
4123
4026
  let s = n.get(i);
4124
- return s || (s = _.createFilterFunction(e, t), n.size > _.FILTER_CACHE_SIZE && n.clear(), n.set(i, s)), s;
4027
+ return s || (s = v.createFilterFunction(e, t), n.size > v.FILTER_CACHE_SIZE && n.clear(), n.set(i, s)), s;
4125
4028
  }
4126
4029
  static createFilterFunction(e, t) {
4127
4030
  const i = e.map(
4128
- (n) => _.filterToFilterFunction(n, t)
4031
+ (n) => v.filterToFilterFunction(n, t)
4129
4032
  );
4130
4033
  return (n) => {
4131
4034
  for (const s of i)
@@ -4137,15 +4040,15 @@ const _ = class _ {
4137
4040
  static filterToFilterFunction(e, t) {
4138
4041
  switch (e.type) {
4139
4042
  case S.ANY:
4140
- return _.createAnyFilterFunction(e, t);
4043
+ return v.createAnyFilterFunction(e, t);
4141
4044
  case S.IS:
4142
- return _.createIsFilterFunction(e, t);
4045
+ return v.createIsFilterFunction(e, t);
4143
4046
  case S.NO_VALUE:
4144
- return _.createNoValueFilterFunction(e, t);
4047
+ return v.createNoValueFilterFunction(e, t);
4145
4048
  case S.RANGE:
4146
- return _.createRangeFilterFunction(e, t);
4049
+ return v.createRangeFilterFunction(e, t);
4147
4050
  case S.NAN:
4148
- return _.createNaNFilterFunction(e, t);
4051
+ return v.createNaNFilterFunction(e, t);
4149
4052
  }
4150
4053
  }
4151
4054
  static createAnyFilterFunction(e, t) {
@@ -4158,16 +4061,16 @@ const _ = class _ {
4158
4061
  return t ? (i) => i.categories.includes(e.itemType) && !u.isDefined(u.getPropertyValue(u.getIn(i, e.input), !0)) : (i) => i.type === e.itemType && !u.isDefined(u.getPropertyValue(u.getIn(i, e.input), !0));
4159
4062
  }
4160
4063
  static createNaNFilterFunction(e, t) {
4161
- return t ? (i) => i.categories.includes(e.itemType) && _.isNotANumber(u.getPropertyValue(u.getIn(i, e.input), !0)) : (i) => i.type === e.itemType && _.isNotANumber(u.getPropertyValue(u.getIn(i, e.input), !0));
4064
+ return t ? (i) => i.categories.includes(e.itemType) && v.isNotANumber(u.getPropertyValue(u.getIn(i, e.input), !0)) : (i) => i.type === e.itemType && v.isNotANumber(u.getPropertyValue(u.getIn(i, e.input), !0));
4162
4065
  }
4163
4066
  static isNotANumber(e) {
4164
4067
  return u.isDefined(e) && !u.isNumber(e);
4165
4068
  }
4166
4069
  static createRangeFilterFunction(e, t) {
4167
- return t ? (i) => i.categories.includes(e.itemType) && _.valueShouldBeHidden(
4070
+ return t ? (i) => i.categories.includes(e.itemType) && v.valueShouldBeHidden(
4168
4071
  u.getPropertyValue(u.getIn(i, e.input), !1),
4169
4072
  e.value
4170
- ) : (i) => i.type === e.itemType && _.valueShouldBeHidden(
4073
+ ) : (i) => i.type === e.itemType && v.valueShouldBeHidden(
4171
4074
  u.getPropertyValue(u.getIn(i, e.input), !1),
4172
4075
  e.value
4173
4076
  );
@@ -4187,9 +4090,9 @@ const _ = class _ {
4187
4090
  return Number.isNaN(i) ? !1 : t["<"] !== void 0 && i < t["<"] || t["<="] !== void 0 && i <= t["<="] || t[">"] !== void 0 && i > t[">"] || t[">="] !== void 0 && i >= t[">="];
4188
4091
  }
4189
4092
  };
4190
- _.nodeCache = /* @__PURE__ */ new Map(), _.edgeCache = /* @__PURE__ */ new Map(), _.FILTER_CACHE_SIZE = 5;
4191
- let Ut = _;
4192
- const Xg = (r) => r.selection.size, Qg = (r) => {
4093
+ v.nodeCache = /* @__PURE__ */ new Map(), v.edgeCache = /* @__PURE__ */ new Map(), v.FILTER_CACHE_SIZE = 5;
4094
+ let jt = v;
4095
+ const qg = (r) => r.selection.size, Yg = (r) => {
4193
4096
  switch (r.selection.size) {
4194
4097
  case 1:
4195
4098
  return "selection";
@@ -4198,19 +4101,19 @@ const Xg = (r) => r.selection.size, Qg = (r) => {
4198
4101
  default:
4199
4102
  return "multiSelection";
4200
4103
  }
4201
- }, eh = (r) => {
4104
+ }, Wg = (r) => {
4202
4105
  if (!(!u.isDefined(r.selection) || r.selection.size === 0))
4203
- return r.selection.isNode ? P.NODE : P.EDGE;
4204
- }, Je = (r) => u.isDefined(r.selection) && r.selection.size === 1 ? r.selection.get(0) : void 0, th = (r) => {
4205
- const e = Je(r);
4106
+ return r.selection.isNode ? I.NODE : I.EDGE;
4107
+ }, We = (r) => u.isDefined(r.selection) && r.selection.size === 1 ? r.selection.get(0) : void 0, Jg = (r) => {
4108
+ const e = We(r);
4206
4109
  if (e !== void 0)
4207
4110
  return e.isNode ? e.getData("categories") : [e.getData("type")];
4208
- }, rh = (r) => {
4209
- const e = Je(r);
4111
+ }, Zg = (r) => {
4112
+ const e = We(r);
4210
4113
  if (e !== void 0)
4211
4114
  return e.isNode ? "node" : "edge";
4212
- }, qg = (r) => {
4213
- const e = Je(r);
4115
+ }, Ug = (r) => {
4116
+ const e = We(r);
4214
4117
  if (e !== void 0) {
4215
4118
  const t = e.getData().properties;
4216
4119
  return Object.keys(t).map((i) => ({
@@ -4219,37 +4122,38 @@ const Xg = (r) => r.selection.size, Qg = (r) => {
4219
4122
  }));
4220
4123
  }
4221
4124
  return [];
4222
- }, ih = (r) => qg(r).length > 0;
4125
+ }, Xg = (r) => Ug(r).length > 0;
4223
4126
  export {
4224
- Vg as ANIMATION_DURATION,
4225
- $ as BASE_GREY,
4127
+ Gg as ANIMATION_DURATION,
4128
+ E as BASE_GREY,
4226
4129
  N as Captions,
4227
- xg as CaptionsViz,
4228
- J as EdgeAttributes,
4229
- It as FILTER_OPACITY,
4230
- Ut as Filters,
4130
+ Cg as CaptionsViz,
4131
+ W as EdgeAttributes,
4132
+ Lt as FILTER_OPACITY,
4133
+ Bg as FORCE_LAYOUT_CONFIG,
4134
+ jt as Filters,
4231
4135
  Ae as HTML_COLORS,
4232
- F as ItemAttributes,
4233
- Pe as LKE_NODE_GROUPING_EDGE,
4234
- Zg as LKOgma,
4235
- U as NodeAttributes,
4236
- jg as OgmaStore,
4237
- O as OgmaTools,
4238
- Lt as PALETTE,
4136
+ A as ItemAttributes,
4137
+ Ie as LKE_NODE_GROUPING_EDGE,
4138
+ Kg as LKOgma,
4139
+ z as NodeAttributes,
4140
+ Rg as OgmaStore,
4141
+ j as OgmaTools,
4142
+ Ot as PALETTE,
4239
4143
  C as StyleRule,
4240
- mg as StyleRuleType,
4241
- p as StyleRules,
4144
+ yg as StyleRuleType,
4145
+ f as StyleRules,
4242
4146
  w as StyleType,
4243
- Ag as StylesViz,
4147
+ mg as StylesViz,
4244
4148
  u as Tools,
4245
- Kg as TransformationsViz,
4246
- eh as getSelectionEntity,
4247
- qg as getSelectionProperties,
4248
- Xg as getSelectionSize,
4249
- Qg as getSelectionState,
4250
- Je as getUniqSelection,
4251
- rh as getUniqSelectionEntity,
4252
- th as getUniqSelectionTypes,
4253
- ih as hasSelectionProperties
4149
+ jg as TransformationsViz,
4150
+ Wg as getSelectionEntity,
4151
+ Ug as getSelectionProperties,
4152
+ qg as getSelectionSize,
4153
+ Yg as getSelectionState,
4154
+ We as getUniqSelection,
4155
+ Zg as getUniqSelectionEntity,
4156
+ Jg as getUniqSelectionTypes,
4157
+ Xg as hasSelectionProperties
4254
4158
  };
4255
4159
  //# sourceMappingURL=index.mjs.map