@chamn/engine 0.0.20 → 0.0.22
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.js +25 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +789 -785
- package/dist/index.mjs.map +1 -1
- package/dist/utils/defaultEngineConfig.d.ts +1 -0
- package/package.json +9 -8
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var cb = Object.defineProperty;
|
|
|
2
2
|
var ub = (e, t, n) => t in e ? cb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var I = (e, t, n) => (ub(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as W from "react";
|
|
5
|
-
import Q, { createContext as an, useContext as at, useEffect as G, useMemo as le, Component as db, createElement as li, useState as J, useRef as B, forwardRef as Xr, useLayoutEffect as dc, useCallback as
|
|
5
|
+
import Q, { createContext as an, useContext as at, useEffect as G, useMemo as le, Component as db, createElement as li, useState as J, useRef as B, forwardRef as Xr, useLayoutEffect as dc, useCallback as Fe, memo as Ti, useReducer as fc, isValidElement as fb, useImperativeHandle as Pi } from "react";
|
|
6
6
|
import * as pb from "react-dom";
|
|
7
7
|
import hb, { flushSync as gb, createPortal as uh, unstable_batchedUpdates as bo } from "react-dom";
|
|
8
8
|
import { Button as rn, Popover as vb, Collapse as Ho, Tabs as dh, Input as sa, ConfigProvider as it, InputNumber as mb, Modal as ki, Switch as yb, Select as bb, AutoComplete as ci, Tooltip as wb, Dropdown as fh, message as ph, Card as xb, Space as Sb, Empty as Iu } from "antd";
|
|
@@ -219,13 +219,13 @@ function Mb() {
|
|
|
219
219
|
` + et + _;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var He = !1, ae;
|
|
223
223
|
{
|
|
224
|
-
var
|
|
225
|
-
ae = new
|
|
224
|
+
var Me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
225
|
+
ae = new Me();
|
|
226
226
|
}
|
|
227
227
|
function z(_, D) {
|
|
228
|
-
if (!_ ||
|
|
228
|
+
if (!_ || He)
|
|
229
229
|
return "";
|
|
230
230
|
{
|
|
231
231
|
var F = ae.get(_);
|
|
@@ -233,7 +233,7 @@ function Mb() {
|
|
|
233
233
|
return F;
|
|
234
234
|
}
|
|
235
235
|
var te;
|
|
236
|
-
|
|
236
|
+
He = !0;
|
|
237
237
|
var ge = Error.prepareStackTrace;
|
|
238
238
|
Error.prepareStackTrace = void 0;
|
|
239
239
|
var we;
|
|
@@ -274,25 +274,25 @@ function Mb() {
|
|
|
274
274
|
if (gn && te && typeof gn.stack == "string") {
|
|
275
275
|
for (var ue = gn.stack.split(`
|
|
276
276
|
`), ct = te.stack.split(`
|
|
277
|
-
`), Le = ue.length - 1,
|
|
278
|
-
|
|
279
|
-
for (; Le >= 1 &&
|
|
280
|
-
if (ue[Le] !== ct[
|
|
281
|
-
if (Le !== 1 ||
|
|
277
|
+
`), Le = ue.length - 1, Ue = ct.length - 1; Le >= 1 && Ue >= 0 && ue[Le] !== ct[Ue]; )
|
|
278
|
+
Ue--;
|
|
279
|
+
for (; Le >= 1 && Ue >= 0; Le--, Ue--)
|
|
280
|
+
if (ue[Le] !== ct[Ue]) {
|
|
281
|
+
if (Le !== 1 || Ue !== 1)
|
|
282
282
|
do
|
|
283
|
-
if (Le--,
|
|
283
|
+
if (Le--, Ue--, Ue < 0 || ue[Le] !== ct[Ue]) {
|
|
284
284
|
var jt = `
|
|
285
285
|
` + ue[Le].replace(" at new ", " at ");
|
|
286
286
|
return _.displayName && jt.includes("<anonymous>") && (jt = jt.replace("<anonymous>", _.displayName)), typeof _ == "function" && ae.set(_, jt), jt;
|
|
287
287
|
}
|
|
288
|
-
while (Le >= 1 &&
|
|
288
|
+
while (Le >= 1 && Ue >= 0);
|
|
289
289
|
break;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
} finally {
|
|
293
|
-
|
|
293
|
+
He = !1, de.current = we, ce(), Error.prepareStackTrace = ge;
|
|
294
294
|
}
|
|
295
|
-
var
|
|
295
|
+
var vr = _ ? _.displayName || _.name : "", $u = vr ? $e(vr) : "";
|
|
296
296
|
return typeof _ == "function" && ae.set(_, $u), $u;
|
|
297
297
|
}
|
|
298
298
|
function Je(_, D, F) {
|
|
@@ -302,7 +302,7 @@ function Mb() {
|
|
|
302
302
|
var D = _.prototype;
|
|
303
303
|
return !!(D && D.isReactComponent);
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function Ae(_, D, F) {
|
|
306
306
|
if (_ == null)
|
|
307
307
|
return "";
|
|
308
308
|
if (typeof _ == "function")
|
|
@@ -320,28 +320,28 @@ function Mb() {
|
|
|
320
320
|
case l:
|
|
321
321
|
return Je(_.render);
|
|
322
322
|
case d:
|
|
323
|
-
return
|
|
323
|
+
return Ae(_.type, D, F);
|
|
324
324
|
case f: {
|
|
325
325
|
var te = _, ge = te._payload, we = te._init;
|
|
326
326
|
try {
|
|
327
|
-
return
|
|
327
|
+
return Ae(we(ge), D, F);
|
|
328
328
|
} catch {
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
return "";
|
|
333
333
|
}
|
|
334
|
-
var
|
|
334
|
+
var xt = Object.prototype.hasOwnProperty, fn = {}, pn = m.ReactDebugCurrentFrame;
|
|
335
335
|
function Pe(_) {
|
|
336
336
|
if (_) {
|
|
337
|
-
var D = _._owner, F =
|
|
337
|
+
var D = _._owner, F = Ae(_.type, _._source, D ? D.type : null);
|
|
338
338
|
pn.setExtraStackFrame(F);
|
|
339
339
|
} else
|
|
340
340
|
pn.setExtraStackFrame(null);
|
|
341
341
|
}
|
|
342
342
|
function be(_, D, F, te, ge) {
|
|
343
343
|
{
|
|
344
|
-
var we = Function.call.bind(
|
|
344
|
+
var we = Function.call.bind(xt);
|
|
345
345
|
for (var fe in _)
|
|
346
346
|
if (we(_, fe)) {
|
|
347
347
|
var ue = void 0;
|
|
@@ -390,7 +390,7 @@ function Mb() {
|
|
|
390
390
|
}, Tn, mo, Pt;
|
|
391
391
|
Pt = {};
|
|
392
392
|
function Ca(_) {
|
|
393
|
-
if (
|
|
393
|
+
if (xt.call(_, "ref")) {
|
|
394
394
|
var D = Object.getOwnPropertyDescriptor(_, "ref").get;
|
|
395
395
|
if (D && D.isReactWarning)
|
|
396
396
|
return !1;
|
|
@@ -398,7 +398,7 @@ function Mb() {
|
|
|
398
398
|
return _.ref !== void 0;
|
|
399
399
|
}
|
|
400
400
|
function ss(_) {
|
|
401
|
-
if (
|
|
401
|
+
if (xt.call(_, "key")) {
|
|
402
402
|
var D = Object.getOwnPropertyDescriptor(_, "key").get;
|
|
403
403
|
if (D && D.isReactWarning)
|
|
404
404
|
return !1;
|
|
@@ -467,15 +467,15 @@ function Mb() {
|
|
|
467
467
|
var we, fe = {}, ue = null, ct = null;
|
|
468
468
|
F !== void 0 && (Sa(F), ue = "" + F), ss(D) && (Sa(D.key), ue = "" + D.key), Ca(D) && (ct = D.ref, ls(D, ge));
|
|
469
469
|
for (we in D)
|
|
470
|
-
|
|
470
|
+
xt.call(D, we) && !Rn.hasOwnProperty(we) && (fe[we] = D[we]);
|
|
471
471
|
if (_ && _.defaultProps) {
|
|
472
472
|
var Le = _.defaultProps;
|
|
473
473
|
for (we in Le)
|
|
474
474
|
fe[we] === void 0 && (fe[we] = Le[we]);
|
|
475
475
|
}
|
|
476
476
|
if (ue || ct) {
|
|
477
|
-
var
|
|
478
|
-
ue && Oa(fe,
|
|
477
|
+
var Ue = typeof _ == "function" ? _.displayName || _.name || "Unknown" : _;
|
|
478
|
+
ue && Oa(fe, Ue), ct && cs(fe, Ue);
|
|
479
479
|
}
|
|
480
480
|
return _a(_, ue, ct, ge, te, Tt.current, fe);
|
|
481
481
|
}
|
|
@@ -483,7 +483,7 @@ function Mb() {
|
|
|
483
483
|
var yo = m.ReactCurrentOwner, Ea = m.ReactDebugCurrentFrame;
|
|
484
484
|
function Te(_) {
|
|
485
485
|
if (_) {
|
|
486
|
-
var D = _._owner, F =
|
|
486
|
+
var D = _._owner, F = Ae(_.type, _._source, D ? D.type : null);
|
|
487
487
|
Ea.setExtraStackFrame(F);
|
|
488
488
|
} else
|
|
489
489
|
Ea.setExtraStackFrame(null);
|
|
@@ -505,7 +505,7 @@ Check the render method of \`` + _ + "`.";
|
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function pt(_) {
|
|
509
509
|
{
|
|
510
510
|
if (_ !== void 0) {
|
|
511
511
|
var D = _.fileName.replace(/^.*[\\\/]/, ""), F = _.lineNumber;
|
|
@@ -516,7 +516,7 @@ Check your code at ` + D + ":" + F + ".";
|
|
|
516
516
|
return "";
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
var
|
|
519
|
+
var ht = {};
|
|
520
520
|
function kt(_) {
|
|
521
521
|
{
|
|
522
522
|
var D = Lt();
|
|
@@ -535,14 +535,14 @@ Check the top-level render call using <` + F + ">.");
|
|
|
535
535
|
return;
|
|
536
536
|
_._store.validated = !0;
|
|
537
537
|
var F = kt(D);
|
|
538
|
-
if (
|
|
538
|
+
if (ht[F])
|
|
539
539
|
return;
|
|
540
|
-
|
|
540
|
+
ht[F] = !0;
|
|
541
541
|
var te = "";
|
|
542
542
|
_ && _._owner && _._owner !== yo.current && (te = " It was passed a child from " + $(_._owner.type) + "."), Te(_), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', F, te), Te(null);
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function gt(_, D) {
|
|
546
546
|
{
|
|
547
547
|
if (typeof _ != "object")
|
|
548
548
|
return;
|
|
@@ -604,37 +604,37 @@ Check the top-level render call using <` + F + ">.");
|
|
|
604
604
|
if (!fe) {
|
|
605
605
|
var ue = "";
|
|
606
606
|
(_ === void 0 || typeof _ == "object" && _ !== null && Object.keys(_).length === 0) && (ue += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
607
|
-
var ct =
|
|
607
|
+
var ct = pt(ge);
|
|
608
608
|
ct ? ue += ct : ue += Lt();
|
|
609
609
|
var Le;
|
|
610
610
|
_ === null ? Le = "null" : qe(_) ? Le = "array" : _ !== void 0 && _.$$typeof === t ? (Le = "<" + ($(_.type) || "Unknown") + " />", ue = " Did you accidentally export a JSX literal instead of a component?") : Le = typeof _, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Le, ue);
|
|
611
611
|
}
|
|
612
|
-
var
|
|
613
|
-
if (
|
|
614
|
-
return
|
|
612
|
+
var Ue = us(_, D, F, ge, we);
|
|
613
|
+
if (Ue == null)
|
|
614
|
+
return Ue;
|
|
615
615
|
if (fe) {
|
|
616
616
|
var jt = D.children;
|
|
617
617
|
if (jt !== void 0)
|
|
618
618
|
if (te)
|
|
619
619
|
if (qe(jt)) {
|
|
620
|
-
for (var
|
|
621
|
-
|
|
620
|
+
for (var vr = 0; vr < jt.length; vr++)
|
|
621
|
+
gt(jt[vr], _);
|
|
622
622
|
Object.freeze && Object.freeze(jt);
|
|
623
623
|
} else
|
|
624
624
|
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
625
625
|
else
|
|
626
|
-
|
|
626
|
+
gt(jt, _);
|
|
627
627
|
}
|
|
628
|
-
return _ === r ? Hn(
|
|
628
|
+
return _ === r ? Hn(Ue) : Vn(Ue), Ue;
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function gr(_, D, F) {
|
|
632
632
|
return Un(_, D, F, !0);
|
|
633
633
|
}
|
|
634
634
|
function Na(_, D, F) {
|
|
635
635
|
return Un(_, D, F, !1);
|
|
636
636
|
}
|
|
637
|
-
var Wn = Na, Gn =
|
|
637
|
+
var Wn = Na, Gn = gr;
|
|
638
638
|
xo.Fragment = r, xo.jsx = Wn, xo.jsxs = Gn;
|
|
639
639
|
}()), xo;
|
|
640
640
|
}
|
|
@@ -659,15 +659,15 @@ var Ab = globalThis && globalThis.__extends || function() {
|
|
|
659
659
|
}
|
|
660
660
|
t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
661
661
|
};
|
|
662
|
-
}(),
|
|
663
|
-
return
|
|
662
|
+
}(), We = globalThis && globalThis.__assign || function() {
|
|
663
|
+
return We = Object.assign || function(e) {
|
|
664
664
|
for (var t, n = 1, r = arguments.length; n < r; n++) {
|
|
665
665
|
t = arguments[n];
|
|
666
666
|
for (var o in t)
|
|
667
667
|
Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
668
668
|
}
|
|
669
669
|
return e;
|
|
670
|
-
},
|
|
670
|
+
}, We.apply(this, arguments);
|
|
671
671
|
}, Fu = {
|
|
672
672
|
width: "100%",
|
|
673
673
|
height: "10px",
|
|
@@ -685,36 +685,36 @@ var Ab = globalThis && globalThis.__extends || function() {
|
|
|
685
685
|
height: "20px",
|
|
686
686
|
position: "absolute"
|
|
687
687
|
}, Db = {
|
|
688
|
-
top:
|
|
688
|
+
top: We(We({}, Fu), {
|
|
689
689
|
top: "-5px"
|
|
690
690
|
}),
|
|
691
|
-
right:
|
|
691
|
+
right: We(We({}, Vu), {
|
|
692
692
|
left: void 0,
|
|
693
693
|
right: "-5px"
|
|
694
694
|
}),
|
|
695
|
-
bottom:
|
|
695
|
+
bottom: We(We({}, Fu), {
|
|
696
696
|
top: void 0,
|
|
697
697
|
bottom: "-5px"
|
|
698
698
|
}),
|
|
699
|
-
left:
|
|
699
|
+
left: We(We({}, Vu), {
|
|
700
700
|
left: "-5px"
|
|
701
701
|
}),
|
|
702
|
-
topRight:
|
|
702
|
+
topRight: We(We({}, Ra), {
|
|
703
703
|
right: "-10px",
|
|
704
704
|
top: "-10px",
|
|
705
705
|
cursor: "ne-resize"
|
|
706
706
|
}),
|
|
707
|
-
bottomRight:
|
|
707
|
+
bottomRight: We(We({}, Ra), {
|
|
708
708
|
right: "-10px",
|
|
709
709
|
bottom: "-10px",
|
|
710
710
|
cursor: "se-resize"
|
|
711
711
|
}),
|
|
712
|
-
bottomLeft:
|
|
712
|
+
bottomLeft: We(We({}, Ra), {
|
|
713
713
|
left: "-10px",
|
|
714
714
|
bottom: "-10px",
|
|
715
715
|
cursor: "sw-resize"
|
|
716
716
|
}),
|
|
717
|
-
topLeft:
|
|
717
|
+
topLeft: We(We({}, Ra), {
|
|
718
718
|
left: "-10px",
|
|
719
719
|
top: "-10px",
|
|
720
720
|
cursor: "nw-resize"
|
|
@@ -734,7 +734,7 @@ var Ab = globalThis && globalThis.__extends || function() {
|
|
|
734
734
|
return t.prototype.render = function() {
|
|
735
735
|
return /* @__PURE__ */ b("div", {
|
|
736
736
|
className: this.props.className || "",
|
|
737
|
-
style:
|
|
737
|
+
style: We(We({
|
|
738
738
|
position: "absolute",
|
|
739
739
|
userSelect: "none"
|
|
740
740
|
}, Db[this.props.direction]), this.props.replaceStyles || {}),
|
|
@@ -778,7 +778,7 @@ var Ab = globalThis && globalThis.__extends || function() {
|
|
|
778
778
|
return Math.max(Math.min(e, n), t);
|
|
779
779
|
}, Hu = function(e, t) {
|
|
780
780
|
return Math.round(e / t) * t;
|
|
781
|
-
},
|
|
781
|
+
}, mr = function(e, t) {
|
|
782
782
|
return new RegExp(e, "i").test(t);
|
|
783
783
|
}, Pa = function(e) {
|
|
784
784
|
return !!(e.touches && e.touches.length);
|
|
@@ -959,7 +959,7 @@ var Ab = globalThis && globalThis.__extends || function() {
|
|
|
959
959
|
var o = this.propsSize && this.propsSize[r];
|
|
960
960
|
return this.state[r] === "auto" && this.state.original[r] === n && (typeof o > "u" || o === "auto") ? "auto" : n;
|
|
961
961
|
}, t.prototype.calculateNewMaxFromBoundary = function(n, r) {
|
|
962
|
-
var o = this.props.boundsByDirection, a = this.state.direction, i = o &&
|
|
962
|
+
var o = this.props.boundsByDirection, a = this.state.direction, i = o && mr("left", a), s = o && mr("top", a), l, c;
|
|
963
963
|
if (this.props.bounds === "parent") {
|
|
964
964
|
var u = this.parentNode;
|
|
965
965
|
u && (l = i ? this.resizableRight - this.parentLeft : u.offsetWidth + (this.parentLeft - this.resizableLeft), c = s ? this.resizableBottom - this.parentTop : u.offsetHeight + (this.parentTop - this.resizableTop));
|
|
@@ -971,7 +971,7 @@ var Ab = globalThis && globalThis.__extends || function() {
|
|
|
971
971
|
};
|
|
972
972
|
}, t.prototype.calculateNewSizeFromDirection = function(n, r) {
|
|
973
973
|
var o = this.props.scale || 1, a = this.props.resizeRatio || 1, i = this.state, s = i.direction, l = i.original, c = this.props, u = c.lockAspectRatio, d = c.lockAspectRatioExtraHeight, f = c.lockAspectRatioExtraWidth, p = l.width, h = l.height, v = d || 0, y = f || 0;
|
|
974
|
-
return
|
|
974
|
+
return mr("right", s) && (p = l.width + (n - l.x) * a / o, u && (h = (p - y) / this.ratio + v)), mr("left", s) && (p = l.width - (n - l.x) * a / o, u && (h = (p - y) / this.ratio + v)), mr("bottom", s) && (h = l.height + (r - l.y) * a / o, u && (p = (h - v) * this.ratio + y)), mr("top", s) && (h = l.height - (r - l.y) * a / o, u && (p = (h - v) * this.ratio + y)), {
|
|
975
975
|
newWidth: p,
|
|
976
976
|
newHeight: h
|
|
977
977
|
};
|
|
@@ -1258,7 +1258,7 @@ function Ku(e, t) {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
return n;
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function H(e) {
|
|
1262
1262
|
for (var t = 1; t < arguments.length; t++) {
|
|
1263
1263
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1264
1264
|
t % 2 ? Ku(Object(n), !0).forEach(function(r) {
|
|
@@ -1331,7 +1331,7 @@ function f0(e, t) {
|
|
|
1331
1331
|
o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
1332
1332
|
return n;
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function Mr(e, t) {
|
|
1335
1335
|
if (e == null)
|
|
1336
1336
|
return {};
|
|
1337
1337
|
var n = f0(e, t), r, o;
|
|
@@ -1492,9 +1492,9 @@ function w0(e) {
|
|
|
1492
1492
|
return Math.round(parseFloat(e) * 255).toString(16);
|
|
1493
1493
|
}
|
|
1494
1494
|
function Yu(e) {
|
|
1495
|
-
return
|
|
1495
|
+
return Ct(e) / 255;
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function Ct(e) {
|
|
1498
1498
|
return parseInt(e, 16);
|
|
1499
1499
|
}
|
|
1500
1500
|
function x0(e) {
|
|
@@ -1688,33 +1688,33 @@ function O0(e) {
|
|
|
1688
1688
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
1689
1689
|
var n = zt.rgb.exec(e);
|
|
1690
1690
|
return n ? { r: n[1], g: n[2], b: n[3] } : (n = zt.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = zt.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = zt.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = zt.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = zt.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = zt.hex8.exec(e), n ? {
|
|
1691
|
-
r:
|
|
1692
|
-
g:
|
|
1693
|
-
b:
|
|
1691
|
+
r: Ct(n[1]),
|
|
1692
|
+
g: Ct(n[2]),
|
|
1693
|
+
b: Ct(n[3]),
|
|
1694
1694
|
a: Yu(n[4]),
|
|
1695
1695
|
format: t ? "name" : "hex8"
|
|
1696
1696
|
} : (n = zt.hex6.exec(e), n ? {
|
|
1697
|
-
r:
|
|
1698
|
-
g:
|
|
1699
|
-
b:
|
|
1697
|
+
r: Ct(n[1]),
|
|
1698
|
+
g: Ct(n[2]),
|
|
1699
|
+
b: Ct(n[3]),
|
|
1700
1700
|
format: t ? "name" : "hex"
|
|
1701
1701
|
} : (n = zt.hex4.exec(e), n ? {
|
|
1702
|
-
r:
|
|
1703
|
-
g:
|
|
1704
|
-
b:
|
|
1702
|
+
r: Ct(n[1] + n[1]),
|
|
1703
|
+
g: Ct(n[2] + n[2]),
|
|
1704
|
+
b: Ct(n[3] + n[3]),
|
|
1705
1705
|
a: Yu(n[4] + n[4]),
|
|
1706
1706
|
format: t ? "name" : "hex8"
|
|
1707
1707
|
} : (n = zt.hex3.exec(e), n ? {
|
|
1708
|
-
r:
|
|
1709
|
-
g:
|
|
1710
|
-
b:
|
|
1708
|
+
r: Ct(n[1] + n[1]),
|
|
1709
|
+
g: Ct(n[2] + n[2]),
|
|
1710
|
+
b: Ct(n[3] + n[3]),
|
|
1711
1711
|
format: t ? "name" : "hex"
|
|
1712
1712
|
} : !1)))))))));
|
|
1713
1713
|
}
|
|
1714
1714
|
function vn(e) {
|
|
1715
1715
|
return !!zt.CSS_UNIT.exec(String(e));
|
|
1716
1716
|
}
|
|
1717
|
-
var
|
|
1717
|
+
var _t = (
|
|
1718
1718
|
/** @class */
|
|
1719
1719
|
function() {
|
|
1720
1720
|
function e(t, n) {
|
|
@@ -2142,11 +2142,11 @@ function rd() {
|
|
|
2142
2142
|
}, {});
|
|
2143
2143
|
}
|
|
2144
2144
|
function cl(e, t, n) {
|
|
2145
|
-
return n ? /* @__PURE__ */ Q.createElement(e.tag,
|
|
2145
|
+
return n ? /* @__PURE__ */ Q.createElement(e.tag, H(H({
|
|
2146
2146
|
key: t
|
|
2147
2147
|
}, rd(e.attrs)), n), (e.children || []).map(function(r, o) {
|
|
2148
2148
|
return cl(r, "".concat(t, "-").concat(e.tag, "-").concat(o));
|
|
2149
|
-
})) : /* @__PURE__ */ Q.createElement(e.tag,
|
|
2149
|
+
})) : /* @__PURE__ */ Q.createElement(e.tag, H({
|
|
2150
2150
|
key: t
|
|
2151
2151
|
}, rd(e.attrs)), (e.children || []).map(function(r, o) {
|
|
2152
2152
|
return cl(r, "".concat(t, "-").concat(e.tag, "-").concat(o));
|
|
@@ -2230,19 +2230,19 @@ function F0(e) {
|
|
|
2230
2230
|
ko.primaryColor = t, ko.secondaryColor = n || Dh(t), ko.calculated = !!n;
|
|
2231
2231
|
}
|
|
2232
2232
|
function V0() {
|
|
2233
|
-
return
|
|
2233
|
+
return H({}, ko);
|
|
2234
2234
|
}
|
|
2235
2235
|
var Mi = function(t) {
|
|
2236
|
-
var n = t.icon, r = t.className, o = t.onClick, a = t.style, i = t.primaryColor, s = t.secondaryColor, l =
|
|
2236
|
+
var n = t.icon, r = t.className, o = t.onClick, a = t.style, i = t.primaryColor, s = t.secondaryColor, l = Mr(t, z0), c = ko;
|
|
2237
2237
|
if (i && (c = {
|
|
2238
2238
|
primaryColor: i,
|
|
2239
2239
|
secondaryColor: s || Dh(i)
|
|
2240
2240
|
}), B0(), I0(nd(n), "icon should be icon definiton, but got ".concat(n)), !nd(n))
|
|
2241
2241
|
return null;
|
|
2242
2242
|
var u = n;
|
|
2243
|
-
return u && typeof u.icon == "function" && (u =
|
|
2243
|
+
return u && typeof u.icon == "function" && (u = H(H({}, u), {}, {
|
|
2244
2244
|
icon: u.icon(c.primaryColor, c.secondaryColor)
|
|
2245
|
-
})), cl(u.icon, "svg-".concat(u.name),
|
|
2245
|
+
})), cl(u.icon, "svg-".concat(u.name), H({
|
|
2246
2246
|
className: r,
|
|
2247
2247
|
onClick: o,
|
|
2248
2248
|
style: a,
|
|
@@ -2271,14 +2271,14 @@ function H0() {
|
|
|
2271
2271
|
var U0 = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
2272
2272
|
Ih("#1890ff");
|
|
2273
2273
|
var Ai = /* @__PURE__ */ W.forwardRef(function(e, t) {
|
|
2274
|
-
var n, r = e.className, o = e.icon, a = e.spin, i = e.rotate, s = e.tabIndex, l = e.onClick, c = e.twoToneColor, u =
|
|
2274
|
+
var n, r = e.className, o = e.icon, a = e.spin, i = e.rotate, s = e.tabIndex, l = e.onClick, c = e.twoToneColor, u = Mr(e, U0), d = W.useContext(bh), f = d.prefixCls, p = f === void 0 ? "anticon" : f, h = d.rootClassName, v = vc(h, p, (n = {}, se(n, "".concat(p, "-").concat(o.name), !!o.name), se(n, "".concat(p, "-spin"), !!a || o.name === "loading"), n), r), y = s;
|
|
2275
2275
|
y === void 0 && l && (y = -1);
|
|
2276
2276
|
var m = i ? {
|
|
2277
2277
|
msTransform: "rotate(".concat(i, "deg)"),
|
|
2278
2278
|
transform: "rotate(".concat(i, "deg)")
|
|
2279
2279
|
} : void 0, w = $h(c), O = Ce(w, 2), x = O[0], g = O[1];
|
|
2280
2280
|
return /* @__PURE__ */ b("span", {
|
|
2281
|
-
...
|
|
2281
|
+
...H(H({
|
|
2282
2282
|
role: "img",
|
|
2283
2283
|
"aria-label": o.name
|
|
2284
2284
|
}, u), {}, {
|
|
@@ -2298,12 +2298,12 @@ var Ai = /* @__PURE__ */ W.forwardRef(function(e, t) {
|
|
|
2298
2298
|
Ai.displayName = "AntdIcon";
|
|
2299
2299
|
Ai.getTwoToneColor = H0;
|
|
2300
2300
|
Ai.setTwoToneColor = Ih;
|
|
2301
|
-
const
|
|
2301
|
+
const ft = Ai;
|
|
2302
2302
|
var W0 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z" } }] }, name: "apartment", theme: "outlined" };
|
|
2303
2303
|
const G0 = W0;
|
|
2304
2304
|
var Lh = function(t, n) {
|
|
2305
|
-
return /* @__PURE__ */ b(
|
|
2306
|
-
...
|
|
2305
|
+
return /* @__PURE__ */ b(ft, {
|
|
2306
|
+
...H(H({}, t), {}, {
|
|
2307
2307
|
ref: n,
|
|
2308
2308
|
icon: G0
|
|
2309
2309
|
})
|
|
@@ -2314,8 +2314,8 @@ const K0 = /* @__PURE__ */ W.forwardRef(Lh);
|
|
|
2314
2314
|
var q0 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" } }] }, name: "appstore-add", theme: "outlined" };
|
|
2315
2315
|
const Y0 = q0;
|
|
2316
2316
|
var Bh = function(t, n) {
|
|
2317
|
-
return /* @__PURE__ */ b(
|
|
2318
|
-
...
|
|
2317
|
+
return /* @__PURE__ */ b(ft, {
|
|
2318
|
+
...H(H({}, t), {}, {
|
|
2319
2319
|
ref: n,
|
|
2320
2320
|
icon: Y0
|
|
2321
2321
|
})
|
|
@@ -2326,8 +2326,8 @@ const X0 = /* @__PURE__ */ W.forwardRef(Bh);
|
|
|
2326
2326
|
var J0 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" } }] }, name: "close", theme: "outlined" };
|
|
2327
2327
|
const Q0 = J0;
|
|
2328
2328
|
var zh = function(t, n) {
|
|
2329
|
-
return /* @__PURE__ */ b(
|
|
2330
|
-
...
|
|
2329
|
+
return /* @__PURE__ */ b(ft, {
|
|
2330
|
+
...H(H({}, t), {}, {
|
|
2331
2331
|
ref: n,
|
|
2332
2332
|
icon: Q0
|
|
2333
2333
|
})
|
|
@@ -2338,8 +2338,8 @@ const Z0 = /* @__PURE__ */ W.forwardRef(zh);
|
|
|
2338
2338
|
var e1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" };
|
|
2339
2339
|
const t1 = e1;
|
|
2340
2340
|
var Fh = function(t, n) {
|
|
2341
|
-
return /* @__PURE__ */ b(
|
|
2342
|
-
...
|
|
2341
|
+
return /* @__PURE__ */ b(ft, {
|
|
2342
|
+
...H(H({}, t), {}, {
|
|
2343
2343
|
ref: n,
|
|
2344
2344
|
icon: t1
|
|
2345
2345
|
})
|
|
@@ -2350,8 +2350,8 @@ const Vh = /* @__PURE__ */ W.forwardRef(Fh);
|
|
|
2350
2350
|
var n1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "database", theme: "outlined" };
|
|
2351
2351
|
const r1 = n1;
|
|
2352
2352
|
var Hh = function(t, n) {
|
|
2353
|
-
return /* @__PURE__ */ b(
|
|
2354
|
-
...
|
|
2353
|
+
return /* @__PURE__ */ b(ft, {
|
|
2354
|
+
...H(H({}, t), {}, {
|
|
2355
2355
|
ref: n,
|
|
2356
2356
|
icon: r1
|
|
2357
2357
|
})
|
|
@@ -2362,8 +2362,8 @@ const o1 = /* @__PURE__ */ W.forwardRef(Hh);
|
|
|
2362
2362
|
var a1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" };
|
|
2363
2363
|
const i1 = a1;
|
|
2364
2364
|
var Uh = function(t, n) {
|
|
2365
|
-
return /* @__PURE__ */ b(
|
|
2366
|
-
...
|
|
2365
|
+
return /* @__PURE__ */ b(ft, {
|
|
2366
|
+
...H(H({}, t), {}, {
|
|
2367
2367
|
ref: n,
|
|
2368
2368
|
icon: i1
|
|
2369
2369
|
})
|
|
@@ -2374,8 +2374,8 @@ const bc = /* @__PURE__ */ W.forwardRef(Uh);
|
|
|
2374
2374
|
var s1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z" } }] }, name: "double-right", theme: "outlined" };
|
|
2375
2375
|
const l1 = s1;
|
|
2376
2376
|
var Wh = function(t, n) {
|
|
2377
|
-
return /* @__PURE__ */ b(
|
|
2378
|
-
...
|
|
2377
|
+
return /* @__PURE__ */ b(ft, {
|
|
2378
|
+
...H(H({}, t), {}, {
|
|
2379
2379
|
ref: n,
|
|
2380
2380
|
icon: l1
|
|
2381
2381
|
})
|
|
@@ -2386,8 +2386,8 @@ const c1 = /* @__PURE__ */ W.forwardRef(Wh);
|
|
|
2386
2386
|
var u1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" };
|
|
2387
2387
|
const d1 = u1;
|
|
2388
2388
|
var Gh = function(t, n) {
|
|
2389
|
-
return /* @__PURE__ */ b(
|
|
2390
|
-
...
|
|
2389
|
+
return /* @__PURE__ */ b(ft, {
|
|
2390
|
+
...H(H({}, t), {}, {
|
|
2391
2391
|
ref: n,
|
|
2392
2392
|
icon: d1
|
|
2393
2393
|
})
|
|
@@ -2398,8 +2398,8 @@ const Kh = /* @__PURE__ */ W.forwardRef(Gh);
|
|
|
2398
2398
|
var f1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" };
|
|
2399
2399
|
const p1 = f1;
|
|
2400
2400
|
var qh = function(t, n) {
|
|
2401
|
-
return /* @__PURE__ */ b(
|
|
2402
|
-
...
|
|
2401
|
+
return /* @__PURE__ */ b(ft, {
|
|
2402
|
+
...H(H({}, t), {}, {
|
|
2403
2403
|
ref: n,
|
|
2404
2404
|
icon: p1
|
|
2405
2405
|
})
|
|
@@ -2410,8 +2410,8 @@ const h1 = /* @__PURE__ */ W.forwardRef(qh);
|
|
|
2410
2410
|
var g1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" } }, { tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, name: "minus-circle", theme: "outlined" };
|
|
2411
2411
|
const v1 = g1;
|
|
2412
2412
|
var Yh = function(t, n) {
|
|
2413
|
-
return /* @__PURE__ */ b(
|
|
2414
|
-
...
|
|
2413
|
+
return /* @__PURE__ */ b(ft, {
|
|
2414
|
+
...H(H({}, t), {}, {
|
|
2415
2415
|
ref: n,
|
|
2416
2416
|
icon: v1
|
|
2417
2417
|
})
|
|
@@ -2422,8 +2422,8 @@ const m1 = /* @__PURE__ */ W.forwardRef(Yh);
|
|
|
2422
2422
|
var y1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "minus", theme: "outlined" };
|
|
2423
2423
|
const b1 = y1;
|
|
2424
2424
|
var Xh = function(t, n) {
|
|
2425
|
-
return /* @__PURE__ */ b(
|
|
2426
|
-
...
|
|
2425
|
+
return /* @__PURE__ */ b(ft, {
|
|
2426
|
+
...H(H({}, t), {}, {
|
|
2427
2427
|
ref: n,
|
|
2428
2428
|
icon: b1
|
|
2429
2429
|
})
|
|
@@ -2434,8 +2434,8 @@ const Jh = /* @__PURE__ */ W.forwardRef(Xh);
|
|
|
2434
2434
|
var w1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "defs", attrs: {}, children: [{ tag: "style", attrs: {} }] }, { tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
|
|
2435
2435
|
const x1 = w1;
|
|
2436
2436
|
var Qh = function(t, n) {
|
|
2437
|
-
return /* @__PURE__ */ b(
|
|
2438
|
-
...
|
|
2437
|
+
return /* @__PURE__ */ b(ft, {
|
|
2438
|
+
...H(H({}, t), {}, {
|
|
2439
2439
|
ref: n,
|
|
2440
2440
|
icon: x1
|
|
2441
2441
|
})
|
|
@@ -2446,8 +2446,8 @@ const wc = /* @__PURE__ */ W.forwardRef(Qh);
|
|
|
2446
2446
|
var S1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 00-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 01-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z" } }] }, name: "pushpin", theme: "outlined" };
|
|
2447
2447
|
const C1 = S1;
|
|
2448
2448
|
var Zh = function(t, n) {
|
|
2449
|
-
return /* @__PURE__ */ b(
|
|
2450
|
-
...
|
|
2449
|
+
return /* @__PURE__ */ b(ft, {
|
|
2450
|
+
...H(H({}, t), {}, {
|
|
2451
2451
|
ref: n,
|
|
2452
2452
|
icon: C1
|
|
2453
2453
|
})
|
|
@@ -2458,8 +2458,8 @@ const O1 = /* @__PURE__ */ W.forwardRef(Zh);
|
|
|
2458
2458
|
var _1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" };
|
|
2459
2459
|
const E1 = _1;
|
|
2460
2460
|
var eg = function(t, n) {
|
|
2461
|
-
return /* @__PURE__ */ b(
|
|
2462
|
-
...
|
|
2461
|
+
return /* @__PURE__ */ b(ft, {
|
|
2462
|
+
...H(H({}, t), {}, {
|
|
2463
2463
|
ref: n,
|
|
2464
2464
|
icon: E1
|
|
2465
2465
|
})
|
|
@@ -2470,8 +2470,8 @@ const N1 = /* @__PURE__ */ W.forwardRef(eg);
|
|
|
2470
2470
|
var R1 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "swap", theme: "outlined" };
|
|
2471
2471
|
const T1 = R1;
|
|
2472
2472
|
var tg = function(t, n) {
|
|
2473
|
-
return /* @__PURE__ */ b(
|
|
2474
|
-
...
|
|
2473
|
+
return /* @__PURE__ */ b(ft, {
|
|
2474
|
+
...H(H({}, t), {}, {
|
|
2475
2475
|
ref: n,
|
|
2476
2476
|
icon: T1
|
|
2477
2477
|
})
|
|
@@ -2492,7 +2492,7 @@ function ng(e) {
|
|
|
2492
2492
|
e[t] && (r && (r += " "), r += t);
|
|
2493
2493
|
return r;
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function vt() {
|
|
2496
2496
|
for (var e, t, n = 0, r = ""; n < arguments.length; )
|
|
2497
2497
|
(e = arguments[n++]) && (t = ng(e)) && (r && (r += " "), r += t);
|
|
2498
2498
|
return r;
|
|
@@ -2621,7 +2621,7 @@ function Y1(e) {
|
|
|
2621
2621
|
return q1.call(e);
|
|
2622
2622
|
}
|
|
2623
2623
|
var X1 = "[object Null]", J1 = "[object Undefined]", ad = Dt ? Dt.toStringTag : void 0;
|
|
2624
|
-
function
|
|
2624
|
+
function sr(e) {
|
|
2625
2625
|
return e == null ? e === void 0 ? J1 : X1 : ad && ad in Object(e) ? G1(e) : Y1(e);
|
|
2626
2626
|
}
|
|
2627
2627
|
function on(e) {
|
|
@@ -2629,7 +2629,7 @@ function on(e) {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
var Q1 = "[object Symbol]";
|
|
2631
2631
|
function xc(e) {
|
|
2632
|
-
return typeof e == "symbol" || on(e) &&
|
|
2632
|
+
return typeof e == "symbol" || on(e) && sr(e) == Q1;
|
|
2633
2633
|
}
|
|
2634
2634
|
function Sc(e, t) {
|
|
2635
2635
|
for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
|
|
@@ -2637,12 +2637,12 @@ function Sc(e, t) {
|
|
|
2637
2637
|
return o;
|
|
2638
2638
|
}
|
|
2639
2639
|
var Z1 = Array.isArray;
|
|
2640
|
-
const
|
|
2640
|
+
const Ve = Z1;
|
|
2641
2641
|
var ew = 1 / 0, id = Dt ? Dt.prototype : void 0, sd = id ? id.toString : void 0;
|
|
2642
2642
|
function ig(e) {
|
|
2643
2643
|
if (typeof e == "string")
|
|
2644
2644
|
return e;
|
|
2645
|
-
if (
|
|
2645
|
+
if (Ve(e))
|
|
2646
2646
|
return Sc(e, ig) + "";
|
|
2647
2647
|
if (xc(e))
|
|
2648
2648
|
return sd ? sd.call(e) : "";
|
|
@@ -2660,7 +2660,7 @@ var tw = "[object AsyncFunction]", nw = "[object Function]", rw = "[object Gener
|
|
|
2660
2660
|
function Oc(e) {
|
|
2661
2661
|
if (!Kt(e))
|
|
2662
2662
|
return !1;
|
|
2663
|
-
var t =
|
|
2663
|
+
var t = sr(e);
|
|
2664
2664
|
return t == nw || t == rw || t == tw || t == ow;
|
|
2665
2665
|
}
|
|
2666
2666
|
var aw = ln["__core-js_shared__"];
|
|
@@ -2673,7 +2673,7 @@ function iw(e) {
|
|
|
2673
2673
|
return !!ld && ld in e;
|
|
2674
2674
|
}
|
|
2675
2675
|
var sw = Function.prototype, lw = sw.toString;
|
|
2676
|
-
function
|
|
2676
|
+
function lr(e) {
|
|
2677
2677
|
if (e != null) {
|
|
2678
2678
|
try {
|
|
2679
2679
|
return lw.call(e);
|
|
@@ -2691,16 +2691,16 @@ function vw(e) {
|
|
|
2691
2691
|
if (!Kt(e) || iw(e))
|
|
2692
2692
|
return !1;
|
|
2693
2693
|
var t = Oc(e) ? gw : uw;
|
|
2694
|
-
return t.test(
|
|
2694
|
+
return t.test(lr(e));
|
|
2695
2695
|
}
|
|
2696
2696
|
function mw(e, t) {
|
|
2697
2697
|
return e == null ? void 0 : e[t];
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function cr(e, t) {
|
|
2700
2700
|
var n = mw(e, t);
|
|
2701
2701
|
return vw(n) ? n : void 0;
|
|
2702
2702
|
}
|
|
2703
|
-
var yw =
|
|
2703
|
+
var yw = cr(ln, "WeakMap");
|
|
2704
2704
|
const dl = yw;
|
|
2705
2705
|
var cd = Object.create, bw = function() {
|
|
2706
2706
|
function e() {
|
|
@@ -2757,7 +2757,7 @@ function Nw(e) {
|
|
|
2757
2757
|
}
|
|
2758
2758
|
var Rw = function() {
|
|
2759
2759
|
try {
|
|
2760
|
-
var e =
|
|
2760
|
+
var e = cr(Object, "defineProperty");
|
|
2761
2761
|
return e({}, "", {}), e;
|
|
2762
2762
|
} catch {
|
|
2763
2763
|
}
|
|
@@ -2880,7 +2880,7 @@ function Gw(e, t) {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
var Kw = "[object Arguments]";
|
|
2882
2882
|
function dd(e) {
|
|
2883
|
-
return on(e) &&
|
|
2883
|
+
return on(e) && sr(e) == Kw;
|
|
2884
2884
|
}
|
|
2885
2885
|
var dg = Object.prototype, qw = dg.hasOwnProperty, Yw = dg.propertyIsEnumerable, Xw = dd(function() {
|
|
2886
2886
|
return arguments;
|
|
@@ -2897,7 +2897,7 @@ var tx = "[object Arguments]", nx = "[object Array]", rx = "[object Boolean]", o
|
|
|
2897
2897
|
_e[vx] = _e[mx] = _e[yx] = _e[bx] = _e[wx] = _e[xx] = _e[Sx] = _e[Cx] = _e[Ox] = !0;
|
|
2898
2898
|
_e[tx] = _e[nx] = _e[hx] = _e[rx] = _e[gx] = _e[ox] = _e[ax] = _e[ix] = _e[sx] = _e[lx] = _e[cx] = _e[ux] = _e[dx] = _e[fx] = _e[px] = !1;
|
|
2899
2899
|
function _x(e) {
|
|
2900
|
-
return on(e) && Nc(e.length) && !!_e[
|
|
2900
|
+
return on(e) && Nc(e.length) && !!_e[sr(e)];
|
|
2901
2901
|
}
|
|
2902
2902
|
function Tc(e) {
|
|
2903
2903
|
return function(t) {
|
|
@@ -2911,12 +2911,12 @@ var pg = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
2911
2911
|
} catch {
|
|
2912
2912
|
}
|
|
2913
2913
|
}();
|
|
2914
|
-
const
|
|
2915
|
-
var hd =
|
|
2914
|
+
const Ar = Nx;
|
|
2915
|
+
var hd = Ar && Ar.isTypedArray, Rx = hd ? Tc(hd) : _x;
|
|
2916
2916
|
const Pc = Rx;
|
|
2917
2917
|
var Tx = Object.prototype, Px = Tx.hasOwnProperty;
|
|
2918
2918
|
function hg(e, t) {
|
|
2919
|
-
var n =
|
|
2919
|
+
var n = Ve(e), r = !n && Wo(e), o = !n && !r && Go(e), a = !n && !r && !o && Pc(e), i = n || r || o || a, s = i ? Gw(e.length, String) : [], l = s.length;
|
|
2920
2920
|
for (var c in e)
|
|
2921
2921
|
(t || Px.call(e, c)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2922
2922
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -2965,12 +2965,12 @@ function ca(e) {
|
|
|
2965
2965
|
}
|
|
2966
2966
|
var zx = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Fx = /^\w*$/;
|
|
2967
2967
|
function kc(e, t) {
|
|
2968
|
-
if (
|
|
2968
|
+
if (Ve(e))
|
|
2969
2969
|
return !1;
|
|
2970
2970
|
var n = typeof e;
|
|
2971
2971
|
return n == "number" || n == "symbol" || n == "boolean" || e == null || xc(e) ? !0 : Fx.test(e) || !zx.test(e) || t != null && e in Object(t);
|
|
2972
2972
|
}
|
|
2973
|
-
var Vx =
|
|
2973
|
+
var Vx = cr(Object, "create");
|
|
2974
2974
|
const Ko = Vx;
|
|
2975
2975
|
function Hx() {
|
|
2976
2976
|
this.__data__ = Ko ? Ko(null) : {}, this.size = 0;
|
|
@@ -2998,18 +2998,18 @@ function Zx(e, t) {
|
|
|
2998
2998
|
var n = this.__data__;
|
|
2999
2999
|
return this.size += this.has(e) ? 0 : 1, n[e] = Ko && t === void 0 ? Qx : t, this;
|
|
3000
3000
|
}
|
|
3001
|
-
function
|
|
3001
|
+
function nr(e) {
|
|
3002
3002
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3003
3003
|
for (this.clear(); ++t < n; ) {
|
|
3004
3004
|
var r = e[t];
|
|
3005
3005
|
this.set(r[0], r[1]);
|
|
3006
3006
|
}
|
|
3007
3007
|
}
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3008
|
+
nr.prototype.clear = Hx;
|
|
3009
|
+
nr.prototype.delete = Ux;
|
|
3010
|
+
nr.prototype.get = qx;
|
|
3011
|
+
nr.prototype.has = Jx;
|
|
3012
|
+
nr.prototype.set = Zx;
|
|
3013
3013
|
function eS() {
|
|
3014
3014
|
this.__data__ = [], this.size = 0;
|
|
3015
3015
|
}
|
|
@@ -3050,13 +3050,13 @@ Sn.prototype.delete = rS;
|
|
|
3050
3050
|
Sn.prototype.get = oS;
|
|
3051
3051
|
Sn.prototype.has = aS;
|
|
3052
3052
|
Sn.prototype.set = iS;
|
|
3053
|
-
var sS =
|
|
3053
|
+
var sS = cr(ln, "Map");
|
|
3054
3054
|
const qo = sS;
|
|
3055
3055
|
function lS() {
|
|
3056
3056
|
this.size = 0, this.__data__ = {
|
|
3057
|
-
hash: new
|
|
3057
|
+
hash: new nr(),
|
|
3058
3058
|
map: new (qo || Sn)(),
|
|
3059
|
-
string: new
|
|
3059
|
+
string: new nr()
|
|
3060
3060
|
};
|
|
3061
3061
|
}
|
|
3062
3062
|
function cS(e) {
|
|
@@ -3125,7 +3125,7 @@ function xS(e) {
|
|
|
3125
3125
|
return e == null ? "" : ig(e);
|
|
3126
3126
|
}
|
|
3127
3127
|
function Qr(e, t) {
|
|
3128
|
-
return
|
|
3128
|
+
return Ve(e) ? e : kc(e, t) ? [e] : wS(xS(e));
|
|
3129
3129
|
}
|
|
3130
3130
|
var SS = 1 / 0;
|
|
3131
3131
|
function Zr(e) {
|
|
@@ -3151,7 +3151,7 @@ function Mc(e, t) {
|
|
|
3151
3151
|
}
|
|
3152
3152
|
var gd = Dt ? Dt.isConcatSpreadable : void 0;
|
|
3153
3153
|
function CS(e) {
|
|
3154
|
-
return
|
|
3154
|
+
return Ve(e) || Wo(e) || !!(gd && e && e[gd]);
|
|
3155
3155
|
}
|
|
3156
3156
|
function Ac(e, t, n, r, o) {
|
|
3157
3157
|
var a = -1, i = e.length;
|
|
@@ -3171,8 +3171,8 @@ function _S(e) {
|
|
|
3171
3171
|
var ES = gg(Object.getPrototypeOf, Object);
|
|
3172
3172
|
const Dc = ES;
|
|
3173
3173
|
var NS = "[object Object]", RS = Function.prototype, TS = Object.prototype, mg = RS.toString, PS = TS.hasOwnProperty, kS = mg.call(Object);
|
|
3174
|
-
function
|
|
3175
|
-
if (!on(e) ||
|
|
3174
|
+
function bt(e) {
|
|
3175
|
+
if (!on(e) || sr(e) != NS)
|
|
3176
3176
|
return !1;
|
|
3177
3177
|
var t = Dc(e);
|
|
3178
3178
|
if (t === null)
|
|
@@ -3263,7 +3263,7 @@ function YS(e, t) {
|
|
|
3263
3263
|
}
|
|
3264
3264
|
function Sg(e, t, n) {
|
|
3265
3265
|
var r = t(e);
|
|
3266
|
-
return
|
|
3266
|
+
return Ve(e) ? r : Mc(r, n(e));
|
|
3267
3267
|
}
|
|
3268
3268
|
function fl(e) {
|
|
3269
3269
|
return Sg(e, Ii, $c);
|
|
@@ -3271,15 +3271,15 @@ function fl(e) {
|
|
|
3271
3271
|
function Ic(e) {
|
|
3272
3272
|
return Sg(e, ca, xg);
|
|
3273
3273
|
}
|
|
3274
|
-
var XS =
|
|
3274
|
+
var XS = cr(ln, "DataView");
|
|
3275
3275
|
const pl = XS;
|
|
3276
|
-
var JS =
|
|
3276
|
+
var JS = cr(ln, "Promise");
|
|
3277
3277
|
const hl = JS;
|
|
3278
|
-
var QS =
|
|
3279
|
-
const
|
|
3280
|
-
var wd = "[object Map]", ZS = "[object Object]", xd = "[object Promise]", Sd = "[object Set]", Cd = "[object WeakMap]", Od = "[object DataView]", eC =
|
|
3281
|
-
(pl && qn(new pl(new ArrayBuffer(1))) != Od || qo && qn(new qo()) != wd || hl && qn(hl.resolve()) != xd ||
|
|
3282
|
-
var t =
|
|
3278
|
+
var QS = cr(ln, "Set");
|
|
3279
|
+
const kr = QS;
|
|
3280
|
+
var wd = "[object Map]", ZS = "[object Object]", xd = "[object Promise]", Sd = "[object Set]", Cd = "[object WeakMap]", Od = "[object DataView]", eC = lr(pl), tC = lr(qo), nC = lr(hl), rC = lr(kr), oC = lr(dl), qn = sr;
|
|
3281
|
+
(pl && qn(new pl(new ArrayBuffer(1))) != Od || qo && qn(new qo()) != wd || hl && qn(hl.resolve()) != xd || kr && qn(new kr()) != Sd || dl && qn(new dl()) != Cd) && (qn = function(e) {
|
|
3282
|
+
var t = sr(e), n = t == ZS ? e.constructor : void 0, r = n ? lr(n) : "";
|
|
3283
3283
|
if (r)
|
|
3284
3284
|
switch (r) {
|
|
3285
3285
|
case eC:
|
|
@@ -3365,13 +3365,13 @@ var MC = "[object Map]";
|
|
|
3365
3365
|
function AC(e) {
|
|
3366
3366
|
return on(e) && Yo(e) == MC;
|
|
3367
3367
|
}
|
|
3368
|
-
var Nd =
|
|
3368
|
+
var Nd = Ar && Ar.isMap, DC = Nd ? Tc(Nd) : AC;
|
|
3369
3369
|
const $C = DC;
|
|
3370
3370
|
var IC = "[object Set]";
|
|
3371
3371
|
function LC(e) {
|
|
3372
3372
|
return on(e) && Yo(e) == IC;
|
|
3373
3373
|
}
|
|
3374
|
-
var Rd =
|
|
3374
|
+
var Rd = Ar && Ar.isSet, BC = Rd ? Tc(Rd) : LC;
|
|
3375
3375
|
const zC = BC;
|
|
3376
3376
|
var FC = 1, VC = 2, HC = 4, _g = "[object Arguments]", UC = "[object Array]", WC = "[object Boolean]", GC = "[object Date]", KC = "[object Error]", Eg = "[object Function]", qC = "[object GeneratorFunction]", YC = "[object Map]", XC = "[object Number]", Ng = "[object Object]", JC = "[object RegExp]", QC = "[object Set]", ZC = "[object String]", eO = "[object Symbol]", tO = "[object WeakMap]", nO = "[object ArrayBuffer]", rO = "[object DataView]", oO = "[object Float32Array]", aO = "[object Float64Array]", iO = "[object Int8Array]", sO = "[object Int16Array]", lO = "[object Int32Array]", cO = "[object Uint8Array]", uO = "[object Uint8ClampedArray]", dO = "[object Uint16Array]", fO = "[object Uint32Array]", xe = {};
|
|
3377
3377
|
xe[_g] = xe[UC] = xe[nO] = xe[rO] = xe[WC] = xe[GC] = xe[oO] = xe[aO] = xe[iO] = xe[sO] = xe[lO] = xe[YC] = xe[XC] = xe[Ng] = xe[JC] = xe[QC] = xe[ZC] = xe[eO] = xe[cO] = xe[uO] = xe[dO] = xe[fO] = !0;
|
|
@@ -3382,7 +3382,7 @@ function Mo(e, t, n, r, o, a) {
|
|
|
3382
3382
|
return i;
|
|
3383
3383
|
if (!Kt(e))
|
|
3384
3384
|
return e;
|
|
3385
|
-
var u =
|
|
3385
|
+
var u = Ve(e);
|
|
3386
3386
|
if (u) {
|
|
3387
3387
|
if (i = sC(e), !s)
|
|
3388
3388
|
return sg(e, i);
|
|
@@ -3556,7 +3556,7 @@ function BO(e, t, n, r, o, a) {
|
|
|
3556
3556
|
}
|
|
3557
3557
|
var zO = 1, Pd = "[object Arguments]", kd = "[object Array]", $a = "[object Object]", FO = Object.prototype, jd = FO.hasOwnProperty;
|
|
3558
3558
|
function VO(e, t, n, r, o, a) {
|
|
3559
|
-
var i =
|
|
3559
|
+
var i = Ve(e), s = Ve(t), l = i ? kd : Yo(e), c = s ? kd : Yo(t);
|
|
3560
3560
|
l = l == Pd ? $a : l, c = c == Pd ? $a : c;
|
|
3561
3561
|
var u = l == $a, d = c == $a, f = l == c;
|
|
3562
3562
|
if (f && Go(e)) {
|
|
@@ -3636,7 +3636,7 @@ function YO(e, t, n) {
|
|
|
3636
3636
|
break;
|
|
3637
3637
|
e = e[i];
|
|
3638
3638
|
}
|
|
3639
|
-
return a || ++r != o ? a : (o = e == null ? 0 : e.length, !!o && Nc(o) && Di(i, o) && (
|
|
3639
|
+
return a || ++r != o ? a : (o = e == null ? 0 : e.length, !!o && Nc(o) && Di(i, o) && (Ve(e) || Wo(e)));
|
|
3640
3640
|
}
|
|
3641
3641
|
function XO(e, t) {
|
|
3642
3642
|
return e != null && YO(e, t, qO);
|
|
@@ -3662,7 +3662,7 @@ function n_(e) {
|
|
|
3662
3662
|
return kc(e) ? e_(Zr(e)) : t_(e);
|
|
3663
3663
|
}
|
|
3664
3664
|
function Fc(e) {
|
|
3665
|
-
return typeof e == "function" ? e : e == null ? Cc : typeof e == "object" ?
|
|
3665
|
+
return typeof e == "function" ? e : e == null ? Cc : typeof e == "object" ? Ve(e) ? ZO(e[0], e[1]) : KO(e) : n_(e);
|
|
3666
3666
|
}
|
|
3667
3667
|
function r_(e) {
|
|
3668
3668
|
return function(t, n, r) {
|
|
@@ -3697,8 +3697,8 @@ function s_(e, t, n, r, o, a, i) {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
var u = a ? a(s, l, n + "", e, t, i) : void 0, d = u === void 0;
|
|
3699
3699
|
if (d) {
|
|
3700
|
-
var f =
|
|
3701
|
-
u = l, f || p || h ?
|
|
3700
|
+
var f = Ve(l), p = !f && Go(l), h = !f && !p && Pc(l);
|
|
3701
|
+
u = l, f || p || h ? Ve(s) ? u = s : vl(s) ? u = sg(s) : p ? (d = !1, u = bg(l, !0)) : h ? (d = !1, u = Cg(l, !0)) : u = [] : bt(l) || Wo(l) ? (u = s, Wo(s) ? u = i_(s) : (!Kt(s) || Oc(s)) && (u = Og(l))) : d = !1;
|
|
3702
3702
|
}
|
|
3703
3703
|
d && (i.set(l, u), o(u, l, r, a, i), i.delete(l)), gl(e, n, u);
|
|
3704
3704
|
}
|
|
@@ -3752,7 +3752,7 @@ function p_(e, t) {
|
|
|
3752
3752
|
return t = Qr(t, e), e = c_(e, t), e == null || delete e[Zr(Ag(t))];
|
|
3753
3753
|
}
|
|
3754
3754
|
function h_(e) {
|
|
3755
|
-
return
|
|
3755
|
+
return bt(e) ? void 0 : e;
|
|
3756
3756
|
}
|
|
3757
3757
|
var g_ = 1, v_ = 2, m_ = 4, y_ = _S(function(e, t) {
|
|
3758
3758
|
var n = {};
|
|
@@ -3803,8 +3803,8 @@ function x_(e, t) {
|
|
|
3803
3803
|
function S_(e, t) {
|
|
3804
3804
|
return x_(e, f_(Fc(t)));
|
|
3805
3805
|
}
|
|
3806
|
-
var C_ = 1 / 0, O_ =
|
|
3807
|
-
return new
|
|
3806
|
+
var C_ = 1 / 0, O_ = kr && 1 / Bc(new kr([, -0]))[1] == C_ ? function(e) {
|
|
3807
|
+
return new kr(e);
|
|
3808
3808
|
} : Sw;
|
|
3809
3809
|
const __ = O_;
|
|
3810
3810
|
var E_ = 200;
|
|
@@ -4036,7 +4036,7 @@ function zn(e, t) {
|
|
|
4036
4036
|
validator: t
|
|
4037
4037
|
});
|
|
4038
4038
|
}
|
|
4039
|
-
function
|
|
4039
|
+
function Dr(e) {
|
|
4040
4040
|
return new cn({
|
|
4041
4041
|
type: "dynamic",
|
|
4042
4042
|
schema: null,
|
|
@@ -4069,10 +4069,10 @@ function Bg(e, t) {
|
|
|
4069
4069
|
return ye(r);
|
|
4070
4070
|
}
|
|
4071
4071
|
}
|
|
4072
|
-
function
|
|
4072
|
+
function Be() {
|
|
4073
4073
|
return zn("any", () => !0);
|
|
4074
4074
|
}
|
|
4075
|
-
function
|
|
4075
|
+
function De(e) {
|
|
4076
4076
|
return new cn({
|
|
4077
4077
|
type: "array",
|
|
4078
4078
|
schema: e,
|
|
@@ -4089,7 +4089,7 @@ function Me(e) {
|
|
|
4089
4089
|
}
|
|
4090
4090
|
});
|
|
4091
4091
|
}
|
|
4092
|
-
function
|
|
4092
|
+
function $r() {
|
|
4093
4093
|
return zn("boolean", (e) => typeof e == "boolean");
|
|
4094
4094
|
}
|
|
4095
4095
|
function yl(e) {
|
|
@@ -4107,7 +4107,7 @@ function yl(e) {
|
|
|
4107
4107
|
function zg() {
|
|
4108
4108
|
return zn("func", (e) => typeof e == "function" || "Expected a function, but received: " + Nt(e));
|
|
4109
4109
|
}
|
|
4110
|
-
function
|
|
4110
|
+
function mt(e) {
|
|
4111
4111
|
const t = Nt(e), n = typeof e;
|
|
4112
4112
|
return new cn({
|
|
4113
4113
|
type: "literal",
|
|
@@ -4170,7 +4170,7 @@ function Ao(e, t) {
|
|
|
4170
4170
|
}
|
|
4171
4171
|
});
|
|
4172
4172
|
}
|
|
4173
|
-
function
|
|
4173
|
+
function U() {
|
|
4174
4174
|
return zn("string", (e) => typeof e == "string" || "Expected a string, but received: " + Nt(e));
|
|
4175
4175
|
}
|
|
4176
4176
|
function Vg(e) {
|
|
@@ -4188,7 +4188,7 @@ function Vg(e) {
|
|
|
4188
4188
|
}
|
|
4189
4189
|
});
|
|
4190
4190
|
}
|
|
4191
|
-
function
|
|
4191
|
+
function yt(e) {
|
|
4192
4192
|
const t = e.map((n) => n.type).join(" | ");
|
|
4193
4193
|
return new cn({
|
|
4194
4194
|
type: "union",
|
|
@@ -4219,91 +4219,91 @@ function I_() {
|
|
|
4219
4219
|
return zn("unknown", () => !0);
|
|
4220
4220
|
}
|
|
4221
4221
|
const Uc = ye({
|
|
4222
|
-
package:
|
|
4223
|
-
version:
|
|
4224
|
-
name:
|
|
4225
|
-
exportName: K(
|
|
4226
|
-
destructuring: K(
|
|
4227
|
-
subName: K(
|
|
4228
|
-
main: K(
|
|
4229
|
-
cssPaths: K(
|
|
4230
|
-
}), L_ =
|
|
4222
|
+
package: U(),
|
|
4223
|
+
version: U(),
|
|
4224
|
+
name: U(),
|
|
4225
|
+
exportName: K(U()),
|
|
4226
|
+
destructuring: K($r()),
|
|
4227
|
+
subName: K(U()),
|
|
4228
|
+
main: K(U()),
|
|
4229
|
+
cssPaths: K(De(U()))
|
|
4230
|
+
}), L_ = De(Uc), B_ = ["CBlock", "CContainer", "CImage", "CCanvas", "CVideo", "CAudio", "CText", "CNativeTag"];
|
|
4231
4231
|
var At = /* @__PURE__ */ ((e) => (e.SLOT = "SLOT", e.FUNCTION = "FUNCTION", e.EXPRESSION = "EXPRESSION", e))(At || {}), Wc = /* @__PURE__ */ ((e) => (e.DESIGN = "design", e.SAVE = "save", e))(Wc || {}), bl = /* @__PURE__ */ ((e) => (e.FUNC = "FUNC", e.COMP = "COMP", e))(bl || {});
|
|
4232
|
-
const z_ = () => zn("normalObj", (e) => !
|
|
4233
|
-
type:
|
|
4232
|
+
const z_ = () => zn("normalObj", (e) => !bt(e) || [At.SLOT, At.EXPRESSION, At.FUNCTION].includes(e == null ? void 0 : e.type) ? !1 : (eo(e, Ao(U(), Gc)), !0)), Gc = yt([U(), Fg(), $r(), ye({
|
|
4233
|
+
type: mt(At.SLOT),
|
|
4234
4234
|
renderType: yl([bl.FUNC, bl.COMP]),
|
|
4235
4235
|
// if renderType is Func, params will be useful
|
|
4236
|
-
params: K(
|
|
4236
|
+
params: K(De(U())),
|
|
4237
4237
|
// here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
|
|
4238
|
-
value:
|
|
4238
|
+
value: Dr(() => yt([Ir, De(Ir)]))
|
|
4239
4239
|
}), ye({
|
|
4240
|
-
type:
|
|
4241
|
-
value:
|
|
4240
|
+
type: mt(At.EXPRESSION),
|
|
4241
|
+
value: U()
|
|
4242
4242
|
}), ye({
|
|
4243
|
-
type:
|
|
4244
|
-
value:
|
|
4245
|
-
}), z_(),
|
|
4246
|
-
type:
|
|
4247
|
-
value:
|
|
4248
|
-
}),
|
|
4249
|
-
id: K(
|
|
4250
|
-
title: K(
|
|
4251
|
-
componentName:
|
|
4252
|
-
props: K(Ao(
|
|
4253
|
-
nodeName: K(
|
|
4254
|
-
state: K(Ao(
|
|
4255
|
-
children:
|
|
4256
|
-
configure: K(
|
|
4257
|
-
css: K(
|
|
4258
|
-
style: K(
|
|
4259
|
-
classNames: K(
|
|
4260
|
-
refId: K(
|
|
4261
|
-
extra: K(Ao(
|
|
4262
|
-
condition: K(
|
|
4243
|
+
type: mt(At.FUNCTION),
|
|
4244
|
+
value: U()
|
|
4245
|
+
}), z_(), De(Dr(() => Gc))]), Ad = ye({
|
|
4246
|
+
type: mt(At.EXPRESSION),
|
|
4247
|
+
value: U()
|
|
4248
|
+
}), Ir = ye({
|
|
4249
|
+
id: K(U()),
|
|
4250
|
+
title: K(U()),
|
|
4251
|
+
componentName: U(),
|
|
4252
|
+
props: K(Ao(U(), Gc)),
|
|
4253
|
+
nodeName: K(U()),
|
|
4254
|
+
state: K(Ao(U(), Be())),
|
|
4255
|
+
children: Dr(() => K(De(yt([U(), Ir])))),
|
|
4256
|
+
configure: K(Be()),
|
|
4257
|
+
css: K(Be()),
|
|
4258
|
+
style: K(Be()),
|
|
4259
|
+
classNames: K(De(Be())),
|
|
4260
|
+
refId: K(U()),
|
|
4261
|
+
extra: K(Ao(Be(), Be())),
|
|
4262
|
+
condition: K(yt([$r(), Ad])),
|
|
4263
4263
|
loop: K(ye({
|
|
4264
|
-
open:
|
|
4265
|
-
data:
|
|
4266
|
-
args: K(
|
|
4267
|
-
forName: K(
|
|
4268
|
-
forIndex: K(
|
|
4269
|
-
key: K(
|
|
4270
|
-
name: K(
|
|
4264
|
+
open: $r(),
|
|
4265
|
+
data: yt([De(Be()), Ad]),
|
|
4266
|
+
args: K(De(U())),
|
|
4267
|
+
forName: K(U()),
|
|
4268
|
+
forIndex: K(U()),
|
|
4269
|
+
key: K(Be()),
|
|
4270
|
+
name: K(U())
|
|
4271
4271
|
})),
|
|
4272
|
-
methods: K(
|
|
4273
|
-
}), gi =
|
|
4274
|
-
label:
|
|
4275
|
-
tip: K(
|
|
4272
|
+
methods: K(De(Be()))
|
|
4273
|
+
}), gi = yt([U(), ye({
|
|
4274
|
+
label: U(),
|
|
4275
|
+
tip: K(U())
|
|
4276
4276
|
})]), F_ = ye({
|
|
4277
|
-
type:
|
|
4277
|
+
type: mt(
|
|
4278
4278
|
"shape"
|
|
4279
4279
|
/* SHAPE */
|
|
4280
4280
|
),
|
|
4281
|
-
value:
|
|
4282
|
-
name:
|
|
4281
|
+
value: De(ye({
|
|
4282
|
+
name: U(),
|
|
4283
4283
|
title: gi,
|
|
4284
|
-
valueType:
|
|
4284
|
+
valueType: Dr(() => Fi)
|
|
4285
4285
|
}))
|
|
4286
4286
|
}), V_ = ye({
|
|
4287
|
-
type:
|
|
4287
|
+
type: mt(
|
|
4288
4288
|
"enums"
|
|
4289
4289
|
/* ENUMS */
|
|
4290
4290
|
),
|
|
4291
|
-
value:
|
|
4291
|
+
value: De(U())
|
|
4292
4292
|
});
|
|
4293
4293
|
ye({
|
|
4294
|
-
type:
|
|
4294
|
+
type: mt(
|
|
4295
4295
|
"array"
|
|
4296
4296
|
/* ARRAY */
|
|
4297
4297
|
),
|
|
4298
|
-
value:
|
|
4298
|
+
value: Dr(() => Fi)
|
|
4299
4299
|
});
|
|
4300
4300
|
const H_ = ye({
|
|
4301
|
-
type:
|
|
4301
|
+
type: mt(
|
|
4302
4302
|
"array"
|
|
4303
4303
|
/* ARRAY */
|
|
4304
4304
|
),
|
|
4305
|
-
value:
|
|
4306
|
-
}), Fi =
|
|
4305
|
+
value: Dr(() => De(Fi))
|
|
4306
|
+
}), Fi = yt([yl([
|
|
4307
4307
|
"array",
|
|
4308
4308
|
"boolean",
|
|
4309
4309
|
"number",
|
|
@@ -4315,94 +4315,94 @@ const H_ = ye({
|
|
|
4315
4315
|
"expression",
|
|
4316
4316
|
"function"
|
|
4317
4317
|
/* FUNCTION */
|
|
4318
|
-
]), F_, V_, H_]), U_ =
|
|
4319
|
-
componentName:
|
|
4320
|
-
props: K(
|
|
4318
|
+
]), F_, V_, H_]), U_ = yt([U(), ye({
|
|
4319
|
+
componentName: U(),
|
|
4320
|
+
props: K(Be()),
|
|
4321
4321
|
/** 用于标记当前数据的初始值,如添加一个数组元素可以使用该值填充 */
|
|
4322
|
-
initialValue: K(
|
|
4323
|
-
component: K(
|
|
4322
|
+
initialValue: K(Be()),
|
|
4323
|
+
component: K(Be())
|
|
4324
4324
|
})]), xs = ye({
|
|
4325
|
-
name:
|
|
4325
|
+
name: U(),
|
|
4326
4326
|
title: gi,
|
|
4327
4327
|
// 描述 name 对应值的类型
|
|
4328
4328
|
valueType: Fi,
|
|
4329
|
-
description: K(
|
|
4330
|
-
defaultValue:
|
|
4329
|
+
description: K(U()),
|
|
4330
|
+
defaultValue: Be(),
|
|
4331
4331
|
//用于产生 valueType 类型的值
|
|
4332
|
-
setters: K(
|
|
4332
|
+
setters: K(De(U_)),
|
|
4333
4333
|
condition: K(zg())
|
|
4334
4334
|
});
|
|
4335
|
-
|
|
4335
|
+
yt([U(), zg()]);
|
|
4336
4336
|
var wl = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.GROUP = "group", e))(wl || {});
|
|
4337
|
-
|
|
4338
|
-
name:
|
|
4339
|
-
describe: K(
|
|
4337
|
+
yt([U(), ye({
|
|
4338
|
+
name: U(),
|
|
4339
|
+
describe: K(U()),
|
|
4340
4340
|
params: K(ye({
|
|
4341
|
-
name:
|
|
4342
|
-
description:
|
|
4341
|
+
name: U(),
|
|
4342
|
+
description: U()
|
|
4343
4343
|
})),
|
|
4344
|
-
template:
|
|
4344
|
+
template: U()
|
|
4345
4345
|
})]);
|
|
4346
4346
|
const W_ = ye({
|
|
4347
|
-
id: K(
|
|
4348
|
-
title:
|
|
4349
|
-
snapshot:
|
|
4350
|
-
snapshotText: K(
|
|
4351
|
-
description: K(
|
|
4347
|
+
id: K(U()),
|
|
4348
|
+
title: U(),
|
|
4349
|
+
snapshot: yt([U(), Be()]),
|
|
4350
|
+
snapshotText: K(U()),
|
|
4351
|
+
description: K(U()),
|
|
4352
4352
|
// 组件分类,用于搜索
|
|
4353
|
-
tags: K(
|
|
4353
|
+
tags: K(De(U())),
|
|
4354
4354
|
// 分 tab 面板
|
|
4355
|
-
groupName: K(
|
|
4355
|
+
groupName: K(U()),
|
|
4356
4356
|
// 分类
|
|
4357
|
-
category: K(
|
|
4358
|
-
schema: Hc(Bg(
|
|
4359
|
-
componentName: K(
|
|
4357
|
+
category: K(U()),
|
|
4358
|
+
schema: Hc(Bg(Ir, ["id"]), ye({
|
|
4359
|
+
componentName: K(U())
|
|
4360
4360
|
}))
|
|
4361
4361
|
}), G_ = ye({
|
|
4362
|
-
componentName:
|
|
4363
|
-
title:
|
|
4364
|
-
screenshot: K(
|
|
4365
|
-
icon: K(
|
|
4362
|
+
componentName: U(),
|
|
4363
|
+
title: U(),
|
|
4364
|
+
screenshot: K(U()),
|
|
4365
|
+
icon: K(U()),
|
|
4366
4366
|
// 组件分类,用于搜索
|
|
4367
|
-
tags: K(
|
|
4367
|
+
tags: K(De(U())),
|
|
4368
4368
|
// 分 tab 面板
|
|
4369
|
-
groupName: K(
|
|
4369
|
+
groupName: K(U()),
|
|
4370
4370
|
// 分类
|
|
4371
|
-
category: K(
|
|
4371
|
+
category: K(U()),
|
|
4372
4372
|
// 排序
|
|
4373
4373
|
priority: K(Fg()),
|
|
4374
4374
|
npm: K(Uc),
|
|
4375
|
-
snippets:
|
|
4376
|
-
props:
|
|
4375
|
+
snippets: De(W_),
|
|
4376
|
+
props: De(yt([xs, ye({
|
|
4377
4377
|
title: K(gi),
|
|
4378
|
-
type:
|
|
4378
|
+
type: mt(
|
|
4379
4379
|
"single"
|
|
4380
4380
|
/* SINGLE */
|
|
4381
4381
|
),
|
|
4382
4382
|
content: xs
|
|
4383
4383
|
}), ye({
|
|
4384
4384
|
title: K(gi),
|
|
4385
|
-
type:
|
|
4385
|
+
type: mt(
|
|
4386
4386
|
"group"
|
|
4387
4387
|
/* GROUP */
|
|
4388
4388
|
),
|
|
4389
|
-
content:
|
|
4389
|
+
content: De(xs)
|
|
4390
4390
|
})])),
|
|
4391
|
-
fixedProps: K(
|
|
4391
|
+
fixedProps: K(Be()),
|
|
4392
4392
|
// 可以拖入组件
|
|
4393
|
-
isContainer: K(
|
|
4394
|
-
placeholder:
|
|
4395
|
-
width:
|
|
4396
|
-
height:
|
|
4393
|
+
isContainer: K(yt([$r(), ye({
|
|
4394
|
+
placeholder: U(),
|
|
4395
|
+
width: U(),
|
|
4396
|
+
height: U()
|
|
4397
4397
|
})])),
|
|
4398
|
-
|
|
4398
|
+
disableEditorDragDom: K(Be()),
|
|
4399
4399
|
// 如果是布局组件,可以考虑将拖拽控制权转移 or 实现 resize
|
|
4400
|
-
isLayout: K(
|
|
4401
|
-
rootSelector: K(
|
|
4400
|
+
isLayout: K($r()),
|
|
4401
|
+
rootSelector: K(U()),
|
|
4402
4402
|
// selectionToolBarView: optional(func()),
|
|
4403
|
-
advanceCustom: K(
|
|
4403
|
+
advanceCustom: K(Be()),
|
|
4404
4404
|
// 扩展配置
|
|
4405
|
-
extra: K(Ao(
|
|
4405
|
+
extra: K(Ao(Be(), Be()))
|
|
4406
4406
|
}), K_ = (e) => ({
|
|
4407
4407
|
data: t,
|
|
4408
4408
|
message: n,
|
|
@@ -4453,10 +4453,10 @@ const W_ = ye({
|
|
|
4453
4453
|
};
|
|
4454
4454
|
var to = /* @__PURE__ */ ((e) => (e.ROOT_CONTAINER = "RootContainer", e))(to || {});
|
|
4455
4455
|
const q_ = ye({
|
|
4456
|
-
type:
|
|
4457
|
-
value:
|
|
4458
|
-
}), Y_ = Hc(Bg(
|
|
4459
|
-
componentName:
|
|
4456
|
+
type: mt(At.FUNCTION),
|
|
4457
|
+
value: U()
|
|
4458
|
+
}), Y_ = Hc(Bg(Ir, ["componentName"]), ye({
|
|
4459
|
+
componentName: mt(
|
|
4460
4460
|
"RootContainer"
|
|
4461
4461
|
/* ROOT_CONTAINER */
|
|
4462
4462
|
)
|
|
@@ -4487,19 +4487,19 @@ const ua = X_(), J_ = (e, t) => {
|
|
|
4487
4487
|
...e,
|
|
4488
4488
|
value: []
|
|
4489
4489
|
}, r = e.value;
|
|
4490
|
-
let o = new
|
|
4491
|
-
return t && (o = t.materialsMode || new
|
|
4490
|
+
let o = new rr([]);
|
|
4491
|
+
return t && (o = t.materialsMode || new rr([])), r && (Ve(r) ? n.value = r.map((a) => new ze(a, {
|
|
4492
4492
|
parent: t,
|
|
4493
4493
|
materials: o
|
|
4494
|
-
})) :
|
|
4494
|
+
})) : bt(r) && n.value.push(new ze(r, {
|
|
4495
4495
|
parent: t,
|
|
4496
4496
|
materials: o
|
|
4497
4497
|
}))), n;
|
|
4498
4498
|
};
|
|
4499
|
-
class
|
|
4499
|
+
class Lr {
|
|
4500
4500
|
constructor(t, n) {
|
|
4501
4501
|
ie(this, "nodeType", "SLOT"), ie(this, "rawData"), ie(this, "parent"), ie(this, "emitter", ua), ie(this, "data"), ie(this, "id"), ie(this, "materialsMode"), this.parent = (n == null ? void 0 : n.parent) || null, this.rawData = t;
|
|
4502
|
-
const r = (n == null ? void 0 : n.materials) || new
|
|
4502
|
+
const r = (n == null ? void 0 : n.materials) || new rr([]);
|
|
4503
4503
|
this.materialsMode = r, this.id = On(), this.data = J_(t, this);
|
|
4504
4504
|
}
|
|
4505
4505
|
get value() {
|
|
@@ -4507,15 +4507,15 @@ class Br {
|
|
|
4507
4507
|
}
|
|
4508
4508
|
export(t) {
|
|
4509
4509
|
const n = this.data, r = (o) => {
|
|
4510
|
-
if (o instanceof
|
|
4510
|
+
if (o instanceof ze)
|
|
4511
4511
|
return o.export(t);
|
|
4512
|
-
if (
|
|
4512
|
+
if (bt(o)) {
|
|
4513
4513
|
const a = {};
|
|
4514
4514
|
return Object.keys(o || {}).forEach((i) => {
|
|
4515
4515
|
a[i] = r(o[i]);
|
|
4516
4516
|
}), a;
|
|
4517
4517
|
}
|
|
4518
|
-
return
|
|
4518
|
+
return Ve(o) ? o.map((a) => r(a)) : (t === "design" && delete o.id, o);
|
|
4519
4519
|
};
|
|
4520
4520
|
return r(n);
|
|
4521
4521
|
}
|
|
@@ -4528,22 +4528,22 @@ const Hg = (e) => {
|
|
|
4528
4528
|
}), t;
|
|
4529
4529
|
}, xl = (e, t, n) => {
|
|
4530
4530
|
if (e.type)
|
|
4531
|
-
return e.type === At.SLOT ? new
|
|
4531
|
+
return e.type === At.SLOT ? new Lr(e, {
|
|
4532
4532
|
parent: t,
|
|
4533
4533
|
materials: n
|
|
4534
4534
|
}) : e;
|
|
4535
|
-
if (
|
|
4535
|
+
if (bt(e)) {
|
|
4536
4536
|
const r = {};
|
|
4537
4537
|
return Object.keys(e).forEach((o) => {
|
|
4538
4538
|
r[o] = Sl(e[o], t, n);
|
|
4539
4539
|
}), r;
|
|
4540
4540
|
} else
|
|
4541
4541
|
return Array.isArray(e) ? e.map((r) => xl(r, t, n)) : e;
|
|
4542
|
-
}, Sl = (e, t, n) =>
|
|
4543
|
-
let
|
|
4542
|
+
}, Sl = (e, t, n) => bt(e) ? xl(e, t, n) : Ve(e) ? e.map((r) => xl(r, t, n)) : e;
|
|
4543
|
+
let Br = class Ug {
|
|
4544
4544
|
constructor(t, n, r) {
|
|
4545
4545
|
ie(this, "nodeType", "PROP"), ie(this, "rawData"), ie(this, "parent"), ie(this, "emitter", ua), ie(this, "data"), ie(this, "name"), ie(this, "materialsMode");
|
|
4546
|
-
const o = (r == null ? void 0 : r.materials) || new
|
|
4546
|
+
const o = (r == null ? void 0 : r.materials) || new rr([]);
|
|
4547
4547
|
this.materialsMode = o, this.parent = r == null ? void 0 : r.parent, this.rawData = n, this.name = t, this.data = Sl(n, this, o);
|
|
4548
4548
|
}
|
|
4549
4549
|
// TODO:
|
|
@@ -4563,7 +4563,7 @@ let zr = class Ug {
|
|
|
4563
4563
|
value: this.data,
|
|
4564
4564
|
preValue: n,
|
|
4565
4565
|
node: this
|
|
4566
|
-
}), this.parent && !(this.parent instanceof
|
|
4566
|
+
}), this.parent && !(this.parent instanceof Lr) && this.emitter.emit("onNodeChange", {
|
|
4567
4567
|
value: this.parent.value,
|
|
4568
4568
|
preValue: this.parent.value,
|
|
4569
4569
|
node: this.parent
|
|
@@ -4571,7 +4571,7 @@ let zr = class Ug {
|
|
|
4571
4571
|
}
|
|
4572
4572
|
get material() {
|
|
4573
4573
|
const t = this.parent;
|
|
4574
|
-
if (t instanceof
|
|
4574
|
+
if (t instanceof ze) {
|
|
4575
4575
|
const n = t.material;
|
|
4576
4576
|
return Hg((n == null ? void 0 : n.value.props) || []).find((r) => r.name === this.name);
|
|
4577
4577
|
} else
|
|
@@ -4579,11 +4579,11 @@ let zr = class Ug {
|
|
|
4579
4579
|
}
|
|
4580
4580
|
export(t) {
|
|
4581
4581
|
const n = this.data, r = (o) => {
|
|
4582
|
-
if (o instanceof Ug || o instanceof
|
|
4582
|
+
if (o instanceof Ug || o instanceof Lr || o instanceof ze)
|
|
4583
4583
|
return o.export(t);
|
|
4584
|
-
if (
|
|
4584
|
+
if (Ve(o))
|
|
4585
4585
|
return o.map((a) => r(a));
|
|
4586
|
-
if (
|
|
4586
|
+
if (bt(o)) {
|
|
4587
4587
|
const a = {};
|
|
4588
4588
|
return Object.keys(o || {}).forEach((i) => {
|
|
4589
4589
|
a[i] = r(o[i]);
|
|
@@ -4599,10 +4599,10 @@ const Q_ = (e) => {
|
|
|
4599
4599
|
return !0;
|
|
4600
4600
|
Kc({
|
|
4601
4601
|
data: e,
|
|
4602
|
-
dataStruct:
|
|
4602
|
+
dataStruct: Ir,
|
|
4603
4603
|
throwError: !1
|
|
4604
4604
|
});
|
|
4605
|
-
}, Dd = (e, t, n = new
|
|
4605
|
+
}, Dd = (e, t, n = new rr([])) => {
|
|
4606
4606
|
if (typeof e == "string")
|
|
4607
4607
|
return e;
|
|
4608
4608
|
const r = {
|
|
@@ -4619,34 +4619,34 @@ const Q_ = (e) => {
|
|
|
4619
4619
|
return o.length && o.forEach((a) => {
|
|
4620
4620
|
var i;
|
|
4621
4621
|
const s = (i = e.props) == null ? void 0 : i[a];
|
|
4622
|
-
if (s instanceof
|
|
4622
|
+
if (s instanceof Br) {
|
|
4623
4623
|
r.props[a] = s;
|
|
4624
4624
|
return;
|
|
4625
4625
|
}
|
|
4626
|
-
r.props[a] = new
|
|
4626
|
+
r.props[a] = new Br(a, s || "", {
|
|
4627
4627
|
parent: t,
|
|
4628
4628
|
materials: n
|
|
4629
4629
|
});
|
|
4630
4630
|
}), e.children && (Array.isArray(e.children) ? r.children = e.children.map((a) => {
|
|
4631
|
-
if (a instanceof
|
|
4631
|
+
if (a instanceof ze)
|
|
4632
4632
|
return a;
|
|
4633
|
-
if (
|
|
4633
|
+
if (bt(a)) {
|
|
4634
4634
|
const i = a;
|
|
4635
|
-
return new
|
|
4635
|
+
return new ze(i, {
|
|
4636
4636
|
parent: t,
|
|
4637
4637
|
materials: n
|
|
4638
4638
|
});
|
|
4639
4639
|
} else
|
|
4640
4640
|
return a;
|
|
4641
|
-
}) : (e.children instanceof
|
|
4641
|
+
}) : (e.children instanceof ze && (r.children = [e.children]), r.children = [new ze(e.children, {
|
|
4642
4642
|
parent: t,
|
|
4643
4643
|
materials: n
|
|
4644
4644
|
})])), r;
|
|
4645
4645
|
};
|
|
4646
|
-
let
|
|
4646
|
+
let ze = class Cl {
|
|
4647
4647
|
constructor(t, n) {
|
|
4648
4648
|
ie(this, "nodeType", "NODE"), ie(this, "rawData"), ie(this, "data"), ie(this, "emitter", ua), ie(this, "parent"), ie(this, "materialsModel"), ie(this, "listenerHandle"), ie(this, "onChangeCbQueue"), this.rawData = JSON.parse(JSON.stringify(t)), Q_(t);
|
|
4649
|
-
const r = (n == null ? void 0 : n.materials) || new
|
|
4649
|
+
const r = (n == null ? void 0 : n.materials) || new rr([]);
|
|
4650
4650
|
this.parent = (n == null ? void 0 : n.parent) || null, this.materialsModel = r, this.data = Dd(t, this, r), this.listenerHandle = [], this.onChangeCbQueue = [], this.registerListener();
|
|
4651
4651
|
}
|
|
4652
4652
|
registerListener() {
|
|
@@ -4755,10 +4755,10 @@ const $d = (e, t, n) => {
|
|
|
4755
4755
|
})
|
|
4756
4756
|
};
|
|
4757
4757
|
let o = [];
|
|
4758
|
-
|
|
4758
|
+
Ve(e.children) ? o = e.children.map((i) => i instanceof ze ? i : bt(i) ? new ze(i, {
|
|
4759
4759
|
parent: t,
|
|
4760
4760
|
materials: n
|
|
4761
|
-
}) : i) : e.children instanceof
|
|
4761
|
+
}) : i) : e.children instanceof ze ? o.push(e.children) : e.children && bt(e.children) && o.push(new ze(e.children, {
|
|
4762
4762
|
parent: t,
|
|
4763
4763
|
materials: n
|
|
4764
4764
|
}));
|
|
@@ -4766,7 +4766,7 @@ const $d = (e, t, n) => {
|
|
|
4766
4766
|
return a.length && a.forEach((i) => {
|
|
4767
4767
|
var s;
|
|
4768
4768
|
const l = (s = e.props) == null ? void 0 : s[i];
|
|
4769
|
-
l instanceof
|
|
4769
|
+
l instanceof Br ? r.props[i] = l : r.props[i] = new Br(i, l || "", {
|
|
4770
4770
|
parent: t,
|
|
4771
4771
|
materials: n
|
|
4772
4772
|
});
|
|
@@ -4871,7 +4871,7 @@ class Jo {
|
|
|
4871
4871
|
});
|
|
4872
4872
|
}
|
|
4873
4873
|
}
|
|
4874
|
-
const Kn = (e) => (e == null ? void 0 : e.type) === At.EXPRESSION, Z_ = (e) => (e == null ? void 0 : e.type) === At.FUNCTION, On = () => Math.random().toString(32).slice(3, 9), eE = (e) => (e == null ? void 0 : e.nodeType) === "NODE", Ss = (e) => (e == null ? void 0 : e.nodeType) === "PROP", tE = (e) => (e == null ? void 0 : e.nodeType) === "SLOT", qc = (e) => S_(e, (t) =>
|
|
4874
|
+
const Kn = (e) => (e == null ? void 0 : e.type) === At.EXPRESSION, Z_ = (e) => (e == null ? void 0 : e.type) === At.FUNCTION, On = () => Math.random().toString(32).slice(3, 9), eE = (e) => (e == null ? void 0 : e.nodeType) === "NODE", Ss = (e) => (e == null ? void 0 : e.nodeType) === "PROP", tE = (e) => (e == null ? void 0 : e.nodeType) === "SLOT", qc = (e) => S_(e, (t) => bt(t) ? !Object.keys(t).length : Ve(t) ? !t.length : !t);
|
|
4875
4875
|
function nE(e, t) {
|
|
4876
4876
|
const n = [e];
|
|
4877
4877
|
for (; n.length; ) {
|
|
@@ -4879,22 +4879,22 @@ function nE(e, t) {
|
|
|
4879
4879
|
if (r && t(r))
|
|
4880
4880
|
return r;
|
|
4881
4881
|
const o = (r == null ? void 0 : r.props) || {}, a = (s) => {
|
|
4882
|
-
if (s instanceof
|
|
4882
|
+
if (s instanceof ze) {
|
|
4883
4883
|
n.push(s);
|
|
4884
4884
|
return;
|
|
4885
4885
|
}
|
|
4886
|
-
if (s instanceof
|
|
4886
|
+
if (s instanceof Lr && a(s.value.value), s instanceof Br) {
|
|
4887
4887
|
a(s.value);
|
|
4888
4888
|
return;
|
|
4889
4889
|
}
|
|
4890
|
-
if (
|
|
4890
|
+
if (bt(s)) {
|
|
4891
4891
|
const l = s;
|
|
4892
4892
|
Object.keys(l).forEach((c) => {
|
|
4893
4893
|
a(l[c]);
|
|
4894
4894
|
});
|
|
4895
4895
|
return;
|
|
4896
4896
|
}
|
|
4897
|
-
if (
|
|
4897
|
+
if (Ve(s)) {
|
|
4898
4898
|
s.forEach((l) => {
|
|
4899
4899
|
a(l);
|
|
4900
4900
|
});
|
|
@@ -4902,7 +4902,7 @@ function nE(e, t) {
|
|
|
4902
4902
|
}
|
|
4903
4903
|
};
|
|
4904
4904
|
a(o);
|
|
4905
|
-
const i = (r == null ? void 0 : r.value.children.filter((s) => s instanceof
|
|
4905
|
+
const i = (r == null ? void 0 : r.value.children.filter((s) => s instanceof ze)) || [];
|
|
4906
4906
|
n.push(...i);
|
|
4907
4907
|
}
|
|
4908
4908
|
}
|
|
@@ -4948,7 +4948,7 @@ class oE {
|
|
|
4948
4948
|
}
|
|
4949
4949
|
}
|
|
4950
4950
|
const aE = (e) => {
|
|
4951
|
-
if (!
|
|
4951
|
+
if (!Ve(e))
|
|
4952
4952
|
throw new Error("Materials must be a array");
|
|
4953
4953
|
return e.map((t) => new oE(t));
|
|
4954
4954
|
}, iE = (e) => {
|
|
@@ -4960,7 +4960,7 @@ const aE = (e) => {
|
|
|
4960
4960
|
});
|
|
4961
4961
|
});
|
|
4962
4962
|
};
|
|
4963
|
-
class
|
|
4963
|
+
let rr = class {
|
|
4964
4964
|
constructor(t) {
|
|
4965
4965
|
ie(this, "rawData"), ie(this, "data"), ie(this, "usedMaterials", []), this.rawData = t, iE(t), this.data = aE(t);
|
|
4966
4966
|
}
|
|
@@ -5016,25 +5016,25 @@ class ar {
|
|
|
5016
5016
|
get rawValue() {
|
|
5017
5017
|
return this.rawData;
|
|
5018
5018
|
}
|
|
5019
|
-
}
|
|
5019
|
+
};
|
|
5020
5020
|
const sE = ye({
|
|
5021
|
-
version:
|
|
5022
|
-
name:
|
|
5023
|
-
css: K(
|
|
5024
|
-
renderType: K(
|
|
5021
|
+
version: U(),
|
|
5022
|
+
name: U(),
|
|
5023
|
+
css: K(U()),
|
|
5024
|
+
renderType: K(yt([mt(
|
|
5025
5025
|
"COMPONENT"
|
|
5026
5026
|
/* COMPONENT */
|
|
5027
|
-
),
|
|
5027
|
+
), mt(
|
|
5028
5028
|
"PAGE"
|
|
5029
5029
|
/* PAGE */
|
|
5030
5030
|
)])),
|
|
5031
|
-
methods: K(
|
|
5032
|
-
componentsMeta:
|
|
5033
|
-
componentName:
|
|
5031
|
+
methods: K(De(q_)),
|
|
5032
|
+
componentsMeta: De(Hc(ye({
|
|
5033
|
+
componentName: U()
|
|
5034
5034
|
}), Uc)),
|
|
5035
5035
|
thirdLibs: K(L_),
|
|
5036
5036
|
componentsTree: Y_,
|
|
5037
|
-
assets: K(
|
|
5037
|
+
assets: K(De(Be()))
|
|
5038
5038
|
}), Wg = (e) => (Kc({
|
|
5039
5039
|
data: e,
|
|
5040
5040
|
dataStruct: sE,
|
|
@@ -5048,7 +5048,7 @@ const sE = ye({
|
|
|
5048
5048
|
});
|
|
5049
5049
|
class vi {
|
|
5050
5050
|
constructor(t, n) {
|
|
5051
|
-
ie(this, "nodeType", "PAGE"), ie(this, "rawData"), ie(this, "emitter", ua), ie(this, "data"), ie(this, "parent"), ie(this, "materialsModel"), ie(this, "assetPackagesList"), Wg(t), this.rawData = JSON.parse(JSON.stringify(t)), this.materialsModel = new
|
|
5051
|
+
ie(this, "nodeType", "PAGE"), ie(this, "rawData"), ie(this, "emitter", ua), ie(this, "data"), ie(this, "parent"), ie(this, "materialsModel"), ie(this, "assetPackagesList"), Wg(t), this.rawData = JSON.parse(JSON.stringify(t)), this.materialsModel = new rr((n == null ? void 0 : n.materials) || []), this.data = Cs(t, this, this.materialsModel), this.assetPackagesList = [...(n == null ? void 0 : n.assetPackagesList) || [], ...this.data.assets || []];
|
|
5052
5052
|
}
|
|
5053
5053
|
updatePage(t) {
|
|
5054
5054
|
const n = this.data;
|
|
@@ -5082,9 +5082,9 @@ class vi {
|
|
|
5082
5082
|
const a = n.parent;
|
|
5083
5083
|
if (a === null && n instanceof Jo)
|
|
5084
5084
|
return console.warn("Not found parent node"), !1;
|
|
5085
|
-
if (a instanceof
|
|
5085
|
+
if (a instanceof Br)
|
|
5086
5086
|
return console.warn("CProp can not add node"), !1;
|
|
5087
|
-
if (a instanceof
|
|
5087
|
+
if (a instanceof Lr) {
|
|
5088
5088
|
const s = a.value.value, l = s.findIndex((c) => c === n) ?? -1;
|
|
5089
5089
|
return l >= 0 ? (r === "BEFORE" ? s.splice(l, 0, t) : s.splice(l + 1, 0, t), t.parent = a, (o = a.parent) == null || o.updateValue(), !0) : !1;
|
|
5090
5090
|
}
|
|
@@ -5097,7 +5097,7 @@ class vi {
|
|
|
5097
5097
|
return n.value.children.unshift(t), t.parent = n, n.updateValue(), !0;
|
|
5098
5098
|
if (r === "CHILD_END")
|
|
5099
5099
|
return n.value.children.push(t), t.parent = n, n.updateValue(), !0;
|
|
5100
|
-
if (
|
|
5100
|
+
if (bt(r)) {
|
|
5101
5101
|
const a = r;
|
|
5102
5102
|
if (a.type === "CHILD") {
|
|
5103
5103
|
const i = a.pos, s = a.index || 0;
|
|
@@ -5108,7 +5108,7 @@ class vi {
|
|
|
5108
5108
|
return !1;
|
|
5109
5109
|
}
|
|
5110
5110
|
createNode(t) {
|
|
5111
|
-
return delete t.id, new
|
|
5111
|
+
return delete t.id, new ze(t, {
|
|
5112
5112
|
parent: null,
|
|
5113
5113
|
materials: this.materialsModel
|
|
5114
5114
|
});
|
|
@@ -5120,7 +5120,7 @@ class vi {
|
|
|
5120
5120
|
copyNode(t) {
|
|
5121
5121
|
const n = t.export("design");
|
|
5122
5122
|
n.id = On();
|
|
5123
|
-
const r = new
|
|
5123
|
+
const r = new ze(n, {
|
|
5124
5124
|
parent: t.parent,
|
|
5125
5125
|
materials: this.materialsModel
|
|
5126
5126
|
});
|
|
@@ -5128,7 +5128,7 @@ class vi {
|
|
|
5128
5128
|
}
|
|
5129
5129
|
copyNodeById(t) {
|
|
5130
5130
|
const n = this.getNode(t);
|
|
5131
|
-
return n && n instanceof
|
|
5131
|
+
return n && n instanceof ze ? this.copyNode(n) : !1;
|
|
5132
5132
|
}
|
|
5133
5133
|
moveNode(t, n, r) {
|
|
5134
5134
|
this.deleteNode(t);
|
|
@@ -5137,7 +5137,7 @@ class vi {
|
|
|
5137
5137
|
}
|
|
5138
5138
|
moveNodeById(t, n, r) {
|
|
5139
5139
|
const o = this.getNode(t), a = this.getNode(n);
|
|
5140
|
-
return o && a && o instanceof
|
|
5140
|
+
return o && a && o instanceof ze && a instanceof ze ? this.moveNode(o, a, r) : !1;
|
|
5141
5141
|
}
|
|
5142
5142
|
// replaceNode(targetNode, node) {}
|
|
5143
5143
|
deleteNode(t) {
|
|
@@ -5145,11 +5145,11 @@ class vi {
|
|
|
5145
5145
|
const r = t.parent;
|
|
5146
5146
|
if (!r)
|
|
5147
5147
|
throw new Error("parent node is null or undefined, pls check it");
|
|
5148
|
-
if (r instanceof
|
|
5148
|
+
if (r instanceof Lr) {
|
|
5149
5149
|
const o = r.value.value, a = o.findIndex((s) => s === t), i = o[a];
|
|
5150
5150
|
return o.splice(a, 1), (n = r.parent) == null || n.updateValue(), i;
|
|
5151
5151
|
}
|
|
5152
|
-
if (r instanceof
|
|
5152
|
+
if (r instanceof ze || r instanceof Jo) {
|
|
5153
5153
|
const o = r.value.children, a = o.findIndex((s) => s === t), i = o[a];
|
|
5154
5154
|
return o.splice(a, 1), r.updateValue(), i;
|
|
5155
5155
|
}
|
|
@@ -5195,8 +5195,8 @@ const Gg = lE;
|
|
|
5195
5195
|
var cE = typeof self == "object" && self && self.Object === Object && self, uE = Gg || cE || Function("return this")();
|
|
5196
5196
|
const no = uE;
|
|
5197
5197
|
var dE = no.Symbol;
|
|
5198
|
-
const
|
|
5199
|
-
var Kg = Object.prototype, fE = Kg.hasOwnProperty, pE = Kg.toString, Co =
|
|
5198
|
+
const zr = dE;
|
|
5199
|
+
var Kg = Object.prototype, fE = Kg.hasOwnProperty, pE = Kg.toString, Co = zr ? zr.toStringTag : void 0;
|
|
5200
5200
|
function hE(e) {
|
|
5201
5201
|
var t = fE.call(e, Co), n = e[Co];
|
|
5202
5202
|
try {
|
|
@@ -5211,7 +5211,7 @@ var gE = Object.prototype, vE = gE.toString;
|
|
|
5211
5211
|
function mE(e) {
|
|
5212
5212
|
return vE.call(e);
|
|
5213
5213
|
}
|
|
5214
|
-
var yE = "[object Null]", bE = "[object Undefined]", Id =
|
|
5214
|
+
var yE = "[object Null]", bE = "[object Undefined]", Id = zr ? zr.toStringTag : void 0;
|
|
5215
5215
|
function da(e) {
|
|
5216
5216
|
return e == null ? e === void 0 ? bE : yE : Id && Id in Object(e) ? hE(e) : mE(e);
|
|
5217
5217
|
}
|
|
@@ -5228,19 +5228,19 @@ function SE(e, t) {
|
|
|
5228
5228
|
return o;
|
|
5229
5229
|
}
|
|
5230
5230
|
var CE = Array.isArray;
|
|
5231
|
-
const
|
|
5232
|
-
var OE = 1 / 0, Ld =
|
|
5231
|
+
const Fr = CE;
|
|
5232
|
+
var OE = 1 / 0, Ld = zr ? zr.prototype : void 0, Bd = Ld ? Ld.toString : void 0;
|
|
5233
5233
|
function qg(e) {
|
|
5234
5234
|
if (typeof e == "string")
|
|
5235
5235
|
return e;
|
|
5236
|
-
if (
|
|
5236
|
+
if (Fr(e))
|
|
5237
5237
|
return SE(e, qg) + "";
|
|
5238
5238
|
if (xE(e))
|
|
5239
5239
|
return Bd ? Bd.call(e) : "";
|
|
5240
5240
|
var t = e + "";
|
|
5241
5241
|
return t == "0" && 1 / e == -OE ? "-0" : t;
|
|
5242
5242
|
}
|
|
5243
|
-
function
|
|
5243
|
+
function ur(e) {
|
|
5244
5244
|
var t = typeof e;
|
|
5245
5245
|
return e != null && (t == "object" || t == "function");
|
|
5246
5246
|
}
|
|
@@ -5249,7 +5249,7 @@ function Yg(e) {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
var _E = "[object AsyncFunction]", EE = "[object Function]", NE = "[object GeneratorFunction]", RE = "[object Proxy]";
|
|
5251
5251
|
function Xc(e) {
|
|
5252
|
-
if (!
|
|
5252
|
+
if (!ur(e))
|
|
5253
5253
|
return !1;
|
|
5254
5254
|
var t = da(e);
|
|
5255
5255
|
return t == EE || t == NE || t == _E || t == RE;
|
|
@@ -5279,7 +5279,7 @@ function ME(e) {
|
|
|
5279
5279
|
}
|
|
5280
5280
|
var AE = /[\\^$.*+?()[\]{}|]/g, DE = /^\[object .+?Constructor\]$/, $E = Function.prototype, IE = Object.prototype, LE = $E.toString, BE = IE.hasOwnProperty, zE = RegExp("^" + LE.call(BE).replace(AE, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
5281
5281
|
function FE(e) {
|
|
5282
|
-
if (!
|
|
5282
|
+
if (!ur(e) || PE(e))
|
|
5283
5283
|
return !1;
|
|
5284
5284
|
var t = Xc(e) ? zE : DE;
|
|
5285
5285
|
return t.test(ME(e));
|
|
@@ -5295,7 +5295,7 @@ var Fd = Object.create, HE = function() {
|
|
|
5295
5295
|
function e() {
|
|
5296
5296
|
}
|
|
5297
5297
|
return function(t) {
|
|
5298
|
-
if (!
|
|
5298
|
+
if (!ur(t))
|
|
5299
5299
|
return {};
|
|
5300
5300
|
if (Fd)
|
|
5301
5301
|
return Fd(t);
|
|
@@ -5413,7 +5413,7 @@ function Zc(e) {
|
|
|
5413
5413
|
return e != null && Jg(e.length) && !Xc(e);
|
|
5414
5414
|
}
|
|
5415
5415
|
function f2(e, t, n) {
|
|
5416
|
-
if (!
|
|
5416
|
+
if (!ur(n))
|
|
5417
5417
|
return !1;
|
|
5418
5418
|
var r = typeof t;
|
|
5419
5419
|
return (r == "number" ? Zc(n) && Xg(t, n.length) : r == "string" && t in n) ? Vi(n[t], e) : !1;
|
|
@@ -5476,7 +5476,7 @@ var Kd = Gd && Gd.isTypedArray, Q2 = Kd ? Y2(Kd) : q2;
|
|
|
5476
5476
|
const rv = Q2;
|
|
5477
5477
|
var Z2 = Object.prototype, eN = Z2.hasOwnProperty;
|
|
5478
5478
|
function tN(e, t) {
|
|
5479
|
-
var n =
|
|
5479
|
+
var n = Fr(e), r = !n && Ol(e), o = !n && !r && tv(e), a = !n && !r && !o && rv(e), i = n || r || o || a, s = i ? g2(e.length, String) : [], l = s.length;
|
|
5480
5480
|
for (var c in e)
|
|
5481
5481
|
(t || eN.call(e, c)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
5482
5482
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -5499,7 +5499,7 @@ function rN(e) {
|
|
|
5499
5499
|
}
|
|
5500
5500
|
var oN = Object.prototype, aN = oN.hasOwnProperty;
|
|
5501
5501
|
function iN(e) {
|
|
5502
|
-
if (!
|
|
5502
|
+
if (!ur(e))
|
|
5503
5503
|
return rN(e);
|
|
5504
5504
|
var t = Qg(e), n = [];
|
|
5505
5505
|
for (var r in e)
|
|
@@ -5537,18 +5537,18 @@ function yN(e, t) {
|
|
|
5537
5537
|
var n = this.__data__;
|
|
5538
5538
|
return this.size += this.has(e) ? 0 : 1, n[e] = Qo && t === void 0 ? mN : t, this;
|
|
5539
5539
|
}
|
|
5540
|
-
function
|
|
5540
|
+
function or(e) {
|
|
5541
5541
|
var t = -1, n = e == null ? 0 : e.length;
|
|
5542
5542
|
for (this.clear(); ++t < n; ) {
|
|
5543
5543
|
var r = e[t];
|
|
5544
5544
|
this.set(r[0], r[1]);
|
|
5545
5545
|
}
|
|
5546
5546
|
}
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5547
|
+
or.prototype.clear = lN;
|
|
5548
|
+
or.prototype.delete = cN;
|
|
5549
|
+
or.prototype.get = pN;
|
|
5550
|
+
or.prototype.has = vN;
|
|
5551
|
+
or.prototype.set = yN;
|
|
5552
5552
|
function bN() {
|
|
5553
5553
|
this.__data__ = [], this.size = 0;
|
|
5554
5554
|
}
|
|
@@ -5593,9 +5593,9 @@ var EN = Jc(no, "Map");
|
|
|
5593
5593
|
const av = EN;
|
|
5594
5594
|
function NN() {
|
|
5595
5595
|
this.size = 0, this.__data__ = {
|
|
5596
|
-
hash: new
|
|
5596
|
+
hash: new or(),
|
|
5597
5597
|
map: new (av || _n)(),
|
|
5598
|
-
string: new
|
|
5598
|
+
string: new or()
|
|
5599
5599
|
};
|
|
5600
5600
|
}
|
|
5601
5601
|
function RN(e) {
|
|
@@ -5638,7 +5638,7 @@ function iv(e) {
|
|
|
5638
5638
|
var MN = nN(Object.getPrototypeOf, Object);
|
|
5639
5639
|
const sv = MN;
|
|
5640
5640
|
var AN = "[object Object]", DN = Function.prototype, $N = Object.prototype, lv = DN.toString, IN = $N.hasOwnProperty, LN = lv.call(Object);
|
|
5641
|
-
function
|
|
5641
|
+
function Vr(e) {
|
|
5642
5642
|
if (!ro(e) || da(e) != AN)
|
|
5643
5643
|
return !1;
|
|
5644
5644
|
var t = sv(e);
|
|
@@ -5770,14 +5770,14 @@ function kR(e, t, n, r, o, a, i) {
|
|
|
5770
5770
|
}
|
|
5771
5771
|
var u = a ? a(s, l, n + "", e, t, i) : void 0, d = u === void 0;
|
|
5772
5772
|
if (d) {
|
|
5773
|
-
var f =
|
|
5774
|
-
u = l, f || p || h ?
|
|
5773
|
+
var f = Fr(l), p = !f && tv(l), h = !f && !p && rv(l);
|
|
5774
|
+
u = l, f || p || h ? Fr(s) ? u = s : TR(s) ? u = GE(s) : p ? (d = !1, u = xR(l, !0)) : h ? (d = !1, u = OR(l, !0)) : u = [] : Vr(l) || Ol(l) ? (u = s, Ol(s) ? u = PR(s) : (!ur(s) || Xc(s)) && (u = _R(l))) : d = !1;
|
|
5775
5775
|
}
|
|
5776
5776
|
d && (i.set(l, u), o(u, l, r, a, i), i.delete(l)), Nl(e, n, u);
|
|
5777
5777
|
}
|
|
5778
5778
|
function mv(e, t, n, r, o) {
|
|
5779
5779
|
e !== t && RR(t, function(a, i) {
|
|
5780
|
-
if (o || (o = new ao()),
|
|
5780
|
+
if (o || (o = new ao()), ur(a))
|
|
5781
5781
|
kR(e, t, i, n, mv, r, o);
|
|
5782
5782
|
else {
|
|
5783
5783
|
var s = r ? r(Rl(e, i), a, i + "", e, t, o) : void 0;
|
|
@@ -5806,7 +5806,7 @@ function $R(e) {
|
|
|
5806
5806
|
}
|
|
5807
5807
|
return t.displayName = e.displayName, t;
|
|
5808
5808
|
}
|
|
5809
|
-
const
|
|
5809
|
+
const yr = (e, t) => {
|
|
5810
5810
|
const n = (r) => {
|
|
5811
5811
|
const o = `
|
|
5812
5812
|
${Object.keys(t).map((a) => `const ${a} = $$context['${a}'];`).join(`
|
|
@@ -6040,10 +6040,10 @@ class WR {
|
|
|
6040
6040
|
return c(l).component;
|
|
6041
6041
|
} else {
|
|
6042
6042
|
if (Kn(i))
|
|
6043
|
-
return
|
|
6043
|
+
return yr(i.value, n || {});
|
|
6044
6044
|
if (Z_(i))
|
|
6045
6045
|
return IR(i.value, n, this.storeManager);
|
|
6046
|
-
if (
|
|
6046
|
+
if (Vr(i)) {
|
|
6047
6047
|
let s = i;
|
|
6048
6048
|
Ss(i) && (s = i.value);
|
|
6049
6049
|
const l = s, c = {};
|
|
@@ -6065,9 +6065,9 @@ class WR {
|
|
|
6065
6065
|
Ss(i) && (s = i.value), n(s) ? r.push({
|
|
6066
6066
|
keyPath: a,
|
|
6067
6067
|
val: s
|
|
6068
|
-
}) :
|
|
6068
|
+
}) : Fr(s) ? s.forEach((l, c) => {
|
|
6069
6069
|
o([...a, String(c)], l);
|
|
6070
|
-
}) :
|
|
6070
|
+
}) : Vr(s) && Object.keys(s).forEach((l) => {
|
|
6071
6071
|
o([...a, l], s[l]);
|
|
6072
6072
|
});
|
|
6073
6073
|
};
|
|
@@ -6200,7 +6200,7 @@ class WR {
|
|
|
6200
6200
|
let N = h.data || [];
|
|
6201
6201
|
if (Kn(h.data)) {
|
|
6202
6202
|
const R = h.data;
|
|
6203
|
-
N =
|
|
6203
|
+
N = yr(R.value, f || {});
|
|
6204
6204
|
}
|
|
6205
6205
|
return v = N.map((...R) => {
|
|
6206
6206
|
var T;
|
|
@@ -6214,7 +6214,7 @@ class WR {
|
|
|
6214
6214
|
}), oe = ((T = n.value.classNames) == null ? void 0 : T.map((Y) => {
|
|
6215
6215
|
var ee;
|
|
6216
6216
|
const ce = Y.name;
|
|
6217
|
-
return Kn(Y.status) &&
|
|
6217
|
+
return Kn(Y.status) && yr(String(((ee = Y.status) == null ? void 0 : ee.value) || ""), M) ? ce : "";
|
|
6218
6218
|
})) || [];
|
|
6219
6219
|
let ne = `${V.className ?? ""} ${oe.join(" ")}`.trim();
|
|
6220
6220
|
n.value.css && (ne = `${n.value.css.class} ${ne}`.trim()), V.className = ne;
|
|
@@ -6239,7 +6239,7 @@ class WR {
|
|
|
6239
6239
|
}), L = Y;
|
|
6240
6240
|
}
|
|
6241
6241
|
if (V.key = `${V.key}-${j}`, Kn(h.key)) {
|
|
6242
|
-
const Y = h.key, ee =
|
|
6242
|
+
const Y = h.key, ee = yr(Y.value, M || {});
|
|
6243
6243
|
V.key += `-${ee}`;
|
|
6244
6244
|
}
|
|
6245
6245
|
return V.ref = (Y) => {
|
|
@@ -6269,7 +6269,7 @@ class WR {
|
|
|
6269
6269
|
const O = ((i = n.value.classNames) == null ? void 0 : i.map((N) => {
|
|
6270
6270
|
var R;
|
|
6271
6271
|
const T = N.name;
|
|
6272
|
-
return Kn(N.status) &&
|
|
6272
|
+
return Kn(N.status) && yr(((R = N.status) == null ? void 0 : R.value) || "", f) ? T : "";
|
|
6273
6273
|
})) || [];
|
|
6274
6274
|
let x = `${y.className ?? ""} ${O.join(" ")}`.trim();
|
|
6275
6275
|
n.value.css && (x = `${n.value.css.class} ${x}`.trim()), y.className = x;
|
|
@@ -6278,7 +6278,7 @@ class WR {
|
|
|
6278
6278
|
});
|
|
6279
6279
|
n.value.style && (y.style = Zd(g || {}));
|
|
6280
6280
|
let C = n.value.condition ?? !0;
|
|
6281
|
-
typeof C != "boolean" && (C =
|
|
6281
|
+
typeof C != "boolean" && (C = yr(C.value, f || {}));
|
|
6282
6282
|
let S = {
|
|
6283
6283
|
condition: C,
|
|
6284
6284
|
props: y
|
|
@@ -6494,7 +6494,7 @@ class aT extends Q.Component {
|
|
|
6494
6494
|
this.setState({
|
|
6495
6495
|
pageModel: n
|
|
6496
6496
|
});
|
|
6497
|
-
else if (
|
|
6497
|
+
else if (Vr(n) && Wg(n)) {
|
|
6498
6498
|
const r = n;
|
|
6499
6499
|
this.setState({
|
|
6500
6500
|
pageModel: new vi(r, {
|
|
@@ -6639,7 +6639,7 @@ const lT = (e) => {
|
|
|
6639
6639
|
node: t
|
|
6640
6640
|
} = e, n = le(() => {
|
|
6641
6641
|
const s = t.isContainer();
|
|
6642
|
-
return
|
|
6642
|
+
return Vr(s) ? s : {
|
|
6643
6643
|
placeholder: "Drag the component to place it",
|
|
6644
6644
|
width: "100%",
|
|
6645
6645
|
height: "100%",
|
|
@@ -6671,14 +6671,17 @@ const lT = (e) => {
|
|
|
6671
6671
|
children: r
|
|
6672
6672
|
});
|
|
6673
6673
|
};
|
|
6674
|
-
class
|
|
6674
|
+
class MB extends Q.Component {
|
|
6675
6675
|
constructor(t) {
|
|
6676
6676
|
super(t), Z(this, "instanceManager", new sT()), Z(this, "renderRef"), Z(this, "dropPlaceholder", lT), Z(this, "onGetComponent", (n, r) => {
|
|
6677
6677
|
var o, a;
|
|
6678
6678
|
const i = this;
|
|
6679
6679
|
let s = n;
|
|
6680
6680
|
const l = (a = (o = r.material) == null ? void 0 : o.value.advanceCustom) == null ? void 0 : a.wrapComponent;
|
|
6681
|
-
l && (s = l(n
|
|
6681
|
+
l && (s = l(n, {
|
|
6682
|
+
node: r,
|
|
6683
|
+
ctx: window.__C_ENGINE_DESIGNER_PLUGIN_CTX__
|
|
6684
|
+
}));
|
|
6682
6685
|
class c extends Q.Component {
|
|
6683
6686
|
constructor() {
|
|
6684
6687
|
super(...arguments), Z(this, "_DESIGN_BOX", !0), Z(this, "_NODE_MODEL", r), Z(this, "_NODE_ID", r.id), Z(this, "_UNIQUE_ID", `${r.id}_${On()}`), Z(this, "_STATUS");
|
|
@@ -6696,7 +6699,7 @@ class jB extends Q.Component {
|
|
|
6696
6699
|
...p
|
|
6697
6700
|
} = this.props;
|
|
6698
6701
|
let h = d;
|
|
6699
|
-
return
|
|
6702
|
+
return Fr(d) || (h = [d]), !h.filter(Boolean).length && (r.isContainer() || r.value.componentName === to.ROOT_CONTAINER) && h.push(Q.createElement(i.dropPlaceholder, {
|
|
6700
6703
|
node: r
|
|
6701
6704
|
})), f ? h : Q.createElement(s, p, ...h);
|
|
6702
6705
|
}
|
|
@@ -6778,7 +6781,7 @@ class jB extends Q.Component {
|
|
|
6778
6781
|
};
|
|
6779
6782
|
const f = ((s = i.value.configure) == null ? void 0 : s.devState) || {}, p = (l = i.material) == null ? void 0 : l.value.fixedProps;
|
|
6780
6783
|
if (p !== void 0) {
|
|
6781
|
-
if (
|
|
6784
|
+
if (Vr(p))
|
|
6782
6785
|
d = {
|
|
6783
6786
|
...d,
|
|
6784
6787
|
...p
|
|
@@ -7217,7 +7220,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7217
7220
|
var pT = wv.exports;
|
|
7218
7221
|
const hT = /* @__PURE__ */ pc(pT), Jt = hT.create({
|
|
7219
7222
|
level: 1
|
|
7220
|
-
}),
|
|
7223
|
+
}), ar = (e) => new Promise((t) => {
|
|
7221
7224
|
setTimeout(() => {
|
|
7222
7225
|
t("ok");
|
|
7223
7226
|
}, e ?? 1e3 / 60 * 2);
|
|
@@ -7251,7 +7254,7 @@ class gT extends Q.Component {
|
|
|
7251
7254
|
height: "100%"
|
|
7252
7255
|
},
|
|
7253
7256
|
currentActiveLeftPanel: r
|
|
7254
|
-
}), await
|
|
7257
|
+
}), await ar(), this.emitter.emit("leftPanelVisible", {
|
|
7255
7258
|
visible: !0,
|
|
7256
7259
|
panelName: r
|
|
7257
7260
|
});
|
|
@@ -7263,7 +7266,7 @@ class gT extends Q.Component {
|
|
|
7263
7266
|
width: 0,
|
|
7264
7267
|
height: "100%"
|
|
7265
7268
|
}
|
|
7266
|
-
}), await
|
|
7269
|
+
}), await ar(), this.emitter.emit("leftPanelVisible", {
|
|
7267
7270
|
visible: !1,
|
|
7268
7271
|
panelName: this.state.currentActiveLeftPanel
|
|
7269
7272
|
});
|
|
@@ -7411,7 +7414,7 @@ class gT extends Q.Component {
|
|
|
7411
7414
|
className: je.pluginIconBar,
|
|
7412
7415
|
children: s.map((x) => /* @__PURE__ */ b("div", {
|
|
7413
7416
|
onClick: () => y(x),
|
|
7414
|
-
className:
|
|
7417
|
+
className: vt([je.pluginIconItem, (h == null ? void 0 : h.name) === x.name && je.active]),
|
|
7415
7418
|
children: x.icon
|
|
7416
7419
|
}, x.name))
|
|
7417
7420
|
}), n && /* @__PURE__ */ re(Gu, {
|
|
@@ -7430,7 +7433,7 @@ class gT extends Q.Component {
|
|
|
7430
7433
|
className: je.pluginNameText,
|
|
7431
7434
|
children: (h == null ? void 0 : h.title) || (h == null ? void 0 : h.name)
|
|
7432
7435
|
}), /* @__PURE__ */ b(rn, {
|
|
7433
|
-
className:
|
|
7436
|
+
className: vt([je.fixedBtn]),
|
|
7434
7437
|
type: "text",
|
|
7435
7438
|
size: "small",
|
|
7436
7439
|
onClick: () => {
|
|
@@ -7439,7 +7442,7 @@ class gT extends Q.Component {
|
|
|
7439
7442
|
});
|
|
7440
7443
|
},
|
|
7441
7444
|
children: /* @__PURE__ */ b(O1, {
|
|
7442
|
-
className:
|
|
7445
|
+
className: vt([o && je.active])
|
|
7443
7446
|
})
|
|
7444
7447
|
}), /* @__PURE__ */ b(rn, {
|
|
7445
7448
|
className: je.closeBtn,
|
|
@@ -7471,7 +7474,7 @@ class gT extends Q.Component {
|
|
|
7471
7474
|
className: je.arrowCursor,
|
|
7472
7475
|
onClick: m,
|
|
7473
7476
|
children: /* @__PURE__ */ b(c1, {
|
|
7474
|
-
className:
|
|
7477
|
+
className: vt([!i && je.active])
|
|
7475
7478
|
})
|
|
7476
7479
|
}), /* @__PURE__ */ b("div", {
|
|
7477
7480
|
style: {
|
|
@@ -7760,7 +7763,7 @@ function Cv(e, t, n) {
|
|
|
7760
7763
|
r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) : Cv(e[r], t[r], n) : e[r] = t[r]);
|
|
7761
7764
|
return e;
|
|
7762
7765
|
}
|
|
7763
|
-
function
|
|
7766
|
+
function br(e) {
|
|
7764
7767
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
7765
7768
|
}
|
|
7766
7769
|
var ST = {
|
|
@@ -8118,15 +8121,15 @@ var df = {}, ff = function(e) {
|
|
|
8118
8121
|
de.push(et[$e]);
|
|
8119
8122
|
else
|
|
8120
8123
|
this.options.saveMissingTo === "all" ? de = this.languageUtils.toResolveHierarchy(a.lng || this.language) : de.push(a.lng || this.language);
|
|
8121
|
-
var
|
|
8124
|
+
var He = function(Me, z, Je) {
|
|
8122
8125
|
var Ie = ne && Je !== w ? Je : Y;
|
|
8123
|
-
s.options.missingKeyHandler ? s.options.missingKeyHandler(
|
|
8126
|
+
s.options.missingKeyHandler ? s.options.missingKeyHandler(Me, p, z, Ie, ee, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(Me, p, z, Ie, ee, a), s.emit("missingKey", Me, p, z, w);
|
|
8124
8127
|
};
|
|
8125
8128
|
this.options.saveMissing && (this.options.saveMissingPlurals && oe ? de.forEach(function(ae) {
|
|
8126
|
-
s.pluralResolver.getSuffixes(ae, a).forEach(function(
|
|
8127
|
-
|
|
8129
|
+
s.pluralResolver.getSuffixes(ae, a).forEach(function(Me) {
|
|
8130
|
+
He([ae], d + Me, a["defaultValue".concat(Me)] || k);
|
|
8128
8131
|
});
|
|
8129
|
-
}) :
|
|
8132
|
+
}) : He(de, d, k));
|
|
8130
8133
|
}
|
|
8131
8134
|
w = this.extendTranslation(w, o, a, m, i), V && w === d && this.options.appendNamespaceToMissingKey && (w = "".concat(p, ":").concat(d)), (V || M) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? w = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(p, ":").concat(d) : d, M ? w : void 0) : w = this.options.parseMissingKeyHandler(w));
|
|
8132
8135
|
}
|
|
@@ -8601,7 +8604,7 @@ var $T = function() {
|
|
|
8601
8604
|
escapeValue: !0
|
|
8602
8605
|
});
|
|
8603
8606
|
var r = n.interpolation;
|
|
8604
|
-
this.escape = r.escape !== void 0 ? r.escape : CT, this.escapeValue = r.escapeValue !== void 0 ? r.escapeValue : !0, this.useRawValueToEscape = r.useRawValueToEscape !== void 0 ? r.useRawValueToEscape : !1, this.prefix = r.prefix ?
|
|
8607
|
+
this.escape = r.escape !== void 0 ? r.escape : CT, this.escapeValue = r.escapeValue !== void 0 ? r.escapeValue : !0, this.useRawValueToEscape = r.useRawValueToEscape !== void 0 ? r.useRawValueToEscape : !1, this.prefix = r.prefix ? br(r.prefix) : r.prefixEscaped || "{{", this.suffix = r.suffix ? br(r.suffix) : r.suffixEscaped || "}}", this.formatSeparator = r.formatSeparator ? r.formatSeparator : r.formatSeparator || ",", this.unescapePrefix = r.unescapeSuffix ? "" : r.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : r.unescapeSuffix || "", this.nestingPrefix = r.nestingPrefix ? br(r.nestingPrefix) : r.nestingPrefixEscaped || br("$t("), this.nestingSuffix = r.nestingSuffix ? br(r.nestingSuffix) : r.nestingSuffixEscaped || br(")"), this.nestingOptionsSeparator = r.nestingOptionsSeparator ? r.nestingOptionsSeparator : r.nestingOptionsSeparator || ",", this.maxReplaces = r.maxReplaces ? r.maxReplaces : 1e3, this.alwaysFormat = r.alwaysFormat !== void 0 ? r.alwaysFormat : !1, this.resetRegExp();
|
|
8605
8608
|
}
|
|
8606
8609
|
}, {
|
|
8607
8610
|
key: "reset",
|
|
@@ -8758,7 +8761,7 @@ function IT(e) {
|
|
|
8758
8761
|
formatOptions: n
|
|
8759
8762
|
};
|
|
8760
8763
|
}
|
|
8761
|
-
function
|
|
8764
|
+
function wr(e) {
|
|
8762
8765
|
var t = {};
|
|
8763
8766
|
return function(r, o, a) {
|
|
8764
8767
|
var i = o + JSON.stringify(a), s = t[i];
|
|
@@ -8769,13 +8772,13 @@ var LT = function() {
|
|
|
8769
8772
|
function e() {
|
|
8770
8773
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8771
8774
|
st(this, e), this.logger = en.create("formatter"), this.options = t, this.formats = {
|
|
8772
|
-
number:
|
|
8775
|
+
number: wr(function(n, r) {
|
|
8773
8776
|
var o = new Intl.NumberFormat(n, r);
|
|
8774
8777
|
return function(a) {
|
|
8775
8778
|
return o.format(a);
|
|
8776
8779
|
};
|
|
8777
8780
|
}),
|
|
8778
|
-
currency:
|
|
8781
|
+
currency: wr(function(n, r) {
|
|
8779
8782
|
var o = new Intl.NumberFormat(n, Pn(Pn({}, r), {}, {
|
|
8780
8783
|
style: "currency"
|
|
8781
8784
|
}));
|
|
@@ -8783,19 +8786,19 @@ var LT = function() {
|
|
|
8783
8786
|
return o.format(a);
|
|
8784
8787
|
};
|
|
8785
8788
|
}),
|
|
8786
|
-
datetime:
|
|
8789
|
+
datetime: wr(function(n, r) {
|
|
8787
8790
|
var o = new Intl.DateTimeFormat(n, Pn({}, r));
|
|
8788
8791
|
return function(a) {
|
|
8789
8792
|
return o.format(a);
|
|
8790
8793
|
};
|
|
8791
8794
|
}),
|
|
8792
|
-
relativetime:
|
|
8795
|
+
relativetime: wr(function(n, r) {
|
|
8793
8796
|
var o = new Intl.RelativeTimeFormat(n, Pn({}, r));
|
|
8794
8797
|
return function(a) {
|
|
8795
8798
|
return o.format(a, r.range || "day");
|
|
8796
8799
|
};
|
|
8797
8800
|
}),
|
|
8798
|
-
list:
|
|
8801
|
+
list: wr(function(n, r) {
|
|
8799
8802
|
var o = new Intl.ListFormat(n, Pn({}, r));
|
|
8800
8803
|
return function(a) {
|
|
8801
8804
|
return o.format(a);
|
|
@@ -8819,7 +8822,7 @@ var LT = function() {
|
|
|
8819
8822
|
}, {
|
|
8820
8823
|
key: "addCached",
|
|
8821
8824
|
value: function(n, r) {
|
|
8822
|
-
this.formats[n.toLowerCase().trim()] =
|
|
8825
|
+
this.formats[n.toLowerCase().trim()] = wr(r);
|
|
8823
8826
|
}
|
|
8824
8827
|
}, {
|
|
8825
8828
|
key: "format",
|
|
@@ -9712,11 +9715,11 @@ function za(e) {
|
|
|
9712
9715
|
}
|
|
9713
9716
|
return e;
|
|
9714
9717
|
}
|
|
9715
|
-
function
|
|
9718
|
+
function Hr(e) {
|
|
9716
9719
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
9717
9720
|
return function(r) {
|
|
9718
9721
|
function o(i) {
|
|
9719
|
-
var s = i.forwardedRef, l =
|
|
9722
|
+
var s = i.forwardedRef, l = Mr(i, cP), c = lP(e, za(za({}, l), {}, {
|
|
9720
9723
|
keyPrefix: t.keyPrefix
|
|
9721
9724
|
})), u = Ce(c, 3), d = u[0], f = u[1], p = u[2], h = za(za({}, l), {}, {
|
|
9722
9725
|
t: d,
|
|
@@ -9853,7 +9856,7 @@ const hP = {
|
|
|
9853
9856
|
src: e.icon,
|
|
9854
9857
|
draggable: !1
|
|
9855
9858
|
}) : e.icon, [e.icon]), r = /* @__PURE__ */ b("div", {
|
|
9856
|
-
className:
|
|
9859
|
+
className: vt([_o.square, e.containerClassName]),
|
|
9857
9860
|
children: /* @__PURE__ */ re("div", {
|
|
9858
9861
|
...t,
|
|
9859
9862
|
className: _o.componentItem,
|
|
@@ -9941,15 +9944,15 @@ function $P(e) {
|
|
|
9941
9944
|
return DP.call(e);
|
|
9942
9945
|
}
|
|
9943
9946
|
var IP = "[object Null]", LP = "[object Undefined]", Pf = In ? In.toStringTag : void 0;
|
|
9944
|
-
function
|
|
9947
|
+
function dr(e) {
|
|
9945
9948
|
return e == null ? e === void 0 ? LP : IP : Pf && Pf in Object(e) ? MP(e) : $P(e);
|
|
9946
9949
|
}
|
|
9947
|
-
function
|
|
9950
|
+
function fr(e) {
|
|
9948
9951
|
return e != null && typeof e == "object";
|
|
9949
9952
|
}
|
|
9950
9953
|
var BP = "[object Symbol]";
|
|
9951
9954
|
function zP(e) {
|
|
9952
|
-
return typeof e == "symbol" ||
|
|
9955
|
+
return typeof e == "symbol" || fr(e) && dr(e) == BP;
|
|
9953
9956
|
}
|
|
9954
9957
|
function FP(e, t) {
|
|
9955
9958
|
for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
|
|
@@ -9977,7 +9980,7 @@ var UP = "[object AsyncFunction]", WP = "[object Function]", GP = "[object Gener
|
|
|
9977
9980
|
function Av(e) {
|
|
9978
9981
|
if (!fa(e))
|
|
9979
9982
|
return !1;
|
|
9980
|
-
var t =
|
|
9983
|
+
var t = dr(e);
|
|
9981
9984
|
return t == WP || t == GP || t == UP || t == KP;
|
|
9982
9985
|
}
|
|
9983
9986
|
var qP = un["__core-js_shared__"];
|
|
@@ -9990,7 +9993,7 @@ function YP(e) {
|
|
|
9990
9993
|
return !!Mf && Mf in e;
|
|
9991
9994
|
}
|
|
9992
9995
|
var XP = Function.prototype, JP = XP.toString;
|
|
9993
|
-
function
|
|
9996
|
+
function pr(e) {
|
|
9994
9997
|
if (e != null) {
|
|
9995
9998
|
try {
|
|
9996
9999
|
return JP.call(e);
|
|
@@ -10010,16 +10013,16 @@ function ak(e) {
|
|
|
10010
10013
|
if (!fa(e) || YP(e))
|
|
10011
10014
|
return !1;
|
|
10012
10015
|
var t = Av(e) ? ok : ZP;
|
|
10013
|
-
return t.test(
|
|
10016
|
+
return t.test(pr(e));
|
|
10014
10017
|
}
|
|
10015
10018
|
function ik(e, t) {
|
|
10016
10019
|
return e == null ? void 0 : e[t];
|
|
10017
10020
|
}
|
|
10018
|
-
function
|
|
10021
|
+
function hr(e, t) {
|
|
10019
10022
|
var n = ik(e, t);
|
|
10020
10023
|
return ak(n) ? n : void 0;
|
|
10021
10024
|
}
|
|
10022
|
-
var sk =
|
|
10025
|
+
var sk = hr(un, "WeakMap");
|
|
10023
10026
|
const jl = sk;
|
|
10024
10027
|
var Af = Object.create, lk = function() {
|
|
10025
10028
|
function e() {
|
|
@@ -10043,7 +10046,7 @@ function uk(e, t) {
|
|
|
10043
10046
|
}
|
|
10044
10047
|
var dk = function() {
|
|
10045
10048
|
try {
|
|
10046
|
-
var e =
|
|
10049
|
+
var e = hr(Object, "defineProperty");
|
|
10047
10050
|
return e({}, "", {}), e;
|
|
10048
10051
|
} catch {
|
|
10049
10052
|
}
|
|
@@ -10103,12 +10106,12 @@ function wk(e, t) {
|
|
|
10103
10106
|
}
|
|
10104
10107
|
var xk = "[object Arguments]";
|
|
10105
10108
|
function $f(e) {
|
|
10106
|
-
return
|
|
10109
|
+
return fr(e) && dr(e) == xk;
|
|
10107
10110
|
}
|
|
10108
10111
|
var zv = Object.prototype, Sk = zv.hasOwnProperty, Ck = zv.propertyIsEnumerable, Ok = $f(function() {
|
|
10109
10112
|
return arguments;
|
|
10110
10113
|
}()) ? $f : function(e) {
|
|
10111
|
-
return
|
|
10114
|
+
return fr(e) && Sk.call(e, "callee") && !Ck.call(e, "callee");
|
|
10112
10115
|
};
|
|
10113
10116
|
const _k = Ok;
|
|
10114
10117
|
function Ek() {
|
|
@@ -10120,7 +10123,7 @@ var Pk = "[object Arguments]", kk = "[object Array]", jk = "[object Boolean]", M
|
|
|
10120
10123
|
Ne[Wk] = Ne[Gk] = Ne[Kk] = Ne[qk] = Ne[Yk] = Ne[Xk] = Ne[Jk] = Ne[Qk] = Ne[Zk] = !0;
|
|
10121
10124
|
Ne[Pk] = Ne[kk] = Ne[Hk] = Ne[jk] = Ne[Uk] = Ne[Mk] = Ne[Ak] = Ne[Dk] = Ne[$k] = Ne[Ik] = Ne[Lk] = Ne[Bk] = Ne[zk] = Ne[Fk] = Ne[Vk] = !1;
|
|
10122
10125
|
function ej(e) {
|
|
10123
|
-
return
|
|
10126
|
+
return fr(e) && Lv(e.length) && !!Ne[dr(e)];
|
|
10124
10127
|
}
|
|
10125
10128
|
function nu(e) {
|
|
10126
10129
|
return function(t) {
|
|
@@ -10134,8 +10137,8 @@ var Hv = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
10134
10137
|
} catch {
|
|
10135
10138
|
}
|
|
10136
10139
|
}();
|
|
10137
|
-
const
|
|
10138
|
-
var Bf =
|
|
10140
|
+
const Ur = nj;
|
|
10141
|
+
var Bf = Ur && Ur.isTypedArray, rj = Bf ? nu(Bf) : ej;
|
|
10139
10142
|
const oj = rj;
|
|
10140
10143
|
var aj = Object.prototype, ij = aj.hasOwnProperty;
|
|
10141
10144
|
function Uv(e, t) {
|
|
@@ -10186,7 +10189,7 @@ function gj(e) {
|
|
|
10186
10189
|
function ou(e) {
|
|
10187
10190
|
return Bv(e) ? Uv(e, !0) : gj(e);
|
|
10188
10191
|
}
|
|
10189
|
-
var vj =
|
|
10192
|
+
var vj = hr(Object, "create");
|
|
10190
10193
|
const Zo = vj;
|
|
10191
10194
|
function mj() {
|
|
10192
10195
|
this.__data__ = Zo ? Zo(null) : {}, this.size = 0;
|
|
@@ -10214,18 +10217,18 @@ function Nj(e, t) {
|
|
|
10214
10217
|
var n = this.__data__;
|
|
10215
10218
|
return this.size += this.has(e) ? 0 : 1, n[e] = Zo && t === void 0 ? Ej : t, this;
|
|
10216
10219
|
}
|
|
10217
|
-
function
|
|
10220
|
+
function ir(e) {
|
|
10218
10221
|
var t = -1, n = e == null ? 0 : e.length;
|
|
10219
10222
|
for (this.clear(); ++t < n; ) {
|
|
10220
10223
|
var r = e[t];
|
|
10221
10224
|
this.set(r[0], r[1]);
|
|
10222
10225
|
}
|
|
10223
10226
|
}
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10227
|
+
ir.prototype.clear = mj;
|
|
10228
|
+
ir.prototype.delete = yj;
|
|
10229
|
+
ir.prototype.get = Sj;
|
|
10230
|
+
ir.prototype.has = _j;
|
|
10231
|
+
ir.prototype.set = Nj;
|
|
10229
10232
|
function Rj() {
|
|
10230
10233
|
this.__data__ = [], this.size = 0;
|
|
10231
10234
|
}
|
|
@@ -10266,13 +10269,13 @@ Nn.prototype.delete = kj;
|
|
|
10266
10269
|
Nn.prototype.get = jj;
|
|
10267
10270
|
Nn.prototype.has = Mj;
|
|
10268
10271
|
Nn.prototype.set = Aj;
|
|
10269
|
-
var Dj =
|
|
10272
|
+
var Dj = hr(un, "Map");
|
|
10270
10273
|
const ea = Dj;
|
|
10271
10274
|
function $j() {
|
|
10272
10275
|
this.size = 0, this.__data__ = {
|
|
10273
|
-
hash: new
|
|
10276
|
+
hash: new ir(),
|
|
10274
10277
|
map: new (ea || Nn)(),
|
|
10275
|
-
string: new
|
|
10278
|
+
string: new ir()
|
|
10276
10279
|
};
|
|
10277
10280
|
}
|
|
10278
10281
|
function Ij(e) {
|
|
@@ -10321,7 +10324,7 @@ var Vj = Wv(Object.getPrototypeOf, Object);
|
|
|
10321
10324
|
const au = Vj;
|
|
10322
10325
|
var Hj = "[object Object]", Uj = Function.prototype, Wj = Object.prototype, qv = Uj.toString, Gj = Wj.hasOwnProperty, Kj = qv.call(Object);
|
|
10323
10326
|
function Xi(e) {
|
|
10324
|
-
if (!
|
|
10327
|
+
if (!fr(e) || dr(e) != Hj)
|
|
10325
10328
|
return !1;
|
|
10326
10329
|
var t = au(e);
|
|
10327
10330
|
if (t === null)
|
|
@@ -10450,15 +10453,15 @@ function zM(e) {
|
|
|
10450
10453
|
function FM(e) {
|
|
10451
10454
|
return im(e, ou, am);
|
|
10452
10455
|
}
|
|
10453
|
-
var VM =
|
|
10456
|
+
var VM = hr(un, "DataView");
|
|
10454
10457
|
const Dl = VM;
|
|
10455
|
-
var HM =
|
|
10458
|
+
var HM = hr(un, "Promise");
|
|
10456
10459
|
const $l = HM;
|
|
10457
|
-
var UM =
|
|
10460
|
+
var UM = hr(un, "Set");
|
|
10458
10461
|
const Il = UM;
|
|
10459
|
-
var Uf = "[object Map]", WM = "[object Object]", Wf = "[object Promise]", Gf = "[object Set]", Kf = "[object WeakMap]", qf = "[object DataView]", GM =
|
|
10462
|
+
var Uf = "[object Map]", WM = "[object Object]", Wf = "[object Promise]", Gf = "[object Set]", Kf = "[object WeakMap]", qf = "[object DataView]", GM = pr(Dl), KM = pr(ea), qM = pr($l), YM = pr(Il), XM = pr(jl), Yn = dr;
|
|
10460
10463
|
(Dl && Yn(new Dl(new ArrayBuffer(1))) != qf || ea && Yn(new ea()) != Uf || $l && Yn($l.resolve()) != Wf || Il && Yn(new Il()) != Gf || jl && Yn(new jl()) != Kf) && (Yn = function(e) {
|
|
10461
|
-
var t =
|
|
10464
|
+
var t = dr(e), n = t == WM ? e.constructor : void 0, r = n ? pr(n) : "";
|
|
10462
10465
|
if (r)
|
|
10463
10466
|
switch (r) {
|
|
10464
10467
|
case GM:
|
|
@@ -10542,15 +10545,15 @@ function EA(e) {
|
|
|
10542
10545
|
}
|
|
10543
10546
|
var NA = "[object Map]";
|
|
10544
10547
|
function RA(e) {
|
|
10545
|
-
return
|
|
10548
|
+
return fr(e) && su(e) == NA;
|
|
10546
10549
|
}
|
|
10547
|
-
var Qf =
|
|
10550
|
+
var Qf = Ur && Ur.isMap, TA = Qf ? nu(Qf) : RA;
|
|
10548
10551
|
const PA = TA;
|
|
10549
10552
|
var kA = "[object Set]";
|
|
10550
10553
|
function jA(e) {
|
|
10551
|
-
return
|
|
10554
|
+
return fr(e) && su(e) == kA;
|
|
10552
10555
|
}
|
|
10553
|
-
var Zf =
|
|
10556
|
+
var Zf = Ur && Ur.isSet, MA = Zf ? nu(Zf) : jA;
|
|
10554
10557
|
const AA = MA;
|
|
10555
10558
|
var DA = 1, $A = 2, IA = 4, sm = "[object Arguments]", LA = "[object Array]", BA = "[object Boolean]", zA = "[object Date]", FA = "[object Error]", lm = "[object Function]", VA = "[object GeneratorFunction]", HA = "[object Map]", UA = "[object Number]", cm = "[object Object]", WA = "[object RegExp]", GA = "[object Set]", KA = "[object String]", qA = "[object Symbol]", YA = "[object WeakMap]", XA = "[object ArrayBuffer]", JA = "[object DataView]", QA = "[object Float32Array]", ZA = "[object Float64Array]", eD = "[object Int8Array]", tD = "[object Int16Array]", nD = "[object Int32Array]", rD = "[object Uint8Array]", oD = "[object Uint8ClampedArray]", aD = "[object Uint16Array]", iD = "[object Uint32Array]", Se = {};
|
|
10556
10559
|
Se[sm] = Se[LA] = Se[XA] = Se[JA] = Se[BA] = Se[zA] = Se[QA] = Se[ZA] = Se[eD] = Se[tD] = Se[nD] = Se[HA] = Se[UA] = Se[cm] = Se[WA] = Se[GA] = Se[KA] = Se[qA] = Se[rD] = Se[oD] = Se[aD] = Se[iD] = !0;
|
|
@@ -10763,7 +10766,7 @@ class uD extends Q.Component {
|
|
|
10763
10766
|
const um = {
|
|
10764
10767
|
name: wi,
|
|
10765
10768
|
async init(e) {
|
|
10766
|
-
const t =
|
|
10769
|
+
const t = Hr(Ll)(uD), n = Hr(Ll)(({
|
|
10767
10770
|
t: o
|
|
10768
10771
|
}) => /* @__PURE__ */ b(ot, {
|
|
10769
10772
|
children: o("pluginName")
|
|
@@ -10810,7 +10813,7 @@ const um = {
|
|
|
10810
10813
|
return /* @__PURE__ */ re("div", {
|
|
10811
10814
|
className: xn.layoutSelectBox,
|
|
10812
10815
|
children: [/* @__PURE__ */ b("div", {
|
|
10813
|
-
className:
|
|
10816
|
+
className: vt([xn.hoverBox, r && xn.hoverBoxActive]),
|
|
10814
10817
|
children: e.map((a) => /* @__PURE__ */ b("div", {
|
|
10815
10818
|
className: xn.hoverItem,
|
|
10816
10819
|
onClick: () => n(a.key),
|
|
@@ -10993,7 +10996,7 @@ class ED {
|
|
|
10993
10996
|
return !1;
|
|
10994
10997
|
typeof s == "object" && (n = s.copyNode ?? n);
|
|
10995
10998
|
}
|
|
10996
|
-
return n && r.pageModel.copyNode(n) && await
|
|
10999
|
+
return n && r.pageModel.copyNode(n) && await ar(), n;
|
|
10997
11000
|
}
|
|
10998
11001
|
async onDelete(t) {
|
|
10999
11002
|
var i;
|
|
@@ -11009,7 +11012,7 @@ class ED {
|
|
|
11009
11012
|
return !1;
|
|
11010
11013
|
typeof s == "object" && (n = s.deleteNode ?? n);
|
|
11011
11014
|
}
|
|
11012
|
-
return n && r.pageModel.deleteNode(n) && await
|
|
11015
|
+
return n && r.pageModel.deleteNode(n) && await ar(), n;
|
|
11013
11016
|
}
|
|
11014
11017
|
}
|
|
11015
11018
|
class ND extends Q.Component {
|
|
@@ -11385,7 +11388,8 @@ class ND extends Q.Component {
|
|
|
11385
11388
|
onNodeDraEnd: c,
|
|
11386
11389
|
...g,
|
|
11387
11390
|
ghostView: p,
|
|
11388
|
-
assets: h
|
|
11391
|
+
assets: h,
|
|
11392
|
+
pluginCtx: this.props.pluginCtx
|
|
11389
11393
|
}), v && uh(v, document.body)]
|
|
11390
11394
|
});
|
|
11391
11395
|
}
|
|
@@ -11606,7 +11610,7 @@ const PD = (e) => {
|
|
|
11606
11610
|
});
|
|
11607
11611
|
}), t;
|
|
11608
11612
|
};
|
|
11609
|
-
var
|
|
11613
|
+
var Er = /* @__PURE__ */ ((e) => (e.DRAGGING = "DRAGGING", e.NORMAL = "NORMAL", e))(Er || {});
|
|
11610
11614
|
const gm = Q.createContext({
|
|
11611
11615
|
state: {
|
|
11612
11616
|
treeData: [],
|
|
@@ -11637,7 +11641,7 @@ const gm = Q.createContext({
|
|
|
11637
11641
|
nodeChildren: zD,
|
|
11638
11642
|
dropAnchorLine: FD,
|
|
11639
11643
|
arrowSpan: VD
|
|
11640
|
-
},
|
|
11644
|
+
}, Or = "data-drag-key", vm = (e) => {
|
|
11641
11645
|
var V, oe, ne, he;
|
|
11642
11646
|
const t = B({
|
|
11643
11647
|
titleEditable: !1
|
|
@@ -11687,7 +11691,7 @@ const gm = Q.createContext({
|
|
|
11687
11691
|
currentSelectNodeKeys: k
|
|
11688
11692
|
});
|
|
11689
11693
|
}, C = 20, S = C * n, E = r.canBeSelected ?? !0, N = {
|
|
11690
|
-
[
|
|
11694
|
+
[Or]: r.key
|
|
11691
11695
|
}, R = B(), T = B();
|
|
11692
11696
|
T.current = s, R.current = (k) => {
|
|
11693
11697
|
const L = s.expandKeys, Y = Array.from(/* @__PURE__ */ new Set([...L, k]));
|
|
@@ -11702,7 +11706,7 @@ const gm = Q.createContext({
|
|
|
11702
11706
|
(Y = j.current) == null || Y.addEventListener("mouseenter", () => {
|
|
11703
11707
|
k = window.setTimeout(() => {
|
|
11704
11708
|
var ce, de;
|
|
11705
|
-
((ce = T.current) == null ? void 0 : ce.dragState) ===
|
|
11709
|
+
((ce = T.current) == null ? void 0 : ce.dragState) === Er.DRAGGING && ((de = R.current) == null || de.call(R, r.key || ""));
|
|
11706
11710
|
}, 0.8 * 1e3);
|
|
11707
11711
|
}), (ee = j.current) == null || ee.addEventListener("mouseleave", () => {
|
|
11708
11712
|
clearTimeout(k);
|
|
@@ -11734,7 +11738,7 @@ const gm = Q.createContext({
|
|
|
11734
11738
|
const M = /* @__PURE__ */ re("div", {
|
|
11735
11739
|
className: dt.nodeBox,
|
|
11736
11740
|
children: [/* @__PURE__ */ re("div", {
|
|
11737
|
-
className:
|
|
11741
|
+
className: vt([dt.nodeContent, O && E && dt.selected]),
|
|
11738
11742
|
style: {
|
|
11739
11743
|
marginLeft: `${-S}px`,
|
|
11740
11744
|
paddingLeft: `${S + 8}px`
|
|
@@ -11752,7 +11756,7 @@ const gm = Q.createContext({
|
|
|
11752
11756
|
className: dt.arrowSpan,
|
|
11753
11757
|
onClickCapture: w,
|
|
11754
11758
|
children: /* @__PURE__ */ b(N1, {
|
|
11755
|
-
className:
|
|
11759
|
+
className: vt([dt.nodeArrow, m && dt.expanded])
|
|
11756
11760
|
})
|
|
11757
11761
|
}) : null, /* @__PURE__ */ re("div", {
|
|
11758
11762
|
className: dt.nodeRenderView,
|
|
@@ -11810,7 +11814,7 @@ const gm = Q.createContext({
|
|
|
11810
11814
|
})]
|
|
11811
11815
|
})]
|
|
11812
11816
|
}), /* @__PURE__ */ b("div", {
|
|
11813
|
-
className:
|
|
11817
|
+
className: vt([dt.nodeChildren, O && dt.selected]),
|
|
11814
11818
|
style: {
|
|
11815
11819
|
paddingLeft: `${C}px`,
|
|
11816
11820
|
height: m ? "auto" : "0"
|
|
@@ -11866,7 +11870,7 @@ class HD extends Q.Component {
|
|
|
11866
11870
|
});
|
|
11867
11871
|
I(this, "scrollNodeToView", (n) => {
|
|
11868
11872
|
var o;
|
|
11869
|
-
const r = document.querySelector(`[${
|
|
11873
|
+
const r = document.querySelector(`[${Or}="${n}"]`);
|
|
11870
11874
|
(o = r == null ? void 0 : r.scrollIntoView) == null || o.call(r, {
|
|
11871
11875
|
behavior: "smooth",
|
|
11872
11876
|
block: "center"
|
|
@@ -11915,7 +11919,7 @@ class HD extends Q.Component {
|
|
|
11915
11919
|
const l = s.event.target;
|
|
11916
11920
|
if (!l)
|
|
11917
11921
|
return;
|
|
11918
|
-
const c = Bl(l,
|
|
11922
|
+
const c = Bl(l, Or);
|
|
11919
11923
|
if (!c)
|
|
11920
11924
|
return;
|
|
11921
11925
|
const u = o.getNode(c), d = this.getTreeNodeByKey(c);
|
|
@@ -11950,9 +11954,9 @@ class HD extends Q.Component {
|
|
|
11950
11954
|
const l = s.event.target;
|
|
11951
11955
|
if (!l)
|
|
11952
11956
|
return Jt.debug("drop dom not found"), s;
|
|
11953
|
-
const c = Bl(l,
|
|
11957
|
+
const c = Bl(l, Or);
|
|
11954
11958
|
if (!c)
|
|
11955
|
-
return Jt.debug("targetNodeId dom not found", s, l,
|
|
11959
|
+
return Jt.debug("targetNodeId dom not found", s, l, Or), s;
|
|
11956
11960
|
const u = this.getTreeNodeByKey(c);
|
|
11957
11961
|
if ((u == null ? void 0 : u.canDropPos) !== void 0 && u.canDropPos === !1)
|
|
11958
11962
|
return Jt.debug("node can not be drop by tree node config"), s;
|
|
@@ -11999,14 +12003,14 @@ class HD extends Q.Component {
|
|
|
11999
12003
|
var p, h;
|
|
12000
12004
|
const l = s.extraData.dropNode;
|
|
12001
12005
|
if (this.setState({
|
|
12002
|
-
dragState:
|
|
12006
|
+
dragState: Er.DRAGGING
|
|
12003
12007
|
}), !l) {
|
|
12004
12008
|
this.setState({
|
|
12005
12009
|
dropPosInfo: null
|
|
12006
12010
|
});
|
|
12007
12011
|
return;
|
|
12008
12012
|
}
|
|
12009
|
-
const c = (p = document.querySelectorAll(`[${
|
|
12013
|
+
const c = (p = document.querySelectorAll(`[${Or}="${l.id}"]`)) == null ? void 0 : p[0];
|
|
12010
12014
|
if (!c)
|
|
12011
12015
|
return;
|
|
12012
12016
|
const u = ((h = s.extraData) == null ? void 0 : h.dropPosInfo) || {}, d = c.getBoundingClientRect(), f = {
|
|
@@ -12018,7 +12022,7 @@ class HD extends Q.Component {
|
|
|
12018
12022
|
});
|
|
12019
12023
|
}), n.emitter.on("dragEnd", () => {
|
|
12020
12024
|
this.setState({
|
|
12021
|
-
dragState:
|
|
12025
|
+
dragState: Er.NORMAL
|
|
12022
12026
|
});
|
|
12023
12027
|
}), this.sensor = n;
|
|
12024
12028
|
});
|
|
@@ -12032,7 +12036,7 @@ class HD extends Q.Component {
|
|
|
12032
12036
|
y: 0
|
|
12033
12037
|
},
|
|
12034
12038
|
pageModel: n.pluginCtx.pageModel,
|
|
12035
|
-
dragState:
|
|
12039
|
+
dragState: Er.NORMAL
|
|
12036
12040
|
};
|
|
12037
12041
|
}
|
|
12038
12042
|
async componentDidMount() {
|
|
@@ -12110,7 +12114,7 @@ class HD extends Q.Component {
|
|
|
12110
12114
|
ref: this.domRef,
|
|
12111
12115
|
children: [n.map((i, s) => /* @__PURE__ */ b(vm, {
|
|
12112
12116
|
item: i
|
|
12113
|
-
}, i.key + `${s}`)), r ===
|
|
12117
|
+
}, i.key + `${s}`)), r === Er.DRAGGING && o && /* @__PURE__ */ b("div", {
|
|
12114
12118
|
className: dt.dropAnchorLine,
|
|
12115
12119
|
style: {
|
|
12116
12120
|
left: `${o.x}px`,
|
|
@@ -12134,7 +12138,7 @@ const UD = {
|
|
|
12134
12138
|
Object.keys(np).forEach((a) => {
|
|
12135
12139
|
t.addResourceBundle(a, ks, np[a], !0, !0);
|
|
12136
12140
|
});
|
|
12137
|
-
const n =
|
|
12141
|
+
const n = Hr(ks)(HD), r = Hr(ks)(({
|
|
12138
12142
|
t: a
|
|
12139
12143
|
}) => /* @__PURE__ */ b(ot, {
|
|
12140
12144
|
children: a("pluginName")
|
|
@@ -12419,7 +12423,7 @@ function Fn(e, t) {
|
|
|
12419
12423
|
validator: t
|
|
12420
12424
|
});
|
|
12421
12425
|
}
|
|
12422
|
-
function
|
|
12426
|
+
function Wr(e) {
|
|
12423
12427
|
return new dn({
|
|
12424
12428
|
type: "dynamic",
|
|
12425
12429
|
schema: null,
|
|
@@ -12452,10 +12456,10 @@ function o8(e, t) {
|
|
|
12452
12456
|
return Re(r);
|
|
12453
12457
|
}
|
|
12454
12458
|
}
|
|
12455
|
-
function
|
|
12459
|
+
function Ge() {
|
|
12456
12460
|
return Fn("any", () => !0);
|
|
12457
12461
|
}
|
|
12458
|
-
function
|
|
12462
|
+
function Xe(e) {
|
|
12459
12463
|
return new dn({
|
|
12460
12464
|
type: "array",
|
|
12461
12465
|
schema: e,
|
|
@@ -12472,7 +12476,7 @@ function Ke(e) {
|
|
|
12472
12476
|
}
|
|
12473
12477
|
});
|
|
12474
12478
|
}
|
|
12475
|
-
function
|
|
12479
|
+
function Gr() {
|
|
12476
12480
|
return Fn("boolean", (e) => typeof e == "boolean");
|
|
12477
12481
|
}
|
|
12478
12482
|
function Fl(e) {
|
|
@@ -12571,7 +12575,7 @@ function bm(e) {
|
|
|
12571
12575
|
}
|
|
12572
12576
|
});
|
|
12573
12577
|
}
|
|
12574
|
-
function
|
|
12578
|
+
function Et(e) {
|
|
12575
12579
|
const t = e.map((n) => n.type).join(" | ");
|
|
12576
12580
|
return new dn({
|
|
12577
12581
|
type: "union",
|
|
@@ -12606,24 +12610,24 @@ const wm = Re({
|
|
|
12606
12610
|
version: q(),
|
|
12607
12611
|
name: q(),
|
|
12608
12612
|
exportName: X(q()),
|
|
12609
|
-
destructuring: X(
|
|
12613
|
+
destructuring: X(Gr()),
|
|
12610
12614
|
subName: X(q()),
|
|
12611
12615
|
main: X(q()),
|
|
12612
|
-
cssPaths: X(
|
|
12616
|
+
cssPaths: X(Xe(q()))
|
|
12613
12617
|
});
|
|
12614
|
-
|
|
12618
|
+
Xe(wm);
|
|
12615
12619
|
var An = /* @__PURE__ */ ((e) => (e.SLOT = "SLOT", e.FUNCTION = "FUNCTION", e.EXPRESSION = "EXPRESSION", e))(An || {}), Vl = /* @__PURE__ */ ((e) => (e.FUNC = "FUNC", e.COMP = "COMP", e))(Vl || {});
|
|
12616
|
-
const s8 = () => Fn("normalObj", (e) => !Xi(e) || [An.SLOT, An.EXPRESSION, An.FUNCTION].includes(e == null ? void 0 : e.type) ? !1 : (uo(e, Io(q(), fu)), !0)), fu =
|
|
12620
|
+
const s8 = () => Fn("normalObj", (e) => !Xi(e) || [An.SLOT, An.EXPRESSION, An.FUNCTION].includes(e == null ? void 0 : e.type) ? !1 : (uo(e, Io(q(), fu)), !0)), fu = Et([
|
|
12617
12621
|
q(),
|
|
12618
12622
|
ym(),
|
|
12619
|
-
|
|
12623
|
+
Gr(),
|
|
12620
12624
|
Re({
|
|
12621
12625
|
type: nn(An.SLOT),
|
|
12622
12626
|
renderType: Fl([Vl.FUNC, Vl.COMP]),
|
|
12623
12627
|
// if renderType is Func, params will be useful
|
|
12624
|
-
params: X(
|
|
12628
|
+
params: X(Xe(q())),
|
|
12625
12629
|
// here can't use PropsDataStructDescribe, it will caused "Maximum call stack size exceeded" error
|
|
12626
|
-
value:
|
|
12630
|
+
value: Wr(() => Et([xi, Xe(xi)]))
|
|
12627
12631
|
}),
|
|
12628
12632
|
Re({
|
|
12629
12633
|
type: nn(An.EXPRESSION),
|
|
@@ -12634,8 +12638,8 @@ const s8 = () => Fn("normalObj", (e) => !Xi(e) || [An.SLOT, An.EXPRESSION, An.FU
|
|
|
12634
12638
|
value: q()
|
|
12635
12639
|
}),
|
|
12636
12640
|
s8(),
|
|
12637
|
-
|
|
12638
|
-
|
|
12641
|
+
Xe(
|
|
12642
|
+
Wr(() => fu)
|
|
12639
12643
|
)
|
|
12640
12644
|
]), op = Re({
|
|
12641
12645
|
type: nn(An.EXPRESSION),
|
|
@@ -12646,28 +12650,28 @@ const s8 = () => Fn("normalObj", (e) => !Xi(e) || [An.SLOT, An.EXPRESSION, An.FU
|
|
|
12646
12650
|
componentName: q(),
|
|
12647
12651
|
props: X(Io(q(), fu)),
|
|
12648
12652
|
nodeName: X(q()),
|
|
12649
|
-
state: X(Io(q(),
|
|
12650
|
-
children:
|
|
12651
|
-
configure: X(
|
|
12652
|
-
css: X(
|
|
12653
|
-
style: X(
|
|
12654
|
-
classNames: X(
|
|
12653
|
+
state: X(Io(q(), Ge())),
|
|
12654
|
+
children: Wr(() => X(Xe(Et([q(), xi])))),
|
|
12655
|
+
configure: X(Ge()),
|
|
12656
|
+
css: X(Ge()),
|
|
12657
|
+
style: X(Ge()),
|
|
12658
|
+
classNames: X(Xe(Ge())),
|
|
12655
12659
|
refId: X(q()),
|
|
12656
|
-
extra: X(Io(
|
|
12657
|
-
condition: X(
|
|
12660
|
+
extra: X(Io(Ge(), Ge())),
|
|
12661
|
+
condition: X(Et([Gr(), op])),
|
|
12658
12662
|
loop: X(
|
|
12659
12663
|
Re({
|
|
12660
|
-
open:
|
|
12661
|
-
data:
|
|
12662
|
-
args: X(
|
|
12664
|
+
open: Gr(),
|
|
12665
|
+
data: Et([Xe(Ge()), op]),
|
|
12666
|
+
args: X(Xe(q())),
|
|
12663
12667
|
forName: X(q()),
|
|
12664
12668
|
forIndex: X(q()),
|
|
12665
|
-
key: X(
|
|
12669
|
+
key: X(Ge()),
|
|
12666
12670
|
name: X(q())
|
|
12667
12671
|
})
|
|
12668
12672
|
),
|
|
12669
|
-
methods: X(
|
|
12670
|
-
}), l8 = (e) => Xi(e) ? e.label : e, Si =
|
|
12673
|
+
methods: X(Xe(Ge()))
|
|
12674
|
+
}), l8 = (e) => Xi(e) ? e.label : e, Si = Et([
|
|
12671
12675
|
q(),
|
|
12672
12676
|
Re({
|
|
12673
12677
|
label: q(),
|
|
@@ -12678,11 +12682,11 @@ const s8 = () => Fn("normalObj", (e) => !Xi(e) || [An.SLOT, An.EXPRESSION, An.FU
|
|
|
12678
12682
|
"shape"
|
|
12679
12683
|
/* SHAPE */
|
|
12680
12684
|
),
|
|
12681
|
-
value:
|
|
12685
|
+
value: Xe(
|
|
12682
12686
|
Re({
|
|
12683
12687
|
name: q(),
|
|
12684
12688
|
title: Si,
|
|
12685
|
-
valueType:
|
|
12689
|
+
valueType: Wr(() => Ji)
|
|
12686
12690
|
})
|
|
12687
12691
|
)
|
|
12688
12692
|
}), u8 = Re({
|
|
@@ -12690,22 +12694,22 @@ const s8 = () => Fn("normalObj", (e) => !Xi(e) || [An.SLOT, An.EXPRESSION, An.FU
|
|
|
12690
12694
|
"enums"
|
|
12691
12695
|
/* ENUMS */
|
|
12692
12696
|
),
|
|
12693
|
-
value:
|
|
12697
|
+
value: Xe(q())
|
|
12694
12698
|
});
|
|
12695
12699
|
Re({
|
|
12696
12700
|
type: nn(
|
|
12697
12701
|
"array"
|
|
12698
12702
|
/* ARRAY */
|
|
12699
12703
|
),
|
|
12700
|
-
value:
|
|
12704
|
+
value: Wr(() => Ji)
|
|
12701
12705
|
});
|
|
12702
12706
|
const d8 = Re({
|
|
12703
12707
|
type: nn(
|
|
12704
12708
|
"array"
|
|
12705
12709
|
/* ARRAY */
|
|
12706
12710
|
),
|
|
12707
|
-
value:
|
|
12708
|
-
}), Ji =
|
|
12711
|
+
value: Wr(() => Xe(Ji))
|
|
12712
|
+
}), Ji = Et([
|
|
12709
12713
|
Fl([
|
|
12710
12714
|
"array",
|
|
12711
12715
|
"boolean",
|
|
@@ -12723,14 +12727,14 @@ const d8 = Re({
|
|
|
12723
12727
|
c8,
|
|
12724
12728
|
u8,
|
|
12725
12729
|
d8
|
|
12726
|
-
]), f8 =
|
|
12730
|
+
]), f8 = Et([
|
|
12727
12731
|
q(),
|
|
12728
12732
|
Re({
|
|
12729
12733
|
componentName: q(),
|
|
12730
|
-
props: X(
|
|
12734
|
+
props: X(Ge()),
|
|
12731
12735
|
/** 用于标记当前数据的初始值,如添加一个数组元素可以使用该值填充 */
|
|
12732
|
-
initialValue: X(
|
|
12733
|
-
component: X(
|
|
12736
|
+
initialValue: X(Ge()),
|
|
12737
|
+
component: X(Ge())
|
|
12734
12738
|
})
|
|
12735
12739
|
]), js = Re({
|
|
12736
12740
|
name: q(),
|
|
@@ -12738,13 +12742,13 @@ const d8 = Re({
|
|
|
12738
12742
|
// 描述 name 对应值的类型
|
|
12739
12743
|
valueType: Ji,
|
|
12740
12744
|
description: X(q()),
|
|
12741
|
-
defaultValue:
|
|
12745
|
+
defaultValue: Ge(),
|
|
12742
12746
|
//用于产生 valueType 类型的值
|
|
12743
|
-
setters: X(
|
|
12747
|
+
setters: X(Xe(f8)),
|
|
12744
12748
|
condition: X(mm())
|
|
12745
12749
|
});
|
|
12746
|
-
|
|
12747
|
-
|
|
12750
|
+
Et([q(), mm()]);
|
|
12751
|
+
Et([
|
|
12748
12752
|
q(),
|
|
12749
12753
|
Re({
|
|
12750
12754
|
name: q(),
|
|
@@ -12761,11 +12765,11 @@ bt([
|
|
|
12761
12765
|
const p8 = Re({
|
|
12762
12766
|
id: X(q()),
|
|
12763
12767
|
title: q(),
|
|
12764
|
-
snapshot:
|
|
12768
|
+
snapshot: Et([q(), Ge()]),
|
|
12765
12769
|
snapshotText: X(q()),
|
|
12766
12770
|
description: X(q()),
|
|
12767
12771
|
// 组件分类,用于搜索
|
|
12768
|
-
tags: X(
|
|
12772
|
+
tags: X(Xe(q())),
|
|
12769
12773
|
// 分 tab 面板
|
|
12770
12774
|
groupName: X(q()),
|
|
12771
12775
|
// 分类
|
|
@@ -12778,7 +12782,7 @@ Re({
|
|
|
12778
12782
|
screenshot: X(q()),
|
|
12779
12783
|
icon: X(q()),
|
|
12780
12784
|
// 组件分类,用于搜索
|
|
12781
|
-
tags: X(
|
|
12785
|
+
tags: X(Xe(q())),
|
|
12782
12786
|
// 分 tab 面板
|
|
12783
12787
|
groupName: X(q()),
|
|
12784
12788
|
// 分类
|
|
@@ -12786,9 +12790,9 @@ Re({
|
|
|
12786
12790
|
// 排序
|
|
12787
12791
|
priority: X(ym()),
|
|
12788
12792
|
npm: X(wm),
|
|
12789
|
-
snippets:
|
|
12790
|
-
props:
|
|
12791
|
-
|
|
12793
|
+
snippets: Xe(p8),
|
|
12794
|
+
props: Xe(
|
|
12795
|
+
Et([
|
|
12792
12796
|
js,
|
|
12793
12797
|
Re({
|
|
12794
12798
|
title: X(Si),
|
|
@@ -12804,15 +12808,15 @@ Re({
|
|
|
12804
12808
|
"group"
|
|
12805
12809
|
/* GROUP */
|
|
12806
12810
|
),
|
|
12807
|
-
content:
|
|
12811
|
+
content: Xe(js)
|
|
12808
12812
|
})
|
|
12809
12813
|
])
|
|
12810
12814
|
),
|
|
12811
|
-
fixedProps: X(
|
|
12815
|
+
fixedProps: X(Ge()),
|
|
12812
12816
|
// 可以拖入组件
|
|
12813
12817
|
isContainer: X(
|
|
12814
|
-
|
|
12815
|
-
|
|
12818
|
+
Et([
|
|
12819
|
+
Gr(),
|
|
12816
12820
|
Re({
|
|
12817
12821
|
placeholder: q(),
|
|
12818
12822
|
width: q(),
|
|
@@ -12820,14 +12824,14 @@ Re({
|
|
|
12820
12824
|
})
|
|
12821
12825
|
])
|
|
12822
12826
|
),
|
|
12823
|
-
|
|
12827
|
+
disableEditorDragDom: X(Ge()),
|
|
12824
12828
|
// 如果是布局组件,可以考虑将拖拽控制权转移 or 实现 resize
|
|
12825
|
-
isLayout: X(
|
|
12829
|
+
isLayout: X(Gr()),
|
|
12826
12830
|
rootSelector: X(q()),
|
|
12827
12831
|
// selectionToolBarView: optional(func()),
|
|
12828
|
-
advanceCustom: X(
|
|
12832
|
+
advanceCustom: X(Ge()),
|
|
12829
12833
|
// 扩展配置
|
|
12830
|
-
extra: X(Io(
|
|
12834
|
+
extra: X(Io(Ge(), Ge()))
|
|
12831
12835
|
});
|
|
12832
12836
|
const xm = ({
|
|
12833
12837
|
onValueChange: e,
|
|
@@ -12938,21 +12942,21 @@ function fo(e) {
|
|
|
12938
12942
|
function hu(e) {
|
|
12939
12943
|
return "nodeType" in e;
|
|
12940
12944
|
}
|
|
12941
|
-
function
|
|
12945
|
+
function wt(e) {
|
|
12942
12946
|
var t, n;
|
|
12943
12947
|
return e ? fo(e) ? e : hu(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
12944
12948
|
}
|
|
12945
12949
|
function gu(e) {
|
|
12946
12950
|
const {
|
|
12947
12951
|
Document: t
|
|
12948
|
-
} =
|
|
12952
|
+
} = wt(e);
|
|
12949
12953
|
return e instanceof t;
|
|
12950
12954
|
}
|
|
12951
12955
|
function pa(e) {
|
|
12952
|
-
return fo(e) ? !1 : e instanceof
|
|
12956
|
+
return fo(e) ? !1 : e instanceof wt(e).HTMLElement;
|
|
12953
12957
|
}
|
|
12954
12958
|
function v8(e) {
|
|
12955
|
-
return e instanceof
|
|
12959
|
+
return e instanceof wt(e).SVGElement;
|
|
12956
12960
|
}
|
|
12957
12961
|
function po(e) {
|
|
12958
12962
|
return e ? fo(e) ? e.document : hu(e) ? gu(e) ? e : pa(e) ? e.ownerDocument : document : document : document;
|
|
@@ -12962,16 +12966,16 @@ function vu(e) {
|
|
|
12962
12966
|
const t = B(e);
|
|
12963
12967
|
return qt(() => {
|
|
12964
12968
|
t.current = e;
|
|
12965
|
-
}),
|
|
12969
|
+
}), Fe(function() {
|
|
12966
12970
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
12967
12971
|
r[o] = arguments[o];
|
|
12968
12972
|
return t.current == null ? void 0 : t.current(...r);
|
|
12969
12973
|
}, []);
|
|
12970
12974
|
}
|
|
12971
12975
|
function m8() {
|
|
12972
|
-
const e = B(null), t =
|
|
12976
|
+
const e = B(null), t = Fe((r, o) => {
|
|
12973
12977
|
e.current = setInterval(r, o);
|
|
12974
|
-
}, []), n =
|
|
12978
|
+
}, []), n = Fe(() => {
|
|
12975
12979
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
12976
12980
|
}, []);
|
|
12977
12981
|
return [t, n];
|
|
@@ -12995,7 +12999,7 @@ function ha(e, t) {
|
|
|
12995
12999
|
);
|
|
12996
13000
|
}
|
|
12997
13001
|
function Ci(e) {
|
|
12998
|
-
const t = vu(e), n = B(null), r =
|
|
13002
|
+
const t = vu(e), n = B(null), r = Fe(
|
|
12999
13003
|
(o) => {
|
|
13000
13004
|
o !== n.current && (t == null || t(o, n.current)), n.current = o;
|
|
13001
13005
|
},
|
|
@@ -13035,7 +13039,7 @@ function Cm(e) {
|
|
|
13035
13039
|
});
|
|
13036
13040
|
};
|
|
13037
13041
|
}
|
|
13038
|
-
const
|
|
13042
|
+
const jr = /* @__PURE__ */ Cm(1), na = /* @__PURE__ */ Cm(-1);
|
|
13039
13043
|
function y8(e) {
|
|
13040
13044
|
return "clientX" in e && "clientY" in e;
|
|
13041
13045
|
}
|
|
@@ -13044,7 +13048,7 @@ function mu(e) {
|
|
|
13044
13048
|
return !1;
|
|
13045
13049
|
const {
|
|
13046
13050
|
KeyboardEvent: t
|
|
13047
|
-
} =
|
|
13051
|
+
} = wt(e.target);
|
|
13048
13052
|
return t && e instanceof t;
|
|
13049
13053
|
}
|
|
13050
13054
|
function b8(e) {
|
|
@@ -13052,7 +13056,7 @@ function b8(e) {
|
|
|
13052
13056
|
return !1;
|
|
13053
13057
|
const {
|
|
13054
13058
|
TouchEvent: t
|
|
13055
|
-
} =
|
|
13059
|
+
} = wt(e.target);
|
|
13056
13060
|
return t && e instanceof t;
|
|
13057
13061
|
}
|
|
13058
13062
|
function Ul(e) {
|
|
@@ -13168,7 +13172,7 @@ function O8(e) {
|
|
|
13168
13172
|
function _8() {
|
|
13169
13173
|
const [e, t] = J("");
|
|
13170
13174
|
return {
|
|
13171
|
-
announce:
|
|
13175
|
+
announce: Fe((r) => {
|
|
13172
13176
|
r != null && t(r);
|
|
13173
13177
|
}, []),
|
|
13174
13178
|
announcement: e
|
|
@@ -13184,8 +13188,8 @@ function E8(e) {
|
|
|
13184
13188
|
}, [e, t]);
|
|
13185
13189
|
}
|
|
13186
13190
|
function N8() {
|
|
13187
|
-
const [e] = J(() => /* @__PURE__ */ new Set()), t =
|
|
13188
|
-
return [
|
|
13191
|
+
const [e] = J(() => /* @__PURE__ */ new Set()), t = Fe((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
13192
|
+
return [Fe((r) => {
|
|
13189
13193
|
let {
|
|
13190
13194
|
type: o,
|
|
13191
13195
|
event: a
|
|
@@ -13305,10 +13309,10 @@ function P8(e) {
|
|
|
13305
13309
|
});
|
|
13306
13310
|
return n ? uh(u, n) : u;
|
|
13307
13311
|
}
|
|
13308
|
-
var
|
|
13312
|
+
var Ye;
|
|
13309
13313
|
(function(e) {
|
|
13310
13314
|
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
13311
|
-
})(
|
|
13315
|
+
})(Ye || (Ye = {}));
|
|
13312
13316
|
function Oi() {
|
|
13313
13317
|
}
|
|
13314
13318
|
function ip(e, t) {
|
|
@@ -13521,7 +13525,7 @@ function ho(e, t) {
|
|
|
13521
13525
|
if (t.ignoreTransform) {
|
|
13522
13526
|
const {
|
|
13523
13527
|
getComputedStyle: c
|
|
13524
|
-
} =
|
|
13528
|
+
} = wt(e), {
|
|
13525
13529
|
transform: u,
|
|
13526
13530
|
transformOrigin: d
|
|
13527
13531
|
} = c(e);
|
|
@@ -13561,10 +13565,10 @@ function U8(e) {
|
|
|
13561
13565
|
};
|
|
13562
13566
|
}
|
|
13563
13567
|
function W8(e, t) {
|
|
13564
|
-
return t === void 0 && (t =
|
|
13568
|
+
return t === void 0 && (t = wt(e).getComputedStyle(e)), t.position === "fixed";
|
|
13565
13569
|
}
|
|
13566
13570
|
function G8(e, t) {
|
|
13567
|
-
t === void 0 && (t =
|
|
13571
|
+
t === void 0 && (t = wt(e).getComputedStyle(e));
|
|
13568
13572
|
const n = /(auto|scroll|overlay)/;
|
|
13569
13573
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
13570
13574
|
const a = t[o];
|
|
@@ -13582,7 +13586,7 @@ function Zi(e, t) {
|
|
|
13582
13586
|
return n;
|
|
13583
13587
|
const {
|
|
13584
13588
|
getComputedStyle: a
|
|
13585
|
-
} =
|
|
13589
|
+
} = wt(o), i = a(o);
|
|
13586
13590
|
return o !== e && G8(o, i) && n.push(o), W8(o, i) ? n : r(o.parentNode);
|
|
13587
13591
|
}
|
|
13588
13592
|
return e ? r(e) : n;
|
|
@@ -13699,7 +13703,7 @@ function Y8(e) {
|
|
|
13699
13703
|
};
|
|
13700
13704
|
}
|
|
13701
13705
|
function jm(e) {
|
|
13702
|
-
return e.reduce((t, n) =>
|
|
13706
|
+
return e.reduce((t, n) => jr(t, Wl(n)), Yt);
|
|
13703
13707
|
}
|
|
13704
13708
|
function X8(e) {
|
|
13705
13709
|
return e.reduce((t, n) => t + Rm(n), 0);
|
|
@@ -13760,7 +13764,7 @@ class Lo {
|
|
|
13760
13764
|
function e$(e) {
|
|
13761
13765
|
const {
|
|
13762
13766
|
EventTarget: t
|
|
13763
|
-
} =
|
|
13767
|
+
} = wt(e);
|
|
13764
13768
|
return e instanceof t ? e : po(e);
|
|
13765
13769
|
}
|
|
13766
13770
|
function Ds(e, t) {
|
|
@@ -13820,7 +13824,7 @@ class bu {
|
|
|
13820
13824
|
target: n
|
|
13821
13825
|
}
|
|
13822
13826
|
} = t;
|
|
13823
|
-
this.props = t, this.listeners = new Lo(po(n)), this.windowListeners = new Lo(
|
|
13827
|
+
this.props = t, this.listeners = new Lo(po(n)), this.windowListeners = new Lo(wt(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
13824
13828
|
}
|
|
13825
13829
|
attach() {
|
|
13826
13830
|
this.handleStart(), this.windowListeners.add(Mt.Resize, this.handleCancel), this.windowListeners.add(Mt.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(Mt.Keydown, this.handleKeyDown));
|
|
@@ -13914,7 +13918,7 @@ class bu {
|
|
|
13914
13918
|
break;
|
|
13915
13919
|
}
|
|
13916
13920
|
}
|
|
13917
|
-
this.handleMove(t,
|
|
13921
|
+
this.handleMove(t, jr(na(d, this.referenceCoordinates), p));
|
|
13918
13922
|
}
|
|
13919
13923
|
}
|
|
13920
13924
|
}
|
|
@@ -13976,7 +13980,7 @@ class wu {
|
|
|
13976
13980
|
} = t, {
|
|
13977
13981
|
target: i
|
|
13978
13982
|
} = a;
|
|
13979
|
-
this.props = t, this.events = n, this.document = po(i), this.documentListeners = new Lo(this.document), this.listeners = new Lo(r), this.windowListeners = new Lo(
|
|
13983
|
+
this.props = t, this.events = n, this.document = po(i), this.documentListeners = new Lo(this.document), this.listeners = new Lo(r), this.windowListeners = new Lo(wt(i)), this.initialCoordinates = (o = Ul(a)) != null ? o : Yt, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
13980
13984
|
}
|
|
13981
13985
|
attach() {
|
|
13982
13986
|
const {
|
|
@@ -14197,7 +14201,7 @@ function s$(e) {
|
|
|
14197
14201
|
case Bo.DraggableRect:
|
|
14198
14202
|
return o;
|
|
14199
14203
|
}
|
|
14200
|
-
}, [n, o, l]), O = B(null), x =
|
|
14204
|
+
}, [n, o, l]), O = B(null), x = Fe(() => {
|
|
14201
14205
|
const C = O.current;
|
|
14202
14206
|
if (!C)
|
|
14203
14207
|
return;
|
|
@@ -14328,7 +14332,7 @@ function f$(e, t) {
|
|
|
14328
14332
|
frequency: s,
|
|
14329
14333
|
measure: l,
|
|
14330
14334
|
strategy: c
|
|
14331
|
-
} = o, u = B(e), d = y(), f = ta(d), p =
|
|
14335
|
+
} = o, u = B(e), d = y(), f = ta(d), p = Fe(function(m) {
|
|
14332
14336
|
m === void 0 && (m = []), !f.current && i((w) => w === null ? m : w.concat(m.filter((O) => !w.includes(O))));
|
|
14333
14337
|
}, [f]), h = B(null), v = ha((m) => {
|
|
14334
14338
|
if (d && !n)
|
|
@@ -14478,7 +14482,7 @@ function m$(e) {
|
|
|
14478
14482
|
}, [e]), n;
|
|
14479
14483
|
}
|
|
14480
14484
|
function y$(e) {
|
|
14481
|
-
const [t, n] = J(null), r = B(e), o =
|
|
14485
|
+
const [t, n] = J(null), r = B(e), o = Fe((a) => {
|
|
14482
14486
|
const i = As(a.target);
|
|
14483
14487
|
i && n((s) => s ? (s.set(i, Wl(i)), new Map(s)) : null);
|
|
14484
14488
|
}, []);
|
|
@@ -14503,7 +14507,7 @@ function y$(e) {
|
|
|
14503
14507
|
c == null || c.removeEventListener("scroll", o);
|
|
14504
14508
|
});
|
|
14505
14509
|
}
|
|
14506
|
-
}, [o, e]), le(() => e.length ? t ? Array.from(t.values()).reduce((a, i) =>
|
|
14510
|
+
}, [o, e]), le(() => e.length ? t ? Array.from(t.values()).reduce((a, i) => jr(a, i), Yt) : jm(e) : Yt, [e, t]);
|
|
14507
14511
|
}
|
|
14508
14512
|
function gp(e, t) {
|
|
14509
14513
|
t === void 0 && (t = []);
|
|
@@ -14562,7 +14566,7 @@ function Dm(e) {
|
|
|
14562
14566
|
const Is = [];
|
|
14563
14567
|
function x$(e, t) {
|
|
14564
14568
|
t === void 0 && (t = ho);
|
|
14565
|
-
const [n] = e, r = Dm(n ?
|
|
14569
|
+
const [n] = e, r = Dm(n ? wt(n) : null), [o, a] = fc(s, Is), i = es({
|
|
14566
14570
|
callback: a
|
|
14567
14571
|
});
|
|
14568
14572
|
return e.length > 0 && o === Is && a(), qt(() => {
|
|
@@ -14584,7 +14588,7 @@ function C$(e) {
|
|
|
14584
14588
|
let {
|
|
14585
14589
|
measure: t
|
|
14586
14590
|
} = e;
|
|
14587
|
-
const [n, r] = J(null), o =
|
|
14591
|
+
const [n, r] = J(null), o = Fe((c) => {
|
|
14588
14592
|
for (const {
|
|
14589
14593
|
target: u
|
|
14590
14594
|
} of c)
|
|
@@ -14601,7 +14605,7 @@ function C$(e) {
|
|
|
14601
14605
|
}
|
|
14602
14606
|
}, [t]), a = es({
|
|
14603
14607
|
callback: o
|
|
14604
|
-
}), i =
|
|
14608
|
+
}), i = Fe((c) => {
|
|
14605
14609
|
const u = S$(c);
|
|
14606
14610
|
a == null || a.disconnect(), u && (a == null || a.observe(u)), r(u ? t(u) : null);
|
|
14607
14611
|
}, [t, a]), [s, l] = Ci(i);
|
|
@@ -14711,7 +14715,7 @@ function R$() {
|
|
|
14711
14715
|
}
|
|
14712
14716
|
function T$(e, t) {
|
|
14713
14717
|
switch (t.type) {
|
|
14714
|
-
case
|
|
14718
|
+
case Ye.DragStart:
|
|
14715
14719
|
return {
|
|
14716
14720
|
...e,
|
|
14717
14721
|
draggable: {
|
|
@@ -14720,7 +14724,7 @@ function T$(e, t) {
|
|
|
14720
14724
|
active: t.active
|
|
14721
14725
|
}
|
|
14722
14726
|
};
|
|
14723
|
-
case
|
|
14727
|
+
case Ye.DragMove:
|
|
14724
14728
|
return e.draggable.active ? {
|
|
14725
14729
|
...e,
|
|
14726
14730
|
draggable: {
|
|
@@ -14731,8 +14735,8 @@ function T$(e, t) {
|
|
|
14731
14735
|
}
|
|
14732
14736
|
}
|
|
14733
14737
|
} : e;
|
|
14734
|
-
case
|
|
14735
|
-
case
|
|
14738
|
+
case Ye.DragEnd:
|
|
14739
|
+
case Ye.DragCancel:
|
|
14736
14740
|
return {
|
|
14737
14741
|
...e,
|
|
14738
14742
|
draggable: {
|
|
@@ -14748,7 +14752,7 @@ function T$(e, t) {
|
|
|
14748
14752
|
}
|
|
14749
14753
|
}
|
|
14750
14754
|
};
|
|
14751
|
-
case
|
|
14755
|
+
case Ye.RegisterDroppable: {
|
|
14752
14756
|
const {
|
|
14753
14757
|
element: n
|
|
14754
14758
|
} = t, {
|
|
@@ -14762,7 +14766,7 @@ function T$(e, t) {
|
|
|
14762
14766
|
}
|
|
14763
14767
|
};
|
|
14764
14768
|
}
|
|
14765
|
-
case
|
|
14769
|
+
case Ye.SetDroppableDisabled: {
|
|
14766
14770
|
const {
|
|
14767
14771
|
id: n,
|
|
14768
14772
|
key: r,
|
|
@@ -14782,7 +14786,7 @@ function T$(e, t) {
|
|
|
14782
14786
|
}
|
|
14783
14787
|
};
|
|
14784
14788
|
}
|
|
14785
|
-
case
|
|
14789
|
+
case Ye.UnregisterDroppable: {
|
|
14786
14790
|
const {
|
|
14787
14791
|
id: n,
|
|
14788
14792
|
key: r
|
|
@@ -14952,14 +14956,14 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
14952
14956
|
dragging: C,
|
|
14953
14957
|
dependencies: [N.x, N.y],
|
|
14954
14958
|
config: L.droppable
|
|
14955
|
-
}), de = u$(E, S), et = le(() => V ? Ul(V) : null, [V]), $e = Ea(),
|
|
14959
|
+
}), de = u$(E, S), et = le(() => V ? Ul(V) : null, [V]), $e = Ea(), He = p$(de, L.draggable.measure);
|
|
14956
14960
|
M$({
|
|
14957
14961
|
activeNode: S ? E.get(S) : null,
|
|
14958
14962
|
config: $e.layoutShiftCompensation,
|
|
14959
|
-
initialRect:
|
|
14963
|
+
initialRect: He,
|
|
14960
14964
|
measure: L.draggable.measure
|
|
14961
14965
|
});
|
|
14962
|
-
const ae = pp(de, L.draggable.measure,
|
|
14966
|
+
const ae = pp(de, L.draggable.measure, He), Me = pp(de ? de.parentElement : null), z = B({
|
|
14963
14967
|
activatorEvent: null,
|
|
14964
14968
|
active: null,
|
|
14965
14969
|
activeNode: de,
|
|
@@ -14975,7 +14979,7 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
14975
14979
|
scrollAdjustedTranslate: null
|
|
14976
14980
|
}), Je = R.getNodeFor((n = z.current.over) == null ? void 0 : n.id), Ie = C$({
|
|
14977
14981
|
measure: L.dragOverlay.measure
|
|
14978
|
-
}),
|
|
14982
|
+
}), Ae = (r = Ie.nodeRef.current) != null ? r : de, xt = C ? (o = Ie.rect) != null ? o : ae : null, fn = !!(Ie.nodeRef.current && Ie.rect), pn = v$(fn ? null : ae), Pe = Dm(Ae ? wt(Ae) : null), be = m$(C ? Je ?? de : null), ke = x$(be), qe = k$(p, {
|
|
14979
14983
|
transform: {
|
|
14980
14984
|
x: N.x - pn.x,
|
|
14981
14985
|
y: N.y - pn.y,
|
|
@@ -14985,20 +14989,20 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
14985
14989
|
activatorEvent: V,
|
|
14986
14990
|
active: $,
|
|
14987
14991
|
activeNodeRect: ae,
|
|
14988
|
-
containerNodeRect:
|
|
14989
|
-
draggingNodeRect:
|
|
14992
|
+
containerNodeRect: Me,
|
|
14993
|
+
draggingNodeRect: xt,
|
|
14990
14994
|
over: z.current.over,
|
|
14991
14995
|
overlayNodeRect: Ie.rect,
|
|
14992
14996
|
scrollableAncestors: be,
|
|
14993
14997
|
scrollableAncestorRects: ke,
|
|
14994
14998
|
windowRect: Pe
|
|
14995
|
-
}), Xt = et ?
|
|
14999
|
+
}), Xt = et ? jr(et, N) : null, wa = y$(be), xa = gp(wa), Sa = gp(wa, [ae]), Tt = jr(qe, xa), Rn = xt ? z8(xt, qe) : null, Tn = $ && Rn ? d({
|
|
14996
15000
|
active: $,
|
|
14997
15001
|
collisionRect: Rn,
|
|
14998
15002
|
droppableRects: Y,
|
|
14999
15003
|
droppableContainers: k,
|
|
15000
15004
|
pointerCoordinates: Xt
|
|
15001
|
-
}) : null, mo = _m(Tn, "id"), [Pt, Ca] = J(null), ss = fn ? qe :
|
|
15005
|
+
}) : null, mo = _m(Tn, "id"), [Pt, Ca] = J(null), ss = fn ? qe : jr(qe, Sa), ls = L8(ss, (a = Pt == null ? void 0 : Pt.rect) != null ? a : null, ae), Oa = Fe(
|
|
15002
15006
|
(Te, tt) => {
|
|
15003
15007
|
let {
|
|
15004
15008
|
sensor: nt,
|
|
@@ -15006,18 +15010,18 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15006
15010
|
} = tt;
|
|
15007
15011
|
if (A.current == null)
|
|
15008
15012
|
return;
|
|
15009
|
-
const
|
|
15010
|
-
if (!
|
|
15013
|
+
const pt = E.get(A.current);
|
|
15014
|
+
if (!pt)
|
|
15011
15015
|
return;
|
|
15012
|
-
const
|
|
15016
|
+
const ht = Te.nativeEvent, kt = new nt({
|
|
15013
15017
|
active: A.current,
|
|
15014
|
-
activeNode:
|
|
15015
|
-
event:
|
|
15018
|
+
activeNode: pt,
|
|
15019
|
+
event: ht,
|
|
15016
15020
|
options: Lt,
|
|
15017
15021
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
15018
15022
|
// otherwise they are frozen in time with the stale arguments
|
|
15019
15023
|
context: z,
|
|
15020
|
-
onStart(
|
|
15024
|
+
onStart(gt) {
|
|
15021
15025
|
const Vn = A.current;
|
|
15022
15026
|
if (Vn == null)
|
|
15023
15027
|
return;
|
|
@@ -15026,7 +15030,7 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15026
15030
|
return;
|
|
15027
15031
|
const {
|
|
15028
15032
|
onDragStart: Un
|
|
15029
|
-
} = ne.current,
|
|
15033
|
+
} = ne.current, gr = {
|
|
15030
15034
|
active: {
|
|
15031
15035
|
id: Vn,
|
|
15032
15036
|
data: Hn.data,
|
|
@@ -15034,34 +15038,34 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15034
15038
|
}
|
|
15035
15039
|
};
|
|
15036
15040
|
bo(() => {
|
|
15037
|
-
Un == null || Un(
|
|
15038
|
-
type:
|
|
15039
|
-
initialCoordinates:
|
|
15041
|
+
Un == null || Un(gr), g(kn.Initializing), m({
|
|
15042
|
+
type: Ye.DragStart,
|
|
15043
|
+
initialCoordinates: gt,
|
|
15040
15044
|
active: Vn
|
|
15041
15045
|
}), w({
|
|
15042
15046
|
type: "onDragStart",
|
|
15043
|
-
event:
|
|
15047
|
+
event: gr
|
|
15044
15048
|
});
|
|
15045
15049
|
});
|
|
15046
15050
|
},
|
|
15047
|
-
onMove(
|
|
15051
|
+
onMove(gt) {
|
|
15048
15052
|
m({
|
|
15049
|
-
type:
|
|
15050
|
-
coordinates:
|
|
15053
|
+
type: Ye.DragMove,
|
|
15054
|
+
coordinates: gt
|
|
15051
15055
|
});
|
|
15052
15056
|
},
|
|
15053
|
-
onEnd: hn(
|
|
15054
|
-
onCancel: hn(
|
|
15057
|
+
onEnd: hn(Ye.DragEnd),
|
|
15058
|
+
onCancel: hn(Ye.DragCancel)
|
|
15055
15059
|
});
|
|
15056
15060
|
bo(() => {
|
|
15057
15061
|
M(kt), oe(Te.nativeEvent);
|
|
15058
15062
|
});
|
|
15059
|
-
function hn(
|
|
15063
|
+
function hn(gt) {
|
|
15060
15064
|
return async function() {
|
|
15061
15065
|
const {
|
|
15062
15066
|
active: Hn,
|
|
15063
15067
|
collisions: Un,
|
|
15064
|
-
over:
|
|
15068
|
+
over: gr,
|
|
15065
15069
|
scrollAdjustedTranslate: Na
|
|
15066
15070
|
} = z.current;
|
|
15067
15071
|
let Wn = null;
|
|
@@ -15070,18 +15074,18 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15070
15074
|
cancelDrop: Gn
|
|
15071
15075
|
} = ne.current;
|
|
15072
15076
|
Wn = {
|
|
15073
|
-
activatorEvent:
|
|
15077
|
+
activatorEvent: ht,
|
|
15074
15078
|
active: Hn,
|
|
15075
15079
|
collisions: Un,
|
|
15076
15080
|
delta: Na,
|
|
15077
|
-
over:
|
|
15078
|
-
},
|
|
15081
|
+
over: gr
|
|
15082
|
+
}, gt === Ye.DragEnd && typeof Gn == "function" && await Promise.resolve(Gn(Wn)) && (gt = Ye.DragCancel);
|
|
15079
15083
|
}
|
|
15080
15084
|
A.current = null, bo(() => {
|
|
15081
15085
|
m({
|
|
15082
|
-
type:
|
|
15086
|
+
type: gt
|
|
15083
15087
|
}), g(kn.Uninitialized), Ca(null), M(null), oe(null);
|
|
15084
|
-
const Gn =
|
|
15088
|
+
const Gn = gt === Ye.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
15085
15089
|
if (Wn) {
|
|
15086
15090
|
const _ = ne.current[Gn];
|
|
15087
15091
|
_ == null || _(Wn), w({
|
|
@@ -15095,19 +15099,19 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15095
15099
|
},
|
|
15096
15100
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
15097
15101
|
[E]
|
|
15098
|
-
), cs =
|
|
15099
|
-
const
|
|
15102
|
+
), cs = Fe((Te, tt) => (nt, Lt) => {
|
|
15103
|
+
const pt = nt.nativeEvent, ht = E.get(Lt);
|
|
15100
15104
|
if (
|
|
15101
15105
|
// Another sensor is already instantiating
|
|
15102
15106
|
A.current !== null || // No active draggable
|
|
15103
|
-
!
|
|
15104
|
-
|
|
15107
|
+
!ht || // Event has already been captured
|
|
15108
|
+
pt.dndKit || pt.defaultPrevented
|
|
15105
15109
|
)
|
|
15106
15110
|
return;
|
|
15107
15111
|
const kt = {
|
|
15108
|
-
active:
|
|
15112
|
+
active: ht
|
|
15109
15113
|
};
|
|
15110
|
-
Te(nt, tt.options, kt) === !0 && (
|
|
15114
|
+
Te(nt, tt.options, kt) === !0 && (pt.dndKit = {
|
|
15111
15115
|
capturedBy: tt.sensor
|
|
15112
15116
|
}, A.current = Lt, Oa(nt, tt));
|
|
15113
15117
|
}, [E, Oa]), _a = d$(u, cs);
|
|
@@ -15121,11 +15125,11 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15121
15125
|
active: tt,
|
|
15122
15126
|
activatorEvent: nt,
|
|
15123
15127
|
collisions: Lt,
|
|
15124
|
-
over:
|
|
15128
|
+
over: pt
|
|
15125
15129
|
} = z.current;
|
|
15126
15130
|
if (!tt || !nt)
|
|
15127
15131
|
return;
|
|
15128
|
-
const
|
|
15132
|
+
const ht = {
|
|
15129
15133
|
active: tt,
|
|
15130
15134
|
activatorEvent: nt,
|
|
15131
15135
|
collisions: Lt,
|
|
@@ -15133,12 +15137,12 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15133
15137
|
x: Tt.x,
|
|
15134
15138
|
y: Tt.y
|
|
15135
15139
|
},
|
|
15136
|
-
over:
|
|
15140
|
+
over: pt
|
|
15137
15141
|
};
|
|
15138
15142
|
bo(() => {
|
|
15139
|
-
Te == null || Te(
|
|
15143
|
+
Te == null || Te(ht), w({
|
|
15140
15144
|
type: "onDragMove",
|
|
15141
|
-
event:
|
|
15145
|
+
event: ht
|
|
15142
15146
|
});
|
|
15143
15147
|
});
|
|
15144
15148
|
},
|
|
@@ -15151,31 +15155,31 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15151
15155
|
activatorEvent: tt,
|
|
15152
15156
|
collisions: nt,
|
|
15153
15157
|
droppableContainers: Lt,
|
|
15154
|
-
scrollAdjustedTranslate:
|
|
15158
|
+
scrollAdjustedTranslate: pt
|
|
15155
15159
|
} = z.current;
|
|
15156
|
-
if (!Te || A.current == null || !tt || !
|
|
15160
|
+
if (!Te || A.current == null || !tt || !pt)
|
|
15157
15161
|
return;
|
|
15158
15162
|
const {
|
|
15159
|
-
onDragOver:
|
|
15163
|
+
onDragOver: ht
|
|
15160
15164
|
} = ne.current, kt = Lt.get(mo), hn = kt && kt.rect.current ? {
|
|
15161
15165
|
id: kt.id,
|
|
15162
15166
|
rect: kt.rect.current,
|
|
15163
15167
|
data: kt.data,
|
|
15164
15168
|
disabled: kt.disabled
|
|
15165
|
-
} : null,
|
|
15169
|
+
} : null, gt = {
|
|
15166
15170
|
active: Te,
|
|
15167
15171
|
activatorEvent: tt,
|
|
15168
15172
|
collisions: nt,
|
|
15169
15173
|
delta: {
|
|
15170
|
-
x:
|
|
15171
|
-
y:
|
|
15174
|
+
x: pt.x,
|
|
15175
|
+
y: pt.y
|
|
15172
15176
|
},
|
|
15173
15177
|
over: hn
|
|
15174
15178
|
};
|
|
15175
15179
|
bo(() => {
|
|
15176
|
-
Ca(hn),
|
|
15180
|
+
Ca(hn), ht == null || ht(gt), w({
|
|
15177
15181
|
type: "onDragOver",
|
|
15178
|
-
event:
|
|
15182
|
+
event: gt
|
|
15179
15183
|
});
|
|
15180
15184
|
});
|
|
15181
15185
|
},
|
|
@@ -15190,17 +15194,17 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15190
15194
|
collisions: Tn,
|
|
15191
15195
|
droppableRects: Y,
|
|
15192
15196
|
draggableNodes: E,
|
|
15193
|
-
draggingNode:
|
|
15194
|
-
draggingNodeRect:
|
|
15197
|
+
draggingNode: Ae,
|
|
15198
|
+
draggingNodeRect: xt,
|
|
15195
15199
|
droppableContainers: R,
|
|
15196
15200
|
over: Pt,
|
|
15197
15201
|
scrollableAncestors: be,
|
|
15198
15202
|
scrollAdjustedTranslate: Tt
|
|
15199
15203
|
}, j.current = {
|
|
15200
|
-
initial:
|
|
15204
|
+
initial: xt,
|
|
15201
15205
|
translated: Rn
|
|
15202
15206
|
};
|
|
15203
|
-
}, [$, de, Tn, Rn, E,
|
|
15207
|
+
}, [$, de, Tn, Rn, E, Ae, xt, Y, R, Pt, be, Tt]), s$({
|
|
15204
15208
|
...$e,
|
|
15205
15209
|
delta: N,
|
|
15206
15210
|
draggingRect: Rn,
|
|
@@ -15214,7 +15218,7 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15214
15218
|
activeNodeRect: ae,
|
|
15215
15219
|
activatorEvent: V,
|
|
15216
15220
|
collisions: Tn,
|
|
15217
|
-
containerNodeRect:
|
|
15221
|
+
containerNodeRect: Me,
|
|
15218
15222
|
dragOverlay: Ie,
|
|
15219
15223
|
draggableNodes: E,
|
|
15220
15224
|
droppableContainers: R,
|
|
@@ -15226,7 +15230,7 @@ const vp = /* @__PURE__ */ Ti(function(t) {
|
|
|
15226
15230
|
measuringConfiguration: L,
|
|
15227
15231
|
measuringScheduled: ce,
|
|
15228
15232
|
windowRect: Pe
|
|
15229
|
-
}), [$, de, ae, V, Tn,
|
|
15233
|
+
}), [$, de, ae, V, Tn, Me, Ie, E, R, Y, Pt, ee, be, ke, L, ce, Pe]), yo = le(() => ({
|
|
15230
15234
|
activatorEvent: V,
|
|
15231
15235
|
activators: _a,
|
|
15232
15236
|
active: $,
|
|
@@ -15350,7 +15354,7 @@ function B$(e) {
|
|
|
15350
15354
|
} = {
|
|
15351
15355
|
...L$,
|
|
15352
15356
|
...o
|
|
15353
|
-
}, m = ta(v ?? r), w =
|
|
15357
|
+
}, m = ta(v ?? r), w = Fe(
|
|
15354
15358
|
() => {
|
|
15355
15359
|
if (!d.current) {
|
|
15356
15360
|
d.current = !0;
|
|
@@ -15365,14 +15369,14 @@ function B$(e) {
|
|
|
15365
15369
|
), O = es({
|
|
15366
15370
|
callback: w,
|
|
15367
15371
|
disabled: h || !i
|
|
15368
|
-
}), x =
|
|
15372
|
+
}), x = Fe((E, N) => {
|
|
15369
15373
|
O && (N && (O.unobserve(N), d.current = !1), E && O.observe(E));
|
|
15370
15374
|
}, [O]), [g, C] = Ci(x), S = ta(t);
|
|
15371
15375
|
return G(() => {
|
|
15372
15376
|
!O || !g.current || (O.disconnect(), d.current = !1, O.observe(g.current));
|
|
15373
15377
|
}, [g, O]), qt(
|
|
15374
15378
|
() => (s({
|
|
15375
|
-
type:
|
|
15379
|
+
type: Ye.RegisterDroppable,
|
|
15376
15380
|
element: {
|
|
15377
15381
|
id: r,
|
|
15378
15382
|
key: a,
|
|
@@ -15382,7 +15386,7 @@ function B$(e) {
|
|
|
15382
15386
|
data: S
|
|
15383
15387
|
}
|
|
15384
15388
|
}), () => s({
|
|
15385
|
-
type:
|
|
15389
|
+
type: Ye.UnregisterDroppable,
|
|
15386
15390
|
key: a,
|
|
15387
15391
|
id: r
|
|
15388
15392
|
})),
|
|
@@ -15390,7 +15394,7 @@ function B$(e) {
|
|
|
15390
15394
|
[r]
|
|
15391
15395
|
), G(() => {
|
|
15392
15396
|
n !== u.current.disabled && (s({
|
|
15393
|
-
type:
|
|
15397
|
+
type: Ye.SetDroppableDisabled,
|
|
15394
15398
|
id: r,
|
|
15395
15399
|
key: a,
|
|
15396
15400
|
disabled: n
|
|
@@ -15632,12 +15636,12 @@ function X$(e) {
|
|
|
15632
15636
|
items: u,
|
|
15633
15637
|
activeIndex: f,
|
|
15634
15638
|
overIndex: y
|
|
15635
|
-
}) : x,
|
|
15636
|
-
activeId:
|
|
15639
|
+
}) : x, He = T == null ? void 0 : T.id, ae = B({
|
|
15640
|
+
activeId: He,
|
|
15637
15641
|
items: u,
|
|
15638
15642
|
newIndex: $e,
|
|
15639
15643
|
containerId: d
|
|
15640
|
-
}),
|
|
15644
|
+
}), Me = u !== ae.current.items, z = t({
|
|
15641
15645
|
active: T,
|
|
15642
15646
|
containerId: d,
|
|
15643
15647
|
isDragging: V,
|
|
@@ -15659,17 +15663,17 @@ function X$(e) {
|
|
|
15659
15663
|
return G(() => {
|
|
15660
15664
|
L && ae.current.newIndex !== $e && (ae.current.newIndex = $e), d !== ae.current.containerId && (ae.current.containerId = d), u !== ae.current.items && (ae.current.items = u);
|
|
15661
15665
|
}, [L, $e, d, u]), G(() => {
|
|
15662
|
-
if (
|
|
15666
|
+
if (He === ae.current.activeId)
|
|
15663
15667
|
return;
|
|
15664
|
-
if (
|
|
15665
|
-
ae.current.activeId =
|
|
15668
|
+
if (He && !ae.current.activeId) {
|
|
15669
|
+
ae.current.activeId = He;
|
|
15666
15670
|
return;
|
|
15667
15671
|
}
|
|
15668
|
-
const
|
|
15669
|
-
ae.current.activeId =
|
|
15672
|
+
const Ae = setTimeout(() => {
|
|
15673
|
+
ae.current.activeId = He;
|
|
15670
15674
|
}, 50);
|
|
15671
|
-
return () => clearTimeout(
|
|
15672
|
-
}, [
|
|
15675
|
+
return () => clearTimeout(Ae);
|
|
15676
|
+
}, [He]), {
|
|
15673
15677
|
active: T,
|
|
15674
15678
|
activeIndex: f,
|
|
15675
15679
|
attributes: A,
|
|
@@ -15696,7 +15700,7 @@ function X$(e) {
|
|
|
15696
15700
|
if (
|
|
15697
15701
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
15698
15702
|
Je || // Or to prevent items jumping to back to their "new" position when items change
|
|
15699
|
-
|
|
15703
|
+
Me && ae.current.newIndex === x
|
|
15700
15704
|
)
|
|
15701
15705
|
return K$;
|
|
15702
15706
|
if (!(ee && !mu(j) || !c) && (L || z))
|
|
@@ -16540,10 +16544,10 @@ function o6(e, t, n = !0) {
|
|
|
16540
16544
|
r.current = !1;
|
|
16541
16545
|
} : e, t);
|
|
16542
16546
|
}
|
|
16543
|
-
var
|
|
16547
|
+
var Ot = o6;
|
|
16544
16548
|
function Fo() {
|
|
16545
16549
|
}
|
|
16546
|
-
function
|
|
16550
|
+
function Nr(e, t, n, r) {
|
|
16547
16551
|
return a6(e, r) || i6(e, t, n, r);
|
|
16548
16552
|
}
|
|
16549
16553
|
function a6(e, t) {
|
|
@@ -16560,30 +16564,30 @@ function s6({ original: e, modified: t, language: n, originalLanguage: r, modifi
|
|
|
16560
16564
|
ty(() => {
|
|
16561
16565
|
let P = Zm.init();
|
|
16562
16566
|
return P.then((M) => (S.current = M) && g(!1)).catch((M) => (M == null ? void 0 : M.type) !== "cancelation" && console.error("Monaco initialization: error:", M)), () => C.current ? A() : P.cancel();
|
|
16563
|
-
}),
|
|
16567
|
+
}), Ot(() => {
|
|
16564
16568
|
let P = C.current.getModifiedEditor();
|
|
16565
16569
|
P.getOption(S.current.editor.EditorOption.readOnly) ? P.setValue(t || "") : t !== P.getValue() && (P.executeEdits("", [{ range: P.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), P.pushUndoStop());
|
|
16566
|
-
}, [t], w),
|
|
16570
|
+
}, [t], w), Ot(() => {
|
|
16567
16571
|
var P, M;
|
|
16568
16572
|
(M = (P = C.current) == null ? void 0 : P.getModel()) == null || M.original.setValue(e || "");
|
|
16569
|
-
}, [e], w),
|
|
16573
|
+
}, [e], w), Ot(() => {
|
|
16570
16574
|
let { original: P, modified: M } = C.current.getModel();
|
|
16571
16575
|
S.current.editor.setModelLanguage(P, r || n || "text"), S.current.editor.setModelLanguage(M, o || n || "text");
|
|
16572
|
-
}, [n, r, o], w),
|
|
16576
|
+
}, [n, r, o], w), Ot(() => {
|
|
16573
16577
|
var P;
|
|
16574
16578
|
(P = S.current) == null || P.editor.setTheme(c);
|
|
16575
|
-
}, [c], w),
|
|
16579
|
+
}, [c], w), Ot(() => {
|
|
16576
16580
|
var P;
|
|
16577
16581
|
(P = C.current) == null || P.updateOptions(d);
|
|
16578
16582
|
}, [d], w);
|
|
16579
|
-
let j =
|
|
16583
|
+
let j = Fe(() => {
|
|
16580
16584
|
var V;
|
|
16581
16585
|
if (!S.current)
|
|
16582
16586
|
return;
|
|
16583
16587
|
R.current(S.current);
|
|
16584
|
-
let P =
|
|
16588
|
+
let P = Nr(S.current, e || "", r || n || "text", a || ""), M = Nr(S.current, t || "", o || n || "text", i || "");
|
|
16585
16589
|
(V = C.current) == null || V.setModel({ original: P, modified: M });
|
|
16586
|
-
}, [n, t, o, e, r, a, i]), $ =
|
|
16590
|
+
}, [n, t, o, e, r, a, i]), $ = Fe(() => {
|
|
16587
16591
|
var P;
|
|
16588
16592
|
!T.current && E.current && (C.current = S.current.editor.createDiffEditor(E.current, { automaticLayout: !0, ...d }), j(), (P = S.current) == null || P.editor.setTheme(c), O(!0), T.current = !0);
|
|
16589
16593
|
}, [d, c, j]);
|
|
@@ -16591,14 +16595,14 @@ function s6({ original: e, modified: t, language: n, originalLanguage: r, modifi
|
|
|
16591
16595
|
w && N.current(C.current, S.current);
|
|
16592
16596
|
}, [w]), G(() => {
|
|
16593
16597
|
!x && !w && $();
|
|
16594
|
-
}, [x, w, $]),
|
|
16598
|
+
}, [x, w, $]), Ot(() => {
|
|
16595
16599
|
if (C.current && S.current) {
|
|
16596
|
-
let P = C.current.getOriginalEditor(), M =
|
|
16600
|
+
let P = C.current.getOriginalEditor(), M = Nr(S.current, e || "", r || n || "text", a || "");
|
|
16597
16601
|
M !== P.getModel() && P.setModel(M);
|
|
16598
16602
|
}
|
|
16599
|
-
}, [a], w),
|
|
16603
|
+
}, [a], w), Ot(() => {
|
|
16600
16604
|
if (C.current && S.current) {
|
|
16601
|
-
let P = C.current.getModifiedEditor(), M =
|
|
16605
|
+
let P = C.current.getModifiedEditor(), M = Nr(S.current, t || "", o || n || "text", i || "");
|
|
16602
16606
|
M !== P.getModel() && P.setModel(M);
|
|
16603
16607
|
}
|
|
16604
16608
|
}, [i], w);
|
|
@@ -16623,31 +16627,31 @@ function d6({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
|
|
|
16623
16627
|
ty(() => {
|
|
16624
16628
|
let k = Zm.init();
|
|
16625
16629
|
return k.then((L) => (N.current = L) && E(!1)).catch((L) => (L == null ? void 0 : L.type) !== "cancelation" && console.error("Monaco initialization: error:", L)), () => R.current ? he() : k.cancel();
|
|
16626
|
-
}),
|
|
16630
|
+
}), Ot(() => {
|
|
16627
16631
|
var L, Y, ee, ce;
|
|
16628
|
-
let k =
|
|
16632
|
+
let k = Nr(N.current, e || r || "", t || o || "", a || n || "");
|
|
16629
16633
|
k !== ((L = R.current) == null ? void 0 : L.getModel()) && (d && Ha.set(M, (Y = R.current) == null ? void 0 : Y.saveViewState()), (ee = R.current) == null || ee.setModel(k), d && ((ce = R.current) == null || ce.restoreViewState(Ha.get(a))));
|
|
16630
|
-
}, [a], g),
|
|
16634
|
+
}, [a], g), Ot(() => {
|
|
16631
16635
|
var k;
|
|
16632
16636
|
(k = R.current) == null || k.updateOptions(c);
|
|
16633
|
-
}, [c], g),
|
|
16637
|
+
}, [c], g), Ot(() => {
|
|
16634
16638
|
!R.current || r === void 0 || (R.current.getOption(N.current.editor.EditorOption.readOnly) ? R.current.setValue(r) : r !== R.current.getValue() && (oe.current = !0, R.current.executeEdits("", [{ range: R.current.getModel().getFullModelRange(), text: r, forceMoveMarkers: !0 }]), R.current.pushUndoStop(), oe.current = !1));
|
|
16635
|
-
}, [r], g),
|
|
16639
|
+
}, [r], g), Ot(() => {
|
|
16636
16640
|
var L, Y;
|
|
16637
16641
|
let k = (L = R.current) == null ? void 0 : L.getModel();
|
|
16638
16642
|
k && o && ((Y = N.current) == null || Y.editor.setModelLanguage(k, o));
|
|
16639
|
-
}, [o], g),
|
|
16643
|
+
}, [o], g), Ot(() => {
|
|
16640
16644
|
var k;
|
|
16641
16645
|
s !== void 0 && ((k = R.current) == null || k.revealLine(s));
|
|
16642
|
-
}, [s], g),
|
|
16646
|
+
}, [s], g), Ot(() => {
|
|
16643
16647
|
var k;
|
|
16644
16648
|
(k = N.current) == null || k.editor.setTheme(i);
|
|
16645
16649
|
}, [i], g);
|
|
16646
|
-
let ne =
|
|
16650
|
+
let ne = Fe(() => {
|
|
16647
16651
|
var k;
|
|
16648
16652
|
if (!(!T.current || !N.current) && !V.current) {
|
|
16649
16653
|
$.current(N.current);
|
|
16650
|
-
let L = a || n, Y =
|
|
16654
|
+
let L = a || n, Y = Nr(N.current, r || e || "", t || o || "", L || "");
|
|
16651
16655
|
R.current = (k = N.current) == null ? void 0 : k.editor.create(T.current, { model: Y, automaticLayout: !0, ...c }, u), d && R.current.restoreViewState(Ha.get(L)), N.current.editor.setTheme(i), C(!0), V.current = !0;
|
|
16652
16656
|
}
|
|
16653
16657
|
}, [e, t, n, r, o, a, c, u, d, i]);
|
|
@@ -18152,7 +18156,7 @@ const yL = "_inputAuto_gk0d2_2", bL = "_active_gk0d2_6", kp = {
|
|
|
18152
18156
|
onBlur: () => {
|
|
18153
18157
|
u(!1);
|
|
18154
18158
|
},
|
|
18155
|
-
className:
|
|
18159
|
+
className: vt([kp.inputAuto, c && kp.active]),
|
|
18156
18160
|
placeholder: "value",
|
|
18157
18161
|
options: p
|
|
18158
18162
|
})
|
|
@@ -19657,7 +19661,7 @@ const xL = {
|
|
|
19657
19661
|
style: {
|
|
19658
19662
|
width: `${v}px`
|
|
19659
19663
|
},
|
|
19660
|
-
className:
|
|
19664
|
+
className: vt([yn.inputBox]),
|
|
19661
19665
|
onFocus: () => {
|
|
19662
19666
|
O({
|
|
19663
19667
|
key: !0,
|
|
@@ -19941,19 +19945,19 @@ var Ap = "%", s3 = /* @__PURE__ */ function() {
|
|
|
19941
19945
|
i === null ? this.cache.delete(o) : this.cache.set(o, i);
|
|
19942
19946
|
}
|
|
19943
19947
|
}]), e;
|
|
19944
|
-
}(), ql = "data-token-hash",
|
|
19948
|
+
}(), ql = "data-token-hash", Zn = "data-css-hash", l3 = "data-cache-path", Rr = "__cssinjs_instance__";
|
|
19945
19949
|
function c3() {
|
|
19946
19950
|
var e = Math.random().toString(12).slice(2);
|
|
19947
19951
|
if (typeof document < "u" && document.head && document.body) {
|
|
19948
|
-
var t = document.body.querySelectorAll("style[".concat(
|
|
19952
|
+
var t = document.body.querySelectorAll("style[".concat(Zn, "]")) || [], n = document.head.firstChild;
|
|
19949
19953
|
Array.from(t).forEach(function(o) {
|
|
19950
|
-
o[
|
|
19954
|
+
o[Rr] = o[Rr] || e, o[Rr] === e && document.head.insertBefore(o, n);
|
|
19951
19955
|
});
|
|
19952
19956
|
var r = {};
|
|
19953
|
-
Array.from(document.querySelectorAll("style[".concat(
|
|
19954
|
-
var a = o.getAttribute(
|
|
19957
|
+
Array.from(document.querySelectorAll("style[".concat(Zn, "]"))).forEach(function(o) {
|
|
19958
|
+
var a = o.getAttribute(Zn);
|
|
19955
19959
|
if (r[a]) {
|
|
19956
|
-
if (o[
|
|
19960
|
+
if (o[Rr] === e) {
|
|
19957
19961
|
var i;
|
|
19958
19962
|
(i = o.parentNode) === null || i === void 0 || i.removeChild(o);
|
|
19959
19963
|
}
|
|
@@ -20006,7 +20010,7 @@ var Dp = "{}".NODE_ENV !== "test" && sn() ? W.useLayoutEffect : W.useEffect, h3
|
|
|
20006
20010
|
r.current = !0;
|
|
20007
20011
|
};
|
|
20008
20012
|
}, []);
|
|
20009
|
-
}, g3 =
|
|
20013
|
+
}, g3 = H({}, W), $p = g3.useInsertionEffect, v3 = function(t, n, r) {
|
|
20010
20014
|
W.useMemo(t, r), h3(function() {
|
|
20011
20015
|
return n(!0);
|
|
20012
20016
|
}, r);
|
|
@@ -20075,7 +20079,7 @@ function E3(e, t) {
|
|
|
20075
20079
|
if (typeof document < "u") {
|
|
20076
20080
|
var n = document.querySelectorAll("style[".concat(ql, '="').concat(e, '"]'));
|
|
20077
20081
|
n.forEach(function(r) {
|
|
20078
|
-
if (r[
|
|
20082
|
+
if (r[Rr] === t) {
|
|
20079
20083
|
var o;
|
|
20080
20084
|
(o = r.parentNode) === null || o === void 0 || o.removeChild(r);
|
|
20081
20085
|
}
|
|
@@ -20094,7 +20098,7 @@ function R3(e, t) {
|
|
|
20094
20098
|
});
|
|
20095
20099
|
}
|
|
20096
20100
|
var T3 = function(t, n, r, o) {
|
|
20097
|
-
var a = r.getDerivativeToken(t), i =
|
|
20101
|
+
var a = r.getDerivativeToken(t), i = H(H({}, a), n);
|
|
20098
20102
|
return o && (i = o(i)), i;
|
|
20099
20103
|
};
|
|
20100
20104
|
function P3(e, t) {
|
|
@@ -20186,20 +20190,20 @@ function I3(e) {
|
|
|
20186
20190
|
function Ka(e, t) {
|
|
20187
20191
|
return t.push(e), e;
|
|
20188
20192
|
}
|
|
20189
|
-
var rs = 1, qr = 1, Oy = 0, It = 0,
|
|
20193
|
+
var rs = 1, qr = 1, Oy = 0, It = 0, Ke = 0, go = "";
|
|
20190
20194
|
function Pu(e, t, n, r, o, a, i, s) {
|
|
20191
20195
|
return { value: e, root: t, parent: n, type: r, props: o, children: a, line: rs, column: qr, length: i, return: "", siblings: s };
|
|
20192
20196
|
}
|
|
20193
20197
|
function L3() {
|
|
20194
|
-
return
|
|
20198
|
+
return Ke;
|
|
20195
20199
|
}
|
|
20196
20200
|
function B3() {
|
|
20197
|
-
return
|
|
20201
|
+
return Ke = It > 0 ? aa(go, --It) : 0, qr--, Ke === 10 && (qr = 1, rs--), Ke;
|
|
20198
20202
|
}
|
|
20199
20203
|
function Gt() {
|
|
20200
|
-
return
|
|
20204
|
+
return Ke = It < Oy ? aa(go, It++) : 0, qr++, Ke === 10 && (qr = 1, rs++), Ke;
|
|
20201
20205
|
}
|
|
20202
|
-
function
|
|
20206
|
+
function er() {
|
|
20203
20207
|
return aa(go, It);
|
|
20204
20208
|
}
|
|
20205
20209
|
function ai() {
|
|
@@ -20250,23 +20254,23 @@ function Ws(e) {
|
|
|
20250
20254
|
return Cy(os(It - 1, Jl(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
20251
20255
|
}
|
|
20252
20256
|
function V3(e) {
|
|
20253
|
-
for (; (
|
|
20257
|
+
for (; (Ke = er()) && Ke < 33; )
|
|
20254
20258
|
Gt();
|
|
20255
|
-
return Xl(e) > 2 || Xl(
|
|
20259
|
+
return Xl(e) > 2 || Xl(Ke) > 3 ? "" : " ";
|
|
20256
20260
|
}
|
|
20257
20261
|
function H3(e, t) {
|
|
20258
|
-
for (; --t && Gt() && !(
|
|
20262
|
+
for (; --t && Gt() && !(Ke < 48 || Ke > 102 || Ke > 57 && Ke < 65 || Ke > 70 && Ke < 97); )
|
|
20259
20263
|
;
|
|
20260
|
-
return os(e, ai() + (t < 6 &&
|
|
20264
|
+
return os(e, ai() + (t < 6 && er() == 32 && Gt() == 32));
|
|
20261
20265
|
}
|
|
20262
20266
|
function Jl(e) {
|
|
20263
20267
|
for (; Gt(); )
|
|
20264
|
-
switch (
|
|
20268
|
+
switch (Ke) {
|
|
20265
20269
|
case e:
|
|
20266
20270
|
return It;
|
|
20267
20271
|
case 34:
|
|
20268
20272
|
case 39:
|
|
20269
|
-
e !== 34 && e !== 39 && Jl(
|
|
20273
|
+
e !== 34 && e !== 39 && Jl(Ke);
|
|
20270
20274
|
break;
|
|
20271
20275
|
case 40:
|
|
20272
20276
|
e === 41 && Jl(e);
|
|
@@ -20278,13 +20282,13 @@ function Jl(e) {
|
|
|
20278
20282
|
return It;
|
|
20279
20283
|
}
|
|
20280
20284
|
function U3(e, t) {
|
|
20281
|
-
for (; Gt() && e +
|
|
20282
|
-
if (e +
|
|
20285
|
+
for (; Gt() && e + Ke !== 47 + 10; )
|
|
20286
|
+
if (e + Ke === 42 + 42 && er() === 47)
|
|
20283
20287
|
break;
|
|
20284
20288
|
return "/*" + os(t, It - 1) + "*" + Tu(e === 47 ? e : Gt());
|
|
20285
20289
|
}
|
|
20286
20290
|
function W3(e) {
|
|
20287
|
-
for (; !Xl(
|
|
20291
|
+
for (; !Xl(er()); )
|
|
20288
20292
|
Gt();
|
|
20289
20293
|
return os(e, It);
|
|
20290
20294
|
}
|
|
@@ -20314,7 +20318,7 @@ function ii(e, t, n, r, o, a, i, s, l) {
|
|
|
20314
20318
|
S += H3(ai() - 1, 7);
|
|
20315
20319
|
continue;
|
|
20316
20320
|
case 47:
|
|
20317
|
-
switch (
|
|
20321
|
+
switch (er()) {
|
|
20318
20322
|
case 42:
|
|
20319
20323
|
case 47:
|
|
20320
20324
|
Ka(K3(U3(Gt(), ai()), t, n, l), l);
|
|
@@ -20372,7 +20376,7 @@ function ii(e, t, n, r, o, a, i, s, l) {
|
|
|
20372
20376
|
s[c++] = (wn(S) - 1) * m, m = 1;
|
|
20373
20377
|
break;
|
|
20374
20378
|
case 64:
|
|
20375
|
-
|
|
20379
|
+
er() === 45 && (S += Ws(Gt())), f = er(), u = d = wn(O = S += W3(ai())), w++;
|
|
20376
20380
|
break;
|
|
20377
20381
|
case 45:
|
|
20378
20382
|
h === 45 && wn(S) == 2 && (v = 0);
|
|
@@ -20426,15 +20430,15 @@ var Y3 = function(t, n, r) {
|
|
|
20426
20430
|
}
|
|
20427
20431
|
}, X3 = function(t, n, r) {
|
|
20428
20432
|
t === "animation" && r.hashId && n !== "none" && _y("You seem to be using hashed animation '".concat(n, "', in which case 'animationName' with Keyframe as value is recommended."), r);
|
|
20429
|
-
}, Bp = "data-ant-cssinjs-cache-path", Ey = "_FILE_STYLE__",
|
|
20433
|
+
}, Bp = "data-ant-cssinjs-cache-path", Ey = "_FILE_STYLE__", tr, Ny = !0;
|
|
20430
20434
|
function J3() {
|
|
20431
|
-
if (!
|
|
20435
|
+
if (!tr && (tr = {}, sn())) {
|
|
20432
20436
|
var e = document.createElement("div");
|
|
20433
20437
|
e.className = Bp, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
|
|
20434
20438
|
var t = getComputedStyle(e).content || "";
|
|
20435
20439
|
t = t.replace(/^"/, "").replace(/"$/, ""), t.split(";").forEach(function(o) {
|
|
20436
20440
|
var a = o.split(":"), i = Ce(a, 2), s = i[0], l = i[1];
|
|
20437
|
-
|
|
20441
|
+
tr[s] = l;
|
|
20438
20442
|
});
|
|
20439
20443
|
var n = document.querySelector("style[".concat(Bp, "]"));
|
|
20440
20444
|
if (n) {
|
|
@@ -20445,16 +20449,16 @@ function J3() {
|
|
|
20445
20449
|
}
|
|
20446
20450
|
}
|
|
20447
20451
|
function Q3(e) {
|
|
20448
|
-
return J3(), !!
|
|
20452
|
+
return J3(), !!tr[e];
|
|
20449
20453
|
}
|
|
20450
20454
|
function Z3(e) {
|
|
20451
|
-
var t =
|
|
20455
|
+
var t = tr[e], n = null;
|
|
20452
20456
|
if (t && sn())
|
|
20453
20457
|
if (Ny)
|
|
20454
20458
|
n = Ey;
|
|
20455
20459
|
else {
|
|
20456
|
-
var r = document.querySelector("style[".concat(
|
|
20457
|
-
r ? n = r.innerHTML : delete
|
|
20460
|
+
var r = document.querySelector("style[".concat(Zn, '="').concat(tr[e], '"]'));
|
|
20461
|
+
r ? n = r.innerHTML : delete tr[e];
|
|
20458
20462
|
}
|
|
20459
20463
|
return [n, t];
|
|
20460
20464
|
}
|
|
@@ -20519,7 +20523,7 @@ var n4 = function e(t) {
|
|
|
20519
20523
|
injectHash: T,
|
|
20520
20524
|
parentSelectors: [].concat(Ln(i), [j])
|
|
20521
20525
|
}), P = Ce(A, 2), M = P[0], V = P[1];
|
|
20522
|
-
y =
|
|
20526
|
+
y = H(H({}, y), V), v += "".concat(j).concat(M);
|
|
20523
20527
|
} else {
|
|
20524
20528
|
let he = function(k, L) {
|
|
20525
20529
|
"{}".NODE_ENV !== "production" && (Oe(R) !== "object" || !(R != null && R[Ry])) && [Y3, X3].concat(Ln(h)).forEach(function(ce) {
|
|
@@ -20583,7 +20587,7 @@ function Zl(e, t) {
|
|
|
20583
20587
|
function(N, R) {
|
|
20584
20588
|
var T = Ce(N, 3), j = T[2];
|
|
20585
20589
|
(R || l) && zp && Ah(j, {
|
|
20586
|
-
mark:
|
|
20590
|
+
mark: Zn
|
|
20587
20591
|
});
|
|
20588
20592
|
},
|
|
20589
20593
|
// Effect: Inject style here
|
|
@@ -20593,7 +20597,7 @@ function Zl(e, t) {
|
|
|
20593
20597
|
var j = R[2], $ = R[3];
|
|
20594
20598
|
if (O && T !== Ey) {
|
|
20595
20599
|
var A = {
|
|
20596
|
-
mark:
|
|
20600
|
+
mark: Zn,
|
|
20597
20601
|
prepend: "queue",
|
|
20598
20602
|
attachTo: f
|
|
20599
20603
|
}, P = typeof i == "function" ? i() : i;
|
|
@@ -20601,7 +20605,7 @@ function Zl(e, t) {
|
|
|
20601
20605
|
nonce: P
|
|
20602
20606
|
});
|
|
20603
20607
|
var M = Uo(T, j, A);
|
|
20604
|
-
M[
|
|
20608
|
+
M[Rr] = y.instanceId, M.setAttribute(ql, m), "{}".NODE_ENV !== "production" && M.setAttribute(l3, w.join("|")), Object.keys($).forEach(function(V) {
|
|
20605
20609
|
Uo(Fp($[V]), "_effect-".concat(V), A);
|
|
20606
20610
|
});
|
|
20607
20611
|
}
|
|
@@ -20614,7 +20618,7 @@ function Zl(e, t) {
|
|
|
20614
20618
|
else {
|
|
20615
20619
|
var T;
|
|
20616
20620
|
R = /* @__PURE__ */ b("style", {
|
|
20617
|
-
...(T = {}, se(T, ql, S), se(T,
|
|
20621
|
+
...(T = {}, se(T, ql, S), se(T, Zn, E), T),
|
|
20618
20622
|
dangerouslySetInnerHTML: {
|
|
20619
20623
|
__html: C
|
|
20620
20624
|
}
|
|
@@ -20738,10 +20742,10 @@ function Py(e) {
|
|
|
20738
20742
|
var t = Array.isArray(e) ? e : [e];
|
|
20739
20743
|
return Gs.has(t) || Gs.set(t, new i4(t)), Gs.get(t);
|
|
20740
20744
|
}
|
|
20741
|
-
function
|
|
20745
|
+
function xr(e) {
|
|
20742
20746
|
return e.notSplit = !0, e;
|
|
20743
20747
|
}
|
|
20744
|
-
|
|
20748
|
+
xr(["borderTop", "borderBottom"]), xr(["borderTop"]), xr(["borderBottom"]), xr(["borderLeft", "borderRight"]), xr(["borderLeft"]), xr(["borderRight"]);
|
|
20745
20749
|
var s4 = /* @__PURE__ */ an({});
|
|
20746
20750
|
const l4 = s4;
|
|
20747
20751
|
function ec(e, t) {
|
|
@@ -20756,7 +20760,7 @@ function ky(e, t, n, r) {
|
|
|
20756
20760
|
if (!t.length)
|
|
20757
20761
|
return n;
|
|
20758
20762
|
var o = Sv(t), a = o[0], i = o.slice(1), s;
|
|
20759
|
-
return !e && typeof a == "number" ? s = [] : Array.isArray(e) ? s = Ln(e) : s =
|
|
20763
|
+
return !e && typeof a == "number" ? s = [] : Array.isArray(e) ? s = Ln(e) : s = H({}, e), r && n === void 0 && i.length === 1 ? delete s[a][i[0]] : s[a] = ky(s[a], i, n, r), s;
|
|
20760
20764
|
}
|
|
20761
20765
|
function Ks(e, t, n) {
|
|
20762
20766
|
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
@@ -20857,7 +20861,7 @@ const v4 = {
|
|
|
20857
20861
|
rangeWeekPlaceholder: ["Start week", "End week"]
|
|
20858
20862
|
}, g4),
|
|
20859
20863
|
timePickerLocale: Object.assign({}, My)
|
|
20860
|
-
}, Up = m4,
|
|
20864
|
+
}, Up = m4, St = "${label} is not a valid ${type}", y4 = {
|
|
20861
20865
|
locale: "en",
|
|
20862
20866
|
Pagination: h4,
|
|
20863
20867
|
DatePicker: Up,
|
|
@@ -20946,19 +20950,19 @@ const v4 = {
|
|
|
20946
20950
|
invalid: "${label} is an invalid date"
|
|
20947
20951
|
},
|
|
20948
20952
|
types: {
|
|
20949
|
-
string:
|
|
20950
|
-
method:
|
|
20951
|
-
array:
|
|
20952
|
-
object:
|
|
20953
|
-
number:
|
|
20954
|
-
date:
|
|
20955
|
-
boolean:
|
|
20956
|
-
integer:
|
|
20957
|
-
float:
|
|
20958
|
-
regexp:
|
|
20959
|
-
email:
|
|
20960
|
-
url:
|
|
20961
|
-
hex:
|
|
20953
|
+
string: St,
|
|
20954
|
+
method: St,
|
|
20955
|
+
array: St,
|
|
20956
|
+
object: St,
|
|
20957
|
+
number: St,
|
|
20958
|
+
date: St,
|
|
20959
|
+
boolean: St,
|
|
20960
|
+
integer: St,
|
|
20961
|
+
float: St,
|
|
20962
|
+
regexp: St,
|
|
20963
|
+
email: St,
|
|
20964
|
+
url: St,
|
|
20965
|
+
hex: St
|
|
20962
20966
|
},
|
|
20963
20967
|
string: {
|
|
20964
20968
|
len: "${label} must be ${len} characters",
|
|
@@ -21280,7 +21284,7 @@ function j4(e, t) {
|
|
|
21280
21284
|
colorInfoTextHover: v[8],
|
|
21281
21285
|
colorInfoText: v[9],
|
|
21282
21286
|
colorInfoTextActive: v[10],
|
|
21283
|
-
colorBgMask: new
|
|
21287
|
+
colorBgMask: new _t("#000").setAlpha(0.45).toRgbString(),
|
|
21284
21288
|
colorWhite: "#fff"
|
|
21285
21289
|
});
|
|
21286
21290
|
}
|
|
@@ -21310,7 +21314,7 @@ function D4(e) {
|
|
|
21310
21314
|
lineWidthBold: o + 1
|
|
21311
21315
|
}, A4(r));
|
|
21312
21316
|
}
|
|
21313
|
-
const mn = (e, t) => new
|
|
21317
|
+
const mn = (e, t) => new _t(e).setAlpha(t).toRgbString(), Ro = (e, t) => new _t(e).darken(t).toHexString(), $4 = (e) => {
|
|
21314
21318
|
const t = Yr(e);
|
|
21315
21319
|
return {
|
|
21316
21320
|
1: t[0],
|
|
@@ -21402,25 +21406,25 @@ function Xa(e, t) {
|
|
|
21402
21406
|
g: r,
|
|
21403
21407
|
b: o,
|
|
21404
21408
|
a
|
|
21405
|
-
} = new
|
|
21409
|
+
} = new _t(e).toRgb();
|
|
21406
21410
|
if (a < 1)
|
|
21407
21411
|
return e;
|
|
21408
21412
|
const {
|
|
21409
21413
|
r: i,
|
|
21410
21414
|
g: s,
|
|
21411
21415
|
b: l
|
|
21412
|
-
} = new
|
|
21416
|
+
} = new _t(t).toRgb();
|
|
21413
21417
|
for (let c = 0.01; c <= 1; c += 0.01) {
|
|
21414
21418
|
const u = Math.round((n - i * (1 - c)) / c), d = Math.round((r - s * (1 - c)) / c), f = Math.round((o - l * (1 - c)) / c);
|
|
21415
21419
|
if (Qs(u) && Qs(d) && Qs(f))
|
|
21416
|
-
return new
|
|
21420
|
+
return new _t({
|
|
21417
21421
|
r: u,
|
|
21418
21422
|
g: d,
|
|
21419
21423
|
b: f,
|
|
21420
21424
|
a: Math.round(c * 100) / 100
|
|
21421
21425
|
}).toRgbString();
|
|
21422
21426
|
}
|
|
21423
|
-
return new
|
|
21427
|
+
return new _t({
|
|
21424
21428
|
r: n,
|
|
21425
21429
|
g: r,
|
|
21426
21430
|
b: o,
|
|
@@ -21556,9 +21560,9 @@ function H4(e) {
|
|
|
21556
21560
|
screenXXLMin: u,
|
|
21557
21561
|
boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
|
|
21558
21562
|
boxShadowCard: `
|
|
21559
|
-
0 1px 2px -2px ${new
|
|
21560
|
-
0 3px 6px 0 ${new
|
|
21561
|
-
0 5px 12px 4px ${new
|
|
21563
|
+
0 1px 2px -2px ${new _t("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
21564
|
+
0 3px 6px 0 ${new _t("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
21565
|
+
0 5px 12px 4px ${new _t("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
21562
21566
|
`,
|
|
21563
21567
|
boxShadowDrawerRight: `
|
|
21564
21568
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
@@ -21805,16 +21809,16 @@ function t5(e, t) {
|
|
|
21805
21809
|
let l = i.clone();
|
|
21806
21810
|
return l = (s == null ? void 0 : s(l)) || l, l.toRgbString();
|
|
21807
21811
|
}, o = (i, s) => {
|
|
21808
|
-
const l = new
|
|
21812
|
+
const l = new _t(i), c = Yr(l.toRgbString());
|
|
21809
21813
|
n[`${s}-color`] = r(l), n[`${s}-color-disabled`] = c[1], n[`${s}-color-hover`] = c[4], n[`${s}-color-active`] = c[6], n[`${s}-color-outline`] = l.clone().setAlpha(0.2).toRgbString(), n[`${s}-color-deprecated-bg`] = c[0], n[`${s}-color-deprecated-border`] = c[2];
|
|
21810
21814
|
};
|
|
21811
21815
|
if (t.primaryColor) {
|
|
21812
21816
|
o(t.primaryColor, "primary");
|
|
21813
|
-
const i = new
|
|
21817
|
+
const i = new _t(t.primaryColor), s = Yr(i.toRgbString());
|
|
21814
21818
|
s.forEach((c, u) => {
|
|
21815
21819
|
n[`primary-${u + 1}`] = c;
|
|
21816
21820
|
}), n["primary-color-deprecated-l-35"] = r(i, (c) => c.lighten(35)), n["primary-color-deprecated-l-20"] = r(i, (c) => c.lighten(20)), n["primary-color-deprecated-t-20"] = r(i, (c) => c.tint(20)), n["primary-color-deprecated-t-50"] = r(i, (c) => c.tint(50)), n["primary-color-deprecated-f-12"] = r(i, (c) => c.setAlpha(c.getAlpha() * 0.12));
|
|
21817
|
-
const l = new
|
|
21821
|
+
const l = new _t(s[0]);
|
|
21818
21822
|
n["primary-color-active-deprecated-f-30"] = r(l, (c) => c.setAlpha(c.getAlpha() * 0.3)), n["primary-color-active-deprecated-d-02"] = r(l, (c) => c.darken(2));
|
|
21819
21823
|
}
|
|
21820
21824
|
return t.successColor && o(t.successColor, "success"), t.warningColor && o(t.warningColor, "warning"), t.errorColor && o(t.errorColor, "error"), t.infoColor && o(t.infoColor, "info"), `
|
|
@@ -21990,14 +21994,14 @@ function p5() {
|
|
|
21990
21994
|
case d:
|
|
21991
21995
|
return Ie;
|
|
21992
21996
|
default:
|
|
21993
|
-
var
|
|
21994
|
-
switch (
|
|
21997
|
+
var Ae = Ie && Ie.$$typeof;
|
|
21998
|
+
switch (Ae) {
|
|
21995
21999
|
case s:
|
|
21996
22000
|
case u:
|
|
21997
22001
|
case h:
|
|
21998
22002
|
case p:
|
|
21999
22003
|
case i:
|
|
22000
|
-
return
|
|
22004
|
+
return Ae;
|
|
22001
22005
|
default:
|
|
22002
22006
|
return Je;
|
|
22003
22007
|
}
|
|
@@ -22038,16 +22042,16 @@ function p5() {
|
|
|
22038
22042
|
function $e(z) {
|
|
22039
22043
|
return x(z) === n;
|
|
22040
22044
|
}
|
|
22041
|
-
function
|
|
22045
|
+
function He(z) {
|
|
22042
22046
|
return x(z) === a;
|
|
22043
22047
|
}
|
|
22044
22048
|
function ae(z) {
|
|
22045
22049
|
return x(z) === o;
|
|
22046
22050
|
}
|
|
22047
|
-
function
|
|
22051
|
+
function Me(z) {
|
|
22048
22052
|
return x(z) === d;
|
|
22049
22053
|
}
|
|
22050
|
-
me.AsyncMode = g, me.ConcurrentMode = C, me.ContextConsumer = S, me.ContextProvider = E, me.Element = N, me.ForwardRef = R, me.Fragment = T, me.Lazy = j, me.Memo = $, me.Portal = A, me.Profiler = P, me.StrictMode = M, me.Suspense = V, me.isAsyncMode = ne, me.isConcurrentMode = he, me.isContextConsumer = k, me.isContextProvider = L, me.isElement = Y, me.isForwardRef = ee, me.isFragment = ce, me.isLazy = de, me.isMemo = et, me.isPortal = $e, me.isProfiler =
|
|
22054
|
+
me.AsyncMode = g, me.ConcurrentMode = C, me.ContextConsumer = S, me.ContextProvider = E, me.Element = N, me.ForwardRef = R, me.Fragment = T, me.Lazy = j, me.Memo = $, me.Portal = A, me.Profiler = P, me.StrictMode = M, me.Suspense = V, me.isAsyncMode = ne, me.isConcurrentMode = he, me.isContextConsumer = k, me.isContextProvider = L, me.isElement = Y, me.isForwardRef = ee, me.isFragment = ce, me.isLazy = de, me.isMemo = et, me.isPortal = $e, me.isProfiler = He, me.isStrictMode = ae, me.isSuspense = Me, me.isValidElementType = O, me.typeOf = x;
|
|
22051
22055
|
}()), me;
|
|
22052
22056
|
}
|
|
22053
22057
|
"{}".NODE_ENV === "production" ? oc.exports = f5() : oc.exports = p5();
|
|
@@ -22061,7 +22065,7 @@ function v5(e) {
|
|
|
22061
22065
|
}
|
|
22062
22066
|
var m5 = ["children"], Wy = /* @__PURE__ */ W.createContext({});
|
|
22063
22067
|
function y5(e) {
|
|
22064
|
-
var t = e.children, n =
|
|
22068
|
+
var t = e.children, n = Mr(e, m5);
|
|
22065
22069
|
return /* @__PURE__ */ b(Wy.Provider, {
|
|
22066
22070
|
value: n,
|
|
22067
22071
|
children: t
|
|
@@ -22103,7 +22107,7 @@ var w5 = /* @__PURE__ */ function(e) {
|
|
|
22103
22107
|
return this.props.children;
|
|
22104
22108
|
}
|
|
22105
22109
|
}]), n;
|
|
22106
|
-
}(W.Component), Xn = "none", Ja = "appear", Qa = "enter", Za = "leave", Zp = "none", Ft = "prepare",
|
|
22110
|
+
}(W.Component), Xn = "none", Ja = "appear", Qa = "enter", Za = "leave", Zp = "none", Ft = "prepare", Tr = "start", Pr = "active", Au = "end", Ky = "prepared";
|
|
22107
22111
|
function eh(e, t) {
|
|
22108
22112
|
var n = {};
|
|
22109
22113
|
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit".concat(e)] = "webkit".concat(t), n["Moz".concat(e)] = "moz".concat(t), n["ms".concat(e)] = "MS".concat(t), n["O".concat(e)] = "o".concat(t.toLowerCase()), n;
|
|
@@ -22220,9 +22224,9 @@ const _5 = function() {
|
|
|
22220
22224
|
};
|
|
22221
22225
|
}, []), [n, t];
|
|
22222
22226
|
};
|
|
22223
|
-
var E5 = [Ft,
|
|
22227
|
+
var E5 = [Ft, Tr, Pr, Au], N5 = [Ft, Ky], rb = !1, R5 = !0;
|
|
22224
22228
|
function ob(e) {
|
|
22225
|
-
return e ===
|
|
22229
|
+
return e === Pr || e === Au;
|
|
22226
22230
|
}
|
|
22227
22231
|
const T5 = function(e, t, n) {
|
|
22228
22232
|
var r = si(Zp), o = Ce(r, 2), a = o[0], i = o[1], s = _5(), l = Ce(s, 2), c = l[0], u = l[1];
|
|
@@ -22262,36 +22266,36 @@ function P5(e, t, n, r) {
|
|
|
22262
22266
|
P === Ja && ke ? qe = g == null ? void 0 : g(be, Pe) : P === Qa && ke ? qe = C == null ? void 0 : C(be, Pe) : P === Za && ke && (qe = S == null ? void 0 : S(be, Pe)), P !== Xn && ke && qe !== !1 && ce();
|
|
22263
22267
|
}
|
|
22264
22268
|
}
|
|
22265
|
-
var et = O5(de), $e = Ce(et, 1),
|
|
22269
|
+
var et = O5(de), $e = Ce(et, 1), He = $e[0], ae = function(be) {
|
|
22266
22270
|
var ke, qe, Xt;
|
|
22267
22271
|
switch (be) {
|
|
22268
22272
|
case Ja:
|
|
22269
|
-
return ke = {}, se(ke, Ft, f), se(ke,
|
|
22273
|
+
return ke = {}, se(ke, Ft, f), se(ke, Tr, v), se(ke, Pr, w), ke;
|
|
22270
22274
|
case Qa:
|
|
22271
|
-
return qe = {}, se(qe, Ft, p), se(qe,
|
|
22275
|
+
return qe = {}, se(qe, Ft, p), se(qe, Tr, y), se(qe, Pr, O), qe;
|
|
22272
22276
|
case Za:
|
|
22273
|
-
return Xt = {}, se(Xt, Ft, h), se(Xt,
|
|
22277
|
+
return Xt = {}, se(Xt, Ft, h), se(Xt, Tr, m), se(Xt, Pr, x), Xt;
|
|
22274
22278
|
default:
|
|
22275
22279
|
return {};
|
|
22276
22280
|
}
|
|
22277
|
-
},
|
|
22281
|
+
}, Me = W.useMemo(function() {
|
|
22278
22282
|
return ae(P);
|
|
22279
22283
|
}, [P]), z = T5(P, !e, function(Pe) {
|
|
22280
22284
|
if (Pe === Ft) {
|
|
22281
|
-
var be =
|
|
22285
|
+
var be = Me[Ft];
|
|
22282
22286
|
return be ? be(Y()) : rb;
|
|
22283
22287
|
}
|
|
22284
|
-
if (
|
|
22288
|
+
if (Ae in Me) {
|
|
22285
22289
|
var ke;
|
|
22286
|
-
he(((ke = Ae
|
|
22290
|
+
he(((ke = Me[Ae]) === null || ke === void 0 ? void 0 : ke.call(Me, Y(), null)) || null);
|
|
22287
22291
|
}
|
|
22288
|
-
return
|
|
22292
|
+
return Ae === Pr && (He(Y()), u > 0 && (clearTimeout(L.current), L.current = setTimeout(function() {
|
|
22289
22293
|
de({
|
|
22290
22294
|
deadline: !0
|
|
22291
22295
|
});
|
|
22292
|
-
}, u))),
|
|
22293
|
-
}), Je = Ce(z, 2), Ie = Je[0],
|
|
22294
|
-
ee.current =
|
|
22296
|
+
}, u))), Ae === Ky && ce(), R5;
|
|
22297
|
+
}), Je = Ce(z, 2), Ie = Je[0], Ae = Je[1], xt = ob(Ae);
|
|
22298
|
+
ee.current = xt, Zy(function() {
|
|
22295
22299
|
j(t);
|
|
22296
22300
|
var Pe = k.current;
|
|
22297
22301
|
k.current = !0;
|
|
@@ -22314,9 +22318,9 @@ function P5(e, t, n, r) {
|
|
|
22314
22318
|
T && (fn.current = !0), T !== void 0 && P === Xn && ((fn.current || T) && (E == null || E(T)), fn.current = !0);
|
|
22315
22319
|
}, [T, P]);
|
|
22316
22320
|
var pn = ne;
|
|
22317
|
-
return
|
|
22321
|
+
return Me[Ft] && Ae === Tr && (pn = H({
|
|
22318
22322
|
transition: "none"
|
|
22319
|
-
}, pn)), [P,
|
|
22323
|
+
}, pn)), [P, Ae, pn, T ?? t];
|
|
22320
22324
|
}
|
|
22321
22325
|
function k5(e) {
|
|
22322
22326
|
var t = e;
|
|
@@ -22337,24 +22341,24 @@ function k5(e) {
|
|
|
22337
22341
|
R && (T.current = !0);
|
|
22338
22342
|
var j = W.useCallback(function(he) {
|
|
22339
22343
|
w.current = he, g5(a, he);
|
|
22340
|
-
}, [a]), $, A =
|
|
22344
|
+
}, [a]), $, A = H(H({}, h), {}, {
|
|
22341
22345
|
visible: s
|
|
22342
22346
|
});
|
|
22343
22347
|
if (!d)
|
|
22344
22348
|
$ = null;
|
|
22345
22349
|
else if (S === Xn)
|
|
22346
|
-
R ? $ = d(
|
|
22350
|
+
R ? $ = d(H({}, A), j) : !c && T.current && p ? $ = d(H(H({}, A), {}, {
|
|
22347
22351
|
className: p
|
|
22348
|
-
}), j) : u || !c && !p ? $ = d(
|
|
22352
|
+
}), j) : u || !c && !p ? $ = d(H(H({}, A), {}, {
|
|
22349
22353
|
style: {
|
|
22350
22354
|
display: "none"
|
|
22351
22355
|
}
|
|
22352
22356
|
}), j) : $ = null;
|
|
22353
22357
|
else {
|
|
22354
22358
|
var P, M;
|
|
22355
|
-
E === Ft ? M = "prepare" : ob(E) ? M = "active" : E ===
|
|
22359
|
+
E === Ft ? M = "prepare" : ob(E) ? M = "active" : E === Tr && (M = "start");
|
|
22356
22360
|
var V = rh(f, "".concat(S, "-").concat(M));
|
|
22357
|
-
$ = d(
|
|
22361
|
+
$ = d(H(H({}, A), {}, {
|
|
22358
22362
|
className: vc(rh(f, S), (P = {}, se(P, V, V && M), se(P, f, typeof f == "string"), P)),
|
|
22359
22363
|
style: N
|
|
22360
22364
|
}), j);
|
|
@@ -22378,7 +22382,7 @@ function M5(e) {
|
|
|
22378
22382
|
var t;
|
|
22379
22383
|
return e && Oe(e) === "object" && "key" in e ? t = e : t = {
|
|
22380
22384
|
key: e
|
|
22381
|
-
},
|
|
22385
|
+
}, H(H({}, t), {}, {
|
|
22382
22386
|
key: String(t.key)
|
|
22383
22387
|
});
|
|
22384
22388
|
}
|
|
@@ -22393,20 +22397,20 @@ function A5() {
|
|
|
22393
22397
|
var f = i[d];
|
|
22394
22398
|
if (f.key === c.key) {
|
|
22395
22399
|
r < d && (n = n.concat(i.slice(r, d).map(function(p) {
|
|
22396
|
-
return
|
|
22400
|
+
return H(H({}, p), {}, {
|
|
22397
22401
|
status: ic
|
|
22398
22402
|
});
|
|
22399
|
-
})), r = d), n.push(
|
|
22403
|
+
})), r = d), n.push(H(H({}, f), {}, {
|
|
22400
22404
|
status: sc
|
|
22401
22405
|
})), r += 1, u = !0;
|
|
22402
22406
|
break;
|
|
22403
22407
|
}
|
|
22404
22408
|
}
|
|
22405
|
-
u || n.push(
|
|
22409
|
+
u || n.push(H(H({}, c), {}, {
|
|
22406
22410
|
status: lc
|
|
22407
22411
|
}));
|
|
22408
22412
|
}), r < o && (n = n.concat(i.slice(r).map(function(c) {
|
|
22409
|
-
return
|
|
22413
|
+
return H(H({}, c), {}, {
|
|
22410
22414
|
status: ic
|
|
22411
22415
|
});
|
|
22412
22416
|
})));
|
|
@@ -22441,7 +22445,7 @@ function L5(e) {
|
|
|
22441
22445
|
keyEntities: []
|
|
22442
22446
|
}), se(tn(i), "removeKey", function(u) {
|
|
22443
22447
|
var d = i.state.keyEntities, f = d.map(function(p) {
|
|
22444
|
-
return p.key !== u ? p :
|
|
22448
|
+
return p.key !== u ? p : H(H({}, p), {}, {
|
|
22445
22449
|
status: Zs
|
|
22446
22450
|
});
|
|
22447
22451
|
});
|
|
@@ -22456,13 +22460,13 @@ function L5(e) {
|
|
|
22456
22460
|
return lt(a, [{
|
|
22457
22461
|
key: "render",
|
|
22458
22462
|
value: function() {
|
|
22459
|
-
var s = this, l = this.state.keyEntities, c = this.props, u = c.component, d = c.children, f = c.onVisibleChanged, p = c.onAllRemoved, h =
|
|
22463
|
+
var s = this, l = this.state.keyEntities, c = this.props, u = c.component, d = c.children, f = c.onVisibleChanged, p = c.onAllRemoved, h = Mr(c, D5), v = u || W.Fragment, y = {};
|
|
22460
22464
|
return I5.forEach(function(m) {
|
|
22461
22465
|
y[m] = h[m], delete h[m];
|
|
22462
22466
|
}), delete h.keys, /* @__PURE__ */ b(v, {
|
|
22463
22467
|
...h,
|
|
22464
22468
|
children: l.map(function(m) {
|
|
22465
|
-
var w = m.status, O =
|
|
22469
|
+
var w = m.status, O = Mr(m, $5), x = w === ic || w === sc;
|
|
22466
22470
|
return /* @__PURE__ */ li(t, {
|
|
22467
22471
|
...y,
|
|
22468
22472
|
key: O.key,
|
|
@@ -22832,7 +22836,7 @@ const eB = (e) => {
|
|
|
22832
22836
|
})
|
|
22833
22837
|
})
|
|
22834
22838
|
);
|
|
22835
|
-
}, tB = eB, nB = "_cssFieldBox_4b8an_2", rB = "_inputAuto_4b8an_20", oB = "_active_4b8an_23", aB = "_cssBox_4b8an_27",
|
|
22839
|
+
}, tB = eB, nB = "_cssFieldBox_4b8an_2", rB = "_inputAuto_4b8an_20", oB = "_active_4b8an_23", aB = "_cssBox_4b8an_27", _r = {
|
|
22836
22840
|
cssFieldBox: nB,
|
|
22837
22841
|
inputAuto: rB,
|
|
22838
22842
|
active: oB,
|
|
@@ -22901,7 +22905,7 @@ const eB = (e) => {
|
|
|
22901
22905
|
}), (A = T.current) == null || A.focus();
|
|
22902
22906
|
}
|
|
22903
22907
|
}), []), /* @__PURE__ */ re("div", {
|
|
22904
|
-
className:
|
|
22908
|
+
className: _r.cssFieldBox,
|
|
22905
22909
|
children: [/* @__PURE__ */ b(ci, {
|
|
22906
22910
|
ref: T,
|
|
22907
22911
|
bordered: !1,
|
|
@@ -22919,7 +22923,7 @@ const eB = (e) => {
|
|
|
22919
22923
|
style: {
|
|
22920
22924
|
width: `${E}px`
|
|
22921
22925
|
},
|
|
22922
|
-
className:
|
|
22926
|
+
className: vt([l && _r.inputAuto, l && j.key && _r.active]),
|
|
22923
22927
|
onFocus: () => {
|
|
22924
22928
|
$({
|
|
22925
22929
|
key: !0,
|
|
@@ -22968,7 +22972,7 @@ const eB = (e) => {
|
|
|
22968
22972
|
value: !1
|
|
22969
22973
|
}), S();
|
|
22970
22974
|
},
|
|
22971
|
-
className:
|
|
22975
|
+
className: vt([_r.inputAuto, j.value && _r.active]),
|
|
22972
22976
|
placeholder: "value",
|
|
22973
22977
|
onSearch: O,
|
|
22974
22978
|
options: p,
|
|
@@ -23025,7 +23029,7 @@ const eB = (e) => {
|
|
|
23025
23029
|
}
|
|
23026
23030
|
},
|
|
23027
23031
|
children: /* @__PURE__ */ re("div", {
|
|
23028
|
-
className:
|
|
23032
|
+
className: _r.cssBox,
|
|
23029
23033
|
children: [r.map((c, u) => /* @__PURE__ */ b("div", {
|
|
23030
23034
|
children: /* @__PURE__ */ b(ah, {
|
|
23031
23035
|
mode: "edit",
|
|
@@ -23093,7 +23097,7 @@ const eB = (e) => {
|
|
|
23093
23097
|
return Object.keys(y).forEach((w) => {
|
|
23094
23098
|
m[w] = ul(y[w] || {}).normalProperty;
|
|
23095
23099
|
}), m;
|
|
23096
|
-
}, [t, u]), p =
|
|
23100
|
+
}, [t, u]), p = Fe(() => {
|
|
23097
23101
|
Object.keys(o.current).forEach((y) => {
|
|
23098
23102
|
var O;
|
|
23099
23103
|
const m = (O = o.current) == null ? void 0 : O[y], w = f[y] || [];
|
|
@@ -23103,12 +23107,12 @@ const eB = (e) => {
|
|
|
23103
23107
|
h.current = p, e.handler && (e.handler.current = {
|
|
23104
23108
|
setValue: async (y) => {
|
|
23105
23109
|
var m;
|
|
23106
|
-
d(y), await
|
|
23110
|
+
d(y), await ar(), (m = h.current) == null || m.call(h);
|
|
23107
23111
|
}
|
|
23108
23112
|
}), G(() => {
|
|
23109
23113
|
p();
|
|
23110
23114
|
}, [t]);
|
|
23111
|
-
const v =
|
|
23115
|
+
const v = Fe((y, m) => {
|
|
23112
23116
|
var O;
|
|
23113
23117
|
const w = {
|
|
23114
23118
|
...u,
|
|
@@ -23511,7 +23515,7 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23511
23515
|
Object.keys(ch).forEach((a) => {
|
|
23512
23516
|
t.addResourceBundle(a, tl, ch[a], !0, !0);
|
|
23513
23517
|
});
|
|
23514
|
-
const n =
|
|
23518
|
+
const n = Hr(tl)(bB), r = Hr(tl)(({
|
|
23515
23519
|
t: a
|
|
23516
23520
|
}) => /* @__PURE__ */ b(ot, {
|
|
23517
23521
|
children: a("pluginName")
|
|
@@ -23556,7 +23560,7 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23556
23560
|
if (!i)
|
|
23557
23561
|
return;
|
|
23558
23562
|
const s = JSON.parse(i);
|
|
23559
|
-
e.pageModel.updatePage(s), await
|
|
23563
|
+
e.pageModel.updatePage(s), await ar();
|
|
23560
23564
|
const l = n.engine.getActiveNode(), c = await n.pluginManager.get("Designer"), u = (l == null ? void 0 : l.id) || "";
|
|
23561
23565
|
c == null || c.ctx.emitter.on("ready", () => {
|
|
23562
23566
|
c.export.selectNode(u);
|
|
@@ -23594,7 +23598,7 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23594
23598
|
const o = e.pageModel.export();
|
|
23595
23599
|
r = o, n.historyRecords.push(o);
|
|
23596
23600
|
const a = async (s) => {
|
|
23597
|
-
t && (t.pageModel.reloadPage(s), await
|
|
23601
|
+
t && (t.pageModel.reloadPage(s), await ar());
|
|
23598
23602
|
}, i = {
|
|
23599
23603
|
addStep: () => {
|
|
23600
23604
|
const {
|
|
@@ -23667,7 +23671,7 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23667
23671
|
}
|
|
23668
23672
|
}
|
|
23669
23673
|
};
|
|
23670
|
-
}, SB = [pm, GD, um, sb, ib, lb],
|
|
23674
|
+
}, SB = [pm, GD, um, sb, ib, lb], AB = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23671
23675
|
__proto__: null,
|
|
23672
23676
|
ComponentLibPlugin: um,
|
|
23673
23677
|
DEFAULT_PLUGIN_LIST: SB,
|
|
@@ -23714,12 +23718,12 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23714
23718
|
initialValue: []
|
|
23715
23719
|
}
|
|
23716
23720
|
]
|
|
23717
|
-
},
|
|
23721
|
+
}, Sr = {
|
|
23718
23722
|
name: "width",
|
|
23719
23723
|
title: "宽度",
|
|
23720
23724
|
valueType: "string",
|
|
23721
23725
|
setters: ["StringSetter", "ExpressionSetter"]
|
|
23722
|
-
},
|
|
23726
|
+
}, Cr = {
|
|
23723
23727
|
name: "height",
|
|
23724
23728
|
title: "高度",
|
|
23725
23729
|
valueType: "string",
|
|
@@ -23734,8 +23738,8 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23734
23738
|
title: "块",
|
|
23735
23739
|
componentName: "CBlock",
|
|
23736
23740
|
props: [
|
|
23737
|
-
|
|
23738
|
-
|
|
23741
|
+
Sr,
|
|
23742
|
+
Cr,
|
|
23739
23743
|
{
|
|
23740
23744
|
name: "children",
|
|
23741
23745
|
title: "文本",
|
|
@@ -23764,8 +23768,8 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23764
23768
|
componentName: "CContainer",
|
|
23765
23769
|
isContainer: !0,
|
|
23766
23770
|
props: [
|
|
23767
|
-
|
|
23768
|
-
|
|
23771
|
+
Sr,
|
|
23772
|
+
Cr,
|
|
23769
23773
|
{
|
|
23770
23774
|
name: "afterMount",
|
|
23771
23775
|
title: "渲染之后",
|
|
@@ -23805,8 +23809,8 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23805
23809
|
valueType: "string",
|
|
23806
23810
|
setters: ["StringSetter", "ExpressionSetter"]
|
|
23807
23811
|
},
|
|
23808
|
-
|
|
23809
|
-
|
|
23812
|
+
Sr,
|
|
23813
|
+
Cr,
|
|
23810
23814
|
bn
|
|
23811
23815
|
],
|
|
23812
23816
|
groupName: "原子组件",
|
|
@@ -23846,8 +23850,8 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23846
23850
|
valueType: "string",
|
|
23847
23851
|
setters: ["BooleanSetter", "ExpressionSetter"]
|
|
23848
23852
|
},
|
|
23849
|
-
|
|
23850
|
-
|
|
23853
|
+
Sr,
|
|
23854
|
+
Cr,
|
|
23851
23855
|
bn
|
|
23852
23856
|
],
|
|
23853
23857
|
fixedProps: {
|
|
@@ -23892,8 +23896,8 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23892
23896
|
valueType: "string",
|
|
23893
23897
|
setters: ["BooleanSetter", "ExpressionSetter"]
|
|
23894
23898
|
},
|
|
23895
|
-
|
|
23896
|
-
|
|
23899
|
+
Sr,
|
|
23900
|
+
Cr,
|
|
23897
23901
|
bn
|
|
23898
23902
|
],
|
|
23899
23903
|
snippets: [
|
|
@@ -23938,7 +23942,7 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23938
23942
|
{
|
|
23939
23943
|
title: "Canvas",
|
|
23940
23944
|
componentName: "CCanvas",
|
|
23941
|
-
props: [
|
|
23945
|
+
props: [Sr, Cr, bn],
|
|
23942
23946
|
groupName: "原子组件",
|
|
23943
23947
|
snippets: [
|
|
23944
23948
|
{
|
|
@@ -23991,7 +23995,7 @@ const hB = "RightPanel", ib = (e) => {
|
|
|
23991
23995
|
}
|
|
23992
23996
|
]
|
|
23993
23997
|
}
|
|
23994
|
-
],
|
|
23998
|
+
], DB = [...OB, ...CB];
|
|
23995
23999
|
class _B extends Q.Component {
|
|
23996
24000
|
constructor(n) {
|
|
23997
24001
|
super(n);
|
|
@@ -24069,7 +24073,7 @@ class _B extends Q.Component {
|
|
|
24069
24073
|
}
|
|
24070
24074
|
render() {
|
|
24071
24075
|
return /* @__PURE__ */ b("div", {
|
|
24072
|
-
className:
|
|
24076
|
+
className: vt([mT.engineContainer, this.props.className]),
|
|
24073
24077
|
style: this.props.style,
|
|
24074
24078
|
children: /* @__PURE__ */ b(gT, {
|
|
24075
24079
|
ref: this.workbenchRef,
|
|
@@ -24078,18 +24082,18 @@ class _B extends Q.Component {
|
|
|
24078
24082
|
});
|
|
24079
24083
|
}
|
|
24080
24084
|
}
|
|
24081
|
-
I(_B, "version", "0.0.
|
|
24085
|
+
I(_B, "version", "0.0.22");
|
|
24082
24086
|
export {
|
|
24083
24087
|
_B as Engine,
|
|
24084
|
-
|
|
24088
|
+
DB as InnerComponentMeta,
|
|
24085
24089
|
Jt as LOGGER,
|
|
24086
24090
|
dT as beforeInitRender,
|
|
24087
24091
|
ul as formatCSSProperty,
|
|
24088
24092
|
k1 as formatCssToNodeVal,
|
|
24089
24093
|
j1 as formatNodeValToEditor,
|
|
24090
24094
|
fT as getDefaultRender,
|
|
24091
|
-
|
|
24095
|
+
AB as plugins,
|
|
24092
24096
|
rg as styleArr2Obj,
|
|
24093
|
-
|
|
24097
|
+
ar as waitReactUpdate
|
|
24094
24098
|
};
|
|
24095
24099
|
//# sourceMappingURL=index.mjs.map
|