@ddd-tool/domain-designer-generator 0.1.0-beta.5 → 0.1.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/domain/define.d.ts +1 -0
  2. package/index.js +1674 -1648
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -12,137 +12,137 @@ function Bn(e) {
12
12
  }
13
13
  process.env.NODE_ENV !== "production" && Object.freeze({});
14
14
  process.env.NODE_ENV !== "production" && Object.freeze([]);
15
- const Ve = Object.assign, zn = Object.prototype.hasOwnProperty, Re = (e, n) => zn.call(e, n), q = Array.isArray, oe = (e) => mn(e) === "[object Map]", Gn = (e) => typeof e == "function", Jn = (e) => typeof e == "string", le = (e) => typeof e == "symbol", Se = (e) => e !== null && typeof e == "object", Wn = Object.prototype.toString, mn = (e) => Wn.call(e), fn = (e) => mn(e).slice(8, -1), qe = (e) => Jn(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Yn = (e) => {
15
+ const Pe = Object.assign, Gn = Object.prototype.hasOwnProperty, Ve = (e, n) => Gn.call(e, n), Y = Array.isArray, te = (e) => dn(e) === "[object Map]", Un = (e) => typeof e == "function", zn = (e) => typeof e == "string", ue = (e) => typeof e == "symbol", je = (e) => e !== null && typeof e == "object", Jn = Object.prototype.toString, dn = (e) => Jn.call(e), mn = (e) => dn(e).slice(8, -1), Ye = (e) => zn(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Wn = (e) => {
16
16
  const n = /* @__PURE__ */ Object.create(null);
17
17
  return (t) => n[t] || (n[t] = e(t));
18
- }, qn = Yn((e) => e.charAt(0).toUpperCase() + e.slice(1)), Z = (e, n) => !Object.is(e, n);
18
+ }, Yn = Wn((e) => e.charAt(0).toUpperCase() + e.slice(1)), q = (e, n) => !Object.is(e, n);
19
19
  /**
20
20
  * @vue/reactivity v3.5.13
21
21
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
22
22
  * @license MIT
23
23
  **/
24
- function ee(e, ...n) {
24
+ function X(e, ...n) {
25
25
  }
26
- let A, hn = 0, se, re;
27
- function Zn(e, n = !1) {
26
+ let A, fn = 0, oe, se;
27
+ function qn(e, n = !1) {
28
28
  if (e.flags |= 8, n) {
29
- e.next = re, re = e;
29
+ e.next = se, se = e;
30
30
  return;
31
31
  }
32
- e.next = se, se = e;
32
+ e.next = oe, oe = e;
33
33
  }
34
- function Ze() {
35
- hn++;
34
+ function qe() {
35
+ fn++;
36
36
  }
37
- function Qe() {
38
- if (--hn > 0)
37
+ function Ze() {
38
+ if (--fn > 0)
39
39
  return;
40
- if (re) {
41
- let n = re;
42
- for (re = void 0; n; ) {
40
+ if (se) {
41
+ let n = se;
42
+ for (se = void 0; n; ) {
43
43
  const t = n.next;
44
44
  n.next = void 0, n.flags &= -9, n = t;
45
45
  }
46
46
  }
47
47
  let e;
48
- for (; se; ) {
49
- let n = se;
50
- for (se = void 0; n; ) {
48
+ for (; oe; ) {
49
+ let n = oe;
50
+ for (oe = void 0; n; ) {
51
51
  const t = n.next;
52
52
  if (n.next = void 0, n.flags &= -9, n.flags & 1)
53
53
  try {
54
54
  n.trigger();
55
- } catch (s) {
56
- e || (e = s);
55
+ } catch (r) {
56
+ e || (e = r);
57
57
  }
58
58
  n = t;
59
59
  }
60
60
  }
61
61
  if (e) throw e;
62
62
  }
63
- function Qn(e) {
63
+ function Zn(e) {
64
64
  for (let n = e.deps; n; n = n.nextDep)
65
65
  n.version = -1, n.prevActiveLink = n.dep.activeLink, n.dep.activeLink = n;
66
66
  }
67
- function Xn(e) {
68
- let n, t = e.depsTail, s = t;
69
- for (; s; ) {
70
- const o = s.prevDep;
71
- s.version === -1 ? (s === t && (t = o), gn(s), nt(s)) : n = s, s.dep.activeLink = s.prevActiveLink, s.prevActiveLink = void 0, s = o;
67
+ function Qn(e) {
68
+ let n, t = e.depsTail, r = t;
69
+ for (; r; ) {
70
+ const o = r.prevDep;
71
+ r.version === -1 ? (r === t && (t = o), vn(r), et(r)) : n = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = o;
72
72
  }
73
73
  e.deps = n, e.depsTail = t;
74
74
  }
75
- function et(e) {
75
+ function Xn(e) {
76
76
  for (let n = e.deps; n; n = n.nextDep)
77
- if (n.dep.version !== n.version || n.dep.computed && (vn(n.dep.computed) || n.dep.version !== n.version))
77
+ if (n.dep.version !== n.version || n.dep.computed && (hn(n.dep.computed) || n.dep.version !== n.version))
78
78
  return !0;
79
79
  return !!e._dirty;
80
80
  }
81
- function vn(e) {
82
- if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === ae))
81
+ function hn(e) {
82
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === re))
83
83
  return;
84
- e.globalVersion = ae;
84
+ e.globalVersion = re;
85
85
  const n = e.dep;
86
- if (e.flags |= 2, n.version > 0 && !e.isSSR && e.deps && !et(e)) {
86
+ if (e.flags |= 2, n.version > 0 && !e.isSSR && e.deps && !Xn(e)) {
87
87
  e.flags &= -3;
88
88
  return;
89
89
  }
90
- const t = A, s = H;
91
- A = e, H = !0;
90
+ const t = A, r = R;
91
+ A = e, R = !0;
92
92
  try {
93
- Qn(e);
93
+ Zn(e);
94
94
  const o = e.fn(e._value);
95
- (n.version === 0 || Z(o, e._value)) && (e._value = o, n.version++);
95
+ (n.version === 0 || q(o, e._value)) && (e._value = o, n.version++);
96
96
  } catch (o) {
97
97
  throw n.version++, o;
98
98
  } finally {
99
- A = t, H = s, Xn(e), e.flags &= -3;
99
+ A = t, R = r, Qn(e), e.flags &= -3;
100
100
  }
101
101
  }
102
- function gn(e, n = !1) {
103
- const { dep: t, prevSub: s, nextSub: o } = e;
104
- if (s && (s.nextSub = o, e.prevSub = void 0), o && (o.prevSub = s, e.nextSub = void 0), process.env.NODE_ENV !== "production" && t.subsHead === e && (t.subsHead = o), t.subs === e && (t.subs = s, !s && t.computed)) {
102
+ function vn(e, n = !1) {
103
+ const { dep: t, prevSub: r, nextSub: o } = e;
104
+ if (r && (r.nextSub = o, e.prevSub = void 0), o && (o.prevSub = r, e.nextSub = void 0), process.env.NODE_ENV !== "production" && t.subsHead === e && (t.subsHead = o), t.subs === e && (t.subs = r, !r && t.computed)) {
105
105
  t.computed.flags &= -5;
106
- for (let r = t.computed.deps; r; r = r.nextDep)
107
- gn(r, !0);
106
+ for (let s = t.computed.deps; s; s = s.nextDep)
107
+ vn(s, !0);
108
108
  }
109
109
  !n && !--t.sc && t.map && t.map.delete(t.key);
110
110
  }
111
- function nt(e) {
111
+ function et(e) {
112
112
  const { prevDep: n, nextDep: t } = e;
113
113
  n && (n.nextDep = t, e.prevDep = void 0), t && (t.prevDep = n, e.nextDep = void 0);
114
114
  }
115
- let H = !0;
116
- const _n = [];
117
- function tt() {
118
- _n.push(H), H = !1;
115
+ let R = !0;
116
+ const gn = [];
117
+ function nt() {
118
+ gn.push(R), R = !1;
119
119
  }
120
- function ot() {
121
- const e = _n.pop();
122
- H = e === void 0 ? !0 : e;
120
+ function tt() {
121
+ const e = gn.pop();
122
+ R = e === void 0 ? !0 : e;
123
123
  }
124
- let ae = 0;
125
- class st {
124
+ let re = 0;
125
+ class ot {
126
126
  constructor(n, t) {
127
127
  this.sub = n, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
128
128
  }
129
129
  }
130
- class Xe {
130
+ class Qe {
131
131
  constructor(n) {
132
132
  this.computed = n, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
133
133
  }
134
134
  track(n) {
135
- if (!A || !H || A === this.computed)
135
+ if (!A || !R || A === this.computed)
136
136
  return;
137
137
  let t = this.activeLink;
138
138
  if (t === void 0 || t.sub !== A)
139
- t = this.activeLink = new st(A, this), A.deps ? (t.prevDep = A.depsTail, A.depsTail.nextDep = t, A.depsTail = t) : A.deps = A.depsTail = t, Cn(t);
139
+ t = this.activeLink = new ot(A, this), A.deps ? (t.prevDep = A.depsTail, A.depsTail.nextDep = t, A.depsTail = t) : A.deps = A.depsTail = t, _n(t);
140
140
  else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
141
- const s = t.nextDep;
142
- s.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = s), t.prevDep = A.depsTail, t.nextDep = void 0, A.depsTail.nextDep = t, A.depsTail = t, A.deps === t && (A.deps = s);
141
+ const r = t.nextDep;
142
+ r.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = r), t.prevDep = A.depsTail, t.nextDep = void 0, A.depsTail.nextDep = t, A.depsTail = t, A.deps === t && (A.deps = r);
143
143
  }
144
144
  return process.env.NODE_ENV !== "production" && A.onTrack && A.onTrack(
145
- Ve(
145
+ Pe(
146
146
  {
147
147
  effect: A
148
148
  },
@@ -151,15 +151,15 @@ class Xe {
151
151
  ), t;
152
152
  }
153
153
  trigger(n) {
154
- this.version++, ae++, this.notify(n);
154
+ this.version++, re++, this.notify(n);
155
155
  }
156
156
  notify(n) {
157
- Ze();
157
+ qe();
158
158
  try {
159
159
  if (process.env.NODE_ENV !== "production")
160
160
  for (let t = this.subsHead; t; t = t.nextSub)
161
161
  t.sub.onTrigger && !(t.sub.flags & 8) && t.sub.onTrigger(
162
- Ve(
162
+ Pe(
163
163
  {
164
164
  effect: t.sub
165
165
  },
@@ -169,331 +169,331 @@ class Xe {
169
169
  for (let t = this.subs; t; t = t.prevSub)
170
170
  t.sub.notify() && t.sub.dep.notify();
171
171
  } finally {
172
- Qe();
172
+ Ze();
173
173
  }
174
174
  }
175
175
  }
176
- function Cn(e) {
176
+ function _n(e) {
177
177
  if (e.dep.sc++, e.sub.flags & 4) {
178
178
  const n = e.dep.computed;
179
179
  if (n && !e.dep.subs) {
180
180
  n.flags |= 20;
181
- for (let s = n.deps; s; s = s.nextDep)
182
- Cn(s);
181
+ for (let r = n.deps; r; r = r.nextDep)
182
+ _n(r);
183
183
  }
184
184
  const t = e.dep.subs;
185
185
  t !== e && (e.prevSub = t, t && (t.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
186
186
  }
187
187
  }
188
- const He = /* @__PURE__ */ new WeakMap(), U = Symbol(
188
+ const Re = /* @__PURE__ */ new WeakMap(), K = Symbol(
189
189
  process.env.NODE_ENV !== "production" ? "Object iterate" : ""
190
- ), Le = Symbol(
190
+ ), He = Symbol(
191
191
  process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
192
- ), ie = Symbol(
192
+ ), ae = Symbol(
193
193
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
194
194
  );
195
- function x(e, n, t) {
196
- if (H && A) {
197
- let s = He.get(e);
198
- s || He.set(e, s = /* @__PURE__ */ new Map());
199
- let o = s.get(t);
200
- o || (s.set(t, o = new Xe()), o.map = s, o.key = t), process.env.NODE_ENV !== "production" ? o.track({
195
+ function T(e, n, t) {
196
+ if (R && A) {
197
+ let r = Re.get(e);
198
+ r || Re.set(e, r = /* @__PURE__ */ new Map());
199
+ let o = r.get(t);
200
+ o || (r.set(t, o = new Qe()), o.map = r, o.key = t), process.env.NODE_ENV !== "production" ? o.track({
201
201
  target: e,
202
202
  type: n,
203
203
  key: t
204
204
  }) : o.track();
205
205
  }
206
206
  }
207
- function R(e, n, t, s, o, r) {
208
- const c = He.get(e);
209
- if (!c) {
210
- ae++;
207
+ function V(e, n, t, r, o, s) {
208
+ const p = Re.get(e);
209
+ if (!p) {
210
+ re++;
211
211
  return;
212
212
  }
213
- const g = (_) => {
214
- _ && (process.env.NODE_ENV !== "production" ? _.trigger({
213
+ const _ = (C) => {
214
+ C && (process.env.NODE_ENV !== "production" ? C.trigger({
215
215
  target: e,
216
216
  type: n,
217
217
  key: t,
218
- newValue: s,
218
+ newValue: r,
219
219
  oldValue: o,
220
- oldTarget: r
221
- }) : _.trigger());
220
+ oldTarget: s
221
+ }) : C.trigger());
222
222
  };
223
- if (Ze(), n === "clear")
224
- c.forEach(g);
223
+ if (qe(), n === "clear")
224
+ p.forEach(_);
225
225
  else {
226
- const _ = q(e), m = _ && qe(t);
227
- if (_ && t === "length") {
228
- const a = Number(s);
229
- c.forEach((u, i) => {
230
- (i === "length" || i === ie || !le(i) && i >= a) && g(u);
226
+ const C = Y(e), d = C && Ye(t);
227
+ if (C && t === "length") {
228
+ const i = Number(r);
229
+ p.forEach((a, l) => {
230
+ (l === "length" || l === ae || !ue(l) && l >= i) && _(a);
231
231
  });
232
232
  } else
233
- switch ((t !== void 0 || c.has(void 0)) && g(c.get(t)), m && g(c.get(ie)), n) {
233
+ switch ((t !== void 0 || p.has(void 0)) && _(p.get(t)), d && _(p.get(ae)), n) {
234
234
  case "add":
235
- _ ? m && g(c.get("length")) : (g(c.get(U)), oe(e) && g(c.get(Le)));
235
+ C ? d && _(p.get("length")) : (_(p.get(K)), te(e) && _(p.get(He)));
236
236
  break;
237
237
  case "delete":
238
- _ || (g(c.get(U)), oe(e) && g(c.get(Le)));
238
+ C || (_(p.get(K)), te(e) && _(p.get(He)));
239
239
  break;
240
240
  case "set":
241
- oe(e) && g(c.get(U));
241
+ te(e) && _(p.get(K));
242
242
  break;
243
243
  }
244
244
  }
245
- Qe();
245
+ Ze();
246
246
  }
247
- function W(e) {
248
- const n = j(e);
249
- return n === e ? n : (x(n, "iterate", ie), L(e) ? n : n.map(T));
247
+ function J(e) {
248
+ const n = E(e);
249
+ return n === e ? n : (T(n, "iterate", ae), H(e) ? n : n.map(O));
250
250
  }
251
- function en(e) {
252
- return x(e = j(e), "iterate", ie), e;
251
+ function Xe(e) {
252
+ return T(e = E(e), "iterate", ae), e;
253
253
  }
254
- const rt = {
254
+ const st = {
255
255
  __proto__: null,
256
256
  [Symbol.iterator]() {
257
- return Oe(this, Symbol.iterator, T);
257
+ return Ie(this, Symbol.iterator, O);
258
258
  },
259
259
  concat(...e) {
260
- return W(this).concat(
261
- ...e.map((n) => q(n) ? W(n) : n)
260
+ return J(this).concat(
261
+ ...e.map((n) => Y(n) ? J(n) : n)
262
262
  );
263
263
  },
264
264
  entries() {
265
- return Oe(this, "entries", (e) => (e[1] = T(e[1]), e));
265
+ return Ie(this, "entries", (e) => (e[1] = O(e[1]), e));
266
266
  },
267
267
  every(e, n) {
268
- return F(this, "every", e, n, void 0, arguments);
268
+ return D(this, "every", e, n, void 0, arguments);
269
269
  },
270
270
  filter(e, n) {
271
- return F(this, "filter", e, n, (t) => t.map(T), arguments);
271
+ return D(this, "filter", e, n, (t) => t.map(O), arguments);
272
272
  },
273
273
  find(e, n) {
274
- return F(this, "find", e, n, T, arguments);
274
+ return D(this, "find", e, n, O, arguments);
275
275
  },
276
276
  findIndex(e, n) {
277
- return F(this, "findIndex", e, n, void 0, arguments);
277
+ return D(this, "findIndex", e, n, void 0, arguments);
278
278
  },
279
279
  findLast(e, n) {
280
- return F(this, "findLast", e, n, T, arguments);
280
+ return D(this, "findLast", e, n, O, arguments);
281
281
  },
282
282
  findLastIndex(e, n) {
283
- return F(this, "findLastIndex", e, n, void 0, arguments);
283
+ return D(this, "findLastIndex", e, n, void 0, arguments);
284
284
  },
285
285
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
286
286
  forEach(e, n) {
287
- return F(this, "forEach", e, n, void 0, arguments);
287
+ return D(this, "forEach", e, n, void 0, arguments);
288
288
  },
289
289
  includes(...e) {
290
- return Te(this, "includes", e);
290
+ return Oe(this, "includes", e);
291
291
  },
292
292
  indexOf(...e) {
293
- return Te(this, "indexOf", e);
293
+ return Oe(this, "indexOf", e);
294
294
  },
295
295
  join(e) {
296
- return W(this).join(e);
296
+ return J(this).join(e);
297
297
  },
298
298
  // keys() iterator only reads `length`, no optimisation required
299
299
  lastIndexOf(...e) {
300
- return Te(this, "lastIndexOf", e);
300
+ return Oe(this, "lastIndexOf", e);
301
301
  },
302
302
  map(e, n) {
303
- return F(this, "map", e, n, void 0, arguments);
303
+ return D(this, "map", e, n, void 0, arguments);
304
304
  },
305
305
  pop() {
306
- return te(this, "pop");
306
+ return ne(this, "pop");
307
307
  },
308
308
  push(...e) {
309
- return te(this, "push", e);
309
+ return ne(this, "push", e);
310
310
  },
311
311
  reduce(e, ...n) {
312
- return un(this, "reduce", e, n);
312
+ return cn(this, "reduce", e, n);
313
313
  },
314
314
  reduceRight(e, ...n) {
315
- return un(this, "reduceRight", e, n);
315
+ return cn(this, "reduceRight", e, n);
316
316
  },
317
317
  shift() {
318
- return te(this, "shift");
318
+ return ne(this, "shift");
319
319
  },
320
320
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
321
321
  some(e, n) {
322
- return F(this, "some", e, n, void 0, arguments);
322
+ return D(this, "some", e, n, void 0, arguments);
323
323
  },
324
324
  splice(...e) {
325
- return te(this, "splice", e);
325
+ return ne(this, "splice", e);
326
326
  },
327
327
  toReversed() {
328
- return W(this).toReversed();
328
+ return J(this).toReversed();
329
329
  },
330
330
  toSorted(e) {
331
- return W(this).toSorted(e);
331
+ return J(this).toSorted(e);
332
332
  },
333
333
  toSpliced(...e) {
334
- return W(this).toSpliced(...e);
334
+ return J(this).toSpliced(...e);
335
335
  },
336
336
  unshift(...e) {
337
- return te(this, "unshift", e);
337
+ return ne(this, "unshift", e);
338
338
  },
339
339
  values() {
340
- return Oe(this, "values", T);
340
+ return Ie(this, "values", O);
341
341
  }
342
342
  };
343
- function Oe(e, n, t) {
344
- const s = en(e), o = s[n]();
345
- return s !== e && !L(e) && (o._next = o.next, o.next = () => {
346
- const r = o._next();
347
- return r.value && (r.value = t(r.value)), r;
343
+ function Ie(e, n, t) {
344
+ const r = Xe(e), o = r[n]();
345
+ return r !== e && !H(e) && (o._next = o.next, o.next = () => {
346
+ const s = o._next();
347
+ return s.value && (s.value = t(s.value)), s;
348
348
  }), o;
349
349
  }
350
- const at = Array.prototype;
351
- function F(e, n, t, s, o, r) {
352
- const c = en(e), g = c !== e && !L(e), _ = c[n];
353
- if (_ !== at[n]) {
354
- const u = _.apply(e, r);
355
- return g ? T(u) : u;
356
- }
357
- let m = t;
358
- c !== e && (g ? m = function(u, i) {
359
- return t.call(this, T(u), i, e);
360
- } : t.length > 2 && (m = function(u, i) {
361
- return t.call(this, u, i, e);
350
+ const rt = Array.prototype;
351
+ function D(e, n, t, r, o, s) {
352
+ const p = Xe(e), _ = p !== e && !H(e), C = p[n];
353
+ if (C !== rt[n]) {
354
+ const a = C.apply(e, s);
355
+ return _ ? O(a) : a;
356
+ }
357
+ let d = t;
358
+ p !== e && (_ ? d = function(a, l) {
359
+ return t.call(this, O(a), l, e);
360
+ } : t.length > 2 && (d = function(a, l) {
361
+ return t.call(this, a, l, e);
362
362
  }));
363
- const a = _.call(c, m, s);
364
- return g && o ? o(a) : a;
365
- }
366
- function un(e, n, t, s) {
367
- const o = en(e);
368
- let r = t;
369
- return o !== e && (L(e) ? t.length > 3 && (r = function(c, g, _) {
370
- return t.call(this, c, g, _, e);
371
- }) : r = function(c, g, _) {
372
- return t.call(this, c, T(g), _, e);
373
- }), o[n](r, ...s);
374
- }
375
- function Te(e, n, t) {
376
- const s = j(e);
377
- x(s, "iterate", ie);
378
- const o = s[n](...t);
379
- return (o === -1 || o === !1) && bt(t[0]) ? (t[0] = j(t[0]), s[n](...t)) : o;
380
- }
381
- function te(e, n, t = []) {
382
- tt(), Ze();
383
- const s = j(e)[n].apply(e, t);
384
- return Qe(), ot(), s;
385
- }
386
- const it = /* @__PURE__ */ Bn("__proto__,__v_isRef,__isVue"), $n = new Set(
387
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(le)
363
+ const i = C.call(p, d, r);
364
+ return _ && o ? o(i) : i;
365
+ }
366
+ function cn(e, n, t, r) {
367
+ const o = Xe(e);
368
+ let s = t;
369
+ return o !== e && (H(e) ? t.length > 3 && (s = function(p, _, C) {
370
+ return t.call(this, p, _, C, e);
371
+ }) : s = function(p, _, C) {
372
+ return t.call(this, p, O(_), C, e);
373
+ }), o[n](s, ...r);
374
+ }
375
+ function Oe(e, n, t) {
376
+ const r = E(e);
377
+ T(r, "iterate", ae);
378
+ const o = r[n](...t);
379
+ return (o === -1 || o === !1) && $t(t[0]) ? (t[0] = E(t[0]), r[n](...t)) : o;
380
+ }
381
+ function ne(e, n, t = []) {
382
+ nt(), qe();
383
+ const r = E(e)[n].apply(e, t);
384
+ return Ze(), tt(), r;
385
+ }
386
+ const at = /* @__PURE__ */ Bn("__proto__,__v_isRef,__isVue"), Cn = new Set(
387
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ue)
388
388
  );
389
- function ct(e) {
390
- le(e) || (e = String(e));
391
- const n = j(this);
392
- return x(n, "has", e), n.hasOwnProperty(e);
389
+ function it(e) {
390
+ ue(e) || (e = String(e));
391
+ const n = E(this);
392
+ return T(n, "has", e), n.hasOwnProperty(e);
393
393
  }
394
- class bn {
394
+ class $n {
395
395
  constructor(n = !1, t = !1) {
396
396
  this._isReadonly = n, this._isShallow = t;
397
397
  }
398
- get(n, t, s) {
398
+ get(n, t, r) {
399
399
  if (t === "__v_skip") return n.__v_skip;
400
- const o = this._isReadonly, r = this._isShallow;
400
+ const o = this._isReadonly, s = this._isShallow;
401
401
  if (t === "__v_isReactive")
402
402
  return !o;
403
403
  if (t === "__v_isReadonly")
404
404
  return o;
405
405
  if (t === "__v_isShallow")
406
- return r;
406
+ return s;
407
407
  if (t === "__v_raw")
408
- return s === (o ? r ? En : yn : r ? _t : Nn).get(n) || // receiver is not the reactive proxy, but has the same prototype
408
+ return r === (o ? s ? yn : Nn : s ? gt : wn).get(n) || // receiver is not the reactive proxy, but has the same prototype
409
409
  // this means the receiver is a user proxy of the reactive proxy
410
- Object.getPrototypeOf(n) === Object.getPrototypeOf(s) ? n : void 0;
411
- const c = q(n);
410
+ Object.getPrototypeOf(n) === Object.getPrototypeOf(r) ? n : void 0;
411
+ const p = Y(n);
412
412
  if (!o) {
413
- let _;
414
- if (c && (_ = rt[t]))
415
- return _;
413
+ let C;
414
+ if (p && (C = st[t]))
415
+ return C;
416
416
  if (t === "hasOwnProperty")
417
- return ct;
417
+ return it;
418
418
  }
419
- const g = Reflect.get(
419
+ const _ = Reflect.get(
420
420
  n,
421
421
  t,
422
422
  // if this is a proxy wrapping a ref, return methods using the raw ref
423
423
  // as receiver so that we don't have to call `toRaw` on the ref in all
424
424
  // its class methods
425
- Q(n) ? n : s
425
+ Z(n) ? n : r
426
426
  );
427
- return (le(t) ? $n.has(t) : it(t)) || (o || x(n, "get", t), r) ? g : Q(g) ? c && qe(t) ? g : g.value : Se(g) ? o ? ge(g) : Sn(g) : g;
427
+ return (ue(t) ? Cn.has(t) : at(t)) || (o || T(n, "get", t), s) ? _ : Z(_) ? p && Ye(t) ? _ : _.value : je(_) ? o ? ve(_) : jn(_) : _;
428
428
  }
429
429
  }
430
- class ut extends bn {
430
+ class ct extends $n {
431
431
  constructor(n = !1) {
432
432
  super(!1, n);
433
433
  }
434
- set(n, t, s, o) {
435
- let r = n[t];
434
+ set(n, t, r, o) {
435
+ let s = n[t];
436
436
  if (!this._isShallow) {
437
- const _ = ne(r);
438
- if (!L(s) && !ne(s) && (r = j(r), s = j(s)), !q(n) && Q(r) && !Q(s))
439
- return _ ? !1 : (r.value = s, !0);
437
+ const C = ee(s);
438
+ if (!H(r) && !ee(r) && (s = E(s), r = E(r)), !Y(n) && Z(s) && !Z(r))
439
+ return C ? !1 : (s.value = r, !0);
440
440
  }
441
- const c = q(n) && qe(t) ? Number(t) < n.length : Re(n, t), g = Reflect.set(
441
+ const p = Y(n) && Ye(t) ? Number(t) < n.length : Ve(n, t), _ = Reflect.set(
442
442
  n,
443
443
  t,
444
- s,
445
- Q(n) ? n : o
444
+ r,
445
+ Z(n) ? n : o
446
446
  );
447
- return n === j(o) && (c ? Z(s, r) && R(n, "set", t, s, r) : R(n, "add", t, s)), g;
447
+ return n === E(o) && (p ? q(r, s) && V(n, "set", t, r, s) : V(n, "add", t, r)), _;
448
448
  }
449
449
  deleteProperty(n, t) {
450
- const s = Re(n, t), o = n[t], r = Reflect.deleteProperty(n, t);
451
- return r && s && R(n, "delete", t, void 0, o), r;
450
+ const r = Ve(n, t), o = n[t], s = Reflect.deleteProperty(n, t);
451
+ return s && r && V(n, "delete", t, void 0, o), s;
452
452
  }
453
453
  has(n, t) {
454
- const s = Reflect.has(n, t);
455
- return (!le(t) || !$n.has(t)) && x(n, "has", t), s;
454
+ const r = Reflect.has(n, t);
455
+ return (!ue(t) || !Cn.has(t)) && T(n, "has", t), r;
456
456
  }
457
457
  ownKeys(n) {
458
- return x(
458
+ return T(
459
459
  n,
460
460
  "iterate",
461
- q(n) ? "length" : U
461
+ Y(n) ? "length" : K
462
462
  ), Reflect.ownKeys(n);
463
463
  }
464
464
  }
465
- class wn extends bn {
465
+ class bn extends $n {
466
466
  constructor(n = !1) {
467
467
  super(!0, n);
468
468
  }
469
469
  set(n, t) {
470
- return process.env.NODE_ENV !== "production" && ee(
470
+ return process.env.NODE_ENV !== "production" && X(
471
471
  `Set operation on key "${String(t)}" failed: target is readonly.`,
472
472
  n
473
473
  ), !0;
474
474
  }
475
475
  deleteProperty(n, t) {
476
- return process.env.NODE_ENV !== "production" && ee(
476
+ return process.env.NODE_ENV !== "production" && X(
477
477
  `Delete operation on key "${String(t)}" failed: target is readonly.`,
478
478
  n
479
479
  ), !0;
480
480
  }
481
481
  }
482
- const lt = /* @__PURE__ */ new ut(), pt = /* @__PURE__ */ new wn(), dt = /* @__PURE__ */ new wn(!0), Me = (e) => e, de = (e) => Reflect.getPrototypeOf(e);
483
- function mt(e, n, t) {
484
- return function(...s) {
485
- const o = this.__v_raw, r = j(o), c = oe(r), g = e === "entries" || e === Symbol.iterator && c, _ = e === "keys" && c, m = o[e](...s), a = t ? Me : n ? Ke : T;
486
- return !n && x(
487
- r,
482
+ const ut = /* @__PURE__ */ new ct(), lt = /* @__PURE__ */ new bn(), pt = /* @__PURE__ */ new bn(!0), Le = (e) => e, pe = (e) => Reflect.getPrototypeOf(e);
483
+ function dt(e, n, t) {
484
+ return function(...r) {
485
+ const o = this.__v_raw, s = E(o), p = te(s), _ = e === "entries" || e === Symbol.iterator && p, C = e === "keys" && p, d = o[e](...r), i = t ? Le : n ? Me : O;
486
+ return !n && T(
487
+ s,
488
488
  "iterate",
489
- _ ? Le : U
489
+ C ? He : K
490
490
  ), {
491
491
  // iterator protocol
492
492
  next() {
493
- const { value: u, done: i } = m.next();
494
- return i ? { value: u, done: i } : {
495
- value: g ? [a(u[0]), a(u[1])] : a(u),
496
- done: i
493
+ const { value: a, done: l } = d.next();
494
+ return l ? { value: a, done: l } : {
495
+ value: _ ? [i(a[0]), i(a[1])] : i(a),
496
+ done: l
497
497
  };
498
498
  },
499
499
  // iterable protocol
@@ -503,80 +503,80 @@ function mt(e, n, t) {
503
503
  };
504
504
  };
505
505
  }
506
- function me(e) {
506
+ function de(e) {
507
507
  return function(...n) {
508
508
  if (process.env.NODE_ENV !== "production") {
509
509
  const t = n[0] ? `on key "${n[0]}" ` : "";
510
- ee(
511
- `${qn(e)} operation ${t}failed: target is readonly.`,
512
- j(this)
510
+ X(
511
+ `${Yn(e)} operation ${t}failed: target is readonly.`,
512
+ E(this)
513
513
  );
514
514
  }
515
515
  return e === "delete" ? !1 : e === "clear" ? void 0 : this;
516
516
  };
517
517
  }
518
- function ft(e, n) {
518
+ function mt(e, n) {
519
519
  const t = {
520
520
  get(o) {
521
- const r = this.__v_raw, c = j(r), g = j(o);
522
- e || (Z(o, g) && x(c, "get", o), x(c, "get", g));
523
- const { has: _ } = de(c), m = n ? Me : e ? Ke : T;
524
- if (_.call(c, o))
525
- return m(r.get(o));
526
- if (_.call(c, g))
527
- return m(r.get(g));
528
- r !== c && r.get(o);
521
+ const s = this.__v_raw, p = E(s), _ = E(o);
522
+ e || (q(o, _) && T(p, "get", o), T(p, "get", _));
523
+ const { has: C } = pe(p), d = n ? Le : e ? Me : O;
524
+ if (C.call(p, o))
525
+ return d(s.get(o));
526
+ if (C.call(p, _))
527
+ return d(s.get(_));
528
+ s !== p && s.get(o);
529
529
  },
530
530
  get size() {
531
531
  const o = this.__v_raw;
532
- return !e && x(j(o), "iterate", U), Reflect.get(o, "size", o);
532
+ return !e && T(E(o), "iterate", K), Reflect.get(o, "size", o);
533
533
  },
534
534
  has(o) {
535
- const r = this.__v_raw, c = j(r), g = j(o);
536
- return e || (Z(o, g) && x(c, "has", o), x(c, "has", g)), o === g ? r.has(o) : r.has(o) || r.has(g);
535
+ const s = this.__v_raw, p = E(s), _ = E(o);
536
+ return e || (q(o, _) && T(p, "has", o), T(p, "has", _)), o === _ ? s.has(o) : s.has(o) || s.has(_);
537
537
  },
538
- forEach(o, r) {
539
- const c = this, g = c.__v_raw, _ = j(g), m = n ? Me : e ? Ke : T;
540
- return !e && x(_, "iterate", U), g.forEach((a, u) => o.call(r, m(a), m(u), c));
538
+ forEach(o, s) {
539
+ const p = this, _ = p.__v_raw, C = E(_), d = n ? Le : e ? Me : O;
540
+ return !e && T(C, "iterate", K), _.forEach((i, a) => o.call(s, d(i), d(a), p));
541
541
  }
542
542
  };
543
- return Ve(
543
+ return Pe(
544
544
  t,
545
545
  e ? {
546
- add: me("add"),
547
- set: me("set"),
548
- delete: me("delete"),
549
- clear: me("clear")
546
+ add: de("add"),
547
+ set: de("set"),
548
+ delete: de("delete"),
549
+ clear: de("clear")
550
550
  } : {
551
551
  add(o) {
552
- !n && !L(o) && !ne(o) && (o = j(o));
553
- const r = j(this);
554
- return de(r).has.call(r, o) || (r.add(o), R(r, "add", o, o)), this;
552
+ !n && !H(o) && !ee(o) && (o = E(o));
553
+ const s = E(this);
554
+ return pe(s).has.call(s, o) || (s.add(o), V(s, "add", o, o)), this;
555
555
  },
556
- set(o, r) {
557
- !n && !L(r) && !ne(r) && (r = j(r));
558
- const c = j(this), { has: g, get: _ } = de(c);
559
- let m = g.call(c, o);
560
- m ? process.env.NODE_ENV !== "production" && ln(c, g, o) : (o = j(o), m = g.call(c, o));
561
- const a = _.call(c, o);
562
- return c.set(o, r), m ? Z(r, a) && R(c, "set", o, r, a) : R(c, "add", o, r), this;
556
+ set(o, s) {
557
+ !n && !H(s) && !ee(s) && (s = E(s));
558
+ const p = E(this), { has: _, get: C } = pe(p);
559
+ let d = _.call(p, o);
560
+ d ? process.env.NODE_ENV !== "production" && un(p, _, o) : (o = E(o), d = _.call(p, o));
561
+ const i = C.call(p, o);
562
+ return p.set(o, s), d ? q(s, i) && V(p, "set", o, s, i) : V(p, "add", o, s), this;
563
563
  },
564
564
  delete(o) {
565
- const r = j(this), { has: c, get: g } = de(r);
566
- let _ = c.call(r, o);
567
- _ ? process.env.NODE_ENV !== "production" && ln(r, c, o) : (o = j(o), _ = c.call(r, o));
568
- const m = g ? g.call(r, o) : void 0, a = r.delete(o);
569
- return _ && R(r, "delete", o, void 0, m), a;
565
+ const s = E(this), { has: p, get: _ } = pe(s);
566
+ let C = p.call(s, o);
567
+ C ? process.env.NODE_ENV !== "production" && un(s, p, o) : (o = E(o), C = p.call(s, o));
568
+ const d = _ ? _.call(s, o) : void 0, i = s.delete(o);
569
+ return C && V(s, "delete", o, void 0, d), i;
570
570
  },
571
571
  clear() {
572
- const o = j(this), r = o.size !== 0, c = process.env.NODE_ENV !== "production" ? oe(o) ? new Map(o) : new Set(o) : void 0, g = o.clear();
573
- return r && R(
572
+ const o = E(this), s = o.size !== 0, p = process.env.NODE_ENV !== "production" ? te(o) ? new Map(o) : new Set(o) : void 0, _ = o.clear();
573
+ return s && V(
574
574
  o,
575
575
  "clear",
576
576
  void 0,
577
577
  void 0,
578
- c
579
- ), g;
578
+ p
579
+ ), _;
580
580
  }
581
581
  }
582
582
  ), [
@@ -585,35 +585,35 @@ function ft(e, n) {
585
585
  "entries",
586
586
  Symbol.iterator
587
587
  ].forEach((o) => {
588
- t[o] = mt(o, e, n);
588
+ t[o] = dt(o, e, n);
589
589
  }), t;
590
590
  }
591
- function nn(e, n) {
592
- const t = ft(e, n);
593
- return (s, o, r) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? s : Reflect.get(
594
- Re(t, o) && o in s ? t : s,
591
+ function en(e, n) {
592
+ const t = mt(e, n);
593
+ return (r, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r : Reflect.get(
594
+ Ve(t, o) && o in r ? t : r,
595
595
  o,
596
- r
596
+ s
597
597
  );
598
598
  }
599
- const ht = {
600
- get: /* @__PURE__ */ nn(!1, !1)
599
+ const ft = {
600
+ get: /* @__PURE__ */ en(!1, !1)
601
+ }, ht = {
602
+ get: /* @__PURE__ */ en(!0, !1)
601
603
  }, vt = {
602
- get: /* @__PURE__ */ nn(!0, !1)
603
- }, gt = {
604
- get: /* @__PURE__ */ nn(!0, !0)
604
+ get: /* @__PURE__ */ en(!0, !0)
605
605
  };
606
- function ln(e, n, t) {
607
- const s = j(t);
608
- if (s !== t && n.call(e, s)) {
609
- const o = fn(e);
610
- ee(
606
+ function un(e, n, t) {
607
+ const r = E(t);
608
+ if (r !== t && n.call(e, r)) {
609
+ const o = mn(e);
610
+ X(
611
611
  `Reactive ${o} contains both the raw and reactive versions of the same object${o === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
612
612
  );
613
613
  }
614
614
  }
615
- const Nn = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap();
616
- function Ct(e) {
615
+ const wn = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap();
616
+ function _t(e) {
617
617
  switch (e) {
618
618
  case "Object":
619
619
  case "Array":
@@ -627,20 +627,29 @@ function Ct(e) {
627
627
  return 0;
628
628
  }
629
629
  }
630
- function $t(e) {
631
- return e.__v_skip || !Object.isExtensible(e) ? 0 : Ct(fn(e));
630
+ function Ct(e) {
631
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : _t(mn(e));
632
632
  }
633
- function Sn(e) {
634
- return ne(e) ? e : tn(
633
+ function jn(e) {
634
+ return ee(e) ? e : nn(
635
635
  e,
636
636
  !1,
637
+ ut,
638
+ ft,
639
+ wn
640
+ );
641
+ }
642
+ function ve(e) {
643
+ return nn(
644
+ e,
645
+ !0,
637
646
  lt,
638
647
  ht,
639
648
  Nn
640
649
  );
641
650
  }
642
- function ge(e) {
643
- return tn(
651
+ function fe(e) {
652
+ return nn(
644
653
  e,
645
654
  !0,
646
655
  pt,
@@ -648,62 +657,53 @@ function ge(e) {
648
657
  yn
649
658
  );
650
659
  }
651
- function he(e) {
652
- return tn(
653
- e,
654
- !0,
655
- dt,
656
- gt,
657
- En
658
- );
659
- }
660
- function tn(e, n, t, s, o) {
661
- if (!Se(e))
662
- return process.env.NODE_ENV !== "production" && ee(
660
+ function nn(e, n, t, r, o) {
661
+ if (!je(e))
662
+ return process.env.NODE_ENV !== "production" && X(
663
663
  `value cannot be made ${n ? "readonly" : "reactive"}: ${String(
664
664
  e
665
665
  )}`
666
666
  ), e;
667
667
  if (e.__v_raw && !(n && e.__v_isReactive))
668
668
  return e;
669
- const r = o.get(e);
670
- if (r)
671
- return r;
672
- const c = $t(e);
673
- if (c === 0)
669
+ const s = o.get(e);
670
+ if (s)
671
+ return s;
672
+ const p = Ct(e);
673
+ if (p === 0)
674
674
  return e;
675
- const g = new Proxy(
675
+ const _ = new Proxy(
676
676
  e,
677
- c === 2 ? s : t
677
+ p === 2 ? r : t
678
678
  );
679
- return o.set(e, g), g;
679
+ return o.set(e, _), _;
680
680
  }
681
- function ne(e) {
681
+ function ee(e) {
682
682
  return !!(e && e.__v_isReadonly);
683
683
  }
684
- function L(e) {
684
+ function H(e) {
685
685
  return !!(e && e.__v_isShallow);
686
686
  }
687
- function bt(e) {
687
+ function $t(e) {
688
688
  return e ? !!e.__v_raw : !1;
689
689
  }
690
- function j(e) {
690
+ function E(e) {
691
691
  const n = e && e.__v_raw;
692
- return n ? j(n) : e;
692
+ return n ? E(n) : e;
693
693
  }
694
- const T = (e) => Se(e) ? Sn(e) : e, Ke = (e) => Se(e) ? ge(e) : e;
695
- function Q(e) {
694
+ const O = (e) => je(e) ? jn(e) : e, Me = (e) => je(e) ? ve(e) : e;
695
+ function Z(e) {
696
696
  return e ? e.__v_isRef === !0 : !1;
697
697
  }
698
- function _e(e) {
699
- return wt(e, !1);
698
+ function ge(e) {
699
+ return bt(e, !1);
700
700
  }
701
- function wt(e, n) {
702
- return Q(e) ? e : new Nt(e, n);
701
+ function bt(e, n) {
702
+ return Z(e) ? e : new wt(e, n);
703
703
  }
704
- class Nt {
704
+ class wt {
705
705
  constructor(n, t) {
706
- this.dep = new Xe(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = t ? n : j(n), this._value = t ? n : T(n), this.__v_isShallow = t;
706
+ this.dep = new Qe(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = t ? n : E(n), this._value = t ? n : O(n), this.__v_isShallow = t;
707
707
  }
708
708
  get value() {
709
709
  return process.env.NODE_ENV !== "production" ? this.dep.track({
@@ -713,8 +713,8 @@ class Nt {
713
713
  }) : this.dep.track(), this._value;
714
714
  }
715
715
  set value(n) {
716
- const t = this._rawValue, s = this.__v_isShallow || L(n) || ne(n);
717
- n = s ? n : j(n), Z(n, t) && (this._rawValue = n, this._value = s ? n : T(n), process.env.NODE_ENV !== "production" ? this.dep.trigger({
716
+ const t = this._rawValue, r = this.__v_isShallow || H(n) || ee(n);
717
+ n = r ? n : E(n), q(n, t) && (this._rawValue = n, this._value = r ? n : O(n), process.env.NODE_ENV !== "production" ? this.dep.trigger({
718
718
  target: this,
719
719
  type: "set",
720
720
  key: "value",
@@ -723,9 +723,9 @@ class Nt {
723
723
  }) : this.dep.trigger());
724
724
  }
725
725
  }
726
- class yt {
727
- constructor(n, t, s) {
728
- this.fn = n, this.setter = t, this._value = void 0, this.dep = new Xe(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = ae - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = s;
726
+ class Nt {
727
+ constructor(n, t, r) {
728
+ this.fn = n, this.setter = t, this._value = void 0, this.dep = new Qe(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = re - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = r;
729
729
  }
730
730
  /**
731
731
  * @internal
@@ -733,7 +733,7 @@ class yt {
733
733
  notify() {
734
734
  if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
735
735
  A !== this)
736
- return Zn(this, !0), !0;
736
+ return qn(this, !0), !0;
737
737
  process.env.NODE_ENV;
738
738
  }
739
739
  get value() {
@@ -742,119 +742,119 @@ class yt {
742
742
  type: "get",
743
743
  key: "value"
744
744
  }) : this.dep.track();
745
- return vn(this), n && (n.version = this.dep.version), this._value;
745
+ return hn(this), n && (n.version = this.dep.version), this._value;
746
746
  }
747
747
  set value(n) {
748
- this.setter ? this.setter(n) : process.env.NODE_ENV !== "production" && ee("Write operation failed: computed value is readonly");
748
+ this.setter ? this.setter(n) : process.env.NODE_ENV !== "production" && X("Write operation failed: computed value is readonly");
749
749
  }
750
750
  }
751
- function Ue(e, n, t = !1) {
752
- let s, o;
753
- Gn(e) ? s = e : (s = e.get, o = e.set);
754
- const r = new yt(s, o, t);
755
- return process.env.NODE_ENV, r;
751
+ function Ke(e, n, t = !1) {
752
+ let r, o;
753
+ Un(e) ? r = e : (r = e.get, o = e.set);
754
+ const s = new Nt(r, o, t);
755
+ return process.env.NODE_ENV, s;
756
756
  }
757
- const Et = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
758
- let St = (e = 21) => {
757
+ const yt = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
758
+ let jt = (e = 21) => {
759
759
  let n = "", t = crypto.getRandomValues(new Uint8Array(e |= 0));
760
760
  for (; e--; )
761
- n += Et[t[e] & 63];
761
+ n += yt[t[e] & 63];
762
762
  return n;
763
763
  };
764
- function jt(e, n = !0, t = !1) {
765
- const s = _e();
764
+ function Et(e, n = !0, t = !1) {
765
+ const r = ge();
766
766
  let o;
767
- const r = _e(!1);
768
- let c = () => {
767
+ const s = ge(!1);
768
+ let p = () => {
769
769
  };
770
- const g = new Proxy(e, {
771
- apply: function(a, u, i) {
772
- let p;
770
+ const _ = new Proxy(e, {
771
+ apply: function(i, a, l) {
772
+ let f;
773
773
  try {
774
- p = a(...i);
774
+ f = i(...l);
775
775
  } catch (b) {
776
- p = b;
776
+ f = b;
777
777
  }
778
- if (p instanceof Error) {
779
- if (s.value = p, o = p, n)
780
- throw c(), p;
778
+ if (f instanceof Error) {
779
+ if (r.value = f, o = f, n)
780
+ throw p(), f;
781
781
  } else
782
- r.value = !0, s.value = void 0, o = !0, c();
782
+ s.value = !0, r.value = void 0, o = !0, p();
783
783
  }
784
- }), _ = () => {
785
- }, m = new Proxy(
786
- (a) => {
787
- s.value = a;
784
+ }), C = () => {
785
+ }, d = new Proxy(
786
+ (i) => {
787
+ r.value = i;
788
788
  },
789
789
  {
790
- apply: function(a, u, i) {
791
- a(...i), _(...i);
790
+ apply: function(i, a, l) {
791
+ i(...l), C(...l);
792
792
  }
793
793
  }
794
794
  );
795
795
  return {
796
- promise: new Promise((a, u) => {
796
+ promise: new Promise((i, a) => {
797
797
  if (n && o instanceof Error) {
798
- u(o);
798
+ a(o);
799
799
  return;
800
800
  } else if (o === !0) {
801
- a();
801
+ i();
802
802
  return;
803
803
  }
804
- let i;
805
- t && (i = setTimeout(() => {
806
- const p = new Error("timeout!");
807
- s.value = p, n && u(p);
808
- }, t)), c = () => {
809
- i && (clearTimeout(i), i = void 0), a();
804
+ let l;
805
+ t && (l = setTimeout(() => {
806
+ const f = new Error("timeout!");
807
+ r.value = f, n && a(f);
808
+ }, t)), p = () => {
809
+ l && (clearTimeout(l), l = void 0), i();
810
810
  };
811
811
  }),
812
- callback: g,
813
- onError: m,
814
- resolved: Ue(() => r.value),
815
- error: Ue(() => s.value)
812
+ callback: _,
813
+ onError: d,
814
+ resolved: Ke(() => s.value),
815
+ error: Ke(() => r.value)
816
816
  };
817
817
  }
818
818
  function Be() {
819
- return St();
819
+ return jt();
820
820
  }
821
821
  function At() {
822
- const e = {}, n = {}, t = /* @__PURE__ */ new WeakMap(), s = {};
822
+ const e = {}, n = {}, t = /* @__PURE__ */ new WeakMap(), r = {};
823
823
  return Object.freeze({
824
824
  registerAgg(o) {
825
825
  if (o.isInitialized.value)
826
826
  throw new Error("Agg must register before initialized");
827
- if (s[o.__id])
827
+ if (r[o.__id])
828
828
  throw new Error("Agg already registered");
829
829
  o.type === "MultiInstance" && o.api.events.destroyed.watchPublish(() => {
830
- delete s[o.__id];
831
- }), s[o.__id] = o;
832
- const r = [];
833
- for (const c of Object.values(e))
834
- c.mount({ api: o.api, __aggId: o.__id, isInitialized: o.isInitialized });
835
- for (const c of Object.values(n))
836
- c.mount({ api: o.api, __aggId: o.__id }), r.push(c.__id);
837
- t.set(o, r);
830
+ delete r[o.__id];
831
+ }), r[o.__id] = o;
832
+ const s = [];
833
+ for (const p of Object.values(e))
834
+ p.mount({ api: o.api, __aggId: o.__id, isInitialized: o.isInitialized });
835
+ for (const p of Object.values(n))
836
+ p.mount({ api: o.api, __aggId: o.__id }), s.push(p.__id);
837
+ t.set(o, s);
838
838
  },
839
839
  createSetupPlugin(o) {
840
- let r;
841
- return o instanceof Function ? r = o() : r = o, Object.freeze({
840
+ let s;
841
+ return o instanceof Function ? s = o() : s = o, Object.freeze({
842
842
  __id: Be(),
843
843
  type: "Setup",
844
- mount(c) {
845
- if (c.isInitialized.value)
844
+ mount(p) {
845
+ if (p.isInitialized.value)
846
846
  throw new Error("Can not setup after initialized");
847
- r.mount({ api: c.api, __aggId: c.__aggId });
847
+ s.mount({ api: p.api, __aggId: p.__aggId });
848
848
  }
849
849
  });
850
850
  },
851
851
  createHotSwapPlugin(o) {
852
- let r;
853
- return o instanceof Function ? r = o() : r = o, Object.freeze({
852
+ let s;
853
+ return o instanceof Function ? s = o() : s = o, Object.freeze({
854
854
  __id: Be(),
855
855
  type: "HotSwap",
856
- mount: r.mount,
857
- unmount: r.unmount
856
+ mount: s.mount,
857
+ unmount: s.unmount
858
858
  });
859
859
  },
860
860
  registerPlugin(o) {
@@ -862,16 +862,16 @@ function At() {
862
862
  if (e[o.__id])
863
863
  throw new Error("Plugin already registered");
864
864
  e[o.__id] = o;
865
- for (const r in s)
865
+ for (const s in r)
866
866
  o.mount({
867
- api: s[r].api,
868
- __aggId: s[r].__id,
869
- isInitialized: s[r].isInitialized
867
+ api: r[s].api,
868
+ __aggId: r[s].__id,
869
+ isInitialized: r[s].isInitialized
870
870
  });
871
871
  } else if (o.type === "HotSwap") {
872
872
  n[o.__id] = o;
873
- for (const r in s)
874
- t.has(s[r]) && !t.get(s[r]).includes(o.__id) && (o.mount({ api: s[r].api, __aggId: s[r].__id }), t.get(s[r]).push(o.__id));
873
+ for (const s in r)
874
+ t.has(r[s]) && !t.get(r[s]).includes(o.__id) && (o.mount({ api: r[s].api, __aggId: r[s].__id }), t.get(r[s]).push(o.__id));
875
875
  } else
876
876
  isNever(o);
877
877
  },
@@ -879,93 +879,93 @@ function At() {
879
879
  if (o.type === "Setup")
880
880
  throw new Error("Can not unregister setup plugin");
881
881
  if (o.type === "HotSwap") {
882
- for (const r in s)
883
- t.has(s[r]) && t.get(s[r]).includes(o.__id) && o.unmount({ api: s[r].api, __aggId: s[r].__id });
882
+ for (const s in r)
883
+ t.has(r[s]) && t.get(r[s]).includes(o.__id) && o.unmount({ api: r[s].api, __aggId: r[s].__id });
884
884
  delete n[o.__id];
885
885
  } else
886
886
  isNever(o);
887
887
  }
888
888
  });
889
889
  }
890
- function It(e) {
890
+ function St(e) {
891
891
  return At();
892
892
  }
893
- function Ot(e) {
894
- const n = Tt(e);
895
- return he({
893
+ function It(e) {
894
+ const n = Ot(e);
895
+ return fe({
896
896
  states: n.states,
897
897
  commands: n.commands,
898
898
  events: n.events
899
899
  });
900
900
  }
901
- function Tt(e) {
901
+ function Ot(e) {
902
902
  const n = e.states;
903
- for (const c of Object.keys(e.states))
904
- n[c] = ge(n[c]);
905
- const t = he(e.states), s = ge(e.commands), o = {}, r = e.events;
906
- for (const c in e.events)
907
- o[c] = r[c].api;
908
- return he({
903
+ for (const p of Object.keys(e.states))
904
+ n[p] = ve(n[p]);
905
+ const t = fe(e.states), r = ve(e.commands), o = {}, s = e.events;
906
+ for (const p in e.events)
907
+ o[p] = s[p].api;
908
+ return fe({
909
909
  states: t,
910
- commands: s,
911
- events: he(o),
910
+ commands: r,
911
+ events: fe(o),
912
912
  destroy: e.destroy
913
913
  });
914
914
  }
915
- function xt(e) {
915
+ function Tt(e) {
916
916
  const {
917
917
  callback: n,
918
918
  onError: t,
919
- promise: s,
919
+ promise: r,
920
920
  resolved: o
921
- } = jt(() => {
921
+ } = Et(() => {
922
922
  }, !1, 5e3);
923
- function r(u) {
923
+ function s(a) {
924
924
  if (o.value === !0)
925
925
  throw new Error("Agg already initialized");
926
- c.push(u());
926
+ p.push(a());
927
927
  }
928
- const c = [], g = e({
929
- onCreated(u) {
930
- Promise.resolve().then(u);
928
+ const p = [], _ = e({
929
+ onCreated(a) {
930
+ Promise.resolve().then(a);
931
931
  },
932
- onBeforeInitialize: r,
933
- isInitialized: Ue(() => o.value),
934
- untilInitialized: s
932
+ onBeforeInitialize: s,
933
+ isInitialized: Ke(() => o.value),
934
+ untilInitialized: r
935
935
  });
936
936
  setTimeout(
937
- () => Promise.all(c).then(() => {
937
+ () => Promise.all(p).then(() => {
938
938
  n();
939
- }).catch((u) => {
940
- t(u);
939
+ }).catch((a) => {
940
+ t(a);
941
941
  }),
942
942
  0
943
943
  );
944
- const _ = g.states || {}, m = g.commands || {}, a = g.events || {};
944
+ const C = _.states || {}, d = _.commands || {}, i = _.events || {};
945
945
  return {
946
946
  __id: Be(),
947
947
  type: "Singleton",
948
- api: Ot({
949
- states: _,
950
- commands: m,
951
- events: a,
948
+ api: It({
949
+ states: C,
950
+ commands: d,
951
+ events: i,
952
952
  destroy: () => {
953
953
  }
954
954
  }),
955
955
  isInitialized: o,
956
956
  async untilInitialized() {
957
- return await s.catch((u) => {
958
- throw new Error(`Failed to initialize Agg: ${u.message}
959
- Stack : ${u.stack || "unkown"}`);
957
+ return await r.catch((a) => {
958
+ throw new Error(`Failed to initialize Agg: ${a.message}
959
+ Stack : ${a.stack || "unkown"}`);
960
960
  });
961
961
  }
962
962
  };
963
963
  }
964
- let fe;
965
- function Dt(e) {
966
- return xt(() => {
967
- const n = _e(e), t = _e({});
968
- let s = () => [], o = () => [], r = () => [], c = () => [], g = () => [], _ = () => [], m = () => [];
964
+ let me;
965
+ function xt(e) {
966
+ return Tt(() => {
967
+ const n = ge(e), t = ge({});
968
+ let r = () => [], o = () => [], s = () => [], p = () => [], _ = () => [], C = () => [], d = () => [];
969
969
  return {
970
970
  states: {
971
971
  designer: n,
@@ -973,124 +973,124 @@ function Dt(e) {
973
973
  },
974
974
  commands: {
975
975
  genCodeFiles() {
976
- return m();
976
+ return d();
977
977
  },
978
978
  clearCaches() {
979
979
  },
980
- setContext(a) {
981
- t.value = a;
980
+ setContext(i) {
981
+ t.value = i;
982
982
  },
983
- setDomainDesigner(a) {
984
- this.clearCaches(), n.value = a;
983
+ setDomainDesigner(i) {
984
+ this.clearCaches(), n.value = i;
985
985
  },
986
- _genInfoCode(...a) {
987
- return s(...a);
986
+ _genInfoCode(...i) {
987
+ return r(...i);
988
988
  },
989
- _setInfoCodeProvider(a) {
990
- s = a;
989
+ _setInfoCodeProvider(i) {
990
+ r = i;
991
991
  },
992
- _genCommandCode(...a) {
993
- return o(...a);
992
+ _genCommandCode(...i) {
993
+ return o(...i);
994
994
  },
995
- _setCommandCodeProvider(a) {
996
- o = a;
995
+ _setCommandCodeProvider(i) {
996
+ o = i;
997
997
  },
998
- _genFacadeCommandCode(...a) {
999
- return r(...a);
998
+ _genFacadeCommandCode(...i) {
999
+ return s(...i);
1000
1000
  },
1001
- _setFacadeCommandCodeProvider(a) {
1002
- r = a;
1001
+ _setFacadeCommandCodeProvider(i) {
1002
+ s = i;
1003
1003
  },
1004
- _genAggCode(...a) {
1005
- return c(...a);
1004
+ _genAggCode(...i) {
1005
+ return p(...i);
1006
1006
  },
1007
- _setAggCodeProvider(a) {
1008
- c = a;
1007
+ _setAggCodeProvider(i) {
1008
+ p = i;
1009
1009
  },
1010
- _genEventCode(...a) {
1011
- return g(...a);
1010
+ _genEventCode(...i) {
1011
+ return _(...i);
1012
1012
  },
1013
- _setEventCodeProvider(a) {
1014
- g = a;
1013
+ _setEventCodeProvider(i) {
1014
+ _ = i;
1015
1015
  },
1016
- _genReadModelCode(...a) {
1017
- return _(...a);
1016
+ _genReadModelCode(...i) {
1017
+ return C(...i);
1018
1018
  },
1019
- _setReadModelCodeProvider(a) {
1020
- _ = a;
1019
+ _setReadModelCodeProvider(i) {
1020
+ C = i;
1021
1021
  },
1022
- _setCodeFileProvider(a) {
1023
- m = a;
1022
+ _setCodeFileProvider(i) {
1023
+ d = i;
1024
1024
  }
1025
1025
  }
1026
1026
  };
1027
1027
  });
1028
1028
  }
1029
- const pe = It();
1029
+ const le = St();
1030
1030
  function Ao(e) {
1031
- if (!fe) {
1031
+ if (!me) {
1032
1032
  if (!e)
1033
1033
  throw new Error("designer is required");
1034
- fe = Dt(e), pe.registerAgg(fe);
1034
+ me = xt(e), le.registerAgg(me);
1035
1035
  }
1036
- return fe.api;
1036
+ return me.api;
1037
1037
  }
1038
- function je(e) {
1038
+ function Ee(e) {
1039
1039
  return e && e._attributes && e._attributes.rule === "Info";
1040
1040
  }
1041
- function Pt(e) {
1041
+ function kt(e) {
1042
1042
  return e && e._attributes && e._attributes.rule === "Agg";
1043
1043
  }
1044
- function Ft(e) {
1044
+ function Dt(e) {
1045
1045
  return e && e._attributes && e._attributes.rule === "Command";
1046
1046
  }
1047
- function kt(e) {
1047
+ function Ft(e) {
1048
1048
  return e && e._attributes && e._attributes.rule === "FacadeCommand";
1049
1049
  }
1050
- function Vt(e) {
1050
+ function Pt(e) {
1051
1051
  return e && e._attributes && e._attributes.rule === "Event";
1052
1052
  }
1053
- function Rt(e) {
1053
+ function Vt(e) {
1054
1054
  return e && e._attributes && e._attributes.rule === "ReadModel";
1055
1055
  }
1056
- const ze = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
1056
+ const Ge = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
1057
1057
  process.env.NODE_ENV !== "production" && Object.freeze([]);
1058
- const Ht = () => {
1059
- }, Lt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
1060
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Ae = Object.assign, P = Array.isArray, J = (e) => typeof e == "function", M = (e) => typeof e == "string", Mt = (e) => typeof e == "symbol", B = (e) => e !== null && typeof e == "object";
1061
- let pn;
1062
- const Ie = () => pn || (pn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
1063
- function on(e) {
1064
- if (P(e)) {
1058
+ const Rt = () => {
1059
+ }, Ht = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
1060
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Ae = Object.assign, k = Array.isArray, z = (e) => typeof e == "function", L = (e) => typeof e == "string", Lt = (e) => typeof e == "symbol", B = (e) => e !== null && typeof e == "object";
1061
+ let ln;
1062
+ const Se = () => ln || (ln = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
1063
+ function tn(e) {
1064
+ if (k(e)) {
1065
1065
  const n = {};
1066
1066
  for (let t = 0; t < e.length; t++) {
1067
- const s = e[t], o = M(s) ? zt(s) : on(s);
1067
+ const r = e[t], o = L(r) ? Gt(r) : tn(r);
1068
1068
  if (o)
1069
- for (const r in o)
1070
- n[r] = o[r];
1069
+ for (const s in o)
1070
+ n[s] = o[s];
1071
1071
  }
1072
1072
  return n;
1073
- } else if (M(e) || B(e))
1073
+ } else if (L(e) || B(e))
1074
1074
  return e;
1075
1075
  }
1076
- const Kt = /;(?![^(]*\))/g, Ut = /:([^]+)/, Bt = /\/\*[^]*?\*\//g;
1077
- function zt(e) {
1076
+ const Mt = /;(?![^(]*\))/g, Kt = /:([^]+)/, Bt = /\/\*[^]*?\*\//g;
1077
+ function Gt(e) {
1078
1078
  const n = {};
1079
- return e.replace(Bt, "").split(Kt).forEach((t) => {
1079
+ return e.replace(Bt, "").split(Mt).forEach((t) => {
1080
1080
  if (t) {
1081
- const s = t.split(Ut);
1082
- s.length > 1 && (n[s[0].trim()] = s[1].trim());
1081
+ const r = t.split(Kt);
1082
+ r.length > 1 && (n[r[0].trim()] = r[1].trim());
1083
1083
  }
1084
1084
  }), n;
1085
1085
  }
1086
- function sn(e) {
1086
+ function on(e) {
1087
1087
  let n = "";
1088
- if (M(e))
1088
+ if (L(e))
1089
1089
  n = e;
1090
- else if (P(e))
1090
+ else if (k(e))
1091
1091
  for (let t = 0; t < e.length; t++) {
1092
- const s = sn(e[t]);
1093
- s && (n += s + " ");
1092
+ const r = on(e[t]);
1093
+ r && (n += r + " ");
1094
1094
  }
1095
1095
  else if (B(e))
1096
1096
  for (const t in e)
@@ -1107,25 +1107,25 @@ Symbol(
1107
1107
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
1108
1108
  );
1109
1109
  new Set(
1110
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Mt)
1110
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Lt)
1111
1111
  );
1112
- function jn(e) {
1113
- return Ge(e) ? jn(e.__v_raw) : !!(e && e.__v_isReactive);
1112
+ function En(e) {
1113
+ return Ue(e) ? En(e.__v_raw) : !!(e && e.__v_isReactive);
1114
1114
  }
1115
- function Ge(e) {
1115
+ function Ue(e) {
1116
1116
  return !!(e && e.__v_isReadonly);
1117
1117
  }
1118
- function xe(e) {
1118
+ function Te(e) {
1119
1119
  return !!(e && e.__v_isShallow);
1120
1120
  }
1121
- function Je(e) {
1121
+ function ze(e) {
1122
1122
  return e ? !!e.__v_raw : !1;
1123
1123
  }
1124
- function z(e) {
1124
+ function G(e) {
1125
1125
  const n = e && e.__v_raw;
1126
- return n ? z(n) : e;
1126
+ return n ? G(n) : e;
1127
1127
  }
1128
- function rn(e) {
1128
+ function sn(e) {
1129
1129
  return e ? e.__v_isRef === !0 : !1;
1130
1130
  }
1131
1131
  /**
@@ -1133,46 +1133,46 @@ function rn(e) {
1133
1133
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1134
1134
  * @license MIT
1135
1135
  **/
1136
- const G = [];
1137
- function Gt(e) {
1138
- G.push(e);
1139
- }
1140
- function Jt() {
1141
- G.pop();
1142
- }
1143
- let De = !1;
1144
- function ce(e, ...n) {
1145
- if (De) return;
1146
- De = !0;
1147
- const t = G.length ? G[G.length - 1].component : null, s = t && t.appContext.config.warnHandler, o = Wt();
1148
- if (s)
1149
- an(
1150
- s,
1136
+ const U = [];
1137
+ function Ut(e) {
1138
+ U.push(e);
1139
+ }
1140
+ function zt() {
1141
+ U.pop();
1142
+ }
1143
+ let xe = !1;
1144
+ function ie(e, ...n) {
1145
+ if (xe) return;
1146
+ xe = !0;
1147
+ const t = U.length ? U[U.length - 1].component : null, r = t && t.appContext.config.warnHandler, o = Jt();
1148
+ if (r)
1149
+ rn(
1150
+ r,
1151
1151
  t,
1152
1152
  11,
1153
1153
  [
1154
1154
  // eslint-disable-next-line no-restricted-syntax
1155
- e + n.map((r) => {
1156
- var c, g;
1157
- return (g = (c = r.toString) == null ? void 0 : c.call(r)) != null ? g : JSON.stringify(r);
1155
+ e + n.map((s) => {
1156
+ var p, _;
1157
+ return (_ = (p = s.toString) == null ? void 0 : p.call(s)) != null ? _ : JSON.stringify(s);
1158
1158
  }).join(""),
1159
1159
  t && t.proxy,
1160
1160
  o.map(
1161
- ({ vnode: r }) => `at <${Mn(t, r.type)}>`
1161
+ ({ vnode: s }) => `at <${Ln(t, s.type)}>`
1162
1162
  ).join(`
1163
1163
  `),
1164
1164
  o
1165
1165
  ]
1166
1166
  );
1167
1167
  else {
1168
- const r = [`[Vue warn]: ${e}`, ...n];
1169
- o.length && r.push(`
1170
- `, ...Yt(o));
1168
+ const s = [`[Vue warn]: ${e}`, ...n];
1169
+ o.length && s.push(`
1170
+ `, ...Wt(o));
1171
1171
  }
1172
- De = !1;
1172
+ xe = !1;
1173
1173
  }
1174
- function Wt() {
1175
- let e = G[G.length - 1];
1174
+ function Jt() {
1175
+ let e = U[U.length - 1];
1176
1176
  if (!e)
1177
1177
  return [];
1178
1178
  const n = [];
@@ -1182,36 +1182,36 @@ function Wt() {
1182
1182
  vnode: e,
1183
1183
  recurseCount: 0
1184
1184
  });
1185
- const s = e.component && e.component.parent;
1186
- e = s && s.vnode;
1185
+ const r = e.component && e.component.parent;
1186
+ e = r && r.vnode;
1187
1187
  }
1188
1188
  return n;
1189
1189
  }
1190
- function Yt(e) {
1190
+ function Wt(e) {
1191
1191
  const n = [];
1192
- return e.forEach((t, s) => {
1193
- n.push(...s === 0 ? [] : [`
1194
- `], ...qt(t));
1192
+ return e.forEach((t, r) => {
1193
+ n.push(...r === 0 ? [] : [`
1194
+ `], ...Yt(t));
1195
1195
  }), n;
1196
1196
  }
1197
- function qt({ vnode: e, recurseCount: n }) {
1198
- const t = n > 0 ? `... (${n} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, o = ` at <${Mn(
1197
+ function Yt({ vnode: e, recurseCount: n }) {
1198
+ const t = n > 0 ? `... (${n} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, o = ` at <${Ln(
1199
1199
  e.component,
1200
1200
  e.type,
1201
- s
1202
- )}`, r = ">" + t;
1203
- return e.props ? [o, ...Zt(e.props), r] : [o + r];
1201
+ r
1202
+ )}`, s = ">" + t;
1203
+ return e.props ? [o, ...qt(e.props), s] : [o + s];
1204
1204
  }
1205
- function Zt(e) {
1205
+ function qt(e) {
1206
1206
  const n = [], t = Object.keys(e);
1207
- return t.slice(0, 3).forEach((s) => {
1208
- n.push(...An(s, e[s]));
1207
+ return t.slice(0, 3).forEach((r) => {
1208
+ n.push(...An(r, e[r]));
1209
1209
  }), t.length > 3 && n.push(" ..."), n;
1210
1210
  }
1211
1211
  function An(e, n, t) {
1212
- return M(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : rn(n) ? (n = An(e, z(n.value), !0), t ? n : [`${e}=Ref<`, n, ">"]) : J(n) ? [`${e}=fn${n.name ? `<${n.name}>` : ""}`] : (n = z(n), t ? n : [`${e}=`, n]);
1212
+ return L(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : sn(n) ? (n = An(e, G(n.value), !0), t ? n : [`${e}=Ref<`, n, ">"]) : z(n) ? [`${e}=fn${n.name ? `<${n.name}>` : ""}`] : (n = G(n), t ? n : [`${e}=`, n]);
1213
1213
  }
1214
- const In = {
1214
+ const Sn = {
1215
1215
  sp: "serverPrefetch hook",
1216
1216
  bc: "beforeCreate hook",
1217
1217
  c: "created hook",
@@ -1244,101 +1244,101 @@ const In = {
1244
1244
  15: "component update",
1245
1245
  16: "app unmount cleanup function"
1246
1246
  };
1247
- function an(e, n, t, s) {
1247
+ function rn(e, n, t, r) {
1248
1248
  try {
1249
- return s ? e(...s) : e();
1249
+ return r ? e(...r) : e();
1250
1250
  } catch (o) {
1251
- On(o, n, t);
1251
+ In(o, n, t);
1252
1252
  }
1253
1253
  }
1254
- function On(e, n, t, s = !0) {
1255
- const o = n ? n.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: c } = n && n.appContext.config || ze;
1254
+ function In(e, n, t, r = !0) {
1255
+ const o = n ? n.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: p } = n && n.appContext.config || Ge;
1256
1256
  if (n) {
1257
- let g = n.parent;
1258
- const _ = n.proxy, m = process.env.NODE_ENV !== "production" ? In[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
1259
- for (; g; ) {
1260
- const a = g.ec;
1261
- if (a) {
1262
- for (let u = 0; u < a.length; u++)
1263
- if (a[u](e, _, m) === !1)
1257
+ let _ = n.parent;
1258
+ const C = n.proxy, d = process.env.NODE_ENV !== "production" ? Sn[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
1259
+ for (; _; ) {
1260
+ const i = _.ec;
1261
+ if (i) {
1262
+ for (let a = 0; a < i.length; a++)
1263
+ if (i[a](e, C, d) === !1)
1264
1264
  return;
1265
1265
  }
1266
- g = g.parent;
1266
+ _ = _.parent;
1267
1267
  }
1268
- if (r) {
1269
- an(r, null, 10, [
1268
+ if (s) {
1269
+ rn(s, null, 10, [
1270
1270
  e,
1271
- _,
1272
- m
1271
+ C,
1272
+ d
1273
1273
  ]);
1274
1274
  return;
1275
1275
  }
1276
1276
  }
1277
- Qt(e, t, o, s, c);
1277
+ Zt(e, t, o, r, p);
1278
1278
  }
1279
- function Qt(e, n, t, s = !0, o = !1) {
1279
+ function Zt(e, n, t, r = !0, o = !1) {
1280
1280
  if (process.env.NODE_ENV !== "production") {
1281
- const r = In[n];
1282
- if (t && Gt(t), ce(`Unhandled error${r ? ` during execution of ${r}` : ""}`), t && Jt(), s)
1281
+ const s = Sn[n];
1282
+ if (t && Ut(t), ie(`Unhandled error${s ? ` during execution of ${s}` : ""}`), t && zt(), r)
1283
1283
  throw e;
1284
1284
  } else if (o)
1285
1285
  throw e;
1286
1286
  }
1287
- const D = [];
1288
- let k = -1;
1289
- const X = [];
1290
- let V = null, Y = 0;
1291
- const Xt = /* @__PURE__ */ Promise.resolve();
1292
- let We = null;
1293
- const eo = 100;
1294
- function no(e) {
1295
- let n = k + 1, t = D.length;
1287
+ const x = [];
1288
+ let F = -1;
1289
+ const Q = [];
1290
+ let P = null, W = 0;
1291
+ const Qt = /* @__PURE__ */ Promise.resolve();
1292
+ let Je = null;
1293
+ const Xt = 100;
1294
+ function eo(e) {
1295
+ let n = F + 1, t = x.length;
1296
1296
  for (; n < t; ) {
1297
- const s = n + t >>> 1, o = D[s], r = ue(o);
1298
- r < e || r === e && o.flags & 2 ? n = s + 1 : t = s;
1297
+ const r = n + t >>> 1, o = x[r], s = ce(o);
1298
+ s < e || s === e && o.flags & 2 ? n = r + 1 : t = r;
1299
1299
  }
1300
1300
  return n;
1301
1301
  }
1302
- function to(e) {
1302
+ function no(e) {
1303
1303
  if (!(e.flags & 1)) {
1304
- const n = ue(e), t = D[D.length - 1];
1304
+ const n = ce(e), t = x[x.length - 1];
1305
1305
  !t || // fast path when the job id is larger than the tail
1306
- !(e.flags & 2) && n >= ue(t) ? D.push(e) : D.splice(no(n), 0, e), e.flags |= 1, Tn();
1306
+ !(e.flags & 2) && n >= ce(t) ? x.push(e) : x.splice(eo(n), 0, e), e.flags |= 1, On();
1307
1307
  }
1308
1308
  }
1309
- function Tn() {
1310
- We || (We = Xt.then(xn));
1309
+ function On() {
1310
+ Je || (Je = Qt.then(Tn));
1311
1311
  }
1312
- function oo(e) {
1313
- P(e) ? X.push(...e) : V && e.id === -1 ? V.splice(Y + 1, 0, e) : e.flags & 1 || (X.push(e), e.flags |= 1), Tn();
1312
+ function to(e) {
1313
+ k(e) ? Q.push(...e) : P && e.id === -1 ? P.splice(W + 1, 0, e) : e.flags & 1 || (Q.push(e), e.flags |= 1), On();
1314
1314
  }
1315
- function so(e) {
1316
- if (X.length) {
1317
- const n = [...new Set(X)].sort(
1318
- (t, s) => ue(t) - ue(s)
1315
+ function oo(e) {
1316
+ if (Q.length) {
1317
+ const n = [...new Set(Q)].sort(
1318
+ (t, r) => ce(t) - ce(r)
1319
1319
  );
1320
- if (X.length = 0, V) {
1321
- V.push(...n);
1320
+ if (Q.length = 0, P) {
1321
+ P.push(...n);
1322
1322
  return;
1323
1323
  }
1324
- for (V = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), Y = 0; Y < V.length; Y++) {
1325
- const t = V[Y];
1326
- process.env.NODE_ENV !== "production" && Dn(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
1324
+ for (P = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), W = 0; W < P.length; W++) {
1325
+ const t = P[W];
1326
+ process.env.NODE_ENV !== "production" && xn(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
1327
1327
  }
1328
- V = null, Y = 0;
1328
+ P = null, W = 0;
1329
1329
  }
1330
1330
  }
1331
- const ue = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1332
- function xn(e) {
1331
+ const ce = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1332
+ function Tn(e) {
1333
1333
  process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
1334
- const n = process.env.NODE_ENV !== "production" ? (t) => Dn(e, t) : Ht;
1334
+ const n = process.env.NODE_ENV !== "production" ? (t) => xn(e, t) : Rt;
1335
1335
  try {
1336
- for (k = 0; k < D.length; k++) {
1337
- const t = D[k];
1336
+ for (F = 0; F < x.length; F++) {
1337
+ const t = x[F];
1338
1338
  if (t && !(t.flags & 8)) {
1339
1339
  if (process.env.NODE_ENV !== "production" && n(t))
1340
1340
  continue;
1341
- t.flags & 4 && (t.flags &= -2), an(
1341
+ t.flags & 4 && (t.flags &= -2), rn(
1342
1342
  t,
1343
1343
  t.i,
1344
1344
  t.i ? 15 : 14
@@ -1346,18 +1346,18 @@ function xn(e) {
1346
1346
  }
1347
1347
  }
1348
1348
  } finally {
1349
- for (; k < D.length; k++) {
1350
- const t = D[k];
1349
+ for (; F < x.length; F++) {
1350
+ const t = x[F];
1351
1351
  t && (t.flags &= -2);
1352
1352
  }
1353
- k = -1, D.length = 0, so(e), We = null, (D.length || X.length) && xn(e);
1353
+ F = -1, x.length = 0, oo(e), Je = null, (x.length || Q.length) && Tn(e);
1354
1354
  }
1355
1355
  }
1356
- function Dn(e, n) {
1356
+ function xn(e, n) {
1357
1357
  const t = e.get(n) || 0;
1358
- if (t > eo) {
1359
- const s = n.i, o = s && Ln(s.type);
1360
- return On(
1358
+ if (t > Xt) {
1359
+ const r = n.i, o = r && Hn(r.type);
1360
+ return In(
1361
1361
  `Maximum recursive updates exceeded${o ? ` in component <${o}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1362
1362
  null,
1363
1363
  10
@@ -1365,50 +1365,50 @@ function Dn(e, n) {
1365
1365
  }
1366
1366
  return e.set(n, t + 1), !1;
1367
1367
  }
1368
- const Pe = /* @__PURE__ */ new Map();
1369
- process.env.NODE_ENV !== "production" && (Ie().__VUE_HMR_RUNTIME__ = {
1370
- createRecord: Fe(ro),
1371
- rerender: Fe(ao),
1372
- reload: Fe(io)
1368
+ const ke = /* @__PURE__ */ new Map();
1369
+ process.env.NODE_ENV !== "production" && (Se().__VUE_HMR_RUNTIME__ = {
1370
+ createRecord: De(so),
1371
+ rerender: De(ro),
1372
+ reload: De(ao)
1373
1373
  });
1374
- const Ce = /* @__PURE__ */ new Map();
1375
- function ro(e, n) {
1376
- return Ce.has(e) ? !1 : (Ce.set(e, {
1377
- initialDef: $e(n),
1374
+ const _e = /* @__PURE__ */ new Map();
1375
+ function so(e, n) {
1376
+ return _e.has(e) ? !1 : (_e.set(e, {
1377
+ initialDef: Ce(n),
1378
1378
  instances: /* @__PURE__ */ new Set()
1379
1379
  }), !0);
1380
1380
  }
1381
- function $e(e) {
1382
- return Kn(e) ? e.__vccOpts : e;
1381
+ function Ce(e) {
1382
+ return Mn(e) ? e.__vccOpts : e;
1383
1383
  }
1384
- function ao(e, n) {
1385
- const t = Ce.get(e);
1386
- t && (t.initialDef.render = n, [...t.instances].forEach((s) => {
1387
- n && (s.render = n, $e(s.type).render = n), s.renderCache = [], s.update();
1384
+ function ro(e, n) {
1385
+ const t = _e.get(e);
1386
+ t && (t.initialDef.render = n, [...t.instances].forEach((r) => {
1387
+ n && (r.render = n, Ce(r.type).render = n), r.renderCache = [], r.update();
1388
1388
  }));
1389
1389
  }
1390
- function io(e, n) {
1391
- const t = Ce.get(e);
1390
+ function ao(e, n) {
1391
+ const t = _e.get(e);
1392
1392
  if (!t) return;
1393
- n = $e(n), dn(t.initialDef, n);
1394
- const s = [...t.instances];
1395
- for (let o = 0; o < s.length; o++) {
1396
- const r = s[o], c = $e(r.type);
1397
- let g = Pe.get(c);
1398
- g || (c !== t.initialDef && dn(c, n), Pe.set(c, g = /* @__PURE__ */ new Set())), g.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (g.add(r), r.ceReload(n.styles), g.delete(r)) : r.parent ? to(() => {
1399
- r.parent.update(), g.delete(r);
1400
- }) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" && window.location.reload(), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(c);
1401
- }
1402
- oo(() => {
1403
- Pe.clear();
1393
+ n = Ce(n), pn(t.initialDef, n);
1394
+ const r = [...t.instances];
1395
+ for (let o = 0; o < r.length; o++) {
1396
+ const s = r[o], p = Ce(s.type);
1397
+ let _ = ke.get(p);
1398
+ _ || (p !== t.initialDef && pn(p, n), ke.set(p, _ = /* @__PURE__ */ new Set())), _.add(s), s.appContext.propsCache.delete(s.type), s.appContext.emitsCache.delete(s.type), s.appContext.optionsCache.delete(s.type), s.ceReload ? (_.add(s), s.ceReload(n.styles), _.delete(s)) : s.parent ? no(() => {
1399
+ s.parent.update(), _.delete(s);
1400
+ }) : s.appContext.reload ? s.appContext.reload() : typeof window < "u" && window.location.reload(), s.root.ce && s !== s.root && s.root.ce._removeChildStyle(p);
1401
+ }
1402
+ to(() => {
1403
+ ke.clear();
1404
1404
  });
1405
1405
  }
1406
- function dn(e, n) {
1406
+ function pn(e, n) {
1407
1407
  Ae(e, n);
1408
1408
  for (const t in e)
1409
1409
  t !== "__file" && !(t in n) && delete e[t];
1410
1410
  }
1411
- function Fe(e) {
1411
+ function De(e) {
1412
1412
  return (n, t) => {
1413
1413
  try {
1414
1414
  return e(n, t);
@@ -1416,35 +1416,35 @@ function Fe(e) {
1416
1416
  }
1417
1417
  };
1418
1418
  }
1419
- let be = null, co = null;
1420
- const uo = (e) => e.__isTeleport;
1421
- function Pn(e, n) {
1422
- e.shapeFlag & 6 && e.component ? (e.transition = n, Pn(e.component.subTree, n)) : e.shapeFlag & 128 ? (e.ssContent.transition = n.clone(e.ssContent), e.ssFallback.transition = n.clone(e.ssFallback)) : e.transition = n;
1419
+ let $e = null, io = null;
1420
+ const co = (e) => e.__isTeleport;
1421
+ function kn(e, n) {
1422
+ e.shapeFlag & 6 && e.component ? (e.transition = n, kn(e.component.subTree, n)) : e.shapeFlag & 128 ? (e.ssContent.transition = n.clone(e.ssContent), e.ssFallback.transition = n.clone(e.ssFallback)) : e.transition = n;
1423
1423
  }
1424
- Ie().requestIdleCallback;
1425
- Ie().cancelIdleCallback;
1426
- const lo = Symbol.for("v-ndc");
1424
+ Se().requestIdleCallback;
1425
+ Se().cancelIdleCallback;
1426
+ const uo = Symbol.for("v-ndc");
1427
1427
  process.env.NODE_ENV;
1428
- const po = {}, Fn = (e) => Object.getPrototypeOf(e) === po, mo = (e) => e.__isSuspense, kn = Symbol.for("v-fgt"), fo = Symbol.for("v-txt"), ho = Symbol.for("v-cmt");
1429
- function vo(e) {
1428
+ const lo = {}, Dn = (e) => Object.getPrototypeOf(e) === lo, po = (e) => e.__isSuspense, Fn = Symbol.for("v-fgt"), mo = Symbol.for("v-txt"), fo = Symbol.for("v-cmt");
1429
+ function ho(e) {
1430
1430
  return e ? e.__v_isVNode === !0 : !1;
1431
1431
  }
1432
- const go = (...e) => Rn(
1432
+ const vo = (...e) => Vn(
1433
1433
  ...e
1434
- ), Vn = ({ key: e }) => e ?? null, ve = ({
1434
+ ), Pn = ({ key: e }) => e ?? null, he = ({
1435
1435
  ref: e,
1436
1436
  ref_key: n,
1437
1437
  ref_for: t
1438
- }) => (typeof e == "number" && (e = "" + e), e != null ? M(e) || rn(e) || J(e) ? { i: be, r: e, k: n, f: !!t } : e : null);
1439
- function _o(e, n = null, t = null, s = 0, o = null, r = e === kn ? 0 : 1, c = !1, g = !1) {
1440
- const _ = {
1438
+ }) => (typeof e == "number" && (e = "" + e), e != null ? L(e) || sn(e) || z(e) ? { i: $e, r: e, k: n, f: !!t } : e : null);
1439
+ function go(e, n = null, t = null, r = 0, o = null, s = e === Fn ? 0 : 1, p = !1, _ = !1) {
1440
+ const C = {
1441
1441
  __v_isVNode: !0,
1442
1442
  __v_skip: !0,
1443
1443
  type: e,
1444
1444
  props: n,
1445
- key: n && Vn(n),
1446
- ref: n && ve(n),
1447
- scopeId: co,
1445
+ key: n && Pn(n),
1446
+ ref: n && he(n),
1447
+ scopeId: io,
1448
1448
  slotScopeIds: null,
1449
1449
  children: t,
1450
1450
  component: null,
@@ -1459,67 +1459,67 @@ function _o(e, n = null, t = null, s = 0, o = null, r = e === kn ? 0 : 1, c = !1
1459
1459
  targetStart: null,
1460
1460
  targetAnchor: null,
1461
1461
  staticCount: 0,
1462
- shapeFlag: r,
1463
- patchFlag: s,
1462
+ shapeFlag: s,
1463
+ patchFlag: r,
1464
1464
  dynamicProps: o,
1465
1465
  dynamicChildren: null,
1466
1466
  appContext: null,
1467
- ctx: be
1467
+ ctx: $e
1468
1468
  };
1469
- return g ? (cn(_, t), r & 128 && e.normalize(_)) : t && (_.shapeFlag |= M(t) ? 8 : 16), process.env.NODE_ENV !== "production" && _.key !== _.key && ce("VNode created with invalid key (NaN). VNode type:", _.type), _;
1469
+ return _ ? (an(C, t), s & 128 && e.normalize(C)) : t && (C.shapeFlag |= L(t) ? 8 : 16), process.env.NODE_ENV !== "production" && C.key !== C.key && ie("VNode created with invalid key (NaN). VNode type:", C.type), C;
1470
1470
  }
1471
- const Co = process.env.NODE_ENV !== "production" ? go : Rn;
1472
- function Rn(e, n = null, t = null, s = 0, o = null, r = !1) {
1473
- if ((!e || e === lo) && (process.env.NODE_ENV !== "production" && !e && ce(`Invalid vnode type when creating vnode: ${e}.`), e = ho), vo(e)) {
1474
- const g = we(
1471
+ const _o = process.env.NODE_ENV !== "production" ? vo : Vn;
1472
+ function Vn(e, n = null, t = null, r = 0, o = null, s = !1) {
1473
+ if ((!e || e === uo) && (process.env.NODE_ENV !== "production" && !e && ie(`Invalid vnode type when creating vnode: ${e}.`), e = fo), ho(e)) {
1474
+ const _ = be(
1475
1475
  e,
1476
1476
  n,
1477
1477
  !0
1478
1478
  /* mergeRef: true */
1479
1479
  );
1480
- return t && cn(g, t), g.patchFlag = -2, g;
1480
+ return t && an(_, t), _.patchFlag = -2, _;
1481
1481
  }
1482
- if (Kn(e) && (e = e.__vccOpts), n) {
1483
- n = $o(n);
1484
- let { class: g, style: _ } = n;
1485
- g && !M(g) && (n.class = sn(g)), B(_) && (Je(_) && !P(_) && (_ = Ae({}, _)), n.style = on(_));
1482
+ if (Mn(e) && (e = e.__vccOpts), n) {
1483
+ n = Co(n);
1484
+ let { class: _, style: C } = n;
1485
+ _ && !L(_) && (n.class = on(_)), B(C) && (ze(C) && !k(C) && (C = Ae({}, C)), n.style = tn(C));
1486
1486
  }
1487
- const c = M(e) ? 1 : mo(e) ? 128 : uo(e) ? 64 : B(e) ? 4 : J(e) ? 2 : 0;
1488
- return process.env.NODE_ENV !== "production" && c & 4 && Je(e) && (e = z(e), ce(
1487
+ const p = L(e) ? 1 : po(e) ? 128 : co(e) ? 64 : B(e) ? 4 : z(e) ? 2 : 0;
1488
+ return process.env.NODE_ENV !== "production" && p & 4 && ze(e) && (e = G(e), ie(
1489
1489
  "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
1490
1490
  `
1491
1491
  Component that was made reactive: `,
1492
1492
  e
1493
- )), _o(
1493
+ )), go(
1494
1494
  e,
1495
1495
  n,
1496
1496
  t,
1497
- s,
1498
- o,
1499
- c,
1500
1497
  r,
1498
+ o,
1499
+ p,
1500
+ s,
1501
1501
  !0
1502
1502
  );
1503
1503
  }
1504
- function $o(e) {
1505
- return e ? Je(e) || Fn(e) ? Ae({}, e) : e : null;
1504
+ function Co(e) {
1505
+ return e ? ze(e) || Dn(e) ? Ae({}, e) : e : null;
1506
1506
  }
1507
- function we(e, n, t = !1, s = !1) {
1508
- const { props: o, ref: r, patchFlag: c, children: g, transition: _ } = e, m = n ? wo(o || {}, n) : o, a = {
1507
+ function be(e, n, t = !1, r = !1) {
1508
+ const { props: o, ref: s, patchFlag: p, children: _, transition: C } = e, d = n ? bo(o || {}, n) : o, i = {
1509
1509
  __v_isVNode: !0,
1510
1510
  __v_skip: !0,
1511
1511
  type: e.type,
1512
- props: m,
1513
- key: m && Vn(m),
1512
+ props: d,
1513
+ key: d && Pn(d),
1514
1514
  ref: n && n.ref ? (
1515
1515
  // #2078 in the case of <component :is="vnode" ref="extra"/>
1516
1516
  // if the vnode itself already has a ref, cloneVNode will need to merge
1517
1517
  // the refs so the single vnode can be set on multiple refs
1518
- t && r ? P(r) ? r.concat(ve(n)) : [r, ve(n)] : ve(n)
1519
- ) : r,
1518
+ t && s ? k(s) ? s.concat(he(n)) : [s, he(n)] : he(n)
1519
+ ) : s,
1520
1520
  scopeId: e.scopeId,
1521
1521
  slotScopeIds: e.slotScopeIds,
1522
- children: process.env.NODE_ENV !== "production" && c === -1 && P(g) ? g.map(Hn) : g,
1522
+ children: process.env.NODE_ENV !== "production" && p === -1 && k(_) ? _.map(Rn) : _,
1523
1523
  target: e.target,
1524
1524
  targetStart: e.targetStart,
1525
1525
  targetAnchor: e.targetAnchor,
@@ -1529,75 +1529,75 @@ function we(e, n, t = !1, s = !1) {
1529
1529
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1530
1530
  // note: preserve flag for fragments since they use the flag for children
1531
1531
  // fast paths only.
1532
- patchFlag: n && e.type !== kn ? c === -1 ? 16 : c | 16 : c,
1532
+ patchFlag: n && e.type !== Fn ? p === -1 ? 16 : p | 16 : p,
1533
1533
  dynamicProps: e.dynamicProps,
1534
1534
  dynamicChildren: e.dynamicChildren,
1535
1535
  appContext: e.appContext,
1536
1536
  dirs: e.dirs,
1537
- transition: _,
1537
+ transition: C,
1538
1538
  // These should technically only be non-null on mounted VNodes. However,
1539
1539
  // they *should* be copied for kept-alive vnodes. So we just always copy
1540
1540
  // them since them being non-null during a mount doesn't affect the logic as
1541
1541
  // they will simply be overwritten.
1542
1542
  component: e.component,
1543
1543
  suspense: e.suspense,
1544
- ssContent: e.ssContent && we(e.ssContent),
1545
- ssFallback: e.ssFallback && we(e.ssFallback),
1544
+ ssContent: e.ssContent && be(e.ssContent),
1545
+ ssFallback: e.ssFallback && be(e.ssFallback),
1546
1546
  el: e.el,
1547
1547
  anchor: e.anchor,
1548
1548
  ctx: e.ctx,
1549
1549
  ce: e.ce
1550
1550
  };
1551
- return _ && s && Pn(
1552
- a,
1553
- _.clone(a)
1554
- ), a;
1551
+ return C && r && kn(
1552
+ i,
1553
+ C.clone(i)
1554
+ ), i;
1555
1555
  }
1556
- function Hn(e) {
1557
- const n = we(e);
1558
- return P(e.children) && (n.children = e.children.map(Hn)), n;
1556
+ function Rn(e) {
1557
+ const n = be(e);
1558
+ return k(e.children) && (n.children = e.children.map(Rn)), n;
1559
1559
  }
1560
- function bo(e = " ", n = 0) {
1561
- return Co(fo, null, e, n);
1560
+ function $o(e = " ", n = 0) {
1561
+ return _o(mo, null, e, n);
1562
1562
  }
1563
- function cn(e, n) {
1563
+ function an(e, n) {
1564
1564
  let t = 0;
1565
- const { shapeFlag: s } = e;
1565
+ const { shapeFlag: r } = e;
1566
1566
  if (n == null)
1567
1567
  n = null;
1568
- else if (P(n))
1568
+ else if (k(n))
1569
1569
  t = 16;
1570
1570
  else if (typeof n == "object")
1571
- if (s & 65) {
1571
+ if (r & 65) {
1572
1572
  const o = n.default;
1573
- o && (o._c && (o._d = !1), cn(e, o()), o._c && (o._d = !0));
1573
+ o && (o._c && (o._d = !1), an(e, o()), o._c && (o._d = !0));
1574
1574
  return;
1575
1575
  } else
1576
- t = 32, !n._ && !Fn(n) && (n._ctx = be);
1577
- else J(n) ? (n = { default: n, _ctx: be }, t = 32) : (n = String(n), s & 64 ? (t = 16, n = [bo(n)]) : t = 8);
1576
+ t = 32, !n._ && !Dn(n) && (n._ctx = $e);
1577
+ else z(n) ? (n = { default: n, _ctx: $e }, t = 32) : (n = String(n), r & 64 ? (t = 16, n = [$o(n)]) : t = 8);
1578
1578
  e.children = n, e.shapeFlag |= t;
1579
1579
  }
1580
- function wo(...e) {
1580
+ function bo(...e) {
1581
1581
  const n = {};
1582
1582
  for (let t = 0; t < e.length; t++) {
1583
- const s = e[t];
1584
- for (const o in s)
1583
+ const r = e[t];
1584
+ for (const o in r)
1585
1585
  if (o === "class")
1586
- n.class !== s.class && (n.class = sn([n.class, s.class]));
1586
+ n.class !== r.class && (n.class = on([n.class, r.class]));
1587
1587
  else if (o === "style")
1588
- n.style = on([n.style, s.style]);
1589
- else if (Lt(o)) {
1590
- const r = n[o], c = s[o];
1591
- c && r !== c && !(P(r) && r.includes(c)) && (n[o] = r ? [].concat(r, c) : c);
1592
- } else o !== "" && (n[o] = s[o]);
1588
+ n.style = tn([n.style, r.style]);
1589
+ else if (Ht(o)) {
1590
+ const s = n[o], p = r[o];
1591
+ p && s !== p && !(k(s) && s.includes(p)) && (n[o] = s ? [].concat(s, p) : p);
1592
+ } else o !== "" && (n[o] = r[o]);
1593
1593
  }
1594
1594
  return n;
1595
1595
  }
1596
1596
  {
1597
- const e = Ie(), n = (t, s) => {
1597
+ const e = Se(), n = (t, r) => {
1598
1598
  let o;
1599
- return (o = e[t]) || (o = e[t] = []), o.push(s), (r) => {
1600
- o.length > 1 ? o.forEach((c) => c(r)) : o[0](r);
1599
+ return (o = e[t]) || (o = e[t] = []), o.push(r), (s) => {
1600
+ o.length > 1 ? o.forEach((p) => p(s)) : o[0](s);
1601
1601
  };
1602
1602
  };
1603
1603
  n(
@@ -1609,94 +1609,94 @@ function wo(...e) {
1609
1609
  );
1610
1610
  }
1611
1611
  process.env.NODE_ENV;
1612
- const No = /(?:^|[-_])(\w)/g, yo = (e) => e.replace(No, (n) => n.toUpperCase()).replace(/[-_]/g, "");
1613
- function Ln(e, n = !0) {
1614
- return J(e) ? e.displayName || e.name : e.name || n && e.__name;
1612
+ const wo = /(?:^|[-_])(\w)/g, No = (e) => e.replace(wo, (n) => n.toUpperCase()).replace(/[-_]/g, "");
1613
+ function Hn(e, n = !0) {
1614
+ return z(e) ? e.displayName || e.name : e.name || n && e.__name;
1615
1615
  }
1616
- function Mn(e, n, t = !1) {
1617
- let s = Ln(n);
1618
- if (!s && n.__file) {
1616
+ function Ln(e, n, t = !1) {
1617
+ let r = Hn(n);
1618
+ if (!r && n.__file) {
1619
1619
  const o = n.__file.match(/([^/\\]+)\.\w+$/);
1620
- o && (s = o[1]);
1620
+ o && (r = o[1]);
1621
1621
  }
1622
- if (!s && e && e.parent) {
1623
- const o = (r) => {
1624
- for (const c in r)
1625
- if (r[c] === n)
1626
- return c;
1622
+ if (!r && e && e.parent) {
1623
+ const o = (s) => {
1624
+ for (const p in s)
1625
+ if (s[p] === n)
1626
+ return p;
1627
1627
  };
1628
- s = o(
1628
+ r = o(
1629
1629
  e.components || e.parent.type.components
1630
1630
  ) || o(e.appContext.components);
1631
1631
  }
1632
- return s ? yo(s) : t ? "App" : "Anonymous";
1632
+ return r ? No(r) : t ? "App" : "Anonymous";
1633
1633
  }
1634
- function Kn(e) {
1635
- return J(e) && "__vccOpts" in e;
1634
+ function Mn(e) {
1635
+ return z(e) && "__vccOpts" in e;
1636
1636
  }
1637
- function Eo() {
1637
+ function yo() {
1638
1638
  if (process.env.NODE_ENV === "production" || typeof window > "u")
1639
1639
  return;
1640
- const e = { style: "color:#3ba776" }, n = { style: "color:#1677ff" }, t = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, o = {
1640
+ const e = { style: "color:#3ba776" }, n = { style: "color:#1677ff" }, t = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, o = {
1641
1641
  __vue_custom_formatter: !0,
1642
- header(u) {
1643
- return B(u) ? u.__isVue ? ["div", e, "VueInstance"] : rn(u) ? [
1642
+ header(a) {
1643
+ return B(a) ? a.__isVue ? ["div", e, "VueInstance"] : sn(a) ? [
1644
1644
  "div",
1645
1645
  {},
1646
- ["span", e, a(u)],
1646
+ ["span", e, i(a)],
1647
1647
  "<",
1648
1648
  // avoid debugger accessing value affecting behavior
1649
- g("_value" in u ? u._value : u),
1649
+ _("_value" in a ? a._value : a),
1650
1650
  ">"
1651
- ] : jn(u) ? [
1651
+ ] : En(a) ? [
1652
1652
  "div",
1653
1653
  {},
1654
- ["span", e, xe(u) ? "ShallowReactive" : "Reactive"],
1654
+ ["span", e, Te(a) ? "ShallowReactive" : "Reactive"],
1655
1655
  "<",
1656
- g(u),
1657
- `>${Ge(u) ? " (readonly)" : ""}`
1658
- ] : Ge(u) ? [
1656
+ _(a),
1657
+ `>${Ue(a) ? " (readonly)" : ""}`
1658
+ ] : Ue(a) ? [
1659
1659
  "div",
1660
1660
  {},
1661
- ["span", e, xe(u) ? "ShallowReadonly" : "Readonly"],
1661
+ ["span", e, Te(a) ? "ShallowReadonly" : "Readonly"],
1662
1662
  "<",
1663
- g(u),
1663
+ _(a),
1664
1664
  ">"
1665
1665
  ] : null : null;
1666
1666
  },
1667
- hasBody(u) {
1668
- return u && u.__isVue;
1667
+ hasBody(a) {
1668
+ return a && a.__isVue;
1669
1669
  },
1670
- body(u) {
1671
- if (u && u.__isVue)
1670
+ body(a) {
1671
+ if (a && a.__isVue)
1672
1672
  return [
1673
1673
  "div",
1674
1674
  {},
1675
- ...r(u.$)
1675
+ ...s(a.$)
1676
1676
  ];
1677
1677
  }
1678
1678
  };
1679
- function r(u) {
1680
- const i = [];
1681
- u.type.props && u.props && i.push(c("props", z(u.props))), u.setupState !== ze && i.push(c("setup", u.setupState)), u.data !== ze && i.push(c("data", z(u.data)));
1682
- const p = _(u, "computed");
1683
- p && i.push(c("computed", p));
1684
- const b = _(u, "inject");
1685
- return b && i.push(c("injected", b)), i.push([
1679
+ function s(a) {
1680
+ const l = [];
1681
+ a.type.props && a.props && l.push(p("props", G(a.props))), a.setupState !== Ge && l.push(p("setup", a.setupState)), a.data !== Ge && l.push(p("data", G(a.data)));
1682
+ const f = C(a, "computed");
1683
+ f && l.push(p("computed", f));
1684
+ const b = C(a, "inject");
1685
+ return b && l.push(p("injected", b)), l.push([
1686
1686
  "div",
1687
1687
  {},
1688
1688
  [
1689
1689
  "span",
1690
1690
  {
1691
- style: s.style + ";opacity:0.66"
1691
+ style: r.style + ";opacity:0.66"
1692
1692
  },
1693
1693
  "$ (internal): "
1694
1694
  ],
1695
- ["object", { object: u }]
1696
- ]), i;
1695
+ ["object", { object: a }]
1696
+ ]), l;
1697
1697
  }
1698
- function c(u, i) {
1699
- return i = Ae({}, i), Object.keys(i).length ? [
1698
+ function p(a, l) {
1699
+ return l = Ae({}, l), Object.keys(l).length ? [
1700
1700
  "div",
1701
1701
  { style: "line-height:1.25em;margin-bottom:0.6em" },
1702
1702
  [
@@ -1704,41 +1704,41 @@ function Eo() {
1704
1704
  {
1705
1705
  style: "color:#476582"
1706
1706
  },
1707
- u
1707
+ a
1708
1708
  ],
1709
1709
  [
1710
1710
  "div",
1711
1711
  {
1712
1712
  style: "padding-left:1.25em"
1713
1713
  },
1714
- ...Object.keys(i).map((p) => [
1714
+ ...Object.keys(l).map((f) => [
1715
1715
  "div",
1716
1716
  {},
1717
- ["span", s, p + ": "],
1718
- g(i[p], !1)
1717
+ ["span", r, f + ": "],
1718
+ _(l[f], !1)
1719
1719
  ])
1720
1720
  ]
1721
1721
  ] : ["span", {}];
1722
1722
  }
1723
- function g(u, i = !0) {
1724
- return typeof u == "number" ? ["span", n, u] : typeof u == "string" ? ["span", t, JSON.stringify(u)] : typeof u == "boolean" ? ["span", s, u] : B(u) ? ["object", { object: i ? z(u) : u }] : ["span", t, String(u)];
1723
+ function _(a, l = !0) {
1724
+ return typeof a == "number" ? ["span", n, a] : typeof a == "string" ? ["span", t, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r, a] : B(a) ? ["object", { object: l ? G(a) : a }] : ["span", t, String(a)];
1725
1725
  }
1726
- function _(u, i) {
1727
- const p = u.type;
1728
- if (J(p))
1726
+ function C(a, l) {
1727
+ const f = a.type;
1728
+ if (z(f))
1729
1729
  return;
1730
1730
  const b = {};
1731
- for (const C in u.ctx)
1732
- m(p, C, i) && (b[C] = u.ctx[C]);
1731
+ for (const g in a.ctx)
1732
+ d(f, g, l) && (b[g] = a.ctx[g]);
1733
1733
  return b;
1734
1734
  }
1735
- function m(u, i, p) {
1736
- const b = u[p];
1737
- if (P(b) && b.includes(i) || B(b) && i in b || u.extends && m(u.extends, i, p) || u.mixins && u.mixins.some((C) => m(C, i, p)))
1735
+ function d(a, l, f) {
1736
+ const b = a[f];
1737
+ if (k(b) && b.includes(l) || B(b) && l in b || a.extends && d(a.extends, l, f) || a.mixins && a.mixins.some((g) => d(g, l, f)))
1738
1738
  return !0;
1739
1739
  }
1740
- function a(u) {
1741
- return xe(u) ? "ShallowRef" : u.effect ? "ComputedRef" : "Ref";
1740
+ function i(a) {
1741
+ return Te(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
1742
1742
  }
1743
1743
  window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
1744
1744
  }
@@ -1750,15 +1750,15 @@ process.env.NODE_ENV;
1750
1750
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1751
1751
  * @license MIT
1752
1752
  **/
1753
- function So() {
1754
- Eo();
1753
+ function jo() {
1754
+ yo();
1755
1755
  }
1756
- process.env.NODE_ENV !== "production" && So();
1757
- function jo(e) {
1758
- return Ft(e) || kt(e) || Pt(e) || Vt(e) || Rt(e);
1756
+ process.env.NODE_ENV !== "production" && jo();
1757
+ function Eo(e) {
1758
+ return Dt(e) || Ft(e) || kt(e) || Pt(e) || Vt(e);
1759
1759
  }
1760
- var Un = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(Un || {});
1761
- class I {
1760
+ var Kn = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(Kn || {});
1761
+ class S {
1762
1762
  imports = /* @__PURE__ */ new Set();
1763
1763
  parentDir;
1764
1764
  name;
@@ -1799,969 +1799,995 @@ class I {
1799
1799
  this.parentDir = n;
1800
1800
  }
1801
1801
  }
1802
- var Ne;
1802
+ var we;
1803
1803
  ((e) => {
1804
1804
  ((n) => {
1805
1805
  n.Lombok = "Lombok", n.LombokBuilder = "LombokBuilder", n.RecordValueObject = "RecordValueObject", n.CommandHandler = "CommandHandler", n.Jpa = "Jpa", n.Timezone = "Timezone", n.SpringFramework = "SpringFramework";
1806
1806
  })(e.JavaGeneratorAddition || (e.JavaGeneratorAddition = {})), ((n) => {
1807
1807
  n.TABLE = "TABLE", n.SEQUENCE = "SEQUENCE", n.IDENTITY = "IDENTITY", n.UUID = "UUID", n.AUTO = "AUTO";
1808
1808
  })(e.IdGenStrategy || (e.IdGenStrategy = {}));
1809
- })(Ne || (Ne = {}));
1810
- var ye;
1809
+ })(we || (we = {}));
1810
+ var Ne;
1811
1811
  ((e) => {
1812
1812
  ((n) => {
1813
1813
  n.ValueClass = "ValueClass", n.CommandHandler = "CommandHandler", n.Timezone = "Timezone";
1814
1814
  })(e.KotlinGeneratorAddition || (e.KotlinGeneratorAddition = {}));
1815
- })(ye || (ye = {}));
1816
- var Ee;
1815
+ })(Ne || (Ne = {}));
1816
+ var ye;
1817
1817
  ((e) => {
1818
1818
  ((n) => {
1819
1819
  n.Timezone = "Timezone", n.RecordStruct = "RecordStruct", n.PrimaryConstructor = "PrimaryConstructor", n.CommandHandlerInterface = "CommandHandlerInterface", n.AggInterface = "AggInterface";
1820
1820
  })(e.CSharpGeneratorAddition || (e.CSharpGeneratorAddition = {}));
1821
- })(Ee || (Ee = {}));
1822
- var Ye;
1821
+ })(ye || (ye = {}));
1822
+ var We;
1823
1823
  ((e) => {
1824
1824
  ((n) => {
1825
1825
  n.SinglePackageEachDesigner = "SinglePackageEachDesigner";
1826
1826
  })(e.GoGeneratorAddition || (e.GoGeneratorAddition = {}));
1827
- })(Ye || (Ye = {}));
1828
- const Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1827
+ })(We || (We = {}));
1828
+ const So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1829
1829
  __proto__: null,
1830
- CodeFile: I,
1831
- Language: Un,
1830
+ CodeFile: S,
1831
+ Language: Kn,
1832
1832
  get csharp() {
1833
- return Ee;
1833
+ return ye;
1834
1834
  },
1835
1835
  get go() {
1836
- return Ye;
1836
+ return We;
1837
1837
  },
1838
- isStruct: jo,
1838
+ isStruct: Eo,
1839
1839
  get java() {
1840
- return Ne;
1840
+ return we;
1841
1841
  },
1842
1842
  get kotlin() {
1843
- return ye;
1843
+ return Ne;
1844
1844
  }
1845
1845
  }, Symbol.toStringTag, { value: "Module" }));
1846
- var y;
1846
+ var N;
1847
1847
  ((e) => {
1848
- function n(m) {
1849
- return m.trim().split(m.includes("_") || m.includes("-") || m.includes(" ") ? /_|\s|-/ : /(?=[A-Z])/g).map((a) => a.charAt(0).toUpperCase() + a.toLowerCase().slice(1)).join("");
1848
+ function n(d) {
1849
+ return d.trim().split(d.includes("_") || d.includes("-") || d.includes(" ") ? /_|\s|-/ : /(?=[A-Z])/g).map((i) => i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
1850
1850
  }
1851
1851
  e.stringToUpperCamel = n;
1852
- function t(m) {
1853
- let a = !0;
1854
- return m.trim().split(m.includes("_") || m.includes("-") || m.includes(" ") ? /_|\s|-/ : /(?=[A-Z])/g).map((u) => a ? (a = !1, u.toLowerCase()) : u.charAt(0).toUpperCase() + u.toLowerCase().slice(1)).join("");
1852
+ function t(d) {
1853
+ let i = !0;
1854
+ return d.trim().split(d.includes("_") || d.includes("-") || d.includes(" ") ? /_|\s|-/ : /(?=[A-Z])/g).map((a) => i ? (i = !1, a.toLowerCase()) : a.charAt(0).toUpperCase() + a.toLowerCase().slice(1)).join("");
1855
1855
  }
1856
1856
  e.stringToLowerCamel = t;
1857
- function s(m) {
1858
- return m = m.trim(), m.includes("_") ? m.toLowerCase() : m.includes(" ") || m.includes("-") ? m.split(/\s|-/).join("_").toLowerCase() : r(m);
1857
+ function r(d) {
1858
+ return d = d.trim(), d.includes("_") ? d.toLowerCase() : d.includes(" ") || d.includes("-") ? d.split(/\s|-/).join("_").toLowerCase() : s(d);
1859
1859
  }
1860
- e.stringToLowerSnake = s;
1861
- function o(m) {
1862
- return m.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
1860
+ e.stringToLowerSnake = r;
1861
+ function o(d) {
1862
+ return d.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
1863
1863
  }
1864
1864
  e.camelToUpperSnake = o;
1865
- function r(m) {
1866
- return m.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
1865
+ function s(d) {
1866
+ return d.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
1867
1867
  }
1868
- e.camelToLowerSnake = r;
1869
- function c(m) {
1870
- return m.trim().split("_").map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join("");
1868
+ e.camelToLowerSnake = s;
1869
+ function p(d) {
1870
+ return d.trim().split("_").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join("");
1871
1871
  }
1872
- e.snakeToUpperCamel = c;
1873
- function g(m) {
1874
- return m.trim().charAt(0).toLowerCase() + m.slice(1);
1872
+ e.snakeToUpperCamel = p;
1873
+ function _(d) {
1874
+ return d.trim().charAt(0).toLowerCase() + d.slice(1);
1875
1875
  }
1876
- e.lowerFirst = g;
1877
- function _(m) {
1878
- return m.trim().charAt(0).toUpperCase() + m.slice(1);
1876
+ e.lowerFirst = _;
1877
+ function C(d) {
1878
+ return d.trim().charAt(0).toUpperCase() + d.slice(1);
1879
1879
  }
1880
- e.upperFirst = _;
1881
- })(y || (y = {}));
1882
- const S = Ne.JavaGeneratorAddition, Oo = pe.createHotSwapPlugin(() => {
1880
+ e.upperFirst = C;
1881
+ })(N || (N = {}));
1882
+ const j = we.JavaGeneratorAddition, Io = le.createHotSwapPlugin(() => {
1883
1883
  const e = "value", n = "command", t = "event";
1884
- function s(o) {
1885
- return y.stringToUpperCamel(o._attributes.name);
1884
+ function r(o) {
1885
+ return N.stringToUpperCamel(o._attributes.name);
1886
1886
  }
1887
1887
  return {
1888
1888
  unmount({ api: o }) {
1889
1889
  o.commands.clearCaches(), o.commands._setCommandCodeProvider(() => []), o.commands._setFacadeCommandCodeProvider(() => []), o.commands._setAggCodeProvider(() => []), o.commands._setEventCodeProvider(() => []), o.commands._setReadModelCodeProvider(() => []), o.commands._setCodeFileProvider(() => []), o.commands.setContext({});
1890
1890
  },
1891
1891
  mount({ api: o }) {
1892
- const r = o.states.context, c = o.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((i) => y.stringToLowerCamel(i));
1893
- function g(i) {
1894
- return !c.includes(y.stringToLowerCamel(i._attributes.name));
1892
+ const s = o.states.context, p = o.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((a) => N.stringToLowerCamel(a));
1893
+ function _(a) {
1894
+ return !p.includes(N.stringToLowerCamel(a._attributes.name));
1895
1895
  }
1896
- function _(i, p) {
1897
- return g(p) ? y.stringToUpperCamel(p._attributes.name) : a(i, p);
1896
+ function C(a, l) {
1897
+ return _(l) ? N.stringToUpperCamel(l._attributes.name) : i(a, l);
1898
1898
  }
1899
- function m(i, p) {
1900
- for (const b of p) {
1901
- if (!g(b)) {
1902
- a(i, b);
1899
+ function d(a, l) {
1900
+ for (const f of l) {
1901
+ if (!_(f)) {
1902
+ i(a, f);
1903
1903
  continue;
1904
1904
  }
1905
- i.add(
1906
- `${r.value.namespace}.${r.value.moduleName}.${e}.${s(b)}`
1905
+ a.add(
1906
+ `${s.value.namespace}.${s.value.moduleName}.${e}.${r(f)}`
1907
1907
  );
1908
1908
  }
1909
1909
  }
1910
- function a(i, p) {
1911
- const b = r.value.additions, C = y.stringToLowerSnake(p._attributes.name).replace(/_/, " ");
1912
- return /\b(time|timestamp|date|deadline|expire)\b/.test(C) ? b.has(S.Timezone) ? (i.add("java.time.OffsetDateTime"), "OffsetDateTime") : (i.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(C) ? "Integer" : /\b(price)$/.test(C) ? (i.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(C) ? "Boolean" : je(p) && (p._attributes.type === "Id" || p._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(C)) ? "Long" : "String";
1910
+ function i(a, l) {
1911
+ const f = s.value.additions, b = N.stringToLowerSnake(l._attributes.name).replace(/_/, " ");
1912
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(b) ? f.has(j.Timezone) ? (a.add("java.time.OffsetDateTime"), "OffsetDateTime") : (a.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(b) ? "Integer" : /\b(price)$/.test(b) ? (a.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(b) ? "Boolean" : Ee(l) && (l._attributes.type === "Id" || l._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(b)) ? "Long" : "String";
1913
1913
  }
1914
1914
  o.commands._setInfoCodeProvider(
1915
- (i) => {
1916
- const p = /* @__PURE__ */ new Set();
1917
- p.add(r.value.nonNullAnnotation);
1918
- const b = r.value.nonNullAnnotation.split(".").pop(), C = s(i), h = r.value.additions, $ = [];
1919
- return h.has(S.RecordValueObject) ? (h.has(S.Jpa) && (p.add("javax.persistence.Embeddable"), $.push("@Embeddable")), $.push(`public record ${C}(@${b} ${a(p, i)} value) {`), $.push(` public ${C} {`), $.push(" // HACK check value"), $.push(" }"), $.push("}")) : h.has(S.Lombok) ? ($.push("@lombok.Getter"), h.has(S.Jpa) && (p.add("javax.persistence.Embeddable"), $.push("@Embeddable")), $.push(`public class ${C} {`), $.push(` private final ${a(p, i)} value;`), $.push(""), $.push(` public ${C} (@${b} ${a(p, i)} value) {`), $.push(" // HACK check value"), $.push(" this.value = value;"), $.push(" }"), $.push("}")) : (h.has(S.Jpa) && (p.add("javax.persistence.Embeddable"), $.push("@Embeddable")), $.push(`public class ${s(i)} {`), $.push(` private final ${a(p, i)} value;`), $.push(""), $.push(` public ${C} (@${b} ${a(p, i)} value) {`), $.push(" // HACK check value"), $.push(" this.value = value;"), $.push(" }"), $.push(""), $.push(` public ${a(p, i)} getValue() {`), $.push(" return this.value;"), $.push(" }"), $.push("}")), [
1915
+ (a) => {
1916
+ const l = /* @__PURE__ */ new Set();
1917
+ l.add(s.value.nonNullAnnotation);
1918
+ const f = s.value.nonNullAnnotation.split(".").pop(), b = r(a), g = s.value.additions, u = [];
1919
+ return g.has(j.RecordValueObject) ? (g.has(j.Jpa) && (l.add(
1920
+ s.value.jdkVersion === "8" ? "javax.persistence.Embeddable" : "jakarta.persistence.Embeddable"
1921
+ ), u.push("@Embeddable")), u.push(`public record ${b}(@${f} ${i(l, a)} value) {`), u.push(` public ${b} {`), u.push(" // HACK check value"), u.push(" }"), u.push("}")) : g.has(j.Lombok) ? (u.push("@lombok.Getter"), g.has(j.Jpa) && (l.add(
1922
+ s.value.jdkVersion === "8" ? "javax.persistence.Embeddable" : "jakarta.persistence.Embeddable"
1923
+ ), u.push("@Embeddable")), u.push(`public class ${b} {`), u.push(` private final ${i(l, a)} value;`), u.push(""), u.push(` public ${b} (@${f} ${i(l, a)} value) {`), u.push(" // HACK check value"), u.push(" this.value = value;"), u.push(" }"), u.push("}")) : (g.has(j.Jpa) && (l.add(
1924
+ s.value.jdkVersion === "8" ? "javax.persistence.Embeddable" : "jakarta.persistence.Embeddable"
1925
+ ), u.push("@Embeddable")), u.push(`public class ${r(a)} {`), u.push(` private final ${i(l, a)} value;`), u.push(""), u.push(` public ${b} (@${f} ${i(l, a)} value) {`), u.push(" // HACK check value"), u.push(" this.value = value;"), u.push(" }"), u.push(""), u.push(` public ${i(l, a)} getValue() {`), u.push(" return this.value;"), u.push(" }"), u.push("}")), [
1920
1926
  {
1921
1927
  type: "Info",
1922
- imports: p,
1923
- content: $.join(`
1928
+ imports: l,
1929
+ content: u.join(`
1924
1930
  `)
1925
1931
  }
1926
1932
  ];
1927
1933
  }
1928
- );
1929
- function u(i) {
1930
- const p = [], b = r.value.additions, C = r.value.nonNullAnnotation.split(".").pop();
1931
- {
1932
- const h = /* @__PURE__ */ new Set();
1933
- h.add(r.value.nonNullAnnotation);
1934
- const $ = s(i), l = [], d = Object.values(i.inner);
1935
- if (m(h, d), b.has(S.RecordValueObject)) {
1936
- b.has(S.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public record ${$}(`);
1937
- const w = [];
1938
- for (const f of d) {
1939
- const v = s(f);
1940
- w.push(
1941
- ` @${C}
1942
- ${_(
1943
- h,
1944
- f
1945
- )} ${y.lowerFirst(v)}`
1946
- );
1947
- }
1948
- l.push(w.join(`,
1949
- `)), l.push(") {"), l.push(` public ${$} {`), l.push(" // HACK check value"), l.push(" }"), l.push("}");
1950
- } else if (b.has(S.Lombok)) {
1951
- l.push("@lombok.AllArgsConstructor"), l.push("@lombok.Getter"), b.has(S.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public class ${$} {`);
1952
- for (const w of d) {
1953
- const f = s(w);
1954
- l.push(` @${C}`), l.push(
1955
- ` private final ${_(h, w)} ${y.lowerFirst(f)};`
1956
- );
1957
- }
1958
- l.push("}");
1959
- } else {
1960
- l.push(`public class ${$} {`);
1961
- for (const v of d) {
1962
- const N = s(v);
1963
- l.push(` @${C}`), l.push(
1964
- ` private final ${_(h, v)} ${y.lowerFirst(N)};`
1965
- );
1966
- }
1967
- l.push("");
1968
- const w = [], f = [];
1969
- for (const v of d) {
1970
- const N = s(v);
1971
- w.push(
1972
- `@${C} ${a(h, v)} ${y.lowerFirst(N)}`
1973
- ), f.push(`this.${y.lowerFirst(N)} = ${y.lowerFirst(N)};`);
1974
- }
1975
- l.push(` public ${$}(${w.join(", ")}) {`), l.push(` ${f.join(`
1976
- `)}`), l.push(" }");
1977
- for (const v of d) {
1978
- const N = s(v);
1979
- l.push(""), l.push(` public ${_(h, v)} get${N} () {`), l.push(` return this.${y.lowerFirst(N)};`), l.push(" }");
1934
+ ), o.commands._setCommandCodeProvider(
1935
+ (a) => {
1936
+ const l = [], f = s.value.additions, b = s.value.nonNullAnnotation.split(".").pop();
1937
+ {
1938
+ const g = /* @__PURE__ */ new Set();
1939
+ g.add(s.value.nonNullAnnotation);
1940
+ const u = r(a), v = [], m = Object.values(a.inner);
1941
+ if (d(g, m), f.has(j.RecordValueObject)) {
1942
+ f.has(j.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public record ${u}(`);
1943
+ const $ = [];
1944
+ for (const w of m) {
1945
+ const c = r(w);
1946
+ $.push(
1947
+ ` @${b}
1948
+ ${C(
1949
+ g,
1950
+ w
1951
+ )} ${N.lowerFirst(c)}`
1952
+ );
1953
+ }
1954
+ v.push($.join(`,
1955
+ `)), v.push(") {"), v.push(` public ${u} {`), v.push(" // HACK check value"), v.push(" }"), v.push("}");
1956
+ } else if (f.has(j.Lombok)) {
1957
+ v.push("@lombok.AllArgsConstructor"), v.push("@lombok.Getter"), f.has(j.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public class ${u} {`);
1958
+ for (const $ of m) {
1959
+ const w = r($);
1960
+ v.push(` @${b}`), v.push(
1961
+ ` private final ${C(g, $)} ${N.lowerFirst(w)};`
1962
+ );
1963
+ }
1964
+ v.push("}");
1965
+ } else {
1966
+ v.push(`public class ${u} {`);
1967
+ for (const c of m) {
1968
+ const h = r(c);
1969
+ v.push(` @${b}`), v.push(
1970
+ ` private final ${C(g, c)} ${N.lowerFirst(h)};`
1971
+ );
1972
+ }
1973
+ v.push("");
1974
+ const $ = [], w = [];
1975
+ for (const c of m) {
1976
+ const h = r(c);
1977
+ $.push(
1978
+ `@${b} ${i(g, c)} ${N.lowerFirst(h)}`
1979
+ ), w.push(`this.${N.lowerFirst(h)} = ${N.lowerFirst(h)};`);
1980
+ }
1981
+ v.push(` public ${u}(${$.join(", ")}) {`), v.push(` ${w.join(`
1982
+ `)}`), v.push(" }");
1983
+ for (const c of m) {
1984
+ const h = r(c);
1985
+ v.push(""), v.push(` public ${C(g, c)} get${h} () {`), v.push(` return this.${N.lowerFirst(h)};`), v.push(" }");
1986
+ }
1987
+ v.push("}");
1980
1988
  }
1981
- l.push("}");
1982
- }
1983
- p.push({
1984
- type: "Command",
1985
- imports: h,
1986
- content: l.join(`
1989
+ l.push({
1990
+ type: "Command",
1991
+ imports: g,
1992
+ content: v.join(`
1987
1993
  `)
1988
- });
1989
- }
1990
- if (!b.has(S.CommandHandler))
1991
- return p;
1992
- {
1993
- const h = /* @__PURE__ */ new Set();
1994
- h.add(r.value.nonNullAnnotation);
1995
- const $ = s(i), l = [];
1996
- b.has(S.SpringFramework) && (h.add("org.springframework.stereotype.Component"), l.push("@Component")), b.has(S.Lombok) && l.push("@lombok.RequiredArgsConstructor"), l.push(`public class ${$}Handler {`);
1997
- const d = [...o.states.designer.value._getContext().getAssociationMap()[i._attributes.__id]].filter(
1998
- (w) => w._attributes.rule === "Agg"
1999
- );
2000
- for (const w of d)
2001
- h.add(`${r.value.namespace}.${r.value.moduleName}.${s(w)}`), l.push(` public ${s(w)} handle(@${C} ${$} command) {`), l.push(" // HACK Implement"), l.push(" }");
2002
- l.push("}"), p.push({
2003
- type: "CommandHandler",
2004
- imports: h,
2005
- content: l.join(`
1994
+ });
1995
+ }
1996
+ if (!f.has(j.CommandHandler))
1997
+ return l;
1998
+ {
1999
+ const g = /* @__PURE__ */ new Set();
2000
+ g.add(s.value.nonNullAnnotation);
2001
+ const u = r(a), v = [];
2002
+ f.has(j.SpringFramework) && (g.add("org.springframework.stereotype.Component"), v.push("@Component")), f.has(j.Lombok) && v.push("@lombok.RequiredArgsConstructor"), v.push(`public class ${u}Handler {`);
2003
+ const m = [...o.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
2004
+ ($) => $._attributes.rule === "Agg"
2005
+ );
2006
+ for (const $ of m)
2007
+ g.add(`${s.value.namespace}.${s.value.moduleName}.${r($)}`), v.push(` public ${r($)} handle(@${b} ${u} command) {`), v.push(" // HACK Implement"), v.push(" }");
2008
+ v.push("}"), l.push({
2009
+ type: "CommandHandler",
2010
+ imports: g,
2011
+ content: v.join(`
2006
2012
  `)
2007
- });
2013
+ });
2014
+ }
2015
+ return l;
2008
2016
  }
2009
- return p;
2010
- }
2011
- o.commands._setCommandCodeProvider(u), o.commands._setFacadeCommandCodeProvider((i) => {
2012
- const p = [], b = r.value.additions, C = r.value.nonNullAnnotation.split(".").pop();
2017
+ ), o.commands._setFacadeCommandCodeProvider((a) => {
2018
+ const l = [], f = s.value.additions, b = s.value.nonNullAnnotation.split(".").pop();
2013
2019
  {
2014
- const h = /* @__PURE__ */ new Set();
2015
- h.add(r.value.nonNullAnnotation);
2016
- const $ = s(i), l = [], d = Object.values(i.inner);
2017
- if (m(h, d), b.has(S.RecordValueObject)) {
2018
- b.has(S.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public record ${$}(`);
2019
- const w = [];
2020
- for (const f of d) {
2021
- const v = s(f);
2022
- w.push(
2023
- ` @${C}
2024
- ${_(
2025
- h,
2026
- f
2027
- )} ${y.lowerFirst(v)}`
2020
+ const g = /* @__PURE__ */ new Set();
2021
+ g.add(s.value.nonNullAnnotation);
2022
+ const u = r(a), v = [], m = Object.values(a.inner);
2023
+ if (d(g, m), f.has(j.RecordValueObject)) {
2024
+ f.has(j.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public record ${u}(`);
2025
+ const $ = [];
2026
+ for (const w of m) {
2027
+ const c = r(w);
2028
+ $.push(
2029
+ ` @${b}
2030
+ ${C(
2031
+ g,
2032
+ w
2033
+ )} ${N.lowerFirst(c)}`
2028
2034
  );
2029
2035
  }
2030
- l.push(w.join(`,
2031
- `)), l.push(") {"), l.push(` public ${$} {`), l.push(" // HACK check value"), l.push(" }"), l.push("}");
2032
- } else if (b.has(S.Lombok)) {
2033
- l.push("@lombok.AllArgsConstructor"), l.push("@lombok.Getter"), b.has(S.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public class ${$} {`);
2034
- for (const w of d) {
2035
- const f = s(w);
2036
- l.push(` @${C}`), l.push(
2037
- ` private final ${_(h, w)} ${y.lowerFirst(f)};`
2036
+ v.push($.join(`,
2037
+ `)), v.push(") {"), v.push(` public ${u} {`), v.push(" // HACK check value"), v.push(" }"), v.push("}");
2038
+ } else if (f.has(j.Lombok)) {
2039
+ v.push("@lombok.AllArgsConstructor"), v.push("@lombok.Getter"), f.has(j.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public class ${u} {`);
2040
+ for (const $ of m) {
2041
+ const w = r($);
2042
+ v.push(` @${b}`), v.push(
2043
+ ` private final ${C(g, $)} ${N.lowerFirst(w)};`
2038
2044
  );
2039
2045
  }
2040
- l.push("}");
2046
+ v.push("}");
2041
2047
  } else {
2042
- l.push(`public class ${$} {`);
2043
- for (const v of d) {
2044
- const N = s(v);
2045
- l.push(` @${C}`), l.push(
2046
- ` private final ${_(h, v)} ${y.lowerFirst(N)};`
2048
+ v.push(`public class ${u} {`);
2049
+ for (const c of m) {
2050
+ const h = r(c);
2051
+ v.push(` @${b}`), v.push(
2052
+ ` private final ${C(g, c)} ${N.lowerFirst(h)};`
2047
2053
  );
2048
2054
  }
2049
- l.push("");
2050
- const w = [], f = [];
2051
- for (const v of d) {
2052
- const N = s(v);
2053
- w.push(
2054
- `@${C} ${a(h, v)} ${y.lowerFirst(N)}`
2055
- ), f.push(`this.${y.lowerFirst(N)} = ${y.lowerFirst(N)};`);
2055
+ v.push("");
2056
+ const $ = [], w = [];
2057
+ for (const c of m) {
2058
+ const h = r(c);
2059
+ $.push(
2060
+ `@${b} ${i(g, c)} ${N.lowerFirst(h)}`
2061
+ ), w.push(`this.${N.lowerFirst(h)} = ${N.lowerFirst(h)};`);
2056
2062
  }
2057
- l.push(` public ${$}(${w.join(", ")}) {`), l.push(` ${f.join(`
2058
- `)}`), l.push(" }");
2059
- for (const v of d) {
2060
- const N = s(v);
2061
- l.push(""), l.push(` public ${_(h, v)} get${N} () {`), l.push(` return this.${y.lowerFirst(N)};`), l.push(" }");
2063
+ v.push(` public ${u}(${$.join(", ")}) {`), v.push(` ${w.join(`
2064
+ `)}`), v.push(" }");
2065
+ for (const c of m) {
2066
+ const h = r(c);
2067
+ v.push(""), v.push(` public ${C(g, c)} get${h} () {`), v.push(` return this.${N.lowerFirst(h)};`), v.push(" }");
2062
2068
  }
2063
- l.push("}");
2069
+ v.push("}");
2064
2070
  }
2065
- p.push({
2071
+ l.push({
2066
2072
  type: "FacadeCommand",
2067
- imports: h,
2068
- content: l.join(`
2073
+ imports: g,
2074
+ content: v.join(`
2069
2075
  `)
2070
2076
  });
2071
2077
  }
2072
- if (!b.has(S.CommandHandler))
2073
- return p;
2078
+ if (!f.has(j.CommandHandler))
2079
+ return l;
2074
2080
  {
2075
- const h = /* @__PURE__ */ new Set();
2076
- h.add(r.value.nonNullAnnotation);
2077
- const $ = s(i), l = [];
2078
- b.has(S.SpringFramework) && (h.add("org.springframework.stereotype.Component"), l.push("@Component")), b.has(S.Lombok) && l.push("@lombok.RequiredArgsConstructor"), l.push(`public class ${$}Handler {`);
2079
- const d = [...o.states.designer.value._getContext().getAssociationMap()[i._attributes.__id]].filter(
2080
- (w) => w._attributes.rule === "Agg"
2081
+ const g = /* @__PURE__ */ new Set();
2082
+ g.add(s.value.nonNullAnnotation);
2083
+ const u = r(a), v = [];
2084
+ f.has(j.SpringFramework) && (g.add("org.springframework.stereotype.Component"), v.push("@Component")), f.has(j.Lombok) && v.push("@lombok.RequiredArgsConstructor"), v.push(`public class ${u}Handler {`);
2085
+ const m = [...o.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
2086
+ ($) => $._attributes.rule === "Agg"
2081
2087
  );
2082
- for (const w of d)
2083
- h.add(`${r.value.namespace}.${r.value.moduleName}.${s(w)}`), l.push(` public ${s(w)} handle(@${C} ${$} command) {`), l.push(" // HACK Implement"), l.push(" }");
2084
- l.push("}"), p.push({
2088
+ for (const $ of m)
2089
+ g.add(`${s.value.namespace}.${s.value.moduleName}.${r($)}`), v.push(` public ${r($)} handle(@${b} ${u} command) {`), v.push(" // HACK Implement"), v.push(" }");
2090
+ v.push("}"), l.push({
2085
2091
  type: "FacadeCommandHandler",
2086
- imports: h,
2087
- content: l.join(`
2092
+ imports: g,
2093
+ content: v.join(`
2088
2094
  `)
2089
2095
  });
2090
2096
  }
2091
- return p;
2097
+ return l;
2092
2098
  }), o.commands._setAggCodeProvider(
2093
- (i) => {
2094
- const p = r.value.additions, b = o.states.designer.value, C = r.value.nonNullAnnotation.split(".").pop(), h = s(i), $ = [];
2099
+ (a) => {
2100
+ const l = s.value.additions, f = o.states.designer.value, b = s.value.nonNullAnnotation.split(".").pop(), g = r(a), u = [];
2095
2101
  {
2096
- const l = /* @__PURE__ */ new Set();
2097
- l.add(r.value.nonNullAnnotation);
2098
- const d = [], w = [], f = [...b._getContext().getAssociationMap()[i._attributes.__id]].filter((v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand");
2099
- for (const v of f) {
2100
- const N = s(v);
2101
- w.push(`public void handle${N}(@${C} ${N} command);`);
2102
+ const v = /* @__PURE__ */ new Set();
2103
+ v.add(s.value.nonNullAnnotation);
2104
+ const m = [], $ = [], w = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter((c) => c._attributes.rule === "Command" || c._attributes.rule === "FacadeCommand");
2105
+ for (const c of w) {
2106
+ const h = r(c);
2107
+ v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${h}`), $.push(`public void handle${h}(@${b} ${h} command);`);
2102
2108
  }
2103
- d.push(`public interface ${h} {`), d.push(` ${w.join(`
2109
+ m.push(`public interface ${g} {`), m.push(` ${$.join(`
2104
2110
 
2105
- `)}`), d.push("}"), $.push({
2111
+ `)}`), m.push("}"), u.push({
2106
2112
  type: "Agg",
2107
- imports: l,
2108
- content: d.join(`
2113
+ imports: v,
2114
+ content: m.join(`
2109
2115
  `)
2110
2116
  });
2111
2117
  }
2112
2118
  {
2113
- const l = /* @__PURE__ */ new Set();
2114
- l.add(r.value.nonNullAnnotation);
2115
- const d = [], w = Object.values(i.inner);
2116
- if (m(l, w), p.has(S.Lombok)) {
2117
- d.push(
2118
- p.has(S.Jpa) ? "@lombok.NoArgsConstructor" : "@lombok.AllArgsConstructor"
2119
- ), d.push("@lombok.Getter"), p.has(S.Jpa) && (l.add("javax.persistence.Entity"), d.push("@Entity"), l.add("javax.persistence.Table"), d.push(`@Table(name = "${y.camelToLowerSnake(h)}")`)), d.push(`public class ${h}Impl implements ${h} {`);
2120
- for (const v of w) {
2121
- const N = s(v);
2122
- d.push(` @${C}`), p.has(S.Jpa) && (v._attributes.type === "Id" && (l.add("javax.persistence.Id"), d.push(` @GeneratedValue(strategy = GenerationType.${r.value.idGenStrategy})`), d.push(" @Id")), l.add("javax.persistence.AttributeOverride"), l.add("javax.persistence.Column"), d.push(
2123
- ` @AttributeOverride(name = "value", column = @Column(name = "${y.camelToUpperSnake(
2124
- N
2125
- )}", unique = true))`
2126
- )), d.push(` private ${_(l, v)} ${y.lowerFirst(N)};`);
2119
+ const v = /* @__PURE__ */ new Set();
2120
+ v.add(s.value.nonNullAnnotation);
2121
+ const m = [], $ = Object.values(a.inner);
2122
+ if (d(v, $), l.has(j.Lombok)) {
2123
+ m.push(
2124
+ l.has(j.Jpa) ? "@lombok.NoArgsConstructor" : "@lombok.AllArgsConstructor"
2125
+ ), m.push("@lombok.Getter"), l.has(j.Jpa) && (v.add(
2126
+ s.value.jdkVersion === "8" ? "javax.persistence.Entity" : "jakarta.persistence.Entity"
2127
+ ), m.push("@Entity"), v.add(s.value.jdkVersion === "8" ? "javax.persistence.Table" : "jakarta.persistence.Table"), m.push(`@Table(name = "${N.camelToLowerSnake(g)}")`)), m.push(`public class ${g}Impl implements ${g} {`);
2128
+ for (const c of $) {
2129
+ const h = r(c);
2130
+ m.push(` @${b}`), l.has(j.Jpa) && (c._attributes.type === "Id" && (v.add(s.value.jdkVersion === "8" ? "javax.persistence.Id" : "jakarta.persistence.Id"), v.add(
2131
+ s.value.jdkVersion === "8" ? "javax.persistence.GeneratedValue" : "jakarta.persistence.GeneratedValue"
2132
+ ), v.add(
2133
+ s.value.jdkVersion === "8" ? "javax.persistence.GenerationType" : "jakarta.persistence.GenerationType"
2134
+ ), m.push(` @GeneratedValue(strategy = GenerationType.${s.value.idGenStrategy})`), m.push(" @Id")), v.add(
2135
+ s.value.jdkVersion === "8" ? "javax.persistence.AttributeOverride" : "jakarta.persistence.AttributeOverride"
2136
+ ), v.add(
2137
+ s.value.jdkVersion === "8" ? "javax.persistence.Column" : "jakarta.persistence.Column"
2138
+ ), m.push(
2139
+ ` @AttributeOverride(name = "value", column = @Column(name = "${N.camelToLowerSnake(
2140
+ h
2141
+ )}"))`
2142
+ )), m.push(` private ${C(v, c)} ${N.lowerFirst(h)};`);
2127
2143
  }
2128
- const f = [...b._getContext().getAssociationMap()[i._attributes.__id]].filter((v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand");
2129
- for (const v of f) {
2130
- const N = s(v);
2131
- d.push(""), d.push(
2132
- ` public void handle${N}(@${C} ${N} ${y.lowerFirst(
2133
- N
2144
+ const w = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter((c) => c._attributes.rule === "Command" || c._attributes.rule === "FacadeCommand");
2145
+ for (const c of w) {
2146
+ const h = r(c);
2147
+ v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${h}`), m.push(""), m.push(
2148
+ ` public void handle${h}(@${b} ${h} ${N.lowerFirst(
2149
+ h
2134
2150
  )}) {`
2135
- ), d.push(" // HACK need implement"), d.push(" }");
2151
+ ), m.push(" // HACK need implement"), m.push(" }");
2136
2152
  }
2137
- d.push("}");
2153
+ m.push("}");
2138
2154
  } else {
2139
- p.has(S.Jpa) && (l.add("javax.persistence.Entity"), d.push("@Entity"), l.add("javax.persistence.Table"), d.push(`@Table(name = "${y.camelToLowerSnake(h)}")`)), d.push(`public class ${h}Impl implements ${h} {`);
2140
- for (const E of w) {
2141
- const O = s(E);
2142
- d.push(` @${C}`), p.has(S.Jpa) && (E._attributes.type === "Id" && (l.add("javax.persistence.Id"), d.push(` @GeneratedValue(strategy = GenerationType.${r.value.idGenStrategy})`), d.push(" @Id")), l.add("javax.persistence.AttributeOverride"), l.add("javax.persistence.Column"), d.push(
2143
- ` @AttributeOverride(name = "value", column = @Column(name = "${y.camelToUpperSnake(
2144
- O
2155
+ l.has(j.Jpa) && (v.add(
2156
+ s.value.jdkVersion === "8" ? "javax.persistence.Entity" : "jakarta.persistence.Entity"
2157
+ ), m.push("@Entity"), v.add(s.value.jdkVersion === "8" ? "javax.persistence.Table" : "jakarta.persistence.Table"), m.push(`@Table(name = "${N.camelToLowerSnake(g)}")`)), m.push(`public class ${g}Impl implements ${g} {`);
2158
+ for (const y of $) {
2159
+ const I = r(y);
2160
+ m.push(` @${b}`), l.has(j.Jpa) && (y._attributes.type === "Id" && (v.add(s.value.jdkVersion === "8" ? "javax.persistence.Id" : "jakarta.persistence.Id"), v.add(
2161
+ s.value.jdkVersion === "8" ? "javax.persistence.GeneratedValue" : "jakarta.persistence.GeneratedValue"
2162
+ ), v.add(
2163
+ s.value.jdkVersion === "8" ? "javax.persistence.GenerationType" : "jakarta.persistence.GenerationType"
2164
+ ), m.push(` @GeneratedValue(strategy = GenerationType.${s.value.idGenStrategy})`), m.push(" @Id")), v.add(
2165
+ s.value.jdkVersion === "8" ? "javax.persistence.AttributeOverride" : "jakarta.persistence.AttributeOverride"
2166
+ ), v.add(
2167
+ s.value.jdkVersion === "8" ? "javax.persistence.Column" : "jakarta.persistence.Column"
2168
+ ), m.push(
2169
+ ` @AttributeOverride(name = "value", column = @Column(name = "${N.camelToLowerSnake(
2170
+ I
2145
2171
  )}"))`
2146
- )), d.push(` private ${_(l, E)} ${y.lowerFirst(O)};`);
2172
+ )), m.push(` private ${C(v, y)} ${N.lowerFirst(I)};`);
2147
2173
  }
2148
- d.push("");
2149
- const f = [], v = [];
2150
- for (const E of w) {
2151
- if (p.has(S.Jpa))
2174
+ m.push("");
2175
+ const w = [], c = [];
2176
+ for (const y of $) {
2177
+ if (l.has(j.Jpa))
2152
2178
  break;
2153
- const O = s(E);
2154
- f.push(
2155
- `@${C} ${_(l, E)} ${y.lowerFirst(O)}`
2156
- ), v.push(`this.${y.lowerFirst(O)} = ${y.lowerFirst(O)};`);
2179
+ const I = r(y);
2180
+ w.push(
2181
+ `@${b} ${C(v, y)} ${N.lowerFirst(I)}`
2182
+ ), c.push(`this.${N.lowerFirst(I)} = ${N.lowerFirst(I)};`);
2157
2183
  }
2158
- d.push(` public ${h}Impl(${f.join(", ")}) {`), d.push(` ${v.join(`
2159
- `)}`), d.push(" }");
2160
- for (const E of w) {
2161
- const O = s(E);
2162
- d.push(""), d.push(` @${C}`), d.push(` public ${_(l, E)} get${O}() {`), d.push(` return this.${y.lowerFirst(O)};`), d.push(" }");
2184
+ m.push(` public ${g}Impl(${w.join(", ")}) {`), m.push(` ${c.join(`
2185
+ `)}`), m.push(" }");
2186
+ for (const y of $) {
2187
+ const I = r(y);
2188
+ m.push(""), m.push(` @${b}`), m.push(` public ${C(v, y)} get${I}() {`), m.push(` return this.${N.lowerFirst(I)};`), m.push(" }");
2163
2189
  }
2164
- const N = [...b._getContext().getAssociationMap()[i._attributes.__id]].filter(
2165
- (E) => E._attributes.rule === "Command" || E._attributes.rule === "FacadeCommand"
2190
+ const h = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter(
2191
+ (y) => y._attributes.rule === "Command" || y._attributes.rule === "FacadeCommand"
2166
2192
  );
2167
- for (const E of N) {
2168
- const O = s(E);
2169
- d.push(""), d.push(
2170
- ` public void handle${O}(@${C} ${O} ${y.lowerFirst(
2171
- O
2193
+ for (const y of h) {
2194
+ const I = r(y);
2195
+ v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${I}`), m.push(""), m.push(
2196
+ ` public void handle${I}(@${b} ${I} ${N.lowerFirst(
2197
+ I
2172
2198
  )}) {`
2173
- ), d.push(" // HACK need implement"), d.push(" }");
2199
+ ), m.push(" // HACK need implement"), m.push(" }");
2174
2200
  }
2175
- d.push("}");
2201
+ m.push("}");
2176
2202
  }
2177
- $.push({
2203
+ u.push({
2178
2204
  type: "AggImpl",
2179
- imports: l,
2180
- content: d.join(`
2205
+ imports: v,
2206
+ content: m.join(`
2181
2207
  `)
2182
2208
  });
2183
2209
  }
2184
- return $;
2210
+ return u;
2185
2211
  }
2186
2212
  ), o.commands._setEventCodeProvider(
2187
- (i) => {
2188
- const p = /* @__PURE__ */ new Set();
2189
- p.add(r.value.nonNullAnnotation);
2190
- const b = r.value.nonNullAnnotation.split(".").pop(), C = r.value.additions, h = s(i), $ = [], l = Object.values(i.inner);
2191
- if (m(p, l), C.has(S.RecordValueObject)) {
2192
- C.has(S.LombokBuilder) && $.push("@lombok.Builder(toBuilder = true)"), $.push(`public record ${h}(`);
2193
- const d = [];
2194
- for (const w of l) {
2195
- const f = s(w);
2196
- d.push(
2197
- ` @${b}
2198
- ${_(
2199
- p,
2200
- w
2201
- )} ${y.lowerFirst(f)}`
2213
+ (a) => {
2214
+ const l = /* @__PURE__ */ new Set();
2215
+ l.add(s.value.nonNullAnnotation);
2216
+ const f = s.value.nonNullAnnotation.split(".").pop(), b = s.value.additions, g = r(a), u = [], v = Object.values(a.inner);
2217
+ if (d(l, v), b.has(j.RecordValueObject)) {
2218
+ b.has(j.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public record ${g}(`);
2219
+ const m = [];
2220
+ for (const $ of v) {
2221
+ const w = r($);
2222
+ m.push(
2223
+ ` @${f}
2224
+ ${C(
2225
+ l,
2226
+ $
2227
+ )} ${N.lowerFirst(w)}`
2202
2228
  );
2203
2229
  }
2204
- $.push(d.join(`,
2205
- `)), $.push(") {"), $.push(` public ${h} {`), $.push(" // HACK check value"), $.push(" }"), $.push("}");
2206
- } else if (C.has(S.Lombok)) {
2207
- $.push("@lombok.AllArgsConstructor"), $.push("@lombok.Getter"), C.has(S.LombokBuilder) && $.push("@lombok.Builder(toBuilder = true)"), $.push(`public class ${h} {`);
2208
- for (const d of l) {
2209
- const w = s(d);
2210
- $.push(` @${b}`), $.push(
2211
- ` private final ${_(p, d)} ${y.lowerFirst(w)};`
2230
+ u.push(m.join(`,
2231
+ `)), u.push(") {"), u.push(` public ${g} {`), u.push(" // HACK check value"), u.push(" }"), u.push("}");
2232
+ } else if (b.has(j.Lombok)) {
2233
+ u.push("@lombok.AllArgsConstructor"), u.push("@lombok.Getter"), b.has(j.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public class ${g} {`);
2234
+ for (const m of v) {
2235
+ const $ = r(m);
2236
+ u.push(` @${f}`), u.push(
2237
+ ` private final ${C(l, m)} ${N.lowerFirst($)};`
2212
2238
  );
2213
2239
  }
2214
- $.push("}");
2240
+ u.push("}");
2215
2241
  } else {
2216
- $.push(`public class ${h} {`);
2217
- for (const f of l) {
2218
- const v = s(f);
2219
- $.push(` @${b}`), $.push(` private final ${v} ${y.lowerFirst(v)};`);
2242
+ u.push(`public class ${g} {`);
2243
+ for (const w of v) {
2244
+ const c = r(w);
2245
+ u.push(` @${f}`), u.push(` private final ${c} ${N.lowerFirst(c)};`);
2220
2246
  }
2221
- $.push("");
2222
- const d = [], w = [];
2223
- for (const f of l) {
2224
- const v = s(f);
2225
- d.push(
2226
- `@${b} ${a(p, f)} ${y.lowerFirst(v)}`
2227
- ), w.push(`this.${y.lowerFirst(v)} = ${y.lowerFirst(v)};`);
2247
+ u.push("");
2248
+ const m = [], $ = [];
2249
+ for (const w of v) {
2250
+ const c = r(w);
2251
+ m.push(
2252
+ `@${f} ${i(l, w)} ${N.lowerFirst(c)}`
2253
+ ), $.push(`this.${N.lowerFirst(c)} = ${N.lowerFirst(c)};`);
2228
2254
  }
2229
- $.push(` public ${h}(${d.join(", ")}) {`), $.push(` ${w.join(`
2230
- `)}`), $.push(" }");
2231
- for (const f of l) {
2232
- const v = s(f);
2233
- $.push(""), $.push(` public ${v} get${v} () {`), $.push(` return this.${y.lowerFirst(v)};`), $.push(" }");
2255
+ u.push(` public ${g}(${m.join(", ")}) {`), u.push(` ${$.join(`
2256
+ `)}`), u.push(" }");
2257
+ for (const w of v) {
2258
+ const c = r(w);
2259
+ u.push(""), u.push(` public ${c} get${c} () {`), u.push(` return this.${N.lowerFirst(c)};`), u.push(" }");
2234
2260
  }
2235
- $.push("}");
2261
+ u.push("}");
2236
2262
  }
2237
2263
  return [
2238
2264
  {
2239
2265
  type: "Event",
2240
- imports: p,
2241
- content: $.join(`
2266
+ imports: l,
2267
+ content: u.join(`
2242
2268
  `)
2243
2269
  }
2244
2270
  ];
2245
2271
  }
2246
2272
  ), o.commands._setReadModelCodeProvider(() => []), o.commands._setCodeFileProvider(() => {
2247
- const i = [], p = {};
2248
- function b(d) {
2249
- for (const w of Object.values(d)) {
2250
- if (!g(w))
2273
+ const a = [], l = {};
2274
+ function f(m) {
2275
+ for (const $ of Object.values(m)) {
2276
+ if (!_($))
2251
2277
  continue;
2252
- const f = [...r.value.namespace.split(/\./), r.value.moduleName, e], v = s(w) + ".java";
2253
- if (p[`${f.join("/")}/${v}`] === !0)
2278
+ const w = [...s.value.namespace.split(/\./), s.value.moduleName, e], c = r($) + ".java";
2279
+ if (l[`${w.join("/")}/${c}`] === !0)
2254
2280
  continue;
2255
- const N = o.commands._genInfoCode(w);
2256
- if (N.length === 0)
2281
+ const h = o.commands._genInfoCode($);
2282
+ if (h.length === 0)
2257
2283
  continue;
2258
- const E = new I(f, v);
2259
- E.appendContentln(`package ${r.value.namespace}.${r.value.moduleName}.${e};`), E.appendContentln("");
2260
- for (const O of N[0].imports)
2261
- E.appendContentln(`import ${O};`);
2262
- E.appendContentln(""), E.appendContentln(N[0].content), i.push(E), p[`${f.join("/")}/${v}`] = !0;
2284
+ const y = new S(w, c);
2285
+ y.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${e};`), y.appendContentln("");
2286
+ for (const I of h[0].imports)
2287
+ y.appendContentln(`import ${I};`);
2288
+ y.appendContentln(""), y.appendContentln(h[0].content), a.push(y), l[`${w.join("/")}/${c}`] = !0;
2263
2289
  }
2264
2290
  }
2265
- const C = o.states.designer.value._getContext().getCommands();
2266
- for (const d of C) {
2267
- b(d.inner);
2268
- const w = o.commands._genCommandCode(d), f = [...r.value.namespace.split(/\./), r.value.moduleName, n];
2269
- w.forEach((v) => {
2270
- if (v.type === "Command") {
2271
- const N = new I(f, s(d) + ".java");
2272
- N.appendContentln(`package ${r.value.namespace}.${r.value.moduleName}.${n};`), N.appendContentln(""), N.addImports(v.imports);
2273
- for (const E of v.imports)
2274
- N.appendContentln(`import ${E};`);
2275
- N.appendContentln(""), N.appendContentln(v.content), i.push(N);
2276
- } else if (v.type === "CommandHandler") {
2277
- const N = new I(f, s(d) + "Handler.java");
2278
- N.appendContentln(`package ${r.value.namespace}.${r.value.moduleName}.${n};`), N.appendContentln(""), N.addImports(v.imports);
2279
- for (const E of v.imports)
2280
- N.appendContentln(`import ${E};`);
2281
- N.appendContentln(""), N.appendContentln(v.content), i.push(N);
2291
+ const b = o.states.designer.value._getContext().getCommands();
2292
+ for (const m of b) {
2293
+ f(m.inner);
2294
+ const $ = o.commands._genCommandCode(m), w = [...s.value.namespace.split(/\./), s.value.moduleName, n];
2295
+ $.forEach((c) => {
2296
+ if (c.type === "Command") {
2297
+ const h = new S(w, r(m) + ".java");
2298
+ h.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h.appendContentln(""), h.addImports(c.imports);
2299
+ for (const y of c.imports)
2300
+ h.appendContentln(`import ${y};`);
2301
+ h.appendContentln(""), h.appendContentln(c.content), a.push(h);
2302
+ } else if (c.type === "CommandHandler") {
2303
+ const h = new S(w, r(m) + "Handler.java");
2304
+ h.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h.appendContentln(""), h.addImports(c.imports);
2305
+ for (const y of c.imports)
2306
+ h.appendContentln(`import ${y};`);
2307
+ h.appendContentln(""), h.appendContentln(c.content), a.push(h);
2282
2308
  } else
2283
- isNever(v.type);
2309
+ isNever(c.type);
2284
2310
  });
2285
2311
  }
2286
- const h = o.states.designer.value._getContext().getFacadeCommands();
2287
- for (const d of h) {
2288
- b(d.inner);
2289
- const w = o.commands._genFacadeCommandCode(d), f = [...r.value.namespace.split(/\./), r.value.moduleName, n];
2290
- w.forEach((v) => {
2291
- if (v.type === "FacadeCommand") {
2292
- const N = new I(f, s(d) + ".java");
2293
- N.appendContentln(`package ${r.value.namespace}.${r.value.moduleName}.${n};`), N.appendContentln(""), N.addImports(v.imports);
2294
- for (const E of v.imports)
2295
- N.appendContentln(`import ${E};`);
2296
- N.appendContentln(""), N.appendContentln(v.content), i.push(N);
2297
- } else if (v.type === "FacadeCommandHandler") {
2298
- const N = new I(f, s(d) + "Handler.java");
2299
- N.appendContentln(`package ${r.value.namespace}.${r.value.moduleName}.${n};`), N.appendContentln(""), N.addImports(v.imports);
2300
- for (const E of v.imports)
2301
- N.appendContentln(`import ${E};`);
2302
- N.appendContentln(""), N.appendContentln(v.content), i.push(N);
2312
+ const g = o.states.designer.value._getContext().getFacadeCommands();
2313
+ for (const m of g) {
2314
+ f(m.inner);
2315
+ const $ = o.commands._genFacadeCommandCode(m), w = [...s.value.namespace.split(/\./), s.value.moduleName, n];
2316
+ $.forEach((c) => {
2317
+ if (c.type === "FacadeCommand") {
2318
+ const h = new S(w, r(m) + ".java");
2319
+ h.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h.appendContentln(""), h.addImports(c.imports);
2320
+ for (const y of c.imports)
2321
+ h.appendContentln(`import ${y};`);
2322
+ h.appendContentln(""), h.appendContentln(c.content), a.push(h);
2323
+ } else if (c.type === "FacadeCommandHandler") {
2324
+ const h = new S(w, r(m) + "Handler.java");
2325
+ h.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h.appendContentln(""), h.addImports(c.imports);
2326
+ for (const y of c.imports)
2327
+ h.appendContentln(`import ${y};`);
2328
+ h.appendContentln(""), h.appendContentln(c.content), a.push(h);
2303
2329
  } else
2304
- isNever(v.type);
2330
+ isNever(c.type);
2305
2331
  });
2306
2332
  }
2307
- const $ = o.states.designer.value._getContext().getAggs();
2308
- for (const d of $) {
2309
- b(d.inner);
2310
- const w = o.commands._genAggCode(d), f = [...r.value.namespace.split(/\./), r.value.moduleName];
2311
- w.forEach((v) => {
2312
- if (v.type === "Agg") {
2313
- const N = new I(f, s(d) + ".java");
2314
- N.appendContentln(`package ${r.value.namespace}.${r.value.moduleName};`), N.appendContentln(""), N.addImports(v.imports);
2315
- for (const E of v.imports)
2316
- N.appendContentln(`import ${E};`);
2317
- N.appendContentln(""), N.appendContentln(v.content), i.push(N);
2318
- } else if (v.type === "AggImpl") {
2319
- const N = new I(f, s(d) + "Impl.java");
2320
- N.appendContentln(`package ${r.value.namespace}.${r.value.moduleName};`), N.appendContentln(""), N.addImports(v.imports);
2321
- for (const E of v.imports)
2322
- N.appendContentln(`import ${E};`);
2323
- N.appendContentln(""), N.appendContentln(v.content), i.push(N);
2333
+ const u = o.states.designer.value._getContext().getAggs();
2334
+ for (const m of u) {
2335
+ f(m.inner);
2336
+ const $ = o.commands._genAggCode(m), w = [...s.value.namespace.split(/\./), s.value.moduleName];
2337
+ $.forEach((c) => {
2338
+ if (c.type === "Agg") {
2339
+ const h = new S(w, r(m) + ".java");
2340
+ h.appendContentln(`package ${s.value.namespace}.${s.value.moduleName};`), h.appendContentln(""), h.addImports(c.imports);
2341
+ for (const y of c.imports)
2342
+ h.appendContentln(`import ${y};`);
2343
+ h.appendContentln(""), h.appendContentln(c.content), a.push(h);
2344
+ } else if (c.type === "AggImpl") {
2345
+ const h = new S(w, r(m) + "Impl.java");
2346
+ h.appendContentln(`package ${s.value.namespace}.${s.value.moduleName};`), h.appendContentln(""), h.addImports(c.imports);
2347
+ for (const y of c.imports)
2348
+ h.appendContentln(`import ${y};`);
2349
+ h.appendContentln(""), h.appendContentln(c.content), a.push(h);
2324
2350
  } else
2325
- isNever(v.type);
2351
+ isNever(c.type);
2326
2352
  });
2327
2353
  }
2328
- const l = o.states.designer.value._getContext().getEvents();
2329
- for (const d of l) {
2330
- b(d.inner);
2331
- const w = o.commands._genEventCode(d), f = [...r.value.namespace.split(/\./), r.value.moduleName, t];
2332
- w.forEach((v) => {
2333
- const N = new I(f, s(d) + ".java");
2334
- N.appendContentln(`package ${r.value.namespace}.${r.value.moduleName}.${t};`), N.appendContentln(""), N.addImports(v.imports);
2335
- for (const E of v.imports)
2336
- N.appendContentln(`import ${E};`);
2337
- N.appendContentln(""), N.appendContentln(v.content), i.push(N);
2354
+ const v = o.states.designer.value._getContext().getEvents();
2355
+ for (const m of v) {
2356
+ f(m.inner);
2357
+ const $ = o.commands._genEventCode(m), w = [...s.value.namespace.split(/\./), s.value.moduleName, t];
2358
+ $.forEach((c) => {
2359
+ const h = new S(w, r(m) + ".java");
2360
+ h.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${t};`), h.appendContentln(""), h.addImports(c.imports);
2361
+ for (const y of c.imports)
2362
+ h.appendContentln(`import ${y};`);
2363
+ h.appendContentln(""), h.appendContentln(c.content), a.push(h);
2338
2364
  });
2339
2365
  }
2340
- return i;
2366
+ return a;
2341
2367
  });
2342
2368
  }
2343
2369
  };
2344
- }), ke = ye.KotlinGeneratorAddition, To = pe.createHotSwapPlugin(() => ({
2370
+ }), Fe = Ne.KotlinGeneratorAddition, Oo = le.createHotSwapPlugin(() => ({
2345
2371
  unmount({ api: e }) {
2346
2372
  e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
2347
2373
  },
2348
2374
  mount({ api: e }) {
2349
- const n = "value", t = e.states.context, s = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((m) => y.stringToLowerCamel(m));
2350
- function o(m) {
2351
- return !s.includes(y.stringToLowerCamel(m._attributes.name));
2375
+ const n = "value", t = e.states.context, r = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((d) => N.stringToLowerCamel(d));
2376
+ function o(d) {
2377
+ return !r.includes(N.stringToLowerCamel(d._attributes.name));
2352
2378
  }
2353
- function r(m, a) {
2354
- return o(a) ? y.stringToUpperCamel(a._attributes.name) : _(m, a);
2379
+ function s(d, i) {
2380
+ return o(i) ? N.stringToUpperCamel(i._attributes.name) : C(d, i);
2355
2381
  }
2356
- function c(m) {
2357
- return y.stringToUpperCamel(m._attributes.name);
2382
+ function p(d) {
2383
+ return N.stringToUpperCamel(d._attributes.name);
2358
2384
  }
2359
- function g(m, a) {
2360
- for (const u of a) {
2361
- if (!o(u)) {
2362
- _(m, u);
2385
+ function _(d, i) {
2386
+ for (const a of i) {
2387
+ if (!o(a)) {
2388
+ C(d, a);
2363
2389
  continue;
2364
2390
  }
2365
- m.add(
2366
- `${t.value.namespace}.${t.value.moduleName}.${n}.${c(u)}`
2391
+ d.add(
2392
+ `${t.value.namespace}.${t.value.moduleName}.${n}.${p(a)}`
2367
2393
  );
2368
2394
  }
2369
2395
  }
2370
- function _(m, a) {
2371
- const u = t.value.additions, i = y.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
2372
- return /\b(time|timestamp|date|deadline|expire)\b/.test(i) ? u.has(ke.Timezone) ? (m.add("java.time.OffsetDateTime"), "OffsetDateTime") : (m.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(i) ? "Integer" : /\b(price)$/.test(i) ? (m.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(i) ? "Boolean" : je(a) && (a._attributes.type === "Id" || a._attributes.type === "Version") || /\b(id|identifier|ver|version)$/.test(i) ? "Long" : "String";
2396
+ function C(d, i) {
2397
+ const a = t.value.additions, l = N.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
2398
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(l) ? a.has(Fe.Timezone) ? (d.add("java.time.OffsetDateTime"), "OffsetDateTime") : (d.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(l) ? "Integer" : /\b(price)$/.test(l) ? (d.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(l) ? "Boolean" : Ee(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") || /\b(id|identifier|ver|version)$/.test(l) ? "Long" : "String";
2373
2399
  }
2374
2400
  e.commands._setInfoCodeProvider(
2375
- (m) => {
2376
- const a = /* @__PURE__ */ new Set(), u = c(m), i = t.value.additions, p = [];
2377
- return i.has(ke.ValueClass) ? (a.add("kotlin.jvm.JvmInline"), p.push("@JvmInline"), p.push(`value class ${u}(val value: ${_(a, m)})`)) : p.push(`data class ${u}(val value: ${_(a, m)})`), [
2401
+ (d) => {
2402
+ const i = /* @__PURE__ */ new Set(), a = p(d), l = t.value.additions, f = [];
2403
+ return l.has(Fe.ValueClass) ? (i.add("kotlin.jvm.JvmInline"), f.push("@JvmInline"), f.push(`value class ${a}(val value: ${C(i, d)})`)) : f.push(`data class ${a}(val value: ${C(i, d)})`), [
2378
2404
  {
2379
2405
  type: "Info",
2380
- imports: a,
2381
- content: p.join(`
2406
+ imports: i,
2407
+ content: f.join(`
2382
2408
  `)
2383
2409
  }
2384
2410
  ];
2385
2411
  }
2386
2412
  ), e.commands._setCommandCodeProvider(
2387
- (m) => {
2388
- const a = [], u = t.value.additions;
2413
+ (d) => {
2414
+ const i = [], a = t.value.additions;
2389
2415
  {
2390
- const i = /* @__PURE__ */ new Set(), p = c(m), b = [], C = Object.values(m.inner);
2391
- g(i, C);
2392
- const h = [];
2393
- for (const $ of C) {
2394
- const l = c($);
2395
- h.push(`val ${y.lowerFirst(l)}: ${r(i, $)}`);
2416
+ const l = /* @__PURE__ */ new Set(), f = p(d), b = [], g = Object.values(d.inner);
2417
+ _(l, g);
2418
+ const u = [];
2419
+ for (const v of g) {
2420
+ const m = p(v);
2421
+ u.push(`val ${N.lowerFirst(m)}: ${s(l, v)}`);
2396
2422
  }
2397
- b.push(`data class ${p}(${h.join(", ")})`), a.push({
2423
+ b.push(`data class ${f}(${u.join(", ")})`), i.push({
2398
2424
  type: "Command",
2399
- imports: i,
2425
+ imports: l,
2400
2426
  content: b.join(`
2401
2427
  `)
2402
2428
  });
2403
2429
  }
2404
- if (!u.has(ke.CommandHandler))
2405
- return a;
2430
+ if (!a.has(Fe.CommandHandler))
2431
+ return i;
2406
2432
  {
2407
- const i = /* @__PURE__ */ new Set(), p = c(m), b = [];
2408
- b.push(`class ${p}Handler {`);
2409
- const C = [...e.states.designer.value._getContext().getAssociationMap()[m._attributes.__id]].filter(
2410
- (h) => h._attributes.rule === "Agg"
2433
+ const l = /* @__PURE__ */ new Set(), f = p(d), b = [];
2434
+ b.push(`class ${f}Handler {`);
2435
+ const g = [...e.states.designer.value._getContext().getAssociationMap()[d._attributes.__id]].filter(
2436
+ (u) => u._attributes.rule === "Agg"
2411
2437
  );
2412
- for (const h of C)
2413
- i.add(`${t.value.namespace}.${t.value.moduleName}.${c(h)}`), b.push(` fun handle(command: ${p}): ${c(h)} {`), b.push(" // HACK Implement"), b.push(" }");
2414
- b.push("}"), a.push({
2438
+ for (const u of g)
2439
+ l.add(`${t.value.namespace}.${t.value.moduleName}.${p(u)}`), b.push(` fun handle(command: ${f}): ${p(u)} {`), b.push(" // HACK Implement"), b.push(" }");
2440
+ b.push("}"), i.push({
2415
2441
  type: "CommandHandler",
2416
- imports: i,
2442
+ imports: l,
2417
2443
  content: b.join(`
2418
2444
  `)
2419
2445
  });
2420
2446
  }
2421
- return a;
2447
+ return i;
2422
2448
  }
2423
2449
  ), e.commands._setFacadeCommandCodeProvider(
2424
- (m) => {
2425
- const a = /* @__PURE__ */ new Set(), u = c(m), i = [], p = Object.values(m.inner);
2426
- g(a, p);
2450
+ (d) => {
2451
+ const i = /* @__PURE__ */ new Set(), a = p(d), l = [], f = Object.values(d.inner);
2452
+ _(i, f);
2427
2453
  const b = [];
2428
- for (const C of p) {
2429
- const h = c(C);
2430
- b.push(`val ${y.lowerFirst(h)}: ${r(a, C)}`);
2454
+ for (const g of f) {
2455
+ const u = p(g);
2456
+ b.push(`val ${N.lowerFirst(u)}: ${s(i, g)}`);
2431
2457
  }
2432
- return i.push(`data class ${u}(${b.join(", ")})`), [
2458
+ return l.push(`data class ${a}(${b.join(", ")})`), [
2433
2459
  {
2434
2460
  type: "FacadeCommand",
2435
- imports: a,
2436
- content: i.join(`
2461
+ imports: i,
2462
+ content: l.join(`
2437
2463
  `)
2438
2464
  }
2439
2465
  ];
2440
2466
  }
2441
- ), e.commands._setAggCodeProvider((m) => {
2442
- const a = /* @__PURE__ */ new Set(), u = e.states.designer.value, i = c(m), p = [], b = Object.values(m.inner);
2443
- g(a, b);
2444
- const C = [], h = [...u._getContext().getAssociationMap()[m._attributes.__id]].filter((l) => l._attributes.rule === "Command" || l._attributes.rule === "FacadeCommand");
2445
- for (const l of h) {
2446
- const d = c(l);
2447
- C.push(`fun handle(command: ${d})`);
2467
+ ), e.commands._setAggCodeProvider((d) => {
2468
+ const i = /* @__PURE__ */ new Set(), a = e.states.designer.value, l = p(d), f = [], b = Object.values(d.inner);
2469
+ _(i, b);
2470
+ const g = [], u = [...a._getContext().getAssociationMap()[d._attributes.__id]].filter((m) => m._attributes.rule === "Command" || m._attributes.rule === "FacadeCommand");
2471
+ for (const m of u) {
2472
+ const $ = p(m);
2473
+ g.push(`fun handle(command: ${$})`);
2448
2474
  }
2449
- p.push(`interface ${i} {`), p.push(` ${C.join(`
2450
- `)}`), p.push("}"), p.push(""), p.push(`class ${i}Impl(`);
2451
- const $ = [];
2452
- for (const l of b) {
2453
- const d = c(l);
2454
- $.push(`val ${y.lowerFirst(d)}: ${r(a, l)}`);
2475
+ f.push(`interface ${l} {`), f.push(` ${g.join(`
2476
+ `)}`), f.push("}"), f.push(""), f.push(`class ${l}Impl(`);
2477
+ const v = [];
2478
+ for (const m of b) {
2479
+ const $ = p(m);
2480
+ v.push(`val ${N.lowerFirst($)}: ${s(i, m)}`);
2455
2481
  }
2456
- p.push(` ${$.join(`,
2457
- `)}`), p.push(`): ${i} {`);
2458
- for (const l of h) {
2459
- const d = c(l);
2460
- p.push(` override fun handle(command: ${d}) {`), p.push(" // HACK Implement"), p.push(" }");
2482
+ f.push(` ${v.join(`,
2483
+ `)}`), f.push(`): ${l} {`);
2484
+ for (const m of u) {
2485
+ const $ = p(m);
2486
+ f.push(` override fun handle(command: ${$}) {`), f.push(" // HACK Implement"), f.push(" }");
2461
2487
  }
2462
- return p.push("}"), [
2488
+ return f.push("}"), [
2463
2489
  {
2464
2490
  type: "Agg",
2465
- imports: a,
2466
- content: p.join(`
2491
+ imports: i,
2492
+ content: f.join(`
2467
2493
  `)
2468
2494
  }
2469
2495
  ];
2470
2496
  }), e.commands._setEventCodeProvider(
2471
- (m) => {
2472
- const a = /* @__PURE__ */ new Set(), u = c(m), i = [], p = Object.values(m.inner);
2473
- g(a, p);
2497
+ (d) => {
2498
+ const i = /* @__PURE__ */ new Set(), a = p(d), l = [], f = Object.values(d.inner);
2499
+ _(i, f);
2474
2500
  const b = [];
2475
- for (const C of p) {
2476
- const h = c(C);
2477
- b.push(`val ${y.lowerFirst(h)}: ${r(a, C)}`);
2501
+ for (const g of f) {
2502
+ const u = p(g);
2503
+ b.push(`val ${N.lowerFirst(u)}: ${s(i, g)}`);
2478
2504
  }
2479
- return i.push(`data class ${u}(${b.join(", ")})`), [
2505
+ return l.push(`data class ${a}(${b.join(", ")})`), [
2480
2506
  {
2481
2507
  type: "Event",
2482
- imports: a,
2483
- content: i.join(`
2508
+ imports: i,
2509
+ content: l.join(`
2484
2510
  `)
2485
2511
  }
2486
2512
  ];
2487
2513
  }
2488
2514
  ), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => {
2489
- const m = [], a = {};
2490
- function u(h) {
2491
- for (const $ of Object.values(h)) {
2492
- if (!o($))
2515
+ const d = [], i = {};
2516
+ function a(u) {
2517
+ for (const v of Object.values(u)) {
2518
+ if (!o(v))
2493
2519
  continue;
2494
- const l = [...t.value.namespace.split(/\./), t.value.moduleName, n], d = c($) + ".kt";
2495
- if (a[`${l.join("/")}/${d}`] === !0)
2520
+ const m = [...t.value.namespace.split(/\./), t.value.moduleName, n], $ = p(v) + ".kt";
2521
+ if (i[`${m.join("/")}/${$}`] === !0)
2496
2522
  continue;
2497
- const w = e.commands._genInfoCode($);
2523
+ const w = e.commands._genInfoCode(v);
2498
2524
  if (w.length === 0)
2499
2525
  continue;
2500
- const f = new I(l, d);
2501
- f.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}.${n}`), f.appendContentln("");
2502
- for (const v of w[0].imports)
2503
- f.appendContentln(`import ${v}`);
2504
- f.appendContentln(""), f.appendContentln(w[0].content), m.push(f), a[`${l.join("/")}/${d}`] = !0;
2526
+ const c = new S(m, $);
2527
+ c.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}.${n}`), c.appendContentln("");
2528
+ for (const h of w[0].imports)
2529
+ c.appendContentln(`import ${h}`);
2530
+ c.appendContentln(""), c.appendContentln(w[0].content), d.push(c), i[`${m.join("/")}/${$}`] = !0;
2505
2531
  }
2506
2532
  }
2507
- const i = e.states.designer.value._getContext().getCommands();
2508
- for (const h of i) {
2509
- u(h.inner);
2510
- const $ = e.commands._genCommandCode(h), l = [...t.value.namespace.split(/\./), t.value.moduleName], d = new I(l, c(h) + ".kt"), w = [];
2511
- d.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), d.appendContentln(""), $.forEach((f) => {
2512
- f.type === "Command" || f.type === "CommandHandler" ? (d.addImports(f.imports), w.push(f.content)) : isNever(f.type);
2533
+ const l = e.states.designer.value._getContext().getCommands();
2534
+ for (const u of l) {
2535
+ a(u.inner);
2536
+ const v = e.commands._genCommandCode(u), m = [...t.value.namespace.split(/\./), t.value.moduleName], $ = new S(m, p(u) + ".kt"), w = [];
2537
+ $.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), $.appendContentln(""), v.forEach((c) => {
2538
+ c.type === "Command" || c.type === "CommandHandler" ? ($.addImports(c.imports), w.push(c.content)) : isNever(c.type);
2513
2539
  });
2514
- for (const f of d.getImports())
2515
- d.appendContentln(`import ${f}`);
2516
- d.appendContentln("");
2517
- for (const f of w)
2518
- d.appendContentln(f);
2519
- m.push(d);
2540
+ for (const c of $.getImports())
2541
+ $.appendContentln(`import ${c}`);
2542
+ $.appendContentln("");
2543
+ for (const c of w)
2544
+ $.appendContentln(c);
2545
+ d.push($);
2520
2546
  }
2521
- const p = e.states.designer.value._getContext().getFacadeCommands();
2522
- for (const h of p) {
2523
- u(h.inner);
2524
- const $ = e.commands._genFacadeCommandCode(h), l = [...t.value.namespace.split(/\./), t.value.moduleName], d = new I(l, c(h) + ".kt"), w = [];
2525
- d.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), d.appendContentln(""), $.forEach((f) => {
2526
- f.type === "FacadeCommand" || f.type === "FacadeCommandHandler" ? (d.addImports(f.imports), w.push(f.content)) : isNever(f.type);
2547
+ const f = e.states.designer.value._getContext().getFacadeCommands();
2548
+ for (const u of f) {
2549
+ a(u.inner);
2550
+ const v = e.commands._genFacadeCommandCode(u), m = [...t.value.namespace.split(/\./), t.value.moduleName], $ = new S(m, p(u) + ".kt"), w = [];
2551
+ $.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), $.appendContentln(""), v.forEach((c) => {
2552
+ c.type === "FacadeCommand" || c.type === "FacadeCommandHandler" ? ($.addImports(c.imports), w.push(c.content)) : isNever(c.type);
2527
2553
  });
2528
- for (const f of d.getImports())
2529
- d.appendContentln(`import ${f}`);
2530
- d.appendContentln("");
2531
- for (const f of w)
2532
- d.appendContentln(f);
2533
- m.push(d);
2554
+ for (const c of $.getImports())
2555
+ $.appendContentln(`import ${c}`);
2556
+ $.appendContentln("");
2557
+ for (const c of w)
2558
+ $.appendContentln(c);
2559
+ d.push($);
2534
2560
  }
2535
2561
  const b = e.states.designer.value._getContext().getAggs();
2536
- for (const h of b) {
2537
- u(h.inner);
2538
- const $ = e.commands._genAggCode(h), l = [...t.value.namespace.split(/\./), t.value.moduleName], d = new I(l, c(h) + ".kt"), w = [];
2539
- d.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), d.appendContentln(""), $.forEach((f) => {
2540
- f.type === "Agg" || f.type === "AggImpl" ? (d.addImports(f.imports), w.push(f.content)) : isNever(f.type);
2562
+ for (const u of b) {
2563
+ a(u.inner);
2564
+ const v = e.commands._genAggCode(u), m = [...t.value.namespace.split(/\./), t.value.moduleName], $ = new S(m, p(u) + ".kt"), w = [];
2565
+ $.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), $.appendContentln(""), v.forEach((c) => {
2566
+ c.type === "Agg" || c.type === "AggImpl" ? ($.addImports(c.imports), w.push(c.content)) : isNever(c.type);
2541
2567
  });
2542
- for (const f of d.getImports())
2543
- d.appendContentln(`import ${f}`);
2544
- d.appendContentln("");
2545
- for (const f of w)
2546
- d.appendContentln(f);
2547
- m.push(d);
2568
+ for (const c of $.getImports())
2569
+ $.appendContentln(`import ${c}`);
2570
+ $.appendContentln("");
2571
+ for (const c of w)
2572
+ $.appendContentln(c);
2573
+ d.push($);
2548
2574
  }
2549
- const C = e.states.designer.value._getContext().getEvents();
2550
- for (const h of C) {
2551
- u(h.inner);
2552
- const $ = e.commands._genEventCode(h), l = [...t.value.namespace.split(/\./), t.value.moduleName];
2553
- $.forEach((d) => {
2554
- if (d.type === "Event") {
2555
- const w = new I(l, c(h) + ".kt");
2556
- w.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), w.appendContentln(""), w.addImports(d.imports);
2557
- for (const f of d.imports)
2558
- w.appendContentln(`import ${f}`);
2559
- w.appendContentln(""), w.appendContentln(d.content), m.push(w);
2575
+ const g = e.states.designer.value._getContext().getEvents();
2576
+ for (const u of g) {
2577
+ a(u.inner);
2578
+ const v = e.commands._genEventCode(u), m = [...t.value.namespace.split(/\./), t.value.moduleName];
2579
+ v.forEach(($) => {
2580
+ if ($.type === "Event") {
2581
+ const w = new S(m, p(u) + ".kt");
2582
+ w.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), w.appendContentln(""), w.addImports($.imports);
2583
+ for (const c of $.imports)
2584
+ w.appendContentln(`import ${c}`);
2585
+ w.appendContentln(""), w.appendContentln($.content), d.push(w);
2560
2586
  } else
2561
- isNever(d.type);
2587
+ isNever($.type);
2562
2588
  });
2563
2589
  }
2564
- return m;
2590
+ return d;
2565
2591
  });
2566
2592
  }
2567
- })), xo = pe.createHotSwapPlugin(() => ({
2593
+ })), To = le.createHotSwapPlugin(() => ({
2568
2594
  unmount({ api: e }) {
2569
2595
  e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
2570
2596
  },
2571
2597
  mount({ api: e }) {
2572
- const n = e.states.context, t = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((_) => y.stringToLowerCamel(_));
2573
- function s(_) {
2574
- return !t.includes(y.stringToLowerCamel(_._attributes.name));
2598
+ const n = e.states.context, t = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((C) => N.stringToLowerCamel(C));
2599
+ function r(C) {
2600
+ return !t.includes(N.stringToLowerCamel(C._attributes.name));
2575
2601
  }
2576
- function o(_, m) {
2577
- return s(m) ? y.stringToUpperCamel(m._attributes.name) : g(_, m);
2602
+ function o(C, d) {
2603
+ return r(d) ? N.stringToUpperCamel(d._attributes.name) : _(C, d);
2578
2604
  }
2579
- function r(_) {
2580
- return y.stringToUpperCamel(_._attributes.name);
2605
+ function s(C) {
2606
+ return N.stringToUpperCamel(C._attributes.name);
2581
2607
  }
2582
- function c(_) {
2583
- return y.stringToLowerCamel(_._attributes.name);
2608
+ function p(C) {
2609
+ return N.stringToLowerCamel(C._attributes.name);
2584
2610
  }
2585
- function g(_, m) {
2586
- const a = y.stringToLowerSnake(m._attributes.name).replace(/_/, " ");
2587
- return /\b(time|timestamp|date|deadline|expire)\b/.test(a) ? (_.add("time"), "time.Time") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(a) ? "int" : /\b(price)$/.test(a) ? "string" : /^(if|is)\b/.test(a) ? "bool" : je(m) && (m._attributes.type === "Id" || m._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(a)) ? "int64" : "string";
2611
+ function _(C, d) {
2612
+ const i = N.stringToLowerSnake(d._attributes.name).replace(/_/, " ");
2613
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(i) ? (C.add("time"), "time.Time") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(i) ? "int" : /\b(price)$/.test(i) ? "string" : /^(if|is)\b/.test(i) ? "bool" : Ee(d) && (d._attributes.type === "Id" || d._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(i)) ? "int64" : "string";
2588
2614
  }
2589
2615
  e.commands._setInfoCodeProvider(
2590
- (_) => {
2591
- const m = /* @__PURE__ */ new Set(), a = [];
2592
- return a.push(`type ${r(_)} struct {`), a.push(` value ${g(m, _)}`), a.push("}"), a.push(""), a.push(
2593
- `func New${r(_)}(value ${g(
2594
- m,
2595
- _
2596
- )}) ${r(_)} {`
2597
- ), a.push(" // HACK check value"), a.push(` return ${r(_)}{value}`), a.push("}"), a.push(
2598
- `func (${c(_)} ${r(_)}) GetValue() ${g(
2599
- m,
2600
- _
2616
+ (C) => {
2617
+ const d = /* @__PURE__ */ new Set(), i = [];
2618
+ return i.push(`type ${s(C)} struct {`), i.push(` value ${_(d, C)}`), i.push("}"), i.push(""), i.push(
2619
+ `func New${s(C)}(value ${_(
2620
+ d,
2621
+ C
2622
+ )}) ${s(C)} {`
2623
+ ), i.push(" // HACK check value"), i.push(` return ${s(C)}{value}`), i.push("}"), i.push(
2624
+ `func (${p(C)} ${s(C)}) GetValue() ${_(
2625
+ d,
2626
+ C
2601
2627
  )} {`
2602
- ), a.push(` return ${c(_)}.value`), a.push("}"), [{ type: "Info", imports: m, content: a.join(`
2628
+ ), i.push(` return ${p(C)}.value`), i.push("}"), [{ type: "Info", imports: d, content: i.join(`
2603
2629
  `) }];
2604
2630
  }
2605
2631
  ), e.commands._setCommandCodeProvider(
2606
- (_) => {
2607
- const m = r(_), a = c(_), u = /* @__PURE__ */ new Set(), i = [];
2608
- i.push(`type ${m} struct {`);
2609
- const p = Object.values(_.inner);
2610
- for (const h of p)
2611
- i.push(` ${c(h)} ${o(u, h)}`);
2612
- i.push("}");
2613
- for (const h of p)
2614
- i.push(
2615
- `func (${a} ${m}) Get${r(h)} () ${o(
2616
- u,
2617
- h
2632
+ (C) => {
2633
+ const d = s(C), i = p(C), a = /* @__PURE__ */ new Set(), l = [];
2634
+ l.push(`type ${d} struct {`);
2635
+ const f = Object.values(C.inner);
2636
+ for (const u of f)
2637
+ l.push(` ${p(u)} ${o(a, u)}`);
2638
+ l.push("}");
2639
+ for (const u of f)
2640
+ l.push(
2641
+ `func (${i} ${d}) Get${s(u)} () ${o(
2642
+ a,
2643
+ u
2618
2644
  )} {`
2619
- ), i.push(` return ${a}.${c(h)}`), i.push("}");
2620
- const b = [], C = [];
2621
- for (const h of p)
2622
- b.push(`${c(h)} ${o(u, h)}`), C.push(c(h));
2623
- return i.push(`func New${m}(${b.join(", ")}) ${m} {`), i.push(" // HACK check value"), i.push(` return ${m}{`), i.push(` ${C.join(`,
2624
- `)},`), i.push(" }"), i.push("}"), [{ type: "Command", imports: u, content: i.join(`
2645
+ ), l.push(` return ${i}.${p(u)}`), l.push("}");
2646
+ const b = [], g = [];
2647
+ for (const u of f)
2648
+ b.push(`${p(u)} ${o(a, u)}`), g.push(p(u));
2649
+ return l.push(`func New${d}(${b.join(", ")}) ${d} {`), l.push(" // HACK check value"), l.push(` return ${d}{`), l.push(` ${g.join(`,
2650
+ `)},`), l.push(" }"), l.push("}"), [{ type: "Command", imports: a, content: l.join(`
2625
2651
  `) }];
2626
2652
  }
2627
2653
  ), e.commands._setFacadeCommandCodeProvider(
2628
- (_) => {
2629
- const m = r(_), a = c(_), u = Object.values(_.inner), i = /* @__PURE__ */ new Set(), p = [];
2630
- p.push(`type ${m} struct {`);
2631
- for (const h of u)
2632
- p.push(` ${c(h)} ${o(i, h)}`);
2633
- p.push("}");
2634
- for (const h of u)
2635
- p.push(
2636
- `func (${a} ${m}) Get${r(h)} () ${o(
2637
- i,
2638
- h
2654
+ (C) => {
2655
+ const d = s(C), i = p(C), a = Object.values(C.inner), l = /* @__PURE__ */ new Set(), f = [];
2656
+ f.push(`type ${d} struct {`);
2657
+ for (const u of a)
2658
+ f.push(` ${p(u)} ${o(l, u)}`);
2659
+ f.push("}");
2660
+ for (const u of a)
2661
+ f.push(
2662
+ `func (${i} ${d}) Get${s(u)} () ${o(
2663
+ l,
2664
+ u
2639
2665
  )} {`
2640
- ), p.push(` return ${a}.${c(h)}`), p.push("}");
2641
- const b = [], C = [];
2642
- for (const h of u)
2643
- b.push(`${c(h)} ${o(i, h)}`), C.push(c(h));
2644
- return p.push(`func New${m}(${b.join(", ")}) ${m} {`), p.push(" // HACK check value"), p.push(` return ${m}{`), p.push(` ${C.join(`,
2645
- `)},`), p.push(" }"), p.push("}"), [
2666
+ ), f.push(` return ${i}.${p(u)}`), f.push("}");
2667
+ const b = [], g = [];
2668
+ for (const u of a)
2669
+ b.push(`${p(u)} ${o(l, u)}`), g.push(p(u));
2670
+ return f.push(`func New${d}(${b.join(", ")}) ${d} {`), f.push(" // HACK check value"), f.push(` return ${d}{`), f.push(` ${g.join(`,
2671
+ `)},`), f.push(" }"), f.push("}"), [
2646
2672
  {
2647
2673
  type: "FacadeCommand",
2648
- imports: i,
2649
- content: p.join(`
2674
+ imports: l,
2675
+ content: f.join(`
2650
2676
  `)
2651
2677
  }
2652
2678
  ];
2653
2679
  }
2654
- ), e.commands._setAggCodeProvider((_) => {
2655
- const m = e.states.designer.value, a = r(_), u = c(_), i = Object.values(_.inner), p = /* @__PURE__ */ new Set(), b = [];
2656
- b.push(`type ${a} struct {`);
2657
- for (const l of i)
2658
- b.push(` ${c(l)} ${o(p, l)}`);
2680
+ ), e.commands._setAggCodeProvider((C) => {
2681
+ const d = e.states.designer.value, i = s(C), a = p(C), l = Object.values(C.inner), f = /* @__PURE__ */ new Set(), b = [];
2682
+ b.push(`type ${i} struct {`);
2683
+ for (const m of l)
2684
+ b.push(` ${p(m)} ${o(f, m)}`);
2659
2685
  b.push("}");
2660
- for (const l of i)
2686
+ for (const m of l)
2661
2687
  b.push(
2662
- `func (${u} ${a}) Get${r(l)} () ${o(
2663
- p,
2664
- l
2688
+ `func (${a} ${i}) Get${s(m)} () ${o(
2689
+ f,
2690
+ m
2665
2691
  )} {`
2666
- ), b.push(` return ${u}.${c(l)}`), b.push("}");
2667
- const C = [], h = [];
2668
- for (const l of i)
2669
- C.push(`${c(l)} ${o(p, l)}`), h.push(c(l));
2670
- b.push(`func New${a}(${C.join(", ")}) ${a} {`), b.push(" // HACK check value"), b.push(` return ${a}{`), b.push(` ${h.join(`,
2692
+ ), b.push(` return ${a}.${p(m)}`), b.push("}");
2693
+ const g = [], u = [];
2694
+ for (const m of l)
2695
+ g.push(`${p(m)} ${o(f, m)}`), u.push(p(m));
2696
+ b.push(`func New${i}(${g.join(", ")}) ${i} {`), b.push(" // HACK check value"), b.push(` return ${i}{`), b.push(` ${u.join(`,
2671
2697
  `)},`), b.push(" }"), b.push("}"), b.push("");
2672
- const $ = [...m._getContext().getAssociationMap()[_._attributes.__id]].filter((l) => l._attributes.rule === "Command" || l._attributes.rule === "FacadeCommand");
2673
- for (const l of $) {
2674
- const d = r(l), w = c(l);
2675
- b.push(`func (${u} ${a}) Handle${d} (${w} ${d}) {`), b.push(" // HACK implement"), b.push("}");
2698
+ const v = [...d._getContext().getAssociationMap()[C._attributes.__id]].filter((m) => m._attributes.rule === "Command" || m._attributes.rule === "FacadeCommand");
2699
+ for (const m of v) {
2700
+ const $ = s(m), w = p(m);
2701
+ b.push(`func (${a} ${i}) Handle${$} (${w} ${$}) {`), b.push(" // HACK implement"), b.push("}");
2676
2702
  }
2677
2703
  return [
2678
2704
  {
2679
2705
  type: "Agg",
2680
- imports: p,
2706
+ imports: f,
2681
2707
  content: b.join(`
2682
2708
  `)
2683
2709
  }
2684
2710
  ];
2685
2711
  }), e.commands._setEventCodeProvider(
2686
- (_) => {
2687
- const m = [], a = /* @__PURE__ */ new Set(), u = Object.values(_.inner), i = r(_), p = c(_);
2688
- m.push(`type ${i} struct {`);
2689
- for (const h of u)
2690
- m.push(` ${c(h)} ${o(a, h)}`);
2691
- m.push("}");
2692
- for (const h of u)
2693
- m.push(
2694
- `func (${p} ${i}) Get${r(h)} () ${o(
2695
- a,
2696
- h
2712
+ (C) => {
2713
+ const d = [], i = /* @__PURE__ */ new Set(), a = Object.values(C.inner), l = s(C), f = p(C);
2714
+ d.push(`type ${l} struct {`);
2715
+ for (const u of a)
2716
+ d.push(` ${p(u)} ${o(i, u)}`);
2717
+ d.push("}");
2718
+ for (const u of a)
2719
+ d.push(
2720
+ `func (${f} ${l}) Get${s(u)} () ${o(
2721
+ i,
2722
+ u
2697
2723
  )} {`
2698
- ), m.push(` return ${p}.${c(h)}`), m.push("}");
2699
- const b = [], C = [];
2700
- for (const h of u)
2701
- b.push(`${c(h)} ${o(a, h)}`), C.push(c(h));
2702
- return m.push(`func New${i}(${b.join(", ")}) ${i} {`), m.push(" // HACK check value"), m.push(` return ${i}{`), m.push(` ${C.join(`,
2703
- `)},`), m.push(" }"), m.push("}"), [
2724
+ ), d.push(` return ${f}.${p(u)}`), d.push("}");
2725
+ const b = [], g = [];
2726
+ for (const u of a)
2727
+ b.push(`${p(u)} ${o(i, u)}`), g.push(p(u));
2728
+ return d.push(`func New${l}(${b.join(", ")}) ${l} {`), d.push(" // HACK check value"), d.push(` return ${l}{`), d.push(` ${g.join(`,
2729
+ `)},`), d.push(" }"), d.push("}"), [
2704
2730
  {
2705
2731
  type: "Event",
2706
- imports: a,
2707
- content: m.join(`
2732
+ imports: i,
2733
+ content: d.join(`
2708
2734
  `)
2709
2735
  }
2710
2736
  ];
2711
2737
  }
2712
2738
  ), e.commands._setCodeFileProvider(() => {
2713
- const _ = [], m = {}, a = [...n.value.namespace.split(/\./), n.value.moduleName], u = new I(a, `${n.value.moduleName}.go`), i = [], p = new I(a, `${n.value.moduleName}_value_object.go`), b = [];
2714
- function C(w) {
2715
- for (const f of Object.values(w)) {
2716
- if (!s(f))
2739
+ const C = [], d = {}, i = [...n.value.namespace.split(/\./), n.value.moduleName], a = new S(i, `${n.value.moduleName}.go`), l = [], f = new S(i, `${n.value.moduleName}_value_object.go`), b = [];
2740
+ function g(w) {
2741
+ for (const c of Object.values(w)) {
2742
+ if (!r(c))
2717
2743
  continue;
2718
- const v = r(f);
2719
- if (m[`${a.join("/")}/${v}`] === !0)
2744
+ const h = s(c);
2745
+ if (d[`${i.join("/")}/${h}`] === !0)
2720
2746
  continue;
2721
- const N = e.commands._genInfoCode(f);
2722
- N.length !== 0 && (p.addImports(N[0].imports), b.push(N[0].content), b.push(""), m[`${a.join("/")}/${v}`] = !0);
2747
+ const y = e.commands._genInfoCode(c);
2748
+ y.length !== 0 && (f.addImports(y[0].imports), b.push(y[0].content), b.push(""), d[`${i.join("/")}/${h}`] = !0);
2723
2749
  }
2724
2750
  }
2725
- const h = e.states.designer.value._getContext().getCommands();
2726
- for (const w of h) {
2727
- C(w.inner);
2728
- const f = e.commands._genCommandCode(w);
2729
- for (const v of f)
2730
- m[v.content] !== !0 && (u.addImports(v.imports), i.push(v.content));
2751
+ const u = e.states.designer.value._getContext().getCommands();
2752
+ for (const w of u) {
2753
+ g(w.inner);
2754
+ const c = e.commands._genCommandCode(w);
2755
+ for (const h of c)
2756
+ d[h.content] !== !0 && (a.addImports(h.imports), l.push(h.content));
2731
2757
  }
2732
- const $ = e.states.designer.value._getContext().getFacadeCommands();
2733
- for (const w of $) {
2734
- C(w.inner);
2735
- const f = e.commands._genFacadeCommandCode(w);
2736
- for (const v of f)
2737
- m[v.content] !== !0 && (u.addImports(v.imports), i.push(v.content));
2758
+ const v = e.states.designer.value._getContext().getFacadeCommands();
2759
+ for (const w of v) {
2760
+ g(w.inner);
2761
+ const c = e.commands._genFacadeCommandCode(w);
2762
+ for (const h of c)
2763
+ d[h.content] !== !0 && (a.addImports(h.imports), l.push(h.content));
2738
2764
  }
2739
- const l = e.states.designer.value._getContext().getAggs();
2740
- for (const w of l) {
2741
- C(w.inner);
2742
- const f = e.commands._genAggCode(w);
2743
- for (const v of f)
2744
- m[v.content] !== !0 && (u.addImports(v.imports), i.push(v.content));
2765
+ const m = e.states.designer.value._getContext().getAggs();
2766
+ for (const w of m) {
2767
+ g(w.inner);
2768
+ const c = e.commands._genAggCode(w);
2769
+ for (const h of c)
2770
+ d[h.content] !== !0 && (a.addImports(h.imports), l.push(h.content));
2745
2771
  }
2746
- const d = e.states.designer.value._getContext().getEvents();
2747
- for (const w of d) {
2748
- C(w.inner);
2749
- const f = e.commands._genEventCode(w);
2750
- for (const v of f)
2751
- m[v.content] !== !0 && (u.addImports(v.imports), i.push(v.content));
2772
+ const $ = e.states.designer.value._getContext().getEvents();
2773
+ for (const w of $) {
2774
+ g(w.inner);
2775
+ const c = e.commands._genEventCode(w);
2776
+ for (const h of c)
2777
+ d[h.content] !== !0 && (a.addImports(h.imports), l.push(h.content));
2752
2778
  }
2753
- return u.appendContentln(`package ${n.value.moduleName}`), u.appendContentln(""), u.getImports().length > 0 && (u.appendContentln("import ("), u.appendContentln(` ${[...u.getImports()].join(`
2754
- `)}`), u.appendContentln(")")), u.appendContentln(i.join(`
2755
- `)), p.appendContentln(`package ${n.value.moduleName}`), p.appendContentln(""), p.getImports().length > 0 && (p.appendContentln("import ("), p.appendContentln(` ${[...p.getImports()].map((w) => `"${w}"`).join(`
2756
- `)}`), p.appendContentln(")"), p.appendContentln("")), p.appendContentln(b.join(`
2757
- `)), _.push(u), _.push(p), _;
2779
+ return a.appendContentln(`package ${n.value.moduleName}`), a.appendContentln(""), a.getImports().length > 0 && (a.appendContentln("import ("), a.appendContentln(` ${[...a.getImports()].join(`
2780
+ `)}`), a.appendContentln(")")), a.appendContentln(l.join(`
2781
+ `)), f.appendContentln(`package ${n.value.moduleName}`), f.appendContentln(""), f.getImports().length > 0 && (f.appendContentln("import ("), f.appendContentln(` ${[...f.getImports()].map((w) => `"${w}"`).join(`
2782
+ `)}`), f.appendContentln(")"), f.appendContentln("")), f.appendContentln(b.join(`
2783
+ `)), C.push(a), C.push(f), C;
2758
2784
  });
2759
2785
  }
2760
- })), K = Ee.CSharpGeneratorAddition, Do = pe.createHotSwapPlugin(() => {
2786
+ })), M = ye.CSharpGeneratorAddition, xo = le.createHotSwapPlugin(() => {
2761
2787
  const e = " ";
2762
- function n(t, s = 1) {
2788
+ function n(t, r = 1) {
2763
2789
  return t.split(`
2764
- `).map((o) => e.repeat(s) + o).join(`
2790
+ `).map((o) => e.repeat(r) + o).join(`
2765
2791
  `);
2766
2792
  }
2767
2793
  return {
@@ -2769,289 +2795,289 @@ const S = Ne.JavaGeneratorAddition, Oo = pe.createHotSwapPlugin(() => {
2769
2795
  t.commands.clearCaches(), t.commands._setCommandCodeProvider(() => []), t.commands._setFacadeCommandCodeProvider(() => []), t.commands._setAggCodeProvider(() => []), t.commands._setEventCodeProvider(() => []), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => []), t.commands.setContext({});
2770
2796
  },
2771
2797
  mount({ api: t }) {
2772
- const s = t.states.context, o = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((a) => y.stringToLowerCamel(a));
2773
- function r(a) {
2774
- return !o.includes(y.stringToLowerCamel(a._attributes.name));
2798
+ const r = t.states.context, o = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((i) => N.stringToLowerCamel(i));
2799
+ function s(i) {
2800
+ return !o.includes(N.stringToLowerCamel(i._attributes.name));
2775
2801
  }
2776
- function c(a, u) {
2777
- return r(u) ? y.stringToUpperCamel(u._attributes.name) : m(a, u);
2802
+ function p(i, a) {
2803
+ return s(a) ? N.stringToUpperCamel(a._attributes.name) : d(i, a);
2778
2804
  }
2779
- function g(a) {
2780
- return y.stringToUpperCamel(a._attributes.name);
2805
+ function _(i) {
2806
+ return N.stringToUpperCamel(i._attributes.name);
2781
2807
  }
2782
- function _(a) {
2783
- return a.has(K.RecordStruct) ? " struct" : "";
2808
+ function C(i) {
2809
+ return i.has(M.RecordStruct) ? " struct" : "";
2784
2810
  }
2785
- function m(a, u) {
2786
- const i = s.value.additions, p = y.stringToLowerSnake(u._attributes.name).replace(/_/, " ");
2787
- return /\b(time|timestamp|date|deadline|expire)\b/.test(p) ? i.has(K.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(p) ? "int" : /\b(price)$/.test(p) ? "decimal" : /^(if|is)\b/.test(p) ? "bool" : je(u) && (u._attributes.type === "Id" || u._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(p)) ? "long" : "string";
2811
+ function d(i, a) {
2812
+ const l = r.value.additions, f = N.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
2813
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(f) ? l.has(M.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(f) ? "int" : /\b(price)$/.test(f) ? "decimal" : /^(if|is)\b/.test(f) ? "bool" : Ee(a) && (a._attributes.type === "Id" || a._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(f)) ? "long" : "string";
2788
2814
  }
2789
2815
  t.commands._setInfoCodeProvider(
2790
- (a) => {
2791
- const u = s.value.additions, i = /* @__PURE__ */ new Set(), p = [];
2792
- return p.push(
2793
- `public record${_(u)} ${g(a)}(${m(
2794
- i,
2795
- a
2816
+ (i) => {
2817
+ const a = r.value.additions, l = /* @__PURE__ */ new Set(), f = [];
2818
+ return f.push(
2819
+ `public record${C(a)} ${_(i)}(${d(
2820
+ l,
2821
+ i
2796
2822
  )} value);`
2797
2823
  ), [
2798
2824
  {
2799
2825
  type: "Info",
2800
- content: p.join(`
2826
+ content: f.join(`
2801
2827
  `),
2802
- imports: i
2828
+ imports: l
2803
2829
  }
2804
2830
  ];
2805
2831
  }
2806
2832
  ), t.commands._setCommandCodeProvider(
2807
- (a) => {
2808
- const u = [], i = s.value.additions, p = /* @__PURE__ */ new Set(), b = g(a);
2833
+ (i) => {
2834
+ const a = [], l = r.value.additions, f = /* @__PURE__ */ new Set(), b = _(i);
2809
2835
  {
2810
- const C = [], h = Object.values(a.inner);
2811
- C.push(`public record${_(i)} ${b}`), C.push("(");
2812
- const $ = [];
2813
- for (const l of h) {
2814
- const d = g(l);
2815
- $.push(`${c(p, l)} ${y.upperFirst(d)}`);
2836
+ const g = [], u = Object.values(i.inner);
2837
+ g.push(`public record${C(l)} ${b}`), g.push("(");
2838
+ const v = [];
2839
+ for (const m of u) {
2840
+ const $ = _(m);
2841
+ v.push(`${p(f, m)} ${N.upperFirst($)}`);
2816
2842
  }
2817
- C.push(` ${$.join(`,
2818
- `)}`), C.push(")"), C.push("{"), C.push("}"), u.push({
2843
+ g.push(` ${v.join(`,
2844
+ `)}`), g.push(")"), g.push("{"), g.push("}"), a.push({
2819
2845
  type: "Command",
2820
- content: C.join(`
2846
+ content: g.join(`
2821
2847
  `),
2822
- imports: p
2848
+ imports: f
2823
2849
  });
2824
2850
  }
2825
2851
  {
2826
- const C = i.has(K.CommandHandlerInterface) ? ` : ${s.value.commandHandlerInterface}` : "", h = [];
2827
- h.push(`public class ${b}Handler${C}`), h.push("{"), h.push(` public void Handle(${b} command)`), h.push(" {"), h.push(" // HACK implement"), h.push(" }"), h.push("}"), u.push({
2852
+ const g = l.has(M.CommandHandlerInterface) ? ` : ${r.value.commandHandlerInterface}` : "", u = [];
2853
+ u.push(`public class ${b}Handler${g}`), u.push("{"), u.push(` public void Handle(${b} command)`), u.push(" {"), u.push(" // HACK implement"), u.push(" }"), u.push("}"), a.push({
2828
2854
  type: "CommandHandler",
2829
- content: h.join(`
2855
+ content: u.join(`
2830
2856
  `),
2831
- imports: p
2857
+ imports: f
2832
2858
  });
2833
2859
  }
2834
- return u;
2860
+ return a;
2835
2861
  }
2836
2862
  ), t.commands._setFacadeCommandCodeProvider(
2837
- (a) => {
2838
- const u = [], i = s.value.additions, p = /* @__PURE__ */ new Set(), b = g(a);
2863
+ (i) => {
2864
+ const a = [], l = r.value.additions, f = /* @__PURE__ */ new Set(), b = _(i);
2839
2865
  {
2840
- const C = [], h = Object.values(a.inner);
2841
- C.push(`public record${_(i)} ${b}`), C.push("(");
2842
- const $ = [];
2843
- for (const l of h) {
2844
- const d = g(l);
2845
- $.push(`${c(p, l)} ${y.upperFirst(d)}`);
2866
+ const g = [], u = Object.values(i.inner);
2867
+ g.push(`public record${C(l)} ${b}`), g.push("(");
2868
+ const v = [];
2869
+ for (const m of u) {
2870
+ const $ = _(m);
2871
+ v.push(`${p(f, m)} ${N.upperFirst($)}`);
2846
2872
  }
2847
- C.push(` ${$.join(`,
2848
- `)}`), C.push(")"), C.push("{"), C.push("}"), u.push({
2873
+ g.push(` ${v.join(`,
2874
+ `)}`), g.push(")"), g.push("{"), g.push("}"), a.push({
2849
2875
  type: "FacadeCommand",
2850
- content: C.join(`
2876
+ content: g.join(`
2851
2877
  `),
2852
- imports: p
2878
+ imports: f
2853
2879
  });
2854
2880
  }
2855
2881
  {
2856
- const C = i.has(K.CommandHandlerInterface) ? ` : ${s.value.commandHandlerInterface}` : "", h = [];
2857
- h.push(`public class ${b}Handler${C}`), h.push("{"), h.push(` public void Handle(${b} command)`), h.push(" {"), h.push(" // HACK implement"), h.push(" }"), h.push("}"), u.push({
2882
+ const g = l.has(M.CommandHandlerInterface) ? ` : ${r.value.commandHandlerInterface}` : "", u = [];
2883
+ u.push(`public class ${b}Handler${g}`), u.push("{"), u.push(` public void Handle(${b} command)`), u.push(" {"), u.push(" // HACK implement"), u.push(" }"), u.push("}"), a.push({
2858
2884
  type: "FacadeCommandHandler",
2859
- content: h.join(`
2885
+ content: u.join(`
2860
2886
  `),
2861
- imports: p
2887
+ imports: f
2862
2888
  });
2863
2889
  }
2864
- return u;
2890
+ return a;
2865
2891
  }
2866
2892
  ), t.commands._setAggCodeProvider(
2867
- (a) => {
2868
- const u = [], i = t.states.designer.value, p = s.value.additions;
2893
+ (i) => {
2894
+ const a = [], l = t.states.designer.value, f = r.value.additions;
2869
2895
  {
2870
- const b = /* @__PURE__ */ new Set(), C = [], h = p.has(K.AggInterface) ? ` : ${s.value.aggInterface}` : "";
2871
- C.push(`public interface I${g(a)}${h}`), C.push("{");
2872
- const $ = [], l = [...i._getContext().getAssociationMap()[a._attributes.__id]].filter((d) => d._attributes.rule === "Command" || d._attributes.rule === "FacadeCommand");
2873
- for (const d of l) {
2874
- const w = g(d);
2875
- $.push(`void Handle${w}(${w} command);`);
2896
+ const b = /* @__PURE__ */ new Set(), g = [], u = f.has(M.AggInterface) ? ` : ${r.value.aggInterface}` : "";
2897
+ g.push(`public interface I${_(i)}${u}`), g.push("{");
2898
+ const v = [], m = [...l._getContext().getAssociationMap()[i._attributes.__id]].filter(($) => $._attributes.rule === "Command" || $._attributes.rule === "FacadeCommand");
2899
+ for (const $ of m) {
2900
+ const w = _($);
2901
+ v.push(`void Handle${w}(${w} command);`);
2876
2902
  }
2877
- C.push(` ${$.join(`
2903
+ g.push(` ${v.join(`
2878
2904
 
2879
- `)}`), C.push("}"), C.push(""), u.push({
2905
+ `)}`), g.push("}"), g.push(""), a.push({
2880
2906
  type: "Agg",
2881
- content: C.join(`
2907
+ content: g.join(`
2882
2908
  `),
2883
2909
  imports: b
2884
2910
  });
2885
2911
  }
2886
2912
  {
2887
- const b = /* @__PURE__ */ new Set(), C = [], h = g(a), $ = Object.values(a.inner), l = p.has(K.AggInterface) ? `, ${s.value.aggInterface}` : "";
2888
- if (p.has(K.PrimaryConstructor)) {
2889
- const d = [...i._getContext().getAssociationMap()[a._attributes.__id]].filter((v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand"), w = [];
2890
- for (const v of $) {
2891
- const N = g(v);
2892
- w.push(`${c(b, v)} ${y.lowerFirst(N)}`);
2913
+ const b = /* @__PURE__ */ new Set(), g = [], u = _(i), v = Object.values(i.inner), m = f.has(M.AggInterface) ? `, ${r.value.aggInterface}` : "";
2914
+ if (f.has(M.PrimaryConstructor)) {
2915
+ const $ = [...l._getContext().getAssociationMap()[i._attributes.__id]].filter((h) => h._attributes.rule === "Command" || h._attributes.rule === "FacadeCommand"), w = [];
2916
+ for (const h of v) {
2917
+ const y = _(h);
2918
+ w.push(`${p(b, h)} ${N.lowerFirst(y)}`);
2893
2919
  }
2894
- C.push(`public class ${h}`), C.push("("), C.push(` ${w.join(`,
2895
- `)}`), C.push(`): I${h}${l}`), C.push("{");
2896
- for (const v of $) {
2897
- const N = g(v);
2898
- C.push(
2899
- ` public ${c(b, v)} ${y.upperFirst(
2900
- N
2901
- )} { get; private set; } = ${y.lowerFirst(N)};`
2902
- ), C.push("");
2920
+ g.push(`public class ${u}`), g.push("("), g.push(` ${w.join(`,
2921
+ `)}`), g.push(`): I${u}${m}`), g.push("{");
2922
+ for (const h of v) {
2923
+ const y = _(h);
2924
+ g.push(
2925
+ ` public ${p(b, h)} ${N.upperFirst(
2926
+ y
2927
+ )} { get; private set; } = ${N.lowerFirst(y)};`
2928
+ ), g.push("");
2903
2929
  }
2904
- const f = [];
2905
- for (const v of d) {
2906
- const N = g(v);
2907
- f.push(`public void Handle${N}(${N} command)`), f.push("{"), f.push(" // HACK implement"), f.push("}"), f.push("");
2930
+ const c = [];
2931
+ for (const h of $) {
2932
+ const y = _(h);
2933
+ c.push(`public void Handle${y}(${y} command)`), c.push("{"), c.push(" // HACK implement"), c.push("}"), c.push("");
2908
2934
  }
2909
- C.push(` ${f.join(`
2910
- `)}`), C.push("}");
2935
+ g.push(` ${c.join(`
2936
+ `)}`), g.push("}");
2911
2937
  } else {
2912
- const d = [...i._getContext().getAssociationMap()[a._attributes.__id]].filter((v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand");
2913
- C.push(`public class ${h} : I${h}${l}`), C.push("{");
2914
- for (const v of $) {
2915
- const N = g(v);
2916
- C.push(
2917
- ` public ${c(b, v)} ${y.lowerFirst(
2918
- N
2938
+ const $ = [...l._getContext().getAssociationMap()[i._attributes.__id]].filter((h) => h._attributes.rule === "Command" || h._attributes.rule === "FacadeCommand");
2939
+ g.push(`public class ${u} : I${u}${m}`), g.push("{");
2940
+ for (const h of v) {
2941
+ const y = _(h);
2942
+ g.push(
2943
+ ` public ${p(b, h)} ${N.lowerFirst(
2944
+ y
2919
2945
  )} { get; private set; }`
2920
2946
  );
2921
2947
  }
2922
- C.push("");
2948
+ g.push("");
2923
2949
  const w = [];
2924
- for (const v of $) {
2925
- const N = g(v);
2926
- w.push(`${c(b, v)} ${N}`);
2950
+ for (const h of v) {
2951
+ const y = _(h);
2952
+ w.push(`${p(b, h)} ${y}`);
2927
2953
  }
2928
- C.push(` public ${h}(${w.join(", ")})`), C.push(" {");
2929
- for (const v of $) {
2930
- const N = g(v);
2931
- C.push(` ${N} = ${y.lowerFirst(N)};`);
2954
+ g.push(` public ${u}(${w.join(", ")})`), g.push(" {");
2955
+ for (const h of v) {
2956
+ const y = _(h);
2957
+ g.push(` ${y} = ${N.lowerFirst(y)};`);
2932
2958
  }
2933
- C.push(" }");
2934
- const f = [];
2935
- for (const v of d) {
2936
- const N = g(v);
2937
- f.push(`public void Handle${N}(${N} command)`), f.push("{"), f.push(" // HACK implement"), f.push("}"), f.push("");
2959
+ g.push(" }");
2960
+ const c = [];
2961
+ for (const h of $) {
2962
+ const y = _(h);
2963
+ c.push(`public void Handle${y}(${y} command)`), c.push("{"), c.push(" // HACK implement"), c.push("}"), c.push("");
2938
2964
  }
2939
- C.push(` ${f.join(`
2940
- `)}`), C.push("}");
2965
+ g.push(` ${c.join(`
2966
+ `)}`), g.push("}");
2941
2967
  }
2942
- u.push({
2968
+ a.push({
2943
2969
  type: "AggImpl",
2944
- content: C.join(`
2970
+ content: g.join(`
2945
2971
  `),
2946
2972
  imports: b
2947
2973
  });
2948
2974
  }
2949
- return u;
2975
+ return a;
2950
2976
  }
2951
2977
  ), t.commands._setEventCodeProvider(
2952
- (a) => {
2953
- const u = s.value.additions, i = g(a), p = /* @__PURE__ */ new Set(), b = Object.values(a.inner), C = [];
2954
- C.push(`public record${_(u)} ${i}`), C.push("(");
2955
- const h = [];
2956
- for (const $ of b) {
2957
- const l = g($);
2958
- h.push(`${c(p, $)} ${y.upperFirst(l)}`);
2978
+ (i) => {
2979
+ const a = r.value.additions, l = _(i), f = /* @__PURE__ */ new Set(), b = Object.values(i.inner), g = [];
2980
+ g.push(`public record${C(a)} ${l}`), g.push("(");
2981
+ const u = [];
2982
+ for (const v of b) {
2983
+ const m = _(v);
2984
+ u.push(`${p(f, v)} ${N.upperFirst(m)}`);
2959
2985
  }
2960
- return C.push(` ${h.join(`,
2961
- `)}`), C.push(")"), C.push("{"), C.push("}"), [
2986
+ return g.push(` ${u.join(`,
2987
+ `)}`), g.push(")"), g.push("{"), g.push("}"), [
2962
2988
  {
2963
2989
  type: "Event",
2964
- content: C.join(`
2990
+ content: g.join(`
2965
2991
  `),
2966
- imports: p
2992
+ imports: f
2967
2993
  }
2968
2994
  ];
2969
2995
  }
2970
2996
  ), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => {
2971
- const a = [], u = {}, i = [...s.value.namespace.split(/\./), y.stringToUpperCamel(s.value.moduleName)];
2972
- function p(l) {
2973
- for (const d of Object.values(l)) {
2974
- if (!r(d))
2997
+ const i = [], a = {}, l = [...r.value.namespace.split(/\./), N.stringToUpperCamel(r.value.moduleName)];
2998
+ function f(m) {
2999
+ for (const $ of Object.values(m)) {
3000
+ if (!s($))
2975
3001
  continue;
2976
- const w = g(d) + ".cs";
2977
- if (u[`${i.join("/")}/${w}`] === !0)
3002
+ const w = _($) + ".cs";
3003
+ if (a[`${l.join("/")}/${w}`] === !0)
2978
3004
  continue;
2979
- const f = t.commands._genInfoCode(d);
2980
- if (f.length === 0)
3005
+ const c = t.commands._genInfoCode($);
3006
+ if (c.length === 0)
2981
3007
  continue;
2982
- const v = new I(i, w);
2983
- for (const N of f[0].imports)
2984
- v.appendContentln(`using ${N};`);
2985
- v.appendContentln(""), v.appendContentln(
2986
- `namespace ${s.value.namespace}.${y.stringToUpperCamel(s.value.moduleName)}`
2987
- ), v.appendContentln("{"), v.appendContentln(n(f[0].content)), v.appendContentln("}"), a.push(v), u[`${i.join("/")}/${w}`] = !0;
3008
+ const h = new S(l, w);
3009
+ for (const y of c[0].imports)
3010
+ h.appendContentln(`using ${y};`);
3011
+ h.appendContentln(""), h.appendContentln(
3012
+ `namespace ${r.value.namespace}.${N.stringToUpperCamel(r.value.moduleName)}`
3013
+ ), h.appendContentln("{"), h.appendContentln(n(c[0].content)), h.appendContentln("}"), i.push(h), a[`${l.join("/")}/${w}`] = !0;
2988
3014
  }
2989
3015
  }
2990
3016
  const b = t.states.designer.value._getContext().getCommands();
2991
- for (const l of b) {
2992
- p(l.inner);
2993
- const d = g(l) + ".cs", w = t.commands._genCommandCode(l), f = new I(i, d);
2994
- for (const v of w)
2995
- if (v.type === "Command") {
2996
- f.addImports(v.imports);
2997
- for (const N of v.imports)
2998
- f.appendContentln(`using ${N};`);
2999
- f.appendContentln(""), f.appendContentln(
3000
- `namespace ${s.value.namespace}.${y.stringToUpperCamel(s.value.moduleName)}`
3001
- ), f.appendContentln("{"), f.appendContentln(n(v.content)), f.appendContentln("}");
3017
+ for (const m of b) {
3018
+ f(m.inner);
3019
+ const $ = _(m) + ".cs", w = t.commands._genCommandCode(m), c = new S(l, $);
3020
+ for (const h of w)
3021
+ if (h.type === "Command") {
3022
+ c.addImports(h.imports);
3023
+ for (const y of h.imports)
3024
+ c.appendContentln(`using ${y};`);
3025
+ c.appendContentln(""), c.appendContentln(
3026
+ `namespace ${r.value.namespace}.${N.stringToUpperCamel(r.value.moduleName)}`
3027
+ ), c.appendContentln("{"), c.appendContentln(n(h.content)), c.appendContentln("}");
3002
3028
  }
3003
- a.push(f);
3029
+ i.push(c);
3004
3030
  }
3005
- const C = t.states.designer.value._getContext().getFacadeCommands();
3006
- for (const l of C) {
3007
- p(l.inner);
3008
- const d = g(l) + ".cs", w = t.commands._genFacadeCommandCode(l), f = new I(i, d);
3009
- f.addImports(w[0].imports);
3010
- for (const v of w[0].imports)
3011
- f.appendContentln(`using ${v};`);
3012
- f.appendContentln(""), f.appendContentln(
3013
- `namespace ${s.value.namespace}.${y.stringToUpperCamel(s.value.moduleName)}`
3014
- ), f.appendContentln("{"), f.appendContentln(n(w[0].content)), f.appendContentln("}"), a.push(f);
3031
+ const g = t.states.designer.value._getContext().getFacadeCommands();
3032
+ for (const m of g) {
3033
+ f(m.inner);
3034
+ const $ = _(m) + ".cs", w = t.commands._genFacadeCommandCode(m), c = new S(l, $);
3035
+ c.addImports(w[0].imports);
3036
+ for (const h of w[0].imports)
3037
+ c.appendContentln(`using ${h};`);
3038
+ c.appendContentln(""), c.appendContentln(
3039
+ `namespace ${r.value.namespace}.${N.stringToUpperCamel(r.value.moduleName)}`
3040
+ ), c.appendContentln("{"), c.appendContentln(n(w[0].content)), c.appendContentln("}"), i.push(c);
3015
3041
  }
3016
- const h = t.states.designer.value._getContext().getAggs();
3017
- for (const l of h) {
3018
- p(l.inner);
3019
- const d = t.commands._genAggCode(l), w = g(l) + ".cs", f = new I(i, w);
3020
- for (const v of d) {
3021
- f.addImports(v.imports);
3022
- for (const N of v.imports)
3023
- f.appendContentln(`using ${N};`);
3024
- f.appendContentln("");
3042
+ const u = t.states.designer.value._getContext().getAggs();
3043
+ for (const m of u) {
3044
+ f(m.inner);
3045
+ const $ = t.commands._genAggCode(m), w = _(m) + ".cs", c = new S(l, w);
3046
+ for (const h of $) {
3047
+ c.addImports(h.imports);
3048
+ for (const y of h.imports)
3049
+ c.appendContentln(`using ${y};`);
3050
+ c.appendContentln("");
3025
3051
  }
3026
- f.appendContentln(
3027
- `namespace ${s.value.namespace}.${y.stringToUpperCamel(s.value.moduleName)}`
3028
- ), f.appendContentln("{");
3029
- for (const v of d)
3030
- f.appendContentln(n(v.content));
3031
- f.appendContentln("}"), a.push(f);
3052
+ c.appendContentln(
3053
+ `namespace ${r.value.namespace}.${N.stringToUpperCamel(r.value.moduleName)}`
3054
+ ), c.appendContentln("{");
3055
+ for (const h of $)
3056
+ c.appendContentln(n(h.content));
3057
+ c.appendContentln("}"), i.push(c);
3032
3058
  }
3033
- const $ = t.states.designer.value._getContext().getEvents();
3034
- for (const l of $) {
3035
- p(l.inner);
3036
- const d = g(l) + ".cs", w = t.commands._genEventCode(l), f = new I(i, d);
3037
- f.addImports(w[0].imports);
3038
- for (const v of w[0].imports)
3039
- f.appendContentln(`using ${v};`);
3040
- f.appendContentln(""), f.appendContentln(
3041
- `namespace ${s.value.namespace}.${y.stringToUpperCamel(s.value.moduleName)}`
3042
- ), f.appendContentln("{"), f.appendContentln(n(w[0].content)), f.appendContentln("}"), a.push(f);
3059
+ const v = t.states.designer.value._getContext().getEvents();
3060
+ for (const m of v) {
3061
+ f(m.inner);
3062
+ const $ = _(m) + ".cs", w = t.commands._genEventCode(m), c = new S(l, $);
3063
+ c.addImports(w[0].imports);
3064
+ for (const h of w[0].imports)
3065
+ c.appendContentln(`using ${h};`);
3066
+ c.appendContentln(""), c.appendContentln(
3067
+ `namespace ${r.value.namespace}.${N.stringToUpperCamel(r.value.moduleName)}`
3068
+ ), c.appendContentln("{"), c.appendContentln(n(w[0].content)), c.appendContentln("}"), i.push(c);
3043
3069
  }
3044
- return a;
3070
+ return i;
3045
3071
  });
3046
3072
  }
3047
3073
  };
3048
3074
  });
3049
3075
  export {
3050
- Do as GENERATOR_CSHARP_PLUGIN,
3051
- xo as GENERATOR_GO_PLUGIN,
3052
- Oo as GENERATOR_JAVA_PLUGIN,
3053
- To as GENERATOR_KOTLIN_PLUGIN,
3054
- pe as GeneratorPliginHelper,
3055
- Io as define,
3076
+ xo as GENERATOR_CSHARP_PLUGIN,
3077
+ To as GENERATOR_GO_PLUGIN,
3078
+ Io as GENERATOR_JAVA_PLUGIN,
3079
+ Oo as GENERATOR_KOTLIN_PLUGIN,
3080
+ le as GeneratorPliginHelper,
3081
+ So as define,
3056
3082
  Ao as useGeneratorAgg
3057
3083
  };