@ddd-tool/domain-designer-generator 0.1.0-beta.8 → 0.3.0

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