@babsey/code-graph 0.9.1 → 0.9.3

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.
@@ -1,4 +1,4 @@
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";
1
+ import { createElementBlock as w, openBlock as m, createElementVNode as f, createStaticVNode as Gt, defineComponent as ce, toRef as Sn, ref as ie, 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 ia, Transition as oa, reactive as Ae, markRaw as he, shallowReadonly as la } from "vue";
2
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";
@@ -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 os } from "@baklavajs/events";
10
+ import { SequentialHook as is } from "@baklavajs/events";
11
11
  const q = (e, t) => {
12
12
  const n = e.__vccOpts || e;
13
13
  for (const [s, r] of t)
@@ -26,7 +26,7 @@ const q = (e, t) => {
26
26
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-check"
27
27
  };
28
28
  function Va(e, t) {
29
- return m(), k("svg", Ga, [...t[0] || (t[0] = [
29
+ return m(), w("svg", Ga, [...t[0] || (t[0] = [
30
30
  f("path", {
31
31
  stroke: "none",
32
32
  d: "M0 0h24v24H0z",
@@ -48,7 +48,7 @@ const Ts = /* @__PURE__ */ q(Fa, [["render", Va]]), ja = {}, za = {
48
48
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-code-variable"
49
49
  };
50
50
  function Ba(e, t) {
51
- return m(), k("svg", za, [...t[0] || (t[0] = [
51
+ return m(), w("svg", za, [...t[0] || (t[0] = [
52
52
  f("path", {
53
53
  stroke: "none",
54
54
  d: "M0 0h24v24H0z",
@@ -70,7 +70,7 @@ const Ns = /* @__PURE__ */ q(ja, [["render", Ba]]), Za = {}, qa = {
70
70
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-copy"
71
71
  };
72
72
  function Ka(e, t) {
73
- return m(), k("svg", qa, [...t[0] || (t[0] = [
73
+ return m(), w("svg", qa, [...t[0] || (t[0] = [
74
74
  f("path", {
75
75
  stroke: "none",
76
76
  d: "M0 0h24v24H0z",
@@ -93,7 +93,7 @@ const Ds = /* @__PURE__ */ q(Za, [["render", Ka]]), Xa = {}, Ja = {
93
93
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
94
94
  };
95
95
  function Qa(e, t) {
96
- return m(), k("svg", Ja, [...t[0] || (t[0] = [
96
+ return m(), w("svg", Ja, [...t[0] || (t[0] = [
97
97
  f("path", {
98
98
  stroke: "none",
99
99
  d: "M0 0h24v24H0z",
@@ -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]]), eo = {}, to = {
107
+ const Is = /* @__PURE__ */ q(Xa, [["render", Qa]]), ei = {}, ti = {
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]]), eo = {}, to = {
116
116
  "stroke-linejoin": "round",
117
117
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-download"
118
118
  };
119
- function no(e, t) {
120
- return m(), k("svg", to, [...t[0] || (t[0] = [
119
+ function ni(e, t) {
120
+ return m(), w("svg", ti, [...t[0] || (t[0] = [
121
121
  f("path", {
122
122
  stroke: "none",
123
123
  d: "M0 0h24v24H0z",
@@ -128,7 +128,7 @@ function no(e, t) {
128
128
  f("path", { d: "M12 4l0 12" }, null, -1)
129
129
  ])]);
130
130
  }
131
- const Ys = /* @__PURE__ */ q(eo, [["render", no]]), so = {}, ro = {
131
+ const Ys = /* @__PURE__ */ q(ei, [["render", ni]]), si = {}, ri = {
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(eo, [["render", no]]), so = {}, ro = {
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 ao(e, t) {
140
- return m(), k("svg", ro, [...t[0] || (t[0] = [
139
+ function ai(e, t) {
140
+ return m(), w("svg", ri, [...t[0] || (t[0] = [
141
141
  f("path", {
142
142
  stroke: "none",
143
143
  d: "M0 0h24v24H0z",
@@ -146,7 +146,7 @@ function ao(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 oo = /* @__PURE__ */ q(so, [["render", ao]]), io = {}, lo = {
149
+ const ii = /* @__PURE__ */ q(si, [["render", ai]]), oi = {}, li = {
150
150
  xmlns: "http://www.w3.org/2000/svg",
151
151
  width: "24",
152
152
  height: "24",
@@ -154,8 +154,8 @@ const oo = /* @__PURE__ */ q(so, [["render", ao]]), io = {}, lo = {
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 uo(e, t) {
158
- return m(), k("svg", lo, [...t[0] || (t[0] = [
157
+ function ui(e, t) {
158
+ return m(), w("svg", li, [...t[0] || (t[0] = [
159
159
  f("path", {
160
160
  stroke: "none",
161
161
  d: "M0 0h24v24H0z",
@@ -164,7 +164,7 @@ function uo(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 co = /* @__PURE__ */ q(io, [["render", uo]]), ho = {}, fo = {
167
+ const di = /* @__PURE__ */ q(oi, [["render", ui]]), ci = {}, hi = {
168
168
  xmlns: "http://www.w3.org/2000/svg",
169
169
  width: "24",
170
170
  height: "24",
@@ -172,8 +172,8 @@ const co = /* @__PURE__ */ q(io, [["render", uo]]), ho = {}, fo = {
172
172
  fill: "currentColor",
173
173
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right"
174
174
  };
175
- function po(e, t) {
176
- return m(), k("svg", fo, [...t[0] || (t[0] = [
175
+ function fi(e, t) {
176
+ return m(), w("svg", hi, [...t[0] || (t[0] = [
177
177
  f("path", {
178
178
  stroke: "none",
179
179
  d: "M0 0h24v24H0z",
@@ -182,7 +182,7 @@ function po(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 mo = /* @__PURE__ */ q(ho, [["render", po]]), vo = {}, _o = {
185
+ const pi = /* @__PURE__ */ q(ci, [["render", fi]]), mi = {}, vi = {
186
186
  xmlns: "http://www.w3.org/2000/svg",
187
187
  width: "24",
188
188
  height: "24",
@@ -190,8 +190,8 @@ const mo = /* @__PURE__ */ q(ho, [["render", po]]), vo = {}, _o = {
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 yo(e, t) {
194
- return m(), k("svg", _o, [...t[0] || (t[0] = [
193
+ function _i(e, t) {
194
+ return m(), w("svg", vi, [...t[0] || (t[0] = [
195
195
  f("path", {
196
196
  stroke: "none",
197
197
  d: "M0 0h24v24H0z",
@@ -200,7 +200,7 @@ function yo(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(vo, [["render", yo]]), go = {}, bo = {
203
+ const Es = /* @__PURE__ */ q(mi, [["render", _i]]), yi = {}, gi = {
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(vo, [["render", yo]]), go = {}, bo = {
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 wo(e, t) {
212
- return m(), k("svg", bo, [...t[0] || (t[0] = [
211
+ function bi(e, t) {
212
+ return m(), w("svg", gi, [...t[0] || (t[0] = [
213
213
  f("path", {
214
214
  stroke: "none",
215
215
  d: "M0 0h24v24H0z",
@@ -218,7 +218,7 @@ function wo(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 Tn = /* @__PURE__ */ q(go, [["render", wo]]), ko = {}, Mo = {
221
+ const Tn = /* @__PURE__ */ q(yi, [["render", bi]]), wi = {}, ki = {
222
222
  xmlns: "http://www.w3.org/2000/svg",
223
223
  width: "24",
224
224
  height: "24",
@@ -230,12 +230,12 @@ const Tn = /* @__PURE__ */ q(go, [["render", wo]]), ko = {}, Mo = {
230
230
  "stroke-linejoin": "round",
231
231
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-lock-code"
232
232
  };
233
- function So(e, t) {
234
- return m(), k("svg", Mo, [...t[0] || (t[0] = [
233
+ function Mi(e, t) {
234
+ return m(), w("svg", ki, [...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 Nn = /* @__PURE__ */ q(ko, [["render", So]]), xo = {}, Oo = {
238
+ const Nn = /* @__PURE__ */ q(wi, [["render", Mi]]), Si = {}, xi = {
239
239
  xmlns: "http://www.w3.org/2000/svg",
240
240
  width: "24",
241
241
  height: "24",
@@ -247,8 +247,8 @@ const Nn = /* @__PURE__ */ q(ko, [["render", So]]), xo = {}, Oo = {
247
247
  "stroke-linejoin": "round",
248
248
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-player-play"
249
249
  };
250
- function Co(e, t) {
251
- return m(), k("svg", Oo, [...t[0] || (t[0] = [
250
+ function Oi(e, t) {
251
+ return m(), w("svg", xi, [...t[0] || (t[0] = [
252
252
  f("path", {
253
253
  stroke: "none",
254
254
  d: "M0 0h24v24H0z",
@@ -257,7 +257,7 @@ function Co(e, t) {
257
257
  f("path", { d: "M7 4v16l13 -8z" }, null, -1)
258
258
  ])]);
259
259
  }
260
- const To = /* @__PURE__ */ q(xo, [["render", Co]]), No = {}, Do = {
260
+ const Ci = /* @__PURE__ */ q(Si, [["render", Oi]]), Ti = {}, Ni = {
261
261
  xmlns: "http://www.w3.org/2000/svg",
262
262
  width: "24",
263
263
  height: "24",
@@ -269,8 +269,8 @@ const To = /* @__PURE__ */ q(xo, [["render", Co]]), No = {}, Do = {
269
269
  "stroke-linejoin": "round",
270
270
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-plus"
271
271
  };
272
- function Io(e, t) {
273
- return m(), k("svg", Do, [...t[0] || (t[0] = [
272
+ function Di(e, t) {
273
+ return m(), w("svg", Ni, [...t[0] || (t[0] = [
274
274
  f("path", {
275
275
  stroke: "none",
276
276
  d: "M0 0h24v24H0z",
@@ -280,7 +280,7 @@ function Io(e, t) {
280
280
  f("path", { d: "M5 12l14 0" }, null, -1)
281
281
  ])]);
282
282
  }
283
- const Rs = /* @__PURE__ */ q(No, [["render", Io]]), Yo = {}, Eo = {
283
+ const Rs = /* @__PURE__ */ q(Ti, [["render", Di]]), Ii = {}, Yi = {
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(No, [["render", Io]]), Yo = {}, Eo = {
292
292
  "stroke-linejoin": "round",
293
293
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-restore"
294
294
  };
295
- function Ro(e, t) {
296
- return m(), k("svg", Eo, [...t[0] || (t[0] = [
295
+ function Ei(e, t) {
296
+ return m(), w("svg", Yi, [...t[0] || (t[0] = [
297
297
  f("path", {
298
298
  stroke: "none",
299
299
  d: "M0 0h24v24H0z",
@@ -304,7 +304,7 @@ function Ro(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(Yo, [["render", Ro]]), Po = {}, Lo = {
307
+ const Ps = /* @__PURE__ */ q(Ii, [["render", Ei]]), Ri = {}, Pi = {
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(Yo, [["render", Ro]]), Po = {}, Lo = {
316
316
  "stroke-linejoin": "round",
317
317
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema"
318
318
  };
319
- function Ao(e, t) {
320
- return m(), k("svg", Lo, [...t[0] || (t[0] = [
319
+ function Li(e, t) {
320
+ return m(), w("svg", Pi, [...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(Po, [["render", Ao]]), Uo = {}, $o = {
324
+ const Ls = /* @__PURE__ */ q(Ri, [["render", Li]]), Ai = {}, Ui = {
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(Po, [["render", Ao]]), Uo = {}, $o = {
333
333
  "stroke-linejoin": "round",
334
334
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema-off"
335
335
  };
336
- function Wo(e, t) {
337
- return m(), k("svg", $o, [...t[0] || (t[0] = [
336
+ function $i(e, t) {
337
+ return m(), w("svg", Ui, [...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(Uo, [["render", Wo]]), Ho = {}, Fo = {
341
+ const As = /* @__PURE__ */ q(Ai, [["render", $i]]), Wi = {}, Hi = {
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(Uo, [["render", Wo]]), Ho = {}, Fo = {
350
350
  "stroke-linejoin": "round",
351
351
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-transition-bottom"
352
352
  };
353
- function Go(e, t) {
354
- return m(), k("svg", Fo, [...t[0] || (t[0] = [
353
+ function Fi(e, t) {
354
+ return m(), w("svg", Hi, [...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(Ho, [["render", Go]]), Vo = {}, jo = {
358
+ const Us = /* @__PURE__ */ q(Wi, [["render", Fi]]), Gi = {}, Vi = {
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(Ho, [["render", Go]]), Vo = {}, jo = {
367
367
  "stroke-linejoin": "round",
368
368
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-upload"
369
369
  };
370
- function zo(e, t) {
371
- return m(), k("svg", jo, [...t[0] || (t[0] = [
370
+ function ji(e, t) {
371
+ return m(), w("svg", Vi, [...t[0] || (t[0] = [
372
372
  f("path", {
373
373
  stroke: "none",
374
374
  d: "M0 0h24v24H0z",
@@ -379,7 +379,7 @@ function zo(e, t) {
379
379
  f("path", { d: "M12 4l0 12" }, null, -1)
380
380
  ])]);
381
381
  }
382
- const $s = /* @__PURE__ */ q(Vo, [["render", zo]]), Bo = {}, Zo = {
382
+ const $s = /* @__PURE__ */ q(Gi, [["render", ji]]), zi = {}, Bi = {
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(Vo, [["render", zo]]), Bo = {}, Zo = {
391
391
  "stroke-linejoin": "round",
392
392
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-x"
393
393
  };
394
- function qo(e, t) {
395
- return m(), k("svg", Zo, [...t[0] || (t[0] = [
394
+ function Zi(e, t) {
395
+ return m(), w("svg", Bi, [...t[0] || (t[0] = [
396
396
  f("path", {
397
397
  stroke: "none",
398
398
  d: "M0 0h24v24H0z",
@@ -402,20 +402,20 @@ function qo(e, t) {
402
402
  f("path", { d: "M6 6l12 12" }, null, -1)
403
403
  ])]);
404
404
  }
405
- const Ws = /* @__PURE__ */ q(Bo, [["render", qo]]), Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
405
+ const Ws = /* @__PURE__ */ q(zi, [["render", Zi]]), Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
406
406
  __proto__: null,
407
407
  Check: Ts,
408
408
  CodeVariable: Ns,
409
409
  Copy: Ds,
410
410
  DotsVertical: Is,
411
411
  Download: Ys,
412
- LayoutSidebarLeftCollapse: oo,
413
- LayoutSidebarLeftExpand: co,
414
- LayoutSidebarRight: mo,
412
+ LayoutSidebarLeftCollapse: ii,
413
+ LayoutSidebarLeftExpand: di,
414
+ LayoutSidebarRight: pi,
415
415
  LayoutSidebarRightCollapse: Es,
416
416
  LayoutSidebarRightExpand: Tn,
417
417
  LockCode: Nn,
418
- PlayerPlay: To,
418
+ PlayerPlay: Ci,
419
419
  Plus: Rs,
420
420
  Restore: Ps,
421
421
  Schema: Ls,
@@ -424,16 +424,16 @@ const Ws = /* @__PURE__ */ q(Bo, [["render", qo]]), Eh = /* @__PURE__ */ Object.
424
424
  Upload: $s,
425
425
  X: Ws
426
426
  }, Symbol.toStringTag, { value: "Module" }));
427
- function Ko(e) {
427
+ function qi(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 Xo = Rt.exports, is;
432
- function Jo() {
433
- return is || (is = 1, (function(e, t) {
431
+ var Ki = Rt.exports, os;
432
+ function Xi() {
433
+ return os || (os = 1, (function(e, t) {
434
434
  (function(s, r) {
435
435
  e.exports = r();
436
- })(Xo, function() {
436
+ })(Ki, function() {
437
437
  return (
438
438
  /******/
439
439
  (function() {
@@ -441,8 +441,8 @@ function Jo() {
441
441
  /***/
442
442
  686: (
443
443
  /***/
444
- (function(a, o, i) {
445
- i.d(o, {
444
+ (function(a, i, o) {
445
+ o.d(i, {
446
446
  default: function() {
447
447
  return (
448
448
  /* binding */
@@ -450,7 +450,7 @@ function Jo() {
450
450
  );
451
451
  }
452
452
  });
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);
453
+ var l = o(279), u = /* @__PURE__ */ o.n(l), h = o(370), k = /* @__PURE__ */ o.n(h), p = o(817), I = /* @__PURE__ */ o.n(p);
454
454
  function y(b) {
455
455
  try {
456
456
  return document.execCommand(b);
@@ -600,7 +600,7 @@ function Jo() {
600
600
  key: "listenClick",
601
601
  value: function(D) {
602
602
  var R = this;
603
- this.listener = w()(D, "click", function(me) {
603
+ this.listener = k()(D, "click", function(me) {
604
604
  return R.onClick(me);
605
605
  });
606
606
  }
@@ -708,13 +708,13 @@ function Jo() {
708
708
  828: (
709
709
  /***/
710
710
  (function(a) {
711
- var o = 9;
711
+ var i = 9;
712
712
  if (typeof Element < "u" && !Element.prototype.matches) {
713
- var i = Element.prototype;
714
- i.matches = i.matchesSelector || i.mozMatchesSelector || i.msMatchesSelector || i.oMatchesSelector || i.webkitMatchesSelector;
713
+ var o = Element.prototype;
714
+ o.matches = o.matchesSelector || o.mozMatchesSelector || o.msMatchesSelector || o.oMatchesSelector || o.webkitMatchesSelector;
715
715
  }
716
716
  function l(u, h) {
717
- for (; u && u.nodeType !== o; ) {
717
+ for (; u && u.nodeType !== i; ) {
718
718
  if (typeof u.matches == "function" && u.matches(h))
719
719
  return u;
720
720
  u = u.parentNode;
@@ -726,10 +726,10 @@ function Jo() {
726
726
  /***/
727
727
  438: (
728
728
  /***/
729
- (function(a, o, i) {
730
- var l = i(828);
729
+ (function(a, i, o) {
730
+ var l = o(828);
731
731
  function u(p, I, y, O, c) {
732
- var g = w.apply(this, arguments);
732
+ var g = k.apply(this, arguments);
733
733
  return p.addEventListener(y, g, c), {
734
734
  destroy: function() {
735
735
  p.removeEventListener(y, g, c);
@@ -741,7 +741,7 @@ function Jo() {
741
741
  return u(g, I, y, O, c);
742
742
  }));
743
743
  }
744
- function w(p, I, y, O) {
744
+ function k(p, I, y, O) {
745
745
  return function(c) {
746
746
  c.delegateTarget = l(c.target, I), c.delegateTarget && O.call(p, c);
747
747
  };
@@ -752,16 +752,16 @@ function Jo() {
752
752
  /***/
753
753
  879: (
754
754
  /***/
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);
755
+ (function(a, i) {
756
+ i.node = function(o) {
757
+ return o !== void 0 && o instanceof HTMLElement && o.nodeType === 1;
758
+ }, i.nodeList = function(o) {
759
+ var l = Object.prototype.toString.call(o);
760
+ return o !== void 0 && (l === "[object NodeList]" || l === "[object HTMLCollection]") && "length" in o && (o.length === 0 || i.node(o[0]));
761
+ }, i.string = function(o) {
762
+ return typeof o == "string" || o instanceof String;
763
+ }, i.fn = function(o) {
764
+ var l = Object.prototype.toString.call(o);
765
765
  return l === "[object Function]";
766
766
  };
767
767
  })
@@ -769,8 +769,8 @@ function Jo() {
769
769
  /***/
770
770
  370: (
771
771
  /***/
772
- (function(a, o, i) {
773
- var l = i(879), u = i(438);
772
+ (function(a, i, o) {
773
+ var l = o(879), u = o(438);
774
774
  function h(y, O, c) {
775
775
  if (!y && !O && !c)
776
776
  throw new Error("Missing required arguments");
@@ -779,14 +779,14 @@ function Jo() {
779
779
  if (!l.fn(c))
780
780
  throw new TypeError("Third argument must be a Function");
781
781
  if (l.node(y))
782
- return w(y, O, c);
782
+ return k(y, O, c);
783
783
  if (l.nodeList(y))
784
784
  return p(y, O, c);
785
785
  if (l.string(y))
786
786
  return I(y, O, c);
787
787
  throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
788
788
  }
789
- function w(y, O, c) {
789
+ function k(y, O, c) {
790
790
  return y.addEventListener(O, c), {
791
791
  destroy: function() {
792
792
  y.removeEventListener(O, c);
@@ -814,58 +814,58 @@ function Jo() {
814
814
  817: (
815
815
  /***/
816
816
  (function(a) {
817
- function o(i) {
817
+ function i(o) {
818
818
  var l;
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;
819
+ if (o.nodeName === "SELECT")
820
+ o.focus(), l = o.value;
821
+ else if (o.nodeName === "INPUT" || o.nodeName === "TEXTAREA") {
822
+ var u = o.hasAttribute("readonly");
823
+ u || o.setAttribute("readonly", ""), o.select(), o.setSelectionRange(0, o.value.length), u || o.removeAttribute("readonly"), l = o.value;
824
824
  } else {
825
- i.hasAttribute("contenteditable") && i.focus();
826
- var h = window.getSelection(), w = document.createRange();
827
- w.selectNodeContents(i), h.removeAllRanges(), h.addRange(w), l = h.toString();
825
+ o.hasAttribute("contenteditable") && o.focus();
826
+ var h = window.getSelection(), k = document.createRange();
827
+ k.selectNodeContents(o), h.removeAllRanges(), h.addRange(k), l = h.toString();
828
828
  }
829
829
  return l;
830
830
  }
831
- a.exports = o;
831
+ a.exports = i;
832
832
  })
833
833
  ),
834
834
  /***/
835
835
  279: (
836
836
  /***/
837
837
  (function(a) {
838
- function o() {
838
+ function i() {
839
839
  }
840
- o.prototype = {
841
- on: function(i, l, u) {
840
+ i.prototype = {
841
+ on: function(o, l, u) {
842
842
  var h = this.e || (this.e = {});
843
- return (h[i] || (h[i] = [])).push({
843
+ return (h[o] || (h[o] = [])).push({
844
844
  fn: l,
845
845
  ctx: u
846
846
  }), this;
847
847
  },
848
- once: function(i, l, u) {
848
+ once: function(o, l, u) {
849
849
  var h = this;
850
- function w() {
851
- h.off(i, w), l.apply(u, arguments);
850
+ function k() {
851
+ h.off(o, k), l.apply(u, arguments);
852
852
  }
853
- return w._ = l, this.on(i, w, u);
853
+ return k._ = l, this.on(o, k, u);
854
854
  },
855
- emit: function(i) {
856
- var l = [].slice.call(arguments, 1), u = ((this.e || (this.e = {}))[i] || []).slice(), h = 0, w = u.length;
857
- for (h; h < w; h++)
855
+ emit: function(o) {
856
+ var l = [].slice.call(arguments, 1), u = ((this.e || (this.e = {}))[o] || []).slice(), h = 0, k = u.length;
857
+ for (h; h < k; h++)
858
858
  u[h].fn.apply(u[h].ctx, l);
859
859
  return this;
860
860
  },
861
- off: function(i, l) {
862
- var u = this.e || (this.e = {}), h = u[i], w = [];
861
+ off: function(o, l) {
862
+ var u = this.e || (this.e = {}), h = u[o], k = [];
863
863
  if (h && l)
864
864
  for (var p = 0, I = h.length; p < I; p++)
865
- h[p].fn !== l && h[p].fn._ !== l && w.push(h[p]);
866
- return w.length ? u[i] = w : delete u[i], this;
865
+ h[p].fn !== l && h[p].fn._ !== l && k.push(h[p]);
866
+ return k.length ? u[o] = k : delete u[o], this;
867
867
  }
868
- }, a.exports = o, a.exports.TinyEmitter = o;
868
+ }, a.exports = i, a.exports.TinyEmitter = i;
869
869
  })
870
870
  )
871
871
  /******/
@@ -873,7 +873,7 @@ function Jo() {
873
873
  function r(a) {
874
874
  if (s[a])
875
875
  return s[a].exports;
876
- var o = s[a] = {
876
+ var i = s[a] = {
877
877
  /******/
878
878
  // no module.id needed
879
879
  /******/
@@ -882,11 +882,11 @@ function Jo() {
882
882
  exports: {}
883
883
  /******/
884
884
  };
885
- return n[a](o, o.exports, r), o.exports;
885
+ return n[a](i, i.exports, r), i.exports;
886
886
  }
887
887
  return (function() {
888
888
  r.n = function(a) {
889
- var o = a && a.__esModule ? (
889
+ var i = a && a.__esModule ? (
890
890
  /******/
891
891
  function() {
892
892
  return a.default;
@@ -897,16 +897,16 @@ function Jo() {
897
897
  return a;
898
898
  }
899
899
  );
900
- return r.d(o, { a: o }), o;
900
+ return r.d(i, { a: i }), i;
901
901
  };
902
902
  })(), (function() {
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] });
903
+ r.d = function(a, i) {
904
+ for (var o in i)
905
+ r.o(i, o) && !r.o(a, o) && Object.defineProperty(a, o, { enumerable: !0, get: i[o] });
906
906
  };
907
907
  })(), (function() {
908
- r.o = function(a, o) {
909
- return Object.prototype.hasOwnProperty.call(a, o);
908
+ r.o = function(a, i) {
909
+ return Object.prototype.hasOwnProperty.call(a, i);
910
910
  };
911
911
  })(), r(686);
912
912
  })().default
@@ -914,40 +914,40 @@ function Jo() {
914
914
  });
915
915
  })(Rt)), Rt.exports;
916
916
  }
917
- var Qo = Jo();
918
- const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
917
+ var Ji = Xi();
918
+ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
919
919
  toClipboard(t, n) {
920
920
  return new Promise((s, r) => {
921
- const a = document.createElement("button"), o = new ei(a, {
921
+ const a = document.createElement("button"), i = new Qi(a, {
922
922
  text: () => t,
923
923
  action: () => "copy",
924
924
  container: n !== void 0 ? n : document.body
925
925
  });
926
- o.on("success", (i) => {
927
- o.destroy(), s(i);
928
- }), o.on("error", (i) => {
929
- o.destroy(), r(i);
926
+ i.on("success", (o) => {
927
+ i.destroy(), s(o);
928
+ }), i.on("error", (o) => {
929
+ i.destroy(), r(o);
930
930
  }), document.body.appendChild(a), a.click(), document.body.removeChild(a);
931
931
  });
932
932
  }
933
- }), ni = {
933
+ }), to = {
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 } = ti(), s = Sn(e, "text"), r = oe(!1), a = async () => {
940
+ const { toClipboard: t } = eo(), s = Sn(e, "text"), r = ie(!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 (o) {
944
- console.error(o);
943
+ } catch (i) {
944
+ console.error(i);
945
945
  }
946
946
  };
947
- return (o, i) => (m(), k("div", null, [
948
- r.value ? (m(), k("button", ni, [
947
+ return (i, o) => (m(), w("div", null, [
948
+ r.value ? (m(), w("button", to, [
949
949
  X(H(Ts))
950
- ])) : (m(), k("button", {
950
+ ])) : (m(), w("button", {
951
951
  key: 1,
952
952
  onClick: a,
953
953
  class: "baklava-button"
@@ -956,7 +956,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
956
956
  ]))
957
957
  ]));
958
958
  }
959
- }), si = { class: "code-editor" }, ri = { class: "code-buttons" }, ai = /* @__PURE__ */ ce({
959
+ }), no = { class: "code-editor" }, so = { class: "code-buttons" }, ro = /* @__PURE__ */ ce({
960
960
  __name: "CodeEditor",
961
961
  props: /* @__PURE__ */ rs({
962
962
  locked: { type: Boolean },
@@ -968,32 +968,32 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (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, o) => {
972
- const i = _s("codemirror");
973
- return m(), k("div", si, [
974
- f("div", ri, [
975
- e.locked ? (m(), k("button", {
971
+ return (a, i) => {
972
+ const o = _s("codemirror");
973
+ return m(), w("div", no, [
974
+ f("div", so, [
975
+ e.locked ? (m(), w("button", {
976
976
  key: 0,
977
977
  class: "baklava-button",
978
978
  title: "The code is locked.",
979
- onClick: o[0] || (o[0] = (l) => r(!1))
979
+ onClick: i[0] || (i[0] = (l) => r(!1))
980
980
  }, [
981
981
  X(H(Nn))
982
982
  ])) : K("", !0),
983
983
  X(Hs, { text: e.modelValue }, null, 8, ["text"])
984
984
  ]),
985
- X(i, {
985
+ X(o, {
986
986
  modelValue: n.value,
987
- "onUpdate:modelValue": o[1] || (o[1] = (l) => n.value = l),
987
+ "onUpdate:modelValue": i[1] || (i[1] = (l) => n.value = l),
988
988
  extensions: e.extensions,
989
989
  class: "codemirror",
990
990
  style: { height: "100%" },
991
- onKeydown: o[2] || (o[2] = (l) => r(!0))
991
+ onKeydown: i[2] || (i[2] = (l) => r(!0))
992
992
  }, null, 8, ["modelValue", "extensions"])
993
993
  ]);
994
994
  };
995
995
  }
996
- }), oi = /* @__PURE__ */ ce({
996
+ }), ao = /* @__PURE__ */ ce({
997
997
  __name: "CodeGraphEditor",
998
998
  props: {
999
999
  viewModel: {}
@@ -1006,15 +1006,15 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1006
1006
  palette: Ye(() => [
1007
1007
  X(H(Vs))
1008
1008
  ]),
1009
- node: Ye((o) => [
1010
- X(H(Fs), aa(o, {
1011
- onUpdate: (i) => s(o.node)
1009
+ node: Ye((i) => [
1010
+ X(H(Fs), aa(i, {
1011
+ onUpdate: (o) => s(i.node)
1012
1012
  }), null, 16, ["onUpdate"])
1013
1013
  ]),
1014
- sidebar: Ye((o) => [
1015
- X(H(Gs), sa(ra(o)), {
1016
- codeEditor: Ye(({ node: i }) => [
1017
- Me(r.$slots, "sidebarCodeEditor", { node: i })
1014
+ sidebar: Ye((i) => [
1015
+ X(H(Gs), sa(ra(i)), {
1016
+ codeEditor: Ye(({ node: o }) => [
1017
+ Me(r.$slots, "sidebarCodeEditor", { node: o })
1018
1018
  ]),
1019
1019
  _: 3
1020
1020
  }, 16)
@@ -1022,13 +1022,13 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1022
1022
  _: 3
1023
1023
  }, 8, ["viewModel"]));
1024
1024
  }
1025
- }), ii = { class: "code-graph-info" }, li = /* @__PURE__ */ ce({
1025
+ }), io = { class: "code-graph-info" }, oo = /* @__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", ii, [
1031
+ return (t, n) => (m(), w("div", io, [
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 ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1036
1036
  f("div", null, "Engine status: " + te(e.viewModel.engine?.status), 1)
1037
1037
  ]));
1038
1038
  }
1039
- }), ui = ["data-node-type", "id"], di = {
1039
+ }), lo = ["data-node-type", "id"], uo = {
1040
1040
  class: "__title-label",
1041
1041
  style: { "flex-grow": "1" }
1042
- }, ci = { key: 0 }, hi = {
1042
+ }, co = { key: 0 }, ho = {
1043
1043
  class: "__menu",
1044
1044
  style: { display: "flex" }
1045
- }, fi = { class: "__outputs" }, pi = { key: 0 }, mi = ["id", "title"], vi = { class: "__inputs" }, _i = { key: 0 }, yi = ["id", "title"], Fs = /* @__PURE__ */ ce({
1045
+ }, fo = { class: "__outputs" }, po = { key: 0 }, mo = ["id", "title"], vo = { class: "__inputs" }, _o = { key: 0 }, yo = ["id", "title"], Fs = /* @__PURE__ */ ce({
1046
1046
  __name: "CodeGraphNode",
1047
1047
  props: {
1048
1048
  node: {},
@@ -1051,9 +1051,9 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (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), o = t, { viewModel: i } = kt(), { graph: l, switchGraph: u } = Cn(), h = oe(null), w = oe(!1), p = oe(""), I = oe(null), y = oe(!1);
1054
+ const n = fn.ContextMenu, s = fn.NodeInterface, r = e, a = z(() => r.node), i = t, { viewModel: o } = kt(), { graph: l, switchGraph: u } = Cn(), h = ie(null), k = ie(!1), p = ie(""), I = ie(null), y = ie(!1);
1055
1055
  let O = 0, c = 0;
1056
- const g = oe(!1), $ = z(() => {
1056
+ const g = ie(!1), $ = z(() => {
1057
1057
  const W = [
1058
1058
  { value: "edit", label: "Edit" },
1059
1059
  { value: "rename", label: "Rename" },
@@ -1066,22 +1066,22 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (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 ?? i.value.settings.nodes.reverseY
1069
+ "--reverse-y": r.node.reverseY ?? o.value.settings.nodes.reverseY
1070
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 ?? i.value.settings.nodes.defaultWidth}px`
1073
+ "--width": `${r.node.width ?? o.value.settings.nodes.defaultWidth}px`
1074
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");
1075
+ an(), i("select");
1076
1076
  }, C = (W) => {
1077
- r.selected || we(), o("start-drag", W);
1077
+ r.selected || we(), i("start-drag", W);
1078
1078
  }, Q = () => {
1079
1079
  g.value = !0;
1080
1080
  }, se = () => {
1081
- const W = i.value.displayedGraph.sidebar;
1081
+ const W = o.value.displayedGraph.sidebar;
1082
1082
  W.nodeId = r.node.id, W.visible = !0;
1083
1083
  }, an = () => {
1084
- const W = i.value.displayedGraph.sidebar;
1084
+ const W = o.value.displayedGraph.sidebar;
1085
1085
  W.nodeId = r.node.id;
1086
1086
  }, pt = async (W) => {
1087
1087
  switch (W) {
@@ -1092,23 +1092,23 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1092
1092
  l.value.removeNode(r.node);
1093
1093
  break;
1094
1094
  case "rename":
1095
- p.value = r.node.title, w.value = !0, await ks(), I.value?.focus();
1095
+ p.value = r.node.title, k.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
1101
  }, Tt = () => {
1102
- a.value.title = p.value, a.value.events.titleChanged.emit(a.value.title), w.value = !1;
1102
+ a.value.title = p.value, a.value.events.titleChanged.emit(a.value.title), k.value = !1;
1103
1103
  }, Nt = () => {
1104
- h.value && i.value.hooks.renderNode.execute({ node: r.node, el: h.value });
1104
+ h.value && o.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, o("update"));
1108
+ a.value.state && (a.value.state.integrated = W, i("update"));
1109
1109
  }, ze = (W) => {
1110
1110
  if (!y.value) return;
1111
- const B = W.clientX - c, b = O + B / l.value.scaling, S = i.value.settings.nodes.minWidth, M = i.value.settings.nodes.maxWidth;
1111
+ const B = W.clientX - c, b = O + B / l.value.scaling, S = o.value.settings.nodes.minWidth, M = o.value.settings.nodes.maxWidth;
1112
1112
  a.value.width = Math.max(S, Math.min(M, b));
1113
1113
  }, et = () => {
1114
1114
  y.value = !1;
@@ -1117,7 +1117,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1117
1117
  Nt(), window.addEventListener("mousemove", ze), window.addEventListener("mouseup", et);
1118
1118
  }), bs(Nt), ys(() => {
1119
1119
  window.removeEventListener("mousemove", ze), window.removeEventListener("mouseup", et);
1120
- }), (W, B) => (m(), k("div", {
1120
+ }), (W, B) => (m(), w("div", {
1121
1121
  class: je([A.value, "baklava-node"]),
1122
1122
  "data-node-type": a.value.type,
1123
1123
  id: a.value.id,
@@ -1126,7 +1126,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1126
1126
  ref: h,
1127
1127
  onPointerdown: we
1128
1128
  }, [
1129
- H(i).settings.nodes.resizable ? (m(), k("div", {
1129
+ H(o).settings.nodes.resizable ? (m(), w("div", {
1130
1130
  key: 0,
1131
1131
  class: "__resize-handle",
1132
1132
  onMousedown: on
@@ -1145,7 +1145,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1145
1145
  "data-interface-type": "node",
1146
1146
  style: { "flex-grow": "0" }
1147
1147
  }, null, 8, ["intf", "node", "title"])) : K("", !0),
1148
- w.value ? Vt((m(), k("input", {
1148
+ k.value ? Vt((m(), w("input", {
1149
1149
  key: 2,
1150
1150
  ref_key: "renameInputEl",
1151
1151
  ref: I,
@@ -1158,24 +1158,24 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1158
1158
  onKeydown: hn(Tt, ["enter"])
1159
1159
  }, null, 544)), [
1160
1160
  [jt, p.value]
1161
- ]) : (m(), k(ae, { key: 1 }, [
1162
- f("div", di, [
1163
- a.value.idx > -1 ? (m(), k("span", ci, te(a.value.idx + 1) + " - ", 1)) : K("", !0),
1161
+ ]) : (m(), w(ae, { key: 1 }, [
1162
+ f("div", uo, [
1163
+ a.value.idx > -1 ? (m(), w("span", co, te(a.value.idx + 1) + " - ", 1)) : K("", !0),
1164
1164
  ws(" " + te(a.value.title), 1)
1165
1165
  ]),
1166
- f("div", hi, [
1167
- a.value.isCodeNode ? (m(), k(ae, { key: 0 }, [
1166
+ f("div", ho, [
1167
+ a.value.isCodeNode ? (m(), w(ae, { key: 0 }, [
1168
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
- a.value.isSelected && !H(i).displayedGraph.sidebar.visible ? (m(), ue(H(Tn), {
1173
+ a.value.isSelected && !H(o).displayedGraph.sidebar.visible ? (m(), ue(H(Tn), {
1174
1174
  key: 1,
1175
1175
  class: "--clickable mx-1",
1176
1176
  onClick: se
1177
1177
  })) : K("", !0),
1178
- a.value.hasConnectedOutputNodes ? (m(), k(ae, { key: 2 }, [
1178
+ a.value.hasConnectedOutputNodes ? (m(), w(ae, { key: 2 }, [
1179
1179
  a.value.state.integrated ? (m(), ue(H(Ns), {
1180
1180
  key: 1,
1181
1181
  class: "--clickable mx-1",
@@ -1217,19 +1217,19 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1217
1217
  onContextmenu: B[6] || (B[6] = st(() => {
1218
1218
  }, ["prevent"]))
1219
1219
  }, [
1220
- f("div", fi, [
1221
- (m(!0), k(ae, null, Ke(ft.value, (b) => (m(), k(ae, {
1220
+ f("div", fo, [
1221
+ (m(!0), w(ae, null, Ke(ft.value, (b) => (m(), w(ae, {
1222
1222
  key: b.id
1223
1223
  }, [
1224
- a.value.state?.hidden ? (m(), k("div", pi, [
1225
- b.port ? (m(), k("div", {
1224
+ a.value.state?.hidden ? (m(), w("div", po, [
1225
+ b.port ? (m(), w("div", {
1226
1226
  key: 0,
1227
1227
  id: b.id,
1228
1228
  title: b.name,
1229
1229
  class: "baklava-node-interface --output --connected"
1230
1230
  }, [...B[7] || (B[7] = [
1231
1231
  f("div", { class: "__port" }, null, -1)
1232
- ])], 8, mi)) : K("", !0)
1232
+ ])], 8, mo)) : K("", !0)
1233
1233
  ])) : Me(W.$slots, "nodeInterface", {
1234
1234
  key: 1,
1235
1235
  type: "output",
@@ -1244,19 +1244,19 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1244
1244
  ])
1245
1245
  ], 64))), 128))
1246
1246
  ]),
1247
- f("div", vi, [
1248
- (m(!0), k(ae, null, Ke(Ne.value, (b) => (m(), k(ae, {
1247
+ f("div", vo, [
1248
+ (m(!0), w(ae, null, Ke(Ne.value, (b) => (m(), w(ae, {
1249
1249
  key: b.id
1250
1250
  }, [
1251
- a.value.state?.hidden ? (m(), k("div", _i, [
1252
- b.port ? (m(), k("div", {
1251
+ a.value.state?.hidden ? (m(), w("div", _o, [
1252
+ b.port ? (m(), w("div", {
1253
1253
  key: 0,
1254
1254
  id: b.id,
1255
1255
  title: b.name,
1256
1256
  class: "baklava-node-interface --input --connected"
1257
1257
  }, [...B[8] || (B[8] = [
1258
1258
  f("div", { class: "__port" }, null, -1)
1259
- ])], 8, yi)) : K("", !0)
1259
+ ])], 8, yo)) : K("", !0)
1260
1260
  ])) : Me(W.$slots, "nodeInterface", {
1261
1261
  key: 1,
1262
1262
  node: a.value,
@@ -1272,17 +1272,17 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1272
1272
  ], 64))), 128))
1273
1273
  ])
1274
1274
  ], 34)
1275
- ], 46, ui));
1275
+ ], 46, lo));
1276
1276
  }
1277
- }), gi = ["id"], bi = { class: "align-middle" }, pn = /* @__PURE__ */ ce({
1277
+ }), go = ["id"], bo = { 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 = oe(null), o = z(() => t.intf.connectionCount > 0), i = z(() => ({
1285
- "--connected": o.value
1284
+ const t = e, { viewModel: n } = kt(), { hoveredOver: s, temporaryConnection: r } = da(), a = ie(null), i = z(() => t.intf.connectionCount > 0), o = z(() => ({
1285
+ "--connected": i.value
1286
1286
  })), l = () => {
1287
1287
  s(t.intf);
1288
1288
  }, u = () => {
@@ -1290,24 +1290,24 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1290
1290
  }, h = () => {
1291
1291
  a.value && n.value.hooks.renderInterface.execute({ intf: t.intf, el: a.value });
1292
1292
  };
1293
- return xn(h), bs(h), (w, p) => (m(), k("div", {
1293
+ return xn(h), bs(h), (k, p) => (m(), w("div", {
1294
1294
  id: e.intf.id,
1295
1295
  ref_key: "el",
1296
1296
  ref: a,
1297
- class: je(["baklava-node-interface", i.value])
1297
+ class: je(["baklava-node-interface", o.value])
1298
1298
  }, [
1299
- e.intf.port ? (m(), k("div", {
1299
+ e.intf.port ? (m(), w("div", {
1300
1300
  key: 0,
1301
1301
  class: je([{ "--selected": H(r)?.from === e.intf }, "__port"]),
1302
1302
  onPointerover: l,
1303
1303
  onPointerout: u
1304
1304
  }, null, 34)) : K("", !0),
1305
- f("span", bi, [
1306
- Me(w.$slots, "default")
1305
+ f("span", bo, [
1306
+ Me(k.$slots, "default")
1307
1307
  ])
1308
- ], 10, gi));
1308
+ ], 10, go));
1309
1309
  }
1310
- }), wi = ["title"], ki = {
1310
+ }), wo = ["title"], ko = {
1311
1311
  key: 0,
1312
1312
  class: "__label"
1313
1313
  }, mn = /* @__PURE__ */ ce({
@@ -1321,7 +1321,7 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1321
1321
  emits: ["update:modelValue"],
1322
1322
  setup(e, { emit: t }) {
1323
1323
  const n = t;
1324
- return (s, r) => (m(), k("div", {
1324
+ return (s, r) => (m(), w("div", {
1325
1325
  class: je(["baklava-checkbox", { "--checked": e.inversed ? !e.modelValue : e.modelValue, "--disabled": e.disabled }]),
1326
1326
  title: e.name,
1327
1327
  onClick: r[0] || (r[0] = (a) => n("update:modelValue", !e.modelValue))
@@ -1340,28 +1340,28 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1340
1340
  })
1341
1341
  ])
1342
1342
  ], -1)),
1343
- e.name ? (m(), k("div", ki, te(e.name), 1)) : K("", !0)
1344
- ], 10, wi));
1343
+ e.name ? (m(), w("div", ko, te(e.name), 1)) : K("", !0)
1344
+ ], 10, wo));
1345
1345
  }
1346
- }), Mi = { class: "__header" }, Si = { class: "__node-name" }, xi = { class: "__interfaces" }, Oi = { class: "__inputs" }, Ci = { style: { display: "flex" } }, Ti = { class: "__outputs" }, Ni = {
1346
+ }), Mo = { class: "__header" }, So = { class: "__node-name" }, xo = { class: "__interfaces" }, Oo = { class: "__inputs" }, Co = { style: { display: "flex" } }, To = { class: "__outputs" }, No = {
1347
1347
  key: 0,
1348
1348
  class: "__interface"
1349
- }, Di = ["placeholder"], Ii = { style: { display: "flex" } }, Gs = /* @__PURE__ */ ce({
1349
+ }, Do = ["placeholder"], Io = { style: { display: "flex" } }, Gs = /* @__PURE__ */ ce({
1350
1350
  __name: "CodeGraphSidebar",
1351
1351
  setup(e) {
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;
1352
+ const { viewModel: t } = kt(), { graph: n } = Cn(), s = ie(null), r = Sn(t.value.settings.sidebar, "width"), a = z(() => t.value.settings.sidebar.resizable);
1353
+ let i = 0, o = 0;
1354
1354
  const l = z(() => {
1355
1355
  const g = n.value.sidebar.nodeId;
1356
1356
  return n.value.nodes.find(($) => $.id === g);
1357
1357
  }), u = z(() => l.value), h = z(() => ({
1358
1358
  width: `${r.value}px`
1359
- })), w = z(() => u.value ? Object.values(u.value.inputs).filter((g) => g.displayInSidebar && g.component) : []), p = z(() => u.value ? Object.values(u.value.outputs).filter((g) => g.displayInSidebar && g.component) : []), I = () => {
1359
+ })), k = z(() => u.value ? Object.values(u.value.inputs).filter((g) => g.displayInSidebar && g.component) : []), p = z(() => u.value ? Object.values(u.value.outputs).filter((g) => g.displayInSidebar && g.component) : []), I = () => {
1360
1360
  n.value.sidebar.visible = !1;
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
- o = r.value, i = g.clientX, window.addEventListener("mousemove", c), window.addEventListener(
1364
+ i = r.value, o = g.clientX, window.addEventListener("mousemove", c), window.addEventListener(
1365
1365
  "mouseup",
1366
1366
  () => {
1367
1367
  window.removeEventListener("mousemove", c);
@@ -1369,39 +1369,39 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1369
1369
  { once: !0 }
1370
1370
  );
1371
1371
  }, c = (g) => {
1372
- const $ = s.value?.parentElement?.getBoundingClientRect().width ?? 500, A = g.clientX - i;
1373
- let F = o - A;
1372
+ const $ = s.value?.parentElement?.getBoundingClientRect().width ?? 500, A = g.clientX - o;
1373
+ let F = i - A;
1374
1374
  F < 300 ? F = 300 : F > 0.9 * $ && (F = 0.9 * $), r.value = F;
1375
1375
  };
1376
- return (g, $) => (m(), k("div", {
1376
+ return (g, $) => (m(), w("div", {
1377
1377
  class: je([{ "--open": H(n).sidebar.visible }, "baklava-sidebar"]),
1378
1378
  style: On(h.value),
1379
1379
  ref_key: "el",
1380
1380
  ref: s
1381
1381
  }, [
1382
- a.value ? (m(), k("div", {
1382
+ a.value ? (m(), w("div", {
1383
1383
  key: 0,
1384
1384
  class: "__resizer",
1385
1385
  onMousedown: O
1386
1386
  }, null, 32)) : K("", !0),
1387
- l.value ? (m(), k(ae, { key: 1 }, [
1388
- f("div", Mi, [
1387
+ l.value ? (m(), w(ae, { key: 1 }, [
1388
+ f("div", Mo, [
1389
1389
  f("button", {
1390
1390
  tabindex: "-1",
1391
1391
  class: "__close",
1392
1392
  onClick: I
1393
1393
  }, "×"),
1394
- f("div", Si, [
1394
+ f("div", So, [
1395
1395
  f("b", null, te(l.value.title), 1)
1396
1396
  ])
1397
1397
  ]),
1398
- f("div", xi, [
1399
- f("div", Oi, [
1400
- (m(!0), k(ae, null, Ke(w.value, (A) => (m(), k("div", {
1398
+ f("div", xo, [
1399
+ f("div", Oo, [
1400
+ (m(!0), w(ae, null, Ke(k.value, (A) => (m(), w("div", {
1401
1401
  key: A.id,
1402
1402
  class: "__interface"
1403
1403
  }, [
1404
- f("div", Ci, [
1404
+ f("div", Co, [
1405
1405
  X(mn, {
1406
1406
  modelValue: A.hidden,
1407
1407
  "onUpdate:modelValue": [
@@ -1422,8 +1422,8 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1422
1422
  ])
1423
1423
  ]))), 128))
1424
1424
  ]),
1425
- f("div", Ti, [
1426
- u.value && u.value.state ? (m(), k("div", Ni, [
1425
+ f("div", To, [
1426
+ u.value && u.value.state ? (m(), w("div", No, [
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,15 +1433,15 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1433
1433
  title: "Variable name",
1434
1434
  onBlur: y,
1435
1435
  onKeydown: hn(y, ["enter"])
1436
- }, null, 40, Di), [
1436
+ }, null, 40, Do), [
1437
1437
  [jt, u.value.state.variableName]
1438
1438
  ])
1439
1439
  ])) : K("", !0),
1440
- (m(!0), k(ae, null, Ke(p.value, (A) => (m(), k("div", {
1440
+ (m(!0), w(ae, null, Ke(p.value, (A) => (m(), w("div", {
1441
1441
  key: A.id,
1442
1442
  class: "__interface"
1443
1443
  }, [
1444
- f("div", Ii, [
1444
+ f("div", Io, [
1445
1445
  X(mn, {
1446
1446
  modelValue: A.hidden,
1447
1447
  "onUpdate:modelValue": [
@@ -1468,34 +1468,34 @@ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
1468
1468
  ], 6));
1469
1469
  }
1470
1470
  });
1471
- function Yi(e, t) {
1471
+ function Yo(e, t) {
1472
1472
  return Object.fromEntries(Object.entries(e).filter(t));
1473
1473
  }
1474
- function Ei(e, t) {
1474
+ function Eo(e, t) {
1475
1475
  return Object.fromEntries(Object.entries(e).map(([n, s]) => [n, t(s)]));
1476
1476
  }
1477
- const Ri = {
1477
+ const Ro = {
1478
1478
  class: "baklava-node --palette",
1479
1479
  style: { "margin-top": "-20px", "margin-bottom": "20px" }
1480
- }, Pi = {
1480
+ }, Po = {
1481
1481
  key: 0,
1482
1482
  style: { display: "flex", "justify-content": "space-between" }
1483
- }, Li = ["onClick"], Ai = {
1483
+ }, Lo = ["onClick"], Ao = {
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(), o = ha(n), i = oa("editorEl"), l = oe(""), u = oe(null), h = () => l.value ? o.value.filter(
1489
+ const t = fn.PaletteEntry, { viewModel: n } = kt(), { x: s, y: r } = Aa(), { transform: a } = ca(), i = ha(n), o = ia("editorEl"), l = ie(""), u = ie(null), h = () => l.value ? i.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
- ) : o.value, w = (y) => l.value ? Yi(y, (O) => {
1493
+ ) : i.value, k = (y) => l.value ? Yo(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 || !i?.value) return {};
1498
- const { left: y, top: O } = i.value.getBoundingClientRect();
1497
+ if (!u.value || !o?.value) return {};
1498
+ const { left: y, top: O } = o.value.getBoundingClientRect();
1499
1499
  return {
1500
1500
  top: `${r.value - O}px`,
1501
1501
  left: `${s.value - y}px`
@@ -1508,18 +1508,18 @@ const Ri = {
1508
1508
  const c = () => {
1509
1509
  const g = Ae(new O.type());
1510
1510
  n.value.displayedGraph.addNode(g);
1511
- const $ = i.value.getBoundingClientRect(), [A, F] = a(s.value - $.left, r.value - $.top);
1511
+ const $ = o.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);
1515
1515
  };
1516
- return (y, O) => (m(), k(ae, null, [
1516
+ return (y, O) => (m(), w(ae, null, [
1517
1517
  f("div", {
1518
1518
  class: je([{ "--open": H(n).settings.palette.enabled }, "baklava-node-palette"]),
1519
1519
  onContextmenu: O[1] || (O[1] = st(() => {
1520
1520
  }, ["stop", "prevent"]))
1521
1521
  }, [
1522
- f("div", Ri, [
1522
+ f("div", Ro, [
1523
1523
  Vt(f("input", {
1524
1524
  "onUpdate:modelValue": O[0] || (O[0] = (c) => l.value = c),
1525
1525
  type: "text",
@@ -1530,17 +1530,17 @@ const Ri = {
1530
1530
  [jt, l.value]
1531
1531
  ])
1532
1532
  ]),
1533
- (m(!0), k(ae, null, Ke(h(), (c) => (m(), k("section", {
1533
+ (m(!0), w(ae, null, Ke(h(), (c) => (m(), w("section", {
1534
1534
  key: c.name
1535
1535
  }, [
1536
- c.name !== "default" ? (m(), k("h3", Pi, [
1536
+ c.name !== "default" ? (m(), w("h3", Po, [
1537
1537
  f("div", {
1538
1538
  onClick: (g) => l.value = c.name,
1539
1539
  style: { cursor: "pointer" }
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)
1540
+ }, te(c.name), 9, Lo),
1541
+ Object.keys(k(c.nodeTypes)).length < Object.values(c.nodeTypes).length ? (m(), w("div", Ao, " ( " + te(Object.keys(k(c.nodeTypes)).length) + " / " + te(Object.values(c.nodeTypes).length) + " ) ", 1)) : K("", !0)
1542
1542
  ])) : K("", !0),
1543
- (m(!0), k(ae, null, Ke(w(c.nodeTypes), (g, $) => (m(), ue(H(t), {
1543
+ (m(!0), w(ae, null, Ke(k(c.nodeTypes), (g, $) => (m(), ue(H(t), {
1544
1544
  key: $,
1545
1545
  title: g.title,
1546
1546
  type: $,
@@ -1548,9 +1548,9 @@ const Ri = {
1548
1548
  }, null, 8, ["title", "type", "onPointerdown"]))), 128))
1549
1549
  ]))), 128))
1550
1550
  ], 34),
1551
- X(ia, { name: "fade" }, {
1551
+ X(oa, { name: "fade" }, {
1552
1552
  default: Ye(() => [
1553
- u.value ? (m(), k("div", {
1553
+ u.value ? (m(), w("div", {
1554
1554
  key: 0,
1555
1555
  class: "baklava-dragged-node",
1556
1556
  style: On(p.value)
@@ -1565,23 +1565,23 @@ const Ri = {
1565
1565
  })
1566
1566
  ], 64));
1567
1567
  }
1568
- }), Ui = {}, $i = { class: "prependIcon" }, Wi = { class: "appendIcon" };
1569
- function Hi(e, t) {
1568
+ }), Uo = {}, $o = { class: "prependIcon" }, Wo = { class: "appendIcon" };
1569
+ function Ho(e, t) {
1570
1570
  const n = _s("router-link");
1571
1571
  return m(), ue(n, { class: "navItem" }, {
1572
1572
  default: Ye(() => [
1573
- f("span", $i, [
1573
+ f("span", $o, [
1574
1574
  Me(e.$slots, "prependIcon")
1575
1575
  ]),
1576
1576
  Me(e.$slots, "default"),
1577
- f("span", Wi, [
1577
+ f("span", Wo, [
1578
1578
  Me(e.$slots, "appendIcon")
1579
1579
  ])
1580
1580
  ]),
1581
1581
  _: 3
1582
1582
  });
1583
1583
  }
1584
- const vn = /* @__PURE__ */ q(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi = ["onClick"], Vi = /* @__PURE__ */ ce({
1584
+ const vn = /* @__PURE__ */ q(Uo, [["render", Ho]]), Fo = { class: "navbar" }, Go = ["onClick"], Vo = /* @__PURE__ */ ce({
1585
1585
  __name: "NavBar",
1586
1586
  props: {
1587
1587
  viewModel: {},
@@ -1593,23 +1593,23 @@ const vn = /* @__PURE__ */ q(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi
1593
1593
  const n = t, s = (r) => {
1594
1594
  n("click:remove", r);
1595
1595
  };
1596
- return (r, a) => (m(), k("nav", Fi, [
1596
+ return (r, a) => (m(), w("nav", Fo, [
1597
1597
  Me(r.$slots, "prepend"),
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 } }
1598
+ (m(!0), w(ae, null, Ke(e.editorStates, (i) => (m(), ue(vn, {
1599
+ key: i.graph.id,
1600
+ class: je({ active: i.graph.id === e.viewModel.displayedGraph.id }),
1601
+ to: { name: e.routes?.edit ?? "edit", params: { editorId: i.graph.id } }
1602
1602
  }, {
1603
1603
  appendIcon: Ye(() => [
1604
1604
  f("button", {
1605
1605
  class: "remove",
1606
- onClick: st((i) => s(o.graph.id), ["prevent"])
1606
+ onClick: st((o) => s(i.graph.id), ["prevent"])
1607
1607
  }, [
1608
1608
  X(H(Ws))
1609
- ], 8, Gi)
1609
+ ], 8, Go)
1610
1610
  ]),
1611
1611
  default: Ye(() => [
1612
- ws(te(o.graph.id.slice(0, 6)) + " ", 1)
1612
+ ws(te(i.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(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi
1626
1626
  ])
1627
1627
  ]));
1628
1628
  }
1629
- }), ji = ce({
1629
+ }), jo = ce({
1630
1630
  props: {
1631
1631
  intf: {
1632
1632
  type: Object,
@@ -1646,32 +1646,32 @@ const vn = /* @__PURE__ */ q(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi
1646
1646
  }
1647
1647
  }) };
1648
1648
  }
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),
1649
+ }), zo = { style: { position: "relative" } }, Bo = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-8px", "background-color": "var(--baklava-node-color-background)" } }, Zo = ["placeholder", "title"];
1650
+ function qo(e, t, n, s, r, a) {
1651
+ return m(), w("div", zo, [
1652
+ f("label", Bo, te(e.intf.name), 1),
1653
1653
  Vt(f("input", {
1654
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.v = o),
1654
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => e.v = i),
1655
1655
  type: "text",
1656
1656
  class: "baklava-input",
1657
1657
  placeholder: e.intf.name,
1658
1658
  title: e.intf.name
1659
- }, null, 8, Zi), [
1659
+ }, null, 8, Zo), [
1660
1660
  [jt, e.v]
1661
1661
  ])
1662
1662
  ]);
1663
1663
  }
1664
- const js = /* @__PURE__ */ q(ji, [["render", qi]]), Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1664
+ const js = /* @__PURE__ */ q(jo, [["render", qo]]), Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1665
1665
  __proto__: null,
1666
- CodeEditor: ai,
1667
- CodeGraphEditor: oi,
1668
- CodeGraphInfo: li,
1666
+ CodeEditor: ro,
1667
+ CodeGraphEditor: ao,
1668
+ CodeGraphInfo: oo,
1669
1669
  CodeGraphNode: Fs,
1670
1670
  CodeGraphNodeInterface: pn,
1671
1671
  CodeGraphSidebar: Gs,
1672
1672
  CodeNodePalette: Vs,
1673
1673
  CopyToClipboard: Hs,
1674
- NavBar: Vi,
1674
+ NavBar: Vo,
1675
1675
  NavItem: vn,
1676
1676
  SidebarCheckbox: mn,
1677
1677
  TextInputInterface: js
@@ -1697,7 +1697,7 @@ class zs extends Ia {
1697
1697
  script: "",
1698
1698
  variableName: ""
1699
1699
  }), this.codeTemplate = function() {
1700
- return `${this.name}(${Ki(this.codeNodeInputs).join(", ")})`;
1700
+ return `${this.name}(${Ko(this.codeNodeInputs).join(", ")})`;
1701
1701
  };
1702
1702
  }
1703
1703
  get code() {
@@ -1825,7 +1825,7 @@ class zs extends Ia {
1825
1825
  * Render code of this node.
1826
1826
  */
1827
1827
  renderCode(t) {
1828
- return ut.render(this.state.codeTemplate, t);
1828
+ return Object.keys(t.inputs).filter((n) => Array.isArray(t.inputs[n])).forEach((n) => t.inputs[n] = `[${t.inputs[n].join(",")}]`), ut.render(this.state.codeTemplate, t);
1829
1829
  }
1830
1830
  /**
1831
1831
  * Update code templates.
@@ -1902,14 +1902,14 @@ class Dn extends zs {
1902
1902
  super.load(t), this.afterLoaded();
1903
1903
  }
1904
1904
  }
1905
- const Ki = (e, t = !0) => {
1905
+ const Ko = (e, t = !0) => {
1906
1906
  const n = [], s = Object.keys(e);
1907
1907
  return s.forEach((r) => {
1908
1908
  if (e[r]?.hidden) return;
1909
- const o = t && n.length < s.indexOf(r) ? `${r}=` : "";
1910
- n.push(`${o}{{ inputs.${r} }}`);
1909
+ const i = t && n.length < s.indexOf(r) ? `${r}=` : "";
1910
+ n.push(`${i}{{ inputs.${r} }}`);
1911
1911
  }), n;
1912
- }, Xi = (e, t) => {
1912
+ }, Xo = (e, t) => {
1913
1913
  switch (e) {
1914
1914
  case "CheckBoxInterface":
1915
1915
  return new el(t.id, t.value);
@@ -1932,18 +1932,18 @@ const Ki = (e, t = !0) => {
1932
1932
  default:
1933
1933
  return new Qs(t.id, t.value);
1934
1934
  }
1935
- }, Ji = ["title"], In = /* @__PURE__ */ ce({
1935
+ }, Jo = ["title"], In = /* @__PURE__ */ ce({
1936
1936
  __name: "CodeNodeInterface",
1937
1937
  props: {
1938
1938
  intf: {}
1939
1939
  },
1940
1940
  setup(e) {
1941
- return (t, n) => (m(), k("div", {
1941
+ return (t, n) => (m(), w("div", {
1942
1942
  title: e.intf.value
1943
- }, te(e.intf.name), 9, Ji));
1943
+ }, te(e.intf.name), 9, Jo));
1944
1944
  }
1945
1945
  });
1946
- class ie extends Se {
1946
+ class oe extends Se {
1947
1947
  isCodeNode = !0;
1948
1948
  code;
1949
1949
  state;
@@ -1976,7 +1976,7 @@ class ie extends Se {
1976
1976
  return this.state.optional = t, this.setHidden(t), this;
1977
1977
  }
1978
1978
  }
1979
- class Mt extends ie {
1979
+ class Mt extends oe {
1980
1980
  constructor(t = "", n) {
1981
1981
  super(t, n), this.setComponent(he(In)), this.use(Ms, !0);
1982
1982
  }
@@ -1987,8 +1987,8 @@ class Mt extends ie {
1987
1987
  super.value = t, this.name !== "_code" && this.setHidden(!1);
1988
1988
  }
1989
1989
  }
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
+ const Bs = new Je("boolean"), Qo = 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, Qo, Zs, _e, qs, Ks, Xs);
1992
1992
  };
1993
1993
  class el extends Mt {
1994
1994
  constructor(t, n) {
@@ -1996,7 +1996,7 @@ class el extends Mt {
1996
1996
  }
1997
1997
  getValue = () => this.value ? "True" : "False";
1998
1998
  }
1999
- class tl extends ie {
1999
+ class tl extends oe {
2000
2000
  isCodeNodeOutput = !0;
2001
2001
  suffix = "";
2002
2002
  constructor(t = "", n = "") {
@@ -2077,10 +2077,10 @@ function Wh(e) {
2077
2077
  constructor() {
2078
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(
2079
2079
  "_code",
2080
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2080
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2081
2081
  ), this.addOutput(
2082
2082
  "_code",
2083
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2083
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2084
2084
  );
2085
2085
  }
2086
2086
  afterGraphLoaded() {
@@ -2122,10 +2122,10 @@ function Hh(e) {
2122
2122
  constructor() {
2123
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(
2124
2124
  "_code",
2125
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2125
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2126
2126
  ), this.addOutput(
2127
2127
  "_code",
2128
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2128
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2129
2129
  ), this.staticInputKeys.push("_code"), this.staticOutputKeys.push("_code");
2130
2130
  }
2131
2131
  afterGraphLoaded() {
@@ -2166,7 +2166,7 @@ function Hh(e) {
2166
2166
  if (!this.inputs[n]) {
2167
2167
  const s = t.inputs[n], r = s.value;
2168
2168
  let 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);
2169
+ s.component ? a = Xo(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);
2170
2170
  }
2171
2171
  this.inputs[n] && (this.inputs[n].load(t.inputs[n]), this.inputs[n].nodeId = this.id);
2172
2172
  }
@@ -2197,12 +2197,12 @@ function Hh(e) {
2197
2197
  }
2198
2198
  updateInterfaces(t, n = {}, s = []) {
2199
2199
  const r = t === "input" ? this.staticInputKeys : this.staticOutputKeys, a = t === "input" ? this.inputs : this.outputs;
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);
2200
+ for (const i of Object.keys(a))
2201
+ r.includes(i) || n[i] && !s.includes(i) || (t === "input" ? this.removeInput(i) : this.removeOutput(i));
2202
+ for (const i of Object.keys(n)) {
2203
+ if (a[i]) continue;
2204
+ const o = n[i]();
2205
+ t === "input" ? this.addInput(i, o) : this.addOutput(i, o);
2206
2206
  }
2207
2207
  }
2208
2208
  updateProps(t) {
@@ -2307,34 +2307,34 @@ class al extends $a {
2307
2307
  }
2308
2308
  async runGraph(t, n, s) {
2309
2309
  this.order.has(t.id) || this.order.set(t.id, Wa(t));
2310
- const { calculationOrder: r, connectionsFromNode: a } = this.order.get(t.id), o = /* @__PURE__ */ new Map();
2311
- for (const i of r) {
2310
+ const { calculationOrder: r, connectionsFromNode: a } = this.order.get(t.id), i = /* @__PURE__ */ new Map();
2311
+ for (const o of r) {
2312
2312
  const l = {};
2313
- Object.entries(i.inputs).forEach(([h, w]) => {
2314
- l[h] = this.getInterfaceValue(n, w.id);
2315
- }), i.isCodeNode && (i.updateCodeTemplate(), i.updateOutputNames()), this.events.beforeNodeCalculation.emit({ inputValues: l, node: i });
2313
+ Object.entries(o.inputs).forEach(([h, k]) => {
2314
+ l[h] = this.getInterfaceValue(n, k.id);
2315
+ }), o.isCodeNode && (o.updateCodeTemplate(), o.updateOutputNames()), this.events.beforeNodeCalculation.emit({ inputValues: l, node: o });
2316
2316
  let u;
2317
- if (i.calculate) {
2318
- if (u = await i.calculate(l, { globalValues: s, engine: this }), a.has(i))
2319
- for (const [h, w] of Object.entries(u))
2320
- this.hooks.transferData.execute(u[h], w), a.get(i).forEach((p) => n.set(p.to.id, w));
2317
+ if (o.calculate) {
2318
+ if (u = await o.calculate(l, { globalValues: s, engine: this }), a.has(o))
2319
+ for (const [h, k] of Object.entries(u))
2320
+ this.hooks.transferData.execute(u[h], k);
2321
2321
  } else {
2322
2322
  u = {};
2323
- for (const [h, w] of Object.entries(i.outputs))
2324
- u[h] = this.getInterfaceValue(n, w.id);
2323
+ for (const [h, k] of Object.entries(o.outputs))
2324
+ u[h] = this.getInterfaceValue(n, k.id);
2325
2325
  }
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];
2328
- if (!w)
2326
+ this.events.afterNodeCalculation.emit({ outputValues: u, node: o }), i.set(o.id, new Map(Object.entries(u))), a.has(o) && a.get(o).forEach((h) => {
2327
+ const k = Object.entries(o.outputs).find(([, I]) => I.id === h.from.id)?.[0];
2328
+ if (!k)
2329
2329
  throw new Error(
2330
2330
  `Could not find key for interface ${h.from.id}
2331
2331
  This is likely an internal issue. Please report it on GitHub.`
2332
2332
  );
2333
- const p = this.hooks.transferData.execute(u[w], h);
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
+ const p = this.hooks.transferData.execute(u[k], h);
2334
+ k !== "_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));
2335
2335
  });
2336
2336
  }
2337
- return o;
2337
+ return i;
2338
2338
  }
2339
2339
  async execute(t) {
2340
2340
  this.recalculateOrder && (this.order.clear(), this.recalculateOrder = !1);
@@ -2367,7 +2367,7 @@ var er;
2367
2367
  function v() {
2368
2368
  return er.apply(null, arguments);
2369
2369
  }
2370
- function ol(e) {
2370
+ function il(e) {
2371
2371
  er = e;
2372
2372
  }
2373
2373
  function ye(e) {
@@ -2411,7 +2411,7 @@ function Fe(e, t) {
2411
2411
  function Oe(e, t, n, s) {
2412
2412
  return Sr(e, t, n, s, !0).utc();
2413
2413
  }
2414
- function il() {
2414
+ function ol() {
2415
2415
  return {
2416
2416
  empty: !1,
2417
2417
  unusedTokens: [],
@@ -2432,7 +2432,7 @@ function il() {
2432
2432
  };
2433
2433
  }
2434
2434
  function N(e) {
2435
- return e._pf == null && (e._pf = il()), e._pf;
2435
+ return e._pf == null && (e._pf = ol()), e._pf;
2436
2436
  }
2437
2437
  var _n;
2438
2438
  Array.prototype.some ? _n = Array.prototype.some : _n = function(e) {
@@ -2477,13 +2477,13 @@ function fe(e, t) {
2477
2477
  var n = !0;
2478
2478
  return Fe(function() {
2479
2479
  if (v.deprecationHandler != null && v.deprecationHandler(null, e), n) {
2480
- var s = [], r, a, o, i = arguments.length;
2481
- for (a = 0; a < i; a++) {
2480
+ var s = [], r, a, i, o = arguments.length;
2481
+ for (a = 0; a < o; a++) {
2482
2482
  if (r = "", typeof arguments[a] == "object") {
2483
2483
  r += `
2484
2484
  [` + a + "] ";
2485
- for (o in arguments[0])
2486
- P(arguments[0], o) && (r += o + ": " + arguments[0][o] + ", ");
2485
+ for (i in arguments[0])
2486
+ P(arguments[0], i) && (r += i + ": " + arguments[0][i] + ", ");
2487
2487
  r = r.slice(0, -2);
2488
2488
  } else
2489
2489
  r = arguments[a];
@@ -2571,9 +2571,9 @@ function hl(e) {
2571
2571
  for (n = 0, s = t.length; n < s; n++)
2572
2572
  at[t[n]] ? t[n] = at[t[n]] : t[n] = cl(t[n]);
2573
2573
  return function(r) {
2574
- var a = "", o;
2575
- for (o = 0; o < s; o++)
2576
- a += Ce(t[o]) ? t[o].call(r, e) : t[o];
2574
+ var a = "", i;
2575
+ for (i = 0; i < s; i++)
2576
+ a += Ce(t[i]) ? t[i].call(r, e) : t[i];
2577
2577
  return a;
2578
2578
  };
2579
2579
  }
@@ -2725,7 +2725,7 @@ function Sl(e) {
2725
2725
  return s.priority - r.priority;
2726
2726
  }), t;
2727
2727
  }
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;
2728
+ var ar = /\d/, le = /\d\d/, ir = /\d{3}/, Hn = /\d{4}/, Bt = /[+-]?\d{6}/, V = /\d\d?/, or = /\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;
2729
2729
  Ut = {};
2730
2730
  function _(e, t, n) {
2731
2731
  Ut[e] = Ce(t) ? t : function(s, r) {
@@ -2758,8 +2758,8 @@ function Y(e) {
2758
2758
  var bn = {};
2759
2759
  function U(e, t) {
2760
2760
  var n, s = t, r;
2761
- for (typeof e == "string" && (e = [e]), Ue(t) && (s = function(a, o) {
2762
- o[t] = Y(a);
2761
+ for (typeof e == "string" && (e = [e]), Ue(t) && (s = function(a, i) {
2762
+ i[t] = Y(a);
2763
2763
  }), r = e.length, n = 0; n < r; n++)
2764
2764
  bn[e[n]] = s;
2765
2765
  }
@@ -2841,7 +2841,7 @@ function yt(e, t) {
2841
2841
  }
2842
2842
  }
2843
2843
  function dr(e, t, n) {
2844
- var s, r, a, o, i;
2844
+ var s, r, a, i, o;
2845
2845
  if (!(!e.isValid() || isNaN(n))) {
2846
2846
  switch (s = e._d, r = e._isUTC, t) {
2847
2847
  case "Milliseconds":
@@ -2864,7 +2864,7 @@ function dr(e, t, n) {
2864
2864
  default:
2865
2865
  return;
2866
2866
  }
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);
2867
+ a = n, i = e.month(), o = e.date(), o = o === 29 && i === 1 && !Jt(a) ? 28 : o, r ? s.setUTCFullYear(a, i, o) : s.setFullYear(a, i, o);
2868
2868
  }
2869
2869
  }
2870
2870
  function El(e) {
@@ -2931,14 +2931,14 @@ function Wl(e, t) {
2931
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;
2932
2932
  }
2933
2933
  function Hl(e, t, n) {
2934
- var s, r, a, o = e.toLocaleLowerCase();
2934
+ var s, r, a, i = e.toLocaleLowerCase();
2935
2935
  if (!this._monthsParse)
2936
2936
  for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
2937
2937
  a = Oe([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(
2938
2938
  a,
2939
2939
  ""
2940
2940
  ).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(a, "").toLocaleLowerCase();
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));
2941
+ return n ? t === "MMM" ? (r = Z.call(this._shortMonthsParse, i), r !== -1 ? r : null) : (r = Z.call(this._longMonthsParse, i), r !== -1 ? r : null) : t === "MMM" ? (r = Z.call(this._shortMonthsParse, i), r !== -1 ? r : (r = Z.call(this._longMonthsParse, i), r !== -1 ? r : null)) : (r = Z.call(this._longMonthsParse, i), r !== -1 ? r : (r = Z.call(this._shortMonthsParse, i), r !== -1 ? r : null));
2942
2942
  }
2943
2943
  function Fl(e, t, n) {
2944
2944
  var s, r, a;
@@ -2987,9 +2987,9 @@ function mr() {
2987
2987
  function e(l, u) {
2988
2988
  return u.length - l.length;
2989
2989
  }
2990
- var t = [], n = [], s = [], r, a, o, i;
2990
+ var t = [], n = [], s = [], r, a, i, o;
2991
2991
  for (r = 0; r < 12; 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);
2992
+ a = Oe([2e3, r]), i = Pe(this.monthsShort(a, "")), o = Pe(this.months(a, "")), t.push(i), n.push(o), s.push(o), s.push(i);
2993
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(
2994
2994
  "^(" + n.join("|") + ")",
2995
2995
  "i"
@@ -2998,9 +2998,9 @@ function mr() {
2998
2998
  "i"
2999
2999
  );
3000
3000
  }
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;
3001
+ function zl(e, t, n, s, r, a, i) {
3002
+ var o;
3003
+ return e < 100 && e >= 0 ? (o = new Date(e + 400, t, n, s, r, a, i), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, n, s, r, a, i), o;
3004
3004
  }
3005
3005
  function gt(e) {
3006
3006
  var t, n;
@@ -3011,17 +3011,17 @@ function $t(e, t, n) {
3011
3011
  return -r + s - 1;
3012
3012
  }
3013
3013
  function vr(e, t, n, s, r) {
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
+ var a = (7 + n - s) % 7, i = $t(e, s, r), o = 1 + 7 * (t - 1) + a + i, l, u;
3015
+ return o <= 0 ? (l = e - 1, u = _t(l) + o) : o > _t(e) ? (l = e + 1, u = o - _t(e)) : (l = e, u = o), {
3016
3016
  year: l,
3017
3017
  dayOfYear: u
3018
3018
  };
3019
3019
  }
3020
3020
  function bt(e, t, n) {
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
+ var s = $t(e.year(), t, n), r = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, a, i;
3022
+ return r < 1 ? (i = e.year() - 1, a = r + Le(i, t, n)) : r > Le(e.year(), t, n) ? (a = r - Le(e.year(), t, n), i = e.year() + 1) : (i = e.year(), a = r), {
3023
3023
  week: a,
3024
- year: o
3024
+ year: i
3025
3025
  };
3026
3026
  }
3027
3027
  function Le(e, t, n) {
@@ -3104,18 +3104,18 @@ function jn(e, t) {
3104
3104
  return e.slice(t, 7).concat(e.slice(0, t));
3105
3105
  }
3106
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;
3107
- function ou(e, t) {
3107
+ function iu(e, t) {
3108
3108
  var n = ye(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
3109
3109
  return e === !0 ? jn(n, this._week.dow) : e ? n[e.day()] : n;
3110
3110
  }
3111
- function iu(e) {
3111
+ function ou(e) {
3112
3112
  return e === !0 ? jn(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
3113
3113
  }
3114
3114
  function lu(e) {
3115
3115
  return e === !0 ? jn(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
3116
3116
  }
3117
3117
  function uu(e, t, n) {
3118
- var s, r, a, o = e.toLocaleLowerCase();
3118
+ var s, r, a, i = e.toLocaleLowerCase();
3119
3119
  if (!this._weekdaysParse)
3120
3120
  for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
3121
3121
  a = Oe([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(
@@ -3125,7 +3125,7 @@ function uu(e, t, n) {
3125
3125
  a,
3126
3126
  ""
3127
3127
  ).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(a, "").toLocaleLowerCase();
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));
3128
+ return n ? t === "dddd" ? (r = Z.call(this._weekdaysParse, i), r !== -1 ? r : null) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, i), r !== -1 ? r : null) : (r = Z.call(this._minWeekdaysParse, i), r !== -1 ? r : null) : t === "dddd" ? (r = Z.call(this._weekdaysParse, i), r !== -1 || (r = Z.call(this._shortWeekdaysParse, i), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, i), r !== -1 ? r : null)) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, i), r !== -1 || (r = Z.call(this._weekdaysParse, i), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, i), r !== -1 ? r : null)) : (r = Z.call(this._minWeekdaysParse, i), r !== -1 || (r = Z.call(this._weekdaysParse, i), r !== -1) ? r : (r = Z.call(this._shortWeekdaysParse, i), r !== -1 ? r : null));
3129
3129
  }
3130
3130
  function du(e, t, n) {
3131
3131
  var s, r, a;
@@ -3182,12 +3182,12 @@ function vu(e) {
3182
3182
  return this._weekdaysParseExact ? (P(this, "_weekdaysRegex") || zn.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (P(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = au), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
3183
3183
  }
3184
3184
  function zn() {
3185
- function e(h, w) {
3186
- return w.length - h.length;
3185
+ function e(h, k) {
3186
+ return k.length - h.length;
3187
3187
  }
3188
- var t = [], n = [], s = [], r = [], a, o, i, l, u;
3188
+ var t = [], n = [], s = [], r = [], a, i, o, l, u;
3189
3189
  for (a = 0; a < 7; a++)
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);
3190
+ i = Oe([2e3, 1]).day(a), o = Pe(this.weekdaysMin(i, "")), l = Pe(this.weekdaysShort(i, "")), u = Pe(this.weekdays(i, "")), t.push(o), n.push(l), s.push(u), r.push(o), r.push(l), r.push(u);
3191
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(
3192
3192
  "^(" + s.join("|") + ")",
3193
3193
  "i"
@@ -3242,9 +3242,9 @@ _("k", V, ct);
3242
3242
  _("HH", V, le);
3243
3243
  _("hh", V, le);
3244
3244
  _("kk", V, le);
3245
- _("hmm", ir);
3245
+ _("hmm", or);
3246
3246
  _("hmmss", lr);
3247
- _("Hmm", ir);
3247
+ _("Hmm", or);
3248
3248
  _("Hmmss", lr);
3249
3249
  U(["H", "HH"], J);
3250
3250
  U(["k", "kk"], function(e, t, n) {
@@ -3424,29 +3424,29 @@ var Cu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
3424
3424
  PST: -480
3425
3425
  };
3426
3426
  function wr(e) {
3427
- var t, n, s = e._i, r = Cu.exec(s) || Tu.exec(s), a, o, i, l, u = Et.length, h = dn.length;
3427
+ var t, n, s = e._i, r = Cu.exec(s) || Tu.exec(s), a, i, o, l, u = Et.length, h = dn.length;
3428
3428
  if (r) {
3429
3429
  for (N(e).iso = !0, t = 0, n = u; t < n; t++)
3430
3430
  if (Et[t][1].exec(r[1])) {
3431
- o = Et[t][0], a = Et[t][2] !== !1;
3431
+ i = Et[t][0], a = Et[t][2] !== !1;
3432
3432
  break;
3433
3433
  }
3434
- if (o == null) {
3434
+ if (i == null) {
3435
3435
  e._isValid = !1;
3436
3436
  return;
3437
3437
  }
3438
3438
  if (r[3]) {
3439
3439
  for (t = 0, n = h; t < n; t++)
3440
3440
  if (dn[t][1].exec(r[3])) {
3441
- i = (r[2] || " ") + dn[t][0];
3441
+ o = (r[2] || " ") + dn[t][0];
3442
3442
  break;
3443
3443
  }
3444
- if (i == null) {
3444
+ if (o == null) {
3445
3445
  e._isValid = !1;
3446
3446
  return;
3447
3447
  }
3448
3448
  }
3449
- if (!a && i != null) {
3449
+ if (!a && o != null) {
3450
3450
  e._isValid = !1;
3451
3451
  return;
3452
3452
  }
@@ -3457,19 +3457,19 @@ function wr(e) {
3457
3457
  e._isValid = !1;
3458
3458
  return;
3459
3459
  }
3460
- e._f = o + (i || "") + (l || ""), Xn(e);
3460
+ e._f = i + (o || "") + (l || ""), Xn(e);
3461
3461
  } else
3462
3462
  e._isValid = !1;
3463
3463
  }
3464
3464
  function Eu(e, t, n, s, r, a) {
3465
- var o = [
3465
+ var i = [
3466
3466
  Ru(e),
3467
3467
  cr.indexOf(t),
3468
3468
  parseInt(n, 10),
3469
3469
  parseInt(s, 10),
3470
3470
  parseInt(r, 10)
3471
3471
  ];
3472
- return a && o.push(parseInt(a, 10)), o;
3472
+ return a && i.push(parseInt(a, 10)), i;
3473
3473
  }
3474
3474
  function Ru(e) {
3475
3475
  var t = parseInt(e, 10);
@@ -3548,9 +3548,9 @@ function $u(e) {
3548
3548
  ] : [t.getFullYear(), t.getMonth(), t.getDate()];
3549
3549
  }
3550
3550
  function Kn(e) {
3551
- var t, n, s = [], r, a, o;
3551
+ var t, n, s = [], r, a, i;
3552
3552
  if (!e._d) {
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)
3553
+ for (r = $u(e), e._w && e._a[ke] == null && e._a[Ee] == null && Wu(e), e._dayOfYear != null && (i = nt(e._a[ee], r[ee]), (e._dayOfYear > _t(i) || e._dayOfYear === 0) && (N(e)._overflowDayOfYear = !0), n = gt(i, 0, e._dayOfYear), e._a[Ee] = n.getUTCMonth(), e._a[ke] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
3554
3554
  e._a[t] = s[t] = r[t];
3555
3555
  for (; t < 7; t++)
3556
3556
  e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
@@ -3561,12 +3561,12 @@ function Kn(e) {
3561
3561
  }
3562
3562
  }
3563
3563
  function Wu(e) {
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
+ var t, n, s, r, a, i, o, l, u;
3565
+ t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, i = 4, n = nt(
3566
3566
  t.GG,
3567
3567
  e._a[ee],
3568
3568
  bt(G(), 1, 4).year
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);
3569
+ ), s = nt(t.W, 1), r = nt(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow, i = e._locale._week.doy, u = bt(G(), a, i), 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, i) ? N(e)._overflowWeeks = !0 : l != null ? N(e)._overflowWeekday = !0 : (o = vr(n, s, r, a, i), e._a[ee] = o.year, e._dayOfYear = o.dayOfYear);
3570
3570
  }
3571
3571
  v.ISO_8601 = function() {
3572
3572
  };
@@ -3582,12 +3582,12 @@ function Xn(e) {
3582
3582
  return;
3583
3583
  }
3584
3584
  e._a = [], N(e).empty = !0;
3585
- var t = "" + e._i, n, s, r, a, o, i = t.length, l = 0, u, h;
3585
+ var t = "" + e._i, n, s, r, a, i, o = t.length, l = 0, u, h;
3586
3586
  for (r = rr(e._f, e._locale).match($n) || [], h = r.length, n = 0; n < h; n++)
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(
3587
+ a = r[n], s = (t.match(Cl(a, e)) || [])[0], s && (i = t.substr(0, t.indexOf(s)), i.length > 0 && N(e).unusedInput.push(i), t = t.slice(
3588
3588
  t.indexOf(s) + s.length
3589
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(
3590
+ N(e).charsLeftOver = o - 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(
3591
3591
  e._locale,
3592
3592
  e._a[J],
3593
3593
  e._meridiem
@@ -3598,13 +3598,13 @@ function Hu(e, t, n) {
3598
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);
3599
3599
  }
3600
3600
  function Fu(e) {
3601
- var t, n, s, r, a, o, i = !1, l = e._f.length;
3601
+ var t, n, s, r, a, i, o = !1, l = e._f.length;
3602
3602
  if (l === 0) {
3603
3603
  N(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
3604
3604
  return;
3605
3605
  }
3606
3606
  for (r = 0; r < l; r++)
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));
3607
+ a = 0, i = !1, t = An({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[r], Xn(t), Ln(t) && (i = !0), a += N(t).charsLeftOver, a += N(t).unusedTokens.length * 10, N(t).score = a, o ? a < s && (s = a, n = t) : (s == null || a < s || i) && (s = a, n = t, i && (o = !0));
3608
3608
  Fe(e, n || t);
3609
3609
  }
3610
3610
  function Gu(e) {
@@ -3701,10 +3701,10 @@ function Qu() {
3701
3701
  return be(NaN);
3702
3702
  }
3703
3703
  function en(e) {
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;
3704
+ var t = Wn(e), n = t.year || 0, s = t.quarter || 0, r = t.month || 0, a = t.week || t.isoWeek || 0, i = t.day || 0, o = t.hour || 0, l = t.minute || 0, u = t.second || 0, h = t.millisecond || 0;
3705
3705
  this._isValid = Xu(t), this._milliseconds = +h + u * 1e3 + // 1000
3706
3706
  l * 6e4 + // 1000 * 60
3707
- i * 1e3 * 60 * 60, this._days = +o + a * 7, this._months = +r + s * 3 + n * 12, this._data = {}, this._locale = $e(), this._bubble();
3707
+ o * 1e3 * 60 * 60, this._days = +i + a * 7, this._months = +r + s * 3 + n * 12, this._data = {}, this._locale = $e(), this._bubble();
3708
3708
  }
3709
3709
  function Lt(e) {
3710
3710
  return e instanceof en;
@@ -3713,9 +3713,9 @@ function wn(e) {
3713
3713
  return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
3714
3714
  }
3715
3715
  function ed(e, t, n) {
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++;
3716
+ var s = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), a = 0, i;
3717
+ for (i = 0; i < s; i++)
3718
+ Y(e[i]) !== Y(t[i]) && a++;
3719
3719
  return a + r;
3720
3720
  }
3721
3721
  function Or(e, t) {
@@ -3772,7 +3772,7 @@ function rd(e) {
3772
3772
  function ad(e) {
3773
3773
  return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(kn(this), "m")), this;
3774
3774
  }
3775
- function od() {
3775
+ function id() {
3776
3776
  if (this._tzm != null)
3777
3777
  this.utcOffset(this._tzm, !1, !0);
3778
3778
  else if (typeof this._i == "string") {
@@ -3781,7 +3781,7 @@ function od() {
3781
3781
  }
3782
3782
  return this;
3783
3783
  }
3784
- function id(e) {
3784
+ function od(e) {
3785
3785
  return this.isValid() ? (e = e ? G(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
3786
3786
  }
3787
3787
  function ld() {
@@ -3804,7 +3804,7 @@ function Cr() {
3804
3804
  }
3805
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)?)?$/;
3806
3806
  function be(e, t) {
3807
- var n = e, s = null, r, a, o;
3807
+ var n = e, s = null, r, a, i;
3808
3808
  return Lt(e) ? n = {
3809
3809
  ms: e._milliseconds,
3810
3810
  d: e._days,
@@ -3825,10 +3825,10 @@ function be(e, t) {
3825
3825
  h: Be(s[6], r),
3826
3826
  m: Be(s[7], r),
3827
3827
  s: Be(s[8], r)
3828
- }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (o = pd(
3828
+ }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (i = pd(
3829
3829
  G(n.from),
3830
3830
  G(n.to)
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;
3831
+ ), n = {}, n.ms = i.milliseconds, n.M = i.months), a = new en(n), Lt(e) && P(e, "_locale") && (a._locale = e._locale), Lt(e) && P(e, "_isValid") && (a._isValid = e._isValid), a;
3832
3832
  }
3833
3833
  be.fn = en.prototype;
3834
3834
  be.invalid = Qu;
@@ -3854,8 +3854,8 @@ function Tr(e, t) {
3854
3854
  };
3855
3855
  }
3856
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
+ var r = t._milliseconds, a = wn(t._days), i = wn(t._months);
3858
+ e.isValid() && (s = s ?? !0, i && fr(e, yt(e, "Month") + i * n), a && dr(e, "Date", yt(e, "Date") + a * n), r && e._d.setTime(e._d.valueOf() + r * n), s && v.updateOffset(e, a || i));
3859
3859
  }
3860
3860
  var md = Tr(1, "add"), vd = Tr(-1, "subtract");
3861
3861
  function Dr(e) {
@@ -3890,8 +3890,8 @@ function yd(e) {
3890
3890
  "milliseconds",
3891
3891
  "millisecond",
3892
3892
  "ms"
3893
- ], r, a, o = s.length;
3894
- for (r = 0; r < o; r += 1)
3893
+ ], r, a, i = s.length;
3894
+ for (r = 0; r < i; r += 1)
3895
3895
  a = s[r], n = n || P(e, a);
3896
3896
  return t && n;
3897
3897
  }
@@ -4050,8 +4050,8 @@ var Yr = fe(
4050
4050
  function Er() {
4051
4051
  return this._locale;
4052
4052
  }
4053
- var Wt = 1e3, ot = 60 * Wt, Ht = 60 * ot, Rr = (365 * 400 + 97) * 24 * Ht;
4054
- function it(e, t) {
4053
+ var Wt = 1e3, it = 60 * Wt, Ht = 60 * it, Rr = (365 * 400 + 97) * 24 * Ht;
4054
+ function ot(e, t) {
4055
4055
  return (e % t + t) % t;
4056
4056
  }
4057
4057
  function Pr(e, t, n) {
@@ -4097,16 +4097,16 @@ function $d(e) {
4097
4097
  t = n(this.year(), this.month(), this.date());
4098
4098
  break;
4099
4099
  case "hour":
4100
- t = this._d.valueOf(), t -= it(
4101
- t + (this._isUTC ? 0 : this.utcOffset() * ot),
4100
+ t = this._d.valueOf(), t -= ot(
4101
+ t + (this._isUTC ? 0 : this.utcOffset() * it),
4102
4102
  Ht
4103
4103
  );
4104
4104
  break;
4105
4105
  case "minute":
4106
- t = this._d.valueOf(), t -= it(t, ot);
4106
+ t = this._d.valueOf(), t -= ot(t, it);
4107
4107
  break;
4108
4108
  case "second":
4109
- t = this._d.valueOf(), t -= it(t, Wt);
4109
+ t = this._d.valueOf(), t -= ot(t, Wt);
4110
4110
  break;
4111
4111
  }
4112
4112
  return this._d.setTime(t), v.updateOffset(this, !0), this;
@@ -4148,16 +4148,16 @@ function Wd(e) {
4148
4148
  t = n(this.year(), this.month(), this.date() + 1) - 1;
4149
4149
  break;
4150
4150
  case "hour":
4151
- t = this._d.valueOf(), t += Ht - it(
4152
- t + (this._isUTC ? 0 : this.utcOffset() * ot),
4151
+ t = this._d.valueOf(), t += Ht - ot(
4152
+ t + (this._isUTC ? 0 : this.utcOffset() * it),
4153
4153
  Ht
4154
4154
  ) - 1;
4155
4155
  break;
4156
4156
  case "minute":
4157
- t = this._d.valueOf(), t += ot - it(t, ot) - 1;
4157
+ t = this._d.valueOf(), t += it - ot(t, it) - 1;
4158
4158
  break;
4159
4159
  case "second":
4160
- t = this._d.valueOf(), t += Wt - it(t, Wt) - 1;
4160
+ t = this._d.valueOf(), t += Wt - ot(t, Wt) - 1;
4161
4161
  break;
4162
4162
  }
4163
4163
  return this._d.setTime(t), v.updateOffset(this, !0), this;
@@ -4228,7 +4228,7 @@ x("y", ["yyyy", 4], 0, "eraYear");
4228
4228
  _("N", es);
4229
4229
  _("NN", es);
4230
4230
  _("NNN", es);
4231
- _("NNNN", ic);
4231
+ _("NNNN", oc);
4232
4232
  _("NNNNN", lc);
4233
4233
  U(
4234
4234
  ["N", "NN", "NNN", "NNNN", "NNNNN"],
@@ -4261,18 +4261,18 @@ function Xd(e, t) {
4261
4261
  return a;
4262
4262
  }
4263
4263
  function Jd(e, t, n) {
4264
- var s, r, a = this.eras(), o, i, l;
4264
+ var s, r, a = this.eras(), i, o, l;
4265
4265
  for (e = e.toUpperCase(), s = 0, r = a.length; s < r; ++s)
4266
- if (o = a[s].name.toUpperCase(), i = a[s].abbr.toUpperCase(), l = a[s].narrow.toUpperCase(), n)
4266
+ if (i = a[s].name.toUpperCase(), o = a[s].abbr.toUpperCase(), l = a[s].narrow.toUpperCase(), n)
4267
4267
  switch (t) {
4268
4268
  case "N":
4269
4269
  case "NN":
4270
4270
  case "NNN":
4271
- if (i === e)
4271
+ if (o === e)
4272
4272
  return a[s];
4273
4273
  break;
4274
4274
  case "NNNN":
4275
- if (o === e)
4275
+ if (i === e)
4276
4276
  return a[s];
4277
4277
  break;
4278
4278
  case "NNNNN":
@@ -4280,7 +4280,7 @@ function Jd(e, t, n) {
4280
4280
  return a[s];
4281
4281
  break;
4282
4282
  }
4283
- else if ([o, i, l].indexOf(e) >= 0)
4283
+ else if ([i, o, l].indexOf(e) >= 0)
4284
4284
  return a[s];
4285
4285
  }
4286
4286
  function Qd(e, t) {
@@ -4321,13 +4321,13 @@ function rc(e) {
4321
4321
  function ac(e) {
4322
4322
  return P(this, "_erasAbbrRegex") || ts.call(this), e ? this._erasAbbrRegex : this._erasRegex;
4323
4323
  }
4324
- function oc(e) {
4324
+ function ic(e) {
4325
4325
  return P(this, "_erasNarrowRegex") || ts.call(this), e ? this._erasNarrowRegex : this._erasRegex;
4326
4326
  }
4327
4327
  function es(e, t) {
4328
4328
  return t.erasAbbrRegex(e);
4329
4329
  }
4330
- function ic(e, t) {
4330
+ function oc(e, t) {
4331
4331
  return t.erasNameRegex(e);
4332
4332
  }
4333
4333
  function lc(e, t) {
@@ -4337,9 +4337,9 @@ function uc(e, t) {
4337
4337
  return t._eraYearOrdinalRegex || dt;
4338
4338
  }
4339
4339
  function ts() {
4340
- var e = [], t = [], n = [], s = [], r, a, o, i, l, u = this.eras();
4340
+ var e = [], t = [], n = [], s = [], r, a, i, o, l, u = this.eras();
4341
4341
  for (r = 0, a = u.length; r < a; ++r)
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);
4342
+ i = Pe(u[r].name), o = Pe(u[r].abbr), l = Pe(u[r].narrow), t.push(i), e.push(o), n.push(l), s.push(i), s.push(o), s.push(l);
4343
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(
4344
4344
  "^(" + n.join("|") + ")",
4345
4345
  "i"
@@ -4414,8 +4414,8 @@ function Ar(e, t, n, s, r) {
4414
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));
4415
4415
  }
4416
4416
  function vc(e, t, n, s, r) {
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
+ var a = vr(e, t, n, s, r), i = gt(a.year, 0, a.dayOfYear);
4418
+ return this.year(i.getUTCFullYear()), this.month(i.getUTCMonth()), this.date(i.getUTCDate()), this;
4419
4419
  }
4420
4420
  x("Q", 0, "Qo", "quarter");
4421
4421
  _("Q", ar);
@@ -4438,7 +4438,7 @@ U("Do", function(e, t) {
4438
4438
  var Ur = ht("Date", !0);
4439
4439
  x("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
4440
4440
  _("DDD", Zt);
4441
- _("DDDD", or);
4441
+ _("DDDD", ir);
4442
4442
  U(["DDD", "DDDD"], function(e, t, n) {
4443
4443
  n._dayOfYear = Y(e);
4444
4444
  });
@@ -4485,7 +4485,7 @@ x(0, ["SSSSSSSSS", 9], 0, function() {
4485
4485
  });
4486
4486
  _("S", Zt, ar);
4487
4487
  _("SS", Zt, le);
4488
- _("SSS", Zt, or);
4488
+ _("SSS", Zt, ir);
4489
4489
  var Ge, $r;
4490
4490
  for (Ge = "SSSS"; Ge.length <= 9; Ge += "S")
4491
4491
  _(Ge, dt);
@@ -4574,8 +4574,8 @@ d.millisecond = d.milliseconds = $r;
4574
4574
  d.utcOffset = nd;
4575
4575
  d.utc = rd;
4576
4576
  d.local = ad;
4577
- d.parseZone = od;
4578
- d.hasAlignedHourOffset = id;
4577
+ d.parseZone = id;
4578
+ d.hasAlignedHourOffset = od;
4579
4579
  d.isDST = ld;
4580
4580
  d.isLocal = dd;
4581
4581
  d.isUtcOffset = cd;
@@ -4627,7 +4627,7 @@ L.erasParse = Jd;
4627
4627
  L.erasConvertYear = Qd;
4628
4628
  L.erasAbbrRegex = ac;
4629
4629
  L.erasNameRegex = rc;
4630
- L.erasNarrowRegex = oc;
4630
+ L.erasNarrowRegex = ic;
4631
4631
  L.months = $l;
4632
4632
  L.monthsShort = Wl;
4633
4633
  L.monthsParse = Fl;
@@ -4636,9 +4636,9 @@ L.monthsShortRegex = Vl;
4636
4636
  L.week = Bl;
4637
4637
  L.firstDayOfYear = Kl;
4638
4638
  L.firstDayOfWeek = ql;
4639
- L.weekdays = ou;
4639
+ L.weekdays = iu;
4640
4640
  L.weekdaysMin = lu;
4641
- L.weekdaysShort = iu;
4641
+ L.weekdaysShort = ou;
4642
4642
  L.weekdaysParse = du;
4643
4643
  L.weekdaysRegex = pu;
4644
4644
  L.weekdaysShortRegex = mu;
@@ -4659,12 +4659,12 @@ function Hr(e, t, n) {
4659
4659
  }
4660
4660
  function ns(e, t, n, s) {
4661
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 || "");
4662
- var r = $e(), a = e ? r._week.dow : 0, o, i = [];
4662
+ var r = $e(), a = e ? r._week.dow : 0, i, o = [];
4663
4663
  if (n != null)
4664
4664
  return Ft(t, (n + a) % 7, s, "day");
4665
- for (o = 0; o < 7; o++)
4666
- i[o] = Ft(t, (o + a) % 7, s, "day");
4667
- return i;
4665
+ for (i = 0; i < 7; i++)
4666
+ o[i] = Ft(t, (i + a) % 7, s, "day");
4667
+ return o;
4668
4668
  }
4669
4669
  function Oc(e, t) {
4670
4670
  return Hr(e, t, "months");
@@ -4733,8 +4733,8 @@ function fs(e) {
4733
4733
  return e < 0 ? Math.floor(e) : Math.ceil(e);
4734
4734
  }
4735
4735
  function Rc() {
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
+ var e = this._milliseconds, t = this._days, n = this._months, s = this._data, r, a, i, o, 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, i = de(a / 60), s.hours = i % 24, t += de(i / 24), l = de(Gr(t)), n += l, t -= fs(Mn(l)), o = de(n / 12), n %= 12, s.days = t, s.months = n, s.years = o, this;
4738
4738
  }
4739
4739
  function Gr(e) {
4740
4740
  return e * 4800 / 146097;
@@ -4815,8 +4815,8 @@ function th(e, t, n, s, r) {
4815
4815
  return r.relativeTime(t || 1, !!n, e, s);
4816
4816
  }
4817
4817
  function nh(e, t, n, 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];
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
+ var r = be(e).abs(), a = Ie(r.as("s")), i = Ie(r.as("m")), o = Ie(r.as("h")), l = Ie(r.as("d")), u = Ie(r.as("M")), h = Ie(r.as("w")), k = Ie(r.as("y")), p = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || i <= 1 && ["m"] || i < n.m && ["mm", i] || o <= 1 && ["h"] || o < n.h && ["hh", o] || l <= 1 && ["d"] || l < n.d && ["dd", l];
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] || k <= 1 && ["y"] || ["yy", k], p[2] = t, p[3] = +e > 0, p[4] = s, th.apply(null, p);
4820
4820
  }
4821
4821
  function sh(e) {
4822
4822
  return e === void 0 ? Ie : typeof e == "function" ? (Ie = e, !0) : !1;
@@ -4837,8 +4837,8 @@ function tt(e) {
4837
4837
  function nn() {
4838
4838
  if (!this.isValid())
4839
4839
  return this.localeData().invalidDate();
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
+ var e = cn(this._milliseconds) / 1e3, t = cn(this._days), n = cn(this._months), s, r, a, i, o = this.asSeconds(), l, u, h, k;
4841
+ return o ? (s = de(e / 60), r = de(s / 60), e %= 60, s %= 60, a = de(n / 12), n %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", l = o < 0 ? "-" : "", u = tt(this._months) !== tt(o) ? "-" : "", h = tt(this._days) !== tt(o) ? "-" : "", k = tt(this._milliseconds) !== tt(o) ? "-" : "", l + "P" + (a ? u + a + "Y" : "") + (n ? u + n + "M" : "") + (t ? h + t + "D" : "") + (r || s || e ? "T" : "") + (r ? k + r + "H" : "") + (s ? k + s + "M" : "") + (e ? k + i + "S" : "")) : "P0D";
4842
4842
  }
4843
4843
  var E = en.prototype;
4844
4844
  E.isValid = Ju;
@@ -4889,7 +4889,7 @@ U("x", function(e, t, n) {
4889
4889
  n._d = new Date(Y(e));
4890
4890
  });
4891
4891
  v.version = "2.30.1";
4892
- ol(G);
4892
+ il(G);
4893
4893
  v.fn = d;
4894
4894
  v.min = Zu;
4895
4895
  v.max = qu;
@@ -4937,11 +4937,11 @@ v.HTML5_FMT = {
4937
4937
  MONTH: "YYYY-MM"
4938
4938
  // <input type="month" />
4939
4939
  };
4940
- const oh = "code-graph", ih = (e, t = "", n = "json") => {
4940
+ const ih = "code-graph", oh = (e, t = "", n = "json") => {
4941
4941
  const s = document.createElement("a");
4942
4942
  s.setAttribute("href", `data:text/${n};charset=UTF-8,${encodeURIComponent(e)}`);
4943
4943
  const r = v().format("YYMMDD_HHMMSS");
4944
- s.setAttribute("download", `${oh}_${r}_${t}.${n}`), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
4944
+ s.setAttribute("download", `${ih}_${r}_${t}.${n}`), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
4945
4945
  }, lh = (e = "json") => {
4946
4946
  const t = document.createElement("input");
4947
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;
@@ -4955,7 +4955,7 @@ const oh = "code-graph", ih = (e, t = "", n = "json") => {
4955
4955
  }), t.registerCommand(zr, {
4956
4956
  execute: () => {
4957
4957
  const r = e.value.editor.save();
4958
- ih(JSON.stringify(r, null, 2), e.value.shortId);
4958
+ oh(JSON.stringify(r, null, 2), e.value.shortId);
4959
4959
  },
4960
4960
  canExecute: () => e.value.nodes.length > 0
4961
4961
  }), t.registerCommand(Br, {
@@ -4973,15 +4973,15 @@ const oh = "code-graph", ih = (e, t = "", n = "json") => {
4973
4973
  document.body.removeChild(r);
4974
4974
  const a = r.files;
4975
4975
  if (!a || a.length <= 0) return !1;
4976
- const o = new FileReader();
4977
- o.onload = (i) => {
4978
- if (i.target?.result) {
4979
- const l = i.target.result;
4976
+ const i = new FileReader();
4977
+ i.onload = (o) => {
4978
+ if (o.target?.result) {
4979
+ const l = o.target.result;
4980
4980
  if (l.length === 0) return;
4981
4981
  const u = JSON.parse(l);
4982
4982
  e.value.editor.load(u), e.value.code?.engine?.runOnce(null);
4983
4983
  }
4984
- }, o.readAsText(a.item(0));
4984
+ }, i.readAsText(a.item(0));
4985
4985
  });
4986
4986
  },
4987
4987
  canExecute: () => !0
@@ -5307,18 +5307,18 @@ function mh(e) {
5307
5307
  if (!s.engine || typeof s.engine != "object")
5308
5308
  throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);
5309
5309
  const r = s.engine.getInputValues(this.subgraph);
5310
- for (const i of this.subgraph.inputs)
5311
- r.set(i.nodeInterfaceId, n[i.id]);
5310
+ for (const o of this.subgraph.inputs)
5311
+ r.set(o.nodeInterfaceId, n[o.id]);
5312
5312
  const a = await s.engine.runGraph(
5313
5313
  this.subgraph,
5314
5314
  r,
5315
5315
  s.globalValues
5316
5316
  );
5317
5317
  s.engine.pause(), Cs(a, s.engine.editor), s.engine.resume();
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;
5318
+ const i = {};
5319
+ for (const o of this.subgraph.outputs)
5320
+ i[o.id] = a.get(o.nodeId)?.get("output");
5321
+ return i._calculationResults = a, this.lockCode || (i._code = this.renderCode({ inputs: n, ...s.globalValues })), this.updateOutputValues(i), i;
5322
5322
  };
5323
5323
  load(n) {
5324
5324
  if (!this.subgraph) throw new Error("Cannot load a graph node without a graph");
@@ -5362,10 +5362,10 @@ function mh(e) {
5362
5362
  this.subgraph.outputs.some((s) => s.id === n) || this.removeOutput(n);
5363
5363
  this.addInput(
5364
5364
  "_code",
5365
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
5365
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
5366
5366
  ), this.addOutput(
5367
5367
  "_code",
5368
- new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
5368
+ new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
5369
5369
  ), this.addOutput("_calculationResults", new Se("_calculationResults", void 0).setHidden(!0));
5370
5370
  }
5371
5371
  /**
@@ -5374,19 +5374,19 @@ function mh(e) {
5374
5374
  * These properties should be proxied to the subgraph interface, so they behave the same as the original interface.
5375
5375
  */
5376
5376
  createProxyInterface(n, s) {
5377
- const r = new ie(n.name, void 0);
5377
+ const r = new oe(n.name, void 0);
5378
5378
  return new Proxy(r, {
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(
5384
- (w) => Jr.isGraphInputNode(w) && w.graphInterfaceId === n.id
5385
- )?.outputs.placeholder.id : i = this.subgraph?.nodes.find(
5386
- (w) => Qr.isGraphOutputNode(w) && w.graphInterfaceId === n.id
5379
+ get: (a, i) => {
5380
+ if (ph.includes(i) || i in a || typeof i == "string" && i.startsWith("__v_"))
5381
+ return Reflect.get(a, i);
5382
+ let o;
5383
+ s ? o = this.subgraph?.nodes.find(
5384
+ (k) => Jr.isGraphInputNode(k) && k.graphInterfaceId === n.id
5385
+ )?.outputs.placeholder.id : o = this.subgraph?.nodes.find(
5386
+ (k) => Qr.isGraphOutputNode(k) && k.graphInterfaceId === n.id
5387
5387
  )?.inputs.placeholder.id;
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
+ const l = this.subgraph?.connections.find((h) => o === (s ? h.from : h.to)?.id), u = s ? l?.to : l?.from;
5389
+ if (u) return Reflect.get(u, i);
5390
5390
  }
5391
5391
  });
5392
5392
  }
@@ -5415,16 +5415,16 @@ class rn extends Ea {
5415
5415
  const I = n.get(p);
5416
5416
  if (!I) throw new Error(`Unable to create graph from template: Could not map old id ${p} to new id`);
5417
5417
  return I;
5418
- }, a = (p) => Ei(p, (I) => ({
5418
+ }, a = (p) => Eo(p, (I) => ({
5419
5419
  id: s(I.id),
5420
5420
  templateId: I.id,
5421
5421
  value: I.value
5422
- })), o = this.nodes.map((p) => ({
5422
+ })), i = this.nodes.map((p) => ({
5423
5423
  ...p,
5424
5424
  id: s(p.id),
5425
5425
  inputs: a(p.inputs),
5426
5426
  outputs: a(p.outputs)
5427
- })), i = this.connections.map((p) => ({
5427
+ })), o = this.connections.map((p) => ({
5428
5428
  id: s(p.id),
5429
5429
  from: r(p.from),
5430
5430
  to: r(p.to)
@@ -5440,8 +5440,8 @@ class rn extends Ea {
5440
5440
  nodeInterfaceId: r(p.nodeInterfaceId)
5441
5441
  })), h = {
5442
5442
  id: Xe(),
5443
- nodes: o,
5444
- connections: i,
5443
+ nodes: i,
5444
+ connections: o,
5445
5445
  inputs: l,
5446
5446
  outputs: u
5447
5447
  };
@@ -5467,43 +5467,43 @@ function _h(e, t) {
5467
5467
  class ea extends Jr {
5468
5468
  _title = "Subgraph Input";
5469
5469
  inputs = {
5470
- _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5470
+ _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5471
5471
  name: new xs("Name", "Input").setPort(!1)
5472
5472
  };
5473
5473
  outputs = {
5474
- _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5474
+ _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5475
5475
  placeholder: new Se("Connection", void 0)
5476
5476
  };
5477
5477
  }
5478
5478
  class ta extends Qr {
5479
5479
  _title = "Subgraph Output";
5480
5480
  inputs = {
5481
- _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5481
+ _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5482
5482
  name: new xs("Name", "Output").setPort(!1),
5483
5483
  placeholder: new Se("Connection", void 0)
5484
5484
  };
5485
5485
  outputs = {
5486
- _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5486
+ _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5487
5487
  output: new Se("Output", void 0).setHidden(!0)
5488
5488
  };
5489
5489
  }
5490
5490
  const yh = "CREATE_SUBGRAPH", vs = [Ra, Pa];
5491
5491
  function gh(e, t, n) {
5492
5492
  const s = () => e.value.selectedNodes.filter((a) => !vs.includes(a.type)).length > 0, r = () => {
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(
5493
+ const { viewModel: a } = kt(), i = e.value, o = e.value.editor;
5494
+ if (i.selectedNodes.length === 0) return;
5495
+ const l = i.selectedNodes.filter((C) => !vs.includes(C.type)), u = l.flatMap((C) => Object.values(C.inputs)), h = l.flatMap((C) => Object.values(C.outputs)), k = i.connections.filter(
5496
5496
  (C) => !h.includes(C.from) && u.includes(C.to)
5497
- ), p = o.connections.filter(
5497
+ ), p = i.connections.filter(
5498
5498
  (C) => h.includes(C.from) && !u.includes(C.to)
5499
- ), I = o.connections.filter(
5499
+ ), I = i.connections.filter(
5500
5500
  (C) => h.includes(C.from) && u.includes(C.to)
5501
5501
  ), y = l.map((C) => C.save()), O = I.map((C) => ({
5502
5502
  id: C.id,
5503
5503
  from: C.from.id,
5504
5504
  to: C.to.id
5505
5505
  })), c = /* @__PURE__ */ new Map(), { xLeft: g, xRight: $, yTop: A } = bh(l);
5506
- for (const [C, Q] of w.entries()) {
5506
+ for (const [C, Q] of k.entries()) {
5507
5507
  const se = new ea();
5508
5508
  se.inputs.name.value = Q.to.name, y.push({
5509
5509
  ...se.save(),
@@ -5526,25 +5526,25 @@ function gh(e, t, n) {
5526
5526
  inputs: [],
5527
5527
  outputs: []
5528
5528
  },
5529
- i
5529
+ o
5530
5530
  )
5531
5531
  );
5532
- i.addGraphTemplate(F);
5533
- const Te = i.nodeTypes.get(Os(F));
5532
+ o.addGraphTemplate(F);
5533
+ const Te = o.nodeTypes.get(Os(F));
5534
5534
  if (!Te) throw new Error("Unable to create subgraph: Could not find corresponding graph node type");
5535
- o.activeTransactions++;
5535
+ i.activeTransactions++;
5536
5536
  const Ne = Ae(new Te.type());
5537
- o.addNode(Ne);
5537
+ i.addNode(Ne);
5538
5538
  const ft = Math.round(
5539
5539
  l.map((C) => C.position.x).reduce((C, Q) => C + Q, 0) / l.length
5540
5540
  ), we = Math.round(
5541
5541
  l.map((C) => C.position.y).reduce((C, Q) => C + Q, 0) / l.length
5542
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
+ Ne.position.x = ft, Ne.position.y = we, k.forEach((C) => {
5544
+ i.removeConnection(C), i.addConnection(C.from, Ne.inputs[c.get(C.to.id)]);
5545
5545
  }), p.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
+ i.removeConnection(C), i.addConnection(Ne.outputs[c.get(C.from.id)], C.to);
5547
+ }), l.forEach((C) => i.removeNode(C)), i.activeTransactions--, t.canExecuteCommand(He.SAVE_SUBGRAPH_COMMAND) && t.executeCommand(He.SAVE_SUBGRAPH_COMMAND), n(F), e.value.panning = { ...i.panning }, e.value.scaling = i.scaling;
5548
5548
  };
5549
5549
  t.registerCommand(yh, {
5550
5550
  canExecute: s,
@@ -5553,15 +5553,15 @@ function gh(e, t, n) {
5553
5553
  }
5554
5554
  function bh(e) {
5555
5555
  const t = e.reduce((r, a) => {
5556
- const o = a.position.x;
5557
- return o < r ? o : r;
5556
+ const i = a.position.x;
5557
+ return i < r ? i : r;
5558
5558
  }, 1 / 0), n = e.reduce((r, a) => {
5559
- const o = a.position.y;
5560
- return o < r ? o : r;
5559
+ const i = a.position.y;
5560
+ return i < r ? i : r;
5561
5561
  }, 1 / 0);
5562
5562
  return { xLeft: e.reduce((r, a) => {
5563
- const o = a.position.x + a.width;
5564
- return o > r ? o : r;
5563
+ const i = a.position.x + a.width;
5564
+ return i > r ? i : r;
5565
5565
  }, -1 / 0), xRight: t, yTop: n };
5566
5566
  }
5567
5567
  class wh extends La {
@@ -5617,15 +5617,15 @@ class wh extends La {
5617
5617
  }
5618
5618
  }
5619
5619
  function Zh(e) {
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());
5620
+ const t = ie(e?.code ?? new Rn()), n = ie(e?.existingEditor ?? new wh(t.value)), s = /* @__PURE__ */ Symbol("ViewModelToken"), r = ie(null), a = la(r), { switchGraph: i } = _h(n, r), o = z(() => a.value && a.value !== n.value.graph), l = Ae(ba());
5621
5621
  l.nodes.defaultWidth = ss;
5622
- const u = wa(), h = ka(a, u), w = Ma(a, n, u), p = {
5622
+ const u = wa(), h = ka(a, u), k = Ma(a, n, u), p = {
5623
5623
  /** Called whenever a node is rendered */
5624
- renderNode: new os(null),
5624
+ renderNode: new is(null),
5625
5625
  /** Called whenever an interface is rendered */
5626
- renderInterface: new os(null)
5626
+ renderInterface: new is(null)
5627
5627
  }, I = Ae({
5628
- clipboard: w,
5628
+ clipboard: k,
5629
5629
  code: t,
5630
5630
  commandHandler: u,
5631
5631
  displayedGraph: a,
@@ -5633,21 +5633,21 @@ function Zh(e) {
5633
5633
  history: h,
5634
5634
  hooks: p,
5635
5635
  isReady: !1,
5636
- isSubgraph: i,
5636
+ isSubgraph: o,
5637
5637
  onBeforeUnmount: () => {
5638
5638
  },
5639
5639
  onMounted: () => {
5640
5640
  },
5641
5641
  settings: l,
5642
- switchGraph: o
5642
+ switchGraph: i
5643
5643
  });
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(
5644
+ return t.value.registerViewModel(I), fh(I), Sa(a, u), gh(a, u, i), xa(a, u), Oa(a, u, i), Ca(a, u), Ta(a, u, l), dh(a, u, l), ch(l), gs(
5645
5645
  n,
5646
5646
  (y, O) => {
5647
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(
5648
5648
  s,
5649
5649
  (c) => Na(c, { defaultWidth: l.nodes.defaultWidth })
5650
- ), n.value.registerNodeType(ea, { category: "Subgraphs" }), n.value.registerNodeType(ta, { category: "Subgraphs" }), o(y.graph));
5650
+ ), n.value.registerNodeType(ea, { category: "Subgraphs" }), n.value.registerNodeType(ta, { category: "Subgraphs" }), i(y.graph));
5651
5651
  },
5652
5652
  { immediate: !0 }
5653
5653
  ), ks(() => I.isReady = !0), I;
@@ -5665,7 +5665,7 @@ export {
5665
5665
  rn as CodeGraphTemplate,
5666
5666
  Dn as CodeNode,
5667
5667
  Mt as CodeNodeInputInterface,
5668
- ie as CodeNodeInterface,
5668
+ oe as CodeNodeInterface,
5669
5669
  In as CodeNodeInterfaceComponent,
5670
5670
  tl as CodeNodeOutputInterface,
5671
5671
  zr as DOWNLOAD_EDITOR_STATE_COMMAND,
@@ -5695,11 +5695,11 @@ export {
5695
5695
  Bs as booleanType,
5696
5696
  Rh as components,
5697
5697
  mh as createCodeGraphNodeType,
5698
- Xi as createInterface,
5698
+ Xo as createInterface,
5699
5699
  Wh as defineCodeNode,
5700
5700
  Hh as defineDynamicCodeNode,
5701
- Qi as dictType,
5702
- Ki as formatInputs,
5701
+ Qo as dictType,
5702
+ Ko as formatInputs,
5703
5703
  Kr as getCodeNodes,
5704
5704
  jh as getPositionAtColumn,
5705
5705
  zh as getPositionBeforeNode,