@dpuse/dpuse-development 0.3.705 → 0.3.706

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.
@@ -2046,9 +2046,10 @@ I.checkPropClash = function(e, t, n) {
2046
2046
  l.operator = this.value, l.prefix = !1, l.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(l, "UpdateExpression");
2047
2047
  }
2048
2048
  }
2049
- if (!n && (o.type !== "ArrowFunctionExpression" || o.start !== i) && this.eat(E.starstar)) if (t) this.unexpected(this.lastTokStart);
2050
- else return this.buildBinary(i, a, o, this.parseMaybeUnary(null, !1, !1, r), "**", !1);
2051
- else return o;
2049
+ if (!n && (o.type !== "ArrowFunctionExpression" || o.start !== i) && this.eat(E.starstar)) {
2050
+ if (t) this.unexpected(this.lastTokStart);
2051
+ else return this.buildBinary(i, a, o, this.parseMaybeUnary(null, !1, !1, r), "**", !1);
2052
+ } else return o;
2052
2053
  };
2053
2054
  function et(e) {
2054
2055
  return e.type === "Identifier" || e.type === "ParenthesizedExpression" && et(e.expression);
@@ -2598,8 +2599,10 @@ L.regexp_eatPatternCharacters = function(e) {
2598
2599
  if (e.eat(63)) {
2599
2600
  this.regexp_eatGroupName(e) || e.raise("Invalid group");
2600
2601
  var t = this.options.ecmaVersion >= 16, n = e.groupNames[e.lastStringValue];
2601
- if (n) if (t) for (var r = 0, i = n; r < i.length; r += 1) i[r].separatedFrom(e.branchID) || e.raise("Duplicate capture group name");
2602
- else e.raise("Duplicate capture group name");
2602
+ if (n) {
2603
+ if (t) for (var r = 0, i = n; r < i.length; r += 1) i[r].separatedFrom(e.branchID) || e.raise("Duplicate capture group name");
2604
+ else e.raise("Duplicate capture group name");
2605
+ }
2603
2606
  t ? (n || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = !0;
2604
2607
  }
2605
2608
  }, L.regexp_eatGroupName = function(e) {
@@ -2798,19 +2801,21 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2798
2801
  return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2799
2802
  }, L.regexp_classSetExpression = function(e) {
2800
2803
  var t = Rt, n;
2801
- if (!this.regexp_eatClassSetRange(e)) if (n = this.regexp_eatClassSetOperand(e)) {
2802
- n === z && (t = z);
2803
- for (var r = e.pos; e.eatChars([38, 38]);) {
2804
- if (e.current() !== 38 && (n = this.regexp_eatClassSetOperand(e))) {
2805
- n !== z && (t = Rt);
2806
- continue;
2804
+ if (!this.regexp_eatClassSetRange(e)) {
2805
+ if (n = this.regexp_eatClassSetOperand(e)) {
2806
+ n === z && (t = z);
2807
+ for (var r = e.pos; e.eatChars([38, 38]);) {
2808
+ if (e.current() !== 38 && (n = this.regexp_eatClassSetOperand(e))) {
2809
+ n !== z && (t = Rt);
2810
+ continue;
2811
+ }
2812
+ e.raise("Invalid character in character class");
2807
2813
  }
2808
- e.raise("Invalid character in character class");
2809
- }
2810
- if (r !== e.pos) return t;
2811
- for (; e.eatChars([45, 45]);) this.regexp_eatClassSetOperand(e) || e.raise("Invalid character in character class");
2812
- if (r !== e.pos) return t;
2813
- } else e.raise("Invalid character in character class");
2814
+ if (r !== e.pos) return t;
2815
+ for (; e.eatChars([45, 45]);) this.regexp_eatClassSetOperand(e) || e.raise("Invalid character in character class");
2816
+ if (r !== e.pos) return t;
2817
+ } else e.raise("Invalid character in character class");
2818
+ }
2814
2819
  for (;;) if (!this.regexp_eatClassSetRange(e)) {
2815
2820
  if (n = this.regexp_eatClassSetOperand(e), !n) return t;
2816
2821
  n === z && (t = z);
@@ -6296,44 +6301,29 @@ This project is licensed under the MIT License, permitting free use, modificatio
6296
6301
  [MIT](./LICENSE) © ${r}-present ${n}`;
6297
6302
  }
6298
6303
  //#endregion
6299
- //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-BRbvCPIW.js
6300
- var Gr, Kr = {
6304
+ //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-BvhUd4m4.js
6305
+ var Gr = {
6301
6306
  lang: void 0,
6302
6307
  message: void 0,
6303
6308
  abortEarly: void 0,
6304
6309
  abortPipeEarly: void 0
6305
6310
  };
6306
6311
  /* @__NO_SIDE_EFFECTS__ */
6307
- function qr(e) {
6308
- return !e && !Gr ? Kr : {
6309
- lang: e?.lang ?? Gr?.lang,
6312
+ function Kr(e) {
6313
+ return e ? {
6314
+ lang: e?.lang ?? void 0,
6310
6315
  message: e?.message,
6311
- abortEarly: e?.abortEarly ?? Gr?.abortEarly,
6312
- abortPipeEarly: e?.abortPipeEarly ?? Gr?.abortPipeEarly
6313
- };
6314
- }
6315
- var Jr;
6316
- /* @__NO_SIDE_EFFECTS__ */
6317
- function Yr(e) {
6318
- return Jr?.get(e);
6319
- }
6320
- var Xr;
6321
- /* @__NO_SIDE_EFFECTS__ */
6322
- function Zr(e) {
6323
- return Xr?.get(e);
6324
- }
6325
- var Qr;
6326
- /* @__NO_SIDE_EFFECTS__ */
6327
- function $r(e, t) {
6328
- return Qr?.get(e)?.get(t);
6316
+ abortEarly: e?.abortEarly ?? void 0,
6317
+ abortPipeEarly: e?.abortPipeEarly ?? void 0
6318
+ } : Gr;
6329
6319
  }
6330
6320
  /* @__NO_SIDE_EFFECTS__ */
6331
- function ei(e) {
6321
+ function qr(e) {
6332
6322
  let t = typeof e;
6333
6323
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6334
6324
  }
6335
- function ti(e, t, n, r, i) {
6336
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ ei(a), c = {
6325
+ function Jr(e, t, n, r, i) {
6326
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ qr(a), c = {
6337
6327
  kind: e.kind,
6338
6328
  type: e.type,
6339
6329
  input: a,
@@ -6346,50 +6336,50 @@ function ti(e, t, n, r, i) {
6346
6336
  lang: r.lang,
6347
6337
  abortEarly: r.abortEarly,
6348
6338
  abortPipeEarly: r.abortPipeEarly
6349
- }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ $r(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Zr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Yr(c.lang);
6339
+ }, l = e.kind === "schema", u = i?.message ?? e.message ?? (e.reference, c.lang, void 0) ?? (l ? (c.lang, void 0) : null) ?? r.message ?? (c.lang, void 0);
6350
6340
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6351
6341
  }
6352
- var ni = /* @__PURE__ */ new WeakMap();
6342
+ var Yr = /* @__PURE__ */ new WeakMap();
6353
6343
  /* @__NO_SIDE_EFFECTS__ */
6354
- function X(e) {
6355
- let t = ni.get(e);
6344
+ function Xr(e) {
6345
+ let t = Yr.get(e);
6356
6346
  return t || (t = {
6357
6347
  version: 1,
6358
6348
  vendor: "valibot",
6359
6349
  validate(t) {
6360
- return e["~run"]({ value: t }, /* @__PURE__ */ qr());
6350
+ return e["~run"]({ value: t }, /* @__PURE__ */ Kr());
6361
6351
  }
6362
- }, ni.set(e, t)), t;
6352
+ }, Yr.set(e, t)), t;
6363
6353
  }
6364
6354
  /* @__NO_SIDE_EFFECTS__ */
6365
- function ri(e, t) {
6355
+ function Zr(e, t) {
6366
6356
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6367
6357
  }
6368
6358
  /* @__NO_SIDE_EFFECTS__ */
6369
- function ii(e, t) {
6359
+ function Qr(e, t) {
6370
6360
  let n = [...new Set(e)];
6371
6361
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6372
6362
  }
6373
6363
  /* @__NO_SIDE_EFFECTS__ */
6374
- function ai(e, t, n) {
6364
+ function $r(e, t, n) {
6375
6365
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6376
6366
  }
6377
6367
  /* @__NO_SIDE_EFFECTS__ */
6378
- function oi(e, t, n) {
6368
+ function ei(e, t, n) {
6379
6369
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6380
6370
  }
6381
6371
  /* @__NO_SIDE_EFFECTS__ */
6382
- function si(e, t) {
6372
+ function ti(e, t) {
6383
6373
  return {
6384
6374
  kind: "schema",
6385
6375
  type: "array",
6386
- reference: si,
6376
+ reference: ti,
6387
6377
  expects: "Array",
6388
6378
  async: !1,
6389
6379
  item: e,
6390
6380
  message: t,
6391
6381
  get "~standard"() {
6392
- return /* @__PURE__ */ X(this);
6382
+ return /* @__PURE__ */ Xr(this);
6393
6383
  },
6394
6384
  "~run"(e, t) {
6395
6385
  let n = e.value;
@@ -6413,93 +6403,93 @@ function si(e, t) {
6413
6403
  }
6414
6404
  a.typed || (e.typed = !1), e.value.push(a.value);
6415
6405
  }
6416
- } else ti(this, "type", e, t);
6406
+ } else Jr(this, "type", e, t);
6417
6407
  return e;
6418
6408
  }
6419
6409
  };
6420
6410
  }
6421
6411
  /* @__NO_SIDE_EFFECTS__ */
6422
- function ci(e) {
6412
+ function ni(e) {
6423
6413
  return {
6424
6414
  kind: "schema",
6425
6415
  type: "boolean",
6426
- reference: ci,
6416
+ reference: ni,
6427
6417
  expects: "boolean",
6428
6418
  async: !1,
6429
6419
  message: e,
6430
6420
  get "~standard"() {
6431
- return /* @__PURE__ */ X(this);
6421
+ return /* @__PURE__ */ Xr(this);
6432
6422
  },
6433
6423
  "~run"(e, t) {
6434
- return typeof e.value == "boolean" ? e.typed = !0 : ti(this, "type", e, t), e;
6424
+ return typeof e.value == "boolean" ? e.typed = !0 : Jr(this, "type", e, t), e;
6435
6425
  }
6436
6426
  };
6437
6427
  }
6438
6428
  /* @__NO_SIDE_EFFECTS__ */
6439
- function li(e, t) {
6429
+ function ri(e, t) {
6440
6430
  return {
6441
6431
  kind: "schema",
6442
6432
  type: "literal",
6443
- reference: li,
6444
- expects: /* @__PURE__ */ ei(e),
6433
+ reference: ri,
6434
+ expects: /* @__PURE__ */ qr(e),
6445
6435
  async: !1,
6446
6436
  literal: e,
6447
6437
  message: t,
6448
6438
  get "~standard"() {
6449
- return /* @__PURE__ */ X(this);
6439
+ return /* @__PURE__ */ Xr(this);
6450
6440
  },
6451
6441
  "~run"(e, t) {
6452
- return e.value === this.literal ? e.typed = !0 : ti(this, "type", e, t), e;
6442
+ return e.value === this.literal ? e.typed = !0 : Jr(this, "type", e, t), e;
6453
6443
  }
6454
6444
  };
6455
6445
  }
6456
6446
  /* @__NO_SIDE_EFFECTS__ */
6457
- function Z(e, t) {
6447
+ function X(e, t) {
6458
6448
  return {
6459
6449
  kind: "schema",
6460
6450
  type: "nullable",
6461
- reference: Z,
6451
+ reference: X,
6462
6452
  expects: `(${e.expects} | null)`,
6463
6453
  async: !1,
6464
6454
  wrapped: e,
6465
6455
  default: t,
6466
6456
  get "~standard"() {
6467
- return /* @__PURE__ */ X(this);
6457
+ return /* @__PURE__ */ Xr(this);
6468
6458
  },
6469
6459
  "~run"(e, t) {
6470
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ oi(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6460
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ ei(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6471
6461
  }
6472
6462
  };
6473
6463
  }
6474
6464
  /* @__NO_SIDE_EFFECTS__ */
6475
- function ui(e) {
6465
+ function ii(e) {
6476
6466
  return {
6477
6467
  kind: "schema",
6478
6468
  type: "number",
6479
- reference: ui,
6469
+ reference: ii,
6480
6470
  expects: "number",
6481
6471
  async: !1,
6482
6472
  message: e,
6483
6473
  get "~standard"() {
6484
- return /* @__PURE__ */ X(this);
6474
+ return /* @__PURE__ */ Xr(this);
6485
6475
  },
6486
6476
  "~run"(e, t) {
6487
- return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : ti(this, "type", e, t), e;
6477
+ return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : Jr(this, "type", e, t), e;
6488
6478
  }
6489
6479
  };
6490
6480
  }
6491
6481
  /* @__NO_SIDE_EFFECTS__ */
6492
- function Q(e, t) {
6482
+ function Z(e, t) {
6493
6483
  return {
6494
6484
  kind: "schema",
6495
6485
  type: "object",
6496
- reference: Q,
6486
+ reference: Z,
6497
6487
  expects: "Object",
6498
6488
  async: !1,
6499
6489
  entries: e,
6500
6490
  message: t,
6501
6491
  get "~standard"() {
6502
- return /* @__PURE__ */ X(this);
6492
+ return /* @__PURE__ */ Xr(this);
6503
6493
  },
6504
6494
  "~run"(e, t) {
6505
6495
  let n = e.value;
@@ -6508,7 +6498,7 @@ function Q(e, t) {
6508
6498
  for (let r in this.entries) {
6509
6499
  let i = this.entries[r];
6510
6500
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6511
- let a = r in n ? n[r] : /* @__PURE__ */ oi(i), o = i["~run"]({ value: a }, t);
6501
+ let a = r in n ? n[r] : /* @__PURE__ */ ei(i), o = i["~run"]({ value: a }, t);
6512
6502
  if (o.issues) {
6513
6503
  let i = {
6514
6504
  type: "object",
@@ -6524,8 +6514,8 @@ function Q(e, t) {
6524
6514
  }
6525
6515
  }
6526
6516
  o.typed || (e.typed = !1), e.value[r] = o.value;
6527
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ai(i);
6528
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (ti(this, "key", e, t, {
6517
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ $r(i);
6518
+ else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (Jr(this, "key", e, t, {
6529
6519
  input: void 0,
6530
6520
  expected: `"${r}"`,
6531
6521
  path: [{
@@ -6537,48 +6527,48 @@ function Q(e, t) {
6537
6527
  }]
6538
6528
  }), t.abortEarly)) break;
6539
6529
  }
6540
- } else ti(this, "type", e, t);
6530
+ } else Jr(this, "type", e, t);
6541
6531
  return e;
6542
6532
  }
6543
6533
  };
6544
6534
  }
6545
6535
  /* @__NO_SIDE_EFFECTS__ */
6546
- function di(e, t) {
6536
+ function Q(e, t) {
6547
6537
  return {
6548
6538
  kind: "schema",
6549
6539
  type: "optional",
6550
- reference: di,
6540
+ reference: Q,
6551
6541
  expects: `(${e.expects} | undefined)`,
6552
6542
  async: !1,
6553
6543
  wrapped: e,
6554
6544
  default: t,
6555
6545
  get "~standard"() {
6556
- return /* @__PURE__ */ X(this);
6546
+ return /* @__PURE__ */ Xr(this);
6557
6547
  },
6558
6548
  "~run"(e, t) {
6559
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ oi(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6549
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ ei(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6560
6550
  }
6561
6551
  };
6562
6552
  }
6563
6553
  /* @__NO_SIDE_EFFECTS__ */
6564
- function fi(e, t, n) {
6554
+ function ai(e, t, n) {
6565
6555
  return {
6566
6556
  kind: "schema",
6567
6557
  type: "record",
6568
- reference: fi,
6558
+ reference: ai,
6569
6559
  expects: "Object",
6570
6560
  async: !1,
6571
6561
  key: e,
6572
6562
  value: t,
6573
6563
  message: n,
6574
6564
  get "~standard"() {
6575
- return /* @__PURE__ */ X(this);
6565
+ return /* @__PURE__ */ Xr(this);
6576
6566
  },
6577
6567
  "~run"(e, t) {
6578
6568
  let n = e.value;
6579
6569
  if (n && typeof n == "object") {
6580
6570
  e.typed = !0, e.value = {};
6581
- for (let r in n) if (/* @__PURE__ */ ri(n, r)) {
6571
+ for (let r in n) if (/* @__PURE__ */ Zr(n, r)) {
6582
6572
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6583
6573
  if (a.issues) {
6584
6574
  let o = {
@@ -6611,7 +6601,7 @@ function fi(e, t, n) {
6611
6601
  }
6612
6602
  (!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);
6613
6603
  }
6614
- } else ti(this, "type", e, t);
6604
+ } else Jr(this, "type", e, t);
6615
6605
  return e;
6616
6606
  }
6617
6607
  };
@@ -6626,70 +6616,71 @@ function $(e) {
6626
6616
  async: !1,
6627
6617
  message: e,
6628
6618
  get "~standard"() {
6629
- return /* @__PURE__ */ X(this);
6619
+ return /* @__PURE__ */ Xr(this);
6630
6620
  },
6631
6621
  "~run"(e, t) {
6632
- return typeof e.value == "string" ? e.typed = !0 : ti(this, "type", e, t), e;
6622
+ return typeof e.value == "string" ? e.typed = !0 : Jr(this, "type", e, t), e;
6633
6623
  }
6634
6624
  };
6635
6625
  }
6636
6626
  /* @__NO_SIDE_EFFECTS__ */
6637
- function pi(e) {
6627
+ function oi(e) {
6638
6628
  let t;
6639
6629
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6640
6630
  else t = n.issues;
6641
6631
  return t;
6642
6632
  }
6643
6633
  /* @__NO_SIDE_EFFECTS__ */
6644
- function mi(e, t) {
6634
+ function si(e, t) {
6645
6635
  return {
6646
6636
  kind: "schema",
6647
6637
  type: "union",
6648
- reference: mi,
6649
- expects: /* @__PURE__ */ ii(e.map((e) => e.expects), "|"),
6638
+ reference: si,
6639
+ expects: /* @__PURE__ */ Qr(e.map((e) => e.expects), "|"),
6650
6640
  async: !1,
6651
6641
  options: e,
6652
6642
  message: t,
6653
6643
  get "~standard"() {
6654
- return /* @__PURE__ */ X(this);
6644
+ return /* @__PURE__ */ Xr(this);
6655
6645
  },
6656
6646
  "~run"(e, t) {
6657
6647
  let n, r, i;
6658
6648
  for (let a of this.options) {
6659
6649
  let o = a["~run"]({ value: e.value }, t);
6660
- if (o.typed) if (o.issues) r ? r.push(o) : r = [o];
6661
- else {
6662
- n = o;
6663
- break;
6664
- }
6665
- else i ? i.push(o) : i = [o];
6650
+ if (o.typed) {
6651
+ if (o.issues) r ? r.push(o) : r = [o];
6652
+ else {
6653
+ n = o;
6654
+ break;
6655
+ }
6656
+ } else i ? i.push(o) : i = [o];
6666
6657
  }
6667
6658
  if (n) return n;
6668
6659
  if (r) {
6669
6660
  if (r.length === 1) return r[0];
6670
- ti(this, "type", e, t, { issues: /* @__PURE__ */ pi(r) }), e.typed = !0;
6661
+ Jr(this, "type", e, t, { issues: /* @__PURE__ */ oi(r) }), e.typed = !0;
6671
6662
  } else if (i?.length === 1) return i[0];
6672
- else ti(this, "type", e, t, { issues: /* @__PURE__ */ pi(i) });
6663
+ else Jr(this, "type", e, t, { issues: /* @__PURE__ */ oi(i) });
6673
6664
  return e;
6674
6665
  }
6675
6666
  };
6676
6667
  }
6677
- var hi = /* @__PURE__ */ Q({
6668
+ var ci = /* @__PURE__ */ Z({
6678
6669
  en: /* @__PURE__ */ $(),
6679
6670
  es: /* @__PURE__ */ $()
6680
- }), gi = {
6671
+ }), li = {
6681
6672
  id: /* @__PURE__ */ $(),
6682
- label: /* @__PURE__ */ Q({
6683
- en: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6684
- es: /* @__PURE__ */ di(/* @__PURE__ */ $())
6673
+ label: /* @__PURE__ */ Z({
6674
+ en: /* @__PURE__ */ Q(/* @__PURE__ */ $()),
6675
+ es: /* @__PURE__ */ Q(/* @__PURE__ */ $())
6685
6676
  }),
6686
- description: /* @__PURE__ */ Q({
6687
- en: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6688
- es: /* @__PURE__ */ di(/* @__PURE__ */ $())
6677
+ description: /* @__PURE__ */ Z({
6678
+ en: /* @__PURE__ */ Q(/* @__PURE__ */ $()),
6679
+ es: /* @__PURE__ */ Q(/* @__PURE__ */ $())
6689
6680
  }),
6690
- icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6691
- iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6692
- }, _i = (e) => /* @__PURE__ */ mi(e.map((e) => /* @__PURE__ */ li(e))), vi = _i([
6681
+ icon: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6682
+ iconDark: /* @__PURE__ */ X(/* @__PURE__ */ $())
6683
+ }, ui = (e) => /* @__PURE__ */ si(e.map((e) => /* @__PURE__ */ ri(e))), di = ui([
6693
6684
  "app",
6694
6685
  "connector",
6695
6686
  "connectorConnection",
@@ -6712,33 +6703,33 @@ var hi = /* @__PURE__ */ Q({
6712
6703
  "presenter",
6713
6704
  "presenterPresentation",
6714
6705
  "tool"
6715
- ]), yi = _i([
6716
- "amber",
6717
- "green",
6718
- "red"
6719
- ]), bi = _i([
6706
+ ]), fi = ui([
6707
+ "danger",
6708
+ "success",
6709
+ "warning"
6710
+ ]), pi = ui([
6720
6711
  "alpha",
6721
6712
  "beta",
6722
6713
  "releaseCandidate",
6723
6714
  "generalAvailability"
6724
- ]), xi = /* @__PURE__ */ Q({
6725
- color: yi,
6715
+ ]), mi = /* @__PURE__ */ Z({
6716
+ color: fi,
6726
6717
  label: /* @__PURE__ */ $()
6727
- }), Si = {
6728
- ...gi,
6729
- typeId: vi
6730
- }, Ci = /* @__PURE__ */ Q({
6731
- ...Si,
6732
- order: /* @__PURE__ */ ui(),
6718
+ }), hi = {
6719
+ ...li,
6720
+ typeId: di
6721
+ }, gi = /* @__PURE__ */ Z({
6722
+ ...hi,
6723
+ order: /* @__PURE__ */ ii(),
6733
6724
  path: /* @__PURE__ */ $()
6734
- }), wi = {
6735
- ...Si,
6736
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ui()),
6737
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ui()),
6738
- status: /* @__PURE__ */ Z(xi),
6739
- statusId: /* @__PURE__ */ Z(bi)
6725
+ }), _i = {
6726
+ ...hi,
6727
+ firstCreatedAt: /* @__PURE__ */ X(/* @__PURE__ */ ii()),
6728
+ lastUpdatedAt: /* @__PURE__ */ X(/* @__PURE__ */ ii()),
6729
+ status: /* @__PURE__ */ X(mi),
6730
+ statusId: /* @__PURE__ */ X(pi)
6740
6731
  };
6741
- ({ ...wi }), _i([
6732
+ ({ ..._i }), ui([
6742
6733
  "app",
6743
6734
  "engine",
6744
6735
  "connector",
@@ -6747,15 +6738,18 @@ var hi = /* @__PURE__ */ Q({
6747
6738
  "tool"
6748
6739
  ]);
6749
6740
  //#endregion
6750
- //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-DOb6pxQ0.js
6751
- var Ti = {
6752
- ...wi,
6741
+ //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-CcJFr8H1.js
6742
+ var vi = {
6743
+ ..._i,
6744
+ vendorAccountURL: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6745
+ vendorDocumentationURL: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6746
+ vendorHomeURL: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6753
6747
  version: /* @__PURE__ */ $()
6754
6748
  };
6755
- ({ ...Ti });
6749
+ ({ ...vi });
6756
6750
  //#endregion
6757
6751
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6758
- var Ei = _i([
6752
+ var yi = ui([
6759
6753
  "abortOperation",
6760
6754
  "auditObjectContent",
6761
6755
  "createObject",
@@ -6771,41 +6765,38 @@ var Ei = _i([
6771
6765
  "retrieveChunks",
6772
6766
  "retrieveRecords",
6773
6767
  "upsertRecords"
6774
- ]), Di = _i([
6768
+ ]), bi = ui([
6775
6769
  "application",
6776
6770
  "curatedDataset",
6777
6771
  "database",
6778
6772
  "fileStore"
6779
- ]), Oi = /* @__PURE__ */ Q({ label: hi }), ki = _i([
6773
+ ]), xi = /* @__PURE__ */ Z({ label: ci }), Si = ui([
6780
6774
  "bidirectional",
6781
6775
  "destination",
6782
6776
  "source"
6783
- ]), Ai = /* @__PURE__ */ Q({ label: hi }), ji = /* @__PURE__ */ Q({
6784
- authMethodId: _i([
6777
+ ]), Ci = /* @__PURE__ */ Z({ label: ci }), wi = /* @__PURE__ */ Z({
6778
+ authMethodId: ui([
6785
6779
  "apiKey",
6786
6780
  "disabled",
6787
6781
  "oAuth2",
6788
6782
  "none"
6789
6783
  ]),
6790
- activeConnectionCount: /* @__PURE__ */ di(/* @__PURE__ */ ui()),
6791
- canDescribe: /* @__PURE__ */ di(/* @__PURE__ */ ci()),
6792
- id: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6793
- label: /* @__PURE__ */ di(hi),
6794
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ ui()),
6795
- params: /* @__PURE__ */ di(/* @__PURE__ */ si(/* @__PURE__ */ fi(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6796
- }), Mi = /* @__PURE__ */ Q({
6797
- ...Ti,
6798
- typeId: /* @__PURE__ */ li("connector"),
6799
- actionNames: /* @__PURE__ */ si(Ei),
6800
- category: /* @__PURE__ */ Z(Oi),
6801
- categoryId: Di,
6802
- implementations: /* @__PURE__ */ fi(/* @__PURE__ */ $(), ji),
6803
- usage: /* @__PURE__ */ Z(Ai),
6804
- usageId: /* @__PURE__ */ Z(ki),
6805
- vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6806
- vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6807
- vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6808
- }), Ni = {
6784
+ activeConnectionCount: /* @__PURE__ */ Q(/* @__PURE__ */ ii()),
6785
+ canDescribe: /* @__PURE__ */ Q(/* @__PURE__ */ ni()),
6786
+ id: /* @__PURE__ */ Q(/* @__PURE__ */ $()),
6787
+ label: /* @__PURE__ */ Q(ci),
6788
+ maxConnectionCount: /* @__PURE__ */ X(/* @__PURE__ */ ii()),
6789
+ params: /* @__PURE__ */ Q(/* @__PURE__ */ ti(/* @__PURE__ */ ai(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6790
+ }), Ti = /* @__PURE__ */ Z({
6791
+ ...vi,
6792
+ typeId: /* @__PURE__ */ ri("connector"),
6793
+ actionNames: /* @__PURE__ */ ti(yi),
6794
+ category: /* @__PURE__ */ X(xi),
6795
+ categoryId: bi,
6796
+ implementations: /* @__PURE__ */ ai(/* @__PURE__ */ $(), wi),
6797
+ usage: /* @__PURE__ */ X(Ci),
6798
+ usageId: /* @__PURE__ */ X(Si)
6799
+ }), Ei = {
6809
6800
  abortOperation: "Abort Operation",
6810
6801
  auditObjectContent: "Audit Object Content",
6811
6802
  createObject: "Create Object",
@@ -6821,12 +6812,12 @@ var Ei = _i([
6821
6812
  retrieveChunks: "Retrieve Chunks",
6822
6813
  retrieveRecords: "Retrieve Records",
6823
6814
  upsertRecords: "Upsert Records"
6824
- }, Pi = /* @__PURE__ */ new Set([
6815
+ }, Di = /* @__PURE__ */ new Set([
6825
6816
  "createObject",
6826
6817
  "dropObject",
6827
6818
  "removeRecords",
6828
6819
  "upsertRecords"
6829
- ]), Fi = /* @__PURE__ */ new Set([
6820
+ ]), Oi = /* @__PURE__ */ new Set([
6830
6821
  "auditObjectContent",
6831
6822
  "findObject",
6832
6823
  "getInfo",
@@ -6837,46 +6828,46 @@ var Ei = _i([
6837
6828
  "retrieveChunks",
6838
6829
  "retrieveRecords"
6839
6830
  ]);
6840
- function Ii(e) {
6831
+ function ki(e) {
6841
6832
  let t = !1, n = !1;
6842
- for (let r of e) Fi.has(r) && (t = !0), Pi.has(r) && (n = !0);
6833
+ for (let r of e) Oi.has(r) && (t = !0), Di.has(r) && (n = !0);
6843
6834
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "source";
6844
6835
  }
6845
- function Li(e) {
6836
+ function Ai(e) {
6846
6837
  let t = new Set(e), n = "|Action|Supported|\n";
6847
6838
  n += "|:----|:-------:|\n";
6848
- for (let e of Object.keys(Ni)) n += `| ${Ni[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6839
+ for (let e of Object.keys(Ei)) n += `| ${Ei[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6849
6840
  return n;
6850
6841
  }
6851
6842
  //#endregion
6852
6843
  //#region src/actions/documentActions.ts
6853
- var Ri = "<!-- CONNECTOR_ACTIONS_START -->", zi = "<!-- CONNECTOR_ACTIONS_END -->", Bi = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Vi = {
6844
+ var ji = "<!-- CONNECTOR_ACTIONS_START -->", Mi = "<!-- CONNECTOR_ACTIONS_END -->", Ni = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Pi = {
6854
6845
  source: "This connector is a Source connector that supports only read actions. Connectors can also function as a Destination (write-only) or Bidirectional (read/write), depending on the actions they support.",
6855
6846
  destination: "This connector is a Destination connector that supports only write actions. Connectors can also function as a Source (read-only) or Bidirectional (read/write), depending on the actions they support.",
6856
6847
  bidirectional: "This connector is a Bidirectional connector that supports both read and write actions. Connectors can also function as a Source (read-only) or Destination (write-only), depending on the actions they support."
6857
- }, Hi = "The table below lists all connector actions and highlights those supported by this connector.";
6858
- async function Ui() {
6848
+ }, Fi = "The table below lists all connector actions and highlights those supported by this connector.";
6849
+ async function Ii() {
6859
6850
  try {
6860
6851
  K("Document Actions"), J("1️⃣ Insert actions description and table into 'README.md'");
6861
- let e = (await W("config.json")).actionNames ?? [], t = Ii(e), n = Li(e), r = `${Bi}\n\n${Vi[t]} ${Hi}\n\n${n}`;
6862
- await Bn("README.md", Gn(await G("./README.md"), r, Ri, zi)), q("Actions documented");
6852
+ let e = (await W("config.json")).actionNames ?? [], t = ki(e), n = Ai(e), r = `${Ni}\n\n${Pi[t]} ${Fi}\n\n${n}`;
6853
+ await Bn("README.md", Gn(await G("./README.md"), r, ji, Mi)), q("Actions documented");
6863
6854
  } catch (e) {
6864
6855
  console.error("❌ Error documenting actions", e), process.exit(1);
6865
6856
  }
6866
6857
  }
6867
6858
  //#endregion
6868
6859
  //#region src/actions/documentOpening.ts
6869
- var Wi = "<!-- OPENING_START -->", Gi = "<!-- OPENING_END -->";
6870
- async function Ki() {
6860
+ var Li = "<!-- OPENING_START -->", Ri = "<!-- OPENING_END -->";
6861
+ async function zi() {
6871
6862
  try {
6872
6863
  K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
6873
- let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } = qi(e), i = Xi(n, r, Ji(e), Yi(t));
6874
- await Bn("README.md", Gn(await G("./README.md"), i, Wi, Gi)), q("Opening documented");
6864
+ let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } = Bi(e), i = Ui(n, r, Vi(e), Hi(t));
6865
+ await Bn("README.md", Gn(await G("./README.md"), i, Li, Ri)), q("Opening documented");
6875
6866
  } catch (e) {
6876
6867
  console.error("❌ Error documenting opening", e), process.exit(1);
6877
6868
  }
6878
6869
  }
6879
- function qi(e) {
6870
+ function Bi(e) {
6880
6871
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6881
6872
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document opening.");
6882
6873
  let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
@@ -6886,17 +6877,17 @@ function qi(e) {
6886
6877
  repo: i[2]
6887
6878
  };
6888
6879
  }
6889
- function Ji(e) {
6880
+ function Vi(e) {
6890
6881
  let t = e.license;
6891
6882
  if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
6892
6883
  return t;
6893
6884
  }
6894
- function Yi(e) {
6885
+ function Hi(e) {
6895
6886
  let t = e.description.en;
6896
6887
  if (t == null || t.length === 0) throw Error("config.json 'description.en' field is required to document opening.");
6897
6888
  return t;
6898
6889
  }
6899
- function Xi(e, t, n, r) {
6890
+ function Ui(e, t, n, r) {
6900
6891
  let i = `https://github.com/${e}/${t}`;
6901
6892
  return `[![License: ${n}](https://img.shields.io/badge/License-${n.replaceAll("-", "--")}-blue.svg)](./LICENSE)
6902
6893
  [![DPUse version](https://img.shields.io/github/v/release/${e}/${t}?color=f6821f&label=DPUse)](${i}/releases/latest)
@@ -6916,31 +6907,31 @@ ${r}`;
6916
6907
  }
6917
6908
  //#endregion
6918
6909
  //#region src/actions/documentUsage.ts
6919
- var Zi = "<!-- USAGE_START -->", Qi = "<!-- USAGE_END -->";
6920
- async function $i() {
6910
+ var Wi = "<!-- USAGE_START -->", Gi = "<!-- USAGE_END -->";
6911
+ async function Ki() {
6921
6912
  try {
6922
6913
  K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
6923
- let e = await W("package.json"), t = ea(e), n = ra(t, ta(t), na(e.engines?.node), na(e.engines?.npm), na(e.devDependencies?.typescript));
6924
- await Bn("README.md", Gn(await G("./README.md"), n, Zi, Qi)), q("Usage documented");
6914
+ let e = await W("package.json"), t = qi(e), n = Xi(t, Ji(t), Yi(e.engines?.node), Yi(e.engines?.npm), Yi(e.devDependencies?.typescript));
6915
+ await Bn("README.md", Gn(await G("./README.md"), n, Wi, Gi)), q("Usage documented");
6925
6916
  } catch (e) {
6926
6917
  console.error("❌ Error documenting usage", e), process.exit(1);
6927
6918
  }
6928
6919
  }
6929
- function ea(e) {
6920
+ function qi(e) {
6930
6921
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6931
6922
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
6932
6923
  return n.replace(/^git\+/, "");
6933
6924
  }
6934
- function ta(e) {
6925
+ function Ji(e) {
6935
6926
  return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
6936
6927
  }
6937
- function na(e) {
6928
+ function Yi(e) {
6938
6929
  if (e == null) throw Error("package.json version range is required to document usage.");
6939
6930
  let t = /\d+(?:\.\d+)*/.exec(e);
6940
6931
  if (t == null) throw Error(`Unable to parse version from '${e}'.`);
6941
6932
  return t[0];
6942
6933
  }
6943
- function ra(e, t, n, r, i) {
6934
+ function Xi(e, t, n, r, i) {
6944
6935
  return `This connector is automatically uploaded to the DPUse Engine cloud once released and becomes instantly available to all new browser app instances, with existing instances notified of the update.
6945
6936
 
6946
6937
  You may view or clone this repository for your own purposes, such as building a new, similar connector, though there is currently no process to accept third-party connectors into DPUse at this stage. Cloned or forked code is unsupported and isn't guaranteed to remain compatible with the DPUse Engine as it evolves.
@@ -6955,7 +6946,7 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.
6955
6946
  }
6956
6947
  //#endregion
6957
6948
  //#region src/actions/formatCode.ts
6958
- async function ia() {
6949
+ async function Zi() {
6959
6950
  try {
6960
6951
  K("Format Code"), await Fn("1️⃣ Format", "prettier", [
6961
6952
  "--write",
@@ -6970,7 +6961,7 @@ async function ia() {
6970
6961
  }
6971
6962
  //#endregion
6972
6963
  //#region src/actions/lintCode.ts
6973
- async function aa() {
6964
+ async function Qi() {
6974
6965
  try {
6975
6966
  K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
6976
6967
  } catch (e) {
@@ -6979,7 +6970,7 @@ async function aa() {
6979
6970
  }
6980
6971
  //#endregion
6981
6972
  //#region src/utilities/cloudflare.ts
6982
- async function oa() {
6973
+ async function $i() {
6983
6974
  let e = await W("config.json"), t = {
6984
6975
  body: JSON.stringify(e),
6985
6976
  headers: { "Content-Type": "application/json" },
@@ -6987,7 +6978,7 @@ async function oa() {
6987
6978
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6988
6979
  if (!n.ok) throw Error(await n.text());
6989
6980
  }
6990
- async function sa(e, t) {
6981
+ async function ea(e, t) {
6991
6982
  async function n(e, t, r) {
6992
6983
  for (let i of r) {
6993
6984
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -7005,7 +6996,7 @@ async function sa(e, t) {
7005
6996
  let r = await Nn(`${e}/${t}/`);
7006
6997
  await n(`${e}/${t}`, t, r);
7007
6998
  }
7008
- async function ca(e) {
6999
+ async function ta(e) {
7009
7000
  let t = e.id, n = {
7010
7001
  body: JSON.stringify(e),
7011
7002
  headers: { "Content-Type": "application/json" },
@@ -7013,7 +7004,7 @@ async function ca(e) {
7013
7004
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
7014
7005
  if (!r.ok) throw Error(await r.text());
7015
7006
  }
7016
- async function la(e, t) {
7007
+ async function na(e, t) {
7017
7008
  let n = `v${e.version ?? "unknown"}`;
7018
7009
  async function r(e, r = "") {
7019
7010
  let i = await Nn(e, { withFileTypes: !0 });
@@ -7037,24 +7028,24 @@ async function la(e, t) {
7037
7028
  }
7038
7029
  //#endregion
7039
7030
  //#region node_modules/valibot/dist/index.mjs
7040
- var ua, da = {
7031
+ var ra = {
7041
7032
  lang: void 0,
7042
7033
  message: void 0,
7043
7034
  abortEarly: void 0,
7044
7035
  abortPipeEarly: void 0
7045
7036
  };
7046
7037
  /* @__NO_SIDE_EFFECTS__ */
7047
- function fa(e) {
7048
- return !e && !ua ? da : {
7049
- lang: e?.lang ?? ua?.lang,
7038
+ function ia(e) {
7039
+ return e ? {
7040
+ lang: e?.lang ?? void 0,
7050
7041
  message: e?.message,
7051
- abortEarly: e?.abortEarly ?? ua?.abortEarly,
7052
- abortPipeEarly: e?.abortPipeEarly ?? ua?.abortPipeEarly
7053
- };
7042
+ abortEarly: e?.abortEarly ?? void 0,
7043
+ abortPipeEarly: e?.abortPipeEarly ?? void 0
7044
+ } : ra;
7054
7045
  }
7055
7046
  /* @__NO_SIDE_EFFECTS__ */
7056
- function pa(e, t, n) {
7057
- let r = e["~run"]({ value: t }, /* @__PURE__ */ fa(n));
7047
+ function aa(e, t, n) {
7048
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ ia(n));
7058
7049
  return {
7059
7050
  typed: r.typed,
7060
7051
  success: !r.issues,
@@ -7064,56 +7055,56 @@ function pa(e, t, n) {
7064
7055
  }
7065
7056
  //#endregion
7066
7057
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModulePresenter.es.js
7067
- var ma = _i([
7058
+ var oa = ui([
7068
7059
  "list",
7069
7060
  "render",
7070
7061
  "setColorMode"
7071
- ]), ha = /* @__PURE__ */ Q({
7072
- ...Ti,
7073
- typeId: /* @__PURE__ */ li("presenter"),
7074
- actionNames: /* @__PURE__ */ si(ma),
7075
- presentations: /* @__PURE__ */ si(Ci)
7062
+ ]), sa = /* @__PURE__ */ Z({
7063
+ ...vi,
7064
+ typeId: /* @__PURE__ */ ri("presenter"),
7065
+ actionNames: /* @__PURE__ */ ti(oa),
7066
+ presentations: /* @__PURE__ */ ti(gi)
7076
7067
  });
7077
7068
  //#endregion
7078
7069
  //#region src/actions/manageProject.ts
7079
- async function ga() {
7070
+ async function ca() {
7080
7071
  try {
7081
7072
  K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
7082
7073
  } catch (e) {
7083
7074
  console.error("❌ Error building project", e), process.exit(1);
7084
7075
  }
7085
7076
  }
7086
- async function _a() {
7077
+ async function la() {
7087
7078
  try {
7088
7079
  K("Publish Project");
7089
7080
  let e = await W("package.json"), t = await W("config.json"), n = Vn(t.id);
7090
- if (n.typeId === "app") J("1️⃣ Register module"), await oa();
7091
- else if (n.typeId === "engine") J("1️⃣ Register module"), await la(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ca(t);
7081
+ if (n.typeId === "app") J("1️⃣ Register module"), await $i();
7082
+ else if (n.typeId === "engine") J("1️⃣ Register module"), await na(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ta(t);
7092
7083
  else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
7093
7084
  else {
7094
7085
  J("1️⃣ Register module");
7095
7086
  let r = t.id.split("-").slice(2).join("-");
7096
- await la(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ca(t);
7087
+ await na(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ta(t);
7097
7088
  }
7098
7089
  q(`Project version '${e.version ?? "unknown"}' published.`);
7099
7090
  } catch (e) {
7100
7091
  console.error("❌ Error publishing project", e), process.exit(1);
7101
7092
  }
7102
7093
  }
7103
- async function va() {
7094
+ async function ua() {
7104
7095
  try {
7105
7096
  K("Release Project");
7106
7097
  let e = await W("package.json"), t = await W("config.json");
7107
- await Ta("1️⃣ ", e);
7098
+ await _a("1️⃣ ", e);
7108
7099
  let n = Vn(t.id);
7109
7100
  switch (n.typeId) {
7110
7101
  case "connector":
7111
- t = await ba("2️⃣ ", e);
7102
+ t = await fa("2️⃣ ", e);
7112
7103
  break;
7113
7104
  case "presenter":
7114
- t = await xa("2️⃣ ", e);
7105
+ t = await pa("2️⃣ ", e);
7115
7106
  break;
7116
- default: t = await ya("2️⃣ ", e);
7107
+ default: t = await da("2️⃣ ", e);
7117
7108
  }
7118
7109
  if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
7119
7110
  "commit",
@@ -7123,13 +7114,13 @@ async function va() {
7123
7114
  "push",
7124
7115
  "origin",
7125
7116
  "main:main"
7126
- ]), n.typeId === "app") J("7️⃣ Register module"), await oa();
7127
- else if (n.typeId === "engine") J("7️⃣ Register module"), await la(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ca(t);
7117
+ ]), n.typeId === "app") J("7️⃣ Register module"), await $i();
7118
+ else if (n.typeId === "engine") J("7️⃣ Register module"), await na(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ta(t);
7128
7119
  else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
7129
7120
  else {
7130
7121
  J("7️⃣ Register module");
7131
7122
  let r = t.id.split("-").slice(2).join("-");
7132
- await la(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ca(t);
7123
+ await na(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ta(t);
7133
7124
  }
7134
7125
  if (n.publishedTo === "npm") {
7135
7126
  let e = ".npmrc";
@@ -7148,39 +7139,39 @@ async function va() {
7148
7139
  console.error("❌ Error releasing project", e), process.exit(1);
7149
7140
  }
7150
7141
  }
7151
- async function ya(e, t) {
7142
+ async function da(e, t) {
7152
7143
  J(`${e} Build project configuration`);
7153
7144
  let n = await W("config.json");
7154
7145
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await Ln("logo.svg"), n.iconDark ??= await Ln("logoDark.svg"), await zn("config.json", n), n;
7155
7146
  }
7156
- async function ba(e, t) {
7147
+ async function fa(e, t) {
7157
7148
  J(`${e} Build connector project configuration`);
7158
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ pa(Mi, n);
7149
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ aa(Ti, n);
7159
7150
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7160
7151
  let a = Un(r);
7161
- return await Sa(t, n, a, Ii(a));
7152
+ return await ma(t, n, a, ki(a));
7162
7153
  }
7163
- async function xa(e, t) {
7154
+ async function pa(e, t) {
7164
7155
  J(`${e} Build presenter project configuration`);
7165
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ pa(ha, n);
7156
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ aa(sa, n);
7166
7157
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7167
- return await Sa(t, n, Un(r));
7158
+ return await ma(t, n, Un(r));
7168
7159
  }
7169
- async function Sa(e, t, n, r) {
7160
+ async function ma(e, t, n, r) {
7170
7161
  return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await zn("config.json", t), t;
7171
7162
  }
7172
- async function Ca() {
7163
+ async function ha() {
7173
7164
  try {
7174
7165
  K("Synchronise Project with GitHub");
7175
7166
  let e = await W("package.json"), t = await W("config.json");
7176
- switch (await Ta("1️⃣ ", e), Vn(t.id).typeId) {
7167
+ switch (await _a("1️⃣ ", e), Vn(t.id).typeId) {
7177
7168
  case "connector":
7178
- await ba("2️⃣ ", e);
7169
+ await fa("2️⃣ ", e);
7179
7170
  break;
7180
7171
  case "presenter":
7181
- await xa("2️⃣ ", e);
7172
+ await pa("2️⃣ ", e);
7182
7173
  break;
7183
- default: await ya("2️⃣ ", e);
7174
+ default: await da("2️⃣ ", e);
7184
7175
  }
7185
7176
  await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7186
7177
  "commit",
@@ -7195,14 +7186,14 @@ async function Ca() {
7195
7186
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7196
7187
  }
7197
7188
  }
7198
- function wa() {
7189
+ function ga() {
7199
7190
  try {
7200
7191
  K("Test Project"), console.error("\n❌ No tests implemented.\n");
7201
7192
  } catch (e) {
7202
7193
  console.error("❌ Error testing project", e), process.exit(1);
7203
7194
  }
7204
7195
  }
7205
- async function Ta(e, t, n = "./") {
7196
+ async function _a(e, t, n = "./") {
7206
7197
  if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7207
7198
  else {
7208
7199
  let e = t.version, n = t.version.split(".");
@@ -7211,6 +7202,6 @@ async function Ta(e, t, n = "./") {
7211
7202
  await zn(`${n}package.json`, t);
7212
7203
  }
7213
7204
  //#endregion
7214
- export { Kn as auditDependencies, ga as buildProject, qn as checkConfigFiles, $n as checkDependencies, Ui as documentActions, ar as documentBundleSizes, Dr as documentDependencies, Br as documentGovernance, Ki as documentOpening, $i as documentUsage, ia as formatCode, aa as lintCode, _a as publishProject, va as releaseProject, Ca as syncProjectWithGitHub, wa as testProject, sa as uploadDirectoryToR2 };
7205
+ export { Kn as auditDependencies, ca as buildProject, qn as checkConfigFiles, $n as checkDependencies, Ii as documentActions, ar as documentBundleSizes, Dr as documentDependencies, Br as documentGovernance, zi as documentOpening, Ki as documentUsage, Zi as formatCode, Qi as lintCode, la as publishProject, ua as releaseProject, ha as syncProjectWithGitHub, ga as testProject, ea as uploadDirectoryToR2 };
7215
7206
 
7216
7207
  //# sourceMappingURL=dpuse-development.es.js.map