@babsey/code-graph 0.8.5 → 0.8.7
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 +547 -545
- package/dist/code-graph.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/code-graph.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createElementBlock as k, openBlock as m, createElementVNode as f, createStaticVNode as Gt, defineComponent as ce, toRef as Sn, ref as
|
|
2
|
-
import { BaklavaEditor as ua, Components as fn, useViewModel as kt, useGraph as Cn, useTemporaryConnection as da, useTransform as ca, useNodeCategories as ha, displayInSidebar as Ms, CheckboxInterfaceComponent as fa, IntegerInterfaceComponent as pa, TextInputInterfaceComponent as Ss, NumberInterfaceComponent as ma, SelectInterfaceComponent as va, SliderInterfaceComponent as _a, TextareaInputInterfaceComponent as ya, Commands as He, DEFAULT_TOOLBAR_COMMANDS as ga, TextInputInterface as xs, DEFAULT_SETTINGS as ba, useCommandHandler as wa, useHistory as ka, useClipboard as Ma, registerDeleteNodesCommand as Sa, registerSaveSubgraphCommand as xa, registerSwitchToMainGraphCommand as Oa, registerSidebarCommands as Ca, registerZoomToFitCommands as
|
|
1
|
+
import { createElementBlock as k, openBlock as m, createElementVNode as f, createStaticVNode as Gt, defineComponent as ce, toRef as Sn, ref as oe, createVNode as X, unref as H, mergeModels as rs, useModel as na, resolveComponent as _s, createCommentVNode as K, onMounted as xn, onBeforeUnmount as ys, watch as gs, createBlock as ue, withCtx as Ye, normalizeProps as sa, guardReactiveProps as ra, renderSlot as Me, mergeProps as aa, toDisplayString as te, computed as z, onUpdated as bs, normalizeStyle as On, normalizeClass as je, withModifiers as st, withDirectives as Vt, Fragment as ae, createTextVNode as ws, withKeys as hn, vModelText as jt, renderList as Ke, nextTick as ks, resolveDynamicComponent as as, inject as oa, Transition as ia, reactive as Ae, markRaw as he, shallowReadonly as la } from "vue";
|
|
2
|
+
import { BaklavaEditor as ua, Components as fn, useViewModel as kt, useGraph as Cn, useTemporaryConnection as da, useTransform as ca, useNodeCategories as ha, displayInSidebar as Ms, CheckboxInterfaceComponent as fa, IntegerInterfaceComponent as pa, TextInputInterfaceComponent as Ss, NumberInterfaceComponent as ma, SelectInterfaceComponent as va, SliderInterfaceComponent as _a, TextareaInputInterfaceComponent as ya, Commands as He, DEFAULT_TOOLBAR_COMMANDS as ga, TextInputInterface as xs, DEFAULT_SETTINGS as ba, useCommandHandler as wa, useHistory as ka, useClipboard as Ma, registerDeleteNodesCommand as Sa, registerSaveSubgraphCommand as xa, registerSwitchToMainGraphCommand as Oa, registerSidebarCommands as Ca, registerZoomToFitCommands as Ta, setViewNodeProperties as Na } from "@baklavajs/renderer-vue";
|
|
3
3
|
import { GRAPH_NODE_TYPE_PREFIX as Da, AbstractNode as Ia, NodeInterface as Se, Graph as Ya, getGraphNodeTypeString as Os, GraphTemplate as Ea, GRAPH_INPUT_NODE_TYPE as Ra, GRAPH_OUTPUT_NODE_TYPE as Pa, Editor as La } from "@baklavajs/core";
|
|
4
4
|
import { usePointer as Aa } from "@vueuse/core";
|
|
5
5
|
import ut from "mustache";
|
|
@@ -7,7 +7,7 @@ import { v4 as Xe } from "uuid";
|
|
|
7
7
|
import { NodeInterfaceType as Je, BaklavaInterfaceTypes as Ua, setType as ne } from "@baklavajs/interface-types";
|
|
8
8
|
import { allowMultipleConnections as lt, BaseEngine as $a, sortTopologically as Wa, applyResult as Cs } from "@baklavajs/engine";
|
|
9
9
|
import Ha from "toposort";
|
|
10
|
-
import { SequentialHook as
|
|
10
|
+
import { SequentialHook as os } from "@baklavajs/events";
|
|
11
11
|
const q = (e, t) => {
|
|
12
12
|
const n = e.__vccOpts || e;
|
|
13
13
|
for (const [s, r] of t)
|
|
@@ -35,7 +35,7 @@ function Va(e, t) {
|
|
|
35
35
|
f("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
|
36
36
|
])]);
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const Ts = /* @__PURE__ */ q(Fa, [["render", Va]]), ja = {}, za = {
|
|
39
39
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40
40
|
width: "24",
|
|
41
41
|
height: "24",
|
|
@@ -57,7 +57,7 @@ function Ba(e, t) {
|
|
|
57
57
|
f("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 Ns = /* @__PURE__ */ q(ja, [["render", Ba]]), Za = {}, qa = {
|
|
61
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
62
|
width: "24",
|
|
63
63
|
height: "24",
|
|
@@ -104,7 +104,7 @@ function Qa(e, t) {
|
|
|
104
104
|
f("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 Is = /* @__PURE__ */ q(Xa, [["render", Qa]]),
|
|
107
|
+
const Is = /* @__PURE__ */ q(Xa, [["render", Qa]]), eo = {}, to = {
|
|
108
108
|
xmlns: "http://www.w3.org/2000/svg",
|
|
109
109
|
width: "24",
|
|
110
110
|
height: "24",
|
|
@@ -116,8 +116,8 @@ const Is = /* @__PURE__ */ q(Xa, [["render", Qa]]), ei = {}, ti = {
|
|
|
116
116
|
"stroke-linejoin": "round",
|
|
117
117
|
class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-download"
|
|
118
118
|
};
|
|
119
|
-
function
|
|
120
|
-
return m(), k("svg",
|
|
119
|
+
function no(e, t) {
|
|
120
|
+
return m(), k("svg", to, [...t[0] || (t[0] = [
|
|
121
121
|
f("path", {
|
|
122
122
|
stroke: "none",
|
|
123
123
|
d: "M0 0h24v24H0z",
|
|
@@ -128,7 +128,7 @@ function ni(e, t) {
|
|
|
128
128
|
f("path", { d: "M12 4l0 12" }, null, -1)
|
|
129
129
|
])]);
|
|
130
130
|
}
|
|
131
|
-
const Ys = /* @__PURE__ */ q(
|
|
131
|
+
const Ys = /* @__PURE__ */ q(eo, [["render", no]]), so = {}, ro = {
|
|
132
132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
133
133
|
width: "24",
|
|
134
134
|
height: "24",
|
|
@@ -136,8 +136,8 @@ const Ys = /* @__PURE__ */ q(ei, [["render", ni]]), si = {}, ri = {
|
|
|
136
136
|
fill: "currentColor",
|
|
137
137
|
class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-collapse"
|
|
138
138
|
};
|
|
139
|
-
function
|
|
140
|
-
return m(), k("svg",
|
|
139
|
+
function ao(e, t) {
|
|
140
|
+
return m(), k("svg", ro, [...t[0] || (t[0] = [
|
|
141
141
|
f("path", {
|
|
142
142
|
stroke: "none",
|
|
143
143
|
d: "M0 0h24v24H0z",
|
|
@@ -146,7 +146,7 @@ function ai(e, t) {
|
|
|
146
146
|
f("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 oo = /* @__PURE__ */ q(so, [["render", ao]]), io = {}, lo = {
|
|
150
150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
151
151
|
width: "24",
|
|
152
152
|
height: "24",
|
|
@@ -154,8 +154,8 @@ const ii = /* @__PURE__ */ q(si, [["render", ai]]), oi = {}, li = {
|
|
|
154
154
|
fill: "currentColor",
|
|
155
155
|
class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-expand"
|
|
156
156
|
};
|
|
157
|
-
function
|
|
158
|
-
return m(), k("svg",
|
|
157
|
+
function uo(e, t) {
|
|
158
|
+
return m(), k("svg", lo, [...t[0] || (t[0] = [
|
|
159
159
|
f("path", {
|
|
160
160
|
stroke: "none",
|
|
161
161
|
d: "M0 0h24v24H0z",
|
|
@@ -164,7 +164,7 @@ function ui(e, t) {
|
|
|
164
164
|
f("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 co = /* @__PURE__ */ q(io, [["render", uo]]), ho = {}, fo = {
|
|
168
168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
169
169
|
width: "24",
|
|
170
170
|
height: "24",
|
|
@@ -172,8 +172,8 @@ const di = /* @__PURE__ */ q(oi, [["render", ui]]), ci = {}, hi = {
|
|
|
172
172
|
fill: "currentColor",
|
|
173
173
|
class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right"
|
|
174
174
|
};
|
|
175
|
-
function
|
|
176
|
-
return m(), k("svg",
|
|
175
|
+
function po(e, t) {
|
|
176
|
+
return m(), k("svg", fo, [...t[0] || (t[0] = [
|
|
177
177
|
f("path", {
|
|
178
178
|
stroke: "none",
|
|
179
179
|
d: "M0 0h24v24H0z",
|
|
@@ -182,7 +182,7 @@ function fi(e, t) {
|
|
|
182
182
|
f("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 mo = /* @__PURE__ */ q(ho, [["render", po]]), vo = {}, _o = {
|
|
186
186
|
xmlns: "http://www.w3.org/2000/svg",
|
|
187
187
|
width: "24",
|
|
188
188
|
height: "24",
|
|
@@ -190,8 +190,8 @@ const pi = /* @__PURE__ */ q(ci, [["render", fi]]), mi = {}, vi = {
|
|
|
190
190
|
fill: "currentColor",
|
|
191
191
|
class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-collapse"
|
|
192
192
|
};
|
|
193
|
-
function
|
|
194
|
-
return m(), k("svg",
|
|
193
|
+
function yo(e, t) {
|
|
194
|
+
return m(), k("svg", _o, [...t[0] || (t[0] = [
|
|
195
195
|
f("path", {
|
|
196
196
|
stroke: "none",
|
|
197
197
|
d: "M0 0h24v24H0z",
|
|
@@ -200,7 +200,7 @@ function _i(e, t) {
|
|
|
200
200
|
f("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-5.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)
|
|
201
201
|
])]);
|
|
202
202
|
}
|
|
203
|
-
const Es = /* @__PURE__ */ q(
|
|
203
|
+
const Es = /* @__PURE__ */ q(vo, [["render", yo]]), go = {}, bo = {
|
|
204
204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
205
205
|
width: "24",
|
|
206
206
|
height: "24",
|
|
@@ -208,8 +208,8 @@ const Es = /* @__PURE__ */ q(mi, [["render", _i]]), yi = {}, gi = {
|
|
|
208
208
|
fill: "currentColor",
|
|
209
209
|
class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-expand"
|
|
210
210
|
};
|
|
211
|
-
function
|
|
212
|
-
return m(), k("svg",
|
|
211
|
+
function wo(e, t) {
|
|
212
|
+
return m(), k("svg", bo, [...t[0] || (t[0] = [
|
|
213
213
|
f("path", {
|
|
214
214
|
stroke: "none",
|
|
215
215
|
d: "M0 0h24v24H0z",
|
|
@@ -218,7 +218,7 @@ function bi(e, t) {
|
|
|
218
218
|
f("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 Tn = /* @__PURE__ */ q(go, [["render", wo]]), ko = {}, Mo = {
|
|
222
222
|
xmlns: "http://www.w3.org/2000/svg",
|
|
223
223
|
width: "24",
|
|
224
224
|
height: "24",
|
|
@@ -230,12 +230,12 @@ const Nn = /* @__PURE__ */ q(yi, [["render", bi]]), wi = {}, ki = {
|
|
|
230
230
|
"stroke-linejoin": "round",
|
|
231
231
|
class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-lock-code"
|
|
232
232
|
};
|
|
233
|
-
function
|
|
234
|
-
return m(), k("svg",
|
|
233
|
+
function So(e, t) {
|
|
234
|
+
return m(), k("svg", Mo, [...t[0] || (t[0] = [
|
|
235
235
|
Gt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M11.5 21h-4.5a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2"></path><path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"></path><path d="M8 11v-4a4 4 0 1 1 8 0v4"></path><path d="M20 21l2 -2l-2 -2"></path><path d="M17 17l-2 2l2 2"></path>', 6)
|
|
236
236
|
])]);
|
|
237
237
|
}
|
|
238
|
-
const
|
|
238
|
+
const Nn = /* @__PURE__ */ q(ko, [["render", So]]), xo = {}, Oo = {
|
|
239
239
|
xmlns: "http://www.w3.org/2000/svg",
|
|
240
240
|
width: "24",
|
|
241
241
|
height: "24",
|
|
@@ -247,8 +247,8 @@ const Tn = /* @__PURE__ */ q(wi, [["render", Mi]]), Si = {}, xi = {
|
|
|
247
247
|
"stroke-linejoin": "round",
|
|
248
248
|
class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-player-play"
|
|
249
249
|
};
|
|
250
|
-
function
|
|
251
|
-
return m(), k("svg",
|
|
250
|
+
function Co(e, t) {
|
|
251
|
+
return m(), k("svg", Oo, [...t[0] || (t[0] = [
|
|
252
252
|
f("path", {
|
|
253
253
|
stroke: "none",
|
|
254
254
|
d: "M0 0h24v24H0z",
|
|
@@ -257,7 +257,7 @@ function Oi(e, t) {
|
|
|
257
257
|
f("path", { d: "M7 4v16l13 -8z" }, null, -1)
|
|
258
258
|
])]);
|
|
259
259
|
}
|
|
260
|
-
const
|
|
260
|
+
const To = /* @__PURE__ */ q(xo, [["render", Co]]), No = {}, Do = {
|
|
261
261
|
xmlns: "http://www.w3.org/2000/svg",
|
|
262
262
|
width: "24",
|
|
263
263
|
height: "24",
|
|
@@ -269,8 +269,8 @@ const Ci = /* @__PURE__ */ q(Si, [["render", Oi]]), Ni = {}, Ti = {
|
|
|
269
269
|
"stroke-linejoin": "round",
|
|
270
270
|
class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-plus"
|
|
271
271
|
};
|
|
272
|
-
function
|
|
273
|
-
return m(), k("svg",
|
|
272
|
+
function Io(e, t) {
|
|
273
|
+
return m(), k("svg", Do, [...t[0] || (t[0] = [
|
|
274
274
|
f("path", {
|
|
275
275
|
stroke: "none",
|
|
276
276
|
d: "M0 0h24v24H0z",
|
|
@@ -280,7 +280,7 @@ function Di(e, t) {
|
|
|
280
280
|
f("path", { d: "M5 12l14 0" }, null, -1)
|
|
281
281
|
])]);
|
|
282
282
|
}
|
|
283
|
-
const Rs = /* @__PURE__ */ q(
|
|
283
|
+
const Rs = /* @__PURE__ */ q(No, [["render", Io]]), Yo = {}, Eo = {
|
|
284
284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
285
285
|
width: "24",
|
|
286
286
|
height: "24",
|
|
@@ -292,8 +292,8 @@ const Rs = /* @__PURE__ */ q(Ni, [["render", Di]]), Ii = {}, Yi = {
|
|
|
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 m(), k("svg",
|
|
295
|
+
function Ro(e, t) {
|
|
296
|
+
return m(), k("svg", Eo, [...t[0] || (t[0] = [
|
|
297
297
|
f("path", {
|
|
298
298
|
stroke: "none",
|
|
299
299
|
d: "M0 0h24v24H0z",
|
|
@@ -304,7 +304,7 @@ function Ei(e, t) {
|
|
|
304
304
|
f("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 Ps = /* @__PURE__ */ q(
|
|
307
|
+
const Ps = /* @__PURE__ */ q(Yo, [["render", Ro]]), Po = {}, Lo = {
|
|
308
308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
309
309
|
width: "24",
|
|
310
310
|
height: "24",
|
|
@@ -316,12 +316,12 @@ const Ps = /* @__PURE__ */ q(Ii, [["render", Ei]]), Ri = {}, Pi = {
|
|
|
316
316
|
"stroke-linejoin": "round",
|
|
317
317
|
class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema"
|
|
318
318
|
};
|
|
319
|
-
function
|
|
320
|
-
return m(), k("svg",
|
|
319
|
+
function Ao(e, t) {
|
|
320
|
+
return m(), k("svg", Lo, [...t[0] || (t[0] = [
|
|
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 Ls = /* @__PURE__ */ q(
|
|
324
|
+
const Ls = /* @__PURE__ */ q(Po, [["render", Ao]]), Uo = {}, $o = {
|
|
325
325
|
xmlns: "http://www.w3.org/2000/svg",
|
|
326
326
|
width: "24",
|
|
327
327
|
height: "24",
|
|
@@ -333,12 +333,12 @@ const Ls = /* @__PURE__ */ q(Ri, [["render", Li]]), Ai = {}, Ui = {
|
|
|
333
333
|
"stroke-linejoin": "round",
|
|
334
334
|
class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema-off"
|
|
335
335
|
};
|
|
336
|
-
function
|
|
337
|
-
return m(), k("svg",
|
|
336
|
+
function Wo(e, t) {
|
|
337
|
+
return m(), k("svg", $o, [...t[0] || (t[0] = [
|
|
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 As = /* @__PURE__ */ q(
|
|
341
|
+
const As = /* @__PURE__ */ q(Uo, [["render", Wo]]), Ho = {}, Fo = {
|
|
342
342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
343
343
|
width: "24",
|
|
344
344
|
height: "24",
|
|
@@ -350,12 +350,12 @@ const As = /* @__PURE__ */ q(Ai, [["render", $i]]), Wi = {}, Hi = {
|
|
|
350
350
|
"stroke-linejoin": "round",
|
|
351
351
|
class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-transition-bottom"
|
|
352
352
|
};
|
|
353
|
-
function
|
|
354
|
-
return m(), k("svg",
|
|
353
|
+
function Go(e, t) {
|
|
354
|
+
return m(), k("svg", Fo, [...t[0] || (t[0] = [
|
|
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 Us = /* @__PURE__ */ q(
|
|
358
|
+
const Us = /* @__PURE__ */ q(Ho, [["render", Go]]), Vo = {}, jo = {
|
|
359
359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
360
360
|
width: "24",
|
|
361
361
|
height: "24",
|
|
@@ -367,8 +367,8 @@ const Us = /* @__PURE__ */ q(Wi, [["render", Fi]]), Gi = {}, Vi = {
|
|
|
367
367
|
"stroke-linejoin": "round",
|
|
368
368
|
class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-upload"
|
|
369
369
|
};
|
|
370
|
-
function
|
|
371
|
-
return m(), k("svg",
|
|
370
|
+
function zo(e, t) {
|
|
371
|
+
return m(), k("svg", jo, [...t[0] || (t[0] = [
|
|
372
372
|
f("path", {
|
|
373
373
|
stroke: "none",
|
|
374
374
|
d: "M0 0h24v24H0z",
|
|
@@ -379,7 +379,7 @@ function ji(e, t) {
|
|
|
379
379
|
f("path", { d: "M12 4l0 12" }, null, -1)
|
|
380
380
|
])]);
|
|
381
381
|
}
|
|
382
|
-
const $s = /* @__PURE__ */ q(
|
|
382
|
+
const $s = /* @__PURE__ */ q(Vo, [["render", zo]]), Bo = {}, Zo = {
|
|
383
383
|
xmlns: "http://www.w3.org/2000/svg",
|
|
384
384
|
width: "24",
|
|
385
385
|
height: "24",
|
|
@@ -391,8 +391,8 @@ const $s = /* @__PURE__ */ q(Gi, [["render", ji]]), zi = {}, Bi = {
|
|
|
391
391
|
"stroke-linejoin": "round",
|
|
392
392
|
class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-x"
|
|
393
393
|
};
|
|
394
|
-
function
|
|
395
|
-
return m(), k("svg",
|
|
394
|
+
function qo(e, t) {
|
|
395
|
+
return m(), k("svg", Zo, [...t[0] || (t[0] = [
|
|
396
396
|
f("path", {
|
|
397
397
|
stroke: "none",
|
|
398
398
|
d: "M0 0h24v24H0z",
|
|
@@ -402,20 +402,20 @@ function Zi(e, t) {
|
|
|
402
402
|
f("path", { d: "M6 6l12 12" }, null, -1)
|
|
403
403
|
])]);
|
|
404
404
|
}
|
|
405
|
-
const Ws = /* @__PURE__ */ q(
|
|
405
|
+
const Ws = /* @__PURE__ */ q(Bo, [["render", qo]]), Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
406
406
|
__proto__: null,
|
|
407
|
-
Check:
|
|
408
|
-
CodeVariable:
|
|
407
|
+
Check: Ts,
|
|
408
|
+
CodeVariable: Ns,
|
|
409
409
|
Copy: Ds,
|
|
410
410
|
DotsVertical: Is,
|
|
411
411
|
Download: Ys,
|
|
412
|
-
LayoutSidebarLeftCollapse:
|
|
413
|
-
LayoutSidebarLeftExpand:
|
|
414
|
-
LayoutSidebarRight:
|
|
412
|
+
LayoutSidebarLeftCollapse: oo,
|
|
413
|
+
LayoutSidebarLeftExpand: co,
|
|
414
|
+
LayoutSidebarRight: mo,
|
|
415
415
|
LayoutSidebarRightCollapse: Es,
|
|
416
|
-
LayoutSidebarRightExpand:
|
|
417
|
-
LockCode:
|
|
418
|
-
PlayerPlay:
|
|
416
|
+
LayoutSidebarRightExpand: Tn,
|
|
417
|
+
LockCode: Nn,
|
|
418
|
+
PlayerPlay: To,
|
|
419
419
|
Plus: Rs,
|
|
420
420
|
Restore: Ps,
|
|
421
421
|
Schema: Ls,
|
|
@@ -424,16 +424,16 @@ const Ws = /* @__PURE__ */ q(zi, [["render", Zi]]), Eh = /* @__PURE__ */ Object.
|
|
|
424
424
|
Upload: $s,
|
|
425
425
|
X: Ws
|
|
426
426
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
427
|
-
function
|
|
427
|
+
function Ko(e) {
|
|
428
428
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
429
429
|
}
|
|
430
430
|
var Rt = { exports: {} };
|
|
431
|
-
var
|
|
432
|
-
function
|
|
433
|
-
return
|
|
431
|
+
var Xo = Rt.exports, is;
|
|
432
|
+
function Jo() {
|
|
433
|
+
return is || (is = 1, (function(e, t) {
|
|
434
434
|
(function(s, r) {
|
|
435
435
|
e.exports = r();
|
|
436
|
-
})(
|
|
436
|
+
})(Xo, function() {
|
|
437
437
|
return (
|
|
438
438
|
/******/
|
|
439
439
|
(function() {
|
|
@@ -441,8 +441,8 @@ function Xi() {
|
|
|
441
441
|
/***/
|
|
442
442
|
686: (
|
|
443
443
|
/***/
|
|
444
|
-
(function(a,
|
|
445
|
-
|
|
444
|
+
(function(a, o, i) {
|
|
445
|
+
i.d(o, {
|
|
446
446
|
default: function() {
|
|
447
447
|
return (
|
|
448
448
|
/* binding */
|
|
@@ -450,7 +450,7 @@ function Xi() {
|
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
452
|
});
|
|
453
|
-
var l =
|
|
453
|
+
var l = i(279), u = /* @__PURE__ */ i.n(l), h = i(370), w = /* @__PURE__ */ i.n(h), p = i(817), I = /* @__PURE__ */ i.n(p);
|
|
454
454
|
function y(b) {
|
|
455
455
|
try {
|
|
456
456
|
return document.execCommand(b);
|
|
@@ -465,37 +465,37 @@ function Xi() {
|
|
|
465
465
|
function g(b) {
|
|
466
466
|
var S = document.documentElement.getAttribute("dir") === "rtl", M = document.createElement("textarea");
|
|
467
467
|
M.style.fontSize = "12pt", M.style.border = "0", M.style.padding = "0", M.style.margin = "0", M.style.position = "absolute", M.style[S ? "right" : "left"] = "-9999px";
|
|
468
|
-
var
|
|
469
|
-
return M.style.top = "".concat(
|
|
468
|
+
var T = window.pageYOffset || document.documentElement.scrollTop;
|
|
469
|
+
return M.style.top = "".concat(T, "px"), M.setAttribute("readonly", ""), M.value = b, M;
|
|
470
470
|
}
|
|
471
471
|
var $ = function(S, M) {
|
|
472
|
-
var
|
|
473
|
-
M.container.appendChild(
|
|
474
|
-
var D = I()(
|
|
475
|
-
return y("copy"),
|
|
472
|
+
var T = g(S);
|
|
473
|
+
M.container.appendChild(T);
|
|
474
|
+
var D = I()(T);
|
|
475
|
+
return y("copy"), T.remove(), D;
|
|
476
476
|
}, A = function(S) {
|
|
477
477
|
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
478
478
|
container: document.body
|
|
479
|
-
},
|
|
480
|
-
return typeof S == "string" ?
|
|
479
|
+
}, T = "";
|
|
480
|
+
return typeof S == "string" ? T = $(S, M) : S instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(S?.type) ? T = $(S.value, M) : (T = I()(S), y("copy")), T;
|
|
481
481
|
}, F = A;
|
|
482
|
-
function
|
|
482
|
+
function Te(b) {
|
|
483
483
|
"@babel/helpers - typeof";
|
|
484
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
484
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Te = function(M) {
|
|
485
485
|
return typeof M;
|
|
486
|
-
} :
|
|
486
|
+
} : Te = function(M) {
|
|
487
487
|
return M && typeof Symbol == "function" && M.constructor === Symbol && M !== Symbol.prototype ? "symbol" : typeof M;
|
|
488
|
-
},
|
|
488
|
+
}, Te(b);
|
|
489
489
|
}
|
|
490
|
-
var
|
|
491
|
-
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, M = S.action,
|
|
492
|
-
if (
|
|
490
|
+
var Ne = function() {
|
|
491
|
+
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, M = S.action, T = M === void 0 ? "copy" : M, D = S.container, R = S.target, me = S.text;
|
|
492
|
+
if (T !== "copy" && T !== "cut")
|
|
493
493
|
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
494
494
|
if (R !== void 0)
|
|
495
|
-
if (R &&
|
|
496
|
-
if (
|
|
495
|
+
if (R && Te(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 (
|
|
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');
|
|
@@ -504,10 +504,10 @@ function Xi() {
|
|
|
504
504
|
container: D
|
|
505
505
|
});
|
|
506
506
|
if (R)
|
|
507
|
-
return
|
|
507
|
+
return T === "cut" ? c(R) : F(R, {
|
|
508
508
|
container: D
|
|
509
509
|
});
|
|
510
|
-
}, ft =
|
|
510
|
+
}, ft = Ne;
|
|
511
511
|
function we(b) {
|
|
512
512
|
"@babel/helpers - typeof";
|
|
513
513
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? we = function(M) {
|
|
@@ -522,8 +522,8 @@ function Xi() {
|
|
|
522
522
|
}
|
|
523
523
|
function Q(b, S) {
|
|
524
524
|
for (var M = 0; M < S.length; M++) {
|
|
525
|
-
var
|
|
526
|
-
|
|
525
|
+
var T = S[M];
|
|
526
|
+
T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(b, T.key, T);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
function se(b, S, M) {
|
|
@@ -535,23 +535,23 @@ function Xi() {
|
|
|
535
535
|
b.prototype = Object.create(S && S.prototype, { constructor: { value: b, writable: !0, configurable: !0 } }), S && pt(b, S);
|
|
536
536
|
}
|
|
537
537
|
function pt(b, S) {
|
|
538
|
-
return pt = Object.setPrototypeOf || function(
|
|
539
|
-
return
|
|
538
|
+
return pt = Object.setPrototypeOf || function(T, D) {
|
|
539
|
+
return T.__proto__ = D, T;
|
|
540
540
|
}, pt(b, S);
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Tt(b) {
|
|
543
543
|
var S = Dt();
|
|
544
544
|
return function() {
|
|
545
|
-
var
|
|
545
|
+
var T = ze(b), D;
|
|
546
546
|
if (S) {
|
|
547
547
|
var R = ze(this).constructor;
|
|
548
|
-
D = Reflect.construct(
|
|
548
|
+
D = Reflect.construct(T, arguments, R);
|
|
549
549
|
} else
|
|
550
|
-
D =
|
|
551
|
-
return
|
|
550
|
+
D = T.apply(this, arguments);
|
|
551
|
+
return Nt(this, D);
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Nt(b, S) {
|
|
555
555
|
return S && (we(S) === "object" || typeof S == "function") ? S : on(b);
|
|
556
556
|
}
|
|
557
557
|
function on(b) {
|
|
@@ -581,10 +581,10 @@ function Xi() {
|
|
|
581
581
|
}
|
|
582
582
|
var W = /* @__PURE__ */ (function(b) {
|
|
583
583
|
an(M, b);
|
|
584
|
-
var S =
|
|
585
|
-
function M(
|
|
584
|
+
var S = Tt(M);
|
|
585
|
+
function M(T, D) {
|
|
586
586
|
var R;
|
|
587
|
-
return C(this, M), R = S.call(this), R.resolveOptions(D), R.listenClick(
|
|
587
|
+
return C(this, M), R = S.call(this), R.resolveOptions(D), R.listenClick(T), R;
|
|
588
588
|
}
|
|
589
589
|
return se(M, [{
|
|
590
590
|
key: "resolveOptions",
|
|
@@ -708,13 +708,13 @@ function Xi() {
|
|
|
708
708
|
828: (
|
|
709
709
|
/***/
|
|
710
710
|
(function(a) {
|
|
711
|
-
var
|
|
711
|
+
var o = 9;
|
|
712
712
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
713
|
-
var
|
|
714
|
-
|
|
713
|
+
var i = Element.prototype;
|
|
714
|
+
i.matches = i.matchesSelector || i.mozMatchesSelector || i.msMatchesSelector || i.oMatchesSelector || i.webkitMatchesSelector;
|
|
715
715
|
}
|
|
716
716
|
function l(u, h) {
|
|
717
|
-
for (; u && u.nodeType !==
|
|
717
|
+
for (; u && u.nodeType !== o; ) {
|
|
718
718
|
if (typeof u.matches == "function" && u.matches(h))
|
|
719
719
|
return u;
|
|
720
720
|
u = u.parentNode;
|
|
@@ -726,8 +726,8 @@ function Xi() {
|
|
|
726
726
|
/***/
|
|
727
727
|
438: (
|
|
728
728
|
/***/
|
|
729
|
-
(function(a,
|
|
730
|
-
var l =
|
|
729
|
+
(function(a, o, i) {
|
|
730
|
+
var l = i(828);
|
|
731
731
|
function u(p, I, y, O, c) {
|
|
732
732
|
var g = w.apply(this, arguments);
|
|
733
733
|
return p.addEventListener(y, g, c), {
|
|
@@ -752,16 +752,16 @@ function Xi() {
|
|
|
752
752
|
/***/
|
|
753
753
|
879: (
|
|
754
754
|
/***/
|
|
755
|
-
(function(a,
|
|
756
|
-
|
|
757
|
-
return
|
|
758
|
-
},
|
|
759
|
-
var l = Object.prototype.toString.call(
|
|
760
|
-
return
|
|
761
|
-
},
|
|
762
|
-
return typeof
|
|
763
|
-
},
|
|
764
|
-
var l = Object.prototype.toString.call(
|
|
755
|
+
(function(a, o) {
|
|
756
|
+
o.node = function(i) {
|
|
757
|
+
return i !== void 0 && i instanceof HTMLElement && i.nodeType === 1;
|
|
758
|
+
}, o.nodeList = function(i) {
|
|
759
|
+
var l = Object.prototype.toString.call(i);
|
|
760
|
+
return i !== void 0 && (l === "[object NodeList]" || l === "[object HTMLCollection]") && "length" in i && (i.length === 0 || o.node(i[0]));
|
|
761
|
+
}, o.string = function(i) {
|
|
762
|
+
return typeof i == "string" || i instanceof String;
|
|
763
|
+
}, o.fn = function(i) {
|
|
764
|
+
var l = Object.prototype.toString.call(i);
|
|
765
765
|
return l === "[object Function]";
|
|
766
766
|
};
|
|
767
767
|
})
|
|
@@ -769,8 +769,8 @@ function Xi() {
|
|
|
769
769
|
/***/
|
|
770
770
|
370: (
|
|
771
771
|
/***/
|
|
772
|
-
(function(a,
|
|
773
|
-
var l =
|
|
772
|
+
(function(a, o, i) {
|
|
773
|
+
var l = i(879), u = i(438);
|
|
774
774
|
function h(y, O, c) {
|
|
775
775
|
if (!y && !O && !c)
|
|
776
776
|
throw new Error("Missing required arguments");
|
|
@@ -814,58 +814,58 @@ function Xi() {
|
|
|
814
814
|
817: (
|
|
815
815
|
/***/
|
|
816
816
|
(function(a) {
|
|
817
|
-
function i
|
|
817
|
+
function o(i) {
|
|
818
818
|
var l;
|
|
819
|
-
if (
|
|
820
|
-
|
|
821
|
-
else if (
|
|
822
|
-
var u =
|
|
823
|
-
u ||
|
|
819
|
+
if (i.nodeName === "SELECT")
|
|
820
|
+
i.focus(), l = i.value;
|
|
821
|
+
else if (i.nodeName === "INPUT" || i.nodeName === "TEXTAREA") {
|
|
822
|
+
var u = i.hasAttribute("readonly");
|
|
823
|
+
u || i.setAttribute("readonly", ""), i.select(), i.setSelectionRange(0, i.value.length), u || i.removeAttribute("readonly"), l = i.value;
|
|
824
824
|
} else {
|
|
825
|
-
|
|
825
|
+
i.hasAttribute("contenteditable") && i.focus();
|
|
826
826
|
var h = window.getSelection(), w = document.createRange();
|
|
827
|
-
w.selectNodeContents(
|
|
827
|
+
w.selectNodeContents(i), h.removeAllRanges(), h.addRange(w), l = h.toString();
|
|
828
828
|
}
|
|
829
829
|
return l;
|
|
830
830
|
}
|
|
831
|
-
a.exports =
|
|
831
|
+
a.exports = o;
|
|
832
832
|
})
|
|
833
833
|
),
|
|
834
834
|
/***/
|
|
835
835
|
279: (
|
|
836
836
|
/***/
|
|
837
837
|
(function(a) {
|
|
838
|
-
function
|
|
838
|
+
function o() {
|
|
839
839
|
}
|
|
840
|
-
|
|
841
|
-
on: function(
|
|
840
|
+
o.prototype = {
|
|
841
|
+
on: function(i, l, u) {
|
|
842
842
|
var h = this.e || (this.e = {});
|
|
843
|
-
return (h[
|
|
843
|
+
return (h[i] || (h[i] = [])).push({
|
|
844
844
|
fn: l,
|
|
845
845
|
ctx: u
|
|
846
846
|
}), this;
|
|
847
847
|
},
|
|
848
|
-
once: function(
|
|
848
|
+
once: function(i, l, u) {
|
|
849
849
|
var h = this;
|
|
850
850
|
function w() {
|
|
851
|
-
h.off(
|
|
851
|
+
h.off(i, w), l.apply(u, arguments);
|
|
852
852
|
}
|
|
853
|
-
return w._ = l, this.on(
|
|
853
|
+
return w._ = l, this.on(i, w, u);
|
|
854
854
|
},
|
|
855
|
-
emit: function(
|
|
856
|
-
var l = [].slice.call(arguments, 1), u = ((this.e || (this.e = {}))[
|
|
855
|
+
emit: function(i) {
|
|
856
|
+
var l = [].slice.call(arguments, 1), u = ((this.e || (this.e = {}))[i] || []).slice(), h = 0, w = u.length;
|
|
857
857
|
for (h; h < w; h++)
|
|
858
858
|
u[h].fn.apply(u[h].ctx, l);
|
|
859
859
|
return this;
|
|
860
860
|
},
|
|
861
|
-
off: function(
|
|
862
|
-
var u = this.e || (this.e = {}), h = u[
|
|
861
|
+
off: function(i, l) {
|
|
862
|
+
var u = this.e || (this.e = {}), h = u[i], w = [];
|
|
863
863
|
if (h && l)
|
|
864
864
|
for (var p = 0, I = h.length; p < I; p++)
|
|
865
865
|
h[p].fn !== l && h[p].fn._ !== l && w.push(h[p]);
|
|
866
|
-
return w.length ? u[
|
|
866
|
+
return w.length ? u[i] = w : delete u[i], this;
|
|
867
867
|
}
|
|
868
|
-
}, a.exports =
|
|
868
|
+
}, a.exports = o, a.exports.TinyEmitter = o;
|
|
869
869
|
})
|
|
870
870
|
)
|
|
871
871
|
/******/
|
|
@@ -873,7 +873,7 @@ function Xi() {
|
|
|
873
873
|
function r(a) {
|
|
874
874
|
if (s[a])
|
|
875
875
|
return s[a].exports;
|
|
876
|
-
var
|
|
876
|
+
var o = s[a] = {
|
|
877
877
|
/******/
|
|
878
878
|
// no module.id needed
|
|
879
879
|
/******/
|
|
@@ -882,11 +882,11 @@ function Xi() {
|
|
|
882
882
|
exports: {}
|
|
883
883
|
/******/
|
|
884
884
|
};
|
|
885
|
-
return n[a](
|
|
885
|
+
return n[a](o, o.exports, r), o.exports;
|
|
886
886
|
}
|
|
887
887
|
return (function() {
|
|
888
888
|
r.n = function(a) {
|
|
889
|
-
var
|
|
889
|
+
var o = a && a.__esModule ? (
|
|
890
890
|
/******/
|
|
891
891
|
function() {
|
|
892
892
|
return a.default;
|
|
@@ -897,16 +897,16 @@ function Xi() {
|
|
|
897
897
|
return a;
|
|
898
898
|
}
|
|
899
899
|
);
|
|
900
|
-
return r.d(
|
|
900
|
+
return r.d(o, { a: o }), o;
|
|
901
901
|
};
|
|
902
902
|
})(), (function() {
|
|
903
|
-
r.d = function(a,
|
|
904
|
-
for (var
|
|
905
|
-
r.o(
|
|
903
|
+
r.d = function(a, o) {
|
|
904
|
+
for (var i in o)
|
|
905
|
+
r.o(o, i) && !r.o(a, i) && Object.defineProperty(a, i, { enumerable: !0, get: o[i] });
|
|
906
906
|
};
|
|
907
907
|
})(), (function() {
|
|
908
|
-
r.o = function(a,
|
|
909
|
-
return Object.prototype.hasOwnProperty.call(a,
|
|
908
|
+
r.o = function(a, o) {
|
|
909
|
+
return Object.prototype.hasOwnProperty.call(a, o);
|
|
910
910
|
};
|
|
911
911
|
})(), r(686);
|
|
912
912
|
})().default
|
|
@@ -914,39 +914,39 @@ function Xi() {
|
|
|
914
914
|
});
|
|
915
915
|
})(Rt)), Rt.exports;
|
|
916
916
|
}
|
|
917
|
-
var
|
|
918
|
-
const
|
|
917
|
+
var Qo = Jo();
|
|
918
|
+
const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
|
|
919
919
|
toClipboard(t, n) {
|
|
920
920
|
return new Promise((s, r) => {
|
|
921
|
-
const a = document.createElement("button"),
|
|
921
|
+
const a = document.createElement("button"), o = new ei(a, {
|
|
922
922
|
text: () => t,
|
|
923
923
|
action: () => "copy",
|
|
924
924
|
container: n !== void 0 ? n : document.body
|
|
925
925
|
});
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
}),
|
|
929
|
-
|
|
926
|
+
o.on("success", (i) => {
|
|
927
|
+
o.destroy(), s(i);
|
|
928
|
+
}), o.on("error", (i) => {
|
|
929
|
+
o.destroy(), r(i);
|
|
930
930
|
}), document.body.appendChild(a), a.click(), document.body.removeChild(a);
|
|
931
931
|
});
|
|
932
932
|
}
|
|
933
|
-
}),
|
|
933
|
+
}), ni = {
|
|
934
934
|
key: 0,
|
|
935
935
|
class: "baklava-button"
|
|
936
936
|
}, Hs = /* @__PURE__ */ ce({
|
|
937
937
|
__name: "CopyToClipboard",
|
|
938
938
|
props: { text: String },
|
|
939
939
|
setup(e) {
|
|
940
|
-
const { toClipboard: t } =
|
|
940
|
+
const { toClipboard: t } = ti(), s = Sn(e, "text"), r = oe(!1), a = async () => {
|
|
941
941
|
try {
|
|
942
942
|
await t(s.value), r.value = !0, setTimeout(() => r.value = !1, 1500), console.log("Copied to clipboard");
|
|
943
|
-
} catch (
|
|
944
|
-
console.error(
|
|
943
|
+
} catch (o) {
|
|
944
|
+
console.error(o);
|
|
945
945
|
}
|
|
946
946
|
};
|
|
947
|
-
return (
|
|
948
|
-
r.value ? (m(), k("button",
|
|
949
|
-
X(H(
|
|
947
|
+
return (o, i) => (m(), k("div", null, [
|
|
948
|
+
r.value ? (m(), k("button", ni, [
|
|
949
|
+
X(H(Ts))
|
|
950
950
|
])) : (m(), k("button", {
|
|
951
951
|
key: 1,
|
|
952
952
|
onClick: a,
|
|
@@ -956,7 +956,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
956
956
|
]))
|
|
957
957
|
]));
|
|
958
958
|
}
|
|
959
|
-
}),
|
|
959
|
+
}), si = { class: "code-editor" }, ri = { class: "code-buttons" }, ai = /* @__PURE__ */ ce({
|
|
960
960
|
__name: "CodeEditor",
|
|
961
961
|
props: /* @__PURE__ */ rs({
|
|
962
962
|
locked: { type: Boolean },
|
|
@@ -968,32 +968,32 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
968
968
|
emits: /* @__PURE__ */ rs(["update:locked"], ["update:modelValue"]),
|
|
969
969
|
setup(e, { emit: t }) {
|
|
970
970
|
const n = na(e, "modelValue"), s = t, r = (a) => s("update:locked", a);
|
|
971
|
-
return (a,
|
|
972
|
-
const
|
|
973
|
-
return m(), k("div",
|
|
974
|
-
f("div",
|
|
971
|
+
return (a, o) => {
|
|
972
|
+
const i = _s("codemirror");
|
|
973
|
+
return m(), k("div", si, [
|
|
974
|
+
f("div", ri, [
|
|
975
975
|
e.locked ? (m(), k("button", {
|
|
976
976
|
key: 0,
|
|
977
977
|
class: "baklava-button",
|
|
978
978
|
title: "The code is locked.",
|
|
979
|
-
onClick:
|
|
979
|
+
onClick: o[0] || (o[0] = (l) => r(!1))
|
|
980
980
|
}, [
|
|
981
|
-
X(H(
|
|
981
|
+
X(H(Nn))
|
|
982
982
|
])) : K("", !0),
|
|
983
983
|
X(Hs, { text: e.modelValue }, null, 8, ["text"])
|
|
984
984
|
]),
|
|
985
|
-
X(
|
|
985
|
+
X(i, {
|
|
986
986
|
modelValue: n.value,
|
|
987
|
-
"onUpdate:modelValue":
|
|
987
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => n.value = l),
|
|
988
988
|
extensions: e.extensions,
|
|
989
989
|
class: "codemirror",
|
|
990
990
|
style: { height: "100%" },
|
|
991
|
-
onKeydown:
|
|
991
|
+
onKeydown: o[2] || (o[2] = (l) => r(!0))
|
|
992
992
|
}, null, 8, ["modelValue", "extensions"])
|
|
993
993
|
]);
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
}),
|
|
996
|
+
}), oi = /* @__PURE__ */ ce({
|
|
997
997
|
__name: "CodeGraphEditor",
|
|
998
998
|
props: {
|
|
999
999
|
viewModel: {}
|
|
@@ -1006,15 +1006,15 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1006
1006
|
palette: Ye(() => [
|
|
1007
1007
|
X(H(Vs))
|
|
1008
1008
|
]),
|
|
1009
|
-
node: Ye((
|
|
1010
|
-
X(H(Fs), aa(
|
|
1011
|
-
onUpdate: (
|
|
1009
|
+
node: Ye((o) => [
|
|
1010
|
+
X(H(Fs), aa(o, {
|
|
1011
|
+
onUpdate: (i) => s(o.node)
|
|
1012
1012
|
}), null, 16, ["onUpdate"])
|
|
1013
1013
|
]),
|
|
1014
|
-
sidebar: Ye((
|
|
1015
|
-
X(H(Gs), sa(ra(
|
|
1016
|
-
codeEditor: Ye(({ node:
|
|
1017
|
-
Me(r.$slots, "sidebarCodeEditor", { node:
|
|
1014
|
+
sidebar: Ye((o) => [
|
|
1015
|
+
X(H(Gs), sa(ra(o)), {
|
|
1016
|
+
codeEditor: Ye(({ node: i }) => [
|
|
1017
|
+
Me(r.$slots, "sidebarCodeEditor", { node: i })
|
|
1018
1018
|
]),
|
|
1019
1019
|
_: 3
|
|
1020
1020
|
}, 16)
|
|
@@ -1022,13 +1022,13 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1022
1022
|
_: 3
|
|
1023
1023
|
}, 8, ["viewModel"]));
|
|
1024
1024
|
}
|
|
1025
|
-
}),
|
|
1025
|
+
}), ii = { class: "code-graph-info" }, li = /* @__PURE__ */ ce({
|
|
1026
1026
|
__name: "CodeGraphInfo",
|
|
1027
1027
|
props: {
|
|
1028
1028
|
viewModel: {}
|
|
1029
1029
|
},
|
|
1030
1030
|
setup(e) {
|
|
1031
|
-
return (t, n) => (m(), k("div",
|
|
1031
|
+
return (t, n) => (m(), k("div", ii, [
|
|
1032
1032
|
f("div", null, "Editor graph: " + te(e.viewModel.editor.graph.shortId), 1),
|
|
1033
1033
|
f("div", null, "Displayed graph: " + te(e.viewModel.displayedGraph.shortId), 1),
|
|
1034
1034
|
f("div", null, "Graphs: " + te(e.viewModel.editor.graphIds), 1),
|
|
@@ -1036,13 +1036,13 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1036
1036
|
f("div", null, "Engine status: " + te(e.viewModel.engine?.status), 1)
|
|
1037
1037
|
]));
|
|
1038
1038
|
}
|
|
1039
|
-
}),
|
|
1039
|
+
}), ui = ["data-node-type", "id"], di = {
|
|
1040
1040
|
class: "__title-label",
|
|
1041
1041
|
style: { "flex-grow": "1" }
|
|
1042
|
-
},
|
|
1042
|
+
}, ci = { key: 0 }, hi = {
|
|
1043
1043
|
class: "__menu",
|
|
1044
1044
|
style: { display: "flex" }
|
|
1045
|
-
},
|
|
1045
|
+
}, fi = { class: "__outputs" }, pi = { key: 0 }, mi = ["id", "title"], vi = { class: "__inputs" }, _i = { key: 0 }, yi = ["id", "title"], Fs = /* @__PURE__ */ ce({
|
|
1046
1046
|
__name: "CodeGraphNode",
|
|
1047
1047
|
props: {
|
|
1048
1048
|
node: {},
|
|
@@ -1051,9 +1051,9 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1051
1051
|
},
|
|
1052
1052
|
emits: ["select", "start-drag", "update"],
|
|
1053
1053
|
setup(e, { emit: t }) {
|
|
1054
|
-
const n = fn.ContextMenu, s = fn.NodeInterface, r = e, a = z(() => r.node),
|
|
1054
|
+
const n = fn.ContextMenu, s = fn.NodeInterface, r = e, a = z(() => r.node), o = t, { viewModel: i } = kt(), { graph: l, switchGraph: u } = Cn(), h = oe(null), w = oe(!1), p = oe(""), I = oe(null), y = oe(!1);
|
|
1055
1055
|
let O = 0, c = 0;
|
|
1056
|
-
const g =
|
|
1056
|
+
const g = oe(!1), $ = z(() => {
|
|
1057
1057
|
const W = [
|
|
1058
1058
|
{ value: "edit", label: "Edit" },
|
|
1059
1059
|
{ value: "rename", label: "Rename" },
|
|
@@ -1066,22 +1066,22 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1066
1066
|
"--two-column": !!r.node.twoColumn,
|
|
1067
1067
|
"--hidden": a.value.state?.hidden
|
|
1068
1068
|
})), F = z(() => ({
|
|
1069
|
-
"--reverse-y": r.node.reverseY ??
|
|
1070
|
-
})),
|
|
1069
|
+
"--reverse-y": r.node.reverseY ?? i.value.settings.nodes.reverseY
|
|
1070
|
+
})), Te = z(() => ({
|
|
1071
1071
|
top: `${r.node.position?.y ?? 0}px`,
|
|
1072
1072
|
left: `${r.node.position?.x ?? 0}px`,
|
|
1073
|
-
"--width": `${r.node.width ??
|
|
1074
|
-
})),
|
|
1075
|
-
an(),
|
|
1073
|
+
"--width": `${r.node.width ?? i.value.settings.nodes.defaultWidth}px`
|
|
1074
|
+
})), Ne = z(() => Object.values(r.node.inputs).filter((W) => !W.hidden)), ft = z(() => Object.values(r.node.outputs).filter((W) => !W.hidden)), we = () => {
|
|
1075
|
+
an(), o("select");
|
|
1076
1076
|
}, C = (W) => {
|
|
1077
|
-
r.selected || we(),
|
|
1077
|
+
r.selected || we(), o("start-drag", W);
|
|
1078
1078
|
}, Q = () => {
|
|
1079
1079
|
g.value = !0;
|
|
1080
1080
|
}, se = () => {
|
|
1081
|
-
const W =
|
|
1081
|
+
const W = i.value.displayedGraph.sidebar;
|
|
1082
1082
|
W.nodeId = r.node.id, W.visible = !0;
|
|
1083
1083
|
}, an = () => {
|
|
1084
|
-
const W =
|
|
1084
|
+
const W = i.value.displayedGraph.sidebar;
|
|
1085
1085
|
W.nodeId = r.node.id;
|
|
1086
1086
|
}, pt = async (W) => {
|
|
1087
1087
|
switch (W) {
|
|
@@ -1092,41 +1092,41 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1092
1092
|
l.value.removeNode(r.node);
|
|
1093
1093
|
break;
|
|
1094
1094
|
case "rename":
|
|
1095
|
-
p.value = r.node.
|
|
1095
|
+
p.value = r.node.title, w.value = !0, await ks(), I.value?.focus();
|
|
1096
1096
|
break;
|
|
1097
1097
|
case "editSubgraph":
|
|
1098
1098
|
u(r.node.template);
|
|
1099
1099
|
break;
|
|
1100
1100
|
}
|
|
1101
|
-
}, Nt = () => {
|
|
1102
|
-
a.value.state.variableName = p.value, a.value.events.titleChanged.emit(a.value.state.variableName), w.value = !1;
|
|
1103
1101
|
}, Tt = () => {
|
|
1104
|
-
|
|
1102
|
+
a.value.title = p.value, a.value.events.titleChanged.emit(a.value.title), w.value = !1;
|
|
1103
|
+
}, Nt = () => {
|
|
1104
|
+
h.value && i.value.hooks.renderNode.execute({ node: r.node, el: h.value });
|
|
1105
1105
|
}, on = (W) => {
|
|
1106
1106
|
y.value = !0, O = r.node.width, c = W.clientX, W.preventDefault();
|
|
1107
1107
|
}, Dt = (W) => {
|
|
1108
|
-
a.value.state && (a.value.state.integrated = W,
|
|
1108
|
+
a.value.state && (a.value.state.integrated = W, o("update"));
|
|
1109
1109
|
}, ze = (W) => {
|
|
1110
1110
|
if (!y.value) return;
|
|
1111
|
-
const B = W.clientX - c, b = O + B / l.value.scaling, S =
|
|
1111
|
+
const B = W.clientX - c, b = O + B / l.value.scaling, S = i.value.settings.nodes.minWidth, M = i.value.settings.nodes.maxWidth;
|
|
1112
1112
|
a.value.width = Math.max(S, Math.min(M, b));
|
|
1113
1113
|
}, et = () => {
|
|
1114
1114
|
y.value = !1;
|
|
1115
1115
|
};
|
|
1116
1116
|
return xn(() => {
|
|
1117
|
-
|
|
1118
|
-
}), bs(
|
|
1117
|
+
Nt(), window.addEventListener("mousemove", ze), window.addEventListener("mouseup", et);
|
|
1118
|
+
}), bs(Nt), ys(() => {
|
|
1119
1119
|
window.removeEventListener("mousemove", ze), window.removeEventListener("mouseup", et);
|
|
1120
1120
|
}), (W, B) => (m(), k("div", {
|
|
1121
1121
|
class: je([A.value, "baklava-node"]),
|
|
1122
1122
|
"data-node-type": a.value.type,
|
|
1123
1123
|
id: a.value.id,
|
|
1124
|
-
style: On(
|
|
1124
|
+
style: On(Te.value),
|
|
1125
1125
|
ref_key: "el",
|
|
1126
1126
|
ref: h,
|
|
1127
1127
|
onPointerdown: we
|
|
1128
1128
|
}, [
|
|
1129
|
-
H(
|
|
1129
|
+
H(i).settings.nodes.resizable ? (m(), k("div", {
|
|
1130
1130
|
key: 0,
|
|
1131
1131
|
class: "__resize-handle",
|
|
1132
1132
|
onMousedown: on
|
|
@@ -1151,27 +1151,27 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1151
1151
|
ref: I,
|
|
1152
1152
|
"onUpdate:modelValue": B[4] || (B[4] = (b) => p.value = b),
|
|
1153
1153
|
class: "baklava-input",
|
|
1154
|
-
placeholder: "
|
|
1154
|
+
placeholder: "Title",
|
|
1155
1155
|
style: { "flex-grow": "1" },
|
|
1156
1156
|
type: "text",
|
|
1157
|
-
onBlur:
|
|
1158
|
-
onKeydown: hn(
|
|
1157
|
+
onBlur: Tt,
|
|
1158
|
+
onKeydown: hn(Tt, ["enter"])
|
|
1159
1159
|
}, null, 544)), [
|
|
1160
1160
|
[jt, p.value]
|
|
1161
1161
|
]) : (m(), k(ae, { key: 1 }, [
|
|
1162
|
-
f("div",
|
|
1163
|
-
a.value.idx > -1 ? (m(), k("span",
|
|
1164
|
-
ws(" " + te(a.value.
|
|
1162
|
+
f("div", di, [
|
|
1163
|
+
a.value.idx > -1 ? (m(), k("span", ci, te(a.value.idx + 1) + " - ", 1)) : K("", !0),
|
|
1164
|
+
ws(" " + te(a.value.title), 1)
|
|
1165
1165
|
]),
|
|
1166
|
-
f("div",
|
|
1166
|
+
f("div", hi, [
|
|
1167
1167
|
a.value.isCodeNode ? (m(), k(ae, { key: 0 }, [
|
|
1168
|
-
a.value.state.lockCode ? (m(), ue(H(
|
|
1168
|
+
a.value.state.lockCode ? (m(), ue(H(Nn), {
|
|
1169
1169
|
key: 0,
|
|
1170
1170
|
class: "--clickable mx-1",
|
|
1171
1171
|
onClick: B[0] || (B[0] = (b) => a.value.lockCode = !1)
|
|
1172
1172
|
})) : K("", !0),
|
|
1173
1173
|
a.value.hasConnectedOutputNodes ? (m(), k(ae, { key: 1 }, [
|
|
1174
|
-
a.value.state.integrated ? (m(), ue(H(
|
|
1174
|
+
a.value.state.integrated ? (m(), ue(H(Ns), {
|
|
1175
1175
|
key: 1,
|
|
1176
1176
|
class: "--clickable mx-1",
|
|
1177
1177
|
onClick: B[2] || (B[2] = (b) => Dt(!1))
|
|
@@ -1181,7 +1181,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1181
1181
|
onClick: B[1] || (B[1] = (b) => Dt(!0))
|
|
1182
1182
|
}))
|
|
1183
1183
|
], 64)) : K("", !0),
|
|
1184
|
-
a.value.isSelected && !H(
|
|
1184
|
+
a.value.isSelected && !H(i).displayedGraph.sidebar.visible ? (m(), ue(H(Tn), {
|
|
1185
1185
|
key: 2,
|
|
1186
1186
|
class: "--clickable mx-1",
|
|
1187
1187
|
onClick: se
|
|
@@ -1217,11 +1217,11 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1217
1217
|
onContextmenu: B[6] || (B[6] = st(() => {
|
|
1218
1218
|
}, ["prevent"]))
|
|
1219
1219
|
}, [
|
|
1220
|
-
f("div",
|
|
1220
|
+
f("div", fi, [
|
|
1221
1221
|
(m(!0), k(ae, null, Ke(ft.value, (b) => (m(), k(ae, {
|
|
1222
1222
|
key: b.id
|
|
1223
1223
|
}, [
|
|
1224
|
-
a.value.state?.hidden ? (m(), k("div",
|
|
1224
|
+
a.value.state?.hidden ? (m(), k("div", pi, [
|
|
1225
1225
|
b.port ? (m(), k("div", {
|
|
1226
1226
|
key: 0,
|
|
1227
1227
|
id: b.id,
|
|
@@ -1229,7 +1229,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1229
1229
|
class: "baklava-node-interface --output --connected"
|
|
1230
1230
|
}, [...B[7] || (B[7] = [
|
|
1231
1231
|
f("div", { class: "__port" }, null, -1)
|
|
1232
|
-
])], 8,
|
|
1232
|
+
])], 8, mi)) : K("", !0)
|
|
1233
1233
|
])) : Me(W.$slots, "nodeInterface", {
|
|
1234
1234
|
key: 1,
|
|
1235
1235
|
type: "output",
|
|
@@ -1244,11 +1244,11 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1244
1244
|
])
|
|
1245
1245
|
], 64))), 128))
|
|
1246
1246
|
]),
|
|
1247
|
-
f("div",
|
|
1248
|
-
(m(!0), k(ae, null, Ke(
|
|
1247
|
+
f("div", vi, [
|
|
1248
|
+
(m(!0), k(ae, null, Ke(Ne.value, (b) => (m(), k(ae, {
|
|
1249
1249
|
key: b.id
|
|
1250
1250
|
}, [
|
|
1251
|
-
a.value.state?.hidden ? (m(), k("div",
|
|
1251
|
+
a.value.state?.hidden ? (m(), k("div", _i, [
|
|
1252
1252
|
b.port ? (m(), k("div", {
|
|
1253
1253
|
key: 0,
|
|
1254
1254
|
id: b.id,
|
|
@@ -1256,7 +1256,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1256
1256
|
class: "baklava-node-interface --input --connected"
|
|
1257
1257
|
}, [...B[8] || (B[8] = [
|
|
1258
1258
|
f("div", { class: "__port" }, null, -1)
|
|
1259
|
-
])], 8,
|
|
1259
|
+
])], 8, yi)) : K("", !0)
|
|
1260
1260
|
])) : Me(W.$slots, "nodeInterface", {
|
|
1261
1261
|
key: 1,
|
|
1262
1262
|
node: a.value,
|
|
@@ -1272,17 +1272,17 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1272
1272
|
], 64))), 128))
|
|
1273
1273
|
])
|
|
1274
1274
|
], 34)
|
|
1275
|
-
], 46,
|
|
1275
|
+
], 46, ui));
|
|
1276
1276
|
}
|
|
1277
|
-
}),
|
|
1277
|
+
}), gi = ["id"], bi = { class: "align-middle" }, pn = /* @__PURE__ */ ce({
|
|
1278
1278
|
__name: "CodeGraphNodeInterface",
|
|
1279
1279
|
props: {
|
|
1280
1280
|
node: {},
|
|
1281
1281
|
intf: {}
|
|
1282
1282
|
},
|
|
1283
1283
|
setup(e) {
|
|
1284
|
-
const t = e, { viewModel: n } = kt(), { hoveredOver: s, temporaryConnection: r } = da(), a =
|
|
1285
|
-
"--connected":
|
|
1284
|
+
const t = e, { viewModel: n } = kt(), { hoveredOver: s, temporaryConnection: r } = da(), a = oe(null), o = z(() => t.intf.connectionCount > 0), i = z(() => ({
|
|
1285
|
+
"--connected": o.value
|
|
1286
1286
|
})), l = () => {
|
|
1287
1287
|
s(t.intf);
|
|
1288
1288
|
}, u = () => {
|
|
@@ -1294,7 +1294,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1294
1294
|
id: e.intf.id,
|
|
1295
1295
|
ref_key: "el",
|
|
1296
1296
|
ref: a,
|
|
1297
|
-
class: je(["baklava-node-interface",
|
|
1297
|
+
class: je(["baklava-node-interface", i.value])
|
|
1298
1298
|
}, [
|
|
1299
1299
|
e.intf.port ? (m(), k("div", {
|
|
1300
1300
|
key: 0,
|
|
@@ -1302,12 +1302,12 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1302
1302
|
onPointerover: l,
|
|
1303
1303
|
onPointerout: u
|
|
1304
1304
|
}, null, 34)) : K("", !0),
|
|
1305
|
-
f("span",
|
|
1305
|
+
f("span", bi, [
|
|
1306
1306
|
Me(w.$slots, "default")
|
|
1307
1307
|
])
|
|
1308
|
-
], 10,
|
|
1308
|
+
], 10, gi));
|
|
1309
1309
|
}
|
|
1310
|
-
}),
|
|
1310
|
+
}), wi = ["title"], ki = {
|
|
1311
1311
|
key: 0,
|
|
1312
1312
|
class: "__label"
|
|
1313
1313
|
}, mn = /* @__PURE__ */ ce({
|
|
@@ -1340,17 +1340,17 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1340
1340
|
})
|
|
1341
1341
|
])
|
|
1342
1342
|
], -1)),
|
|
1343
|
-
e.name ? (m(), k("div",
|
|
1344
|
-
], 10,
|
|
1343
|
+
e.name ? (m(), k("div", ki, te(e.name), 1)) : K("", !0)
|
|
1344
|
+
], 10, wi));
|
|
1345
1345
|
}
|
|
1346
|
-
}),
|
|
1346
|
+
}), Mi = { class: "__header" }, Si = { class: "__node-name" }, xi = { class: "__interfaces" }, Oi = { class: "__inputs" }, Ci = { style: { display: "flex" } }, Ti = { class: "__outputs" }, Ni = {
|
|
1347
1347
|
key: 0,
|
|
1348
1348
|
class: "__interface"
|
|
1349
|
-
},
|
|
1349
|
+
}, Di = ["placeholder"], Ii = { style: { display: "flex" } }, Gs = /* @__PURE__ */ ce({
|
|
1350
1350
|
__name: "CodeGraphSidebar",
|
|
1351
1351
|
setup(e) {
|
|
1352
|
-
const { viewModel: t } = kt(), { graph: n } = Cn(), s =
|
|
1353
|
-
let
|
|
1352
|
+
const { viewModel: t } = kt(), { graph: n } = Cn(), s = oe(null), r = Sn(t.value.settings.sidebar, "width"), a = z(() => t.value.settings.sidebar.resizable);
|
|
1353
|
+
let o = 0, i = 0;
|
|
1354
1354
|
const l = z(() => {
|
|
1355
1355
|
const g = n.value.sidebar.nodeId;
|
|
1356
1356
|
return n.value.nodes.find(($) => $.id === g);
|
|
@@ -1361,7 +1361,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1361
1361
|
}, y = () => {
|
|
1362
1362
|
l.value && (l.value.state.variableNameNumberAppendix = u.value.state.variableName.length === 0, l.value.events.update.emit(null));
|
|
1363
1363
|
}, O = (g) => {
|
|
1364
|
-
|
|
1364
|
+
o = r.value, i = g.clientX, window.addEventListener("mousemove", c), window.addEventListener(
|
|
1365
1365
|
"mouseup",
|
|
1366
1366
|
() => {
|
|
1367
1367
|
window.removeEventListener("mousemove", c);
|
|
@@ -1369,8 +1369,8 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1369
1369
|
{ once: !0 }
|
|
1370
1370
|
);
|
|
1371
1371
|
}, c = (g) => {
|
|
1372
|
-
const $ = s.value?.parentElement?.getBoundingClientRect().width ?? 500, A = g.clientX -
|
|
1373
|
-
let F =
|
|
1372
|
+
const $ = s.value?.parentElement?.getBoundingClientRect().width ?? 500, A = g.clientX - i;
|
|
1373
|
+
let F = o - A;
|
|
1374
1374
|
F < 300 ? F = 300 : F > 0.9 * $ && (F = 0.9 * $), r.value = F;
|
|
1375
1375
|
};
|
|
1376
1376
|
return (g, $) => (m(), k("div", {
|
|
@@ -1385,23 +1385,23 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1385
1385
|
onMousedown: O
|
|
1386
1386
|
}, null, 32)) : K("", !0),
|
|
1387
1387
|
l.value ? (m(), k(ae, { key: 1 }, [
|
|
1388
|
-
f("div",
|
|
1388
|
+
f("div", Mi, [
|
|
1389
1389
|
f("button", {
|
|
1390
1390
|
tabindex: "-1",
|
|
1391
1391
|
class: "__close",
|
|
1392
1392
|
onClick: I
|
|
1393
1393
|
}, "×"),
|
|
1394
|
-
f("div",
|
|
1394
|
+
f("div", Si, [
|
|
1395
1395
|
f("b", null, te(l.value.title), 1)
|
|
1396
1396
|
])
|
|
1397
1397
|
]),
|
|
1398
|
-
f("div",
|
|
1399
|
-
f("div",
|
|
1398
|
+
f("div", xi, [
|
|
1399
|
+
f("div", Oi, [
|
|
1400
1400
|
(m(!0), k(ae, null, Ke(w.value, (A) => (m(), k("div", {
|
|
1401
1401
|
key: A.id,
|
|
1402
1402
|
class: "__interface"
|
|
1403
1403
|
}, [
|
|
1404
|
-
f("div",
|
|
1404
|
+
f("div", Ci, [
|
|
1405
1405
|
X(mn, {
|
|
1406
1406
|
modelValue: A.hidden,
|
|
1407
1407
|
"onUpdate:modelValue": [
|
|
@@ -1422,8 +1422,8 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1422
1422
|
])
|
|
1423
1423
|
]))), 128))
|
|
1424
1424
|
]),
|
|
1425
|
-
f("div",
|
|
1426
|
-
u.value && u.value.state ? (m(), k("div",
|
|
1425
|
+
f("div", Ti, [
|
|
1426
|
+
u.value && u.value.state ? (m(), k("div", Ni, [
|
|
1427
1427
|
$[3] || ($[3] = f("label", null, "Variable name", -1)),
|
|
1428
1428
|
Vt(f("input", {
|
|
1429
1429
|
"onUpdate:modelValue": $[1] || ($[1] = (A) => u.value.state.variableName = A),
|
|
@@ -1433,7 +1433,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1433
1433
|
title: "Variable name",
|
|
1434
1434
|
onBlur: y,
|
|
1435
1435
|
onKeydown: hn(y, ["enter"])
|
|
1436
|
-
}, null, 40,
|
|
1436
|
+
}, null, 40, Di), [
|
|
1437
1437
|
[jt, u.value.state.variableName]
|
|
1438
1438
|
])
|
|
1439
1439
|
])) : K("", !0),
|
|
@@ -1441,7 +1441,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1441
1441
|
key: A.id,
|
|
1442
1442
|
class: "__interface"
|
|
1443
1443
|
}, [
|
|
1444
|
-
f("div",
|
|
1444
|
+
f("div", Ii, [
|
|
1445
1445
|
X(mn, {
|
|
1446
1446
|
modelValue: A.hidden,
|
|
1447
1447
|
"onUpdate:modelValue": [
|
|
@@ -1468,34 +1468,34 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
|
|
|
1468
1468
|
], 6));
|
|
1469
1469
|
}
|
|
1470
1470
|
});
|
|
1471
|
-
function
|
|
1471
|
+
function Yi(e, t) {
|
|
1472
1472
|
return Object.fromEntries(Object.entries(e).filter(t));
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Ei(e, t) {
|
|
1475
1475
|
return Object.fromEntries(Object.entries(e).map(([n, s]) => [n, t(s)]));
|
|
1476
1476
|
}
|
|
1477
|
-
const
|
|
1477
|
+
const Ri = {
|
|
1478
1478
|
class: "baklava-node --palette",
|
|
1479
1479
|
style: { "margin-top": "-20px", "margin-bottom": "20px" }
|
|
1480
|
-
},
|
|
1480
|
+
}, Pi = {
|
|
1481
1481
|
key: 0,
|
|
1482
1482
|
style: { display: "flex", "justify-content": "space-between" }
|
|
1483
|
-
},
|
|
1483
|
+
}, Li = ["onClick"], Ai = {
|
|
1484
1484
|
key: 0,
|
|
1485
1485
|
style: { margin: "auto 0", "font-size": "12px" }
|
|
1486
1486
|
}, Vs = /* @__PURE__ */ ce({
|
|
1487
1487
|
__name: "CodeNodePalette",
|
|
1488
1488
|
setup(e) {
|
|
1489
|
-
const t = fn.PaletteEntry, { viewModel: n } = kt(), { x: s, y: r } = Aa(), { transform: a } = ca(),
|
|
1489
|
+
const t = fn.PaletteEntry, { viewModel: n } = kt(), { x: s, y: r } = Aa(), { transform: a } = ca(), o = ha(n), i = oa("editorEl"), l = oe(""), u = oe(null), h = () => l.value ? o.value.filter(
|
|
1490
1490
|
(y) => y.name.toLowerCase().includes(l.value.toLowerCase()) || Object.values(y.nodeTypes).some(
|
|
1491
1491
|
(O) => O.title.toLowerCase().includes(l.value.toLowerCase())
|
|
1492
1492
|
)
|
|
1493
|
-
) :
|
|
1493
|
+
) : o.value, w = (y) => l.value ? Yi(y, (O) => {
|
|
1494
1494
|
const c = O[1];
|
|
1495
1495
|
return c.category.includes(l.value.toLowerCase()) || c.title?.toLowerCase().includes(l.value.toLowerCase());
|
|
1496
1496
|
}) : y, p = z(() => {
|
|
1497
|
-
if (!u.value || !
|
|
1498
|
-
const { left: y, top: O } =
|
|
1497
|
+
if (!u.value || !i?.value) return {};
|
|
1498
|
+
const { left: y, top: O } = i.value.getBoundingClientRect();
|
|
1499
1499
|
return {
|
|
1500
1500
|
top: `${r.value - O}px`,
|
|
1501
1501
|
left: `${s.value - y}px`
|
|
@@ -1508,7 +1508,7 @@ const Ro = {
|
|
|
1508
1508
|
const c = () => {
|
|
1509
1509
|
const g = Ae(new O.type());
|
|
1510
1510
|
n.value.displayedGraph.addNode(g);
|
|
1511
|
-
const $ =
|
|
1511
|
+
const $ = i.value.getBoundingClientRect(), [A, F] = a(s.value - $.left, r.value - $.top);
|
|
1512
1512
|
g.position.x = A, g.position.y = F, u.value = null, document.removeEventListener("pointerup", c);
|
|
1513
1513
|
};
|
|
1514
1514
|
document.addEventListener("pointerup", c);
|
|
@@ -1519,7 +1519,7 @@ const Ro = {
|
|
|
1519
1519
|
onContextmenu: O[1] || (O[1] = st(() => {
|
|
1520
1520
|
}, ["stop", "prevent"]))
|
|
1521
1521
|
}, [
|
|
1522
|
-
f("div",
|
|
1522
|
+
f("div", Ri, [
|
|
1523
1523
|
Vt(f("input", {
|
|
1524
1524
|
"onUpdate:modelValue": O[0] || (O[0] = (c) => l.value = c),
|
|
1525
1525
|
type: "text",
|
|
@@ -1533,12 +1533,12 @@ const Ro = {
|
|
|
1533
1533
|
(m(!0), k(ae, null, Ke(h(), (c) => (m(), k("section", {
|
|
1534
1534
|
key: c.name
|
|
1535
1535
|
}, [
|
|
1536
|
-
c.name !== "default" ? (m(), k("h3",
|
|
1536
|
+
c.name !== "default" ? (m(), k("h3", Pi, [
|
|
1537
1537
|
f("div", {
|
|
1538
1538
|
onClick: (g) => l.value = c.name,
|
|
1539
1539
|
style: { cursor: "pointer" }
|
|
1540
|
-
}, te(c.name), 9,
|
|
1541
|
-
Object.keys(w(c.nodeTypes)).length < Object.values(c.nodeTypes).length ? (m(), k("div",
|
|
1540
|
+
}, te(c.name), 9, Li),
|
|
1541
|
+
Object.keys(w(c.nodeTypes)).length < Object.values(c.nodeTypes).length ? (m(), k("div", Ai, " ( " + te(Object.keys(w(c.nodeTypes)).length) + " / " + te(Object.values(c.nodeTypes).length) + " ) ", 1)) : K("", !0)
|
|
1542
1542
|
])) : K("", !0),
|
|
1543
1543
|
(m(!0), k(ae, null, Ke(w(c.nodeTypes), (g, $) => (m(), ue(H(t), {
|
|
1544
1544
|
key: $,
|
|
@@ -1548,7 +1548,7 @@ const Ro = {
|
|
|
1548
1548
|
}, null, 8, ["title", "type", "onPointerdown"]))), 128))
|
|
1549
1549
|
]))), 128))
|
|
1550
1550
|
], 34),
|
|
1551
|
-
X(
|
|
1551
|
+
X(ia, { name: "fade" }, {
|
|
1552
1552
|
default: Ye(() => [
|
|
1553
1553
|
u.value ? (m(), k("div", {
|
|
1554
1554
|
key: 0,
|
|
@@ -1565,23 +1565,23 @@ const Ro = {
|
|
|
1565
1565
|
})
|
|
1566
1566
|
], 64));
|
|
1567
1567
|
}
|
|
1568
|
-
}),
|
|
1569
|
-
function
|
|
1568
|
+
}), Ui = {}, $i = { class: "prependIcon" }, Wi = { class: "appendIcon" };
|
|
1569
|
+
function Hi(e, t) {
|
|
1570
1570
|
const n = _s("router-link");
|
|
1571
1571
|
return m(), ue(n, { class: "navItem" }, {
|
|
1572
1572
|
default: Ye(() => [
|
|
1573
|
-
f("span", $
|
|
1573
|
+
f("span", $i, [
|
|
1574
1574
|
Me(e.$slots, "prependIcon")
|
|
1575
1575
|
]),
|
|
1576
1576
|
Me(e.$slots, "default"),
|
|
1577
|
-
f("span",
|
|
1577
|
+
f("span", Wi, [
|
|
1578
1578
|
Me(e.$slots, "appendIcon")
|
|
1579
1579
|
])
|
|
1580
1580
|
]),
|
|
1581
1581
|
_: 3
|
|
1582
1582
|
});
|
|
1583
1583
|
}
|
|
1584
|
-
const vn = /* @__PURE__ */ q(
|
|
1584
|
+
const vn = /* @__PURE__ */ q(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi = ["onClick"], Vi = /* @__PURE__ */ ce({
|
|
1585
1585
|
__name: "NavBar",
|
|
1586
1586
|
props: {
|
|
1587
1587
|
viewModel: {},
|
|
@@ -1593,23 +1593,23 @@ const vn = /* @__PURE__ */ q(Uo, [["render", Ho]]), Fo = { class: "navbar" }, Go
|
|
|
1593
1593
|
const n = t, s = (r) => {
|
|
1594
1594
|
n("click:remove", r);
|
|
1595
1595
|
};
|
|
1596
|
-
return (r, a) => (m(), k("nav",
|
|
1596
|
+
return (r, a) => (m(), k("nav", Fi, [
|
|
1597
1597
|
Me(r.$slots, "prepend"),
|
|
1598
|
-
(m(!0), k(ae, null, Ke(e.editorStates, (
|
|
1599
|
-
key:
|
|
1600
|
-
class: je({ active:
|
|
1601
|
-
to: { name: e.routes?.edit ?? "edit", params: { editorId:
|
|
1598
|
+
(m(!0), k(ae, null, Ke(e.editorStates, (o) => (m(), ue(vn, {
|
|
1599
|
+
key: o.graph.id,
|
|
1600
|
+
class: je({ active: o.graph.id === e.viewModel.displayedGraph.id }),
|
|
1601
|
+
to: { name: e.routes?.edit ?? "edit", params: { editorId: o.graph.id } }
|
|
1602
1602
|
}, {
|
|
1603
1603
|
appendIcon: Ye(() => [
|
|
1604
1604
|
f("button", {
|
|
1605
1605
|
class: "remove",
|
|
1606
|
-
onClick: st((
|
|
1606
|
+
onClick: st((i) => s(o.graph.id), ["prevent"])
|
|
1607
1607
|
}, [
|
|
1608
1608
|
X(H(Ws))
|
|
1609
|
-
], 8,
|
|
1609
|
+
], 8, Gi)
|
|
1610
1610
|
]),
|
|
1611
1611
|
default: Ye(() => [
|
|
1612
|
-
ws(te(
|
|
1612
|
+
ws(te(o.graph.id.slice(0, 6)) + " ", 1)
|
|
1613
1613
|
]),
|
|
1614
1614
|
_: 2
|
|
1615
1615
|
}, 1032, ["class", "to"]))), 128)),
|
|
@@ -1626,7 +1626,7 @@ const vn = /* @__PURE__ */ q(Uo, [["render", Ho]]), Fo = { class: "navbar" }, Go
|
|
|
1626
1626
|
])
|
|
1627
1627
|
]));
|
|
1628
1628
|
}
|
|
1629
|
-
}),
|
|
1629
|
+
}), ji = ce({
|
|
1630
1630
|
props: {
|
|
1631
1631
|
intf: {
|
|
1632
1632
|
type: Object,
|
|
@@ -1646,44 +1646,44 @@ const vn = /* @__PURE__ */ q(Uo, [["render", Ho]]), Fo = { class: "navbar" }, Go
|
|
|
1646
1646
|
}
|
|
1647
1647
|
}) };
|
|
1648
1648
|
}
|
|
1649
|
-
}),
|
|
1650
|
-
function
|
|
1651
|
-
return m(), k("div",
|
|
1652
|
-
f("label",
|
|
1649
|
+
}), zi = { style: { position: "relative" } }, Bi = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-8px", "background-color": "var(--baklava-node-color-background)" } }, Zi = ["placeholder", "title"];
|
|
1650
|
+
function qi(e, t, n, s, r, a) {
|
|
1651
|
+
return m(), k("div", zi, [
|
|
1652
|
+
f("label", Bi, te(e.intf.name), 1),
|
|
1653
1653
|
Vt(f("input", {
|
|
1654
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1654
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.v = o),
|
|
1655
1655
|
type: "text",
|
|
1656
1656
|
class: "baklava-input",
|
|
1657
1657
|
placeholder: e.intf.name,
|
|
1658
1658
|
title: e.intf.name
|
|
1659
|
-
}, null, 8,
|
|
1659
|
+
}, null, 8, Zi), [
|
|
1660
1660
|
[jt, e.v]
|
|
1661
1661
|
])
|
|
1662
1662
|
]);
|
|
1663
1663
|
}
|
|
1664
|
-
const js = /* @__PURE__ */ q(
|
|
1664
|
+
const js = /* @__PURE__ */ q(ji, [["render", qi]]), Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1665
1665
|
__proto__: null,
|
|
1666
|
-
CodeEditor:
|
|
1667
|
-
CodeGraphEditor:
|
|
1668
|
-
CodeGraphInfo:
|
|
1666
|
+
CodeEditor: ai,
|
|
1667
|
+
CodeGraphEditor: oi,
|
|
1668
|
+
CodeGraphInfo: li,
|
|
1669
1669
|
CodeGraphNode: Fs,
|
|
1670
1670
|
CodeGraphNodeInterface: pn,
|
|
1671
1671
|
CodeGraphSidebar: Gs,
|
|
1672
1672
|
CodeNodePalette: Vs,
|
|
1673
1673
|
CopyToClipboard: Hs,
|
|
1674
|
-
NavBar:
|
|
1674
|
+
NavBar: Vi,
|
|
1675
1675
|
NavItem: vn,
|
|
1676
1676
|
SidebarCheckbox: mn,
|
|
1677
1677
|
TextInputInterface: js
|
|
1678
1678
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1679
1679
|
ut.escape = (e) => e;
|
|
1680
1680
|
class zs extends Ia {
|
|
1681
|
+
_variableName = "";
|
|
1681
1682
|
codeTemplate;
|
|
1682
1683
|
isCodeNode = !0;
|
|
1683
1684
|
mask = null;
|
|
1684
1685
|
name = "";
|
|
1685
1686
|
state;
|
|
1686
|
-
_variableName = "";
|
|
1687
1687
|
inputs = {};
|
|
1688
1688
|
outputs = {};
|
|
1689
1689
|
constructor() {
|
|
@@ -1695,10 +1695,9 @@ class zs extends Ia {
|
|
|
1695
1695
|
modules: [],
|
|
1696
1696
|
props: null,
|
|
1697
1697
|
script: "",
|
|
1698
|
-
variableName: ""
|
|
1699
|
-
variableNameNumberAppendix: !0
|
|
1698
|
+
variableName: ""
|
|
1700
1699
|
}), this.codeTemplate = function() {
|
|
1701
|
-
return `${this.name}(${
|
|
1700
|
+
return `${this.name}(${Ki(this.codeNodeInputs).join(", ")})`;
|
|
1702
1701
|
};
|
|
1703
1702
|
}
|
|
1704
1703
|
get code() {
|
|
@@ -1731,7 +1730,7 @@ class zs extends Ia {
|
|
|
1731
1730
|
return this.graph.getNodesByType(this.type).indexOf(this) ?? -1;
|
|
1732
1731
|
}
|
|
1733
1732
|
get idxByVariableNames() {
|
|
1734
|
-
return this.graph.getNodesByVariableName(this.
|
|
1733
|
+
return this.graph.getNodesByVariableName(this._variableName).filter((t) => !t.state.integrated).indexOf(this) ?? -1;
|
|
1735
1734
|
}
|
|
1736
1735
|
get isSelected() {
|
|
1737
1736
|
return this.graph.selectedNodeIds.includes(this.id);
|
|
@@ -1764,7 +1763,10 @@ class zs extends Ia {
|
|
|
1764
1763
|
get subgraph() {
|
|
1765
1764
|
}
|
|
1766
1765
|
get variableName() {
|
|
1767
|
-
return this.state.variableName || this._variableName ?
|
|
1766
|
+
return this.state.variableName || this._variableName ? this.state.variableName || this._variableName + (this.idxByVariableNames + 1) : "";
|
|
1767
|
+
}
|
|
1768
|
+
set variableName(t) {
|
|
1769
|
+
this._variableName = t;
|
|
1768
1770
|
}
|
|
1769
1771
|
/**
|
|
1770
1772
|
* Get connected node to the node interface.
|
|
@@ -1900,14 +1902,14 @@ class Dn extends zs {
|
|
|
1900
1902
|
super.load(t), this.afterLoaded();
|
|
1901
1903
|
}
|
|
1902
1904
|
}
|
|
1903
|
-
const
|
|
1905
|
+
const Ki = (e, t = !0) => {
|
|
1904
1906
|
const n = [], s = Object.keys(e);
|
|
1905
1907
|
return s.forEach((r) => {
|
|
1906
1908
|
if (e[r]?.hidden) return;
|
|
1907
|
-
const
|
|
1908
|
-
n.push(`${
|
|
1909
|
+
const o = t && n.length < s.indexOf(r) ? `${r}=` : "";
|
|
1910
|
+
n.push(`${o}{{ inputs.${r} }}`);
|
|
1909
1911
|
}), n;
|
|
1910
|
-
},
|
|
1912
|
+
}, Xi = (e, t) => {
|
|
1911
1913
|
switch (e) {
|
|
1912
1914
|
case "CheckBoxInterface":
|
|
1913
1915
|
return new el(t.id, t.value);
|
|
@@ -1930,7 +1932,7 @@ const Ko = (e, t = !0) => {
|
|
|
1930
1932
|
default:
|
|
1931
1933
|
return new Qs(t.id, t.value);
|
|
1932
1934
|
}
|
|
1933
|
-
},
|
|
1935
|
+
}, Ji = ["title"], In = /* @__PURE__ */ ce({
|
|
1934
1936
|
__name: "CodeNodeInterface",
|
|
1935
1937
|
props: {
|
|
1936
1938
|
intf: {}
|
|
@@ -1938,10 +1940,10 @@ const Ko = (e, t = !0) => {
|
|
|
1938
1940
|
setup(e) {
|
|
1939
1941
|
return (t, n) => (m(), k("div", {
|
|
1940
1942
|
title: e.intf.value
|
|
1941
|
-
}, te(e.intf.name), 9,
|
|
1943
|
+
}, te(e.intf.name), 9, Ji));
|
|
1942
1944
|
}
|
|
1943
1945
|
});
|
|
1944
|
-
class
|
|
1946
|
+
class ie extends Se {
|
|
1945
1947
|
isCodeNode = !0;
|
|
1946
1948
|
code;
|
|
1947
1949
|
state;
|
|
@@ -1974,7 +1976,7 @@ class oe extends Se {
|
|
|
1974
1976
|
return this.state.optional = t, this.setHidden(t), this;
|
|
1975
1977
|
}
|
|
1976
1978
|
}
|
|
1977
|
-
class Mt extends
|
|
1979
|
+
class Mt extends ie {
|
|
1978
1980
|
constructor(t = "", n) {
|
|
1979
1981
|
super(t, n), this.setComponent(he(In)), this.use(Ms, !0);
|
|
1980
1982
|
}
|
|
@@ -1985,8 +1987,8 @@ class Mt extends oe {
|
|
|
1985
1987
|
super.value = t, this.name !== "_code" && this.setHidden(!1);
|
|
1986
1988
|
}
|
|
1987
1989
|
}
|
|
1988
|
-
const Bs = new Je("boolean"),
|
|
1989
|
-
new Ua(e.editor, { viewPlugin: e }).addTypes(Bs,
|
|
1990
|
+
const Bs = new Je("boolean"), Qi = new Je("dict"), Zs = new Je("list"), _e = new Je("node"), qs = new Je("number"), Ks = new Je("string"), Xs = new Je("tuple"), Ph = (e) => {
|
|
1991
|
+
new Ua(e.editor, { viewPlugin: e }).addTypes(Bs, Qi, Zs, _e, qs, Ks, Xs);
|
|
1990
1992
|
};
|
|
1991
1993
|
class el extends Mt {
|
|
1992
1994
|
constructor(t, n) {
|
|
@@ -1994,7 +1996,7 @@ class el extends Mt {
|
|
|
1994
1996
|
}
|
|
1995
1997
|
getValue = () => this.value ? "True" : "False";
|
|
1996
1998
|
}
|
|
1997
|
-
class tl extends
|
|
1999
|
+
class tl extends ie {
|
|
1998
2000
|
isCodeNodeOutput = !0;
|
|
1999
2001
|
suffix = "";
|
|
2000
2002
|
constructor(t = "", n = "") {
|
|
@@ -2073,12 +2075,12 @@ function Wh(e) {
|
|
|
2073
2075
|
inputs = {};
|
|
2074
2076
|
outputs = {};
|
|
2075
2077
|
constructor() {
|
|
2076
|
-
super(), this._title = e.title ?? e.type, this.executeFactory("input", e.inputs), this.executeFactory("output", e.outputs), e.calculate && (this.calculate = (t, n) => e.calculate.call(this, t, n)), e.onCreate?.call(this), this.name = e.name ?? e.type, this.updateModules(e.modules), e.codeTemplate && (this.codeTemplate = e.codeTemplate), e.variableName != null && (this.
|
|
2078
|
+
super(), this._title = e.title ?? e.type, this.executeFactory("input", e.inputs), this.executeFactory("output", e.outputs), e.calculate && (this.calculate = (t, n) => e.calculate.call(this, t, n)), e.onCreate?.call(this), this.name = e.name ?? e.type, this.updateModules(e.modules), e.codeTemplate && (this.codeTemplate = e.codeTemplate), e.variableName != null && (this.variableName = e.variableName), this.addInput(
|
|
2077
2079
|
"_code",
|
|
2078
|
-
new
|
|
2080
|
+
new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
|
|
2079
2081
|
), this.addOutput(
|
|
2080
2082
|
"_code",
|
|
2081
|
-
new
|
|
2083
|
+
new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
|
|
2082
2084
|
);
|
|
2083
2085
|
}
|
|
2084
2086
|
afterGraphLoaded() {
|
|
@@ -2118,12 +2120,12 @@ function Hh(e) {
|
|
|
2118
2120
|
staticInputKeys = Object.keys(e.inputs ?? {});
|
|
2119
2121
|
staticOutputKeys = Object.keys(e.outputs ?? {});
|
|
2120
2122
|
constructor() {
|
|
2121
|
-
super(), this._title = e.title ?? e.type, this.executeFactory("input", e.inputs), this.executeFactory("output", e.outputs), e.calculate && (this.calculate = (t, n) => e.calculate?.call(this, t, n)), e.onCreate?.call(this), this.name = e.name ?? e.type, this.updateModules(e.modules), e.codeTemplate && (this.codeTemplate = e.codeTemplate), e.variableName && (this.
|
|
2123
|
+
super(), this._title = e.title ?? e.type, this.executeFactory("input", e.inputs), this.executeFactory("output", e.outputs), e.calculate && (this.calculate = (t, n) => e.calculate?.call(this, t, n)), e.onCreate?.call(this), this.name = e.name ?? e.type, this.updateModules(e.modules), e.codeTemplate && (this.codeTemplate = e.codeTemplate), e.variableName && (this.variableName = e.variableName), this.addInput(
|
|
2122
2124
|
"_code",
|
|
2123
|
-
new
|
|
2125
|
+
new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
|
|
2124
2126
|
), this.addOutput(
|
|
2125
2127
|
"_code",
|
|
2126
|
-
new
|
|
2128
|
+
new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
|
|
2127
2129
|
), this.staticInputKeys.push("_code"), this.staticOutputKeys.push("_code");
|
|
2128
2130
|
}
|
|
2129
2131
|
afterGraphLoaded() {
|
|
@@ -2164,7 +2166,7 @@ function Hh(e) {
|
|
|
2164
2166
|
if (!this.inputs[n]) {
|
|
2165
2167
|
const s = t.inputs[n], r = s.value;
|
|
2166
2168
|
let a;
|
|
2167
|
-
s.component ? a =
|
|
2169
|
+
s.component ? a = Xi(s.component, { ...s, id: n }) : typeof r == "number" ? a = new Js(n, r) : a = new Qs(n, JSON.stringify(r)), a.use(Ms, !0), this.addInput(n, a);
|
|
2168
2170
|
}
|
|
2169
2171
|
this.inputs[n] && (this.inputs[n].load(t.inputs[n]), this.inputs[n].nodeId = this.id);
|
|
2170
2172
|
}
|
|
@@ -2195,12 +2197,12 @@ function Hh(e) {
|
|
|
2195
2197
|
}
|
|
2196
2198
|
updateInterfaces(t, n = {}, s = []) {
|
|
2197
2199
|
const r = t === "input" ? this.staticInputKeys : this.staticOutputKeys, a = t === "input" ? this.inputs : this.outputs;
|
|
2198
|
-
for (const
|
|
2199
|
-
r.includes(
|
|
2200
|
-
for (const
|
|
2201
|
-
if (a[
|
|
2202
|
-
const
|
|
2203
|
-
t === "input" ? this.addInput(
|
|
2200
|
+
for (const o of Object.keys(a))
|
|
2201
|
+
r.includes(o) || n[o] && !s.includes(o) || (t === "input" ? this.removeInput(o) : this.removeOutput(o));
|
|
2202
|
+
for (const o of Object.keys(n)) {
|
|
2203
|
+
if (a[o]) continue;
|
|
2204
|
+
const i = n[o]();
|
|
2205
|
+
t === "input" ? this.addInput(o, i) : this.addOutput(o, i);
|
|
2204
2206
|
}
|
|
2205
2207
|
}
|
|
2206
2208
|
updateProps(t) {
|
|
@@ -2305,24 +2307,24 @@ class al extends $a {
|
|
|
2305
2307
|
}
|
|
2306
2308
|
async runGraph(t, n, s) {
|
|
2307
2309
|
this.order.has(t.id) || this.order.set(t.id, Wa(t));
|
|
2308
|
-
const { calculationOrder: r, connectionsFromNode: a } = this.order.get(t.id),
|
|
2309
|
-
for (const
|
|
2310
|
+
const { calculationOrder: r, connectionsFromNode: a } = this.order.get(t.id), o = /* @__PURE__ */ new Map();
|
|
2311
|
+
for (const i of r) {
|
|
2310
2312
|
const l = {};
|
|
2311
|
-
Object.entries(
|
|
2313
|
+
Object.entries(i.inputs).forEach(([h, w]) => {
|
|
2312
2314
|
l[h] = this.getInterfaceValue(n, w.id);
|
|
2313
|
-
}),
|
|
2315
|
+
}), i.isCodeNode && (i.updateCodeTemplate(), i.updateOutputNames()), this.events.beforeNodeCalculation.emit({ inputValues: l, node: i });
|
|
2314
2316
|
let u;
|
|
2315
|
-
if (
|
|
2316
|
-
if (u = await
|
|
2317
|
+
if (i.calculate) {
|
|
2318
|
+
if (u = await i.calculate(l, { globalValues: s, engine: this }), a.has(i))
|
|
2317
2319
|
for (const [h, w] of Object.entries(u))
|
|
2318
|
-
this.hooks.transferData.execute(u[h], w), a.get(
|
|
2320
|
+
this.hooks.transferData.execute(u[h], w), a.get(i).forEach((p) => n.set(p.to.id, w));
|
|
2319
2321
|
} else {
|
|
2320
2322
|
u = {};
|
|
2321
|
-
for (const [h, w] of Object.entries(
|
|
2323
|
+
for (const [h, w] of Object.entries(i.outputs))
|
|
2322
2324
|
u[h] = this.getInterfaceValue(n, w.id);
|
|
2323
2325
|
}
|
|
2324
|
-
this.events.afterNodeCalculation.emit({ outputValues: u, node:
|
|
2325
|
-
const w = Object.entries(
|
|
2326
|
+
this.events.afterNodeCalculation.emit({ outputValues: u, node: i }), o.set(i.id, new Map(Object.entries(u))), a.has(i) && a.get(i).forEach((h) => {
|
|
2327
|
+
const w = Object.entries(i.outputs).find(([, I]) => I.id === h.from.id)?.[0];
|
|
2326
2328
|
if (!w)
|
|
2327
2329
|
throw new Error(
|
|
2328
2330
|
`Could not find key for interface ${h.from.id}
|
|
@@ -2332,7 +2334,7 @@ This is likely an internal issue. Please report it on GitHub.`
|
|
|
2332
2334
|
w !== "_code" && (h.to.allowMultipleConnections ? n.has(h.to.id) ? n.get(h.to.id).push(p) : n.set(h.to.id, [p]) : n.set(h.to.id, p));
|
|
2333
2335
|
});
|
|
2334
2336
|
}
|
|
2335
|
-
return
|
|
2337
|
+
return o;
|
|
2336
2338
|
}
|
|
2337
2339
|
async execute(t) {
|
|
2338
2340
|
this.recalculateOrder && (this.order.clear(), this.recalculateOrder = !1);
|
|
@@ -2365,7 +2367,7 @@ var er;
|
|
|
2365
2367
|
function v() {
|
|
2366
2368
|
return er.apply(null, arguments);
|
|
2367
2369
|
}
|
|
2368
|
-
function
|
|
2370
|
+
function ol(e) {
|
|
2369
2371
|
er = e;
|
|
2370
2372
|
}
|
|
2371
2373
|
function ye(e) {
|
|
@@ -2409,7 +2411,7 @@ function Fe(e, t) {
|
|
|
2409
2411
|
function Oe(e, t, n, s) {
|
|
2410
2412
|
return Sr(e, t, n, s, !0).utc();
|
|
2411
2413
|
}
|
|
2412
|
-
function
|
|
2414
|
+
function il() {
|
|
2413
2415
|
return {
|
|
2414
2416
|
empty: !1,
|
|
2415
2417
|
unusedTokens: [],
|
|
@@ -2429,8 +2431,8 @@ function ol() {
|
|
|
2429
2431
|
weekdayMismatch: !1
|
|
2430
2432
|
};
|
|
2431
2433
|
}
|
|
2432
|
-
function
|
|
2433
|
-
return e._pf == null && (e._pf =
|
|
2434
|
+
function N(e) {
|
|
2435
|
+
return e._pf == null && (e._pf = il()), e._pf;
|
|
2434
2436
|
}
|
|
2435
2437
|
var _n;
|
|
2436
2438
|
Array.prototype.some ? _n = Array.prototype.some : _n = function(e) {
|
|
@@ -2442,7 +2444,7 @@ Array.prototype.some ? _n = Array.prototype.some : _n = function(e) {
|
|
|
2442
2444
|
};
|
|
2443
2445
|
function Ln(e) {
|
|
2444
2446
|
var t = null, n = !1, s = e._d && !isNaN(e._d.getTime());
|
|
2445
|
-
if (s && (t =
|
|
2447
|
+
if (s && (t = N(e), n = _n.call(t.parsedDateParts, function(r) {
|
|
2446
2448
|
return r != null;
|
|
2447
2449
|
}), s = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n), e._strict && (s = s && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
|
|
2448
2450
|
e._isValid = s;
|
|
@@ -2452,12 +2454,12 @@ function Ln(e) {
|
|
|
2452
2454
|
}
|
|
2453
2455
|
function zt(e) {
|
|
2454
2456
|
var t = Oe(NaN);
|
|
2455
|
-
return e != null ? Fe(
|
|
2457
|
+
return e != null ? Fe(N(t), e) : N(t).userInvalidated = !0, t;
|
|
2456
2458
|
}
|
|
2457
2459
|
var ls = v.momentProperties = [], ln = !1;
|
|
2458
2460
|
function An(e, t) {
|
|
2459
2461
|
var n, s, r, a = ls.length;
|
|
2460
|
-
if (re(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), re(t._i) || (e._i = t._i), re(t._f) || (e._f = t._f), re(t._l) || (e._l = t._l), re(t._strict) || (e._strict = t._strict), re(t._tzm) || (e._tzm = t._tzm), re(t._isUTC) || (e._isUTC = t._isUTC), re(t._offset) || (e._offset = t._offset), re(t._pf) || (e._pf =
|
|
2462
|
+
if (re(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), re(t._i) || (e._i = t._i), re(t._f) || (e._f = t._f), re(t._l) || (e._l = t._l), re(t._strict) || (e._strict = t._strict), re(t._tzm) || (e._tzm = t._tzm), re(t._isUTC) || (e._isUTC = t._isUTC), re(t._offset) || (e._offset = t._offset), re(t._pf) || (e._pf = N(t)), re(t._locale) || (e._locale = t._locale), a > 0)
|
|
2461
2463
|
for (n = 0; n < a; n++)
|
|
2462
2464
|
s = ls[n], r = t[s], re(r) || (e[s] = r);
|
|
2463
2465
|
return e;
|
|
@@ -2475,13 +2477,13 @@ function fe(e, t) {
|
|
|
2475
2477
|
var n = !0;
|
|
2476
2478
|
return Fe(function() {
|
|
2477
2479
|
if (v.deprecationHandler != null && v.deprecationHandler(null, e), n) {
|
|
2478
|
-
var s = [], r, a,
|
|
2479
|
-
for (a = 0; a <
|
|
2480
|
+
var s = [], r, a, o, i = arguments.length;
|
|
2481
|
+
for (a = 0; a < i; a++) {
|
|
2480
2482
|
if (r = "", typeof arguments[a] == "object") {
|
|
2481
2483
|
r += `
|
|
2482
2484
|
[` + a + "] ";
|
|
2483
|
-
for (
|
|
2484
|
-
P(arguments[0],
|
|
2485
|
+
for (o in arguments[0])
|
|
2486
|
+
P(arguments[0], o) && (r += o + ": " + arguments[0][o] + ", ");
|
|
2485
2487
|
r = r.slice(0, -2);
|
|
2486
2488
|
} else
|
|
2487
2489
|
r = arguments[a];
|
|
@@ -2569,9 +2571,9 @@ function hl(e) {
|
|
|
2569
2571
|
for (n = 0, s = t.length; n < s; n++)
|
|
2570
2572
|
at[t[n]] ? t[n] = at[t[n]] : t[n] = cl(t[n]);
|
|
2571
2573
|
return function(r) {
|
|
2572
|
-
var a = "",
|
|
2573
|
-
for (
|
|
2574
|
-
a += Ce(t[
|
|
2574
|
+
var a = "", o;
|
|
2575
|
+
for (o = 0; o < s; o++)
|
|
2576
|
+
a += Ce(t[o]) ? t[o].call(r, e) : t[o];
|
|
2575
2577
|
return a;
|
|
2576
2578
|
};
|
|
2577
2579
|
}
|
|
@@ -2723,7 +2725,7 @@ function Sl(e) {
|
|
|
2723
2725
|
return s.priority - r.priority;
|
|
2724
2726
|
}), t;
|
|
2725
2727
|
}
|
|
2726
|
-
var ar = /\d/, le = /\d\d/,
|
|
2728
|
+
var ar = /\d/, le = /\d\d/, or = /\d{3}/, Hn = /\d{4}/, Bt = /[+-]?\d{6}/, V = /\d\d?/, ir = /\d\d\d\d?/, lr = /\d\d\d\d\d\d?/, Zt = /\d{1,3}/, Fn = /\d{1,4}/, qt = /[+-]?\d{1,6}/, dt = /\d+/, Kt = /[+-]?\d+/, xl = /Z|[+-]\d\d:?\d\d/gi, Xt = /Z|[+-]\d\d(?::?\d\d)?/gi, Ol = /[+-]?\d+(\.\d{1,3})?/, Ot = /[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, ct = /^[1-9]\d?/, Gn = /^([1-9]\d|\d)/, Ut;
|
|
2727
2729
|
Ut = {};
|
|
2728
2730
|
function _(e, t, n) {
|
|
2729
2731
|
Ut[e] = Ce(t) ? t : function(s, r) {
|
|
@@ -2731,9 +2733,9 @@ function _(e, t, n) {
|
|
|
2731
2733
|
};
|
|
2732
2734
|
}
|
|
2733
2735
|
function Cl(e, t) {
|
|
2734
|
-
return P(Ut, e) ? Ut[e](t._strict, t._locale) : new RegExp(
|
|
2736
|
+
return P(Ut, e) ? Ut[e](t._strict, t._locale) : new RegExp(Tl(e));
|
|
2735
2737
|
}
|
|
2736
|
-
function
|
|
2738
|
+
function Tl(e) {
|
|
2737
2739
|
return Pe(
|
|
2738
2740
|
e.replace("\\", "").replace(
|
|
2739
2741
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
@@ -2756,8 +2758,8 @@ function Y(e) {
|
|
|
2756
2758
|
var bn = {};
|
|
2757
2759
|
function U(e, t) {
|
|
2758
2760
|
var n, s = t, r;
|
|
2759
|
-
for (typeof e == "string" && (e = [e]), Ue(t) && (s = function(a,
|
|
2760
|
-
|
|
2761
|
+
for (typeof e == "string" && (e = [e]), Ue(t) && (s = function(a, o) {
|
|
2762
|
+
o[t] = Y(a);
|
|
2761
2763
|
}), r = e.length, n = 0; n < r; n++)
|
|
2762
2764
|
bn[e[n]] = s;
|
|
2763
2765
|
}
|
|
@@ -2766,7 +2768,7 @@ function Ct(e, t) {
|
|
|
2766
2768
|
r._w = r._w || {}, t(n, r._w, r, a);
|
|
2767
2769
|
});
|
|
2768
2770
|
}
|
|
2769
|
-
function
|
|
2771
|
+
function Nl(e, t, n) {
|
|
2770
2772
|
t != null && P(bn, e) && bn[e](t, n._a, n, e);
|
|
2771
2773
|
}
|
|
2772
2774
|
function Jt(e) {
|
|
@@ -2839,7 +2841,7 @@ function yt(e, t) {
|
|
|
2839
2841
|
}
|
|
2840
2842
|
}
|
|
2841
2843
|
function dr(e, t, n) {
|
|
2842
|
-
var s, r, a,
|
|
2844
|
+
var s, r, a, o, i;
|
|
2843
2845
|
if (!(!e.isValid() || isNaN(n))) {
|
|
2844
2846
|
switch (s = e._d, r = e._isUTC, t) {
|
|
2845
2847
|
case "Milliseconds":
|
|
@@ -2862,7 +2864,7 @@ function dr(e, t, n) {
|
|
|
2862
2864
|
default:
|
|
2863
2865
|
return;
|
|
2864
2866
|
}
|
|
2865
|
-
a = n,
|
|
2867
|
+
a = n, o = e.month(), i = e.date(), i = i === 29 && o === 1 && !Jt(a) ? 28 : i, r ? s.setUTCFullYear(a, o, i) : s.setFullYear(a, o, i);
|
|
2866
2868
|
}
|
|
2867
2869
|
}
|
|
2868
2870
|
function El(e) {
|
|
@@ -2917,7 +2919,7 @@ U(["M", "MM"], function(e, t) {
|
|
|
2917
2919
|
});
|
|
2918
2920
|
U(["MMM", "MMMM"], function(e, t, n, s) {
|
|
2919
2921
|
var r = n._locale.monthsParse(e, s, n._strict);
|
|
2920
|
-
r != null ? t[Ee] = r :
|
|
2922
|
+
r != null ? t[Ee] = r : N(n).invalidMonth = e;
|
|
2921
2923
|
});
|
|
2922
2924
|
var Ll = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
2923
2925
|
"_"
|
|
@@ -2929,14 +2931,14 @@ function Wl(e, t) {
|
|
|
2929
2931
|
return e ? ye(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[hr.test(t) ? "format" : "standalone"][e.month()] : ye(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
2930
2932
|
}
|
|
2931
2933
|
function Hl(e, t, n) {
|
|
2932
|
-
var s, r, a,
|
|
2934
|
+
var s, r, a, o = e.toLocaleLowerCase();
|
|
2933
2935
|
if (!this._monthsParse)
|
|
2934
2936
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
|
|
2935
2937
|
a = Oe([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(
|
|
2936
2938
|
a,
|
|
2937
2939
|
""
|
|
2938
2940
|
).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(a, "").toLocaleLowerCase();
|
|
2939
|
-
return n ? t === "MMM" ? (r = Z.call(this._shortMonthsParse,
|
|
2941
|
+
return n ? t === "MMM" ? (r = Z.call(this._shortMonthsParse, o), r !== -1 ? r : null) : (r = Z.call(this._longMonthsParse, o), r !== -1 ? r : null) : t === "MMM" ? (r = Z.call(this._shortMonthsParse, o), r !== -1 ? r : (r = Z.call(this._longMonthsParse, o), r !== -1 ? r : null)) : (r = Z.call(this._longMonthsParse, o), r !== -1 ? r : (r = Z.call(this._shortMonthsParse, o), r !== -1 ? r : null));
|
|
2940
2942
|
}
|
|
2941
2943
|
function Fl(e, t, n) {
|
|
2942
2944
|
var s, r, a;
|
|
@@ -2985,9 +2987,9 @@ function mr() {
|
|
|
2985
2987
|
function e(l, u) {
|
|
2986
2988
|
return u.length - l.length;
|
|
2987
2989
|
}
|
|
2988
|
-
var t = [], n = [], s = [], r, a,
|
|
2990
|
+
var t = [], n = [], s = [], r, a, o, i;
|
|
2989
2991
|
for (r = 0; r < 12; r++)
|
|
2990
|
-
a = Oe([2e3, r]),
|
|
2992
|
+
a = Oe([2e3, r]), o = Pe(this.monthsShort(a, "")), i = Pe(this.months(a, "")), t.push(o), n.push(i), s.push(i), s.push(o);
|
|
2991
2993
|
t.sort(e), n.sort(e), s.sort(e), this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
2992
2994
|
"^(" + n.join("|") + ")",
|
|
2993
2995
|
"i"
|
|
@@ -2996,9 +2998,9 @@ function mr() {
|
|
|
2996
2998
|
"i"
|
|
2997
2999
|
);
|
|
2998
3000
|
}
|
|
2999
|
-
function zl(e, t, n, s, r, a,
|
|
3000
|
-
var
|
|
3001
|
-
return e < 100 && e >= 0 ? (
|
|
3001
|
+
function zl(e, t, n, s, r, a, o) {
|
|
3002
|
+
var i;
|
|
3003
|
+
return e < 100 && e >= 0 ? (i = new Date(e + 400, t, n, s, r, a, o), isFinite(i.getFullYear()) && i.setFullYear(e)) : i = new Date(e, t, n, s, r, a, o), i;
|
|
3002
3004
|
}
|
|
3003
3005
|
function gt(e) {
|
|
3004
3006
|
var t, n;
|
|
@@ -3009,17 +3011,17 @@ function $t(e, t, n) {
|
|
|
3009
3011
|
return -r + s - 1;
|
|
3010
3012
|
}
|
|
3011
3013
|
function vr(e, t, n, s, r) {
|
|
3012
|
-
var a = (7 + n - s) % 7,
|
|
3013
|
-
return
|
|
3014
|
+
var a = (7 + n - s) % 7, o = $t(e, s, r), i = 1 + 7 * (t - 1) + a + o, l, u;
|
|
3015
|
+
return i <= 0 ? (l = e - 1, u = _t(l) + i) : i > _t(e) ? (l = e + 1, u = i - _t(e)) : (l = e, u = i), {
|
|
3014
3016
|
year: l,
|
|
3015
3017
|
dayOfYear: u
|
|
3016
3018
|
};
|
|
3017
3019
|
}
|
|
3018
3020
|
function bt(e, t, n) {
|
|
3019
|
-
var s = $t(e.year(), t, n), r = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, a,
|
|
3020
|
-
return r < 1 ? (
|
|
3021
|
+
var s = $t(e.year(), t, n), r = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, a, o;
|
|
3022
|
+
return r < 1 ? (o = e.year() - 1, a = r + Le(o, t, n)) : r > Le(e.year(), t, n) ? (a = r - Le(e.year(), t, n), o = e.year() + 1) : (o = e.year(), a = r), {
|
|
3021
3023
|
week: a,
|
|
3022
|
-
year:
|
|
3024
|
+
year: o
|
|
3023
3025
|
};
|
|
3024
3026
|
}
|
|
3025
3027
|
function Le(e, t, n) {
|
|
@@ -3087,7 +3089,7 @@ _("dddd", function(e, t) {
|
|
|
3087
3089
|
});
|
|
3088
3090
|
Ct(["dd", "ddd", "dddd"], function(e, t, n, s) {
|
|
3089
3091
|
var r = n._locale.weekdaysParse(e, s, n._strict);
|
|
3090
|
-
r != null ? t.d = r :
|
|
3092
|
+
r != null ? t.d = r : N(n).invalidWeekday = e;
|
|
3091
3093
|
});
|
|
3092
3094
|
Ct(["d", "e", "E"], function(e, t, n, s) {
|
|
3093
3095
|
t[s] = Y(e);
|
|
@@ -3102,18 +3104,18 @@ function jn(e, t) {
|
|
|
3102
3104
|
return e.slice(t, 7).concat(e.slice(0, t));
|
|
3103
3105
|
}
|
|
3104
3106
|
var tu = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), _r = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), nu = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), su = Ot, ru = Ot, au = Ot;
|
|
3105
|
-
function
|
|
3107
|
+
function ou(e, t) {
|
|
3106
3108
|
var n = ye(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
3107
3109
|
return e === !0 ? jn(n, this._week.dow) : e ? n[e.day()] : n;
|
|
3108
3110
|
}
|
|
3109
|
-
function
|
|
3111
|
+
function iu(e) {
|
|
3110
3112
|
return e === !0 ? jn(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
|
|
3111
3113
|
}
|
|
3112
3114
|
function lu(e) {
|
|
3113
3115
|
return e === !0 ? jn(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
|
|
3114
3116
|
}
|
|
3115
3117
|
function uu(e, t, n) {
|
|
3116
|
-
var s, r, a,
|
|
3118
|
+
var s, r, a, o = e.toLocaleLowerCase();
|
|
3117
3119
|
if (!this._weekdaysParse)
|
|
3118
3120
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
|
|
3119
3121
|
a = Oe([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(
|
|
@@ -3123,7 +3125,7 @@ function uu(e, t, n) {
|
|
|
3123
3125
|
a,
|
|
3124
3126
|
""
|
|
3125
3127
|
).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(a, "").toLocaleLowerCase();
|
|
3126
|
-
return n ? t === "dddd" ? (r = Z.call(this._weekdaysParse,
|
|
3128
|
+
return n ? t === "dddd" ? (r = Z.call(this._weekdaysParse, o), r !== -1 ? r : null) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, o), r !== -1 ? r : null) : (r = Z.call(this._minWeekdaysParse, o), r !== -1 ? r : null) : t === "dddd" ? (r = Z.call(this._weekdaysParse, o), r !== -1 || (r = Z.call(this._shortWeekdaysParse, o), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, o), r !== -1 ? r : null)) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, o), r !== -1 || (r = Z.call(this._weekdaysParse, o), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, o), r !== -1 ? r : null)) : (r = Z.call(this._minWeekdaysParse, o), r !== -1 || (r = Z.call(this._weekdaysParse, o), r !== -1) ? r : (r = Z.call(this._shortWeekdaysParse, o), r !== -1 ? r : null));
|
|
3127
3129
|
}
|
|
3128
3130
|
function du(e, t, n) {
|
|
3129
3131
|
var s, r, a;
|
|
@@ -3183,9 +3185,9 @@ function zn() {
|
|
|
3183
3185
|
function e(h, w) {
|
|
3184
3186
|
return w.length - h.length;
|
|
3185
3187
|
}
|
|
3186
|
-
var t = [], n = [], s = [], r = [], a,
|
|
3188
|
+
var t = [], n = [], s = [], r = [], a, o, i, l, u;
|
|
3187
3189
|
for (a = 0; a < 7; a++)
|
|
3188
|
-
|
|
3190
|
+
o = Oe([2e3, 1]).day(a), i = Pe(this.weekdaysMin(o, "")), l = Pe(this.weekdaysShort(o, "")), u = Pe(this.weekdays(o, "")), t.push(i), n.push(l), s.push(u), r.push(i), r.push(l), r.push(u);
|
|
3189
3191
|
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(
|
|
3190
3192
|
"^(" + s.join("|") + ")",
|
|
3191
3193
|
"i"
|
|
@@ -3240,9 +3242,9 @@ _("k", V, ct);
|
|
|
3240
3242
|
_("HH", V, le);
|
|
3241
3243
|
_("hh", V, le);
|
|
3242
3244
|
_("kk", V, le);
|
|
3243
|
-
_("hmm",
|
|
3245
|
+
_("hmm", ir);
|
|
3244
3246
|
_("hmmss", lr);
|
|
3245
|
-
_("Hmm",
|
|
3247
|
+
_("Hmm", ir);
|
|
3246
3248
|
_("Hmmss", lr);
|
|
3247
3249
|
U(["H", "HH"], J);
|
|
3248
3250
|
U(["k", "kk"], function(e, t, n) {
|
|
@@ -3253,15 +3255,15 @@ U(["a", "A"], function(e, t, n) {
|
|
|
3253
3255
|
n._isPm = n._locale.isPM(e), n._meridiem = e;
|
|
3254
3256
|
});
|
|
3255
3257
|
U(["h", "hh"], function(e, t, n) {
|
|
3256
|
-
t[J] = Y(e),
|
|
3258
|
+
t[J] = Y(e), N(n).bigHour = !0;
|
|
3257
3259
|
});
|
|
3258
3260
|
U("hmm", function(e, t, n) {
|
|
3259
3261
|
var s = e.length - 2;
|
|
3260
|
-
t[J] = Y(e.substr(0, s)), t[ve] = Y(e.substr(s)),
|
|
3262
|
+
t[J] = Y(e.substr(0, s)), t[ve] = Y(e.substr(s)), N(n).bigHour = !0;
|
|
3261
3263
|
});
|
|
3262
3264
|
U("hmmss", function(e, t, n) {
|
|
3263
3265
|
var s = e.length - 4, r = e.length - 2;
|
|
3264
|
-
t[J] = Y(e.substr(0, s)), t[ve] = Y(e.substr(s, 2)), t[Re] = Y(e.substr(r)),
|
|
3266
|
+
t[J] = Y(e.substr(0, s)), t[ve] = Y(e.substr(s, 2)), t[Re] = Y(e.substr(r)), N(n).bigHour = !0;
|
|
3265
3267
|
});
|
|
3266
3268
|
U("Hmm", function(e, t, n) {
|
|
3267
3269
|
var s = e.length - 2;
|
|
@@ -3383,9 +3385,9 @@ function Ou() {
|
|
|
3383
3385
|
}
|
|
3384
3386
|
function qn(e) {
|
|
3385
3387
|
var t, n = e._a;
|
|
3386
|
-
return n &&
|
|
3388
|
+
return n && N(e).overflow === -2 && (t = n[Ee] < 0 || n[Ee] > 11 ? Ee : n[ke] < 1 || n[ke] > Vn(n[ee], n[Ee]) ? ke : n[J] < 0 || n[J] > 24 || n[J] === 24 && (n[ve] !== 0 || n[Re] !== 0 || n[Ze] !== 0) ? J : n[ve] < 0 || n[ve] > 59 ? ve : n[Re] < 0 || n[Re] > 59 ? Re : n[Ze] < 0 || n[Ze] > 999 ? Ze : -1, N(e)._overflowDayOfYear && (t < ee || t > ke) && (t = ke), N(e)._overflowWeeks && t === -1 && (t = Dl), N(e)._overflowWeekday && t === -1 && (t = Il), N(e).overflow = t), e;
|
|
3387
3389
|
}
|
|
3388
|
-
var Cu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
|
3390
|
+
var Cu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Tu = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Nu = /Z|[+-]\d\d(?::?\d\d)?/, Et = [
|
|
3389
3391
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
3390
3392
|
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
|
3391
3393
|
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
|
@@ -3422,52 +3424,52 @@ var Cu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
3422
3424
|
PST: -480
|
|
3423
3425
|
};
|
|
3424
3426
|
function wr(e) {
|
|
3425
|
-
var t, n, s = e._i, r = Cu.exec(s) ||
|
|
3427
|
+
var t, n, s = e._i, r = Cu.exec(s) || Tu.exec(s), a, o, i, l, u = Et.length, h = dn.length;
|
|
3426
3428
|
if (r) {
|
|
3427
|
-
for (
|
|
3429
|
+
for (N(e).iso = !0, t = 0, n = u; t < n; t++)
|
|
3428
3430
|
if (Et[t][1].exec(r[1])) {
|
|
3429
|
-
|
|
3431
|
+
o = Et[t][0], a = Et[t][2] !== !1;
|
|
3430
3432
|
break;
|
|
3431
3433
|
}
|
|
3432
|
-
if (
|
|
3434
|
+
if (o == null) {
|
|
3433
3435
|
e._isValid = !1;
|
|
3434
3436
|
return;
|
|
3435
3437
|
}
|
|
3436
3438
|
if (r[3]) {
|
|
3437
3439
|
for (t = 0, n = h; t < n; t++)
|
|
3438
3440
|
if (dn[t][1].exec(r[3])) {
|
|
3439
|
-
|
|
3441
|
+
i = (r[2] || " ") + dn[t][0];
|
|
3440
3442
|
break;
|
|
3441
3443
|
}
|
|
3442
|
-
if (
|
|
3444
|
+
if (i == null) {
|
|
3443
3445
|
e._isValid = !1;
|
|
3444
3446
|
return;
|
|
3445
3447
|
}
|
|
3446
3448
|
}
|
|
3447
|
-
if (!a &&
|
|
3449
|
+
if (!a && i != null) {
|
|
3448
3450
|
e._isValid = !1;
|
|
3449
3451
|
return;
|
|
3450
3452
|
}
|
|
3451
3453
|
if (r[4])
|
|
3452
|
-
if (
|
|
3454
|
+
if (Nu.exec(r[4]))
|
|
3453
3455
|
l = "Z";
|
|
3454
3456
|
else {
|
|
3455
3457
|
e._isValid = !1;
|
|
3456
3458
|
return;
|
|
3457
3459
|
}
|
|
3458
|
-
e._f =
|
|
3460
|
+
e._f = o + (i || "") + (l || ""), Xn(e);
|
|
3459
3461
|
} else
|
|
3460
3462
|
e._isValid = !1;
|
|
3461
3463
|
}
|
|
3462
3464
|
function Eu(e, t, n, s, r, a) {
|
|
3463
|
-
var
|
|
3465
|
+
var o = [
|
|
3464
3466
|
Ru(e),
|
|
3465
3467
|
cr.indexOf(t),
|
|
3466
3468
|
parseInt(n, 10),
|
|
3467
3469
|
parseInt(s, 10),
|
|
3468
3470
|
parseInt(r, 10)
|
|
3469
3471
|
];
|
|
3470
|
-
return a &&
|
|
3472
|
+
return a && o.push(parseInt(a, 10)), o;
|
|
3471
3473
|
}
|
|
3472
3474
|
function Ru(e) {
|
|
3473
3475
|
var t = parseInt(e, 10);
|
|
@@ -3484,7 +3486,7 @@ function Lu(e, t, n) {
|
|
|
3484
3486
|
t[2]
|
|
3485
3487
|
).getDay();
|
|
3486
3488
|
if (s !== r)
|
|
3487
|
-
return
|
|
3489
|
+
return N(n).weekdayMismatch = !0, n._isValid = !1, !1;
|
|
3488
3490
|
}
|
|
3489
3491
|
return !0;
|
|
3490
3492
|
}
|
|
@@ -3508,7 +3510,7 @@ function kr(e) {
|
|
|
3508
3510
|
t[7]
|
|
3509
3511
|
), !Lu(t[1], n, e))
|
|
3510
3512
|
return;
|
|
3511
|
-
e._a = n, e._tzm = Au(t[8], t[9], t[10]), e._d = gt.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
|
|
3513
|
+
e._a = n, e._tzm = Au(t[8], t[9], t[10]), e._d = gt.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), N(e).rfc2822 = !0;
|
|
3512
3514
|
} else
|
|
3513
3515
|
e._isValid = !1;
|
|
3514
3516
|
}
|
|
@@ -3546,25 +3548,25 @@ function $u(e) {
|
|
|
3546
3548
|
] : [t.getFullYear(), t.getMonth(), t.getDate()];
|
|
3547
3549
|
}
|
|
3548
3550
|
function Kn(e) {
|
|
3549
|
-
var t, n, s = [], r, a,
|
|
3551
|
+
var t, n, s = [], r, a, o;
|
|
3550
3552
|
if (!e._d) {
|
|
3551
|
-
for (r = $u(e), e._w && e._a[ke] == null && e._a[Ee] == null && Wu(e), e._dayOfYear != null && (
|
|
3553
|
+
for (r = $u(e), e._w && e._a[ke] == null && e._a[Ee] == null && Wu(e), e._dayOfYear != null && (o = nt(e._a[ee], r[ee]), (e._dayOfYear > _t(o) || e._dayOfYear === 0) && (N(e)._overflowDayOfYear = !0), n = gt(o, 0, e._dayOfYear), e._a[Ee] = n.getUTCMonth(), e._a[ke] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
3552
3554
|
e._a[t] = s[t] = r[t];
|
|
3553
3555
|
for (; t < 7; t++)
|
|
3554
3556
|
e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
3555
3557
|
e._a[J] === 24 && e._a[ve] === 0 && e._a[Re] === 0 && e._a[Ze] === 0 && (e._nextDay = !0, e._a[J] = 0), e._d = (e._useUTC ? gt : zl).apply(
|
|
3556
3558
|
null,
|
|
3557
3559
|
s
|
|
3558
|
-
), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[J] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (
|
|
3560
|
+
), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[J] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (N(e).weekdayMismatch = !0);
|
|
3559
3561
|
}
|
|
3560
3562
|
}
|
|
3561
3563
|
function Wu(e) {
|
|
3562
|
-
var t, n, s, r, a,
|
|
3563
|
-
t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1,
|
|
3564
|
+
var t, n, s, r, a, o, i, l, u;
|
|
3565
|
+
t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, o = 4, n = nt(
|
|
3564
3566
|
t.GG,
|
|
3565
3567
|
e._a[ee],
|
|
3566
3568
|
bt(G(), 1, 4).year
|
|
3567
|
-
), s = nt(t.W, 1), r = nt(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow,
|
|
3569
|
+
), s = nt(t.W, 1), r = nt(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, u = bt(G(), a, o), n = nt(t.gg, e._a[ee], u.year), s = nt(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 > Le(n, a, o) ? N(e)._overflowWeeks = !0 : l != null ? N(e)._overflowWeekday = !0 : (i = vr(n, s, r, a, o), e._a[ee] = i.year, e._dayOfYear = i.dayOfYear);
|
|
3568
3570
|
}
|
|
3569
3571
|
v.ISO_8601 = function() {
|
|
3570
3572
|
};
|
|
@@ -3579,30 +3581,30 @@ function Xn(e) {
|
|
|
3579
3581
|
kr(e);
|
|
3580
3582
|
return;
|
|
3581
3583
|
}
|
|
3582
|
-
e._a = [],
|
|
3583
|
-
var t = "" + e._i, n, s, r, a,
|
|
3584
|
+
e._a = [], N(e).empty = !0;
|
|
3585
|
+
var t = "" + e._i, n, s, r, a, o, i = t.length, l = 0, u, h;
|
|
3584
3586
|
for (r = rr(e._f, e._locale).match($n) || [], h = r.length, n = 0; n < h; n++)
|
|
3585
|
-
a = r[n], s = (t.match(Cl(a, e)) || [])[0], s && (
|
|
3587
|
+
a = r[n], s = (t.match(Cl(a, e)) || [])[0], s && (o = t.substr(0, t.indexOf(s)), o.length > 0 && N(e).unusedInput.push(o), t = t.slice(
|
|
3586
3588
|
t.indexOf(s) + s.length
|
|
3587
|
-
), l += s.length), at[a] ? (s ?
|
|
3588
|
-
|
|
3589
|
+
), l += s.length), at[a] ? (s ? N(e).empty = !1 : N(e).unusedTokens.push(a), Nl(a, s, e)) : e._strict && !s && N(e).unusedTokens.push(a);
|
|
3590
|
+
N(e).charsLeftOver = i - l, t.length > 0 && N(e).unusedInput.push(t), e._a[J] <= 12 && N(e).bigHour === !0 && e._a[J] > 0 && (N(e).bigHour = void 0), N(e).parsedDateParts = e._a.slice(0), N(e).meridiem = e._meridiem, e._a[J] = Hu(
|
|
3589
3591
|
e._locale,
|
|
3590
3592
|
e._a[J],
|
|
3591
3593
|
e._meridiem
|
|
3592
|
-
), u =
|
|
3594
|
+
), u = N(e).era, u !== null && (e._a[ee] = e._locale.erasConvertYear(u, e._a[ee])), Kn(e), qn(e);
|
|
3593
3595
|
}
|
|
3594
3596
|
function Hu(e, t, n) {
|
|
3595
3597
|
var s;
|
|
3596
3598
|
return n == null ? t : e.meridiemHour != null ? e.meridiemHour(t, n) : (e.isPM != null && (s = e.isPM(n), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
|
|
3597
3599
|
}
|
|
3598
3600
|
function Fu(e) {
|
|
3599
|
-
var t, n, s, r, a,
|
|
3601
|
+
var t, n, s, r, a, o, i = !1, l = e._f.length;
|
|
3600
3602
|
if (l === 0) {
|
|
3601
|
-
|
|
3603
|
+
N(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
|
|
3602
3604
|
return;
|
|
3603
3605
|
}
|
|
3604
3606
|
for (r = 0; r < l; r++)
|
|
3605
|
-
a = 0,
|
|
3607
|
+
a = 0, o = !1, t = An({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[r], Xn(t), Ln(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));
|
|
3606
3608
|
Fe(e, n || t);
|
|
3607
3609
|
}
|
|
3608
3610
|
function Gu(e) {
|
|
@@ -3699,10 +3701,10 @@ function Qu() {
|
|
|
3699
3701
|
return be(NaN);
|
|
3700
3702
|
}
|
|
3701
3703
|
function en(e) {
|
|
3702
|
-
var t = Wn(e), n = t.year || 0, s = t.quarter || 0, r = t.month || 0, a = t.week || t.isoWeek || 0,
|
|
3704
|
+
var t = Wn(e), n = t.year || 0, s = t.quarter || 0, r = t.month || 0, a = t.week || t.isoWeek || 0, o = t.day || 0, i = t.hour || 0, l = t.minute || 0, u = t.second || 0, h = t.millisecond || 0;
|
|
3703
3705
|
this._isValid = Xu(t), this._milliseconds = +h + u * 1e3 + // 1000
|
|
3704
3706
|
l * 6e4 + // 1000 * 60
|
|
3705
|
-
|
|
3707
|
+
i * 1e3 * 60 * 60, this._days = +o + a * 7, this._months = +r + s * 3 + n * 12, this._data = {}, this._locale = $e(), this._bubble();
|
|
3706
3708
|
}
|
|
3707
3709
|
function Lt(e) {
|
|
3708
3710
|
return e instanceof en;
|
|
@@ -3711,9 +3713,9 @@ function wn(e) {
|
|
|
3711
3713
|
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
|
|
3712
3714
|
}
|
|
3713
3715
|
function ed(e, t, n) {
|
|
3714
|
-
var s = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), a = 0,
|
|
3715
|
-
for (
|
|
3716
|
-
Y(e[
|
|
3716
|
+
var s = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), a = 0, o;
|
|
3717
|
+
for (o = 0; o < s; o++)
|
|
3718
|
+
Y(e[o]) !== Y(t[o]) && a++;
|
|
3717
3719
|
return a + r;
|
|
3718
3720
|
}
|
|
3719
3721
|
function Or(e, t) {
|
|
@@ -3752,7 +3754,7 @@ function nd(e, t, n) {
|
|
|
3752
3754
|
if (e = Jn(Xt, e), e === null)
|
|
3753
3755
|
return this;
|
|
3754
3756
|
} else Math.abs(e) < 16 && !n && (e = e * 60);
|
|
3755
|
-
return !this._isUTC && t && (r = kn(this)), this._offset = e, this._isUTC = !0, r != null && this.add(r, "m"), s !== e && (!t || this._changeInProgress ?
|
|
3757
|
+
return !this._isUTC && t && (r = kn(this)), this._offset = e, this._isUTC = !0, r != null && this.add(r, "m"), s !== e && (!t || this._changeInProgress ? Nr(
|
|
3756
3758
|
this,
|
|
3757
3759
|
be(e - s, "m"),
|
|
3758
3760
|
1,
|
|
@@ -3770,7 +3772,7 @@ function rd(e) {
|
|
|
3770
3772
|
function ad(e) {
|
|
3771
3773
|
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(kn(this), "m")), this;
|
|
3772
3774
|
}
|
|
3773
|
-
function
|
|
3775
|
+
function od() {
|
|
3774
3776
|
if (this._tzm != null)
|
|
3775
3777
|
this.utcOffset(this._tzm, !1, !0);
|
|
3776
3778
|
else if (typeof this._i == "string") {
|
|
@@ -3779,7 +3781,7 @@ function id() {
|
|
|
3779
3781
|
}
|
|
3780
3782
|
return this;
|
|
3781
3783
|
}
|
|
3782
|
-
function
|
|
3784
|
+
function id(e) {
|
|
3783
3785
|
return this.isValid() ? (e = e ? G(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
3784
3786
|
}
|
|
3785
3787
|
function ld() {
|
|
@@ -3802,7 +3804,7 @@ function Cr() {
|
|
|
3802
3804
|
}
|
|
3803
3805
|
var hd = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, fd = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
3804
3806
|
function be(e, t) {
|
|
3805
|
-
var n = e, s = null, r, a,
|
|
3807
|
+
var n = e, s = null, r, a, o;
|
|
3806
3808
|
return Lt(e) ? n = {
|
|
3807
3809
|
ms: e._milliseconds,
|
|
3808
3810
|
d: e._days,
|
|
@@ -3823,10 +3825,10 @@ function be(e, t) {
|
|
|
3823
3825
|
h: Be(s[6], r),
|
|
3824
3826
|
m: Be(s[7], r),
|
|
3825
3827
|
s: Be(s[8], r)
|
|
3826
|
-
}) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (
|
|
3828
|
+
}) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (o = pd(
|
|
3827
3829
|
G(n.from),
|
|
3828
3830
|
G(n.to)
|
|
3829
|
-
), n = {}, n.ms =
|
|
3831
|
+
), 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;
|
|
3830
3832
|
}
|
|
3831
3833
|
be.fn = en.prototype;
|
|
3832
3834
|
be.invalid = Qu;
|
|
@@ -3842,20 +3844,20 @@ function pd(e, t) {
|
|
|
3842
3844
|
var n;
|
|
3843
3845
|
return e.isValid() && t.isValid() ? (t = Qn(t, e), e.isBefore(t) ? n = hs(e, t) : (n = hs(t, e), n.milliseconds = -n.milliseconds, n.months = -n.months), n) : { milliseconds: 0, months: 0 };
|
|
3844
3846
|
}
|
|
3845
|
-
function
|
|
3847
|
+
function Tr(e, t) {
|
|
3846
3848
|
return function(n, s) {
|
|
3847
3849
|
var r, a;
|
|
3848
3850
|
return s !== null && !isNaN(+s) && (sr(
|
|
3849
3851
|
t,
|
|
3850
3852
|
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
3851
|
-
), a = n, n = s, s = a), r = be(n, s),
|
|
3853
|
+
), a = n, n = s, s = a), r = be(n, s), Nr(this, r, e), this;
|
|
3852
3854
|
};
|
|
3853
3855
|
}
|
|
3854
|
-
function
|
|
3855
|
-
var r = t._milliseconds, a = wn(t._days),
|
|
3856
|
-
e.isValid() && (s = s ?? !0,
|
|
3856
|
+
function Nr(e, t, n, s) {
|
|
3857
|
+
var r = t._milliseconds, a = wn(t._days), o = wn(t._months);
|
|
3858
|
+
e.isValid() && (s = s ?? !0, o && fr(e, yt(e, "Month") + o * n), a && dr(e, "Date", yt(e, "Date") + a * n), r && e._d.setTime(e._d.valueOf() + r * n), s && v.updateOffset(e, a || o));
|
|
3857
3859
|
}
|
|
3858
|
-
var md =
|
|
3860
|
+
var md = Tr(1, "add"), vd = Tr(-1, "subtract");
|
|
3859
3861
|
function Dr(e) {
|
|
3860
3862
|
return typeof e == "string" || e instanceof String;
|
|
3861
3863
|
}
|
|
@@ -3888,8 +3890,8 @@ function yd(e) {
|
|
|
3888
3890
|
"milliseconds",
|
|
3889
3891
|
"millisecond",
|
|
3890
3892
|
"ms"
|
|
3891
|
-
], r, a,
|
|
3892
|
-
for (r = 0; r <
|
|
3893
|
+
], r, a, o = s.length;
|
|
3894
|
+
for (r = 0; r < o; r += 1)
|
|
3893
3895
|
a = s[r], n = n || P(e, a);
|
|
3894
3896
|
return t && n;
|
|
3895
3897
|
}
|
|
@@ -3942,10 +3944,10 @@ function Cd(e, t) {
|
|
|
3942
3944
|
var n = ge(e) ? e : G(e), s;
|
|
3943
3945
|
return this.isValid() && n.isValid() ? (t = pe(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (s = n.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
|
|
3944
3946
|
}
|
|
3945
|
-
function
|
|
3947
|
+
function Td(e, t) {
|
|
3946
3948
|
return this.isSame(e, t) || this.isAfter(e, t);
|
|
3947
3949
|
}
|
|
3948
|
-
function
|
|
3950
|
+
function Nd(e, t) {
|
|
3949
3951
|
return this.isSame(e, t) || this.isBefore(e, t);
|
|
3950
3952
|
}
|
|
3951
3953
|
function Dd(e, t, n) {
|
|
@@ -4048,8 +4050,8 @@ var Yr = fe(
|
|
|
4048
4050
|
function Er() {
|
|
4049
4051
|
return this._locale;
|
|
4050
4052
|
}
|
|
4051
|
-
var Wt = 1e3,
|
|
4052
|
-
function
|
|
4053
|
+
var Wt = 1e3, ot = 60 * Wt, Ht = 60 * ot, Rr = (365 * 400 + 97) * 24 * Ht;
|
|
4054
|
+
function it(e, t) {
|
|
4053
4055
|
return (e % t + t) % t;
|
|
4054
4056
|
}
|
|
4055
4057
|
function Pr(e, t, n) {
|
|
@@ -4095,16 +4097,16 @@ function $d(e) {
|
|
|
4095
4097
|
t = n(this.year(), this.month(), this.date());
|
|
4096
4098
|
break;
|
|
4097
4099
|
case "hour":
|
|
4098
|
-
t = this._d.valueOf(), t -=
|
|
4099
|
-
t + (this._isUTC ? 0 : this.utcOffset() *
|
|
4100
|
+
t = this._d.valueOf(), t -= it(
|
|
4101
|
+
t + (this._isUTC ? 0 : this.utcOffset() * ot),
|
|
4100
4102
|
Ht
|
|
4101
4103
|
);
|
|
4102
4104
|
break;
|
|
4103
4105
|
case "minute":
|
|
4104
|
-
t = this._d.valueOf(), t -=
|
|
4106
|
+
t = this._d.valueOf(), t -= it(t, ot);
|
|
4105
4107
|
break;
|
|
4106
4108
|
case "second":
|
|
4107
|
-
t = this._d.valueOf(), t -=
|
|
4109
|
+
t = this._d.valueOf(), t -= it(t, Wt);
|
|
4108
4110
|
break;
|
|
4109
4111
|
}
|
|
4110
4112
|
return this._d.setTime(t), v.updateOffset(this, !0), this;
|
|
@@ -4146,16 +4148,16 @@ function Wd(e) {
|
|
|
4146
4148
|
t = n(this.year(), this.month(), this.date() + 1) - 1;
|
|
4147
4149
|
break;
|
|
4148
4150
|
case "hour":
|
|
4149
|
-
t = this._d.valueOf(), t += Ht -
|
|
4150
|
-
t + (this._isUTC ? 0 : this.utcOffset() *
|
|
4151
|
+
t = this._d.valueOf(), t += Ht - it(
|
|
4152
|
+
t + (this._isUTC ? 0 : this.utcOffset() * ot),
|
|
4151
4153
|
Ht
|
|
4152
4154
|
) - 1;
|
|
4153
4155
|
break;
|
|
4154
4156
|
case "minute":
|
|
4155
|
-
t = this._d.valueOf(), t +=
|
|
4157
|
+
t = this._d.valueOf(), t += ot - it(t, ot) - 1;
|
|
4156
4158
|
break;
|
|
4157
4159
|
case "second":
|
|
4158
|
-
t = this._d.valueOf(), t += Wt -
|
|
4160
|
+
t = this._d.valueOf(), t += Wt - it(t, Wt) - 1;
|
|
4159
4161
|
break;
|
|
4160
4162
|
}
|
|
4161
4163
|
return this._d.setTime(t), v.updateOffset(this, !0), this;
|
|
@@ -4200,10 +4202,10 @@ function Bd() {
|
|
|
4200
4202
|
return Ln(this);
|
|
4201
4203
|
}
|
|
4202
4204
|
function Zd() {
|
|
4203
|
-
return Fe({},
|
|
4205
|
+
return Fe({}, N(this));
|
|
4204
4206
|
}
|
|
4205
4207
|
function qd() {
|
|
4206
|
-
return
|
|
4208
|
+
return N(this).overflow;
|
|
4207
4209
|
}
|
|
4208
4210
|
function Kd() {
|
|
4209
4211
|
return {
|
|
@@ -4226,13 +4228,13 @@ x("y", ["yyyy", 4], 0, "eraYear");
|
|
|
4226
4228
|
_("N", es);
|
|
4227
4229
|
_("NN", es);
|
|
4228
4230
|
_("NNN", es);
|
|
4229
|
-
_("NNNN",
|
|
4231
|
+
_("NNNN", ic);
|
|
4230
4232
|
_("NNNNN", lc);
|
|
4231
4233
|
U(
|
|
4232
4234
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
4233
4235
|
function(e, t, n, s) {
|
|
4234
4236
|
var r = n._locale.erasParse(e, s, n._strict);
|
|
4235
|
-
r ?
|
|
4237
|
+
r ? N(n).era = r : N(n).invalidEra = e;
|
|
4236
4238
|
}
|
|
4237
4239
|
);
|
|
4238
4240
|
_("y", dt);
|
|
@@ -4259,18 +4261,18 @@ function Xd(e, t) {
|
|
|
4259
4261
|
return a;
|
|
4260
4262
|
}
|
|
4261
4263
|
function Jd(e, t, n) {
|
|
4262
|
-
var s, r, a = this.eras(),
|
|
4264
|
+
var s, r, a = this.eras(), o, i, l;
|
|
4263
4265
|
for (e = e.toUpperCase(), s = 0, r = a.length; s < r; ++s)
|
|
4264
|
-
if (
|
|
4266
|
+
if (o = a[s].name.toUpperCase(), i = a[s].abbr.toUpperCase(), l = a[s].narrow.toUpperCase(), n)
|
|
4265
4267
|
switch (t) {
|
|
4266
4268
|
case "N":
|
|
4267
4269
|
case "NN":
|
|
4268
4270
|
case "NNN":
|
|
4269
|
-
if (
|
|
4271
|
+
if (i === e)
|
|
4270
4272
|
return a[s];
|
|
4271
4273
|
break;
|
|
4272
4274
|
case "NNNN":
|
|
4273
|
-
if (
|
|
4275
|
+
if (o === e)
|
|
4274
4276
|
return a[s];
|
|
4275
4277
|
break;
|
|
4276
4278
|
case "NNNNN":
|
|
@@ -4278,7 +4280,7 @@ function Jd(e, t, n) {
|
|
|
4278
4280
|
return a[s];
|
|
4279
4281
|
break;
|
|
4280
4282
|
}
|
|
4281
|
-
else if ([
|
|
4283
|
+
else if ([o, i, l].indexOf(e) >= 0)
|
|
4282
4284
|
return a[s];
|
|
4283
4285
|
}
|
|
4284
4286
|
function Qd(e, t) {
|
|
@@ -4319,13 +4321,13 @@ function rc(e) {
|
|
|
4319
4321
|
function ac(e) {
|
|
4320
4322
|
return P(this, "_erasAbbrRegex") || ts.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
4321
4323
|
}
|
|
4322
|
-
function
|
|
4324
|
+
function oc(e) {
|
|
4323
4325
|
return P(this, "_erasNarrowRegex") || ts.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
4324
4326
|
}
|
|
4325
4327
|
function es(e, t) {
|
|
4326
4328
|
return t.erasAbbrRegex(e);
|
|
4327
4329
|
}
|
|
4328
|
-
function
|
|
4330
|
+
function ic(e, t) {
|
|
4329
4331
|
return t.erasNameRegex(e);
|
|
4330
4332
|
}
|
|
4331
4333
|
function lc(e, t) {
|
|
@@ -4335,9 +4337,9 @@ function uc(e, t) {
|
|
|
4335
4337
|
return t._eraYearOrdinalRegex || dt;
|
|
4336
4338
|
}
|
|
4337
4339
|
function ts() {
|
|
4338
|
-
var e = [], t = [], n = [], s = [], r, a,
|
|
4340
|
+
var e = [], t = [], n = [], s = [], r, a, o, i, l, u = this.eras();
|
|
4339
4341
|
for (r = 0, a = u.length; r < a; ++r)
|
|
4340
|
-
|
|
4342
|
+
o = Pe(u[r].name), i = Pe(u[r].abbr), l = Pe(u[r].narrow), t.push(o), e.push(i), n.push(l), s.push(o), s.push(i), s.push(l);
|
|
4341
4343
|
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(
|
|
4342
4344
|
"^(" + n.join("|") + ")",
|
|
4343
4345
|
"i"
|
|
@@ -4412,8 +4414,8 @@ function Ar(e, t, n, s, r) {
|
|
|
4412
4414
|
return e == null ? bt(this, s, r).year : (a = Le(e, s, r), t > a && (t = a), vc.call(this, e, t, n, s, r));
|
|
4413
4415
|
}
|
|
4414
4416
|
function vc(e, t, n, s, r) {
|
|
4415
|
-
var a = vr(e, t, n, s, r),
|
|
4416
|
-
return this.year(
|
|
4417
|
+
var a = vr(e, t, n, s, r), o = gt(a.year, 0, a.dayOfYear);
|
|
4418
|
+
return this.year(o.getUTCFullYear()), this.month(o.getUTCMonth()), this.date(o.getUTCDate()), this;
|
|
4417
4419
|
}
|
|
4418
4420
|
x("Q", 0, "Qo", "quarter");
|
|
4419
4421
|
_("Q", ar);
|
|
@@ -4436,7 +4438,7 @@ U("Do", function(e, t) {
|
|
|
4436
4438
|
var Ur = ht("Date", !0);
|
|
4437
4439
|
x("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
4438
4440
|
_("DDD", Zt);
|
|
4439
|
-
_("DDDD",
|
|
4441
|
+
_("DDDD", or);
|
|
4440
4442
|
U(["DDD", "DDDD"], function(e, t, n) {
|
|
4441
4443
|
n._dayOfYear = Y(e);
|
|
4442
4444
|
});
|
|
@@ -4483,7 +4485,7 @@ x(0, ["SSSSSSSSS", 9], 0, function() {
|
|
|
4483
4485
|
});
|
|
4484
4486
|
_("S", Zt, ar);
|
|
4485
4487
|
_("SS", Zt, le);
|
|
4486
|
-
_("SSS", Zt,
|
|
4488
|
+
_("SSS", Zt, or);
|
|
4487
4489
|
var Ge, $r;
|
|
4488
4490
|
for (Ge = "SSSS"; Ge.length <= 9; Ge += "S")
|
|
4489
4491
|
_(Ge, dt);
|
|
@@ -4518,8 +4520,8 @@ d.isAfter = Sd;
|
|
|
4518
4520
|
d.isBefore = xd;
|
|
4519
4521
|
d.isBetween = Od;
|
|
4520
4522
|
d.isSame = Cd;
|
|
4521
|
-
d.isSameOrAfter =
|
|
4522
|
-
d.isSameOrBefore =
|
|
4523
|
+
d.isSameOrAfter = Td;
|
|
4524
|
+
d.isSameOrBefore = Nd;
|
|
4523
4525
|
d.isValid = Bd;
|
|
4524
4526
|
d.lang = Yr;
|
|
4525
4527
|
d.locale = Ir;
|
|
@@ -4572,8 +4574,8 @@ d.millisecond = d.milliseconds = $r;
|
|
|
4572
4574
|
d.utcOffset = nd;
|
|
4573
4575
|
d.utc = rd;
|
|
4574
4576
|
d.local = ad;
|
|
4575
|
-
d.parseZone =
|
|
4576
|
-
d.hasAlignedHourOffset =
|
|
4577
|
+
d.parseZone = od;
|
|
4578
|
+
d.hasAlignedHourOffset = id;
|
|
4577
4579
|
d.isDST = ld;
|
|
4578
4580
|
d.isLocal = dd;
|
|
4579
4581
|
d.isUtcOffset = cd;
|
|
@@ -4625,7 +4627,7 @@ L.erasParse = Jd;
|
|
|
4625
4627
|
L.erasConvertYear = Qd;
|
|
4626
4628
|
L.erasAbbrRegex = ac;
|
|
4627
4629
|
L.erasNameRegex = rc;
|
|
4628
|
-
L.erasNarrowRegex =
|
|
4630
|
+
L.erasNarrowRegex = oc;
|
|
4629
4631
|
L.months = $l;
|
|
4630
4632
|
L.monthsShort = Wl;
|
|
4631
4633
|
L.monthsParse = Fl;
|
|
@@ -4634,9 +4636,9 @@ L.monthsShortRegex = Vl;
|
|
|
4634
4636
|
L.week = Bl;
|
|
4635
4637
|
L.firstDayOfYear = Kl;
|
|
4636
4638
|
L.firstDayOfWeek = ql;
|
|
4637
|
-
L.weekdays =
|
|
4639
|
+
L.weekdays = ou;
|
|
4638
4640
|
L.weekdaysMin = lu;
|
|
4639
|
-
L.weekdaysShort =
|
|
4641
|
+
L.weekdaysShort = iu;
|
|
4640
4642
|
L.weekdaysParse = du;
|
|
4641
4643
|
L.weekdaysRegex = pu;
|
|
4642
4644
|
L.weekdaysShortRegex = mu;
|
|
@@ -4657,12 +4659,12 @@ function Hr(e, t, n) {
|
|
|
4657
4659
|
}
|
|
4658
4660
|
function ns(e, t, n, s) {
|
|
4659
4661
|
typeof e == "boolean" ? (Ue(t) && (n = t, t = void 0), t = t || "") : (t = e, n = t, e = !1, Ue(t) && (n = t, t = void 0), t = t || "");
|
|
4660
|
-
var r = $e(), a = e ? r._week.dow : 0,
|
|
4662
|
+
var r = $e(), a = e ? r._week.dow : 0, o, i = [];
|
|
4661
4663
|
if (n != null)
|
|
4662
4664
|
return Ft(t, (n + a) % 7, s, "day");
|
|
4663
|
-
for (
|
|
4664
|
-
o
|
|
4665
|
-
return
|
|
4665
|
+
for (o = 0; o < 7; o++)
|
|
4666
|
+
i[o] = Ft(t, (o + a) % 7, s, "day");
|
|
4667
|
+
return i;
|
|
4666
4668
|
}
|
|
4667
4669
|
function Oc(e, t) {
|
|
4668
4670
|
return Hr(e, t, "months");
|
|
@@ -4670,10 +4672,10 @@ function Oc(e, t) {
|
|
|
4670
4672
|
function Cc(e, t) {
|
|
4671
4673
|
return Hr(e, t, "monthsShort");
|
|
4672
4674
|
}
|
|
4673
|
-
function
|
|
4675
|
+
function Tc(e, t, n) {
|
|
4674
4676
|
return ns(e, t, n, "weekdays");
|
|
4675
4677
|
}
|
|
4676
|
-
function
|
|
4678
|
+
function Nc(e, t, n) {
|
|
4677
4679
|
return ns(e, t, n, "weekdaysShort");
|
|
4678
4680
|
}
|
|
4679
4681
|
function Dc(e, t, n) {
|
|
@@ -4731,8 +4733,8 @@ function fs(e) {
|
|
|
4731
4733
|
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
4732
4734
|
}
|
|
4733
4735
|
function Rc() {
|
|
4734
|
-
var e = this._milliseconds, t = this._days, n = this._months, s = this._data, r, a,
|
|
4735
|
-
return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += fs(Mn(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, r = de(e / 1e3), s.seconds = r % 60, a = de(r / 60), s.minutes = a % 60,
|
|
4736
|
+
var e = this._milliseconds, t = this._days, n = this._months, s = this._data, r, a, o, i, l;
|
|
4737
|
+
return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += fs(Mn(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, r = de(e / 1e3), s.seconds = r % 60, a = de(r / 60), s.minutes = a % 60, o = de(a / 60), s.hours = o % 24, t += de(o / 24), l = de(Gr(t)), n += l, t -= fs(Mn(l)), i = de(n / 12), n %= 12, s.days = t, s.months = n, s.years = i, this;
|
|
4736
4738
|
}
|
|
4737
4739
|
function Gr(e) {
|
|
4738
4740
|
return e * 4800 / 146097;
|
|
@@ -4813,7 +4815,7 @@ function th(e, t, n, s, r) {
|
|
|
4813
4815
|
return r.relativeTime(t || 1, !!n, e, s);
|
|
4814
4816
|
}
|
|
4815
4817
|
function nh(e, t, n, s) {
|
|
4816
|
-
var r = be(e).abs(), a = Ie(r.as("s")),
|
|
4818
|
+
var r = be(e).abs(), a = Ie(r.as("s")), o = Ie(r.as("m")), i = Ie(r.as("h")), l = Ie(r.as("d")), u = Ie(r.as("M")), h = Ie(r.as("w")), w = Ie(r.as("y")), p = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || o <= 1 && ["m"] || o < n.m && ["mm", o] || i <= 1 && ["h"] || i < n.h && ["hh", i] || l <= 1 && ["d"] || l < n.d && ["dd", l];
|
|
4817
4819
|
return n.w != null && (p = p || h <= 1 && ["w"] || h < n.w && ["ww", h]), p = p || u <= 1 && ["M"] || u < n.M && ["MM", u] || w <= 1 && ["y"] || ["yy", w], p[2] = t, p[3] = +e > 0, p[4] = s, th.apply(null, p);
|
|
4818
4820
|
}
|
|
4819
4821
|
function sh(e) {
|
|
@@ -4835,8 +4837,8 @@ function tt(e) {
|
|
|
4835
4837
|
function nn() {
|
|
4836
4838
|
if (!this.isValid())
|
|
4837
4839
|
return this.localeData().invalidDate();
|
|
4838
|
-
var e = cn(this._milliseconds) / 1e3, t = cn(this._days), n = cn(this._months), s, r, a,
|
|
4839
|
-
return
|
|
4840
|
+
var e = cn(this._milliseconds) / 1e3, t = cn(this._days), n = cn(this._months), s, r, a, o, i = this.asSeconds(), l, u, h, w;
|
|
4841
|
+
return i ? (s = de(e / 60), r = de(s / 60), e %= 60, s %= 60, a = de(n / 12), n %= 12, o = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", l = i < 0 ? "-" : "", u = tt(this._months) !== tt(i) ? "-" : "", h = tt(this._days) !== tt(i) ? "-" : "", w = tt(this._milliseconds) !== tt(i) ? "-" : "", l + "P" + (a ? u + a + "Y" : "") + (n ? u + n + "M" : "") + (t ? h + t + "D" : "") + (r || s || e ? "T" : "") + (r ? w + r + "H" : "") + (s ? w + s + "M" : "") + (e ? w + o + "S" : "")) : "P0D";
|
|
4840
4842
|
}
|
|
4841
4843
|
var E = en.prototype;
|
|
4842
4844
|
E.isValid = Ju;
|
|
@@ -4887,7 +4889,7 @@ U("x", function(e, t, n) {
|
|
|
4887
4889
|
n._d = new Date(Y(e));
|
|
4888
4890
|
});
|
|
4889
4891
|
v.version = "2.30.1";
|
|
4890
|
-
|
|
4892
|
+
ol(G);
|
|
4891
4893
|
v.fn = d;
|
|
4892
4894
|
v.min = Zu;
|
|
4893
4895
|
v.max = qu;
|
|
@@ -4900,7 +4902,7 @@ v.locale = Ve;
|
|
|
4900
4902
|
v.invalid = zt;
|
|
4901
4903
|
v.duration = be;
|
|
4902
4904
|
v.isMoment = ge;
|
|
4903
|
-
v.weekdays =
|
|
4905
|
+
v.weekdays = Tc;
|
|
4904
4906
|
v.parseZone = xc;
|
|
4905
4907
|
v.localeData = $e;
|
|
4906
4908
|
v.isDuration = Lt;
|
|
@@ -4909,7 +4911,7 @@ v.weekdaysMin = Dc;
|
|
|
4909
4911
|
v.defineLocale = Zn;
|
|
4910
4912
|
v.updateLocale = xu;
|
|
4911
4913
|
v.locales = Ou;
|
|
4912
|
-
v.weekdaysShort =
|
|
4914
|
+
v.weekdaysShort = Nc;
|
|
4913
4915
|
v.normalizeUnits = pe;
|
|
4914
4916
|
v.relativeTimeRounding = sh;
|
|
4915
4917
|
v.relativeTimeThreshold = rh;
|
|
@@ -4935,11 +4937,11 @@ v.HTML5_FMT = {
|
|
|
4935
4937
|
MONTH: "YYYY-MM"
|
|
4936
4938
|
// <input type="month" />
|
|
4937
4939
|
};
|
|
4938
|
-
const
|
|
4940
|
+
const oh = "code-graph", ih = (e, t = "", n = "json") => {
|
|
4939
4941
|
const s = document.createElement("a");
|
|
4940
4942
|
s.setAttribute("href", `data:text/${n};charset=UTF-8,${encodeURIComponent(e)}`);
|
|
4941
4943
|
const r = v().format("YYMMDD_HHMMSS");
|
|
4942
|
-
s.setAttribute("download", `${
|
|
4944
|
+
s.setAttribute("download", `${oh}_${r}_${t}.${n}`), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
|
|
4943
4945
|
}, lh = (e = "json") => {
|
|
4944
4946
|
const t = document.createElement("input");
|
|
4945
4947
|
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;
|
|
@@ -4953,7 +4955,7 @@ const ih = "code-graph", oh = (e, t = "", n = "json") => {
|
|
|
4953
4955
|
}), t.registerCommand(zr, {
|
|
4954
4956
|
execute: () => {
|
|
4955
4957
|
const r = e.value.editor.save();
|
|
4956
|
-
|
|
4958
|
+
ih(JSON.stringify(r, null, 2), e.value.shortId);
|
|
4957
4959
|
},
|
|
4958
4960
|
canExecute: () => e.value.nodes.length > 0
|
|
4959
4961
|
}), t.registerCommand(Br, {
|
|
@@ -4971,15 +4973,15 @@ const ih = "code-graph", oh = (e, t = "", n = "json") => {
|
|
|
4971
4973
|
document.body.removeChild(r);
|
|
4972
4974
|
const a = r.files;
|
|
4973
4975
|
if (!a || a.length <= 0) return !1;
|
|
4974
|
-
const
|
|
4975
|
-
|
|
4976
|
-
if (
|
|
4977
|
-
const l =
|
|
4976
|
+
const o = new FileReader();
|
|
4977
|
+
o.onload = (i) => {
|
|
4978
|
+
if (i.target?.result) {
|
|
4979
|
+
const l = i.target.result;
|
|
4978
4980
|
if (l.length === 0) return;
|
|
4979
4981
|
const u = JSON.parse(l);
|
|
4980
4982
|
e.value.editor.load(u), e.value.code?.engine?.runOnce(null);
|
|
4981
4983
|
}
|
|
4982
|
-
},
|
|
4984
|
+
}, o.readAsText(a.item(0));
|
|
4983
4985
|
});
|
|
4984
4986
|
},
|
|
4985
4987
|
canExecute: () => !0
|
|
@@ -5001,7 +5003,7 @@ const ih = "code-graph", oh = (e, t = "", n = "json") => {
|
|
|
5001
5003
|
command: Zr,
|
|
5002
5004
|
title: "Toggle palette",
|
|
5003
5005
|
icon: z(
|
|
5004
|
-
() => e.palette.enabled ? Es :
|
|
5006
|
+
() => e.palette.enabled ? Es : Tn
|
|
5005
5007
|
)
|
|
5006
5008
|
}, a = {
|
|
5007
5009
|
command: qr,
|
|
@@ -5305,18 +5307,18 @@ function mh(e) {
|
|
|
5305
5307
|
if (!s.engine || typeof s.engine != "object")
|
|
5306
5308
|
throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);
|
|
5307
5309
|
const r = s.engine.getInputValues(this.subgraph);
|
|
5308
|
-
for (const
|
|
5309
|
-
r.set(
|
|
5310
|
+
for (const i of this.subgraph.inputs)
|
|
5311
|
+
r.set(i.nodeInterfaceId, n[i.id]);
|
|
5310
5312
|
const a = await s.engine.runGraph(
|
|
5311
5313
|
this.subgraph,
|
|
5312
5314
|
r,
|
|
5313
5315
|
s.globalValues
|
|
5314
5316
|
);
|
|
5315
5317
|
s.engine.pause(), Cs(a, s.engine.editor), s.engine.resume();
|
|
5316
|
-
const
|
|
5317
|
-
for (const
|
|
5318
|
-
i
|
|
5319
|
-
return
|
|
5318
|
+
const o = {};
|
|
5319
|
+
for (const i of this.subgraph.outputs)
|
|
5320
|
+
o[i.id] = a.get(i.nodeId)?.get("output");
|
|
5321
|
+
return o._calculationResults = a, this.lockCode || (o._code = this.renderCode({ inputs: n, ...s.globalValues })), this.updateOutputValues(o), o;
|
|
5320
5322
|
};
|
|
5321
5323
|
load(n) {
|
|
5322
5324
|
if (!this.subgraph) throw new Error("Cannot load a graph node without a graph");
|
|
@@ -5360,10 +5362,10 @@ function mh(e) {
|
|
|
5360
5362
|
this.subgraph.outputs.some((s) => s.id === n) || this.removeOutput(n);
|
|
5361
5363
|
this.addInput(
|
|
5362
5364
|
"_code",
|
|
5363
|
-
new
|
|
5365
|
+
new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
|
|
5364
5366
|
), this.addOutput(
|
|
5365
5367
|
"_code",
|
|
5366
|
-
new
|
|
5368
|
+
new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
|
|
5367
5369
|
), this.addOutput("_calculationResults", new Se("_calculationResults", void 0).setHidden(!0));
|
|
5368
5370
|
}
|
|
5369
5371
|
/**
|
|
@@ -5372,19 +5374,19 @@ function mh(e) {
|
|
|
5372
5374
|
* These properties should be proxied to the subgraph interface, so they behave the same as the original interface.
|
|
5373
5375
|
*/
|
|
5374
5376
|
createProxyInterface(n, s) {
|
|
5375
|
-
const r = new
|
|
5377
|
+
const r = new ie(n.name, void 0);
|
|
5376
5378
|
return new Proxy(r, {
|
|
5377
|
-
get: (a,
|
|
5378
|
-
if (ph.includes(
|
|
5379
|
-
return Reflect.get(a,
|
|
5380
|
-
let
|
|
5381
|
-
s ?
|
|
5379
|
+
get: (a, o) => {
|
|
5380
|
+
if (ph.includes(o) || o in a || typeof o == "string" && o.startsWith("__v_"))
|
|
5381
|
+
return Reflect.get(a, o);
|
|
5382
|
+
let i;
|
|
5383
|
+
s ? i = this.subgraph?.nodes.find(
|
|
5382
5384
|
(w) => Jr.isGraphInputNode(w) && w.graphInterfaceId === n.id
|
|
5383
|
-
)?.outputs.placeholder.id :
|
|
5385
|
+
)?.outputs.placeholder.id : i = this.subgraph?.nodes.find(
|
|
5384
5386
|
(w) => Qr.isGraphOutputNode(w) && w.graphInterfaceId === n.id
|
|
5385
5387
|
)?.inputs.placeholder.id;
|
|
5386
|
-
const l = this.subgraph?.connections.find((h) =>
|
|
5387
|
-
if (u) return Reflect.get(u,
|
|
5388
|
+
const l = this.subgraph?.connections.find((h) => i === (s ? h.from : h.to)?.id), u = s ? l?.to : l?.from;
|
|
5389
|
+
if (u) return Reflect.get(u, o);
|
|
5388
5390
|
}
|
|
5389
5391
|
});
|
|
5390
5392
|
}
|
|
@@ -5413,16 +5415,16 @@ class rn extends Ea {
|
|
|
5413
5415
|
const I = n.get(p);
|
|
5414
5416
|
if (!I) throw new Error(`Unable to create graph from template: Could not map old id ${p} to new id`);
|
|
5415
5417
|
return I;
|
|
5416
|
-
}, a = (p) =>
|
|
5418
|
+
}, a = (p) => Ei(p, (I) => ({
|
|
5417
5419
|
id: s(I.id),
|
|
5418
5420
|
templateId: I.id,
|
|
5419
5421
|
value: I.value
|
|
5420
|
-
})),
|
|
5422
|
+
})), o = this.nodes.map((p) => ({
|
|
5421
5423
|
...p,
|
|
5422
5424
|
id: s(p.id),
|
|
5423
5425
|
inputs: a(p.inputs),
|
|
5424
5426
|
outputs: a(p.outputs)
|
|
5425
|
-
})),
|
|
5427
|
+
})), i = this.connections.map((p) => ({
|
|
5426
5428
|
id: s(p.id),
|
|
5427
5429
|
from: r(p.from),
|
|
5428
5430
|
to: r(p.to)
|
|
@@ -5438,8 +5440,8 @@ class rn extends Ea {
|
|
|
5438
5440
|
nodeInterfaceId: r(p.nodeInterfaceId)
|
|
5439
5441
|
})), h = {
|
|
5440
5442
|
id: Xe(),
|
|
5441
|
-
nodes:
|
|
5442
|
-
connections:
|
|
5443
|
+
nodes: o,
|
|
5444
|
+
connections: i,
|
|
5443
5445
|
inputs: l,
|
|
5444
5446
|
outputs: u
|
|
5445
5447
|
};
|
|
@@ -5465,36 +5467,36 @@ function _h(e, t) {
|
|
|
5465
5467
|
class ea extends Jr {
|
|
5466
5468
|
_title = "Subgraph Input";
|
|
5467
5469
|
inputs = {
|
|
5468
|
-
_code: new
|
|
5470
|
+
_code: new ie("_code", "").use(ne, _e).setHidden(!0),
|
|
5469
5471
|
name: new xs("Name", "Input").setPort(!1)
|
|
5470
5472
|
};
|
|
5471
5473
|
outputs = {
|
|
5472
|
-
_code: new
|
|
5474
|
+
_code: new ie("_code", "").use(ne, _e).setHidden(!0),
|
|
5473
5475
|
placeholder: new Se("Connection", void 0)
|
|
5474
5476
|
};
|
|
5475
5477
|
}
|
|
5476
5478
|
class ta extends Qr {
|
|
5477
5479
|
_title = "Subgraph Output";
|
|
5478
5480
|
inputs = {
|
|
5479
|
-
_code: new
|
|
5481
|
+
_code: new ie("_code", "").use(ne, _e).setHidden(!0),
|
|
5480
5482
|
name: new xs("Name", "Output").setPort(!1),
|
|
5481
5483
|
placeholder: new Se("Connection", void 0)
|
|
5482
5484
|
};
|
|
5483
5485
|
outputs = {
|
|
5484
|
-
_code: new
|
|
5486
|
+
_code: new ie("_code", "").use(ne, _e).setHidden(!0),
|
|
5485
5487
|
output: new Se("Output", void 0).setHidden(!0)
|
|
5486
5488
|
};
|
|
5487
5489
|
}
|
|
5488
5490
|
const yh = "CREATE_SUBGRAPH", vs = [Ra, Pa];
|
|
5489
5491
|
function gh(e, t, n) {
|
|
5490
5492
|
const s = () => e.value.selectedNodes.filter((a) => !vs.includes(a.type)).length > 0, r = () => {
|
|
5491
|
-
const { viewModel: a } = kt(),
|
|
5492
|
-
if (
|
|
5493
|
-
const l =
|
|
5493
|
+
const { viewModel: a } = kt(), o = e.value, i = e.value.editor;
|
|
5494
|
+
if (o.selectedNodes.length === 0) return;
|
|
5495
|
+
const l = o.selectedNodes.filter((C) => !vs.includes(C.type)), u = l.flatMap((C) => Object.values(C.inputs)), h = l.flatMap((C) => Object.values(C.outputs)), w = o.connections.filter(
|
|
5494
5496
|
(C) => !h.includes(C.from) && u.includes(C.to)
|
|
5495
|
-
), p =
|
|
5497
|
+
), p = o.connections.filter(
|
|
5496
5498
|
(C) => h.includes(C.from) && !u.includes(C.to)
|
|
5497
|
-
), I =
|
|
5499
|
+
), I = o.connections.filter(
|
|
5498
5500
|
(C) => h.includes(C.from) && u.includes(C.to)
|
|
5499
5501
|
), y = l.map((C) => C.save()), O = I.map((C) => ({
|
|
5500
5502
|
id: C.id,
|
|
@@ -5524,25 +5526,25 @@ function gh(e, t, n) {
|
|
|
5524
5526
|
inputs: [],
|
|
5525
5527
|
outputs: []
|
|
5526
5528
|
},
|
|
5527
|
-
|
|
5529
|
+
i
|
|
5528
5530
|
)
|
|
5529
5531
|
);
|
|
5530
|
-
|
|
5531
|
-
const
|
|
5532
|
-
if (!
|
|
5533
|
-
|
|
5534
|
-
const
|
|
5535
|
-
|
|
5532
|
+
i.addGraphTemplate(F);
|
|
5533
|
+
const Te = i.nodeTypes.get(Os(F));
|
|
5534
|
+
if (!Te) throw new Error("Unable to create subgraph: Could not find corresponding graph node type");
|
|
5535
|
+
o.activeTransactions++;
|
|
5536
|
+
const Ne = Ae(new Te.type());
|
|
5537
|
+
o.addNode(Ne);
|
|
5536
5538
|
const ft = Math.round(
|
|
5537
5539
|
l.map((C) => C.position.x).reduce((C, Q) => C + Q, 0) / l.length
|
|
5538
5540
|
), we = Math.round(
|
|
5539
5541
|
l.map((C) => C.position.y).reduce((C, Q) => C + Q, 0) / l.length
|
|
5540
5542
|
);
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
+
Ne.position.x = ft, Ne.position.y = we, w.forEach((C) => {
|
|
5544
|
+
o.removeConnection(C), o.addConnection(C.from, Ne.inputs[c.get(C.to.id)]);
|
|
5543
5545
|
}), p.forEach((C) => {
|
|
5544
|
-
|
|
5545
|
-
}), l.forEach((C) =>
|
|
5546
|
+
o.removeConnection(C), o.addConnection(Ne.outputs[c.get(C.from.id)], C.to);
|
|
5547
|
+
}), l.forEach((C) => o.removeNode(C)), o.activeTransactions--, t.canExecuteCommand(He.SAVE_SUBGRAPH_COMMAND) && t.executeCommand(He.SAVE_SUBGRAPH_COMMAND), n(F), e.value.panning = { ...o.panning }, e.value.scaling = o.scaling;
|
|
5546
5548
|
};
|
|
5547
5549
|
t.registerCommand(yh, {
|
|
5548
5550
|
canExecute: s,
|
|
@@ -5551,15 +5553,15 @@ function gh(e, t, n) {
|
|
|
5551
5553
|
}
|
|
5552
5554
|
function bh(e) {
|
|
5553
5555
|
const t = e.reduce((r, a) => {
|
|
5554
|
-
const
|
|
5555
|
-
return
|
|
5556
|
+
const o = a.position.x;
|
|
5557
|
+
return o < r ? o : r;
|
|
5556
5558
|
}, 1 / 0), n = e.reduce((r, a) => {
|
|
5557
|
-
const
|
|
5558
|
-
return
|
|
5559
|
+
const o = a.position.y;
|
|
5560
|
+
return o < r ? o : r;
|
|
5559
5561
|
}, 1 / 0);
|
|
5560
5562
|
return { xLeft: e.reduce((r, a) => {
|
|
5561
|
-
const
|
|
5562
|
-
return
|
|
5563
|
+
const o = a.position.x + a.width;
|
|
5564
|
+
return o > r ? o : r;
|
|
5563
5565
|
}, -1 / 0), xRight: t, yTop: n };
|
|
5564
5566
|
}
|
|
5565
5567
|
class wh extends La {
|
|
@@ -5615,13 +5617,13 @@ class wh extends La {
|
|
|
5615
5617
|
}
|
|
5616
5618
|
}
|
|
5617
5619
|
function Zh(e) {
|
|
5618
|
-
const t =
|
|
5620
|
+
const t = oe(e?.code ?? new Rn()), n = oe(e?.existingEditor ?? new wh(t.value)), s = /* @__PURE__ */ Symbol("ViewModelToken"), r = oe(null), a = la(r), { switchGraph: o } = _h(n, r), i = z(() => a.value && a.value !== n.value.graph), l = Ae(ba());
|
|
5619
5621
|
l.nodes.defaultWidth = ss;
|
|
5620
5622
|
const u = wa(), h = ka(a, u), w = Ma(a, n, u), p = {
|
|
5621
5623
|
/** Called whenever a node is rendered */
|
|
5622
|
-
renderNode: new
|
|
5624
|
+
renderNode: new os(null),
|
|
5623
5625
|
/** Called whenever an interface is rendered */
|
|
5624
|
-
renderInterface: new
|
|
5626
|
+
renderInterface: new os(null)
|
|
5625
5627
|
}, I = Ae({
|
|
5626
5628
|
clipboard: w,
|
|
5627
5629
|
code: t,
|
|
@@ -5631,21 +5633,21 @@ function Zh(e) {
|
|
|
5631
5633
|
history: h,
|
|
5632
5634
|
hooks: p,
|
|
5633
5635
|
isReady: !1,
|
|
5634
|
-
isSubgraph:
|
|
5636
|
+
isSubgraph: i,
|
|
5635
5637
|
onBeforeUnmount: () => {
|
|
5636
5638
|
},
|
|
5637
5639
|
onMounted: () => {
|
|
5638
5640
|
},
|
|
5639
5641
|
settings: l,
|
|
5640
|
-
switchGraph:
|
|
5642
|
+
switchGraph: o
|
|
5641
5643
|
});
|
|
5642
|
-
return t.value.registerViewModel(I), fh(I), Sa(a, u), gh(a, u,
|
|
5644
|
+
return t.value.registerViewModel(I), fh(I), Sa(a, u), gh(a, u, o), xa(a, u), Oa(a, u, o), Ca(a, u), Ta(a, u, l), dh(a, u, l), ch(l), gs(
|
|
5643
5645
|
n,
|
|
5644
5646
|
(y, O) => {
|
|
5645
5647
|
O && (O.events.registerGraph.unsubscribe(s), O.graphEvents.beforeAddNode.unsubscribe(s), y.nodeHooks.beforeLoad.unsubscribe(s), y.nodeHooks.afterSave.unsubscribe(s), y.graphTemplateHooks.beforeLoad.unsubscribe(s), y.graphTemplateHooks.afterSave.unsubscribe(s), y.graph.hooks.load.unsubscribe(s), y.graph.hooks.save.unsubscribe(s)), y && (y.nodeHooks.beforeLoad.subscribe(s, (c, g) => (g.position = c.position ?? { x: 0, y: 0 }, g.state && (g.state.integrated = c.integrated, c.props && (g.state.props = c.props), c.variableName && (g.state.variableName = c.variableName)), c)), y.nodeHooks.afterSave.subscribe(s, (c, g) => (c.position = g.position, g.state && (c.integrated = g.state.integrated, g.state.props && (c.props = g.state.props), g.state.variableName && (c.variableName = g.state.variableName)), c)), y.graphTemplateHooks.beforeLoad.subscribe(s, (c, g) => (g.panning = c.panning, g.scaling = c.scaling, c)), y.graphTemplateHooks.afterSave.subscribe(s, (c, g) => (c.panning = g.panning, c.scaling = g.scaling, c)), y.graph.hooks.load.subscribe(s, (c, g) => (g.panning = c.panning, g.scaling = c.scaling, c)), y.graph.hooks.save.subscribe(s, (c, g) => (c.panning = g.panning, c.scaling = g.scaling, c)), y.graphEvents.beforeAddNode.subscribe(
|
|
5646
5648
|
s,
|
|
5647
|
-
(c) =>
|
|
5648
|
-
), n.value.registerNodeType(ea, { category: "Subgraphs" }), n.value.registerNodeType(ta, { category: "Subgraphs" }),
|
|
5649
|
+
(c) => Na(c, { defaultWidth: l.nodes.defaultWidth })
|
|
5650
|
+
), n.value.registerNodeType(ea, { category: "Subgraphs" }), n.value.registerNodeType(ta, { category: "Subgraphs" }), o(y.graph));
|
|
5649
5651
|
},
|
|
5650
5652
|
{ immediate: !0 }
|
|
5651
5653
|
), ks(() => I.isReady = !0), I;
|
|
@@ -5663,7 +5665,7 @@ export {
|
|
|
5663
5665
|
rn as CodeGraphTemplate,
|
|
5664
5666
|
Dn as CodeNode,
|
|
5665
5667
|
Mt as CodeNodeInputInterface,
|
|
5666
|
-
|
|
5668
|
+
ie as CodeNodeInterface,
|
|
5667
5669
|
In as CodeNodeInterfaceComponent,
|
|
5668
5670
|
tl as CodeNodeOutputInterface,
|
|
5669
5671
|
zr as DOWNLOAD_EDITOR_STATE_COMMAND,
|
|
@@ -5693,11 +5695,11 @@ export {
|
|
|
5693
5695
|
Bs as booleanType,
|
|
5694
5696
|
Rh as components,
|
|
5695
5697
|
mh as createCodeGraphNodeType,
|
|
5696
|
-
|
|
5698
|
+
Xi as createInterface,
|
|
5697
5699
|
Wh as defineCodeNode,
|
|
5698
5700
|
Hh as defineDynamicCodeNode,
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
+
Qi as dictType,
|
|
5702
|
+
Ki as formatInputs,
|
|
5701
5703
|
Kr as getCodeNodes,
|
|
5702
5704
|
jh as getPositionAtColumn,
|
|
5703
5705
|
zh as getPositionBeforeNode,
|