@babsey/code-graph 0.6.0 → 0.6.2
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/code-graph.js +363 -363
- package/dist/code-graph.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/code-graph.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createElementBlock as w, openBlock as _, createElementVNode as p, createStaticVNode as Gt, defineComponent as de, toRef as Sn, ref as re, createVNode as q, unref as U, mergeModels as ss, useModel as
|
|
2
|
-
import { BaklavaEditor as fa, Components as fn, useViewModel as wt, useGraph as Cn, useTemporaryConnection as pa, useTransform as ma, useNodeCategories as _a, displayInSidebar as
|
|
3
|
-
import { GRAPH_NODE_TYPE_PREFIX as
|
|
1
|
+
import { createElementBlock as w, openBlock as _, createElementVNode as p, createStaticVNode as Gt, defineComponent as de, toRef as Sn, ref as re, createVNode as q, unref as U, mergeModels as ss, useModel as oa, resolveComponent as _s, createCommentVNode as K, onMounted as xn, onBeforeUnmount as vs, watch as ys, createBlock as se, withCtx as Ie, normalizeProps as ia, guardReactiveProps as la, renderSlot as ke, mergeProps as ua, toDisplayString as ee, computed as z, onUpdated as gs, normalizeStyle as On, normalizeClass as Ve, withModifiers as nt, withDirectives as Vt, Fragment as oe, createTextVNode as bs, withKeys as hn, vModelText as jt, renderList as qe, nextTick as ws, resolveDynamicComponent as rs, inject as da, Transition as ca, reactive as Le, markRaw as ce, shallowReadonly as ha } from "vue";
|
|
2
|
+
import { BaklavaEditor as fa, Components as fn, useViewModel as wt, useGraph as Cn, useTemporaryConnection as pa, useTransform as ma, useNodeCategories as _a, displayInSidebar as ks, CheckboxInterfaceComponent as va, IntegerInterfaceComponent as ya, TextInputInterfaceComponent as Ms, NumberInterfaceComponent as ga, SelectInterfaceComponent as ba, SliderInterfaceComponent as wa, TextareaInputInterfaceComponent as ka, Commands as We, DEFAULT_TOOLBAR_COMMANDS as Ma, TextInputInterface as Ss, DEFAULT_SETTINGS as Sa, useCommandHandler as xa, useHistory as Oa, useClipboard as Ca, registerDeleteNodesCommand as Ta, registerSaveSubgraphCommand as Na, registerSwitchToMainGraphCommand as Da, registerSidebarCommands as Ia, registerZoomToFitCommands as Ya, setViewNodeProperties as Ea } from "@baklavajs/renderer-vue";
|
|
3
|
+
import { GRAPH_NODE_TYPE_PREFIX as Ra, AbstractNode as Pa, NodeInterface as Me, Graph as La, getGraphNodeTypeString as xs, GraphTemplate as Aa, GRAPH_INPUT_NODE_TYPE as Ua, GRAPH_OUTPUT_NODE_TYPE as $a, Editor as Wa } from "@baklavajs/core";
|
|
4
4
|
import { usePointer as Ha } from "@vueuse/core";
|
|
5
5
|
import lt from "mustache";
|
|
6
6
|
import { v4 as Xe } from "uuid";
|
|
7
7
|
import { NodeInterfaceType as Je, BaklavaInterfaceTypes as Fa, setType as te } from "@baklavajs/interface-types";
|
|
8
|
-
import { allowMultipleConnections as it, BaseEngine as Ga, sortTopologically as Va, applyResult as
|
|
8
|
+
import { allowMultipleConnections as it, BaseEngine as Ga, sortTopologically as Va, applyResult as Os } from "@baklavajs/engine";
|
|
9
9
|
import ja from "toposort";
|
|
10
10
|
import { SequentialHook as as } from "@baklavajs/events";
|
|
11
11
|
const Z = (e, t) => {
|
|
@@ -35,7 +35,7 @@ function Za(e, t) {
|
|
|
35
35
|
p("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
|
36
36
|
])]);
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const Cs = /* @__PURE__ */ Z(za, [["render", Za]]), qa = {}, Xa = {
|
|
39
39
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40
40
|
width: "24",
|
|
41
41
|
height: "24",
|
|
@@ -57,7 +57,7 @@ function Ja(e, t) {
|
|
|
57
57
|
p("path", { d: "M4 8m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, null, -1)
|
|
58
58
|
])]);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const Ts = /* @__PURE__ */ Z(qa, [["render", Ja]]), Ka = {}, Qa = {
|
|
61
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
62
|
width: "24",
|
|
63
63
|
height: "24",
|
|
@@ -80,7 +80,7 @@ function eo(e, t) {
|
|
|
80
80
|
p("path", { d: "M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1" }, null, -1)
|
|
81
81
|
])]);
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const Ns = /* @__PURE__ */ Z(Ka, [["render", eo]]), to = {}, no = {
|
|
84
84
|
xmlns: "http://www.w3.org/2000/svg",
|
|
85
85
|
width: "24",
|
|
86
86
|
height: "24",
|
|
@@ -104,7 +104,7 @@ function so(e, t) {
|
|
|
104
104
|
p("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
|
|
105
105
|
])]);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const Ds = /* @__PURE__ */ Z(to, [["render", so]]), ro = {}, ao = {
|
|
108
108
|
xmlns: "http://www.w3.org/2000/svg",
|
|
109
109
|
width: "24",
|
|
110
110
|
height: "24",
|
|
@@ -128,7 +128,7 @@ function oo(e, t) {
|
|
|
128
128
|
p("path", { d: "M12 4l0 12" }, null, -1)
|
|
129
129
|
])]);
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const Is = /* @__PURE__ */ Z(ro, [["render", oo]]), io = {}, lo = {
|
|
132
132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
133
133
|
width: "24",
|
|
134
134
|
height: "24",
|
|
@@ -146,7 +146,7 @@ function uo(e, t) {
|
|
|
146
146
|
p("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-2.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
|
|
147
147
|
])]);
|
|
148
148
|
}
|
|
149
|
-
const
|
|
149
|
+
const Ys = /* @__PURE__ */ Z(io, [["render", uo]]), co = {}, ho = {
|
|
150
150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
151
151
|
width: "24",
|
|
152
152
|
height: "24",
|
|
@@ -164,7 +164,7 @@ function fo(e, t) {
|
|
|
164
164
|
p("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-4.387 4.21l.094 .083l2 2a1 1 0 0 1 .083 1.32l-.083 .094l-2 2a1 1 0 0 1 -1.497 -1.32l.083 -.094l1.292 -1.293l-1.292 -1.293a1 1 0 0 1 -.083 -1.32l.083 -.094a1 1 0 0 1 1.32 -.083z" }, null, -1)
|
|
165
165
|
])]);
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const Es = /* @__PURE__ */ Z(co, [["render", fo]]), po = {}, mo = {
|
|
168
168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
169
169
|
width: "24",
|
|
170
170
|
height: "24",
|
|
@@ -182,7 +182,7 @@ function _o(e, t) {
|
|
|
182
182
|
p("path", { d: "M6 21a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3zm8 -16h-8a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h8z" }, null, -1)
|
|
183
183
|
])]);
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const Rs = /* @__PURE__ */ Z(po, [["render", _o]]), vo = {}, yo = {
|
|
186
186
|
xmlns: "http://www.w3.org/2000/svg",
|
|
187
187
|
width: "24",
|
|
188
188
|
height: "24",
|
|
@@ -218,7 +218,7 @@ function ko(e, t) {
|
|
|
218
218
|
p("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-3.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
|
|
219
219
|
])]);
|
|
220
220
|
}
|
|
221
|
-
const
|
|
221
|
+
const Ls = /* @__PURE__ */ Z(bo, [["render", ko]]), Mo = {}, So = {
|
|
222
222
|
xmlns: "http://www.w3.org/2000/svg",
|
|
223
223
|
width: "24",
|
|
224
224
|
height: "24",
|
|
@@ -280,7 +280,7 @@ function Yo(e, t) {
|
|
|
280
280
|
p("path", { d: "M5 12l14 0" }, null, -1)
|
|
281
281
|
])]);
|
|
282
282
|
}
|
|
283
|
-
const
|
|
283
|
+
const As = /* @__PURE__ */ Z(Do, [["render", Yo]]), Eo = {}, Ro = {
|
|
284
284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
285
285
|
width: "24",
|
|
286
286
|
height: "24",
|
|
@@ -292,8 +292,8 @@ const Ls = /* @__PURE__ */ Z(Do, [["render", Yo]]), Eo = {}, Po = {
|
|
|
292
292
|
"stroke-linejoin": "round",
|
|
293
293
|
class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-restore"
|
|
294
294
|
};
|
|
295
|
-
function
|
|
296
|
-
return _(), w("svg",
|
|
295
|
+
function Po(e, t) {
|
|
296
|
+
return _(), w("svg", Ro, [...t[0] || (t[0] = [
|
|
297
297
|
p("path", {
|
|
298
298
|
stroke: "none",
|
|
299
299
|
d: "M0 0h24v24H0z",
|
|
@@ -304,7 +304,7 @@ function Ro(e, t) {
|
|
|
304
304
|
p("path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
|
|
305
305
|
])]);
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const Us = /* @__PURE__ */ Z(Eo, [["render", Po]]), Lo = {}, Ao = {
|
|
308
308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
309
309
|
width: "24",
|
|
310
310
|
height: "24",
|
|
@@ -321,7 +321,7 @@ function Uo(e, t) {
|
|
|
321
321
|
Gt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M5 2h5v4h-5z"></path><path d="M15 10h5v4h-5z"></path><path d="M5 18h5v4h-5z"></path><path d="M5 10h5v4h-5z"></path><path d="M10 12h5"></path><path d="M7.5 6v4"></path><path d="M7.5 14v4"></path>', 8)
|
|
322
322
|
])]);
|
|
323
323
|
}
|
|
324
|
-
const
|
|
324
|
+
const $s = /* @__PURE__ */ Z(Lo, [["render", Uo]]), $o = {}, Wo = {
|
|
325
325
|
xmlns: "http://www.w3.org/2000/svg",
|
|
326
326
|
width: "24",
|
|
327
327
|
height: "24",
|
|
@@ -338,7 +338,7 @@ function Ho(e, t) {
|
|
|
338
338
|
Gt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M6 2h4v4m-4 0h-1v-1"></path><path d="M15 11v-1h5v4h-2"></path><path d="M5 18h5v4h-5z"></path><path d="M5 10h5v4h-5z"></path><path d="M10 12h2"></path><path d="M7.5 7.5v2.5"></path><path d="M7.5 14v4"></path><path d="M3 3l18 18"></path>', 9)
|
|
339
339
|
])]);
|
|
340
340
|
}
|
|
341
|
-
const
|
|
341
|
+
const Ws = /* @__PURE__ */ Z($o, [["render", Ho]]), Fo = {}, Go = {
|
|
342
342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
343
343
|
width: "24",
|
|
344
344
|
height: "24",
|
|
@@ -355,7 +355,7 @@ function Vo(e, t) {
|
|
|
355
355
|
Gt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M21 18a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3"></path><path d="M3 3m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z"></path><path d="M12 9v8"></path><path d="M9 14l3 3l3 -3"></path>', 5)
|
|
356
356
|
])]);
|
|
357
357
|
}
|
|
358
|
-
const
|
|
358
|
+
const Hs = /* @__PURE__ */ Z(Fo, [["render", Vo]]), jo = {}, zo = {
|
|
359
359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
360
360
|
width: "24",
|
|
361
361
|
height: "24",
|
|
@@ -379,7 +379,7 @@ function Bo(e, t) {
|
|
|
379
379
|
p("path", { d: "M12 4l0 12" }, null, -1)
|
|
380
380
|
])]);
|
|
381
381
|
}
|
|
382
|
-
const
|
|
382
|
+
const Fs = /* @__PURE__ */ Z(jo, [["render", Bo]]), Zo = {}, qo = {
|
|
383
383
|
xmlns: "http://www.w3.org/2000/svg",
|
|
384
384
|
width: "24",
|
|
385
385
|
height: "24",
|
|
@@ -402,33 +402,33 @@ function Xo(e, t) {
|
|
|
402
402
|
p("path", { d: "M6 6l12 12" }, null, -1)
|
|
403
403
|
])]);
|
|
404
404
|
}
|
|
405
|
-
const
|
|
405
|
+
const Gs = /* @__PURE__ */ Z(Zo, [["render", Xo]]), Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
406
406
|
__proto__: null,
|
|
407
|
-
Check:
|
|
408
|
-
CodeVariable:
|
|
409
|
-
Copy:
|
|
410
|
-
DotsVertical:
|
|
411
|
-
Download:
|
|
412
|
-
LayoutSidebarLeftCollapse:
|
|
413
|
-
LayoutSidebarLeftExpand:
|
|
414
|
-
LayoutSidebarRight:
|
|
407
|
+
Check: Cs,
|
|
408
|
+
CodeVariable: Ts,
|
|
409
|
+
Copy: Ns,
|
|
410
|
+
DotsVertical: Ds,
|
|
411
|
+
Download: Is,
|
|
412
|
+
LayoutSidebarLeftCollapse: Ys,
|
|
413
|
+
LayoutSidebarLeftExpand: Es,
|
|
414
|
+
LayoutSidebarRight: Rs,
|
|
415
415
|
LayoutSidebarRightCollapse: Ps,
|
|
416
|
-
LayoutSidebarRightExpand:
|
|
416
|
+
LayoutSidebarRightExpand: Ls,
|
|
417
417
|
LockCode: Tn,
|
|
418
418
|
PlayerPlay: No,
|
|
419
|
-
Plus:
|
|
420
|
-
Restore:
|
|
421
|
-
Schema:
|
|
422
|
-
SchemaOff:
|
|
423
|
-
TransitionBottom:
|
|
424
|
-
Upload:
|
|
425
|
-
X:
|
|
419
|
+
Plus: As,
|
|
420
|
+
Restore: Us,
|
|
421
|
+
Schema: $s,
|
|
422
|
+
SchemaOff: Ws,
|
|
423
|
+
TransitionBottom: Hs,
|
|
424
|
+
Upload: Fs,
|
|
425
|
+
X: Gs
|
|
426
426
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
427
427
|
function Jo(e) {
|
|
428
428
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
429
429
|
}
|
|
430
|
-
var
|
|
431
|
-
var Ko =
|
|
430
|
+
var Rt = { exports: {} };
|
|
431
|
+
var Ko = Rt.exports, os;
|
|
432
432
|
function Qo() {
|
|
433
433
|
return os || (os = 1, (function(e, t) {
|
|
434
434
|
(function(s, r) {
|
|
@@ -488,14 +488,14 @@ function Qo() {
|
|
|
488
488
|
}, Ce(k);
|
|
489
489
|
}
|
|
490
490
|
var Te = function() {
|
|
491
|
-
var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, S = f.action, T = S === void 0 ? "copy" : S, D = f.container,
|
|
491
|
+
var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, S = f.action, T = S === void 0 ? "copy" : S, D = f.container, R = f.target, pe = f.text;
|
|
492
492
|
if (T !== "copy" && T !== "cut")
|
|
493
493
|
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
494
|
-
if (
|
|
495
|
-
if (
|
|
496
|
-
if (T === "copy" &&
|
|
494
|
+
if (R !== void 0)
|
|
495
|
+
if (R && Ce(R) === "object" && R.nodeType === 1) {
|
|
496
|
+
if (T === "copy" && R.hasAttribute("disabled"))
|
|
497
497
|
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
|
|
498
|
-
if (T === "cut" && (
|
|
498
|
+
if (T === "cut" && (R.hasAttribute("readonly") || R.hasAttribute("disabled")))
|
|
499
499
|
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
500
500
|
} else
|
|
501
501
|
throw new Error('Invalid "target" value, use a valid Element');
|
|
@@ -503,8 +503,8 @@ function Qo() {
|
|
|
503
503
|
return F(pe, {
|
|
504
504
|
container: D
|
|
505
505
|
});
|
|
506
|
-
if (
|
|
507
|
-
return T === "cut" ? h(
|
|
506
|
+
if (R)
|
|
507
|
+
return T === "cut" ? h(R) : F(R, {
|
|
508
508
|
container: D
|
|
509
509
|
});
|
|
510
510
|
}, ht = Te;
|
|
@@ -544,8 +544,8 @@ function Qo() {
|
|
|
544
544
|
return function() {
|
|
545
545
|
var T = je(k), D;
|
|
546
546
|
if (f) {
|
|
547
|
-
var
|
|
548
|
-
D = Reflect.construct(T, arguments,
|
|
547
|
+
var R = je(this).constructor;
|
|
548
|
+
D = Reflect.construct(T, arguments, R);
|
|
549
549
|
} else
|
|
550
550
|
D = T.apply(this, arguments);
|
|
551
551
|
return Tt(this, D);
|
|
@@ -583,8 +583,8 @@ function Qo() {
|
|
|
583
583
|
Ct(S, k);
|
|
584
584
|
var f = an(S);
|
|
585
585
|
function S(T, D) {
|
|
586
|
-
var
|
|
587
|
-
return C(this, S),
|
|
586
|
+
var R;
|
|
587
|
+
return C(this, S), R = f.call(this), R.resolveOptions(D), R.listenClick(T), R;
|
|
588
588
|
}
|
|
589
589
|
return ae(S, [{
|
|
590
590
|
key: "resolveOptions",
|
|
@@ -599,9 +599,9 @@ function Qo() {
|
|
|
599
599
|
}, {
|
|
600
600
|
key: "listenClick",
|
|
601
601
|
value: function(D) {
|
|
602
|
-
var
|
|
602
|
+
var R = this;
|
|
603
603
|
this.listener = b()(D, "click", function(pe) {
|
|
604
|
-
return
|
|
604
|
+
return R.onClick(pe);
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
/**
|
|
@@ -611,18 +611,18 @@ function Qo() {
|
|
|
611
611
|
}, {
|
|
612
612
|
key: "onClick",
|
|
613
613
|
value: function(D) {
|
|
614
|
-
var
|
|
614
|
+
var R = D.delegateTarget || D.currentTarget, pe = this.action(R) || "copy", It = ht({
|
|
615
615
|
action: pe,
|
|
616
616
|
container: this.container,
|
|
617
|
-
target: this.target(
|
|
618
|
-
text: this.text(
|
|
617
|
+
target: this.target(R),
|
|
618
|
+
text: this.text(R)
|
|
619
619
|
});
|
|
620
620
|
this.emit(It ? "success" : "error", {
|
|
621
621
|
action: pe,
|
|
622
622
|
text: It,
|
|
623
|
-
trigger:
|
|
623
|
+
trigger: R,
|
|
624
624
|
clearSelection: function() {
|
|
625
|
-
|
|
625
|
+
R && R.focus(), window.getSelection().removeAllRanges();
|
|
626
626
|
}
|
|
627
627
|
});
|
|
628
628
|
}
|
|
@@ -642,9 +642,9 @@ function Qo() {
|
|
|
642
642
|
}, {
|
|
643
643
|
key: "defaultTarget",
|
|
644
644
|
value: function(D) {
|
|
645
|
-
var
|
|
646
|
-
if (
|
|
647
|
-
return document.querySelector(
|
|
645
|
+
var R = Qe("target", D);
|
|
646
|
+
if (R)
|
|
647
|
+
return document.querySelector(R);
|
|
648
648
|
}
|
|
649
649
|
/**
|
|
650
650
|
* Allow fire programmatically a copy action
|
|
@@ -672,10 +672,10 @@ function Qo() {
|
|
|
672
672
|
}], [{
|
|
673
673
|
key: "copy",
|
|
674
674
|
value: function(D) {
|
|
675
|
-
var
|
|
675
|
+
var R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
676
676
|
container: document.body
|
|
677
677
|
};
|
|
678
|
-
return F(D,
|
|
678
|
+
return F(D, R);
|
|
679
679
|
}
|
|
680
680
|
/**
|
|
681
681
|
* Allow fire programmatically a cut action
|
|
@@ -695,8 +695,8 @@ function Qo() {
|
|
|
695
695
|
}, {
|
|
696
696
|
key: "isSupported",
|
|
697
697
|
value: function() {
|
|
698
|
-
var D = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"],
|
|
699
|
-
return
|
|
698
|
+
var D = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], R = typeof D == "string" ? [D] : D, pe = !!document.queryCommandSupported;
|
|
699
|
+
return R.forEach(function(It) {
|
|
700
700
|
pe = pe && !!document.queryCommandSupported(It);
|
|
701
701
|
}), pe;
|
|
702
702
|
}
|
|
@@ -912,7 +912,7 @@ function Qo() {
|
|
|
912
912
|
})().default
|
|
913
913
|
);
|
|
914
914
|
});
|
|
915
|
-
})(
|
|
915
|
+
})(Rt)), Rt.exports;
|
|
916
916
|
}
|
|
917
917
|
var ei = Qo();
|
|
918
918
|
const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
@@ -933,7 +933,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
933
933
|
}), si = {
|
|
934
934
|
key: 0,
|
|
935
935
|
class: "baklava-button"
|
|
936
|
-
},
|
|
936
|
+
}, Vs = /* @__PURE__ */ de({
|
|
937
937
|
__name: "CopyToClipboard",
|
|
938
938
|
props: { text: String },
|
|
939
939
|
setup(e) {
|
|
@@ -946,13 +946,13 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
946
946
|
};
|
|
947
947
|
return (o, i) => (_(), w("div", null, [
|
|
948
948
|
r.value ? (_(), w("button", si, [
|
|
949
|
-
q(U(
|
|
949
|
+
q(U(Cs))
|
|
950
950
|
])) : (_(), w("button", {
|
|
951
951
|
key: 1,
|
|
952
952
|
onClick: a,
|
|
953
953
|
class: "baklava-button"
|
|
954
954
|
}, [
|
|
955
|
-
q(U(
|
|
955
|
+
q(U(Ns))
|
|
956
956
|
]))
|
|
957
957
|
]));
|
|
958
958
|
}
|
|
@@ -967,7 +967,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
967
967
|
}),
|
|
968
968
|
emits: /* @__PURE__ */ ss(["update:locked"], ["update:modelValue"]),
|
|
969
969
|
setup(e, { emit: t }) {
|
|
970
|
-
const n =
|
|
970
|
+
const n = oa(e, "modelValue"), s = t, r = (a) => s("update:locked", a);
|
|
971
971
|
return (a, o) => {
|
|
972
972
|
const i = _s("codemirror");
|
|
973
973
|
return _(), w("div", ri, [
|
|
@@ -980,7 +980,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
980
980
|
}, [
|
|
981
981
|
q(U(Tn))
|
|
982
982
|
])) : K("", !0),
|
|
983
|
-
q(
|
|
983
|
+
q(Vs, { text: e.modelValue }, null, 8, ["text"])
|
|
984
984
|
]),
|
|
985
985
|
q(i, {
|
|
986
986
|
modelValue: n.value,
|
|
@@ -1004,15 +1004,15 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
1004
1004
|
a && a.onBeforeUnmount(), r && r.onMounted();
|
|
1005
1005
|
}), (r, a) => (_(), se(U(fa), { "view-model": n.value }, {
|
|
1006
1006
|
palette: Ie(() => [
|
|
1007
|
-
q(U(
|
|
1007
|
+
q(U(Bs))
|
|
1008
1008
|
]),
|
|
1009
1009
|
node: Ie((o) => [
|
|
1010
|
-
q(U(
|
|
1010
|
+
q(U(js), ua(o, {
|
|
1011
1011
|
onUpdate: (i) => s(o.node)
|
|
1012
1012
|
}), null, 16, ["onUpdate"])
|
|
1013
1013
|
]),
|
|
1014
1014
|
sidebar: Ie((o) => [
|
|
1015
|
-
q(U(
|
|
1015
|
+
q(U(zs), ia(la(o)), {
|
|
1016
1016
|
codeEditor: Ie(({ node: i }) => [
|
|
1017
1017
|
ke(r.$slots, "sidebarCodeEditor", { node: i })
|
|
1018
1018
|
]),
|
|
@@ -1042,7 +1042,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
1042
1042
|
}, hi = { key: 0 }, fi = {
|
|
1043
1043
|
class: "__menu",
|
|
1044
1044
|
style: { display: "flex" }
|
|
1045
|
-
}, pi = { class: "__outputs" }, mi = { key: 0 }, _i = ["id", "title"], vi = { class: "__inputs" }, yi = { key: 0 }, gi = ["id", "title"],
|
|
1045
|
+
}, pi = { class: "__outputs" }, mi = { key: 0 }, _i = ["id", "title"], vi = { class: "__inputs" }, yi = { key: 0 }, gi = ["id", "title"], js = /* @__PURE__ */ de({
|
|
1046
1046
|
__name: "CodeGraphNode",
|
|
1047
1047
|
props: {
|
|
1048
1048
|
node: {},
|
|
@@ -1059,7 +1059,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
1059
1059
|
{ value: "rename", label: "Rename" },
|
|
1060
1060
|
{ value: "delete", label: "Delete" }
|
|
1061
1061
|
];
|
|
1062
|
-
return r.node.type.startsWith(
|
|
1062
|
+
return r.node.type.startsWith(Ra) && $.push({ value: "editSubgraph", label: "Edit Subgraph" }), $;
|
|
1063
1063
|
}), A = z(() => ({
|
|
1064
1064
|
"--selected": r.selected,
|
|
1065
1065
|
"--dragging": r.dragging,
|
|
@@ -1095,7 +1095,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
1095
1095
|
l.value.removeNode(r.node);
|
|
1096
1096
|
break;
|
|
1097
1097
|
case "rename":
|
|
1098
|
-
m.value = r.node.title, b.value = !0, await
|
|
1098
|
+
m.value = r.node.title, b.value = !0, await ws(), I.value?.focus();
|
|
1099
1099
|
break;
|
|
1100
1100
|
case "editSubgraph":
|
|
1101
1101
|
u(r.node.template);
|
|
@@ -1173,20 +1173,20 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
1173
1173
|
class: "--clickable mx-1",
|
|
1174
1174
|
onClick: k[0] || (k[0] = (f) => a.value.lockCode = !1)
|
|
1175
1175
|
})) : K("", !0),
|
|
1176
|
-
a.value.state.integrated ? (_(), se(U(
|
|
1176
|
+
a.value.state.integrated ? (_(), se(U(Ts), {
|
|
1177
1177
|
key: 1,
|
|
1178
1178
|
class: "--clickable mx-1",
|
|
1179
1179
|
onClick: k[1] || (k[1] = (f) => je(!1))
|
|
1180
|
-
})) : (_(), se(U(
|
|
1180
|
+
})) : (_(), se(U(Hs), {
|
|
1181
1181
|
key: 2,
|
|
1182
1182
|
class: "--clickable mx-1",
|
|
1183
1183
|
onClick: k[2] || (k[2] = (f) => je(!0))
|
|
1184
1184
|
})),
|
|
1185
|
-
!U(i).displayedGraph.sidebar.visible && U(i).displayedGraph.sidebar.nodeId !== a.value.id ? (_(), se(U(
|
|
1185
|
+
!U(i).displayedGraph.sidebar.visible && U(i).displayedGraph.sidebar.nodeId !== a.value.id ? (_(), se(U(Ls), {
|
|
1186
1186
|
key: 3,
|
|
1187
1187
|
class: "--clickable mx-1",
|
|
1188
1188
|
onClick: Ct
|
|
1189
|
-
})) : U(i).displayedGraph.sidebar.visible && U(i).displayedGraph.sidebar.nodeId !== a.value.id ? (_(), se(U(
|
|
1189
|
+
})) : U(i).displayedGraph.sidebar.visible && U(i).displayedGraph.sidebar.nodeId !== a.value.id ? (_(), se(U(Rs), {
|
|
1190
1190
|
key: 4,
|
|
1191
1191
|
class: "--clickable mx-1",
|
|
1192
1192
|
onClick: ft
|
|
@@ -1196,7 +1196,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
1196
1196
|
onClick: ae
|
|
1197
1197
|
}))
|
|
1198
1198
|
], 64)) : K("", !0),
|
|
1199
|
-
q(U(
|
|
1199
|
+
q(U(Ds), {
|
|
1200
1200
|
class: "--clickable mx-1",
|
|
1201
1201
|
onClick: J
|
|
1202
1202
|
}),
|
|
@@ -1355,7 +1355,7 @@ const ti = /* @__PURE__ */ Jo(ei), ni = (e) => ({
|
|
|
1355
1355
|
}), Si = { class: "__header" }, xi = { class: "__node-name" }, Oi = { class: "__interfaces" }, Ci = { class: "__inputs" }, Ti = { style: { display: "flex" } }, Ni = { class: "__outputs" }, Di = {
|
|
1356
1356
|
key: 0,
|
|
1357
1357
|
class: "__interface"
|
|
1358
|
-
}, Ii = { style: { display: "flex" } },
|
|
1358
|
+
}, Ii = { style: { display: "flex" } }, zs = /* @__PURE__ */ de({
|
|
1359
1359
|
__name: "CodeGraphSidebar",
|
|
1360
1360
|
setup(e) {
|
|
1361
1361
|
const { viewModel: t } = wt(), { graph: n } = Cn(), s = re(null), r = Sn(t.value.settings.sidebar, "width"), a = z(() => t.value.settings.sidebar.resizable);
|
|
@@ -1482,16 +1482,16 @@ function Yi(e, t) {
|
|
|
1482
1482
|
function Ei(e, t) {
|
|
1483
1483
|
return Object.fromEntries(Object.entries(e).map(([n, s]) => [n, t(s)]));
|
|
1484
1484
|
}
|
|
1485
|
-
const
|
|
1485
|
+
const Ri = {
|
|
1486
1486
|
class: "baklava-node --palette",
|
|
1487
1487
|
style: { "margin-top": "-20px", "margin-bottom": "20px" }
|
|
1488
|
-
},
|
|
1488
|
+
}, Pi = {
|
|
1489
1489
|
key: 0,
|
|
1490
1490
|
style: { display: "flex", "justify-content": "space-between" }
|
|
1491
1491
|
}, Li = ["onClick"], Ai = {
|
|
1492
1492
|
key: 0,
|
|
1493
1493
|
style: { margin: "auto 0", "font-size": "12px" }
|
|
1494
|
-
},
|
|
1494
|
+
}, Bs = /* @__PURE__ */ de({
|
|
1495
1495
|
__name: "CodeNodePalette",
|
|
1496
1496
|
setup(e) {
|
|
1497
1497
|
const t = fn.PaletteEntry, { viewModel: n } = wt(), { x: s, y: r } = Ha(), { transform: a } = ma(), o = _a(n), i = da("editorEl"), l = re(""), u = re(null), c = () => l.value ? o.value.filter(
|
|
@@ -1527,7 +1527,7 @@ const Pi = {
|
|
|
1527
1527
|
onContextmenu: O[1] || (O[1] = nt(() => {
|
|
1528
1528
|
}, ["stop", "prevent"]))
|
|
1529
1529
|
}, [
|
|
1530
|
-
p("div",
|
|
1530
|
+
p("div", Ri, [
|
|
1531
1531
|
Vt(p("input", {
|
|
1532
1532
|
"onUpdate:modelValue": O[0] || (O[0] = (h) => l.value = h),
|
|
1533
1533
|
type: "text",
|
|
@@ -1541,7 +1541,7 @@ const Pi = {
|
|
|
1541
1541
|
(_(!0), w(oe, null, qe(c(), (h) => (_(), w("section", {
|
|
1542
1542
|
key: h.name
|
|
1543
1543
|
}, [
|
|
1544
|
-
h.name !== "default" ? (_(), w("h3",
|
|
1544
|
+
h.name !== "default" ? (_(), w("h3", Pi, [
|
|
1545
1545
|
p("div", {
|
|
1546
1546
|
onClick: (M) => l.value = h.name,
|
|
1547
1547
|
style: { cursor: "pointer" }
|
|
@@ -1613,7 +1613,7 @@ const _n = /* @__PURE__ */ Z(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi
|
|
|
1613
1613
|
class: "remove",
|
|
1614
1614
|
onClick: nt((i) => s(o.graph.id), ["prevent"])
|
|
1615
1615
|
}, [
|
|
1616
|
-
q(U(
|
|
1616
|
+
q(U(Gs))
|
|
1617
1617
|
], 8, Gi)
|
|
1618
1618
|
]),
|
|
1619
1619
|
default: Ie(() => [
|
|
@@ -1627,7 +1627,7 @@ const _n = /* @__PURE__ */ Z(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi
|
|
|
1627
1627
|
class: "navItem"
|
|
1628
1628
|
}, {
|
|
1629
1629
|
default: Ie(() => [
|
|
1630
|
-
q(U(
|
|
1630
|
+
q(U(As), { class: "plus" })
|
|
1631
1631
|
]),
|
|
1632
1632
|
_: 1
|
|
1633
1633
|
}, 8, ["to"])
|
|
@@ -1669,23 +1669,23 @@ function qi(e, t, n, s, r, a) {
|
|
|
1669
1669
|
])
|
|
1670
1670
|
]);
|
|
1671
1671
|
}
|
|
1672
|
-
const
|
|
1672
|
+
const Zs = /* @__PURE__ */ Z(ji, [["render", qi]]), Ph = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1673
1673
|
__proto__: null,
|
|
1674
1674
|
CodeEditor: oi,
|
|
1675
1675
|
CodeGraphEditor: ii,
|
|
1676
1676
|
CodeGraphInfo: ui,
|
|
1677
|
-
CodeGraphNode:
|
|
1677
|
+
CodeGraphNode: js,
|
|
1678
1678
|
CodeGraphNodeInterface: pn,
|
|
1679
|
-
CodeGraphSidebar:
|
|
1680
|
-
CodeNodePalette:
|
|
1681
|
-
CopyToClipboard:
|
|
1679
|
+
CodeGraphSidebar: zs,
|
|
1680
|
+
CodeNodePalette: Bs,
|
|
1681
|
+
CopyToClipboard: Vs,
|
|
1682
1682
|
NavBar: Vi,
|
|
1683
1683
|
NavItem: _n,
|
|
1684
1684
|
SidebarCheckbox: mn,
|
|
1685
|
-
TextInputInterface:
|
|
1685
|
+
TextInputInterface: Zs
|
|
1686
1686
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1687
1687
|
lt.escape = (e) => e;
|
|
1688
|
-
class
|
|
1688
|
+
class qs extends Pa {
|
|
1689
1689
|
codeTemplate;
|
|
1690
1690
|
isCodeNode = !0;
|
|
1691
1691
|
mask = null;
|
|
@@ -1878,7 +1878,7 @@ class Zs extends Ra {
|
|
|
1878
1878
|
});
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
|
-
class Nn extends
|
|
1881
|
+
class Nn extends qs {
|
|
1882
1882
|
/**
|
|
1883
1883
|
* The default implementation does nothing.
|
|
1884
1884
|
* Overwrite this method to do calculation.
|
|
@@ -1891,7 +1891,7 @@ class Nn extends Zs {
|
|
|
1891
1891
|
return this.lockCode || (s._code = this.renderCode({ inputs: t, ...n })), this.updateOutputValues(s), s;
|
|
1892
1892
|
};
|
|
1893
1893
|
load(t) {
|
|
1894
|
-
super.load(t),
|
|
1894
|
+
super.load(t), Xs(this.graph, t), this.afterLoaded();
|
|
1895
1895
|
}
|
|
1896
1896
|
save() {
|
|
1897
1897
|
const t = super.save();
|
|
@@ -1905,7 +1905,7 @@ const Xi = (e, t = !0) => {
|
|
|
1905
1905
|
const o = t && n.length < s.indexOf(r) ? `${r}=` : "";
|
|
1906
1906
|
n.push(`${o}{{ inputs.${r} }}`);
|
|
1907
1907
|
}), n;
|
|
1908
|
-
},
|
|
1908
|
+
}, Xs = (e, t) => {
|
|
1909
1909
|
if (!e) return;
|
|
1910
1910
|
const n = e.findNodeById(t.id);
|
|
1911
1911
|
if (!n || n.subgraph) return;
|
|
@@ -1933,7 +1933,7 @@ const Xi = (e, t = !0) => {
|
|
|
1933
1933
|
case "CheckBoxInterface":
|
|
1934
1934
|
return new tl(t.id, t.value);
|
|
1935
1935
|
case "IntegerInterface":
|
|
1936
|
-
return new
|
|
1936
|
+
return new nr(
|
|
1937
1937
|
t.id,
|
|
1938
1938
|
t.value,
|
|
1939
1939
|
t.min,
|
|
@@ -1949,7 +1949,7 @@ const Xi = (e, t = !0) => {
|
|
|
1949
1949
|
case "SelectInterface":
|
|
1950
1950
|
return new rl(t.id, t.value, t.items);
|
|
1951
1951
|
default:
|
|
1952
|
-
return new
|
|
1952
|
+
return new sr(t.id, t.value);
|
|
1953
1953
|
}
|
|
1954
1954
|
}, Qi = ["title"], Dn = /* @__PURE__ */ de({
|
|
1955
1955
|
__name: "CodeNodeInterface",
|
|
@@ -1990,7 +1990,7 @@ class ie extends Me {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
class kt extends ie {
|
|
1992
1992
|
constructor(t = "", n) {
|
|
1993
|
-
super(t, n), this.setComponent(ce(Dn)), this.use(
|
|
1993
|
+
super(t, n), this.setComponent(ce(Dn)), this.use(ks, !0);
|
|
1994
1994
|
}
|
|
1995
1995
|
get value() {
|
|
1996
1996
|
return super.value;
|
|
@@ -1999,12 +1999,12 @@ class kt extends ie {
|
|
|
1999
1999
|
super.value = t, this.name !== "_code" && this.setHidden(!1);
|
|
2000
2000
|
}
|
|
2001
2001
|
}
|
|
2002
|
-
const
|
|
2003
|
-
new Fa(e.editor, { viewPlugin: e }).addTypes(
|
|
2002
|
+
const Js = new Je("boolean"), el = new Je("dict"), Ks = new Je("list"), _e = new Je("node"), Qs = new Je("number"), er = new Je("string"), tr = new Je("tuple"), Lh = (e) => {
|
|
2003
|
+
new Fa(e.editor, { viewPlugin: e }).addTypes(Js, el, Ks, _e, Qs, er, tr);
|
|
2004
2004
|
};
|
|
2005
2005
|
class tl extends kt {
|
|
2006
2006
|
constructor(t, n) {
|
|
2007
|
-
super(t, n), this.setComponent(ce(va)), this.use(te,
|
|
2007
|
+
super(t, n), this.setComponent(ce(va)), this.use(te, Js);
|
|
2008
2008
|
}
|
|
2009
2009
|
getValue = () => this.value ? "True" : "False";
|
|
2010
2010
|
}
|
|
@@ -2026,13 +2026,13 @@ class In extends kt {
|
|
|
2026
2026
|
min;
|
|
2027
2027
|
max;
|
|
2028
2028
|
constructor(t, n, s, r) {
|
|
2029
|
-
super(t, n), this.min = s, this.max = r, this.use(te,
|
|
2029
|
+
super(t, n), this.min = s, this.max = r, this.use(te, Qs);
|
|
2030
2030
|
}
|
|
2031
2031
|
validate(t) {
|
|
2032
2032
|
return (this.min === void 0 || t >= this.min) && (this.max === void 0 || t <= this.max);
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
|
-
class
|
|
2035
|
+
class nr extends In {
|
|
2036
2036
|
component = ce(ya);
|
|
2037
2037
|
validate(t) {
|
|
2038
2038
|
return Number.isInteger(t) && super.validate(t);
|
|
@@ -2040,7 +2040,7 @@ class tr extends In {
|
|
|
2040
2040
|
}
|
|
2041
2041
|
class Ah extends kt {
|
|
2042
2042
|
constructor(t = "", n = "") {
|
|
2043
|
-
super(t, n), this.setComponent(ce(
|
|
2043
|
+
super(t, n), this.setComponent(ce(Ms)), this.use(te, Ks);
|
|
2044
2044
|
}
|
|
2045
2045
|
getValue = () => `[${this.value}]`;
|
|
2046
2046
|
}
|
|
@@ -2049,7 +2049,7 @@ class sl extends In {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
class Yn extends kt {
|
|
2051
2051
|
constructor(t, n) {
|
|
2052
|
-
super(t, n), this.use(te,
|
|
2052
|
+
super(t, n), this.use(te, er);
|
|
2053
2053
|
}
|
|
2054
2054
|
getValue = () => `"${this.value}"`;
|
|
2055
2055
|
}
|
|
@@ -2069,15 +2069,15 @@ class Uh extends In {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
getValue = () => `${Math.round(this.value * 1e3) / 1e3}`;
|
|
2071
2071
|
}
|
|
2072
|
-
class
|
|
2073
|
-
component = ce(
|
|
2072
|
+
class sr extends Yn {
|
|
2073
|
+
component = ce(Zs);
|
|
2074
2074
|
}
|
|
2075
2075
|
class $h extends Yn {
|
|
2076
2076
|
component = ce(ka);
|
|
2077
2077
|
}
|
|
2078
2078
|
class Wh extends kt {
|
|
2079
2079
|
constructor(t = "", n = "") {
|
|
2080
|
-
super(t, n), this.setComponent(ce(
|
|
2080
|
+
super(t, n), this.setComponent(ce(Ms)), this.use(te, tr);
|
|
2081
2081
|
}
|
|
2082
2082
|
getValue = () => `(${this.value})`;
|
|
2083
2083
|
}
|
|
@@ -2184,7 +2184,7 @@ function Fh(e) {
|
|
|
2184
2184
|
if (!this.inputs[n]) {
|
|
2185
2185
|
const s = t.inputs[n], r = s.value;
|
|
2186
2186
|
let a;
|
|
2187
|
-
s.component ? a = Ki(s.component, { ...s, id: n }) : typeof r == "number" ? a = new
|
|
2187
|
+
s.component ? a = Ki(s.component, { ...s, id: n }) : typeof r == "number" ? a = new nr(n, r) : a = new sr(n, JSON.stringify(r)), a.use(ks, !0), a.setOptional(s.optional ?? !1), a.setHidden(s.hidden ?? !1), this.addInput(n, a);
|
|
2188
2188
|
}
|
|
2189
2189
|
this.inputs[n] && (this.inputs[n].load(t.inputs[n]), this.inputs[n].nodeId = this.id);
|
|
2190
2190
|
}
|
|
@@ -2196,7 +2196,7 @@ function Fh(e) {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
this.outputs[n] && (this.outputs[n].load(t.outputs[n]), this.outputs[n].nodeId = this.id);
|
|
2198
2198
|
}
|
|
2199
|
-
|
|
2199
|
+
Xs(this.graph, t), this.preventUpdate = !1, this.events.loaded.emit(this);
|
|
2200
2200
|
}
|
|
2201
2201
|
onUpdate() {
|
|
2202
2202
|
if (!e.onUpdate || this.preventUpdate) return;
|
|
@@ -2387,12 +2387,12 @@ This is likely an internal issue. Please report it on GitHub.`
|
|
|
2387
2387
|
return t.get(n);
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
|
-
var
|
|
2390
|
+
var rr;
|
|
2391
2391
|
function v() {
|
|
2392
|
-
return
|
|
2392
|
+
return rr.apply(null, arguments);
|
|
2393
2393
|
}
|
|
2394
2394
|
function il(e) {
|
|
2395
|
-
|
|
2395
|
+
rr = e;
|
|
2396
2396
|
}
|
|
2397
2397
|
function ve(e) {
|
|
2398
2398
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
@@ -2400,15 +2400,15 @@ function ve(e) {
|
|
|
2400
2400
|
function Ze(e) {
|
|
2401
2401
|
return e != null && Object.prototype.toString.call(e) === "[object Object]";
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2403
|
+
function P(e, t) {
|
|
2404
2404
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
2405
2405
|
}
|
|
2406
|
-
function
|
|
2406
|
+
function Rn(e) {
|
|
2407
2407
|
if (Object.getOwnPropertyNames)
|
|
2408
2408
|
return Object.getOwnPropertyNames(e).length === 0;
|
|
2409
2409
|
var t;
|
|
2410
2410
|
for (t in e)
|
|
2411
|
-
if (
|
|
2411
|
+
if (P(e, t))
|
|
2412
2412
|
return !1;
|
|
2413
2413
|
return !0;
|
|
2414
2414
|
}
|
|
@@ -2421,7 +2421,7 @@ function Ae(e) {
|
|
|
2421
2421
|
function Mt(e) {
|
|
2422
2422
|
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2424
|
+
function ar(e, t) {
|
|
2425
2425
|
var n = [], s, r = e.length;
|
|
2426
2426
|
for (s = 0; s < r; ++s)
|
|
2427
2427
|
n.push(t(e[s], s));
|
|
@@ -2429,11 +2429,11 @@ function rr(e, t) {
|
|
|
2429
2429
|
}
|
|
2430
2430
|
function He(e, t) {
|
|
2431
2431
|
for (var n in t)
|
|
2432
|
-
|
|
2433
|
-
return
|
|
2432
|
+
P(t, n) && (e[n] = t[n]);
|
|
2433
|
+
return P(t, "toString") && (e.toString = t.toString), P(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
2434
2434
|
}
|
|
2435
2435
|
function xe(e, t, n, s) {
|
|
2436
|
-
return
|
|
2436
|
+
return Tr(e, t, n, s, !0).utc();
|
|
2437
2437
|
}
|
|
2438
2438
|
function ll() {
|
|
2439
2439
|
return {
|
|
@@ -2466,7 +2466,7 @@ Array.prototype.some ? vn = Array.prototype.some : vn = function(e) {
|
|
|
2466
2466
|
return !0;
|
|
2467
2467
|
return !1;
|
|
2468
2468
|
};
|
|
2469
|
-
function
|
|
2469
|
+
function Pn(e) {
|
|
2470
2470
|
var t = null, n = !1, s = e._d && !isNaN(e._d.getTime());
|
|
2471
2471
|
if (s && (t = N(e), n = vn.call(t.parsedDateParts, function(r) {
|
|
2472
2472
|
return r != null;
|
|
@@ -2494,7 +2494,7 @@ function St(e) {
|
|
|
2494
2494
|
function ye(e) {
|
|
2495
2495
|
return e instanceof St || e != null && e._isAMomentObject != null;
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function or(e) {
|
|
2498
2498
|
v.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
2499
2499
|
}
|
|
2500
2500
|
function he(e, t) {
|
|
@@ -2507,13 +2507,13 @@ function he(e, t) {
|
|
|
2507
2507
|
r += `
|
|
2508
2508
|
[` + a + "] ";
|
|
2509
2509
|
for (o in arguments[0])
|
|
2510
|
-
|
|
2510
|
+
P(arguments[0], o) && (r += o + ": " + arguments[0][o] + ", ");
|
|
2511
2511
|
r = r.slice(0, -2);
|
|
2512
2512
|
} else
|
|
2513
2513
|
r = arguments[a];
|
|
2514
2514
|
s.push(r);
|
|
2515
2515
|
}
|
|
2516
|
-
|
|
2516
|
+
or(
|
|
2517
2517
|
e + `
|
|
2518
2518
|
Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
2519
2519
|
` + new Error().stack
|
|
@@ -2523,8 +2523,8 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
2523
2523
|
}, t);
|
|
2524
2524
|
}
|
|
2525
2525
|
var ls = {};
|
|
2526
|
-
function
|
|
2527
|
-
v.deprecationHandler != null && v.deprecationHandler(e, t), ls[e] || (
|
|
2526
|
+
function ir(e, t) {
|
|
2527
|
+
v.deprecationHandler != null && v.deprecationHandler(e, t), ls[e] || (or(t), ls[e] = !0);
|
|
2528
2528
|
}
|
|
2529
2529
|
v.suppressDeprecationWarnings = !1;
|
|
2530
2530
|
v.deprecationHandler = null;
|
|
@@ -2534,7 +2534,7 @@ function Oe(e) {
|
|
|
2534
2534
|
function ul(e) {
|
|
2535
2535
|
var t, n;
|
|
2536
2536
|
for (n in e)
|
|
2537
|
-
|
|
2537
|
+
P(e, n) && (t = e[n], Oe(t) ? this[n] = t : this["_" + n] = t);
|
|
2538
2538
|
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
2539
2539
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
2540
2540
|
);
|
|
@@ -2542,9 +2542,9 @@ function ul(e) {
|
|
|
2542
2542
|
function yn(e, t) {
|
|
2543
2543
|
var n = He({}, e), s;
|
|
2544
2544
|
for (s in t)
|
|
2545
|
-
|
|
2545
|
+
P(t, s) && (Ze(e[s]) && Ze(t[s]) ? (n[s] = {}, He(n[s], e[s]), He(n[s], t[s])) : t[s] != null ? n[s] = t[s] : delete n[s]);
|
|
2546
2546
|
for (s in e)
|
|
2547
|
-
|
|
2547
|
+
P(e, s) && !P(t, s) && Ze(e[s]) && (n[s] = He({}, n[s]));
|
|
2548
2548
|
return n;
|
|
2549
2549
|
}
|
|
2550
2550
|
function An(e) {
|
|
@@ -2554,7 +2554,7 @@ var gn;
|
|
|
2554
2554
|
Object.keys ? gn = Object.keys : gn = function(e) {
|
|
2555
2555
|
var t, n = [];
|
|
2556
2556
|
for (t in e)
|
|
2557
|
-
|
|
2557
|
+
P(e, t) && n.push(t);
|
|
2558
2558
|
return n;
|
|
2559
2559
|
};
|
|
2560
2560
|
var dl = {
|
|
@@ -2601,10 +2601,10 @@ function fl(e) {
|
|
|
2601
2601
|
return a;
|
|
2602
2602
|
};
|
|
2603
2603
|
}
|
|
2604
|
-
function
|
|
2605
|
-
return e.isValid() ? (t =
|
|
2604
|
+
function Pt(e, t) {
|
|
2605
|
+
return e.isValid() ? (t = lr(t, e.localeData()), un[t] = un[t] || fl(t), un[t](e)) : e.localeData().invalidDate();
|
|
2606
2606
|
}
|
|
2607
|
-
function
|
|
2607
|
+
function lr(e, t) {
|
|
2608
2608
|
var n = 5;
|
|
2609
2609
|
function s(r) {
|
|
2610
2610
|
return t.longDateFormat(r) || r;
|
|
@@ -2720,7 +2720,7 @@ function fe(e) {
|
|
|
2720
2720
|
function $n(e) {
|
|
2721
2721
|
var t = {}, n, s;
|
|
2722
2722
|
for (s in e)
|
|
2723
|
-
|
|
2723
|
+
P(e, s) && (n = fe(s), n && (t[n] = e[s]));
|
|
2724
2724
|
return t;
|
|
2725
2725
|
}
|
|
2726
2726
|
var Sl = {
|
|
@@ -2744,12 +2744,12 @@ var Sl = {
|
|
|
2744
2744
|
function xl(e) {
|
|
2745
2745
|
var t = [], n;
|
|
2746
2746
|
for (n in e)
|
|
2747
|
-
|
|
2747
|
+
P(e, n) && t.push({ unit: n, priority: Sl[n] });
|
|
2748
2748
|
return t.sort(function(s, r) {
|
|
2749
2749
|
return s.priority - r.priority;
|
|
2750
2750
|
}), t;
|
|
2751
2751
|
}
|
|
2752
|
-
var
|
|
2752
|
+
var ur = /\d/, le = /\d\d/, dr = /\d{3}/, Wn = /\d{4}/, Bt = /[+-]?\d{6}/, V = /\d\d?/, cr = /\d\d\d\d?/, hr = /\d\d\d\d\d\d?/, Zt = /\d{1,3}/, Hn = /\d{1,4}/, qt = /[+-]?\d{1,6}/, ut = /\d+/, Xt = /[+-]?\d+/, Ol = /Z|[+-]\d\d:?\d\d/gi, Jt = /Z|[+-]\d\d(?::?\d\d)?/gi, Cl = /[+-]?\d+(\.\d{1,3})?/, xt = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, dt = /^[1-9]\d?/, Fn = /^([1-9]\d|\d)/, Ut;
|
|
2753
2753
|
Ut = {};
|
|
2754
2754
|
function y(e, t, n) {
|
|
2755
2755
|
Ut[e] = Oe(t) ? t : function(s, r) {
|
|
@@ -2757,10 +2757,10 @@ function y(e, t, n) {
|
|
|
2757
2757
|
};
|
|
2758
2758
|
}
|
|
2759
2759
|
function Tl(e, t) {
|
|
2760
|
-
return
|
|
2760
|
+
return P(Ut, e) ? Ut[e](t._strict, t._locale) : new RegExp(Nl(e));
|
|
2761
2761
|
}
|
|
2762
2762
|
function Nl(e) {
|
|
2763
|
-
return
|
|
2763
|
+
return Re(
|
|
2764
2764
|
e.replace("\\", "").replace(
|
|
2765
2765
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
2766
2766
|
function(t, n, s, r, a) {
|
|
@@ -2769,7 +2769,7 @@ function Nl(e) {
|
|
|
2769
2769
|
)
|
|
2770
2770
|
);
|
|
2771
2771
|
}
|
|
2772
|
-
function
|
|
2772
|
+
function Re(e) {
|
|
2773
2773
|
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
2774
2774
|
}
|
|
2775
2775
|
function ue(e) {
|
|
@@ -2793,7 +2793,7 @@ function Ot(e, t) {
|
|
|
2793
2793
|
});
|
|
2794
2794
|
}
|
|
2795
2795
|
function Dl(e, t, n) {
|
|
2796
|
-
t != null &&
|
|
2796
|
+
t != null && P(bn, e) && bn[e](t, n._a, n, e);
|
|
2797
2797
|
}
|
|
2798
2798
|
function Kt(e) {
|
|
2799
2799
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
@@ -2830,13 +2830,13 @@ function _t(e) {
|
|
|
2830
2830
|
v.parseTwoDigitYear = function(e) {
|
|
2831
2831
|
return Y(e) + (Y(e) > 68 ? 1900 : 2e3);
|
|
2832
2832
|
};
|
|
2833
|
-
var
|
|
2833
|
+
var fr = ct("FullYear", !0);
|
|
2834
2834
|
function El() {
|
|
2835
2835
|
return Kt(this.year());
|
|
2836
2836
|
}
|
|
2837
2837
|
function ct(e, t) {
|
|
2838
2838
|
return function(n) {
|
|
2839
|
-
return n != null ? (
|
|
2839
|
+
return n != null ? (pr(this, e, n), v.updateOffset(this, t), this) : vt(this, e);
|
|
2840
2840
|
};
|
|
2841
2841
|
}
|
|
2842
2842
|
function vt(e, t) {
|
|
@@ -2864,7 +2864,7 @@ function vt(e, t) {
|
|
|
2864
2864
|
return NaN;
|
|
2865
2865
|
}
|
|
2866
2866
|
}
|
|
2867
|
-
function
|
|
2867
|
+
function pr(e, t, n) {
|
|
2868
2868
|
var s, r, a, o, i;
|
|
2869
2869
|
if (!(!e.isValid() || isNaN(n))) {
|
|
2870
2870
|
switch (s = e._d, r = e._isUTC, t) {
|
|
@@ -2891,10 +2891,10 @@ function fr(e, t, n) {
|
|
|
2891
2891
|
a = n, o = e.month(), i = e.date(), i = i === 29 && o === 1 && !Kt(a) ? 28 : i, r ? s.setUTCFullYear(a, o, i) : s.setFullYear(a, o, i);
|
|
2892
2892
|
}
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2894
|
+
function Rl(e) {
|
|
2895
2895
|
return e = fe(e), Oe(this[e]) ? this[e]() : this;
|
|
2896
2896
|
}
|
|
2897
|
-
function
|
|
2897
|
+
function Pl(e, t) {
|
|
2898
2898
|
if (typeof e == "object") {
|
|
2899
2899
|
e = $n(e);
|
|
2900
2900
|
var n = xl(e), s, r = n.length;
|
|
@@ -2947,12 +2947,12 @@ W(["MMM", "MMMM"], function(e, t, n, s) {
|
|
|
2947
2947
|
});
|
|
2948
2948
|
var Al = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
2949
2949
|
"_"
|
|
2950
|
-
),
|
|
2950
|
+
), mr = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), _r = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Ul = xt, $l = xt;
|
|
2951
2951
|
function Wl(e, t) {
|
|
2952
|
-
return e ? ve(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat ||
|
|
2952
|
+
return e ? ve(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || _r).test(t) ? "format" : "standalone"][e.month()] : ve(this._months) ? this._months : this._months.standalone;
|
|
2953
2953
|
}
|
|
2954
2954
|
function Hl(e, t) {
|
|
2955
|
-
return e ? ve(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[
|
|
2955
|
+
return e ? ve(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[_r.test(t) ? "format" : "standalone"][e.month()] : ve(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
2956
2956
|
}
|
|
2957
2957
|
function Fl(e, t, n) {
|
|
2958
2958
|
var s, r, a, o = e.toLocaleLowerCase();
|
|
@@ -2983,7 +2983,7 @@ function Gl(e, t, n) {
|
|
|
2983
2983
|
return s;
|
|
2984
2984
|
}
|
|
2985
2985
|
}
|
|
2986
|
-
function
|
|
2986
|
+
function vr(e, t) {
|
|
2987
2987
|
if (!e.isValid())
|
|
2988
2988
|
return e;
|
|
2989
2989
|
if (typeof t == "string") {
|
|
@@ -2995,25 +2995,25 @@ function _r(e, t) {
|
|
|
2995
2995
|
var n = t, s = e.date();
|
|
2996
2996
|
return s = s < 29 ? s : Math.min(s, Gn(e.year(), n)), e._isUTC ? e._d.setUTCMonth(n, s) : e._d.setMonth(n, s), e;
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2999
|
-
return e != null ? (
|
|
2998
|
+
function yr(e) {
|
|
2999
|
+
return e != null ? (vr(this, e), v.updateOffset(this, !0), this) : vt(this, "Month");
|
|
3000
3000
|
}
|
|
3001
3001
|
function Vl() {
|
|
3002
3002
|
return Gn(this.year(), this.month());
|
|
3003
3003
|
}
|
|
3004
3004
|
function jl(e) {
|
|
3005
|
-
return this._monthsParseExact ? (
|
|
3005
|
+
return this._monthsParseExact ? (P(this, "_monthsRegex") || gr.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (P(this, "_monthsShortRegex") || (this._monthsShortRegex = Ul), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
3006
3006
|
}
|
|
3007
3007
|
function zl(e) {
|
|
3008
|
-
return this._monthsParseExact ? (
|
|
3008
|
+
return this._monthsParseExact ? (P(this, "_monthsRegex") || gr.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (P(this, "_monthsRegex") || (this._monthsRegex = $l), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
3009
3009
|
}
|
|
3010
|
-
function
|
|
3010
|
+
function gr() {
|
|
3011
3011
|
function e(l, u) {
|
|
3012
3012
|
return u.length - l.length;
|
|
3013
3013
|
}
|
|
3014
3014
|
var t = [], n = [], s = [], r, a, o, i;
|
|
3015
3015
|
for (r = 0; r < 12; r++)
|
|
3016
|
-
a = xe([2e3, r]), o =
|
|
3016
|
+
a = xe([2e3, r]), o = Re(this.monthsShort(a, "")), i = Re(this.months(a, "")), t.push(o), n.push(i), s.push(i), s.push(o);
|
|
3017
3017
|
t.sort(e), n.sort(e), s.sort(e), this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
3018
3018
|
"^(" + n.join("|") + ")",
|
|
3019
3019
|
"i"
|
|
@@ -3034,7 +3034,7 @@ function $t(e, t, n) {
|
|
|
3034
3034
|
var s = 7 + t - n, r = (7 + yt(e, 0, s).getUTCDay() - t) % 7;
|
|
3035
3035
|
return -r + s - 1;
|
|
3036
3036
|
}
|
|
3037
|
-
function
|
|
3037
|
+
function br(e, t, n, s, r) {
|
|
3038
3038
|
var a = (7 + n - s) % 7, o = $t(e, s, r), i = 1 + 7 * (t - 1) + a + o, l, u;
|
|
3039
3039
|
return i <= 0 ? (l = e - 1, u = _t(l) + i) : i > _t(e) ? (l = e + 1, u = i - _t(e)) : (l = e, u = i), {
|
|
3040
3040
|
year: l,
|
|
@@ -3043,12 +3043,12 @@ function gr(e, t, n, s, r) {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
function gt(e, t, n) {
|
|
3045
3045
|
var s = $t(e.year(), t, n), r = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, a, o;
|
|
3046
|
-
return r < 1 ? (o = e.year() - 1, a = r +
|
|
3046
|
+
return r < 1 ? (o = e.year() - 1, a = r + Pe(o, t, n)) : r > Pe(e.year(), t, n) ? (a = r - Pe(e.year(), t, n), o = e.year() + 1) : (o = e.year(), a = r), {
|
|
3047
3047
|
week: a,
|
|
3048
3048
|
year: o
|
|
3049
3049
|
};
|
|
3050
3050
|
}
|
|
3051
|
-
function
|
|
3051
|
+
function Pe(e, t, n) {
|
|
3052
3052
|
var s = $t(e, t, n), r = $t(e + 1, t, n);
|
|
3053
3053
|
return (_t(e) - s + r) / 7;
|
|
3054
3054
|
}
|
|
@@ -3127,7 +3127,7 @@ function tu(e, t) {
|
|
|
3127
3127
|
function Vn(e, t) {
|
|
3128
3128
|
return e.slice(t, 7).concat(e.slice(0, t));
|
|
3129
3129
|
}
|
|
3130
|
-
var nu = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
3130
|
+
var nu = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), wr = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), su = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), ru = xt, au = xt, ou = xt;
|
|
3131
3131
|
function iu(e, t) {
|
|
3132
3132
|
var n = ve(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
3133
3133
|
return e === !0 ? Vn(n, this._week.dow) : e ? n[e.day()] : n;
|
|
@@ -3197,13 +3197,13 @@ function pu(e) {
|
|
|
3197
3197
|
return this.day() || 7;
|
|
3198
3198
|
}
|
|
3199
3199
|
function mu(e) {
|
|
3200
|
-
return this._weekdaysParseExact ? (
|
|
3200
|
+
return this._weekdaysParseExact ? (P(this, "_weekdaysRegex") || jn.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (P(this, "_weekdaysRegex") || (this._weekdaysRegex = ru), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
3201
3201
|
}
|
|
3202
3202
|
function _u(e) {
|
|
3203
|
-
return this._weekdaysParseExact ? (
|
|
3203
|
+
return this._weekdaysParseExact ? (P(this, "_weekdaysRegex") || jn.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (P(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = au), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
3204
3204
|
}
|
|
3205
3205
|
function vu(e) {
|
|
3206
|
-
return this._weekdaysParseExact ? (
|
|
3206
|
+
return this._weekdaysParseExact ? (P(this, "_weekdaysRegex") || jn.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (P(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = ou), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
3207
3207
|
}
|
|
3208
3208
|
function jn() {
|
|
3209
3209
|
function e(c, b) {
|
|
@@ -3211,7 +3211,7 @@ function jn() {
|
|
|
3211
3211
|
}
|
|
3212
3212
|
var t = [], n = [], s = [], r = [], a, o, i, l, u;
|
|
3213
3213
|
for (a = 0; a < 7; a++)
|
|
3214
|
-
o = xe([2e3, 1]).day(a), i =
|
|
3214
|
+
o = xe([2e3, 1]).day(a), i = Re(this.weekdaysMin(o, "")), l = Re(this.weekdaysShort(o, "")), u = Re(this.weekdays(o, "")), t.push(i), n.push(l), s.push(u), r.push(i), r.push(l), r.push(u);
|
|
3215
3215
|
t.sort(e), n.sort(e), s.sort(e), r.sort(e), this._weekdaysRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
3216
3216
|
"^(" + s.join("|") + ")",
|
|
3217
3217
|
"i"
|
|
@@ -3244,7 +3244,7 @@ x("Hmm", 0, 0, function() {
|
|
|
3244
3244
|
x("Hmmss", 0, 0, function() {
|
|
3245
3245
|
return "" + this.hours() + Se(this.minutes(), 2) + Se(this.seconds(), 2);
|
|
3246
3246
|
});
|
|
3247
|
-
function
|
|
3247
|
+
function kr(e, t) {
|
|
3248
3248
|
x(e, 0, 0, function() {
|
|
3249
3249
|
return this.localeData().meridiem(
|
|
3250
3250
|
this.hours(),
|
|
@@ -3253,23 +3253,23 @@ function wr(e, t) {
|
|
|
3253
3253
|
);
|
|
3254
3254
|
});
|
|
3255
3255
|
}
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
function
|
|
3256
|
+
kr("a", !0);
|
|
3257
|
+
kr("A", !1);
|
|
3258
|
+
function Mr(e, t) {
|
|
3259
3259
|
return t._meridiemParse;
|
|
3260
3260
|
}
|
|
3261
|
-
y("a",
|
|
3262
|
-
y("A",
|
|
3261
|
+
y("a", Mr);
|
|
3262
|
+
y("A", Mr);
|
|
3263
3263
|
y("H", V, Fn);
|
|
3264
3264
|
y("h", V, dt);
|
|
3265
3265
|
y("k", V, dt);
|
|
3266
3266
|
y("HH", V, le);
|
|
3267
3267
|
y("hh", V, le);
|
|
3268
3268
|
y("kk", V, le);
|
|
3269
|
-
y("hmm",
|
|
3270
|
-
y("hmmss",
|
|
3271
|
-
y("Hmm",
|
|
3272
|
-
y("Hmmss",
|
|
3269
|
+
y("hmm", cr);
|
|
3270
|
+
y("hmmss", hr);
|
|
3271
|
+
y("Hmm", cr);
|
|
3272
|
+
y("Hmmss", hr);
|
|
3273
3273
|
W(["H", "HH"], X);
|
|
3274
3274
|
W(["k", "kk"], function(e, t, n) {
|
|
3275
3275
|
var s = Y(e);
|
|
@@ -3304,7 +3304,7 @@ var bu = /[ap]\.?m?\.?/i, wu = ct("Hours", !0);
|
|
|
3304
3304
|
function ku(e, t, n) {
|
|
3305
3305
|
return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM";
|
|
3306
3306
|
}
|
|
3307
|
-
var
|
|
3307
|
+
var Sr = {
|
|
3308
3308
|
calendar: dl,
|
|
3309
3309
|
longDateFormat: pl,
|
|
3310
3310
|
invalidDate: _l,
|
|
@@ -3312,11 +3312,11 @@ var Mr = {
|
|
|
3312
3312
|
dayOfMonthOrdinalParse: gl,
|
|
3313
3313
|
relativeTime: wl,
|
|
3314
3314
|
months: Al,
|
|
3315
|
-
monthsShort:
|
|
3315
|
+
monthsShort: mr,
|
|
3316
3316
|
week: ql,
|
|
3317
3317
|
weekdays: nu,
|
|
3318
3318
|
weekdaysMin: su,
|
|
3319
|
-
weekdaysShort:
|
|
3319
|
+
weekdaysShort: wr,
|
|
3320
3320
|
meridiemParse: bu
|
|
3321
3321
|
}, j = {}, pt = {}, bt;
|
|
3322
3322
|
function Mu(e, t) {
|
|
@@ -3363,9 +3363,9 @@ function Ge(e, t) {
|
|
|
3363
3363
|
}
|
|
3364
3364
|
function Bn(e, t) {
|
|
3365
3365
|
if (t !== null) {
|
|
3366
|
-
var n, s =
|
|
3366
|
+
var n, s = Sr;
|
|
3367
3367
|
if (t.abbr = e, j[e] != null)
|
|
3368
|
-
|
|
3368
|
+
ir(
|
|
3369
3369
|
"defineLocaleOverride",
|
|
3370
3370
|
"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
|
|
3371
3371
|
), s = j[e]._config;
|
|
@@ -3387,7 +3387,7 @@ function Bn(e, t) {
|
|
|
3387
3387
|
}
|
|
3388
3388
|
function Ou(e, t) {
|
|
3389
3389
|
if (t != null) {
|
|
3390
|
-
var n, s, r =
|
|
3390
|
+
var n, s, r = Sr;
|
|
3391
3391
|
j[e] != null && j[e].parentLocale != null ? j[e].set(yn(j[e]._config, t)) : (s = Qt(e), s != null && (r = s._config), t = yn(r, t), s == null && (t.abbr = e), n = new An(t), n.parentLocale = j[e], j[e] = n), Ge(e);
|
|
3392
3392
|
} else
|
|
3393
3393
|
j[e] != null && (j[e].parentLocale != null ? (j[e] = j[e].parentLocale, e === Ge() && Ge(e)) : j[e] != null && delete j[e]);
|
|
@@ -3447,7 +3447,7 @@ var Tu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
3447
3447
|
PDT: -420,
|
|
3448
3448
|
PST: -480
|
|
3449
3449
|
};
|
|
3450
|
-
function
|
|
3450
|
+
function xr(e) {
|
|
3451
3451
|
var t, n, s = e._i, r = Tu.exec(s) || Nu.exec(s), a, o, i, l, u = Et.length, c = dn.length;
|
|
3452
3452
|
if (r) {
|
|
3453
3453
|
for (N(e).iso = !0, t = 0, n = u; t < n; t++)
|
|
@@ -3485,17 +3485,17 @@ function Sr(e) {
|
|
|
3485
3485
|
} else
|
|
3486
3486
|
e._isValid = !1;
|
|
3487
3487
|
}
|
|
3488
|
-
function
|
|
3488
|
+
function Ru(e, t, n, s, r, a) {
|
|
3489
3489
|
var o = [
|
|
3490
|
-
|
|
3491
|
-
|
|
3490
|
+
Pu(e),
|
|
3491
|
+
mr.indexOf(t),
|
|
3492
3492
|
parseInt(n, 10),
|
|
3493
3493
|
parseInt(s, 10),
|
|
3494
3494
|
parseInt(r, 10)
|
|
3495
3495
|
];
|
|
3496
3496
|
return a && o.push(parseInt(a, 10)), o;
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3498
|
+
function Pu(e) {
|
|
3499
3499
|
var t = parseInt(e, 10);
|
|
3500
3500
|
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
|
|
3501
3501
|
}
|
|
@@ -3504,7 +3504,7 @@ function Lu(e) {
|
|
|
3504
3504
|
}
|
|
3505
3505
|
function Au(e, t, n) {
|
|
3506
3506
|
if (e) {
|
|
3507
|
-
var s =
|
|
3507
|
+
var s = wr.indexOf(e), r = new Date(
|
|
3508
3508
|
t[0],
|
|
3509
3509
|
t[1],
|
|
3510
3510
|
t[2]
|
|
@@ -3522,10 +3522,10 @@ function Uu(e, t, n) {
|
|
|
3522
3522
|
var s = parseInt(n, 10), r = s % 100, a = (s - r) / 100;
|
|
3523
3523
|
return a * 60 + r;
|
|
3524
3524
|
}
|
|
3525
|
-
function
|
|
3525
|
+
function Or(e) {
|
|
3526
3526
|
var t = Yu.exec(Lu(e._i)), n;
|
|
3527
3527
|
if (t) {
|
|
3528
|
-
if (n =
|
|
3528
|
+
if (n = Ru(
|
|
3529
3529
|
t[4],
|
|
3530
3530
|
t[3],
|
|
3531
3531
|
t[2],
|
|
@@ -3544,11 +3544,11 @@ function $u(e) {
|
|
|
3544
3544
|
e._d = /* @__PURE__ */ new Date(+t[1]);
|
|
3545
3545
|
return;
|
|
3546
3546
|
}
|
|
3547
|
-
if (
|
|
3547
|
+
if (xr(e), e._isValid === !1)
|
|
3548
3548
|
delete e._isValid;
|
|
3549
3549
|
else
|
|
3550
3550
|
return;
|
|
3551
|
-
if (
|
|
3551
|
+
if (Or(e), e._isValid === !1)
|
|
3552
3552
|
delete e._isValid;
|
|
3553
3553
|
else
|
|
3554
3554
|
return;
|
|
@@ -3590,7 +3590,7 @@ function Hu(e) {
|
|
|
3590
3590
|
t.GG,
|
|
3591
3591
|
e._a[Q],
|
|
3592
3592
|
gt(G(), 1, 4).year
|
|
3593
|
-
), s = tt(t.W, 1), r = tt(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, u = gt(G(), a, o), n = tt(t.gg, e._a[Q], u.year), s = tt(t.w, u.week), t.d != null ? (r = t.d, (r < 0 || r > 6) && (l = !0)) : t.e != null ? (r = t.e + a, (t.e < 0 || t.e > 6) && (l = !0)) : r = a), s < 1 || s >
|
|
3593
|
+
), s = tt(t.W, 1), r = tt(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, u = gt(G(), a, o), n = tt(t.gg, e._a[Q], u.year), s = tt(t.w, u.week), t.d != null ? (r = t.d, (r < 0 || r > 6) && (l = !0)) : t.e != null ? (r = t.e + a, (t.e < 0 || t.e > 6) && (l = !0)) : r = a), s < 1 || s > Pe(n, a, o) ? N(e)._overflowWeeks = !0 : l != null ? N(e)._overflowWeekday = !0 : (i = br(n, s, r, a, o), e._a[Q] = i.year, e._dayOfYear = i.dayOfYear);
|
|
3594
3594
|
}
|
|
3595
3595
|
v.ISO_8601 = function() {
|
|
3596
3596
|
};
|
|
@@ -3598,16 +3598,16 @@ v.RFC_2822 = function() {
|
|
|
3598
3598
|
};
|
|
3599
3599
|
function Xn(e) {
|
|
3600
3600
|
if (e._f === v.ISO_8601) {
|
|
3601
|
-
|
|
3601
|
+
xr(e);
|
|
3602
3602
|
return;
|
|
3603
3603
|
}
|
|
3604
3604
|
if (e._f === v.RFC_2822) {
|
|
3605
|
-
|
|
3605
|
+
Or(e);
|
|
3606
3606
|
return;
|
|
3607
3607
|
}
|
|
3608
3608
|
e._a = [], N(e).empty = !0;
|
|
3609
3609
|
var t = "" + e._i, n, s, r, a, o, i = t.length, l = 0, u, c;
|
|
3610
|
-
for (r =
|
|
3610
|
+
for (r = lr(e._f, e._locale).match(Un) || [], c = r.length, n = 0; n < c; n++)
|
|
3611
3611
|
a = r[n], s = (t.match(Tl(a, e)) || [])[0], s && (o = t.substr(0, t.indexOf(s)), o.length > 0 && N(e).unusedInput.push(o), t = t.slice(
|
|
3612
3612
|
t.indexOf(s) + s.length
|
|
3613
3613
|
), l += s.length), rt[a] ? (s ? N(e).empty = !1 : N(e).unusedTokens.push(a), Dl(a, s, e)) : e._strict && !s && N(e).unusedTokens.push(a);
|
|
@@ -3628,13 +3628,13 @@ function Gu(e) {
|
|
|
3628
3628
|
return;
|
|
3629
3629
|
}
|
|
3630
3630
|
for (r = 0; r < l; r++)
|
|
3631
|
-
a = 0, o = !1, t = Ln({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[r], Xn(t),
|
|
3631
|
+
a = 0, o = !1, t = Ln({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[r], Xn(t), Pn(t) && (o = !0), a += N(t).charsLeftOver, a += N(t).unusedTokens.length * 10, N(t).score = a, i ? a < s && (s = a, n = t) : (s == null || a < s || o) && (s = a, n = t, o && (i = !0));
|
|
3632
3632
|
He(e, n || t);
|
|
3633
3633
|
}
|
|
3634
3634
|
function Vu(e) {
|
|
3635
3635
|
if (!e._d) {
|
|
3636
3636
|
var t = $n(e._i), n = t.day === void 0 ? t.date : t.day;
|
|
3637
|
-
e._a =
|
|
3637
|
+
e._a = ar(
|
|
3638
3638
|
[t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond],
|
|
3639
3639
|
function(s) {
|
|
3640
3640
|
return s && parseInt(s, 10);
|
|
@@ -3643,25 +3643,25 @@ function Vu(e) {
|
|
|
3643
3643
|
}
|
|
3644
3644
|
}
|
|
3645
3645
|
function ju(e) {
|
|
3646
|
-
var t = new St(Zn(
|
|
3646
|
+
var t = new St(Zn(Cr(e)));
|
|
3647
3647
|
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
3648
3648
|
}
|
|
3649
|
-
function
|
|
3649
|
+
function Cr(e) {
|
|
3650
3650
|
var t = e._i, n = e._f;
|
|
3651
|
-
return e._locale = e._locale || Ue(e._l), t === null || n === void 0 && t === "" ? zt({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), ye(t) ? new St(Zn(t)) : (Mt(t) ? e._d = t : ve(n) ? Gu(e) : n ? Xn(e) : zu(e),
|
|
3651
|
+
return e._locale = e._locale || Ue(e._l), t === null || n === void 0 && t === "" ? zt({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), ye(t) ? new St(Zn(t)) : (Mt(t) ? e._d = t : ve(n) ? Gu(e) : n ? Xn(e) : zu(e), Pn(e) || (e._d = null), e));
|
|
3652
3652
|
}
|
|
3653
3653
|
function zu(e) {
|
|
3654
3654
|
var t = e._i;
|
|
3655
|
-
ne(t) ? e._d = new Date(v.now()) : Mt(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? $u(e) : ve(t) ? (e._a =
|
|
3655
|
+
ne(t) ? e._d = new Date(v.now()) : Mt(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? $u(e) : ve(t) ? (e._a = ar(t.slice(0), function(n) {
|
|
3656
3656
|
return parseInt(n, 10);
|
|
3657
3657
|
}), qn(e)) : Ze(t) ? Vu(e) : Ae(t) ? e._d = new Date(t) : v.createFromInputFallback(e);
|
|
3658
3658
|
}
|
|
3659
|
-
function
|
|
3659
|
+
function Tr(e, t, n, s, r) {
|
|
3660
3660
|
var a = {};
|
|
3661
|
-
return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (Ze(e) &&
|
|
3661
|
+
return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (Ze(e) && Rn(e) || ve(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = r, a._l = n, a._i = e, a._f = t, a._strict = s, ju(a);
|
|
3662
3662
|
}
|
|
3663
3663
|
function G(e, t, n, s) {
|
|
3664
|
-
return
|
|
3664
|
+
return Tr(e, t, n, s, !1);
|
|
3665
3665
|
}
|
|
3666
3666
|
var Bu = he(
|
|
3667
3667
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
@@ -3676,7 +3676,7 @@ var Bu = he(
|
|
|
3676
3676
|
return this.isValid() && e.isValid() ? e > this ? this : e : zt();
|
|
3677
3677
|
}
|
|
3678
3678
|
);
|
|
3679
|
-
function
|
|
3679
|
+
function Nr(e, t) {
|
|
3680
3680
|
var n, s;
|
|
3681
3681
|
if (t.length === 1 && ve(t[0]) && (t = t[0]), !t.length)
|
|
3682
3682
|
return G();
|
|
@@ -3686,11 +3686,11 @@ function Tr(e, t) {
|
|
|
3686
3686
|
}
|
|
3687
3687
|
function qu() {
|
|
3688
3688
|
var e = [].slice.call(arguments, 0);
|
|
3689
|
-
return
|
|
3689
|
+
return Nr("isBefore", e);
|
|
3690
3690
|
}
|
|
3691
3691
|
function Xu() {
|
|
3692
3692
|
var e = [].slice.call(arguments, 0);
|
|
3693
|
-
return
|
|
3693
|
+
return Nr("isAfter", e);
|
|
3694
3694
|
}
|
|
3695
3695
|
var Ju = function() {
|
|
3696
3696
|
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
@@ -3708,7 +3708,7 @@ var Ju = function() {
|
|
|
3708
3708
|
function Ku(e) {
|
|
3709
3709
|
var t, n = !1, s, r = mt.length;
|
|
3710
3710
|
for (t in e)
|
|
3711
|
-
if (
|
|
3711
|
+
if (P(e, t) && !(B.call(mt, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
3712
3712
|
return !1;
|
|
3713
3713
|
for (s = 0; s < r; ++s)
|
|
3714
3714
|
if (e[mt[s]]) {
|
|
@@ -3742,14 +3742,14 @@ function td(e, t, n) {
|
|
|
3742
3742
|
Y(e[o]) !== Y(t[o]) && a++;
|
|
3743
3743
|
return a + r;
|
|
3744
3744
|
}
|
|
3745
|
-
function
|
|
3745
|
+
function Dr(e, t) {
|
|
3746
3746
|
x(e, 0, 0, function() {
|
|
3747
3747
|
var n = this.utcOffset(), s = "+";
|
|
3748
3748
|
return n < 0 && (n = -n, s = "-"), s + Se(~~(n / 60), 2) + t + Se(~~n % 60, 2);
|
|
3749
3749
|
});
|
|
3750
3750
|
}
|
|
3751
|
-
|
|
3752
|
-
|
|
3751
|
+
Dr("Z", ":");
|
|
3752
|
+
Dr("ZZ", "");
|
|
3753
3753
|
y("Z", Jt);
|
|
3754
3754
|
y("ZZ", Jt);
|
|
3755
3755
|
W(["Z", "ZZ"], function(e, t, n) {
|
|
@@ -3778,7 +3778,7 @@ function sd(e, t, n) {
|
|
|
3778
3778
|
if (e = Jn(Jt, e), e === null)
|
|
3779
3779
|
return this;
|
|
3780
3780
|
} else Math.abs(e) < 16 && !n && (e = e * 60);
|
|
3781
|
-
return !this._isUTC && t && (r = kn(this)), this._offset = e, this._isUTC = !0, r != null && this.add(r, "m"), s !== e && (!t || this._changeInProgress ?
|
|
3781
|
+
return !this._isUTC && t && (r = kn(this)), this._offset = e, this._isUTC = !0, r != null && this.add(r, "m"), s !== e && (!t || this._changeInProgress ? Er(
|
|
3782
3782
|
this,
|
|
3783
3783
|
ge(e - s, "m"),
|
|
3784
3784
|
1,
|
|
@@ -3815,7 +3815,7 @@ function dd() {
|
|
|
3815
3815
|
if (!ne(this._isDSTShifted))
|
|
3816
3816
|
return this._isDSTShifted;
|
|
3817
3817
|
var e = {}, t;
|
|
3818
|
-
return Ln(e, this), e =
|
|
3818
|
+
return Ln(e, this), e = Cr(e), e._a ? (t = e._isUTC ? xe(e._a) : G(e._a), this._isDSTShifted = this.isValid() && td(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
3819
3819
|
}
|
|
3820
3820
|
function cd() {
|
|
3821
3821
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -3823,7 +3823,7 @@ function cd() {
|
|
|
3823
3823
|
function hd() {
|
|
3824
3824
|
return this.isValid() ? this._isUTC : !1;
|
|
3825
3825
|
}
|
|
3826
|
-
function
|
|
3826
|
+
function Ir() {
|
|
3827
3827
|
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
|
|
3828
3828
|
}
|
|
3829
3829
|
var fd = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, pd = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
@@ -3852,7 +3852,7 @@ function ge(e, t) {
|
|
|
3852
3852
|
}) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (o = md(
|
|
3853
3853
|
G(n.from),
|
|
3854
3854
|
G(n.to)
|
|
3855
|
-
), n = {}, n.ms = o.milliseconds, n.M = o.months), a = new en(n), Lt(e) &&
|
|
3855
|
+
), n = {}, n.ms = o.milliseconds, n.M = o.months), a = new en(n), Lt(e) && P(e, "_locale") && (a._locale = e._locale), Lt(e) && P(e, "_isValid") && (a._isValid = e._isValid), a;
|
|
3856
3856
|
}
|
|
3857
3857
|
ge.fn = en.prototype;
|
|
3858
3858
|
ge.invalid = ed;
|
|
@@ -3868,28 +3868,28 @@ function md(e, t) {
|
|
|
3868
3868
|
var n;
|
|
3869
3869
|
return e.isValid() && t.isValid() ? (t = Kn(t, e), e.isBefore(t) ? n = cs(e, t) : (n = cs(t, e), n.milliseconds = -n.milliseconds, n.months = -n.months), n) : { milliseconds: 0, months: 0 };
|
|
3870
3870
|
}
|
|
3871
|
-
function
|
|
3871
|
+
function Yr(e, t) {
|
|
3872
3872
|
return function(n, s) {
|
|
3873
3873
|
var r, a;
|
|
3874
|
-
return s !== null && !isNaN(+s) && (
|
|
3874
|
+
return s !== null && !isNaN(+s) && (ir(
|
|
3875
3875
|
t,
|
|
3876
3876
|
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
3877
|
-
), a = n, n = s, s = a), r = ge(n, s),
|
|
3877
|
+
), a = n, n = s, s = a), r = ge(n, s), Er(this, r, e), this;
|
|
3878
3878
|
};
|
|
3879
3879
|
}
|
|
3880
|
-
function
|
|
3880
|
+
function Er(e, t, n, s) {
|
|
3881
3881
|
var r = t._milliseconds, a = wn(t._days), o = wn(t._months);
|
|
3882
|
-
e.isValid() && (s = s ?? !0, o &&
|
|
3882
|
+
e.isValid() && (s = s ?? !0, o && vr(e, vt(e, "Month") + o * n), a && pr(e, "Date", vt(e, "Date") + a * n), r && e._d.setTime(e._d.valueOf() + r * n), s && v.updateOffset(e, a || o));
|
|
3883
3883
|
}
|
|
3884
|
-
var _d =
|
|
3885
|
-
function
|
|
3884
|
+
var _d = Yr(1, "add"), vd = Yr(-1, "subtract");
|
|
3885
|
+
function Rr(e) {
|
|
3886
3886
|
return typeof e == "string" || e instanceof String;
|
|
3887
3887
|
}
|
|
3888
3888
|
function yd(e) {
|
|
3889
|
-
return ye(e) || Mt(e) ||
|
|
3889
|
+
return ye(e) || Mt(e) || Rr(e) || Ae(e) || bd(e) || gd(e) || e === null || e === void 0;
|
|
3890
3890
|
}
|
|
3891
3891
|
function gd(e) {
|
|
3892
|
-
var t = Ze(e) && !
|
|
3892
|
+
var t = Ze(e) && !Rn(e), n = !1, s = [
|
|
3893
3893
|
"years",
|
|
3894
3894
|
"year",
|
|
3895
3895
|
"y",
|
|
@@ -3916,17 +3916,17 @@ function gd(e) {
|
|
|
3916
3916
|
"ms"
|
|
3917
3917
|
], r, a, o = s.length;
|
|
3918
3918
|
for (r = 0; r < o; r += 1)
|
|
3919
|
-
a = s[r], n = n ||
|
|
3919
|
+
a = s[r], n = n || P(e, a);
|
|
3920
3920
|
return t && n;
|
|
3921
3921
|
}
|
|
3922
3922
|
function bd(e) {
|
|
3923
3923
|
var t = ve(e), n = !1;
|
|
3924
3924
|
return t && (n = e.filter(function(s) {
|
|
3925
|
-
return !Ae(s) &&
|
|
3925
|
+
return !Ae(s) && Rr(e);
|
|
3926
3926
|
}).length === 0), t && n;
|
|
3927
3927
|
}
|
|
3928
3928
|
function wd(e) {
|
|
3929
|
-
var t = Ze(e) && !
|
|
3929
|
+
var t = Ze(e) && !Rn(e), n = !1, s = [
|
|
3930
3930
|
"sameDay",
|
|
3931
3931
|
"nextDay",
|
|
3932
3932
|
"lastDay",
|
|
@@ -3935,7 +3935,7 @@ function wd(e) {
|
|
|
3935
3935
|
"sameElse"
|
|
3936
3936
|
], r, a;
|
|
3937
3937
|
for (r = 0; r < s.length; r += 1)
|
|
3938
|
-
a = s[r], n = n ||
|
|
3938
|
+
a = s[r], n = n || P(e, a);
|
|
3939
3939
|
return t && n;
|
|
3940
3940
|
}
|
|
3941
3941
|
function kd(e, t) {
|
|
@@ -4030,23 +4030,23 @@ function Ed(e) {
|
|
|
4030
4030
|
if (!this.isValid())
|
|
4031
4031
|
return null;
|
|
4032
4032
|
var t = e !== !0, n = t ? this.clone().utc() : this;
|
|
4033
|
-
return n.year() < 0 || n.year() > 9999 ?
|
|
4033
|
+
return n.year() < 0 || n.year() > 9999 ? Pt(
|
|
4034
4034
|
n,
|
|
4035
4035
|
t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
4036
|
-
) : Oe(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z",
|
|
4036
|
+
) : Oe(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Pt(n, "Z")) : Pt(
|
|
4037
4037
|
n,
|
|
4038
4038
|
t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
4039
4039
|
);
|
|
4040
4040
|
}
|
|
4041
|
-
function
|
|
4041
|
+
function Rd() {
|
|
4042
4042
|
if (!this.isValid())
|
|
4043
4043
|
return "moment.invalid(/* " + this._i + " */)";
|
|
4044
4044
|
var e = "moment", t = "", n, s, r, a;
|
|
4045
4045
|
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), n = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", r = "-MM-DD[T]HH:mm:ss.SSS", a = t + '[")]', this.format(n + s + r + a);
|
|
4046
4046
|
}
|
|
4047
|
-
function
|
|
4047
|
+
function Pd(e) {
|
|
4048
4048
|
e || (e = this.isUtc() ? v.defaultFormatUtc : v.defaultFormat);
|
|
4049
|
-
var t =
|
|
4049
|
+
var t = Pt(this, e);
|
|
4050
4050
|
return this.localeData().postformat(t);
|
|
4051
4051
|
}
|
|
4052
4052
|
function Ld(e, t) {
|
|
@@ -4065,30 +4065,30 @@ function Pr(e) {
|
|
|
4065
4065
|
var t;
|
|
4066
4066
|
return e === void 0 ? this._locale._abbr : (t = Ue(e), t != null && (this._locale = t), this);
|
|
4067
4067
|
}
|
|
4068
|
-
var
|
|
4068
|
+
var Lr = he(
|
|
4069
4069
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
4070
4070
|
function(e) {
|
|
4071
4071
|
return e === void 0 ? this.localeData() : this.locale(e);
|
|
4072
4072
|
}
|
|
4073
4073
|
);
|
|
4074
|
-
function
|
|
4074
|
+
function Ar() {
|
|
4075
4075
|
return this._locale;
|
|
4076
4076
|
}
|
|
4077
|
-
var Wt = 1e3, at = 60 * Wt, Ht = 60 * at,
|
|
4077
|
+
var Wt = 1e3, at = 60 * Wt, Ht = 60 * at, Ur = (365 * 400 + 97) * 24 * Ht;
|
|
4078
4078
|
function ot(e, t) {
|
|
4079
4079
|
return (e % t + t) % t;
|
|
4080
4080
|
}
|
|
4081
|
-
function Ur(e, t, n) {
|
|
4082
|
-
return e < 100 && e >= 0 ? new Date(e + 400, t, n) - Ar : new Date(e, t, n).valueOf();
|
|
4083
|
-
}
|
|
4084
4081
|
function $r(e, t, n) {
|
|
4085
|
-
return e < 100 && e >= 0 ? Date
|
|
4082
|
+
return e < 100 && e >= 0 ? new Date(e + 400, t, n) - Ur : new Date(e, t, n).valueOf();
|
|
4083
|
+
}
|
|
4084
|
+
function Wr(e, t, n) {
|
|
4085
|
+
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - Ur : Date.UTC(e, t, n);
|
|
4086
4086
|
}
|
|
4087
4087
|
function Wd(e) {
|
|
4088
4088
|
var t, n;
|
|
4089
4089
|
if (e = fe(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
4090
4090
|
return this;
|
|
4091
|
-
switch (n = this._isUTC ?
|
|
4091
|
+
switch (n = this._isUTC ? Wr : $r, e) {
|
|
4092
4092
|
case "year":
|
|
4093
4093
|
t = n(this.year(), 0, 1);
|
|
4094
4094
|
break;
|
|
@@ -4139,7 +4139,7 @@ function Hd(e) {
|
|
|
4139
4139
|
var t, n;
|
|
4140
4140
|
if (e = fe(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
4141
4141
|
return this;
|
|
4142
|
-
switch (n = this._isUTC ?
|
|
4142
|
+
switch (n = this._isUTC ? Wr : $r, e) {
|
|
4143
4143
|
case "year":
|
|
4144
4144
|
t = n(this.year() + 1, 0, 1) - 1;
|
|
4145
4145
|
break;
|
|
@@ -4223,7 +4223,7 @@ function Bd() {
|
|
|
4223
4223
|
return this.isValid() ? this.toISOString() : null;
|
|
4224
4224
|
}
|
|
4225
4225
|
function Zd() {
|
|
4226
|
-
return
|
|
4226
|
+
return Pn(this);
|
|
4227
4227
|
}
|
|
4228
4228
|
function qd() {
|
|
4229
4229
|
return He({}, N(this));
|
|
@@ -4340,13 +4340,13 @@ function rc() {
|
|
|
4340
4340
|
return this.year();
|
|
4341
4341
|
}
|
|
4342
4342
|
function ac(e) {
|
|
4343
|
-
return
|
|
4343
|
+
return P(this, "_erasNameRegex") || es.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
4344
4344
|
}
|
|
4345
4345
|
function oc(e) {
|
|
4346
|
-
return
|
|
4346
|
+
return P(this, "_erasAbbrRegex") || es.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
4347
4347
|
}
|
|
4348
4348
|
function ic(e) {
|
|
4349
|
-
return
|
|
4349
|
+
return P(this, "_erasNarrowRegex") || es.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
4350
4350
|
}
|
|
4351
4351
|
function Qn(e, t) {
|
|
4352
4352
|
return t.erasAbbrRegex(e);
|
|
@@ -4363,7 +4363,7 @@ function dc(e, t) {
|
|
|
4363
4363
|
function es() {
|
|
4364
4364
|
var e = [], t = [], n = [], s = [], r, a, o, i, l, u = this.eras();
|
|
4365
4365
|
for (r = 0, a = u.length; r < a; ++r)
|
|
4366
|
-
o =
|
|
4366
|
+
o = Re(u[r].name), i = Re(u[r].abbr), l = Re(u[r].narrow), t.push(o), e.push(i), n.push(l), s.push(o), s.push(i), s.push(l);
|
|
4367
4367
|
this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
4368
4368
|
"^(" + n.join("|") + ")",
|
|
4369
4369
|
"i"
|
|
@@ -4400,7 +4400,7 @@ Ot(["gg", "GG"], function(e, t, n, s) {
|
|
|
4400
4400
|
t[s] = v.parseTwoDigitYear(e);
|
|
4401
4401
|
});
|
|
4402
4402
|
function cc(e) {
|
|
4403
|
-
return
|
|
4403
|
+
return Hr.call(
|
|
4404
4404
|
this,
|
|
4405
4405
|
e,
|
|
4406
4406
|
this.week(),
|
|
@@ -4410,7 +4410,7 @@ function cc(e) {
|
|
|
4410
4410
|
);
|
|
4411
4411
|
}
|
|
4412
4412
|
function hc(e) {
|
|
4413
|
-
return
|
|
4413
|
+
return Hr.call(
|
|
4414
4414
|
this,
|
|
4415
4415
|
e,
|
|
4416
4416
|
this.isoWeek(),
|
|
@@ -4420,29 +4420,29 @@ function hc(e) {
|
|
|
4420
4420
|
);
|
|
4421
4421
|
}
|
|
4422
4422
|
function fc() {
|
|
4423
|
-
return
|
|
4423
|
+
return Pe(this.year(), 1, 4);
|
|
4424
4424
|
}
|
|
4425
4425
|
function pc() {
|
|
4426
|
-
return
|
|
4426
|
+
return Pe(this.isoWeekYear(), 1, 4);
|
|
4427
4427
|
}
|
|
4428
4428
|
function mc() {
|
|
4429
4429
|
var e = this.localeData()._week;
|
|
4430
|
-
return
|
|
4430
|
+
return Pe(this.year(), e.dow, e.doy);
|
|
4431
4431
|
}
|
|
4432
4432
|
function _c() {
|
|
4433
4433
|
var e = this.localeData()._week;
|
|
4434
|
-
return
|
|
4434
|
+
return Pe(this.weekYear(), e.dow, e.doy);
|
|
4435
4435
|
}
|
|
4436
|
-
function
|
|
4436
|
+
function Hr(e, t, n, s, r) {
|
|
4437
4437
|
var a;
|
|
4438
|
-
return e == null ? gt(this, s, r).year : (a =
|
|
4438
|
+
return e == null ? gt(this, s, r).year : (a = Pe(e, s, r), t > a && (t = a), vc.call(this, e, t, n, s, r));
|
|
4439
4439
|
}
|
|
4440
4440
|
function vc(e, t, n, s, r) {
|
|
4441
|
-
var a =
|
|
4441
|
+
var a = br(e, t, n, s, r), o = yt(a.year, 0, a.dayOfYear);
|
|
4442
4442
|
return this.year(o.getUTCFullYear()), this.month(o.getUTCMonth()), this.date(o.getUTCDate()), this;
|
|
4443
4443
|
}
|
|
4444
4444
|
x("Q", 0, "Qo", "quarter");
|
|
4445
|
-
y("Q",
|
|
4445
|
+
y("Q", ur);
|
|
4446
4446
|
W("Q", function(e, t) {
|
|
4447
4447
|
t[Ye] = (Y(e) - 1) * 3;
|
|
4448
4448
|
});
|
|
@@ -4459,10 +4459,10 @@ W(["D", "DD"], we);
|
|
|
4459
4459
|
W("Do", function(e, t) {
|
|
4460
4460
|
t[we] = Y(e.match(V)[0]);
|
|
4461
4461
|
});
|
|
4462
|
-
var
|
|
4462
|
+
var Fr = ct("Date", !0);
|
|
4463
4463
|
x("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
4464
4464
|
y("DDD", Zt);
|
|
4465
|
-
y("DDDD",
|
|
4465
|
+
y("DDDD", dr);
|
|
4466
4466
|
W(["DDD", "DDDD"], function(e, t, n) {
|
|
4467
4467
|
n._dayOfYear = Y(e);
|
|
4468
4468
|
});
|
|
@@ -4507,10 +4507,10 @@ x(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
4507
4507
|
x(0, ["SSSSSSSSS", 9], 0, function() {
|
|
4508
4508
|
return this.millisecond() * 1e6;
|
|
4509
4509
|
});
|
|
4510
|
-
y("S", Zt,
|
|
4510
|
+
y("S", Zt, ur);
|
|
4511
4511
|
y("SS", Zt, le);
|
|
4512
|
-
y("SSS", Zt,
|
|
4513
|
-
var Fe,
|
|
4512
|
+
y("SSS", Zt, dr);
|
|
4513
|
+
var Fe, Gr;
|
|
4514
4514
|
for (Fe = "SSSS"; Fe.length <= 9; Fe += "S")
|
|
4515
4515
|
y(Fe, ut);
|
|
4516
4516
|
function kc(e, t) {
|
|
@@ -4518,7 +4518,7 @@ function kc(e, t) {
|
|
|
4518
4518
|
}
|
|
4519
4519
|
for (Fe = "S"; Fe.length <= 9; Fe += "S")
|
|
4520
4520
|
W(Fe, kc);
|
|
4521
|
-
|
|
4521
|
+
Gr = ct("Milliseconds", !1);
|
|
4522
4522
|
x("z", 0, 0, "zoneAbbr");
|
|
4523
4523
|
x("zz", 0, 0, "zoneName");
|
|
4524
4524
|
function Mc() {
|
|
@@ -4533,12 +4533,12 @@ d.calendar = Md;
|
|
|
4533
4533
|
d.clone = Sd;
|
|
4534
4534
|
d.diff = Id;
|
|
4535
4535
|
d.endOf = Hd;
|
|
4536
|
-
d.format =
|
|
4536
|
+
d.format = Pd;
|
|
4537
4537
|
d.from = Ld;
|
|
4538
4538
|
d.fromNow = Ad;
|
|
4539
4539
|
d.to = Ud;
|
|
4540
4540
|
d.toNow = $d;
|
|
4541
|
-
d.get =
|
|
4541
|
+
d.get = Rl;
|
|
4542
4542
|
d.invalidAt = Xd;
|
|
4543
4543
|
d.isAfter = xd;
|
|
4544
4544
|
d.isBefore = Od;
|
|
@@ -4547,20 +4547,20 @@ d.isSame = Td;
|
|
|
4547
4547
|
d.isSameOrAfter = Nd;
|
|
4548
4548
|
d.isSameOrBefore = Dd;
|
|
4549
4549
|
d.isValid = Zd;
|
|
4550
|
-
d.lang =
|
|
4550
|
+
d.lang = Lr;
|
|
4551
4551
|
d.locale = Pr;
|
|
4552
|
-
d.localeData =
|
|
4552
|
+
d.localeData = Ar;
|
|
4553
4553
|
d.max = Zu;
|
|
4554
4554
|
d.min = Bu;
|
|
4555
4555
|
d.parsingFlags = qd;
|
|
4556
|
-
d.set =
|
|
4556
|
+
d.set = Pl;
|
|
4557
4557
|
d.startOf = Wd;
|
|
4558
4558
|
d.subtract = vd;
|
|
4559
4559
|
d.toArray = jd;
|
|
4560
4560
|
d.toObject = zd;
|
|
4561
4561
|
d.toDate = Vd;
|
|
4562
4562
|
d.toISOString = Ed;
|
|
4563
|
-
d.inspect =
|
|
4563
|
+
d.inspect = Rd;
|
|
4564
4564
|
typeof Symbol < "u" && Symbol.for != null && (d[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
4565
4565
|
return "Moment<" + this.format() + ">";
|
|
4566
4566
|
});
|
|
@@ -4573,12 +4573,12 @@ d.eraName = tc;
|
|
|
4573
4573
|
d.eraNarrow = nc;
|
|
4574
4574
|
d.eraAbbr = sc;
|
|
4575
4575
|
d.eraYear = rc;
|
|
4576
|
-
d.year =
|
|
4576
|
+
d.year = fr;
|
|
4577
4577
|
d.isLeapYear = El;
|
|
4578
4578
|
d.weekYear = cc;
|
|
4579
4579
|
d.isoWeekYear = hc;
|
|
4580
4580
|
d.quarter = d.quarters = yc;
|
|
4581
|
-
d.month =
|
|
4581
|
+
d.month = yr;
|
|
4582
4582
|
d.daysInMonth = Vl;
|
|
4583
4583
|
d.week = d.weeks = Kl;
|
|
4584
4584
|
d.isoWeek = d.isoWeeks = Ql;
|
|
@@ -4586,7 +4586,7 @@ d.weeksInYear = mc;
|
|
|
4586
4586
|
d.weeksInWeekYear = _c;
|
|
4587
4587
|
d.isoWeeksInYear = fc;
|
|
4588
4588
|
d.isoWeeksInISOWeekYear = pc;
|
|
4589
|
-
d.date =
|
|
4589
|
+
d.date = Fr;
|
|
4590
4590
|
d.day = d.days = hu;
|
|
4591
4591
|
d.weekday = fu;
|
|
4592
4592
|
d.isoWeekday = pu;
|
|
@@ -4594,7 +4594,7 @@ d.dayOfYear = gc;
|
|
|
4594
4594
|
d.hour = d.hours = wu;
|
|
4595
4595
|
d.minute = d.minutes = bc;
|
|
4596
4596
|
d.second = d.seconds = wc;
|
|
4597
|
-
d.millisecond = d.milliseconds =
|
|
4597
|
+
d.millisecond = d.milliseconds = Gr;
|
|
4598
4598
|
d.utcOffset = sd;
|
|
4599
4599
|
d.utc = ad;
|
|
4600
4600
|
d.local = od;
|
|
@@ -4603,21 +4603,21 @@ d.hasAlignedHourOffset = ld;
|
|
|
4603
4603
|
d.isDST = ud;
|
|
4604
4604
|
d.isLocal = cd;
|
|
4605
4605
|
d.isUtcOffset = hd;
|
|
4606
|
-
d.isUtc =
|
|
4607
|
-
d.isUTC =
|
|
4606
|
+
d.isUtc = Ir;
|
|
4607
|
+
d.isUTC = Ir;
|
|
4608
4608
|
d.zoneAbbr = Mc;
|
|
4609
4609
|
d.zoneName = Sc;
|
|
4610
4610
|
d.dates = he(
|
|
4611
4611
|
"dates accessor is deprecated. Use date instead.",
|
|
4612
|
-
|
|
4612
|
+
Fr
|
|
4613
4613
|
);
|
|
4614
4614
|
d.months = he(
|
|
4615
4615
|
"months accessor is deprecated. Use month instead",
|
|
4616
|
-
|
|
4616
|
+
yr
|
|
4617
4617
|
);
|
|
4618
4618
|
d.years = he(
|
|
4619
4619
|
"years accessor is deprecated. Use year instead",
|
|
4620
|
-
|
|
4620
|
+
fr
|
|
4621
4621
|
);
|
|
4622
4622
|
d.zone = he(
|
|
4623
4623
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
@@ -4633,7 +4633,7 @@ function xc(e) {
|
|
|
4633
4633
|
function Oc() {
|
|
4634
4634
|
return G.apply(null, arguments).parseZone();
|
|
4635
4635
|
}
|
|
4636
|
-
function
|
|
4636
|
+
function Vr(e) {
|
|
4637
4637
|
return e;
|
|
4638
4638
|
}
|
|
4639
4639
|
var L = An.prototype;
|
|
@@ -4641,8 +4641,8 @@ L.calendar = cl;
|
|
|
4641
4641
|
L.longDateFormat = ml;
|
|
4642
4642
|
L.invalidDate = vl;
|
|
4643
4643
|
L.ordinal = bl;
|
|
4644
|
-
L.preparse =
|
|
4645
|
-
L.postformat =
|
|
4644
|
+
L.preparse = Vr;
|
|
4645
|
+
L.postformat = Vr;
|
|
4646
4646
|
L.relativeTime = kl;
|
|
4647
4647
|
L.pastFuture = Ml;
|
|
4648
4648
|
L.set = ul;
|
|
@@ -4673,7 +4673,7 @@ function Ft(e, t, n, s) {
|
|
|
4673
4673
|
var r = Ue(), a = xe().set(s, t);
|
|
4674
4674
|
return r[n](a, e);
|
|
4675
4675
|
}
|
|
4676
|
-
function
|
|
4676
|
+
function jr(e, t, n) {
|
|
4677
4677
|
if (Ae(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
4678
4678
|
return Ft(e, t, n, "month");
|
|
4679
4679
|
var s, r = [];
|
|
@@ -4691,10 +4691,10 @@ function ts(e, t, n, s) {
|
|
|
4691
4691
|
return i;
|
|
4692
4692
|
}
|
|
4693
4693
|
function Cc(e, t) {
|
|
4694
|
-
return
|
|
4694
|
+
return jr(e, t, "months");
|
|
4695
4695
|
}
|
|
4696
4696
|
function Tc(e, t) {
|
|
4697
|
-
return
|
|
4697
|
+
return jr(e, t, "monthsShort");
|
|
4698
4698
|
}
|
|
4699
4699
|
function Nc(e, t, n) {
|
|
4700
4700
|
return ts(e, t, n, "weekdays");
|
|
@@ -4743,24 +4743,24 @@ function Yc() {
|
|
|
4743
4743
|
var e = this._data;
|
|
4744
4744
|
return this._milliseconds = Ne(this._milliseconds), this._days = Ne(this._days), this._months = Ne(this._months), e.milliseconds = Ne(e.milliseconds), e.seconds = Ne(e.seconds), e.minutes = Ne(e.minutes), e.hours = Ne(e.hours), e.months = Ne(e.months), e.years = Ne(e.years), this;
|
|
4745
4745
|
}
|
|
4746
|
-
function
|
|
4746
|
+
function zr(e, t, n, s) {
|
|
4747
4747
|
var r = ge(t, n);
|
|
4748
4748
|
return e._milliseconds += s * r._milliseconds, e._days += s * r._days, e._months += s * r._months, e._bubble();
|
|
4749
4749
|
}
|
|
4750
4750
|
function Ec(e, t) {
|
|
4751
|
-
return
|
|
4751
|
+
return zr(this, e, t, 1);
|
|
4752
4752
|
}
|
|
4753
|
-
function
|
|
4754
|
-
return
|
|
4753
|
+
function Rc(e, t) {
|
|
4754
|
+
return zr(this, e, t, -1);
|
|
4755
4755
|
}
|
|
4756
4756
|
function hs(e) {
|
|
4757
4757
|
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
4758
4758
|
}
|
|
4759
|
-
function
|
|
4759
|
+
function Pc() {
|
|
4760
4760
|
var e = this._milliseconds, t = this._days, n = this._months, s = this._data, r, a, o, i, l;
|
|
4761
|
-
return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += hs(Mn(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, r = ue(e / 1e3), s.seconds = r % 60, a = ue(r / 60), s.minutes = a % 60, o = ue(a / 60), s.hours = o % 24, t += ue(o / 24), l = ue(
|
|
4761
|
+
return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += hs(Mn(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, r = ue(e / 1e3), s.seconds = r % 60, a = ue(r / 60), s.minutes = a % 60, o = ue(a / 60), s.hours = o % 24, t += ue(o / 24), l = ue(Br(t)), n += l, t -= hs(Mn(l)), i = ue(n / 12), n %= 12, s.days = t, s.months = n, s.years = i, this;
|
|
4762
4762
|
}
|
|
4763
|
-
function
|
|
4763
|
+
function Br(e) {
|
|
4764
4764
|
return e * 4800 / 146097;
|
|
4765
4765
|
}
|
|
4766
4766
|
function Mn(e) {
|
|
@@ -4771,7 +4771,7 @@ function Lc(e) {
|
|
|
4771
4771
|
return NaN;
|
|
4772
4772
|
var t, n, s = this._milliseconds;
|
|
4773
4773
|
if (e = fe(e), e === "month" || e === "quarter" || e === "year")
|
|
4774
|
-
switch (t = this._days + s / 864e5, n = this._months +
|
|
4774
|
+
switch (t = this._days + s / 864e5, n = this._months + Br(t), e) {
|
|
4775
4775
|
case "month":
|
|
4776
4776
|
return n;
|
|
4777
4777
|
case "quarter":
|
|
@@ -4803,7 +4803,7 @@ function $e(e) {
|
|
|
4803
4803
|
return this.as(e);
|
|
4804
4804
|
};
|
|
4805
4805
|
}
|
|
4806
|
-
var
|
|
4806
|
+
var Zr = $e("ms"), Ac = $e("s"), Uc = $e("m"), $c = $e("h"), Wc = $e("d"), Hc = $e("w"), Fc = $e("M"), Gc = $e("Q"), Vc = $e("y"), jc = Zr;
|
|
4807
4807
|
function zc() {
|
|
4808
4808
|
return ge(this);
|
|
4809
4809
|
}
|
|
@@ -4868,9 +4868,9 @@ var E = en.prototype;
|
|
|
4868
4868
|
E.isValid = Qu;
|
|
4869
4869
|
E.abs = Yc;
|
|
4870
4870
|
E.add = Ec;
|
|
4871
|
-
E.subtract =
|
|
4871
|
+
E.subtract = Rc;
|
|
4872
4872
|
E.as = Lc;
|
|
4873
|
-
E.asMilliseconds =
|
|
4873
|
+
E.asMilliseconds = Zr;
|
|
4874
4874
|
E.asSeconds = Ac;
|
|
4875
4875
|
E.asMinutes = Uc;
|
|
4876
4876
|
E.asHours = $c;
|
|
@@ -4880,7 +4880,7 @@ E.asMonths = Fc;
|
|
|
4880
4880
|
E.asQuarters = Gc;
|
|
4881
4881
|
E.asYears = Vc;
|
|
4882
4882
|
E.valueOf = jc;
|
|
4883
|
-
E._bubble =
|
|
4883
|
+
E._bubble = Pc;
|
|
4884
4884
|
E.clone = zc;
|
|
4885
4885
|
E.get = Bc;
|
|
4886
4886
|
E.milliseconds = Zc;
|
|
@@ -4896,12 +4896,12 @@ E.toISOString = nn;
|
|
|
4896
4896
|
E.toString = nn;
|
|
4897
4897
|
E.toJSON = nn;
|
|
4898
4898
|
E.locale = Pr;
|
|
4899
|
-
E.localeData =
|
|
4899
|
+
E.localeData = Ar;
|
|
4900
4900
|
E.toIsoString = he(
|
|
4901
4901
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
4902
4902
|
nn
|
|
4903
4903
|
);
|
|
4904
|
-
E.lang =
|
|
4904
|
+
E.lang = Lr;
|
|
4905
4905
|
x("X", 0, 0, "unix");
|
|
4906
4906
|
x("x", 0, 0, "valueOf");
|
|
4907
4907
|
y("x", Xt);
|
|
@@ -4969,28 +4969,28 @@ const ih = "code-graph", lh = (e, t = "", n = "json") => {
|
|
|
4969
4969
|
}, uh = (e = "json") => {
|
|
4970
4970
|
const t = document.createElement("input");
|
|
4971
4971
|
return t.setAttribute("type", "file"), t.setAttribute("id", "fileElem"), t.setAttribute("multiple", "true"), t.setAttribute("accept", `${e}/*`), t.style.display = "none", document.body.appendChild(t), t.click(), t;
|
|
4972
|
-
},
|
|
4972
|
+
}, qr = "CLEAR_ALL", Xr = "DOWNLOAD_EDITOR_STATE", dh = "RUN_ENGINE", Jr = "TOGGLE_MINIMAP", Kr = "TOGGLE_PALETTE", Qr = "UPLOAD_EDITOR_STATE", ch = (e, t, n) => {
|
|
4973
4973
|
const s = n.zoomToFit.paddingLeft;
|
|
4974
|
-
t.registerCommand(
|
|
4974
|
+
t.registerCommand(qr, {
|
|
4975
4975
|
execute: () => {
|
|
4976
4976
|
t.executeCommand(We.CLEAR_CLIPBOARD_COMMAND), t.executeCommand(We.CLEAR_HISTORY_COMMAND), e.value.clear(), e.value.editor.code.clear();
|
|
4977
4977
|
},
|
|
4978
4978
|
canExecute: () => e.value.nodes.length > 0
|
|
4979
|
-
}), t.registerCommand(
|
|
4979
|
+
}), t.registerCommand(Xr, {
|
|
4980
4980
|
execute: () => {
|
|
4981
4981
|
const r = e.value.editor.save();
|
|
4982
4982
|
lh(JSON.stringify(r, null, 2), e.value.shortId);
|
|
4983
4983
|
},
|
|
4984
4984
|
canExecute: () => e.value.nodes.length > 0
|
|
4985
|
-
}), t.registerCommand(
|
|
4985
|
+
}), t.registerCommand(Kr, {
|
|
4986
4986
|
execute: () => {
|
|
4987
4987
|
n.palette.enabled = !n.palette.enabled, n.zoomToFit.paddingLeft = n.palette.enabled ? s : 50;
|
|
4988
4988
|
},
|
|
4989
4989
|
canExecute: () => !0
|
|
4990
|
-
}), t.registerCommand(
|
|
4990
|
+
}), t.registerCommand(Jr, {
|
|
4991
4991
|
execute: () => n.enableMinimap = !n.enableMinimap,
|
|
4992
4992
|
canExecute: () => e.value.nodes.length > 1
|
|
4993
|
-
}), t.registerCommand(
|
|
4993
|
+
}), t.registerCommand(Qr, {
|
|
4994
4994
|
execute: () => {
|
|
4995
4995
|
const r = uh();
|
|
4996
4996
|
r.addEventListener("change", () => {
|
|
@@ -5012,25 +5012,25 @@ const ih = "code-graph", lh = (e, t = "", n = "json") => {
|
|
|
5012
5012
|
});
|
|
5013
5013
|
}, hh = (e) => {
|
|
5014
5014
|
const t = {
|
|
5015
|
-
command:
|
|
5015
|
+
command: qr,
|
|
5016
5016
|
title: "Clear all",
|
|
5017
|
-
icon: z(() =>
|
|
5017
|
+
icon: z(() => Us)
|
|
5018
5018
|
}, n = {
|
|
5019
|
-
command:
|
|
5019
|
+
command: Xr,
|
|
5020
5020
|
title: "Download editor state",
|
|
5021
|
-
icon: z(() =>
|
|
5021
|
+
icon: z(() => Is)
|
|
5022
5022
|
}, s = {
|
|
5023
|
-
command:
|
|
5023
|
+
command: Jr,
|
|
5024
5024
|
title: "Toggle minimap",
|
|
5025
|
-
icon: z(() => e.enableMinimap ?
|
|
5025
|
+
icon: z(() => e.enableMinimap ? Ws : $s)
|
|
5026
5026
|
}, r = {
|
|
5027
|
-
command:
|
|
5027
|
+
command: Kr,
|
|
5028
5028
|
title: "Toggle palette",
|
|
5029
|
-
icon: z(() => e.palette.enabled ?
|
|
5029
|
+
icon: z(() => e.palette.enabled ? Ys : Es)
|
|
5030
5030
|
}, a = {
|
|
5031
|
-
command:
|
|
5031
|
+
command: Qr,
|
|
5032
5032
|
title: "Upload editor state",
|
|
5033
|
-
icon: z(() =>
|
|
5033
|
+
icon: z(() => Fs)
|
|
5034
5034
|
};
|
|
5035
5035
|
e.toolbar.commands = [
|
|
5036
5036
|
r,
|
|
@@ -5067,7 +5067,7 @@ function ph(e) {
|
|
|
5067
5067
|
}), e.engine?.events.beforeRun.subscribe(t, () => {
|
|
5068
5068
|
e.displayedGraph.onUpdate(), e.engine?.pause(), e.displayedGraph.sortNodes(), e.engine?.resume();
|
|
5069
5069
|
}), e.engine?.events.afterRun.subscribe(t, (n) => {
|
|
5070
|
-
e.engine?.pause(),
|
|
5070
|
+
e.engine?.pause(), Os(n, e.editor), e.code.state.lockCode || e.code.renderCode({
|
|
5071
5071
|
nodes: e.editor.graph.scriptedCodeNodes,
|
|
5072
5072
|
modules: e.editor.code.modules
|
|
5073
5073
|
}), e.engine?.resume();
|
|
@@ -5088,7 +5088,7 @@ class sn extends La {
|
|
|
5088
5088
|
super(t, n), this.editor = t, this.template = n, t.code && (this.code = t.code);
|
|
5089
5089
|
}
|
|
5090
5090
|
get codeNodes() {
|
|
5091
|
-
return
|
|
5091
|
+
return ea(this);
|
|
5092
5092
|
}
|
|
5093
5093
|
get connections() {
|
|
5094
5094
|
return super.connections;
|
|
@@ -5225,10 +5225,10 @@ class sn extends La {
|
|
|
5225
5225
|
}
|
|
5226
5226
|
}
|
|
5227
5227
|
}
|
|
5228
|
-
const
|
|
5228
|
+
const ea = (e) => {
|
|
5229
5229
|
const t = [];
|
|
5230
5230
|
return e.nodes.length === 0 || e.nodes.forEach((n) => {
|
|
5231
|
-
n && (n.hasOwnProperty("subgraph") ? t.push(...
|
|
5231
|
+
n && (n.hasOwnProperty("subgraph") ? t.push(...ea(n.subgraph)) : n.hasOwnProperty("isCodeNode") && t.push(n));
|
|
5232
5232
|
}), t;
|
|
5233
5233
|
}, zh = (e = 0, t = 100) => ({
|
|
5234
5234
|
x: e * (ns + 70),
|
|
@@ -5237,7 +5237,7 @@ const Qr = (e) => {
|
|
|
5237
5237
|
const t = { ...e.position };
|
|
5238
5238
|
return t.x -= ns + 70, t.y += 50, t;
|
|
5239
5239
|
}, fs = "__baklava_SubgraphInputNode", ps = "__baklava_SubgraphOutputNode";
|
|
5240
|
-
class
|
|
5240
|
+
class ta extends Nn {
|
|
5241
5241
|
graphInterfaceId;
|
|
5242
5242
|
constructor() {
|
|
5243
5243
|
super(), this.graphInterfaceId = Xe();
|
|
@@ -5257,7 +5257,7 @@ class ea extends Nn {
|
|
|
5257
5257
|
update() {
|
|
5258
5258
|
}
|
|
5259
5259
|
}
|
|
5260
|
-
class
|
|
5260
|
+
class na extends ta {
|
|
5261
5261
|
static isGraphInputNode(t) {
|
|
5262
5262
|
return t.type === fs;
|
|
5263
5263
|
}
|
|
@@ -5269,7 +5269,7 @@ class ta extends ea {
|
|
|
5269
5269
|
placeholder: new Me("Value", void 0)
|
|
5270
5270
|
};
|
|
5271
5271
|
}
|
|
5272
|
-
class
|
|
5272
|
+
class sa extends ta {
|
|
5273
5273
|
static isGraphOutputNode(t) {
|
|
5274
5274
|
return t.type === ps;
|
|
5275
5275
|
}
|
|
@@ -5301,8 +5301,8 @@ const mh = [
|
|
|
5301
5301
|
"value"
|
|
5302
5302
|
];
|
|
5303
5303
|
function _h(e) {
|
|
5304
|
-
return class extends
|
|
5305
|
-
type =
|
|
5304
|
+
return class extends qs {
|
|
5305
|
+
type = xs(e);
|
|
5306
5306
|
get title() {
|
|
5307
5307
|
return this._title;
|
|
5308
5308
|
}
|
|
@@ -5331,7 +5331,7 @@ function _h(e) {
|
|
|
5331
5331
|
r,
|
|
5332
5332
|
s.globalValues
|
|
5333
5333
|
);
|
|
5334
|
-
s.engine.pause(),
|
|
5334
|
+
s.engine.pause(), Os(a, s.engine.editor), s.engine.resume();
|
|
5335
5335
|
const o = {};
|
|
5336
5336
|
for (const i of this.subgraph.outputs)
|
|
5337
5337
|
o[i.id] = a.get(i.nodeId)?.get("output");
|
|
@@ -5398,9 +5398,9 @@ function _h(e) {
|
|
|
5398
5398
|
return Reflect.get(a, o);
|
|
5399
5399
|
let i;
|
|
5400
5400
|
s ? i = this.subgraph?.nodes.find(
|
|
5401
|
-
(b) =>
|
|
5401
|
+
(b) => na.isGraphInputNode(b) && b.graphInterfaceId === n.id
|
|
5402
5402
|
)?.outputs.placeholder.id : i = this.subgraph?.nodes.find(
|
|
5403
|
-
(b) =>
|
|
5403
|
+
(b) => sa.isGraphOutputNode(b) && b.graphInterfaceId === n.id
|
|
5404
5404
|
)?.inputs.placeholder.id;
|
|
5405
5405
|
const l = this.subgraph?.connections.find((c) => i === (s ? c.from : c.to)?.id), u = s ? l?.to : l?.from;
|
|
5406
5406
|
if (u) return Reflect.get(u, o);
|
|
@@ -5481,22 +5481,22 @@ function yh(e, t) {
|
|
|
5481
5481
|
t.value && t.value !== e.value.graph && t.value.destroy(), r.panning = r.panning ?? s.panning ?? { x: 0, y: 0 }, r.scaling = r.scaling ?? s.scaling ?? 1, r.selectedNodes = r.selectedNodes ?? [], r.sidebar = r.sidebar ?? { visible: !1, nodeId: "", optionName: "" }, t.value = r, r.code?.engine?.runOnce(null);
|
|
5482
5482
|
} };
|
|
5483
5483
|
}
|
|
5484
|
-
class
|
|
5484
|
+
class ra extends na {
|
|
5485
5485
|
_title = "Subgraph Input";
|
|
5486
5486
|
inputs = {
|
|
5487
5487
|
_code: new ie("_code", "").use(te, _e).setHidden(!0),
|
|
5488
|
-
name: new
|
|
5488
|
+
name: new Ss("Name", "Input").setPort(!1)
|
|
5489
5489
|
};
|
|
5490
5490
|
outputs = {
|
|
5491
5491
|
_code: new ie("_code", "").use(te, _e).setHidden(!0),
|
|
5492
5492
|
placeholder: new Me("Connection", void 0)
|
|
5493
5493
|
};
|
|
5494
5494
|
}
|
|
5495
|
-
class
|
|
5495
|
+
class aa extends sa {
|
|
5496
5496
|
_title = "Subgraph Output";
|
|
5497
5497
|
inputs = {
|
|
5498
5498
|
_code: new ie("_code", "").use(te, _e).setHidden(!0),
|
|
5499
|
-
name: new
|
|
5499
|
+
name: new Ss("Name", "Output").setPort(!1),
|
|
5500
5500
|
placeholder: new Me("Connection", void 0)
|
|
5501
5501
|
};
|
|
5502
5502
|
outputs = {
|
|
@@ -5521,14 +5521,14 @@ function bh(e, t, n) {
|
|
|
5521
5521
|
to: C.to.id
|
|
5522
5522
|
})), h = /* @__PURE__ */ new Map(), { xLeft: M, xRight: H, yTop: A } = wh(l);
|
|
5523
5523
|
for (const [C, J] of b.entries()) {
|
|
5524
|
-
const ae = new
|
|
5524
|
+
const ae = new ra();
|
|
5525
5525
|
ae.inputs.name.value = J.to.name, g.push({
|
|
5526
5526
|
...ae.save(),
|
|
5527
5527
|
position: { x: H - a.value.settings.nodes.defaultWidth - 100, y: A + C * 200 }
|
|
5528
5528
|
}), O.push({ id: Xe(), from: ae.outputs.placeholder.id, to: J.to.id }), h.set(J.to.id, ae.graphInterfaceId);
|
|
5529
5529
|
}
|
|
5530
5530
|
for (const [C, J] of m.entries()) {
|
|
5531
|
-
const ae = new
|
|
5531
|
+
const ae = new aa();
|
|
5532
5532
|
ae.inputs.name.value = J.from.name, g.push({
|
|
5533
5533
|
...ae.save(),
|
|
5534
5534
|
position: { x: M + 100, y: A + C * 200 }
|
|
@@ -5547,7 +5547,7 @@ function bh(e, t, n) {
|
|
|
5547
5547
|
)
|
|
5548
5548
|
);
|
|
5549
5549
|
i.addGraphTemplate(F);
|
|
5550
|
-
const Ce = i.nodeTypes.get(
|
|
5550
|
+
const Ce = i.nodeTypes.get(xs(F));
|
|
5551
5551
|
if (!Ce) throw new Error("Unable to create subgraph: Could not find corresponding graph node type");
|
|
5552
5552
|
o.activeTransactions++;
|
|
5553
5553
|
const Te = Le(new Ce.type());
|
|
@@ -5649,6 +5649,7 @@ function qh(e) {
|
|
|
5649
5649
|
editor: n,
|
|
5650
5650
|
history: c,
|
|
5651
5651
|
hooks: m,
|
|
5652
|
+
isReady: !1,
|
|
5652
5653
|
isSubgraph: i,
|
|
5653
5654
|
onBeforeUnmount: () => {
|
|
5654
5655
|
},
|
|
@@ -5660,35 +5661,34 @@ function qh(e) {
|
|
|
5660
5661
|
return t.value.registerViewModel(I), ph(I), Ta(a, u), bh(a, u, o), Na(a, u), Da(a, u, o), Ia(a, u), Ya(a, u, l), ch(a, u, l), hh(l), ys(
|
|
5661
5662
|
n,
|
|
5662
5663
|
(g, O) => {
|
|
5663
|
-
O && (O.events.registerGraph.unsubscribe(s), O.graphEvents.beforeAddNode.unsubscribe(s), g.nodeHooks.beforeLoad.unsubscribe(s), g.nodeHooks.afterSave.unsubscribe(s), g.graphTemplateHooks.beforeLoad.unsubscribe(s), g.graphTemplateHooks.afterSave.unsubscribe(s), g.graph.hooks.load.unsubscribe(s), g.graph.hooks.save.unsubscribe(s)), g && (g.nodeHooks.beforeLoad.subscribe(s, (h, M) => (M.position = h.position ?? { x: 0, y: 0 }, M.width = h.width ?? l.nodes.defaultWidth, M.twoColumn = h.twoColumn ?? !1, h)), g.nodeHooks.afterSave.subscribe(s, (h, M) => (h.position = M.position, h.width = M.width, h.twoColumn = M.twoColumn, h)), g.graphTemplateHooks.beforeLoad.subscribe(s, (h, M) => (M.panning = h.panning, M.scaling = h.scaling, h)), g.graphTemplateHooks.afterSave.subscribe(s, (h, M) => (h.panning = M.panning, h.scaling = M.scaling, h)), g.graph.hooks.load.subscribe(s, (h, M) => (M.panning = h.panning, M.scaling = h.scaling, h)), g.graph.hooks.save.subscribe(s, (h, M) => (h.panning = M.panning, h.scaling = M.scaling, h)), g.graphEvents.beforeAddNode.subscribe(
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
), n.value.registerNodeType(sa, { category: "Subgraphs" }), n.value.registerNodeType(ra, { category: "Subgraphs" }), o(g.graph));
|
|
5664
|
+
O && (O.events.registerGraph.unsubscribe(s), O.graphEvents.beforeAddNode.unsubscribe(s), g.nodeHooks.beforeLoad.unsubscribe(s), g.nodeHooks.afterSave.unsubscribe(s), g.graphTemplateHooks.beforeLoad.unsubscribe(s), g.graphTemplateHooks.afterSave.unsubscribe(s), g.graph.hooks.load.unsubscribe(s), g.graph.hooks.save.unsubscribe(s)), g && (g.nodeHooks.beforeLoad.subscribe(s, (h, M) => (M.position = h.position ?? { x: 0, y: 0 }, M.width = h.width ?? l.nodes.defaultWidth, M.twoColumn = h.twoColumn ?? !1, h)), g.nodeHooks.afterSave.subscribe(s, (h, M) => (h.position = M.position, h.width = M.width, h.twoColumn = M.twoColumn, h)), g.graphTemplateHooks.beforeLoad.subscribe(s, (h, M) => (M.panning = h.panning, M.scaling = h.scaling, h)), g.graphTemplateHooks.afterSave.subscribe(s, (h, M) => (h.panning = M.panning, h.scaling = M.scaling, h)), g.graph.hooks.load.subscribe(s, (h, M) => (M.panning = h.panning, M.scaling = h.scaling, h)), g.graph.hooks.save.subscribe(s, (h, M) => (h.panning = M.panning, h.scaling = M.scaling, h)), g.graphEvents.beforeAddNode.subscribe(s, (h) => {
|
|
5665
|
+
console.log("before add node event"), Ea(h, { defaultWidth: l.nodes.defaultWidth });
|
|
5666
|
+
}), n.value.registerNodeType(ra, { category: "Subgraphs" }), n.value.registerNodeType(aa, { category: "Subgraphs" }), o(g.graph));
|
|
5667
5667
|
},
|
|
5668
5668
|
{ immediate: !0 }
|
|
5669
|
-
), I;
|
|
5669
|
+
), ws(() => I.isReady = !0), I;
|
|
5670
5670
|
}
|
|
5671
5671
|
export {
|
|
5672
|
-
|
|
5673
|
-
|
|
5672
|
+
qs as AbstractCodeNode,
|
|
5673
|
+
qr as CLEAR_ALL_COMMAND,
|
|
5674
5674
|
gh as CREATE_SUBGRAPH_COMMAND,
|
|
5675
5675
|
tl as CheckboxInterface,
|
|
5676
5676
|
En as Code,
|
|
5677
5677
|
ol as CodeEngine,
|
|
5678
5678
|
sn as CodeGraph,
|
|
5679
|
-
|
|
5680
|
-
|
|
5679
|
+
na as CodeGraphInputNode,
|
|
5680
|
+
sa as CodeGraphOutputNode,
|
|
5681
5681
|
rn as CodeGraphTemplate,
|
|
5682
5682
|
Nn as CodeNode,
|
|
5683
5683
|
kt as CodeNodeInputInterface,
|
|
5684
5684
|
ie as CodeNodeInterface,
|
|
5685
5685
|
Dn as CodeNodeInterfaceComponent,
|
|
5686
5686
|
nl as CodeNodeOutputInterface,
|
|
5687
|
-
|
|
5687
|
+
Xr as DOWNLOAD_EDITOR_STATE_COMMAND,
|
|
5688
5688
|
al as DynamicCodeNode,
|
|
5689
5689
|
fs as GRAPH_INPUT_NODE_TYPE,
|
|
5690
5690
|
ps as GRAPH_OUTPUT_NODE_TYPE,
|
|
5691
|
-
|
|
5691
|
+
nr as IntegerInterface,
|
|
5692
5692
|
Vh as JavascriptCode,
|
|
5693
5693
|
Ah as ListInputInterface,
|
|
5694
5694
|
ns as NODE_DEFAULT_WITH,
|
|
@@ -5697,40 +5697,40 @@ export {
|
|
|
5697
5697
|
dh as RUN_ENGINE_COMMAND,
|
|
5698
5698
|
rl as SelectInterface,
|
|
5699
5699
|
Uh as SliderInterface,
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5700
|
+
ra as SubgraphInputNode,
|
|
5701
|
+
aa as SubgraphOutputNode,
|
|
5702
|
+
Jr as TOGGLE_MINIMAP_COMMAND,
|
|
5703
|
+
Kr as TOGGLE_PALETTE_COMMAND,
|
|
5704
|
+
sr as TextInputInterface,
|
|
5705
|
+
Zs as TextInputInterfaceComponent,
|
|
5706
5706
|
$h as TextareaInputInterface,
|
|
5707
5707
|
Wh as TupleInputInterface,
|
|
5708
|
-
|
|
5708
|
+
Qr as UPLOAD_EDITOR_STATE_COMMAND,
|
|
5709
5709
|
Lh as addDefaultInterfaceTypes,
|
|
5710
5710
|
jh as allowMultipleConnections,
|
|
5711
|
-
|
|
5712
|
-
|
|
5711
|
+
Js as booleanType,
|
|
5712
|
+
Ph as components,
|
|
5713
5713
|
_h as createCodeGraphNodeType,
|
|
5714
5714
|
Ki as createInterface,
|
|
5715
5715
|
Hh as defineCodeNode,
|
|
5716
5716
|
Fh as defineDynamicCodeNode,
|
|
5717
5717
|
el as dictType,
|
|
5718
5718
|
Xi as formatInputs,
|
|
5719
|
-
|
|
5719
|
+
ea as getCodeNodes,
|
|
5720
5720
|
zh as getPositionAtColumn,
|
|
5721
5721
|
Bh as getPositionBeforeNode,
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5722
|
+
Rh as icons,
|
|
5723
|
+
Ks as listType,
|
|
5724
|
+
Xs as loadNodeState,
|
|
5725
5725
|
_e as nodeType,
|
|
5726
|
-
|
|
5726
|
+
Qs as numberType,
|
|
5727
5727
|
ph as registerCodeEngine,
|
|
5728
5728
|
bh as registerCreateSubgraphCommand,
|
|
5729
5729
|
ch as registerCustomCommands,
|
|
5730
5730
|
fh as registerRunEngineCommands,
|
|
5731
5731
|
Ji as saveNodeState,
|
|
5732
|
-
|
|
5733
|
-
|
|
5732
|
+
er as stringType,
|
|
5733
|
+
tr as tupleType,
|
|
5734
5734
|
hh as updateToolbarItems,
|
|
5735
5735
|
qh as useCodeGraph,
|
|
5736
5736
|
yh as useSwitchCodeGraph
|